vue-data-ui 3.22.6 → 3.22.8
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-Ds4xmpiQ.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-BHHNsVVP.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-pcgwlYr2.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-ClIGOuoX.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-C-p0ilWB.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-16uF1ayB.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-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-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-CVJfsfwL.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_y5qDdm.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-JqW18y5I.js} +49 -30
- package/dist/{package-DyQ_PQis.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-CLn1VXJ9.js} +20 -20
- 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/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +23 -23
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/{vue-ui-3d-bar-BAH0jNtT.js → vue-ui-3d-bar-B3HxJmDI.js} +124 -124
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-CfJXeAOE.js} +6 -6
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/{vue-ui-chestnut-Cx8T3NEl.js → vue-ui-chestnut-RfWMGUD-.js} +114 -114
- package/dist/{vue-ui-chord-B-sauvLo.js → vue-ui-chord-Db1O_diJ.js} +57 -57
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DL3zq0F2.js} +37 -37
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-BuTd6dt4.js} +224 -224
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-C3Rt6j-I.js} +458 -458
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +1510 -0
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-BTUNfWb7.js} +122 -122
- package/dist/vue-ui-funnel-BhoHzyHa.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DJ2uNYcN.js} +263 -263
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-Cf4NqvrO.js} +226 -226
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-ovHu_Sc9.js} +21 -21
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-DDxEj-qe.js} +7 -7
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-Npqnvb1r.js} +282 -282
- package/dist/vue-ui-history-plot-C3Kjy2tc.js +1715 -0
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-DlVh6hwx.js} +27 -27
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DBpHCFxa.js → vue-ui-parallel-coordinate-plot-DSp_cwU-.js} +57 -57
- package/dist/vue-ui-quadrant-ByVg-NBs.js +1978 -0
- package/dist/{vue-ui-quick-chart-so_8PzvS.js → vue-ui-quick-chart-WMzSJxGZ.js} +188 -188
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-DE-me6OC.js} +64 -64
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/vue-ui-relation-circle-L7-dTqet.js +924 -0
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-D4NnZ1mg.js} +17 -17
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-C38ysZ-c.js} +21 -21
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-B03ndcUe.js} +80 -80
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DgPc4vPT.js} +7 -7
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-D02ff7ZI.js} +115 -115
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-DlTfNQj8.js} +464 -464
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +662 -0
- package/dist/vue-ui-stackbar-BVdApDnY.js +2332 -0
- package/dist/vue-ui-stackline-QzQQ7lTy.js +2419 -0
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Q3brrivC.js} +68 -68
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-Q6BHPKUn.js} +199 -199
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-Bg0RR6m4.js} +26 -26
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-BdzKpoRj.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-DWb69ofh.js} +17 -17
- package/dist/{vue-ui-treemap-B03c4RIy.js → vue-ui-treemap-uUz07Prw.js} +401 -401
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-DTfvWYA7.js} +137 -137
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-DqfljAqH.js} +40 -40
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-Bvgy2do1.js} +1598 -1596
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-D5KsuNR2.js} +259 -259
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-BfgeE3TW.js} +440 -437
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +0 -1238
- package/dist/vue-ui-bullet-C_oBS1cr.js +0 -710
- package/dist/vue-ui-bump-BZB1Na8h.js +0 -1249
- package/dist/vue-ui-candlestick-8d_1xO8X.js +0 -1826
- package/dist/vue-ui-carousel-table-BfZNcwmY.js +0 -455
- package/dist/vue-ui-circle-pack-BLh8HnGK.js +0 -1608
- package/dist/vue-ui-donut-evolution-D1k4u6cA.js +0 -1510
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-horizontal-bar-CwB4sc6M.js +0 -1683
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-nested-donuts-wfesrzle.js +0 -1487
- package/dist/vue-ui-onion-B8-psLbF.js +0 -1200
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-rating-CKWHDKOT.js +0 -343
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-ridgeline-DVbYznRz.js +0 -1622
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-stackline-C0NHBUaE.js +0 -2416
- package/dist/vue-ui-strip-plot-_6LL45i9.js +0 -1729
- package/dist/vue-ui-waffle-afa8HSxz.js +0 -1362
- package/dist/vue-ui-world-CqS-HhZl.js +0 -14264
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Dt as t, I as n, Lt as r, Q as i, W as a, i as o, q as s, t as c } from "./lib-DRBJCmHW.js";
|
|
3
|
-
import { t as l } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as u } from "./useNestedProp-BEo2N1Db.js";
|
|
5
|
-
import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
-
import { Fragment as f, computed as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, mergeProps as _, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as ee, renderSlot as S, toDisplayString as C, unref as w, useSlots as te, watch as ne, withKeys as re } from "vue";
|
|
7
|
-
//#region src/components/vue-ui-rating.vue
|
|
8
|
-
var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
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
|
-
}, ae = [
|
|
34
|
-
"src",
|
|
35
|
-
"height",
|
|
36
|
-
"width"
|
|
37
|
-
], oe = [
|
|
38
|
-
"xmlns",
|
|
39
|
-
"height",
|
|
40
|
-
"width"
|
|
41
|
-
], se = ["id"], ce = ["stop-color"], le = ["stop-color"], ue = [
|
|
42
|
-
"points",
|
|
43
|
-
"fill",
|
|
44
|
-
"stroke",
|
|
45
|
-
"stroke-width"
|
|
46
|
-
], de = [
|
|
47
|
-
"src",
|
|
48
|
-
"alt",
|
|
49
|
-
"height",
|
|
50
|
-
"width",
|
|
51
|
-
"id"
|
|
52
|
-
], k = [
|
|
53
|
-
"xmlns",
|
|
54
|
-
"viewBox",
|
|
55
|
-
"height",
|
|
56
|
-
"id"
|
|
57
|
-
], A = ["id"], j = ["stop-color"], M = ["stop-color"], N = [
|
|
58
|
-
"points",
|
|
59
|
-
"fill",
|
|
60
|
-
"stroke"
|
|
61
|
-
], P = ["xmlns", "height"], F = [
|
|
62
|
-
"onClick",
|
|
63
|
-
"onMouseenter",
|
|
64
|
-
"onFocus",
|
|
65
|
-
"onKeyup"
|
|
66
|
-
], I = ["onMouseenter", "onFocus"], L = /*#__PURE__*/ d({
|
|
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: d, emit: T }) {
|
|
84
|
-
let { vue_ui_rating: L } = l(), R = e, z = x(a()), B = x(!1), V = x(void 0), H = x(void 0), U = x([]), W = te();
|
|
85
|
-
y(() => {
|
|
86
|
-
W["chart-background"] && console.warn("VueUiRating does not support the #chart-background slot.");
|
|
87
|
-
});
|
|
88
|
-
let fe = T, G = p({
|
|
89
|
-
get: () => K(),
|
|
90
|
-
set: (e) => e
|
|
91
|
-
}), pe = p(() => G.value.useCursorPointer);
|
|
92
|
-
function K() {
|
|
93
|
-
return u({
|
|
94
|
-
userConfig: R.config,
|
|
95
|
-
defaultConfig: L
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
ne(() => R.config, (e) => {
|
|
99
|
-
G.value = K(), X();
|
|
100
|
-
}, { deep: !0 });
|
|
101
|
-
let me = p(() => typeof R.dataset.rating == "object" && !Array.isArray(R.dataset.rating) ? ge(R.dataset.rating) : R.dataset.rating), he = p(() => typeof R.dataset.rating == "object" && !Array.isArray(R.dataset.rating)), q = x(me.value), J = p(() => G.value.type === "image"), Y = p(() => 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
|
-
y(() => {
|
|
113
|
-
X();
|
|
114
|
-
});
|
|
115
|
-
function X() {
|
|
116
|
-
(!Object.hasOwn(R.dataset, "rating") || t(R.dataset)) && i({
|
|
117
|
-
componentName: "VueUiRating",
|
|
118
|
-
type: "datasetAttribute",
|
|
119
|
-
property: "rating"
|
|
120
|
-
}), U.value = [];
|
|
121
|
-
for (let e = G.value.from; e <= G.value.to; e += 1) U.value.push(e);
|
|
122
|
-
}
|
|
123
|
-
function Z(e, t = !1) {
|
|
124
|
-
return e > V.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_${z.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 d({
|
|
144
|
-
getData: _e,
|
|
145
|
-
toggleReadonly: ve
|
|
146
|
-
}), (e, t) => (b(), h("div", {
|
|
147
|
-
style: v(`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) => B.value = !0,
|
|
150
|
-
onMouseleave: t[5] ||= (e) => {
|
|
151
|
-
B.value = !1, V.value = void 0;
|
|
152
|
-
}
|
|
153
|
-
}, [
|
|
154
|
-
G.value.style.title.text ? (b(), h("div", ie, [g("div", { style: v(`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`) }, C(G.value.style.title.text), 5), G.value.style.title.subtitle.text ? (b(), h("div", {
|
|
155
|
-
key: 0,
|
|
156
|
-
style: v(`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
|
-
}, C(G.value.style.title.subtitle.text), 5)) : m("", !0)])) : m("", !0),
|
|
158
|
-
G.value.style.rating.show && G.value.style.rating.position === "top" ? (b(), h("div", {
|
|
159
|
-
key: 1,
|
|
160
|
-
style: v(`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
|
-
}, C(w(o)(G.value.style.rating.formatter, q.value, w(s)({
|
|
162
|
-
v: q.value,
|
|
163
|
-
r: G.value.style.rating.roundingValue
|
|
164
|
-
}), G.value)), 5)) : m("", !0),
|
|
165
|
-
g("div", {
|
|
166
|
-
class: "vue-ui-rating-wrapper",
|
|
167
|
-
style: v(`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" ? (b(), h("div", {
|
|
170
|
-
key: 0,
|
|
171
|
-
style: v(`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
|
-
}, C(w(o)(G.value.style.rating.formatter, q.value, w(s)({
|
|
173
|
-
v: q.value,
|
|
174
|
-
r: G.value.style.rating.roundingValue
|
|
175
|
-
}), G.value)), 5)) : m("", !0),
|
|
176
|
-
(b(!0), h(f, null, ee(U.value, (i, a) => (b(), h("div", {
|
|
177
|
-
class: "vue-ui-rating-unit-container",
|
|
178
|
-
style: v(`position:relative;height:${G.value.style.itemSize}px;width:${G.value.style.itemSize}px`)
|
|
179
|
-
}, [
|
|
180
|
-
e.$slots["layer-under"] || e.$slots["layer-above"] ? (b(), h("div", E, [e.$slots["layer-under"] ? (b(), h("div", D, [S(e.$slots, "layer-under", _({ ref_for: !0 }, {
|
|
181
|
-
value: i,
|
|
182
|
-
size: G.value.style.itemSize,
|
|
183
|
-
hoveredValue: V.value,
|
|
184
|
-
focusedValue: H.value
|
|
185
|
-
}), void 0, !0)])) : m("", !0), e.$slots["layer-above"] ? (b(), h("div", O, [S(e.$slots, "layer-above", _({ ref_for: !0 }, {
|
|
186
|
-
value: i,
|
|
187
|
-
size: G.value.style.itemSize,
|
|
188
|
-
hoveredValue: V.value,
|
|
189
|
-
focusedValue: H.value
|
|
190
|
-
}), void 0, !0)])) : m("", !0)])) : (b(), h(f, { key: 1 }, [J.value ? (b(), h("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: v(`position:absolute;top:0;left:0;opacity:${isNaN(V.value) ? G.value.style.image.inactiveOpacity : Z(i, !0)}`)
|
|
197
|
-
}, null, 12, ae)) : (b(), h("svg", {
|
|
198
|
-
key: 1,
|
|
199
|
-
xmlns: w(c),
|
|
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
|
-
}, [g("defs", null, [g("radialGradient", {
|
|
205
|
-
cx: "50%",
|
|
206
|
-
cy: "50%",
|
|
207
|
-
r: "50%",
|
|
208
|
-
fx: "50%",
|
|
209
|
-
fy: "50%",
|
|
210
|
-
id: `star_gradient_under_${z.value}`
|
|
211
|
-
}, [g("stop", {
|
|
212
|
-
offset: "0%",
|
|
213
|
-
"stop-color": `${w(r)(G.value.style.star.activeColor, .05)}`
|
|
214
|
-
}, null, 8, ce), g("stop", {
|
|
215
|
-
offset: "100%",
|
|
216
|
-
"stop-color": G.value.style.star.activeColor
|
|
217
|
-
}, null, 8, le)], 8, se)]), g("polygon", {
|
|
218
|
-
points: w(n)({
|
|
219
|
-
plot: {
|
|
220
|
-
x: 50,
|
|
221
|
-
y: 50
|
|
222
|
-
},
|
|
223
|
-
radius: 30,
|
|
224
|
-
apexes: G.value.style.star.apexes
|
|
225
|
-
}),
|
|
226
|
-
fill: isNaN(V.value) ? G.value.style.star.inactiveColor : Z(i),
|
|
227
|
-
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : V.value ? Z(i) : G.value.style.star.inactiveColor,
|
|
228
|
-
"stroke-width": G.value.style.star.borderWidth,
|
|
229
|
-
"stroke-linecap": "round",
|
|
230
|
-
"stroke-linejoin": "round"
|
|
231
|
-
}, null, 8, ue)], 8, oe)), J.value ? (b(), h("img", {
|
|
232
|
-
key: 2,
|
|
233
|
-
src: G.value.style.image.src,
|
|
234
|
-
alt: `${G.value.style.image.alt} ${i}`,
|
|
235
|
-
height: G.value.style.itemSize,
|
|
236
|
-
width: G.value.style.itemSize,
|
|
237
|
-
id: `active_${z.value}_${i}`,
|
|
238
|
-
class: "vue-ui-rating-unit",
|
|
239
|
-
style: v(`position:absolute;top:0;left:0;clip:rect(0px,${Q(a, !0) * G.value.style.itemSize}px,${G.value.style.itemSize}px,0px`)
|
|
240
|
-
}, null, 12, de)) : (b(), h("svg", {
|
|
241
|
-
key: 3,
|
|
242
|
-
xmlns: w(c),
|
|
243
|
-
viewBox: `0 0 ${Q(a)} 100`,
|
|
244
|
-
height: G.value.style.itemSize,
|
|
245
|
-
class: "vue-ui-rating-unit",
|
|
246
|
-
id: `active_${z.value}_${i}`,
|
|
247
|
-
style: {
|
|
248
|
-
position: "absolute",
|
|
249
|
-
top: "0",
|
|
250
|
-
left: "0"
|
|
251
|
-
}
|
|
252
|
-
}, [g("defs", null, [g("radialGradient", {
|
|
253
|
-
cx: "50%",
|
|
254
|
-
cy: "50%",
|
|
255
|
-
r: "50%",
|
|
256
|
-
fx: "50%",
|
|
257
|
-
fy: "50%",
|
|
258
|
-
id: `star_gradient_over_${z.value}`
|
|
259
|
-
}, [g("stop", {
|
|
260
|
-
offset: "0%",
|
|
261
|
-
"stop-color": `${w(r)(G.value.style.star.activeColor, .05)}`
|
|
262
|
-
}, null, 8, j), g("stop", {
|
|
263
|
-
offset: "100%",
|
|
264
|
-
"stop-color": G.value.style.star.activeColor
|
|
265
|
-
}, null, 8, M)], 8, A)]), g("polygon", {
|
|
266
|
-
points: w(n)({
|
|
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_${z.value})` : G.value.style.star.activeColor,
|
|
275
|
-
stroke: G.value.style.star.activeColor
|
|
276
|
-
}, null, 8, N)], 8, k))], 64)),
|
|
277
|
-
(b(), h("svg", {
|
|
278
|
-
xmlns: w(c),
|
|
279
|
-
viewBox: "0 0 100 100",
|
|
280
|
-
height: G.value.style.itemSize,
|
|
281
|
-
class: "vue-ui-rating-unit",
|
|
282
|
-
style: v(`position:absolute;top:0;left:0;${Y.value ? "" : pe.value ? "cursor:pointer" : ""}`)
|
|
283
|
-
}, [Y.value ? m("", !0) : (b(), h("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) => $(i),
|
|
292
|
-
onMouseenter: (e) => V.value = i,
|
|
293
|
-
onMouseleave: t[0] ||= (e) => V.value = void 0,
|
|
294
|
-
onFocus: (e) => H.value = i,
|
|
295
|
-
onBlur: t[1] ||= (e) => H.value = void 0,
|
|
296
|
-
tabindex: "0",
|
|
297
|
-
onKeyup: re((e) => $(i), ["enter"])
|
|
298
|
-
}, null, 40, F)), Y.value ? (b(), h("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) => V.value = i,
|
|
307
|
-
onMouseleave: t[2] ||= (e) => V.value = void 0,
|
|
308
|
-
onFocus: (e) => H.value = i,
|
|
309
|
-
onBlur: t[3] ||= (e) => H.value = void 0
|
|
310
|
-
}, null, 40, I)) : m("", !0)], 12, P)),
|
|
311
|
-
G.value.style.tooltip.show && he.value && Y.value ? (b(), h("div", {
|
|
312
|
-
key: 2,
|
|
313
|
-
class: "vue-ui-rating-tooltip",
|
|
314
|
-
style: v(`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:${V.value === i ? "block" : "none"};padding:2px 12px;border-radius:${G.value.style.tooltip.borderRadius}px;box-shadow:${G.value.style.tooltip.boxShadow}`)
|
|
315
|
-
}, [g("div", { style: v(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${G.value.style.tooltip.color}`) }, [
|
|
316
|
-
g("span", { style: v(`font-size:${G.value.style.tooltip.fontSize}px`) }, C(i) + ":", 5),
|
|
317
|
-
g("span", { style: v(`font-weight:${G.value.style.tooltip.bold ? "bold" : "normal"};font-size:${G.value.style.tooltip.fontSize}px`) }, C(w(o)(G.value.style.tooltip.formatter, R.dataset.rating[i], w(s)({
|
|
318
|
-
v: R.dataset.rating[i],
|
|
319
|
-
r: G.value.style.tooltip.roundingValue
|
|
320
|
-
}), G.value)), 5),
|
|
321
|
-
g("div", { style: v(`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)) : m("", !0)
|
|
323
|
-
], 4))), 256)),
|
|
324
|
-
G.value.style.rating.show && G.value.style.rating.position === "right" ? (b(), h("div", {
|
|
325
|
-
key: 1,
|
|
326
|
-
style: v(`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
|
-
}, C(w(o)(G.value.style.rating.formatter, q.value, w(s)({
|
|
328
|
-
v: q.value,
|
|
329
|
-
r: G.value.style.rating.roundingValue
|
|
330
|
-
}), G.value)), 5)) : m("", !0)
|
|
331
|
-
], 4),
|
|
332
|
-
G.value.style.rating.show && G.value.style.rating.position === "bottom" ? (b(), h("div", {
|
|
333
|
-
key: 2,
|
|
334
|
-
style: v(`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
|
-
}, C(w(o)(G.value.style.rating.formatter, q.value, w(s)({
|
|
336
|
-
v: q.value,
|
|
337
|
-
r: G.value.style.rating.roundingValue
|
|
338
|
-
}), G.value)), 5)) : m("", !0)
|
|
339
|
-
], 36));
|
|
340
|
-
}
|
|
341
|
-
}, [["__scopeId", "data-v-75c80ffe"]]);
|
|
342
|
-
//#endregion
|
|
343
|
-
export { T as n, L as t };
|