vue-data-ui 3.22.9 → 3.22.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
- package/dist/Slicer-C6qNUmZ4.js +1149 -0
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
- package/dist/exposedLib-Ciw6TGtP.js +25 -0
- package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
- package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
- package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +40 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
- package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
- package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
- package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
- package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
- package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
- package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
- package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
- package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
- package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
- package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
- package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
- package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
- package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
- package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
- package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
- package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
- package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
- package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
- package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
- package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
- package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
- package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
- package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
- package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
- package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
- package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
- package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
- package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
- package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
- package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
- package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
- package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
- package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
- package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
- package/package.json +2 -2
- package/dist/Slicer-CW_XPIKL.js +0 -1150
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { Fragment as
|
|
2
|
+
import { At as t, Bt as n, K as r, R as i, Y as a, et as o, i as s, t as c } from "./lib-CFm_J26b.js";
|
|
3
|
+
import { t as l } from "./useConfig-C0V0eG7L.js";
|
|
4
|
+
import { t as u } from "./useNestedProp-BY6DNN3i.js";
|
|
5
|
+
import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
+
import { t as f } from "./DefGrad-DVBqDjhO.js";
|
|
7
|
+
import { Fragment as p, computed as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, mergeProps as y, normalizeStyle as b, onMounted as x, openBlock as S, ref as C, renderList as ee, renderSlot as w, toDisplayString as T, unref as E, useSlots as D, watch as te, withKeys as O } from "vue";
|
|
8
8
|
//#region src/components/vue-ui-rating.vue
|
|
9
|
-
var
|
|
9
|
+
var k = /* @__PURE__ */ e({ default: () => I }), A = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "vue-ui-rating-title",
|
|
12
12
|
style: { width: "100%" }
|
|
13
|
-
},
|
|
13
|
+
}, j = {
|
|
14
14
|
key: 0,
|
|
15
15
|
style: { position: "relative" }
|
|
16
|
-
},
|
|
16
|
+
}, M = {
|
|
17
17
|
key: 0,
|
|
18
18
|
style: {
|
|
19
19
|
position: "absolute",
|
|
@@ -22,7 +22,7 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
22
22
|
width: "100%",
|
|
23
23
|
height: "100%"
|
|
24
24
|
}
|
|
25
|
-
},
|
|
25
|
+
}, N = {
|
|
26
26
|
key: 1,
|
|
27
27
|
style: {
|
|
28
28
|
position: "absolute",
|
|
@@ -31,40 +31,40 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
31
31
|
width: "100%",
|
|
32
32
|
height: "100%"
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, P = [
|
|
35
35
|
"src",
|
|
36
36
|
"height",
|
|
37
37
|
"width"
|
|
38
|
-
],
|
|
38
|
+
], ne = [
|
|
39
39
|
"xmlns",
|
|
40
40
|
"height",
|
|
41
41
|
"width"
|
|
42
|
-
],
|
|
42
|
+
], re = [
|
|
43
43
|
"points",
|
|
44
44
|
"fill",
|
|
45
45
|
"stroke",
|
|
46
46
|
"stroke-width"
|
|
47
|
-
],
|
|
47
|
+
], ie = [
|
|
48
48
|
"src",
|
|
49
49
|
"alt",
|
|
50
50
|
"height",
|
|
51
51
|
"width",
|
|
52
52
|
"id"
|
|
53
|
-
],
|
|
53
|
+
], ae = [
|
|
54
54
|
"xmlns",
|
|
55
55
|
"viewBox",
|
|
56
56
|
"height",
|
|
57
57
|
"id"
|
|
58
|
-
],
|
|
58
|
+
], oe = [
|
|
59
59
|
"points",
|
|
60
60
|
"fill",
|
|
61
61
|
"stroke"
|
|
62
|
-
],
|
|
62
|
+
], se = ["xmlns", "height"], ce = [
|
|
63
63
|
"onClick",
|
|
64
64
|
"onMouseenter",
|
|
65
65
|
"onFocus",
|
|
66
66
|
"onKeyup"
|
|
67
|
-
], F = ["onMouseenter", "onFocus"], I = /*#__PURE__*/
|
|
67
|
+
], F = ["onMouseenter", "onFocus"], I = /*#__PURE__*/ d({
|
|
68
68
|
__name: "vue-ui-rating",
|
|
69
69
|
props: {
|
|
70
70
|
config: {
|
|
@@ -81,25 +81,25 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
emits: ["rate"],
|
|
84
|
-
setup(e, { expose:
|
|
85
|
-
let { vue_ui_rating: I } =
|
|
86
|
-
|
|
84
|
+
setup(e, { expose: d, emit: k }) {
|
|
85
|
+
let { vue_ui_rating: I } = l(), L = e, R = C(r()), z = C(!1), B = C(void 0), V = C(void 0), H = C([]), U = D();
|
|
86
|
+
x(() => {
|
|
87
87
|
U["chart-background"] && console.warn("VueUiRating does not support the #chart-background slot.");
|
|
88
88
|
});
|
|
89
|
-
let W =
|
|
89
|
+
let W = k, G = m({
|
|
90
90
|
get: () => K(),
|
|
91
91
|
set: (e) => e
|
|
92
|
-
}), le =
|
|
92
|
+
}), le = m(() => G.value.useCursorPointer);
|
|
93
93
|
function K() {
|
|
94
|
-
return
|
|
94
|
+
return u({
|
|
95
95
|
userConfig: L.config,
|
|
96
96
|
defaultConfig: I
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
te(() => L.config, (e) => {
|
|
100
100
|
G.value = K(), X();
|
|
101
101
|
}, { deep: !0 });
|
|
102
|
-
let ue =
|
|
102
|
+
let ue = m(() => typeof L.dataset.rating == "object" && !Array.isArray(L.dataset.rating) ? fe(L.dataset.rating) : L.dataset.rating), de = m(() => typeof L.dataset.rating == "object" && !Array.isArray(L.dataset.rating)), q = C(ue.value), J = m(() => G.value.type === "image"), Y = m(() => G.value.readonly);
|
|
103
103
|
function fe(e) {
|
|
104
104
|
let t = 0, n = 0;
|
|
105
105
|
for (let r in e) {
|
|
@@ -110,11 +110,11 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
110
110
|
let r = t / n;
|
|
111
111
|
return Math.min(G.value.to, Math.max(G.value.from, r));
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
x(() => {
|
|
114
114
|
X();
|
|
115
115
|
});
|
|
116
116
|
function X() {
|
|
117
|
-
(!Object.hasOwn(L.dataset, "rating") ||
|
|
117
|
+
(!Object.hasOwn(L.dataset, "rating") || t(L.dataset)) && o({
|
|
118
118
|
componentName: "VueUiRating",
|
|
119
119
|
type: "datasetAttribute",
|
|
120
120
|
property: "rating"
|
|
@@ -141,68 +141,68 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
141
141
|
function me(e = !0) {
|
|
142
142
|
Y.value = e;
|
|
143
143
|
}
|
|
144
|
-
return
|
|
144
|
+
return d({
|
|
145
145
|
getData: pe,
|
|
146
146
|
toggleReadonly: me
|
|
147
|
-
}), (e, t) => (
|
|
148
|
-
style:
|
|
147
|
+
}), (e, t) => (S(), g("div", {
|
|
148
|
+
style: b(`background:${G.value.style.backgroundColor};font-family:${G.value.style.fontFamily};width:100%`),
|
|
149
149
|
class: "vue-data-ui-component vue-ui-rating",
|
|
150
150
|
onMouseover: t[4] ||= (e) => z.value = !0,
|
|
151
151
|
onMouseleave: t[5] ||= (e) => {
|
|
152
152
|
z.value = !1, B.value = void 0;
|
|
153
153
|
}
|
|
154
154
|
}, [
|
|
155
|
-
G.value.style.title.text ? (
|
|
155
|
+
G.value.style.title.text ? (S(), g("div", A, [_("div", { style: b(`color:${G.value.style.title.color};font-weight:${G.value.style.title.bold ? "bold" : "normal"};text-align:${G.value.style.title.textAlign};margin-bottom:${G.value.style.title.offsetY}px;font-size:${G.value.style.title.fontSize}px`) }, T(G.value.style.title.text), 5), G.value.style.title.subtitle.text ? (S(), g("div", {
|
|
156
156
|
key: 0,
|
|
157
|
-
style:
|
|
158
|
-
},
|
|
159
|
-
G.value.style.rating.show && G.value.style.rating.position === "top" ? (
|
|
157
|
+
style: b(`color:${G.value.style.title.subtitle.color};font-size:${G.value.style.title.subtitle.fontSize}px;text-align:${G.value.style.title.textAlign};margin-bottom:${G.value.style.title.subtitle.offsetY}px;font-weight:${G.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
158
|
+
}, T(G.value.style.title.subtitle.text), 5)) : h("", !0)])) : h("", !0),
|
|
159
|
+
G.value.style.rating.show && G.value.style.rating.position === "top" ? (S(), g("div", {
|
|
160
160
|
key: 1,
|
|
161
|
-
style:
|
|
162
|
-
},
|
|
161
|
+
style: b(`width:100%;text-align:center;margin-bottom:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};margin-left:${G.value.style.rating.offsetX}px`)
|
|
162
|
+
}, T(E(s)(G.value.style.rating.formatter, q.value, E(a)({
|
|
163
163
|
v: q.value,
|
|
164
164
|
r: G.value.style.rating.roundingValue
|
|
165
|
-
}), G.value)), 5)) :
|
|
166
|
-
|
|
165
|
+
}), G.value)), 5)) : h("", !0),
|
|
166
|
+
_("div", {
|
|
167
167
|
class: "vue-ui-rating-wrapper",
|
|
168
|
-
style:
|
|
168
|
+
style: b(`height:${G.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
|
|
169
169
|
}, [
|
|
170
|
-
G.value.style.rating.show && G.value.style.rating.position === "left" ? (
|
|
170
|
+
G.value.style.rating.show && G.value.style.rating.position === "left" ? (S(), g("div", {
|
|
171
171
|
key: 0,
|
|
172
|
-
style:
|
|
173
|
-
},
|
|
172
|
+
style: b(`width:fit-content;text-align:center;margin-bottom:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};padding-right:${G.value.style.rating.offsetX}px`)
|
|
173
|
+
}, T(E(s)(G.value.style.rating.formatter, q.value, E(a)({
|
|
174
174
|
v: q.value,
|
|
175
175
|
r: G.value.style.rating.roundingValue
|
|
176
|
-
}), G.value)), 5)) :
|
|
177
|
-
(
|
|
176
|
+
}), G.value)), 5)) : h("", !0),
|
|
177
|
+
(S(!0), g(p, null, ee(H.value, (r, o) => (S(), g("div", {
|
|
178
178
|
class: "vue-ui-rating-unit-container",
|
|
179
|
-
style:
|
|
179
|
+
style: b(`position:relative;height:${G.value.style.itemSize}px;width:${G.value.style.itemSize}px`)
|
|
180
180
|
}, [
|
|
181
|
-
e.$slots["layer-under"] || e.$slots["layer-above"] ? (
|
|
182
|
-
value:
|
|
181
|
+
e.$slots["layer-under"] || e.$slots["layer-above"] ? (S(), g("div", j, [e.$slots["layer-under"] ? (S(), g("div", M, [w(e.$slots, "layer-under", y({ ref_for: !0 }, {
|
|
182
|
+
value: r,
|
|
183
183
|
size: G.value.style.itemSize,
|
|
184
184
|
hoveredValue: B.value,
|
|
185
185
|
focusedValue: V.value
|
|
186
|
-
}), void 0, !0)])) :
|
|
187
|
-
value:
|
|
186
|
+
}), void 0, !0)])) : h("", !0), e.$slots["layer-above"] ? (S(), g("div", N, [w(e.$slots, "layer-above", y({ ref_for: !0 }, {
|
|
187
|
+
value: r,
|
|
188
188
|
size: G.value.style.itemSize,
|
|
189
189
|
hoveredValue: B.value,
|
|
190
190
|
focusedValue: V.value
|
|
191
|
-
}), void 0, !0)])) :
|
|
191
|
+
}), void 0, !0)])) : h("", !0)])) : (S(), g(p, { key: 1 }, [J.value ? (S(), g("img", {
|
|
192
192
|
key: 0,
|
|
193
193
|
src: G.value.style.image.src,
|
|
194
194
|
height: G.value.style.itemSize,
|
|
195
195
|
width: G.value.style.itemSize,
|
|
196
196
|
class: "vue-ui-rating-unit",
|
|
197
|
-
style:
|
|
198
|
-
}, null, 12,
|
|
197
|
+
style: b(`position:absolute;top:0;left:0;opacity:${isNaN(B.value) ? G.value.style.image.inactiveOpacity : Z(r, !0)}`)
|
|
198
|
+
}, null, 12, P)) : (S(), g("svg", {
|
|
199
199
|
key: 1,
|
|
200
|
-
xmlns:
|
|
200
|
+
xmlns: E(c),
|
|
201
201
|
viewBox: "0 0 100 100",
|
|
202
202
|
height: G.value.style.itemSize,
|
|
203
203
|
width: G.value.style.itemSize,
|
|
204
204
|
class: "vue-ui-rating-unit"
|
|
205
|
-
}, [
|
|
205
|
+
}, [_("defs", null, [v(f, {
|
|
206
206
|
t: "radial",
|
|
207
207
|
cx: "50%",
|
|
208
208
|
cy: "50%",
|
|
@@ -212,15 +212,15 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
212
212
|
id: `star_gradient_under_${R.value}`,
|
|
213
213
|
stops: [[
|
|
214
214
|
"0%",
|
|
215
|
-
|
|
215
|
+
E(n)(G.value.style.star.activeColor, .05),
|
|
216
216
|
1
|
|
217
217
|
], [
|
|
218
218
|
"100%",
|
|
219
219
|
G.value.style.star.activeColor,
|
|
220
220
|
1
|
|
221
221
|
]]
|
|
222
|
-
}, null, 8, ["id", "stops"])]),
|
|
223
|
-
points:
|
|
222
|
+
}, null, 8, ["id", "stops"])]), _("polygon", {
|
|
223
|
+
points: E(i)({
|
|
224
224
|
plot: {
|
|
225
225
|
x: 50,
|
|
226
226
|
y: 50
|
|
@@ -228,33 +228,33 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
228
228
|
radius: 30,
|
|
229
229
|
apexes: G.value.style.star.apexes
|
|
230
230
|
}),
|
|
231
|
-
fill: isNaN(B.value) ? G.value.style.star.inactiveColor : Z(
|
|
232
|
-
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : B.value ? Z(
|
|
231
|
+
fill: isNaN(B.value) ? G.value.style.star.inactiveColor : Z(r),
|
|
232
|
+
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : B.value ? Z(r) : G.value.style.star.inactiveColor,
|
|
233
233
|
"stroke-width": G.value.style.star.borderWidth,
|
|
234
234
|
"stroke-linecap": "round",
|
|
235
235
|
"stroke-linejoin": "round"
|
|
236
|
-
}, null, 8,
|
|
236
|
+
}, null, 8, re)], 8, ne)), J.value ? (S(), g("img", {
|
|
237
237
|
key: 2,
|
|
238
238
|
src: G.value.style.image.src,
|
|
239
|
-
alt: `${G.value.style.image.alt} ${
|
|
239
|
+
alt: `${G.value.style.image.alt} ${r}`,
|
|
240
240
|
height: G.value.style.itemSize,
|
|
241
241
|
width: G.value.style.itemSize,
|
|
242
|
-
id: `active_${R.value}_${
|
|
242
|
+
id: `active_${R.value}_${r}`,
|
|
243
243
|
class: "vue-ui-rating-unit",
|
|
244
|
-
style:
|
|
245
|
-
}, null, 12,
|
|
244
|
+
style: b(`position:absolute;top:0;left:0;clip:rect(0px,${Q(o, !0) * G.value.style.itemSize}px,${G.value.style.itemSize}px,0px`)
|
|
245
|
+
}, null, 12, ie)) : (S(), g("svg", {
|
|
246
246
|
key: 3,
|
|
247
|
-
xmlns:
|
|
247
|
+
xmlns: E(c),
|
|
248
248
|
viewBox: `0 0 ${Q(o)} 100`,
|
|
249
249
|
height: G.value.style.itemSize,
|
|
250
250
|
class: "vue-ui-rating-unit",
|
|
251
|
-
id: `active_${R.value}_${
|
|
251
|
+
id: `active_${R.value}_${r}`,
|
|
252
252
|
style: {
|
|
253
253
|
position: "absolute",
|
|
254
254
|
top: "0",
|
|
255
255
|
left: "0"
|
|
256
256
|
}
|
|
257
|
-
}, [
|
|
257
|
+
}, [_("defs", null, [v(f, {
|
|
258
258
|
t: "radial",
|
|
259
259
|
cx: "50%",
|
|
260
260
|
cy: "50%",
|
|
@@ -264,15 +264,15 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
264
264
|
id: `star_gradient_over_${R.value}`,
|
|
265
265
|
stops: [[
|
|
266
266
|
"0%",
|
|
267
|
-
|
|
267
|
+
E(n)(G.value.style.star.activeColor, .05),
|
|
268
268
|
1
|
|
269
269
|
], [
|
|
270
270
|
"100%",
|
|
271
271
|
G.value.style.star.activeColor,
|
|
272
272
|
1
|
|
273
273
|
]]
|
|
274
|
-
}, null, 8, ["id", "stops"])]),
|
|
275
|
-
points:
|
|
274
|
+
}, null, 8, ["id", "stops"])]), _("polygon", {
|
|
275
|
+
points: E(i)({
|
|
276
276
|
plot: {
|
|
277
277
|
x: 50,
|
|
278
278
|
y: 50
|
|
@@ -282,14 +282,14 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
282
282
|
}),
|
|
283
283
|
fill: G.value.style.star.useGradient ? `url(#star_gradient_over_${R.value})` : G.value.style.star.activeColor,
|
|
284
284
|
stroke: G.value.style.star.activeColor
|
|
285
|
-
}, null, 8,
|
|
286
|
-
(
|
|
287
|
-
xmlns:
|
|
285
|
+
}, null, 8, oe)], 8, ae))], 64)),
|
|
286
|
+
(S(), g("svg", {
|
|
287
|
+
xmlns: E(c),
|
|
288
288
|
viewBox: "0 0 100 100",
|
|
289
289
|
height: G.value.style.itemSize,
|
|
290
290
|
class: "vue-ui-rating-unit",
|
|
291
|
-
style:
|
|
292
|
-
}, [Y.value ?
|
|
291
|
+
style: b(`position:absolute;top:0;left:0;${Y.value ? "" : le.value ? "cursor:pointer" : ""}`)
|
|
292
|
+
}, [Y.value ? h("", !0) : (S(), g("rect", {
|
|
293
293
|
key: 0,
|
|
294
294
|
class: "vue-ui-rating-mouse-trap",
|
|
295
295
|
x: 0,
|
|
@@ -297,14 +297,14 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
297
297
|
width: 100,
|
|
298
298
|
height: 100,
|
|
299
299
|
fill: "transparent",
|
|
300
|
-
onClick: (e) => $(
|
|
301
|
-
onMouseenter: (e) => B.value =
|
|
300
|
+
onClick: (e) => $(r),
|
|
301
|
+
onMouseenter: (e) => B.value = r,
|
|
302
302
|
onMouseleave: t[0] ||= (e) => B.value = void 0,
|
|
303
|
-
onFocus: (e) => V.value =
|
|
303
|
+
onFocus: (e) => V.value = r,
|
|
304
304
|
onBlur: t[1] ||= (e) => V.value = void 0,
|
|
305
305
|
tabindex: "0",
|
|
306
|
-
onKeyup:
|
|
307
|
-
}, null, 40,
|
|
306
|
+
onKeyup: O((e) => $(r), ["enter"])
|
|
307
|
+
}, null, 40, ce)), Y.value ? (S(), g("rect", {
|
|
308
308
|
key: 1,
|
|
309
309
|
class: "vue-ui-rating-mouse-trap",
|
|
310
310
|
x: 0,
|
|
@@ -312,41 +312,41 @@ var O = /* @__PURE__ */ e({ default: () => I }), k = {
|
|
|
312
312
|
width: 100,
|
|
313
313
|
height: 100,
|
|
314
314
|
fill: "transparent",
|
|
315
|
-
onMouseenter: (e) => B.value =
|
|
315
|
+
onMouseenter: (e) => B.value = r,
|
|
316
316
|
onMouseleave: t[2] ||= (e) => B.value = void 0,
|
|
317
|
-
onFocus: (e) => V.value =
|
|
317
|
+
onFocus: (e) => V.value = r,
|
|
318
318
|
onBlur: t[3] ||= (e) => V.value = void 0
|
|
319
|
-
}, null, 40, F)) :
|
|
320
|
-
G.value.style.tooltip.show && de.value && Y.value ? (
|
|
319
|
+
}, null, 40, F)) : h("", !0)], 12, se)),
|
|
320
|
+
G.value.style.tooltip.show && de.value && Y.value ? (S(), g("div", {
|
|
321
321
|
key: 2,
|
|
322
322
|
class: "vue-ui-rating-tooltip",
|
|
323
|
-
style:
|
|
324
|
-
}, [
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
v: L.dataset.rating[
|
|
323
|
+
style: b(`border:1px solid ${G.value.style.tooltip.borderColor};position:absolute;top:${-48 + G.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${G.value.style.tooltip.backgroundColor};display:${B.value === r ? "block" : "none"};padding:2px 12px;border-radius:${G.value.style.tooltip.borderRadius}px;box-shadow:${G.value.style.tooltip.boxShadow}`)
|
|
324
|
+
}, [_("div", { style: b(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${G.value.style.tooltip.color}`) }, [
|
|
325
|
+
_("span", { style: b(`font-size:${G.value.style.tooltip.fontSize}px`) }, T(r) + ":", 5),
|
|
326
|
+
_("span", { style: b(`font-weight:${G.value.style.tooltip.bold ? "bold" : "normal"};font-size:${G.value.style.tooltip.fontSize}px`) }, T(E(s)(G.value.style.tooltip.formatter, L.dataset.rating[r], E(a)({
|
|
327
|
+
v: L.dataset.rating[r],
|
|
328
328
|
r: G.value.style.tooltip.roundingValue
|
|
329
329
|
}), G.value)), 5),
|
|
330
|
-
|
|
331
|
-
], 4)], 4)) :
|
|
330
|
+
_("div", { style: b(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${G.value.style.tooltip.borderColor}`) }, " ▼ ", 4)
|
|
331
|
+
], 4)], 4)) : h("", !0)
|
|
332
332
|
], 4))), 256)),
|
|
333
|
-
G.value.style.rating.show && G.value.style.rating.position === "right" ? (
|
|
333
|
+
G.value.style.rating.show && G.value.style.rating.position === "right" ? (S(), g("div", {
|
|
334
334
|
key: 1,
|
|
335
|
-
style:
|
|
336
|
-
},
|
|
335
|
+
style: b(`width:fit-content;text-align:center;margin-bottom:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};padding-left:${G.value.style.rating.offsetX}px`)
|
|
336
|
+
}, T(E(s)(G.value.style.rating.formatter, q.value, E(a)({
|
|
337
337
|
v: q.value,
|
|
338
338
|
r: G.value.style.rating.roundingValue
|
|
339
|
-
}), G.value)), 5)) :
|
|
339
|
+
}), G.value)), 5)) : h("", !0)
|
|
340
340
|
], 4),
|
|
341
|
-
G.value.style.rating.show && G.value.style.rating.position === "bottom" ? (
|
|
341
|
+
G.value.style.rating.show && G.value.style.rating.position === "bottom" ? (S(), g("div", {
|
|
342
342
|
key: 2,
|
|
343
|
-
style:
|
|
344
|
-
},
|
|
343
|
+
style: b(`width:100%;text-align:center;margin-top:${G.value.style.rating.offsetY}px;font-size:${G.value.style.rating.fontSize}px;font-weight:${G.value.style.rating.bold ? "bold" : "normal"};margin-left:${G.value.style.rating.offsetX}px`)
|
|
344
|
+
}, T(E(s)(G.value.style.rating.formatter, q.value, E(a)({
|
|
345
345
|
v: q.value,
|
|
346
346
|
r: G.value.style.rating.roundingValue
|
|
347
|
-
}), G.value)), 5)) :
|
|
347
|
+
}), G.value)), 5)) : h("", !0)
|
|
348
348
|
], 36));
|
|
349
349
|
}
|
|
350
350
|
}, [["__scopeId", "data-v-b61d01b2"]]);
|
|
351
351
|
//#endregion
|
|
352
|
-
export {
|
|
352
|
+
export { k as n, I as t };
|