vue-data-ui 3.22.7 → 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/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-Av7Uxq5V.js} +2 -2
- package/dist/BaseIcon-UdRAvP2h.js +483 -0
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-BY2KLqs6.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-DR_ummtM.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-BxpTMgfK.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-B6EG_Sga.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-D__dRVRA.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-DsXi7GJ-.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-CW_XPIKL.js} +369 -364
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-CTz41lOu.js} +542 -537
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-trvJ26nz.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-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-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-ByOT60IK.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-D18VrP0h.js} +20 -20
- 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 +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-ub3fCh6P.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-CjAGqEJg.js} +3 -3
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +1247 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-BIucnT0L.js} +67 -67
- package/dist/vue-ui-bullet-CIATzlsk.js +710 -0
- package/dist/vue-ui-bump-D8MxltQE.js +1249 -0
- package/dist/vue-ui-candlestick-DULUMU-Q.js +1840 -0
- package/dist/vue-ui-carousel-table-BSmdexG7.js +455 -0
- package/dist/{vue-ui-chestnut-C3IbAdkQ.js → vue-ui-chestnut-BIh1nQ7q.js} +585 -553
- package/dist/vue-ui-chord-DL1M7cgL.js +1391 -0
- package/dist/{vue-ui-circle-pack-Cq4lkmee.js → vue-ui-circle-pack-C1Pgq6si.js} +424 -418
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-d2uLAKTQ.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-CVh9FpZr.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-BH0N3ebj.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-R6wi3J-Y.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BWDeVzLc.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-BoZdciGh.js} +825 -816
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-CpC9EMro.js} +486 -474
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-DGA5Bfnl.js} +520 -486
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-CNczKwTh.js} +119 -119
- package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-v3cTbUiM.js} +342 -342
- package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-BgmLkZZ2.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-dSTh8ah_.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-N8BqMFVU.js} +572 -561
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +1689 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BKrUk9o8.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule--kK1JfnP.js +931 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-CpBRHQo_.js} +246 -241
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +1493 -0
- package/dist/vue-ui-onion-Cf6JiYTH.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-CxU0jiOm.js} +410 -404
- package/dist/vue-ui-quick-chart-BO98uEPl.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-eH2Qih4_.js} +323 -317
- package/dist/{vue-ui-rating-Bek8Tgr-.js → vue-ui-rating-CN-ZiAES.js} +137 -128
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-BIcP-aAt.js} +167 -167
- package/dist/{vue-ui-ridgeline-DIODGiu8.js → vue-ui-ridgeline-ChXHzEJw.js} +538 -532
- package/dist/vue-ui-rings-J990vNbX.js +1252 -0
- package/dist/vue-ui-scatter-BeJB0EKg.js +2422 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-DC2bZ0nk.js} +385 -382
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-Dyyu1je3.js} +119 -106
- package/dist/vue-ui-spark-trend-CpDX85H3.js +443 -0
- package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-D0Fo3Hts.js} +79 -74
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
- package/dist/{vue-ui-sparkline-BNxdO-Bx.js → vue-ui-sparkline-ApivEMBP.js} +397 -384
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DsKQJx_n.js} +207 -195
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-Ds4hXATH.js} +595 -588
- package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
- package/dist/vue-ui-strip-plot-C3ZHf4bD.js +1736 -0
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-CNXNXXBU.js} +14 -14
- package/dist/vue-ui-table-sparkline-B9JJ4pFF.js +712 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-uudidrYt.js} +62 -62
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-5NAWw5BN.js} +94 -89
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-Caz_g1c5.js} +13 -13
- package/dist/vue-ui-treemap-F9upPyOI.js +1718 -0
- package/dist/vue-ui-waffle-Bk9AsrPp.js +1368 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DD6Q39BA.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-BZLT5svo.js} +27 -27
- package/dist/vue-ui-world-DbEJN5NA.js +3027 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-BYMAITk_.js} +1655 -1629
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-Cn9Q8YPr.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-Dcm2ftwm.js} +58 -58
- package/package.json +1 -1
- package/dist/BaseIcon-_-BX7be3.js +0 -502
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-funnel-BEZUEuuh.js +0 -777
- package/dist/vue-ui-gauge-B1ljgfE1.js +0 -920
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-spark-trend-DfZeLiWA.js +0 -438
- package/dist/vue-ui-sparkbar-Cl1e49sw.js +0 -393
- package/dist/vue-ui-sparkhistogram-ny_liYa6.js +0 -560
- package/dist/vue-ui-stackline-CdvVPQUM.js +0 -2419
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-thermometer-BUrtIfuo.js +0 -763
- package/dist/vue-ui-treemap-LMWiicop.js +0 -1713
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, J as n, i as r, kt as i, t as a, zt as o } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as s } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as c } from "./useNestedProp-
|
|
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 },
|
|
@@ -28,25 +29,25 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
28
29
|
"mouseleave"
|
|
29
30
|
],
|
|
30
31
|
setup(e, { emit: t }) {
|
|
31
|
-
let n = e,
|
|
32
|
-
return (t,
|
|
32
|
+
let n = e, r = t;
|
|
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",
|
|
39
40
|
position: "relative"
|
|
40
41
|
}),
|
|
41
|
-
onMouseenter:
|
|
42
|
-
onMouseleave:
|
|
43
|
-
onClick:
|
|
44
|
-
onKeyup:
|
|
42
|
+
onMouseenter: i[0] ||= (e) => r("mouseenter"),
|
|
43
|
+
onMouseleave: i[1] ||= (e) => r("mouseleave"),
|
|
44
|
+
onClick: i[2] ||= (t) => r("rate", e.unit),
|
|
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: {
|
|
@@ -173,37 +186,37 @@ var A = ["xmlns", "stroke"], j = ["id"], M = ["stop-color"], N = ["stop-color"],
|
|
|
173
186
|
}
|
|
174
187
|
},
|
|
175
188
|
emits: ["rate"],
|
|
176
|
-
setup(e, { expose:
|
|
177
|
-
let { vue_ui_smiley: l } = s(),
|
|
178
|
-
|
|
179
|
-
|
|
189
|
+
setup(e, { expose: a, emit: o }) {
|
|
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
|
-
return
|
|
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 };
|