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,343 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, G as n, J as r, L as i, i as a, kt as o, t as s, zt as c } from "./lib-JqW18y5I.js";
3
- import { t as ee } from "./useConfig-DYM3f6EI.js";
4
- import { t as te } from "./useNestedProp-DIuuzG1r.js";
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, mergeProps as h, normalizeStyle as g, onMounted as _, openBlock as v, ref as y, renderList as ne, renderSlot as b, toDisplayString as x, unref as S, useSlots as re, watch as ie, withKeys as C } from "vue";
7
- //#region src/components/vue-ui-rating.vue
8
- var w = /* @__PURE__ */ e({ default: () => R }), T = {
9
- key: 0,
10
- class: "vue-ui-rating-title",
11
- style: { width: "100%" }
12
- }, E = {
13
- key: 0,
14
- style: { position: "relative" }
15
- }, D = {
16
- key: 0,
17
- style: {
18
- position: "absolute",
19
- top: "0",
20
- left: "0",
21
- width: "100%",
22
- height: "100%"
23
- }
24
- }, O = {
25
- key: 1,
26
- style: {
27
- position: "absolute",
28
- top: "0",
29
- left: "0",
30
- width: "100%",
31
- height: "100%"
32
- }
33
- }, k = [
34
- "src",
35
- "height",
36
- "width"
37
- ], ae = [
38
- "xmlns",
39
- "height",
40
- "width"
41
- ], oe = ["id"], se = ["stop-color"], ce = ["stop-color"], le = [
42
- "points",
43
- "fill",
44
- "stroke",
45
- "stroke-width"
46
- ], ue = [
47
- "src",
48
- "alt",
49
- "height",
50
- "width",
51
- "id"
52
- ], A = [
53
- "xmlns",
54
- "viewBox",
55
- "height",
56
- "id"
57
- ], j = ["id"], M = ["stop-color"], N = ["stop-color"], P = [
58
- "points",
59
- "fill",
60
- "stroke"
61
- ], F = ["xmlns", "height"], I = [
62
- "onClick",
63
- "onMouseenter",
64
- "onFocus",
65
- "onKeyup"
66
- ], L = ["onMouseenter", "onFocus"], R = /*#__PURE__*/ l({
67
- __name: "vue-ui-rating",
68
- props: {
69
- config: {
70
- type: Object,
71
- default() {
72
- return {};
73
- }
74
- },
75
- dataset: {
76
- type: Object,
77
- default() {
78
- return {};
79
- }
80
- }
81
- },
82
- emits: ["rate"],
83
- setup(e, { expose: l, emit: w }) {
84
- let { vue_ui_rating: R } = ee(), z = e, B = y(n()), V = y(!1), H = y(void 0), U = y(void 0), W = y([]), de = re();
85
- _(() => {
86
- de["chart-background"] && console.warn("VueUiRating does not support the #chart-background slot.");
87
- });
88
- let fe = w, G = d({
89
- get: () => K(),
90
- set: (e) => e
91
- }), pe = d(() => G.value.useCursorPointer);
92
- function K() {
93
- return te({
94
- userConfig: z.config,
95
- defaultConfig: R
96
- });
97
- }
98
- ie(() => z.config, (e) => {
99
- G.value = K(), X();
100
- }, { deep: !0 });
101
- let me = d(() => typeof z.dataset.rating == "object" && !Array.isArray(z.dataset.rating) ? ge(z.dataset.rating) : z.dataset.rating), he = d(() => typeof z.dataset.rating == "object" && !Array.isArray(z.dataset.rating)), q = y(me.value), J = d(() => G.value.type === "image"), Y = d(() => G.value.readonly);
102
- function ge(e) {
103
- let t = 0, n = 0;
104
- for (let r in e) {
105
- let i = parseInt(r), a = e[r];
106
- t += i * a, n += a;
107
- }
108
- if (n === 0) return 0;
109
- let r = t / n;
110
- return Math.min(G.value.to, Math.max(G.value.from, r));
111
- }
112
- _(() => {
113
- X();
114
- });
115
- function X() {
116
- (!Object.hasOwn(z.dataset, "rating") || o(z.dataset)) && t({
117
- componentName: "VueUiRating",
118
- type: "datasetAttribute",
119
- property: "rating"
120
- }), W.value = [];
121
- for (let e = G.value.from; e <= G.value.to; e += 1) W.value.push(e);
122
- }
123
- function Z(e, t = !1) {
124
- return e > H.value || Y.value ? t ? G.value.style.image.inactiveOpacity : G.value.style.star.inactiveColor : t ? 1 : G.value.style.star.useGradient ? `url(#star_gradient_under_${B.value})` : G.value.style.star.activeColor;
125
- }
126
- function Q(e, t = !1) {
127
- let n = q.value - e, r = t ? 1 : 100;
128
- switch (!0) {
129
- case n <= 0: return .001;
130
- case n > 1: return 1 * r;
131
- default: return n * r;
132
- }
133
- }
134
- function $(e) {
135
- Y.value || (q.value = e, fe("rate", e));
136
- }
137
- function _e() {
138
- return q.value;
139
- }
140
- function ve(e = !0) {
141
- Y.value = e;
142
- }
143
- return l({
144
- getData: _e,
145
- toggleReadonly: ve
146
- }), (e, t) => (v(), p("div", {
147
- style: g(`background:${G.value.style.backgroundColor};font-family:${G.value.style.fontFamily};width:100%`),
148
- class: "vue-data-ui-component vue-ui-rating",
149
- onMouseover: t[4] ||= (e) => V.value = !0,
150
- onMouseleave: t[5] ||= (e) => {
151
- V.value = !1, H.value = void 0;
152
- }
153
- }, [
154
- G.value.style.title.text ? (v(), p("div", T, [m("div", { style: g(`color:${G.value.style.title.color};font-weight:${G.value.style.title.bold ? "bold" : "normal"};text-align:${G.value.style.title.textAlign};margin-bottom:${G.value.style.title.offsetY}px;font-size:${G.value.style.title.fontSize}px`) }, x(G.value.style.title.text), 5), G.value.style.title.subtitle.text ? (v(), p("div", {
155
- key: 0,
156
- style: g(`color:${G.value.style.title.subtitle.color};font-size:${G.value.style.title.subtitle.fontSize}px;text-align:${G.value.style.title.textAlign};margin-bottom:${G.value.style.title.subtitle.offsetY}px;font-weight:${G.value.style.title.subtitle.bold ? "bold" : "normal"}`)
157
- }, x(G.value.style.title.subtitle.text), 5)) : f("", !0)])) : f("", !0),
158
- G.value.style.rating.show && G.value.style.rating.position === "top" ? (v(), p("div", {
159
- key: 1,
160
- style: g(`width:100%;text-align:center;margin-bottom:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};margin-left:${G.value.style.rating.offsetX}px`)
161
- }, x(S(a)(G.value.style.rating.formatter, q.value, S(r)({
162
- v: q.value,
163
- r: G.value.style.rating.roundingValue
164
- }), G.value)), 5)) : f("", !0),
165
- m("div", {
166
- class: "vue-ui-rating-wrapper",
167
- style: g(`height:${G.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
168
- }, [
169
- G.value.style.rating.show && G.value.style.rating.position === "left" ? (v(), p("div", {
170
- key: 0,
171
- style: g(`width:fit-content;text-align:center;margin-bottom:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};padding-right:${G.value.style.rating.offsetX}px`)
172
- }, x(S(a)(G.value.style.rating.formatter, q.value, S(r)({
173
- v: q.value,
174
- r: G.value.style.rating.roundingValue
175
- }), G.value)), 5)) : f("", !0),
176
- (v(!0), p(u, null, ne(W.value, (n, o) => (v(), p("div", {
177
- class: "vue-ui-rating-unit-container",
178
- style: g(`position:relative;height:${G.value.style.itemSize}px;width:${G.value.style.itemSize}px`)
179
- }, [
180
- e.$slots["layer-under"] || e.$slots["layer-above"] ? (v(), p("div", E, [e.$slots["layer-under"] ? (v(), p("div", D, [b(e.$slots, "layer-under", h({ ref_for: !0 }, {
181
- value: n,
182
- size: G.value.style.itemSize,
183
- hoveredValue: H.value,
184
- focusedValue: U.value
185
- }), void 0, !0)])) : f("", !0), e.$slots["layer-above"] ? (v(), p("div", O, [b(e.$slots, "layer-above", h({ ref_for: !0 }, {
186
- value: n,
187
- size: G.value.style.itemSize,
188
- hoveredValue: H.value,
189
- focusedValue: U.value
190
- }), void 0, !0)])) : f("", !0)])) : (v(), p(u, { key: 1 }, [J.value ? (v(), p("img", {
191
- key: 0,
192
- src: G.value.style.image.src,
193
- height: G.value.style.itemSize,
194
- width: G.value.style.itemSize,
195
- class: "vue-ui-rating-unit",
196
- style: g(`position:absolute;top:0;left:0;opacity:${isNaN(H.value) ? G.value.style.image.inactiveOpacity : Z(n, !0)}`)
197
- }, null, 12, k)) : (v(), p("svg", {
198
- key: 1,
199
- xmlns: S(s),
200
- viewBox: "0 0 100 100",
201
- height: G.value.style.itemSize,
202
- width: G.value.style.itemSize,
203
- class: "vue-ui-rating-unit"
204
- }, [m("defs", null, [m("radialGradient", {
205
- cx: "50%",
206
- cy: "50%",
207
- r: "50%",
208
- fx: "50%",
209
- fy: "50%",
210
- id: `star_gradient_under_${B.value}`
211
- }, [m("stop", {
212
- offset: "0%",
213
- "stop-color": `${S(c)(G.value.style.star.activeColor, .05)}`
214
- }, null, 8, se), m("stop", {
215
- offset: "100%",
216
- "stop-color": G.value.style.star.activeColor
217
- }, null, 8, ce)], 8, oe)]), m("polygon", {
218
- points: S(i)({
219
- plot: {
220
- x: 50,
221
- y: 50
222
- },
223
- radius: 30,
224
- apexes: G.value.style.star.apexes
225
- }),
226
- fill: isNaN(H.value) ? G.value.style.star.inactiveColor : Z(n),
227
- stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : H.value ? Z(n) : G.value.style.star.inactiveColor,
228
- "stroke-width": G.value.style.star.borderWidth,
229
- "stroke-linecap": "round",
230
- "stroke-linejoin": "round"
231
- }, null, 8, le)], 8, ae)), J.value ? (v(), p("img", {
232
- key: 2,
233
- src: G.value.style.image.src,
234
- alt: `${G.value.style.image.alt} ${n}`,
235
- height: G.value.style.itemSize,
236
- width: G.value.style.itemSize,
237
- id: `active_${B.value}_${n}`,
238
- class: "vue-ui-rating-unit",
239
- style: g(`position:absolute;top:0;left:0;clip:rect(0px,${Q(o, !0) * G.value.style.itemSize}px,${G.value.style.itemSize}px,0px`)
240
- }, null, 12, ue)) : (v(), p("svg", {
241
- key: 3,
242
- xmlns: S(s),
243
- viewBox: `0 0 ${Q(o)} 100`,
244
- height: G.value.style.itemSize,
245
- class: "vue-ui-rating-unit",
246
- id: `active_${B.value}_${n}`,
247
- style: {
248
- position: "absolute",
249
- top: "0",
250
- left: "0"
251
- }
252
- }, [m("defs", null, [m("radialGradient", {
253
- cx: "50%",
254
- cy: "50%",
255
- r: "50%",
256
- fx: "50%",
257
- fy: "50%",
258
- id: `star_gradient_over_${B.value}`
259
- }, [m("stop", {
260
- offset: "0%",
261
- "stop-color": `${S(c)(G.value.style.star.activeColor, .05)}`
262
- }, null, 8, M), m("stop", {
263
- offset: "100%",
264
- "stop-color": G.value.style.star.activeColor
265
- }, null, 8, N)], 8, j)]), m("polygon", {
266
- points: S(i)({
267
- plot: {
268
- x: 50,
269
- y: 50
270
- },
271
- radius: 30,
272
- apexes: G.value.style.star.apexes
273
- }),
274
- fill: G.value.style.star.useGradient ? `url(#star_gradient_over_${B.value})` : G.value.style.star.activeColor,
275
- stroke: G.value.style.star.activeColor
276
- }, null, 8, P)], 8, A))], 64)),
277
- (v(), p("svg", {
278
- xmlns: S(s),
279
- viewBox: "0 0 100 100",
280
- height: G.value.style.itemSize,
281
- class: "vue-ui-rating-unit",
282
- style: g(`position:absolute;top:0;left:0;${Y.value ? "" : pe.value ? "cursor:pointer" : ""}`)
283
- }, [Y.value ? f("", !0) : (v(), p("rect", {
284
- key: 0,
285
- class: "vue-ui-rating-mouse-trap",
286
- x: 0,
287
- y: 0,
288
- width: 100,
289
- height: 100,
290
- fill: "transparent",
291
- onClick: (e) => $(n),
292
- onMouseenter: (e) => H.value = n,
293
- onMouseleave: t[0] ||= (e) => H.value = void 0,
294
- onFocus: (e) => U.value = n,
295
- onBlur: t[1] ||= (e) => U.value = void 0,
296
- tabindex: "0",
297
- onKeyup: C((e) => $(n), ["enter"])
298
- }, null, 40, I)), Y.value ? (v(), p("rect", {
299
- key: 1,
300
- class: "vue-ui-rating-mouse-trap",
301
- x: 0,
302
- y: 0,
303
- width: 100,
304
- height: 100,
305
- fill: "transparent",
306
- onMouseenter: (e) => H.value = n,
307
- onMouseleave: t[2] ||= (e) => H.value = void 0,
308
- onFocus: (e) => U.value = n,
309
- onBlur: t[3] ||= (e) => U.value = void 0
310
- }, null, 40, L)) : f("", !0)], 12, F)),
311
- G.value.style.tooltip.show && he.value && Y.value ? (v(), p("div", {
312
- key: 2,
313
- class: "vue-ui-rating-tooltip",
314
- style: g(`border:1px solid ${G.value.style.tooltip.borderColor};position:absolute;top:${-48 + G.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${G.value.style.tooltip.backgroundColor};display:${H.value === n ? "block" : "none"};padding:2px 12px;border-radius:${G.value.style.tooltip.borderRadius}px;box-shadow:${G.value.style.tooltip.boxShadow}`)
315
- }, [m("div", { style: g(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${G.value.style.tooltip.color}`) }, [
316
- m("span", { style: g(`font-size:${G.value.style.tooltip.fontSize}px`) }, x(n) + ":", 5),
317
- m("span", { style: g(`font-weight:${G.value.style.tooltip.bold ? "bold" : "normal"};font-size:${G.value.style.tooltip.fontSize}px`) }, x(S(a)(G.value.style.tooltip.formatter, z.dataset.rating[n], S(r)({
318
- v: z.dataset.rating[n],
319
- r: G.value.style.tooltip.roundingValue
320
- }), G.value)), 5),
321
- m("div", { style: g(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${G.value.style.tooltip.borderColor}`) }, " ▼ ", 4)
322
- ], 4)], 4)) : f("", !0)
323
- ], 4))), 256)),
324
- G.value.style.rating.show && G.value.style.rating.position === "right" ? (v(), p("div", {
325
- key: 1,
326
- style: g(`width:fit-content;text-align:center;margin-bottom:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};padding-left:${G.value.style.rating.offsetX}px`)
327
- }, x(S(a)(G.value.style.rating.formatter, q.value, S(r)({
328
- v: q.value,
329
- r: G.value.style.rating.roundingValue
330
- }), G.value)), 5)) : f("", !0)
331
- ], 4),
332
- G.value.style.rating.show && G.value.style.rating.position === "bottom" ? (v(), p("div", {
333
- key: 2,
334
- style: g(`width:100%;text-align:center;margin-top:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};margin-left:${G.value.style.rating.offsetX}px`)
335
- }, x(S(a)(G.value.style.rating.formatter, q.value, S(r)({
336
- v: q.value,
337
- r: G.value.style.rating.roundingValue
338
- }), G.value)), 5)) : f("", !0)
339
- ], 36));
340
- }
341
- }, [["__scopeId", "data-v-75c80ffe"]]);
342
- //#endregion
343
- export { w as n, R as t };