vue-data-ui 3.25.11 → 3.25.12

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 (204) hide show
  1. package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
  3. package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
  4. package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
  5. package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
  6. package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
  7. package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
  8. package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
  9. package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
  11. package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-KI_qWJHZ.js} +1 -1
  12. package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
  13. package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
  14. package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
  15. package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
  16. package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
  17. package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
  18. package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.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-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
  91. package/dist/exposedLib-BBtjpydc.js +28 -0
  92. package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
  93. package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
  94. package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
  95. package/dist/{package-B10eQN5L.js → package-CUB9qFqi.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CZ6-MONw.js → render-common-DeM1ZJiv.js} +16 -16
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +3 -0
  103. package/dist/{useConfig-D32D002m.js → useConfig-Be2DFBsb.js} +1 -0
  104. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  105. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-DUdzTGvh.js} +1 -1
  106. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  107. package/dist/utils.js +13 -13
  108. package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-COEVZKW5.js} +70 -70
  109. package/dist/vue-data-ui.js +75 -75
  110. package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-DFw5XDWb.js} +536 -536
  111. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-BZCjuA3V.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-DRUCkRz8.js +1305 -0
  113. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BfKA4YVr.js} +60 -60
  114. package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-B0IfmAiX.js} +84 -84
  115. package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-C1kUAd9U.js} +105 -105
  116. package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-KA4AueJw.js} +98 -98
  117. package/dist/vue-ui-carousel-table-BxUd6pz5.js +467 -0
  118. package/dist/vue-ui-chestnut-DHSV3tgH.js +2016 -0
  119. package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-DwosQDGy.js} +63 -63
  120. package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-OoLvvkpK.js} +50 -50
  121. package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-DIDq-I8_.js} +61 -61
  122. package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-CEe-6BAo.js} +44 -44
  123. package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-Dyx0Ri4u.js} +70 -70
  124. package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-aocn4lMx.js} +4 -4
  125. package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-7uSOM7lM.js} +203 -203
  126. package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-DBwkC_24.js} +551 -551
  127. package/dist/vue-ui-donut-evolution-BqQ7Tlsc.js +1552 -0
  128. package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-MGfC3D58.js} +87 -87
  129. package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-593TeQ2W.js} +99 -99
  130. package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-DkJUBGun.js} +40 -40
  131. package/dist/vue-ui-galaxy-BrVH1I3l.js +1097 -0
  132. package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-DC4S5TsV.js} +190 -190
  133. package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-Yq0FgILc.js} +12 -12
  134. package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D9gwOdZE.js} +54 -54
  135. package/dist/vue-ui-heatmap-CIJRLiRS.js +1606 -0
  136. package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-B8mE9MIi.js} +21 -21
  137. package/dist/vue-ui-history-plot-Dj4qkhNI.js +1710 -0
  138. package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-njm9Qfcd.js} +85 -85
  139. package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-CFk0QESG.js} +12 -12
  140. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-7gnBMFu5.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-CUVEBqJw.js} +3 -3
  142. package/dist/vue-ui-molecule-GqArgNXc.js +941 -0
  143. package/dist/vue-ui-mood-radar-Du71PAqx.js +1111 -0
  144. package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-BRGYUoVS.js} +481 -481
  145. package/dist/vue-ui-onion-C4LsJp_7.js +1247 -0
  146. package/dist/vue-ui-parallel-coordinate-plot-DumwZpjI.js +1444 -0
  147. package/dist/vue-ui-quadrant-BFEihaNk.js +1979 -0
  148. package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-COWxCDXU.js} +169 -169
  149. package/dist/vue-ui-radar-BZMDCj34.js +1386 -0
  150. package/dist/vue-ui-rating-D0tMtjhc.js +359 -0
  151. package/dist/vue-ui-relation-circle-DSNuFlbr.js +905 -0
  152. package/dist/vue-ui-ridgeline-DHHjDn73.js +1630 -0
  153. package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-BMKxADUw.js} +78 -78
  154. package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-BKJUWiYg.js} +136 -136
  155. package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-_EBFqU7v.js} +510 -510
  156. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-DsfTcCOQ.js} +6 -6
  157. package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-Dj1tZM1l.js} +96 -96
  158. package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-B7ogNgvT.js} +113 -113
  159. package/dist/vue-ui-sparkgauge-BFGXwszU.js +268 -0
  160. package/dist/vue-ui-sparkhistogram-c-DSMEiv.js +589 -0
  161. package/dist/{vue-ui-sparkline-BF0Fdo6v.js → vue-ui-sparkline-Bm59iQiE.js} +198 -198
  162. package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-DIMZ8Wxa.js} +183 -183
  163. package/dist/vue-ui-stackbar-C53nXwth.js +2369 -0
  164. package/dist/vue-ui-stackline-D4ehty6i.js +2483 -0
  165. package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-CNnl1U1H.js} +253 -253
  166. package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bbw0YVee.js} +117 -117
  167. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-B1uYpEhA.js} +95 -95
  168. package/dist/vue-ui-table-sparkline-D98mkhX0.js +738 -0
  169. package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CDYrYD7E.js} +23 -23
  170. package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CW3wa1tF.js} +13 -13
  171. package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-CayzbbTu.js} +30 -30
  172. package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-BuOGDfHZ.js} +77 -77
  173. package/dist/vue-ui-waffle-D47Z_prI.js +1633 -0
  174. package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CNF5e3TM.js} +185 -185
  175. package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-y46KDG7e.js} +46 -46
  176. package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-DKW2yCXn.js} +133 -133
  177. package/dist/vue-ui-xy-BgmEGWgv.js +5367 -0
  178. package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-G3lMLlIL.js} +169 -169
  179. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-CMAT-hT1.js} +435 -435
  180. package/package.json +1 -1
  181. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  182. package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
  183. package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
  184. package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
  185. package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
  186. package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
  187. package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
  188. package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
  189. package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
  190. package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
  191. package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
  192. package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
  193. package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
  194. package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
  195. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  196. package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
  197. package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
  198. package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
  199. package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
  200. package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
  201. package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
  202. package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
  203. package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
  204. package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
