vue-data-ui 3.25.5 → 3.25.6
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-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
- package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
- package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
- package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
- package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
- package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
- package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
- package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
- package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
- package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
- package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
- package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
- package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.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/types/vue-data-ui.d.ts +10 -0
- package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
- package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
- package/dist/vue-data-ui.js +71 -71
- package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
- package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
- package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
- package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
- package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
- package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
- package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
- package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
- package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
- package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
- package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
- package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
- package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
- package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
- package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
- package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
- package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
- package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
- package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
- package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
- package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
- package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
- package/dist/vue-ui-gauge-DLDULH26.js +934 -0
- package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
- package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
- package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
- package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
- package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
- package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
- package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
- package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
- package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
- package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
- package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
- package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
- package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
- package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
- package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
- package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
- package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
- package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
- package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
- package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
- package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
- package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
- package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
- package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
- package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
- package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
- package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
- package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
- package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
- package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
- package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
- package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
- package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
- package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
- package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
- package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
- package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
- package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
- package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
- package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
- package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
- package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
- package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
- package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
- package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
- package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
- package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
- package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
- package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
- package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
- package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
- package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
- package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
- package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
- package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
- package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
- package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
- package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
- package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
- package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
- package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
- package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
- package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
- package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
- package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
- package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
- package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
- package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
- package/dist/vue-ui-rating-CBdDXL80.js +0 -359
- package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
- package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
- package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
- package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
- package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
- package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
- package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
- package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
- package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
- package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
- package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
- package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
- package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
- package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
- package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
- package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
- package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
- package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
- package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
- package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
- package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
- package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
|
@@ -1,359 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Pt as t, Wt as n, X as r, i, nt as a, q as o, t as s, z as c } from "./lib-Dql7cqyA.js";
|
|
3
|
-
import { n as ee, t as l } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as u } from "./useConfig-C_mX5pOZ.js";
|
|
5
|
-
import { t as d } from "./useNestedProp-Chvyfpl-.js";
|
|
6
|
-
import { t as f } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
-
import { t as p } from "./DefGrad-DVBqDjhO.js";
|
|
8
|
-
import { Fragment as m, computed as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createVNode as y, mergeProps as b, normalizeStyle as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useSlots as k, watch as A, withKeys as j } from "vue";
|
|
9
|
-
//#region src/components/vue-ui-rating.vue
|
|
10
|
-
var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "vue-ui-rating-title",
|
|
13
|
-
style: { width: "100%" }
|
|
14
|
-
}, ne = {
|
|
15
|
-
key: 0,
|
|
16
|
-
style: { position: "relative" }
|
|
17
|
-
}, re = {
|
|
18
|
-
key: 0,
|
|
19
|
-
style: {
|
|
20
|
-
position: "absolute",
|
|
21
|
-
top: "0",
|
|
22
|
-
left: "0",
|
|
23
|
-
width: "100%",
|
|
24
|
-
height: "100%"
|
|
25
|
-
}
|
|
26
|
-
}, ie = {
|
|
27
|
-
key: 1,
|
|
28
|
-
style: {
|
|
29
|
-
position: "absolute",
|
|
30
|
-
top: "0",
|
|
31
|
-
left: "0",
|
|
32
|
-
width: "100%",
|
|
33
|
-
height: "100%"
|
|
34
|
-
}
|
|
35
|
-
}, ae = [
|
|
36
|
-
"src",
|
|
37
|
-
"height",
|
|
38
|
-
"width"
|
|
39
|
-
], oe = [
|
|
40
|
-
"xmlns",
|
|
41
|
-
"height",
|
|
42
|
-
"width"
|
|
43
|
-
], se = [
|
|
44
|
-
"points",
|
|
45
|
-
"fill",
|
|
46
|
-
"stroke",
|
|
47
|
-
"stroke-width"
|
|
48
|
-
], ce = [
|
|
49
|
-
"src",
|
|
50
|
-
"alt",
|
|
51
|
-
"height",
|
|
52
|
-
"width",
|
|
53
|
-
"id"
|
|
54
|
-
], le = [
|
|
55
|
-
"xmlns",
|
|
56
|
-
"viewBox",
|
|
57
|
-
"height",
|
|
58
|
-
"id"
|
|
59
|
-
], N = [
|
|
60
|
-
"points",
|
|
61
|
-
"fill",
|
|
62
|
-
"stroke"
|
|
63
|
-
], P = ["xmlns", "height"], F = [
|
|
64
|
-
"onClick",
|
|
65
|
-
"onMouseenter",
|
|
66
|
-
"onFocus",
|
|
67
|
-
"onKeyup"
|
|
68
|
-
], I = ["onMouseenter", "onFocus"], L = /*#__PURE__*/ f({
|
|
69
|
-
__name: "vue-ui-rating",
|
|
70
|
-
props: {
|
|
71
|
-
config: {
|
|
72
|
-
type: Object,
|
|
73
|
-
default() {
|
|
74
|
-
return {};
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
dataset: {
|
|
78
|
-
type: Object,
|
|
79
|
-
default() {
|
|
80
|
-
return {};
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
emits: ["rate"],
|
|
85
|
-
setup(e, { expose: f, emit: M }) {
|
|
86
|
-
let { vue_ui_rating: L } = u(), R = e, z = w(o()), B = w(!1), V = w(void 0), H = w(void 0), U = w([]), ue = k(), de = M, W = h({
|
|
87
|
-
get: () => G(),
|
|
88
|
-
set: (e) => e
|
|
89
|
-
});
|
|
90
|
-
S(() => {
|
|
91
|
-
ue["chart-background"] && W.value.debug && console.warn("VueUiRating does not support the #chart-background slot.");
|
|
92
|
-
}), ee({
|
|
93
|
-
config: () => W.value,
|
|
94
|
-
dataset: () => [],
|
|
95
|
-
component: "VueUiRating",
|
|
96
|
-
rules: [l.noHint]
|
|
97
|
-
});
|
|
98
|
-
let fe = h(() => W.value.useCursorPointer);
|
|
99
|
-
function G() {
|
|
100
|
-
return d({
|
|
101
|
-
userConfig: R.config,
|
|
102
|
-
defaultConfig: L
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
A(() => R.config, (e) => {
|
|
106
|
-
W.value = G(), X();
|
|
107
|
-
}, { deep: !0 });
|
|
108
|
-
let pe = h(() => typeof R.dataset.rating == "object" && !Array.isArray(R.dataset.rating) ? me(R.dataset.rating) : R.dataset.rating), K = h(() => typeof R.dataset.rating == "object" && !Array.isArray(R.dataset.rating)), q = w(pe.value), J = h(() => W.value.type === "image"), Y = h(() => W.value.readonly);
|
|
109
|
-
function me(e) {
|
|
110
|
-
let t = 0, n = 0;
|
|
111
|
-
for (let r in e) {
|
|
112
|
-
let i = parseInt(r), a = e[r];
|
|
113
|
-
t += i * a, n += a;
|
|
114
|
-
}
|
|
115
|
-
if (n === 0) return 0;
|
|
116
|
-
let r = t / n;
|
|
117
|
-
return Math.min(W.value.to, Math.max(W.value.from, r));
|
|
118
|
-
}
|
|
119
|
-
S(() => {
|
|
120
|
-
X();
|
|
121
|
-
});
|
|
122
|
-
function X() {
|
|
123
|
-
(!Object.hasOwn(R.dataset, "rating") || t(R.dataset)) && a({
|
|
124
|
-
componentName: "VueUiRating",
|
|
125
|
-
type: "datasetAttribute",
|
|
126
|
-
property: "rating",
|
|
127
|
-
debug: W.value.debug
|
|
128
|
-
}), U.value = [];
|
|
129
|
-
for (let e = W.value.from; e <= W.value.to; e += 1) U.value.push(e);
|
|
130
|
-
}
|
|
131
|
-
function Z(e, t = !1) {
|
|
132
|
-
return e > V.value || Y.value ? t ? W.value.style.image.inactiveOpacity : W.value.style.star.inactiveColor : t ? 1 : W.value.style.star.useGradient ? `url(#star_gradient_under_${z.value})` : W.value.style.star.activeColor;
|
|
133
|
-
}
|
|
134
|
-
function Q(e, t = !1) {
|
|
135
|
-
let n = q.value - e, r = t ? 1 : 100;
|
|
136
|
-
switch (!0) {
|
|
137
|
-
case n <= 0: return .001;
|
|
138
|
-
case n > 1: return 1 * r;
|
|
139
|
-
default: return n * r;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
function $(e) {
|
|
143
|
-
Y.value || (q.value = e, de("rate", e));
|
|
144
|
-
}
|
|
145
|
-
function he() {
|
|
146
|
-
return q.value;
|
|
147
|
-
}
|
|
148
|
-
function ge(e = !0) {
|
|
149
|
-
Y.value = e;
|
|
150
|
-
}
|
|
151
|
-
return f({
|
|
152
|
-
getData: he,
|
|
153
|
-
toggleReadonly: ge
|
|
154
|
-
}), (e, t) => (C(), _("div", {
|
|
155
|
-
style: x(`background:${W.value.style.backgroundColor};font-family:${W.value.style.fontFamily};width:100%`),
|
|
156
|
-
class: "vue-data-ui-component vue-ui-rating",
|
|
157
|
-
onMouseover: t[4] ||= (e) => B.value = !0,
|
|
158
|
-
onMouseleave: t[5] ||= (e) => {
|
|
159
|
-
B.value = !1, V.value = void 0;
|
|
160
|
-
}
|
|
161
|
-
}, [
|
|
162
|
-
W.value.style.title.text ? (C(), _("div", te, [v("div", { style: x(`color:${W.value.style.title.color};font-weight:${W.value.style.title.bold ? "bold" : "normal"};text-align:${W.value.style.title.textAlign};margin-bottom:${W.value.style.title.offsetY}px;font-size:${W.value.style.title.fontSize}px`) }, D(W.value.style.title.text), 5), W.value.style.title.subtitle.text ? (C(), _("div", {
|
|
163
|
-
key: 0,
|
|
164
|
-
style: x(`color:${W.value.style.title.subtitle.color};font-size:${W.value.style.title.subtitle.fontSize}px;text-align:${W.value.style.title.textAlign};margin-bottom:${W.value.style.title.subtitle.offsetY}px;font-weight:${W.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
165
|
-
}, D(W.value.style.title.subtitle.text), 5)) : g("", !0)])) : g("", !0),
|
|
166
|
-
W.value.style.rating.show && W.value.style.rating.position === "top" ? (C(), _("div", {
|
|
167
|
-
key: 1,
|
|
168
|
-
style: x(`width:100%;text-align:center;margin-bottom:${W.value.style.rating.offsetY}px;font-size:${W.value.style.rating.fontSize}px;font-weight:${W.value.style.rating.bold ? "bold" : "normal"};margin-left:${W.value.style.rating.offsetX}px`)
|
|
169
|
-
}, D(O(i)(W.value.style.rating.formatter, q.value, O(r)({
|
|
170
|
-
v: q.value,
|
|
171
|
-
r: W.value.style.rating.roundingValue
|
|
172
|
-
}), W.value)), 5)) : g("", !0),
|
|
173
|
-
v("div", {
|
|
174
|
-
class: "vue-ui-rating-wrapper",
|
|
175
|
-
style: x(`height:${W.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
|
|
176
|
-
}, [
|
|
177
|
-
W.value.style.rating.show && W.value.style.rating.position === "left" ? (C(), _("div", {
|
|
178
|
-
key: 0,
|
|
179
|
-
style: x(`width:fit-content;text-align:center;margin-bottom:${W.value.style.rating.offsetY}px;font-size:${W.value.style.rating.fontSize}px;font-weight:${W.value.style.rating.bold ? "bold" : "normal"};padding-right:${W.value.style.rating.offsetX}px`)
|
|
180
|
-
}, D(O(i)(W.value.style.rating.formatter, q.value, O(r)({
|
|
181
|
-
v: q.value,
|
|
182
|
-
r: W.value.style.rating.roundingValue
|
|
183
|
-
}), W.value)), 5)) : g("", !0),
|
|
184
|
-
(C(!0), _(m, null, T(U.value, (a, o) => (C(), _("div", {
|
|
185
|
-
class: "vue-ui-rating-unit-container",
|
|
186
|
-
style: x(`position:relative;height:${W.value.style.itemSize}px;width:${W.value.style.itemSize}px`)
|
|
187
|
-
}, [
|
|
188
|
-
e.$slots["layer-under"] || e.$slots["layer-above"] ? (C(), _("div", ne, [e.$slots["layer-under"] ? (C(), _("div", re, [E(e.$slots, "layer-under", b({ ref_for: !0 }, {
|
|
189
|
-
value: a,
|
|
190
|
-
size: W.value.style.itemSize,
|
|
191
|
-
hoveredValue: V.value,
|
|
192
|
-
focusedValue: H.value
|
|
193
|
-
}), void 0, !0)])) : g("", !0), e.$slots["layer-above"] ? (C(), _("div", ie, [E(e.$slots, "layer-above", b({ ref_for: !0 }, {
|
|
194
|
-
value: a,
|
|
195
|
-
size: W.value.style.itemSize,
|
|
196
|
-
hoveredValue: V.value,
|
|
197
|
-
focusedValue: H.value
|
|
198
|
-
}), void 0, !0)])) : g("", !0)])) : (C(), _(m, { key: 1 }, [J.value ? (C(), _("img", {
|
|
199
|
-
key: 0,
|
|
200
|
-
src: W.value.style.image.src,
|
|
201
|
-
height: W.value.style.itemSize,
|
|
202
|
-
width: W.value.style.itemSize,
|
|
203
|
-
class: "vue-ui-rating-unit",
|
|
204
|
-
style: x(`position:absolute;top:0;left:0;opacity:${isNaN(V.value) ? W.value.style.image.inactiveOpacity : Z(a, !0)}`)
|
|
205
|
-
}, null, 12, ae)) : (C(), _("svg", {
|
|
206
|
-
key: 1,
|
|
207
|
-
xmlns: O(s),
|
|
208
|
-
viewBox: "0 0 100 100",
|
|
209
|
-
height: W.value.style.itemSize,
|
|
210
|
-
width: W.value.style.itemSize,
|
|
211
|
-
class: "vue-ui-rating-unit"
|
|
212
|
-
}, [v("defs", null, [y(p, {
|
|
213
|
-
t: "radial",
|
|
214
|
-
cx: "50%",
|
|
215
|
-
cy: "50%",
|
|
216
|
-
r: "50%",
|
|
217
|
-
fx: "50%",
|
|
218
|
-
fy: "50%",
|
|
219
|
-
id: `star_gradient_under_${z.value}`,
|
|
220
|
-
stops: [[
|
|
221
|
-
"0%",
|
|
222
|
-
O(n)(W.value.style.star.activeColor, .05),
|
|
223
|
-
1
|
|
224
|
-
], [
|
|
225
|
-
"100%",
|
|
226
|
-
W.value.style.star.activeColor,
|
|
227
|
-
1
|
|
228
|
-
]]
|
|
229
|
-
}, null, 8, ["id", "stops"])]), v("polygon", {
|
|
230
|
-
points: O(c)({
|
|
231
|
-
plot: {
|
|
232
|
-
x: 50,
|
|
233
|
-
y: 50
|
|
234
|
-
},
|
|
235
|
-
radius: 30,
|
|
236
|
-
apexes: W.value.style.star.apexes
|
|
237
|
-
}),
|
|
238
|
-
fill: isNaN(V.value) ? W.value.style.star.inactiveColor : Z(a),
|
|
239
|
-
stroke: W.value.style.star.borderColor ? W.value.style.star.borderColor : V.value ? Z(a) : W.value.style.star.inactiveColor,
|
|
240
|
-
"stroke-width": W.value.style.star.borderWidth,
|
|
241
|
-
"stroke-linecap": "round",
|
|
242
|
-
"stroke-linejoin": "round"
|
|
243
|
-
}, null, 8, se)], 8, oe)), J.value ? (C(), _("img", {
|
|
244
|
-
key: 2,
|
|
245
|
-
src: W.value.style.image.src,
|
|
246
|
-
alt: `${W.value.style.image.alt} ${a}`,
|
|
247
|
-
height: W.value.style.itemSize,
|
|
248
|
-
width: W.value.style.itemSize,
|
|
249
|
-
id: `active_${z.value}_${a}`,
|
|
250
|
-
class: "vue-ui-rating-unit",
|
|
251
|
-
style: x(`position:absolute;top:0;left:0;clip:rect(0px,${Q(o, !0) * W.value.style.itemSize}px,${W.value.style.itemSize}px,0px`)
|
|
252
|
-
}, null, 12, ce)) : (C(), _("svg", {
|
|
253
|
-
key: 3,
|
|
254
|
-
xmlns: O(s),
|
|
255
|
-
viewBox: `0 0 ${Q(o)} 100`,
|
|
256
|
-
height: W.value.style.itemSize,
|
|
257
|
-
class: "vue-ui-rating-unit",
|
|
258
|
-
id: `active_${z.value}_${a}`,
|
|
259
|
-
style: {
|
|
260
|
-
position: "absolute",
|
|
261
|
-
top: "0",
|
|
262
|
-
left: "0"
|
|
263
|
-
}
|
|
264
|
-
}, [v("defs", null, [y(p, {
|
|
265
|
-
t: "radial",
|
|
266
|
-
cx: "50%",
|
|
267
|
-
cy: "50%",
|
|
268
|
-
r: "50%",
|
|
269
|
-
fx: "50%",
|
|
270
|
-
fy: "50%",
|
|
271
|
-
id: `star_gradient_over_${z.value}`,
|
|
272
|
-
stops: [[
|
|
273
|
-
"0%",
|
|
274
|
-
O(n)(W.value.style.star.activeColor, .05),
|
|
275
|
-
1
|
|
276
|
-
], [
|
|
277
|
-
"100%",
|
|
278
|
-
W.value.style.star.activeColor,
|
|
279
|
-
1
|
|
280
|
-
]]
|
|
281
|
-
}, null, 8, ["id", "stops"])]), v("polygon", {
|
|
282
|
-
points: O(c)({
|
|
283
|
-
plot: {
|
|
284
|
-
x: 50,
|
|
285
|
-
y: 50
|
|
286
|
-
},
|
|
287
|
-
radius: 30,
|
|
288
|
-
apexes: W.value.style.star.apexes
|
|
289
|
-
}),
|
|
290
|
-
fill: W.value.style.star.useGradient ? `url(#star_gradient_over_${z.value})` : W.value.style.star.activeColor,
|
|
291
|
-
stroke: W.value.style.star.activeColor
|
|
292
|
-
}, null, 8, N)], 8, le))], 64)),
|
|
293
|
-
(C(), _("svg", {
|
|
294
|
-
xmlns: O(s),
|
|
295
|
-
viewBox: "0 0 100 100",
|
|
296
|
-
height: W.value.style.itemSize,
|
|
297
|
-
class: "vue-ui-rating-unit",
|
|
298
|
-
style: x(`position:absolute;top:0;left:0;${Y.value ? "" : fe.value ? "cursor:pointer" : ""}`)
|
|
299
|
-
}, [Y.value ? g("", !0) : (C(), _("rect", {
|
|
300
|
-
key: 0,
|
|
301
|
-
class: "vue-ui-rating-mouse-trap",
|
|
302
|
-
x: 0,
|
|
303
|
-
y: 0,
|
|
304
|
-
width: 100,
|
|
305
|
-
height: 100,
|
|
306
|
-
fill: "transparent",
|
|
307
|
-
onClick: (e) => $(a),
|
|
308
|
-
onMouseenter: (e) => V.value = a,
|
|
309
|
-
onMouseleave: t[0] ||= (e) => V.value = void 0,
|
|
310
|
-
onFocus: (e) => H.value = a,
|
|
311
|
-
onBlur: t[1] ||= (e) => H.value = void 0,
|
|
312
|
-
tabindex: "0",
|
|
313
|
-
onKeyup: j((e) => $(a), ["enter"])
|
|
314
|
-
}, null, 40, F)), Y.value ? (C(), _("rect", {
|
|
315
|
-
key: 1,
|
|
316
|
-
class: "vue-ui-rating-mouse-trap",
|
|
317
|
-
x: 0,
|
|
318
|
-
y: 0,
|
|
319
|
-
width: 100,
|
|
320
|
-
height: 100,
|
|
321
|
-
fill: "transparent",
|
|
322
|
-
onMouseenter: (e) => V.value = a,
|
|
323
|
-
onMouseleave: t[2] ||= (e) => V.value = void 0,
|
|
324
|
-
onFocus: (e) => H.value = a,
|
|
325
|
-
onBlur: t[3] ||= (e) => H.value = void 0
|
|
326
|
-
}, null, 40, I)) : g("", !0)], 12, P)),
|
|
327
|
-
W.value.style.tooltip.show && K.value && Y.value ? (C(), _("div", {
|
|
328
|
-
key: 2,
|
|
329
|
-
class: "vue-ui-rating-tooltip",
|
|
330
|
-
style: x(`border:1px solid ${W.value.style.tooltip.borderColor};position:absolute;top:${-48 + W.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${W.value.style.tooltip.backgroundColor};display:${V.value === a ? "block" : "none"};padding:2px 12px;border-radius:${W.value.style.tooltip.borderRadius}px;box-shadow:${W.value.style.tooltip.boxShadow}`)
|
|
331
|
-
}, [v("div", { style: x(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${W.value.style.tooltip.color}`) }, [
|
|
332
|
-
v("span", { style: x(`font-size:${W.value.style.tooltip.fontSize}px`) }, D(a) + ":", 5),
|
|
333
|
-
v("span", { style: x(`font-weight:${W.value.style.tooltip.bold ? "bold" : "normal"};font-size:${W.value.style.tooltip.fontSize}px`) }, D(O(i)(W.value.style.tooltip.formatter, R.dataset.rating[a], O(r)({
|
|
334
|
-
v: R.dataset.rating[a],
|
|
335
|
-
r: W.value.style.tooltip.roundingValue
|
|
336
|
-
}), W.value)), 5),
|
|
337
|
-
v("div", { style: x(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${W.value.style.tooltip.borderColor}`) }, " ▼ ", 4)
|
|
338
|
-
], 4)], 4)) : g("", !0)
|
|
339
|
-
], 4))), 256)),
|
|
340
|
-
W.value.style.rating.show && W.value.style.rating.position === "right" ? (C(), _("div", {
|
|
341
|
-
key: 1,
|
|
342
|
-
style: x(`width:fit-content;text-align:center;margin-bottom:${W.value.style.rating.offsetY}px;font-size:${W.value.style.rating.fontSize}px;font-weight:${W.value.style.rating.bold ? "bold" : "normal"};padding-left:${W.value.style.rating.offsetX}px`)
|
|
343
|
-
}, D(O(i)(W.value.style.rating.formatter, q.value, O(r)({
|
|
344
|
-
v: q.value,
|
|
345
|
-
r: W.value.style.rating.roundingValue
|
|
346
|
-
}), W.value)), 5)) : g("", !0)
|
|
347
|
-
], 4),
|
|
348
|
-
W.value.style.rating.show && W.value.style.rating.position === "bottom" ? (C(), _("div", {
|
|
349
|
-
key: 2,
|
|
350
|
-
style: x(`width:100%;text-align:center;margin-top:${W.value.style.rating.offsetY}px;font-size:${W.value.style.rating.fontSize}px;font-weight:${W.value.style.rating.bold ? "bold" : "normal"};margin-left:${W.value.style.rating.offsetX}px`)
|
|
351
|
-
}, D(O(i)(W.value.style.rating.formatter, q.value, O(r)({
|
|
352
|
-
v: q.value,
|
|
353
|
-
r: W.value.style.rating.roundingValue
|
|
354
|
-
}), W.value)), 5)) : g("", !0)
|
|
355
|
-
], 36));
|
|
356
|
-
}
|
|
357
|
-
}, [["__scopeId", "data-v-d863563b"]]);
|
|
358
|
-
//#endregion
|
|
359
|
-
export { M as n, L as t };
|