vue-data-ui 2.6.5 → 2.6.7
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-DfGZcZu4.js → Arrow-BxUmDF04.js} +1 -1
- package/dist/{Arrow-CyeGXbbD.cjs → Arrow-PPbxds1Q.cjs} +1 -1
- package/dist/{BaseIcon-B5DvqSYe.cjs → BaseIcon-BmVwfJg2.cjs} +1 -1
- package/dist/{BaseIcon-BzuvxztF.js → BaseIcon-CDx9pxUG.js} +1 -1
- package/dist/{DataTable-zpYtivMM.cjs → DataTable-Cv_TVAas.cjs} +1 -1
- package/dist/{DataTable-BCCBpyhr.js → DataTable-TjJIVFlL.js} +2 -2
- package/dist/{Legend-CJkkmRNE.cjs → Legend-DunrYGuw.cjs} +1 -1
- package/dist/{Legend-CyJrN721.js → Legend-NKGwxkI7.js} +2 -2
- package/dist/{PackageVersion-Dv25_ZxF.cjs → PackageVersion-DJKkRuOD.cjs} +1 -1
- package/dist/{PackageVersion-PZr4BkQ5.js → PackageVersion-QRvxRYPv.js} +1 -1
- package/dist/{PenAndPaper-Cniu2YEX.js → PenAndPaper-CxC1lWGK.js} +3 -3
- package/dist/{PenAndPaper-Cx3_Liuv.cjs → PenAndPaper-MTTJ3Gd9.cjs} +1 -1
- package/dist/{Shape-BXTmpde5.js → Shape-58uyOuYc.js} +26 -23
- package/dist/Shape-D_1vUjCL.cjs +1 -0
- package/dist/{Slicer-DzKrIvL0.cjs → Slicer-BGEieXKn.cjs} +1 -1
- package/dist/{Slicer-D3tEQT9Z.js → Slicer-C7ormJRw.js} +2 -2
- package/dist/{Title-CXBc1TH6.js → Title-BI8etrRU.js} +1 -1
- package/dist/{Title-DdUtciJN.cjs → Title-Dk92HYMu.cjs} +1 -1
- package/dist/Tooltip-ClMeqejQ.cjs +1 -0
- package/dist/{Tooltip-C9lPh5bN.js → Tooltip-Cxc8c50d.js} +23 -20
- package/dist/{index-DLCyjPV0.js → index-9EeNZMz1.js} +6 -1
- package/dist/index-DEnRHTzk.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +89 -62
- package/dist/types/vue-data-ui.d.ts +89 -62
- package/dist/useChartAccessibility-BWojgys7.js +13 -0
- package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
- package/dist/{useNestedProp-BdTohsDJ.cjs → useNestedProp-BNT60LxO.cjs} +1 -1
- package/dist/{useNestedProp-q86V3_LA.js → useNestedProp-df_bKQEI.js} +1 -1
- package/dist/{usePrinter-CPqTP09H.cjs → usePrinter-dyVny55M.cjs} +1 -1
- package/dist/{usePrinter-CpHZjw3G.js → usePrinter-ngrh00Ym.js} +1 -1
- package/dist/{vue-data-ui-CR9Dof80.cjs → vue-data-ui-BYX-I7HQ.cjs} +1 -1
- package/dist/{vue-data-ui-CzqznXmA.js → vue-data-ui-CDD7JcMs.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-DvHdA_uo.js → vue-ui-3d-bar-BArLjlrc.js} +171 -168
- package/dist/vue-ui-3d-bar-DegdXf_S.cjs +19 -0
- package/dist/{vue-ui-accordion-FM16tlk7.cjs → vue-ui-accordion-D2qxHGzp.cjs} +1 -1
- package/dist/{vue-ui-accordion-DR2qjfsa.js → vue-ui-accordion-Qo8JxnIN.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BoXxK9_W.js → vue-ui-age-pyramid-Biz02m7c.js} +85 -82
- package/dist/vue-ui-age-pyramid-kpaaJ2Gx.cjs +1 -0
- package/dist/{vue-ui-annotator-5tI8NuFh.cjs → vue-ui-annotator-By6XNYm0.cjs} +1 -1
- package/dist/{vue-ui-annotator-D4kCCpAK.js → vue-ui-annotator-MXs48Lua.js} +1 -1
- package/dist/{vue-ui-bullet-X3Xa_OZ6.js → vue-ui-bullet-CtBs_r3I.js} +92 -89
- package/dist/vue-ui-bullet-Dkz6vX0T.cjs +34 -0
- package/dist/vue-ui-candlestick-DiEUIuW8.cjs +2 -0
- package/dist/{vue-ui-candlestick-BTW5toA5.js → vue-ui-candlestick-gPztmuJE.js} +155 -152
- package/dist/{vue-ui-carousel-table-Cmnwv9Y3.cjs → vue-ui-carousel-table-CYeXP21y.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D7s_SrJR.js → vue-ui-carousel-table-D9ckYNKZ.js} +4 -4
- package/dist/{vue-ui-chestnut-DN9EZShg.js → vue-ui-chestnut-DWjn-jcN.js} +186 -183
- package/dist/vue-ui-chestnut-oZtRERnV.cjs +6 -0
- package/dist/{vue-ui-circle-pack-ts3rurGX.js → vue-ui-circle-pack-Bz5yVvAM.js} +99 -96
- package/dist/vue-ui-circle-pack-DCJ6N00S.cjs +1 -0
- package/dist/{vue-ui-cursor-SW96fYT3.js → vue-ui-cursor-BrrVDy1u.js} +2 -2
- package/dist/{vue-ui-cursor-CpWkrHpR.cjs → vue-ui-cursor-DZhRygRy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BZcfgajg.js → vue-ui-dashboard-DEmGN8Js.js} +2 -2
- package/dist/{vue-ui-dashboard-Buh9xBz-.cjs → vue-ui-dashboard-o8Ju_cXW.cjs} +1 -1
- package/dist/{vue-ui-digits-rB78vJRR.cjs → vue-ui-digits-CgyYdrQ5.cjs} +1 -1
- package/dist/{vue-ui-digits-C00yOT24.js → vue-ui-digits-DbOrROu7.js} +2 -2
- package/dist/vue-ui-donut-9pWaRwf3.cjs +1 -0
- package/dist/{vue-ui-donut-BkGR2Q-_.js → vue-ui-donut-CP5uWglM.js} +158 -156
- package/dist/{vue-ui-donut-evolution-B7WrjiTO.js → vue-ui-donut-evolution-BAMD1wQ5.js} +133 -131
- package/dist/vue-ui-donut-evolution-Ci_gIrkO.cjs +1 -0
- package/dist/{vue-ui-dumbbell-gQadUH53.js → vue-ui-dumbbell-CFYd-Ypn.js} +125 -122
- package/dist/vue-ui-dumbbell-DUNYoZxT.cjs +9 -0
- package/dist/{vue-ui-flow-CqSTZbgP.js → vue-ui-flow-CdvGWFzv.js} +96 -93
- package/dist/vue-ui-flow-W89ofPB-.cjs +1 -0
- package/dist/{vue-ui-funnel-Jr9TMTsq.js → vue-ui-funnel-DYutKyoz.js} +88 -85
- package/dist/vue-ui-funnel-RvdVrhFu.cjs +1 -0
- package/dist/{vue-ui-galaxy-BrQ10tPo.js → vue-ui-galaxy-BCBRlYS1.js} +123 -120
- package/dist/vue-ui-galaxy-Djdx-ca8.cjs +1 -0
- package/dist/{vue-ui-gauge-DOMio6Mv.js → vue-ui-gauge-BNAAZt4F.js} +86 -83
- package/dist/vue-ui-gauge-BVVmf09x.cjs +1 -0
- package/dist/{vue-ui-gizmo-SKS1idHb.js → vue-ui-gizmo-BFQ_KgLX.js} +3 -3
- package/dist/{vue-ui-gizmo-C3NimqVM.cjs → vue-ui-gizmo-Ceh0oFY3.cjs} +1 -1
- package/dist/vue-ui-heatmap-CiZpI-tA.cjs +1 -0
- package/dist/{vue-ui-heatmap-l4vCjb6f.js → vue-ui-heatmap-Ct3qaBv7.js} +109 -106
- package/dist/vue-ui-history-plot-Ci8Y2EFg.cjs +1 -0
- package/dist/{vue-ui-history-plot-B05tJML1.js → vue-ui-history-plot-shn74MJ6.js} +130 -127
- package/dist/{vue-ui-kpi-DF4U5E1w.js → vue-ui-kpi-B_pV-2JJ.js} +3 -3
- package/dist/{vue-ui-kpi-DQJr571M.cjs → vue-ui-kpi-DfYrbxlX.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BMARnOW4.js → vue-ui-mini-loader-BFnWQs5p.js} +2 -2
- package/dist/{vue-ui-mini-loader-BZkVKkqn.cjs → vue-ui-mini-loader-LIqf62jk.cjs} +1 -1
- package/dist/vue-ui-molecule-D8YuYTKv.cjs +1 -0
- package/dist/{vue-ui-molecule-C1ycekVJ.js → vue-ui-molecule-DNz1m8XZ.js} +147 -144
- package/dist/{vue-ui-mood-radar-_Kd-Lhpm.js → vue-ui-mood-radar-DiYB_zhM.js} +97 -94
- package/dist/vue-ui-mood-radar-uvH7qUHy.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DIwRSn-O.js → vue-ui-nested-donuts-9hn-g4ir.js} +99 -96
- package/dist/vue-ui-nested-donuts-C7ikDjp7.cjs +17 -0
- package/dist/vue-ui-onion-5Rqvd4Fw.cjs +5 -0
- package/dist/{vue-ui-onion-Dqb0gwGl.js → vue-ui-onion-DCWfNTNu.js} +105 -102
- package/dist/{vue-ui-parallel-coordinate-plot-De-tYNNy.js → vue-ui-parallel-coordinate-plot-CaPFL9_1.js} +97 -94
- package/dist/vue-ui-parallel-coordinate-plot-tlgTbaNX.cjs +8 -0
- package/dist/vue-ui-quadrant-B0Sw5NGo.cjs +1 -0
- package/dist/{vue-ui-quadrant-BQ5maxJq.js → vue-ui-quadrant-BoQZ375K.js} +155 -153
- package/dist/vue-ui-quick-chart-D3zV1d7t.cjs +15 -0
- package/dist/{vue-ui-quick-chart-DF_510YT.js → vue-ui-quick-chart-vfMN8F1q.js} +164 -161
- package/dist/{vue-ui-radar-DDHd0AYs.js → vue-ui-radar-CAuu6wkh.js} +129 -127
- package/dist/vue-ui-radar-CNMJCAwo.cjs +1 -0
- package/dist/{vue-ui-rating-Chi3OOtp.js → vue-ui-rating-Bm0HZ3du.js} +2 -2
- package/dist/{vue-ui-rating-D9kQcY2a.cjs → vue-ui-rating-dsRDRL98.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CV1xQOok.js → vue-ui-relation-circle-5OZMN9jR.js} +127 -124
- package/dist/vue-ui-relation-circle-iD7BufNH.cjs +1 -0
- package/dist/{vue-ui-rings-D2ezwyae.js → vue-ui-rings-COefBaQT.js} +114 -112
- package/dist/vue-ui-rings-DC4WG4sK.cjs +2 -0
- package/dist/vue-ui-scatter-5ny76dmi.cjs +1 -0
- package/dist/{vue-ui-scatter-BxbUYPk1.js → vue-ui-scatter-DhO83TZZ.js} +157 -154
- package/dist/{vue-ui-screenshot-Bc7Lv1i8.cjs → vue-ui-screenshot-DABH_phE.cjs} +1 -1
- package/dist/{vue-ui-screenshot-cxDgcXJB.js → vue-ui-screenshot-brillPo5.js} +1 -1
- package/dist/{vue-ui-skeleton-D6ojufhb.js → vue-ui-skeleton-BmJiYGtE.js} +3 -3
- package/dist/{vue-ui-skeleton-DvdPnQbR.cjs → vue-ui-skeleton-_DN0U6W6.cjs} +1 -1
- package/dist/{vue-ui-smiley-DEJ6S-We.cjs → vue-ui-smiley-CW6714mb.cjs} +1 -1
- package/dist/{vue-ui-smiley-9nGRDSn7.js → vue-ui-smiley-D9NRimij.js} +2 -2
- package/dist/{vue-ui-spark-trend-DiNeAGXR.js → vue-ui-spark-trend-BKZj03CQ.js} +5 -5
- package/dist/{vue-ui-spark-trend-BosbwgVe.cjs → vue-ui-spark-trend-expbkxgR.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DNf_Majv.js → vue-ui-sparkbar-CYRORE5i.js} +4 -4
- package/dist/{vue-ui-sparkbar-DGFKrcg0.cjs → vue-ui-sparkbar-Cr9FtevP.cjs} +1 -1
- package/dist/vue-ui-sparkgauge-BHXFhvTv.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-D89HjxSK.js → vue-ui-sparkgauge-JV4tYB7P.js} +56 -53
- package/dist/{vue-ui-sparkhistogram-CU1_P6AJ.js → vue-ui-sparkhistogram-DKINHX2q.js} +93 -90
- package/dist/vue-ui-sparkhistogram-T4a3DDck.cjs +1 -0
- package/dist/{vue-ui-sparkline-C2McLmh5.js → vue-ui-sparkline-CbRTHtig.js} +109 -106
- package/dist/vue-ui-sparkline-Dc6Sf3n8.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-Cu4aG9PB.js → vue-ui-sparkstackbar-6u9-2nG4.js} +59 -56
- package/dist/vue-ui-sparkstackbar-CV5SkdsP.cjs +1 -0
- package/dist/{vue-ui-stackbar-6m5CpvNM.js → vue-ui-stackbar-CUppObfj.js} +136 -133
- package/dist/vue-ui-stackbar-CXB-nd71.cjs +6 -0
- package/dist/vue-ui-strip-plot-6IXF_U6-.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DlZ2Eez4.js → vue-ui-strip-plot-doaNZAW4.js} +127 -124
- package/dist/{vue-ui-table-U0_3I0fu.js → vue-ui-table-CZsNuDR5.js} +1 -1
- package/dist/{vue-ui-table-BjhcV9qB.cjs → vue-ui-table-S66UCskD.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Bfqytiv5.cjs → vue-ui-table-heatmap-BU9UU15H.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BrGkCaOG.js → vue-ui-table-heatmap-CjohHqDV.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CXlnp8E3.cjs → vue-ui-table-sparkline-CHFFTD0a.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C1wNBDqO.js → vue-ui-table-sparkline-ab2rwdKB.js} +5 -5
- package/dist/{vue-ui-thermometer-Bx2abW1B.js → vue-ui-thermometer-C72mHwUi.js} +84 -81
- package/dist/vue-ui-thermometer-Ccd6RGh8.cjs +1 -0
- package/dist/vue-ui-timer-C8Fn2B0b.cjs +64 -0
- package/dist/{vue-ui-timer-3UkgrtEj.js → vue-ui-timer-D-LNi6lz.js} +183 -180
- package/dist/{vue-ui-tiremarks-C_xuD4De.js → vue-ui-tiremarks-Bo8EWsJ8.js} +59 -56
- package/dist/vue-ui-tiremarks-SOzvMOz4.cjs +1 -0
- package/dist/vue-ui-treemap-BqTTQrVh.cjs +1 -0
- package/dist/{vue-ui-treemap-BjDSR72h.js → vue-ui-treemap-uj94elVB.js} +123 -120
- package/dist/{vue-ui-vertical-bar-DUhOoSNl.js → vue-ui-vertical-bar-BUTOw-DK.js} +108 -106
- package/dist/vue-ui-vertical-bar-C4Sxun4Q.cjs +4 -0
- package/dist/{vue-ui-waffle-Dpox5n5s.js → vue-ui-waffle-CTWA1frT.js} +107 -104
- package/dist/vue-ui-waffle-DYWGRKdT.cjs +1 -0
- package/dist/vue-ui-wheel-8K72ZKda.js +330 -0
- package/dist/vue-ui-wheel-Cz5-0klT.cjs +1 -0
- package/dist/{vue-ui-word-cloud-u5S86-Ft.js → vue-ui-word-cloud-CSwBPDB8.js} +97 -94
- package/dist/vue-ui-word-cloud-D39riLZb.cjs +1 -0
- package/dist/vue-ui-xy-BbWXjajH.cjs +3 -0
- package/dist/{vue-ui-xy-0nBQDwL2.js → vue-ui-xy-DpDKutd7.js} +65 -58
- package/dist/{vue-ui-xy-canvas-yQlThVu7.cjs → vue-ui-xy-canvas-BCj0SCqe.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DI7LiD4U.js → vue-ui-xy-canvas-BQm9gah4.js} +82 -81
- package/package.json +1 -1
- package/dist/Shape-GAZUIBfN.cjs +0 -1
- package/dist/Tooltip-BlGVq6xj.cjs +0 -1
- package/dist/index-DSGAenF3.cjs +0 -9
- package/dist/vue-ui-3d-bar-vvpkf_bv.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CMMnrI3R.cjs +0 -1
- package/dist/vue-ui-bullet-nXPlud-q.cjs +0 -34
- package/dist/vue-ui-candlestick-B6T0LhEG.cjs +0 -2
- package/dist/vue-ui-chestnut-D8Gq_i77.cjs +0 -6
- package/dist/vue-ui-circle-pack-DCz3OWlu.cjs +0 -1
- package/dist/vue-ui-donut-BpgK-I9o.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BVJCDPQ2.cjs +0 -1
- package/dist/vue-ui-dumbbell-DRcemHVG.cjs +0 -9
- package/dist/vue-ui-flow-DdQsK5DR.cjs +0 -1
- package/dist/vue-ui-funnel-Bq4yoTfd.cjs +0 -1
- package/dist/vue-ui-galaxy-ia1UNlpc.cjs +0 -1
- package/dist/vue-ui-gauge-C3FbYOSi.cjs +0 -1
- package/dist/vue-ui-heatmap-BCau2Z3U.cjs +0 -1
- package/dist/vue-ui-history-plot-DL7VjOd0.cjs +0 -1
- package/dist/vue-ui-molecule-B5XDGmLx.cjs +0 -1
- package/dist/vue-ui-mood-radar-DyMCJKFb.cjs +0 -1
- package/dist/vue-ui-nested-donuts-B4Am-r6T.cjs +0 -17
- package/dist/vue-ui-onion-YeBdJrdx.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoecETlm.cjs +0 -8
- package/dist/vue-ui-quadrant-Btzq3qNJ.cjs +0 -1
- package/dist/vue-ui-quick-chart-5cWjffLJ.cjs +0 -15
- package/dist/vue-ui-radar-t22bqFiQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-CWgGPxDJ.cjs +0 -1
- package/dist/vue-ui-rings-CiLJkRwa.cjs +0 -2
- package/dist/vue-ui-scatter-B24gGA8q.cjs +0 -1
- package/dist/vue-ui-sparkgauge-DwK7dzdJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-DKoI6_TT.cjs +0 -1
- package/dist/vue-ui-sparkline-Bp7GMRrA.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-Dayxdcr7.cjs +0 -1
- package/dist/vue-ui-stackbar-C21xTVy9.cjs +0 -6
- package/dist/vue-ui-strip-plot-DAo8FMup.cjs +0 -1
- package/dist/vue-ui-thermometer-CBdAwYdC.cjs +0 -1
- package/dist/vue-ui-timer-CRDQbqJ_.cjs +0 -64
- package/dist/vue-ui-tiremarks-C78mfaBr.cjs +0 -1
- package/dist/vue-ui-treemap-CP__1pdb.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DTB8r4LH.cjs +0 -4
- package/dist/vue-ui-waffle-CrVyCF7k.cjs +0 -1
- package/dist/vue-ui-wheel-DV2zgr4d.cjs +0 -1
- package/dist/vue-ui-wheel-ykD8OULJ.js +0 -319
- package/dist/vue-ui-word-cloud-DBkAo2uX.cjs +0 -1
- package/dist/vue-ui-xy-mEVVQr_U.cjs +0 -3
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { computed as y, ref as f, watch as me, onMounted as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as _e } from "./useNestedProp-
|
|
8
|
-
import { _ as
|
|
9
|
-
import { P as
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { computed as y, ref as f, watch as me, onMounted as Ge, onBeforeUnmount as Ee, createElementBlock as u, openBlock as r, unref as i, normalizeStyle as L, normalizeClass as pe, createBlock as G, createCommentVNode as c, createElementVNode as p, withCtx as X, toDisplayString as O, createSlots as Ue, renderSlot as w, normalizeProps as D, guardReactiveProps as B, createVNode as We, Fragment as g, renderList as S, mergeProps as I } from "vue";
|
|
2
|
+
import { u as je, c as Te, t as Le, p as ge, a as De, b as Be, o as ke, d as Ve, e as E, g as be, m as V, I as z, N as qe, X as He, s as q, n as Ze, i as H, f as Z, F as J } from "./index-9EeNZMz1.js";
|
|
3
|
+
import { t as Je, u as Ke } from "./useResponsive-BWapHhVH.js";
|
|
4
|
+
import { u as Qe, U as et } from "./usePrinter-ngrh00Ym.js";
|
|
5
|
+
import tt from "./vue-ui-skeleton-BmJiYGtE.js";
|
|
6
|
+
import { _ as at } from "./Title-BI8etrRU.js";
|
|
7
|
+
import { u as _e } from "./useNestedProp-df_bKQEI.js";
|
|
8
|
+
import { _ as lt } from "./PackageVersion-QRvxRYPv.js";
|
|
9
|
+
import { P as rt } from "./PenAndPaper-CxC1lWGK.js";
|
|
10
|
+
import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as ot } from "./useChartAccessibility-BWojgys7.js";
|
|
12
|
+
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const nt = ["id"], it = { key: 0 }, ct = ["xmlns", "viewBox"], vt = ["width", "height"], ht = ["id"], dt = ["stop-color"], yt = ["stop-color"], ft = ["stop-color"], mt = ["id"], pt = ["stdDeviation"], gt = { key: 1 }, kt = ["d", "fill", "stroke"], bt = ["d", "fill", "stroke"], _t = ["d", "fill"], xt = ["id", "d"], wt = ["fill", "font-size", "font-weight"], St = ["href", "startOffset"], $t = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], zt = ["d", "filter"], Ft = ["stroke", "stroke-width"], Ct = ["stroke", "stroke-width"], Ot = ["stroke", "stroke-width"], Mt = ["stroke", "stroke-width"], Pt = { key: 8 }, Nt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Xt = ["x", "y", "font-size", "font-weight", "fill"], It = { key: 0 }, Yt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], At = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Rt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Gt = { key: 1 }, Et = ["d", "fill", "stroke", "stroke-width"], Ut = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Wt = ["x", "y", "font-size", "fill"], jt = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Tt = {
|
|
16
17
|
__name: "vue-ui-gauge",
|
|
17
18
|
props: {
|
|
18
19
|
config: {
|
|
@@ -29,10 +30,10 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
setup(U, { expose: xe }) {
|
|
32
|
-
const { vue_ui_gauge: we } =
|
|
33
|
+
const { vue_ui_gauge: we } = je(), h = U, Y = y(() => !!h.dataset && Object.keys(h.dataset).length > 0 && h.dataset.series && h.dataset.series.length), b = f(Te()), Se = f(null), K = f(0), P = f(null), Q = f(null), ee = f(null), te = f(null), ae = f(null), le = f(0), e = y({
|
|
33
34
|
get: () => oe(),
|
|
34
35
|
set: (t) => t
|
|
35
|
-
}), { userOptionsVisible: W, setUserOptionsVisibility: re, keepUserOptionState: se } =
|
|
36
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: re, keepUserOptionState: se } = st({ config: e.value }), { svgRef: $e } = ot({ config: e.value.style.chart.title });
|
|
36
37
|
me(() => h.config, (t) => {
|
|
37
38
|
e.value = oe(), W.value = !e.value.userOptions.showOnChartHover, he(), le.value += 1;
|
|
38
39
|
}, { deep: !0 });
|
|
@@ -43,16 +44,16 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
43
44
|
});
|
|
44
45
|
return t.theme ? {
|
|
45
46
|
..._e({
|
|
46
|
-
userConfig:
|
|
47
|
+
userConfig: De.vue_ui_gauge[t.theme] || h.config,
|
|
47
48
|
defaultConfig: t
|
|
48
49
|
}),
|
|
49
|
-
customPalette:
|
|
50
|
+
customPalette: Le[t.theme] || ge
|
|
50
51
|
} : t;
|
|
51
52
|
}
|
|
52
|
-
const { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: ce } =
|
|
53
|
+
const { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: ce } = Qe({
|
|
53
54
|
elementId: `vue-ui-gauge_${b.value}`,
|
|
54
55
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
55
|
-
}),
|
|
56
|
+
}), ze = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Fe = y(() => Be(e.value.customPalette)), F = y(() => {
|
|
56
57
|
if (!Y.value || ke(h.dataset.series || {}))
|
|
57
58
|
return {
|
|
58
59
|
value: 0,
|
|
@@ -72,7 +73,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
72
73
|
...h.dataset,
|
|
73
74
|
series: (h.dataset.series || []).map((a, s) => ({
|
|
74
75
|
...a,
|
|
75
|
-
color:
|
|
76
|
+
color: Ve(a.color) || Fe.value[s] || ge[s],
|
|
76
77
|
value: ((a.to || 0) - (a.from || 0)) / o * 100
|
|
77
78
|
}))
|
|
78
79
|
};
|
|
@@ -106,8 +107,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
106
107
|
y2: o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
107
108
|
};
|
|
108
109
|
}), ve = y(() => {
|
|
109
|
-
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 - $.value) / (M.value - $.value)) + Math.PI, s = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), _ = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), x = l.value.pointerRadius,
|
|
110
|
-
return isNaN(s) ? null : `M ${s},${_} ${
|
|
110
|
+
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 - $.value) / (M.value - $.value)) + Math.PI, s = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), _ = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), x = l.value.pointerRadius, Ie = t + x * Math.cos(a + Math.PI / 2), Ye = o + x * Math.sin(a + Math.PI / 2), Ae = t + x * Math.cos(a - Math.PI / 2), Re = o + x * Math.sin(a - Math.PI / 2);
|
|
111
|
+
return isNaN(s) ? null : `M ${s},${_} ${Ie},${Ye} ${Ae},${Re} Z`;
|
|
111
112
|
}), j = y(() => {
|
|
112
113
|
for (let t = 0; t < F.value.series.length; t += 1) {
|
|
113
114
|
const { color: o, from: a, to: s } = F.value.series[t];
|
|
@@ -146,8 +147,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
146
147
|
type: "datasetAttributeEmpty",
|
|
147
148
|
property: "series"
|
|
148
149
|
}))), de(h.dataset.value || 0), e.value.responsive) {
|
|
149
|
-
const t =
|
|
150
|
-
const { width: o, height: a } =
|
|
150
|
+
const t = Je(() => {
|
|
151
|
+
const { width: o, height: a } = Ke({
|
|
151
152
|
chart: P.value,
|
|
152
153
|
title: e.value.style.chart.title.text ? Q.value : null,
|
|
153
154
|
legend: ee.value,
|
|
@@ -179,9 +180,9 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
179
180
|
A.value = new ResizeObserver(t), A.value.observe(P.value.parentNode);
|
|
180
181
|
}
|
|
181
182
|
}
|
|
182
|
-
|
|
183
|
+
Ge(() => {
|
|
183
184
|
he();
|
|
184
|
-
}),
|
|
185
|
+
}), Ee(() => {
|
|
185
186
|
A.value && A.value.disconnect();
|
|
186
187
|
});
|
|
187
188
|
function de(t) {
|
|
@@ -217,7 +218,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
217
218
|
180,
|
|
218
219
|
109.9495,
|
|
219
220
|
40 * l.value.trackSize
|
|
220
|
-
)),
|
|
221
|
+
)), Ce = y(() => V(
|
|
221
222
|
{ series: F.value.series },
|
|
222
223
|
l.value.width / 2,
|
|
223
224
|
v.value.base,
|
|
@@ -260,14 +261,14 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
260
261
|
});
|
|
261
262
|
return { x1: o, y1: a, x2: s, y2: _ };
|
|
262
263
|
}));
|
|
263
|
-
function
|
|
264
|
+
function Oe(t) {
|
|
264
265
|
if (t.reduce((_, x) => _ + x, 0) > 100)
|
|
265
266
|
throw new Error("Total % must not exceed 100");
|
|
266
267
|
const a = 50;
|
|
267
268
|
let s = 0;
|
|
268
269
|
return t.map((_) => (s += _, `${s / 100 * a - _ / 4}%`));
|
|
269
270
|
}
|
|
270
|
-
const
|
|
271
|
+
const Me = y(() => Oe(d.value.map((t) => t.proportion * 100))), Pe = y(() => V(
|
|
271
272
|
{ series: F.value.series },
|
|
272
273
|
l.value.width / 2,
|
|
273
274
|
v.value.base,
|
|
@@ -279,9 +280,9 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
279
280
|
180,
|
|
280
281
|
110.02,
|
|
281
282
|
2 * l.value.trackSize
|
|
282
|
-
)),
|
|
283
|
+
)), Ne = y(() => {
|
|
283
284
|
const t = $.value >= 0 ? -$.value : Math.abs($.value);
|
|
284
|
-
return
|
|
285
|
+
return qe(
|
|
285
286
|
{
|
|
286
287
|
radius: e.value.style.chart.layout.indicatorArc.radius * l.value.trackSize,
|
|
287
288
|
centerX: l.value.width / 2,
|
|
@@ -290,7 +291,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
290
291
|
}
|
|
291
292
|
);
|
|
292
293
|
}), N = f(!1);
|
|
293
|
-
function
|
|
294
|
+
function Xe(t) {
|
|
294
295
|
N.value = t, K.value += 1;
|
|
295
296
|
}
|
|
296
297
|
const R = f(!1);
|
|
@@ -310,7 +311,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
310
311
|
onMouseenter: o[0] || (o[0] = () => i(re)(!0)),
|
|
311
312
|
onMouseleave: o[1] || (o[1] = () => i(re)(!1))
|
|
312
313
|
}, [
|
|
313
|
-
e.value.userOptions.buttons.annotator ? (r(), G(
|
|
314
|
+
e.value.userOptions.buttons.annotator ? (r(), G(rt, {
|
|
314
315
|
key: 0,
|
|
315
316
|
parent: P.value,
|
|
316
317
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -318,7 +319,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
318
319
|
active: R.value,
|
|
319
320
|
onClose: T
|
|
320
321
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : c("", !0),
|
|
321
|
-
|
|
322
|
+
ze.value ? (r(), u("div", {
|
|
322
323
|
key: 1,
|
|
323
324
|
ref_key: "noTitle",
|
|
324
325
|
ref: ae,
|
|
@@ -331,7 +332,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
331
332
|
ref: Q,
|
|
332
333
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
333
334
|
}, [
|
|
334
|
-
(r(), G(
|
|
335
|
+
(r(), G(at, {
|
|
335
336
|
key: `title_${le.value}`,
|
|
336
337
|
config: {
|
|
337
338
|
title: {
|
|
@@ -345,12 +346,12 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
345
346
|
}
|
|
346
347
|
}, {
|
|
347
348
|
default: X(() => [
|
|
348
|
-
e.value.translations.base && U.dataset.base ? (r(), u("span",
|
|
349
|
+
e.value.translations.base && U.dataset.base ? (r(), u("span", it, O(e.value.translations.base) + ": " + O(U.dataset.base), 1)) : c("", !0)
|
|
349
350
|
]),
|
|
350
351
|
_: 1
|
|
351
352
|
}, 8, ["config"]))
|
|
352
353
|
], 512)) : c("", !0),
|
|
353
|
-
e.value.userOptions.show && Y.value && (i(se) || i(W)) ? (r(), G(
|
|
354
|
+
e.value.userOptions.show && Y.value && (i(se) || i(W)) ? (r(), G(et, {
|
|
354
355
|
ref_key: "details",
|
|
355
356
|
ref: Se,
|
|
356
357
|
key: `user_options_${K.value}`,
|
|
@@ -369,14 +370,14 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
369
370
|
position: e.value.userOptions.position,
|
|
370
371
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
371
372
|
isAnnotation: R.value,
|
|
372
|
-
onToggleFullscreen:
|
|
373
|
+
onToggleFullscreen: Xe,
|
|
373
374
|
onGeneratePdf: i(ie),
|
|
374
375
|
onGenerateImage: i(ce),
|
|
375
376
|
onToggleAnnotator: T,
|
|
376
377
|
style: L({
|
|
377
378
|
visibility: i(se) ? i(W) ? "visible" : "hidden" : "visible"
|
|
378
379
|
})
|
|
379
|
-
},
|
|
380
|
+
}, Ue({ _: 2 }, [
|
|
380
381
|
t.$slots.optionPdf ? {
|
|
381
382
|
name: "optionPdf",
|
|
382
383
|
fn: X(() => [
|
|
@@ -408,12 +409,14 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
408
409
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
409
410
|
Y.value ? (r(), u("svg", {
|
|
410
411
|
key: 4,
|
|
411
|
-
|
|
412
|
+
ref_key: "svgRef",
|
|
413
|
+
ref: $e,
|
|
414
|
+
xmlns: i(He),
|
|
412
415
|
class: pe({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
413
416
|
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
414
417
|
style: L(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
415
418
|
}, [
|
|
416
|
-
|
|
419
|
+
We(lt),
|
|
417
420
|
t.$slots["chart-background"] ? (r(), u("foreignObject", {
|
|
418
421
|
key: 0,
|
|
419
422
|
x: 0,
|
|
@@ -425,7 +428,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
425
428
|
}
|
|
426
429
|
}, [
|
|
427
430
|
w(t.$slots, "chart-background", {}, void 0, !0)
|
|
428
|
-
], 8,
|
|
431
|
+
], 8, vt)) : c("", !0),
|
|
429
432
|
p("defs", null, [
|
|
430
433
|
p("radialGradient", {
|
|
431
434
|
id: `gradient_${b.value}`,
|
|
@@ -438,16 +441,16 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
438
441
|
p("stop", {
|
|
439
442
|
offset: "0%",
|
|
440
443
|
"stop-color": i(q)("#FFFFFF", 1)
|
|
441
|
-
}, null, 8,
|
|
444
|
+
}, null, 8, dt),
|
|
442
445
|
p("stop", {
|
|
443
446
|
offset: "80%",
|
|
444
447
|
"stop-color": i(q)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
445
|
-
}, null, 8,
|
|
448
|
+
}, null, 8, yt),
|
|
446
449
|
p("stop", {
|
|
447
450
|
offset: "100%",
|
|
448
451
|
"stop-color": i(q)("#FFFFFF", 1)
|
|
449
|
-
}, null, 8,
|
|
450
|
-
], 8,
|
|
452
|
+
}, null, 8, ft)
|
|
453
|
+
], 8, ht)
|
|
451
454
|
]),
|
|
452
455
|
p("defs", null, [
|
|
453
456
|
p("filter", {
|
|
@@ -460,10 +463,10 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
460
463
|
p("feGaussianBlur", {
|
|
461
464
|
in: "SourceGraphic",
|
|
462
465
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
463
|
-
}, null, 8,
|
|
464
|
-
], 8,
|
|
466
|
+
}, null, 8, pt)
|
|
467
|
+
], 8, mt)
|
|
465
468
|
]),
|
|
466
|
-
t.$slots.pattern ? (r(), u("g",
|
|
469
|
+
t.$slots.pattern ? (r(), u("g", gt, [
|
|
467
470
|
(r(!0), u(g, null, S(d.value, (a, s) => (r(), u("defs", null, [
|
|
468
471
|
w(t.$slots, "pattern", I({ ref_for: !0 }, { seriesIndex: s, patternId: `pattern_${b.value}_${s}` }), void 0, !0)
|
|
469
472
|
]))), 256))
|
|
@@ -474,25 +477,25 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
474
477
|
fill: a.color,
|
|
475
478
|
stroke: e.value.style.chart.backgroundColor,
|
|
476
479
|
"stroke-linecap": "round"
|
|
477
|
-
}, null, 8,
|
|
480
|
+
}, null, 8, kt))), 128)),
|
|
478
481
|
t.$slots.pattern ? (r(!0), u(g, { key: 2 }, S(d.value, (a, s) => (r(), u("path", {
|
|
479
482
|
key: `arc_${s}`,
|
|
480
483
|
d: a.arcSlice,
|
|
481
484
|
fill: `url(#pattern_${b.value}_${s})`,
|
|
482
485
|
stroke: e.value.style.chart.backgroundColor,
|
|
483
486
|
"stroke-linecap": "round"
|
|
484
|
-
}, null, 8,
|
|
487
|
+
}, null, 8, bt))), 128)) : c("", !0),
|
|
485
488
|
e.value.style.chart.layout.indicatorArc.show ? (r(), u("path", {
|
|
486
489
|
key: 3,
|
|
487
|
-
d:
|
|
490
|
+
d: Ne.value,
|
|
488
491
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
489
|
-
}, null, 8,
|
|
492
|
+
}, null, 8, _t)) : c("", !0),
|
|
490
493
|
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (r(), u(g, { key: 4 }, [
|
|
491
494
|
(r(!0), u(g, null, S(d.value, (a, s) => (r(), u("path", {
|
|
492
495
|
id: `curve_${b.value}_${s}`,
|
|
493
496
|
d: `M ${n.value.x1},${n.value.y1} m -${C.value[s]},0 a ${C.value[s]},${C.value[s]} 0 1,1 ${2 * C.value[s]},0 a ${C.value[s]},${C.value[s]} 0 1,1 -${2 * C.value[s]},0`,
|
|
494
497
|
fill: "transparent"
|
|
495
|
-
}, null, 8,
|
|
498
|
+
}, null, 8, xt))), 256)),
|
|
496
499
|
(r(!0), u(g, null, S(d.value, (a, s) => (r(), u("text", {
|
|
497
500
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
498
501
|
"font-size": l.value.segmentFontSize,
|
|
@@ -501,49 +504,49 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
501
504
|
}, [
|
|
502
505
|
p("textPath", {
|
|
503
506
|
href: `#curve_${b.value}_${s}`,
|
|
504
|
-
startOffset:
|
|
505
|
-
}, O(a.name || ""), 9,
|
|
506
|
-
], 8,
|
|
507
|
+
startOffset: Me.value[s]
|
|
508
|
+
}, O(a.name || ""), 9, St)
|
|
509
|
+
], 8, wt))), 256))
|
|
507
510
|
], 64)) : c("", !0),
|
|
508
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), u(g, { key: 5 }, S(
|
|
511
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), u(g, { key: 5 }, S(Ce.value, (a, s) => (r(), u("text", {
|
|
509
512
|
x: a.center.endX,
|
|
510
513
|
y: a.center.endY,
|
|
511
|
-
"text-anchor": i(
|
|
514
|
+
"text-anchor": i(Ze)(a, !1, 12).anchor,
|
|
512
515
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
513
516
|
"font-size": l.value.segmentFontSize,
|
|
514
517
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
515
|
-
}, O(a.name || ""), 9,
|
|
516
|
-
e.value.style.chart.layout.track.useGradient ? (r(!0), u(g, { key: 6 }, S(
|
|
518
|
+
}, O(a.name || ""), 9, $t))), 256)) : c("", !0),
|
|
519
|
+
e.value.style.chart.layout.track.useGradient ? (r(!0), u(g, { key: 6 }, S(Pe.value, (a, s) => (r(), u("path", {
|
|
517
520
|
key: `arc_${s}`,
|
|
518
521
|
d: a.arcSlice,
|
|
519
522
|
fill: "#FFFFFF",
|
|
520
523
|
stroke: "none",
|
|
521
524
|
"stroke-linecap": "round",
|
|
522
525
|
filter: `url(#blur_${b.value})`
|
|
523
|
-
}, null, 8,
|
|
526
|
+
}, null, 8, zt))), 128)) : c("", !0),
|
|
524
527
|
e.value.style.chart.layout.segmentSeparators.show ? (r(), u(g, { key: 7 }, [
|
|
525
528
|
p("line", I(ye.value, {
|
|
526
529
|
stroke: e.value.style.chart.backgroundColor,
|
|
527
530
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
528
531
|
"stroke-linecap": "round"
|
|
529
|
-
}), null, 16,
|
|
532
|
+
}), null, 16, Ft),
|
|
530
533
|
p("line", I(ye.value, {
|
|
531
534
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
532
535
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
533
536
|
"stroke-linecap": "round"
|
|
534
|
-
}), null, 16,
|
|
537
|
+
}), null, 16, Ct),
|
|
535
538
|
(r(!0), u(g, null, S(fe.value, (a) => (r(), u("line", I({ ref_for: !0 }, a, {
|
|
536
539
|
stroke: e.value.style.chart.backgroundColor,
|
|
537
540
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
538
541
|
"stroke-linecap": "round"
|
|
539
|
-
}), null, 16,
|
|
542
|
+
}), null, 16, Ot))), 256)),
|
|
540
543
|
(r(!0), u(g, null, S(fe.value, (a) => (r(), u("line", I({ ref_for: !0 }, a, {
|
|
541
544
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
542
545
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
543
546
|
"stroke-linecap": "round"
|
|
544
|
-
}), null, 16,
|
|
547
|
+
}), null, 16, Mt))), 256))
|
|
545
548
|
], 64)) : c("", !0),
|
|
546
|
-
e.value.style.chart.layout.markers.show ? (r(), u("g",
|
|
549
|
+
e.value.style.chart.layout.markers.show ? (r(), u("g", Pt, [
|
|
547
550
|
(r(!0), u(g, null, S(d.value, (a, s) => (r(), u("text", {
|
|
548
551
|
x: i(z)({
|
|
549
552
|
centerX: n.value.x1,
|
|
@@ -572,7 +575,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
572
575
|
s: e.value.style.chart.layout.markers.suffix,
|
|
573
576
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
574
577
|
})
|
|
575
|
-
)), 9,
|
|
578
|
+
)), 9, Nt))), 256))
|
|
576
579
|
])) : c("", !0),
|
|
577
580
|
e.value.style.chart.layout.markers.show ? (r(), u("text", {
|
|
578
581
|
key: 9,
|
|
@@ -603,9 +606,9 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
603
606
|
s: e.value.style.chart.layout.markers.suffix,
|
|
604
607
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
605
608
|
})
|
|
606
|
-
)), 9,
|
|
609
|
+
)), 9, Xt)) : c("", !0),
|
|
607
610
|
e.value.style.chart.layout.pointer.show ? (r(), u(g, { key: 10 }, [
|
|
608
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), u("g",
|
|
611
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), u("g", It, [
|
|
609
612
|
isNaN(n.value.x2) ? c("", !0) : (r(), u("line", {
|
|
610
613
|
key: 0,
|
|
611
614
|
x1: n.value.x1,
|
|
@@ -615,7 +618,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
615
618
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
616
619
|
"stroke-width": l.value.pointerStrokeWidth,
|
|
617
620
|
"stroke-linecap": "round"
|
|
618
|
-
}, null, 8,
|
|
621
|
+
}, null, 8, Yt)),
|
|
619
622
|
isNaN(n.value.x2) ? c("", !0) : (r(), u("line", {
|
|
620
623
|
key: 1,
|
|
621
624
|
x1: n.value.x1,
|
|
@@ -625,7 +628,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
625
628
|
stroke: e.value.style.chart.layout.pointer.useRatingColor ? j.value : e.value.style.chart.layout.pointer.color,
|
|
626
629
|
"stroke-linecap": "round",
|
|
627
630
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
628
|
-
}, null, 8,
|
|
631
|
+
}, null, 8, At)),
|
|
629
632
|
!isNaN(n.value.x2) && e.value.style.chart.layout.track.useGradient ? (r(), u("line", {
|
|
630
633
|
key: 2,
|
|
631
634
|
x1: n.value.x1,
|
|
@@ -636,8 +639,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
636
639
|
"stroke-linecap": "round",
|
|
637
640
|
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
638
641
|
filter: `url(#blur_${b.value})`
|
|
639
|
-
}, null, 8,
|
|
640
|
-
])) : (r(), u("g",
|
|
642
|
+
}, null, 8, Rt)) : c("", !0)
|
|
643
|
+
])) : (r(), u("g", Gt, [
|
|
641
644
|
ve.value ? (r(), u("path", {
|
|
642
645
|
key: 0,
|
|
643
646
|
d: ve.value,
|
|
@@ -645,7 +648,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
645
648
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
646
649
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
647
650
|
"stroke-linejoin": "round"
|
|
648
|
-
}, null, 8,
|
|
651
|
+
}, null, 8, Et)) : c("", !0)
|
|
649
652
|
])),
|
|
650
653
|
p("circle", {
|
|
651
654
|
cx: l.value.width / 2,
|
|
@@ -654,7 +657,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
654
657
|
r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
|
|
655
658
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
656
659
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
657
|
-
}, null, 8,
|
|
660
|
+
}, null, 8, Ut)
|
|
658
661
|
], 64)) : c("", !0),
|
|
659
662
|
e.value.style.chart.legend.show ? (r(), u("text", {
|
|
660
663
|
key: 11,
|
|
@@ -673,13 +676,13 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
673
676
|
s: e.value.style.chart.legend.suffix,
|
|
674
677
|
r: e.value.style.chart.legend.roundingValue
|
|
675
678
|
})
|
|
676
|
-
)), 9,
|
|
679
|
+
)), 9, Wt)) : c("", !0),
|
|
677
680
|
w(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
678
|
-
], 14,
|
|
679
|
-
t.$slots.watermark ? (r(), u("div",
|
|
681
|
+
], 14, ct)) : c("", !0),
|
|
682
|
+
t.$slots.watermark ? (r(), u("div", jt, [
|
|
680
683
|
w(t.$slots, "watermark", D(B({ isPrinting: i(ue) || i(ne) })), void 0, !0)
|
|
681
684
|
])) : c("", !0),
|
|
682
|
-
Y.value ? c("", !0) : (r(), G(
|
|
685
|
+
Y.value ? c("", !0) : (r(), G(tt, {
|
|
683
686
|
key: 6,
|
|
684
687
|
config: {
|
|
685
688
|
type: "gauge",
|
|
@@ -705,9 +708,9 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
705
708
|
}, [
|
|
706
709
|
w(t.$slots, "source", {}, void 0, !0)
|
|
707
710
|
], 512)) : c("", !0)
|
|
708
|
-
], 46,
|
|
711
|
+
], 46, nt));
|
|
709
712
|
}
|
|
710
|
-
},
|
|
713
|
+
}, aa = /* @__PURE__ */ ut(Tt, [["__scopeId", "data-v-b25b19d0"]]);
|
|
711
714
|
export {
|
|
712
|
-
|
|
715
|
+
aa as default
|
|
713
716
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DEnRHTzk.cjs"),W=require("./useResponsive-YQYQrAZ_.cjs"),H=require("./usePrinter-dyVny55M.cjs"),he=require("./vue-ui-skeleton-_DN0U6W6.cjs"),me=require("./Title-Dk92HYMu.cjs"),Z=require("./useNestedProp-BNT60LxO.cjs"),fe=require("./PackageVersion-DJKkRuOD.cjs"),ye=require("./PenAndPaper-MTTJ3Gd9.cjs"),pe=require("./useUserOptionState-BgepsfED.cjs"),ke=require("./useChartAccessibility-Cm7nkzTG.cjs"),ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be=["id"],Be={key:0},_e=["xmlns","viewBox"],Se=["width","height"],xe=["id"],Ce=["stop-color"],we=["stop-color"],Ne=["stop-color"],Fe=["id"],Ee=["stdDeviation"],ze={key:1},$e=["d","fill","stroke"],Pe=["d","fill","stroke"],Oe=["d","fill"],Me=["id","d"],Ve=["fill","font-size","font-weight"],Xe=["href","startOffset"],Ae=["x","y","text-anchor","fill","font-size","font-weight"],Ie=["d","filter"],Ye=["stroke","stroke-width"],Re=["stroke","stroke-width"],Le=["stroke","stroke-width"],De=["stroke","stroke-width"],qe={key:8},Ge=["x","y","text-anchor","font-size","font-weight","fill"],je=["x","y","font-size","font-weight","fill"],Te={key:0},Ue=["x1","y1","x2","y2","stroke","stroke-width"],We=["x1","y1","x2","y2","stroke","stroke-width"],He=["x1","y1","x2","y2","stroke-width","filter"],Ze={key:1},Je=["d","fill","stroke","stroke-width"],Ke=["cx","cy","fill","r","stroke-width","stroke"],Qe=["x","y","font-size","fill"],et={key:5,class:"vue-data-ui-watermark"},tt={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(w,{expose:J}){const{vue_ui_gauge:K}=s.useConfig(),c=w,S=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length>0&&c.dataset.series&&c.dataset.series.length),m=e.ref(s.createUid()),Q=e.ref(null),z=e.ref(0),B=e.ref(null),$=e.ref(null),P=e.ref(null),O=e.ref(null),M=e.ref(null),V=e.ref(0),t=e.computed({get:()=>I(),set:a=>a}),{userOptionsVisible:N,setUserOptionsVisibility:X,keepUserOptionState:A}=pe.useUserOptionState({config:t.value}),{svgRef:ee}=ke.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>c.config,a=>{t.value=I(),N.value=!t.value.userOptions.showOnChartHover,G(),V.value+=1},{deep:!0});function I(){const a=Z.useNestedProp({userConfig:c.config,defaultConfig:K});return a.theme?{...Z.useNestedProp({userConfig:s.themes.vue_ui_gauge[a.theme]||c.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}const{isPrinting:Y,isImaging:R,generatePdf:L,generateImage:D}=H.usePrinter({elementId:`vue-ui-gauge_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),te=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ae=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),k=e.computed(()=>{if(!S.value||s.objectIsEmpty(c.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const a=[];(c.dataset.series||[]).forEach(l=>{a.push(l.from||1e-7),a.push(l.to||1e-7)});const n=Math.max(...a);return{...c.dataset,series:(c.dataset.series||[]).map((l,o)=>({...l,color:s.convertColorToHex(l.color)||ae.value[o]||s.palette[o],value:((l.to||0)-(l.from||0))/n*100}))}}),h=e.ref(512),r=e.ref({height:358.4,width:h.value,top:0,bottom:358.4,centerX:179.2,centerY:h.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),p=e.ref(0),d=e.ref(t.value.style.chart.animation.use?Math.min(...c.dataset.series.map(a=>a.from)):c.dataset.value);e.watch(()=>c.dataset.value,()=>{j(c.dataset.value)});const u=e.computed(()=>{const a=r.value.width/2,n=i.value.base,l=Math.PI*((d.value+0-p.value)/(b.value-p.value))+Math.PI;return{x1:a,y1:n,x2:a+i.value.pointerSize*r.value.pointerSize*.9*Math.cos(l),y2:n+i.value.pointerSize*r.value.pointerSize*.9*Math.sin(l)}}),q=e.computed(()=>{const a=r.value.width/2,n=i.value.base,l=Math.PI*((d.value+0-p.value)/(b.value-p.value))+Math.PI,o=a+i.value.pointerSize*r.value.pointerSize*.9*Math.cos(l),f=n+i.value.pointerSize*r.value.pointerSize*.9*Math.sin(l),y=r.value.pointerRadius,ie=a+y*Math.cos(l+Math.PI/2),ce=n+y*Math.sin(l+Math.PI/2),ve=a+y*Math.cos(l-Math.PI/2),de=n+y*Math.sin(l-Math.PI/2);return isNaN(o)?null:`M ${o},${f} ${ie},${ce} ${ve},${de} Z`}),F=e.computed(()=>{for(let a=0;a<k.value.series.length;a+=1){const{color:n,from:l,to:o}=k.value.series[a];if(d.value>=l&&d.value<=o)return n}return"#2D353C"}),x=e.ref(null);function G(){if(s.objectIsEmpty(c.dataset)?s.error({componentName:"VueUiGauge",type:"dataset"}):(s.getMissingDatasetAttributes({datasetObject:c.dataset,requiredAttributes:["value","series"]}).forEach(a=>{s.error({componentName:"VueUiGauge",type:"datasetAttribute",property:a})}),Object.hasOwn(c.dataset,"series")&&(c.dataset.series.length?c.dataset.series.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["from","to"]}).forEach(l=>{s.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:l,index:n})})}):s.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),j(c.dataset.value||0),t.value.responsive){const a=W.throttle(()=>{const{width:n,height:l}=W.useResponsive({chart:B.value,title:t.value.style.chart.title.text?$.value:null,legend:P.value,source:O.value,noTitle:M.value});requestAnimationFrame(()=>{r.value.width=n,r.value.height=l,r.value.centerX=n/2,r.value.centerY=h.value/2/358.4*l,r.value.bottom=l,r.value.labelFontSize=18/h.value*Math.min(l,n)<10?10:18/h.value*Math.min(l,n),r.value.legendFontSize=t.value.style.chart.legend.fontSize/h.value*Math.min(l,n)<14?14:t.value.style.chart.legend.fontSize/h.value*Math.min(l,n),r.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(l,n),r.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(l,n),r.value.pointerStrokeWidth=s.translateSize({relator:Math.min(n,l),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),r.value.markerOffset=s.translateSize({relator:Math.max(n,l),adjuster:h.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),r.value.segmentFontSize=s.translateSize({relator:Math.min(n,l),adjuster:h.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})})});x.value=new ResizeObserver(a),x.value.observe(B.value.parentNode)}}e.onMounted(()=>{G()}),e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});function j(a){const n=[];(k.value.series||[]).forEach(y=>{n.push(y.from||0),n.push(y.to||0)}),b.value=Math.max(...n),p.value=Math.min(...n);let l=t.value.style.chart.animation.speed;const o=Math.abs(a-d.value)/(l*60);function f(){d.value<a?d.value=Math.min(d.value+o,a):d.value>a&&(d.value=Math.max(d.value-o,a)),d.value!==a&&requestAnimationFrame(f)}f()}const i=e.computed(()=>{const a=t.value.responsive?Math.min(r.value.width,r.value.height):r.value.width,n=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:a/n,gradients:a/(n*1.1),base:t.value.responsive?r.value.height/2:r.value.height*.7,ratingBase:t.value.responsive?r.value.height/2+r.value.height/4:r.value.height*.9,pointerSize:t.value.responsive?Math.min(r.value.width,r.value.height)/3:r.value.width/3.2}}),v=e.computed(()=>s.makeDonut({series:k.value.series},r.value.width/2,i.value.base,i.value.arcs,i.value.arcs,1,1,1,180,109.9495,40*r.value.trackSize)),le=e.computed(()=>s.makeDonut({series:k.value.series},r.value.width/2,i.value.base,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*r.value.trackSize)),g=e.computed(()=>v.value.map(a=>i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio*(a.nameOffsetRatio||1))),T=e.computed(()=>{const{x:a,y:n}=s.offsetFromCenterPoint({initX:v.value[0].firstSeparator.x,initY:v.value[0].firstSeparator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:l,y:o}=s.offsetFromCenterPoint({initX:v.value[0].startX,initY:v.value[0].startY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:a,y1:n,x2:l,y2:o}}),U=e.computed(()=>v.value.map(a=>{const{x:n,y:l}=s.offsetFromCenterPoint({initX:a.separator.x,initY:a.separator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:o,y:f}=s.offsetFromCenterPoint({initX:a.endX,initY:a.endY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:n,y1:l,x2:o,y2:f}}));function re(a){if(a.reduce((f,y)=>f+y,0)>100)throw new Error("Total % must not exceed 100");const l=50;let o=0;return a.map(f=>(o+=f,`${o/100*l-f/4}%`))}const oe=e.computed(()=>re(v.value.map(a=>a.proportion*100))),ne=e.computed(()=>s.makeDonut({series:k.value.series},r.value.width/2,i.value.base,i.value.gradients,i.value.gradients,.95,1,1,180,110.02,2*r.value.trackSize)),se=e.computed(()=>{const a=p.value>=0?-p.value:Math.abs(p.value);return s.createHalfCircleArc({radius:t.value.style.chart.layout.indicatorArc.radius*r.value.trackSize,centerX:r.value.width/2,centerY:i.value.base,percentage:(d.value+a)/(b.value+a)})}),_=e.ref(!1);function ue(a){_.value=a,z.value+=1}const C=e.ref(!1);function E(){C.value=!C.value}return J({generatePdf:L,generateImage:D,toggleAnnotator:E}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${_.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:B,id:`vue-ui-gauge_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[0]||(n[0]=()=>e.unref(X)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ye.PenAndPaper,{key:0,parent:B.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:C.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),te.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:$,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(me._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&w.dataset.base?(e.openBlock(),e.createElementBlock("span",Be,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(w.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&S.value&&(e.unref(A)||e.unref(N))?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:Q,key:`user_options_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(R),isPrinting:e.unref(Y),uid:m.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:B.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:C.value,onToggleFullscreen:ue,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(D),onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(A)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:o})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:o})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ee,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(fe._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Se)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${m.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,Ce),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(s.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,we),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,Ne)],8,xe)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${m.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,Ee)],8,Fe)]),a.$slots.pattern?(e.openBlock(),e.createElementBlock("g",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(a.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:o,patternId:`pattern_${m.value}_${o}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${o}`,d:l.arcSlice,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,$e))),128)),a.$slots.pattern?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${o}`,d:l.arcSlice,fill:`url(#pattern_${m.value}_${o})`,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Pe))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.indicatorArc.show?(e.openBlock(),e.createElementBlock("path",{key:3,d:se.value,fill:t.value.style.chart.layout.indicatorArc.fill},null,8,Oe)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${m.value}_${o}`,d:`M ${u.value.x1},${u.value.y1} m -${g.value[o]},0 a ${g.value[o]},${g.value[o]} 0 1,1 ${2*g.value[o]},0 a ${g.value[o]},${g.value[o]} 0 1,1 -${2*g.value[o]},0`,fill:"transparent"},null,8,Me))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?l.color:t.value.style.chart.layout.segmentNames.color,"font-size":r.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${m.value}_${o}`,startOffset:oe.value[o]},e.toDisplayString(l.name||""),9,Xe)],8,Ve))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:5},e.renderList(le.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:l.center.endX,y:l.center.endY,"text-anchor":e.unref(s.calcMarkerOffsetX)(l,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?l.color:t.value.style.chart.layout.segmentNames.color,"font-size":r.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(l.name||""),9,Ae))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:6},e.renderList(ne.value,(l,o)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${o}`,d:l.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${m.value})`},null,8,Ie))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentSeparators.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Ye),e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Re),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,l=>(e.openBlock(),e.createElementBlock("line",e.mergeProps({ref_for:!0},l,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,l=>(e.openBlock(),e.createElementBlock("line",e.mergeProps({ref_for:!0},l,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,De))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(s.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:l.center.startX,initY:l.center.startY,offset:r.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:l.center.startX,initY:l.center.startY,offset:r.value.markerOffset}).y,"text-anchor":l.center.startX<u.value.x1-5?"end":l.center.startX>u.value.x1+5?"start":"middle","font-size":r.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.markers.formatter,l.from,e.unref(s.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:l.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Ge))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:9,x:e.unref(s.offsetFromCenterPoint)({centerX:r.value.width/2,centerY:i.value.base,initX:v.value.at(-1).endX,initY:v.value.at(-1).endY,offset:r.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:r.value.width/2,centerY:i.value.base,initX:v.value.at(-1).endX,initY:v.value.at(-1).endY,offset:r.value.markerOffset}).y,"text-anchor":"start","font-size":r.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,je)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:10},[t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",Te,[isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":r.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,Ue)),isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":r.value.pointerStrokeWidth*.7},null,8,We)),!isNaN(u.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":r.value.pointerStrokeWidth*.3,filter:`url(#blur_${m.value})`},null,8,He)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",Ze,[q.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:q.value,fill:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,Je)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:r.value.width/2,cy:i.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:r.value.pointerRadius<=0?1e-4:r.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,Ke)],64)):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:11,x:r.value.width/2,y:i.value.ratingBase,"text-anchor":"middle","font-size":r.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.legend.formatter,d.value,e.unref(s.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&d.value>0?"+":""),v:d.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,Qe)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,_e)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",et,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:P},[e.renderSlot(a.$slots,"legend",{legend:k.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:O,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,be))}},at=ge._export_sfc(tt,[["__scopeId","data-v-b25b19d0"]]);exports.default=at;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as b, useSlots as z, onMounted as g, computed as c, watch as G, createElementBlock as a, openBlock as s, normalizeStyle as L, createVNode as N, createCommentVNode as i, createElementVNode as t, Fragment as p, toDisplayString as y, unref as d } from "vue";
|
|
2
|
-
import { u as $, c as F, e as B, i as k, f as m } from "./index-
|
|
3
|
-
import { u as V } from "./useNestedProp-
|
|
4
|
-
import { _ as P } from "./PackageVersion-
|
|
2
|
+
import { u as $, c as F, e as B, i as k, f as m } from "./index-9EeNZMz1.js";
|
|
3
|
+
import { u as V } from "./useNestedProp-df_bKQEI.js";
|
|
4
|
+
import { _ as P } from "./PackageVersion-QRvxRYPv.js";
|
|
5
5
|
const U = ["viewBox", "width"], D = { key: 0 }, I = ["id"], M = ["stop-color"], S = ["stop-color"], E = ["stroke"], O = ["stroke"], A = ["width", "fill"], j = ["fill"], T = { key: 0 }, q = ["id"], H = ["stroke"], J = ["stroke", "stroke-dasharray", "stroke-dashoffset"], K = ["filter"], Q = ["stroke", "stroke-dasharray", "stroke-dashoffset"], R = ["fill"], ee = {
|
|
6
6
|
__name: "vue-ui-gizmo",
|
|
7
7
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DEnRHTzk.cjs"),k=require("./useNestedProp-BNT60LxO.cjs"),p=require("./PackageVersion-DJKkRuOD.cjs"),g=["viewBox","width"],v={key:0},_=["id"],y=["stop-color"],N=["stop-color"],C=["stroke"],V=["stroke"],w=["width","fill"],x=["fill"],B={key:0},E=["id"],b=["stroke"],L=["stroke","stroke-dasharray","stroke-dashoffset"],z=["filter"],G=["stroke","stroke-dasharray","stroke-dashoffset"],F=["fill"],P={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(i){const{vue_ui_gizmo:f}=a.useConfig(),o=i,n=e.ref(a.createUid()),h=e.useSlots();e.onMounted(()=>{c()}),e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiGizmo does not support the #chart-background slot.")});function c(){!o.dataset&&o.dataset!==0&&a.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")}const t=e.computed({get:()=>d(),set:s=>s});function d(){return k.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,s=>{t.value=d(),c()},{deep:!0});const u=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const r=2*Math.PI*35,m=r-o.dataset/100*r;return{dasharray:`${r} ${r}`,dashoffset:m}});return(s,r)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${u.value.width} ${u.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[e.createVNode(p._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",v,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${n.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,y),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,N)],8,_)])):e.createCommentVNode("",!0),t.value.type==="battery"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:"M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",stroke:t.value.stroke,"stroke-width":2,fill:"none"},null,8,C),e.createElementVNode("path",{d:"M 70 16 L 70 34",stroke:t.value.stroke,"stroke-width":2,fill:"none",style:{opacity:"0.5"}},null,8,V),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(i.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${n.value})`:t.value.color,rx:2},null,8,w),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,x:85,y:32,"text-anchor":"start","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,x)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="gauge"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",B,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},r[0]||(r[0]=[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1)]),8,E)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,b),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.color,"stroke-width":2*4,"stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,"stroke-linecap":"round",fill:"none",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,L),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${n.value})`},[e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.gradientColor,"stroke-width":1,fill:"none","stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,G)],8,z)):e.createCommentVNode("",!0),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:2,x:40,y:47,"text-anchor":"middle","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.formatter,o.dataset,e.unref(a.dataLabel)({v:o.dataset,s:"%"}))),9,F)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,g))}};exports.default=P;
|