vue-data-ui 3.22.13 → 3.23.0

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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,16 +1,17 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, Bt as n, Y as r, et as i, i as a, t as o } from "./lib-CFm_J26b.js";
3
- import { t as s } from "./useConfig-C0V0eG7L.js";
4
- import { t as c } from "./useNestedProp-BY6DNN3i.js";
5
- import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
6
- import { t as u } from "./DefGrad-DVBqDjhO.js";
7
- import { Fragment as d, computed as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, normalizeClass as v, normalizeStyle as y, onMounted as b, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, unref as E, useSlots as D, watch as O, withCtx as k, withKeys as A } from "vue";
2
+ import { Vt as t, X as n, i as r, jt as i, t as a, tt as o } from "./lib-BuMGJ_a0.js";
3
+ import { n as s, t as c } from "./useHints-Dq_w2E8B.js";
4
+ import { t as l } from "./useConfig-BilxnBNr.js";
5
+ import { t as u } from "./useNestedProp--NSEmhOH.js";
6
+ import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
7
+ import { t as f } from "./DefGrad-DVBqDjhO.js";
8
+ import { Fragment as p, computed as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, normalizeClass as b, normalizeStyle as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useSlots as k, watch as A, withCtx as j, withKeys as M } from "vue";
8
9
  //#region src/atoms/BaseSmilingUnit.vue
