vue-data-ui 3.22.4 → 3.22.6
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-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
- package/dist/{PackageVersion-Cm-3hwIF.js → PackageVersion-Da7hl-34.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
- package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.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-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
- package/dist/exposedLib-CjwriUaG.js +19 -0
- package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
- package/dist/{package-CRlwXCDr.js → package-DyQ_PQis.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
- package/dist/{render-common-D6ny-Fwu.js → render-common-CUAlQvAQ.js} +22 -22
- 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 +14 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-DTWqd0R2.js → vue-data-ui-Bpu4kxlm.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
- package/dist/{vue-ui-bullet-tlj5_z_z.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
- package/dist/{vue-ui-bump-BD0Uq3As.js → vue-ui-bump-BZB1Na8h.js} +243 -243
- package/dist/{vue-ui-candlestick-CZxsNGKS.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
- package/dist/{vue-ui-carousel-table-ycbcmBKt.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
- package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
- package/dist/{vue-ui-circle-pack-BPC6zUis.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
- package/dist/{vue-ui-cursor-DF_e5k1s.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
- package/dist/{vue-ui-dag-BIo4-Oa8.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
- package/dist/{vue-ui-dashboard-BEtF6UX2.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
- package/dist/{vue-ui-digits-07IxTlNO.js → vue-ui-digits-BfP1kbj3.js} +4 -4
- package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
- package/dist/{vue-ui-donut-C5oRCxAO.js → vue-ui-donut-DlVRnVr_.js} +120 -120
- package/dist/{vue-ui-donut-evolution-BSeyPC9k.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
- package/dist/{vue-ui-flow-R_dLE1WS.js → vue-ui-flow-D_7Idmmw.js} +84 -84
- package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
- package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
- package/dist/{vue-ui-gauge-AbzY-7Gg.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
- package/dist/{vue-ui-geo-DVT9XEC3.js → vue-ui-geo-89DEQb5l.js} +18 -18
- package/dist/{vue-ui-gizmo-DJTRXao8.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
- package/dist/{vue-ui-heatmap-BCFId15K.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
- package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-j3jszojt.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
- package/dist/{vue-ui-kpi-DJjF6tcf.js → vue-ui-kpi-4C-j92D-.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
- package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
- package/dist/{vue-ui-mood-radar-DP_4LHfZ.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
- package/dist/{vue-ui-nested-donuts-DFsLZEqx.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
- package/dist/{vue-ui-onion-CzXx3Rme.js → vue-ui-onion-B8-psLbF.js} +40 -40
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
- package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
- package/dist/{vue-ui-quick-chart-CnIFPFPv.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
- package/dist/{vue-ui-radar-CNwKFbHc.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
- package/dist/{vue-ui-ridgeline-Kw50zROq.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
- package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
- package/dist/{vue-ui-scatter-DoL5Kh1Y.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
- package/dist/{vue-ui-skeleton-BOHwJSdz.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
- package/dist/{vue-ui-spark-trend-OgSFIFh0.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
- package/dist/{vue-ui-sparkbar-D8FdqMB_.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CBpPbVkw.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-BQjbLa2k.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
- package/dist/{vue-ui-sparkline-BJfh5Lje.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
- package/dist/{vue-ui-stackbar-Dqs7_g8D.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
- package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
- package/dist/{vue-ui-strip-plot-B7D6Hk8R.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
- package/dist/{vue-ui-table-Bqi9XNvY.js → vue-ui-table-DBlZswRi.js} +26 -26
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
- package/dist/{vue-ui-table-sparkline-0Ffb2jdf.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
- package/dist/{vue-ui-thermometer-Di5PXtEO.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
- package/dist/{vue-ui-timer-9CDcd-gP.js → vue-ui-timer-ONSitYDm.js} +30 -30
- package/dist/{vue-ui-tiremarks-BAQ-cCSq.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
- package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
- package/dist/{vue-ui-waffle-DG2IfACo.js → vue-ui-waffle-afa8HSxz.js} +160 -160
- package/dist/{vue-ui-wheel-BfXJFCjv.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
- package/dist/{vue-ui-word-cloud-3NJy1z6d.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
- package/dist/{vue-ui-world-vrGT5g1H.js → vue-ui-world-CqS-HhZl.js} +400 -400
- package/dist/{vue-ui-xy-Dg0wxSeC.js → vue-ui-xy-Bmd11BxR.js} +656 -656
- package/dist/{vue-ui-xy-Cb7u46JN.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
- package/package.json +1 -1
- package/dist/exposedLib-C2U48XK7.js +0 -19
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +0 -1757
- package/dist/vue-ui-age-pyramid-e09oK-Fp.js +0 -1238
- package/dist/vue-ui-chestnut-CnEsjvh4.js +0 -2010
- package/dist/vue-ui-chord-BZhXsZXp.js +0 -1391
- package/dist/vue-ui-donut-C4FcvXm3.js +0 -2410
- package/dist/vue-ui-dumbbell-Cykw4WYn.js +0 -1530
- package/dist/vue-ui-funnel-Ct5xQdak.js +0 -777
- package/dist/vue-ui-galaxy-B5BkdIt5.js +0 -1077
- package/dist/vue-ui-history-plot-DCeroetw.js +0 -1700
- package/dist/vue-ui-molecule-2pfoR63d.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +0 -1416
- package/dist/vue-ui-quadrant-Br_iZmcw.js +0 -1978
- package/dist/vue-ui-relation-circle-BVDIikGi.js +0 -924
- package/dist/vue-ui-rings-BDJyoWvT.js +0 -1246
- package/dist/vue-ui-sparkstackbar-1WUQrqd7.js +0 -662
- package/dist/vue-ui-stackline-IRjugedp.js +0 -2416
- package/dist/vue-ui-treemap-CLOlWiDE.js +0 -1587
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as pe } from "./useConfig-
|
|
4
|
-
import { t as me } from "./usePrinter-
|
|
2
|
+
import { At as t, Dt as n, Et as r, Ht as i, It as a, Lt as o, Q as s, S as ee, W as te, Wt as ne, X as re, _t as ie, at as ae, b as oe, i as se, k as ce, lt as le, q as c, t as ue, v as de, w as fe } from "./lib-DRBJCmHW.js";
|
|
3
|
+
import { t as pe } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as me } from "./usePrinter-CRp5IW3v.js";
|
|
5
5
|
import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as _e } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as ve } from "./useNestedProp-
|
|
7
|
+
import { t as ve } from "./useNestedProp-BEo2N1Db.js";
|
|
8
8
|
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as be } from "./img-
|
|
10
|
-
import { n as xe } from "./Title-
|
|
9
|
+
import { t as be } from "./img-B_y5qDdm.js";
|
|
10
|
+
import { n as xe } from "./Title-C-p0ilWB.js";
|
|
11
11
|
import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as Ce } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as we } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
-
import { t as Te } from "./BaseLegendToggle-
|
|
14
|
+
import { t as Te } from "./BaseLegendToggle-DFwIY5bE.js";
|
|
15
15
|
import { t as Ee } from "./A11yDataTable-DdRsVULz.js";
|
|
16
16
|
import { t as De } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
17
|
import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as ke } from "./Legend-
|
|
19
|
-
import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-
|
|
18
|
+
import { t as ke } from "./Legend-D-635Kag.js";
|
|
19
|
+
import { t as Ae } from "./useAutoSizeLabelsInsideViewbox-DPMOys9n.js";
|
|
20
20
|
import { t as je } from "./vue_ui_radar-jafTED5j.js";
|
|
21
21
|
import { Fragment as l, Teleport as Me, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ie, nextTick as Le, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Re, onMounted as ze, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as w, toRefs as He, unref as T, watch as Ue, withCtx as E } from "vue";
|
|
22
22
|
//#region src/components/vue-ui-radar.vue
|
|
@@ -112,10 +112,10 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
112
112
|
},
|
|
113
113
|
emits: ["selectLegend", "copyAlt"],
|
|
114
114
|
setup(e, { expose: Se, emit: We }) {
|
|
115
|
-
let St = h(() => import("./Tooltip-
|
|
115
|
+
let St = h(() => import("./Tooltip-YabpoXo1.js")), Ct = h(() => import("./BaseIcon-DcUvOfxf.js").then((e) => e.n)), wt = h(() => import("./vue-ui-sparkbar-D-i_VLO6.js").then((e) => e.n)), Tt = h(() => import("./vue-ui-accordion-CfMrbDoq.js").then((e) => e.n)), Et = h(() => import("./DataTable-CXfvIulC.js")), Dt = h(() => import("./PenAndPaper-Bk2-E7V4.js").then((e) => e.t)), Ot = h(() => import("./UserOptions-BO4VFL8O.js").then((e) => e.n)), kt = h(() => import("./PackageVersion-Da7hl-34.js").then((e) => e.t)), At = h(() => import("./BaseDraggableDialog-VbypEaAa.js").then((e) => e.n)), { vue_ui_radar: jt } = pe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = ye(), D = e, Pt = u(() => !!D.dataset && Object.keys(D.dataset).length), O = x(te()), k = x(!1), Ft = x(""), It = x(0), A = x(null), Lt = x(null), Rt = x(null), zt = x(null), Bt = x(null), Vt = x(0), Ht = x(0), Ut = x(0), Wt = x(!1), j = x(null), Gt = x(null), Kt = x(!1), qt = x(!1), M = x(null), Jt = x({
|
|
116
116
|
x: 0,
|
|
117
117
|
y: 0
|
|
118
|
-
}), N = x("pointer"), Yt = x(!1), P = x(tn()), F = u(() => P.value.userOptions.useCursorPointer), Xt = u(() =>
|
|
118
|
+
}), N = x("pointer"), Yt = x(!1), P = x(tn()), F = u(() => P.value.userOptions.useCursorPointer), Xt = u(() => ne({
|
|
119
119
|
defaultConfig: {
|
|
120
120
|
userOptions: { show: !1 },
|
|
121
121
|
table: { show: !1 },
|
|
@@ -178,7 +178,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
178
178
|
}
|
|
179
179
|
]
|
|
180
180
|
},
|
|
181
|
-
skeletonConfig:
|
|
181
|
+
skeletonConfig: ne({
|
|
182
182
|
defaultConfig: P.value,
|
|
183
183
|
userConfig: Xt.value
|
|
184
184
|
})
|
|
@@ -187,19 +187,19 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
187
187
|
let e = ve({
|
|
188
188
|
userConfig: D.config,
|
|
189
189
|
defaultConfig: jt
|
|
190
|
-
}),
|
|
191
|
-
if (!
|
|
190
|
+
}), n = e.theme;
|
|
191
|
+
if (!n) return e;
|
|
192
192
|
if (!Mt.value(e)) return Nt(e), e;
|
|
193
|
-
let
|
|
194
|
-
userConfig: je[
|
|
193
|
+
let r = ve({
|
|
194
|
+
userConfig: je[n] || D.config,
|
|
195
195
|
defaultConfig: e
|
|
196
|
-
}),
|
|
196
|
+
}), a = ve({
|
|
197
197
|
userConfig: D.config,
|
|
198
|
-
defaultConfig:
|
|
198
|
+
defaultConfig: r
|
|
199
199
|
});
|
|
200
200
|
return {
|
|
201
|
-
...
|
|
202
|
-
customPalette:
|
|
201
|
+
...a,
|
|
202
|
+
customPalette: a.customPalette.length ? a.customPalette : i[n] || t
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
Ue(() => D.config, (e) => {
|
|
@@ -207,7 +207,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
207
207
|
}, { deep: !0 });
|
|
208
208
|
let R = Ve(null), z = Ve(null), B = u(() => P.value.debug);
|
|
209
209
|
function nn() {
|
|
210
|
-
if (
|
|
210
|
+
if (n(D.dataset) && s({
|
|
211
211
|
componentName: "VueUiRadar",
|
|
212
212
|
type: "dataset",
|
|
213
213
|
debug: B.value
|
|
@@ -288,11 +288,11 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
288
288
|
function gn() {
|
|
289
289
|
let e = I.value;
|
|
290
290
|
if ([null, void 0].includes(e?.categories)) {
|
|
291
|
-
|
|
291
|
+
s({
|
|
292
292
|
componentName: "VueUiRadar",
|
|
293
293
|
type: "dataset",
|
|
294
294
|
debug: B.value
|
|
295
|
-
}),
|
|
295
|
+
}), s({
|
|
296
296
|
componentName: "VueUiRadar",
|
|
297
297
|
type: "datasetAttribute",
|
|
298
298
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])",
|
|
@@ -300,7 +300,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
300
300
|
});
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
|
-
e.categories.length === 0 ?
|
|
303
|
+
e.categories.length === 0 ? s({
|
|
304
304
|
componentName: "VueUiRadar",
|
|
305
305
|
type: "datasetAttributeEmpty",
|
|
306
306
|
property: "categories",
|
|
@@ -310,7 +310,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
310
310
|
datasetObject: e,
|
|
311
311
|
requiredAttributes: ["name"]
|
|
312
312
|
}).forEach((e) => {
|
|
313
|
-
|
|
313
|
+
s({
|
|
314
314
|
componentName: "VueUiRadar",
|
|
315
315
|
type: "datasetAttribute",
|
|
316
316
|
property: `category.${e} at index ${t}`,
|
|
@@ -318,7 +318,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
318
318
|
debug: B.value
|
|
319
319
|
});
|
|
320
320
|
});
|
|
321
|
-
}), [null, void 0].includes(e?.series) ?
|
|
321
|
+
}), [null, void 0].includes(e?.series) ? s({
|
|
322
322
|
componentName: "VueUiRadar",
|
|
323
323
|
type: "datasetAttribute",
|
|
324
324
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])",
|
|
@@ -332,7 +332,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
332
332
|
"target"
|
|
333
333
|
]
|
|
334
334
|
}).forEach((e) => {
|
|
335
|
-
|
|
335
|
+
s({
|
|
336
336
|
componentName: "VueUiRadar",
|
|
337
337
|
type: "datasetSerieAttribute",
|
|
338
338
|
key: "series",
|
|
@@ -348,20 +348,20 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
348
348
|
immediate: !0
|
|
349
349
|
});
|
|
350
350
|
let K = u(() => {
|
|
351
|
-
let e = Array.isArray(I.value?.categories) ? I.value.categories : [],
|
|
352
|
-
return e.map((e,
|
|
351
|
+
let e = Array.isArray(I.value?.categories) ? I.value.categories : [], n = ln.value ?? t;
|
|
352
|
+
return e.map((e, r) => ({
|
|
353
353
|
name: e?.name ?? "",
|
|
354
|
-
categoryId: `radar_category_${O.value}_${
|
|
355
|
-
color:
|
|
354
|
+
categoryId: `radar_category_${O.value}_${r}`,
|
|
355
|
+
color: oe(e?.color) || n[r] || t[r % t.length],
|
|
356
356
|
prefix: e?.prefix ?? "",
|
|
357
357
|
suffix: e?.suffix ?? ""
|
|
358
358
|
}));
|
|
359
|
-
}), q = u(() => I.value.series.map((e,
|
|
359
|
+
}), q = u(() => I.value.series.map((e, n) => ({
|
|
360
360
|
...e,
|
|
361
|
-
color:
|
|
362
|
-
serieId: `radar_serie_${O.value}_${
|
|
361
|
+
color: oe(e.color) || ln.value[n] || t[n] || t[n % t.length],
|
|
362
|
+
serieId: `radar_serie_${O.value}_${n}`,
|
|
363
363
|
formatter: e.formatter || null,
|
|
364
|
-
absoluteIndex:
|
|
364
|
+
absoluteIndex: n
|
|
365
365
|
})));
|
|
366
366
|
function _n(e) {
|
|
367
367
|
return q.value.length ? Y.value.find((t) => t.name === e) || (P.value.debug && console.warn(`VueUiRadar - Series name not found "${e}"`), null) : (P.value.debug && console.warn("VueUiRadar - There are no series to show."), null);
|
|
@@ -387,7 +387,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
387
387
|
apexY: n.y,
|
|
388
388
|
proportion: (e.target || 0) / xn(e)
|
|
389
389
|
});
|
|
390
|
-
})), Cn = u(() => q.value.length), wn = u(() => Math.min(H.value.width, H.value.height) / 3), Tn = u(() =>
|
|
390
|
+
})), Cn = u(() => q.value.length), wn = u(() => Math.min(H.value.width, H.value.height) / 3), Tn = u(() => ce({
|
|
391
391
|
plot: {
|
|
392
392
|
x: H.value.width / 2,
|
|
393
393
|
y: H.value.height / 2
|
|
@@ -445,7 +445,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
445
445
|
let Y = u(() => {
|
|
446
446
|
let e = q.value.map((e, t) => e.values.map((t) => t / (e.target || bn.value)));
|
|
447
447
|
return K.value.map((t, n) => {
|
|
448
|
-
let r =
|
|
448
|
+
let r = de(e.map((e) => e[n]).reduce((e, t) => e + t, 0) / q.value.length);
|
|
449
449
|
return {
|
|
450
450
|
...t,
|
|
451
451
|
absoluteIndex: n,
|
|
@@ -484,13 +484,13 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
484
484
|
head: e,
|
|
485
485
|
body: I.value.series.map((e) => [
|
|
486
486
|
e.name,
|
|
487
|
-
|
|
487
|
+
se(e.formatter, e.target, c({
|
|
488
488
|
p: e.prefix,
|
|
489
489
|
v: e.target,
|
|
490
490
|
s: e.suffix,
|
|
491
491
|
r: P.value.table.td.roundingValue
|
|
492
492
|
})),
|
|
493
|
-
...e.values.map((t, n) => `${
|
|
493
|
+
...e.values.map((t, n) => `${se(e.formatter, t, c({
|
|
494
494
|
p: K.value[n]?.prefix ?? "",
|
|
495
495
|
v: t,
|
|
496
496
|
s: K.value[n]?.suffix ?? "",
|
|
@@ -546,7 +546,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
546
546
|
config: P.value
|
|
547
547
|
};
|
|
548
548
|
let i = P.value.style.chart.tooltip.customFormat;
|
|
549
|
-
if (
|
|
549
|
+
if (ie(i) && ae(() => i({
|
|
550
550
|
seriesIndex: t,
|
|
551
551
|
datapoint: e,
|
|
552
552
|
series: {
|
|
@@ -570,21 +570,21 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
570
570
|
}
|
|
571
571
|
Ft.value = `<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`;
|
|
572
572
|
for (let t = 0; t < e.values.length; t += 1) if (!U.value.includes(t)) {
|
|
573
|
-
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o =
|
|
573
|
+
let n = r[t], i = e.values[t], a = isNaN(i / e.target) ? 0 : i / e.target * 100, o = se(e.formatter, i, c({
|
|
574
574
|
p: K.value[t].prefix,
|
|
575
575
|
v: i,
|
|
576
576
|
s: K.value[t].suffix,
|
|
577
577
|
r: P.value.style.chart.tooltip.roundingValue
|
|
578
|
-
}), { datapoint: e }),
|
|
578
|
+
}), { datapoint: e }), s = c({
|
|
579
579
|
v: a,
|
|
580
580
|
s: "%",
|
|
581
581
|
r: P.value.style.chart.tooltip.roundingPercentage
|
|
582
|
-
}),
|
|
582
|
+
}), ee = P.value.style.chart.tooltip.showValue && P.value.style.chart.tooltip.showPercentage ? `${o} (${s})` : P.value.style.chart.tooltip.showValue && !P.value.style.chart.tooltip.showPercentage ? o : !P.value.style.chart.tooltip.showValue && P.value.style.chart.tooltip.showPercentage ? `${s}` : "";
|
|
583
583
|
Mn.value.push({
|
|
584
584
|
name: n?.name ?? `#${t + 1}`,
|
|
585
585
|
value: e.values[t] / e.target * 100,
|
|
586
586
|
color: n?.color,
|
|
587
|
-
suffix:
|
|
587
|
+
suffix: ee,
|
|
588
588
|
prefix: "",
|
|
589
589
|
rounding: P.value.style.chart.tooltip.roundingPercentage,
|
|
590
590
|
formatter: e.formatter
|
|
@@ -784,14 +784,14 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
784
784
|
toggleAnnotator: Vn,
|
|
785
785
|
toggleFullscreen: Rn,
|
|
786
786
|
copyAlt: Qn
|
|
787
|
-
}), (e,
|
|
787
|
+
}), (e, t) => (b(), p("div", {
|
|
788
788
|
class: _(`vue-data-ui-component vue-ui-radar ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
789
789
|
ref_key: "radarChart",
|
|
790
790
|
ref: A,
|
|
791
791
|
id: `vue-ui-radar_${O.value}`,
|
|
792
792
|
style: y(`font-family:${P.value.style.fontFamily};width:100%; ${P.value.responsive ? "height: 100%;" : ""} text-align:center;background:${P.value.style.chart.backgroundColor}`),
|
|
793
|
-
onMouseenter:
|
|
794
|
-
onMouseleave:
|
|
793
|
+
onMouseenter: t[2] ||= () => T($t)(!0),
|
|
794
|
+
onMouseleave: t[3] ||= () => T($t)(!1)
|
|
795
795
|
}, [
|
|
796
796
|
m("div", {
|
|
797
797
|
id: `chart-instructions-${O.value}`,
|
|
@@ -972,7 +972,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
972
972
|
m("div", Je, [(b(), p("svg", {
|
|
973
973
|
ref_key: "svgRef",
|
|
974
974
|
ref: L,
|
|
975
|
-
xmlns: T(
|
|
975
|
+
xmlns: T(ue),
|
|
976
976
|
"aria-describedby": `chart-instructions-${O.value}`,
|
|
977
977
|
class: _({
|
|
978
978
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
@@ -1003,10 +1003,10 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1003
1003
|
id: `radar_gradient_${O.value}_${t}`
|
|
1004
1004
|
}, [m("stop", {
|
|
1005
1005
|
offset: "0%",
|
|
1006
|
-
"stop-color": T(
|
|
1006
|
+
"stop-color": T(a)(T(o)(e.color, .05), P.value.style.chart.layout.dataPolygon.opacity)
|
|
1007
1007
|
}, null, 8, Qe), m("stop", {
|
|
1008
1008
|
offset: "100%",
|
|
1009
|
-
"stop-color": T(
|
|
1009
|
+
"stop-color": T(a)(e.color, P.value.style.chart.layout.dataPolygon.opacity)
|
|
1010
1010
|
}, null, 8, $e)], 8, Ze))), 256))]),
|
|
1011
1011
|
P.value.style.chart.layout.grid.show ? (b(), p("g", et, [(b(!0), p(l, null, S(J.value, (e) => (b(), p("line", {
|
|
1012
1012
|
x1: H.value.width / 2,
|
|
@@ -1016,7 +1016,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1016
1016
|
stroke: P.value.style.chart.layout.grid.stroke,
|
|
1017
1017
|
"stroke-width": P.value.style.chart.layout.grid.strokeWidth
|
|
1018
1018
|
}, null, 8, tt))), 256)), P.value.style.chart.layout.grid.graduations > 0 ? (b(), p("g", nt, [(b(!0), p(l, null, S(En.value, (e) => (b(), p("path", {
|
|
1019
|
-
d: T(
|
|
1019
|
+
d: T(ce)({
|
|
1020
1020
|
plot: {
|
|
1021
1021
|
x: H.value.width / 2,
|
|
1022
1022
|
y: H.value.height / 2
|
|
@@ -1048,31 +1048,31 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1048
1048
|
onMouseleave: (n) => Pn(e, t),
|
|
1049
1049
|
onClick: (n) => Fn(e, t)
|
|
1050
1050
|
}, w(e.name), 41, ot))), 256))])) : f("", !0),
|
|
1051
|
-
(b(!0), p(l, null, S(K.value, (e,
|
|
1051
|
+
(b(!0), p(l, null, S(K.value, (e, t) => (b(), p("g", null, [m("g", null, [P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(t) ? (b(), p("polygon", {
|
|
1052
1052
|
key: 0,
|
|
1053
|
-
points: T(
|
|
1053
|
+
points: T(r)(J.value.map((e) => e.plots[t]), !1, !0),
|
|
1054
1054
|
stroke: P.value.style.chart.backgroundColor,
|
|
1055
1055
|
"stroke-width": P.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
1056
1056
|
fill: "none",
|
|
1057
1057
|
class: _({
|
|
1058
|
-
"animated-out": U.value.includes(
|
|
1059
|
-
"animated-in": G.value && W.value ===
|
|
1058
|
+
"animated-out": U.value.includes(t) && P.value.useCssAnimation,
|
|
1059
|
+
"animated-in": G.value && W.value === t && P.value.useCssAnimation
|
|
1060
1060
|
})
|
|
1061
|
-
}, null, 10, st)) : f("", !0), P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(
|
|
1061
|
+
}, null, 10, st)) : f("", !0), P.value.useCssAnimation || !P.value.useCssAnimation && !U.value.includes(t) ? (b(), p("polygon", {
|
|
1062
1062
|
key: 1,
|
|
1063
|
-
points: T(
|
|
1063
|
+
points: T(r)(J.value.map((e) => e.plots[t]), !1, !0),
|
|
1064
1064
|
stroke: e.color,
|
|
1065
1065
|
"stroke-width": P.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
1066
|
-
fill: P.value.style.chart.layout.dataPolygon.transparent ? "transparent" : P.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${O.value}_${
|
|
1066
|
+
fill: P.value.style.chart.layout.dataPolygon.transparent ? "transparent" : P.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${O.value}_${t})` : T(a)(e.color, P.value.style.chart.layout.dataPolygon.opacity),
|
|
1067
1067
|
class: _({
|
|
1068
|
-
"animated-out": U.value.includes(
|
|
1069
|
-
"animated-in": G.value && W.value ===
|
|
1068
|
+
"animated-out": U.value.includes(t) && P.value.useCssAnimation,
|
|
1069
|
+
"animated-in": G.value && W.value === t && P.value.useCssAnimation
|
|
1070
1070
|
})
|
|
1071
1071
|
}, null, 10, ct)) : f("", !0)])]))), 256)),
|
|
1072
1072
|
P.value.style.chart.layout.targetReference.show ? (b(), p("path", {
|
|
1073
1073
|
key: 3,
|
|
1074
1074
|
class: "vue-ui-radar-target-polygon",
|
|
1075
|
-
d: `M${T(
|
|
1075
|
+
d: `M${T(r)(Sn.value, !1, !0)}Z`,
|
|
1076
1076
|
fill: "none",
|
|
1077
1077
|
stroke: P.value.style.chart.layout.targetReference.stroke,
|
|
1078
1078
|
"stroke-width": P.value.style.chart.layout.targetReference.strokeWidth,
|
|
@@ -1115,7 +1115,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1115
1115
|
legendSet: Y.value,
|
|
1116
1116
|
config: jn.value,
|
|
1117
1117
|
isCursorPointer: F.value,
|
|
1118
|
-
onClickMarker:
|
|
1118
|
+
onClickMarker: t[0] ||= ({ i: e }) => mn(e)
|
|
1119
1119
|
}, Ne({
|
|
1120
1120
|
item: E(({ legend: e, index: t }) => [T(Zt) ? f("", !0) : (b(), p("div", {
|
|
1121
1121
|
key: 0,
|
|
@@ -1265,7 +1265,7 @@ var We = /* @__PURE__ */ e({ default: () => St }), Ge = ["id"], Ke = ["id"], qe
|
|
|
1265
1265
|
fn: E(() => [m("button", {
|
|
1266
1266
|
tabindex: "0",
|
|
1267
1267
|
class: "vue-ui-user-options-button",
|
|
1268
|
-
onClick:
|
|
1268
|
+
onClick: t[1] ||= (e) => Ln(P.value.userOptions.callbacks.csv),
|
|
1269
1269
|
style: y({ cursor: F.value ? "pointer" : "default" })
|
|
1270
1270
|
}, [Fe(T(Ct), {
|
|
1271
1271
|
name: "fileCsv",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as l } from "./useConfig-
|
|
4
|
-
import { t as u } from "./useNestedProp-
|
|
2
|
+
import { Dt as t, I as n, Lt as r, Q as i, W as a, i as o, q as s, t as c } from "./lib-DRBJCmHW.js";
|
|
3
|
+
import { t as l } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as u } from "./useNestedProp-BEo2N1Db.js";
|
|
5
5
|
import { t as d } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
6
6
|
import { Fragment as f, computed as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, mergeProps as _, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as ee, renderSlot as S, toDisplayString as C, unref as w, useSlots as te, watch as ne, withKeys as re } from "vue";
|
|
7
7
|
//#region src/components/vue-ui-rating.vue
|
|
@@ -113,7 +113,7 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
113
113
|
X();
|
|
114
114
|
});
|
|
115
115
|
function X() {
|
|
116
|
-
(!Object.hasOwn(R.dataset, "rating") ||
|
|
116
|
+
(!Object.hasOwn(R.dataset, "rating") || t(R.dataset)) && i({
|
|
117
117
|
componentName: "VueUiRating",
|
|
118
118
|
type: "datasetAttribute",
|
|
119
119
|
property: "rating"
|
|
@@ -143,11 +143,11 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
143
143
|
return d({
|
|
144
144
|
getData: _e,
|
|
145
145
|
toggleReadonly: ve
|
|
146
|
-
}), (e,
|
|
146
|
+
}), (e, t) => (b(), h("div", {
|
|
147
147
|
style: v(`background:${G.value.style.backgroundColor};font-family:${G.value.style.fontFamily};width:100%`),
|
|
148
148
|
class: "vue-data-ui-component vue-ui-rating",
|
|
149
|
-
onMouseover:
|
|
150
|
-
onMouseleave:
|
|
149
|
+
onMouseover: t[4] ||= (e) => B.value = !0,
|
|
150
|
+
onMouseleave: t[5] ||= (e) => {
|
|
151
151
|
B.value = !1, V.value = void 0;
|
|
152
152
|
}
|
|
153
153
|
}, [
|
|
@@ -173,17 +173,17 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
173
173
|
v: q.value,
|
|
174
174
|
r: G.value.style.rating.roundingValue
|
|
175
175
|
}), G.value)), 5)) : m("", !0),
|
|
176
|
-
(b(!0), h(f, null, ee(U.value, (
|
|
176
|
+
(b(!0), h(f, null, ee(U.value, (i, a) => (b(), h("div", {
|
|
177
177
|
class: "vue-ui-rating-unit-container",
|
|
178
178
|
style: v(`position:relative;height:${G.value.style.itemSize}px;width:${G.value.style.itemSize}px`)
|
|
179
179
|
}, [
|
|
180
180
|
e.$slots["layer-under"] || e.$slots["layer-above"] ? (b(), h("div", E, [e.$slots["layer-under"] ? (b(), h("div", D, [S(e.$slots, "layer-under", _({ ref_for: !0 }, {
|
|
181
|
-
value:
|
|
181
|
+
value: i,
|
|
182
182
|
size: G.value.style.itemSize,
|
|
183
183
|
hoveredValue: V.value,
|
|
184
184
|
focusedValue: H.value
|
|
185
185
|
}), void 0, !0)])) : m("", !0), e.$slots["layer-above"] ? (b(), h("div", O, [S(e.$slots, "layer-above", _({ ref_for: !0 }, {
|
|
186
|
-
value:
|
|
186
|
+
value: i,
|
|
187
187
|
size: G.value.style.itemSize,
|
|
188
188
|
hoveredValue: V.value,
|
|
189
189
|
focusedValue: H.value
|
|
@@ -193,7 +193,7 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
193
193
|
height: G.value.style.itemSize,
|
|
194
194
|
width: G.value.style.itemSize,
|
|
195
195
|
class: "vue-ui-rating-unit",
|
|
196
|
-
style: v(`position:absolute;top:0;left:0;opacity:${isNaN(V.value) ? G.value.style.image.inactiveOpacity : Z(
|
|
196
|
+
style: v(`position:absolute;top:0;left:0;opacity:${isNaN(V.value) ? G.value.style.image.inactiveOpacity : Z(i, !0)}`)
|
|
197
197
|
}, null, 12, ae)) : (b(), h("svg", {
|
|
198
198
|
key: 1,
|
|
199
199
|
xmlns: w(c),
|
|
@@ -210,12 +210,12 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
210
210
|
id: `star_gradient_under_${z.value}`
|
|
211
211
|
}, [g("stop", {
|
|
212
212
|
offset: "0%",
|
|
213
|
-
"stop-color": `${w(
|
|
213
|
+
"stop-color": `${w(r)(G.value.style.star.activeColor, .05)}`
|
|
214
214
|
}, null, 8, ce), g("stop", {
|
|
215
215
|
offset: "100%",
|
|
216
216
|
"stop-color": G.value.style.star.activeColor
|
|
217
217
|
}, null, 8, le)], 8, se)]), g("polygon", {
|
|
218
|
-
points: w(
|
|
218
|
+
points: w(n)({
|
|
219
219
|
plot: {
|
|
220
220
|
x: 50,
|
|
221
221
|
y: 50
|
|
@@ -223,18 +223,18 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
223
223
|
radius: 30,
|
|
224
224
|
apexes: G.value.style.star.apexes
|
|
225
225
|
}),
|
|
226
|
-
fill: isNaN(V.value) ? G.value.style.star.inactiveColor : Z(
|
|
227
|
-
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : V.value ? Z(
|
|
226
|
+
fill: isNaN(V.value) ? G.value.style.star.inactiveColor : Z(i),
|
|
227
|
+
stroke: G.value.style.star.borderColor ? G.value.style.star.borderColor : V.value ? Z(i) : G.value.style.star.inactiveColor,
|
|
228
228
|
"stroke-width": G.value.style.star.borderWidth,
|
|
229
229
|
"stroke-linecap": "round",
|
|
230
230
|
"stroke-linejoin": "round"
|
|
231
231
|
}, null, 8, ue)], 8, oe)), J.value ? (b(), h("img", {
|
|
232
232
|
key: 2,
|
|
233
233
|
src: G.value.style.image.src,
|
|
234
|
-
alt: `${G.value.style.image.alt} ${
|
|
234
|
+
alt: `${G.value.style.image.alt} ${i}`,
|
|
235
235
|
height: G.value.style.itemSize,
|
|
236
236
|
width: G.value.style.itemSize,
|
|
237
|
-
id: `active_${z.value}_${
|
|
237
|
+
id: `active_${z.value}_${i}`,
|
|
238
238
|
class: "vue-ui-rating-unit",
|
|
239
239
|
style: v(`position:absolute;top:0;left:0;clip:rect(0px,${Q(a, !0) * G.value.style.itemSize}px,${G.value.style.itemSize}px,0px`)
|
|
240
240
|
}, null, 12, de)) : (b(), h("svg", {
|
|
@@ -243,7 +243,7 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
243
243
|
viewBox: `0 0 ${Q(a)} 100`,
|
|
244
244
|
height: G.value.style.itemSize,
|
|
245
245
|
class: "vue-ui-rating-unit",
|
|
246
|
-
id: `active_${z.value}_${
|
|
246
|
+
id: `active_${z.value}_${i}`,
|
|
247
247
|
style: {
|
|
248
248
|
position: "absolute",
|
|
249
249
|
top: "0",
|
|
@@ -258,12 +258,12 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
258
258
|
id: `star_gradient_over_${z.value}`
|
|
259
259
|
}, [g("stop", {
|
|
260
260
|
offset: "0%",
|
|
261
|
-
"stop-color": `${w(
|
|
261
|
+
"stop-color": `${w(r)(G.value.style.star.activeColor, .05)}`
|
|
262
262
|
}, null, 8, j), g("stop", {
|
|
263
263
|
offset: "100%",
|
|
264
264
|
"stop-color": G.value.style.star.activeColor
|
|
265
265
|
}, null, 8, M)], 8, A)]), g("polygon", {
|
|
266
|
-
points: w(
|
|
266
|
+
points: w(n)({
|
|
267
267
|
plot: {
|
|
268
268
|
x: 50,
|
|
269
269
|
y: 50
|
|
@@ -288,13 +288,13 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
288
288
|
width: 100,
|
|
289
289
|
height: 100,
|
|
290
290
|
fill: "transparent",
|
|
291
|
-
onClick: (e) => $(
|
|
292
|
-
onMouseenter: (e) => V.value =
|
|
293
|
-
onMouseleave:
|
|
294
|
-
onFocus: (e) => H.value =
|
|
295
|
-
onBlur:
|
|
291
|
+
onClick: (e) => $(i),
|
|
292
|
+
onMouseenter: (e) => V.value = i,
|
|
293
|
+
onMouseleave: t[0] ||= (e) => V.value = void 0,
|
|
294
|
+
onFocus: (e) => H.value = i,
|
|
295
|
+
onBlur: t[1] ||= (e) => H.value = void 0,
|
|
296
296
|
tabindex: "0",
|
|
297
|
-
onKeyup: re((e) => $(
|
|
297
|
+
onKeyup: re((e) => $(i), ["enter"])
|
|
298
298
|
}, null, 40, F)), Y.value ? (b(), h("rect", {
|
|
299
299
|
key: 1,
|
|
300
300
|
class: "vue-ui-rating-mouse-trap",
|
|
@@ -303,19 +303,19 @@ var T = /* @__PURE__ */ e({ default: () => L }), ie = {
|
|
|
303
303
|
width: 100,
|
|
304
304
|
height: 100,
|
|
305
305
|
fill: "transparent",
|
|
306
|
-
onMouseenter: (e) => V.value =
|
|
307
|
-
onMouseleave:
|
|
308
|
-
onFocus: (e) => H.value =
|
|
309
|
-
onBlur:
|
|
306
|
+
onMouseenter: (e) => V.value = i,
|
|
307
|
+
onMouseleave: t[2] ||= (e) => V.value = void 0,
|
|
308
|
+
onFocus: (e) => H.value = i,
|
|
309
|
+
onBlur: t[3] ||= (e) => H.value = void 0
|
|
310
310
|
}, null, 40, I)) : m("", !0)], 12, P)),
|
|
311
311
|
G.value.style.tooltip.show && he.value && Y.value ? (b(), h("div", {
|
|
312
312
|
key: 2,
|
|
313
313
|
class: "vue-ui-rating-tooltip",
|
|
314
|
-
style: v(`border:1px solid ${G.value.style.tooltip.borderColor};position:absolute;top:${-48 + G.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${G.value.style.tooltip.backgroundColor};display:${V.value ===
|
|
314
|
+
style: v(`border:1px solid ${G.value.style.tooltip.borderColor};position:absolute;top:${-48 + G.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${G.value.style.tooltip.backgroundColor};display:${V.value === i ? "block" : "none"};padding:2px 12px;border-radius:${G.value.style.tooltip.borderRadius}px;box-shadow:${G.value.style.tooltip.boxShadow}`)
|
|
315
315
|
}, [g("div", { style: v(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${G.value.style.tooltip.color}`) }, [
|
|
316
|
-
g("span", { style: v(`font-size:${G.value.style.tooltip.fontSize}px`) }, C(
|
|
317
|
-
g("span", { style: v(`font-weight:${G.value.style.tooltip.bold ? "bold" : "normal"};font-size:${G.value.style.tooltip.fontSize}px`) }, C(w(o)(G.value.style.tooltip.formatter, R.dataset.rating[
|
|
318
|
-
v: R.dataset.rating[
|
|
316
|
+
g("span", { style: v(`font-size:${G.value.style.tooltip.fontSize}px`) }, C(i) + ":", 5),
|
|
317
|
+
g("span", { style: v(`font-weight:${G.value.style.tooltip.bold ? "bold" : "normal"};font-size:${G.value.style.tooltip.fontSize}px`) }, C(w(o)(G.value.style.tooltip.formatter, R.dataset.rating[i], w(s)({
|
|
318
|
+
v: R.dataset.rating[i],
|
|
319
319
|
r: G.value.style.tooltip.roundingValue
|
|
320
320
|
}), G.value)), 5),
|
|
321
321
|
g("div", { style: v(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${G.value.style.tooltip.borderColor}`) }, " ▼ ", 4)
|