vue-data-ui 3.22.8 → 3.22.10

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 (209) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/BaseIcon-CDTIUIKV.js +483 -0
  4. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  11. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
  12. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
  13. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  14. package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
  15. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
  16. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  17. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  18. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  19. package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  90. package/dist/exposedLib-CZbtc2a6.js +25 -0
  91. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  94. package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  96. package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  103. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  104. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  105. package/dist/utils.js +26 -24
  106. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  109. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  111. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  112. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  113. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  114. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
  115. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  116. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  117. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  118. package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
  119. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  120. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
  121. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  122. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
  123. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  124. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  125. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  126. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  127. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  128. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  129. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  130. package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
  131. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  132. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
  133. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  134. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
  135. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  136. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
  137. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  138. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  139. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
  140. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  141. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  142. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  143. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  144. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  145. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  146. package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
  147. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  148. package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
  149. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  150. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  151. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
  152. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
  153. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
  154. package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
  155. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
  156. package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
  157. package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
  158. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  159. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
  160. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  161. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
  162. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  163. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  164. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  165. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  166. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
  167. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  168. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
  169. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  170. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  171. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  172. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
  173. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
  174. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
  175. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  176. package/package.json +1 -1
  177. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  178. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  179. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
  181. package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
  182. package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
  183. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
  184. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  185. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  186. package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
  187. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  188. package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
  189. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  190. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  191. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
  192. package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
  193. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
  194. package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
  195. package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
  196. package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
  197. package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
  198. package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
  199. package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
  200. package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
  201. package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
  202. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  203. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  204. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
  205. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  206. package/dist/vue-ui-table-Q3brrivC.js +0 -1338
  207. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
  208. package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
  209. package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
@@ -1,15 +1,16 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, J as n, i as r, kt as i, t as a, zt as o } from "./lib-JqW18y5I.js";
2
+ import { At as t, Bt as n, Y as r, et as i, i as a, t as o } from "./lib-CnHx5WfV.js";
3
3
  import { t as s } from "./useConfig-DYM3f6EI.js";
4
- import { t as c } from "./useNestedProp-DIuuzG1r.js";
4
+ import { t as c } from "./useNestedProp-D8NuRneO.js";
5
5
  import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
6
- import { Fragment as u, computed as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, normalizeClass as _, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useSlots as E, watch as D, withCtx as O, withKeys as k } from "vue";
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";
7
8
  //#region src/atoms/BaseSmilingUnit.vue
