vue-data-ui 3.5.2 → 3.7.0
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/README.md +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.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-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as
|
|
2
|
-
import { c as te, o as le,
|
|
3
|
-
import { u as ae, a as ie } from "./useNestedProp-
|
|
1
|
+
import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as g, unref as n, Fragment as B, renderList as Z, renderSlot as j, mergeProps as O, withKeys as ee } from "vue";
|
|
2
|
+
import { c as te, o as le, g as oe, a as b, d as _, X as z, h as X, b as I } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { u as ae, a as ie } from "./useNestedProp-CWo6bftQ.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ne = {
|
|
6
6
|
key: 0,
|
|
@@ -15,7 +15,7 @@ const ne = {
|
|
|
15
15
|
}, ve = {
|
|
16
16
|
key: 1,
|
|
17
17
|
style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%" }
|
|
18
|
-
}, de = ["src", "height", "width"], ye = ["xmlns", "height", "width"], pe = ["id"],
|
|
18
|
+
}, de = ["src", "height", "width"], ye = ["xmlns", "height", "width"], pe = ["id"], ge = ["stop-color"], fe = ["stop-color"], ce = ["points", "fill", "stroke", "stroke-width"], he = ["src", "alt", "height", "width", "id"], me = ["xmlns", "viewBox", "height", "id"], $e = ["id"], xe = ["stop-color"], be = ["stop-color"], _e = ["points", "fill", "stroke"], we = ["xmlns", "height"], ke = ["onClick", "onMouseenter", "onFocus", "onKeyup"], ze = ["onMouseenter", "onFocus"], Se = {
|
|
19
19
|
__name: "vue-ui-rating",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -50,7 +50,7 @@ const ne = {
|
|
|
50
50
|
Q(() => u.config, (l) => {
|
|
51
51
|
e.value = C(), F();
|
|
52
52
|
}, { deep: !0 });
|
|
53
|
-
const K = x(() => typeof u.dataset.rating == "object" && !Array.isArray(u.dataset.rating) ? T(u.dataset.rating) : u.dataset.rating), P = x(() => typeof u.dataset.rating == "object" && !Array.isArray(u.dataset.rating)), y = $(K.value), V = x(() => e.value.type === "image"),
|
|
53
|
+
const K = x(() => typeof u.dataset.rating == "object" && !Array.isArray(u.dataset.rating) ? T(u.dataset.rating) : u.dataset.rating), P = x(() => typeof u.dataset.rating == "object" && !Array.isArray(u.dataset.rating)), y = $(K.value), V = x(() => e.value.type === "image"), f = x(() => e.value.readonly);
|
|
54
54
|
function T(l) {
|
|
55
55
|
let i = 0, t = 0;
|
|
56
56
|
for (const d in l) {
|
|
@@ -75,7 +75,7 @@ const ne = {
|
|
|
75
75
|
w.value.push(l);
|
|
76
76
|
}
|
|
77
77
|
function k(l, i = !1) {
|
|
78
|
-
return l > v.value ||
|
|
78
|
+
return l > v.value || f.value ? i ? e.value.style.image.inactiveOpacity : e.value.style.star.inactiveColor : i ? 1 : e.value.style.star.useGradient ? `url(#star_gradient_under_${h.value})` : e.value.style.star.activeColor;
|
|
79
79
|
}
|
|
80
80
|
function M(l, i = !1) {
|
|
81
81
|
const t = y.value - l, c = i ? 1 : 100;
|
|
@@ -89,13 +89,13 @@ const ne = {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
function N(l) {
|
|
92
|
-
|
|
92
|
+
f.value || (y.value = l, E("rate", l));
|
|
93
93
|
}
|
|
94
94
|
function H() {
|
|
95
95
|
return y.value;
|
|
96
96
|
}
|
|
97
97
|
function W(l = !0) {
|
|
98
|
-
|
|
98
|
+
f.value = l;
|
|
99
99
|
}
|
|
100
100
|
return G({
|
|
101
101
|
getData: H,
|
|
@@ -111,16 +111,16 @@ const ne = {
|
|
|
111
111
|
e.value.style.title.text ? (a(), o("div", ne, [
|
|
112
112
|
r("div", {
|
|
113
113
|
style: s(`color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"};text-align:${e.value.style.title.textAlign};margin-bottom:${e.value.style.title.offsetY}px;font-size:${e.value.style.title.fontSize}px`)
|
|
114
|
-
},
|
|
114
|
+
}, g(e.value.style.title.text), 5),
|
|
115
115
|
e.value.style.title.subtitle.text ? (a(), o("div", {
|
|
116
116
|
key: 0,
|
|
117
117
|
style: s(`color:${e.value.style.title.subtitle.color};font-size:${e.value.style.title.subtitle.fontSize}px;text-align:${e.value.style.title.textAlign};margin-bottom:${e.value.style.title.subtitle.offsetY}px;font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
118
|
-
},
|
|
118
|
+
}, g(e.value.style.title.subtitle.text), 5)) : p("", !0)
|
|
119
119
|
])) : p("", !0),
|
|
120
120
|
e.value.style.rating.show && e.value.style.rating.position === "top" ? (a(), o("div", {
|
|
121
121
|
key: 1,
|
|
122
122
|
style: s(`width:100%;text-align:center;margin-bottom:${e.value.style.rating.offsetY}px;font-size:${e.value.style.rating.fontSize}px;font-weight:${e.value.style.rating.bold ? "bold" : "normal"};margin-left:${e.value.style.rating.offsetX}px`)
|
|
123
|
-
},
|
|
123
|
+
}, g(n(b)(
|
|
124
124
|
e.value.style.rating.formatter,
|
|
125
125
|
y.value,
|
|
126
126
|
n(_)({
|
|
@@ -136,7 +136,7 @@ const ne = {
|
|
|
136
136
|
e.value.style.rating.show && e.value.style.rating.position === "left" ? (a(), o("div", {
|
|
137
137
|
key: 0,
|
|
138
138
|
style: s(`width:fit-content;text-align:center;margin-bottom:${e.value.style.rating.offsetY}px;font-size:${e.value.style.rating.fontSize}px;font-weight:${e.value.style.rating.bold ? "bold" : "normal"};padding-right:${e.value.style.rating.offsetX}px`)
|
|
139
|
-
},
|
|
139
|
+
}, g(n(b)(
|
|
140
140
|
e.value.style.rating.formatter,
|
|
141
141
|
y.value,
|
|
142
142
|
n(_)({
|
|
@@ -145,18 +145,18 @@ const ne = {
|
|
|
145
145
|
}),
|
|
146
146
|
e.value
|
|
147
147
|
)), 5)) : p("", !0),
|
|
148
|
-
(a(!0), o(
|
|
148
|
+
(a(!0), o(B, null, Z(w.value, (t, c) => (a(), o("div", {
|
|
149
149
|
class: "vue-ui-rating-unit-container",
|
|
150
150
|
style: s(`position:relative;height:${e.value.style.itemSize}px;width:${e.value.style.itemSize}px`)
|
|
151
151
|
}, [
|
|
152
152
|
l.$slots["layer-under"] || l.$slots["layer-above"] ? (a(), o("div", re, [
|
|
153
153
|
l.$slots["layer-under"] ? (a(), o("div", ue, [
|
|
154
|
-
|
|
154
|
+
j(l.$slots, "layer-under", O({ ref_for: !0 }, { value: t, size: e.value.style.itemSize, hoveredValue: v.value, focusedValue: m.value }), void 0, !0)
|
|
155
155
|
])) : p("", !0),
|
|
156
156
|
l.$slots["layer-above"] ? (a(), o("div", ve, [
|
|
157
|
-
|
|
157
|
+
j(l.$slots, "layer-above", O({ ref_for: !0 }, { value: t, size: e.value.style.itemSize, hoveredValue: v.value, focusedValue: m.value }), void 0, !0)
|
|
158
158
|
])) : p("", !0)
|
|
159
|
-
])) : (a(), o(
|
|
159
|
+
])) : (a(), o(B, { key: 1 }, [
|
|
160
160
|
V.value ? (a(), o("img", {
|
|
161
161
|
key: 0,
|
|
162
162
|
src: e.value.style.image.src,
|
|
@@ -184,11 +184,11 @@ const ne = {
|
|
|
184
184
|
r("stop", {
|
|
185
185
|
offset: "0%",
|
|
186
186
|
"stop-color": `${n(X)(e.value.style.star.activeColor, 0.05)}`
|
|
187
|
-
}, null, 8,
|
|
187
|
+
}, null, 8, ge),
|
|
188
188
|
r("stop", {
|
|
189
189
|
offset: "100%",
|
|
190
190
|
"stop-color": e.value.style.star.activeColor
|
|
191
|
-
}, null, 8,
|
|
191
|
+
}, null, 8, fe)
|
|
192
192
|
], 8, pe)
|
|
193
193
|
]),
|
|
194
194
|
r("polygon", {
|
|
@@ -257,9 +257,9 @@ const ne = {
|
|
|
257
257
|
viewBox: "0 0 100 100",
|
|
258
258
|
height: e.value.style.itemSize,
|
|
259
259
|
class: "vue-ui-rating-unit",
|
|
260
|
-
style: s(`position:absolute;top:0;left:0;${
|
|
260
|
+
style: s(`position:absolute;top:0;left:0;${f.value ? "" : "cursor:pointer"}`)
|
|
261
261
|
}, [
|
|
262
|
-
|
|
262
|
+
f.value ? p("", !0) : (a(), o("rect", {
|
|
263
263
|
key: 0,
|
|
264
264
|
class: "vue-ui-rating-mouse-trap",
|
|
265
265
|
x: 0,
|
|
@@ -275,7 +275,7 @@ const ne = {
|
|
|
275
275
|
tabindex: "0",
|
|
276
276
|
onKeyup: ee((d) => N(t), ["enter"])
|
|
277
277
|
}, null, 40, ke)),
|
|
278
|
-
|
|
278
|
+
f.value ? (a(), o("rect", {
|
|
279
279
|
key: 1,
|
|
280
280
|
class: "vue-ui-rating-mouse-trap",
|
|
281
281
|
x: 0,
|
|
@@ -289,7 +289,7 @@ const ne = {
|
|
|
289
289
|
onBlur: i[3] || (i[3] = (d) => m.value = void 0)
|
|
290
290
|
}, null, 40, ze)) : p("", !0)
|
|
291
291
|
], 12, we)),
|
|
292
|
-
e.value.style.tooltip.show && P.value &&
|
|
292
|
+
e.value.style.tooltip.show && P.value && f.value ? (a(), o("div", {
|
|
293
293
|
key: 2,
|
|
294
294
|
class: "vue-ui-rating-tooltip",
|
|
295
295
|
style: s(`border:1px solid ${e.value.style.tooltip.borderColor};position:absolute;top:${-48 + e.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${e.value.style.tooltip.backgroundColor};display:${v.value === t ? "block" : "none"};padding:2px 12px;border-radius:${e.value.style.tooltip.borderRadius}px;box-shadow:${e.value.style.tooltip.boxShadow}`)
|
|
@@ -299,10 +299,10 @@ const ne = {
|
|
|
299
299
|
}, [
|
|
300
300
|
r("span", {
|
|
301
301
|
style: s(`font-size:${e.value.style.tooltip.fontSize}px`)
|
|
302
|
-
},
|
|
302
|
+
}, g(t) + ":", 5),
|
|
303
303
|
r("span", {
|
|
304
304
|
style: s(`font-weight:${e.value.style.tooltip.bold ? "bold" : "normal"};font-size:${e.value.style.tooltip.fontSize}px`)
|
|
305
|
-
},
|
|
305
|
+
}, g(n(b)(
|
|
306
306
|
e.value.style.tooltip.formatter,
|
|
307
307
|
u.dataset.rating[t],
|
|
308
308
|
n(_)({
|
|
@@ -320,7 +320,7 @@ const ne = {
|
|
|
320
320
|
e.value.style.rating.show && e.value.style.rating.position === "right" ? (a(), o("div", {
|
|
321
321
|
key: 1,
|
|
322
322
|
style: s(`width:fit-content;text-align:center;margin-bottom:${e.value.style.rating.offsetY}px;font-size:${e.value.style.rating.fontSize}px;font-weight:${e.value.style.rating.bold ? "bold" : "normal"};padding-left:${e.value.style.rating.offsetX}px`)
|
|
323
|
-
},
|
|
323
|
+
}, g(n(b)(
|
|
324
324
|
e.value.style.rating.formatter,
|
|
325
325
|
y.value,
|
|
326
326
|
n(_)({
|
|
@@ -333,7 +333,7 @@ const ne = {
|
|
|
333
333
|
e.value.style.rating.show && e.value.style.rating.position === "bottom" ? (a(), o("div", {
|
|
334
334
|
key: 2,
|
|
335
335
|
style: s(`width:100%;text-align:center;margin-top:${e.value.style.rating.offsetY}px;font-size:${e.value.style.rating.fontSize}px;font-weight:${e.value.style.rating.bold ? "bold" : "normal"};margin-left:${e.value.style.rating.offsetX}px`)
|
|
336
|
-
},
|
|
336
|
+
}, g(n(b)(
|
|
337
337
|
e.value.style.rating.formatter,
|
|
338
338
|
y.value,
|
|
339
339
|
n(_)({
|