vue-data-ui 2.3.73 → 2.3.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-B9ZuNkP-.js → Arrow-BTG7M25z.js} +1 -1
- package/dist/{Arrow-B8nZeqNJ.cjs → Arrow-CZK77NmC.cjs} +1 -1
- package/dist/{BaseIcon-CXbZK6D-.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
- package/dist/{BaseIcon-_V_BEdy8.js → BaseIcon-BAOfPaXs.js} +1 -1
- package/dist/{DataTable-BOdJVZzF.js → DataTable-CQANRZju.js} +2 -2
- package/dist/{DataTable-wmKwMbsJ.cjs → DataTable-DjQzrklZ.cjs} +1 -1
- package/dist/{Legend-DdndVhHV.cjs → Legend-CtbPB0Bo.cjs} +1 -1
- package/dist/{Legend-CHd5QFPM.js → Legend-DX1kv21U.js} +1 -1
- package/dist/{Shape-CLRxBhyM.cjs → Shape-CadGs1Am.cjs} +1 -1
- package/dist/{Shape-DNbJlwSU.js → Shape-kqcyauhC.js} +1 -1
- package/dist/{Slicer-Dts-BToH.cjs → Slicer-i_oECHxH.cjs} +1 -1
- package/dist/{Slicer-8Gg45iGX.js → Slicer-yaJs-izT.js} +2 -2
- package/dist/{Title-Ngy9HNqO.js → Title-C26I_HC3.js} +1 -1
- package/dist/{Title-CujodUjt.cjs → Title-XBiDFYKD.cjs} +1 -1
- package/dist/{Tooltip-BCtg7xYX.js → Tooltip-CH8GmDCG.js} +1 -1
- package/dist/{Tooltip-DsmWz8gF.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
- package/dist/{index-Dvs5Ra-u.js → index-Cm4Iry5c.js} +1 -1
- package/dist/{index-sFjJ2dIj.cjs → index-DYUBiaGS.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-UohhCyBz.js → useNestedProp-CurQIHTa.js} +1 -1
- package/dist/{useNestedProp-ir0jEo5M.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
- package/dist/{usePrinter-B8-keRMa.js → usePrinter-B8RnF8_q.js} +1 -1
- package/dist/{usePrinter-DSMMs1w9.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
- package/dist/{vue-data-ui-NvV5qa--.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
- package/dist/{vue-data-ui-Bgo6YUhl.js → vue-data-ui-Bj6kEIpq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BAz41kL7.cjs +19 -0
- package/dist/{vue-ui-3d-bar-DckNIYgA.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
- package/dist/{vue-ui-accordion-RuCkf_li.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
- package/dist/{vue-ui-accordion-C-qAry7P.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CamjaXUw.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
- package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
- package/dist/{vue-ui-annotator-D0kYZ56C.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
- package/dist/{vue-ui-annotator-DMmdqorj.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
- package/dist/{vue-ui-candlestick-DRi8lDTn.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
- package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
- package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
- package/dist/{vue-ui-carousel-table-u5OoOMr1.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
- package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
- package/dist/{vue-ui-chestnut-D5a4OH1D.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
- package/dist/{vue-ui-cursor-Bp_PHbz4.js → vue-ui-cursor-BP04_XbB.js} +2 -2
- package/dist/{vue-ui-cursor-DpBsZNEE.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BwBYH8V_.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
- package/dist/{vue-ui-dashboard--kjU0uMc.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
- package/dist/{vue-ui-digits-CIV9J3SW.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
- package/dist/{vue-ui-digits-t2G4B6uD.js → vue-ui-digits-DUhkLcmd.js} +2 -2
- package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
- package/dist/{vue-ui-donut-BTug2gsP.js → vue-ui-donut-DRPSwmGr.js} +376 -362
- package/dist/{vue-ui-donut-evolution-DTD0Hfgh.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
- package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
- package/dist/{vue-ui-dumbbell-BZw7lntE.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
- package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
- package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
- package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
- package/dist/{vue-ui-galaxy-Bjlm3WtB.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
- package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
- package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
- package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
- package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
- package/dist/{vue-ui-gizmo-CiutQM-A.js → vue-ui-gizmo-bV148qAf.js} +66 -53
- package/dist/{vue-ui-heatmap-C933pQPU.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
- package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
- package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
- package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
- package/dist/{vue-ui-mini-loader-B5XG2gKd.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
- package/dist/{vue-ui-mini-loader-C67Z1C6r.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
- package/dist/{vue-ui-molecule-DzIeuL8t.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
- package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
- package/dist/{vue-ui-mood-radar-02L4M-n_.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
- package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-BY50trfJ.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
- package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
- package/dist/{vue-ui-onion-BmQ7B9xY.js → vue-ui-onion-CFa4VD-w.js} +191 -177
- package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BdfcqlfT.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
- package/dist/{vue-ui-quadrant-CLimyRoA.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
- package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CX8Kas-o.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
- package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
- package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
- package/dist/{vue-ui-radar-CK0PB5oY.js → vue-ui-radar-CW8EKW4o.js} +202 -189
- package/dist/{vue-ui-rating-Ceu3pXmF.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
- package/dist/{vue-ui-rating-BnqWN2ui.js → vue-ui-rating-eSWsmJUU.js} +2 -2
- package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
- package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
- package/dist/{vue-ui-rings-CYthauSM.js → vue-ui-rings-BxhLbyG0.js} +203 -189
- package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
- package/dist/{vue-ui-scatter-Cxr9eymz.js → vue-ui-scatter-DQchX_mM.js} +284 -270
- package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
- package/dist/{vue-ui-screenshot-CVWC5rbJ.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
- package/dist/{vue-ui-screenshot-sBd8-Oyh.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CAvlIcgk.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
- package/dist/{vue-ui-skeleton-CqF0NJ4g.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
- package/dist/{vue-ui-smiley-CXbipVsb.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
- package/dist/{vue-ui-smiley-c_I60YOy.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
- package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
- package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
- package/dist/{vue-ui-sparkbar-Dm-2_5Ef.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
- package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
- package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
- package/dist/{vue-ui-sparkhistogram-qf87TXA-.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
- package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
- package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
- package/dist/{vue-ui-sparkline-CZBgvY1A.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
- package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-GtkDZDXZ.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
- package/dist/{vue-ui-stackbar-D_Ui7xec.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
- package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
- package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
- package/dist/{vue-ui-strip-plot--VJ3f5UV.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
- package/dist/{vue-ui-table-BCQ7voEV.js → vue-ui-table-BSi_cHh7.js} +1 -1
- package/dist/{vue-ui-table-B_6N0VOD.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
- package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-UwpQQMHB.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
- package/dist/{vue-ui-table-sparkline-Bzqs2Hcp.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
- package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
- package/dist/{vue-ui-thermometer-BQbYzsSV.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
- package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
- package/dist/{vue-ui-timer-KGEswANF.js → vue-ui-timer-CkB7eZaE.js} +191 -176
- package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
- package/dist/{vue-ui-tiremarks-BSkMCIu1.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
- package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
- package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
- package/dist/{vue-ui-treemap-DIWveOrq.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
- package/dist/{vue-ui-vertical-bar-Dx6wReOw.js → vue-ui-vertical-bar-BA43_uHV.js} +374 -358
- package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
- package/dist/{vue-ui-waffle-D3jMPOd3.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
- package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
- package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
- package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
- package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
- package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
- package/dist/{vue-ui-xy-9_2IHEOX.js → vue-ui-xy-BMBYAC4z.js} +300 -274
- package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
- package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DGuGy69l.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DhzN0gd4.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CfUUEeKt.cjs +0 -1
- package/dist/vue-ui-candlestick-DJIJnnI_.cjs +0 -2
- package/dist/vue-ui-carousel-table-uYt1zVjx.cjs +0 -1
- package/dist/vue-ui-chestnut-CG5krVO-.cjs +0 -6
- package/dist/vue-ui-donut-D6SrEIEJ.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Cb45erSA.cjs +0 -1
- package/dist/vue-ui-dumbbell-DVabaAYH.cjs +0 -9
- package/dist/vue-ui-flow-Bn1EP9Z1.cjs +0 -1
- package/dist/vue-ui-flow-Cz_xaLAs.js +0 -469
- package/dist/vue-ui-galaxy-Drnhlmmw.cjs +0 -1
- package/dist/vue-ui-gauge-CxIVYnG2.js +0 -488
- package/dist/vue-ui-gauge-D2reVZ-b.cjs +0 -1
- package/dist/vue-ui-gizmo-B6ZwXwFY.cjs +0 -1
- package/dist/vue-ui-heatmap-ClFm7qUu.cjs +0 -1
- package/dist/vue-ui-kpi-CdPFWSHA.cjs +0 -1
- package/dist/vue-ui-kpi-ClreiT4V.js +0 -84
- package/dist/vue-ui-molecule-JJQ3af-R.cjs +0 -1
- package/dist/vue-ui-mood-radar-DT4JU_6B.cjs +0 -1
- package/dist/vue-ui-nested-donuts-D6Dihmne.cjs +0 -17
- package/dist/vue-ui-onion-DoNDCpth.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CJMjEDXR.cjs +0 -8
- package/dist/vue-ui-quadrant-DWqmU3-5.cjs +0 -1
- package/dist/vue-ui-quick-chart-CB5VelG0.cjs +0 -15
- package/dist/vue-ui-radar-aTceo-HQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-D1z8MBVH.js +0 -310
- package/dist/vue-ui-relation-circle-DWGtziD_.cjs +0 -1
- package/dist/vue-ui-rings-gp0sEMy6.cjs +0 -2
- package/dist/vue-ui-scatter-BKl2fUIR.cjs +0 -1
- package/dist/vue-ui-spark-trend-C3sBXu8D.js +0 -251
- package/dist/vue-ui-spark-trend-CXkkMK6N.cjs +0 -1
- package/dist/vue-ui-sparkbar-BkN5iTUq.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D4EqU3x3.cjs +0 -1
- package/dist/vue-ui-sparkgauge-FKTXvE7e.js +0 -167
- package/dist/vue-ui-sparkhistogram-BkJz2dBD.cjs +0 -1
- package/dist/vue-ui-sparkline-TPkuvKtA.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-CzzfnPDS.cjs +0 -1
- package/dist/vue-ui-stackbar-NHgsl2-Z.cjs +0 -6
- package/dist/vue-ui-strip-plot-CU6OtKt7.cjs +0 -1
- package/dist/vue-ui-table-heatmap-DFMF1RZ0.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DWvOKdPb.cjs +0 -1
- package/dist/vue-ui-thermometer-BOuuVWuf.cjs +0 -1
- package/dist/vue-ui-timer-BCiMjXdm.cjs +0 -64
- package/dist/vue-ui-tiremarks-DuEz8cO5.cjs +0 -1
- package/dist/vue-ui-treemap-BO8gKQ4O.cjs +0 -1
- package/dist/vue-ui-vertical-bar-Dpzyha_P.cjs +0 -4
- package/dist/vue-ui-waffle-C0-IVDjk.cjs +0 -1
- package/dist/vue-ui-wheel-B10kCoLD.js +0 -242
- package/dist/vue-ui-wheel-mWdIHlXV.cjs +0 -1
- package/dist/vue-ui-word-cloud-CYtRxpdV.cjs +0 -1
- package/dist/vue-ui-word-cloud-rhrsHes4.js +0 -498
- package/dist/vue-ui-xy-CFqs5rtd.cjs +0 -3
- package/dist/vue-ui-xy-canvas-sLH0pM-i.cjs +0 -9
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { computed as d, ref as u,
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { L as
|
|
7
|
-
import { D as
|
|
8
|
-
import { _ as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { computed as d, ref as u, watch as he, onMounted as Fe, onBeforeUnmount as Ne, openBlock as s, createElementBlock as n, normalizeClass as z, normalizeStyle as Y, createBlock as x, createCommentVNode as b, unref as v, createSlots as Re, withCtx as h, renderSlot as g, normalizeProps as B, guardReactiveProps as V, Fragment as M, renderList as F, createElementVNode as T, toDisplayString as _, createVNode as Ae, createTextVNode as De, nextTick as Le } from "vue";
|
|
2
|
+
import { u as ze, c as Ye, t as Be, a as Ve, p as fe, b as Xe, o as Ge, e as j, d as Ue, X as Ee, f as N, i as q, x as ge, q as He, r as We, y as je } from "./index-Cm4Iry5c.js";
|
|
3
|
+
import { t as qe, u as Je } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Ke } from "./Title-C26I_HC3.js";
|
|
5
|
+
import { u as Qe, U as Ze } from "./usePrinter-B8RnF8_q.js";
|
|
6
|
+
import { L as et } from "./Legend-DX1kv21U.js";
|
|
7
|
+
import { D as tt } from "./DataTable-CQANRZju.js";
|
|
8
|
+
import { _ as at } from "./Tooltip-CH8GmDCG.js";
|
|
9
|
+
import lt from "./vue-ui-skeleton-C1oUnz7R.js";
|
|
10
|
+
import ot from "./vue-ui-accordion-Cb6XBCbu.js";
|
|
11
|
+
import { u as pe } from "./useNestedProp-CurQIHTa.js";
|
|
12
|
+
import { _ as rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const st = ["id"], ut = ["xmlns", "viewBox"], nt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], it = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ct = ["id"], dt = ["stdDeviation"], vt = ["filter"], ht = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ft = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], gt = { key: 1 }, pt = ["onMouseenter"], yt = ["x", "y", "font-size", "fill", "font-weight"], mt = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, bt = ["onClick"], kt = ["innerHTML"], $t = {
|
|
17
17
|
__name: "vue-ui-onion",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,23 +30,31 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
setup(ye, { expose: me, emit: be }) {
|
|
34
|
+
const k = ye, { vue_ui_onion: ke } = ze(), R = d(() => !!k.dataset && k.dataset.length), C = u(Ye()), $e = u(null), J = u(0), A = u(!1), X = u(""), p = u([]), P = u(null), K = u(null), Q = u(null), Z = u(0), ee = u(0), te = u(0), e = d({
|
|
35
|
+
get: () => ae(),
|
|
36
|
+
set: (a) => a
|
|
37
|
+
});
|
|
38
|
+
function ae() {
|
|
39
|
+
const a = pe({
|
|
40
|
+
userConfig: k.config,
|
|
41
|
+
defaultConfig: ke
|
|
38
42
|
});
|
|
39
43
|
return a.theme ? {
|
|
40
|
-
...
|
|
41
|
-
userConfig:
|
|
44
|
+
...pe({
|
|
45
|
+
userConfig: Be.vue_ui_onion[a.theme] || k.config,
|
|
42
46
|
defaultConfig: a
|
|
43
47
|
}),
|
|
44
|
-
customPalette:
|
|
48
|
+
customPalette: Ve[a.theme] || fe
|
|
45
49
|
} : a;
|
|
46
|
-
}
|
|
47
|
-
|
|
50
|
+
}
|
|
51
|
+
he(() => k.config, (a) => {
|
|
52
|
+
e.value = ae(), ue(), Z.value += 1, ee.value += 1, te.value += 1;
|
|
53
|
+
}, { deep: !0 });
|
|
54
|
+
const { isPrinting: le, isImaging: oe, generatePdf: re, generateImage: se } = Qe({
|
|
55
|
+
elementId: `vue-ui-onion_${C.value}`,
|
|
48
56
|
fileName: e.value.style.chart.title.text || "vue-ui-onion"
|
|
49
|
-
}),
|
|
57
|
+
}), we = d(() => Xe(e.value.customPalette)), $ = u({
|
|
50
58
|
showTable: e.value.table.show,
|
|
51
59
|
showTooltip: e.value.style.chart.tooltip.show
|
|
52
60
|
}), r = u({
|
|
@@ -59,24 +67,28 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
59
67
|
bottom: 64
|
|
60
68
|
},
|
|
61
69
|
minRadius: 64
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
|
|
70
|
+
}), D = u(null);
|
|
71
|
+
Fe(() => {
|
|
72
|
+
ue();
|
|
73
|
+
});
|
|
74
|
+
function ue() {
|
|
75
|
+
if (Ge(k.dataset) && j({
|
|
65
76
|
componentName: "VueUiOnion",
|
|
66
77
|
type: "dataset"
|
|
67
78
|
}), e.value.responsive) {
|
|
68
|
-
const o =
|
|
69
|
-
const { width: t, height: l } =
|
|
70
|
-
chart:
|
|
71
|
-
title: e.value.style.chart.title.text ?
|
|
72
|
-
legend: e.value.style.chart.legend.show ?
|
|
79
|
+
const o = qe(() => {
|
|
80
|
+
const { width: t, height: l } = Je({
|
|
81
|
+
chart: P.value,
|
|
82
|
+
title: e.value.style.chart.title.text ? K.value : null,
|
|
83
|
+
legend: e.value.style.chart.legend.show ? Q.value : null
|
|
73
84
|
});
|
|
74
85
|
r.value.width = t, r.value.height = l, r.value.padding.top = Math.max(t, l) * 0.125, r.value.padding.right = Math.max(t, l) * 0.125, r.value.padding.bottom = Math.max(t, l) * 0.125, r.value.padding.left = Math.max(t, l) * 0.125, r.value.minRadius = Math.min(t, l) * 0.125;
|
|
75
86
|
});
|
|
76
|
-
|
|
87
|
+
D.value = new ResizeObserver(o), D.value.observe(P.value.parentNode);
|
|
77
88
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
89
|
+
}
|
|
90
|
+
Ne(() => {
|
|
91
|
+
D.value && D.value.disconnect();
|
|
80
92
|
});
|
|
81
93
|
const i = d(() => ({
|
|
82
94
|
top: r.value.padding.top,
|
|
@@ -89,81 +101,81 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
89
101
|
height: r.value.height - r.value.padding.bottom - r.value.padding.top,
|
|
90
102
|
minRadius: r.value.minRadius,
|
|
91
103
|
maxRadius: Math.min(r.value.width, r.value.height) - r.value.padding.top * 2
|
|
92
|
-
})), c = d(() => (
|
|
93
|
-
[null, void 0].includes(a.name) &&
|
|
104
|
+
})), c = d(() => (k.dataset.forEach((a, o) => {
|
|
105
|
+
[null, void 0].includes(a.name) && j({
|
|
94
106
|
componentName: "VueUiOnion",
|
|
95
107
|
type: "datasetSerieAttribute",
|
|
96
108
|
property: "name",
|
|
97
109
|
index: o
|
|
98
|
-
}), [void 0].includes(a.percentage) &&
|
|
110
|
+
}), [void 0].includes(a.percentage) && j({
|
|
99
111
|
componentName: "VueUiOnion",
|
|
100
112
|
type: "datasetSerieAttribute",
|
|
101
113
|
property: "percentage",
|
|
102
114
|
index: o
|
|
103
115
|
});
|
|
104
|
-
}),
|
|
105
|
-
const t = `onion_serie_${o}_${
|
|
116
|
+
}), k.dataset.map((a, o) => {
|
|
117
|
+
const t = `onion_serie_${o}_${C.value}`;
|
|
106
118
|
return {
|
|
107
119
|
...a,
|
|
108
120
|
percentage: a.percentage || 0,
|
|
109
121
|
targetPercentage: a.percentage || 0,
|
|
110
|
-
color:
|
|
122
|
+
color: Ue(a.color) || we.value[o] || fe[o],
|
|
111
123
|
id: t,
|
|
112
124
|
shape: "circle",
|
|
113
125
|
opacity: p.value.includes(t) ? 0.5 : 1,
|
|
114
126
|
absoluteIndex: o,
|
|
115
|
-
segregate: () =>
|
|
127
|
+
segregate: () => ne(t),
|
|
116
128
|
isSegregated: p.value.includes(t)
|
|
117
129
|
};
|
|
118
|
-
}))),
|
|
119
|
-
|
|
120
|
-
function
|
|
121
|
-
if (
|
|
130
|
+
}))), O = u(c.value), Ce = d(() => e.value.useStartAnimation), xe = u(null), Te = d(() => Math.max(...c.value.map((a) => a.percentage))), G = u(!1);
|
|
131
|
+
he(() => c.value, _e, { immediate: !0 });
|
|
132
|
+
function _e() {
|
|
133
|
+
if (Ce.value && !G.value) {
|
|
122
134
|
let o = function() {
|
|
123
|
-
a >=
|
|
135
|
+
a >= Te.value ? (cancelAnimationFrame(xe.value), O.value = c.value, G.value = !0) : (O.value = c.value.map((t) => ({
|
|
124
136
|
...t,
|
|
125
137
|
percentage: a < t.targetPercentage ? a : t.targetPercentage
|
|
126
138
|
})), a += 1, requestAnimationFrame(o), G.value = !0);
|
|
127
139
|
};
|
|
128
|
-
|
|
140
|
+
O.value = c.value.map((t) => ({
|
|
129
141
|
...t,
|
|
130
142
|
percentage: 0
|
|
131
143
|
}));
|
|
132
144
|
let a = 0;
|
|
133
145
|
o();
|
|
134
146
|
} else
|
|
135
|
-
|
|
147
|
+
O.value = c.value;
|
|
136
148
|
}
|
|
137
|
-
const
|
|
149
|
+
const Pe = d(() => ({
|
|
138
150
|
cy: "onion-div-legend",
|
|
139
151
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
140
152
|
color: e.value.style.chart.legend.color,
|
|
141
153
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
142
154
|
paddingBottom: 12,
|
|
143
155
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
144
|
-
})),
|
|
156
|
+
})), Oe = d(() => c.value.filter((a) => !p.value.includes(a.id)).length), w = d(() => {
|
|
145
157
|
const a = Math.min(i.value.width, i.value.height) / 2 / c.value.length;
|
|
146
158
|
return {
|
|
147
159
|
gutter: (a > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : a) * e.value.style.chart.layout.gutter.width,
|
|
148
160
|
track: (a > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : a) * e.value.style.chart.layout.track.width
|
|
149
161
|
};
|
|
150
|
-
}), y = d(() =>
|
|
151
|
-
const t = (i.value.maxRadius -
|
|
162
|
+
}), y = d(() => O.value.filter((a) => !p.value.includes(a.id)).map((a, o) => {
|
|
163
|
+
const t = (i.value.maxRadius - w.value.track) / Oe.value / 2 * (1 + o), l = i.value.centerY - t;
|
|
152
164
|
return {
|
|
153
165
|
percentage: a.percentage || 0,
|
|
154
166
|
...a,
|
|
155
167
|
labelY: l,
|
|
156
168
|
radius: t,
|
|
157
|
-
path:
|
|
169
|
+
path: Ie(t, a.percentage || 0)
|
|
158
170
|
};
|
|
159
171
|
}));
|
|
160
|
-
function
|
|
161
|
-
const t = 2 * Math.PI * a, l = t * 0.75, f = `${l} ${t}`,
|
|
172
|
+
function Ie(a, o) {
|
|
173
|
+
const t = 2 * Math.PI * a, l = t * 0.75, f = `${l} ${t}`, S = l * (1 - o / 100);
|
|
162
174
|
return {
|
|
163
175
|
bgDashArray: `${l} ${t}`,
|
|
164
176
|
bgDashOffset: 0,
|
|
165
177
|
dashArray: f,
|
|
166
|
-
dashOffset:
|
|
178
|
+
dashOffset: S,
|
|
167
179
|
fullOffset: 0,
|
|
168
180
|
active: `
|
|
169
181
|
M ${i.value.centerX},${i.value.centerY - a}
|
|
@@ -172,10 +184,10 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
172
184
|
`.trim()
|
|
173
185
|
};
|
|
174
186
|
}
|
|
175
|
-
function
|
|
176
|
-
p.value.includes(a) ? p.value = p.value.filter((o) => o !== a) : p.value.push(a),
|
|
187
|
+
function ne(a) {
|
|
188
|
+
p.value.includes(a) ? p.value = p.value.filter((o) => o !== a) : p.value.push(a), be("selectLegend", y.value);
|
|
177
189
|
}
|
|
178
|
-
function
|
|
190
|
+
function Se() {
|
|
179
191
|
return y.value;
|
|
180
192
|
}
|
|
181
193
|
const U = d(() => {
|
|
@@ -185,7 +197,7 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
185
197
|
t.value
|
|
186
198
|
]);
|
|
187
199
|
return { head: a, body: o };
|
|
188
|
-
}),
|
|
200
|
+
}), L = d(() => {
|
|
189
201
|
const a = U.value.head, o = y.value.map((l) => [
|
|
190
202
|
`<span style="color:${l.color}">⬤</span> ${l.name}`,
|
|
191
203
|
`${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
@@ -205,34 +217,34 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
205
217
|
};
|
|
206
218
|
return { head: a, body: o, config: t, colNames: a };
|
|
207
219
|
});
|
|
208
|
-
function
|
|
209
|
-
|
|
210
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = U.value.head, t = U.value.body, l = a.concat([o]).concat(t), f =
|
|
211
|
-
|
|
220
|
+
function ie() {
|
|
221
|
+
Le(() => {
|
|
222
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = U.value.head, t = U.value.body, l = a.concat([o]).concat(t), f = He(l);
|
|
223
|
+
We({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
212
224
|
});
|
|
213
225
|
}
|
|
214
|
-
const m = u(void 0),
|
|
215
|
-
function
|
|
216
|
-
|
|
226
|
+
const m = u(void 0), I = u(!1);
|
|
227
|
+
function Me(a) {
|
|
228
|
+
I.value = a, J.value += 1;
|
|
217
229
|
}
|
|
218
230
|
const E = u(null);
|
|
219
|
-
function
|
|
231
|
+
function ce({ datapoint: a, seriesIndex: o, show: t = !0 }) {
|
|
220
232
|
const l = a.absoluteIndex;
|
|
221
233
|
m.value = o, E.value = {
|
|
222
234
|
datapoint: a,
|
|
223
235
|
seriesIndex: l,
|
|
224
236
|
series: c.value,
|
|
225
237
|
config: e.value
|
|
226
|
-
},
|
|
238
|
+
}, A.value = t;
|
|
227
239
|
let f = "";
|
|
228
|
-
const
|
|
229
|
-
if (
|
|
240
|
+
const S = e.value.style.chart.tooltip.customFormat;
|
|
241
|
+
if (ge(S) && je(() => S({
|
|
230
242
|
seriesIndex: l,
|
|
231
243
|
datapoint: a,
|
|
232
244
|
series: c.value,
|
|
233
245
|
config: e.value
|
|
234
246
|
})))
|
|
235
|
-
X.value =
|
|
247
|
+
X.value = S({
|
|
236
248
|
seriesIndex: l,
|
|
237
249
|
datapoint: a,
|
|
238
250
|
series: c.value,
|
|
@@ -240,10 +252,10 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
240
252
|
});
|
|
241
253
|
else {
|
|
242
254
|
const H = e.value.style.chart.tooltip.showPercentage, W = e.value.style.chart.tooltip.showValue;
|
|
243
|
-
f += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg><span></span>${a.name}</span></div>`, f += `<div style="width:100%;text-align:left;"><b>${H ?
|
|
255
|
+
f += `<div style="width: 100%; border-bottom: 1px solid ${e.value.style.chart.tooltip.borderColor}; padding-bottom: 6px;margin-bottom:3px;display:flex;flex-direction:row;gap:3px;align-items:center"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg><span></span>${a.name}</span></div>`, f += `<div style="width:100%;text-align:left;"><b>${H ? N({ p: "", v: a.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${H && W ? "(" : ""}${W ? q(
|
|
244
256
|
e.value.style.chart.layout.labels.value.formatter,
|
|
245
257
|
a.value,
|
|
246
|
-
|
|
258
|
+
N({
|
|
247
259
|
p: a.prefix || "",
|
|
248
260
|
v: a.value,
|
|
249
261
|
s: a.suffix || "",
|
|
@@ -253,33 +265,34 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
253
265
|
) : ""}${H && W ? ")" : ""}</div>`, X.value = `<div>${f}</div>`;
|
|
254
266
|
}
|
|
255
267
|
}
|
|
256
|
-
function
|
|
257
|
-
|
|
268
|
+
function de() {
|
|
269
|
+
$.value.showTable = !$.value.showTable;
|
|
258
270
|
}
|
|
259
|
-
function
|
|
260
|
-
|
|
271
|
+
function ve() {
|
|
272
|
+
$.value.showTooltip = !$.value.showTooltip;
|
|
261
273
|
}
|
|
262
|
-
return
|
|
263
|
-
getData:
|
|
264
|
-
generatePdf:
|
|
265
|
-
generateCsv:
|
|
266
|
-
generateImage:
|
|
267
|
-
toggleTable:
|
|
268
|
-
toggleTooltip:
|
|
274
|
+
return me({
|
|
275
|
+
getData: Se,
|
|
276
|
+
generatePdf: re,
|
|
277
|
+
generateCsv: ie,
|
|
278
|
+
generateImage: se,
|
|
279
|
+
toggleTable: de,
|
|
280
|
+
toggleTooltip: ve
|
|
269
281
|
}), (a, o) => (s(), n("div", {
|
|
270
|
-
class:
|
|
282
|
+
class: z(`vue-ui-onion ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
271
283
|
ref_key: "onionChart",
|
|
272
|
-
ref:
|
|
273
|
-
id: `vue-ui-onion_${
|
|
274
|
-
style:
|
|
284
|
+
ref: P,
|
|
285
|
+
id: `vue-ui-onion_${C.value}`,
|
|
286
|
+
style: Y(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`)
|
|
275
287
|
}, [
|
|
276
288
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
277
289
|
key: 0,
|
|
278
290
|
ref_key: "chartTitle",
|
|
279
|
-
ref:
|
|
280
|
-
style:
|
|
291
|
+
ref: K,
|
|
292
|
+
style: Y(`width:100%;background:${e.value.style.chart.backgroundColor}`)
|
|
281
293
|
}, [
|
|
282
|
-
|
|
294
|
+
(s(), x(Ke, {
|
|
295
|
+
key: `title_${Z.value}`,
|
|
283
296
|
config: {
|
|
284
297
|
title: {
|
|
285
298
|
cy: "onion-div-title",
|
|
@@ -290,34 +303,34 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
290
303
|
...e.value.style.chart.title.subtitle
|
|
291
304
|
}
|
|
292
305
|
}
|
|
293
|
-
}, null, 8, ["config"])
|
|
306
|
+
}, null, 8, ["config"]))
|
|
294
307
|
], 4)) : b("", !0),
|
|
295
|
-
e.value.userOptions.show &&
|
|
308
|
+
e.value.userOptions.show && R.value ? (s(), x(Ze, {
|
|
296
309
|
ref_key: "details",
|
|
297
|
-
ref:
|
|
298
|
-
key: `user_options${
|
|
310
|
+
ref: $e,
|
|
311
|
+
key: `user_options${J.value}`,
|
|
299
312
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
300
313
|
color: e.value.style.chart.color,
|
|
301
|
-
isImaging: v(
|
|
302
|
-
isPrinting: v(
|
|
303
|
-
uid:
|
|
314
|
+
isImaging: v(oe),
|
|
315
|
+
isPrinting: v(le),
|
|
316
|
+
uid: C.value,
|
|
304
317
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
305
318
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
306
319
|
hasImg: e.value.userOptions.buttons.img,
|
|
307
320
|
hasXls: e.value.userOptions.buttons.csv,
|
|
308
321
|
hasTable: e.value.userOptions.buttons.table,
|
|
309
322
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
310
|
-
isFullscreen:
|
|
311
|
-
isTooltip:
|
|
323
|
+
isFullscreen: I.value,
|
|
324
|
+
isTooltip: $.value.showTooltip,
|
|
312
325
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
313
|
-
chartElement:
|
|
314
|
-
onToggleFullscreen:
|
|
315
|
-
onGeneratePdf: v(
|
|
316
|
-
onGenerateCsv:
|
|
317
|
-
onGenerateImage: v(
|
|
318
|
-
onToggleTable:
|
|
319
|
-
onToggleTooltip:
|
|
320
|
-
},
|
|
326
|
+
chartElement: P.value,
|
|
327
|
+
onToggleFullscreen: Me,
|
|
328
|
+
onGeneratePdf: v(re),
|
|
329
|
+
onGenerateCsv: ie,
|
|
330
|
+
onGenerateImage: v(se),
|
|
331
|
+
onToggleTable: de,
|
|
332
|
+
onToggleTooltip: ve
|
|
333
|
+
}, Re({ _: 2 }, [
|
|
321
334
|
a.$slots.optionTooltip ? {
|
|
322
335
|
name: "optionTooltip",
|
|
323
336
|
fn: h(() => [
|
|
@@ -361,144 +374,144 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
361
374
|
key: "5"
|
|
362
375
|
} : void 0
|
|
363
376
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : b("", !0),
|
|
364
|
-
|
|
377
|
+
R.value ? (s(), n("svg", {
|
|
365
378
|
key: 2,
|
|
366
|
-
xmlns: v(
|
|
367
|
-
class:
|
|
379
|
+
xmlns: v(Ee),
|
|
380
|
+
class: z({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
368
381
|
viewBox: `0 0 ${r.value.width <= 0 ? 1e-4 : r.value.width} ${r.value.height <= 0 ? 1e-4 : r.value.height}`,
|
|
369
|
-
style:
|
|
382
|
+
style: Y(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
370
383
|
}, [
|
|
371
384
|
(s(!0), n(M, null, F(y.value, (t, l) => (s(), n("circle", {
|
|
372
385
|
cx: i.value.centerX,
|
|
373
386
|
cy: i.value.centerY,
|
|
374
387
|
r: t.radius <= 0 ? 1e-4 : t.radius,
|
|
375
388
|
stroke: e.value.style.chart.layout.gutter.color,
|
|
376
|
-
"stroke-width":
|
|
389
|
+
"stroke-width": w.value.gutter,
|
|
377
390
|
fill: "none",
|
|
378
391
|
"stroke-dasharray": t.path.bgDashArray,
|
|
379
392
|
"stroke-dashoffset": t.path.fullOffset,
|
|
380
393
|
"stroke-linecap": "round",
|
|
381
|
-
class:
|
|
394
|
+
class: z({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(m.value) && m.value !== l }),
|
|
382
395
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
383
|
-
}, null, 10,
|
|
396
|
+
}, null, 10, nt))), 256)),
|
|
384
397
|
(s(!0), n(M, null, F(y.value, (t, l) => (s(), n("circle", {
|
|
385
398
|
cx: i.value.centerX,
|
|
386
399
|
cy: i.value.centerY,
|
|
387
400
|
r: t.radius < 0 ? 1e-4 : t.radius,
|
|
388
401
|
stroke: `${t.color}`,
|
|
389
|
-
"stroke-width":
|
|
402
|
+
"stroke-width": w.value.track,
|
|
390
403
|
fill: "none",
|
|
391
404
|
"stroke-dasharray": t.path.dashArray,
|
|
392
405
|
"stroke-dashoffset": t.path.dashOffset,
|
|
393
|
-
class:
|
|
406
|
+
class: z({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(m.value) && m.value !== l }),
|
|
394
407
|
"stroke-linecap": "round",
|
|
395
408
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
396
|
-
}, null, 10,
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
id: `blur_${
|
|
409
|
+
}, null, 10, it))), 256)),
|
|
410
|
+
T("defs", null, [
|
|
411
|
+
T("filter", {
|
|
412
|
+
id: `blur_${C.value}`,
|
|
400
413
|
x: "-50%",
|
|
401
414
|
y: "-50%",
|
|
402
415
|
width: "200%",
|
|
403
416
|
height: "200%"
|
|
404
417
|
}, [
|
|
405
|
-
|
|
418
|
+
T("feGaussianBlur", {
|
|
406
419
|
in: "SourceGraphic",
|
|
407
420
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
408
|
-
}, null, 8,
|
|
409
|
-
], 8,
|
|
421
|
+
}, null, 8, dt)
|
|
422
|
+
], 8, ct)
|
|
410
423
|
]),
|
|
411
424
|
e.value.style.chart.useGradient ? (s(), n("g", {
|
|
412
425
|
key: 0,
|
|
413
|
-
filter: `url(#blur_${
|
|
426
|
+
filter: `url(#blur_${C.value})`
|
|
414
427
|
}, [
|
|
415
428
|
(s(!0), n(M, null, F(y.value, (t, l) => (s(), n("circle", {
|
|
416
429
|
cx: i.value.centerX,
|
|
417
430
|
cy: i.value.centerY,
|
|
418
431
|
r: t.radius <= 0 ? 1e-4 : t.radius,
|
|
419
432
|
stroke: "white",
|
|
420
|
-
"stroke-width":
|
|
433
|
+
"stroke-width": w.value.track / 3,
|
|
421
434
|
fill: "none",
|
|
422
435
|
"stroke-linecap": "round",
|
|
423
436
|
"stroke-dasharray": t.path.dashArray,
|
|
424
437
|
"stroke-dashoffset": t.path.dashOffset,
|
|
425
438
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
426
|
-
}, null, 8,
|
|
427
|
-
], 8,
|
|
439
|
+
}, null, 8, ht))), 256))
|
|
440
|
+
], 8, vt)) : b("", !0),
|
|
428
441
|
(s(!0), n(M, null, F(y.value, (t, l) => (s(), n("circle", {
|
|
429
442
|
"data-cy-trap": "",
|
|
430
443
|
cx: i.value.centerX,
|
|
431
444
|
cy: i.value.centerY,
|
|
432
445
|
r: t.radius <= 0 ? 1e-4 : t.radius,
|
|
433
446
|
stroke: "transparent",
|
|
434
|
-
"stroke-width": Math.max(
|
|
447
|
+
"stroke-width": Math.max(w.value.track, w.value.gutter),
|
|
435
448
|
fill: "none",
|
|
436
449
|
"stroke-dasharray": t.path.bgDashArray,
|
|
437
450
|
"stroke-dashoffset": t.path.fullOffset,
|
|
438
451
|
"stroke-linecap": "round",
|
|
439
452
|
class: "vue-ui-onion-path",
|
|
440
453
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
|
|
441
|
-
onMouseenter: (f) =>
|
|
454
|
+
onMouseenter: (f) => ce({
|
|
442
455
|
datapoint: t,
|
|
443
456
|
show: !0,
|
|
444
457
|
seriesIndex: l
|
|
445
458
|
}),
|
|
446
459
|
onMouseleave: o[0] || (o[0] = (f) => {
|
|
447
|
-
m.value = void 0,
|
|
460
|
+
m.value = void 0, A.value = !1;
|
|
448
461
|
})
|
|
449
|
-
}, null, 40,
|
|
450
|
-
e.value.style.chart.layout.labels.show ? (s(), n("g",
|
|
462
|
+
}, null, 40, ft))), 256)),
|
|
463
|
+
e.value.style.chart.layout.labels.show ? (s(), n("g", gt, [
|
|
451
464
|
(s(!0), n(M, null, F(y.value, (t, l) => (s(), n("g", {
|
|
452
|
-
onMouseenter: (f) =>
|
|
465
|
+
onMouseenter: (f) => ce({
|
|
453
466
|
datapoint: t,
|
|
454
467
|
show: !0,
|
|
455
468
|
seriesIndex: l
|
|
456
469
|
}),
|
|
457
470
|
onMouseleave: o[1] || (o[1] = (f) => {
|
|
458
|
-
m.value = void 0,
|
|
471
|
+
m.value = void 0, A.value = !1;
|
|
459
472
|
})
|
|
460
473
|
}, [
|
|
461
474
|
p.value.includes(t.id) ? b("", !0) : (s(), n("text", {
|
|
462
475
|
key: 0,
|
|
463
|
-
x: r.value.width / 2 -
|
|
476
|
+
x: r.value.width / 2 - w.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
464
477
|
y: t.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
465
478
|
"text-anchor": "end",
|
|
466
479
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
467
480
|
fill: e.value.useBlurOnHover && ![null, void 0].includes(m.value) && m.value === l ? t.color : e.value.style.chart.layout.labels.color,
|
|
468
481
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
469
|
-
},
|
|
482
|
+
}, _(t.name ? t.name + ": " : "") + " " + _(e.value.style.chart.layout.labels.percentage.show ? v(N)({
|
|
470
483
|
v: t.percentage,
|
|
471
484
|
s: "%",
|
|
472
485
|
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
473
|
-
}) : "") + " " +
|
|
486
|
+
}) : "") + " " + _(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${v(q)(
|
|
474
487
|
e.value.style.chart.layout.labels.value.formatter,
|
|
475
488
|
t.value,
|
|
476
|
-
v(
|
|
489
|
+
v(N)({
|
|
477
490
|
p: t.prefix || "",
|
|
478
491
|
v: t.value || 0,
|
|
479
492
|
s: t.suffix || "",
|
|
480
493
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
481
494
|
}),
|
|
482
495
|
{ datapoint: t, seriesIndex: l }
|
|
483
|
-
)}` : `${e.value.style.chart.layout.labels.value.show && t.value ? `(${v(
|
|
496
|
+
)}` : `${e.value.style.chart.layout.labels.value.show && t.value ? `(${v(q)(
|
|
484
497
|
e.value.style.chart.layout.labels.value.formatter,
|
|
485
498
|
t.value,
|
|
486
|
-
v(
|
|
499
|
+
v(N)({
|
|
487
500
|
p: t.prefix || "",
|
|
488
501
|
v: t.value || 0,
|
|
489
502
|
s: t.suffix || "",
|
|
490
503
|
r: e.value.style.chart.layout.labels.roundingValue
|
|
491
504
|
}),
|
|
492
505
|
{ datapoint: t, seriesIndex: l }
|
|
493
|
-
)})` : ""}`), 9,
|
|
494
|
-
], 40,
|
|
506
|
+
)})` : ""}`), 9, yt))
|
|
507
|
+
], 40, pt))), 256))
|
|
495
508
|
])) : b("", !0),
|
|
496
509
|
g(a.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
497
|
-
], 14,
|
|
498
|
-
a.$slots.watermark ? (s(), n("div",
|
|
499
|
-
g(a.$slots, "watermark", B(V({ isPrinting: v(
|
|
510
|
+
], 14, ut)) : b("", !0),
|
|
511
|
+
a.$slots.watermark ? (s(), n("div", mt, [
|
|
512
|
+
g(a.$slots, "watermark", B(V({ isPrinting: v(le) || v(oe) })), void 0, !0)
|
|
500
513
|
])) : b("", !0),
|
|
501
|
-
|
|
514
|
+
R.value ? b("", !0) : (s(), x(lt, {
|
|
502
515
|
key: 4,
|
|
503
516
|
config: {
|
|
504
517
|
type: "onion",
|
|
@@ -510,22 +523,22 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
510
523
|
}
|
|
511
524
|
}
|
|
512
525
|
}, null, 8, ["config"])),
|
|
513
|
-
|
|
526
|
+
T("div", {
|
|
514
527
|
ref_key: "chartLegend",
|
|
515
|
-
ref:
|
|
528
|
+
ref: Q
|
|
516
529
|
}, [
|
|
517
|
-
e.value.style.chart.legend.show ? (s(),
|
|
518
|
-
key:
|
|
530
|
+
e.value.style.chart.legend.show ? (s(), x(et, {
|
|
531
|
+
key: `legend_${te.value}`,
|
|
519
532
|
legendSet: c.value,
|
|
520
|
-
config:
|
|
521
|
-
onClickMarker: o[2] || (o[2] = ({ legend: t }) =>
|
|
533
|
+
config: Pe.value,
|
|
534
|
+
onClickMarker: o[2] || (o[2] = ({ legend: t }) => ne(t.id))
|
|
522
535
|
}, {
|
|
523
536
|
item: h(({ legend: t }) => [
|
|
524
|
-
|
|
537
|
+
T("div", {
|
|
525
538
|
"data-cy-legend-item": "",
|
|
526
539
|
onClick: (l) => t.segregate(),
|
|
527
|
-
style:
|
|
528
|
-
},
|
|
540
|
+
style: Y(`opacity:${p.value.includes(t.id) ? 0.5 : 1}`)
|
|
541
|
+
}, _(t.name ? t.name + ": " : "") + " " + _((t.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, bt)
|
|
529
542
|
]),
|
|
530
543
|
_: 1
|
|
531
544
|
}, 8, ["legendSet", "config"])) : g(a.$slots, "legend", {
|
|
@@ -533,8 +546,8 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
533
546
|
legend: c.value
|
|
534
547
|
}, void 0, !0)
|
|
535
548
|
], 512),
|
|
536
|
-
|
|
537
|
-
show:
|
|
549
|
+
Ae(at, {
|
|
550
|
+
show: $.value.showTooltip && A.value,
|
|
538
551
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
539
552
|
color: e.value.style.chart.tooltip.color,
|
|
540
553
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -544,9 +557,9 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
544
557
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
545
558
|
position: e.value.style.chart.tooltip.position,
|
|
546
559
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
547
|
-
parent:
|
|
560
|
+
parent: P.value,
|
|
548
561
|
content: X.value,
|
|
549
|
-
isCustom: v(
|
|
562
|
+
isCustom: v(ge)(e.value.style.chart.tooltip.customFormat)
|
|
550
563
|
}, {
|
|
551
564
|
"tooltip-before": h(() => [
|
|
552
565
|
g(a.$slots, "tooltip-before", B(V({ ...E.value })), void 0, !0)
|
|
@@ -556,11 +569,11 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
556
569
|
]),
|
|
557
570
|
_: 3
|
|
558
571
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
559
|
-
|
|
572
|
+
R.value ? (s(), x(ot, {
|
|
560
573
|
key: 5,
|
|
561
574
|
hideDetails: "",
|
|
562
575
|
config: {
|
|
563
|
-
open:
|
|
576
|
+
open: $.value.showTable,
|
|
564
577
|
maxHeight: 1e4,
|
|
565
578
|
head: {
|
|
566
579
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -573,28 +586,29 @@ const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "
|
|
|
573
586
|
}
|
|
574
587
|
}, {
|
|
575
588
|
content: h(() => [
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
589
|
+
(s(), x(tt, {
|
|
590
|
+
key: `table_${ee.value}`,
|
|
591
|
+
colNames: L.value.colNames,
|
|
592
|
+
head: L.value.head,
|
|
593
|
+
body: L.value.body,
|
|
594
|
+
config: L.value.config,
|
|
581
595
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
582
|
-
onClose: o[3] || (o[3] = (t) =>
|
|
596
|
+
onClose: o[3] || (o[3] = (t) => $.value.showTable = !1)
|
|
583
597
|
}, {
|
|
584
598
|
th: h(({ th: t }) => [
|
|
585
|
-
|
|
599
|
+
De(_(t), 1)
|
|
586
600
|
]),
|
|
587
601
|
td: h(({ td: t }) => [
|
|
588
|
-
|
|
602
|
+
T("div", { innerHTML: t }, null, 8, kt)
|
|
589
603
|
]),
|
|
590
604
|
_: 1
|
|
591
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
605
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
592
606
|
]),
|
|
593
607
|
_: 1
|
|
594
608
|
}, 8, ["config"])) : b("", !0)
|
|
595
|
-
], 14,
|
|
609
|
+
], 14, st));
|
|
596
610
|
}
|
|
597
|
-
},
|
|
611
|
+
}, Rt = /* @__PURE__ */ rt($t, [["__scopeId", "data-v-d5a5e6fb"]]);
|
|
598
612
|
export {
|
|
599
|
-
|
|
613
|
+
Rt as default
|
|
600
614
|
};
|