8
- var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"], P = ["stroke"], F = [
9
+ var j = ["xmlns", "stroke"], M = ["stroke"], N = [
9
10
  "xmlns",
10
11
  "viewBox",
11
12
  "stroke"
12
- ], I = ["id"], L = ["stop-color"], R = ["stop-color"], z = ["viewBox", "stroke"], B = /*#__PURE__*/ l({
13
+ ], P = ["viewBox", "stroke"], F = /*#__PURE__*/ l({
13
14
  __name: "BaseSmilingUnit",
14
15
  props: {
15
16
  config: { type: Object },
@@ -28,25 +29,25 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
28
29
  "mouseleave"
29
30
  ],
30
31
  setup(e, { emit: t }) {
31
- let n = e, r = t;
32
- return (t, i) => (b(), p("div", {
32
+ let r = e, i = t;
33
+ return (t, a) => (x(), m("div", {
33
34
  tabindex: "0",
34
- class: _({ "vue-ui-smiley-rated": !e.config.readonly && e.currentRating === e.unit }),
35
- style: v({
36
- cursor: e.config.readonly ? "default" : n.isCursorPointer ? "pointer" : "default",
35
+ class: v({ "vue-ui-smiley-rated": !e.config.readonly && e.currentRating === e.unit }),
36
+ style: y({
37
+ cursor: e.config.readonly ? "default" : r.isCursorPointer ? "pointer" : "default",
37
38
  height: e.config.style.itemSize + "px",
38
39
  aspectRatio: "1/1",
39
40
  position: "relative"
40
41
  }),
41
- onMouseenter: i[0] ||= (e) => r("mouseenter"),
42
- onMouseleave: i[1] ||= (e) => r("mouseleave"),
43
- onClick: i[2] ||= (t) => r("rate", e.unit),
44
- onKeyup: i[3] ||= k((t) => r("rate", e.unit), ["enter"])
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"])
45
46
  }, [
46
- e.config.style.tooltip.show && e.hasBreakdown && e.isReadonly ? (b(), p("div", {
47
+ e.config.style.tooltip.show && e.hasBreakdown && e.isReadonly ? (x(), m("div", {
47
48
  key: 0,
48
49
  class: "vue-ui-rating-tooltip",
49
- style: v({
50
+ style: y({
50
51
  border: `1px solid ${e.config.style.tooltip.borderColor}`,
51
52
  position: "absolute",
52
53
  top: `${e.config.style.tooltip.offsetY - 48}px`,
@@ -60,7 +61,7 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
60
61
  borderRadius: e.config.style.tooltip.borderRadius + "px",
61
62
  boxShadow: e.config.style.tooltip.boxShadow
62
63
  })
63
- }, [m("div", { style: v({
64
+ }, [h("div", { style: y({
64
65
  width: "100%",
65
66
  display: "flex",
66
67
  flexDirection: "row",
@@ -69,13 +70,13 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
69
70
  textAlign: "center",
70
71
  color: e.config.style.tooltip.color
71
72
  }) }, [
72
- m("span", { style: v(`font-size:${e.config.style.tooltip.fontSize}px`) }, w(e.unit) + ":", 5),
73
- m("span", { style: v(`font-weight:${e.config.style.tooltip.bold ? "bold" : "normal"};font-size:${e.config.style.tooltip.fontSize}px`) }, [C(t.$slots, "rating", {}, void 0, !0)], 4),
74
- m("div", { style: v(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${e.config.style.tooltip.borderColor}`) }, " ▼ ", 4)
75
- ], 4)], 4)) : f("", !0),
76
- e.config.style.icons.filled ? (b(), p("svg", {
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", {
77
78
  key: 1,
78
- xmlns: T(a),
79
+ xmlns: E(o),
79
80
  style: {
80
81
  transition: "all 0.1s ease-in-out",
81
82
  position: "absolute",
@@ -89,13 +90,19 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
89
90
  fill: "none",
90
91
  "stroke-linecap": "round",
91
92
  "stroke-linejoin": "round"
92
- }, [m("defs", null, [m("radialGradient", { id: `vueUiSmiley${e.unit - 1}` }, [m("stop", {
93
- offset: "0%",
94
- "stop-color": T(o)(e.config.style.colors.active[e.unit - 1], .05)
95
- }, null, 8, M), m("stop", {
96
- offset: "100%",
97
- "stop-color": e.config.style.colors.active[e.unit - 1]
98
- }, null, 8, N)], 8, j)]), C(t.$slots, "path-icon-filled", {}, void 0, !0)], 8, A)) : (b(), p("svg", {
93
+ }, [h("defs", null, [_(u, {
94
+ t: "radial",
95
+ id: `vueUiSmiley${e.unit - 1}`,
96
+ stops: [[
97
+ "0%",
98
+ E(n)(e.config.style.colors.active[e.unit - 1], .05),
99
+ 1
100
+ ], [
101
+ "100%",
102
+ e.config.style.colors.active[e.unit - 1],
103
+ 1
104
+ ]]
105
+ }, null, 8, ["id", "stops"])]), w(t.$slots, "path-icon-filled", {}, void 0, !0)], 8, j)) : (x(), m("svg", {
99
106
  key: 2,
100
107
  style: {
101
108
  position: "absolute",
@@ -110,10 +117,10 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
110
117
  fill: "none",
111
118
  "stroke-linecap": "round",
112
119
  "stroke-linejoin": "round"
113
- }, [C(t.$slots, "path-icon", {}, void 0, !0)], 8, P)),
114
- e.config.style.icons.filled && e.isReadonly ? (b(), p("svg", {
120
+ }, [w(t.$slots, "path-icon", {}, void 0, !0)], 8, M)),
121
+ e.config.style.icons.filled && e.isReadonly ? (x(), m("svg", {
115
122
  key: 3,
116
- xmlns: T(a),
123
+ xmlns: E(o),
117
124
  style: {
118
125
  transition: "all 0.1s ease-in-out",
119
126
  position: "absolute",
@@ -127,14 +134,20 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
127
134
  fill: "none",
128
135
  "stroke-linecap": "round",
129
136
  "stroke-linejoin": "round"
130
- }, [m("defs", null, [m("radialGradient", { id: `vueUiSmiley${e.unit - 1}` }, [m("stop", {
131
- offset: "0%",
132
- "stop-color": T(o)(e.config.style.colors.activeReadonly[e.unit - 1], .05)
133
- }, null, 8, L), m("stop", {
134
- offset: "100%",
135
- "stop-color": e.config.style.colors.activeReadonly[e.unit - 1]
136
- }, null, 8, R)], 8, I)]), C(t.$slots, "path-icon-filled-readonly", {}, void 0, !0)], 8, F)) : f("", !0),
137
- !e.config.style.icons.filled && e.isReadonly ? (b(), p("svg", {
137
+ }, [h("defs", null, [_(u, {
138
+ t: "radial",
139
+ id: `vueUiSmiley${e.unit - 1}`,
140
+ stops: [[
141
+ "0%",
142
+ E(n)(e.config.style.colors.activeReadonly[e.unit - 1], .05),
143
+ 1
144
+ ], [
145
+ "100%",
146
+ e.config.style.colors.activeReadonly[e.unit - 1],
147
+ 1
148
+ ]]
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", {
138
151
  key: 4,
139
152
  style: {
140
153
  position: "absolute",
@@ -149,14 +162,14 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
149
162
  fill: "none",
150
163
  "stroke-linecap": "round",
151
164
  "stroke-linejoin": "round"
152
- }, [C(t.$slots, "path-icon-readonly", {}, void 0, !0)], 8, z)) : f("", !0)
165
+ }, [w(t.$slots, "path-icon-readonly", {}, void 0, !0)], 8, P)) : p("", !0)
153
166
  ], 38));
154
167
  }
155
- }, [["__scopeId", "data-v-e3093b6c"]]), V = /* @__PURE__ */ e({ default: () => q }), H = {
168
+ }, [["__scopeId", "data-v-9734e83c"]]), I = /* @__PURE__ */ e({ default: () => H }), L = {
156
169
  key: 0,
157
170
  class: "vue-ui-rating-title",
158
171
  style: { width: "100%" }
159
- }, U = ["d", "fill"], W = ["d"], G = ["d", "fill"], K = ["d"], q = {
172
+ }, R = ["d", "fill"], z = ["d"], B = ["d", "fill"], V = ["d"], H = {
160
173
  __name: "vue-ui-smiley",
161
174
  props: {
162
175
  config: {
@@ -173,37 +186,37 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
173
186
  }
174
187
  },
175
188
  emits: ["rate"],
176
- setup(e, { expose: a, emit: o }) {
177
- let { vue_ui_smiley: l } = s(), _ = e, C = E(), T = o, k = x(null);
178
- y(() => {
179
- C["chart-background"] && console.warn("VueUiSmiley does not support the #chart-background slot.");
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.");
180
193
  });
181
194
  function A() {
182
- (!Object.hasOwn(_.dataset, "rating") || i(_.dataset)) && t({
195
+ (!Object.hasOwn(u.dataset, "rating") || t(u.dataset)) && i({
183
196
  componentName: "VueUiSmiley",
184
197
  type: "datasetAttribute",
185
198
  property: "rating"
186
199
  });
187
200
  }
188
- y(A);
189
- let j = x(N()), M = d(() => j.value.useCursorPointer);
201
+ b(A);
202
+ let j = S(N()), M = f(() => j.value.useCursorPointer);
190
203
  function N() {
191
204
  return c({
192
- userConfig: _.config,
205
+ userConfig: u.config,
193
206
  defaultConfig: l
194
207
  });
195
208
  }
196
- D(() => _.config, (e) => {
197
- j.value = N(), L.value = j.value.readonly, A();
209
+ O(() => u.config, (e) => {
210
+ j.value = N(), U.value = j.value.readonly, A();
198
211
  }, { deep: !0 });
199
- let P = d(() => {
200
- let e = _.dataset.rating;
201
- return e && typeof e == "object" && !Array.isArray(e) ? z(e) : e ?? null;
202
- }), F = d(() => typeof _.dataset.rating == "object" && !Array.isArray(_.dataset.rating)), I = x(P.value);
203
- D(P, (e) => {
204
- I.value = e;
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;
205
218
  });
206
- let L = x(j.value.readonly), R = [
219
+ let U = S(j.value.readonly), W = [
207
220
  {
208
221
  key: "smiley_0",
209
222
  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",
@@ -240,7 +253,7 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
240
253
  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"
241
254
  }
242
255
  ];
243
- function z(e) {
256
+ function G(e) {
244
257
  if (e == null) return null;
245
258
  let t = 0, n = 0;
246
259
  for (let r in e) {
@@ -249,8 +262,8 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
249
262
  }
250
263
  return n === 0 ? 0 : t / n;
251
264
  }
252
- function V(e) {
253
- let t = I.value - e;
265
+ function K(e) {
266
+ let t = H.value - e;
254
267
  switch (!0) {
255
268
  case t < 0: return 0;
256
269
  case t > 1: return 24;
@@ -258,76 +271,76 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
258
271
  }
259
272
  }
260
273
  function q(e) {
261
- return j.value.readonly ? j.value.style.colors.inactive[e] : I.value === e + 1 || k.value !== null && k.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];
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];
262
275
  }
263
- let J = d(() => ({ value: e, tooltip: t = !1 }) => r(t ? j.value.style.tooltip.formatter : j.value.style.rating.formatter, e, n({
276
+ let J = f(() => ({ value: e, tooltip: t = !1 }) => a(t ? j.value.style.tooltip.formatter : j.value.style.rating.formatter, e, r({
264
277
  v: e,
265
278
  r: t ? j.value.style.tooltip.roundingValue : j.value.style.rating.roundingValue
266
279
  }), j.value));
267
280
  function Y(e) {
268
- L.value || (I.value = e, T("rate", e));
281
+ U.value || (H.value = e, w("rate", e));
269
282
  }
270
283
  function X() {
271
- return I.value;
284
+ return H.value;
272
285
  }
273
286
  function Z(e = !0) {
274
- L.value = e;
287
+ U.value = e;
275
288
  }
276
- return a({
289
+ return n({
277
290
  getData: X,
278
291
  toggleReadonly: Z
279
- }), (e, t) => (b(), p("div", {
292
+ }), (e, t) => (x(), m("div", {
280
293
  class: "vue-data-ui-component vue-ui-smiley",
281
- style: v(`background:${j.value.style.backgroundColor};font-family:${j.value.style.fontFamily};width:100%;`),
282
- onMouseleave: t[1] ||= (e) => k.value = void 0
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
283
296
  }, [
284
- j.value.style.title.text ? (b(), p("div", H, [m("div", { style: v(`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`) }, w(j.value.style.title.text), 5), j.value.style.title.subtitle.text ? (b(), p("div", {
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", {
285
298
  key: 0,
286
- style: v(`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"}`)
287
- }, w(j.value.style.title.subtitle.text), 5)) : f("", !0)])) : f("", !0),
288
- j.value.style.rating.show && j.value.style.rating.position === "top" ? (b(), p("div", {
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", {
289
302
  key: 1,
290
- style: v(`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`)
291
- }, w(J.value({ value: I.value })), 5)) : f("", !0),
292
- m("div", {
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", {
293
306
  class: "vue-ui-smiley-wrapper",
294
- style: v(`overflow:visible;height:${j.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)
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;`)
295
308
  }, [
296
- j.value.style.rating.show && j.value.style.rating.position === "left" ? (b(), p("div", {
309
+ j.value.style.rating.show && j.value.style.rating.position === "left" ? (x(), m("div", {
297
310
  key: 0,
298
- style: v(`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`)
299
- }, w(J.value({ value: I.value })), 5)) : f("", !0),
300
- (b(), p(u, null, S(R, (e, n) => g(B, {
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, {
301
314
  key: e.key,
302
315
  config: j.value,
303
316
  unit: n + 1,
304
- currentRating: I.value,
305
- isReadonly: L.value,
306
- hasBreakdown: F.value,
307
- hoveredValue: k.value,
317
+ currentRating: H.value,
318
+ isReadonly: U.value,
319
+ hasBreakdown: I.value,
320
+ hoveredValue: E.value,
308
321
  getActiveColor: q,
309
- calcShapeFill: V,
322
+ calcShapeFill: K,
310
323
  isCursorPointer: M.value,
311
- onMouseenter: (e) => k.value = n,
312
- onMouseleave: t[0] ||= (e) => k.value = null,
324
+ onMouseenter: (e) => E.value = n,
325
+ onMouseleave: t[0] ||= (e) => E.value = null,
313
326
  onRate: (e) => Y(n + 1)
314
327
  }, {
315
- rating: O(() => [h(w(J.value({
316
- value: _.dataset.rating[String(n + 1)],
328
+ rating: k(() => [g(T(J.value({
329
+ value: u.dataset.rating[String(n + 1)],
317
330
  tooltip: !0
318
331
  })), 1)]),
319
- "path-icon-filled": O(() => [m("path", {
332
+ "path-icon-filled": k(() => [h("path", {
320
333
  d: e.pathIconFilled,
321
334
  "stroke-width": "0",
322
335
  fill: q(n)
323
- }, null, 8, U)]),
324
- "path-icon": O(() => [m("path", { d: e.pathIcon }, null, 8, W)]),
325
- "path-icon-filled-readonly": O(() => [m("path", {
336
+ }, null, 8, R)]),
337
+ "path-icon": k(() => [h("path", { d: e.pathIcon }, null, 8, z)]),
338
+ "path-icon-filled-readonly": k(() => [h("path", {
326
339
  d: e.pathIconFilledReadonly,
327
340
  "stroke-width": "0",
328
341
  fill: j.value.style.icons.useGradient ? `url(#vueUiSmiley${n})` : j.value.style.colors.activeReadonly[n]
329
- }, null, 8, G)]),
330
- "path-icon-readonly": O(() => [m("path", { d: e.pathIconReadonly }, null, 8, K)]),
342
+ }, null, 8, B)]),
343
+ "path-icon-readonly": k(() => [h("path", { d: e.pathIconReadonly }, null, 8, V)]),
331
344
  _: 2
332
345
  }, 1032, [
333
346
  "config",
@@ -340,17 +353,17 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
340
353
  "onMouseenter",
341
354
  "onRate"
342
355
  ])), 64)),
343
- j.value.style.rating.show && j.value.style.rating.position === "right" ? (b(), p("div", {
356
+ j.value.style.rating.show && j.value.style.rating.position === "right" ? (x(), m("div", {
344
357
  key: 1,
345
- style: v(`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`)
346
- }, w(J.value({ value: I.value })), 5)) : f("", !0)
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)
347
360
  ], 4),
348
- j.value.style.rating.show && j.value.style.rating.position === "bottom" ? (b(), p("div", {
361
+ j.value.style.rating.show && j.value.style.rating.position === "bottom" ? (x(), m("div", {
349
362
  key: 2,
350
- style: v(`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`)
351
- }, w(J.value({ value: I.value })), 5)) : f("", !0)
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)
352
365
  ], 36));
353
366
  }
354
367
  };
355
368
  //#endregion
356
- export { V as n, q as t };
369
+ export { I as n, H as t };