vue-data-ui 2.3.28 → 2.3.29
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 +15 -0
- package/dist/{Arrow-C6lQ94rK.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-BPoxM_Tq.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-Op8_v5x7.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-BK5xYOzV.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-bEXuvNn5.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-BNfS77GS.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-DwludSgp.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-COYAxpcP.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-CcWWIf-s.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-DGkm-5p-.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-Cv-2s_-r.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-DQz9dO4d.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-CtWGLaoz.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-D6BUVHr1.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DQgBkgFk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/{index-BhCM2QF1.js → index-BlXzlBwZ.js} +443 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +65 -0
- package/dist/types/vue-data-ui.d.ts +65 -0
- package/dist/{useNestedProp-CH3PVhvc.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-C2H2jmU6.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-B75HLwzw.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-DTF28E03.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-DdhV5Pth.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-cqeqQWwY.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-gi0fEJUl.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-CVrj6roI.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CSZdj7wA.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CFSWDX3d.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-DqZU11ky.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-u5YbenPl.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C3xswSm3.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Dph2PhZC.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-0S6lSZnt.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-eY08SE2G.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-BikYCrjQ.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-OFgeAFSo.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-DUA57VkZ.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BTG0m9YL.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DA4M1Z0-.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-55Zmunkv.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-COxRiMVI.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-BSFT-Bce.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-BtEXt5Ox.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-BPEGOFRZ.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BBoXBTkC.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-ZFEufIyy.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-CfZ9XJW_.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-BqZp_V5m.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-DitbWAJp.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-BWuzEkyY.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-B2Bo26hh.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BwAWiK3k.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-C_Nb-qVd.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-CSbXNrvu.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BD2UW2lJ.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-CbMab8pJ.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-SDaiotgC.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-BamHJBdP.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-1R4CyBdQ.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-CKCLhAS7.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-BY-y8Mal.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DGEgzOaB.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Bq1SsByA.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-BPzLP6U6.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-pdZ79G9r.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-C5ce6pEf.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CMetujXJ.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-BqzljUT3.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot--2aeIH_x.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-_VMQ594N.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-B5Z4craS.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-CL-bubXk.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cty3e_yE.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DT1fMqf_.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-pgdWTEqG.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-DdzlyDsm.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Dx2gFX6H.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-Bg_fJsT5.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-WMI-RgkW.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BWl_B6LX.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Skcshn6g.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-MMGRG9eS.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-NZFO3R77.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-CJmCgC_a.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-jJ3daLHe.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-B-vHHlRw.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-YCyFyq8J.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BfzDb2H7.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CdtG1AoI.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-Cb95XSdn.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DBqMb9iX.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CHKETcHr.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-BqXfvQ4t.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-DxKunHfW.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-kMVi976p.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-4HKXl04I.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/{vue-ui-word-cloud-CrC3iKGd.js → vue-ui-word-cloud-DBxVNlJ3.js} +7 -7
- package/dist/{vue-ui-word-cloud-WgbYJhMF.cjs → vue-ui-word-cloud-Dmcelg3z.cjs} +1 -1
- package/dist/{vue-ui-xy-BN_H7q0X.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DAY9Ylzs.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-B4_9ynlY.cjs +0 -1
- package/dist/index-Y23HeR26.cjs +0 -4
- package/dist/vue-ui-3d-bar-BB6yidY7.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CrTadT86.cjs +0 -1
- package/dist/vue-ui-chestnut-C3XOHDgw.cjs +0 -6
- package/dist/vue-ui-donut-CG3VWjnG.js +0 -751
- package/dist/vue-ui-donut-JA9hlLlV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CA8sDbwX.js +0 -805
- package/dist/vue-ui-donut-evolution-_E0xUI9Y.cjs +0 -1
- package/dist/vue-ui-galaxy-DPrJum3L.cjs +0 -1
- package/dist/vue-ui-gizmo-CrSaW32p.cjs +0 -1
- package/dist/vue-ui-heatmap-CTRjjhmd.cjs +0 -1
- package/dist/vue-ui-heatmap-zV0pg2Q5.js +0 -606
- package/dist/vue-ui-mood-radar-zpxdsZ4u.cjs +0 -1
- package/dist/vue-ui-nested-donuts-07UI_VlW.cjs +0 -16
- package/dist/vue-ui-onion-DiychUul.cjs +0 -1
- package/dist/vue-ui-quadrant-DxLYb8Mk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CAXuRSdm.js +0 -1318
- package/dist/vue-ui-quick-chart-DgCRM6WA.cjs +0 -13
- package/dist/vue-ui-radar-iETP_3US.cjs +0 -1
- package/dist/vue-ui-rings-DdpKT3DJ.cjs +0 -1
- package/dist/vue-ui-scatter-Dsc6RABP.cjs +0 -1
- package/dist/vue-ui-sparkbar-BVQPOz2O.js +0 -257
- package/dist/vue-ui-sparkbar-kfA-BPVJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B5xstgQG.cjs +0 -1
- package/dist/vue-ui-stackbar-DZ0CArmk.cjs +0 -15
- package/dist/vue-ui-strip-plot-Db_dqjd9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-4Qbmxxsy.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZt-bo2D.js +0 -420
- package/dist/vue-ui-thermometer-HXWDU2wD.cjs +0 -1
- package/dist/vue-ui-treemap-CW9JmJ2d.cjs +0 -1
- package/dist/vue-ui-vertical-bar-83AMwsHD.cjs +0 -4
- package/dist/vue-ui-vertical-bar-DRLwZjIz.js +0 -745
- package/dist/vue-ui-waffle-BRuDxyDU.js +0 -650
- package/dist/vue-ui-waffle-BwUbvdOE.cjs +0 -1
- package/dist/vue-ui-xy-BXfP5pz5.cjs +0 -3
- package/dist/vue-ui-xy-canvas-NrhVgFsv.cjs +0 -9
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { computed as d, ref as
|
|
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, onMounted as Pe, onBeforeUnmount as Oe, watch as Ie, openBlock as s, createElementBlock as n, normalizeClass as D, normalizeStyle as L, createVNode as j, createCommentVNode as b, createBlock as z, unref as v, createSlots as Fe, withCtx as h, renderSlot as f, normalizeProps as B, guardReactiveProps as V, Fragment as I, renderList as F, createElementVNode as C, toDisplayString as T, createTextVNode as Se, nextTick as Me } from "vue";
|
|
2
|
+
import { u as Ne, c as Re, t as Ae, a as De, p as ie, b as Le, o as ze, e as q, d as Be, X as Ve, f as S, i as J, w as ce, q as Ye, r as Xe, x as Ge } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { t as Ue, u as Ee } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as He } from "./Title-eBTH8iGJ.js";
|
|
5
|
+
import { u as We, U as je } from "./usePrinter-CZ8F5Cth.js";
|
|
6
|
+
import { L as qe } from "./Legend-CkQ_zypV.js";
|
|
7
|
+
import { D as Je } from "./DataTable-CsPidn0_.js";
|
|
8
|
+
import { _ as Ke } from "./Tooltip-B11OahTD.js";
|
|
9
|
+
import Qe from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
10
|
+
import Ze from "./vue-ui-accordion-wHRG3nXl.js";
|
|
11
|
+
import { u as de } from "./useNestedProp-BoNl5H_z.js";
|
|
12
|
+
import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const tt = ["id"], at = ["xmlns", "viewBox"], lt = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ot = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], rt = ["id"], st = ["stdDeviation"], ut = ["filter"], nt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], it = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], ct = { key: 1 }, dt = ["onMouseenter"], vt = ["x", "y", "font-size", "fill", "font-weight"], ht = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, ft = ["onClick"], gt = ["innerHTML"], pt = {
|
|
17
17
|
__name: "vue-ui-onion",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,26 +30,26 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
const a =
|
|
36
|
-
userConfig:
|
|
37
|
-
defaultConfig:
|
|
33
|
+
setup(ve, { expose: he, emit: fe }) {
|
|
34
|
+
const w = ve, { vue_ui_onion: ge } = Ne(), M = d(() => !!w.dataset && w.dataset.length), x = u(Re()), pe = u(null), K = u(0), N = u(!1), Y = u(""), g = u([]), _ = u(null), Q = u(null), Z = u(null), e = d(() => {
|
|
35
|
+
const a = de({
|
|
36
|
+
userConfig: w.config,
|
|
37
|
+
defaultConfig: ge
|
|
38
38
|
});
|
|
39
39
|
return a.theme ? {
|
|
40
|
-
...
|
|
41
|
-
userConfig:
|
|
40
|
+
...de({
|
|
41
|
+
userConfig: Ae.vue_ui_onion[a.theme] || w.config,
|
|
42
42
|
defaultConfig: a
|
|
43
43
|
}),
|
|
44
|
-
customPalette:
|
|
44
|
+
customPalette: De[a.theme] || ie
|
|
45
45
|
} : a;
|
|
46
|
-
}), { isPrinting:
|
|
46
|
+
}), { isPrinting: ee, isImaging: te, generatePdf: ae, generateImage: le } = We({
|
|
47
47
|
elementId: `vue-ui-onion_${x.value}`,
|
|
48
48
|
fileName: e.value.style.chart.title.text || "vue-ui-onion"
|
|
49
|
-
}),
|
|
49
|
+
}), ye = d(() => Le(e.value.customPalette)), k = u({
|
|
50
50
|
showTable: e.value.table.show,
|
|
51
51
|
showTooltip: e.value.style.chart.tooltip.show
|
|
52
|
-
}), r =
|
|
52
|
+
}), r = u({
|
|
53
53
|
height: 512,
|
|
54
54
|
width: 512,
|
|
55
55
|
padding: {
|
|
@@ -59,24 +59,24 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
59
59
|
bottom: 64
|
|
60
60
|
},
|
|
61
61
|
minRadius: 64
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
if (
|
|
62
|
+
}), R = u(null);
|
|
63
|
+
Pe(() => {
|
|
64
|
+
if (ze(w.dataset) && q({
|
|
65
65
|
componentName: "VueUiOnion",
|
|
66
66
|
type: "dataset"
|
|
67
67
|
}), e.value.responsive) {
|
|
68
|
-
const o =
|
|
69
|
-
const { width: t, height: l } =
|
|
68
|
+
const o = Ue(() => {
|
|
69
|
+
const { width: t, height: l } = Ee({
|
|
70
70
|
chart: _.value,
|
|
71
|
-
title: e.value.style.chart.title.text ?
|
|
72
|
-
legend: e.value.style.chart.legend.show ?
|
|
71
|
+
title: e.value.style.chart.title.text ? Q.value : null,
|
|
72
|
+
legend: e.value.style.chart.legend.show ? Z.value : null
|
|
73
73
|
});
|
|
74
74
|
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
75
|
});
|
|
76
|
-
|
|
76
|
+
R.value = new ResizeObserver(o), R.value.observe(_.value.parentNode);
|
|
77
77
|
}
|
|
78
|
-
}),
|
|
79
|
-
|
|
78
|
+
}), Oe(() => {
|
|
79
|
+
R.value && R.value.disconnect();
|
|
80
80
|
});
|
|
81
81
|
const i = d(() => ({
|
|
82
82
|
top: r.value.padding.top,
|
|
@@ -89,41 +89,41 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
89
89
|
height: r.value.height - r.value.padding.bottom - r.value.padding.top,
|
|
90
90
|
minRadius: r.value.minRadius,
|
|
91
91
|
maxRadius: Math.min(r.value.width, r.value.height) - r.value.padding.top * 2
|
|
92
|
-
})), c = d(() => (
|
|
93
|
-
[null, void 0].includes(a.name) &&
|
|
92
|
+
})), c = d(() => (w.dataset.forEach((a, o) => {
|
|
93
|
+
[null, void 0].includes(a.name) && q({
|
|
94
94
|
componentName: "VueUiOnion",
|
|
95
95
|
type: "datasetSerieAttribute",
|
|
96
96
|
property: "name",
|
|
97
97
|
index: o
|
|
98
|
-
}), [void 0].includes(a.percentage) &&
|
|
98
|
+
}), [void 0].includes(a.percentage) && q({
|
|
99
99
|
componentName: "VueUiOnion",
|
|
100
100
|
type: "datasetSerieAttribute",
|
|
101
101
|
property: "percentage",
|
|
102
102
|
index: o
|
|
103
103
|
});
|
|
104
|
-
}),
|
|
104
|
+
}), w.dataset.map((a, o) => {
|
|
105
105
|
const t = `onion_serie_${o}_${x.value}`;
|
|
106
106
|
return {
|
|
107
107
|
...a,
|
|
108
108
|
percentage: a.percentage || 0,
|
|
109
109
|
targetPercentage: a.percentage || 0,
|
|
110
|
-
color:
|
|
110
|
+
color: Be(a.color) || ye.value[o] || ie[o],
|
|
111
111
|
id: t,
|
|
112
112
|
shape: "circle",
|
|
113
|
-
opacity:
|
|
113
|
+
opacity: g.value.includes(t) ? 0.5 : 1,
|
|
114
114
|
absoluteIndex: o,
|
|
115
|
-
segregate: () =>
|
|
116
|
-
isSegregated:
|
|
115
|
+
segregate: () => oe(t),
|
|
116
|
+
isSegregated: g.value.includes(t)
|
|
117
117
|
};
|
|
118
|
-
}))), P =
|
|
119
|
-
|
|
120
|
-
function
|
|
121
|
-
if (
|
|
118
|
+
}))), P = u(c.value), me = d(() => e.value.useStartAnimation), be = u(null), ke = d(() => Math.max(...c.value.map((a) => a.percentage))), X = u(!1);
|
|
119
|
+
Ie(() => c.value, we, { immediate: !0 });
|
|
120
|
+
function we() {
|
|
121
|
+
if (me.value && !X.value) {
|
|
122
122
|
let o = function() {
|
|
123
|
-
a >=
|
|
123
|
+
a >= ke.value ? (cancelAnimationFrame(be.value), P.value = c.value, X.value = !0) : (P.value = c.value.map((t) => ({
|
|
124
124
|
...t,
|
|
125
125
|
percentage: a < t.targetPercentage ? a : t.targetPercentage
|
|
126
|
-
})), a += 1, requestAnimationFrame(o),
|
|
126
|
+
})), a += 1, requestAnimationFrame(o), X.value = !0);
|
|
127
127
|
};
|
|
128
128
|
P.value = c.value.map((t) => ({
|
|
129
129
|
...t,
|
|
@@ -141,23 +141,23 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
141
141
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
142
142
|
paddingBottom: 12,
|
|
143
143
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
144
|
-
})),
|
|
144
|
+
})), xe = d(() => c.value.filter((a) => !g.value.includes(a.id)).length), $ = d(() => {
|
|
145
145
|
const a = Math.min(i.value.width, i.value.height) / 2 / c.value.length;
|
|
146
146
|
return {
|
|
147
147
|
gutter: (a > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : a) * e.value.style.chart.layout.gutter.width,
|
|
148
148
|
track: (a > e.value.style.chart.layout.maxThickness ? e.value.style.chart.layout.maxThickness : a) * e.value.style.chart.layout.track.width
|
|
149
149
|
};
|
|
150
|
-
}),
|
|
151
|
-
const t = (i.value.maxRadius -
|
|
150
|
+
}), p = d(() => P.value.filter((a) => !g.value.includes(a.id)).map((a, o) => {
|
|
151
|
+
const t = (i.value.maxRadius - $.value.track) / xe.value / 2 * (1 + o), l = i.value.centerY - t;
|
|
152
152
|
return {
|
|
153
153
|
percentage: a.percentage || 0,
|
|
154
154
|
...a,
|
|
155
155
|
labelY: l,
|
|
156
156
|
radius: t,
|
|
157
|
-
path:
|
|
157
|
+
path: Ce(t, a.percentage || 0)
|
|
158
158
|
};
|
|
159
159
|
}));
|
|
160
|
-
function
|
|
160
|
+
function Ce(a, o) {
|
|
161
161
|
const t = a * (1.5 + (o / 100 > 0.3333333333333333 ? 0 : 1 - o / 100)) * Math.PI, l = a * 1.5 * Math.PI;
|
|
162
162
|
return {
|
|
163
163
|
bgDashArray: `${l} ${l}`,
|
|
@@ -168,21 +168,21 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
168
168
|
active: `M${i.value.centerX},${i.value.centerY} A ${a},${a} 0 0 0 ${i.value.right},${i.value.top}`
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
171
|
+
function oe(a) {
|
|
172
|
+
g.value.includes(a) ? g.value = g.value.filter((o) => o !== a) : g.value.push(a), fe("selectLegend", p.value);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
return
|
|
174
|
+
function Te() {
|
|
175
|
+
return p.value;
|
|
176
176
|
}
|
|
177
|
-
const
|
|
178
|
-
const a = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o =
|
|
177
|
+
const G = d(() => {
|
|
178
|
+
const a = [e.value.table.translations.serie, e.value.table.translations.percentage, e.value.table.translations.value], o = p.value.map((t) => [
|
|
179
179
|
t.name,
|
|
180
180
|
t.percentage,
|
|
181
181
|
t.value
|
|
182
182
|
]);
|
|
183
183
|
return { head: a, body: o };
|
|
184
|
-
}),
|
|
185
|
-
const a =
|
|
184
|
+
}), A = d(() => {
|
|
185
|
+
const a = G.value.head, o = p.value.map((l) => [
|
|
186
186
|
`<span style="color:${l.color}">⬤</span> ${l.name}`,
|
|
187
187
|
`${Number(l.percentage ?? 0).toFixed(e.value.table.td.roundingPercentage).toLocaleString()}%`,
|
|
188
188
|
`${l.prefix || ""}${[null, void 0, NaN, "NaN"].includes(l.value) ? "-" : l.value.toFixed(e.value.table.td.roundingValue).toLocaleString()}${l.suffix || ""}`
|
|
@@ -201,71 +201,81 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
201
201
|
};
|
|
202
202
|
return { head: a, body: o, config: t, colNames: a };
|
|
203
203
|
});
|
|
204
|
-
function
|
|
205
|
-
|
|
206
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o =
|
|
207
|
-
|
|
204
|
+
function re() {
|
|
205
|
+
Me(() => {
|
|
206
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = G.value.head, t = G.value.body, l = a.concat([o]).concat(t), m = Ye(l);
|
|
207
|
+
Xe({ csvContent: m, title: e.value.style.chart.title.text || "vue-ui-onion" });
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
function
|
|
212
|
-
O.value = a,
|
|
210
|
+
const y = u(void 0), O = u(!1);
|
|
211
|
+
function _e(a) {
|
|
212
|
+
O.value = a, K.value += 1;
|
|
213
213
|
}
|
|
214
|
-
const
|
|
215
|
-
function
|
|
214
|
+
const U = u(null);
|
|
215
|
+
function se({ datapoint: a, seriesIndex: o, show: t = !0 }) {
|
|
216
216
|
const l = a.absoluteIndex;
|
|
217
|
-
|
|
217
|
+
y.value = o, U.value = {
|
|
218
218
|
datapoint: a,
|
|
219
219
|
seriesIndex: l,
|
|
220
220
|
series: c.value,
|
|
221
221
|
config: e.value
|
|
222
|
-
},
|
|
223
|
-
let
|
|
224
|
-
const
|
|
225
|
-
if (
|
|
222
|
+
}, N.value = t;
|
|
223
|
+
let m = "";
|
|
224
|
+
const E = e.value.style.chart.tooltip.customFormat;
|
|
225
|
+
if (ce(E) && Ge(() => E({
|
|
226
226
|
seriesIndex: l,
|
|
227
227
|
datapoint: a,
|
|
228
228
|
series: c.value,
|
|
229
229
|
config: e.value
|
|
230
230
|
})))
|
|
231
|
-
|
|
231
|
+
Y.value = E({
|
|
232
232
|
seriesIndex: l,
|
|
233
233
|
datapoint: a,
|
|
234
234
|
series: c.value,
|
|
235
235
|
config: e.value
|
|
236
236
|
});
|
|
237
237
|
else {
|
|
238
|
-
const
|
|
239
|
-
|
|
238
|
+
const H = e.value.style.chart.tooltip.showPercentage, W = e.value.style.chart.tooltip.showValue;
|
|
239
|
+
m += `<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>`, m += `<div style="width:100%;text-align:left;"><b>${H ? S({ p: "", v: a.percentage, s: "%", r: e.value.style.chart.tooltip.roundingPercentage }) : ""}</b> ${H && W ? "(" : ""}${W ? J(
|
|
240
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
241
|
+
a.value,
|
|
242
|
+
S({
|
|
243
|
+
p: a.prefix || "",
|
|
244
|
+
v: a.value,
|
|
245
|
+
s: a.suffix || "",
|
|
246
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
247
|
+
}),
|
|
248
|
+
{ datapoint: a, seriesIndex: o }
|
|
249
|
+
) : ""}${H && W ? ")" : ""}</div>`, Y.value = `<div>${m}</div>`;
|
|
240
250
|
}
|
|
241
251
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
252
|
+
function ue() {
|
|
253
|
+
k.value.showTable = !k.value.showTable;
|
|
244
254
|
}
|
|
245
|
-
function
|
|
246
|
-
|
|
255
|
+
function ne() {
|
|
256
|
+
k.value.showTooltip = !k.value.showTooltip;
|
|
247
257
|
}
|
|
248
|
-
return
|
|
249
|
-
getData:
|
|
250
|
-
generatePdf:
|
|
251
|
-
generateCsv:
|
|
252
|
-
generateImage:
|
|
253
|
-
toggleTable:
|
|
254
|
-
toggleTooltip:
|
|
255
|
-
}), (a, o) => (s(),
|
|
256
|
-
class:
|
|
258
|
+
return he({
|
|
259
|
+
getData: Te,
|
|
260
|
+
generatePdf: ae,
|
|
261
|
+
generateCsv: re,
|
|
262
|
+
generateImage: le,
|
|
263
|
+
toggleTable: ue,
|
|
264
|
+
toggleTooltip: ne
|
|
265
|
+
}), (a, o) => (s(), n("div", {
|
|
266
|
+
class: D(`vue-ui-onion ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
257
267
|
ref_key: "onionChart",
|
|
258
268
|
ref: _,
|
|
259
269
|
id: `vue-ui-onion_${x.value}`,
|
|
260
|
-
style:
|
|
270
|
+
style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`)
|
|
261
271
|
}, [
|
|
262
|
-
e.value.style.chart.title.text ? (s(),
|
|
272
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
263
273
|
key: 0,
|
|
264
274
|
ref_key: "chartTitle",
|
|
265
|
-
ref:
|
|
266
|
-
style:
|
|
275
|
+
ref: Q,
|
|
276
|
+
style: L(`width:100%;background:${e.value.style.chart.backgroundColor}`)
|
|
267
277
|
}, [
|
|
268
|
-
|
|
278
|
+
j(He, {
|
|
269
279
|
config: {
|
|
270
280
|
title: {
|
|
271
281
|
cy: "onion-div-title",
|
|
@@ -277,15 +287,15 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
277
287
|
}
|
|
278
288
|
}
|
|
279
289
|
}, null, 8, ["config"])
|
|
280
|
-
], 4)) :
|
|
281
|
-
e.value.userOptions.show &&
|
|
290
|
+
], 4)) : b("", !0),
|
|
291
|
+
e.value.userOptions.show && M.value ? (s(), z(je, {
|
|
282
292
|
ref_key: "details",
|
|
283
|
-
ref:
|
|
284
|
-
key: `user_options${
|
|
293
|
+
ref: pe,
|
|
294
|
+
key: `user_options${K.value}`,
|
|
285
295
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
286
296
|
color: e.value.style.chart.color,
|
|
287
|
-
isImaging:
|
|
288
|
-
isPrinting:
|
|
297
|
+
isImaging: v(te),
|
|
298
|
+
isPrinting: v(ee),
|
|
289
299
|
uid: x.value,
|
|
290
300
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
291
301
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -294,92 +304,92 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
294
304
|
hasTable: e.value.userOptions.buttons.table,
|
|
295
305
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
296
306
|
isFullscreen: O.value,
|
|
297
|
-
isTooltip:
|
|
307
|
+
isTooltip: k.value.showTooltip,
|
|
298
308
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
299
309
|
chartElement: _.value,
|
|
300
|
-
onToggleFullscreen:
|
|
301
|
-
onGeneratePdf:
|
|
302
|
-
onGenerateCsv:
|
|
303
|
-
onGenerateImage:
|
|
304
|
-
onToggleTable:
|
|
305
|
-
onToggleTooltip:
|
|
310
|
+
onToggleFullscreen: _e,
|
|
311
|
+
onGeneratePdf: v(ae),
|
|
312
|
+
onGenerateCsv: re,
|
|
313
|
+
onGenerateImage: v(le),
|
|
314
|
+
onToggleTable: ue,
|
|
315
|
+
onToggleTooltip: ne
|
|
306
316
|
}, Fe({ _: 2 }, [
|
|
307
317
|
a.$slots.optionTooltip ? {
|
|
308
318
|
name: "optionTooltip",
|
|
309
|
-
fn:
|
|
310
|
-
|
|
319
|
+
fn: h(() => [
|
|
320
|
+
f(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
311
321
|
]),
|
|
312
322
|
key: "0"
|
|
313
323
|
} : void 0,
|
|
314
324
|
a.$slots.optionPdf ? {
|
|
315
325
|
name: "optionPdf",
|
|
316
|
-
fn:
|
|
317
|
-
|
|
326
|
+
fn: h(() => [
|
|
327
|
+
f(a.$slots, "optionPdf", {}, void 0, !0)
|
|
318
328
|
]),
|
|
319
329
|
key: "1"
|
|
320
330
|
} : void 0,
|
|
321
331
|
a.$slots.optionCsv ? {
|
|
322
332
|
name: "optionCsv",
|
|
323
|
-
fn:
|
|
324
|
-
|
|
333
|
+
fn: h(() => [
|
|
334
|
+
f(a.$slots, "optionCsv", {}, void 0, !0)
|
|
325
335
|
]),
|
|
326
336
|
key: "2"
|
|
327
337
|
} : void 0,
|
|
328
338
|
a.$slots.optionImg ? {
|
|
329
339
|
name: "optionImg",
|
|
330
|
-
fn:
|
|
331
|
-
|
|
340
|
+
fn: h(() => [
|
|
341
|
+
f(a.$slots, "optionImg", {}, void 0, !0)
|
|
332
342
|
]),
|
|
333
343
|
key: "3"
|
|
334
344
|
} : void 0,
|
|
335
345
|
a.$slots.optionTable ? {
|
|
336
346
|
name: "optionTable",
|
|
337
|
-
fn:
|
|
338
|
-
|
|
347
|
+
fn: h(() => [
|
|
348
|
+
f(a.$slots, "optionTable", {}, void 0, !0)
|
|
339
349
|
]),
|
|
340
350
|
key: "4"
|
|
341
351
|
} : void 0,
|
|
342
352
|
a.$slots.optionFullscreen ? {
|
|
343
353
|
name: "optionFullscreen",
|
|
344
|
-
fn:
|
|
345
|
-
|
|
354
|
+
fn: h(({ toggleFullscreen: t, isFullscreen: l }) => [
|
|
355
|
+
f(a.$slots, "optionFullscreen", B(V({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
|
|
346
356
|
]),
|
|
347
357
|
key: "5"
|
|
348
358
|
} : void 0
|
|
349
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
350
|
-
|
|
359
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : b("", !0),
|
|
360
|
+
M.value ? (s(), n("svg", {
|
|
351
361
|
key: 2,
|
|
352
|
-
xmlns:
|
|
353
|
-
class:
|
|
362
|
+
xmlns: v(Ve),
|
|
363
|
+
class: D({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
354
364
|
viewBox: `0 0 ${r.value.width <= 0 ? 1e-4 : r.value.width} ${r.value.height <= 0 ? 1e-4 : r.value.height}`,
|
|
355
|
-
style:
|
|
365
|
+
style: L(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
356
366
|
}, [
|
|
357
|
-
(s(!0),
|
|
367
|
+
(s(!0), n(I, null, F(p.value, (t, l) => (s(), n("circle", {
|
|
358
368
|
cx: i.value.centerX,
|
|
359
369
|
cy: i.value.centerY,
|
|
360
370
|
r: t.radius <= 0 ? 1e-4 : t.radius,
|
|
361
371
|
stroke: e.value.style.chart.layout.gutter.color,
|
|
362
|
-
"stroke-width":
|
|
372
|
+
"stroke-width": $.value.gutter,
|
|
363
373
|
fill: "none",
|
|
364
374
|
"stroke-dasharray": t.path.bgDashArray,
|
|
365
375
|
"stroke-dashoffset": t.path.fullOffset,
|
|
366
376
|
"stroke-linecap": "round",
|
|
367
|
-
class:
|
|
377
|
+
class: D({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(y.value) && y.value !== l }),
|
|
368
378
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
369
|
-
}, null, 10,
|
|
370
|
-
(s(!0),
|
|
379
|
+
}, null, 10, lt))), 256)),
|
|
380
|
+
(s(!0), n(I, null, F(p.value, (t, l) => (s(), n("circle", {
|
|
371
381
|
cx: i.value.centerX,
|
|
372
382
|
cy: i.value.centerY,
|
|
373
383
|
r: t.radius < 0 ? 1e-4 : t.radius,
|
|
374
384
|
stroke: `${t.color}`,
|
|
375
|
-
"stroke-width":
|
|
385
|
+
"stroke-width": $.value.track,
|
|
376
386
|
fill: "none",
|
|
377
387
|
"stroke-dasharray": t.path.dashArray,
|
|
378
388
|
"stroke-dashoffset": t.path.dashOffset,
|
|
379
|
-
class:
|
|
389
|
+
class: D({ "vue-ui-onion-path": !0, "vue-ui-onion-blur": e.value.useBlurOnHover && ![null, void 0].includes(y.value) && y.value !== l }),
|
|
380
390
|
"stroke-linecap": "round",
|
|
381
391
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
382
|
-
}, null, 10,
|
|
392
|
+
}, null, 10, ot))), 256)),
|
|
383
393
|
C("defs", null, [
|
|
384
394
|
C("filter", {
|
|
385
395
|
id: `blur_${x.value}`,
|
|
@@ -391,76 +401,100 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
391
401
|
C("feGaussianBlur", {
|
|
392
402
|
in: "SourceGraphic",
|
|
393
403
|
stdDeviation: 100 / e.value.style.chart.gradientIntensity
|
|
394
|
-
}, null, 8,
|
|
395
|
-
], 8,
|
|
404
|
+
}, null, 8, st)
|
|
405
|
+
], 8, rt)
|
|
396
406
|
]),
|
|
397
|
-
e.value.style.chart.useGradient ? (s(),
|
|
407
|
+
e.value.style.chart.useGradient ? (s(), n("g", {
|
|
398
408
|
key: 0,
|
|
399
409
|
filter: `url(#blur_${x.value})`
|
|
400
410
|
}, [
|
|
401
|
-
(s(!0),
|
|
411
|
+
(s(!0), n(I, null, F(p.value, (t, l) => (s(), n("circle", {
|
|
402
412
|
cx: i.value.centerX,
|
|
403
413
|
cy: i.value.centerY,
|
|
404
414
|
r: t.radius <= 0 ? 1e-4 : t.radius,
|
|
405
415
|
stroke: "white",
|
|
406
|
-
"stroke-width":
|
|
416
|
+
"stroke-width": $.value.track / 3,
|
|
407
417
|
fill: "none",
|
|
408
418
|
"stroke-linecap": "round",
|
|
409
419
|
"stroke-dasharray": t.path.dashArray,
|
|
410
420
|
"stroke-dashoffset": t.path.dashOffset,
|
|
411
421
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" }
|
|
412
422
|
}, null, 8, nt))), 256))
|
|
413
|
-
], 8,
|
|
414
|
-
(s(!0),
|
|
423
|
+
], 8, ut)) : b("", !0),
|
|
424
|
+
(s(!0), n(I, null, F(p.value, (t, l) => (s(), n("circle", {
|
|
415
425
|
"data-cy-trap": "",
|
|
416
426
|
cx: i.value.centerX,
|
|
417
427
|
cy: i.value.centerY,
|
|
418
428
|
r: t.radius <= 0 ? 1e-4 : t.radius,
|
|
419
429
|
stroke: "transparent",
|
|
420
|
-
"stroke-width": Math.max(
|
|
430
|
+
"stroke-width": Math.max($.value.track, $.value.gutter),
|
|
421
431
|
fill: "none",
|
|
422
432
|
"stroke-dasharray": t.path.bgDashArray,
|
|
423
433
|
"stroke-dashoffset": t.path.fullOffset,
|
|
424
434
|
"stroke-linecap": "round",
|
|
425
435
|
class: "vue-ui-onion-path",
|
|
426
436
|
style: { transform: "rotate(-90deg)", "transform-origin": "50% 50%" },
|
|
427
|
-
onMouseenter: (
|
|
437
|
+
onMouseenter: (m) => se({
|
|
428
438
|
datapoint: t,
|
|
429
439
|
show: !0,
|
|
430
440
|
seriesIndex: l
|
|
431
441
|
}),
|
|
432
|
-
onMouseleave: o[0] || (o[0] = (
|
|
433
|
-
|
|
442
|
+
onMouseleave: o[0] || (o[0] = (m) => {
|
|
443
|
+
y.value = void 0, N.value = !1;
|
|
434
444
|
})
|
|
435
|
-
}, null, 40,
|
|
436
|
-
e.value.style.chart.layout.labels.show ? (s(),
|
|
437
|
-
(s(!0),
|
|
438
|
-
onMouseenter: (
|
|
445
|
+
}, null, 40, it))), 256)),
|
|
446
|
+
e.value.style.chart.layout.labels.show ? (s(), n("g", ct, [
|
|
447
|
+
(s(!0), n(I, null, F(p.value, (t, l) => (s(), n("g", {
|
|
448
|
+
onMouseenter: (m) => se({
|
|
439
449
|
datapoint: t,
|
|
440
450
|
show: !0,
|
|
441
451
|
seriesIndex: l
|
|
442
452
|
}),
|
|
443
|
-
onMouseleave: o[1] || (o[1] = (
|
|
444
|
-
|
|
453
|
+
onMouseleave: o[1] || (o[1] = (m) => {
|
|
454
|
+
y.value = void 0, N.value = !1;
|
|
445
455
|
})
|
|
446
456
|
}, [
|
|
447
|
-
|
|
457
|
+
g.value.includes(t.id) ? b("", !0) : (s(), n("text", {
|
|
448
458
|
key: 0,
|
|
449
|
-
x: r.value.width / 2 -
|
|
459
|
+
x: r.value.width / 2 - $.value.gutter * 0.8 + e.value.style.chart.layout.labels.offsetX,
|
|
450
460
|
y: t.labelY + e.value.style.chart.layout.labels.offsetY,
|
|
451
461
|
"text-anchor": "end",
|
|
452
462
|
"font-size": e.value.style.chart.layout.labels.fontSize,
|
|
453
|
-
fill: e.value.useBlurOnHover && ![null, void 0].includes(
|
|
463
|
+
fill: e.value.useBlurOnHover && ![null, void 0].includes(y.value) && y.value === l ? t.color : e.value.style.chart.layout.labels.color,
|
|
454
464
|
"font-weight": e.value.style.chart.layout.labels.bold ? "bold" : "normal"
|
|
455
|
-
}, T(t.name ? t.name + ": " : "") + " " + T(e.value.style.chart.layout.labels.percentage.show ?
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
465
|
+
}, T(t.name ? t.name + ": " : "") + " " + T(e.value.style.chart.layout.labels.percentage.show ? v(S)({
|
|
466
|
+
v: t.percentage,
|
|
467
|
+
s: "%",
|
|
468
|
+
r: e.value.style.chart.layout.labels.roundingPercentage
|
|
469
|
+
}) : "") + " " + T(!e.value.style.chart.layout.labels.percentage.show && e.value.style.chart.layout.labels.value.show ? `: ${v(J)(
|
|
470
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
471
|
+
t.value,
|
|
472
|
+
v(S)({
|
|
473
|
+
p: t.prefix || "",
|
|
474
|
+
v: t.value || 0,
|
|
475
|
+
s: t.suffix || "",
|
|
476
|
+
r: e.value.style.chart.layout.labels.roundingValue
|
|
477
|
+
}),
|
|
478
|
+
{ datapoint: t, seriesIndex: l }
|
|
479
|
+
)}` : `${e.value.style.chart.layout.labels.value.show && t.value ? `(${v(J)(
|
|
480
|
+
e.value.style.chart.layout.labels.value.formatter,
|
|
481
|
+
t.value,
|
|
482
|
+
v(S)({
|
|
483
|
+
p: t.prefix || "",
|
|
484
|
+
v: t.value || 0,
|
|
485
|
+
s: t.suffix || "",
|
|
486
|
+
r: e.value.style.chart.layout.labels.roundingValue
|
|
487
|
+
}),
|
|
488
|
+
{ datapoint: t, seriesIndex: l }
|
|
489
|
+
)})` : ""}`), 9, vt))
|
|
490
|
+
], 40, dt))), 256))
|
|
491
|
+
])) : b("", !0),
|
|
492
|
+
f(a.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
493
|
+
], 14, at)) : b("", !0),
|
|
494
|
+
a.$slots.watermark ? (s(), n("div", ht, [
|
|
495
|
+
f(a.$slots, "watermark", B(V({ isPrinting: v(ee) || v(te) })), void 0, !0)
|
|
496
|
+
])) : b("", !0),
|
|
497
|
+
M.value ? b("", !0) : (s(), z(Qe, {
|
|
464
498
|
key: 4,
|
|
465
499
|
config: {
|
|
466
500
|
type: "onion",
|
|
@@ -474,29 +508,29 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
474
508
|
}, null, 8, ["config"])),
|
|
475
509
|
C("div", {
|
|
476
510
|
ref_key: "chartLegend",
|
|
477
|
-
ref:
|
|
511
|
+
ref: Z
|
|
478
512
|
}, [
|
|
479
|
-
e.value.style.chart.legend.show ? (s(),
|
|
513
|
+
e.value.style.chart.legend.show ? (s(), z(qe, {
|
|
480
514
|
key: 0,
|
|
481
515
|
legendSet: c.value,
|
|
482
516
|
config: $e.value,
|
|
483
|
-
onClickMarker: o[2] || (o[2] = ({ legend: t }) =>
|
|
517
|
+
onClickMarker: o[2] || (o[2] = ({ legend: t }) => oe(t.id))
|
|
484
518
|
}, {
|
|
485
|
-
item:
|
|
519
|
+
item: h(({ legend: t }) => [
|
|
486
520
|
C("div", {
|
|
487
521
|
"data-cy-legend-item": "",
|
|
488
522
|
onClick: (l) => t.segregate(),
|
|
489
|
-
style:
|
|
490
|
-
}, T(t.name ? t.name + ": " : "") + " " + T((t.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13,
|
|
523
|
+
style: L(`opacity:${g.value.includes(t.id) ? 0.5 : 1}`)
|
|
524
|
+
}, T(t.name ? t.name + ": " : "") + " " + T((t.percentage || 0).toFixed(e.value.style.chart.legend.roundingPercentage)) + "% ", 13, ft)
|
|
491
525
|
]),
|
|
492
526
|
_: 1
|
|
493
|
-
}, 8, ["legendSet", "config"])) :
|
|
527
|
+
}, 8, ["legendSet", "config"])) : f(a.$slots, "legend", {
|
|
494
528
|
key: 1,
|
|
495
529
|
legend: c.value
|
|
496
530
|
}, void 0, !0)
|
|
497
531
|
], 512),
|
|
498
|
-
|
|
499
|
-
show:
|
|
532
|
+
j(Ke, {
|
|
533
|
+
show: k.value.showTooltip && N.value,
|
|
500
534
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
501
535
|
color: e.value.style.chart.tooltip.color,
|
|
502
536
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -507,22 +541,22 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
507
541
|
position: e.value.style.chart.tooltip.position,
|
|
508
542
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
509
543
|
parent: _.value,
|
|
510
|
-
content:
|
|
511
|
-
isCustom:
|
|
544
|
+
content: Y.value,
|
|
545
|
+
isCustom: v(ce)(e.value.style.chart.tooltip.customFormat)
|
|
512
546
|
}, {
|
|
513
|
-
"tooltip-before":
|
|
514
|
-
|
|
547
|
+
"tooltip-before": h(() => [
|
|
548
|
+
f(a.$slots, "tooltip-before", B(V({ ...U.value })), void 0, !0)
|
|
515
549
|
]),
|
|
516
|
-
"tooltip-after":
|
|
517
|
-
|
|
550
|
+
"tooltip-after": h(() => [
|
|
551
|
+
f(a.$slots, "tooltip-after", B(V({ ...U.value })), void 0, !0)
|
|
518
552
|
]),
|
|
519
553
|
_: 3
|
|
520
554
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
521
|
-
|
|
555
|
+
M.value ? (s(), z(Ze, {
|
|
522
556
|
key: 5,
|
|
523
557
|
hideDetails: "",
|
|
524
558
|
config: {
|
|
525
|
-
open:
|
|
559
|
+
open: k.value.showTable,
|
|
526
560
|
maxHeight: 1e4,
|
|
527
561
|
head: {
|
|
528
562
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -534,29 +568,29 @@ const et = ["id"], tt = ["xmlns", "viewBox"], at = ["cx", "cy", "r", "stroke", "
|
|
|
534
568
|
}
|
|
535
569
|
}
|
|
536
570
|
}, {
|
|
537
|
-
content:
|
|
538
|
-
|
|
539
|
-
colNames:
|
|
540
|
-
head:
|
|
541
|
-
body:
|
|
542
|
-
config:
|
|
571
|
+
content: h(() => [
|
|
572
|
+
j(Je, {
|
|
573
|
+
colNames: A.value.colNames,
|
|
574
|
+
head: A.value.head,
|
|
575
|
+
body: A.value.body,
|
|
576
|
+
config: A.value.config,
|
|
543
577
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
544
|
-
onClose: o[3] || (o[3] = (t) =>
|
|
578
|
+
onClose: o[3] || (o[3] = (t) => k.value.showTable = !1)
|
|
545
579
|
}, {
|
|
546
|
-
th:
|
|
547
|
-
|
|
580
|
+
th: h(({ th: t }) => [
|
|
581
|
+
Se(T(t), 1)
|
|
548
582
|
]),
|
|
549
|
-
td:
|
|
550
|
-
C("div", { innerHTML: t }, null, 8,
|
|
583
|
+
td: h(({ td: t }) => [
|
|
584
|
+
C("div", { innerHTML: t }, null, 8, gt)
|
|
551
585
|
]),
|
|
552
586
|
_: 1
|
|
553
587
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
554
588
|
]),
|
|
555
589
|
_: 1
|
|
556
|
-
}, 8, ["config"])) :
|
|
557
|
-
], 14,
|
|
590
|
+
}, 8, ["config"])) : b("", !0)
|
|
591
|
+
], 14, tt));
|
|
558
592
|
}
|
|
559
|
-
},
|
|
593
|
+
}, It = /* @__PURE__ */ et(pt, [["__scopeId", "data-v-92cdbc16"]]);
|
|
560
594
|
export {
|
|
561
|
-
|
|
595
|
+
It as default
|
|
562
596
|
};
|