vue-data-ui 3.22.8 → 3.22.9
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/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.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-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/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
- 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/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -3,16 +3,17 @@ import { $ as t, G as n, J as r, L as i, i as a, kt as o, t as s, zt as c } from
|
|
|
3
3
|
import { t as ee } from "./useConfig-DYM3f6EI.js";
|
|
4
4
|
import { t as te } from "./useNestedProp-DIuuzG1r.js";
|
|
5
5
|
import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
-
import {
|
|
6
|
+
import { t as u } from "./DefGrad-DVBqDjhO.js";
|
|
7
|
+
import { Fragment as d, computed as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, mergeProps as _, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as ne, renderSlot as S, toDisplayString as C, unref as w, useSlots as T, watch as E, withKeys as D } from "vue";
|
|
7
8
|
//#region src/components/vue-ui-rating.vue
|
|
8
|
-
var
|
|
9
|
+
var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "vue-ui-rating-title",
|
|
11
12
|
style: { width: "100%" }
|
|
12
|
-
},
|
|
13
|
+
}, A = {
|
|
13
14
|
key: 0,
|
|
14
15
|
style: { position: "relative" }
|
|
15
|
-
},
|
|
16
|
+
}, j = {
|
|
16
17
|
key: 0,
|
|
17
18
|
style: {
|
|
18
19
|
position: "absolute",
|
|
@@ -21,7 +22,7 @@ var w = /* @__PURE__ */ e({ default: () => R }), T = {
|
|
|
21
22
|
width: "100%",
|
|
22
23
|
height: "100%"
|
|
23
24
|
}
|
|
24
|
-
},
|
|
25
|
+
}, M = {
|
|
25
26
|
key: 1,
|
|
26
27
|
style: {
|
|
27
28
|
position: "absolute",
|
|
@@ -30,40 +31,40 @@ var w = /* @__PURE__ */ e({ default: () => R }), T = {
|
|
|
30
31
|
width: "100%",
|
|
31
32
|
height: "100%"
|
|
32
33
|
}
|
|
33
|
-
},
|
|
34
|
+
}, N = [
|
|
34
35
|
"src",
|
|
35
36
|
"height",
|
|
36
37
|
"width"
|
|
37
|
-
],
|
|
38
|
+
], re = [
|
|
38
39
|
"xmlns",
|
|
39
40
|
"height",
|
|
40
41
|
"width"
|
|
41
|
-
],
|
|
42
|
+
], ie = [
|
|
42
43
|
"points",
|
|
43
44
|
"fill",
|
|
44
45
|
"stroke",
|
|
45
46
|
"stroke-width"
|
|
46
|
-
],
|
|
47
|
+
], ae = [
|
|
47
48
|
"src",
|
|
48
49
|
"alt",
|
|
49
50
|
"height",
|
|
50
51
|
"width",
|
|
51
52
|
"id"
|
|
52
|
-
],
|
|
53
|
+
], oe = [
|
|
53
54
|
"xmlns",
|
|
54
55
|
"viewBox",
|
|
55
56
|
"height",
|
|
56
57
|
"id"
|
|
57
|
-
],
|
|
58
|
+
], se = [
|
|
58
59
|
"points",
|
|
59
60
|
"fill",
|
|
60
61
|
"stroke"
|
|
61
|
-
],
|
|
62
|
+
], ce = ["xmlns", "height"], P = [
|
|
62
63
|
"onClick",
|
|
63
64
|
"onMouseenter",
|
|
64
65
|
"onFocus",
|
|
65
66
|
"onKeyup"
|
|
66
|
-
],
|
|
67
|
+
], F = ["onMouseenter", "onFocus"], I = /*#__PURE__*/ l({
|
|
67
68
|
__name: "vue-ui-rating",
|
|
68
69
|
props: {
|
|
69
70
|
config: {
|
|
@@ -80,26 +81,26 @@ var w = /* @__PURE__ */ e({ default: () => R }), T = {
|
|
|
80
81
|
}
|
|
81
82
|
},
|
|
82
83
|
emits: ["rate"],
|
|
83
|
-
setup(e, { expose: l, emit:
|
|
84
|
-
let { vue_ui_rating:
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
setup(e, { expose: l, emit: O }) {
|
|
85
|
+
let { vue_ui_rating: I } = ee(), L = e, R = x(n()), z = x(!1), B = x(void 0), V = x(void 0), H = x([]), U = T();
|
|
86
|
+
y(() => {
|
|
87
|
+
U["chart-background"] && console.warn("VueUiRating does not support the #chart-background slot.");
|
|
87
88
|
});
|
|
88
|
-
let
|
|
89
|
+
let W = O, G = f({
|
|
89
90
|
get: () => K(),
|
|
90
91
|
set: (e) => e
|
|
91
|
-
}),
|
|
92
|
+
}), le = f(() => G.value.useCursorPointer);
|
|
92
93
|
function K() {
|
|
93
94
|
return te({
|
|
94
|
-
userConfig:
|
|
95
|
-
defaultConfig:
|
|
95
|
+
userConfig: L.config,
|
|
96
|
+
defaultConfig: I
|
|
96
97
|
});
|
|
97
98
|
}
|
|
98
|
-
|
|
99
|
+
E(() => L.config, (e) => {
|
|
99
100
|
G.value = K(), X();
|
|
100
101
|
}, { deep: !0 });
|
|
101
|
-
let
|
|
102
|
-
function
|
|
102
|
+
let ue = f(() => typeof L.dataset.rating == "object" && !Array.isArray(L.dataset.rating) ? fe(L.dataset.rating) : L.dataset.rating), de = f(() => typeof L.dataset.rating == "object" && !Array.isArray(L.dataset.rating)), q = x(ue.value), J = f(() => G.value.type === "image"), Y = f(() => G.value.readonly);
|
|
103
|
+
function fe(e) {
|
|
103
104
|
let t = 0, n = 0;
|
|
104
105
|
for (let r in e) {
|
|
105
106
|
let i = parseInt(r), a = e[r];
|
|
@@ -109,19 +110,19 @@ var w = /* @__PURE__ */ e({ default: () => R }), T = {
|
|
|
109
110
|
let r = t / n;
|
|
110
111
|
return Math.min(G.value.to, Math.max(G.value.from, r));
|
|
111
112
|
}
|
|
112
|
-
|
|
113
|
+
y(() => {
|
|
113
114
|
X();
|
|
114
115
|
});
|
|
115
116
|
function X() {
|
|
116
|
-
(!Object.hasOwn(
|
|
117
|
+
(!Object.hasOwn(L.dataset, "rating") || o(L.dataset)) && t({
|
|
117
118
|
componentName: "VueUiRating",
|
|
118
119
|
type: "datasetAttribute",
|
|
119
120
|
property: "rating"
|
|
120
|
-
}),
|
|
121
|
-
for (let e = G.value.from; e <= G.value.to; e += 1)
|
|
121
|
+
}), H.value = [];
|
|
122
|
+
for (let e = G.value.from; e <= G.value.to; e += 1) H.value.push(e);
|
|
122
123
|
}
|
|
123
124
|
function Z(e, t = !1) {
|
|
124
|
-
return e >
|
|
125
|
+
return e > B.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_${R.value})` : G.value.style.star.activeColor;
|
|
125
126
|
}
|
|
126
127
|
function Q(e, t = !1) {
|
|
127
128
|
let n = q.value - e, r = t ? 1 : 100;
|
|
@@ -132,90 +133,94 @@ var w = /* @__PURE__ */ e({ default: () => R }), T = {
|
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
135
|
function $(e) {
|
|
135
|
-
Y.value || (q.value = e,
|
|
136
|
+
Y.value || (q.value = e, W("rate", e));
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
+
function pe() {
|
|
138
139
|
return q.value;
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
+
function me(e = !0) {
|
|
141
142
|
Y.value = e;
|
|
142
143
|
}
|
|
143
144
|
return l({
|
|
144
|
-
getData:
|
|
145
|
-
toggleReadonly:
|
|
146
|
-
}), (e, t) => (
|
|
147
|
-
style:
|
|
145
|
+
getData: pe,
|
|
146
|
+
toggleReadonly: me
|
|
147
|
+
}), (e, t) => (b(), m("div", {
|
|
148
|
+
style: v(`background:${G.value.style.backgroundColor};font-family:${G.value.style.fontFamily};width:100%`),
|
|
148
149
|
class: "vue-data-ui-component vue-ui-rating",
|
|
149
|
-
onMouseover: t[4] ||= (e) =>
|
|
150
|
+
onMouseover: t[4] ||= (e) => z.value = !0,
|
|
150
151
|
onMouseleave: t[5] ||= (e) => {
|
|
151
|
-
|
|
152
|
+
z.value = !1, B.value = void 0;
|
|
152
153
|
}
|
|
153
154
|
}, [
|
|
154
|
-
G.value.style.title.text ? (
|
|
155
|
+
G.value.style.title.text ? (b(), m("div", k, [h("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(), m("div", {
|
|
155
156
|
key: 0,
|
|
156
|
-
style:
|
|
157
|
-
},
|
|
158
|
-
G.value.style.rating.show && G.value.style.rating.position === "top" ? (
|
|
157
|
+
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"}`)
|
|
158
|
+
}, C(G.value.style.title.subtitle.text), 5)) : p("", !0)])) : p("", !0),
|
|
159
|
+
G.value.style.rating.show && G.value.style.rating.position === "top" ? (b(), m("div", {
|
|
159
160
|
key: 1,
|
|
160
|
-
style:
|
|
161
|
-
},
|
|
161
|
+
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`)
|
|
162
|
+
}, C(w(a)(G.value.style.rating.formatter, q.value, w(r)({
|
|
162
163
|
v: q.value,
|
|
163
164
|
r: G.value.style.rating.roundingValue
|
|
164
|
-
}), G.value)), 5)) :
|
|
165
|
-
|
|
165
|
+
}), G.value)), 5)) : p("", !0),
|
|
166
|
+
h("div", {
|
|
166
167
|
class: "vue-ui-rating-wrapper",
|
|
167
|
-
style:
|
|
168
|
+
style: v(`height:${G.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
|
|
168
169
|
}, [
|
|
169
|
-
G.value.style.rating.show && G.value.style.rating.position === "left" ? (
|
|
170
|
+
G.value.style.rating.show && G.value.style.rating.position === "left" ? (b(), m("div", {
|
|
170
171
|
key: 0,
|
|
171
|
-
style:
|
|
172
|
-
},
|
|
172
|
+
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`)
|
|
173
|
+
}, C(w(a)(G.value.style.rating.formatter, q.value, w(r)({
|
|
173
174
|
v: q.value,
|
|
174
175
|
r: G.value.style.rating.roundingValue
|
|
175
|
-
}), G.value)), 5)) :
|
|
176
|
-
(
|
|
176
|
+
}), G.value)), 5)) : p("", !0),
|
|
177
|
+
(b(!0), m(d, null, ne(H.value, (n, o) => (b(), m("div", {
|
|
177
178
|
class: "vue-ui-rating-unit-container",
|
|
178
|
-
style:
|
|
179
|
+
style: v(`position:relative;height:${G.value.style.itemSize}px;width:${G.value.style.itemSize}px`)
|
|
179
180
|
}, [
|
|
180
|
-
e.$slots["layer-under"] || e.$slots["layer-above"] ? (
|
|
181
|
+
e.$slots["layer-under"] || e.$slots["layer-above"] ? (b(), m("div", A, [e.$slots["layer-under"] ? (b(), m("div", j, [S(e.$slots, "layer-under", _({ ref_for: !0 }, {
|
|
181
182
|
value: n,
|
|
182
183
|
size: G.value.style.itemSize,
|
|
183
|
-
hoveredValue:
|
|
184
|
-
focusedValue:
|
|
185
|
-
}), void 0, !0)])) :
|
|
184
|
+
hoveredValue: B.value,
|
|
185
|
+
focusedValue: V.value
|
|
186
|
+
}), void 0, !0)])) : p("", !0), e.$slots["layer-above"] ? (b(), m("div", M, [S(e.$slots, "layer-above", _({ ref_for: !0 }, {
|
|
186
187
|
value: n,
|
|
187
188
|
size: G.value.style.itemSize,
|
|
188
|
-
hoveredValue:
|
|
189
|
-
focusedValue:
|
|
190
|
-
}), void 0, !0)])) :
|
|
189
|
+
hoveredValue: B.value,
|
|
190
|
+
focusedValue: V.value
|
|
191
|
+
}), void 0, !0)])) : p("", !0)])) : (b(), m(d, { key: 1 }, [J.value ? (b(), m("img", {
|
|
191
192
|
key: 0,
|
|
192
193
|
src: G.value.style.image.src,
|
|
193
194
|
height: G.value.style.itemSize,
|
|
194
195
|
width: G.value.style.itemSize,
|
|
195
196
|
class: "vue-ui-rating-unit",
|
|
196
|
-
style:
|
|
197
|
-
}, null, 12,
|
|
197
|
+
style: v(`position:absolute;top:0;left:0;opacity:${isNaN(B.value) ? G.value.style.image.inactiveOpacity : Z(n, !0)}`)
|
|
198
|
+
}, null, 12, N)) : (b(), m("svg", {
|
|
198
199
|
key: 1,
|
|
199
|
-
xmlns:
|
|
200
|
+
xmlns: w(s),
|
|
200
201
|
viewBox: "0 0 100 100",
|
|
201
202
|
height: G.value.style.itemSize,
|
|
202
203
|
width: G.value.style.itemSize,
|
|
203
204
|
class: "vue-ui-rating-unit"
|
|
204
|
-
}, [
|
|
205
|
+
}, [h("defs", null, [g(u, {
|
|
206
|
+
t: "radial",
|
|
205
207
|
cx: "50%",
|
|
206
208
|
cy: "50%",
|
|
207
209
|
r: "50%",
|
|
208
210
|
fx: "50%",
|
|
209
211
|
fy: "50%",
|
|
210
|
-
id: `star_gradient_under_${
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
212
|
+
id: `star_gradient_under_${R.value}`,
|
|
213
|
+
stops: [[
|
|
214
|
+
"0%",
|
|
215
|
+
w(c)(G.value.style.star.activeColor, .05),
|
|
216
|
+
1
|
|
217
|
+
], [
|
|
218
|
+
"100%",
|
|
219
|
+
G.value.style.star.activeColor,
|
|
220
|
+
1
|
|
221
|
+
]]
|
|
222
|
+
}, null, 8, ["id", "stops"])]), h("polygon", {
|
|
223
|
+
points: w(i)({
|
|
219
224
|
plot: {
|
|
220
225
|
x: 50,
|
|
221
226
|
y: 50
|
|
@@ -223,47 +228,51 @@ var w = /* @__PURE__ */ e({ default: () => R }), T = {
|
|
|
223
228
|
radius: 30,
|
|
224
229
|
apexes: G.value.style.star.apexes
|
|
225
230
|
}),
|
|
226
|
-
fill: isNaN(
|
|
227
|
-
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor :
|
|
231
|
+
fill: isNaN(B.value) ? G.value.style.star.inactiveColor : Z(n),
|
|
232
|
+
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : B.value ? Z(n) : G.value.style.star.inactiveColor,
|
|
228
233
|
"stroke-width": G.value.style.star.borderWidth,
|
|
229
234
|
"stroke-linecap": "round",
|
|
230
235
|
"stroke-linejoin": "round"
|
|
231
|
-
}, null, 8,
|
|
236
|
+
}, null, 8, ie)], 8, re)), J.value ? (b(), m("img", {
|
|
232
237
|
key: 2,
|
|
233
238
|
src: G.value.style.image.src,
|
|
234
239
|
alt: `${G.value.style.image.alt} ${n}`,
|
|
235
240
|
height: G.value.style.itemSize,
|
|
236
241
|
width: G.value.style.itemSize,
|
|
237
|
-
id: `active_${
|
|
242
|
+
id: `active_${R.value}_${n}`,
|
|
238
243
|
class: "vue-ui-rating-unit",
|
|
239
|
-
style:
|
|
240
|
-
}, null, 12,
|
|
244
|
+
style: v(`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, ae)) : (b(), m("svg", {
|
|
241
246
|
key: 3,
|
|
242
|
-
xmlns:
|
|
247
|
+
xmlns: w(s),
|
|
243
248
|
viewBox: `0 0 ${Q(o)} 100`,
|
|
244
249
|
height: G.value.style.itemSize,
|
|
245
250
|
class: "vue-ui-rating-unit",
|
|
246
|
-
id: `active_${
|
|
251
|
+
id: `active_${R.value}_${n}`,
|
|
247
252
|
style: {
|
|
248
253
|
position: "absolute",
|
|
249
254
|
top: "0",
|
|
250
255
|
left: "0"
|
|
251
256
|
}
|
|
252
|
-
}, [
|
|
257
|
+
}, [h("defs", null, [g(u, {
|
|
258
|
+
t: "radial",
|
|
253
259
|
cx: "50%",
|
|
254
260
|
cy: "50%",
|
|
255
261
|
r: "50%",
|
|
256
262
|
fx: "50%",
|
|
257
263
|
fy: "50%",
|
|
258
|
-
id: `star_gradient_over_${
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
id: `star_gradient_over_${R.value}`,
|
|
265
|
+
stops: [[
|
|
266
|
+
"0%",
|
|
267
|
+
w(c)(G.value.style.star.activeColor, .05),
|
|
268
|
+
1
|
|
269
|
+
], [
|
|
270
|
+
"100%",
|
|
271
|
+
G.value.style.star.activeColor,
|
|
272
|
+
1
|
|
273
|
+
]]
|
|
274
|
+
}, null, 8, ["id", "stops"])]), h("polygon", {
|
|
275
|
+
points: w(i)({
|
|
267
276
|
plot: {
|
|
268
277
|
x: 50,
|
|
269
278
|
y: 50
|
|
@@ -271,16 +280,16 @@ var w = /* @__PURE__ */ e({ default: () => R }), T = {
|
|
|
271
280
|
radius: 30,
|
|
272
281
|
apexes: G.value.style.star.apexes
|
|
273
282
|
}),
|
|
274
|
-
fill: G.value.style.star.useGradient ? `url(#star_gradient_over_${
|
|
283
|
+
fill: G.value.style.star.useGradient ? `url(#star_gradient_over_${R.value})` : G.value.style.star.activeColor,
|
|
275
284
|
stroke: G.value.style.star.activeColor
|
|
276
|
-
}, null, 8,
|
|
277
|
-
(
|
|
278
|
-
xmlns:
|
|
285
|
+
}, null, 8, se)], 8, oe))], 64)),
|
|
286
|
+
(b(), m("svg", {
|
|
287
|
+
xmlns: w(s),
|
|
279
288
|
viewBox: "0 0 100 100",
|
|
280
289
|
height: G.value.style.itemSize,
|
|
281
290
|
class: "vue-ui-rating-unit",
|
|
282
|
-
style:
|
|
283
|
-
}, [Y.value ?
|
|
291
|
+
style: v(`position:absolute;top:0;left:0;${Y.value ? "" : le.value ? "cursor:pointer" : ""}`)
|
|
292
|
+
}, [Y.value ? p("", !0) : (b(), m("rect", {
|
|
284
293
|
key: 0,
|
|
285
294
|
class: "vue-ui-rating-mouse-trap",
|
|
286
295
|
x: 0,
|
|
@@ -289,13 +298,13 @@ var w = /* @__PURE__ */ e({ default: () => R }), T = {
|
|
|
289
298
|
height: 100,
|
|
290
299
|
fill: "transparent",
|
|
291
300
|
onClick: (e) => $(n),
|
|
292
|
-
onMouseenter: (e) =>
|
|
293
|
-
onMouseleave: t[0] ||= (e) =>
|
|
294
|
-
onFocus: (e) =>
|
|
295
|
-
onBlur: t[1] ||= (e) =>
|
|
301
|
+
onMouseenter: (e) => B.value = n,
|
|
302
|
+
onMouseleave: t[0] ||= (e) => B.value = void 0,
|
|
303
|
+
onFocus: (e) => V.value = n,
|
|
304
|
+
onBlur: t[1] ||= (e) => V.value = void 0,
|
|
296
305
|
tabindex: "0",
|
|
297
|
-
onKeyup:
|
|
298
|
-
}, null, 40,
|
|
306
|
+
onKeyup: D((e) => $(n), ["enter"])
|
|
307
|
+
}, null, 40, P)), Y.value ? (b(), m("rect", {
|
|
299
308
|
key: 1,
|
|
300
309
|
class: "vue-ui-rating-mouse-trap",
|
|
301
310
|
x: 0,
|
|
@@ -303,41 +312,41 @@ var w = /* @__PURE__ */ e({ default: () => R }), T = {
|
|
|
303
312
|
width: 100,
|
|
304
313
|
height: 100,
|
|
305
314
|
fill: "transparent",
|
|
306
|
-
onMouseenter: (e) =>
|
|
307
|
-
onMouseleave: t[2] ||= (e) =>
|
|
308
|
-
onFocus: (e) =>
|
|
309
|
-
onBlur: t[3] ||= (e) =>
|
|
310
|
-
}, null, 40,
|
|
311
|
-
G.value.style.tooltip.show &&
|
|
315
|
+
onMouseenter: (e) => B.value = n,
|
|
316
|
+
onMouseleave: t[2] ||= (e) => B.value = void 0,
|
|
317
|
+
onFocus: (e) => V.value = n,
|
|
318
|
+
onBlur: t[3] ||= (e) => V.value = void 0
|
|
319
|
+
}, null, 40, F)) : p("", !0)], 12, ce)),
|
|
320
|
+
G.value.style.tooltip.show && de.value && Y.value ? (b(), m("div", {
|
|
312
321
|
key: 2,
|
|
313
322
|
class: "vue-ui-rating-tooltip",
|
|
314
|
-
style:
|
|
315
|
-
}, [
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
v:
|
|
323
|
+
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:${B.value === n ? "block" : "none"};padding:2px 12px;border-radius:${G.value.style.tooltip.borderRadius}px;box-shadow:${G.value.style.tooltip.boxShadow}`)
|
|
324
|
+
}, [h("div", { style: v(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${G.value.style.tooltip.color}`) }, [
|
|
325
|
+
h("span", { style: v(`font-size:${G.value.style.tooltip.fontSize}px`) }, C(n) + ":", 5),
|
|
326
|
+
h("span", { style: v(`font-weight:${G.value.style.tooltip.bold ? "bold" : "normal"};font-size:${G.value.style.tooltip.fontSize}px`) }, C(w(a)(G.value.style.tooltip.formatter, L.dataset.rating[n], w(r)({
|
|
327
|
+
v: L.dataset.rating[n],
|
|
319
328
|
r: G.value.style.tooltip.roundingValue
|
|
320
329
|
}), G.value)), 5),
|
|
321
|
-
|
|
322
|
-
], 4)], 4)) :
|
|
330
|
+
h("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)
|
|
331
|
+
], 4)], 4)) : p("", !0)
|
|
323
332
|
], 4))), 256)),
|
|
324
|
-
G.value.style.rating.show && G.value.style.rating.position === "right" ? (
|
|
333
|
+
G.value.style.rating.show && G.value.style.rating.position === "right" ? (b(), m("div", {
|
|
325
334
|
key: 1,
|
|
326
|
-
style:
|
|
327
|
-
},
|
|
335
|
+
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`)
|
|
336
|
+
}, C(w(a)(G.value.style.rating.formatter, q.value, w(r)({
|
|
328
337
|
v: q.value,
|
|
329
338
|
r: G.value.style.rating.roundingValue
|
|
330
|
-
}), G.value)), 5)) :
|
|
339
|
+
}), G.value)), 5)) : p("", !0)
|
|
331
340
|
], 4),
|
|
332
|
-
G.value.style.rating.show && G.value.style.rating.position === "bottom" ? (
|
|
341
|
+
G.value.style.rating.show && G.value.style.rating.position === "bottom" ? (b(), m("div", {
|
|
333
342
|
key: 2,
|
|
334
|
-
style:
|
|
335
|
-
},
|
|
343
|
+
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`)
|
|
344
|
+
}, C(w(a)(G.value.style.rating.formatter, q.value, w(r)({
|
|
336
345
|
v: q.value,
|
|
337
346
|
r: G.value.style.rating.roundingValue
|
|
338
|
-
}), G.value)), 5)) :
|
|
347
|
+
}), G.value)), 5)) : p("", !0)
|
|
339
348
|
], 36));
|
|
340
349
|
}
|
|
341
|
-
}, [["__scopeId", "data-v-
|
|
350
|
+
}, [["__scopeId", "data-v-b61d01b2"]]);
|
|
342
351
|
//#endregion
|
|
343
|
-
export {
|
|
352
|
+
export { O as n, I as t };
|
|
@@ -118,7 +118,7 @@ var Fe = /* @__PURE__ */ e({ default: () => T }), Ie = ["id"], Le = ["id"], Re =
|
|
|
118
118
|
v309156a9: At.value,
|
|
119
119
|
v6c0f80cb: Mt.value
|
|
120
120
|
}));
|
|
121
|
-
let T = m(() => import("./PenAndPaper-
|
|
121
|
+
let T = m(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), nt = m(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), rt = m(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), { vue_ui_relation_circle: it } = se(), { isThemeValid: at, warnInvalidTheme: ot } = fe(), E = e, st = Fe, ct = l(() => !!E.dataset && Object.keys(E.dataset).length), D = y(n()), lt = y(0), O = y(null), ut = y(null), dt = y(null), ft = y(null), pt = y(0), k = y(!1), A = y(!1), j = y(null), M = y(!1), N = y(xt()), P = l(() => N.value.userOptions.useCursorPointer), mt = l(() => a({
|
|
122
122
|
defaultConfig: {
|
|
123
123
|
userOptions: { show: !1 },
|
|
124
124
|
customPalette: Array(7).fill("#CACACA"),
|