9
- var j = ["xmlns", "stroke"], M = ["stroke"], N = [
10
+ var N = ["xmlns", "stroke"], P = ["stroke"], F = [
10
11
  "xmlns",
11
12
  "viewBox",
12
13
  "stroke"
13
- ], P = ["viewBox", "stroke"], F = /*#__PURE__*/ l({
14
+ ], I = ["viewBox", "stroke"], L = /*#__PURE__*/ d({
14
15
  __name: "BaseSmilingUnit",
15
16
  props: {
16
17
  config: { type: Object },
@@ -28,26 +29,26 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
28
29
  "mouseenter",
29
30
  "mouseleave"
30
31
  ],
31
- setup(e, { emit: t }) {
32
- let r = e, i = t;
33
- return (t, a) => (x(), m("div", {
32
+ setup(e, { emit: n }) {
33
+ let r = e, i = n;
34
+ return (n, o) => (C(), g("div", {
34
35
  tabindex: "0",
35
- class: v({ "vue-ui-smiley-rated": !e.config.readonly && e.currentRating === e.unit }),
36
- style: y({
36
+ class: b({ "vue-ui-smiley-rated": !e.config.readonly && e.currentRating === e.unit }),
37
+ style: x({
37
38
  cursor: e.config.readonly ? "default" : r.isCursorPointer ? "pointer" : "default",
38
39
  height: e.config.style.itemSize + "px",
39
40
  aspectRatio: "1/1",
40
41
  position: "relative"
41
42
  }),
42
- onMouseenter: a[0] ||= (e) => i("mouseenter"),
43
- onMouseleave: a[1] ||= (e) => i("mouseleave"),
44
- onClick: a[2] ||= (t) => i("rate", e.unit),
45
- onKeyup: a[3] ||= A((t) => i("rate", e.unit), ["enter"])
43
+ onMouseenter: o[0] ||= (e) => i("mouseenter"),
44
+ onMouseleave: o[1] ||= (e) => i("mouseleave"),
45
+ onClick: o[2] ||= (t) => i("rate", e.unit),
46
+ onKeyup: o[3] ||= M((t) => i("rate", e.unit), ["enter"])
46
47
  }, [
47
- e.config.style.tooltip.show && e.hasBreakdown && e.isReadonly ? (x(), m("div", {
48
+ e.config.style.tooltip.show && e.hasBreakdown && e.isReadonly ? (C(), g("div", {
48
49
  key: 0,
49
50
  class: "vue-ui-rating-tooltip",
50
- style: y({
51
+ style: x({
51
52
  border: `1px solid ${e.config.style.tooltip.borderColor}`,
52
53
  position: "absolute",
53
54
  top: `${e.config.style.tooltip.offsetY - 48}px`,
@@ -61,7 +62,7 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
61
62
  borderRadius: e.config.style.tooltip.borderRadius + "px",
62
63
  boxShadow: e.config.style.tooltip.boxShadow
63
64
  })
64
- }, [h("div", { style: y({
65
+ }, [_("div", { style: x({
65
66
  width: "100%",
66
67
  display: "flex",
67
68
  flexDirection: "row",
@@ -70,13 +71,13 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
70
71
  textAlign: "center",
71
72
  color: e.config.style.tooltip.color
72
73
  }) }, [
73
- h("span", { style: y(`font-size:${e.config.style.tooltip.fontSize}px`) }, T(e.unit) + ":", 5),
74
- h("span", { style: y(`font-weight:${e.config.style.tooltip.bold ? "bold" : "normal"};font-size:${e.config.style.tooltip.fontSize}px`) }, [w(t.$slots, "rating", {}, void 0, !0)], 4),
75
- h("div", { style: y(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${e.config.style.tooltip.borderColor}`) }, " ▼ ", 4)
76
- ], 4)], 4)) : p("", !0),
77
- e.config.style.icons.filled ? (x(), m("svg", {
74
+ _("span", { style: x(`font-size:${e.config.style.tooltip.fontSize}px`) }, D(e.unit) + ":", 5),
75
+ _("span", { style: x(`font-weight:${e.config.style.tooltip.bold ? "bold" : "normal"};font-size:${e.config.style.tooltip.fontSize}px`) }, [E(n.$slots, "rating", {}, void 0, !0)], 4),
76
+ _("div", { style: x(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${e.config.style.tooltip.borderColor}`) }, " ▼ ", 4)
77
+ ], 4)], 4)) : h("", !0),
78
+ e.config.style.icons.filled ? (C(), g("svg", {
78
79
  key: 1,
79
- xmlns: E(o),
80
+ xmlns: O(a),
80
81
  style: {
81
82
  transition: "all 0.1s ease-in-out",
82
83
  position: "absolute",
@@ -90,19 +91,19 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
90
91
  fill: "none",
91
92
  "stroke-linecap": "round",
92
93
  "stroke-linejoin": "round"
93
- }, [h("defs", null, [_(u, {
94
+ }, [_("defs", null, [y(f, {
94
95
  t: "radial",
95
96
  id: `vueUiSmiley${e.unit - 1}`,
96
97
  stops: [[
97
98
  "0%",
98
- E(n)(e.config.style.colors.active[e.unit - 1], .05),
99
+ O(t)(e.config.style.colors.active[e.unit - 1], .05),
99
100
  1
100
101
  ], [
101
102
  "100%",
102
103
  e.config.style.colors.active[e.unit - 1],
103
104
  1
104
105
  ]]
105
- }, null, 8, ["id", "stops"])]), w(t.$slots, "path-icon-filled", {}, void 0, !0)], 8, j)) : (x(), m("svg", {
106
+ }, null, 8, ["id", "stops"])]), E(n.$slots, "path-icon-filled", {}, void 0, !0)], 8, N)) : (C(), g("svg", {
106
107
  key: 2,
107
108
  style: {
108
109
  position: "absolute",
@@ -117,10 +118,10 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
117
118
  fill: "none",
118
119
  "stroke-linecap": "round",
119
120
  "stroke-linejoin": "round"
120
- }, [w(t.$slots, "path-icon", {}, void 0, !0)], 8, M)),
121
- e.config.style.icons.filled && e.isReadonly ? (x(), m("svg", {
121
+ }, [E(n.$slots, "path-icon", {}, void 0, !0)], 8, P)),
122
+ e.config.style.icons.filled && e.isReadonly ? (C(), g("svg", {
122
123
  key: 3,
123
- xmlns: E(o),
124
+ xmlns: O(a),
124
125
  style: {
125
126
  transition: "all 0.1s ease-in-out",
126
127
  position: "absolute",
@@ -134,20 +135,20 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
134
135
  fill: "none",
135
136
  "stroke-linecap": "round",
136
137
  "stroke-linejoin": "round"
137
- }, [h("defs", null, [_(u, {
138
+ }, [_("defs", null, [y(f, {
138
139
  t: "radial",
139
140
  id: `vueUiSmiley${e.unit - 1}`,
140
141
  stops: [[
141
142
  "0%",
142
- E(n)(e.config.style.colors.activeReadonly[e.unit - 1], .05),
143
+ O(t)(e.config.style.colors.activeReadonly[e.unit - 1], .05),
143
144
  1
144
145
  ], [
145
146
  "100%",
146
147
  e.config.style.colors.activeReadonly[e.unit - 1],
147
148
  1
148
149
  ]]
149
- }, null, 8, ["id", "stops"])]), w(t.$slots, "path-icon-filled-readonly", {}, void 0, !0)], 8, N)) : p("", !0),
150
- !e.config.style.icons.filled && e.isReadonly ? (x(), m("svg", {
150
+ }, null, 8, ["id", "stops"])]), E(n.$slots, "path-icon-filled-readonly", {}, void 0, !0)], 8, F)) : h("", !0),
151
+ !e.config.style.icons.filled && e.isReadonly ? (C(), g("svg", {
151
152
  key: 4,
152
153
  style: {
153
154
  position: "absolute",
@@ -162,14 +163,14 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
162
163
  fill: "none",
163
164
  "stroke-linecap": "round",
164
165
  "stroke-linejoin": "round"
165
- }, [w(t.$slots, "path-icon-readonly", {}, void 0, !0)], 8, P)) : p("", !0)
166
+ }, [E(n.$slots, "path-icon-readonly", {}, void 0, !0)], 8, I)) : h("", !0)
166
167
  ], 38));
167
168
  }
168
- }, [["__scopeId", "data-v-9734e83c"]]), I = /* @__PURE__ */ e({ default: () => H }), L = {
169
+ }, [["__scopeId", "data-v-9734e83c"]]), R = /* @__PURE__ */ e({ default: () => W }), z = {
169
170
  key: 0,
170
171
  class: "vue-ui-rating-title",
171
172
  style: { width: "100%" }
172
- }, R = ["d", "fill"], z = ["d"], B = ["d", "fill"], V = ["d"], H = {
173
+ }, B = ["d", "fill"], V = ["d"], H = ["d", "fill"], U = ["d"], W = {
173
174
  __name: "vue-ui-smiley",
174
175
  props: {
175
176
  config: {
@@ -186,37 +187,44 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
186
187
  }
187
188
  },
188
189
  emits: ["rate"],
189
- setup(e, { expose: n, emit: o }) {
190
- let { vue_ui_smiley: l } = s(), u = e, v = D(), w = o, E = S(null);
191
- b(() => {
192
- v["chart-background"] && console.warn("VueUiSmiley does not support the #chart-background slot.");
190
+ setup(e, { expose: t, emit: a }) {
191
+ let { vue_ui_smiley: d } = l(), f = e, b = k(), E = a, O = w(null);
192
+ S(() => {
193
+ b["chart-background"] && console.warn("VueUiSmiley does not support the #chart-background slot.");
193
194
  });
194
- function A() {
195
- (!Object.hasOwn(u.dataset, "rating") || t(u.dataset)) && i({
195
+ function M() {
196
+ (!Object.hasOwn(f.dataset, "rating") || i(f.dataset)) && o({
196
197
  componentName: "VueUiSmiley",
197
198
  type: "datasetAttribute",
198
199
  property: "rating"
199
200
  });
200
201
  }
201
- b(A);
202
- let j = S(N()), M = f(() => j.value.useCursorPointer);
203
- function N() {
204
- return c({
205
- userConfig: u.config,
206
- defaultConfig: l
202
+ S(M);
203
+ let N = w(F());
204
+ s({
205
+ config: () => N.value,
206
+ dataset: () => [],
207
+ component: "VueUiSmiley",
208
+ rules: [c.noHint]
209
+ });
210
+ let P = m(() => N.value.useCursorPointer);
211
+ function F() {
212
+ return u({
213
+ userConfig: f.config,
214
+ defaultConfig: d
207
215
  });
208
216
  }
209
- O(() => u.config, (e) => {
210
- j.value = N(), U.value = j.value.readonly, A();
217
+ A(() => f.config, (e) => {
218
+ N.value = F(), G.value = N.value.readonly, M();
211
219
  }, { deep: !0 });
212
- let P = f(() => {
213
- let e = u.dataset.rating;
214
- return e && typeof e == "object" && !Array.isArray(e) ? G(e) : e ?? null;
215
- }), I = f(() => typeof u.dataset.rating == "object" && !Array.isArray(u.dataset.rating)), H = S(P.value);
216
- O(P, (e) => {
217
- H.value = e;
220
+ let I = m(() => {
221
+ let e = f.dataset.rating;
222
+ return e && typeof e == "object" && !Array.isArray(e) ? q(e) : e ?? null;
223
+ }), R = m(() => typeof f.dataset.rating == "object" && !Array.isArray(f.dataset.rating)), W = w(I.value);
224
+ A(I, (e) => {
225
+ W.value = e;
218
226
  });
219
- let U = S(j.value.readonly), W = [
227
+ let G = w(N.value.readonly), K = [
220
228
  {
221
229
  key: "smiley_0",
222
230
  pathIconFilled: "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",
@@ -253,7 +261,7 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
253
261
  pathIconReadonly: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 9l.01 0 M15 9l.01 0 M8 13a4 4 0 1 0 8 0h-8"
254
262
  }
255
263
  ];
256
- function G(e) {
264
+ function q(e) {
257
265
  if (e == null) return null;
258
266
  let t = 0, n = 0;
259
267
  for (let r in e) {
@@ -262,85 +270,85 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
262
270
  }
263
271
  return n === 0 ? 0 : t / n;
264
272
  }
265
- function K(e) {
266
- let t = H.value - e;
273
+ function J(e) {
274
+ let t = W.value - e;
267
275
  switch (!0) {
268
276
  case t < 0: return 0;
269
277
  case t > 1: return 24;
270
278
  default: return t * 24;
271
279
  }
272
280
  }
273
- function q(e) {
274
- return j.value.readonly ? j.value.style.colors.inactive[e] : H.value === e + 1 || E.value !== null && E.value === e ? j.value.style.icons.useGradient && j.value.style.icons.filled ? `url(#vueUiSmiley${e})` : j.value.style.colors.active[e] : j.value.style.colors.inactive[e];
281
+ function Y(e) {
282
+ return N.value.readonly ? N.value.style.colors.inactive[e] : W.value === e + 1 || O.value !== null && O.value === e ? N.value.style.icons.useGradient && N.value.style.icons.filled ? `url(#vueUiSmiley${e})` : N.value.style.colors.active[e] : N.value.style.colors.inactive[e];
275
283
  }
276
- let J = f(() => ({ value: e, tooltip: t = !1 }) => a(t ? j.value.style.tooltip.formatter : j.value.style.rating.formatter, e, r({
284
+ let X = m(() => ({ value: e, tooltip: t = !1 }) => r(t ? N.value.style.tooltip.formatter : N.value.style.rating.formatter, e, n({
277
285
  v: e,
278
- r: t ? j.value.style.tooltip.roundingValue : j.value.style.rating.roundingValue
279
- }), j.value));
280
- function Y(e) {
281
- U.value || (H.value = e, w("rate", e));
286
+ r: t ? N.value.style.tooltip.roundingValue : N.value.style.rating.roundingValue
287
+ }), N.value));
288
+ function Z(e) {
289
+ G.value || (W.value = e, E("rate", e));
282
290
  }
283
- function X() {
284
- return H.value;
291
+ function Q() {
292
+ return W.value;
285
293
  }
286
- function Z(e = !0) {
287
- U.value = e;
294
+ function $(e = !0) {
295
+ G.value = e;
288
296
  }
289
- return n({
290
- getData: X,
291
- toggleReadonly: Z
292
- }), (e, t) => (x(), m("div", {
297
+ return t({
298
+ getData: Q,
299
+ toggleReadonly: $
300
+ }), (e, t) => (C(), g("div", {
293
301
  class: "vue-data-ui-component vue-ui-smiley",
294
- style: y(`background:${j.value.style.backgroundColor};font-family:${j.value.style.fontFamily};width:100%;`),
295
- onMouseleave: t[1] ||= (e) => E.value = void 0
302
+ style: x(`background:${N.value.style.backgroundColor};font-family:${N.value.style.fontFamily};width:100%;`),
303
+ onMouseleave: t[1] ||= (e) => O.value = void 0
296
304
  }, [
297
- j.value.style.title.text ? (x(), m("div", L, [h("div", { style: y(`color:${j.value.style.title.color};font-weight:${j.value.style.title.bold ? "bold" : "normal"};text-align:${j.value.style.title.textAlign};margin-bottom:${j.value.style.title.offsetY}px;font-size:${j.value.style.title.fontSize}px`) }, T(j.value.style.title.text), 5), j.value.style.title.subtitle.text ? (x(), m("div", {
305
+ N.value.style.title.text ? (C(), g("div", z, [_("div", { style: x(`color:${N.value.style.title.color};font-weight:${N.value.style.title.bold ? "bold" : "normal"};text-align:${N.value.style.title.textAlign};margin-bottom:${N.value.style.title.offsetY}px;font-size:${N.value.style.title.fontSize}px`) }, D(N.value.style.title.text), 5), N.value.style.title.subtitle.text ? (C(), g("div", {
298
306
  key: 0,
299
- style: y(`color:${j.value.style.title.subtitle.color};font-size:${j.value.style.title.subtitle.fontSize}px;text-align:${j.value.style.title.textAlign};margin-bottom:${j.value.style.title.subtitle.offsetY}px;font-weight:${j.value.style.title.subtitle.bold ? "bold" : "normal"}`)
300
- }, T(j.value.style.title.subtitle.text), 5)) : p("", !0)])) : p("", !0),
301
- j.value.style.rating.show && j.value.style.rating.position === "top" ? (x(), m("div", {
307
+ style: x(`color:${N.value.style.title.subtitle.color};font-size:${N.value.style.title.subtitle.fontSize}px;text-align:${N.value.style.title.textAlign};margin-bottom:${N.value.style.title.subtitle.offsetY}px;font-weight:${N.value.style.title.subtitle.bold ? "bold" : "normal"}`)
308
+ }, D(N.value.style.title.subtitle.text), 5)) : h("", !0)])) : h("", !0),
309
+ N.value.style.rating.show && N.value.style.rating.position === "top" ? (C(), g("div", {
302
310
  key: 1,
303
- style: y(`width:100%;text-align:center;margin-bottom:${j.value.style.rating.offsetY}px;font-size:${j.value.style.rating.fontSize}px;font-weight:${j.value.style.rating.bold ? "bold" : "normal"};margin-left:${j.value.style.rating.offsetX}px`)
304
- }, T(J.value({ value: H.value })), 5)) : p("", !0),
305
- h("div", {
311
+ style: x(`width:100%;text-align:center;margin-bottom:${N.value.style.rating.offsetY}px;font-size:${N.value.style.rating.fontSize}px;font-weight:${N.value.style.rating.bold ? "bold" : "normal"};margin-left:${N.value.style.rating.offsetX}px`)
312
+ }, D(X.value({ value: W.value })), 5)) : h("", !0),
313
+ _("div", {
306
314
  class: "vue-ui-smiley-wrapper",
307
- style: y(`overflow:visible;height:${j.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)
315
+ style: x(`overflow:visible;height:${N.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)
308
316
  }, [
309
- j.value.style.rating.show && j.value.style.rating.position === "left" ? (x(), m("div", {
317
+ N.value.style.rating.show && N.value.style.rating.position === "left" ? (C(), g("div", {
310
318
  key: 0,
311
- style: y(`width:fit-content;text-align:center;margin-bottom:${j.value.style.rating.offsetY}px;font-size:${j.value.style.rating.fontSize}px;font-weight:${j.value.style.rating.bold ? "bold" : "normal"};padding-right:${j.value.style.rating.offsetX}px`)
312
- }, T(J.value({ value: H.value })), 5)) : p("", !0),
313
- (x(), m(d, null, C(W, (e, n) => _(F, {
319
+ style: x(`width:fit-content;text-align:center;margin-bottom:${N.value.style.rating.offsetY}px;font-size:${N.value.style.rating.fontSize}px;font-weight:${N.value.style.rating.bold ? "bold" : "normal"};padding-right:${N.value.style.rating.offsetX}px`)
320
+ }, D(X.value({ value: W.value })), 5)) : h("", !0),
321
+ (C(), g(p, null, T(K, (e, n) => y(L, {
314
322
  key: e.key,
315
- config: j.value,
323
+ config: N.value,
316
324
  unit: n + 1,
317
- currentRating: H.value,
318
- isReadonly: U.value,
319
- hasBreakdown: I.value,
320
- hoveredValue: E.value,
321
- getActiveColor: q,
322
- calcShapeFill: K,
323
- isCursorPointer: M.value,
324
- onMouseenter: (e) => E.value = n,
325
- onMouseleave: t[0] ||= (e) => E.value = null,
326
- onRate: (e) => Y(n + 1)
325
+ currentRating: W.value,
326
+ isReadonly: G.value,
327
+ hasBreakdown: R.value,
328
+ hoveredValue: O.value,
329
+ getActiveColor: Y,
330
+ calcShapeFill: J,
331
+ isCursorPointer: P.value,
332
+ onMouseenter: (e) => O.value = n,
333
+ onMouseleave: t[0] ||= (e) => O.value = null,
334
+ onRate: (e) => Z(n + 1)
327
335
  }, {
328
- rating: k(() => [g(T(J.value({
329
- value: u.dataset.rating[String(n + 1)],
336
+ rating: j(() => [v(D(X.value({
337
+ value: f.dataset.rating[String(n + 1)],
330
338
  tooltip: !0
331
339
  })), 1)]),
332
- "path-icon-filled": k(() => [h("path", {
340
+ "path-icon-filled": j(() => [_("path", {
333
341
  d: e.pathIconFilled,
334
342
  "stroke-width": "0",
335
- fill: q(n)
336
- }, null, 8, R)]),
337
- "path-icon": k(() => [h("path", { d: e.pathIcon }, null, 8, z)]),
338
- "path-icon-filled-readonly": k(() => [h("path", {
343
+ fill: Y(n)
344
+ }, null, 8, B)]),
345
+ "path-icon": j(() => [_("path", { d: e.pathIcon }, null, 8, V)]),
346
+ "path-icon-filled-readonly": j(() => [_("path", {
339
347
  d: e.pathIconFilledReadonly,
340
348
  "stroke-width": "0",
341
- fill: j.value.style.icons.useGradient ? `url(#vueUiSmiley${n})` : j.value.style.colors.activeReadonly[n]
342
- }, null, 8, B)]),
343
- "path-icon-readonly": k(() => [h("path", { d: e.pathIconReadonly }, null, 8, V)]),
349
+ fill: N.value.style.icons.useGradient ? `url(#vueUiSmiley${n})` : N.value.style.colors.activeReadonly[n]
350
+ }, null, 8, H)]),
351
+ "path-icon-readonly": j(() => [_("path", { d: e.pathIconReadonly }, null, 8, U)]),
344
352
  _: 2
345
353
  }, 1032, [
346
354
  "config",
@@ -353,17 +361,17 @@ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
353
361
  "onMouseenter",
354
362
  "onRate"
355
363
  ])), 64)),
356
- j.value.style.rating.show && j.value.style.rating.position === "right" ? (x(), m("div", {
364
+ N.value.style.rating.show && N.value.style.rating.position === "right" ? (C(), g("div", {
357
365
  key: 1,
358
- style: y(`width:fit-content;text-align:center;margin-bottom:${j.value.style.rating.offsetY}px;font-size:${j.value.style.rating.fontSize}px;font-weight:${j.value.style.rating.bold ? "bold" : "normal"};padding-left:${j.value.style.rating.offsetX}px`)
359
- }, T(J.value({ value: H.value })), 5)) : p("", !0)
366
+ style: x(`width:fit-content;text-align:center;margin-bottom:${N.value.style.rating.offsetY}px;font-size:${N.value.style.rating.fontSize}px;font-weight:${N.value.style.rating.bold ? "bold" : "normal"};padding-left:${N.value.style.rating.offsetX}px`)
367
+ }, D(X.value({ value: W.value })), 5)) : h("", !0)
360
368
  ], 4),
361
- j.value.style.rating.show && j.value.style.rating.position === "bottom" ? (x(), m("div", {
369
+ N.value.style.rating.show && N.value.style.rating.position === "bottom" ? (C(), g("div", {
362
370
  key: 2,
363
- style: y(`width:100%;text-align:center;margin-top:${j.value.style.rating.offsetY}px;font-size:${j.value.style.rating.fontSize}px;font-weight:${j.value.style.rating.bold ? "bold" : "normal"};margin-left:${j.value.style.rating.offsetX}px`)
364
- }, T(J.value({ value: H.value })), 5)) : p("", !0)
371
+ style: x(`width:100%;text-align:center;margin-top:${N.value.style.rating.offsetY}px;font-size:${N.value.style.rating.fontSize}px;font-weight:${N.value.style.rating.bold ? "bold" : "normal"};margin-left:${N.value.style.rating.offsetX}px`)
372
+ }, D(X.value({ value: W.value })), 5)) : h("", !0)
365
373
  ], 36));
366
374
  }
367
375
  };
368
376
  //#endregion
369
- export { I as n, H as t };
377
+ export { R as n, W as t };