vue-data-ui 3.25.11 → 3.25.13
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-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
- package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
- package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
- package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
- package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
- package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
- package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
- package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
- package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
- package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
- package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
- package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
- package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
- package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
- package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
- package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
- package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.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 +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/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
- package/dist/exposedLib-BBtjpydc.js +28 -0
- package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
- package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
- package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
- package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
- package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
- package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
- 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 +6 -0
- package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
- package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
- package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
- package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
- package/dist/utils.js +13 -13
- package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
- package/dist/vue-data-ui.js +75 -75
- package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
- package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
- package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
- package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
- package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
- package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
- package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
- package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
- package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
- package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
- package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
- package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
- package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
- package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
- package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
- package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
- package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
- package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
- package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
- package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
- package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
- package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
- package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
- package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
- package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
- package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
- package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
- package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
- package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
- package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
- package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
- package/dist/vue-ui-molecule-_x232mMu.js +941 -0
- package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
- package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
- package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
- package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
- package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
- package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
- package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
- package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
- package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
- package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
- package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
- package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
- package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
- package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
- package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
- package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
- package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
- package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
- package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
- package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
- package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
- package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
- package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
- package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
- package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
- package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
- package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
- package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
- package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
- package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
- package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
- package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
- package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
- package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
- package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
- package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
- package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
- package/package.json +1 -1
- package/dist/exposedLib-CG3aXJ-v.js +0 -28
- package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
- package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
- package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
- package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
- package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
- package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
- package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
- package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
- package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
- package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
- package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
- package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
- package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
- package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
- package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
- package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
- package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
- package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
- package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
- package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
- package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
- package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
- package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
|
@@ -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 l, t as u } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as d } from "./useConfig-D32D002m.js";
|
|
5
|
-
import { t as f } from "./useNestedProp-Chvyfpl-.js";
|
|
6
|
-
import { t as p } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
-
import { t as m } from "./DefGrad-DVBqDjhO.js";
|
|
8
|
-
import { Fragment as h, computed as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createVNode as b, mergeProps as x, normalizeStyle as S, onMounted as C, openBlock as w, ref as T, renderList as ee, 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: () => I }), N = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "vue-ui-rating-title",
|
|
13
|
-
style: { width: "100%" }
|
|
14
|
-
}, te = {
|
|
15
|
-
key: 0,
|
|
16
|
-
style: { position: "relative" }
|
|
17
|
-
}, ne = {
|
|
18
|
-
key: 0,
|
|
19
|
-
style: {
|
|
20
|
-
position: "absolute",
|
|
21
|
-
top: "0",
|
|
22
|
-
left: "0",
|
|
23
|
-
width: "100%",
|
|
24
|
-
height: "100%"
|
|
25
|
-
}
|
|
26
|
-
}, re = {
|
|
27
|
-
key: 1,
|
|
28
|
-
style: {
|
|
29
|
-
position: "absolute",
|
|
30
|
-
top: "0",
|
|
31
|
-
left: "0",
|
|
32
|
-
width: "100%",
|
|
33
|
-
height: "100%"
|
|
34
|
-
}
|
|
35
|
-
}, ie = [
|
|
36
|
-
"src",
|
|
37
|
-
"height",
|
|
38
|
-
"width"
|
|
39
|
-
], ae = [
|
|
40
|
-
"xmlns",
|
|
41
|
-
"height",
|
|
42
|
-
"width"
|
|
43
|
-
], oe = [
|
|
44
|
-
"points",
|
|
45
|
-
"fill",
|
|
46
|
-
"stroke",
|
|
47
|
-
"stroke-width"
|
|
48
|
-
], se = [
|
|
49
|
-
"src",
|
|
50
|
-
"alt",
|
|
51
|
-
"height",
|
|
52
|
-
"width",
|
|
53
|
-
"id"
|
|
54
|
-
], ce = [
|
|
55
|
-
"xmlns",
|
|
56
|
-
"viewBox",
|
|
57
|
-
"height",
|
|
58
|
-
"id"
|
|
59
|
-
], le = [
|
|
60
|
-
"points",
|
|
61
|
-
"fill",
|
|
62
|
-
"stroke"
|
|
63
|
-
], ue = ["xmlns", "height"], P = [
|
|
64
|
-
"onClick",
|
|
65
|
-
"onMouseenter",
|
|
66
|
-
"onFocus",
|
|
67
|
-
"onKeyup"
|
|
68
|
-
], F = ["onMouseenter", "onFocus"], I = /*#__PURE__*/ p({
|
|
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: p, emit: M }) {
|
|
86
|
-
let { vue_ui_rating: I } = d(), L = e, R = T(o()), z = T(!1), B = T(void 0), V = T(void 0), H = T([]), de = k(), fe = M, U = g({
|
|
87
|
-
get: () => K(),
|
|
88
|
-
set: (e) => e
|
|
89
|
-
}), W = g(() => U.value.style.rating), G = g(() => U.value.style);
|
|
90
|
-
C(() => {
|
|
91
|
-
de["chart-background"] && U.value.debug && console.warn("VueUiRating does not support the #chart-background slot.");
|
|
92
|
-
}), l({
|
|
93
|
-
config: () => U.value,
|
|
94
|
-
dataset: () => [],
|
|
95
|
-
component: "VueUiRating",
|
|
96
|
-
rules: [u.noHint]
|
|
97
|
-
});
|
|
98
|
-
let pe = g(() => U.value.useCursorPointer);
|
|
99
|
-
function K() {
|
|
100
|
-
return f({
|
|
101
|
-
userConfig: L.config,
|
|
102
|
-
defaultConfig: I
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
A(() => L.config, (e) => {
|
|
106
|
-
U.value = K(), X();
|
|
107
|
-
}, { deep: !0 });
|
|
108
|
-
let me = g(() => typeof L.dataset.rating == "object" && !Array.isArray(L.dataset.rating) ? ge(L.dataset.rating) : L.dataset.rating), he = g(() => typeof L.dataset.rating == "object" && !Array.isArray(L.dataset.rating)), q = T(me.value), J = g(() => U.value.type === "image"), Y = g(() => U.value.readonly);
|
|
109
|
-
function ge(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(U.value.to, Math.max(U.value.from, r));
|
|
118
|
-
}
|
|
119
|
-
C(() => {
|
|
120
|
-
X();
|
|
121
|
-
});
|
|
122
|
-
function X() {
|
|
123
|
-
(!Object.hasOwn(L.dataset, "rating") || t(L.dataset)) && a({
|
|
124
|
-
componentName: "VueUiRating",
|
|
125
|
-
type: "datasetAttribute",
|
|
126
|
-
property: "rating",
|
|
127
|
-
debug: U.value.debug
|
|
128
|
-
}), H.value = [];
|
|
129
|
-
for (let e = U.value.from; e <= U.value.to; e += 1) H.value.push(e);
|
|
130
|
-
}
|
|
131
|
-
function Z(e, t = !1) {
|
|
132
|
-
return e > B.value || Y.value ? t ? G.value.image.inactiveOpacity : G.value.star.inactiveColor : t ? 1 : G.value.star.useGradient ? `url(#star_gradient_under_${R.value})` : G.value.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, fe("rate", e));
|
|
144
|
-
}
|
|
145
|
-
function _e() {
|
|
146
|
-
return q.value;
|
|
147
|
-
}
|
|
148
|
-
function ve(e = !0) {
|
|
149
|
-
Y.value = e;
|
|
150
|
-
}
|
|
151
|
-
return p({
|
|
152
|
-
getData: _e,
|
|
153
|
-
toggleReadonly: ve
|
|
154
|
-
}), (e, t) => (w(), v("div", {
|
|
155
|
-
style: S(`background:${G.value.backgroundColor};font-family:${G.value.fontFamily};width:100%`),
|
|
156
|
-
class: "vue-data-ui-component vue-ui-rating",
|
|
157
|
-
onMouseover: t[4] ||= (e) => z.value = !0,
|
|
158
|
-
onMouseleave: t[5] ||= (e) => {
|
|
159
|
-
z.value = !1, B.value = void 0;
|
|
160
|
-
}
|
|
161
|
-
}, [
|
|
162
|
-
G.value.title.text ? (w(), v("div", N, [y("div", { style: S(`color:${G.value.title.color};font-weight:${G.value.title.bold ? "bold" : "normal"};text-align:${G.value.title.textAlign};margin-bottom:${G.value.title.offsetY}px;font-size:${G.value.title.fontSize}px`) }, D(G.value.title.text), 5), G.value.title.subtitle.text ? (w(), v("div", {
|
|
163
|
-
key: 0,
|
|
164
|
-
style: S(`color:${G.value.title.subtitle.color};font-size:${G.value.title.subtitle.fontSize}px;text-align:${G.value.title.textAlign};margin-bottom:${G.value.title.subtitle.offsetY}px;font-weight:${G.value.title.subtitle.bold ? "bold" : "normal"}`)
|
|
165
|
-
}, D(G.value.title.subtitle.text), 5)) : _("", !0)])) : _("", !0),
|
|
166
|
-
W.value.show && W.value.position === "top" ? (w(), v("div", {
|
|
167
|
-
key: 1,
|
|
168
|
-
style: S(`width:100%;text-align:center;margin-bottom:${W.value.offsetY}px;font-size:${W.value.fontSize}px;font-weight:${W.value.bold ? "bold" : "normal"};margin-left:${W.value.offsetX}px`)
|
|
169
|
-
}, D(O(i)(W.value.formatter, q.value, O(r)({
|
|
170
|
-
v: q.value,
|
|
171
|
-
r: W.value.roundingValue
|
|
172
|
-
}), U.value)), 5)) : _("", !0),
|
|
173
|
-
y("div", {
|
|
174
|
-
class: "vue-ui-rating-wrapper",
|
|
175
|
-
style: S(`height:${G.value.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
|
|
176
|
-
}, [
|
|
177
|
-
W.value.show && W.value.position === "left" ? (w(), v("div", {
|
|
178
|
-
key: 0,
|
|
179
|
-
style: S(`width:fit-content;text-align:center;margin-bottom:${W.value.offsetY}px;font-size:${W.value.fontSize}px;font-weight:${W.value.bold ? "bold" : "normal"};padding-right:${W.value.offsetX}px`)
|
|
180
|
-
}, D(O(i)(W.value.formatter, q.value, O(r)({
|
|
181
|
-
v: q.value,
|
|
182
|
-
r: W.value.roundingValue
|
|
183
|
-
}), U.value)), 5)) : _("", !0),
|
|
184
|
-
(w(!0), v(h, null, ee(H.value, (a, o) => (w(), v("div", {
|
|
185
|
-
class: "vue-ui-rating-unit-container",
|
|
186
|
-
style: S(`position:relative;height:${G.value.itemSize}px;width:${G.value.itemSize}px`)
|
|
187
|
-
}, [
|
|
188
|
-
e.$slots["layer-under"] || e.$slots["layer-above"] ? (w(), v("div", te, [e.$slots["layer-under"] ? (w(), v("div", ne, [E(e.$slots, "layer-under", x({ ref_for: !0 }, {
|
|
189
|
-
value: a,
|
|
190
|
-
size: G.value.itemSize,
|
|
191
|
-
hoveredValue: B.value,
|
|
192
|
-
focusedValue: V.value
|
|
193
|
-
}), void 0, !0)])) : _("", !0), e.$slots["layer-above"] ? (w(), v("div", re, [E(e.$slots, "layer-above", x({ ref_for: !0 }, {
|
|
194
|
-
value: a,
|
|
195
|
-
size: G.value.itemSize,
|
|
196
|
-
hoveredValue: B.value,
|
|
197
|
-
focusedValue: V.value
|
|
198
|
-
}), void 0, !0)])) : _("", !0)])) : (w(), v(h, { key: 1 }, [J.value ? (w(), v("img", {
|
|
199
|
-
key: 0,
|
|
200
|
-
src: G.value.image.src,
|
|
201
|
-
height: G.value.itemSize,
|
|
202
|
-
width: G.value.itemSize,
|
|
203
|
-
class: "vue-ui-rating-unit",
|
|
204
|
-
style: S(`position:absolute;top:0;left:0;opacity:${isNaN(B.value) ? G.value.image.inactiveOpacity : Z(a, !0)}`)
|
|
205
|
-
}, null, 12, ie)) : (w(), v("svg", {
|
|
206
|
-
key: 1,
|
|
207
|
-
xmlns: O(s),
|
|
208
|
-
viewBox: "0 0 100 100",
|
|
209
|
-
height: G.value.itemSize,
|
|
210
|
-
width: G.value.itemSize,
|
|
211
|
-
class: "vue-ui-rating-unit"
|
|
212
|
-
}, [y("defs", null, [b(m, {
|
|
213
|
-
t: "radial",
|
|
214
|
-
cx: "50%",
|
|
215
|
-
cy: "50%",
|
|
216
|
-
r: "50%",
|
|
217
|
-
fx: "50%",
|
|
218
|
-
fy: "50%",
|
|
219
|
-
id: `star_gradient_under_${R.value}`,
|
|
220
|
-
stops: [[
|
|
221
|
-
"0%",
|
|
222
|
-
O(n)(G.value.star.activeColor, .05),
|
|
223
|
-
1
|
|
224
|
-
], [
|
|
225
|
-
"100%",
|
|
226
|
-
G.value.star.activeColor,
|
|
227
|
-
1
|
|
228
|
-
]]
|
|
229
|
-
}, null, 8, ["id", "stops"])]), y("polygon", {
|
|
230
|
-
points: O(c)({
|
|
231
|
-
plot: {
|
|
232
|
-
x: 50,
|
|
233
|
-
y: 50
|
|
234
|
-
},
|
|
235
|
-
radius: 30,
|
|
236
|
-
apexes: G.value.star.apexes
|
|
237
|
-
}),
|
|
238
|
-
fill: isNaN(B.value) ? G.value.star.inactiveColor : Z(a),
|
|
239
|
-
stroke: G.value.star.borderColor ? G.value.star.borderColor : B.value ? Z(a) : G.value.star.inactiveColor,
|
|
240
|
-
"stroke-width": G.value.star.borderWidth,
|
|
241
|
-
"stroke-linecap": "round",
|
|
242
|
-
"stroke-linejoin": "round"
|
|
243
|
-
}, null, 8, oe)], 8, ae)), J.value ? (w(), v("img", {
|
|
244
|
-
key: 2,
|
|
245
|
-
src: G.value.image.src,
|
|
246
|
-
alt: `${G.value.image.alt} ${a}`,
|
|
247
|
-
height: G.value.itemSize,
|
|
248
|
-
width: G.value.itemSize,
|
|
249
|
-
id: `active_${R.value}_${a}`,
|
|
250
|
-
class: "vue-ui-rating-unit",
|
|
251
|
-
style: S(`position:absolute;top:0;left:0;clip:rect(0px,${Q(o, !0) * G.value.itemSize}px,${G.value.itemSize}px,0px`)
|
|
252
|
-
}, null, 12, se)) : (w(), v("svg", {
|
|
253
|
-
key: 3,
|
|
254
|
-
xmlns: O(s),
|
|
255
|
-
viewBox: `0 0 ${Q(o)} 100`,
|
|
256
|
-
height: G.value.itemSize,
|
|
257
|
-
class: "vue-ui-rating-unit",
|
|
258
|
-
id: `active_${R.value}_${a}`,
|
|
259
|
-
style: {
|
|
260
|
-
position: "absolute",
|
|
261
|
-
top: "0",
|
|
262
|
-
left: "0"
|
|
263
|
-
}
|
|
264
|
-
}, [y("defs", null, [b(m, {
|
|
265
|
-
t: "radial",
|
|
266
|
-
cx: "50%",
|
|
267
|
-
cy: "50%",
|
|
268
|
-
r: "50%",
|
|
269
|
-
fx: "50%",
|
|
270
|
-
fy: "50%",
|
|
271
|
-
id: `star_gradient_over_${R.value}`,
|
|
272
|
-
stops: [[
|
|
273
|
-
"0%",
|
|
274
|
-
O(n)(G.value.star.activeColor, .05),
|
|
275
|
-
1
|
|
276
|
-
], [
|
|
277
|
-
"100%",
|
|
278
|
-
G.value.star.activeColor,
|
|
279
|
-
1
|
|
280
|
-
]]
|
|
281
|
-
}, null, 8, ["id", "stops"])]), y("polygon", {
|
|
282
|
-
points: O(c)({
|
|
283
|
-
plot: {
|
|
284
|
-
x: 50,
|
|
285
|
-
y: 50
|
|
286
|
-
},
|
|
287
|
-
radius: 30,
|
|
288
|
-
apexes: G.value.star.apexes
|
|
289
|
-
}),
|
|
290
|
-
fill: G.value.star.useGradient ? `url(#star_gradient_over_${R.value})` : G.value.star.activeColor,
|
|
291
|
-
stroke: G.value.star.activeColor
|
|
292
|
-
}, null, 8, le)], 8, ce))], 64)),
|
|
293
|
-
(w(), v("svg", {
|
|
294
|
-
xmlns: O(s),
|
|
295
|
-
viewBox: "0 0 100 100",
|
|
296
|
-
height: G.value.itemSize,
|
|
297
|
-
class: "vue-ui-rating-unit",
|
|
298
|
-
style: S(`position:absolute;top:0;left:0;${Y.value ? "" : pe.value ? "cursor:pointer" : ""}`)
|
|
299
|
-
}, [Y.value ? _("", !0) : (w(), v("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) => B.value = a,
|
|
309
|
-
onMouseleave: t[0] ||= (e) => B.value = void 0,
|
|
310
|
-
onFocus: (e) => V.value = a,
|
|
311
|
-
onBlur: t[1] ||= (e) => V.value = void 0,
|
|
312
|
-
tabindex: "0",
|
|
313
|
-
onKeyup: j((e) => $(a), ["enter"])
|
|
314
|
-
}, null, 40, P)), Y.value ? (w(), v("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) => B.value = a,
|
|
323
|
-
onMouseleave: t[2] ||= (e) => B.value = void 0,
|
|
324
|
-
onFocus: (e) => V.value = a,
|
|
325
|
-
onBlur: t[3] ||= (e) => V.value = void 0
|
|
326
|
-
}, null, 40, F)) : _("", !0)], 12, ue)),
|
|
327
|
-
G.value.tooltip.show && he.value && Y.value ? (w(), v("div", {
|
|
328
|
-
key: 2,
|
|
329
|
-
class: "vue-ui-rating-tooltip",
|
|
330
|
-
style: S(`border:1px solid ${G.value.tooltip.borderColor};position:absolute;top:${-48 + G.value.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${G.value.tooltip.backgroundColor};display:${B.value === a ? "block" : "none"};padding:2px 12px;border-radius:${G.value.tooltip.borderRadius}px;box-shadow:${G.value.tooltip.boxShadow}`)
|
|
331
|
-
}, [y("div", { style: S(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${G.value.tooltip.color}`) }, [
|
|
332
|
-
y("span", { style: S(`font-size:${G.value.tooltip.fontSize}px`) }, D(a) + ":", 5),
|
|
333
|
-
y("span", { style: S(`font-weight:${G.value.tooltip.bold ? "bold" : "normal"};font-size:${G.value.tooltip.fontSize}px`) }, D(O(i)(G.value.tooltip.formatter, L.dataset.rating[a], O(r)({
|
|
334
|
-
v: L.dataset.rating[a],
|
|
335
|
-
r: G.value.tooltip.roundingValue
|
|
336
|
-
}), U.value)), 5),
|
|
337
|
-
y("div", { style: S(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${G.value.tooltip.borderColor}`) }, " ▼ ", 4)
|
|
338
|
-
], 4)], 4)) : _("", !0)
|
|
339
|
-
], 4))), 256)),
|
|
340
|
-
W.value.show && W.value.position === "right" ? (w(), v("div", {
|
|
341
|
-
key: 1,
|
|
342
|
-
style: S(`width:fit-content;text-align:center;margin-bottom:${W.value.offsetY}px;font-size:${W.value.fontSize}px;font-weight:${W.value.bold ? "bold" : "normal"};padding-left:${W.value.offsetX}px`)
|
|
343
|
-
}, D(O(i)(W.value.formatter, q.value, O(r)({
|
|
344
|
-
v: q.value,
|
|
345
|
-
r: W.value.roundingValue
|
|
346
|
-
}), U.value)), 5)) : _("", !0)
|
|
347
|
-
], 4),
|
|
348
|
-
W.value.show && W.value.position === "bottom" ? (w(), v("div", {
|
|
349
|
-
key: 2,
|
|
350
|
-
style: S(`width:100%;text-align:center;margin-top:${W.value.offsetY}px;font-size:${W.value.fontSize}px;font-weight:${W.value.bold ? "bold" : "normal"};margin-left:${W.value.offsetX}px`)
|
|
351
|
-
}, D(O(i)(W.value.formatter, q.value, O(r)({
|
|
352
|
-
v: q.value,
|
|
353
|
-
r: W.value.roundingValue
|
|
354
|
-
}), U.value)), 5)) : _("", !0)
|
|
355
|
-
], 36));
|
|
356
|
-
}
|
|
357
|
-
}, [["__scopeId", "data-v-cdcab4d9"]]);
|
|
358
|
-
//#endregion
|
|
359
|
-
export { M as n, I as t };
|