vue-data-ui 2.4.89 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/{Arrow-CbP9kLxJ.cjs → Arrow-CDKNBZrn.cjs} +1 -1
- package/dist/{Arrow-CuAfInZx.js → Arrow-DO1Kr0tq.js} +1 -1
- package/dist/{BaseIcon-C8eZuK3O.cjs → BaseIcon-BKYwMJ4Y.cjs} +1 -1
- package/dist/{BaseIcon-BpNWrQFd.js → BaseIcon-DVY6e_YL.js} +4 -3
- package/dist/{DataTable-CBJXWv2y.js → DataTable-D4_TjSBJ.js} +2 -2
- package/dist/{DataTable-D-lEfCvI.cjs → DataTable-ZowHAjXC.cjs} +1 -1
- package/dist/{Legend-BHqhIxpn.cjs → Legend-CcoLuZn0.cjs} +1 -1
- package/dist/{Legend-BSpbp1BZ.js → Legend-K7NRkzGf.js} +2 -2
- package/dist/PackageVersion-Cun_qdX7.cjs +1 -0
- package/dist/{PackageVersion-DtBpSOiQ.js → PackageVersion-DKr8jVlI.js} +1 -1
- package/dist/{PenAndPaper-B2XkoPXE.js → PenAndPaper-CurhQVkh.js} +3 -3
- package/dist/{PenAndPaper-JJPSlM7l.cjs → PenAndPaper-u46MyY7W.cjs} +1 -1
- package/dist/{Shape-Do_AzV1G.cjs → Shape-B6dlN2je.cjs} +1 -1
- package/dist/{Shape-BOPYNx7w.js → Shape-C4LyHNQ3.js} +1 -1
- package/dist/{Slicer-Ztz1Ij0w.cjs → Slicer-BIzpsKb9.cjs} +1 -1
- package/dist/{Slicer-ChE3bif9.js → Slicer-CP2dQhd5.js} +2 -2
- package/dist/{Title-ccoiJ0mq.js → Title-C4aoNP1T.js} +1 -1
- package/dist/{Title-0PbYWvbk.cjs → Title-bDp_4dQV.cjs} +1 -1
- package/dist/{Tooltip-DvT_JgqK.js → Tooltip-CG6ZX21C.js} +1 -1
- package/dist/{Tooltip-yfpr967Z.cjs → Tooltip-fEuHWstj.cjs} +1 -1
- package/dist/documentation/installation.md +2 -1
- package/dist/index-CHCA909R.cjs +9 -0
- package/dist/{index-CbMgQMOZ.js → index-DAAFXQJj.js} +709 -542
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1140 -384
- package/dist/types/vue-data-ui.d.ts +1140 -384
- package/dist/{useNestedProp-BbHX6tgE.cjs → useNestedProp--1nKK7i0.cjs} +1 -1
- package/dist/{useNestedProp-vYrmxXEi.js → useNestedProp-DMtJzMiX.js} +1 -1
- package/dist/{usePrinter-sMoxYV4s.js → usePrinter-BvlefWMW.js} +1 -1
- package/dist/{usePrinter-CCvLCahd.cjs → usePrinter-xicwiw8r.cjs} +1 -1
- package/dist/{vue-data-ui-cjdjZcIN.js → vue-data-ui-59LZYiyy.js} +68 -66
- package/dist/vue-data-ui-DfZfDAuq.cjs +9 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +59 -58
- package/dist/{vue-ui-3d-bar-BCUFEN3E.js → vue-ui-3d-bar-Bm56SoLy.js} +41 -41
- package/dist/{vue-ui-3d-bar-BIxPk-3O.cjs → vue-ui-3d-bar-CZlGwiDq.cjs} +11 -11
- package/dist/{vue-ui-accordion-D0YEkQP_.cjs → vue-ui-accordion-B4PyxVUm.cjs} +1 -1
- package/dist/{vue-ui-accordion-DXPXhPPW.js → vue-ui-accordion-B67N9Oo8.js} +3 -3
- package/dist/vue-ui-age-pyramid-D9DN4SYa.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Bu2gLwi_.js → vue-ui-age-pyramid-DCMUbrYc.js} +12 -12
- package/dist/{vue-ui-annotator-np4TLsbB.cjs → vue-ui-annotator-CNrWYokB.cjs} +1 -1
- package/dist/{vue-ui-annotator-rRlHgjug.js → vue-ui-annotator-MuRFw529.js} +1 -1
- package/dist/{vue-ui-bullet-BG4ZoJWg.js → vue-ui-bullet-Bojb2p0l.js} +42 -42
- package/dist/vue-ui-bullet-DJjM56tB.cjs +34 -0
- package/dist/{vue-ui-candlestick-zm-vNhJF.cjs → vue-ui-candlestick-B3J5_Q_K.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bs_FB1xf.js → vue-ui-candlestick-DXMPVZ0k.js} +13 -13
- package/dist/{vue-ui-carousel-table-D73qjY94.js → vue-ui-carousel-table-CQAWsXet.js} +26 -26
- package/dist/vue-ui-carousel-table-WNkO6kVE.cjs +1 -0
- package/dist/{vue-ui-chestnut-BKka1suh.js → vue-ui-chestnut-CChxV7D2.js} +11 -11
- package/dist/{vue-ui-chestnut-BZ7WKn-P.cjs → vue-ui-chestnut-DUHyQSIc.cjs} +2 -2
- package/dist/vue-ui-circle-pack-Bo9NTyE5.cjs +1 -0
- package/dist/vue-ui-circle-pack-feW9MRNc.js +639 -0
- package/dist/{vue-ui-cursor-CKQ7lIEU.js → vue-ui-cursor-CTNCoeO1.js} +2 -2
- package/dist/{vue-ui-cursor-BvDKJ-EE.cjs → vue-ui-cursor-Y79oTXbN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CLDULZmZ.js → vue-ui-dashboard-CTk7cXk3.js} +2 -2
- package/dist/{vue-ui-dashboard-CU18bFKg.cjs → vue-ui-dashboard-ht0wjO32.cjs} +1 -1
- package/dist/{vue-ui-digits-_Q3BPnPQ.js → vue-ui-digits-CRfqQd-4.js} +2 -2
- package/dist/{vue-ui-digits-ZsDxljaT.cjs → vue-ui-digits-CSzsY3pv.cjs} +1 -1
- package/dist/{vue-ui-donut-uSvi7mes.js → vue-ui-donut-D6U1P8MA.js} +15 -15
- package/dist/vue-ui-donut-DhQt8Zro.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DeaRL3Qp.js → vue-ui-donut-evolution-BSk3uqC8.js} +42 -42
- package/dist/vue-ui-donut-evolution-ZOfJ13fG.cjs +1 -0
- package/dist/vue-ui-dumbbell-Cc2vQuKa.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DxOC8F_T.js → vue-ui-dumbbell-DwNJ0t9t.js} +12 -12
- package/dist/vue-ui-flow-BbKP10ov.cjs +1 -0
- package/dist/{vue-ui-flow-Cli1Nia2.js → vue-ui-flow-CQisc_LK.js} +11 -11
- package/dist/{vue-ui-funnel-DUSetrwZ.js → vue-ui-funnel-DA82mX-l.js} +12 -12
- package/dist/vue-ui-funnel-DybxnhPr.cjs +1 -0
- package/dist/vue-ui-galaxy-C-hNndez.cjs +1 -0
- package/dist/{vue-ui-galaxy-B6chdxw9.js → vue-ui-galaxy-Co-39JiJ.js} +29 -29
- package/dist/{vue-ui-gauge-BWsStiRt.js → vue-ui-gauge-TvTF5LS6.js} +46 -46
- package/dist/vue-ui-gauge-gWdl5oo1.cjs +1 -0
- package/dist/{vue-ui-gizmo-CIZXKQaP.cjs → vue-ui-gizmo-BQoNUgtQ.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BwPZP3S1.js → vue-ui-gizmo-KnX0YMoX.js} +3 -3
- package/dist/vue-ui-heatmap-B5xnkUqI.cjs +1 -0
- package/dist/{vue-ui-heatmap-DPO0-7Kr.js → vue-ui-heatmap-BYhGn41t.js} +32 -32
- package/dist/{vue-ui-history-plot-Bn1Pt_Ti.js → vue-ui-history-plot-8n3FPjHp.js} +33 -33
- package/dist/vue-ui-history-plot-BFZOwwn-.cjs +1 -0
- package/dist/{vue-ui-kpi-DyI2-86Q.cjs → vue-ui-kpi-BRrkDdp5.cjs} +1 -1
- package/dist/{vue-ui-kpi-BbeBozJ_.js → vue-ui-kpi-r9o6PDR7.js} +3 -3
- package/dist/{vue-ui-mini-loader-DkkBYJla.cjs → vue-ui-mini-loader-BXBmMZE5.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BbXkCdaA.js → vue-ui-mini-loader-z5Tjy9_F.js} +2 -2
- package/dist/vue-ui-molecule-BS-uVTx6.cjs +1 -0
- package/dist/{vue-ui-molecule-b4smncqZ.js → vue-ui-molecule-Hmix0fg_.js} +13 -13
- package/dist/vue-ui-mood-radar-D3bJvAUA.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BdT3nuEz.js → vue-ui-mood-radar-cQQYzxOe.js} +13 -13
- package/dist/{vue-ui-nested-donuts-DttOstux.js → vue-ui-nested-donuts-BQ-orCsy.js} +14 -14
- package/dist/{vue-ui-nested-donuts-ko1-nRO2.cjs → vue-ui-nested-donuts-CJoByLIN.cjs} +2 -2
- package/dist/{vue-ui-onion-CFjFt2g0.cjs → vue-ui-onion-2gpWMiK3.cjs} +2 -2
- package/dist/{vue-ui-onion-TYSsqogk.js → vue-ui-onion-DMdgBAGm.js} +13 -13
- package/dist/{vue-ui-parallel-coordinate-plot-DzBoNAa1.cjs → vue-ui-parallel-coordinate-plot-BkksCptE.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CAqhUHot.js → vue-ui-parallel-coordinate-plot-CORjvdpu.js} +35 -35
- package/dist/{vue-ui-quadrant-BQH_Xifg.js → vue-ui-quadrant-C7z-xan4.js} +14 -14
- package/dist/vue-ui-quadrant-DwLVQDkC.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CULnpCgG.js → vue-ui-quick-chart-BNBYa1qm.js} +9 -9
- package/dist/{vue-ui-quick-chart-Bz-nNd-y.cjs → vue-ui-quick-chart-DQ_0L2k8.cjs} +1 -1
- package/dist/{vue-ui-radar-Cx-rxEMq.js → vue-ui-radar-BJalnvQ0.js} +14 -14
- package/dist/vue-ui-radar-DMug3I3r.cjs +1 -0
- package/dist/{vue-ui-rating-BKQNJZ0P.cjs → vue-ui-rating-CAtmkCip.cjs} +1 -1
- package/dist/{vue-ui-rating-F9PTlU7Q.js → vue-ui-rating-YrpteNHP.js} +2 -2
- package/dist/vue-ui-relation-circle-6WgpxOdi.cjs +1 -0
- package/dist/{vue-ui-relation-circle-DegxFhlA.js → vue-ui-relation-circle-CaX6ryF7.js} +37 -37
- package/dist/{vue-ui-rings-fJvO6eX_.js → vue-ui-rings-B94ER7yb.js} +36 -36
- package/dist/{vue-ui-rings-B18Wqo7x.cjs → vue-ui-rings-DwXSWAh9.cjs} +2 -2
- package/dist/{vue-ui-scatter-nVMhmeVK.js → vue-ui-scatter-R_o-56au.js} +14 -14
- package/dist/vue-ui-scatter-klHezU7g.cjs +1 -0
- package/dist/{vue-ui-screenshot-CL_BGDeM.cjs → vue-ui-screenshot-BJBVXs5F.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DsGxjAas.js → vue-ui-screenshot-CawOtRGf.js} +1 -1
- package/dist/{vue-ui-skeleton-odlG21I6.js → vue-ui-skeleton-BM3ut-zl.js} +457 -377
- package/dist/vue-ui-skeleton-DsMIGHB3.cjs +41 -0
- package/dist/{vue-ui-smiley-CcM-XG7o.js → vue-ui-smiley-DX5k4pRq.js} +2 -2
- package/dist/{vue-ui-smiley-DjCnF05n.cjs → vue-ui-smiley-bh_FuZmP.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DbfmJnyG.js → vue-ui-spark-trend-BSLfkSAJ.js} +5 -5
- package/dist/{vue-ui-spark-trend-B3wvoHdy.cjs → vue-ui-spark-trend-N88_MES6.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DkwgnqvW.js → vue-ui-sparkbar-CgV-sv7t.js} +4 -4
- package/dist/{vue-ui-sparkbar-Unem3qlf.cjs → vue-ui-sparkbar-NRuy_wAW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CFNCtwjD.js → vue-ui-sparkgauge-YOs41cOi.js} +4 -4
- package/dist/{vue-ui-sparkgauge-1oonX7Pt.cjs → vue-ui-sparkgauge-h9hOQBbL.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BDq3T-6n.js → vue-ui-sparkhistogram-BHVoP35U.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-C2FOzWbO.cjs → vue-ui-sparkhistogram-BIoA2rZ8.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BXCPWLbx.cjs → vue-ui-sparkline-C3lqwFGV.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDGqFfbA.js → vue-ui-sparkline-nIfo0etd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-Crr9O93o.cjs → vue-ui-sparkstackbar-CBBZJlfz.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BGDxXx1H.js → vue-ui-sparkstackbar-CMH38Bht.js} +5 -5
- package/dist/{vue-ui-stackbar-CXVJgWTO.js → vue-ui-stackbar-CBzYWzrX.js} +15 -15
- package/dist/{vue-ui-stackbar-YULKQ4Q2.cjs → vue-ui-stackbar-CwwOCVW2.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-D-_BcZGB.js → vue-ui-strip-plot-3UZVAou8.js} +13 -13
- package/dist/vue-ui-strip-plot-Dp2kJ7iQ.cjs +1 -0
- package/dist/{vue-ui-table-DCR-izqY.cjs → vue-ui-table-B3s1IcfE.cjs} +1 -1
- package/dist/{vue-ui-table-BKMfZhPB.js → vue-ui-table-CDmWHO-z.js} +1 -1
- package/dist/vue-ui-table-heatmap-BsZvR-Zs.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-BYnl_vUh.js → vue-ui-table-heatmap-CZD0-bMz.js} +8 -8
- package/dist/vue-ui-table-sparkline-BqGa1gwS.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-C1Xx-B2E.js → vue-ui-table-sparkline-nCnQKAqx.js} +8 -8
- package/dist/{vue-ui-thermometer-Ba5L3NM-.js → vue-ui-thermometer-Be7yQtd0.js} +12 -12
- package/dist/vue-ui-thermometer-dk2T8fWc.cjs +1 -0
- package/dist/{vue-ui-timer-CrJJnZKN.js → vue-ui-timer-B7jYXTxP.js} +5 -5
- package/dist/{vue-ui-timer-BLM1ZnqH.cjs → vue-ui-timer-DMPyhmkw.cjs} +1 -1
- package/dist/vue-ui-tiremarks-B2YzKOZ9.cjs +1 -0
- package/dist/{vue-ui-tiremarks-C0FaGxaE.js → vue-ui-tiremarks-BysMKDiL.js} +9 -9
- package/dist/vue-ui-treemap-BgPQTI0-.cjs +1 -0
- package/dist/{vue-ui-treemap-DUUBok0Z.js → vue-ui-treemap-CVEo4sPM.js} +40 -40
- package/dist/{vue-ui-vertical-bar-DGSL6lGQ.js → vue-ui-vertical-bar-DqNS7Ash.js} +36 -36
- package/dist/{vue-ui-vertical-bar-qY3NE5sf.cjs → vue-ui-vertical-bar-tR8BBtIQ.cjs} +2 -2
- package/dist/vue-ui-waffle-CNIMp_6k.cjs +1 -0
- package/dist/{vue-ui-waffle-DeDjMqj4.js → vue-ui-waffle-pwRzgt1I.js} +40 -40
- package/dist/{vue-ui-wheel-D2pWanO3.js → vue-ui-wheel-U-zWCCQP.js} +18 -18
- package/dist/vue-ui-wheel-yVszAJvl.cjs +1 -0
- package/dist/vue-ui-word-cloud-D2bvq4zl.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DDubuSNu.js → vue-ui-word-cloud-RI8RK0o-.js} +38 -38
- package/dist/{vue-ui-xy-DvaJ_oyE.js → vue-ui-xy-BqbnfSBo.js} +14 -14
- package/dist/{vue-ui-xy-BKEjcTkg.cjs → vue-ui-xy-Iprttv_w.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CgzTusyc.cjs → vue-ui-xy-canvas-7QgtFfPE.cjs} +3 -3
- package/dist/{vue-ui-xy-canvas-DpTDw8Rv.js → vue-ui-xy-canvas-CauFtYWC.js} +13 -13
- package/package.json +3 -2
- package/dist/PackageVersion-fh_T3pry.cjs +0 -1
- package/dist/index-DHTOdsmm.cjs +0 -9
- package/dist/vue-data-ui-B4yl-5k7.cjs +0 -9
- package/dist/vue-ui-age-pyramid-JUp6_DQU.cjs +0 -1
- package/dist/vue-ui-bullet-DuPHT9m_.cjs +0 -34
- package/dist/vue-ui-carousel-table-CVlt3x_V.cjs +0 -1
- package/dist/vue-ui-donut-BTLM3pc-.cjs +0 -1
- package/dist/vue-ui-donut-evolution-B9b0VDlt.cjs +0 -1
- package/dist/vue-ui-dumbbell-D0-fNbuR.cjs +0 -9
- package/dist/vue-ui-flow-CVX1Booa.cjs +0 -1
- package/dist/vue-ui-funnel-CkrA8ZGZ.cjs +0 -1
- package/dist/vue-ui-galaxy-XLY4fBs_.cjs +0 -1
- package/dist/vue-ui-gauge-DKv2V1ZR.cjs +0 -1
- package/dist/vue-ui-heatmap-DpZM0Il7.cjs +0 -1
- package/dist/vue-ui-history-plot-DyTTxsEC.cjs +0 -1
- package/dist/vue-ui-molecule-CVg3G3jq.cjs +0 -1
- package/dist/vue-ui-mood-radar-bRCa4Y3L.cjs +0 -1
- package/dist/vue-ui-quadrant-Cx1wlTvP.cjs +0 -1
- package/dist/vue-ui-radar-gWd0pEpW.cjs +0 -1
- package/dist/vue-ui-relation-circle-B3PfO20q.cjs +0 -1
- package/dist/vue-ui-scatter-ZJO-zIjS.cjs +0 -1
- package/dist/vue-ui-skeleton-BZDfN8kq.cjs +0 -41
- package/dist/vue-ui-strip-plot-D2tY6IaY.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BQk6Gd_E.cjs +0 -1
- package/dist/vue-ui-table-sparkline-Fk2HnXUF.cjs +0 -1
- package/dist/vue-ui-thermometer-CUa9blx-.cjs +0 -1
- package/dist/vue-ui-tiremarks-C0ic3lVR.cjs +0 -1
- package/dist/vue-ui-treemap-C7lv9JcH.cjs +0 -1
- package/dist/vue-ui-waffle-lANO8NSp.cjs +0 -1
- package/dist/vue-ui-wheel-yw94VIYd.cjs +0 -1
- package/dist/vue-ui-word-cloud-BQuOLoHD.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { computed as h, onMounted as Le, ref as u, watch as Fe, openBlock as o, createElementBlock as n, normalizeClass as E, normalizeStyle as V, unref as i, createBlock as $, createCommentVNode as c, createSlots as Ie, withCtx as d, renderSlot as v, normalizeProps as
|
|
2
|
-
import { u as Ee, o as Ve, e as he, g as Me, c as pe, t as De, a as Be, p as D, b as Ge, d as ze, J as ye, M as Ue, f as k, X as We, i as ge, x as fe, y as He, q as Xe, r as je } from "./index-
|
|
3
|
-
import { L as Re } from "./Legend-
|
|
4
|
-
import { _ as Ye } from "./Title-
|
|
5
|
-
import { _ as qe } from "./Tooltip-
|
|
6
|
-
import { D as Je } from "./DataTable-
|
|
7
|
-
import { u as Ke, U as Qe } from "./usePrinter-
|
|
8
|
-
import Ze from "./vue-ui-skeleton-
|
|
9
|
-
import et from "./vue-ui-accordion-
|
|
10
|
-
import { u as be } from "./useNestedProp-
|
|
11
|
-
import { _ as tt } from "./PackageVersion-
|
|
12
|
-
import { P as lt } from "./PenAndPaper-
|
|
1
|
+
import { computed as h, onMounted as Le, ref as u, watch as Fe, openBlock as o, createElementBlock as n, normalizeClass as E, normalizeStyle as V, unref as i, createBlock as $, createCommentVNode as c, createSlots as Ie, withCtx as d, renderSlot as v, normalizeProps as S, guardReactiveProps as N, createVNode as ie, createElementVNode as T, Fragment as ce, renderList as ve, createTextVNode as de, toDisplayString as M, nextTick as Ae } from "vue";
|
|
2
|
+
import { u as Ee, o as Ve, e as he, g as Me, c as pe, t as De, a as Be, p as D, b as Ge, d as ze, J as ye, M as Ue, f as k, X as We, i as ge, x as fe, y as He, q as Xe, r as je } from "./index-DAAFXQJj.js";
|
|
3
|
+
import { L as Re } from "./Legend-K7NRkzGf.js";
|
|
4
|
+
import { _ as Ye } from "./Title-C4aoNP1T.js";
|
|
5
|
+
import { _ as qe } from "./Tooltip-CG6ZX21C.js";
|
|
6
|
+
import { D as Je } from "./DataTable-D4_TjSBJ.js";
|
|
7
|
+
import { u as Ke, U as Qe } from "./usePrinter-BvlefWMW.js";
|
|
8
|
+
import Ze from "./vue-ui-skeleton-BM3ut-zl.js";
|
|
9
|
+
import et from "./vue-ui-accordion-B67N9Oo8.js";
|
|
10
|
+
import { u as be } from "./useNestedProp-DMtJzMiX.js";
|
|
11
|
+
import { _ as tt } from "./PackageVersion-DKr8jVlI.js";
|
|
12
|
+
import { P as lt } from "./PenAndPaper-CurhQVkh.js";
|
|
13
13
|
import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const st = ["id"], rt = {
|
|
@@ -85,7 +85,7 @@ const st = ["id"], rt = {
|
|
|
85
85
|
} : t;
|
|
86
86
|
}
|
|
87
87
|
Fe(() => g.config, (t) => {
|
|
88
|
-
e.value = Z(), z.value = !e.value.showOnChartHover, j(), Y.value += 1, q.value += 1, J.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
88
|
+
e.value = Z(), z.value = !e.value.userOptions.showOnChartHover, j(), Y.value += 1, q.value += 1, J.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
89
89
|
}, { deep: !0 });
|
|
90
90
|
const { isPrinting: ee, isImaging: te, generatePdf: le, generateImage: ae } = Ke({
|
|
91
91
|
elementId: `galaxy_${_.value}`,
|
|
@@ -102,7 +102,7 @@ const st = ["id"], rt = {
|
|
|
102
102
|
width: 250
|
|
103
103
|
}), y = u([]);
|
|
104
104
|
function U(t) {
|
|
105
|
-
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), X("selectLegend",
|
|
105
|
+
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), X("selectLegend", O.value.map((a) => ({
|
|
106
106
|
name: a.name,
|
|
107
107
|
color: a.color,
|
|
108
108
|
value: a.value
|
|
@@ -123,7 +123,7 @@ const st = ["id"], rt = {
|
|
|
123
123
|
value: t.value
|
|
124
124
|
}));
|
|
125
125
|
}
|
|
126
|
-
const b = h(() => w.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), _e = u(190), oe = h(() => w.value.filter((t) => !y.value.includes(t.id))),
|
|
126
|
+
const b = h(() => w.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), _e = u(190), oe = h(() => w.value.filter((t) => !y.value.includes(t.id))), O = h(() => {
|
|
127
127
|
const t = [];
|
|
128
128
|
for (let a = 0; a < oe.value.length; a += 1) {
|
|
129
129
|
const l = oe.value[a];
|
|
@@ -146,7 +146,7 @@ const st = ["id"], rt = {
|
|
|
146
146
|
x.value = t, R.value += 1;
|
|
147
147
|
}
|
|
148
148
|
const W = u(null);
|
|
149
|
-
function
|
|
149
|
+
function Oe({ datapoint: t, _relativeIndex: a, seriesIndex: l, show: s = !1 }) {
|
|
150
150
|
W.value = {
|
|
151
151
|
datapoint: t,
|
|
152
152
|
seriesIndex: l,
|
|
@@ -192,7 +192,7 @@ const st = ["id"], rt = {
|
|
|
192
192
|
shape: t.shape || "circle",
|
|
193
193
|
segregate: () => U(t),
|
|
194
194
|
isSegregated: y.value.includes(t.id)
|
|
195
|
-
}))),
|
|
195
|
+
}))), Se = h(() => ({
|
|
196
196
|
cy: "galaxy-div-legend",
|
|
197
197
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
198
198
|
color: e.value.style.chart.legend.color,
|
|
@@ -200,10 +200,10 @@ const st = ["id"], rt = {
|
|
|
200
200
|
paddingBottom: 12,
|
|
201
201
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
202
202
|
})), m = h(() => {
|
|
203
|
-
const t =
|
|
203
|
+
const t = O.value.map((l) => ({
|
|
204
204
|
name: l.name,
|
|
205
205
|
color: l.color
|
|
206
|
-
})), a =
|
|
206
|
+
})), a = O.value.map((l) => l.value);
|
|
207
207
|
return { head: t, body: a };
|
|
208
208
|
});
|
|
209
209
|
function re() {
|
|
@@ -379,14 +379,14 @@ const st = ["id"], rt = {
|
|
|
379
379
|
t.$slots.optionFullscreen ? {
|
|
380
380
|
name: "optionFullscreen",
|
|
381
381
|
fn: d(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
382
|
-
v(t.$slots, "optionFullscreen",
|
|
382
|
+
v(t.$slots, "optionFullscreen", S(N({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
383
383
|
]),
|
|
384
384
|
key: "5"
|
|
385
385
|
} : void 0,
|
|
386
386
|
t.$slots.optionAnnotator ? {
|
|
387
387
|
name: "optionAnnotator",
|
|
388
388
|
fn: d(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
389
|
-
v(t.$slots, "optionAnnotator",
|
|
389
|
+
v(t.$slots, "optionAnnotator", S(N({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
390
390
|
]),
|
|
391
391
|
key: "6"
|
|
392
392
|
} : void 0
|
|
@@ -425,7 +425,7 @@ const st = ["id"], rt = {
|
|
|
425
425
|
}, null, 8, vt)
|
|
426
426
|
], 8, ct)
|
|
427
427
|
]),
|
|
428
|
-
(o(!0), n(ce, null, ve(
|
|
428
|
+
(o(!0), n(ce, null, ve(O.value, (l) => (o(), n("g", null, [
|
|
429
429
|
l.value ? (o(), n("path", {
|
|
430
430
|
key: 0,
|
|
431
431
|
d: l.path,
|
|
@@ -457,7 +457,7 @@ const st = ["id"], rt = {
|
|
|
457
457
|
}, null, 10, yt)
|
|
458
458
|
], 8, pt)) : c("", !0)
|
|
459
459
|
]))), 256)),
|
|
460
|
-
(o(!0), n(ce, null, ve(
|
|
460
|
+
(o(!0), n(ce, null, ve(O.value, (l, s) => (o(), n("g", null, [
|
|
461
461
|
l.value ? (o(), n("path", {
|
|
462
462
|
key: 0,
|
|
463
463
|
d: l.path,
|
|
@@ -465,7 +465,7 @@ const st = ["id"], rt = {
|
|
|
465
465
|
stroke: "transparent",
|
|
466
466
|
"stroke-width": e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth,
|
|
467
467
|
"stroke-linecap": "round",
|
|
468
|
-
onMouseenter: (r) =>
|
|
468
|
+
onMouseenter: (r) => Oe({
|
|
469
469
|
datapoint: l,
|
|
470
470
|
relativeIndex: s,
|
|
471
471
|
seriesIndex: l.seriesIndex,
|
|
@@ -480,7 +480,7 @@ const st = ["id"], rt = {
|
|
|
480
480
|
v(t.$slots, "svg", { svg: P.value }, void 0, !0)
|
|
481
481
|
], 14, nt)) : c("", !0),
|
|
482
482
|
t.$slots.watermark ? (o(), n("div", ft, [
|
|
483
|
-
v(t.$slots, "watermark",
|
|
483
|
+
v(t.$slots, "watermark", S(N({ isPrinting: i(ee) || i(te) })), void 0, !0)
|
|
484
484
|
])) : c("", !0),
|
|
485
485
|
L.value ? c("", !0) : (o(), $(Ze, {
|
|
486
486
|
key: 6,
|
|
@@ -497,7 +497,7 @@ const st = ["id"], rt = {
|
|
|
497
497
|
e.value.style.chart.legend.show ? (o(), $(Re, {
|
|
498
498
|
key: `legend_${J.value}`,
|
|
499
499
|
legendSet: se.value,
|
|
500
|
-
config:
|
|
500
|
+
config: Se.value,
|
|
501
501
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => U(l))
|
|
502
502
|
}, {
|
|
503
503
|
item: d(({ legend: l, index: s }) => [
|
|
@@ -546,10 +546,10 @@ const st = ["id"], rt = {
|
|
|
546
546
|
isCustom: i(fe)(e.value.style.chart.tooltip.customFormat)
|
|
547
547
|
}, {
|
|
548
548
|
"tooltip-before": d(() => [
|
|
549
|
-
v(t.$slots, "tooltip-before",
|
|
549
|
+
v(t.$slots, "tooltip-before", S(N({ ...W.value })), void 0, !0)
|
|
550
550
|
]),
|
|
551
551
|
"tooltip-after": d(() => [
|
|
552
|
-
v(t.$slots, "tooltip-after",
|
|
552
|
+
v(t.$slots, "tooltip-after", S(N({ ...W.value })), void 0, !0)
|
|
553
553
|
]),
|
|
554
554
|
_: 3
|
|
555
555
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
@@ -595,7 +595,7 @@ const st = ["id"], rt = {
|
|
|
595
595
|
}, 8, ["config"])) : c("", !0)
|
|
596
596
|
], 46, st));
|
|
597
597
|
}
|
|
598
|
-
}, Dt = /* @__PURE__ */ ot($t, [["__scopeId", "data-v-
|
|
598
|
+
}, Dt = /* @__PURE__ */ ot($t, [["__scopeId", "data-v-b397a028"]]);
|
|
599
599
|
export {
|
|
600
600
|
Dt as default
|
|
601
601
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { computed as y, ref as f, watch as me, onMounted as Re, onBeforeUnmount as Ge, openBlock as r, createElementBlock as u, normalizeClass as pe, normalizeStyle as B, unref as i, createBlock as R, createCommentVNode as c, withCtx as X, toDisplayString as
|
|
2
|
-
import { u as We, c as je, t as Te, a as Le, p as ge, b as De, o as ke, d as Be, e as W, g as be, m as V, I as
|
|
1
|
+
import { computed as y, ref as f, watch as me, onMounted as Re, onBeforeUnmount as Ge, openBlock as r, createElementBlock as u, normalizeClass as pe, normalizeStyle as B, unref as i, createBlock as R, createCommentVNode as c, withCtx as X, toDisplayString as O, createSlots as Ee, renderSlot as w, normalizeProps as G, guardReactiveProps as E, createVNode as Ue, createElementVNode as p, Fragment as g, renderList as S, mergeProps as U } from "vue";
|
|
2
|
+
import { u as We, c as je, t as Te, a as Le, p as ge, b as De, o as ke, d as Be, e as W, g as be, m as V, I as z, N as Ve, X as qe, s as q, k as He, i as H, f as Z, F as J } from "./index-DAAFXQJj.js";
|
|
3
3
|
import { t as Ze, u as Je } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { u as Ke, U as Qe } from "./usePrinter-
|
|
5
|
-
import et from "./vue-ui-skeleton-
|
|
6
|
-
import { _ as tt } from "./Title-
|
|
7
|
-
import { u as _e } from "./useNestedProp-
|
|
8
|
-
import { _ as at } from "./PackageVersion-
|
|
9
|
-
import { P as lt } from "./PenAndPaper-
|
|
4
|
+
import { u as Ke, U as Qe } from "./usePrinter-BvlefWMW.js";
|
|
5
|
+
import et from "./vue-ui-skeleton-BM3ut-zl.js";
|
|
6
|
+
import { _ as tt } from "./Title-C4aoNP1T.js";
|
|
7
|
+
import { u as _e } from "./useNestedProp-DMtJzMiX.js";
|
|
8
|
+
import { _ as at } from "./PackageVersion-DKr8jVlI.js";
|
|
9
|
+
import { P as lt } from "./PenAndPaper-CurhQVkh.js";
|
|
10
10
|
import { u as rt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["id"], vt = ["stop-color"], ht = ["stop-color"], dt = ["stop-color"], yt = ["id"], ft = ["stdDeviation"], mt = { key: 1 }, pt = ["d", "fill", "stroke"], gt = ["d", "fill", "stroke"], kt = ["d", "fill"], bt = ["id", "d"], _t = ["fill", "font-size", "font-weight"], xt = ["href", "startOffset"], wt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], St = ["d", "filter"], $t = ["stroke", "stroke-width"], zt = ["stroke", "stroke-width"], Ft = ["stroke", "stroke-width"], Ct = ["stroke", "stroke-width"],
|
|
12
|
+
const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "height"], ct = ["id"], vt = ["stop-color"], ht = ["stop-color"], dt = ["stop-color"], yt = ["id"], ft = ["stdDeviation"], mt = { key: 1 }, pt = ["d", "fill", "stroke"], gt = ["d", "fill", "stroke"], kt = ["d", "fill"], bt = ["id", "d"], _t = ["fill", "font-size", "font-weight"], xt = ["href", "startOffset"], wt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], St = ["d", "filter"], $t = ["stroke", "stroke-width"], zt = ["stroke", "stroke-width"], Ft = ["stroke", "stroke-width"], Ct = ["stroke", "stroke-width"], Ot = { key: 8 }, Mt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Pt = ["x", "y", "font-size", "font-weight", "fill"], Nt = { key: 0 }, Xt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], It = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Yt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], At = { key: 1 }, Rt = ["d", "fill", "stroke", "stroke-width"], Gt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Et = ["x", "y", "font-size", "fill"], Ut = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, Wt = {
|
|
@@ -34,7 +34,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
34
34
|
set: (t) => t
|
|
35
35
|
}), { userOptionsVisible: T, setUserOptionsVisibility: re, keepUserOptionState: se } = rt({ config: e.value });
|
|
36
36
|
me(() => h.config, (t) => {
|
|
37
|
-
e.value = oe(), T.value = !e.value.showOnChartHover, he(), le.value += 1;
|
|
37
|
+
e.value = oe(), T.value = !e.value.userOptions.showOnChartHover, he(), le.value += 1;
|
|
38
38
|
}, { deep: !0 });
|
|
39
39
|
function oe() {
|
|
40
40
|
const t = _e({
|
|
@@ -52,7 +52,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
52
52
|
const { isPrinting: ue, isImaging: ne, generatePdf: ie, generateImage: ce } = Ke({
|
|
53
53
|
elementId: `vue-ui-gauge_${b.value}`,
|
|
54
54
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge"
|
|
55
|
-
}), $e = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = y(() => De(e.value.customPalette)),
|
|
55
|
+
}), $e = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), ze = y(() => De(e.value.customPalette)), F = y(() => {
|
|
56
56
|
if (!I.value || ke(h.dataset.series || {}))
|
|
57
57
|
return {
|
|
58
58
|
value: 0,
|
|
@@ -91,14 +91,14 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
91
91
|
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
92
92
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
93
93
|
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
94
|
-
}),
|
|
94
|
+
}), M = f(0), $ = f(0), m = f(
|
|
95
95
|
e.value.style.chart.animation.use ? Math.min(...h.dataset.series.map((t) => t.from)) : h.dataset.value
|
|
96
96
|
);
|
|
97
97
|
me(() => h.dataset.value, () => {
|
|
98
98
|
de(h.dataset.value);
|
|
99
99
|
});
|
|
100
100
|
const n = y(() => {
|
|
101
|
-
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 -
|
|
101
|
+
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 - $.value) / (M.value - $.value)) + Math.PI;
|
|
102
102
|
return {
|
|
103
103
|
x1: t,
|
|
104
104
|
y1: o,
|
|
@@ -106,11 +106,11 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
106
106
|
y2: o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
107
107
|
};
|
|
108
108
|
}), ve = y(() => {
|
|
109
|
-
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((m.value + 0 -
|
|
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, Xe = t + x * Math.cos(a + Math.PI / 2), Ie = o + x * Math.sin(a + Math.PI / 2), Ye = t + x * Math.cos(a - Math.PI / 2), Ae = o + x * Math.sin(a - Math.PI / 2);
|
|
110
110
|
return isNaN(s) ? null : `M ${s},${_} ${Xe},${Ie} ${Ye},${Ae} Z`;
|
|
111
111
|
}), L = y(() => {
|
|
112
|
-
for (let t = 0; t <
|
|
113
|
-
const { color: o, from: a, to: s } =
|
|
112
|
+
for (let t = 0; t < F.value.series.length; t += 1) {
|
|
113
|
+
const { color: o, from: a, to: s } = F.value.series[t];
|
|
114
114
|
if (m.value >= a && m.value <= s)
|
|
115
115
|
return o;
|
|
116
116
|
}
|
|
@@ -186,9 +186,9 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
186
186
|
});
|
|
187
187
|
function de(t) {
|
|
188
188
|
const o = [];
|
|
189
|
-
(
|
|
189
|
+
(F.value.series || []).forEach((x) => {
|
|
190
190
|
o.push(x.from || 0), o.push(x.to || 0);
|
|
191
|
-
}),
|
|
191
|
+
}), M.value = Math.max(...o), $.value = Math.min(...o);
|
|
192
192
|
let a = e.value.style.chart.animation.speed;
|
|
193
193
|
const s = Math.abs(t - m.value) / (a * 60);
|
|
194
194
|
function _() {
|
|
@@ -206,7 +206,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
206
206
|
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
207
207
|
};
|
|
208
208
|
}), d = y(() => V(
|
|
209
|
-
{ series:
|
|
209
|
+
{ series: F.value.series },
|
|
210
210
|
l.value.width / 2,
|
|
211
211
|
v.value.base,
|
|
212
212
|
v.value.arcs,
|
|
@@ -218,7 +218,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
218
218
|
109.9495,
|
|
219
219
|
40 * l.value.trackSize
|
|
220
220
|
)), Fe = y(() => V(
|
|
221
|
-
{ series:
|
|
221
|
+
{ series: F.value.series },
|
|
222
222
|
l.value.width / 2,
|
|
223
223
|
v.value.base,
|
|
224
224
|
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
@@ -230,13 +230,13 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
230
230
|
109.9495,
|
|
231
231
|
40 * l.value.trackSize
|
|
232
232
|
)), C = y(() => d.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), ye = y(() => {
|
|
233
|
-
const { x: t, y: o } =
|
|
233
|
+
const { x: t, y: o } = z({
|
|
234
234
|
initX: d.value[0].firstSeparator.x,
|
|
235
235
|
initY: d.value[0].firstSeparator.y,
|
|
236
236
|
centerX: n.value.x1,
|
|
237
237
|
centerY: n.value.y1,
|
|
238
238
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
239
|
-
}), { x: a, y: s } =
|
|
239
|
+
}), { x: a, y: s } = z({
|
|
240
240
|
initX: d.value[0].startX,
|
|
241
241
|
initY: d.value[0].startY,
|
|
242
242
|
centerX: n.value.x1,
|
|
@@ -245,13 +245,13 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
245
245
|
});
|
|
246
246
|
return { x1: t, y1: o, x2: a, y2: s };
|
|
247
247
|
}), fe = y(() => d.value.map((t) => {
|
|
248
|
-
const { x: o, y: a } =
|
|
248
|
+
const { x: o, y: a } = z({
|
|
249
249
|
initX: t.separator.x,
|
|
250
250
|
initY: t.separator.y,
|
|
251
251
|
centerX: n.value.x1,
|
|
252
252
|
centerY: n.value.y1,
|
|
253
253
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
254
|
-
}), { x: s, y: _ } =
|
|
254
|
+
}), { x: s, y: _ } = z({
|
|
255
255
|
initX: t.endX,
|
|
256
256
|
initY: t.endY,
|
|
257
257
|
centerX: n.value.x1,
|
|
@@ -267,8 +267,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
267
267
|
let s = 0;
|
|
268
268
|
return t.map((_) => (s += _, `${s / 100 * a - _ / 4}%`));
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
{ series:
|
|
270
|
+
const Oe = y(() => Ce(d.value.map((t) => t.proportion * 100))), Me = y(() => V(
|
|
271
|
+
{ series: F.value.series },
|
|
272
272
|
l.value.width / 2,
|
|
273
273
|
v.value.base,
|
|
274
274
|
v.value.gradients,
|
|
@@ -280,13 +280,13 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
280
280
|
110.02,
|
|
281
281
|
2 * l.value.trackSize
|
|
282
282
|
)), Pe = y(() => {
|
|
283
|
-
const t =
|
|
283
|
+
const t = $.value >= 0 ? -$.value : Math.abs($.value);
|
|
284
284
|
return Ve(
|
|
285
285
|
{
|
|
286
286
|
radius: e.value.style.chart.layout.indicatorArc.radius * l.value.trackSize,
|
|
287
287
|
centerX: l.value.width / 2,
|
|
288
288
|
centerY: v.value.base,
|
|
289
|
-
percentage: (m.value + t) / (
|
|
289
|
+
percentage: (m.value + t) / (M.value + t)
|
|
290
290
|
}
|
|
291
291
|
);
|
|
292
292
|
}), N = f(!1);
|
|
@@ -345,7 +345,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
345
345
|
}
|
|
346
346
|
}, {
|
|
347
347
|
default: X(() => [
|
|
348
|
-
e.value.translations.base && j.dataset.base ? (r(), u("span", ut,
|
|
348
|
+
e.value.translations.base && j.dataset.base ? (r(), u("span", ut, O(e.value.translations.base) + ": " + O(j.dataset.base), 1)) : c("", !0)
|
|
349
349
|
]),
|
|
350
350
|
_: 1
|
|
351
351
|
}, 8, ["config"]))
|
|
@@ -501,8 +501,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
501
501
|
}, [
|
|
502
502
|
p("textPath", {
|
|
503
503
|
href: `#curve_${b.value}_${s}`,
|
|
504
|
-
startOffset:
|
|
505
|
-
},
|
|
504
|
+
startOffset: Oe.value[s]
|
|
505
|
+
}, O(a.name || ""), 9, xt)
|
|
506
506
|
], 8, _t))), 256))
|
|
507
507
|
], 64)) : c("", !0),
|
|
508
508
|
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), u(g, { key: 5 }, S(Fe.value, (a, s) => (r(), u("text", {
|
|
@@ -512,8 +512,8 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
512
512
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
513
513
|
"font-size": l.value.segmentFontSize,
|
|
514
514
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
515
|
-
},
|
|
516
|
-
e.value.style.chart.layout.track.useGradient ? (r(!0), u(g, { key: 6 }, S(
|
|
515
|
+
}, O(a.name || ""), 9, wt))), 256)) : c("", !0),
|
|
516
|
+
e.value.style.chart.layout.track.useGradient ? (r(!0), u(g, { key: 6 }, S(Me.value, (a, s) => (r(), u("path", {
|
|
517
517
|
key: `arc_${s}`,
|
|
518
518
|
d: a.arcSlice,
|
|
519
519
|
fill: "#FFFFFF",
|
|
@@ -543,16 +543,16 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
543
543
|
"stroke-linecap": "round"
|
|
544
544
|
}), null, 16, Ct))), 256))
|
|
545
545
|
], 64)) : c("", !0),
|
|
546
|
-
e.value.style.chart.layout.markers.show ? (r(), u("g",
|
|
546
|
+
e.value.style.chart.layout.markers.show ? (r(), u("g", Ot, [
|
|
547
547
|
(r(!0), u(g, null, S(d.value, (a, s) => (r(), u("text", {
|
|
548
|
-
x: i(
|
|
548
|
+
x: i(z)({
|
|
549
549
|
centerX: n.value.x1,
|
|
550
550
|
centerY: v.value.base,
|
|
551
551
|
initX: a.center.startX,
|
|
552
552
|
initY: a.center.startY,
|
|
553
553
|
offset: l.value.markerOffset
|
|
554
554
|
}).x,
|
|
555
|
-
y: i(
|
|
555
|
+
y: i(z)({
|
|
556
556
|
centerX: n.value.x1,
|
|
557
557
|
centerY: v.value.base,
|
|
558
558
|
initX: a.center.startX,
|
|
@@ -563,7 +563,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
563
563
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
564
564
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
565
565
|
fill: e.value.style.chart.layout.markers.color
|
|
566
|
-
},
|
|
566
|
+
}, O(i(H)(
|
|
567
567
|
e.value.style.chart.layout.markers.formatter,
|
|
568
568
|
a.from,
|
|
569
569
|
i(Z)({
|
|
@@ -572,18 +572,18 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
572
572
|
s: e.value.style.chart.layout.markers.suffix,
|
|
573
573
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
574
574
|
})
|
|
575
|
-
)), 9,
|
|
575
|
+
)), 9, Mt))), 256))
|
|
576
576
|
])) : c("", !0),
|
|
577
577
|
e.value.style.chart.layout.markers.show ? (r(), u("text", {
|
|
578
578
|
key: 9,
|
|
579
|
-
x: i(
|
|
579
|
+
x: i(z)({
|
|
580
580
|
centerX: l.value.width / 2,
|
|
581
581
|
centerY: v.value.base,
|
|
582
582
|
initX: d.value.at(-1).endX,
|
|
583
583
|
initY: d.value.at(-1).endY,
|
|
584
584
|
offset: l.value.markerOffset
|
|
585
585
|
}).x,
|
|
586
|
-
y: i(
|
|
586
|
+
y: i(z)({
|
|
587
587
|
centerX: l.value.width / 2,
|
|
588
588
|
centerY: v.value.base,
|
|
589
589
|
initX: d.value.at(-1).endX,
|
|
@@ -594,12 +594,12 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
594
594
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
595
595
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
596
596
|
fill: e.value.style.chart.layout.markers.color
|
|
597
|
-
},
|
|
597
|
+
}, O(i(H)(
|
|
598
598
|
e.value.style.chart.layout.markers.formatter,
|
|
599
|
-
|
|
599
|
+
M.value,
|
|
600
600
|
i(Z)({
|
|
601
601
|
p: e.value.style.chart.layout.markers.prefix,
|
|
602
|
-
v:
|
|
602
|
+
v: M.value,
|
|
603
603
|
s: e.value.style.chart.layout.markers.suffix,
|
|
604
604
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
605
605
|
})
|
|
@@ -664,7 +664,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
664
664
|
"font-size": l.value.legendFontSize,
|
|
665
665
|
"font-weight": "bold",
|
|
666
666
|
fill: e.value.style.chart.legend.useRatingColor ? L.value : e.value.style.chart.legend.color
|
|
667
|
-
},
|
|
667
|
+
}, O(i(H)(
|
|
668
668
|
e.value.style.chart.legend.formatter,
|
|
669
669
|
m.value,
|
|
670
670
|
i(Z)({
|
|
@@ -695,7 +695,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
695
695
|
ref_key: "chartLegend",
|
|
696
696
|
ref: ee
|
|
697
697
|
}, [
|
|
698
|
-
w(t.$slots, "legend", { legend:
|
|
698
|
+
w(t.$slots, "legend", { legend: F.value }, void 0, !0)
|
|
699
699
|
], 512),
|
|
700
700
|
t.$slots.source ? (r(), u("div", {
|
|
701
701
|
key: 7,
|
|
@@ -707,7 +707,7 @@ const ot = ["id"], ut = { key: 0 }, nt = ["xmlns", "viewBox"], it = ["width", "h
|
|
|
707
707
|
], 512)) : c("", !0)
|
|
708
708
|
], 46, ot));
|
|
709
709
|
}
|
|
710
|
-
}, Qt = /* @__PURE__ */ st(Wt, [["__scopeId", "data-v-
|
|
710
|
+
}, Qt = /* @__PURE__ */ st(Wt, [["__scopeId", "data-v-dbac9b9f"]]);
|
|
711
711
|
export {
|
|
712
712
|
Qt as default
|
|
713
713
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CHCA909R.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),H=require("./usePrinter-xicwiw8r.cjs"),ve=require("./vue-ui-skeleton-DsMIGHB3.cjs"),he=require("./Title-bDp_4dQV.cjs"),Z=require("./useNestedProp--1nKK7i0.cjs"),me=require("./PackageVersion-Cun_qdX7.cjs"),fe=require("./PenAndPaper-u46MyY7W.cjs"),ye=require("./useUserOptionState-BgepsfED.cjs"),pe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ke=["id"],ge={key:0},be=["xmlns","viewBox"],Be=["width","height"],Se=["id"],_e=["stop-color"],xe=["stop-color"],we=["stop-color"],Ce=["id"],Ne=["stdDeviation"],Fe={key:1},Ee=["d","fill","stroke"],ze=["d","fill","stroke"],$e=["d","fill"],Pe=["id","d"],Oe=["fill","font-size","font-weight"],Me=["href","startOffset"],Ve=["x","y","text-anchor","fill","font-size","font-weight"],Xe=["d","filter"],Ie=["stroke","stroke-width"],Ye=["stroke","stroke-width"],Ae=["stroke","stroke-width"],Re=["stroke","stroke-width"],Le={key:8},De=["x","y","text-anchor","font-size","font-weight","fill"],Ge=["x","y","font-size","font-weight","fill"],qe={key:0},je=["x1","y1","x2","y2","stroke","stroke-width"],Te=["x1","y1","x2","y2","stroke","stroke-width"],Ue=["x1","y1","x2","y2","stroke-width","filter"],We={key:1},He=["d","fill","stroke","stroke-width"],Ze=["cx","cy","fill","r","stroke-width","stroke"],Je=["x","y","font-size","fill"],Ke={key:5,class:"vue-data-ui-watermark"},Qe={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C,{expose:J}){const c=C,{vue_ui_gauge:K}=s.useConfig(),_=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:()=>Y(),set:a=>a}),{userOptionsVisible:N,setUserOptionsVisibility:X,keepUserOptionState:I}=ye.useUserOptionState({config:t.value});e.watch(()=>c.config,a=>{t.value=Y(),N.value=!t.value.userOptions.showOnChartHover,q(),V.value+=1},{deep:!0});function Y(){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:A,isImaging:R,generatePdf:L,generateImage:D}=H.usePrinter({elementId:`vue-ui-gauge_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),k=e.computed(()=>{if(!_.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,r)=>({...l,color:s.convertColorToHex(l.color)||te.value[r]||s.palette[r],value:((l.to||0)-(l.from||0))/n*100}))}}),h=e.ref(512),o=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),v=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=o.value.width/2,n=i.value.base,l=Math.PI*((v.value+0-p.value)/(b.value-p.value))+Math.PI;return{x1:a,y1:n,x2:a+i.value.pointerSize*o.value.pointerSize*.9*Math.cos(l),y2:n+i.value.pointerSize*o.value.pointerSize*.9*Math.sin(l)}}),G=e.computed(()=>{const a=o.value.width/2,n=i.value.base,l=Math.PI*((v.value+0-p.value)/(b.value-p.value))+Math.PI,r=a+i.value.pointerSize*o.value.pointerSize*.9*Math.cos(l),f=n+i.value.pointerSize*o.value.pointerSize*.9*Math.sin(l),y=o.value.pointerRadius,ue=a+y*Math.cos(l+Math.PI/2),ie=n+y*Math.sin(l+Math.PI/2),ce=a+y*Math.cos(l-Math.PI/2),de=n+y*Math.sin(l-Math.PI/2);return isNaN(r)?null:`M ${r},${f} ${ue},${ie} ${ce},${de} Z`}),F=e.computed(()=>{for(let a=0;a<k.value.series.length;a+=1){const{color:n,from:l,to:r}=k.value.series[a];if(v.value>=l&&v.value<=r)return n}return"#2D353C"}),x=e.ref(null);function q(){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(()=>{o.value.width=n,o.value.height=l,o.value.centerX=n/2,o.value.centerY=h.value/2/358.4*l,o.value.bottom=l,o.value.labelFontSize=18/h.value*Math.min(l,n)<10?10:18/h.value*Math.min(l,n),o.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),o.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(l,n),o.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(l,n),o.value.pointerStrokeWidth=s.translateSize({relator:Math.min(n,l),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),o.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}),o.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(()=>{q()}),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 r=Math.abs(a-v.value)/(l*60);function f(){v.value<a?v.value=Math.min(v.value+r,a):v.value>a&&(v.value=Math.max(v.value-r,a)),v.value!==a&&requestAnimationFrame(f)}f()}const i=e.computed(()=>{const a=t.value.responsive?Math.min(o.value.width,o.value.height):o.value.width,n=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:a/n,gradients:a/(n*1.1),base:t.value.responsive?o.value.height/2:o.value.height*.7,ratingBase:t.value.responsive?o.value.height/2+o.value.height/4:o.value.height*.9,pointerSize:t.value.responsive?Math.min(o.value.width,o.value.height)/3:o.value.width/3.2}}),d=e.computed(()=>s.makeDonut({series:k.value.series},o.value.width/2,i.value.base,i.value.arcs,i.value.arcs,1,1,1,180,109.9495,40*o.value.trackSize)),ae=e.computed(()=>s.makeDonut({series:k.value.series},o.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*o.value.trackSize)),g=e.computed(()=>d.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:d.value[0].firstSeparator.x,initY:d.value[0].firstSeparator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:l,y:r}=s.offsetFromCenterPoint({initX:d.value[0].startX,initY:d.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:r}}),U=e.computed(()=>d.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:r,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:r,y2:f}}));function le(a){if(a.reduce((f,y)=>f+y,0)>100)throw new Error("Total % must not exceed 100");const l=50;let r=0;return a.map(f=>(r+=f,`${r/100*l-f/4}%`))}const oe=e.computed(()=>le(d.value.map(a=>a.proportion*100))),re=e.computed(()=>s.makeDonut({series:k.value.series},o.value.width/2,i.value.base,i.value.gradients,i.value.gradients,.95,1,1,180,110.02,2*o.value.trackSize)),ne=e.computed(()=>{const a=p.value>=0?-p.value:Math.abs(p.value);return s.createHalfCircleArc({radius:t.value.style.chart.layout.indicatorArc.radius*o.value.trackSize,centerX:o.value.width/2,centerY:i.value.base,percentage:(v.value+a)/(b.value+a)})}),S=e.ref(!1);function se(a){S.value=a,z.value+=1}const w=e.ref(!1);function E(){w.value=!w.value}return J({generatePdf:L,generateImage:D,toggleAnnotator:E}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${S.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(fe.PenAndPaper,{key:0,parent:B.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.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(he._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&&C.dataset.base?(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(C.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value&&(e.unref(I)||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(A),uid:m.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:S.value,titles:{...t.value.userOptions.buttonTitles},chartElement:B.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:se,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(D),onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(I)?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:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),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),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":S.value,"vue-data-ui-fulscreen--off":!S.value}),viewBox:`0 0 ${o.value.width<=0?10:o.value.width} ${o.value.height<=0?10:o.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(me._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:o.value.width<=0?10:o.value.width,height:o.value.height<=0?10:o.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Be)):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,_e),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(s.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,we)],8,Se)]),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,Ne)],8,Ce)]),a.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(a.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({seriesIndex:r,patternId:`pattern_${m.value}_${r}`})),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:l.arcSlice,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Ee))),128)),a.$slots.pattern?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:l.arcSlice,fill:`url(#pattern_${m.value}_${r})`,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,ze))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.indicatorArc.show?(e.openBlock(),e.createElementBlock("path",{key:3,d:ne.value,fill:t.value.style.chart.layout.indicatorArc.fill},null,8,$e)):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(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${m.value}_${r}`,d:`M ${u.value.x1},${u.value.y1} m -${g.value[r]},0 a ${g.value[r]},${g.value[r]} 0 1,1 ${2*g.value[r]},0 a ${g.value[r]},${g.value[r]} 0 1,1 -${2*g.value[r]},0`,fill:"transparent"},null,8,Pe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?l.color:t.value.style.chart.layout.segmentNames.color,"font-size":o.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${m.value}_${r}`,startOffset:oe.value[r]},e.toDisplayString(l.name||""),9,Me)],8,Oe))),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(ae.value,(l,r)=>(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":o.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(l.name||""),9,Ve))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:6},e.renderList(re.value,(l,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:l.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${m.value})`},null,8,Xe))),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,Ie),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,Ye),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,l=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(l,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Ae))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,l=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(l,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Re))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,r)=>(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:o.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:o.value.markerOffset}).y,"text-anchor":l.center.startX<u.value.x1-5?"end":l.center.startX>u.value.x1+5?"start":"middle","font-size":o.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,De))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:9,x:e.unref(s.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:o.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:i.value.base,initX:d.value.at(-1).endX,initY:d.value.at(-1).endY,offset:o.value.markerOffset}).y,"text-anchor":"start","font-size":o.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,Ge)):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",qe,[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":o.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,je)),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":o.value.pointerStrokeWidth*.7},null,8,Te)),!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":o.value.pointerStrokeWidth*.3,filter:`url(#blur_${m.value})`},null,8,Ue)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",We,[G.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:G.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,He)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:o.value.width/2,cy:i.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:o.value.pointerRadius<=0?1e-4:o.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,Ze)],64)):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:11,x:o.value.width/2,y:i.value.ratingBase,"text-anchor":"middle","font-size":o.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,v.value,e.unref(s.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&v.value>0?"+":""),v:v.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,Je)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,be)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.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,ke))}},et=pe._export_sfc(Qe,[["__scopeId","data-v-dbac9b9f"]]);exports.default=et;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CHCA909R.cjs"),k=require("./useNestedProp--1nKK7i0.cjs"),_=require("./PackageVersion-Cun_qdX7.cjs"),p=["viewBox","width"],g={key:0},v=["id"],y=["stop-color"],N=["stop-color"],C=["stroke"],V=["stroke"],w=["width","fill"],x=["fill"],B={key:0},E=["id"],b=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),L=[b],z=["stroke"],G=["stroke","stroke-dasharray","stroke-dashoffset"],F=["filter"],P=["stroke","stroke-dasharray","stroke-dashoffset"],$=["fill"],S={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(c){const o=c,{vue_ui_gizmo:f}=r.useConfig(),n=e.ref(r.createUid()),h=e.useSlots();e.onMounted(()=>{i()}),e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiGizmo does not support the #chart-background slot.")});function i(){!o.dataset&&o.dataset!==0&&r.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")}const t=e.computed({get:()=>d(),set:a=>a});function d(){return k.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,a=>{t.value=d(),i()},{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 s=2*Math.PI*35,m=s-o.dataset/100*s;return{dasharray:`${s} ${s}`,dashoffset:m}});return(a,s)=>(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(_._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",g,[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,v)])):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*(c.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(r.applyDataLabel)(t.value.formatter,o.dataset,e.unref(r.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%"},L,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,z),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,G),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,P)],8,F)):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(r.applyDataLabel)(t.value.formatter,o.dataset,e.unref(r.dataLabel)({v:o.dataset,s:"%"}))),9,$)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,p))}};exports.default=S;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as b, useSlots as z, onMounted as g, computed as c, watch as G, openBlock as s, createElementBlock as a, normalizeStyle as L, createVNode as N, createElementVNode as t, createCommentVNode as r, 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-DAAFXQJj.js";
|
|
3
|
+
import { u as V } from "./useNestedProp-DMtJzMiX.js";
|
|
4
|
+
import { _ as P } from "./PackageVersion-DKr8jVlI.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 = /* @__PURE__ */ t("feGaussianBlur", {
|
|
6
6
|
in: "SourceGraphic",
|
|
7
7
|
stdDeviation: 1
|