vue-data-ui 2.4.49 → 2.4.51
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 +12 -0
- package/dist/{Arrow-CTukks_V.cjs → Arrow-2a_SwBgz.cjs} +1 -1
- package/dist/{Arrow-Q0cOmO5p.js → Arrow-BUz63pb2.js} +1 -1
- package/dist/{BaseIcon-2ZD3jgGz.cjs → BaseIcon-BASl_NFX.cjs} +1 -1
- package/dist/{BaseIcon-CaYP30Aq.js → BaseIcon-CmiukQBl.js} +1 -1
- package/dist/{DataTable-CO5C8Cmb.js → DataTable-DGf6RrOJ.js} +2 -2
- package/dist/{DataTable-kMUhutQ4.cjs → DataTable-G3ICK-5h.cjs} +1 -1
- package/dist/{Legend-FZN9UHoI.js → Legend-BLaZxMge.js} +1 -1
- package/dist/{Legend-DPHcmrzd.cjs → Legend-BiuPlEMg.cjs} +1 -1
- package/dist/{PackageVersion-rnWHRWGI.cjs → PackageVersion-Bj34UNnQ.cjs} +1 -1
- package/dist/{PackageVersion-DYk2hOG1.js → PackageVersion-CxJghxYD.js} +1 -1
- package/dist/{PenAndPaper-BQl9-uX0.cjs → PenAndPaper-D9yQnc0e.cjs} +1 -1
- package/dist/{PenAndPaper-BfgS_5ux.js → PenAndPaper-ZdZEumki.js} +3 -3
- package/dist/{Shape-BqkMzXqo.js → Shape-DIKzzpFm.js} +1 -1
- package/dist/{Shape-BblkpCyL.cjs → Shape-yducHWd0.cjs} +1 -1
- package/dist/{Slicer-yEeqKUDF.cjs → Slicer-BHS9W4MJ.cjs} +1 -1
- package/dist/{Slicer-DlgqsI5C.js → Slicer-Cxdl3cDt.js} +2 -2
- package/dist/{Title-5Vedk01J.cjs → Title-Bk_55doC.cjs} +1 -1
- package/dist/{Title-DED-PQ7X.js → Title-aSAft5dl.js} +1 -1
- package/dist/{Tooltip-DjCKBAC4.cjs → Tooltip-G7ENx87_.cjs} +1 -1
- package/dist/{Tooltip-CHseiJu8.js → Tooltip-smutPF--.js} +1 -1
- package/dist/{index-igxqCP2w.js → index-BbPeL8Gp.js} +5 -1
- package/dist/index-DhDYBLBe.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -1
- package/dist/types/vue-data-ui.d.ts +5 -1
- package/dist/{useNestedProp-CSVnZVwZ.js → useNestedProp-BN8claGG.js} +1 -1
- package/dist/{useNestedProp-CwpqC_aE.cjs → useNestedProp-BphUExEh.cjs} +1 -1
- package/dist/{usePrinter-DVgxBO4o.cjs → usePrinter-2_QjJFdH.cjs} +1 -1
- package/dist/{usePrinter-CnZYDQXB.js → usePrinter-DaybDVqP.js} +1 -1
- package/dist/useUserOptionState-BIvW1Kz7.js +17 -0
- package/dist/useUserOptionState-BgepsfED.cjs +1 -0
- package/dist/{vue-data-ui-BrRTkOqu.cjs → vue-data-ui-C5vsHRHD.cjs} +1 -1
- package/dist/{vue-data-ui-B--WWkUM.js → vue-data-ui-Ckbp-yIf.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DUgumRsg.cjs +19 -0
- package/dist/{vue-ui-3d-bar-OzzLYbUl.js → vue-ui-3d-bar-wDYs3sVe.js} +345 -339
- package/dist/{vue-ui-accordion-lF7yVkiT.js → vue-ui-accordion-5d5iVpr7.js} +3 -3
- package/dist/{vue-ui-accordion-CRVWlHxs.cjs → vue-ui-accordion-B7tNzRWB.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-5Vj8AtW1.js → vue-ui-age-pyramid-BH1khaaq.js} +260 -254
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +1 -0
- package/dist/{vue-ui-annotator-BmO78L3H.js → vue-ui-annotator-B9VKE_qz.js} +1 -1
- package/dist/{vue-ui-annotator-D8Hx1BFF.cjs → vue-ui-annotator-jXkB5XnD.cjs} +1 -1
- package/dist/{vue-ui-bullet-DwFD41hN.js → vue-ui-bullet-BLi9CSZw.js} +152 -146
- package/dist/vue-ui-bullet-QrXtipbT.cjs +34 -0
- package/dist/{vue-ui-candlestick-By609gwn.js → vue-ui-candlestick-Bjz1uFbv.js} +223 -217
- package/dist/vue-ui-candlestick-Da4ygGXR.cjs +2 -0
- package/dist/{vue-ui-carousel-table-wwMoteEN.js → vue-ui-carousel-table-B6zgTL-W.js} +160 -154
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +1 -0
- package/dist/vue-ui-chestnut-C_N7EbjQ.cjs +6 -0
- package/dist/{vue-ui-chestnut-hqorA5EW.js → vue-ui-chestnut-D5HpkuIa.js} +237 -231
- package/dist/{vue-ui-cursor-BCg5VZUb.cjs → vue-ui-cursor-A_siHYBc.cjs} +1 -1
- package/dist/{vue-ui-cursor-GSkn7N7Z.js → vue-ui-cursor-DZNIbvR2.js} +2 -2
- package/dist/{vue-ui-dashboard-Bkm9bcAc.cjs → vue-ui-dashboard-BfPJyiY9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DIoYWyXB.js → vue-ui-dashboard-DCqe4BZg.js} +2 -2
- package/dist/{vue-ui-digits-niqTltAv.js → vue-ui-digits-BEWCnojc.js} +2 -2
- package/dist/{vue-ui-digits-CpBBTAI9.cjs → vue-ui-digits-BEhLa3jI.cjs} +1 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-XQp6R0e_.js → vue-ui-donut-evolution-Cu6dmlT2.js} +300 -294
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +1 -0
- package/dist/{vue-ui-donut-DfufBrkk.js → vue-ui-donut-g5ZLhYPx.js} +376 -370
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DSS8sHHU.js → vue-ui-dumbbell-bb4-Ep6o.js} +256 -250
- package/dist/vue-ui-flow-CCvTnu7z.cjs +1 -0
- package/dist/{vue-ui-flow-BBNuPVgI.js → vue-ui-flow-hD0F6mTK.js} +164 -158
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +1 -0
- package/dist/{vue-ui-funnel-BDGggRXE.js → vue-ui-funnel-hcbE4yky.js} +178 -172
- package/dist/{vue-ui-galaxy-6Odi2CwM.js → vue-ui-galaxy-ByKjxVWV.js} +187 -181
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +1 -0
- package/dist/vue-ui-gauge-BFA_unjg.cjs +1 -0
- package/dist/{vue-ui-gauge-DeYvNVnR.js → vue-ui-gauge-PGirbe6O.js} +220 -214
- package/dist/{vue-ui-gizmo-DXQt_8D0.cjs → vue-ui-gizmo-CHMApil6.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BcAr2dTN.js → vue-ui-gizmo-ChSfBYZ_.js} +3 -3
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +1 -0
- package/dist/{vue-ui-heatmap-Btm1mK6D.js → vue-ui-heatmap-CK3FIWpo.js} +270 -264
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +1 -0
- package/dist/{vue-ui-history-plot-OY6N31Ka.js → vue-ui-history-plot-EmQ-Byiz.js} +236 -230
- package/dist/{vue-ui-kpi-CQIbWQMk.cjs → vue-ui-kpi-BdungaO2.cjs} +1 -1
- package/dist/{vue-ui-kpi-D5oNUDVm.js → vue-ui-kpi-DjC68pSz.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjqV22Co.js → vue-ui-mini-loader-CzrblCCD.js} +2 -2
- package/dist/{vue-ui-mini-loader-ByDKGMAp.cjs → vue-ui-mini-loader-jwL_pZjb.cjs} +1 -1
- package/dist/{vue-ui-molecule-FsLf3YTj.js → vue-ui-molecule-DBQJQs4Y.js} +294 -289
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +1 -0
- package/dist/{vue-ui-mood-radar-31BX-GNG.js → vue-ui-mood-radar-Ca9wPZpJ.js} +205 -199
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BMJW2oHk.js → vue-ui-nested-donuts-C8at93dN.js} +286 -280
- package/dist/vue-ui-nested-donuts-DEdS6dpj.cjs +17 -0
- package/dist/{vue-ui-onion-BUpGgnWA.js → vue-ui-onion-B-PXxNu6.js} +198 -192
- package/dist/vue-ui-onion-B2ioudP5.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-9I00rQEM.js → vue-ui-parallel-coordinate-plot-ByM3So9k.js} +236 -230
- package/dist/vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs +8 -0
- package/dist/{vue-ui-quadrant-CEmoMAL7.js → vue-ui-quadrant-BqOJBcsI.js} +255 -249
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +1 -0
- package/dist/{vue-ui-quick-chart-T_oeRTqY.js → vue-ui-quick-chart-BfXxT3KM.js} +474 -466
- package/dist/vue-ui-quick-chart-Bt9KA82P.cjs +15 -0
- package/dist/{vue-ui-radar-DG_Zir8w.js → vue-ui-radar-BKpD9xDr.js} +256 -250
- package/dist/vue-ui-radar-Czmsd_uv.cjs +1 -0
- package/dist/{vue-ui-rating-Juprijdi.cjs → vue-ui-rating-BE545aI4.cjs} +1 -1
- package/dist/{vue-ui-rating-gswAA28b.js → vue-ui-rating-DQRuqev5.js} +2 -2
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +1 -0
- package/dist/vue-ui-relation-circle-nZ2nBpWX.js +498 -0
- package/dist/vue-ui-rings-B7JzZ3ub.cjs +2 -0
- package/dist/{vue-ui-rings-D3g-ORch.js → vue-ui-rings-C1PV0873.js} +177 -172
- package/dist/vue-ui-scatter-CTI943ks.cjs +1 -0
- package/dist/{vue-ui-scatter-DBO-XViT.js → vue-ui-scatter-dgs1m3-2.js} +310 -304
- package/dist/{vue-ui-screenshot-3MDyr6v3.cjs → vue-ui-screenshot--cHV0jG3.cjs} +1 -1
- package/dist/{vue-ui-screenshot-K0a-DVD6.js → vue-ui-screenshot-Dxj0l8Jg.js} +1 -1
- package/dist/{vue-ui-skeleton-CWjNNx-k.js → vue-ui-skeleton-Bniq21d9.js} +3 -3
- package/dist/{vue-ui-skeleton-DUNkS05l.cjs → vue-ui-skeleton-lkPDknHn.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cbqg-N-L.cjs → vue-ui-smiley-CozXoiti.cjs} +1 -1
- package/dist/{vue-ui-smiley-MwX1c6qK.js → vue-ui-smiley-D4DAZIpA.js} +2 -2
- package/dist/{vue-ui-spark-trend-CN5JUPhn.cjs → vue-ui-spark-trend-CSqyvI_K.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D9eWTtbE.js → vue-ui-spark-trend-ZqrwhwqS.js} +5 -5
- package/dist/{vue-ui-sparkbar-IphZ8jXh.cjs → vue-ui-sparkbar-Bph8KIjk.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CPF7YNDd.js → vue-ui-sparkbar-q0G4GvFm.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B29V7ZTv.js → vue-ui-sparkgauge-DA_h9jcN.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BRMGqR9Z.cjs → vue-ui-sparkgauge-nSAW83dN.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BJTgOWF5.js → vue-ui-sparkhistogram-B1WyBiq_.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-rvYaVHmw.cjs → vue-ui-sparkhistogram-BLYhRNpt.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BI9jqI0h.cjs → vue-ui-sparkline-PNix1-R9.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DX79otAB.js → vue-ui-sparkline-ccfl0s3m.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DuollcwK.cjs → vue-ui-sparkstackbar-DpuvEumy.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-vP28A6AT.js → vue-ui-sparkstackbar-PNKwVRu8.js} +5 -5
- package/dist/{vue-ui-stackbar-DnJEgIaA.js → vue-ui-stackbar-BBYnF8qm.js} +367 -361
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +6 -0
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DqcHBwd_.js → vue-ui-strip-plot-TVlnzXFq.js} +269 -263
- package/dist/{vue-ui-table-BMJ0I5nr.cjs → vue-ui-table-CHdv3KuM.cjs} +1 -1
- package/dist/{vue-ui-table-D8cgqIJl.js → vue-ui-table-CsEajH9S.js} +1 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +1 -0
- package/dist/vue-ui-table-heatmap-CubRipoB.js +262 -0
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-B_Po0RuC.js → vue-ui-table-sparkline-YV8DUOqh.js} +256 -239
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +1 -0
- package/dist/{vue-ui-thermometer-C6nfW6uY.js → vue-ui-thermometer-DmMjSLc1.js} +170 -164
- package/dist/{vue-ui-timer-ldINTqND.cjs → vue-ui-timer-DteYgv9y.cjs} +1 -1
- package/dist/{vue-ui-timer-CfwmMRdZ.js → vue-ui-timer-DvE_nqd9.js} +5 -5
- package/dist/vue-ui-tiremarks-CCrkDgjX.js +323 -0
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +1 -0
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +1 -0
- package/dist/{vue-ui-treemap-CwMnkcOi.js → vue-ui-treemap-C4A4spvg.js} +243 -237
- package/dist/{vue-ui-vertical-bar-BZR4YOLh.js → vue-ui-vertical-bar-8iL1xiaz.js} +238 -232
- package/dist/vue-ui-vertical-bar-B60lSXNq.cjs +4 -0
- package/dist/{vue-ui-waffle-D2BccJmB.js → vue-ui-waffle-CaYNz-Kd.js} +316 -310
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +1 -0
- package/dist/vue-ui-wheel-BRR2rGou.js +305 -0
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +1 -0
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DiG8DHOr.js → vue-ui-word-cloud-y2GGxwoq.js} +246 -240
- package/dist/{vue-ui-xy-DicLnkBA.js → vue-ui-xy-CXoWP8bh.js} +708 -697
- package/dist/vue-ui-xy-CbM75yXK.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-D6CYL9A8.js → vue-ui-xy-canvas-D7MrUJj7.js} +334 -328
- package/dist/vue-ui-xy-canvas-DWvIvSry.cjs +9 -0
- package/package.json +1 -1
- package/dist/index-BHQZE19X.cjs +0 -9
- package/dist/vue-ui-3d-bar-BGVLnjCh.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Cv0Rddsx.cjs +0 -1
- package/dist/vue-ui-bullet-C0Q2Vs5p.cjs +0 -34
- package/dist/vue-ui-candlestick-C7kRHFF3.cjs +0 -2
- package/dist/vue-ui-carousel-table-1_Hy8sGL.cjs +0 -1
- package/dist/vue-ui-chestnut-D3LGylRp.cjs +0 -6
- package/dist/vue-ui-donut-CQEOtlxM.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Dg_XJyX8.cjs +0 -1
- package/dist/vue-ui-dumbbell-RAkNYRoJ.cjs +0 -9
- package/dist/vue-ui-flow-BUmSGSmR.cjs +0 -1
- package/dist/vue-ui-funnel-B9HR0owO.cjs +0 -1
- package/dist/vue-ui-galaxy-DmsMWB1a.cjs +0 -1
- package/dist/vue-ui-gauge-Dvv0v56Z.cjs +0 -1
- package/dist/vue-ui-heatmap-DZ02dS5q.cjs +0 -1
- package/dist/vue-ui-history-plot-DPQWcN0P.cjs +0 -1
- package/dist/vue-ui-molecule-C8O_ViVy.cjs +0 -1
- package/dist/vue-ui-mood-radar-4u98wGWl.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BPc_OBoe.cjs +0 -17
- package/dist/vue-ui-onion-IhkIHn1A.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-DzjggyLA.cjs +0 -8
- package/dist/vue-ui-quadrant-EZqQ-7Ev.cjs +0 -1
- package/dist/vue-ui-quick-chart-BKUUR-A1.cjs +0 -15
- package/dist/vue-ui-radar-QBwo6ybW.cjs +0 -1
- package/dist/vue-ui-relation-circle-BWX8zrfH.cjs +0 -1
- package/dist/vue-ui-relation-circle-DtnXrnOP.js +0 -492
- package/dist/vue-ui-rings-Damuv7g9.cjs +0 -2
- package/dist/vue-ui-scatter-RUeAe7Sx.cjs +0 -1
- package/dist/vue-ui-stackbar-BumFmZZF.cjs +0 -6
- package/dist/vue-ui-strip-plot-DupREfRd.cjs +0 -1
- package/dist/vue-ui-table-heatmap-D43pTFli.cjs +0 -1
- package/dist/vue-ui-table-heatmap-D4qeClXn.js +0 -256
- package/dist/vue-ui-table-sparkline-B7OPOium.cjs +0 -1
- package/dist/vue-ui-thermometer-CaV3JF3h.cjs +0 -1
- package/dist/vue-ui-tiremarks-BlyxL_IU.cjs +0 -1
- package/dist/vue-ui-tiremarks-iNKMnu3P.js +0 -317
- package/dist/vue-ui-treemap-YdRDlSHA.cjs +0 -1
- package/dist/vue-ui-vertical-bar-Bji3-X8i.cjs +0 -4
- package/dist/vue-ui-waffle-rO_LJaHR.cjs +0 -1
- package/dist/vue-ui-wheel-BTrpdV-C.cjs +0 -1
- package/dist/vue-ui-wheel-GqWFopE1.js +0 -299
- package/dist/vue-ui-word-cloud-DD-pKUen.cjs +0 -1
- package/dist/vue-ui-xy-C32KNdyx.cjs +0 -3
- package/dist/vue-ui-xy-canvas-9e630nJX.cjs +0 -9
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { computed as y, ref as d, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
import { _ as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { P as
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import { computed as y, ref as d, watch as me, onMounted as Ae, onBeforeUnmount as Re, openBlock as o, createElementBlock as u, normalizeClass as pe, normalizeStyle as j, unref as i, createBlock as R, createCommentVNode as h, withCtx as X, toDisplayString as C, createSlots as Ge, renderSlot as w, normalizeProps as L, guardReactiveProps as D, createVNode as Ee, createElementVNode as p, Fragment as x, renderList as S, mergeProps as G } from "vue";
|
|
2
|
+
import { u as Ue, c as We, t as Te, a as je, p as ge, b as Le, o as ke, d as De, e as E, g as be, m as B, I as z, X as Be, s as V, k as Ve, i as q, f as H, F as Z } from "./index-BbPeL8Gp.js";
|
|
3
|
+
import { t as qe, u as He } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { u as Ze, U as Je } from "./usePrinter-DaybDVqP.js";
|
|
5
|
+
import Ke from "./vue-ui-skeleton-Bniq21d9.js";
|
|
6
|
+
import { _ as Qe } from "./Title-aSAft5dl.js";
|
|
7
|
+
import { u as xe } from "./useNestedProp-BN8claGG.js";
|
|
8
|
+
import { _ as et } from "./PackageVersion-CxJghxYD.js";
|
|
9
|
+
import { P as tt } from "./PenAndPaper-ZdZEumki.js";
|
|
10
|
+
import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { _ as lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const st = ["id"], rt = { key: 0 }, ot = ["xmlns", "viewBox"], ut = ["id"], nt = ["stop-color"], it = ["stop-color"], ct = ["stop-color"], vt = ["id"], ht = ["stdDeviation"], dt = ["d", "fill", "stroke"], yt = ["id", "d"], ft = ["fill", "font-size", "font-weight"], mt = ["href", "startOffset"], pt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], gt = ["d", "filter"], kt = ["stroke", "stroke-width"], bt = ["stroke", "stroke-width"], xt = ["stroke", "stroke-width"], _t = ["stroke", "stroke-width"], wt = { key: 4 }, St = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], zt = ["x", "y", "font-size", "font-weight", "fill"], $t = { key: 6 }, Ft = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ct = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Mt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Ot = { key: 7 }, Pt = ["d", "fill", "stroke", "stroke-width"], Nt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Xt = ["x", "y", "font-size", "fill"], Yt = {
|
|
12
13
|
key: 5,
|
|
13
14
|
class: "vue-data-ui-watermark"
|
|
14
|
-
},
|
|
15
|
+
}, It = {
|
|
15
16
|
__name: "vue-ui-gauge",
|
|
16
17
|
props: {
|
|
17
18
|
config: {
|
|
@@ -27,32 +28,32 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const v =
|
|
32
|
-
get: () =>
|
|
31
|
+
setup(U, { expose: _e }) {
|
|
32
|
+
const v = U, { vue_ui_gauge: we } = Ue(), Y = y(() => !!v.dataset && Object.keys(v.dataset).length > 0 && v.dataset.series && v.dataset.series.length), _ = d(We()), Se = d(null), J = d(0), M = d(null), K = d(null), Q = d(null), ee = d(null), te = d(null), ae = d(0), e = y({
|
|
33
|
+
get: () => oe(),
|
|
33
34
|
set: (a) => a
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
e.value =
|
|
35
|
+
}), { userOptionsVisible: le, setUserOptionsVisibility: se, keepUserOptionState: re } = at({ config: e.value });
|
|
36
|
+
me(() => v.config, (a) => {
|
|
37
|
+
e.value = oe(), he(), ae.value += 1;
|
|
37
38
|
}, { deep: !0 });
|
|
38
|
-
function
|
|
39
|
-
const a =
|
|
39
|
+
function oe() {
|
|
40
|
+
const a = xe({
|
|
40
41
|
userConfig: v.config,
|
|
41
|
-
defaultConfig:
|
|
42
|
+
defaultConfig: we
|
|
42
43
|
});
|
|
43
44
|
return a.theme ? {
|
|
44
|
-
...
|
|
45
|
-
userConfig:
|
|
45
|
+
...xe({
|
|
46
|
+
userConfig: Te.vue_ui_gauge[a.theme] || v.config,
|
|
46
47
|
defaultConfig: a
|
|
47
48
|
}),
|
|
48
|
-
customPalette:
|
|
49
|
+
customPalette: je[a.theme] || ge
|
|
49
50
|
} : a;
|
|
50
51
|
}
|
|
51
|
-
const { isPrinting:
|
|
52
|
-
elementId: `vue-ui-gauge_${
|
|
52
|
+
const { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: ce } = Ze({
|
|
53
|
+
elementId: `vue-ui-gauge_${_.value}`,
|
|
53
54
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
54
|
-
}),
|
|
55
|
-
if (!Y.value ||
|
|
55
|
+
}), ze = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), $e = y(() => Le(e.value.customPalette)), $ = y(() => {
|
|
56
|
+
if (!Y.value || ke(v.dataset.series || {}))
|
|
56
57
|
return {
|
|
57
58
|
value: 0,
|
|
58
59
|
series: [
|
|
@@ -71,17 +72,17 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
71
72
|
...v.dataset,
|
|
72
73
|
series: (v.dataset.series || []).map((t, r) => ({
|
|
73
74
|
...t,
|
|
74
|
-
color:
|
|
75
|
+
color: De(t.color) || $e.value[r] || ge[r],
|
|
75
76
|
value: ((t.to || 0) - (t.from || 0)) / s * 100
|
|
76
77
|
}))
|
|
77
78
|
};
|
|
78
|
-
}),
|
|
79
|
+
}), g = d(512), l = d({
|
|
79
80
|
height: 358.4,
|
|
80
|
-
width:
|
|
81
|
+
width: g.value,
|
|
81
82
|
top: 0,
|
|
82
83
|
bottom: 358.4,
|
|
83
84
|
centerX: 179.2,
|
|
84
|
-
centerY:
|
|
85
|
+
centerY: g.value / 2,
|
|
85
86
|
labelFontSize: 18,
|
|
86
87
|
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
87
88
|
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
@@ -90,22 +91,22 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
90
91
|
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
91
92
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
92
93
|
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
93
|
-
}),
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
}), O = d(0), P = d(0), f = d(e.value.style.chart.animation.use ? 0 : v.dataset.value);
|
|
95
|
+
me(() => v.dataset.value, () => {
|
|
96
|
+
de(v.dataset.value);
|
|
96
97
|
});
|
|
97
98
|
const n = y(() => {
|
|
98
|
-
const a = l.value.width / 2, s =
|
|
99
|
+
const a = l.value.width / 2, s = c.value.base, t = Math.PI * ((f.value + 0 - P.value) / (O.value - P.value)) + Math.PI;
|
|
99
100
|
return {
|
|
100
101
|
x1: a,
|
|
101
102
|
y1: s,
|
|
102
|
-
x2: a +
|
|
103
|
-
y2: s +
|
|
103
|
+
x2: a + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t),
|
|
104
|
+
y2: s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t)
|
|
104
105
|
};
|
|
105
|
-
}),
|
|
106
|
-
const a = l.value.width / 2, s =
|
|
107
|
-
return isNaN(r) ? null : `M ${r},${k} ${
|
|
108
|
-
}),
|
|
106
|
+
}), ve = y(() => {
|
|
107
|
+
const a = l.value.width / 2, s = c.value.base, t = Math.PI * ((f.value + 0 - P.value) / (O.value - P.value)) + Math.PI, r = a + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t), k = s + c.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t), b = l.value.pointerRadius, Ne = a + b * Math.cos(t + Math.PI / 2), Xe = s + b * Math.sin(t + Math.PI / 2), Ye = a + b * Math.cos(t - Math.PI / 2), Ie = s + b * Math.sin(t - Math.PI / 2);
|
|
108
|
+
return isNaN(r) ? null : `M ${r},${k} ${Ne},${Xe} ${Ye},${Ie} Z`;
|
|
109
|
+
}), W = y(() => {
|
|
109
110
|
for (let a = 0; a < $.value.series.length; a += 1) {
|
|
110
111
|
const { color: s, from: t, to: r } = $.value.series[a];
|
|
111
112
|
if (f.value >= t && f.value <= r)
|
|
@@ -113,11 +114,11 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
113
114
|
}
|
|
114
115
|
return "#2D353C";
|
|
115
116
|
}), I = d(null);
|
|
116
|
-
function
|
|
117
|
-
if (
|
|
117
|
+
function he() {
|
|
118
|
+
if (ke(v.dataset) ? E({
|
|
118
119
|
componentName: "VueUiGauge",
|
|
119
120
|
type: "dataset"
|
|
120
|
-
}) : (
|
|
121
|
+
}) : (be({
|
|
121
122
|
datasetObject: v.dataset,
|
|
122
123
|
requiredAttributes: ["value", "series"]
|
|
123
124
|
}).forEach((a) => {
|
|
@@ -127,7 +128,7 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
127
128
|
property: a
|
|
128
129
|
});
|
|
129
130
|
}), Object.hasOwn(v.dataset, "series") && (v.dataset.series.length ? v.dataset.series.forEach((a, s) => {
|
|
130
|
-
|
|
131
|
+
be({
|
|
131
132
|
datasetObject: a,
|
|
132
133
|
requiredAttributes: ["from", "to"]
|
|
133
134
|
}).forEach((t) => {
|
|
@@ -142,48 +143,48 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
142
143
|
componentName: "VueUiGauge",
|
|
143
144
|
type: "datasetAttributeEmpty",
|
|
144
145
|
property: "series"
|
|
145
|
-
}))),
|
|
146
|
-
const a =
|
|
147
|
-
const { width: s, height: t } =
|
|
148
|
-
chart:
|
|
149
|
-
title: e.value.style.chart.title.text ?
|
|
150
|
-
legend:
|
|
151
|
-
source:
|
|
152
|
-
noTitle:
|
|
146
|
+
}))), de(v.dataset.value || 0), e.value.responsive) {
|
|
147
|
+
const a = qe(() => {
|
|
148
|
+
const { width: s, height: t } = He({
|
|
149
|
+
chart: M.value,
|
|
150
|
+
title: e.value.style.chart.title.text ? K.value : null,
|
|
151
|
+
legend: Q.value,
|
|
152
|
+
source: ee.value,
|
|
153
|
+
noTitle: te.value
|
|
153
154
|
});
|
|
154
|
-
l.value.width = s, l.value.height = t, l.value.centerX = s / 2, l.value.centerY =
|
|
155
|
+
l.value.width = s, l.value.height = t, l.value.centerX = s / 2, l.value.centerY = g.value / 2 / 358.4 * t, l.value.bottom = t, l.value.labelFontSize = 18 / g.value * Math.min(t, s) < 10 ? 10 : 18 / g.value * Math.min(t, s), l.value.legendFontSize = e.value.style.chart.legend.fontSize / g.value * Math.min(t, s) < 14 ? 14 : e.value.style.chart.legend.fontSize / g.value * Math.min(t, s), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / g.value * Math.min(t, s), l.value.trackSize = e.value.style.chart.layout.track.size / g.value * Math.min(t, s), l.value.pointerStrokeWidth = Z({
|
|
155
156
|
relator: Math.min(s, t),
|
|
156
|
-
adjuster:
|
|
157
|
+
adjuster: g.value,
|
|
157
158
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
158
159
|
threshold: 2,
|
|
159
160
|
fallback: 2
|
|
160
|
-
}), l.value.markerOffset =
|
|
161
|
+
}), l.value.markerOffset = Z({
|
|
161
162
|
relator: Math.max(s, t),
|
|
162
|
-
adjuster:
|
|
163
|
+
adjuster: g.value,
|
|
163
164
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
164
165
|
threshold: 2,
|
|
165
166
|
fallback: 2
|
|
166
|
-
}), l.value.segmentFontSize =
|
|
167
|
+
}), l.value.segmentFontSize = Z({
|
|
167
168
|
relator: Math.min(s, t),
|
|
168
|
-
adjuster:
|
|
169
|
+
adjuster: g.value,
|
|
169
170
|
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
170
171
|
threshold: 8,
|
|
171
172
|
fallback: 8
|
|
172
173
|
});
|
|
173
174
|
});
|
|
174
|
-
I.value = new ResizeObserver(a), I.value.observe(
|
|
175
|
+
I.value = new ResizeObserver(a), I.value.observe(M.value.parentNode);
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}),
|
|
178
|
+
Ae(() => {
|
|
179
|
+
he();
|
|
180
|
+
}), Re(() => {
|
|
180
181
|
I.value && I.value.disconnect();
|
|
181
182
|
});
|
|
182
|
-
function
|
|
183
|
+
function de(a) {
|
|
183
184
|
const s = [];
|
|
184
185
|
($.value.series || []).forEach((b) => {
|
|
185
186
|
s.push(b.from || 0), s.push(b.to || 0);
|
|
186
|
-
}),
|
|
187
|
+
}), O.value = Math.max(...s), P.value = Math.min(...s);
|
|
187
188
|
let t = e.value.style.chart.animation.speed;
|
|
188
189
|
const r = Math.abs(a - f.value) / (t * 60);
|
|
189
190
|
function k() {
|
|
@@ -191,7 +192,7 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
191
192
|
}
|
|
192
193
|
k();
|
|
193
194
|
}
|
|
194
|
-
const
|
|
195
|
+
const c = y(() => {
|
|
195
196
|
const a = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width, s = 2.5 / e.value.style.chart.layout.radiusRatio;
|
|
196
197
|
return {
|
|
197
198
|
arcs: a / s,
|
|
@@ -200,31 +201,31 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
200
201
|
ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
|
|
201
202
|
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
202
203
|
};
|
|
203
|
-
}), m = y(() =>
|
|
204
|
+
}), m = y(() => B(
|
|
204
205
|
{ series: $.value.series },
|
|
205
206
|
l.value.width / 2,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
c.value.base,
|
|
208
|
+
c.value.arcs,
|
|
209
|
+
c.value.arcs,
|
|
209
210
|
1,
|
|
210
211
|
1,
|
|
211
212
|
1,
|
|
212
213
|
180,
|
|
213
214
|
109.9495,
|
|
214
215
|
40 * l.value.trackSize
|
|
215
|
-
)),
|
|
216
|
+
)), Fe = y(() => B(
|
|
216
217
|
{ series: $.value.series },
|
|
217
218
|
l.value.width / 2,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
c.value.base,
|
|
220
|
+
c.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
221
|
+
c.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
221
222
|
1,
|
|
222
223
|
1,
|
|
223
224
|
1,
|
|
224
225
|
180,
|
|
225
226
|
109.9495,
|
|
226
227
|
40 * l.value.trackSize
|
|
227
|
-
)), F = y(() => m.value.map((a) =>
|
|
228
|
+
)), F = y(() => m.value.map((a) => c.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (a.nameOffsetRatio || 1))), ye = y(() => {
|
|
228
229
|
const { x: a, y: s } = z({
|
|
229
230
|
initX: m.value[0].firstSeparator.x,
|
|
230
231
|
initY: m.value[0].firstSeparator.y,
|
|
@@ -239,7 +240,7 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
239
240
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
240
241
|
});
|
|
241
242
|
return { x1: a, y1: s, x2: t, y2: r };
|
|
242
|
-
}),
|
|
243
|
+
}), fe = y(() => m.value.map((a) => {
|
|
243
244
|
const { x: s, y: t } = z({
|
|
244
245
|
initX: a.separator.x,
|
|
245
246
|
initY: a.separator.y,
|
|
@@ -255,67 +256,69 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
255
256
|
});
|
|
256
257
|
return { x1: s, y1: t, x2: r, y2: k };
|
|
257
258
|
}));
|
|
258
|
-
function
|
|
259
|
+
function Ce(a) {
|
|
259
260
|
if (a.reduce((k, b) => k + b, 0) > 100)
|
|
260
261
|
throw new Error("Total % must not exceed 100");
|
|
261
262
|
const t = 50;
|
|
262
263
|
let r = 0;
|
|
263
264
|
return a.map((k) => (r += k, `${r / 100 * t - k / 4}%`));
|
|
264
265
|
}
|
|
265
|
-
const
|
|
266
|
+
const Me = y(() => Ce(m.value.map((a) => a.proportion * 100))), Oe = y(() => B(
|
|
266
267
|
{ series: $.value.series },
|
|
267
268
|
l.value.width / 2,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
c.value.base,
|
|
270
|
+
c.value.gradients,
|
|
271
|
+
c.value.gradients,
|
|
271
272
|
0.95,
|
|
272
273
|
1,
|
|
273
274
|
1,
|
|
274
275
|
180,
|
|
275
276
|
110.02,
|
|
276
277
|
2 * l.value.trackSize
|
|
277
|
-
)),
|
|
278
|
-
function
|
|
279
|
-
|
|
278
|
+
)), N = d(!1);
|
|
279
|
+
function Pe(a) {
|
|
280
|
+
N.value = a, J.value += 1;
|
|
280
281
|
}
|
|
281
282
|
const A = d(!1);
|
|
282
|
-
function
|
|
283
|
+
function T() {
|
|
283
284
|
A.value = !A.value;
|
|
284
285
|
}
|
|
285
|
-
return
|
|
286
|
-
generatePdf:
|
|
287
|
-
generateImage:
|
|
288
|
-
toggleAnnotator:
|
|
286
|
+
return _e({
|
|
287
|
+
generatePdf: ie,
|
|
288
|
+
generateImage: ce,
|
|
289
|
+
toggleAnnotator: T
|
|
289
290
|
}), (a, s) => (o(), u("div", {
|
|
290
|
-
class:
|
|
291
|
+
class: pe(`vue-ui-gauge ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
291
292
|
ref_key: "gaugeChart",
|
|
292
|
-
ref:
|
|
293
|
-
id: `vue-ui-gauge_${
|
|
294
|
-
style:
|
|
293
|
+
ref: M,
|
|
294
|
+
id: `vue-ui-gauge_${_.value}`,
|
|
295
|
+
style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
296
|
+
onMouseenter: s[0] || (s[0] = () => i(se)(!0)),
|
|
297
|
+
onMouseleave: s[1] || (s[1] = () => i(se)(!1))
|
|
295
298
|
}, [
|
|
296
|
-
e.value.userOptions.buttons.annotator ? (o(), R(
|
|
299
|
+
e.value.userOptions.buttons.annotator ? (o(), R(tt, {
|
|
297
300
|
key: 0,
|
|
298
|
-
parent:
|
|
301
|
+
parent: M.value,
|
|
299
302
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
300
303
|
color: e.value.style.chart.color,
|
|
301
304
|
active: A.value,
|
|
302
|
-
onClose:
|
|
305
|
+
onClose: T
|
|
303
306
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : h("", !0),
|
|
304
|
-
|
|
307
|
+
ze.value ? (o(), u("div", {
|
|
305
308
|
key: 1,
|
|
306
309
|
ref_key: "noTitle",
|
|
307
|
-
ref:
|
|
310
|
+
ref: te,
|
|
308
311
|
class: "vue-data-ui-no-title-space",
|
|
309
312
|
style: "height:36px; width: 100%;background:transparent"
|
|
310
313
|
}, null, 512)) : h("", !0),
|
|
311
314
|
e.value.style.chart.title.text ? (o(), u("div", {
|
|
312
315
|
key: 2,
|
|
313
316
|
ref_key: "chartTitle",
|
|
314
|
-
ref:
|
|
317
|
+
ref: K,
|
|
315
318
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
316
319
|
}, [
|
|
317
|
-
(o(), R(
|
|
318
|
-
key: `title_${
|
|
320
|
+
(o(), R(Qe, {
|
|
321
|
+
key: `title_${ae.value}`,
|
|
319
322
|
config: {
|
|
320
323
|
title: {
|
|
321
324
|
cy: "gauge-div-title",
|
|
@@ -328,35 +331,38 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
328
331
|
}
|
|
329
332
|
}, {
|
|
330
333
|
default: X(() => [
|
|
331
|
-
e.value.translations.base &&
|
|
334
|
+
e.value.translations.base && U.dataset.base ? (o(), u("span", rt, C(e.value.translations.base) + ": " + C(U.dataset.base), 1)) : h("", !0)
|
|
332
335
|
]),
|
|
333
336
|
_: 1
|
|
334
337
|
}, 8, ["config"]))
|
|
335
338
|
], 512)) : h("", !0),
|
|
336
|
-
e.value.userOptions.show && Y.value ? (o(), R(
|
|
339
|
+
e.value.userOptions.show && Y.value && (i(re) || i(le)) ? (o(), R(Je, {
|
|
337
340
|
ref_key: "details",
|
|
338
|
-
ref:
|
|
339
|
-
key: `user_options_${
|
|
341
|
+
ref: Se,
|
|
342
|
+
key: `user_options_${J.value}`,
|
|
340
343
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
341
344
|
color: e.value.style.chart.color,
|
|
342
|
-
isImaging:
|
|
343
|
-
isPrinting:
|
|
344
|
-
uid:
|
|
345
|
+
isImaging: i(ne),
|
|
346
|
+
isPrinting: i(ue),
|
|
347
|
+
uid: _.value,
|
|
345
348
|
hasXls: !1,
|
|
346
349
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
347
350
|
hasImg: e.value.userOptions.buttons.img,
|
|
348
351
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
349
|
-
isFullscreen:
|
|
352
|
+
isFullscreen: N.value,
|
|
350
353
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
351
|
-
chartElement:
|
|
354
|
+
chartElement: M.value,
|
|
352
355
|
position: e.value.userOptions.position,
|
|
353
356
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
354
357
|
isAnnotation: A.value,
|
|
355
|
-
onToggleFullscreen:
|
|
356
|
-
onGeneratePdf:
|
|
357
|
-
onGenerateImage:
|
|
358
|
-
onToggleAnnotator:
|
|
359
|
-
|
|
358
|
+
onToggleFullscreen: Pe,
|
|
359
|
+
onGeneratePdf: i(ie),
|
|
360
|
+
onGenerateImage: i(ce),
|
|
361
|
+
onToggleAnnotator: T,
|
|
362
|
+
style: j({
|
|
363
|
+
visibility: i(re) ? i(le) ? "visible" : "hidden" : "visible"
|
|
364
|
+
})
|
|
365
|
+
}, Ge({ _: 2 }, [
|
|
360
366
|
a.$slots.optionPdf ? {
|
|
361
367
|
name: "optionPdf",
|
|
362
368
|
fn: X(() => [
|
|
@@ -385,127 +391,127 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
385
391
|
]),
|
|
386
392
|
key: "3"
|
|
387
393
|
} : void 0
|
|
388
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : h("", !0),
|
|
394
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
389
395
|
Y.value ? (o(), u("svg", {
|
|
390
396
|
key: 4,
|
|
391
|
-
xmlns:
|
|
392
|
-
class:
|
|
397
|
+
xmlns: i(Be),
|
|
398
|
+
class: pe({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
393
399
|
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
394
|
-
style:
|
|
400
|
+
style: j(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
395
401
|
}, [
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
id: `gradient_${
|
|
402
|
+
Ee(et),
|
|
403
|
+
p("defs", null, [
|
|
404
|
+
p("radialGradient", {
|
|
405
|
+
id: `gradient_${_.value}`,
|
|
400
406
|
cx: "50%",
|
|
401
407
|
cy: "50%",
|
|
402
408
|
r: "50%",
|
|
403
409
|
fx: "50%",
|
|
404
410
|
fy: "50%"
|
|
405
411
|
}, [
|
|
406
|
-
|
|
412
|
+
p("stop", {
|
|
407
413
|
offset: "0%",
|
|
408
|
-
"stop-color":
|
|
409
|
-
}, null, 8,
|
|
410
|
-
|
|
414
|
+
"stop-color": i(V)("#FFFFFF", 1)
|
|
415
|
+
}, null, 8, nt),
|
|
416
|
+
p("stop", {
|
|
411
417
|
offset: "80%",
|
|
412
|
-
"stop-color":
|
|
413
|
-
}, null, 8,
|
|
414
|
-
|
|
418
|
+
"stop-color": i(V)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
419
|
+
}, null, 8, it),
|
|
420
|
+
p("stop", {
|
|
415
421
|
offset: "100%",
|
|
416
|
-
"stop-color":
|
|
417
|
-
}, null, 8,
|
|
418
|
-
], 8,
|
|
422
|
+
"stop-color": i(V)("#FFFFFF", 1)
|
|
423
|
+
}, null, 8, ct)
|
|
424
|
+
], 8, ut)
|
|
419
425
|
]),
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
id: `blur_${
|
|
426
|
+
p("defs", null, [
|
|
427
|
+
p("filter", {
|
|
428
|
+
id: `blur_${_.value}`,
|
|
423
429
|
x: "-50%",
|
|
424
430
|
y: "-50%",
|
|
425
431
|
width: "200%",
|
|
426
432
|
height: "200%"
|
|
427
433
|
}, [
|
|
428
|
-
|
|
434
|
+
p("feGaussianBlur", {
|
|
429
435
|
in: "SourceGraphic",
|
|
430
436
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
431
|
-
}, null, 8,
|
|
432
|
-
], 8,
|
|
437
|
+
}, null, 8, ht)
|
|
438
|
+
], 8, vt)
|
|
433
439
|
]),
|
|
434
|
-
(o(!0), u(
|
|
440
|
+
(o(!0), u(x, null, S(m.value, (t, r) => (o(), u("path", {
|
|
435
441
|
key: `arc_${r}`,
|
|
436
442
|
d: t.arcSlice,
|
|
437
443
|
fill: t.color,
|
|
438
444
|
stroke: e.value.style.chart.backgroundColor,
|
|
439
445
|
"stroke-linecap": "round"
|
|
440
|
-
}, null, 8,
|
|
441
|
-
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (o(), u(
|
|
442
|
-
(o(!0), u(
|
|
443
|
-
id: `curve_${
|
|
446
|
+
}, null, 8, dt))), 128)),
|
|
447
|
+
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (o(), u(x, { key: 0 }, [
|
|
448
|
+
(o(!0), u(x, null, S(m.value, (t, r) => (o(), u("path", {
|
|
449
|
+
id: `curve_${_.value}_${r}`,
|
|
444
450
|
d: `M ${n.value.x1},${n.value.y1} m -${F.value[r]},0 a ${F.value[r]},${F.value[r]} 0 1,1 ${2 * F.value[r]},0 a ${F.value[r]},${F.value[r]} 0 1,1 -${2 * F.value[r]},0`,
|
|
445
451
|
fill: "transparent"
|
|
446
|
-
}, null, 8,
|
|
447
|
-
(o(!0), u(
|
|
452
|
+
}, null, 8, yt))), 256)),
|
|
453
|
+
(o(!0), u(x, null, S(m.value, (t, r) => (o(), u("text", {
|
|
448
454
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? t.color : e.value.style.chart.layout.segmentNames.color,
|
|
449
455
|
"font-size": l.value.segmentFontSize,
|
|
450
456
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
451
457
|
"text-anchor": "middle"
|
|
452
458
|
}, [
|
|
453
|
-
|
|
454
|
-
href: `#curve_${
|
|
455
|
-
startOffset:
|
|
456
|
-
}, C(t.name || ""), 9,
|
|
457
|
-
], 8,
|
|
459
|
+
p("textPath", {
|
|
460
|
+
href: `#curve_${_.value}_${r}`,
|
|
461
|
+
startOffset: Me.value[r]
|
|
462
|
+
}, C(t.name || ""), 9, mt)
|
|
463
|
+
], 8, ft))), 256))
|
|
458
464
|
], 64)) : h("", !0),
|
|
459
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (o(!0), u(
|
|
465
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (o(!0), u(x, { key: 1 }, S(Fe.value, (t, r) => (o(), u("text", {
|
|
460
466
|
x: t.center.endX,
|
|
461
467
|
y: t.center.endY,
|
|
462
|
-
"text-anchor":
|
|
468
|
+
"text-anchor": i(Ve)(t, !1, 12).anchor,
|
|
463
469
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? t.color : e.value.style.chart.layout.segmentNames.color,
|
|
464
470
|
"font-size": l.value.segmentFontSize,
|
|
465
471
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
466
|
-
}, C(t.name || ""), 9,
|
|
467
|
-
e.value.style.chart.layout.track.useGradient ? (o(!0), u(
|
|
472
|
+
}, C(t.name || ""), 9, pt))), 256)) : h("", !0),
|
|
473
|
+
e.value.style.chart.layout.track.useGradient ? (o(!0), u(x, { key: 2 }, S(Oe.value, (t, r) => (o(), u("path", {
|
|
468
474
|
key: `arc_${r}`,
|
|
469
475
|
d: t.arcSlice,
|
|
470
476
|
fill: "#FFFFFF",
|
|
471
477
|
stroke: "none",
|
|
472
478
|
"stroke-linecap": "round",
|
|
473
|
-
filter: `url(#blur_${
|
|
474
|
-
}, null, 8,
|
|
475
|
-
e.value.style.chart.layout.segmentSeparators.show ? (o(), u(
|
|
476
|
-
|
|
479
|
+
filter: `url(#blur_${_.value})`
|
|
480
|
+
}, null, 8, gt))), 128)) : h("", !0),
|
|
481
|
+
e.value.style.chart.layout.segmentSeparators.show ? (o(), u(x, { key: 3 }, [
|
|
482
|
+
p("line", G(ye.value, {
|
|
477
483
|
stroke: e.value.style.chart.backgroundColor,
|
|
478
484
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
479
485
|
"stroke-linecap": "round"
|
|
480
|
-
}), null, 16,
|
|
481
|
-
|
|
486
|
+
}), null, 16, kt),
|
|
487
|
+
p("line", G(ye.value, {
|
|
482
488
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
483
489
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
484
490
|
"stroke-linecap": "round"
|
|
485
|
-
}), null, 16,
|
|
486
|
-
(o(!0), u(
|
|
491
|
+
}), null, 16, bt),
|
|
492
|
+
(o(!0), u(x, null, S(fe.value, (t) => (o(), u("line", G(t, {
|
|
487
493
|
stroke: e.value.style.chart.backgroundColor,
|
|
488
494
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
489
495
|
"stroke-linecap": "round"
|
|
490
|
-
}), null, 16,
|
|
491
|
-
(o(!0), u(
|
|
496
|
+
}), null, 16, xt))), 256)),
|
|
497
|
+
(o(!0), u(x, null, S(fe.value, (t) => (o(), u("line", G(t, {
|
|
492
498
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
493
499
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
494
500
|
"stroke-linecap": "round"
|
|
495
|
-
}), null, 16,
|
|
501
|
+
}), null, 16, _t))), 256))
|
|
496
502
|
], 64)) : h("", !0),
|
|
497
|
-
e.value.style.chart.layout.markers.show ? (o(), u("g",
|
|
498
|
-
(o(!0), u(
|
|
499
|
-
x:
|
|
503
|
+
e.value.style.chart.layout.markers.show ? (o(), u("g", wt, [
|
|
504
|
+
(o(!0), u(x, null, S(m.value, (t, r) => (o(), u("text", {
|
|
505
|
+
x: i(z)({
|
|
500
506
|
centerX: n.value.x1,
|
|
501
|
-
centerY:
|
|
507
|
+
centerY: c.value.base,
|
|
502
508
|
initX: t.center.startX,
|
|
503
509
|
initY: t.center.startY,
|
|
504
510
|
offset: l.value.markerOffset
|
|
505
511
|
}).x,
|
|
506
|
-
y:
|
|
512
|
+
y: i(z)({
|
|
507
513
|
centerX: n.value.x1,
|
|
508
|
-
centerY:
|
|
514
|
+
centerY: c.value.base,
|
|
509
515
|
initX: t.center.startX,
|
|
510
516
|
initY: t.center.startY,
|
|
511
517
|
offset: l.value.markerOffset
|
|
@@ -514,29 +520,29 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
514
520
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
515
521
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
516
522
|
fill: e.value.style.chart.layout.markers.color
|
|
517
|
-
}, C(
|
|
523
|
+
}, C(i(q)(
|
|
518
524
|
e.value.style.chart.layout.markers.formatter,
|
|
519
525
|
t.from,
|
|
520
|
-
|
|
526
|
+
i(H)({
|
|
521
527
|
p: e.value.style.chart.layout.markers.prefix,
|
|
522
528
|
v: t.from,
|
|
523
529
|
s: e.value.style.chart.layout.markers.suffix,
|
|
524
530
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
525
531
|
})
|
|
526
|
-
)), 9,
|
|
532
|
+
)), 9, St))), 256))
|
|
527
533
|
])) : h("", !0),
|
|
528
534
|
e.value.style.chart.layout.markers.show ? (o(), u("text", {
|
|
529
535
|
key: 5,
|
|
530
|
-
x:
|
|
536
|
+
x: i(z)({
|
|
531
537
|
centerX: l.value.width / 2,
|
|
532
|
-
centerY:
|
|
538
|
+
centerY: c.value.base,
|
|
533
539
|
initX: m.value.at(-1).endX,
|
|
534
540
|
initY: m.value.at(-1).endY,
|
|
535
541
|
offset: l.value.markerOffset
|
|
536
542
|
}).x,
|
|
537
|
-
y:
|
|
543
|
+
y: i(z)({
|
|
538
544
|
centerX: l.value.width / 2,
|
|
539
|
-
centerY:
|
|
545
|
+
centerY: c.value.base,
|
|
540
546
|
initX: m.value.at(-1).endX,
|
|
541
547
|
initY: m.value.at(-1).endY,
|
|
542
548
|
offset: l.value.markerOffset
|
|
@@ -545,17 +551,17 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
545
551
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
546
552
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
547
553
|
fill: e.value.style.chart.layout.markers.color
|
|
548
|
-
}, C(
|
|
554
|
+
}, C(i(q)(
|
|
549
555
|
e.value.style.chart.layout.markers.formatter,
|
|
550
|
-
|
|
551
|
-
|
|
556
|
+
O.value,
|
|
557
|
+
i(H)({
|
|
552
558
|
p: e.value.style.chart.layout.markers.prefix,
|
|
553
|
-
v:
|
|
559
|
+
v: O.value,
|
|
554
560
|
s: e.value.style.chart.layout.markers.suffix,
|
|
555
561
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
556
562
|
})
|
|
557
|
-
)), 9,
|
|
558
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (o(), u("g",
|
|
563
|
+
)), 9, zt)) : h("", !0),
|
|
564
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (o(), u("g", $t, [
|
|
559
565
|
isNaN(n.value.x2) ? h("", !0) : (o(), u("line", {
|
|
560
566
|
key: 0,
|
|
561
567
|
x1: n.value.x1,
|
|
@@ -565,17 +571,17 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
565
571
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
566
572
|
"stroke-width": l.value.pointerStrokeWidth,
|
|
567
573
|
"stroke-linecap": "round"
|
|
568
|
-
}, null, 8,
|
|
574
|
+
}, null, 8, Ft)),
|
|
569
575
|
isNaN(n.value.x2) ? h("", !0) : (o(), u("line", {
|
|
570
576
|
key: 1,
|
|
571
577
|
x1: n.value.x1,
|
|
572
578
|
y1: n.value.y1,
|
|
573
579
|
x2: n.value.x2,
|
|
574
580
|
y2: n.value.y2,
|
|
575
|
-
stroke: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
581
|
+
stroke: e.value.style.chart.layout.pointer.useRatingColor ? W.value : e.value.style.chart.layout.pointer.color,
|
|
576
582
|
"stroke-linecap": "round",
|
|
577
583
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
578
|
-
}, null, 8,
|
|
584
|
+
}, null, 8, Ct)),
|
|
579
585
|
!isNaN(n.value.x2) && e.value.style.chart.layout.track.useGradient ? (o(), u("line", {
|
|
580
586
|
key: 2,
|
|
581
587
|
x1: n.value.x1,
|
|
@@ -585,50 +591,50 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
585
591
|
stroke: "white",
|
|
586
592
|
"stroke-linecap": "round",
|
|
587
593
|
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
588
|
-
filter: `url(#blur_${
|
|
589
|
-
}, null, 8,
|
|
590
|
-
])) : (o(), u("g",
|
|
591
|
-
|
|
594
|
+
filter: `url(#blur_${_.value})`
|
|
595
|
+
}, null, 8, Mt)) : h("", !0)
|
|
596
|
+
])) : (o(), u("g", Ot, [
|
|
597
|
+
ve.value ? (o(), u("path", {
|
|
592
598
|
key: 0,
|
|
593
|
-
d:
|
|
594
|
-
fill: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
599
|
+
d: ve.value,
|
|
600
|
+
fill: e.value.style.chart.layout.pointer.useRatingColor ? W.value : e.value.style.chart.layout.pointer.color,
|
|
595
601
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
596
602
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
597
603
|
"stroke-linejoin": "round"
|
|
598
|
-
}, null, 8,
|
|
604
|
+
}, null, 8, Pt)) : h("", !0)
|
|
599
605
|
])),
|
|
600
|
-
|
|
606
|
+
p("circle", {
|
|
601
607
|
cx: l.value.width / 2,
|
|
602
|
-
cy:
|
|
608
|
+
cy: c.value.base,
|
|
603
609
|
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
604
610
|
r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
|
|
605
611
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
606
612
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
607
|
-
}, null, 8,
|
|
613
|
+
}, null, 8, Nt),
|
|
608
614
|
e.value.style.chart.legend.show ? (o(), u("text", {
|
|
609
615
|
key: 8,
|
|
610
616
|
x: l.value.width / 2,
|
|
611
|
-
y:
|
|
617
|
+
y: c.value.ratingBase,
|
|
612
618
|
"text-anchor": "middle",
|
|
613
619
|
"font-size": l.value.legendFontSize,
|
|
614
620
|
"font-weight": "bold",
|
|
615
|
-
fill: e.value.style.chart.legend.useRatingColor ?
|
|
616
|
-
}, C(
|
|
621
|
+
fill: e.value.style.chart.legend.useRatingColor ? W.value : e.value.style.chart.legend.color
|
|
622
|
+
}, C(i(q)(
|
|
617
623
|
e.value.style.chart.legend.formatter,
|
|
618
624
|
f.value,
|
|
619
|
-
|
|
625
|
+
i(H)({
|
|
620
626
|
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
|
|
621
627
|
v: f.value,
|
|
622
628
|
s: e.value.style.chart.legend.suffix,
|
|
623
629
|
r: e.value.style.chart.legend.roundingValue
|
|
624
630
|
})
|
|
625
|
-
)), 9,
|
|
631
|
+
)), 9, Xt)) : h("", !0),
|
|
626
632
|
w(a.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
627
|
-
], 14,
|
|
628
|
-
a.$slots.watermark ? (o(), u("div",
|
|
629
|
-
w(a.$slots, "watermark", L(D({ isPrinting:
|
|
633
|
+
], 14, ot)) : h("", !0),
|
|
634
|
+
a.$slots.watermark ? (o(), u("div", Yt, [
|
|
635
|
+
w(a.$slots, "watermark", L(D({ isPrinting: i(ue) || i(ne) })), void 0, !0)
|
|
630
636
|
])) : h("", !0),
|
|
631
|
-
Y.value ? h("", !0) : (o(), R(
|
|
637
|
+
Y.value ? h("", !0) : (o(), R(Ke, {
|
|
632
638
|
key: 6,
|
|
633
639
|
config: {
|
|
634
640
|
type: "gauge",
|
|
@@ -640,23 +646,23 @@ const et = ["id"], tt = { key: 0 }, at = ["xmlns", "viewBox"], lt = ["id"], rt =
|
|
|
640
646
|
}
|
|
641
647
|
}
|
|
642
648
|
}, null, 8, ["config"])),
|
|
643
|
-
|
|
649
|
+
p("div", {
|
|
644
650
|
ref_key: "chartLegend",
|
|
645
|
-
ref:
|
|
651
|
+
ref: Q
|
|
646
652
|
}, [
|
|
647
653
|
w(a.$slots, "legend", { legend: $.value }, void 0, !0)
|
|
648
654
|
], 512),
|
|
649
655
|
a.$slots.source ? (o(), u("div", {
|
|
650
656
|
key: 7,
|
|
651
657
|
ref_key: "source",
|
|
652
|
-
ref:
|
|
658
|
+
ref: ee,
|
|
653
659
|
dir: "auto"
|
|
654
660
|
}, [
|
|
655
661
|
w(a.$slots, "source", {}, void 0, !0)
|
|
656
662
|
], 512)) : h("", !0)
|
|
657
|
-
],
|
|
663
|
+
], 46, st));
|
|
658
664
|
}
|
|
659
|
-
},
|
|
665
|
+
}, Vt = /* @__PURE__ */ lt(It, [["__scopeId", "data-v-f28783d9"]]);
|
|
660
666
|
export {
|
|
661
|
-
|
|
667
|
+
Vt as default
|
|
662
668
|
};
|