vue-data-ui 3.22.9 → 3.22.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
- 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/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { Fragment as
|
|
2
|
+
import { At as t, Bt as n, K as r, R as i, Y as a, et as o, i as s, t as c } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as l } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as u } from "./useNestedProp-D8NuRneO.js";
|
|
5
|
+
import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
+
import { t as f } from "./DefGrad-DVBqDjhO.js";
|
|
7
|
+
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 ee, renderSlot as w, toDisplayString as T, unref as E, useSlots as D, watch as te, withKeys as O } from "vue";
|
|
8
8
|
//#region src/components/vue-ui-rating.vue
|
|
9
|
-
var
|
|
9
|
+
var k = /* @__PURE__ */ e({ default: () => I }), A = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "vue-ui-rating-title",
|
|
12
12
|
style: { width: "100%" }
|
|
13
|
-
},
|
|
13
|
+
}, j = {
|
|
14
14
|
key: 0,
|
|
15
15
|
style: { position: "relative" }
|
|
16
|
-
},
|
|
16
|
+
}, M = {
|
|
17
17
|
key: 0,
|
|
18
18
|
style: {
|
|
19
19
|
position: "absolute",
|
|
@@ -22,7 +22,7 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
22
22
|
width: "100%",
|
|
23
23
|
height: "100%"
|
|
24
24
|
}
|
|
25
|
-
},
|
|
25
|
+
}, N = {
|
|
26
26
|
key: 1,
|
|
27
27
|
style: {
|
|
28
28
|
position: "absolute",
|
|
@@ -31,40 +31,40 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
31
31
|
width: "100%",
|
|
32
32
|
height: "100%"
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, P = [
|
|
35
35
|
"src",
|
|
36
36
|
"height",
|
|
37
37
|
"width"
|
|
38
|
-
],
|
|
38
|
+
], ne = [
|
|
39
39
|
"xmlns",
|
|
40
40
|
"height",
|
|
41
41
|
"width"
|
|
42
|
-
],
|
|
42
|
+
], re = [
|
|
43
43
|
"points",
|
|
44
44
|
"fill",
|
|
45
45
|
"stroke",
|
|
46
46
|
"stroke-width"
|
|
47
|
-
],
|
|
47
|
+
], ie = [
|
|
48
48
|
"src",
|
|
49
49
|
"alt",
|
|
50
50
|
"height",
|
|
51
51
|
"width",
|
|
52
52
|
"id"
|
|
53
|
-
],
|
|
53
|
+
], ae = [
|
|
54
54
|
"xmlns",
|
|
55
55
|
"viewBox",
|
|
56
56
|
"height",
|
|
57
57
|
"id"
|
|
58
|
-
],
|
|
58
|
+
], oe = [
|
|
59
59
|
"points",
|
|
60
60
|
"fill",
|
|
61
61
|
"stroke"
|
|
62
|
-
],
|
|
62
|
+
], se = ["xmlns", "height"], ce = [
|
|
63
63
|
"onClick",
|
|
64
64
|
"onMouseenter",
|
|
65
65
|
"onFocus",
|
|
66
66
|
"onKeyup"
|
|
67
|
-
], F = ["onMouseenter", "onFocus"], I = /*#__PURE__*/
|
|
67
|
+
], F = ["onMouseenter", "onFocus"], I = /*#__PURE__*/ d({
|
|
68
68
|
__name: "vue-ui-rating",
|
|
69
69
|
props: {
|
|
70
70
|
config: {
|
|
@@ -81,25 +81,25 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
emits: ["rate"],
|
|
84
|
-
setup(e, { expose:
|
|
85
|
-
let { vue_ui_rating: I } =
|
|
86
|
-
|
|
84
|
+
setup(e, { expose: d, emit: k }) {
|
|
85
|
+
let { vue_ui_rating: I } = l(), L = e, R = C(r()), z = C(!1), B = C(void 0), V = C(void 0), H = C([]), U = D();
|
|
86
|
+
x(() => {
|
|
87
87
|
U["chart-background"] && console.warn("VueUiRating does not support the #chart-background slot.");
|
|
88
88
|
});
|
|
89
|
-
let W =
|
|
89
|
+
let W = k, G = m({
|
|
90
90
|
get: () => K(),
|
|
91
91
|
set: (e) => e
|
|
92
|
-
}), le =
|
|
92
|
+
}), le = m(() => G.value.useCursorPointer);
|
|
93
93
|
function K() {
|
|
94
|
-
return
|
|
94
|
+
return u({
|
|
95
95
|
userConfig: L.config,
|
|
96
96
|
defaultConfig: I
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
te(() => L.config, (e) => {
|
|
100
100
|
G.value = K(), X();
|
|
101
101
|
}, { deep: !0 });
|
|
102
|
-
let ue =
|
|
102
|
+
let ue = m(() => typeof L.dataset.rating == "object" && !Array.isArray(L.dataset.rating) ? fe(L.dataset.rating) : L.dataset.rating), de = m(() => typeof L.dataset.rating == "object" && !Array.isArray(L.dataset.rating)), q = C(ue.value), J = m(() => G.value.type === "image"), Y = m(() => G.value.readonly);
|
|
103
103
|
function fe(e) {
|
|
104
104
|
let t = 0, n = 0;
|
|
105
105
|
for (let r in e) {
|
|
@@ -110,11 +110,11 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
110
110
|
let r = t / n;
|
|
111
111
|
return Math.min(G.value.to, Math.max(G.value.from, r));
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
x(() => {
|
|
114
114
|
X();
|
|
115
115
|
});
|
|
116
116
|
function X() {
|
|
117
|
-
(!Object.hasOwn(L.dataset, "rating") ||
|
|
117
|
+
(!Object.hasOwn(L.dataset, "rating") || t(L.dataset)) && o({
|
|
118
118
|
componentName: "VueUiRating",
|
|
119
119
|
type: "datasetAttribute",
|
|
120
120
|
property: "rating"
|
|
@@ -141,68 +141,68 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
141
141
|
function me(e = !0) {
|
|
142
142
|
Y.value = e;
|
|
143
143
|
}
|
|
144
|
-
return
|
|
144
|
+
return d({
|
|
145
145
|
getData: pe,
|
|
146
146
|
toggleReadonly: me
|
|
147
|
-
}), (e, t) => (
|
|
148
|
-
style:
|
|
147
|
+
}), (e, t) => (S(), g("div", {
|
|
148
|
+
style: b(`background:${G.value.style.backgroundColor};font-family:${G.value.style.fontFamily};width:100%`),
|
|
149
149
|
class: "vue-data-ui-component vue-ui-rating",
|
|
150
150
|
onMouseover: t[4] ||= (e) => z.value = !0,
|
|
151
151
|
onMouseleave: t[5] ||= (e) => {
|
|
152
152
|
z.value = !1, B.value = void 0;
|
|
153
153
|
}
|
|
154
154
|
}, [
|
|
155
|
-
G.value.style.title.text ? (
|
|
155
|
+
G.value.style.title.text ? (S(), g("div", A, [_("div", { style: b(`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`) }, T(G.value.style.title.text), 5), G.value.style.title.subtitle.text ? (S(), g("div", {
|
|
156
156
|
key: 0,
|
|
157
|
-
style:
|
|
158
|
-
},
|
|
159
|
-
G.value.style.rating.show && G.value.style.rating.position === "top" ? (
|
|
157
|
+
style: b(`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"}`)
|
|
158
|
+
}, T(G.value.style.title.subtitle.text), 5)) : h("", !0)])) : h("", !0),
|
|
159
|
+
G.value.style.rating.show && G.value.style.rating.position === "top" ? (S(), g("div", {
|
|
160
160
|
key: 1,
|
|
161
|
-
style:
|
|
162
|
-
},
|
|
161
|
+
style: b(`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`)
|
|
162
|
+
}, T(E(s)(G.value.style.rating.formatter, q.value, E(a)({
|
|
163
163
|
v: q.value,
|
|
164
164
|
r: G.value.style.rating.roundingValue
|
|
165
|
-
}), G.value)), 5)) :
|
|
166
|
-
|
|
165
|
+
}), G.value)), 5)) : h("", !0),
|
|
166
|
+
_("div", {
|
|
167
167
|
class: "vue-ui-rating-wrapper",
|
|
168
|
-
style:
|
|
168
|
+
style: b(`height:${G.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
|
|
169
169
|
}, [
|
|
170
|
-
G.value.style.rating.show && G.value.style.rating.position === "left" ? (
|
|
170
|
+
G.value.style.rating.show && G.value.style.rating.position === "left" ? (S(), g("div", {
|
|
171
171
|
key: 0,
|
|
172
|
-
style:
|
|
173
|
-
},
|
|
172
|
+
style: b(`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`)
|
|
173
|
+
}, T(E(s)(G.value.style.rating.formatter, q.value, E(a)({
|
|
174
174
|
v: q.value,
|
|
175
175
|
r: G.value.style.rating.roundingValue
|
|
176
|
-
}), G.value)), 5)) :
|
|
177
|
-
(
|
|
176
|
+
}), G.value)), 5)) : h("", !0),
|
|
177
|
+
(S(!0), g(p, null, ee(H.value, (r, o) => (S(), g("div", {
|
|
178
178
|
class: "vue-ui-rating-unit-container",
|
|
179
|
-
style:
|
|
179
|
+
style: b(`position:relative;height:${G.value.style.itemSize}px;width:${G.value.style.itemSize}px`)
|
|
180
180
|
}, [
|
|
181
|
-
e.$slots["layer-under"] || e.$slots["layer-above"] ? (
|
|
182
|
-
value:
|
|
181
|
+
e.$slots["layer-under"] || e.$slots["layer-above"] ? (S(), g("div", j, [e.$slots["layer-under"] ? (S(), g("div", M, [w(e.$slots, "layer-under", y({ ref_for: !0 }, {
|
|
182
|
+
value: r,
|
|
183
183
|
size: G.value.style.itemSize,
|
|
184
184
|
hoveredValue: B.value,
|
|
185
185
|
focusedValue: V.value
|
|
186
|
-
}), void 0, !0)])) :
|
|
187
|
-
value:
|
|
186
|
+
}), void 0, !0)])) : h("", !0), e.$slots["layer-above"] ? (S(), g("div", N, [w(e.$slots, "layer-above", y({ ref_for: !0 }, {
|
|
187
|
+
value: r,
|
|
188
188
|
size: G.value.style.itemSize,
|
|
189
189
|
hoveredValue: B.value,
|
|
190
190
|
focusedValue: V.value
|
|
191
|
-
}), void 0, !0)])) :
|
|
191
|
+
}), void 0, !0)])) : h("", !0)])) : (S(), g(p, { key: 1 }, [J.value ? (S(), g("img", {
|
|
192
192
|
key: 0,
|
|
193
193
|
src: G.value.style.image.src,
|
|
194
194
|
height: G.value.style.itemSize,
|
|
195
195
|
width: G.value.style.itemSize,
|
|
196
196
|
class: "vue-ui-rating-unit",
|
|
197
|
-
style:
|
|
198
|
-
}, null, 12,
|
|
197
|
+
style: b(`position:absolute;top:0;left:0;opacity:${isNaN(B.value) ? G.value.style.image.inactiveOpacity : Z(r, !0)}`)
|
|
198
|
+
}, null, 12, P)) : (S(), g("svg", {
|
|
199
199
|
key: 1,
|
|
200
|
-
xmlns:
|
|
200
|
+
xmlns: E(c),
|
|
201
201
|
viewBox: "0 0 100 100",
|
|
202
202
|
height: G.value.style.itemSize,
|
|
203
203
|
width: G.value.style.itemSize,
|
|
204
204
|
class: "vue-ui-rating-unit"
|
|
205
|
-
}, [
|
|
205
|
+
}, [_("defs", null, [v(f, {
|
|
206
206
|
t: "radial",
|
|
207
207
|
cx: "50%",
|
|
208
208
|
cy: "50%",
|
|
@@ -212,15 +212,15 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
212
212
|
id: `star_gradient_under_${R.value}`,
|
|
213
213
|
stops: [[
|
|
214
214
|
"0%",
|
|
215
|
-
|
|
215
|
+
E(n)(G.value.style.star.activeColor, .05),
|
|
216
216
|
1
|
|
217
217
|
], [
|
|
218
218
|
"100%",
|
|
219
219
|
G.value.style.star.activeColor,
|
|
220
220
|
1
|
|
221
221
|
]]
|
|
222
|
-
}, null, 8, ["id", "stops"])]),
|
|
223
|
-
points:
|
|
222
|
+
}, null, 8, ["id", "stops"])]), _("polygon", {
|
|
223
|
+
points: E(i)({
|
|
224
224
|
plot: {
|
|
225
225
|
x: 50,
|
|
226
226
|
y: 50
|
|
@@ -228,33 +228,33 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
228
228
|
radius: 30,
|
|
229
229
|
apexes: G.value.style.star.apexes
|
|
230
230
|
}),
|
|
231
|
-
fill: isNaN(B.value) ? G.value.style.star.inactiveColor : Z(
|
|
232
|
-
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : B.value ? Z(
|
|
231
|
+
fill: isNaN(B.value) ? G.value.style.star.inactiveColor : Z(r),
|
|
232
|
+
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : B.value ? Z(r) : G.value.style.star.inactiveColor,
|
|
233
233
|
"stroke-width": G.value.style.star.borderWidth,
|
|
234
234
|
"stroke-linecap": "round",
|
|
235
235
|
"stroke-linejoin": "round"
|
|
236
|
-
}, null, 8,
|
|
236
|
+
}, null, 8, re)], 8, ne)), J.value ? (S(), g("img", {
|
|
237
237
|
key: 2,
|
|
238
238
|
src: G.value.style.image.src,
|
|
239
|
-
alt: `${G.value.style.image.alt} ${
|
|
239
|
+
alt: `${G.value.style.image.alt} ${r}`,
|
|
240
240
|
height: G.value.style.itemSize,
|
|
241
241
|
width: G.value.style.itemSize,
|
|
242
|
-
id: `active_${R.value}_${
|
|
242
|
+
id: `active_${R.value}_${r}`,
|
|
243
243
|
class: "vue-ui-rating-unit",
|
|
244
|
-
style:
|
|
245
|
-
}, null, 12,
|
|
244
|
+
style: b(`position:absolute;top:0;left:0;clip:rect(0px,${Q(o, !0) * G.value.style.itemSize}px,${G.value.style.itemSize}px,0px`)
|
|
245
|
+
}, null, 12, ie)) : (S(), g("svg", {
|
|
246
246
|
key: 3,
|
|
247
|
-
xmlns:
|
|
247
|
+
xmlns: E(c),
|
|
248
248
|
viewBox: `0 0 ${Q(o)} 100`,
|
|
249
249
|
height: G.value.style.itemSize,
|
|
250
250
|
class: "vue-ui-rating-unit",
|
|
251
|
-
id: `active_${R.value}_${
|
|
251
|
+
id: `active_${R.value}_${r}`,
|
|
252
252
|
style: {
|
|
253
253
|
position: "absolute",
|
|
254
254
|
top: "0",
|
|
255
255
|
left: "0"
|
|
256
256
|
}
|
|
257
|
-
}, [
|
|
257
|
+
}, [_("defs", null, [v(f, {
|
|
258
258
|
t: "radial",
|
|
259
259
|
cx: "50%",
|
|
260
260
|
cy: "50%",
|
|
@@ -264,15 +264,15 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
264
264
|
id: `star_gradient_over_${R.value}`,
|
|
265
265
|
stops: [[
|
|
266
266
|
"0%",
|
|
267
|
-
|
|
267
|
+
E(n)(G.value.style.star.activeColor, .05),
|
|
268
268
|
1
|
|
269
269
|
], [
|
|
270
270
|
"100%",
|
|
271
271
|
G.value.style.star.activeColor,
|
|
272
272
|
1
|
|
273
273
|
]]
|
|
274
|
-
}, null, 8, ["id", "stops"])]),
|
|
275
|
-
points:
|
|
274
|
+
}, null, 8, ["id", "stops"])]), _("polygon", {
|
|
275
|
+
points: E(i)({
|
|
276
276
|
plot: {
|
|
277
277
|
x: 50,
|
|
278
278
|
y: 50
|
|
@@ -282,14 +282,14 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
282
282
|
}),
|
|
283
283
|
fill: G.value.style.star.useGradient ? `url(#star_gradient_over_${R.value})` : G.value.style.star.activeColor,
|
|
284
284
|
stroke: G.value.style.star.activeColor
|
|
285
|
-
}, null, 8,
|
|
286
|
-
(
|
|
287
|
-
xmlns:
|
|
285
|
+
}, null, 8, oe)], 8, ae))], 64)),
|
|
286
|
+
(S(), g("svg", {
|
|
287
|
+
xmlns: E(c),
|
|
288
288
|
viewBox: "0 0 100 100",
|
|
289
289
|
height: G.value.style.itemSize,
|
|
290
290
|
class: "vue-ui-rating-unit",
|
|
291
|
-
style:
|
|
292
|
-
}, [Y.value ?
|
|
291
|
+
style: b(`position:absolute;top:0;left:0;${Y.value ? "" : le.value ? "cursor:pointer" : ""}`)
|
|
292
|
+
}, [Y.value ? h("", !0) : (S(), g("rect", {
|
|
293
293
|
key: 0,
|
|
294
294
|
class: "vue-ui-rating-mouse-trap",
|
|
295
295
|
x: 0,
|
|
@@ -297,14 +297,14 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
297
297
|
width: 100,
|
|
298
298
|
height: 100,
|
|
299
299
|
fill: "transparent",
|
|
300
|
-
onClick: (e) => $(
|
|
301
|
-
onMouseenter: (e) => B.value =
|
|
300
|
+
onClick: (e) => $(r),
|
|
301
|
+
onMouseenter: (e) => B.value = r,
|
|
302
302
|
onMouseleave: t[0] ||= (e) => B.value = void 0,
|
|
303
|
-
onFocus: (e) => V.value =
|
|
303
|
+
onFocus: (e) => V.value = r,
|
|
304
304
|
onBlur: t[1] ||= (e) => V.value = void 0,
|
|
305
305
|
tabindex: "0",
|
|
306
|
-
onKeyup:
|
|
307
|
-
}, null, 40,
|
|
306
|
+
onKeyup: O((e) => $(r), ["enter"])
|
|
307
|
+
}, null, 40, ce)), Y.value ? (S(), g("rect", {
|
|
308
308
|
key: 1,
|
|
309
309
|
class: "vue-ui-rating-mouse-trap",
|
|
310
310
|
x: 0,
|
|
@@ -312,41 +312,41 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
312
312
|
width: 100,
|
|
313
313
|
height: 100,
|
|
314
314
|
fill: "transparent",
|
|
315
|
-
onMouseenter: (e) => B.value =
|
|
315
|
+
onMouseenter: (e) => B.value = r,
|
|
316
316
|
onMouseleave: t[2] ||= (e) => B.value = void 0,
|
|
317
|
-
onFocus: (e) => V.value =
|
|
317
|
+
onFocus: (e) => V.value = r,
|
|
318
318
|
onBlur: t[3] ||= (e) => V.value = void 0
|
|
319
|
-
}, null, 40, F)) :
|
|
320
|
-
G.value.style.tooltip.show && de.value && Y.value ? (
|
|
319
|
+
}, null, 40, F)) : h("", !0)], 12, se)),
|
|
320
|
+
G.value.style.tooltip.show && de.value && Y.value ? (S(), g("div", {
|
|
321
321
|
key: 2,
|
|
322
322
|
class: "vue-ui-rating-tooltip",
|
|
323
|
-
style:
|
|
324
|
-
}, [
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
v: L.dataset.rating[
|
|
323
|
+
style: b(`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:${B.value === r ? "block" : "none"};padding:2px 12px;border-radius:${G.value.style.tooltip.borderRadius}px;box-shadow:${G.value.style.tooltip.boxShadow}`)
|
|
324
|
+
}, [_("div", { style: b(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${G.value.style.tooltip.color}`) }, [
|
|
325
|
+
_("span", { style: b(`font-size:${G.value.style.tooltip.fontSize}px`) }, T(r) + ":", 5),
|
|
326
|
+
_("span", { style: b(`font-weight:${G.value.style.tooltip.bold ? "bold" : "normal"};font-size:${G.value.style.tooltip.fontSize}px`) }, T(E(s)(G.value.style.tooltip.formatter, L.dataset.rating[r], E(a)({
|
|
327
|
+
v: L.dataset.rating[r],
|
|
328
328
|
r: G.value.style.tooltip.roundingValue
|
|
329
329
|
}), G.value)), 5),
|
|
330
|
-
|
|
331
|
-
], 4)], 4)) :
|
|
330
|
+
_("div", { style: b(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${G.value.style.tooltip.borderColor}`) }, " ▼ ", 4)
|
|
331
|
+
], 4)], 4)) : h("", !0)
|
|
332
332
|
], 4))), 256)),
|
|
333
|
-
G.value.style.rating.show && G.value.style.rating.position === "right" ? (
|
|
333
|
+
G.value.style.rating.show && G.value.style.rating.position === "right" ? (S(), g("div", {
|
|
334
334
|
key: 1,
|
|
335
|
-
style:
|
|
336
|
-
},
|
|
335
|
+
style: b(`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`)
|
|
336
|
+
}, T(E(s)(G.value.style.rating.formatter, q.value, E(a)({
|
|
337
337
|
v: q.value,
|
|
338
338
|
r: G.value.style.rating.roundingValue
|
|
339
|
-
}), G.value)), 5)) :
|
|
339
|
+
}), G.value)), 5)) : h("", !0)
|
|
340
340
|
], 4),
|
|
341
|
-
G.value.style.rating.show && G.value.style.rating.position === "bottom" ? (
|
|
341
|
+
G.value.style.rating.show && G.value.style.rating.position === "bottom" ? (S(), g("div", {
|
|
342
342
|
key: 2,
|
|
343
|
-
style:
|
|
344
|
-
},
|
|
343
|
+
style: b(`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`)
|
|
344
|
+
}, T(E(s)(G.value.style.rating.formatter, q.value, E(a)({
|
|
345
345
|
v: q.value,
|
|
346
346
|
r: G.value.style.rating.roundingValue
|
|
347
|
-
}), G.value)), 5)) :
|
|
347
|
+
}), G.value)), 5)) : h("", !0)
|
|
348
348
|
], 36));
|
|
349
349
|
}
|
|
350
350
|
}, [["__scopeId", "data-v-b61d01b2"]]);
|
|
351
351
|
//#endregion
|
|
352
|
-
export {
|
|
352
|
+
export { k as n, I as t };
|