vue-data-ui 3.22.8 → 3.22.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
- package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
- package/dist/vue-data-ui.js +67 -67
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
- package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
- package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
- package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
- package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
- package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
- package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
- package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
- package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
- package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
- package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
- package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
- package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
- package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
- package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
- package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
- package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
- package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
- package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
- package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
- package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
- package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
|
@@ -3,13 +3,14 @@ import { $ as t, J as n, i as r, kt as i, t as a, zt as o } from "./lib-JqW18y5I
|
|
|
3
3
|
import { t as s } from "./useConfig-DYM3f6EI.js";
|
|
4
4
|
import { t as c } from "./useNestedProp-DIuuzG1r.js";
|
|
5
5
|
import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
|
-
import {
|
|
6
|
+
import { t as u } from "./DefGrad-DVBqDjhO.js";
|
|
7
|
+
import { Fragment as d, computed as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, normalizeClass as v, normalizeStyle as y, onMounted as b, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, unref as E, useSlots as D, watch as O, withCtx as k, withKeys as A } from "vue";
|
|
7
8
|
//#region src/atoms/BaseSmilingUnit.vue
|
|
8
|
-
var
|
|
9
|
+
var j = ["xmlns", "stroke"], M = ["stroke"], N = [
|
|
9
10
|
"xmlns",
|
|
10
11
|
"viewBox",
|
|
11
12
|
"stroke"
|
|
12
|
-
],
|
|
13
|
+
], P = ["viewBox", "stroke"], F = /*#__PURE__*/ l({
|
|
13
14
|
__name: "BaseSmilingUnit",
|
|
14
15
|
props: {
|
|
15
16
|
config: { type: Object },
|
|
@@ -29,10 +30,10 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
29
30
|
],
|
|
30
31
|
setup(e, { emit: t }) {
|
|
31
32
|
let n = e, r = t;
|
|
32
|
-
return (t, i) => (
|
|
33
|
+
return (t, i) => (x(), m("div", {
|
|
33
34
|
tabindex: "0",
|
|
34
|
-
class:
|
|
35
|
-
style:
|
|
35
|
+
class: v({ "vue-ui-smiley-rated": !e.config.readonly && e.currentRating === e.unit }),
|
|
36
|
+
style: y({
|
|
36
37
|
cursor: e.config.readonly ? "default" : n.isCursorPointer ? "pointer" : "default",
|
|
37
38
|
height: e.config.style.itemSize + "px",
|
|
38
39
|
aspectRatio: "1/1",
|
|
@@ -41,12 +42,12 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
41
42
|
onMouseenter: i[0] ||= (e) => r("mouseenter"),
|
|
42
43
|
onMouseleave: i[1] ||= (e) => r("mouseleave"),
|
|
43
44
|
onClick: i[2] ||= (t) => r("rate", e.unit),
|
|
44
|
-
onKeyup: i[3] ||=
|
|
45
|
+
onKeyup: i[3] ||= A((t) => r("rate", e.unit), ["enter"])
|
|
45
46
|
}, [
|
|
46
|
-
e.config.style.tooltip.show && e.hasBreakdown && e.isReadonly ? (
|
|
47
|
+
e.config.style.tooltip.show && e.hasBreakdown && e.isReadonly ? (x(), m("div", {
|
|
47
48
|
key: 0,
|
|
48
49
|
class: "vue-ui-rating-tooltip",
|
|
49
|
-
style:
|
|
50
|
+
style: y({
|
|
50
51
|
border: `1px solid ${e.config.style.tooltip.borderColor}`,
|
|
51
52
|
position: "absolute",
|
|
52
53
|
top: `${e.config.style.tooltip.offsetY - 48}px`,
|
|
@@ -60,7 +61,7 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
60
61
|
borderRadius: e.config.style.tooltip.borderRadius + "px",
|
|
61
62
|
boxShadow: e.config.style.tooltip.boxShadow
|
|
62
63
|
})
|
|
63
|
-
}, [
|
|
64
|
+
}, [h("div", { style: y({
|
|
64
65
|
width: "100%",
|
|
65
66
|
display: "flex",
|
|
66
67
|
flexDirection: "row",
|
|
@@ -69,13 +70,13 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
69
70
|
textAlign: "center",
|
|
70
71
|
color: e.config.style.tooltip.color
|
|
71
72
|
}) }, [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
], 4)], 4)) :
|
|
76
|
-
e.config.style.icons.filled ? (
|
|
73
|
+
h("span", { style: y(`font-size:${e.config.style.tooltip.fontSize}px`) }, T(e.unit) + ":", 5),
|
|
74
|
+
h("span", { style: y(`font-weight:${e.config.style.tooltip.bold ? "bold" : "normal"};font-size:${e.config.style.tooltip.fontSize}px`) }, [w(t.$slots, "rating", {}, void 0, !0)], 4),
|
|
75
|
+
h("div", { style: y(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${e.config.style.tooltip.borderColor}`) }, " ▼ ", 4)
|
|
76
|
+
], 4)], 4)) : p("", !0),
|
|
77
|
+
e.config.style.icons.filled ? (x(), m("svg", {
|
|
77
78
|
key: 1,
|
|
78
|
-
xmlns:
|
|
79
|
+
xmlns: E(a),
|
|
79
80
|
style: {
|
|
80
81
|
transition: "all 0.1s ease-in-out",
|
|
81
82
|
position: "absolute",
|
|
@@ -89,13 +90,19 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
89
90
|
fill: "none",
|
|
90
91
|
"stroke-linecap": "round",
|
|
91
92
|
"stroke-linejoin": "round"
|
|
92
|
-
}, [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
}, [h("defs", null, [_(u, {
|
|
94
|
+
t: "radial",
|
|
95
|
+
id: `vueUiSmiley${e.unit - 1}`,
|
|
96
|
+
stops: [[
|
|
97
|
+
"0%",
|
|
98
|
+
E(o)(e.config.style.colors.active[e.unit - 1], .05),
|
|
99
|
+
1
|
|
100
|
+
], [
|
|
101
|
+
"100%",
|
|
102
|
+
e.config.style.colors.active[e.unit - 1],
|
|
103
|
+
1
|
|
104
|
+
]]
|
|
105
|
+
}, null, 8, ["id", "stops"])]), w(t.$slots, "path-icon-filled", {}, void 0, !0)], 8, j)) : (x(), m("svg", {
|
|
99
106
|
key: 2,
|
|
100
107
|
style: {
|
|
101
108
|
position: "absolute",
|
|
@@ -110,10 +117,10 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
110
117
|
fill: "none",
|
|
111
118
|
"stroke-linecap": "round",
|
|
112
119
|
"stroke-linejoin": "round"
|
|
113
|
-
}, [
|
|
114
|
-
e.config.style.icons.filled && e.isReadonly ? (
|
|
120
|
+
}, [w(t.$slots, "path-icon", {}, void 0, !0)], 8, M)),
|
|
121
|
+
e.config.style.icons.filled && e.isReadonly ? (x(), m("svg", {
|
|
115
122
|
key: 3,
|
|
116
|
-
xmlns:
|
|
123
|
+
xmlns: E(a),
|
|
117
124
|
style: {
|
|
118
125
|
transition: "all 0.1s ease-in-out",
|
|
119
126
|
position: "absolute",
|
|
@@ -127,14 +134,20 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
127
134
|
fill: "none",
|
|
128
135
|
"stroke-linecap": "round",
|
|
129
136
|
"stroke-linejoin": "round"
|
|
130
|
-
}, [
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
}, [h("defs", null, [_(u, {
|
|
138
|
+
t: "radial",
|
|
139
|
+
id: `vueUiSmiley${e.unit - 1}`,
|
|
140
|
+
stops: [[
|
|
141
|
+
"0%",
|
|
142
|
+
E(o)(e.config.style.colors.activeReadonly[e.unit - 1], .05),
|
|
143
|
+
1
|
|
144
|
+
], [
|
|
145
|
+
"100%",
|
|
146
|
+
e.config.style.colors.activeReadonly[e.unit - 1],
|
|
147
|
+
1
|
|
148
|
+
]]
|
|
149
|
+
}, null, 8, ["id", "stops"])]), w(t.$slots, "path-icon-filled-readonly", {}, void 0, !0)], 8, N)) : p("", !0),
|
|
150
|
+
!e.config.style.icons.filled && e.isReadonly ? (x(), m("svg", {
|
|
138
151
|
key: 4,
|
|
139
152
|
style: {
|
|
140
153
|
position: "absolute",
|
|
@@ -149,14 +162,14 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
149
162
|
fill: "none",
|
|
150
163
|
"stroke-linecap": "round",
|
|
151
164
|
"stroke-linejoin": "round"
|
|
152
|
-
}, [
|
|
165
|
+
}, [w(t.$slots, "path-icon-readonly", {}, void 0, !0)], 8, P)) : p("", !0)
|
|
153
166
|
], 38));
|
|
154
167
|
}
|
|
155
|
-
}, [["__scopeId", "data-v-
|
|
168
|
+
}, [["__scopeId", "data-v-9734e83c"]]), I = /* @__PURE__ */ e({ default: () => H }), L = {
|
|
156
169
|
key: 0,
|
|
157
170
|
class: "vue-ui-rating-title",
|
|
158
171
|
style: { width: "100%" }
|
|
159
|
-
},
|
|
172
|
+
}, R = ["d", "fill"], z = ["d"], B = ["d", "fill"], V = ["d"], H = {
|
|
160
173
|
__name: "vue-ui-smiley",
|
|
161
174
|
props: {
|
|
162
175
|
config: {
|
|
@@ -174,36 +187,36 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
174
187
|
},
|
|
175
188
|
emits: ["rate"],
|
|
176
189
|
setup(e, { expose: a, emit: o }) {
|
|
177
|
-
let { vue_ui_smiley: l } = s(),
|
|
178
|
-
|
|
179
|
-
|
|
190
|
+
let { vue_ui_smiley: l } = s(), u = e, v = D(), w = o, E = S(null);
|
|
191
|
+
b(() => {
|
|
192
|
+
v["chart-background"] && console.warn("VueUiSmiley does not support the #chart-background slot.");
|
|
180
193
|
});
|
|
181
194
|
function A() {
|
|
182
|
-
(!Object.hasOwn(
|
|
195
|
+
(!Object.hasOwn(u.dataset, "rating") || i(u.dataset)) && t({
|
|
183
196
|
componentName: "VueUiSmiley",
|
|
184
197
|
type: "datasetAttribute",
|
|
185
198
|
property: "rating"
|
|
186
199
|
});
|
|
187
200
|
}
|
|
188
|
-
|
|
189
|
-
let j =
|
|
201
|
+
b(A);
|
|
202
|
+
let j = S(N()), M = f(() => j.value.useCursorPointer);
|
|
190
203
|
function N() {
|
|
191
204
|
return c({
|
|
192
|
-
userConfig:
|
|
205
|
+
userConfig: u.config,
|
|
193
206
|
defaultConfig: l
|
|
194
207
|
});
|
|
195
208
|
}
|
|
196
|
-
|
|
197
|
-
j.value = N(),
|
|
209
|
+
O(() => u.config, (e) => {
|
|
210
|
+
j.value = N(), U.value = j.value.readonly, A();
|
|
198
211
|
}, { deep: !0 });
|
|
199
|
-
let P =
|
|
200
|
-
let e =
|
|
201
|
-
return e && typeof e == "object" && !Array.isArray(e) ?
|
|
202
|
-
}),
|
|
203
|
-
|
|
204
|
-
|
|
212
|
+
let P = f(() => {
|
|
213
|
+
let e = u.dataset.rating;
|
|
214
|
+
return e && typeof e == "object" && !Array.isArray(e) ? G(e) : e ?? null;
|
|
215
|
+
}), I = f(() => typeof u.dataset.rating == "object" && !Array.isArray(u.dataset.rating)), H = S(P.value);
|
|
216
|
+
O(P, (e) => {
|
|
217
|
+
H.value = e;
|
|
205
218
|
});
|
|
206
|
-
let
|
|
219
|
+
let U = S(j.value.readonly), W = [
|
|
207
220
|
{
|
|
208
221
|
key: "smiley_0",
|
|
209
222
|
pathIconFilled: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",
|
|
@@ -240,7 +253,7 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
240
253
|
pathIconReadonly: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 9l.01 0 M15 9l.01 0 M8 13a4 4 0 1 0 8 0h-8"
|
|
241
254
|
}
|
|
242
255
|
];
|
|
243
|
-
function
|
|
256
|
+
function G(e) {
|
|
244
257
|
if (e == null) return null;
|
|
245
258
|
let t = 0, n = 0;
|
|
246
259
|
for (let r in e) {
|
|
@@ -249,8 +262,8 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
249
262
|
}
|
|
250
263
|
return n === 0 ? 0 : t / n;
|
|
251
264
|
}
|
|
252
|
-
function
|
|
253
|
-
let t =
|
|
265
|
+
function K(e) {
|
|
266
|
+
let t = H.value - e;
|
|
254
267
|
switch (!0) {
|
|
255
268
|
case t < 0: return 0;
|
|
256
269
|
case t > 1: return 24;
|
|
@@ -258,76 +271,76 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
258
271
|
}
|
|
259
272
|
}
|
|
260
273
|
function q(e) {
|
|
261
|
-
return j.value.readonly ? j.value.style.colors.inactive[e] :
|
|
274
|
+
return j.value.readonly ? j.value.style.colors.inactive[e] : H.value === e + 1 || E.value !== null && E.value === e ? j.value.style.icons.useGradient && j.value.style.icons.filled ? `url(#vueUiSmiley${e})` : j.value.style.colors.active[e] : j.value.style.colors.inactive[e];
|
|
262
275
|
}
|
|
263
|
-
let J =
|
|
276
|
+
let J = f(() => ({ value: e, tooltip: t = !1 }) => r(t ? j.value.style.tooltip.formatter : j.value.style.rating.formatter, e, n({
|
|
264
277
|
v: e,
|
|
265
278
|
r: t ? j.value.style.tooltip.roundingValue : j.value.style.rating.roundingValue
|
|
266
279
|
}), j.value));
|
|
267
280
|
function Y(e) {
|
|
268
|
-
|
|
281
|
+
U.value || (H.value = e, w("rate", e));
|
|
269
282
|
}
|
|
270
283
|
function X() {
|
|
271
|
-
return
|
|
284
|
+
return H.value;
|
|
272
285
|
}
|
|
273
286
|
function Z(e = !0) {
|
|
274
|
-
|
|
287
|
+
U.value = e;
|
|
275
288
|
}
|
|
276
289
|
return a({
|
|
277
290
|
getData: X,
|
|
278
291
|
toggleReadonly: Z
|
|
279
|
-
}), (e, t) => (
|
|
292
|
+
}), (e, t) => (x(), m("div", {
|
|
280
293
|
class: "vue-data-ui-component vue-ui-smiley",
|
|
281
|
-
style:
|
|
282
|
-
onMouseleave: t[1] ||= (e) =>
|
|
294
|
+
style: y(`background:${j.value.style.backgroundColor};font-family:${j.value.style.fontFamily};width:100%;`),
|
|
295
|
+
onMouseleave: t[1] ||= (e) => E.value = void 0
|
|
283
296
|
}, [
|
|
284
|
-
j.value.style.title.text ? (
|
|
297
|
+
j.value.style.title.text ? (x(), m("div", L, [h("div", { style: y(`color:${j.value.style.title.color};font-weight:${j.value.style.title.bold ? "bold" : "normal"};text-align:${j.value.style.title.textAlign};margin-bottom:${j.value.style.title.offsetY}px;font-size:${j.value.style.title.fontSize}px`) }, T(j.value.style.title.text), 5), j.value.style.title.subtitle.text ? (x(), m("div", {
|
|
285
298
|
key: 0,
|
|
286
|
-
style:
|
|
287
|
-
},
|
|
288
|
-
j.value.style.rating.show && j.value.style.rating.position === "top" ? (
|
|
299
|
+
style: y(`color:${j.value.style.title.subtitle.color};font-size:${j.value.style.title.subtitle.fontSize}px;text-align:${j.value.style.title.textAlign};margin-bottom:${j.value.style.title.subtitle.offsetY}px;font-weight:${j.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
300
|
+
}, T(j.value.style.title.subtitle.text), 5)) : p("", !0)])) : p("", !0),
|
|
301
|
+
j.value.style.rating.show && j.value.style.rating.position === "top" ? (x(), m("div", {
|
|
289
302
|
key: 1,
|
|
290
|
-
style:
|
|
291
|
-
},
|
|
292
|
-
|
|
303
|
+
style: y(`width:100%;text-align:center;margin-bottom:${j.value.style.rating.offsetY}px;font-size:${j.value.style.rating.fontSize}px;font-weight:${j.value.style.rating.bold ? "bold" : "normal"};margin-left:${j.value.style.rating.offsetX}px`)
|
|
304
|
+
}, T(J.value({ value: H.value })), 5)) : p("", !0),
|
|
305
|
+
h("div", {
|
|
293
306
|
class: "vue-ui-smiley-wrapper",
|
|
294
|
-
style:
|
|
307
|
+
style: y(`overflow:visible;height:${j.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)
|
|
295
308
|
}, [
|
|
296
|
-
j.value.style.rating.show && j.value.style.rating.position === "left" ? (
|
|
309
|
+
j.value.style.rating.show && j.value.style.rating.position === "left" ? (x(), m("div", {
|
|
297
310
|
key: 0,
|
|
298
|
-
style:
|
|
299
|
-
},
|
|
300
|
-
(
|
|
311
|
+
style: y(`width:fit-content;text-align:center;margin-bottom:${j.value.style.rating.offsetY}px;font-size:${j.value.style.rating.fontSize}px;font-weight:${j.value.style.rating.bold ? "bold" : "normal"};padding-right:${j.value.style.rating.offsetX}px`)
|
|
312
|
+
}, T(J.value({ value: H.value })), 5)) : p("", !0),
|
|
313
|
+
(x(), m(d, null, C(W, (e, n) => _(F, {
|
|
301
314
|
key: e.key,
|
|
302
315
|
config: j.value,
|
|
303
316
|
unit: n + 1,
|
|
304
|
-
currentRating:
|
|
305
|
-
isReadonly:
|
|
306
|
-
hasBreakdown:
|
|
307
|
-
hoveredValue:
|
|
317
|
+
currentRating: H.value,
|
|
318
|
+
isReadonly: U.value,
|
|
319
|
+
hasBreakdown: I.value,
|
|
320
|
+
hoveredValue: E.value,
|
|
308
321
|
getActiveColor: q,
|
|
309
|
-
calcShapeFill:
|
|
322
|
+
calcShapeFill: K,
|
|
310
323
|
isCursorPointer: M.value,
|
|
311
|
-
onMouseenter: (e) =>
|
|
312
|
-
onMouseleave: t[0] ||= (e) =>
|
|
324
|
+
onMouseenter: (e) => E.value = n,
|
|
325
|
+
onMouseleave: t[0] ||= (e) => E.value = null,
|
|
313
326
|
onRate: (e) => Y(n + 1)
|
|
314
327
|
}, {
|
|
315
|
-
rating:
|
|
316
|
-
value:
|
|
328
|
+
rating: k(() => [g(T(J.value({
|
|
329
|
+
value: u.dataset.rating[String(n + 1)],
|
|
317
330
|
tooltip: !0
|
|
318
331
|
})), 1)]),
|
|
319
|
-
"path-icon-filled":
|
|
332
|
+
"path-icon-filled": k(() => [h("path", {
|
|
320
333
|
d: e.pathIconFilled,
|
|
321
334
|
"stroke-width": "0",
|
|
322
335
|
fill: q(n)
|
|
323
|
-
}, null, 8,
|
|
324
|
-
"path-icon":
|
|
325
|
-
"path-icon-filled-readonly":
|
|
336
|
+
}, null, 8, R)]),
|
|
337
|
+
"path-icon": k(() => [h("path", { d: e.pathIcon }, null, 8, z)]),
|
|
338
|
+
"path-icon-filled-readonly": k(() => [h("path", {
|
|
326
339
|
d: e.pathIconFilledReadonly,
|
|
327
340
|
"stroke-width": "0",
|
|
328
341
|
fill: j.value.style.icons.useGradient ? `url(#vueUiSmiley${n})` : j.value.style.colors.activeReadonly[n]
|
|
329
|
-
}, null, 8,
|
|
330
|
-
"path-icon-readonly":
|
|
342
|
+
}, null, 8, B)]),
|
|
343
|
+
"path-icon-readonly": k(() => [h("path", { d: e.pathIconReadonly }, null, 8, V)]),
|
|
331
344
|
_: 2
|
|
332
345
|
}, 1032, [
|
|
333
346
|
"config",
|
|
@@ -340,17 +353,17 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
340
353
|
"onMouseenter",
|
|
341
354
|
"onRate"
|
|
342
355
|
])), 64)),
|
|
343
|
-
j.value.style.rating.show && j.value.style.rating.position === "right" ? (
|
|
356
|
+
j.value.style.rating.show && j.value.style.rating.position === "right" ? (x(), m("div", {
|
|
344
357
|
key: 1,
|
|
345
|
-
style:
|
|
346
|
-
},
|
|
358
|
+
style: y(`width:fit-content;text-align:center;margin-bottom:${j.value.style.rating.offsetY}px;font-size:${j.value.style.rating.fontSize}px;font-weight:${j.value.style.rating.bold ? "bold" : "normal"};padding-left:${j.value.style.rating.offsetX}px`)
|
|
359
|
+
}, T(J.value({ value: H.value })), 5)) : p("", !0)
|
|
347
360
|
], 4),
|
|
348
|
-
j.value.style.rating.show && j.value.style.rating.position === "bottom" ? (
|
|
361
|
+
j.value.style.rating.show && j.value.style.rating.position === "bottom" ? (x(), m("div", {
|
|
349
362
|
key: 2,
|
|
350
|
-
style:
|
|
351
|
-
},
|
|
363
|
+
style: y(`width:100%;text-align:center;margin-top:${j.value.style.rating.offsetY}px;font-size:${j.value.style.rating.fontSize}px;font-weight:${j.value.style.rating.bold ? "bold" : "normal"};margin-left:${j.value.style.rating.offsetX}px`)
|
|
364
|
+
}, T(J.value({ value: H.value })), 5)) : p("", !0)
|
|
352
365
|
], 36));
|
|
353
366
|
}
|
|
354
367
|
};
|
|
355
368
|
//#endregion
|
|
356
|
-
export {
|
|
369
|
+
export { I as n, H as t };
|