@@ -0,0 +1,359 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, B as n, Jt as r, Rt as i, X as a, at as o, i as s, t as c } from "./lib-DOpaUOQx.js";
3
+ import { n as ee, t as te } from "./useHints-Dq_w2E8B.js";
4
+ import { t as l } from "./useConfig-Be2DFBsb.js";
5
+ import { t as u } from "./useNestedProp-Bux0f4iY.js";
6
+ import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
7
+ import { t as f } from "./DefGrad-DVBqDjhO.js";
8
+ import { Fragment as p, computed as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, mergeProps as y, normalizeStyle as b, onMounted as x, openBlock as S, ref as C, renderList as ne, renderSlot as w, toDisplayString as T, unref as E, useSlots as re, watch as ie, withKeys as D } from "vue";
9
+ //#region src/components/vue-ui-rating.vue
10
+ var O = /* @__PURE__ */ e({ default: () => F }), k = {
11
+ key: 0,
12
+ class: "vue-ui-rating-title",
13
+ style: { width: "100%" }
14
+ }, A = {
15
+ key: 0,
16
+ style: { position: "relative" }
17
+ }, j = {
18
+ key: 0,
19
+ style: {
20
+ position: "absolute",
21
+ top: "0",
22
+ left: "0",
23
+ width: "100%",
24
+ height: "100%"
25
+ }
26
+ }, M = {
27
+ key: 1,
28
+ style: {
29
+ position: "absolute",
30
+ top: "0",
31
+ left: "0",
32
+ width: "100%",
33
+ height: "100%"
34
+ }
35
+ }, N = [
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"], de = [
64
+ "onClick",
65
+ "onMouseenter",
66
+ "onFocus",
67
+ "onKeyup"
68
+ ], P = ["onMouseenter", "onFocus"], F = /*#__PURE__*/ d({
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: d, emit: O }) {
86
+ let { vue_ui_rating: F } = l(), I = e, L = C(a()), R = C(!1), z = C(void 0), B = C(void 0), V = C([]), fe = re(), pe = O, H = m({
87
+ get: () => G(),
88
+ set: (e) => e
89
+ }), U = m(() => H.value.style.rating), W = m(() => H.value.style);
90
+ x(() => {
91
+ fe["chart-background"] && H.value.debug && console.warn("VueUiRating does not support the #chart-background slot.");
92
+ }), ee({
93
+ config: () => H.value,
94
+ dataset: () => [],
95
+ component: "VueUiRating",
96
+ rules: [te.noHint]
97
+ });
98
+ let me = m(() => H.value.useCursorPointer);
99
+ function G() {
100
+ return u({
101
+ userConfig: I.config,
102
+ defaultConfig: F
103
+ });
104
+ }
105
+ ie(() => I.config, (e) => {
106
+ H.value = G(), X();
107
+ }, { deep: !0 });
108
+ let he = m(() => typeof I.dataset.rating == "object" && !Array.isArray(I.dataset.rating) ? Y(I.dataset.rating) : I.dataset.rating), ge = m(() => typeof I.dataset.rating == "object" && !Array.isArray(I.dataset.rating)), K = C(he.value), q = m(() => H.value.type === "image"), J = m(() => H.value.readonly);
109
+ function Y(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(H.value.to, Math.max(H.value.from, r));
118
+ }
119
+ x(() => {
120
+ X();
121
+ });
122
+ function X() {
123
+ (!Object.hasOwn(I.dataset, "rating") || i(I.dataset)) && o({
124
+ componentName: "VueUiRating",
125
+ type: "datasetAttribute",
126
+ property: "rating",
127
+ debug: H.value.debug
128
+ }), V.value = [];
129
+ for (let e = H.value.from; e <= H.value.to; e += 1) V.value.push(e);
130
+ }
131
+ function Z(e, t = !1) {
132
+ return e > z.value || J.value ? t ? W.value.image.inactiveOpacity : W.value.star.inactiveColor : t ? 1 : W.value.star.useGradient ? `url(#star_gradient_under_${L.value})` : W.value.star.activeColor;
133
+ }
134
+ function Q(e, t = !1) {
135
+ let n = K.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
+ J.value || (K.value = e, pe("rate", e));
144
+ }
145
+ function _e() {
146
+ return K.value;
147
+ }
148
+ function ve(e = !0) {
149
+ J.value = e;
150
+ }
151
+ return d({
152
+ getData: _e,
153
+ toggleReadonly: ve
154
+ }), (e, i) => (S(), g("div", {
155
+ style: b(`background:${W.value.backgroundColor};font-family:${W.value.fontFamily};width:100%`),
156
+ class: "vue-data-ui-component vue-ui-rating",
157
+ onMouseover: i[4] ||= (e) => R.value = !0,
158
+ onMouseleave: i[5] ||= (e) => {
159
+ R.value = !1, z.value = void 0;
160
+ }
161
+ }, [
162
+ W.value.title.text ? (S(), g("div", k, [_("div", { style: b(`color:${W.value.title.color};font-weight:${W.value.title.bold ? "bold" : "normal"};text-align:${W.value.title.textAlign};margin-bottom:${W.value.title.offsetY}px;font-size:${W.value.title.fontSize}px`) }, T(W.value.title.text), 5), W.value.title.subtitle.text ? (S(), g("div", {
163
+ key: 0,
164
+ style: b(`color:${W.value.title.subtitle.color};font-size:${W.value.title.subtitle.fontSize}px;text-align:${W.value.title.textAlign};margin-bottom:${W.value.title.subtitle.offsetY}px;font-weight:${W.value.title.subtitle.bold ? "bold" : "normal"}`)
165
+ }, T(W.value.title.subtitle.text), 5)) : h("", !0)])) : h("", !0),
166
+ U.value.show && U.value.position === "top" ? (S(), g("div", {
167
+ key: 1,
168
+ style: b(`width:100%;text-align:center;margin-bottom:${U.value.offsetY}px;font-size:${U.value.fontSize}px;font-weight:${U.value.bold ? "bold" : "normal"};margin-left:${U.value.offsetX}px`)
169
+ }, T(E(s)(U.value.formatter, K.value, E(t)({
170
+ v: K.value,
171
+ r: U.value.roundingValue
172
+ }), H.value)), 5)) : h("", !0),
173
+ _("div", {
174
+ class: "vue-ui-rating-wrapper",
175
+ style: b(`height:${W.value.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
176
+ }, [
177
+ U.value.show && U.value.position === "left" ? (S(), g("div", {
178
+ key: 0,
179
+ style: b(`width:fit-content;text-align:center;margin-bottom:${U.value.offsetY}px;font-size:${U.value.fontSize}px;font-weight:${U.value.bold ? "bold" : "normal"};padding-right:${U.value.offsetX}px`)
180
+ }, T(E(s)(U.value.formatter, K.value, E(t)({
181
+ v: K.value,
182
+ r: U.value.roundingValue
183
+ }), H.value)), 5)) : h("", !0),
184
+ (S(!0), g(p, null, ne(V.value, (a, o) => (S(), g("div", {
185
+ class: "vue-ui-rating-unit-container",
186
+ style: b(`position:relative;height:${W.value.itemSize}px;width:${W.value.itemSize}px`)
187
+ }, [
188
+ e.$slots["layer-under"] || e.$slots["layer-above"] ? (S(), g("div", A, [e.$slots["layer-under"] ? (S(), g("div", j, [w(e.$slots, "layer-under", y({ ref_for: !0 }, {
189
+ value: a,
190
+ size: W.value.itemSize,
191
+ hoveredValue: z.value,
192
+ focusedValue: B.value
193
+ }), void 0, !0)])) : h("", !0), e.$slots["layer-above"] ? (S(), g("div", M, [w(e.$slots, "layer-above", y({ ref_for: !0 }, {
194
+ value: a,
195
+ size: W.value.itemSize,
196
+ hoveredValue: z.value,
197
+ focusedValue: B.value
198
+ }), void 0, !0)])) : h("", !0)])) : (S(), g(p, { key: 1 }, [q.value ? (S(), g("img", {
199
+ key: 0,
200
+ src: W.value.image.src,
201
+ height: W.value.itemSize,
202
+ width: W.value.itemSize,
203
+ class: "vue-ui-rating-unit",
204
+ style: b(`position:absolute;top:0;left:0;opacity:${isNaN(z.value) ? W.value.image.inactiveOpacity : Z(a, !0)}`)
205
+ }, null, 12, N)) : (S(), g("svg", {
206
+ key: 1,
207
+ xmlns: E(c),
208
+ viewBox: "0 0 100 100",
209
+ height: W.value.itemSize,
210
+ width: W.value.itemSize,
211
+ class: "vue-ui-rating-unit"
212
+ }, [_("defs", null, [v(f, {
213
+ t: "radial",
214
+ cx: "50%",
215
+ cy: "50%",
216
+ r: "50%",
217
+ fx: "50%",
218
+ fy: "50%",
219
+ id: `star_gradient_under_${L.value}`,
220
+ stops: [[
221
+ "0%",
222
+ E(r)(W.value.star.activeColor, .05),
223
+ 1
224
+ ], [
225
+ "100%",
226
+ W.value.star.activeColor,
227
+ 1
228
+ ]]
229
+ }, null, 8, ["id", "stops"])]), _("polygon", {
230
+ points: E(n)({
231
+ plot: {
232
+ x: 50,
233
+ y: 50
234
+ },
235
+ radius: 30,
236
+ apexes: W.value.star.apexes
237
+ }),
238
+ fill: isNaN(z.value) ? W.value.star.inactiveColor : Z(a),
239
+ stroke: W.value.star.borderColor ? W.value.star.borderColor : z.value ? Z(a) : W.value.star.inactiveColor,
240
+ "stroke-width": W.value.star.borderWidth,
241
+ "stroke-linecap": "round",
242
+ "stroke-linejoin": "round"
243
+ }, null, 8, oe)], 8, ae)), q.value ? (S(), g("img", {
244
+ key: 2,
245
+ src: W.value.image.src,
246
+ alt: `${W.value.image.alt} ${a}`,
247
+ height: W.value.itemSize,
248
+ width: W.value.itemSize,
249
+ id: `active_${L.value}_${a}`,
250
+ class: "vue-ui-rating-unit",
251
+ style: b(`position:absolute;top:0;left:0;clip:rect(0px,${Q(o, !0) * W.value.itemSize}px,${W.value.itemSize}px,0px`)
252
+ }, null, 12, se)) : (S(), g("svg", {
253
+ key: 3,
254
+ xmlns: E(c),
255
+ viewBox: `0 0 ${Q(o)} 100`,
256
+ height: W.value.itemSize,
257
+ class: "vue-ui-rating-unit",
258
+ id: `active_${L.value}_${a}`,
259
+ style: {
260
+ position: "absolute",
261
+ top: "0",
262
+ left: "0"
263
+ }
264
+ }, [_("defs", null, [v(f, {
265
+ t: "radial",
266
+ cx: "50%",
267
+ cy: "50%",
268
+ r: "50%",
269
+ fx: "50%",
270
+ fy: "50%",
271
+ id: `star_gradient_over_${L.value}`,
272
+ stops: [[
273
+ "0%",
274
+ E(r)(W.value.star.activeColor, .05),
275
+ 1
276
+ ], [
277
+ "100%",
278
+ W.value.star.activeColor,
279
+ 1
280
+ ]]
281
+ }, null, 8, ["id", "stops"])]), _("polygon", {
282
+ points: E(n)({
283
+ plot: {
284
+ x: 50,
285
+ y: 50
286
+ },
287
+ radius: 30,
288
+ apexes: W.value.star.apexes
289
+ }),
290
+ fill: W.value.star.useGradient ? `url(#star_gradient_over_${L.value})` : W.value.star.activeColor,
291
+ stroke: W.value.star.activeColor
292
+ }, null, 8, le)], 8, ce))], 64)),
293
+ (S(), g("svg", {
294
+ xmlns: E(c),
295
+ viewBox: "0 0 100 100",
296
+ height: W.value.itemSize,
297
+ class: "vue-ui-rating-unit",
298
+ style: b(`position:absolute;top:0;left:0;${J.value ? "" : me.value ? "cursor:pointer" : ""}`)
299
+ }, [J.value ? h("", !0) : (S(), g("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) => z.value = a,
309
+ onMouseleave: i[0] ||= (e) => z.value = void 0,
310
+ onFocus: (e) => B.value = a,
311
+ onBlur: i[1] ||= (e) => B.value = void 0,
312
+ tabindex: "0",
313
+ onKeyup: D((e) => $(a), ["enter"])
314
+ }, null, 40, de)), J.value ? (S(), g("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) => z.value = a,
323
+ onMouseleave: i[2] ||= (e) => z.value = void 0,
324
+ onFocus: (e) => B.value = a,
325
+ onBlur: i[3] ||= (e) => B.value = void 0
326
+ }, null, 40, P)) : h("", !0)], 12, ue)),
327
+ W.value.tooltip.show && ge.value && J.value ? (S(), g("div", {
328
+ key: 2,
329
+ class: "vue-ui-rating-tooltip",
330
+ style: b(`border:1px solid ${W.value.tooltip.borderColor};position:absolute;top:${-48 + W.value.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${W.value.tooltip.backgroundColor};display:${z.value === a ? "block" : "none"};padding:2px 12px;border-radius:${W.value.tooltip.borderRadius}px;box-shadow:${W.value.tooltip.boxShadow}`)
331
+ }, [_("div", { style: b(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${W.value.tooltip.color}`) }, [
332
+ _("span", { style: b(`font-size:${W.value.tooltip.fontSize}px`) }, T(a) + ":", 5),
333
+ _("span", { style: b(`font-weight:${W.value.tooltip.bold ? "bold" : "normal"};font-size:${W.value.tooltip.fontSize}px`) }, T(E(s)(W.value.tooltip.formatter, I.dataset.rating[a], E(t)({
334
+ v: I.dataset.rating[a],
335
+ r: W.value.tooltip.roundingValue
336
+ }), H.value)), 5),
337
+ _("div", { style: b(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${W.value.tooltip.borderColor}`) }, " ▼ ", 4)
338
+ ], 4)], 4)) : h("", !0)
339
+ ], 4))), 256)),
340
+ U.value.show && U.value.position === "right" ? (S(), g("div", {
341
+ key: 1,
342
+ style: b(`width:fit-content;text-align:center;margin-bottom:${U.value.offsetY}px;font-size:${U.value.fontSize}px;font-weight:${U.value.bold ? "bold" : "normal"};padding-left:${U.value.offsetX}px`)
343
+ }, T(E(s)(U.value.formatter, K.value, E(t)({
344
+ v: K.value,
345
+ r: U.value.roundingValue
346
+ }), H.value)), 5)) : h("", !0)
347
+ ], 4),
348
+ U.value.show && U.value.position === "bottom" ? (S(), g("div", {
349
+ key: 2,
350
+ style: b(`width:100%;text-align:center;margin-top:${U.value.offsetY}px;font-size:${U.value.fontSize}px;font-weight:${U.value.bold ? "bold" : "normal"};margin-left:${U.value.offsetX}px`)
351
+ }, T(E(s)(U.value.formatter, K.value, E(t)({
352
+ v: K.value,
353
+ r: U.value.roundingValue
354
+ }), H.value)), 5)) : h("", !0)
355
+ ], 36));
356
+ }
357
+ }, [["__scopeId", "data-v-cdcab4d9"]]);
358
+ //#endregion
359
+ export { O as n, F as t };