vue-data-ui 3.22.8 → 3.22.9

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 (169) hide show
  1. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
  2. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  3. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  4. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
  5. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
  6. package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
  7. package/dist/DefGrad-DVBqDjhO.js +48 -0
  8. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
  9. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
  10. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
  11. package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
  12. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
  13. package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
  82. package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
  83. package/dist/ssr/vue-ui-donut.js +1 -1
  84. package/dist/ssr/vue-ui-xy.js +1 -1
  85. package/dist/ssr.js +2 -2
  86. package/dist/style.css +1 -1
  87. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
  88. package/dist/vue-data-ui.js +67 -67
  89. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  90. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
  91. package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
  92. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
  93. package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
  94. package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
  95. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
  96. package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
  97. package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
  98. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
  99. package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
  100. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
  101. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
  102. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
  103. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
  104. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
  105. package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
  106. package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
  107. package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
  108. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
  109. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  110. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
  111. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  112. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
  113. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  114. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
  115. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
  116. package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
  117. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
  118. package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
  119. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
  120. package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
  121. package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
  122. package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
  123. package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
  124. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
  125. package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
  126. package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
  127. package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
  128. package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
  129. package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
  130. package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
  131. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
  132. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
  133. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
  134. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  135. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
  136. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  137. package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
  138. package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
  139. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
  140. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  141. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
  142. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
  143. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
  144. package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
  145. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  146. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
  147. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
  148. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
  149. package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
  150. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
  151. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
  152. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
  153. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
  154. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
  155. package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
  156. package/package.json +1 -1
  157. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  158. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  159. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  160. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  161. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  162. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  163. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  164. package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
  165. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  166. package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
  167. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  168. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  169. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
@@ -3,13 +3,14 @@ import { $ as t, J as n, i as r, kt as i, t as a, zt as o } from "./lib-JqW18y5I
3
3
  import { t as s } from "./useConfig-DYM3f6EI.js";
4
4
  import { t as c } from "./useNestedProp-DIuuzG1r.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 },
@@ -29,10 +30,10 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
29
30
  ],
30
31
  setup(e, { emit: t }) {
31
32
  let n = e, r = t;
32
- return (t, i) => (b(), p("div", {
33
+ return (t, i) => (x(), m("div", {
33
34
  tabindex: "0",
34
- class: _({ "vue-ui-smiley-rated": !e.config.readonly && e.currentRating === e.unit }),
35
- style: v({
35
+ class: v({ "vue-ui-smiley-rated": !e.config.readonly && e.currentRating === e.unit }),
36
+ style: y({
36
37
  cursor: e.config.readonly ? "default" : n.isCursorPointer ? "pointer" : "default",
37
38
  height: e.config.style.itemSize + "px",
38
39
  aspectRatio: "1/1",
@@ -41,12 +42,12 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
41
42
  onMouseenter: i[0] ||= (e) => r("mouseenter"),
42
43
  onMouseleave: i[1] ||= (e) => r("mouseleave"),
43
44
  onClick: i[2] ||= (t) => r("rate", e.unit),
44
- onKeyup: i[3] ||= k((t) => r("rate", e.unit), ["enter"])
45
+ onKeyup: i[3] ||= A((t) => r("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(a),
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(o)(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(a),
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(o)(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: {
@@ -174,36 +187,36 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
174
187
  },
175
188
  emits: ["rate"],
176
189
  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.");
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") || i(u.dataset)) && t({
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 }) => r(t ? j.value.style.tooltip.formatter : j.value.style.rating.formatter, e, n({
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
289
  return a({
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 };