vue-data-ui 2.6.19 → 2.6.21
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 +8 -0
- package/dist/{Arrow-QMACp9z-.cjs → Arrow-C1pcd-am.cjs} +1 -1
- package/dist/{Arrow-DTtLZwne.js → Arrow-DQaZQgi6.js} +1 -1
- package/dist/{BaseIcon-BpRuwiFD.cjs → BaseIcon-BQwivF_K.cjs} +1 -1
- package/dist/{BaseIcon-nz-vbP7I.js → BaseIcon-DH34CAFx.js} +1 -1
- package/dist/{DataTable-Dr-djTUz.cjs → DataTable-D5572vAU.cjs} +1 -1
- package/dist/{DataTable-pNLWbeCL.js → DataTable-DfMqgTjL.js} +2 -2
- package/dist/{Legend-BHbX2C8f.cjs → Legend-CoREnR30.cjs} +1 -1
- package/dist/{Legend-s9DRKvJo.js → Legend-PL8rU0J1.js} +2 -2
- package/dist/{PackageVersion-hltZM-fb.js → PackageVersion-1Y7SXTrk.js} +1 -1
- package/dist/{PackageVersion-DsoqDgVf.cjs → PackageVersion-JsuXjgR_.cjs} +1 -1
- package/dist/PenAndPaper-7lGhxIH8.cjs +1 -0
- package/dist/{PenAndPaper-qmkn1GhB.js → PenAndPaper-BYhUvcy4.js} +20 -16
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-z17A_S1M.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-AmNwJZI7.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-lH7bkq1z.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-NplvneD1.cjs} +1 -1
- package/dist/{Shape-YhMDtuHk.cjs → Shape-HtDeeGqp.cjs} +1 -1
- package/dist/{Shape-C3y6rj0O.js → Shape-Ov27sl2L.js} +1 -1
- package/dist/{Slicer-BIW17-XH.js → Slicer-6F4tHrZR.js} +3 -3
- package/dist/{Slicer-BA8XF-Ak.cjs → Slicer-COXIFuZ-.cjs} +1 -1
- package/dist/{Title-dsg3PqUg.js → Title-1PWD04Gh.js} +1 -1
- package/dist/{Title-DWqgN4Kv.cjs → Title-Pgt1Ixvo.cjs} +1 -1
- package/dist/{Tooltip-DRFQIslg.js → Tooltip-BTO5NGkn.js} +1 -1
- package/dist/{Tooltip-B6T_qzJD.cjs → Tooltip-te_h24w6.cjs} +1 -1
- package/dist/{index-3OrObUP-.cjs → index-DM-Bs-Ua.cjs} +1 -1
- package/dist/{index-DvAaY6OP.js → index-DUnEDLbc.js} +1 -1
- package/dist/index.es-DvaaoatM.cjs +18 -0
- package/dist/index.es-RWt7DWPC.js +6645 -0
- package/dist/{jspdf.es.min-C5v1xtPn.cjs → jspdf.es.min-Rw70uifz.cjs} +23 -23
- package/dist/{jspdf.es.min-DKXYalZb.js → jspdf.es.min-eTA26cmm.js} +476 -470
- package/dist/{pdf-CHXlEvWj.cjs → pdf-DSkQT5iH.cjs} +1 -1
- package/dist/{pdf-70oZh5Jp.js → pdf-DVWl3Adn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CGzX7c5Q.js → useNestedProp-CEMeoM-f.js} +1 -1
- package/dist/{useNestedProp-B53Yi1Rk.cjs → useNestedProp-CYy5g-mh.cjs} +1 -1
- package/dist/usePrinter-DbpIk44f.cjs +1 -0
- package/dist/{usePrinter-D_2jA4x8.js → usePrinter-Undaynpo.js} +73 -71
- package/dist/useResponsive-N8jl0-aC.cjs +1 -0
- package/dist/{useResponsive-BWapHhVH.js → useResponsive-vZgZwV-S.js} +65 -64
- package/dist/{vue-data-ui-CTjgYwlW.cjs → vue-data-ui-BapofDyJ.cjs} +1 -1
- package/dist/{vue-data-ui-DMl9rAwQ.js → vue-data-ui-DnaIYz0z.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBVRoMwv.js → vue-ui-3d-bar-DLYaW0-y.js} +105 -98
- package/dist/{vue-ui-3d-bar-OwVsZokU.cjs → vue-ui-3d-bar-DansBM76.cjs} +2 -2
- package/dist/{vue-ui-accordion-LbUarYuf.js → vue-ui-accordion-C8Couc_G.js} +3 -3
- package/dist/{vue-ui-accordion-BmScSwW2.cjs → vue-ui-accordion-ZIsT4At8.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DQ5dL4yb.cjs → vue-ui-age-pyramid-BSXnW9GF.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-rmfEfmj7.js → vue-ui-age-pyramid-BdruKMmo.js} +76 -69
- package/dist/{vue-ui-annotator-nS_RSspz.cjs → vue-ui-annotator-B7Go0M7W.cjs} +1 -1
- package/dist/{vue-ui-annotator-FlMkU7Kj.js → vue-ui-annotator-DVfdPMa7.js} +2 -2
- package/dist/{vue-ui-bullet-esfPgi-9.js → vue-ui-bullet-CkCJgmoJ.js} +145 -138
- package/dist/{vue-ui-bullet-BGTTcXBJ.cjs → vue-ui-bullet-N9ud2cQ7.cjs} +4 -4
- package/dist/{vue-ui-candlestick-RHrlnUqs.js → vue-ui-candlestick-C9B13qeU.js} +116 -109
- package/dist/{vue-ui-candlestick-BUEGFHg_.cjs → vue-ui-candlestick-DPIs9tEW.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-6uP-Kk9U.js → vue-ui-carousel-table-BLo52Rqu.js} +130 -123
- package/dist/{vue-ui-carousel-table-DCcPnWRU.cjs → vue-ui-carousel-table-DgcY4j9y.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B7Ep4Lho.cjs → vue-ui-chestnut-C9Zw_bey.cjs} +2 -2
- package/dist/{vue-ui-chestnut-Dh4y5s_v.js → vue-ui-chestnut-D8oXG8Tf.js} +131 -124
- package/dist/vue-ui-circle-pack-CrEdkNM7.js +648 -0
- package/dist/vue-ui-circle-pack-DYW-e2E5.cjs +1 -0
- package/dist/{vue-ui-cursor-D-IzE_jd.cjs → vue-ui-cursor-CtSijliN.cjs} +1 -1
- package/dist/{vue-ui-cursor-C21WgpGu.js → vue-ui-cursor-DkW4pJcP.js} +2 -2
- package/dist/{vue-ui-dashboard-T0LqYCqM.js → vue-ui-dashboard-5_Du0Yr2.js} +3 -3
- package/dist/{vue-ui-dashboard-DQ_wht4B.cjs → vue-ui-dashboard-Dh5vRbdI.cjs} +1 -1
- package/dist/{vue-ui-digits-CwV6mhHZ.cjs → vue-ui-digits-DEmYk7sS.cjs} +1 -1
- package/dist/{vue-ui-digits-CLFrlUIW.js → vue-ui-digits-DhA1bHdz.js} +2 -2
- package/dist/{vue-ui-donut-dVplEheX.js → vue-ui-donut-B-G7gRdV.js} +118 -111
- package/dist/{vue-ui-donut-b_UXDeKJ.cjs → vue-ui-donut-BrZxaijU.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Bl50EWBG.js → vue-ui-donut-evolution-B4almlBq.js} +164 -157
- package/dist/{vue-ui-donut-evolution-VxNtQWGH.cjs → vue-ui-donut-evolution-CTbXi7wk.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B-7s7x7a.cjs → vue-ui-dumbbell-CAIlnhsM.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-Bp685TTG.js → vue-ui-dumbbell-kZGa__IU.js} +75 -68
- package/dist/{vue-ui-flow-CHbfoU97.js → vue-ui-flow-Bc31ZN1W.js} +177 -170
- package/dist/{vue-ui-flow-DJqOVlD7.cjs → vue-ui-flow-D2UNbwlp.cjs} +1 -1
- package/dist/{vue-ui-funnel-B77giO54.cjs → vue-ui-funnel-DfCz1GNN.cjs} +1 -1
- package/dist/{vue-ui-funnel-Bhv0XRzJ.js → vue-ui-funnel-V7hu2Iib.js} +129 -122
- package/dist/{vue-ui-galaxy-Dt4dx9bS.cjs → vue-ui-galaxy-CNBC7IbU.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DMA8AX8h.js → vue-ui-galaxy-DLCcy7Kq.js} +77 -70
- package/dist/{vue-ui-gauge-CBlurlZk.js → vue-ui-gauge-CZMHtEcr.js} +153 -146
- package/dist/{vue-ui-gauge-Bh3iSbSd.cjs → vue-ui-gauge-D8IglqIF.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CHhJKge-.js → vue-ui-gizmo-BuAVBMBp.js} +3 -3
- package/dist/{vue-ui-gizmo-BMrnNfYR.cjs → vue-ui-gizmo-fyC414Iv.cjs} +1 -1
- package/dist/vue-ui-heatmap-CDOry_F1.cjs +1 -0
- package/dist/{vue-ui-heatmap-CB4852rp.js → vue-ui-heatmap-hUfFzGck.js} +139 -132
- package/dist/{vue-ui-history-plot-AwmdEhYL.js → vue-ui-history-plot-C79l8rPm.js} +122 -115
- package/dist/{vue-ui-history-plot-BG7r0ZF7.cjs → vue-ui-history-plot-CIXgvWpk.cjs} +1 -1
- package/dist/{vue-ui-kpi-DcxE4Vv7.js → vue-ui-kpi-C3tHthXH.js} +3 -3
- package/dist/{vue-ui-kpi-BYCMEzBt.cjs → vue-ui-kpi-yiWxNLJ-.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CdDRH8Rb.js → vue-ui-mini-loader-1p1jAKx_.js} +2 -2
- package/dist/{vue-ui-mini-loader-DOqUfxRJ.cjs → vue-ui-mini-loader-26yCYjxn.cjs} +1 -1
- package/dist/{vue-ui-molecule-C-Z0Ywq1.cjs → vue-ui-molecule-Bw0dYLfu.cjs} +1 -1
- package/dist/{vue-ui-molecule-BskBKGbQ.js → vue-ui-molecule-COQ-yrBr.js} +249 -242
- package/dist/{vue-ui-mood-radar-BAPZ1LyF.js → vue-ui-mood-radar-CwfGiQ43.js} +111 -104
- package/dist/{vue-ui-mood-radar-BIrQKfVf.cjs → vue-ui-mood-radar-Cyde9hnR.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BB2Kgb5F.js → vue-ui-nested-donuts-BVaW7w1U.js} +117 -110
- package/dist/{vue-ui-nested-donuts-7YjtP-jC.cjs → vue-ui-nested-donuts-Y07lLGRa.cjs} +2 -2
- package/dist/{vue-ui-onion-BWb18zcN.cjs → vue-ui-onion-DkXss-B_.cjs} +2 -2
- package/dist/{vue-ui-onion-BjMfXAZK.js → vue-ui-onion-h6DP9kOi.js} +143 -136
- package/dist/{vue-ui-parallel-coordinate-plot-D6Vs-5Vh.cjs → vue-ui-parallel-coordinate-plot-CkI21cq2.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-ryqdfkHL.js → vue-ui-parallel-coordinate-plot-O5cwKbzH.js} +113 -106
- package/dist/{vue-ui-quadrant-Cr4ypLzT.js → vue-ui-quadrant-CfywvXnV.js} +112 -105
- package/dist/{vue-ui-quadrant-BmsHBpKo.cjs → vue-ui-quadrant-F6w-QJE_.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-45IEXHb0.cjs → vue-ui-quick-chart-BeMHD_Kz.cjs} +3 -3
- package/dist/{vue-ui-quick-chart-C9dIHRYi.js → vue-ui-quick-chart-C1AwFGSr.js} +195 -188
- package/dist/{vue-ui-radar-Nr5JmVlk.cjs → vue-ui-radar-BejYh3DW.cjs} +1 -1
- package/dist/{vue-ui-radar-T6xdl9ic.js → vue-ui-radar-DDKXLi5o.js} +101 -94
- package/dist/{vue-ui-rating-C5AaiBqZ.js → vue-ui-rating-BrGbM0Op.js} +2 -2
- package/dist/{vue-ui-rating-CFIhZlG-.cjs → vue-ui-rating-C40ktvn7.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Cw-DcsRY.cjs → vue-ui-relation-circle-C4qT13SI.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BktS594K.js → vue-ui-relation-circle-DrtdiTMX.js} +103 -96
- package/dist/{vue-ui-rings-_evAK3j7.js → vue-ui-rings-C4IdhEUE.js} +169 -162
- package/dist/{vue-ui-rings-2j5fsO_o.cjs → vue-ui-rings-Cd8WyeDZ.cjs} +2 -2
- package/dist/{vue-ui-scatter-C5ePnByD.js → vue-ui-scatter-BS8sgyMi.js} +85 -78
- package/dist/{vue-ui-scatter-W1_ChsfO.cjs → vue-ui-scatter-MmvIeu4D.cjs} +1 -1
- package/dist/{vue-ui-screenshot-B6ASKPJf.cjs → vue-ui-screenshot-BB51-eRL.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DM-PQM2g.js → vue-ui-screenshot-tnFPT1vi.js} +1 -1
- package/dist/{vue-ui-skeleton-WoggMoff.js → vue-ui-skeleton-DieABKlo.js} +3 -3
- package/dist/{vue-ui-skeleton-DaowWOKJ.cjs → vue-ui-skeleton-DlC-U64G.cjs} +1 -1
- package/dist/{vue-ui-smiley-gulDZ8i7.js → vue-ui-smiley-C32wVXgu.js} +2 -2
- package/dist/{vue-ui-smiley-hlaNlq2y.cjs → vue-ui-smiley-DSxKw3ud.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-LbApLsdt.js → vue-ui-spark-trend-B_x1dX38.js} +5 -5
- package/dist/{vue-ui-spark-trend-BcrMflk6.cjs → vue-ui-spark-trend-vexkCCy9.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BdfaDBkw.cjs → vue-ui-sparkbar-CsOEiHDQ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CnL6FbaE.js → vue-ui-sparkbar-ZSbB6Llo.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CHv1q1cO.cjs → vue-ui-sparkgauge-Bdh7X--h.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Du7PRJyB.js → vue-ui-sparkgauge-Cf3bDk98.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CyEyZvbD.js → vue-ui-sparkhistogram-CrZy1xf0.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CBqKXnvX.cjs → vue-ui-sparkhistogram-fALwb3uK.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DRHE0kK8.cjs → vue-ui-sparkline-D4WDvcZR.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BMNXPHhB.js → vue-ui-sparkline-DTW_lXgp.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-D6wuDd8h.cjs → vue-ui-sparkstackbar-DBPLhUoi.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D33lwh8d.js → vue-ui-sparkstackbar-Db2Ndf0k.js} +5 -5
- package/dist/{vue-ui-stackbar-CnxGAca-.cjs → vue-ui-stackbar-B3eaSIoO.cjs} +3 -3
- package/dist/{vue-ui-stackbar-C5yoqQAY.js → vue-ui-stackbar-DbF3ZJTD.js} +211 -204
- package/dist/{vue-ui-strip-plot-Cg1B7i3X.js → vue-ui-strip-plot-CpkH2Gfd.js} +83 -76
- package/dist/{vue-ui-strip-plot-DDTTc2jA.cjs → vue-ui-strip-plot-DiCVf5u-.cjs} +1 -1
- package/dist/{vue-ui-table-BGfZl0wF.js → vue-ui-table-D6zWwikN.js} +1 -1
- package/dist/{vue-ui-table-TV5Coa0A.cjs → vue-ui-table-K13fqkDI.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Jjx8L8St.cjs → vue-ui-table-heatmap-BgenCoVa.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D0j2OFv0.js → vue-ui-table-heatmap-EAevgnzN.js} +63 -56
- package/dist/{vue-ui-table-sparkline-D0_FhhN5.cjs → vue-ui-table-sparkline-3JMqr89P.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C2sUG_7S.js → vue-ui-table-sparkline-s_oWe6MG.js} +90 -83
- package/dist/{vue-ui-thermometer-Bw35Fw8v.cjs → vue-ui-thermometer--mYRly4x.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CdLZ8te2.js → vue-ui-thermometer-Bo3l_0Kf.js} +113 -106
- package/dist/{vue-ui-timer-1-kXQ5_q.js → vue-ui-timer-C9EuUurN.js} +6 -6
- package/dist/{vue-ui-timer-Deg5YPx0.cjs → vue-ui-timer-Djh-ZDNe.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-uSgVLSbo.cjs → vue-ui-tiremarks-CKv_KApZ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BHTSw0fa.js → vue-ui-tiremarks-DgdpEDJ1.js} +76 -69
- package/dist/{vue-ui-treemap-7W_lvbV0.cjs → vue-ui-treemap-AkNJjd2c.cjs} +1 -1
- package/dist/{vue-ui-treemap-C2u5sEzh.js → vue-ui-treemap-D13sISL0.js} +144 -137
- package/dist/{vue-ui-vertical-bar-BlzOi8LC.cjs → vue-ui-vertical-bar-CQlvpdJl.cjs} +3 -3
- package/dist/{vue-ui-vertical-bar-U3LQF-NS.js → vue-ui-vertical-bar-DfegzHj4.js} +120 -113
- package/dist/{vue-ui-waffle-DUXvINoC.cjs → vue-ui-waffle-Dve1LWVt.cjs} +1 -1
- package/dist/{vue-ui-waffle-qAheWwiI.js → vue-ui-waffle-f72Lq8_D.js} +78 -71
- package/dist/{vue-ui-wheel-DIoKCgCS.cjs → vue-ui-wheel-BG1GcVvN.cjs} +1 -1
- package/dist/{vue-ui-wheel-CuLQchDK.js → vue-ui-wheel-BxefMdit.js} +105 -98
- package/dist/{vue-ui-word-cloud-B-nFH7hZ.js → vue-ui-word-cloud-BYY4K2G4.js} +123 -116
- package/dist/{vue-ui-word-cloud-BSvmRQ5n.cjs → vue-ui-word-cloud-CRRR7H7h.cjs} +1 -1
- package/dist/{vue-ui-xy-DXMoSF2C.js → vue-ui-xy-BS0_aTIH.js} +73 -66
- package/dist/{vue-ui-xy-BGsFH9wE.cjs → vue-ui-xy-DGYZFgdd.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-CTymfSH6.js → vue-ui-xy-canvas-Bl2v7Z3U.js} +200 -193
- package/dist/{vue-ui-xy-canvas-i13v43UX.cjs → vue-ui-xy-canvas-R_pPaj0X.cjs} +2 -2
- package/package.json +2 -7
- package/dist/PenAndPaper-Dbw8Fph9.cjs +0 -1
- package/dist/index-Dwoe0gcF.cjs +0 -15
- package/dist/index-Fl-W8YeZ.js +0 -3971
- package/dist/usePrinter-bPnqqKha.cjs +0 -1
- package/dist/useResponsive-YQYQrAZ_.cjs +0 -1
- package/dist/vue-ui-circle-pack-Ce1oEvgz.cjs +0 -1
- package/dist/vue-ui-circle-pack-CrgnQ_jY.js +0 -663
- package/dist/vue-ui-heatmap-DvItO4xs.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { computed as p, ref as i, watch as He, onMounted as Ye, onBeforeUnmount as Qe, createElementBlock as n, openBlock as r, unref as c, normalizeStyle as W, normalizeClass as
|
|
2
|
-
import { u as Ze, c as et, t as tt, p as x, a as at, o as ot, e as
|
|
3
|
-
import { t as vt, u as ht } from "./useResponsive-
|
|
4
|
-
import { _ as pt } from "./Title-
|
|
5
|
-
import { u as gt, U as ft } from "./usePrinter-
|
|
6
|
-
import { _ as yt } from "./Tooltip-
|
|
7
|
-
import mt from "./vue-ui-sparkbar-
|
|
8
|
-
import { L as bt } from "./Legend-
|
|
9
|
-
import { D as kt } from "./DataTable-
|
|
10
|
-
import Ct from "./vue-ui-skeleton-
|
|
11
|
-
import wt from "./vue-ui-accordion-
|
|
12
|
-
import { u as Ie } from "./useNestedProp-
|
|
13
|
-
import { _ as
|
|
14
|
-
import { P as
|
|
1
|
+
import { computed as p, ref as i, watch as He, onMounted as Ye, onBeforeUnmount as Qe, createElementBlock as n, openBlock as r, unref as c, normalizeStyle as W, normalizeClass as M, createBlock as $, createCommentVNode as d, createElementVNode as _, createVNode as ee, createSlots as Je, withCtx as y, renderSlot as f, normalizeProps as N, guardReactiveProps as S, Fragment as T, renderList as P, toDisplayString as U, createTextVNode as xe, nextTick as Ke } from "vue";
|
|
2
|
+
import { u as Ze, c as et, t as tt, p as x, a as at, o as ot, e as I, b as lt, g as Ae, d as Oe, P as Fe, v as rt, i as Ne, f as V, X as st, s as te, w as nt, Q as Se, q as ut, r as it, x as ct, y as dt } from "./index-DUnEDLbc.js";
|
|
3
|
+
import { t as vt, u as ht } from "./useResponsive-vZgZwV-S.js";
|
|
4
|
+
import { _ as pt } from "./Title-1PWD04Gh.js";
|
|
5
|
+
import { u as gt, U as ft } from "./usePrinter-Undaynpo.js";
|
|
6
|
+
import { _ as yt } from "./Tooltip-BTO5NGkn.js";
|
|
7
|
+
import mt from "./vue-ui-sparkbar-ZSbB6Llo.js";
|
|
8
|
+
import { L as bt } from "./Legend-PL8rU0J1.js";
|
|
9
|
+
import { D as kt } from "./DataTable-DfMqgTjL.js";
|
|
10
|
+
import Ct from "./vue-ui-skeleton-DieABKlo.js";
|
|
11
|
+
import wt from "./vue-ui-accordion-C8Couc_G.js";
|
|
12
|
+
import { u as Ie } from "./useNestedProp-CEMeoM-f.js";
|
|
13
|
+
import { _ as $t } from "./PackageVersion-1Y7SXTrk.js";
|
|
14
|
+
import { P as _t } from "./PenAndPaper-BYhUvcy4.js";
|
|
15
15
|
import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { u as Pt } from "./useChartAccessibility-BWojgys7.js";
|
|
17
17
|
import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -39,7 +39,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["selectLegend"],
|
|
41
41
|
setup(Re, { expose: Le, emit: ze }) {
|
|
42
|
-
const { vue_ui_radar: Me } = Ze(), g = Re,
|
|
42
|
+
const { vue_ui_radar: Me } = Ze(), g = Re, R = p(() => !!g.dataset && Object.keys(g.dataset).length), w = i(et()), Ue = i(null), X = i(!1), j = i(""), ae = i(0), L = i(null), oe = i(null), le = i(null), re = i(null), se = i(null), ne = i(0), ue = i(0), ie = i(0), e = p({
|
|
43
43
|
get: () => he(),
|
|
44
44
|
set: (t) => t
|
|
45
45
|
}), { userOptionsVisible: q, setUserOptionsVisibility: ce, keepUserOptionState: de } = Tt({ config: e.value }), { svgRef: ve } = Pt({ config: e.value.style.chart.title });
|
|
@@ -61,13 +61,13 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
61
61
|
}, { deep: !0 });
|
|
62
62
|
const E = i(null);
|
|
63
63
|
function pe() {
|
|
64
|
-
if (ot(g.dataset) &&
|
|
64
|
+
if (ot(g.dataset) && I({
|
|
65
65
|
componentName: "VueUiRadar",
|
|
66
66
|
type: "dataset"
|
|
67
67
|
}), e.value.responsive) {
|
|
68
68
|
const t = vt(() => {
|
|
69
69
|
const { width: a, height: o } = ht({
|
|
70
|
-
chart:
|
|
70
|
+
chart: L.value,
|
|
71
71
|
title: e.value.style.chart.title.text ? oe.value : null,
|
|
72
72
|
legend: e.value.style.chart.legend.show ? le.value : null,
|
|
73
73
|
source: re.value,
|
|
@@ -77,7 +77,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
77
77
|
u.value.width = a, u.value.height = o;
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
|
-
E.value = new ResizeObserver(t), E.value.observe(
|
|
80
|
+
E.value = new ResizeObserver(t), E.value.observe(L.value.parentNode);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
Ye(() => {
|
|
@@ -115,10 +115,10 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
115
115
|
})), u = i({
|
|
116
116
|
height: 312,
|
|
117
117
|
width: 512
|
|
118
|
-
}), Be = ze, v = i([]),
|
|
118
|
+
}), Be = ze, v = i([]), z = i(null), A = i(!1);
|
|
119
119
|
function ke(t) {
|
|
120
|
-
A.value = !0, v.value.includes(t) ? (
|
|
121
|
-
A.value = !1,
|
|
120
|
+
A.value = !0, v.value.includes(t) ? (z.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
|
|
121
|
+
A.value = !1, z.value = null;
|
|
122
122
|
}, 500)) : (v.value.push(t), setTimeout(() => {
|
|
123
123
|
A.value = !1;
|
|
124
124
|
}, 500)), Be("selectLegend", O.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
|
|
@@ -134,11 +134,11 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
134
134
|
proportion: t.totalProportion
|
|
135
135
|
}));
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const m = p(() => [null, void 0].includes(g.dataset.categories) ? (I({
|
|
138
138
|
componentName: "VueUiRadar",
|
|
139
139
|
type: "datasetAttribute",
|
|
140
140
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
|
|
141
|
-
}), []) : (g.dataset.categories.length === 0 ?
|
|
141
|
+
}), []) : (g.dataset.categories.length === 0 ? I({
|
|
142
142
|
componentName: "VueUiRadar",
|
|
143
143
|
type: "datasetAttributeEmpty",
|
|
144
144
|
property: "categories"
|
|
@@ -147,14 +147,14 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
147
147
|
datasetObject: t,
|
|
148
148
|
requiredAttributes: ["name"]
|
|
149
149
|
}).forEach((o) => {
|
|
150
|
-
|
|
150
|
+
I({
|
|
151
151
|
componentName: "VueUiRadar",
|
|
152
152
|
type: "datasetAttribute",
|
|
153
153
|
property: `category.${o} at index ${a}`,
|
|
154
154
|
index: a
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
|
-
}), [null, void 0].includes(g.dataset.series) ?
|
|
157
|
+
}), [null, void 0].includes(g.dataset.series) ? I({
|
|
158
158
|
componentName: "VueUiRadar",
|
|
159
159
|
type: "datasetAttribute",
|
|
160
160
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
|
|
@@ -163,7 +163,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
163
163
|
datasetObject: t,
|
|
164
164
|
requiredAttributes: ["name", "values", "target"]
|
|
165
165
|
}).forEach((o) => {
|
|
166
|
-
|
|
166
|
+
I({
|
|
167
167
|
componentName: "VueUiRadar",
|
|
168
168
|
type: "datasetSerieAttribute",
|
|
169
169
|
key: "series",
|
|
@@ -177,12 +177,12 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
177
177
|
color: Oe(t.color) || be.value[a] || x[a] || x[a % x.length],
|
|
178
178
|
prefix: t.prefix ?? "",
|
|
179
179
|
suffix: t.suffix ?? ""
|
|
180
|
-
})))), k = p(() =>
|
|
180
|
+
})))), k = p(() => R.value ? g.dataset.series.map((t, a) => ({
|
|
181
181
|
...t,
|
|
182
182
|
color: Oe(t.color) || be.value[a] || x[a] || x[a % x.length],
|
|
183
183
|
serieId: `radar_serie_${w.value}_${a}`,
|
|
184
184
|
formatter: t.formatter || null
|
|
185
|
-
})) : []), Ce = p(() => Math.max(...k.value.flatMap((t) => t.values))), we = p(() => k.value.length), H = p(() => Math.min(u.value.width, u.value.height) / 3),
|
|
185
|
+
})) : []), Ce = p(() => Math.max(...k.value.flatMap((t) => t.values))), we = p(() => k.value.length), H = p(() => Math.min(u.value.width, u.value.height) / 3), $e = p(() => Fe({
|
|
186
186
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
187
187
|
radius: H.value,
|
|
188
188
|
sides: we.value,
|
|
@@ -192,7 +192,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
192
192
|
for (let a = 0; a < H.value; a += H.value / e.value.style.chart.layout.grid.graduations)
|
|
193
193
|
t.push(a);
|
|
194
194
|
return t;
|
|
195
|
-
}), C = p(() =>
|
|
195
|
+
}), C = p(() => $e.value.coordinates.map((t, a) => {
|
|
196
196
|
const o = k.value[a].values.map((l) => We({
|
|
197
197
|
centerX: u.value.width / 2,
|
|
198
198
|
centerY: u.value.height / 2,
|
|
@@ -218,7 +218,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
218
218
|
}
|
|
219
219
|
const O = p(() => {
|
|
220
220
|
const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Ce.value)));
|
|
221
|
-
return
|
|
221
|
+
return m.value.map((a, o) => ({
|
|
222
222
|
...a,
|
|
223
223
|
totalProportion: rt(t.map((l) => l[o]).reduce((l, s) => l + s, 0) / k.value.length),
|
|
224
224
|
shape: "circle",
|
|
@@ -253,7 +253,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
253
253
|
...l.values.map((s, h) => `${Ne(
|
|
254
254
|
l.formatter,
|
|
255
255
|
s,
|
|
256
|
-
V({ p:
|
|
256
|
+
V({ p: m.value[h].prefix, v: s, s: m.value[h].suffix, r: e.value.table.td.roundingValue })
|
|
257
257
|
)} (${isNaN(s / l.target) ? "" : V({
|
|
258
258
|
v: s / l.target * 100,
|
|
259
259
|
s: "%",
|
|
@@ -281,7 +281,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
281
281
|
datapoint: t,
|
|
282
282
|
seriesIndex: a,
|
|
283
283
|
series: {
|
|
284
|
-
categories:
|
|
284
|
+
categories: m.value,
|
|
285
285
|
datapoints: k.value,
|
|
286
286
|
radar: C.value
|
|
287
287
|
},
|
|
@@ -291,31 +291,31 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
291
291
|
if (ct(l) && dt(() => l({
|
|
292
292
|
seriesIndex: a,
|
|
293
293
|
datapoint: t,
|
|
294
|
-
series: { categories:
|
|
294
|
+
series: { categories: m.value, datapoints: k.value, radar: C.value },
|
|
295
295
|
config: e.value
|
|
296
296
|
})))
|
|
297
297
|
j.value = l({
|
|
298
298
|
seriesIndex: a,
|
|
299
299
|
datapoint: t,
|
|
300
|
-
series: { categories:
|
|
300
|
+
series: { categories: m.value, datapoints: k.value, radar: C.value },
|
|
301
301
|
config: e.value
|
|
302
302
|
});
|
|
303
303
|
else {
|
|
304
304
|
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
|
|
305
305
|
for (let s = 0; s < t.values.length; s += 1)
|
|
306
306
|
v.value.includes(s) || Q.value.push({
|
|
307
|
-
name:
|
|
307
|
+
name: m.value[s].name,
|
|
308
308
|
value: t.values[s] / t.target * 100,
|
|
309
|
-
color:
|
|
309
|
+
color: m.value[s].color,
|
|
310
310
|
suffix: "%)",
|
|
311
|
-
prefix: `${V({ p:
|
|
311
|
+
prefix: `${V({ p: m.value[s].prefix ?? "", v: t.values[s], s: m.value[s].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
312
312
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
313
313
|
formatter: t.formatter
|
|
314
314
|
});
|
|
315
315
|
j.value = o;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function _e() {
|
|
319
319
|
Ke(() => {
|
|
320
320
|
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...O.value.flatMap((h) => [[h.name], ["%"]])], o = g.dataset.series.map((h, Yt) => [h.name, h.target, ...h.values.flatMap((Z) => [
|
|
321
321
|
Z,
|
|
@@ -341,21 +341,21 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
341
341
|
return Le({
|
|
342
342
|
getData: De,
|
|
343
343
|
generatePdf: ye,
|
|
344
|
-
generateCsv:
|
|
344
|
+
generateCsv: _e,
|
|
345
345
|
generateImage: me,
|
|
346
346
|
toggleTable: Te,
|
|
347
347
|
toggleTooltip: Pe,
|
|
348
348
|
toggleAnnotator: K
|
|
349
349
|
}), (t, a) => (r(), n("div", {
|
|
350
|
-
class:
|
|
350
|
+
class: M(`vue-ui-radar ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
351
351
|
ref_key: "radarChart",
|
|
352
|
-
ref:
|
|
352
|
+
ref: L,
|
|
353
353
|
id: `vue-ui-radar_${w.value}`,
|
|
354
354
|
style: W(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
355
355
|
onMouseenter: a[3] || (a[3] = () => c(ce)(!0)),
|
|
356
356
|
onMouseleave: a[4] || (a[4] = () => c(ce)(!1))
|
|
357
357
|
}, [
|
|
358
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
358
|
+
e.value.userOptions.buttons.annotator ? (r(), $(_t, {
|
|
359
359
|
key: 0,
|
|
360
360
|
svgRef: c(ve),
|
|
361
361
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -376,7 +376,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
376
376
|
ref: oe,
|
|
377
377
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
378
378
|
}, [
|
|
379
|
-
(r(),
|
|
379
|
+
(r(), $(pt, {
|
|
380
380
|
key: `title_${ne.value}`,
|
|
381
381
|
config: {
|
|
382
382
|
title: {
|
|
@@ -390,7 +390,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
390
390
|
}
|
|
391
391
|
}, null, 8, ["config"]))
|
|
392
392
|
], 512)) : d("", !0),
|
|
393
|
-
e.value.userOptions.show &&
|
|
393
|
+
e.value.userOptions.show && R.value && (c(de) || c(q)) ? (r(), $(ft, {
|
|
394
394
|
ref_key: "details",
|
|
395
395
|
ref: Ue,
|
|
396
396
|
key: `user_options_${ae.value}`,
|
|
@@ -408,13 +408,13 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
408
408
|
isFullscreen: F.value,
|
|
409
409
|
isTooltip: b.value.showTooltip,
|
|
410
410
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
411
|
-
chartElement:
|
|
411
|
+
chartElement: L.value,
|
|
412
412
|
position: e.value.userOptions.position,
|
|
413
413
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
414
414
|
isAnnotation: G.value,
|
|
415
415
|
onToggleFullscreen: qe,
|
|
416
416
|
onGeneratePdf: c(ye),
|
|
417
|
-
onGenerateCsv:
|
|
417
|
+
onGenerateCsv: _e,
|
|
418
418
|
onGenerateImage: c(me),
|
|
419
419
|
onToggleTable: Te,
|
|
420
420
|
onToggleTooltip: Pe,
|
|
@@ -423,66 +423,73 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
423
423
|
visibility: c(de) ? c(q) ? "visible" : "hidden" : "visible"
|
|
424
424
|
})
|
|
425
425
|
}, Je({ _: 2 }, [
|
|
426
|
+
t.$slots.menuIcon ? {
|
|
427
|
+
name: "menuIcon",
|
|
428
|
+
fn: y(({ isOpen: o, color: l }) => [
|
|
429
|
+
f(t.$slots, "menuIcon", N(S({ isOpen: o, color: l })), void 0, !0)
|
|
430
|
+
]),
|
|
431
|
+
key: "0"
|
|
432
|
+
} : void 0,
|
|
426
433
|
t.$slots.optionTooltip ? {
|
|
427
434
|
name: "optionTooltip",
|
|
428
|
-
fn:
|
|
435
|
+
fn: y(() => [
|
|
429
436
|
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
430
437
|
]),
|
|
431
|
-
key: "
|
|
438
|
+
key: "1"
|
|
432
439
|
} : void 0,
|
|
433
440
|
t.$slots.optionPdf ? {
|
|
434
441
|
name: "optionPdf",
|
|
435
|
-
fn:
|
|
442
|
+
fn: y(() => [
|
|
436
443
|
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
437
444
|
]),
|
|
438
|
-
key: "
|
|
445
|
+
key: "2"
|
|
439
446
|
} : void 0,
|
|
440
447
|
t.$slots.optionCsv ? {
|
|
441
448
|
name: "optionCsv",
|
|
442
|
-
fn:
|
|
449
|
+
fn: y(() => [
|
|
443
450
|
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
444
451
|
]),
|
|
445
|
-
key: "
|
|
452
|
+
key: "3"
|
|
446
453
|
} : void 0,
|
|
447
454
|
t.$slots.optionImg ? {
|
|
448
455
|
name: "optionImg",
|
|
449
|
-
fn:
|
|
456
|
+
fn: y(() => [
|
|
450
457
|
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
451
458
|
]),
|
|
452
|
-
key: "
|
|
459
|
+
key: "4"
|
|
453
460
|
} : void 0,
|
|
454
461
|
t.$slots.optionTable ? {
|
|
455
462
|
name: "optionTable",
|
|
456
|
-
fn:
|
|
463
|
+
fn: y(() => [
|
|
457
464
|
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
458
465
|
]),
|
|
459
|
-
key: "
|
|
466
|
+
key: "5"
|
|
460
467
|
} : void 0,
|
|
461
468
|
t.$slots.optionFullscreen ? {
|
|
462
469
|
name: "optionFullscreen",
|
|
463
|
-
fn:
|
|
464
|
-
f(t.$slots, "optionFullscreen",
|
|
470
|
+
fn: y(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
471
|
+
f(t.$slots, "optionFullscreen", N(S({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
465
472
|
]),
|
|
466
|
-
key: "
|
|
473
|
+
key: "6"
|
|
467
474
|
} : void 0,
|
|
468
475
|
t.$slots.optionAnnotator ? {
|
|
469
476
|
name: "optionAnnotator",
|
|
470
|
-
fn:
|
|
471
|
-
f(t.$slots, "optionAnnotator",
|
|
477
|
+
fn: y(({ toggleAnnotator: o, isAnnotator: l }) => [
|
|
478
|
+
f(t.$slots, "optionAnnotator", N(S({ toggleAnnotator: o, isAnnotator: l })), void 0, !0)
|
|
472
479
|
]),
|
|
473
|
-
key: "
|
|
480
|
+
key: "7"
|
|
474
481
|
} : void 0
|
|
475
482
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
476
|
-
|
|
483
|
+
R.value ? (r(), n("svg", {
|
|
477
484
|
key: 4,
|
|
478
485
|
ref_key: "svgRef",
|
|
479
486
|
ref: ve,
|
|
480
487
|
xmlns: c(st),
|
|
481
|
-
class:
|
|
488
|
+
class: M({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
482
489
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
483
490
|
style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
484
491
|
}, [
|
|
485
|
-
ee(
|
|
492
|
+
ee($t),
|
|
486
493
|
t.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
487
494
|
key: 0,
|
|
488
495
|
x: 0,
|
|
@@ -495,8 +502,8 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
495
502
|
}, [
|
|
496
503
|
f(t.$slots, "chart-background", {}, void 0, !0)
|
|
497
504
|
], 8, Ft)) : d("", !0),
|
|
498
|
-
|
|
499
|
-
(r(!0), n(T, null, P(
|
|
505
|
+
_("defs", null, [
|
|
506
|
+
(r(!0), n(T, null, P(m.value, (o, l) => (r(), n("radialGradient", {
|
|
500
507
|
cx: "50%",
|
|
501
508
|
cy: "50%",
|
|
502
509
|
r: "50%",
|
|
@@ -504,11 +511,11 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
504
511
|
fy: "50%",
|
|
505
512
|
id: `radar_gradient_${w.value}_${l}`
|
|
506
513
|
}, [
|
|
507
|
-
|
|
514
|
+
_("stop", {
|
|
508
515
|
offset: "0%",
|
|
509
516
|
"stop-color": c(te)(c(nt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
|
|
510
517
|
}, null, 8, St),
|
|
511
|
-
|
|
518
|
+
_("stop", {
|
|
512
519
|
offset: "100%",
|
|
513
520
|
"stop-color": c(te)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
|
|
514
521
|
}, null, 8, It)
|
|
@@ -537,8 +544,8 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
537
544
|
}, null, 8, Mt))), 256))
|
|
538
545
|
])) : d("", !0)
|
|
539
546
|
])) : d("", !0),
|
|
540
|
-
|
|
541
|
-
d:
|
|
547
|
+
_("path", {
|
|
548
|
+
d: $e.value.path,
|
|
542
549
|
fill: "none",
|
|
543
550
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
544
551
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
@@ -558,15 +565,15 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
558
565
|
})
|
|
559
566
|
}, U(o.name), 41, Et))), 256))
|
|
560
567
|
])) : d("", !0),
|
|
561
|
-
(r(!0), n(T, null, P(
|
|
562
|
-
|
|
568
|
+
(r(!0), n(T, null, P(m.value, (o, l) => (r(), n("g", null, [
|
|
569
|
+
_("g", null, [
|
|
563
570
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), n("polygon", {
|
|
564
571
|
key: 0,
|
|
565
572
|
points: c(Se)(C.value.map((s) => s.plots[l]), !1, !0),
|
|
566
573
|
stroke: e.value.style.chart.backgroundColor,
|
|
567
574
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
568
575
|
fill: "none",
|
|
569
|
-
class:
|
|
576
|
+
class: M({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": A.value && z.value === l && e.value.useCssAnimation })
|
|
570
577
|
}, null, 10, Bt)) : d("", !0),
|
|
571
578
|
e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), n("polygon", {
|
|
572
579
|
key: 1,
|
|
@@ -574,7 +581,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
574
581
|
stroke: o.color,
|
|
575
582
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
576
583
|
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${w.value}_${l})` : c(te)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
|
|
577
|
-
class:
|
|
584
|
+
class: M({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": A.value && z.value === l && e.value.useCssAnimation })
|
|
578
585
|
}, null, 10, Dt)) : d("", !0)
|
|
579
586
|
])
|
|
580
587
|
]))), 256)),
|
|
@@ -583,20 +590,20 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
583
590
|
(r(!0), n(T, null, P(o.plots, (s, h) => (r(), n("circle", {
|
|
584
591
|
cx: s.x,
|
|
585
592
|
cy: s.y,
|
|
586
|
-
fill: v.value.includes(h) ? "transparent" :
|
|
593
|
+
fill: v.value.includes(h) ? "transparent" : m.value[h].color,
|
|
587
594
|
r: D.value !== null && D.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
588
595
|
stroke: v.value.includes(h) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
589
596
|
"stroke-width": 0.5,
|
|
590
|
-
class:
|
|
597
|
+
class: M({ "animated-out": v.value.includes(h) && e.value.useCssAnimation, "animated-in": A.value && z.value === h && e.value.useCssAnimation })
|
|
591
598
|
}, null, 10, Wt))), 256))
|
|
592
599
|
]))), 256))
|
|
593
600
|
])) : d("", !0),
|
|
594
601
|
f(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
595
602
|
], 14, Ot)) : d("", !0),
|
|
596
603
|
t.$slots.watermark ? (r(), n("div", Xt, [
|
|
597
|
-
f(t.$slots, "watermark",
|
|
604
|
+
f(t.$slots, "watermark", N(S({ isPrinting: c(ge) || c(fe) })), void 0, !0)
|
|
598
605
|
])) : d("", !0),
|
|
599
|
-
|
|
606
|
+
R.value ? d("", !0) : (r(), $(Ct, {
|
|
600
607
|
key: 6,
|
|
601
608
|
config: {
|
|
602
609
|
type: "radar",
|
|
@@ -613,18 +620,18 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
613
620
|
}
|
|
614
621
|
}
|
|
615
622
|
}, null, 8, ["config"])),
|
|
616
|
-
|
|
623
|
+
_("div", {
|
|
617
624
|
ref_key: "chartLegend",
|
|
618
625
|
ref: le
|
|
619
626
|
}, [
|
|
620
|
-
e.value.style.chart.legend.show ? (r(),
|
|
627
|
+
e.value.style.chart.legend.show ? (r(), $(bt, {
|
|
621
628
|
key: `legend_${ie.value}`,
|
|
622
629
|
legendSet: O.value,
|
|
623
630
|
config: Xe.value,
|
|
624
631
|
onClickMarker: a[1] || (a[1] = ({ i: o }) => ke(o))
|
|
625
632
|
}, {
|
|
626
|
-
item:
|
|
627
|
-
|
|
633
|
+
item: y(({ legend: o, index: l }) => [
|
|
634
|
+
_("div", {
|
|
628
635
|
onClick: (s) => o.segregate(),
|
|
629
636
|
style: W(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
|
|
630
637
|
}, U(o.name) + ": " + U(c(V)({
|
|
@@ -658,15 +665,15 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
658
665
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
659
666
|
position: e.value.style.chart.tooltip.position,
|
|
660
667
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
661
|
-
parent:
|
|
668
|
+
parent: L.value,
|
|
662
669
|
content: j.value,
|
|
663
670
|
isFullscreen: F.value,
|
|
664
671
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
665
672
|
}, {
|
|
666
|
-
"tooltip-before":
|
|
667
|
-
f(t.$slots, "tooltip-before",
|
|
673
|
+
"tooltip-before": y(() => [
|
|
674
|
+
f(t.$slots, "tooltip-before", N(S({ ...J.value })), void 0, !0)
|
|
668
675
|
]),
|
|
669
|
-
"tooltip-after":
|
|
676
|
+
"tooltip-after": y(() => [
|
|
670
677
|
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? d("", !0) : (r(), n("div", qt, [
|
|
671
678
|
ee(mt, {
|
|
672
679
|
dataset: Q.value,
|
|
@@ -674,11 +681,11 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
674
681
|
backgroundOpacity: 0
|
|
675
682
|
}, null, 8, ["dataset", "config"])
|
|
676
683
|
])),
|
|
677
|
-
f(t.$slots, "tooltip-after",
|
|
684
|
+
f(t.$slots, "tooltip-after", N(S({ ...J.value })), void 0, !0)
|
|
678
685
|
]),
|
|
679
686
|
_: 3
|
|
680
687
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
681
|
-
|
|
688
|
+
R.value ? (r(), $(wt, {
|
|
682
689
|
key: 8,
|
|
683
690
|
hideDetails: "",
|
|
684
691
|
config: {
|
|
@@ -694,8 +701,8 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
694
701
|
}
|
|
695
702
|
}
|
|
696
703
|
}, {
|
|
697
|
-
content:
|
|
698
|
-
(r(),
|
|
704
|
+
content: y(() => [
|
|
705
|
+
(r(), $(kt, {
|
|
699
706
|
key: `table_${ue.value}`,
|
|
700
707
|
colNames: B.value.colNames,
|
|
701
708
|
head: B.value.head,
|
|
@@ -704,10 +711,10 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
704
711
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
705
712
|
onClose: a[2] || (a[2] = (o) => b.value.showTable = !1)
|
|
706
713
|
}, {
|
|
707
|
-
th:
|
|
714
|
+
th: y(({ th: o }) => [
|
|
708
715
|
xe(U(o.name), 1)
|
|
709
716
|
]),
|
|
710
|
-
td:
|
|
717
|
+
td: y(({ td: o }) => [
|
|
711
718
|
xe(U(o), 1)
|
|
712
719
|
]),
|
|
713
720
|
_: 1
|
|
@@ -717,7 +724,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
|
|
|
717
724
|
}, 8, ["config"])) : d("", !0)
|
|
718
725
|
], 46, At));
|
|
719
726
|
}
|
|
720
|
-
}, ha = /* @__PURE__ */ xt(Ht, [["__scopeId", "data-v-
|
|
727
|
+
}, ha = /* @__PURE__ */ xt(Ht, [["__scopeId", "data-v-b932bce9"]]);
|
|
721
728
|
export {
|
|
722
729
|
ha as default
|
|
723
730
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as f, unref as n, Fragment as B, renderList as Z, renderSlot as j, mergeProps as O, withKeys as ee } from "vue";
|
|
2
|
-
import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, W as I } from "./index-
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
2
|
+
import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, W as I } from "./index-DUnEDLbc.js";
|
|
3
|
+
import { u as ie } from "./useNestedProp-CEMeoM-f.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ne = {
|
|
6
6
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-3OrObUP-.cjs"),F=require("./useNestedProp-B53Yi1Rk.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),R={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},j={key:0,style:{position:"relative"}},O={key:0,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}},X={key:1,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}},I=["src","height","width"],Y=["xmlns","height","width"],G=["id"],P=["stop-color"],U=["stop-color"],q=["points","fill","stroke","stroke-width"],H=["src","alt","height","width","id"],K=["xmlns","viewBox","height","id"],T=["id"],W=["stop-color"],J=["stop-color"],Q=["points","fill","stroke"],Z=["xmlns","height"],ee=["onClick","onMouseenter","onFocus","onKeyup"],te=["onMouseenter","onFocus"],le={__name:"vue-ui-rating",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(S,{expose:_,emit:z}){const{vue_ui_rating:w}=a.useConfig(),i=S,v=e.ref(a.createUid()),g=e.ref(!1),r=e.ref(void 0),y=e.ref(void 0),p=e.ref([]),B=e.useSlots();e.onMounted(()=>{B["chart-background"]&&console.warn("VueUiRating does not support the #chart-background slot.")});const V=z,t=e.computed({get:()=>m(),set:o=>o});function m(){return F.useNestedProp({userConfig:i.config,defaultConfig:w})}e.watch(()=>i.config,o=>{t.value=m(),k()},{deep:!0});const N=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)?E(i.dataset.rating):i.dataset.rating),C=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)),u=e.ref(N.value),h=e.computed(()=>t.value.type==="image"),c=e.computed(()=>t.value.readonly);function E(o){let n=0,l=0;for(const s in o){const D=parseInt(s),x=o[s];n+=D*x,l+=x}if(l===0)return 0;const d=n/l;return Math.min(t.value.to,Math.max(t.value.from,d))}e.onMounted(()=>{k()});function k(){(!Object.hasOwn(i.dataset,"rating")||a.objectIsEmpty(i.dataset))&&a.error({componentName:"VueUiRating",type:"datasetAttribute",property:"rating"}),p.value=[];for(let o=t.value.from;o<=t.value.to;o+=1)p.value.push(o)}function f(o,n=!1){return o>r.value||c.value?n?t.value.style.image.inactiveOpacity:t.value.style.star.inactiveColor:n?1:t.value.style.star.useGradient?`url(#star_gradient_under_${v.value})`:t.value.style.star.activeColor}function $(o,n=!1){const l=u.value-o,d=n?1:100;switch(!0){case l<=0:return .001;case l>1:return 1*d;default:return l*d}}function b(o){c.value||(u.value=o,V("rate",o))}function L(){return u.value}function M(o=!0){c.value=o}return _({getData:L,toggleReadonly:M}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%`),class:"vue-ui-rating",onMouseover:n[4]||(n[4]=l=>g.value=!0),onMouseleave:n[5]||(n[5]=l=>{g.value=!1,r.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-rating-wrapper",style:e.normalizeStyle(`height:${t.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-rating-unit-container",style:e.normalizeStyle(`position:relative;height:${t.value.style.itemSize}px;width:${t.value.style.itemSize}px`)},[o.$slots["layer-under"]||o.$slots["layer-above"]?(e.openBlock(),e.createElementBlock("div",j,[o.$slots["layer-under"]?(e.openBlock(),e.createElementBlock("div",O,[e.renderSlot(o.$slots,"layer-under",e.mergeProps({ref_for:!0},{value:l,size:t.value.style.itemSize,hoveredValue:r.value,focusedValue:y.value}),void 0,!0)])):e.createCommentVNode("",!0),o.$slots["layer-above"]?(e.openBlock(),e.createElementBlock("div",X,[e.renderSlot(o.$slots,"layer-above",e.mergeProps({ref_for:!0},{value:l,size:t.value.style.itemSize,hoveredValue:r.value,focusedValue:y.value}),void 0,!0)])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.value.style.image.src,height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;opacity:${isNaN(r.value)?t.value.style.image.inactiveOpacity:f(l,!0)}`)},null,12,I)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_under_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,P),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,U)],8,G)]),e.createElementVNode("polygon",{points:e.unref(a.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:isNaN(r.value)?t.value.style.star.inactiveColor:f(l),stroke:t.value.style.star.borderColor?t.value.style.star.borderColor:r.value?f(l):t.value.style.star.inactiveColor,"stroke-width":t.value.style.star.borderWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,q)],8,Y)),h.value?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.style.image.src,alt:`${t.value.style.image.alt} ${l}`,height:t.value.style.itemSize,width:t.value.style.itemSize,id:`active_${v.value}_${l}`,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;clip:rect(0px,${$(d,!0)*t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)},null,12,H)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${$(d)} 100`,height:t.value.style.itemSize,class:"vue-ui-rating-unit",id:`active_${v.value}_${l}`,style:{position:"absolute",top:"0",left:"0"}},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_over_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,W),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,J)],8,T)]),e.createElementVNode("polygon",{points:e.unref(a.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:t.value.style.star.useGradient?`url(#star_gradient_over_${v.value})`:t.value.style.star.activeColor,stroke:t.value.style.star.activeColor},null,8,Q)],8,K))],64)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(a.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;${c.value?"":"cursor:pointer"}`)},[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onClick:s=>b(l),onMouseenter:s=>r.value=l,onMouseleave:n[0]||(n[0]=s=>r.value=void 0),onFocus:s=>y.value=l,onBlur:n[1]||(n[1]=s=>y.value=void 0),tabindex:"0",onKeyup:e.withKeys(s=>b(l),["enter"])},null,40,ee)),c.value?(e.openBlock(),e.createElementBlock("rect",{key:1,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onMouseenter:s=>r.value=l,onMouseleave:n[2]||(n[2]=s=>r.value=void 0),onFocus:s=>y.value=l,onBlur:n[3]||(n[3]=s=>y.value=void 0)},null,40,te)):e.createCommentVNode("",!0)],12,Z)),t.value.style.tooltip.show&&C.value&&c.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${r.value===l?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(l)+":",5),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.tooltip.formatter,i.dataset.rating[l],e.unref(a.dataLabel)({v:i.dataset.rating[l],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0)],4))),256)),t.value.style.rating.show&&t.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],4),t.value.style.rating.show&&t.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],36))}},oe=A._export_sfc(le,[["__scopeId","data-v-e9ed619f"]]);exports.default=oe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DM-Bs-Ua.cjs"),F=require("./useNestedProp-CYy5g-mh.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),R={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},j={key:0,style:{position:"relative"}},O={key:0,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}},X={key:1,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}},I=["src","height","width"],Y=["xmlns","height","width"],G=["id"],P=["stop-color"],U=["stop-color"],q=["points","fill","stroke","stroke-width"],H=["src","alt","height","width","id"],K=["xmlns","viewBox","height","id"],T=["id"],W=["stop-color"],J=["stop-color"],Q=["points","fill","stroke"],Z=["xmlns","height"],ee=["onClick","onMouseenter","onFocus","onKeyup"],te=["onMouseenter","onFocus"],le={__name:"vue-ui-rating",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(S,{expose:_,emit:z}){const{vue_ui_rating:w}=a.useConfig(),i=S,v=e.ref(a.createUid()),g=e.ref(!1),r=e.ref(void 0),y=e.ref(void 0),p=e.ref([]),B=e.useSlots();e.onMounted(()=>{B["chart-background"]&&console.warn("VueUiRating does not support the #chart-background slot.")});const V=z,t=e.computed({get:()=>m(),set:o=>o});function m(){return F.useNestedProp({userConfig:i.config,defaultConfig:w})}e.watch(()=>i.config,o=>{t.value=m(),k()},{deep:!0});const N=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)?E(i.dataset.rating):i.dataset.rating),C=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)),u=e.ref(N.value),h=e.computed(()=>t.value.type==="image"),c=e.computed(()=>t.value.readonly);function E(o){let n=0,l=0;for(const s in o){const D=parseInt(s),x=o[s];n+=D*x,l+=x}if(l===0)return 0;const d=n/l;return Math.min(t.value.to,Math.max(t.value.from,d))}e.onMounted(()=>{k()});function k(){(!Object.hasOwn(i.dataset,"rating")||a.objectIsEmpty(i.dataset))&&a.error({componentName:"VueUiRating",type:"datasetAttribute",property:"rating"}),p.value=[];for(let o=t.value.from;o<=t.value.to;o+=1)p.value.push(o)}function f(o,n=!1){return o>r.value||c.value?n?t.value.style.image.inactiveOpacity:t.value.style.star.inactiveColor:n?1:t.value.style.star.useGradient?`url(#star_gradient_under_${v.value})`:t.value.style.star.activeColor}function $(o,n=!1){const l=u.value-o,d=n?1:100;switch(!0){case l<=0:return .001;case l>1:return 1*d;default:return l*d}}function b(o){c.value||(u.value=o,V("rate",o))}function L(){return u.value}function M(o=!0){c.value=o}return _({getData:L,toggleReadonly:M}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%`),class:"vue-ui-rating",onMouseover:n[4]||(n[4]=l=>g.value=!0),onMouseleave:n[5]||(n[5]=l=>{g.value=!1,r.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-rating-wrapper",style:e.normalizeStyle(`height:${t.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-rating-unit-container",style:e.normalizeStyle(`position:relative;height:${t.value.style.itemSize}px;width:${t.value.style.itemSize}px`)},[o.$slots["layer-under"]||o.$slots["layer-above"]?(e.openBlock(),e.createElementBlock("div",j,[o.$slots["layer-under"]?(e.openBlock(),e.createElementBlock("div",O,[e.renderSlot(o.$slots,"layer-under",e.mergeProps({ref_for:!0},{value:l,size:t.value.style.itemSize,hoveredValue:r.value,focusedValue:y.value}),void 0,!0)])):e.createCommentVNode("",!0),o.$slots["layer-above"]?(e.openBlock(),e.createElementBlock("div",X,[e.renderSlot(o.$slots,"layer-above",e.mergeProps({ref_for:!0},{value:l,size:t.value.style.itemSize,hoveredValue:r.value,focusedValue:y.value}),void 0,!0)])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.value.style.image.src,height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;opacity:${isNaN(r.value)?t.value.style.image.inactiveOpacity:f(l,!0)}`)},null,12,I)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_under_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,P),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,U)],8,G)]),e.createElementVNode("polygon",{points:e.unref(a.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:isNaN(r.value)?t.value.style.star.inactiveColor:f(l),stroke:t.value.style.star.borderColor?t.value.style.star.borderColor:r.value?f(l):t.value.style.star.inactiveColor,"stroke-width":t.value.style.star.borderWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,q)],8,Y)),h.value?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.style.image.src,alt:`${t.value.style.image.alt} ${l}`,height:t.value.style.itemSize,width:t.value.style.itemSize,id:`active_${v.value}_${l}`,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;clip:rect(0px,${$(d,!0)*t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)},null,12,H)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${$(d)} 100`,height:t.value.style.itemSize,class:"vue-ui-rating-unit",id:`active_${v.value}_${l}`,style:{position:"absolute",top:"0",left:"0"}},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_over_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,W),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,J)],8,T)]),e.createElementVNode("polygon",{points:e.unref(a.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:t.value.style.star.useGradient?`url(#star_gradient_over_${v.value})`:t.value.style.star.activeColor,stroke:t.value.style.star.activeColor},null,8,Q)],8,K))],64)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(a.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;${c.value?"":"cursor:pointer"}`)},[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onClick:s=>b(l),onMouseenter:s=>r.value=l,onMouseleave:n[0]||(n[0]=s=>r.value=void 0),onFocus:s=>y.value=l,onBlur:n[1]||(n[1]=s=>y.value=void 0),tabindex:"0",onKeyup:e.withKeys(s=>b(l),["enter"])},null,40,ee)),c.value?(e.openBlock(),e.createElementBlock("rect",{key:1,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onMouseenter:s=>r.value=l,onMouseleave:n[2]||(n[2]=s=>r.value=void 0),onFocus:s=>y.value=l,onBlur:n[3]||(n[3]=s=>y.value=void 0)},null,40,te)):e.createCommentVNode("",!0)],12,Z)),t.value.style.tooltip.show&&C.value&&c.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${r.value===l?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(l)+":",5),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.tooltip.formatter,i.dataset.rating[l],e.unref(a.dataLabel)({v:i.dataset.rating[l],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0)],4))),256)),t.value.style.rating.show&&t.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],4),t.value.style.rating.show&&t.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],36))}},oe=A._export_sfc(le,[["__scopeId","data-v-e9ed619f"]]);exports.default=oe;
|