vue-data-ui 3.22.13 → 3.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.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-hill.js +2 -0
- 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-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- 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 +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Vt as t, X as n, i as r, jt as i, q as a, t as o, tt as s, z as c } from "./lib-BuMGJ_a0.js";
|
|
3
|
+
import { n as ee, t as l } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as u } from "./useConfig-BilxnBNr.js";
|
|
5
|
+
import { t as d } from "./useNestedProp--NSEmhOH.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(a()), B = w(!1), V = w(void 0), H = w(void 0), U = w([]), ue = k();
|
|
87
|
+
S(() => {
|
|
88
|
+
ue["chart-background"] && console.warn("VueUiRating does not support the #chart-background slot.");
|
|
89
|
+
});
|
|
90
|
+
let de = M, W = h({
|
|
91
|
+
get: () => G(),
|
|
92
|
+
set: (e) => e
|
|
93
|
+
});
|
|
94
|
+
ee({
|
|
95
|
+
config: () => W.value,
|
|
96
|
+
dataset: () => [],
|
|
97
|
+
component: "VueUiRating",
|
|
98
|
+
rules: [l.noHint]
|
|
99
|
+
});
|
|
100
|
+
let fe = h(() => W.value.useCursorPointer);
|
|
101
|
+
function G() {
|
|
102
|
+
return d({
|
|
103
|
+
userConfig: R.config,
|
|
104
|
+
defaultConfig: L
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
A(() => R.config, (e) => {
|
|
108
|
+
W.value = G(), X();
|
|
109
|
+
}, { deep: !0 });
|
|
110
|
+
let K = h(() => typeof R.dataset.rating == "object" && !Array.isArray(R.dataset.rating) ? me(R.dataset.rating) : R.dataset.rating), pe = h(() => typeof R.dataset.rating == "object" && !Array.isArray(R.dataset.rating)), q = w(K.value), J = h(() => W.value.type === "image"), Y = h(() => W.value.readonly);
|
|
111
|
+
function me(e) {
|
|
112
|
+
let t = 0, n = 0;
|
|
113
|
+
for (let r in e) {
|
|
114
|
+
let i = parseInt(r), a = e[r];
|
|
115
|
+
t += i * a, n += a;
|
|
116
|
+
}
|
|
117
|
+
if (n === 0) return 0;
|
|
118
|
+
let r = t / n;
|
|
119
|
+
return Math.min(W.value.to, Math.max(W.value.from, r));
|
|
120
|
+
}
|
|
121
|
+
S(() => {
|
|
122
|
+
X();
|
|
123
|
+
});
|
|
124
|
+
function X() {
|
|
125
|
+
(!Object.hasOwn(R.dataset, "rating") || i(R.dataset)) && s({
|
|
126
|
+
componentName: "VueUiRating",
|
|
127
|
+
type: "datasetAttribute",
|
|
128
|
+
property: "rating"
|
|
129
|
+
}), U.value = [];
|
|
130
|
+
for (let e = W.value.from; e <= W.value.to; e += 1) U.value.push(e);
|
|
131
|
+
}
|
|
132
|
+
function Z(e, t = !1) {
|
|
133
|
+
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;
|
|
134
|
+
}
|
|
135
|
+
function Q(e, t = !1) {
|
|
136
|
+
let n = q.value - e, r = t ? 1 : 100;
|
|
137
|
+
switch (!0) {
|
|
138
|
+
case n <= 0: return .001;
|
|
139
|
+
case n > 1: return 1 * r;
|
|
140
|
+
default: return n * r;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function $(e) {
|
|
144
|
+
Y.value || (q.value = e, de("rate", e));
|
|
145
|
+
}
|
|
146
|
+
function he() {
|
|
147
|
+
return q.value;
|
|
148
|
+
}
|
|
149
|
+
function ge(e = !0) {
|
|
150
|
+
Y.value = e;
|
|
151
|
+
}
|
|
152
|
+
return f({
|
|
153
|
+
getData: he,
|
|
154
|
+
toggleReadonly: ge
|
|
155
|
+
}), (e, i) => (C(), _("div", {
|
|
156
|
+
style: x(`background:${W.value.style.backgroundColor};font-family:${W.value.style.fontFamily};width:100%`),
|
|
157
|
+
class: "vue-data-ui-component vue-ui-rating",
|
|
158
|
+
onMouseover: i[4] ||= (e) => B.value = !0,
|
|
159
|
+
onMouseleave: i[5] ||= (e) => {
|
|
160
|
+
B.value = !1, V.value = void 0;
|
|
161
|
+
}
|
|
162
|
+
}, [
|
|
163
|
+
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", {
|
|
164
|
+
key: 0,
|
|
165
|
+
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"}`)
|
|
166
|
+
}, D(W.value.style.title.subtitle.text), 5)) : g("", !0)])) : g("", !0),
|
|
167
|
+
W.value.style.rating.show && W.value.style.rating.position === "top" ? (C(), _("div", {
|
|
168
|
+
key: 1,
|
|
169
|
+
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`)
|
|
170
|
+
}, D(O(r)(W.value.style.rating.formatter, q.value, O(n)({
|
|
171
|
+
v: q.value,
|
|
172
|
+
r: W.value.style.rating.roundingValue
|
|
173
|
+
}), W.value)), 5)) : g("", !0),
|
|
174
|
+
v("div", {
|
|
175
|
+
class: "vue-ui-rating-wrapper",
|
|
176
|
+
style: x(`height:${W.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
|
|
177
|
+
}, [
|
|
178
|
+
W.value.style.rating.show && W.value.style.rating.position === "left" ? (C(), _("div", {
|
|
179
|
+
key: 0,
|
|
180
|
+
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`)
|
|
181
|
+
}, D(O(r)(W.value.style.rating.formatter, q.value, O(n)({
|
|
182
|
+
v: q.value,
|
|
183
|
+
r: W.value.style.rating.roundingValue
|
|
184
|
+
}), W.value)), 5)) : g("", !0),
|
|
185
|
+
(C(!0), _(m, null, T(U.value, (a, s) => (C(), _("div", {
|
|
186
|
+
class: "vue-ui-rating-unit-container",
|
|
187
|
+
style: x(`position:relative;height:${W.value.style.itemSize}px;width:${W.value.style.itemSize}px`)
|
|
188
|
+
}, [
|
|
189
|
+
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 }, {
|
|
190
|
+
value: a,
|
|
191
|
+
size: W.value.style.itemSize,
|
|
192
|
+
hoveredValue: V.value,
|
|
193
|
+
focusedValue: H.value
|
|
194
|
+
}), void 0, !0)])) : g("", !0), e.$slots["layer-above"] ? (C(), _("div", ie, [E(e.$slots, "layer-above", b({ ref_for: !0 }, {
|
|
195
|
+
value: a,
|
|
196
|
+
size: W.value.style.itemSize,
|
|
197
|
+
hoveredValue: V.value,
|
|
198
|
+
focusedValue: H.value
|
|
199
|
+
}), void 0, !0)])) : g("", !0)])) : (C(), _(m, { key: 1 }, [J.value ? (C(), _("img", {
|
|
200
|
+
key: 0,
|
|
201
|
+
src: W.value.style.image.src,
|
|
202
|
+
height: W.value.style.itemSize,
|
|
203
|
+
width: W.value.style.itemSize,
|
|
204
|
+
class: "vue-ui-rating-unit",
|
|
205
|
+
style: x(`position:absolute;top:0;left:0;opacity:${isNaN(V.value) ? W.value.style.image.inactiveOpacity : Z(a, !0)}`)
|
|
206
|
+
}, null, 12, ae)) : (C(), _("svg", {
|
|
207
|
+
key: 1,
|
|
208
|
+
xmlns: O(o),
|
|
209
|
+
viewBox: "0 0 100 100",
|
|
210
|
+
height: W.value.style.itemSize,
|
|
211
|
+
width: W.value.style.itemSize,
|
|
212
|
+
class: "vue-ui-rating-unit"
|
|
213
|
+
}, [v("defs", null, [y(p, {
|
|
214
|
+
t: "radial",
|
|
215
|
+
cx: "50%",
|
|
216
|
+
cy: "50%",
|
|
217
|
+
r: "50%",
|
|
218
|
+
fx: "50%",
|
|
219
|
+
fy: "50%",
|
|
220
|
+
id: `star_gradient_under_${z.value}`,
|
|
221
|
+
stops: [[
|
|
222
|
+
"0%",
|
|
223
|
+
O(t)(W.value.style.star.activeColor, .05),
|
|
224
|
+
1
|
|
225
|
+
], [
|
|
226
|
+
"100%",
|
|
227
|
+
W.value.style.star.activeColor,
|
|
228
|
+
1
|
|
229
|
+
]]
|
|
230
|
+
}, null, 8, ["id", "stops"])]), v("polygon", {
|
|
231
|
+
points: O(c)({
|
|
232
|
+
plot: {
|
|
233
|
+
x: 50,
|
|
234
|
+
y: 50
|
|
235
|
+
},
|
|
236
|
+
radius: 30,
|
|
237
|
+
apexes: W.value.style.star.apexes
|
|
238
|
+
}),
|
|
239
|
+
fill: isNaN(V.value) ? W.value.style.star.inactiveColor : Z(a),
|
|
240
|
+
stroke: W.value.style.star.borderColor ? W.value.style.star.borderColor : V.value ? Z(a) : W.value.style.star.inactiveColor,
|
|
241
|
+
"stroke-width": W.value.style.star.borderWidth,
|
|
242
|
+
"stroke-linecap": "round",
|
|
243
|
+
"stroke-linejoin": "round"
|
|
244
|
+
}, null, 8, se)], 8, oe)), J.value ? (C(), _("img", {
|
|
245
|
+
key: 2,
|
|
246
|
+
src: W.value.style.image.src,
|
|
247
|
+
alt: `${W.value.style.image.alt} ${a}`,
|
|
248
|
+
height: W.value.style.itemSize,
|
|
249
|
+
width: W.value.style.itemSize,
|
|
250
|
+
id: `active_${z.value}_${a}`,
|
|
251
|
+
class: "vue-ui-rating-unit",
|
|
252
|
+
style: x(`position:absolute;top:0;left:0;clip:rect(0px,${Q(s, !0) * W.value.style.itemSize}px,${W.value.style.itemSize}px,0px`)
|
|
253
|
+
}, null, 12, ce)) : (C(), _("svg", {
|
|
254
|
+
key: 3,
|
|
255
|
+
xmlns: O(o),
|
|
256
|
+
viewBox: `0 0 ${Q(s)} 100`,
|
|
257
|
+
height: W.value.style.itemSize,
|
|
258
|
+
class: "vue-ui-rating-unit",
|
|
259
|
+
id: `active_${z.value}_${a}`,
|
|
260
|
+
style: {
|
|
261
|
+
position: "absolute",
|
|
262
|
+
top: "0",
|
|
263
|
+
left: "0"
|
|
264
|
+
}
|
|
265
|
+
}, [v("defs", null, [y(p, {
|
|
266
|
+
t: "radial",
|
|
267
|
+
cx: "50%",
|
|
268
|
+
cy: "50%",
|
|
269
|
+
r: "50%",
|
|
270
|
+
fx: "50%",
|
|
271
|
+
fy: "50%",
|
|
272
|
+
id: `star_gradient_over_${z.value}`,
|
|
273
|
+
stops: [[
|
|
274
|
+
"0%",
|
|
275
|
+
O(t)(W.value.style.star.activeColor, .05),
|
|
276
|
+
1
|
|
277
|
+
], [
|
|
278
|
+
"100%",
|
|
279
|
+
W.value.style.star.activeColor,
|
|
280
|
+
1
|
|
281
|
+
]]
|
|
282
|
+
}, null, 8, ["id", "stops"])]), v("polygon", {
|
|
283
|
+
points: O(c)({
|
|
284
|
+
plot: {
|
|
285
|
+
x: 50,
|
|
286
|
+
y: 50
|
|
287
|
+
},
|
|
288
|
+
radius: 30,
|
|
289
|
+
apexes: W.value.style.star.apexes
|
|
290
|
+
}),
|
|
291
|
+
fill: W.value.style.star.useGradient ? `url(#star_gradient_over_${z.value})` : W.value.style.star.activeColor,
|
|
292
|
+
stroke: W.value.style.star.activeColor
|
|
293
|
+
}, null, 8, N)], 8, le))], 64)),
|
|
294
|
+
(C(), _("svg", {
|
|
295
|
+
xmlns: O(o),
|
|
296
|
+
viewBox: "0 0 100 100",
|
|
297
|
+
height: W.value.style.itemSize,
|
|
298
|
+
class: "vue-ui-rating-unit",
|
|
299
|
+
style: x(`position:absolute;top:0;left:0;${Y.value ? "" : fe.value ? "cursor:pointer" : ""}`)
|
|
300
|
+
}, [Y.value ? g("", !0) : (C(), _("rect", {
|
|
301
|
+
key: 0,
|
|
302
|
+
class: "vue-ui-rating-mouse-trap",
|
|
303
|
+
x: 0,
|
|
304
|
+
y: 0,
|
|
305
|
+
width: 100,
|
|
306
|
+
height: 100,
|
|
307
|
+
fill: "transparent",
|
|
308
|
+
onClick: (e) => $(a),
|
|
309
|
+
onMouseenter: (e) => V.value = a,
|
|
310
|
+
onMouseleave: i[0] ||= (e) => V.value = void 0,
|
|
311
|
+
onFocus: (e) => H.value = a,
|
|
312
|
+
onBlur: i[1] ||= (e) => H.value = void 0,
|
|
313
|
+
tabindex: "0",
|
|
314
|
+
onKeyup: j((e) => $(a), ["enter"])
|
|
315
|
+
}, null, 40, F)), Y.value ? (C(), _("rect", {
|
|
316
|
+
key: 1,
|
|
317
|
+
class: "vue-ui-rating-mouse-trap",
|
|
318
|
+
x: 0,
|
|
319
|
+
y: 0,
|
|
320
|
+
width: 100,
|
|
321
|
+
height: 100,
|
|
322
|
+
fill: "transparent",
|
|
323
|
+
onMouseenter: (e) => V.value = a,
|
|
324
|
+
onMouseleave: i[2] ||= (e) => V.value = void 0,
|
|
325
|
+
onFocus: (e) => H.value = a,
|
|
326
|
+
onBlur: i[3] ||= (e) => H.value = void 0
|
|
327
|
+
}, null, 40, I)) : g("", !0)], 12, P)),
|
|
328
|
+
W.value.style.tooltip.show && pe.value && Y.value ? (C(), _("div", {
|
|
329
|
+
key: 2,
|
|
330
|
+
class: "vue-ui-rating-tooltip",
|
|
331
|
+
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}`)
|
|
332
|
+
}, [v("div", { style: x(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${W.value.style.tooltip.color}`) }, [
|
|
333
|
+
v("span", { style: x(`font-size:${W.value.style.tooltip.fontSize}px`) }, D(a) + ":", 5),
|
|
334
|
+
v("span", { style: x(`font-weight:${W.value.style.tooltip.bold ? "bold" : "normal"};font-size:${W.value.style.tooltip.fontSize}px`) }, D(O(r)(W.value.style.tooltip.formatter, R.dataset.rating[a], O(n)({
|
|
335
|
+
v: R.dataset.rating[a],
|
|
336
|
+
r: W.value.style.tooltip.roundingValue
|
|
337
|
+
}), W.value)), 5),
|
|
338
|
+
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)
|
|
339
|
+
], 4)], 4)) : g("", !0)
|
|
340
|
+
], 4))), 256)),
|
|
341
|
+
W.value.style.rating.show && W.value.style.rating.position === "right" ? (C(), _("div", {
|
|
342
|
+
key: 1,
|
|
343
|
+
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`)
|
|
344
|
+
}, D(O(r)(W.value.style.rating.formatter, q.value, O(n)({
|
|
345
|
+
v: q.value,
|
|
346
|
+
r: W.value.style.rating.roundingValue
|
|
347
|
+
}), W.value)), 5)) : g("", !0)
|
|
348
|
+
], 4),
|
|
349
|
+
W.value.style.rating.show && W.value.style.rating.position === "bottom" ? (C(), _("div", {
|
|
350
|
+
key: 2,
|
|
351
|
+
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`)
|
|
352
|
+
}, D(O(r)(W.value.style.rating.formatter, q.value, O(n)({
|
|
353
|
+
v: q.value,
|
|
354
|
+
r: W.value.style.rating.roundingValue
|
|
355
|
+
}), W.value)), 5)) : g("", !0)
|
|
356
|
+
], 36));
|
|
357
|
+
}
|
|
358
|
+
}, [["__scopeId", "data-v-12bceb32"]]);
|
|
359
|
+
//#endregion
|
|
360
|
+
export { M as n, L as t };
|