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 { useCssVars as Ge, computed as
|
|
2
|
-
import { u as He, c as Je, t as Ke, a as Qe, p as me, b as Ze, o as et, e as ke, g as tt, X as lt, G as pe, i as X, f as Y, F as q } from "./index-
|
|
1
|
+
import { useCssVars as Ge, computed as f, ref as o, watch as Ve, onMounted as We, onBeforeUnmount as De, openBlock as i, createElementBlock as a, normalizeStyle as C, unref as u, createBlock as F, createCommentVNode as v, createSlots as Xe, withCtx as B, renderSlot as h, normalizeProps as A, guardReactiveProps as W, normalizeClass as D, createVNode as Ye, createElementVNode as qe, Fragment as P, renderList as L, mergeProps as ge, toDisplayString as E } from "vue";
|
|
2
|
+
import { u as He, c as Je, t as Ke, a as Qe, p as me, b as Ze, o as et, e as ke, g as tt, X as lt, G as pe, i as X, f as Y, F as q } from "./index-DAAFXQJj.js";
|
|
3
3
|
import { t as st, u as it } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as at } from "./Title-
|
|
5
|
-
import { u as nt, U as rt } from "./usePrinter-
|
|
6
|
-
import ut from "./vue-ui-skeleton-
|
|
7
|
-
import { u as we } from "./useNestedProp-
|
|
8
|
-
import { _ as ot } from "./PackageVersion-
|
|
9
|
-
import { P as ct } from "./PenAndPaper-
|
|
4
|
+
import { _ as at } from "./Title-C4aoNP1T.js";
|
|
5
|
+
import { u as nt, U as rt } from "./usePrinter-BvlefWMW.js";
|
|
6
|
+
import ut from "./vue-ui-skeleton-BM3ut-zl.js";
|
|
7
|
+
import { u as we } from "./useNestedProp-DMtJzMiX.js";
|
|
8
|
+
import { _ as ot } from "./PackageVersion-DKr8jVlI.js";
|
|
9
|
+
import { P as ct } from "./PenAndPaper-CurhQVkh.js";
|
|
10
10
|
import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const yt = ["id"],
|
|
12
|
+
const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["cx", "cy", "r", "stroke", "stroke-width"], mt = { key: 1 }, kt = ["stroke", "d", "stroke-width"], pt = { style: { "pointer-events": "none" } }, wt = ["cx", "cy", "fill", "r", "stroke"], xt = ["x", "y", "fill", "font-size"], bt = { key: 2 }, $t = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], _t = { style: { "pointer-events": "none" } }, Ct = ["cx", "cy", "fill", "r", "stroke"], Pt = ["x", "y", "fill", "font-size"], Lt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Ot = ["cx", "cy", "fill", "stroke", "onClick", "r"], zt = {
|
|
13
13
|
key: 5,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
15
|
}, At = {
|
|
@@ -31,11 +31,11 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
31
31
|
setup(xe, { expose: be }) {
|
|
32
32
|
const p = xe;
|
|
33
33
|
Ge((e) => ({
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
"
|
|
34
|
+
"51b67ab0": Oe.value,
|
|
35
|
+
"3bc0348f": Le.value,
|
|
36
|
+
"5deebf9e": ze.value
|
|
37
37
|
}));
|
|
38
|
-
const { vue_ui_relation_circle: $e } = He(), T =
|
|
38
|
+
const { vue_ui_relation_circle: $e } = He(), T = f(() => !!p.dataset && Object.keys(p.dataset).length), O = o(Je()), H = o(0), z = o(null), J = o(null), K = o(null), Q = o(null), Z = o(0), l = f({
|
|
39
39
|
get: () => le(),
|
|
40
40
|
set: (e) => e
|
|
41
41
|
}), { userOptionsVisible: N, setUserOptionsVisibility: ee, keepUserOptionState: te } = dt({ config: l.value });
|
|
@@ -53,22 +53,22 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
53
53
|
} : e;
|
|
54
54
|
}
|
|
55
55
|
Ve(() => p.config, (e) => {
|
|
56
|
-
l.value = le(), N.value = !l.value.showOnChartHover, ce(), Z.value += 1;
|
|
56
|
+
l.value = le(), N.value = !l.value.userOptions.showOnChartHover, ce(), Z.value += 1;
|
|
57
57
|
}, { deep: !0 });
|
|
58
58
|
const { isPrinting: se, isImaging: ie, generatePdf: ae, generateImage: ne } = nt({
|
|
59
59
|
elementId: `relation_circle_${O.value}`,
|
|
60
60
|
fileName: l.value.style.title.text || "vue-ui-relation-circle"
|
|
61
|
-
}), _e =
|
|
61
|
+
}), _e = f(() => l.value.userOptions.show && !l.value.style.title.text), re = f(() => Ze(l.value.customPalette)), x = o([]), g = o([]), c = o({}), m = o([]), Ce = o(0), R = f(() => p.dataset.slice(0, l.value.style.limit)), $ = o(l.value.style.size), k = o(l.value.style.weightLabels.size), ue = o(l.value.style.plot.radius), oe = o(l.value.style.labels.fontSize), r = o({
|
|
62
62
|
height: l.value.style.size,
|
|
63
63
|
width: l.value.style.size
|
|
64
|
-
}), b =
|
|
64
|
+
}), b = f({
|
|
65
65
|
get() {
|
|
66
66
|
return $.value * l.value.style.circle.radiusProportion;
|
|
67
67
|
},
|
|
68
68
|
set(e) {
|
|
69
69
|
return e;
|
|
70
70
|
}
|
|
71
|
-
}), Pe =
|
|
71
|
+
}), Pe = f(() => l.value.style.links.curved), Le = f(() => `${l.value.style.animation.speedMs}ms`), Oe = f(() => b.value * 2), ze = f(() => b.value * 4), I = o(null);
|
|
72
72
|
We(() => {
|
|
73
73
|
ce(), document.getElementById(`relation_circle_${O.value}`).addEventListener("click", de);
|
|
74
74
|
});
|
|
@@ -173,14 +173,14 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
173
173
|
}, d = 0.5, G = Math.pow(1 - d, 3) * s.x + 3 * Math.pow(1 - d, 2) * d * n.x + 3 * (1 - d) * Math.pow(d, 2) * y.x + Math.pow(d, 3) * t.x, V = Math.pow(1 - d, 3) * s.y + 3 * Math.pow(1 - d, 2) * d * n.y + 3 * (1 - d) * Math.pow(d, 2) * y.y + Math.pow(d, 3) * t.y;
|
|
174
174
|
return { x: G, y: V };
|
|
175
175
|
}
|
|
176
|
-
const Me =
|
|
176
|
+
const Me = f(() => Math.max(...g.value.map((e) => e.weight)));
|
|
177
177
|
function Se(e) {
|
|
178
178
|
return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
179
179
|
}
|
|
180
180
|
function w(e) {
|
|
181
181
|
return e.colorSource;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function fe(e) {
|
|
184
184
|
return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}` ? `opacity:1;stroke-width:${j(e)}` : "opacity: 0" : "opacity: 1";
|
|
185
185
|
}
|
|
186
186
|
function _(e) {
|
|
@@ -198,7 +198,7 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
198
198
|
function Te(e) {
|
|
199
199
|
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function he(e) {
|
|
202
202
|
Ce.value = 360 - e.regAngle, c.value.id && e.id === c.value.id ? (c.value = {}, m.value = []) : (c.value = e, m.value = [...e.relations]);
|
|
203
203
|
}
|
|
204
204
|
function j(e) {
|
|
@@ -290,28 +290,28 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
290
290
|
e.$slots.optionPdf ? {
|
|
291
291
|
name: "optionPdf",
|
|
292
292
|
fn: B(() => [
|
|
293
|
-
|
|
293
|
+
h(e.$slots, "optionPdf", {}, void 0, !0)
|
|
294
294
|
]),
|
|
295
295
|
key: "0"
|
|
296
296
|
} : void 0,
|
|
297
297
|
e.$slots.optionImg ? {
|
|
298
298
|
name: "optionImg",
|
|
299
299
|
fn: B(() => [
|
|
300
|
-
|
|
300
|
+
h(e.$slots, "optionImg", {}, void 0, !0)
|
|
301
301
|
]),
|
|
302
302
|
key: "1"
|
|
303
303
|
} : void 0,
|
|
304
304
|
e.$slots.optionFullscreen ? {
|
|
305
305
|
name: "optionFullscreen",
|
|
306
306
|
fn: B(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
307
|
-
|
|
307
|
+
h(e.$slots, "optionFullscreen", A(W({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
308
308
|
]),
|
|
309
309
|
key: "2"
|
|
310
310
|
} : void 0,
|
|
311
311
|
e.$slots.optionAnnotator ? {
|
|
312
312
|
name: "optionAnnotator",
|
|
313
313
|
fn: B(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
314
|
-
|
|
314
|
+
h(e.$slots, "optionAnnotator", A(W({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
315
315
|
]),
|
|
316
316
|
key: "3"
|
|
317
317
|
} : void 0
|
|
@@ -335,8 +335,8 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
335
335
|
pointerEvents: "none"
|
|
336
336
|
}
|
|
337
337
|
}, [
|
|
338
|
-
|
|
339
|
-
], 8,
|
|
338
|
+
h(e.$slots, "chart-background", {}, void 0, !0)
|
|
339
|
+
], 8, ht)) : v("", !0),
|
|
340
340
|
qe("circle", {
|
|
341
341
|
cx: (r.value.width <= 0 ? 1e-4 : r.value.width) / 2,
|
|
342
342
|
cy: (r.value.height <= 0 ? 1e-4 : r.value.height) / 2 + l.value.style.circle.offsetY,
|
|
@@ -349,7 +349,7 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
349
349
|
Pe.value ? (i(), a("g", mt, [
|
|
350
350
|
(i(!0), a(P, null, L(g.value, (t, n) => (i(), a("path", {
|
|
351
351
|
key: `relation_${n}`,
|
|
352
|
-
style: C(
|
|
352
|
+
style: C(fe(t)),
|
|
353
353
|
stroke: w(t),
|
|
354
354
|
class: D(["relation", { "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && m.value.includes(t.id) }]),
|
|
355
355
|
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${r.value.width / 2},${r.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
|
|
@@ -358,7 +358,7 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
358
358
|
"stroke-linecap": "round"
|
|
359
359
|
}, null, 14, kt))), 128)),
|
|
360
360
|
(i(!0), a(P, null, L(g.value, (t, n) => (i(), a("g", pt, [
|
|
361
|
-
_(t) ?
|
|
361
|
+
_(t) ? h(e.$slots, "dataLabel", A(ge({ key: 0 }, {
|
|
362
362
|
x: t.midPointBezier.x,
|
|
363
363
|
y: t.midPointBezier.y,
|
|
364
364
|
color: w(t),
|
|
@@ -398,7 +398,7 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
398
398
|
key: `relation_${n}`,
|
|
399
399
|
stroke: w(t),
|
|
400
400
|
"stroke-width": j(t),
|
|
401
|
-
style: C(
|
|
401
|
+
style: C(fe(t)),
|
|
402
402
|
x1: t.x1,
|
|
403
403
|
x2: t.x2,
|
|
404
404
|
y1: t.y1,
|
|
@@ -407,7 +407,7 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
407
407
|
"stroke-linecap": "round"
|
|
408
408
|
}, null, 14, $t))), 128)),
|
|
409
409
|
(i(!0), a(P, null, L(g.value, (t, n) => (i(), a("g", _t, [
|
|
410
|
-
_(t) ?
|
|
410
|
+
_(t) ? h(e.$slots, "dataLabel", A(ge({ key: 0 }, {
|
|
411
411
|
x: t.midPointLine.x,
|
|
412
412
|
y: t.midPointLine.y,
|
|
413
413
|
color: w(t),
|
|
@@ -449,7 +449,7 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
449
449
|
transform: Te(t),
|
|
450
450
|
x: Be(t),
|
|
451
451
|
y: t.y + 5,
|
|
452
|
-
onClick: (y) =>
|
|
452
|
+
onClick: (y) => he(t),
|
|
453
453
|
class: "vue-ui-relation-circle-legend",
|
|
454
454
|
"transform-origin": "start",
|
|
455
455
|
"font-weight": c.value.id === t.id ? "900" : "400",
|
|
@@ -476,13 +476,13 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
476
476
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
477
477
|
stroke: l.value.style.backgroundColor,
|
|
478
478
|
"stroke-width": "1",
|
|
479
|
-
onClick: (y) =>
|
|
479
|
+
onClick: (y) => he(t),
|
|
480
480
|
r: ue.value
|
|
481
481
|
}, null, 12, Ot))), 128)),
|
|
482
|
-
|
|
483
|
-
], 10,
|
|
482
|
+
h(e.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
483
|
+
], 10, ft)) : v("", !0),
|
|
484
484
|
e.$slots.watermark ? (i(), a("div", zt, [
|
|
485
|
-
|
|
485
|
+
h(e.$slots, "watermark", A(W({ isPrinting: u(se) || u(ie) })), void 0, !0)
|
|
486
486
|
])) : v("", !0),
|
|
487
487
|
e.$slots.source ? (i(), a("div", {
|
|
488
488
|
key: 6,
|
|
@@ -490,7 +490,7 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
490
490
|
ref: K,
|
|
491
491
|
dir: "auto"
|
|
492
492
|
}, [
|
|
493
|
-
|
|
493
|
+
h(e.$slots, "source", {}, void 0, !0)
|
|
494
494
|
], 512)) : v("", !0),
|
|
495
495
|
T.value ? v("", !0) : (i(), F(ut, {
|
|
496
496
|
key: 7,
|
|
@@ -506,7 +506,7 @@ const yt = ["id"], ht = ["xmlns", "viewBox"], ft = ["width", "height"], gt = ["c
|
|
|
506
506
|
}, null, 8, ["config"]))
|
|
507
507
|
], 44, yt));
|
|
508
508
|
}
|
|
509
|
-
}, Gt = /* @__PURE__ */ vt(At, [["__scopeId", "data-v-
|
|
509
|
+
}, Gt = /* @__PURE__ */ vt(At, [["__scopeId", "data-v-dd9e8e63"]]);
|
|
510
510
|
export {
|
|
511
511
|
Gt as default
|
|
512
512
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useSlots as De, ref as r, computed as h, watch as Ee, onMounted as Ge, onBeforeUnmount as He, openBlock as n, createElementBlock as v, normalizeClass as V, normalizeStyle as
|
|
2
|
-
import { u as Xe, c as Te, t as qe, a as Ye, p as I, o as Je, e as Z, g as Ke, b as Qe, J as Ze, d as _e, f as P, X as et, s as tt, w as lt, v as G, i as xe, x as ot, y as at, q as st, r as nt } from "./index-
|
|
1
|
+
import { useSlots as De, ref as r, computed as h, watch as Ee, onMounted as Ge, onBeforeUnmount as He, openBlock as n, createElementBlock as v, normalizeClass as V, normalizeStyle as O, unref as i, createBlock as N, createCommentVNode as m, createSlots as we, withCtx as g, renderSlot as p, normalizeProps as F, guardReactiveProps as L, createVNode as J, createElementVNode as T, Fragment as K, renderList as Q, createTextVNode as $e, toDisplayString as E, nextTick as je } from "vue";
|
|
2
|
+
import { u as Xe, c as Te, t as qe, a as Ye, p as I, o as Je, e as Z, g as Ke, b as Qe, J as Ze, d as _e, f as P, X as et, s as tt, w as lt, v as G, i as xe, x as ot, y as at, q as st, r as nt } from "./index-DAAFXQJj.js";
|
|
3
3
|
import { t as ut, u as rt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as it } from "./Title-
|
|
5
|
-
import { u as vt, U as ct } from "./usePrinter-
|
|
6
|
-
import { _ as dt } from "./Tooltip-
|
|
7
|
-
import { D as pt } from "./DataTable-
|
|
8
|
-
import { L as ht } from "./Legend-
|
|
9
|
-
import gt from "./vue-ui-skeleton-
|
|
10
|
-
import ft from "./vue-ui-accordion-
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as yt } from "./PackageVersion-
|
|
13
|
-
import { P as mt } from "./PenAndPaper-
|
|
4
|
+
import { _ as it } from "./Title-C4aoNP1T.js";
|
|
5
|
+
import { u as vt, U as ct } from "./usePrinter-BvlefWMW.js";
|
|
6
|
+
import { _ as dt } from "./Tooltip-CG6ZX21C.js";
|
|
7
|
+
import { D as pt } from "./DataTable-D4_TjSBJ.js";
|
|
8
|
+
import { L as ht } from "./Legend-K7NRkzGf.js";
|
|
9
|
+
import gt from "./vue-ui-skeleton-BM3ut-zl.js";
|
|
10
|
+
import ft from "./vue-ui-accordion-B67N9Oo8.js";
|
|
11
|
+
import { u as Oe } from "./useNestedProp-DMtJzMiX.js";
|
|
12
|
+
import { _ as yt } from "./PackageVersion-DKr8jVlI.js";
|
|
13
|
+
import { P as mt } from "./PenAndPaper-CurhQVkh.js";
|
|
14
14
|
import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as kt } from "./Shape-
|
|
15
|
+
import { _ as kt } from "./Shape-C4LyHNQ3.js";
|
|
16
16
|
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["id"], xt = ["stop-color"],
|
|
17
|
+
const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["id"], xt = ["stop-color"], Ot = ["stop-color"], Nt = { key: 1 }, It = ["stroke", "cx", "cy", "r", "fill"], Pt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], St = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], At = ["cx", "cy", "r", "onMouseenter"], Ft = {
|
|
18
18
|
key: 5,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
20
|
}, Lt = ["onClick"], Mt = { key: 0 }, Vt = { key: 1 }, zt = ["innerHTML"], Rt = {
|
|
@@ -34,18 +34,18 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const b =
|
|
37
|
+
setup(Ne, { expose: Ie, emit: Pe }) {
|
|
38
|
+
const b = Ne, { vue_ui_rings: Se } = Xe(), Ae = De(), x = r(!1), z = h(() => !!b.dataset && b.dataset.length), w = r(Te()), Fe = r(null), R = r(!1), H = r(""), $ = r(null), ee = r(0), S = r(null), te = r(null), le = r(null), oe = r(null), ae = r(null), se = r(0), ne = r(0), ue = r(0), e = h({
|
|
39
39
|
get: () => ve(),
|
|
40
40
|
set: (t) => t
|
|
41
41
|
}), { userOptionsVisible: j, setUserOptionsVisibility: re, keepUserOptionState: ie } = bt({ config: e.value });
|
|
42
42
|
function ve() {
|
|
43
|
-
const t =
|
|
43
|
+
const t = Oe({
|
|
44
44
|
userConfig: b.config,
|
|
45
45
|
defaultConfig: Se
|
|
46
46
|
});
|
|
47
47
|
return t.theme ? {
|
|
48
|
-
...
|
|
48
|
+
...Oe({
|
|
49
49
|
userConfig: qe.vue_ui_rings[t.theme] || b.config,
|
|
50
50
|
defaultConfig: t
|
|
51
51
|
}),
|
|
@@ -53,7 +53,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
53
53
|
} : t;
|
|
54
54
|
}
|
|
55
55
|
Ee(() => b.config, (t) => {
|
|
56
|
-
e.value = ve(), j.value = !e.value.showOnChartHover, ce(), se.value += 1, ne.value += 1, ue.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
56
|
+
e.value = ve(), j.value = !e.value.userOptions.showOnChartHover, ce(), se.value += 1, ne.value += 1, ue.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
57
57
|
}, { deep: !0 });
|
|
58
58
|
const U = r(null);
|
|
59
59
|
Ge(() => {
|
|
@@ -290,14 +290,14 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
290
290
|
ref_key: "ringsChart",
|
|
291
291
|
ref: S,
|
|
292
292
|
class: V(`vue-ui-rings ${A.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
293
|
-
style:
|
|
293
|
+
style: O(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
294
294
|
id: `rings_${w.value}`,
|
|
295
295
|
onMouseleave: o[3] || (o[3] = (l) => {
|
|
296
296
|
$.value = null, R.value = !1, i(re)(!1);
|
|
297
297
|
}),
|
|
298
298
|
onMouseenter: o[4] || (o[4] = () => i(re)(!0))
|
|
299
299
|
}, [
|
|
300
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
300
|
+
e.value.userOptions.buttons.annotator ? (n(), N(mt, {
|
|
301
301
|
key: 0,
|
|
302
302
|
parent: S.value,
|
|
303
303
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -318,7 +318,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
318
318
|
ref: te,
|
|
319
319
|
style: "width:100%;background:transparent"
|
|
320
320
|
}, [
|
|
321
|
-
(n(),
|
|
321
|
+
(n(), N(it, {
|
|
322
322
|
key: `title_${se.value}`,
|
|
323
323
|
config: {
|
|
324
324
|
title: {
|
|
@@ -332,7 +332,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
332
332
|
}
|
|
333
333
|
}, null, 8, ["config"]))
|
|
334
334
|
], 512)) : m("", !0),
|
|
335
|
-
e.value.userOptions.show && z.value && (i(ie) || i(j)) ? (n(),
|
|
335
|
+
e.value.userOptions.show && z.value && (i(ie) || i(j)) ? (n(), N(ct, {
|
|
336
336
|
ref_key: "details",
|
|
337
337
|
ref: Fe,
|
|
338
338
|
key: `user_options_${ee.value}`,
|
|
@@ -361,7 +361,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
361
361
|
onToggleTable: ke,
|
|
362
362
|
onToggleTooltip: Ce,
|
|
363
363
|
onToggleAnnotator: Y,
|
|
364
|
-
style:
|
|
364
|
+
style: O({
|
|
365
365
|
visibility: i(ie) ? i(j) ? "visible" : "hidden" : "visible"
|
|
366
366
|
})
|
|
367
367
|
}, we({ _: 2 }, [
|
|
@@ -420,7 +420,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
420
420
|
xmlns: i(et),
|
|
421
421
|
class: V({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
422
422
|
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
423
|
-
style:
|
|
423
|
+
style: O(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
424
424
|
}, [
|
|
425
425
|
J(yt),
|
|
426
426
|
t.$slots["chart-background"] ? (n(), v("foreignObject", {
|
|
@@ -451,10 +451,10 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
451
451
|
T("stop", {
|
|
452
452
|
offset: "100%",
|
|
453
453
|
"stop-color": l.color
|
|
454
|
-
}, null, 8,
|
|
454
|
+
}, null, 8, Ot)
|
|
455
455
|
], 8, _t))), 256))
|
|
456
456
|
]),
|
|
457
|
-
t.$slots.pattern ? (n(), v("g",
|
|
457
|
+
t.$slots.pattern ? (n(), v("g", Nt, [
|
|
458
458
|
(n(!0), v(K, null, Q(d.value, (l) => (n(), v("defs", null, [
|
|
459
459
|
p(t.$slots, "pattern", F(L({ seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` })), void 0, !0)
|
|
460
460
|
]))), 256))
|
|
@@ -466,7 +466,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
466
466
|
"vue-rings-item-onload": !x.value && e.value.useCssAnimation,
|
|
467
467
|
"vue-ui-rings-opacity": $.value !== null && $.value !== a
|
|
468
468
|
}),
|
|
469
|
-
style:
|
|
469
|
+
style: O(`animation-delay:${a * 100}ms`),
|
|
470
470
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
471
471
|
cx: s.value.width / 2,
|
|
472
472
|
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + c.value * d.value[0].proportion / 2 - c.value * l.proportion / 2 - 2 * (a + 1),
|
|
@@ -480,7 +480,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
480
480
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
481
481
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
482
482
|
}),
|
|
483
|
-
style:
|
|
483
|
+
style: O(`animation-delay:${a * 100}ms`),
|
|
484
484
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
485
485
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
486
486
|
cx: s.value.width / 2,
|
|
@@ -496,7 +496,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
496
496
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
497
497
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
498
498
|
}),
|
|
499
|
-
style:
|
|
499
|
+
style: O(`animation-delay:${a * 100}ms`),
|
|
500
500
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
501
501
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
502
502
|
cx: s.value.width / 2,
|
|
@@ -522,7 +522,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
522
522
|
t.$slots.watermark ? (n(), v("div", Ft, [
|
|
523
523
|
p(t.$slots, "watermark", F(L({ isPrinting: i(de) || i(pe) })), void 0, !0)
|
|
524
524
|
])) : m("", !0),
|
|
525
|
-
z.value ? m("", !0) : (n(),
|
|
525
|
+
z.value ? m("", !0) : (n(), N(gt, {
|
|
526
526
|
key: 6,
|
|
527
527
|
config: {
|
|
528
528
|
type: "rings",
|
|
@@ -538,7 +538,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
538
538
|
ref_key: "chartLegend",
|
|
539
539
|
ref: le
|
|
540
540
|
}, [
|
|
541
|
-
e.value.style.chart.legend.show ? (n(),
|
|
541
|
+
e.value.style.chart.legend.show ? (n(), N(ht, {
|
|
542
542
|
key: `legend_${ue.value}`,
|
|
543
543
|
legendSet: me.value,
|
|
544
544
|
config: ze.value,
|
|
@@ -548,7 +548,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
548
548
|
T("div", {
|
|
549
549
|
"data-cy-legend-item": "",
|
|
550
550
|
onClick: (u) => X(l.uid),
|
|
551
|
-
style:
|
|
551
|
+
style: O(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
|
|
552
552
|
}, [
|
|
553
553
|
$e(E(l.name) + ": " + E(i(xe)(
|
|
554
554
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
@@ -620,7 +620,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
620
620
|
]),
|
|
621
621
|
_: 3
|
|
622
622
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
623
|
-
z.value ? (n(),
|
|
623
|
+
z.value ? (n(), N(ft, {
|
|
624
624
|
key: 8,
|
|
625
625
|
hideDetails: "",
|
|
626
626
|
config: {
|
|
@@ -637,7 +637,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
637
637
|
}
|
|
638
638
|
}, {
|
|
639
639
|
content: g(() => [
|
|
640
|
-
(n(),
|
|
640
|
+
(n(), N(pt, {
|
|
641
641
|
key: `table_${ne.value}`,
|
|
642
642
|
colNames: B.value.colNames,
|
|
643
643
|
head: B.value.head,
|
|
@@ -662,7 +662,7 @@ const wt = ["id"], $t = ["xmlns", "viewBox"], Tt = ["width", "height"], _t = ["i
|
|
|
662
662
|
}, 8, ["config"])) : m("", !0)
|
|
663
663
|
], 46, wt));
|
|
664
664
|
}
|
|
665
|
-
}, tl = /* @__PURE__ */ Ct(Rt, [["__scopeId", "data-v-
|
|
665
|
+
}, tl = /* @__PURE__ */ Ct(Rt, [["__scopeId", "data-v-c89acd2c"]]);
|
|
666
666
|
export {
|
|
667
667
|
tl as default
|
|
668
668
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
2
|
-
</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),_.value=u}x.value=!0}const y=e.computed(()=>{const l=c.value.map(o=>({name:o.name,color:o.color})),a=c.value.map(o=>o.value);return{head:l,body:a}}),S=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=y.value.head.map((u,v)=>[{color:u.color,name:u.name},n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:y.value.body[v],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(y.value.body[v]/f.value)?"-":(y.value.body[v]/f.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},r=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:r}});function Z(){e.nextTick(()=>{const l=y.value.head.map((r,u)=>[[r.name],[y.value.body[u]],[isNaN(y.value.body[u]/f.value)?"-":y.value.body[u]/f.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=n.createCsvContent(a);n.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const C=e.ref(!1);function me(l){C.value=l,O.value+=1}function ee(){h.value.showTable=!h.value.showTable}function te(){h.value.showTooltip=!h.value.showTooltip}const B=e.ref(!1);function E(){B.value=!B.value}return ne({getData:fe,generatePdf:X,generateCsv:Z,generateImage:Y,toggleTable:ee,toggleTooltip:te,toggleAnnotator:E}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:k,class:e.normalizeClass(`vue-ui-rings ${C.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${g.value}`,onMouseleave:a[3]||(a[3]=o=>{m.value=null,x.value=!1,e.unref(U)(!1)}),onMouseenter:a[4]||(a[4]=()=>e.unref(U)(!0))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Te.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),de.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:F,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:I,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(be._sfc_main,{key:`title_${R.value}`,config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(D)||e.unref(P))?(e.openBlock(),e.createBlock(oe.UserOptions,{ref_key:"details",ref:ce,key:`user_options_${O.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(G),isImaging:e.unref(j),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:h.value.showTooltip,isFullscreen:C.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:me,onGeneratePdf:e.unref(X),onGenerateCsv:Z,onGenerateImage:e.unref(Y),onToggleTable:ee,onToggleTooltip:te,onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(D)?e.unref(P)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:s.value.width<=0?10:s.value.width,height:s.value.height<=0?10:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Le)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${g.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(o.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,Oe),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,Ie)],8,Ee))),256))]),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,o=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(l.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({seriesIndex:o.absoluteIndex,patternId:`pattern_${g.value}_${o.absoluteIndex}`})),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,Ae),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${g.value}_${r})`:o.color},null,14,Fe),l.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:`url(#pattern_${g.value}_${o.absoluteIndex})`},null,14,Re)):e.createCommentVNode("",!0),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:"transparent",onMouseenter:u=>ge(r,o),onMouseleave:a[0]||(a[0]=u=>{m.value=null,x.value=!1})},null,40,qe)]))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,Ve)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Me,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(G)||e.unref(j)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:6,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:z},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(we.Legend,{key:`legend_${M.value}`,legendSet:Q.value,config:he.value,onClickMarker:a[1]||(a[1]=({legend:o})=>V(o.uid))},e.createSlots({item:e.withCtx(({legend:o,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>V(o.uid),style:e.normalizeStyle(`opacity:${d.value.includes(o.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:r}))+" ",1),d.value.includes(o.uid)?(e.openBlock(),e.createElementBlock("span",We," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",De," ("+e.toDisplayString(isNaN(o.value/f.value)?"-":e.unref(n.dataLabel)({v:o.value/f.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ue)]),_:2},[l.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:o,index:r})=>[e.createVNode(Be._sfc_main,{shape:o.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${g.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Q.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:A,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ke._sfc_main,{show:h.value.showTooltip&&x.value&&d.value.length<p.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:_.value,isFullscreen:C.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),$.value?(e.openBlock(),e.createBlock(xe.default,{key:8,hideDetails:"",config:{open:h.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ce.DataTable,{key:`table_${q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,He)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Pe))}},je=_e._export_sfc(Ge,[["__scopeId","data-v-a858c542"]]);exports.default=je;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-CHCA909R.cjs"),le=require("./useResponsive-BJ7DTGpm.cjs"),be=require("./Title-bDp_4dQV.cjs"),oe=require("./usePrinter-xicwiw8r.cjs"),ke=require("./Tooltip-fEuHWstj.cjs"),Ce=require("./DataTable-ZowHAjXC.cjs"),we=require("./Legend-CcoLuZn0.cjs"),$e=require("./vue-ui-skeleton-DsMIGHB3.cjs"),xe=require("./vue-ui-accordion-B4PyxVUm.cjs"),ae=require("./useNestedProp--1nKK7i0.cjs"),Ne=require("./PackageVersion-Cun_qdX7.cjs"),Te=require("./PenAndPaper-u46MyY7W.cjs"),Se=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./Shape-B6dlN2je.cjs"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Pe=["id"],Ve=["xmlns","viewBox"],Le=["width","height"],Ee=["id"],Oe=["stop-color"],Ie=["stop-color"],ze={key:1},Ae=["stroke","cx","cy","r","fill"],Fe=["stroke","stroke-width","cx","cy","r","fill"],Re=["stroke","stroke-width","cx","cy","r","fill"],qe=["cx","cy","r","onMouseenter"],Me={key:5,class:"vue-data-ui-watermark"},Ue=["onClick"],De={key:0},We={key:1},He=["innerHTML"],Ge={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(re,{expose:ne,emit:se}){const p=re,{vue_ui_rings:ue}=n.useConfig(),ie=e.useSlots(),b=e.ref(!1),$=e.computed(()=>!!p.dataset&&p.dataset.length),g=e.ref(n.createUid()),ce=e.ref(null),x=e.ref(!1),_=e.ref(""),m=e.ref(null),O=e.ref(0),k=e.ref(null),I=e.ref(null),z=e.ref(null),A=e.ref(null),F=e.ref(null),R=e.ref(0),q=e.ref(0),M=e.ref(0),t=e.computed({get:()=>W(),set:l=>l}),{userOptionsVisible:P,setUserOptionsVisibility:U,keepUserOptionState:D}=Se.useUserOptionState({config:t.value});function W(){const l=ae.useNestedProp({userConfig:p.config,defaultConfig:ue});return l.theme?{...ae.useNestedProp({userConfig:n.themes.vue_ui_rings[l.theme]||p.config,defaultConfig:l}),customPalette:n.themePalettes[l.theme]||n.palette}:l}e.watch(()=>p.config,l=>{t.value=W(),P.value=!t.value.userOptions.showOnChartHover,H(),R.value+=1,q.value+=1,M.value+=1,h.value.showTable=t.value.table.show,h.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const N=e.ref(null);e.onMounted(()=>{H()});function H(){if(n.objectIsEmpty(p.dataset)?n.error({componentName:"VueUiRings",type:"dataset"}):p.dataset.forEach((l,a)=>{l.values.length||n.error({componentName:"VueUiRings",type:"dataset"}),n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{n.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:o,index:a})})}),t.value.responsive){const l=le.throttle(()=>{const{width:a,height:o}=le.useResponsive({chart:k.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?z.value:null,source:A.value,noTitle:F.value});requestAnimationFrame(()=>{s.value.width=a,s.value.height=o})});N.value=new ResizeObserver(l),N.value.observe(k.value.parentNode)}setTimeout(()=>{b.value=!0},600)}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:G,isImaging:j,generatePdf:X,generateImage:Y}=oe.usePrinter({elementId:`rings_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),de=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),J=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),h=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),ve=e.computed(()=>Math.min(s.value.height,s.value.width)),d=e.ref([]);function V(l){d.value.includes(l)?d.value=d.value.filter(a=>a!==l):d.value.push(l),se("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const pe=e.computed(()=>Math.max(...T.value.filter(l=>!d.value.includes(l.uid)).map(({value:l})=>l)));function K(l){return l/pe.value}const T=e.computed(()=>p.dataset.map(({values:l,name:a,color:o=null},r)=>{const u=n.sanitizeArray(l).reduce((v,w)=>v+w,0);return{name:a,color:o||n.convertColorToHex(o)||J.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:u,proportion:u/p.dataset.map(v=>(v.values||[]).reduce((w,ye)=>w+ye,0)).reduce((v,w)=>v+w,0),uid:n.createUid(),absoluteIndex:r}})),Q=e.computed(()=>T.value.map(l=>({...l,shape:"circle",opacity:d.value.includes(l.uid)?.5:1,segregate:()=>V(l.uid),isSegregated:d.value.includes(l.uid)})).toSorted((l,a)=>a.value-l.value)),he=e.computed(()=>({cy:"rings-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),f=e.computed(()=>T.value.filter(l=>!d.value.includes(l.uid)).map(({value:l})=>l).reduce((l,a)=>l+a,0)),c=e.computed(()=>T.value.filter(l=>!d.value.includes(l.uid)).map(({name:l,value:a,color:o=null,uid:r,absoluteIndex:u},v)=>({absoluteIndex:u,uid:r,name:l,color:o||n.convertColorToHex(o)||J.value[v]||n.palette[v]||n.palette[v%n.palette.length],value:a,proportion:K(a),percentage:a/f.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*K(a)})).toSorted((l,a)=>a.value-l.value));function fe(){return c.value.map(({name:l,color:a,value:o,absoluteValues:r,percentage:u})=>({name:l,color:a,value:o,absoluteValues:r,percentage:u}))}const i=e.computed(()=>ve.value-t.value.style.chart.layout.rings.strokeWidth*2),L=e.ref(null);function ge(l,a){if(d.value.length===p.dataset.length)return;L.value={datapoint:a,seriesIndex:l,series:c.value,config:t.value},m.value=l;const o=c.value[l],r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:l,datapoint:a,series:c.value,config:t.value})))_.value=r({seriesIndex:l,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,u+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${o.color}" />${ie.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${a.absoluteIndex})" />`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:l})}
|
|
2
|
+
</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),_.value=u}x.value=!0}const y=e.computed(()=>{const l=c.value.map(o=>({name:o.name,color:o.color})),a=c.value.map(o=>o.value);return{head:l,body:a}}),S=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=y.value.head.map((u,v)=>[{color:u.color,name:u.name},n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:y.value.body[v],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(y.value.body[v]/f.value)?"-":(y.value.body[v]/f.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},r=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:r}});function Z(){e.nextTick(()=>{const l=y.value.head.map((r,u)=>[[r.name],[y.value.body[u]],[isNaN(y.value.body[u]/f.value)?"-":y.value.body[u]/f.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=n.createCsvContent(a);n.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const C=e.ref(!1);function me(l){C.value=l,O.value+=1}function ee(){h.value.showTable=!h.value.showTable}function te(){h.value.showTooltip=!h.value.showTooltip}const B=e.ref(!1);function E(){B.value=!B.value}return ne({getData:fe,generatePdf:X,generateCsv:Z,generateImage:Y,toggleTable:ee,toggleTooltip:te,toggleAnnotator:E}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:k,class:e.normalizeClass(`vue-ui-rings ${C.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${g.value}`,onMouseleave:a[3]||(a[3]=o=>{m.value=null,x.value=!1,e.unref(U)(!1)}),onMouseenter:a[4]||(a[4]=()=>e.unref(U)(!0))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Te.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),de.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:F,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:I,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(be._sfc_main,{key:`title_${R.value}`,config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(D)||e.unref(P))?(e.openBlock(),e.createBlock(oe.UserOptions,{ref_key:"details",ref:ce,key:`user_options_${O.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(G),isImaging:e.unref(j),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:h.value.showTooltip,isFullscreen:C.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:me,onGeneratePdf:e.unref(X),onGenerateCsv:Z,onGenerateImage:e.unref(Y),onToggleTable:ee,onToggleTooltip:te,onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(D)?e.unref(P)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ne._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:s.value.width<=0?10:s.value.width,height:s.value.height<=0?10:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Le)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${g.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(o.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,Oe),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,Ie)],8,Ee))),256))]),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,o=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(l.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({seriesIndex:o.absoluteIndex,patternId:`pattern_${g.value}_${o.absoluteIndex}`})),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,Ae),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${g.value}_${r})`:o.color},null,14,Fe),l.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:`url(#pattern_${g.value}_${o.absoluteIndex})`},null,14,Re)):e.createCommentVNode("",!0),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:"transparent",onMouseenter:u=>ge(r,o),onMouseleave:a[0]||(a[0]=u=>{m.value=null,x.value=!1})},null,40,qe)]))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,Ve)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Me,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(G)||e.unref(j)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:6,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:z},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(we.Legend,{key:`legend_${M.value}`,legendSet:Q.value,config:he.value,onClickMarker:a[1]||(a[1]=({legend:o})=>V(o.uid))},e.createSlots({item:e.withCtx(({legend:o,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>V(o.uid),style:e.normalizeStyle(`opacity:${d.value.includes(o.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:r}))+" ",1),d.value.includes(o.uid)?(e.openBlock(),e.createElementBlock("span",We," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",De," ("+e.toDisplayString(isNaN(o.value/f.value)?"-":e.unref(n.dataLabel)({v:o.value/f.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ue)]),_:2},[l.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:o,index:r})=>[e.createVNode(Be._sfc_main,{shape:o.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${g.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Q.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:A,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(ke._sfc_main,{show:h.value.showTooltip&&x.value&&d.value.length<p.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:_.value,isFullscreen:C.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),$.value?(e.openBlock(),e.createBlock(xe.default,{key:8,hideDetails:"",config:{open:h.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ce.DataTable,{key:`table_${q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,He)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Pe))}},je=_e._export_sfc(Ge,[["__scopeId","data-v-c89acd2c"]]);exports.default=je;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { computed as m, ref as h, watch as lt, onMounted as at, onBeforeUnmount as ot, openBlock as o, createElementBlock as r, normalizeClass as je, normalizeStyle as Y, unref as n, createBlock as V, createCommentVNode as c, createSlots as st, withCtx as _, renderSlot as M, normalizeProps as K, guardReactiveProps as Q, createVNode as pe, createElementVNode as d, Fragment as P, renderList as I, toDisplayString as C, createTextVNode as ut, nextTick as rt } from "vue";
|
|
2
|
-
import { u as it, c as nt, t as vt, a as yt, p as R, o as ct, e as fe, b as dt, g as Ee, U as ht, S as pt, Z as ft, X as gt, V as xt, s as ge, i as j, v as A, f as W, x as mt, y as bt, q as kt, r as wt } from "./index-
|
|
2
|
+
import { u as it, c as nt, t as vt, a as yt, p as R, o as ct, e as fe, b as dt, g as Ee, U as ht, S as pt, Z as ft, X as gt, V as xt, s as ge, i as j, v as A, f as W, x as mt, y as bt, q as kt, r as wt } from "./index-DAAFXQJj.js";
|
|
3
3
|
import { t as _t, u as Mt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as $t } from "./Title-
|
|
5
|
-
import { u as Ct, U as At } from "./usePrinter-
|
|
6
|
-
import { _ as zt } from "./Tooltip-
|
|
7
|
-
import { L as St } from "./Legend-
|
|
8
|
-
import { _ as Ue } from "./Shape-
|
|
9
|
-
import { D as Tt } from "./DataTable-
|
|
10
|
-
import Lt from "./vue-ui-skeleton-
|
|
11
|
-
import Bt from "./vue-ui-accordion-
|
|
12
|
-
import { u as Ge } from "./useNestedProp-
|
|
13
|
-
import { _ as Ot } from "./PackageVersion-
|
|
14
|
-
import { P as Nt } from "./PenAndPaper-
|
|
4
|
+
import { _ as $t } from "./Title-C4aoNP1T.js";
|
|
5
|
+
import { u as Ct, U as At } from "./usePrinter-BvlefWMW.js";
|
|
6
|
+
import { _ as zt } from "./Tooltip-CG6ZX21C.js";
|
|
7
|
+
import { L as St } from "./Legend-K7NRkzGf.js";
|
|
8
|
+
import { _ as Ue } from "./Shape-C4LyHNQ3.js";
|
|
9
|
+
import { D as Tt } from "./DataTable-D4_TjSBJ.js";
|
|
10
|
+
import Lt from "./vue-ui-skeleton-BM3ut-zl.js";
|
|
11
|
+
import Bt from "./vue-ui-accordion-B67N9Oo8.js";
|
|
12
|
+
import { u as Ge } from "./useNestedProp-DMtJzMiX.js";
|
|
13
|
+
import { _ as Ot } from "./PackageVersion-DKr8jVlI.js";
|
|
14
|
+
import { P as Nt } from "./PenAndPaper-CurhQVkh.js";
|
|
15
15
|
import { u as Pt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
16
|
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Dt = { key: 1 }, Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 2 }, Et = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Ut = { key: 0 }, Gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], qt = { key: 1 }, Rt = { key: 3 }, Ht = ["id"], Zt = ["stop-color"], Jt = ["stop-color"], Kt = ["id"], Qt = ["stop-color"], el = ["stop-color"], tl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], ll = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], al = { key: 0 }, ol = ["d", "stroke", "stroke-width"], sl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke", "stroke-width"], rl = ["d", "stroke", "stroke-width"], il = {
|
|
@@ -63,7 +63,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Dt = { k
|
|
|
63
63
|
} : t;
|
|
64
64
|
}
|
|
65
65
|
lt(() => F.config, (t) => {
|
|
66
|
-
e.value = ze(), ie.value = !e.value.showOnChartHover, Se(), _e.value += 1, Me.value += 1, $e.value += 1, B.value.showTable = e.value.table.show, B.value.showTooltip = e.value.style.tooltip.show;
|
|
66
|
+
e.value = ze(), ie.value = !e.value.userOptions.showOnChartHover, Se(), _e.value += 1, Me.value += 1, $e.value += 1, B.value.showTable = e.value.table.show, B.value.showTooltip = e.value.style.tooltip.show;
|
|
67
67
|
}, { deep: !0 });
|
|
68
68
|
const te = h(null);
|
|
69
69
|
at(() => {
|
|
@@ -1018,7 +1018,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Dt = { k
|
|
|
1018
1018
|
}, 8, ["config"])) : c("", !0)
|
|
1019
1019
|
], 46, Ft));
|
|
1020
1020
|
}
|
|
1021
|
-
}, Kl = /* @__PURE__ */ Wt(Pl, [["__scopeId", "data-v-
|
|
1021
|
+
}, Kl = /* @__PURE__ */ Wt(Pl, [["__scopeId", "data-v-e8c15ca8"]]);
|
|
1022
1022
|
export {
|
|
1023
1023
|
Kl as default
|
|
1024
1024
|
};
|