vue-data-ui 3.25.10 → 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.
- package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CZZayD-D.js → PackageVersion-KI_qWJHZ.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-CYtJq7s7.js → package-CUB9qFqi.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CpHpPc5s.js → render-common-DeM1ZJiv.js} +16 -16
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +19 -9
- package/dist/types/vue-ui-heatmap.d.ts +2 -0
- package/dist/{useConfig-D32D002m.js → useConfig-Be2DFBsb.js} +1 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-DUdzTGvh.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-ChB3aXCO.js → vue-data-ui-COEVZKW5.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-DcXbkO19.js → vue-ui-3d-bar-DFw5XDWb.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-BZCjuA3V.js} +4 -4
- package/dist/vue-ui-age-pyramid-DRUCkRz8.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BfKA4YVr.js} +60 -60
- package/dist/{vue-ui-bullet-DOfD2TSb.js → vue-ui-bullet-B0IfmAiX.js} +84 -84
- package/dist/{vue-ui-bump-DL2lDZbE.js → vue-ui-bump-C1kUAd9U.js} +105 -105
- package/dist/{vue-ui-candlestick-ijujiVJ5.js → vue-ui-candlestick-KA4AueJw.js} +98 -98
- package/dist/vue-ui-carousel-table-BxUd6pz5.js +467 -0
- package/dist/vue-ui-chestnut-DHSV3tgH.js +2016 -0
- package/dist/{vue-ui-chord-DgBzLfbv.js → vue-ui-chord-DwosQDGy.js} +63 -63
- package/dist/{vue-ui-circle-pack-88qDJbt0.js → vue-ui-circle-pack-OoLvvkpK.js} +50 -50
- package/dist/{vue-ui-cursor-CcEB7Ypx.js → vue-ui-cursor-DIDq-I8_.js} +61 -61
- package/dist/{vue-ui-dag-BeoFmTDs.js → vue-ui-dag-CEe-6BAo.js} +44 -44
- package/dist/{vue-ui-dashboard-NOVcGMCa.js → vue-ui-dashboard-Dyx0Ri4u.js} +70 -70
- package/dist/{vue-ui-digits-BGmT7H1z.js → vue-ui-digits-aocn4lMx.js} +4 -4
- package/dist/{vue-ui-donut-CtXzuWzy.js → vue-ui-donut-7uSOM7lM.js} +203 -203
- package/dist/{vue-ui-donut-CP7ilveE.js → vue-ui-donut-DBwkC_24.js} +551 -551
- package/dist/vue-ui-donut-evolution-BqQ7Tlsc.js +1552 -0
- package/dist/{vue-ui-dumbbell-BR1Cn4wm.js → vue-ui-dumbbell-MGfC3D58.js} +87 -87
- package/dist/{vue-ui-flow-Bm6TgD8I.js → vue-ui-flow-593TeQ2W.js} +99 -99
- package/dist/{vue-ui-funnel-CQ0-9nZT.js → vue-ui-funnel-DkJUBGun.js} +40 -40
- package/dist/vue-ui-galaxy-BrVH1I3l.js +1097 -0
- package/dist/{vue-ui-gauge-B6pyA6Jh.js → vue-ui-gauge-DC4S5TsV.js} +190 -190
- package/dist/{vue-ui-geo-BlG7s8MH.js → vue-ui-geo-Yq0FgILc.js} +12 -12
- package/dist/{vue-ui-gizmo-BlyehpxE.js → vue-ui-gizmo-D9gwOdZE.js} +54 -54
- package/dist/vue-ui-heatmap-CIJRLiRS.js +1606 -0
- package/dist/{vue-ui-hill-CGE0NdNk.js → vue-ui-hill-B8mE9MIi.js} +21 -21
- package/dist/vue-ui-history-plot-Dj4qkhNI.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-Ykwe4M1n.js → vue-ui-horizontal-bar-njm9Qfcd.js} +85 -85
- package/dist/{vue-ui-kpi-B7Nfet0o.js → vue-ui-kpi-CFk0QESG.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-7gnBMFu5.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-CUVEBqJw.js} +3 -3
- package/dist/vue-ui-molecule-GqArgNXc.js +941 -0
- package/dist/vue-ui-mood-radar-Du71PAqx.js +1111 -0
- package/dist/{vue-ui-nested-donuts-Bt-r6uXS.js → vue-ui-nested-donuts-BRGYUoVS.js} +481 -481
- package/dist/vue-ui-onion-C4LsJp_7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DumwZpjI.js +1444 -0
- package/dist/vue-ui-quadrant-BFEihaNk.js +1979 -0
- package/dist/{vue-ui-quick-chart-Cb8x00-X.js → vue-ui-quick-chart-COWxCDXU.js} +169 -169
- package/dist/vue-ui-radar-BZMDCj34.js +1386 -0
- package/dist/vue-ui-rating-D0tMtjhc.js +359 -0
- package/dist/vue-ui-relation-circle-DSNuFlbr.js +905 -0
- package/dist/vue-ui-ridgeline-DHHjDn73.js +1630 -0
- package/dist/{vue-ui-rings-BqRWK5rY.js → vue-ui-rings-BMKxADUw.js} +78 -78
- package/dist/{vue-ui-scatter-Bsh6jbdW.js → vue-ui-scatter-BKJUWiYg.js} +136 -136
- package/dist/{vue-ui-skeleton-DbPSsEKV.js → vue-ui-skeleton-_EBFqU7v.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-DsfTcCOQ.js} +6 -6
- package/dist/{vue-ui-spark-trend--8QokOII.js → vue-ui-spark-trend-Dj1tZM1l.js} +96 -96
- package/dist/{vue-ui-sparkbar-DkX9Demg.js → vue-ui-sparkbar-B7ogNgvT.js} +113 -113
- package/dist/vue-ui-sparkgauge-BFGXwszU.js +268 -0
- package/dist/vue-ui-sparkhistogram-c-DSMEiv.js +589 -0
- package/dist/{vue-ui-sparkline-BwldgOYW.js → vue-ui-sparkline-Bm59iQiE.js} +198 -198
- package/dist/{vue-ui-sparkstackbar-Divd0hL_.js → vue-ui-sparkstackbar-DIMZ8Wxa.js} +183 -183
- package/dist/vue-ui-stackbar-C53nXwth.js +2369 -0
- package/dist/vue-ui-stackline-D4ehty6i.js +2483 -0
- package/dist/{vue-ui-strip-plot-BCUPHkCp.js → vue-ui-strip-plot-CNnl1U1H.js} +253 -253
- package/dist/{vue-ui-table-DJeXLYly.js → vue-ui-table-Bbw0YVee.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-B1uYpEhA.js} +95 -95
- package/dist/vue-ui-table-sparkline-D98mkhX0.js +738 -0
- package/dist/{vue-ui-thermometer-xu4R8d2f.js → vue-ui-thermometer-CDYrYD7E.js} +23 -23
- package/dist/{vue-ui-timer-i_3bMu3h.js → vue-ui-timer-CW3wa1tF.js} +13 -13
- package/dist/{vue-ui-tiremarks-DGuMI0yH.js → vue-ui-tiremarks-CayzbbTu.js} +30 -30
- package/dist/{vue-ui-treemap-Bvl7elni.js → vue-ui-treemap-BuOGDfHZ.js} +77 -77
- package/dist/vue-ui-waffle-D47Z_prI.js +1633 -0
- package/dist/{vue-ui-wheel-DqHD09iA.js → vue-ui-wheel-CNF5e3TM.js} +185 -185
- package/dist/{vue-ui-word-cloud-BDCuTQ8Q.js → vue-ui-word-cloud-y46KDG7e.js} +46 -46
- package/dist/{vue-ui-world-B0oVwEDj.js → vue-ui-world-DKW2yCXn.js} +133 -133
- package/dist/vue-ui-xy-BgmEGWgv.js +5367 -0
- package/dist/{vue-ui-xy-BJJi0E4D.js → vue-ui-xy-G3lMLlIL.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-CMAT-hT1.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-Cnaxt9NI.js +0 -1305
- package/dist/vue-ui-carousel-table-DFtWb2-C.js +0 -467
- package/dist/vue-ui-chestnut-BGXr0s08.js +0 -2016
- package/dist/vue-ui-donut-evolution-D_-y7BZi.js +0 -1552
- package/dist/vue-ui-galaxy-DUto0BOw.js +0 -1097
- package/dist/vue-ui-heatmap-DqbWkKAE.js +0 -1590
- package/dist/vue-ui-history-plot-CaxqIiTb.js +0 -1710
- package/dist/vue-ui-molecule-DWq98OSc.js +0 -941
- package/dist/vue-ui-mood-radar-DDfimq6c.js +0 -1111
- package/dist/vue-ui-onion-D8gOhQHP.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-BbPbJiiu.js +0 -1444
- package/dist/vue-ui-quadrant-BJlf3qW1.js +0 -1979
- package/dist/vue-ui-radar-30PF-qqr.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-CRiC4PnL.js +0 -905
- package/dist/vue-ui-ridgeline-CSs4Tq_c.js +0 -1630
- package/dist/vue-ui-sparkgauge-Ci_xD5B7.js +0 -268
- package/dist/vue-ui-sparkhistogram-Qe3ZCPRd.js +0 -589
- package/dist/vue-ui-stackbar-BWPSGzN-.js +0 -2369
- package/dist/vue-ui-stackline-BQroSnwZ.js +0 -2483
- package/dist/vue-ui-table-sparkline-DCm8S2uK.js +0 -738
- package/dist/vue-ui-waffle-CVuYg0yU.js +0 -1633
- package/dist/vue-ui-xy-D1dPd68D.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 };
|