vue-data-ui 3.25.5 → 3.25.6

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.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-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
  101. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  103. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  104. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  105. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  110. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  112. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  113. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  114. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  115. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  116. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  117. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  120. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
  122. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  130. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
  132. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
  134. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  137. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  138. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  139. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  143. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  144. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  148. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  149. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  150. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  151. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  152. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  153. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
  156. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  157. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  158. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  159. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  160. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
  162. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -0,0 +1,359 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Pt as t, Wt as n, X as r, i, nt as a, q as o, t as s, z as c } from "./lib-Dql7cqyA.js";
3
+ import { n as l, t as u } from "./useHints-Dq_w2E8B.js";
4
+ import { t as d } from "./useConfig-CIQZ6_r7.js";
5
+ import { t as f } from "./useNestedProp-Chvyfpl-.js";
6
+ import { t as p } from "./_plugin-vue_export-helper-B3ysoDQm.js";
7
+ import { t as m } from "./DefGrad-DVBqDjhO.js";
8
+ import { Fragment as h, computed as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createVNode as b, mergeProps as x, normalizeStyle as S, onMounted as C, openBlock as w, ref as T, renderList as ee, renderSlot as E, toDisplayString as D, unref as O, useSlots as k, watch as A, withKeys as j } from "vue";
9
+ //#region src/components/vue-ui-rating.vue
10
+ var M = /* @__PURE__ */ e({ default: () => I }), N = {
11
+ key: 0,
12
+ class: "vue-ui-rating-title",
13
+ style: { width: "100%" }
14
+ }, te = {
15
+ key: 0,
16
+ style: { position: "relative" }
17
+ }, ne = {
18
+ key: 0,
19
+ style: {
20
+ position: "absolute",
21
+ top: "0",
22
+ left: "0",
23
+ width: "100%",
24
+ height: "100%"
25
+ }
26
+ }, re = {
27
+ key: 1,
28
+ style: {
29
+ position: "absolute",
30
+ top: "0",
31
+ left: "0",
32
+ width: "100%",
33
+ height: "100%"
34
+ }
35
+ }, ie = [
36
+ "src",
37
+ "height",
38
+ "width"
39
+ ], ae = [
40
+ "xmlns",
41
+ "height",
42
+ "width"
43
+ ], oe = [
44
+ "points",
45
+ "fill",
46
+ "stroke",
47
+ "stroke-width"
48
+ ], se = [
49
+ "src",
50
+ "alt",
51
+ "height",
52
+ "width",
53
+ "id"
54
+ ], ce = [
55
+ "xmlns",
56
+ "viewBox",
57
+ "height",
58
+ "id"
59
+ ], le = [
60
+ "points",
61
+ "fill",
62
+ "stroke"
63
+ ], ue = ["xmlns", "height"], P = [
64
+ "onClick",
65
+ "onMouseenter",
66
+ "onFocus",
67
+ "onKeyup"
68
+ ], F = ["onMouseenter", "onFocus"], I = /*#__PURE__*/ p({
69
+ __name: "vue-ui-rating",
70
+ props: {
71
+ config: {
72
+ type: Object,
73
+ default() {
74
+ return {};
75
+ }
76
+ },
77
+ dataset: {
78
+ type: Object,
79
+ default() {
80
+ return {};
81
+ }
82
+ }
83
+ },
84
+ emits: ["rate"],
85
+ setup(e, { expose: p, emit: M }) {
86
+ let { vue_ui_rating: I } = d(), L = e, R = T(o()), z = T(!1), B = T(void 0), V = T(void 0), H = T([]), de = k(), fe = M, U = g({
87
+ get: () => K(),
88
+ set: (e) => e
89
+ }), W = g(() => U.value.style.rating), G = g(() => U.value.style);
90
+ C(() => {
91
+ de["chart-background"] && U.value.debug && console.warn("VueUiRating does not support the #chart-background slot.");
92
+ }), l({
93
+ config: () => U.value,
94
+ dataset: () => [],
95
+ component: "VueUiRating",
96
+ rules: [u.noHint]
97
+ });
98
+ let pe = g(() => U.value.useCursorPointer);
99
+ function K() {
100
+ return f({
101
+ userConfig: L.config,
102
+ defaultConfig: I
103
+ });
104
+ }
105
+ A(() => L.config, (e) => {
106
+ U.value = K(), X();
107
+ }, { deep: !0 });
108
+ let me = g(() => typeof L.dataset.rating == "object" && !Array.isArray(L.dataset.rating) ? ge(L.dataset.rating) : L.dataset.rating), he = g(() => typeof L.dataset.rating == "object" && !Array.isArray(L.dataset.rating)), q = T(me.value), J = g(() => U.value.type === "image"), Y = g(() => U.value.readonly);
109
+ function ge(e) {
110
+ let t = 0, n = 0;
111
+ for (let r in e) {
112
+ let i = parseInt(r), a = e[r];
113
+ t += i * a, n += a;
114
+ }
115
+ if (n === 0) return 0;
116
+ let r = t / n;
117
+ return Math.min(U.value.to, Math.max(U.value.from, r));
118
+ }
119
+ C(() => {
120
+ X();
121
+ });
122
+ function X() {
123
+ (!Object.hasOwn(L.dataset, "rating") || t(L.dataset)) && a({
124
+ componentName: "VueUiRating",
125
+ type: "datasetAttribute",
126
+ property: "rating",
127
+ debug: U.value.debug
128
+ }), H.value = [];
129
+ for (let e = U.value.from; e <= U.value.to; e += 1) H.value.push(e);
130
+ }
131
+ function Z(e, t = !1) {
132
+ return e > B.value || Y.value ? t ? G.value.image.inactiveOpacity : G.value.star.inactiveColor : t ? 1 : G.value.star.useGradient ? `url(#star_gradient_under_${R.value})` : G.value.star.activeColor;
133
+ }
134
+ function Q(e, t = !1) {
135
+ let n = q.value - e, r = t ? 1 : 100;
136
+ switch (!0) {
137
+ case n <= 0: return .001;
138
+ case n > 1: return 1 * r;
139
+ default: return n * r;
140
+ }
141
+ }
142
+ function $(e) {
143
+ Y.value || (q.value = e, fe("rate", e));
144
+ }
145
+ function _e() {
146
+ return q.value;
147
+ }
148
+ function ve(e = !0) {
149
+ Y.value = e;
150
+ }
151
+ return p({
152
+ getData: _e,
153
+ toggleReadonly: ve
154
+ }), (e, t) => (w(), v("div", {
155
+ style: S(`background:${G.value.backgroundColor};font-family:${G.value.fontFamily};width:100%`),
156
+ class: "vue-data-ui-component vue-ui-rating",
157
+ onMouseover: t[4] ||= (e) => z.value = !0,
158
+ onMouseleave: t[5] ||= (e) => {
159
+ z.value = !1, B.value = void 0;
160
+ }
161
+ }, [
162
+ G.value.title.text ? (w(), v("div", N, [y("div", { style: S(`color:${G.value.title.color};font-weight:${G.value.title.bold ? "bold" : "normal"};text-align:${G.value.title.textAlign};margin-bottom:${G.value.title.offsetY}px;font-size:${G.value.title.fontSize}px`) }, D(G.value.title.text), 5), G.value.title.subtitle.text ? (w(), v("div", {
163
+ key: 0,
164
+ style: S(`color:${G.value.title.subtitle.color};font-size:${G.value.title.subtitle.fontSize}px;text-align:${G.value.title.textAlign};margin-bottom:${G.value.title.subtitle.offsetY}px;font-weight:${G.value.title.subtitle.bold ? "bold" : "normal"}`)
165
+ }, D(G.value.title.subtitle.text), 5)) : _("", !0)])) : _("", !0),
166
+ W.value.show && W.value.position === "top" ? (w(), v("div", {
167
+ key: 1,
168
+ style: S(`width:100%;text-align:center;margin-bottom:${W.value.offsetY}px;font-size:${W.value.fontSize}px;font-weight:${W.value.bold ? "bold" : "normal"};margin-left:${W.value.offsetX}px`)
169
+ }, D(O(i)(W.value.formatter, q.value, O(r)({
170
+ v: q.value,
171
+ r: W.value.roundingValue
172
+ }), U.value)), 5)) : _("", !0),
173
+ y("div", {
174
+ class: "vue-ui-rating-wrapper",
175
+ style: S(`height:${G.value.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
176
+ }, [
177
+ W.value.show && W.value.position === "left" ? (w(), v("div", {
178
+ key: 0,
179
+ style: S(`width:fit-content;text-align:center;margin-bottom:${W.value.offsetY}px;font-size:${W.value.fontSize}px;font-weight:${W.value.bold ? "bold" : "normal"};padding-right:${W.value.offsetX}px`)
180
+ }, D(O(i)(W.value.formatter, q.value, O(r)({
181
+ v: q.value,
182
+ r: W.value.roundingValue
183
+ }), U.value)), 5)) : _("", !0),
184
+ (w(!0), v(h, null, ee(H.value, (a, o) => (w(), v("div", {
185
+ class: "vue-ui-rating-unit-container",
186
+ style: S(`position:relative;height:${G.value.itemSize}px;width:${G.value.itemSize}px`)
187
+ }, [
188
+ e.$slots["layer-under"] || e.$slots["layer-above"] ? (w(), v("div", te, [e.$slots["layer-under"] ? (w(), v("div", ne, [E(e.$slots, "layer-under", x({ ref_for: !0 }, {
189
+ value: a,
190
+ size: G.value.itemSize,
191
+ hoveredValue: B.value,
192
+ focusedValue: V.value
193
+ }), void 0, !0)])) : _("", !0), e.$slots["layer-above"] ? (w(), v("div", re, [E(e.$slots, "layer-above", x({ ref_for: !0 }, {
194
+ value: a,
195
+ size: G.value.itemSize,
196
+ hoveredValue: B.value,
197
+ focusedValue: V.value
198
+ }), void 0, !0)])) : _("", !0)])) : (w(), v(h, { key: 1 }, [J.value ? (w(), v("img", {
199
+ key: 0,
200
+ src: G.value.image.src,
201
+ height: G.value.itemSize,
202
+ width: G.value.itemSize,
203
+ class: "vue-ui-rating-unit",
204
+ style: S(`position:absolute;top:0;left:0;opacity:${isNaN(B.value) ? G.value.image.inactiveOpacity : Z(a, !0)}`)
205
+ }, null, 12, ie)) : (w(), v("svg", {
206
+ key: 1,
207
+ xmlns: O(s),
208
+ viewBox: "0 0 100 100",
209
+ height: G.value.itemSize,
210
+ width: G.value.itemSize,
211
+ class: "vue-ui-rating-unit"
212
+ }, [y("defs", null, [b(m, {
213
+ t: "radial",
214
+ cx: "50%",
215
+ cy: "50%",
216
+ r: "50%",
217
+ fx: "50%",
218
+ fy: "50%",
219
+ id: `star_gradient_under_${R.value}`,
220
+ stops: [[
221
+ "0%",
222
+ O(n)(G.value.star.activeColor, .05),
223
+ 1
224
+ ], [
225
+ "100%",
226
+ G.value.star.activeColor,
227
+ 1
228
+ ]]
229
+ }, null, 8, ["id", "stops"])]), y("polygon", {
230
+ points: O(c)({
231
+ plot: {
232
+ x: 50,
233
+ y: 50
234
+ },
235
+ radius: 30,
236
+ apexes: G.value.star.apexes
237
+ }),
238
+ fill: isNaN(B.value) ? G.value.star.inactiveColor : Z(a),
239
+ stroke: G.value.star.borderColor ? G.value.star.borderColor : B.value ? Z(a) : G.value.star.inactiveColor,
240
+ "stroke-width": G.value.star.borderWidth,
241
+ "stroke-linecap": "round",
242
+ "stroke-linejoin": "round"
243
+ }, null, 8, oe)], 8, ae)), J.value ? (w(), v("img", {
244
+ key: 2,
245
+ src: G.value.image.src,
246
+ alt: `${G.value.image.alt} ${a}`,
247
+ height: G.value.itemSize,
248
+ width: G.value.itemSize,
249
+ id: `active_${R.value}_${a}`,
250
+ class: "vue-ui-rating-unit",
251
+ style: S(`position:absolute;top:0;left:0;clip:rect(0px,${Q(o, !0) * G.value.itemSize}px,${G.value.itemSize}px,0px`)
252
+ }, null, 12, se)) : (w(), v("svg", {
253
+ key: 3,
254
+ xmlns: O(s),
255
+ viewBox: `0 0 ${Q(o)} 100`,
256
+ height: G.value.itemSize,
257
+ class: "vue-ui-rating-unit",
258
+ id: `active_${R.value}_${a}`,
259
+ style: {
260
+ position: "absolute",
261
+ top: "0",
262
+ left: "0"
263
+ }
264
+ }, [y("defs", null, [b(m, {
265
+ t: "radial",
266
+ cx: "50%",
267
+ cy: "50%",
268
+ r: "50%",
269
+ fx: "50%",
270
+ fy: "50%",
271
+ id: `star_gradient_over_${R.value}`,
272
+ stops: [[
273
+ "0%",
274
+ O(n)(G.value.star.activeColor, .05),
275
+ 1
276
+ ], [
277
+ "100%",
278
+ G.value.star.activeColor,
279
+ 1
280
+ ]]
281
+ }, null, 8, ["id", "stops"])]), y("polygon", {
282
+ points: O(c)({
283
+ plot: {
284
+ x: 50,
285
+ y: 50
286
+ },
287
+ radius: 30,
288
+ apexes: G.value.star.apexes
289
+ }),
290
+ fill: G.value.star.useGradient ? `url(#star_gradient_over_${R.value})` : G.value.star.activeColor,
291
+ stroke: G.value.star.activeColor
292
+ }, null, 8, le)], 8, ce))], 64)),
293
+ (w(), v("svg", {
294
+ xmlns: O(s),
295
+ viewBox: "0 0 100 100",
296
+ height: G.value.itemSize,
297
+ class: "vue-ui-rating-unit",
298
+ style: S(`position:absolute;top:0;left:0;${Y.value ? "" : pe.value ? "cursor:pointer" : ""}`)
299
+ }, [Y.value ? _("", !0) : (w(), v("rect", {
300
+ key: 0,
301
+ class: "vue-ui-rating-mouse-trap",
302
+ x: 0,
303
+ y: 0,
304
+ width: 100,
305
+ height: 100,
306
+ fill: "transparent",
307
+ onClick: (e) => $(a),
308
+ onMouseenter: (e) => B.value = a,
309
+ onMouseleave: t[0] ||= (e) => B.value = void 0,
310
+ onFocus: (e) => V.value = a,
311
+ onBlur: t[1] ||= (e) => V.value = void 0,
312
+ tabindex: "0",
313
+ onKeyup: j((e) => $(a), ["enter"])
314
+ }, null, 40, P)), Y.value ? (w(), v("rect", {
315
+ key: 1,
316
+ class: "vue-ui-rating-mouse-trap",
317
+ x: 0,
318
+ y: 0,
319
+ width: 100,
320
+ height: 100,
321
+ fill: "transparent",
322
+ onMouseenter: (e) => B.value = a,
323
+ onMouseleave: t[2] ||= (e) => B.value = void 0,
324
+ onFocus: (e) => V.value = a,
325
+ onBlur: t[3] ||= (e) => V.value = void 0
326
+ }, null, 40, F)) : _("", !0)], 12, ue)),
327
+ G.value.tooltip.show && he.value && Y.value ? (w(), v("div", {
328
+ key: 2,
329
+ class: "vue-ui-rating-tooltip",
330
+ style: S(`border:1px solid ${G.value.tooltip.borderColor};position:absolute;top:${-48 + G.value.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${G.value.tooltip.backgroundColor};display:${B.value === a ? "block" : "none"};padding:2px 12px;border-radius:${G.value.tooltip.borderRadius}px;box-shadow:${G.value.tooltip.boxShadow}`)
331
+ }, [y("div", { style: S(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${G.value.tooltip.color}`) }, [
332
+ y("span", { style: S(`font-size:${G.value.tooltip.fontSize}px`) }, D(a) + ":", 5),
333
+ y("span", { style: S(`font-weight:${G.value.tooltip.bold ? "bold" : "normal"};font-size:${G.value.tooltip.fontSize}px`) }, D(O(i)(G.value.tooltip.formatter, L.dataset.rating[a], O(r)({
334
+ v: L.dataset.rating[a],
335
+ r: G.value.tooltip.roundingValue
336
+ }), U.value)), 5),
337
+ y("div", { style: S(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${G.value.tooltip.borderColor}`) }, " ▼ ", 4)
338
+ ], 4)], 4)) : _("", !0)
339
+ ], 4))), 256)),
340
+ W.value.show && W.value.position === "right" ? (w(), v("div", {
341
+ key: 1,
342
+ style: S(`width:fit-content;text-align:center;margin-bottom:${W.value.offsetY}px;font-size:${W.value.fontSize}px;font-weight:${W.value.bold ? "bold" : "normal"};padding-left:${W.value.offsetX}px`)
343
+ }, D(O(i)(W.value.formatter, q.value, O(r)({
344
+ v: q.value,
345
+ r: W.value.roundingValue
346
+ }), U.value)), 5)) : _("", !0)
347
+ ], 4),
348
+ W.value.show && W.value.position === "bottom" ? (w(), v("div", {
349
+ key: 2,
350
+ style: S(`width:100%;text-align:center;margin-top:${W.value.offsetY}px;font-size:${W.value.fontSize}px;font-weight:${W.value.bold ? "bold" : "normal"};margin-left:${W.value.offsetX}px`)
351
+ }, D(O(i)(W.value.formatter, q.value, O(r)({
352
+ v: q.value,
353
+ r: W.value.roundingValue
354
+ }), U.value)), 5)) : _("", !0)
355
+ ], 36));
356
+ }
357
+ }, [["__scopeId", "data-v-cdcab4d9"]]);
358
+ //#endregion
359
+ export { M as n, I as t };