vue-data-ui 3.23.9 → 3.23.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/README.md +40 -40
- package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
- package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.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-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-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
- package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
- package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
- 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 +13 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
- package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
- package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
- package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
- package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
- package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
- package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
- package/dist/vue-ui-chord-BuConnPN.js +1345 -0
- package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
- package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
- package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
- package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
- package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
- package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
- package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
- package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
- package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
- package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
- package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
- package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
- package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
- package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
- package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
- package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
- package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
- package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
- package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
- package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
- package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
- package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
- package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
- package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
- package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
- package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
- package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
- package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
- package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
- package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
- package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
- package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
- package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
- package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
- package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
- package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
- package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
- package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
- package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
- package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
- package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
- package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
- package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
- package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
- package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
- package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
- package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
- package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
- package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
- package/package.json +1 -1
- package/dist/exposedLib-C0DPCgFj.js +0 -28
- package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
- package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
- package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
- package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
- package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
- package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
- package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
- package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
- package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
- package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
- package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
- package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
- package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
- package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
- package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
- package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
- package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
- package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
- package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
- package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, D as n, Ht as r, It as i, Jt as a, M as o, Mt as s, Nt as ee, S as c, St as te, Ut as ne, X as l, Xt as re, b as ie, i as ae, lt as oe, mt as se, nt as u, q as ce, t as le, w as ue } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as de } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as fe } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as pe } from "./usePrinter-
|
|
5
|
+
import { t as pe } from "./usePrinter-CEiH1b6R.js";
|
|
6
6
|
import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as ge } from "./useNestedProp-
|
|
7
|
+
import { t as ge } from "./useNestedProp-CulPqtou.js";
|
|
8
8
|
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as ve } from "./useChartExport-DNiwdPmb.js";
|
|
10
|
-
import { t as ye } from "./img-
|
|
11
|
-
import { n as be } from "./Title-
|
|
10
|
+
import { t as ye } from "./img-Bkzj3lDD.js";
|
|
11
|
+
import { n as be } from "./Title-CaVA8EIw.js";
|
|
12
12
|
import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
|
|
14
14
|
import { t as we } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
-
import { t as Te } from "./BaseLegendToggle-
|
|
15
|
+
import { t as Te } from "./BaseLegendToggle-CtEdLr4R.js";
|
|
16
16
|
import { t as Ee } from "./A11yDataTable-DdRsVULz.js";
|
|
17
17
|
import { t as De } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
18
|
import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as ke } from "./Legend-
|
|
19
|
+
import { t as ke } from "./Legend-BJtY2RA9.js";
|
|
20
20
|
import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
21
21
|
import { t as je } from "./vue_ui_radar-jafTED5j.js";
|
|
22
22
|
import { Fragment as d, Teleport as Me, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ie, nextTick as Le, normalizeClass as Re, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as ze, onMounted as Be, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as T, toRefs as Ue, unref as E, watch as We, withCtx as D } from "vue";
|
|
@@ -124,7 +124,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
124
124
|
},
|
|
125
125
|
emits: ["selectLegend", "copyAlt"],
|
|
126
126
|
setup(e, { expose: xe, emit: Ge }) {
|
|
127
|
-
let St = _(() => import("./Tooltip-
|
|
127
|
+
let St = _(() => import("./Tooltip-CVxJe3UW.js")), Ct = _(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), wt = _(() => import("./vue-ui-sparkbar-96D0eR-o.js").then((e) => e.n)), Tt = _(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), Et = _(() => import("./DataTable-CmyEubtT.js")), Dt = _(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), Ot = _(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), kt = _(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), At = _(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_radar: jt } = fe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = _e(), O = e, Pt = f(() => !!O.dataset && Object.keys(O.dataset).length), k = S(ce()), A = S(!1), Ft = S(""), It = S(0), j = S(null), Lt = S(null), Rt = S(null), zt = S(null), Bt = S(null), Vt = S(0), Ht = S(0), Ut = S(0), Wt = S(!1), M = S(null), Gt = S(null), N = S(null), Kt = S({
|
|
128
128
|
x: 0,
|
|
129
129
|
y: 0
|
|
130
130
|
}), P = S("pointer"), qt = S(!1), F = S(en());
|
|
@@ -172,7 +172,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
172
172
|
}
|
|
173
173
|
]
|
|
174
174
|
});
|
|
175
|
-
let I = f(() => F.value.userOptions.useCursorPointer), Jt = f(() =>
|
|
175
|
+
let I = f(() => F.value.userOptions.useCursorPointer), Jt = f(() => re({
|
|
176
176
|
defaultConfig: {
|
|
177
177
|
userOptions: { show: !1 },
|
|
178
178
|
table: { show: !1 },
|
|
@@ -235,7 +235,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
235
235
|
}
|
|
236
236
|
]
|
|
237
237
|
},
|
|
238
|
-
skeletonConfig:
|
|
238
|
+
skeletonConfig: re({
|
|
239
239
|
defaultConfig: F.value,
|
|
240
240
|
userConfig: Jt.value
|
|
241
241
|
})
|
|
@@ -281,7 +281,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
281
281
|
});
|
|
282
282
|
return {
|
|
283
283
|
...r,
|
|
284
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
284
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || i
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
287
|
We(() => O.config, (e) => {
|
|
@@ -289,7 +289,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
289
289
|
}, { deep: !0 });
|
|
290
290
|
let z = He(null), B = He(null), V = f(() => F.value.debug);
|
|
291
291
|
function tn() {
|
|
292
|
-
if (
|
|
292
|
+
if (ee(O.dataset) && u({
|
|
293
293
|
componentName: "VueUiRadar",
|
|
294
294
|
type: "dataset",
|
|
295
295
|
debug: V.value
|
|
@@ -319,7 +319,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
319
319
|
elementId: `vue-ui-radar_${k.value}`,
|
|
320
320
|
fileName: F.value.style.chart.title.text || "vue-ui-radar",
|
|
321
321
|
options: F.value.userOptions.print
|
|
322
|
-
}), sn = f(() => F.value.userOptions.show && !F.value.style.chart.title.text), cn = f(() =>
|
|
322
|
+
}), sn = f(() => F.value.userOptions.show && !F.value.style.chart.title.text), cn = f(() => ue(F.value.customPalette)), H = S({
|
|
323
323
|
dataLabels: { show: F.value.style.chart.layout.labels.dataLabels.show },
|
|
324
324
|
showTable: F.value.table.show,
|
|
325
325
|
showTooltip: F.value.style.chart.tooltip.show
|
|
@@ -388,7 +388,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
388
388
|
property: "categories",
|
|
389
389
|
debug: V.value
|
|
390
390
|
}) : V.value && e.categories.forEach((e, t) => {
|
|
391
|
-
|
|
391
|
+
se({
|
|
392
392
|
datasetObject: e,
|
|
393
393
|
requiredAttributes: ["name"]
|
|
394
394
|
}).forEach((e) => {
|
|
@@ -405,7 +405,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
405
405
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
406
406
|
debug: V.value
|
|
407
407
|
}) : V.value && e.series.forEach((e, t) => {
|
|
408
|
-
|
|
408
|
+
se({
|
|
409
409
|
datasetObject: e,
|
|
410
410
|
requiredAttributes: [
|
|
411
411
|
"name",
|
|
@@ -428,17 +428,17 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
428
428
|
immediate: !0
|
|
429
429
|
});
|
|
430
430
|
let q = f(() => {
|
|
431
|
-
let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t = cn.value ??
|
|
431
|
+
let e = Array.isArray(L.value?.categories) ? L.value.categories : [], t = cn.value ?? i;
|
|
432
432
|
return e.map((e, n) => ({
|
|
433
433
|
name: e?.name ?? "",
|
|
434
434
|
categoryId: `radar_category_${k.value}_${n}`,
|
|
435
|
-
color:
|
|
435
|
+
color: c(e?.color) || t[n] || i[n % i.length],
|
|
436
436
|
prefix: e?.prefix ?? "",
|
|
437
437
|
suffix: e?.suffix ?? ""
|
|
438
438
|
}));
|
|
439
439
|
}), J = f(() => L.value.series.map((e, t) => ({
|
|
440
440
|
...e,
|
|
441
|
-
color:
|
|
441
|
+
color: c(e.color) || cn.value[t] || i[t] || i[t % i.length],
|
|
442
442
|
serieId: `radar_serie_${k.value}_${t}`,
|
|
443
443
|
formatter: e.formatter || null,
|
|
444
444
|
absoluteIndex: t
|
|
@@ -473,7 +473,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
473
473
|
}), Tn = f(() => {
|
|
474
474
|
let e = Number(F.value.style.chart.layout.grid.rotation ?? 0);
|
|
475
475
|
return Number.isFinite(e) ? e * Math.PI / 180 : 0;
|
|
476
|
-
}), En = f(() =>
|
|
476
|
+
}), En = f(() => o({
|
|
477
477
|
plot: {
|
|
478
478
|
x: U.value.width / 2,
|
|
479
479
|
y: U.value.height / 2
|
|
@@ -505,17 +505,17 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
505
505
|
labelAnchor: On(e).anchor
|
|
506
506
|
})));
|
|
507
507
|
function On({ x: e, y: t }) {
|
|
508
|
-
let n = U.value.width / 2, r = U.value.height / 2, i = e - n, a = t - r, o = Math.hypot(i, a), s = Number(F.value.style.chart.layout.labels.dataLabels.offset ?? 0),
|
|
508
|
+
let n = U.value.width / 2, r = U.value.height / 2, i = e - n, a = t - r, o = Math.hypot(i, a), s = Number(F.value.style.chart.layout.labels.dataLabels.offset ?? 0), ee = 20 + (Number.isFinite(s) ? s : 0);
|
|
509
509
|
if (!o) return {
|
|
510
510
|
x: e,
|
|
511
511
|
y: t,
|
|
512
512
|
anchor: "middle"
|
|
513
513
|
};
|
|
514
|
-
let
|
|
515
|
-
return
|
|
516
|
-
x: e +
|
|
517
|
-
y: t + te *
|
|
518
|
-
anchor:
|
|
514
|
+
let c = i / o, te = a / o, ne = "middle";
|
|
515
|
+
return c > .01 ? ne = "start" : c < -.01 && (ne = "end"), {
|
|
516
|
+
x: e + c * ee,
|
|
517
|
+
y: t + te * ee,
|
|
518
|
+
anchor: ne
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
521
|
let kn = f({
|
|
@@ -537,7 +537,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
537
537
|
let X = f(() => {
|
|
538
538
|
let e = J.value.map((e, t) => e.values.map((t) => t / (e.target || yn.value)));
|
|
539
539
|
return q.value.map((t, n) => {
|
|
540
|
-
let r =
|
|
540
|
+
let r = ie(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / J.value.length);
|
|
541
541
|
return {
|
|
542
542
|
...t,
|
|
543
543
|
absoluteIndex: n,
|
|
@@ -576,13 +576,13 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
576
576
|
head: e,
|
|
577
577
|
body: L.value.series.map((e) => [
|
|
578
578
|
e.name,
|
|
579
|
-
|
|
579
|
+
ae(e.formatter, e.target, l({
|
|
580
580
|
p: e.prefix,
|
|
581
581
|
v: e.target,
|
|
582
582
|
s: e.suffix,
|
|
583
583
|
r: F.value.table.td.roundingValue
|
|
584
584
|
})),
|
|
585
|
-
...e.values.map((t, n) => `${
|
|
585
|
+
...e.values.map((t, n) => `${ae(e.formatter, t, l({
|
|
586
586
|
p: q.value[n]?.prefix ?? "",
|
|
587
587
|
v: t,
|
|
588
588
|
s: q.value[n]?.suffix ?? "",
|
|
@@ -638,7 +638,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
638
638
|
config: F.value
|
|
639
639
|
};
|
|
640
640
|
let i = F.value.style.chart.tooltip.customFormat;
|
|
641
|
-
if (
|
|
641
|
+
if (te(i) && oe(() => i({
|
|
642
642
|
seriesIndex: t,
|
|
643
643
|
datapoint: e,
|
|
644
644
|
series: {
|
|
@@ -662,7 +662,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
662
662
|
}
|
|
663
663
|
Ft.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
|
|
664
664
|
for (let t = 0; t < e.values.length; t += 1) if (!W.value.includes(t)) {
|
|
665
|
-
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o =
|
|
665
|
+
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o = ae(e.formatter, i, l({
|
|
666
666
|
p: q.value[t].prefix,
|
|
667
667
|
v: i,
|
|
668
668
|
s: q.value[t].suffix,
|
|
@@ -671,12 +671,12 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
671
671
|
v: a,
|
|
672
672
|
s: "%",
|
|
673
673
|
r: F.value.style.chart.tooltip.roundingPercentage
|
|
674
|
-
}),
|
|
674
|
+
}), ee = F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${o} (${s})` : F.value.style.chart.tooltip.showValue && !F.value.style.chart.tooltip.showPercentage ? o : !F.value.style.chart.tooltip.showValue && F.value.style.chart.tooltip.showPercentage ? `${s}` : "";
|
|
675
675
|
Nn.value.push({
|
|
676
676
|
name: n?.name ?? `#${t + 1}`,
|
|
677
677
|
value: e.values[t] / e.target * 100,
|
|
678
678
|
color: n?.color,
|
|
679
|
-
suffix:
|
|
679
|
+
suffix: ee,
|
|
680
680
|
prefix: "",
|
|
681
681
|
rounding: F.value.style.chart.tooltip.roundingPercentage,
|
|
682
682
|
formatter: e.formatter
|
|
@@ -685,11 +685,11 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
685
685
|
}
|
|
686
686
|
function Rn(e = null) {
|
|
687
687
|
Le(() => {
|
|
688
|
-
let
|
|
688
|
+
let r = [
|
|
689
689
|
[F.value.style.chart.title.text],
|
|
690
690
|
[F.value.style.chart.title.subtitle.text],
|
|
691
691
|
[""]
|
|
692
|
-
],
|
|
692
|
+
], i = [
|
|
693
693
|
[""],
|
|
694
694
|
[F.value.translations.target],
|
|
695
695
|
...X.value.flatMap((e) => [[e.name], ["%"]])
|
|
@@ -697,7 +697,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
697
697
|
e.name,
|
|
698
698
|
e.target,
|
|
699
699
|
...e.values.flatMap((t) => [t, isNaN(t / e.target) ? "" : t / e.target * 100])
|
|
700
|
-
]), o =
|
|
700
|
+
]), o = r.concat([i]).concat(a), s = n(o);
|
|
701
701
|
e ? e(s) : t({
|
|
702
702
|
csvContent: s,
|
|
703
703
|
title: F.value.style.chart.title.text || "vue-ui-radar"
|
|
@@ -1039,7 +1039,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
1039
1039
|
g("div", Ye, [(x(), h("svg", {
|
|
1040
1040
|
ref_key: "svgRef",
|
|
1041
1041
|
ref: R,
|
|
1042
|
-
xmlns: E(
|
|
1042
|
+
xmlns: E(le),
|
|
1043
1043
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1044
1044
|
class: Re({
|
|
1045
1045
|
"vue-data-ui-fullscreen--on": $.value,
|
|
@@ -1072,7 +1072,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
1072
1072
|
key: `radar_gradient_${k.value}_${t}`,
|
|
1073
1073
|
stops: [[
|
|
1074
1074
|
"0%",
|
|
1075
|
-
E(r)(E(
|
|
1075
|
+
E(r)(E(ne)(e.color, .05), F.value.style.chart.layout.dataPolygon.opacity),
|
|
1076
1076
|
1
|
|
1077
1077
|
], [
|
|
1078
1078
|
"100%",
|
|
@@ -1089,7 +1089,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
1089
1089
|
"stroke-width": F.value.style.chart.layout.grid.strokeWidth,
|
|
1090
1090
|
style: { "pointer-events": "none" }
|
|
1091
1091
|
}, null, 8, $e))), 256)), F.value.style.chart.layout.grid.graduations > 0 ? (x(), h("g", et, [(x(!0), h(d, null, C(Dn.value, (e) => (x(), h("path", {
|
|
1092
|
-
d: E(
|
|
1092
|
+
d: E(o)({
|
|
1093
1093
|
plot: {
|
|
1094
1094
|
x: U.value.width / 2,
|
|
1095
1095
|
y: U.value.height / 2
|
|
@@ -1125,7 +1125,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
1125
1125
|
}, T(e.name), 41, it))), 256))])) : m("", !0),
|
|
1126
1126
|
(x(!0), h(d, null, C(q.value, (e, t) => (x(), h("g", null, [g("g", null, [F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (x(), h("polygon", {
|
|
1127
1127
|
key: 0,
|
|
1128
|
-
points: E(
|
|
1128
|
+
points: E(s)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1129
1129
|
stroke: F.value.style.chart.backgroundColor,
|
|
1130
1130
|
"stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
1131
1131
|
fill: "none",
|
|
@@ -1136,7 +1136,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
1136
1136
|
style: { "pointer-events": "none" }
|
|
1137
1137
|
}, null, 10, at)) : m("", !0), F.value.useCssAnimation || !F.value.useCssAnimation && !W.value.includes(t) ? (x(), h("polygon", {
|
|
1138
1138
|
key: 1,
|
|
1139
|
-
points: E(
|
|
1139
|
+
points: E(s)(Y.value.map((e) => e.plots[t]), !1, !0),
|
|
1140
1140
|
stroke: e.color,
|
|
1141
1141
|
"stroke-width": F.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
1142
1142
|
fill: F.value.style.chart.layout.dataPolygon.transparent ? "transparent" : F.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${k.value}_${t})` : E(r)(e.color, F.value.style.chart.layout.dataPolygon.opacity),
|
|
@@ -1149,7 +1149,7 @@ var Ge = /* @__PURE__ */ e({ default: () => St }), Ke = ["id"], qe = ["id"], Je
|
|
|
1149
1149
|
F.value.style.chart.layout.targetReference.show ? (x(), h("path", {
|
|
1150
1150
|
key: 3,
|
|
1151
1151
|
class: "vue-ui-radar-target-polygon",
|
|
1152
|
-
d: `M${E(
|
|
1152
|
+
d: `M${E(s)(xn.value, !1, !0)}Z`,
|
|
1153
1153
|
fill: "none",
|
|
1154
1154
|
stroke: F.value.style.chart.layout.targetReference.stroke,
|
|
1155
1155
|
"stroke-width": F.value.style.chart.layout.targetReference.strokeWidth,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Nt as t, Ut as n, X as r, i, nt as a, q as o, t as s, z as c } from "./lib-Dqr_-I6Y.js";
|
|
3
3
|
import { n as ee, t as l } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as u } from "./useConfig-DwdGsXTx.js";
|
|
5
|
-
import { t as d } from "./useNestedProp-
|
|
5
|
+
import { t as d } from "./useNestedProp-CulPqtou.js";
|
|
6
6
|
import { t as f } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
7
|
import { t as p } from "./DefGrad-DVBqDjhO.js";
|
|
8
8
|
import { Fragment as m, computed as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createVNode as y, mergeProps as b, normalizeStyle as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useSlots as k, watch as A, withKeys as j } from "vue";
|
|
@@ -83,7 +83,7 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
83
83
|
},
|
|
84
84
|
emits: ["rate"],
|
|
85
85
|
setup(e, { expose: f, emit: M }) {
|
|
86
|
-
let { vue_ui_rating: L } = u(), R = e, z = w(
|
|
86
|
+
let { vue_ui_rating: L } = u(), R = e, z = w(o()), B = w(!1), V = w(void 0), H = w(void 0), U = w([]), ue = k(), de = M, W = h({
|
|
87
87
|
get: () => G(),
|
|
88
88
|
set: (e) => e
|
|
89
89
|
});
|
|
@@ -105,7 +105,7 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
105
105
|
A(() => R.config, (e) => {
|
|
106
106
|
W.value = G(), X();
|
|
107
107
|
}, { deep: !0 });
|
|
108
|
-
let
|
|
108
|
+
let pe = h(() => typeof R.dataset.rating == "object" && !Array.isArray(R.dataset.rating) ? me(R.dataset.rating) : R.dataset.rating), K = h(() => typeof R.dataset.rating == "object" && !Array.isArray(R.dataset.rating)), q = w(pe.value), J = h(() => W.value.type === "image"), Y = h(() => W.value.readonly);
|
|
109
109
|
function me(e) {
|
|
110
110
|
let t = 0, n = 0;
|
|
111
111
|
for (let r in e) {
|
|
@@ -120,7 +120,7 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
120
120
|
X();
|
|
121
121
|
});
|
|
122
122
|
function X() {
|
|
123
|
-
(!Object.hasOwn(R.dataset, "rating") ||
|
|
123
|
+
(!Object.hasOwn(R.dataset, "rating") || t(R.dataset)) && a({
|
|
124
124
|
componentName: "VueUiRating",
|
|
125
125
|
type: "datasetAttribute",
|
|
126
126
|
property: "rating",
|
|
@@ -151,11 +151,11 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
151
151
|
return f({
|
|
152
152
|
getData: he,
|
|
153
153
|
toggleReadonly: ge
|
|
154
|
-
}), (e,
|
|
154
|
+
}), (e, t) => (C(), _("div", {
|
|
155
155
|
style: x(`background:${W.value.style.backgroundColor};font-family:${W.value.style.fontFamily};width:100%`),
|
|
156
156
|
class: "vue-data-ui-component vue-ui-rating",
|
|
157
|
-
onMouseover:
|
|
158
|
-
onMouseleave:
|
|
157
|
+
onMouseover: t[4] ||= (e) => B.value = !0,
|
|
158
|
+
onMouseleave: t[5] ||= (e) => {
|
|
159
159
|
B.value = !1, V.value = void 0;
|
|
160
160
|
}
|
|
161
161
|
}, [
|
|
@@ -166,7 +166,7 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
166
166
|
W.value.style.rating.show && W.value.style.rating.position === "top" ? (C(), _("div", {
|
|
167
167
|
key: 1,
|
|
168
168
|
style: x(`width:100%;text-align:center;margin-bottom:${W.value.style.rating.offsetY}px;font-size:${W.value.style.rating.fontSize}px;font-weight:${W.value.style.rating.bold ? "bold" : "normal"};margin-left:${W.value.style.rating.offsetX}px`)
|
|
169
|
-
}, D(O(
|
|
169
|
+
}, D(O(i)(W.value.style.rating.formatter, q.value, O(r)({
|
|
170
170
|
v: q.value,
|
|
171
171
|
r: W.value.style.rating.roundingValue
|
|
172
172
|
}), W.value)), 5)) : g("", !0),
|
|
@@ -177,11 +177,11 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
177
177
|
W.value.style.rating.show && W.value.style.rating.position === "left" ? (C(), _("div", {
|
|
178
178
|
key: 0,
|
|
179
179
|
style: x(`width:fit-content;text-align:center;margin-bottom:${W.value.style.rating.offsetY}px;font-size:${W.value.style.rating.fontSize}px;font-weight:${W.value.style.rating.bold ? "bold" : "normal"};padding-right:${W.value.style.rating.offsetX}px`)
|
|
180
|
-
}, D(O(
|
|
180
|
+
}, D(O(i)(W.value.style.rating.formatter, q.value, O(r)({
|
|
181
181
|
v: q.value,
|
|
182
182
|
r: W.value.style.rating.roundingValue
|
|
183
183
|
}), W.value)), 5)) : g("", !0),
|
|
184
|
-
(C(!0), _(m, null, T(U.value, (a,
|
|
184
|
+
(C(!0), _(m, null, T(U.value, (a, o) => (C(), _("div", {
|
|
185
185
|
class: "vue-ui-rating-unit-container",
|
|
186
186
|
style: x(`position:relative;height:${W.value.style.itemSize}px;width:${W.value.style.itemSize}px`)
|
|
187
187
|
}, [
|
|
@@ -204,7 +204,7 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
204
204
|
style: x(`position:absolute;top:0;left:0;opacity:${isNaN(V.value) ? W.value.style.image.inactiveOpacity : Z(a, !0)}`)
|
|
205
205
|
}, null, 12, ae)) : (C(), _("svg", {
|
|
206
206
|
key: 1,
|
|
207
|
-
xmlns: O(
|
|
207
|
+
xmlns: O(s),
|
|
208
208
|
viewBox: "0 0 100 100",
|
|
209
209
|
height: W.value.style.itemSize,
|
|
210
210
|
width: W.value.style.itemSize,
|
|
@@ -219,7 +219,7 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
219
219
|
id: `star_gradient_under_${z.value}`,
|
|
220
220
|
stops: [[
|
|
221
221
|
"0%",
|
|
222
|
-
O(
|
|
222
|
+
O(n)(W.value.style.star.activeColor, .05),
|
|
223
223
|
1
|
|
224
224
|
], [
|
|
225
225
|
"100%",
|
|
@@ -248,11 +248,11 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
248
248
|
width: W.value.style.itemSize,
|
|
249
249
|
id: `active_${z.value}_${a}`,
|
|
250
250
|
class: "vue-ui-rating-unit",
|
|
251
|
-
style: x(`position:absolute;top:0;left:0;clip:rect(0px,${Q(
|
|
251
|
+
style: x(`position:absolute;top:0;left:0;clip:rect(0px,${Q(o, !0) * W.value.style.itemSize}px,${W.value.style.itemSize}px,0px`)
|
|
252
252
|
}, null, 12, ce)) : (C(), _("svg", {
|
|
253
253
|
key: 3,
|
|
254
|
-
xmlns: O(
|
|
255
|
-
viewBox: `0 0 ${Q(
|
|
254
|
+
xmlns: O(s),
|
|
255
|
+
viewBox: `0 0 ${Q(o)} 100`,
|
|
256
256
|
height: W.value.style.itemSize,
|
|
257
257
|
class: "vue-ui-rating-unit",
|
|
258
258
|
id: `active_${z.value}_${a}`,
|
|
@@ -271,7 +271,7 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
271
271
|
id: `star_gradient_over_${z.value}`,
|
|
272
272
|
stops: [[
|
|
273
273
|
"0%",
|
|
274
|
-
O(
|
|
274
|
+
O(n)(W.value.style.star.activeColor, .05),
|
|
275
275
|
1
|
|
276
276
|
], [
|
|
277
277
|
"100%",
|
|
@@ -291,7 +291,7 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
291
291
|
stroke: W.value.style.star.activeColor
|
|
292
292
|
}, null, 8, N)], 8, le))], 64)),
|
|
293
293
|
(C(), _("svg", {
|
|
294
|
-
xmlns: O(
|
|
294
|
+
xmlns: O(s),
|
|
295
295
|
viewBox: "0 0 100 100",
|
|
296
296
|
height: W.value.style.itemSize,
|
|
297
297
|
class: "vue-ui-rating-unit",
|
|
@@ -306,9 +306,9 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
306
306
|
fill: "transparent",
|
|
307
307
|
onClick: (e) => $(a),
|
|
308
308
|
onMouseenter: (e) => V.value = a,
|
|
309
|
-
onMouseleave:
|
|
309
|
+
onMouseleave: t[0] ||= (e) => V.value = void 0,
|
|
310
310
|
onFocus: (e) => H.value = a,
|
|
311
|
-
onBlur:
|
|
311
|
+
onBlur: t[1] ||= (e) => H.value = void 0,
|
|
312
312
|
tabindex: "0",
|
|
313
313
|
onKeyup: j((e) => $(a), ["enter"])
|
|
314
314
|
}, null, 40, F)), Y.value ? (C(), _("rect", {
|
|
@@ -320,17 +320,17 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
320
320
|
height: 100,
|
|
321
321
|
fill: "transparent",
|
|
322
322
|
onMouseenter: (e) => V.value = a,
|
|
323
|
-
onMouseleave:
|
|
323
|
+
onMouseleave: t[2] ||= (e) => V.value = void 0,
|
|
324
324
|
onFocus: (e) => H.value = a,
|
|
325
|
-
onBlur:
|
|
325
|
+
onBlur: t[3] ||= (e) => H.value = void 0
|
|
326
326
|
}, null, 40, I)) : g("", !0)], 12, P)),
|
|
327
|
-
W.value.style.tooltip.show &&
|
|
327
|
+
W.value.style.tooltip.show && K.value && Y.value ? (C(), _("div", {
|
|
328
328
|
key: 2,
|
|
329
329
|
class: "vue-ui-rating-tooltip",
|
|
330
330
|
style: x(`border:1px solid ${W.value.style.tooltip.borderColor};position:absolute;top:${-48 + W.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${W.value.style.tooltip.backgroundColor};display:${V.value === a ? "block" : "none"};padding:2px 12px;border-radius:${W.value.style.tooltip.borderRadius}px;box-shadow:${W.value.style.tooltip.boxShadow}`)
|
|
331
331
|
}, [v("div", { style: x(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${W.value.style.tooltip.color}`) }, [
|
|
332
332
|
v("span", { style: x(`font-size:${W.value.style.tooltip.fontSize}px`) }, D(a) + ":", 5),
|
|
333
|
-
v("span", { style: x(`font-weight:${W.value.style.tooltip.bold ? "bold" : "normal"};font-size:${W.value.style.tooltip.fontSize}px`) }, D(O(
|
|
333
|
+
v("span", { style: x(`font-weight:${W.value.style.tooltip.bold ? "bold" : "normal"};font-size:${W.value.style.tooltip.fontSize}px`) }, D(O(i)(W.value.style.tooltip.formatter, R.dataset.rating[a], O(r)({
|
|
334
334
|
v: R.dataset.rating[a],
|
|
335
335
|
r: W.value.style.tooltip.roundingValue
|
|
336
336
|
}), W.value)), 5),
|
|
@@ -340,7 +340,7 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
340
340
|
W.value.style.rating.show && W.value.style.rating.position === "right" ? (C(), _("div", {
|
|
341
341
|
key: 1,
|
|
342
342
|
style: x(`width:fit-content;text-align:center;margin-bottom:${W.value.style.rating.offsetY}px;font-size:${W.value.style.rating.fontSize}px;font-weight:${W.value.style.rating.bold ? "bold" : "normal"};padding-left:${W.value.style.rating.offsetX}px`)
|
|
343
|
-
}, D(O(
|
|
343
|
+
}, D(O(i)(W.value.style.rating.formatter, q.value, O(r)({
|
|
344
344
|
v: q.value,
|
|
345
345
|
r: W.value.style.rating.roundingValue
|
|
346
346
|
}), W.value)), 5)) : g("", !0)
|
|
@@ -348,7 +348,7 @@ var M = /* @__PURE__ */ e({ default: () => L }), te = {
|
|
|
348
348
|
W.value.style.rating.show && W.value.style.rating.position === "bottom" ? (C(), _("div", {
|
|
349
349
|
key: 2,
|
|
350
350
|
style: x(`width:100%;text-align:center;margin-top:${W.value.style.rating.offsetY}px;font-size:${W.value.style.rating.fontSize}px;font-weight:${W.value.style.rating.bold ? "bold" : "normal"};margin-left:${W.value.style.rating.offsetX}px`)
|
|
351
|
-
}, D(O(
|
|
351
|
+
}, D(O(i)(W.value.style.rating.formatter, q.value, O(r)({
|
|
352
352
|
v: q.value,
|
|
353
353
|
r: W.value.style.rating.roundingValue
|
|
354
354
|
}), W.value)), 5)) : g("", !0)
|