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 { ref as r, computed as c, onMounted as
|
|
2
|
-
import { u as Fe, c as ie, t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { ref as r, computed as c, onMounted as _e, onBeforeUnmount as Ne, openBlock as n, createElementBlock as m, normalizeClass as V, normalizeStyle as _, createVNode as X, createCommentVNode as N, createBlock as B, unref as h, createSlots as Pe, withCtx as p, renderSlot as g, normalizeProps as D, guardReactiveProps as W, Fragment as ue, renderList as re, createElementVNode as w, createTextVNode as ne, toDisplayString as E, nextTick as Le } from "vue";
|
|
2
|
+
import { u as Fe, c as ie, t as Ie, a as Se, p as T, o as Oe, e as ve, g as Me, b as ze, d as ce, f as x, X as Ae, s as Re, v as Ve, i as de, w as Be, x as De, q as We, r as Ee } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { t as Ge, u as Ue } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as He } from "./Title-eBTH8iGJ.js";
|
|
5
|
+
import { u as Xe, U as je } from "./usePrinter-CZ8F5Cth.js";
|
|
6
|
+
import { _ as Ye } from "./Tooltip-B11OahTD.js";
|
|
7
|
+
import { D as qe } from "./DataTable-CsPidn0_.js";
|
|
8
|
+
import { L as Je } from "./Legend-CkQ_zypV.js";
|
|
9
|
+
import Ke from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
10
|
+
import Qe from "./vue-ui-accordion-wHRG3nXl.js";
|
|
11
|
+
import { u as he } from "./useNestedProp-BoNl5H_z.js";
|
|
12
|
+
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"], at = ["stop-color"], st = ["stroke", "cx", "cy", "r", "fill"], ut = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], rt = ["cx", "cy", "r", "onMouseenter"], nt = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, it = ["onClick"], vt = { key: 0 }, ct = { key: 1 }, dt = ["innerHTML"], ht = {
|
|
17
17
|
__name: "vue-ui-rings",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,26 +30,26 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
const t =
|
|
36
|
-
userConfig:
|
|
37
|
-
defaultConfig:
|
|
33
|
+
setup(pe, { expose: ge, emit: fe }) {
|
|
34
|
+
const f = pe, { vue_ui_rings: ye } = Fe(), P = r(!1), O = c(() => !!f.dataset && f.dataset.length), L = r(ie()), me = r(null), M = r(!1), G = r(""), $ = r(null), j = r(0), F = r(null), Y = r(null), q = r(null), e = c(() => {
|
|
35
|
+
const t = he({
|
|
36
|
+
userConfig: f.config,
|
|
37
|
+
defaultConfig: ye
|
|
38
38
|
});
|
|
39
39
|
return t.theme ? {
|
|
40
|
-
...
|
|
41
|
-
userConfig:
|
|
40
|
+
...he({
|
|
41
|
+
userConfig: Ie.vue_ui_rings[t.theme] || f.config,
|
|
42
42
|
defaultConfig: t
|
|
43
43
|
}),
|
|
44
44
|
customPalette: Se[t.theme] || T
|
|
45
45
|
} : t;
|
|
46
|
-
}),
|
|
47
|
-
|
|
48
|
-
if (
|
|
46
|
+
}), z = r(null);
|
|
47
|
+
_e(() => {
|
|
48
|
+
if (Oe(f.dataset) ? ve({
|
|
49
49
|
componentName: "VueUiRings",
|
|
50
50
|
type: "dataset"
|
|
51
|
-
}) :
|
|
52
|
-
|
|
51
|
+
}) : f.dataset.forEach((t, o) => {
|
|
52
|
+
Me({
|
|
53
53
|
datasetObject: t,
|
|
54
54
|
requiredAttributes: ["name", "values"]
|
|
55
55
|
}).forEach((l) => {
|
|
@@ -61,77 +61,77 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
}), e.value.responsive) {
|
|
64
|
-
const t =
|
|
65
|
-
const { width: o, height: l } =
|
|
64
|
+
const t = Ge(() => {
|
|
65
|
+
const { width: o, height: l } = Ue({
|
|
66
66
|
chart: F.value,
|
|
67
67
|
title: e.value.style.chart.title.text ? Y.value : null,
|
|
68
68
|
legend: e.value.style.chart.legend.show ? q.value : null
|
|
69
69
|
});
|
|
70
70
|
u.value.width = o, u.value.height = l;
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
z.value = new ResizeObserver(t), z.value.observe(F.value.parentNode);
|
|
73
73
|
}
|
|
74
74
|
setTimeout(() => {
|
|
75
|
-
|
|
75
|
+
P.value = !0;
|
|
76
76
|
}, 600);
|
|
77
|
-
}),
|
|
78
|
-
|
|
77
|
+
}), Ne(() => {
|
|
78
|
+
z.value && z.value.disconnect();
|
|
79
79
|
});
|
|
80
|
-
const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } =
|
|
81
|
-
elementId: `rings_${
|
|
80
|
+
const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } = Xe({
|
|
81
|
+
elementId: `rings_${L.value}`,
|
|
82
82
|
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
83
|
-
}), ee = c(() =>
|
|
83
|
+
}), ee = c(() => ze(e.value.customPalette)), k = r({
|
|
84
84
|
showTable: e.value.table.show,
|
|
85
85
|
showTooltip: e.value.style.chart.tooltip.show
|
|
86
86
|
}), u = r({
|
|
87
87
|
height: 360,
|
|
88
88
|
width: 360
|
|
89
|
-
}),
|
|
89
|
+
}), be = c(() => Math.min(u.value.height, u.value.width)), i = r([]);
|
|
90
90
|
function U(t) {
|
|
91
|
-
i.value.includes(t) ? i.value = i.value.filter((o) => o !== t) : i.value.push(t),
|
|
91
|
+
i.value.includes(t) ? i.value = i.value.filter((o) => o !== t) : i.value.push(t), fe("selectLegend", v.value.map((o) => ({
|
|
92
92
|
name: o.name,
|
|
93
93
|
color: o.color,
|
|
94
94
|
value: o.value
|
|
95
95
|
})));
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
...
|
|
97
|
+
const ke = c(() => Math.max(
|
|
98
|
+
...A.value.filter((t) => !i.value.includes(t.uid)).map(({ value: t }) => t)
|
|
99
99
|
));
|
|
100
100
|
function te(t) {
|
|
101
|
-
return t /
|
|
101
|
+
return t / ke.value;
|
|
102
102
|
}
|
|
103
|
-
const
|
|
103
|
+
const A = c(() => f.dataset.map(({ values: t, name: o, color: l = null }, a) => {
|
|
104
104
|
const s = (t || []).reduce((b, S) => b + S, 0);
|
|
105
105
|
return {
|
|
106
106
|
name: o,
|
|
107
107
|
color: l || ce(l) || ee.value[a] || T[a] || T[a % T.length],
|
|
108
108
|
value: s,
|
|
109
|
-
proportion: s /
|
|
109
|
+
proportion: s / f.dataset.map((b) => (b.values || []).reduce((S, xe) => S + xe, 0)).reduce((b, S) => b + S, 0),
|
|
110
110
|
uid: ie()
|
|
111
111
|
};
|
|
112
|
-
})), le = c(() =>
|
|
112
|
+
})), le = c(() => A.value.map((t) => ({
|
|
113
113
|
...t,
|
|
114
114
|
shape: "circle",
|
|
115
115
|
opacity: i.value.includes(t.uid) ? 0.5 : 1,
|
|
116
116
|
segregate: () => U(t.uid),
|
|
117
117
|
isSegregated: i.value.includes(t.uid)
|
|
118
|
-
})).toSorted((t, o) => o.value - t.value)),
|
|
118
|
+
})).toSorted((t, o) => o.value - t.value)), Ce = c(() => ({
|
|
119
119
|
cy: "rings-div-legend",
|
|
120
120
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
121
121
|
color: e.value.style.chart.legend.color,
|
|
122
122
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
123
123
|
paddingBottom: 12,
|
|
124
124
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
125
|
-
})),
|
|
125
|
+
})), y = c(() => A.value.filter((t) => !i.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), v = c(() => A.value.filter((t) => !i.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a }, s) => ({
|
|
126
126
|
uid: a,
|
|
127
127
|
name: t,
|
|
128
128
|
color: l || ce(l) || ee.value[s] || T[s] || T[s % T.length],
|
|
129
129
|
value: o,
|
|
130
130
|
proportion: te(o),
|
|
131
|
-
percentage: o /
|
|
131
|
+
percentage: o / y.value * 100,
|
|
132
132
|
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * te(o)
|
|
133
133
|
})).toSorted((t, o) => o.value - t.value));
|
|
134
|
-
function
|
|
134
|
+
function we() {
|
|
135
135
|
return v.value.map(
|
|
136
136
|
({ name: t, color: o, value: l, absoluteValues: a, percentage: s }) => ({
|
|
137
137
|
name: t,
|
|
@@ -142,9 +142,9 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
142
142
|
})
|
|
143
143
|
);
|
|
144
144
|
}
|
|
145
|
-
const d = c(() =>
|
|
146
|
-
function
|
|
147
|
-
if (i.value.length ===
|
|
145
|
+
const d = c(() => be.value - e.value.style.chart.layout.rings.strokeWidth * 2), H = r(null);
|
|
146
|
+
function $e(t, o) {
|
|
147
|
+
if (i.value.length === f.dataset.length) return;
|
|
148
148
|
H.value = {
|
|
149
149
|
datapoint: o,
|
|
150
150
|
seriesIndex: t,
|
|
@@ -152,7 +152,7 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
152
152
|
config: e.value
|
|
153
153
|
}, $.value = t;
|
|
154
154
|
const l = v.value[t], a = e.value.style.chart.tooltip.customFormat;
|
|
155
|
-
if (
|
|
155
|
+
if (Be(a) && De(() => a({
|
|
156
156
|
seriesIndex: t,
|
|
157
157
|
datapoint: o,
|
|
158
158
|
series: v.value,
|
|
@@ -166,13 +166,28 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
166
166
|
});
|
|
167
167
|
else {
|
|
168
168
|
let s = "";
|
|
169
|
-
s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}" /></svg>`, e.value.style.chart.tooltip.showValue && (s += `<b>${
|
|
170
|
-
e.value.style.chart.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}" /></svg>`, e.value.style.chart.tooltip.showValue && (s += `<b>${de(
|
|
170
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
171
|
+
l.value,
|
|
172
|
+
x({
|
|
173
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
174
|
+
v: l.value,
|
|
175
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
176
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
177
|
+
}),
|
|
178
|
+
{ datapoint: o, seriesIndex: t }
|
|
179
|
+
)}
|
|
180
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${x({
|
|
181
|
+
v: l.value / y.value * 100,
|
|
182
|
+
s: "%",
|
|
183
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
184
|
+
})})</span></div>` : s += `<b>${x({
|
|
185
|
+
v: l.value / y.value * 100,
|
|
186
|
+
s: "%",
|
|
187
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
188
|
+
})}</b></div>`), G.value = s;
|
|
174
189
|
}
|
|
175
|
-
|
|
190
|
+
M.value = !0;
|
|
176
191
|
}
|
|
177
192
|
const C = c(() => {
|
|
178
193
|
const t = v.value.map((l) => ({
|
|
@@ -180,18 +195,18 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
180
195
|
color: l.color
|
|
181
196
|
})), o = v.value.map((l) => l.value);
|
|
182
197
|
return { head: t, body: o };
|
|
183
|
-
}),
|
|
198
|
+
}), R = c(() => {
|
|
184
199
|
const t = [
|
|
185
200
|
' <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>',
|
|
186
|
-
|
|
201
|
+
x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: y.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
187
202
|
"100%"
|
|
188
203
|
], o = C.value.head.map((s, b) => [
|
|
189
204
|
{
|
|
190
205
|
color: s.color,
|
|
191
206
|
name: s.name
|
|
192
207
|
},
|
|
193
|
-
|
|
194
|
-
isNaN(C.value.body[b] /
|
|
208
|
+
x({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: C.value.body[b], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
209
|
+
isNaN(C.value.body[b] / y.value) ? "-" : (C.value.body[b] / y.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
195
210
|
]), l = {
|
|
196
211
|
th: {
|
|
197
212
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -217,16 +232,16 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
217
232
|
};
|
|
218
233
|
});
|
|
219
234
|
function oe() {
|
|
220
|
-
|
|
235
|
+
Le(() => {
|
|
221
236
|
const t = C.value.head.map((a, s) => [[
|
|
222
237
|
a.name
|
|
223
|
-
], [C.value.body[s]], [isNaN(C.value.body[s] /
|
|
224
|
-
|
|
238
|
+
], [C.value.body[s]], [isNaN(C.value.body[s] / y.value) ? "-" : C.value.body[s] / y.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = We(o);
|
|
239
|
+
Ee({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
225
240
|
});
|
|
226
241
|
}
|
|
227
|
-
const
|
|
228
|
-
function
|
|
229
|
-
|
|
242
|
+
const I = r(!1);
|
|
243
|
+
function Te(t) {
|
|
244
|
+
I.value = t, j.value += 1;
|
|
230
245
|
}
|
|
231
246
|
function ae() {
|
|
232
247
|
k.value.showTable = !k.value.showTable;
|
|
@@ -234,30 +249,30 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
234
249
|
function se() {
|
|
235
250
|
k.value.showTooltip = !k.value.showTooltip;
|
|
236
251
|
}
|
|
237
|
-
return
|
|
238
|
-
getData:
|
|
252
|
+
return ge({
|
|
253
|
+
getData: we,
|
|
239
254
|
generatePdf: Q,
|
|
240
255
|
generateCsv: oe,
|
|
241
256
|
generateImage: Z,
|
|
242
257
|
toggleTable: ae,
|
|
243
258
|
toggleTooltip: se
|
|
244
|
-
}), (t, o) => (n(),
|
|
259
|
+
}), (t, o) => (n(), m("div", {
|
|
245
260
|
ref_key: "ringsChart",
|
|
246
261
|
ref: F,
|
|
247
|
-
class:
|
|
248
|
-
style:
|
|
249
|
-
id: `rings_${
|
|
262
|
+
class: V(`vue-ui-rings ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
263
|
+
style: _(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
264
|
+
id: `rings_${L.value}`,
|
|
250
265
|
onMouseleave: o[3] || (o[3] = (l) => {
|
|
251
|
-
$.value = null,
|
|
266
|
+
$.value = null, M.value = !1;
|
|
252
267
|
})
|
|
253
268
|
}, [
|
|
254
|
-
e.value.style.chart.title.text ? (n(),
|
|
269
|
+
e.value.style.chart.title.text ? (n(), m("div", {
|
|
255
270
|
key: 0,
|
|
256
271
|
ref_key: "chartTitle",
|
|
257
272
|
ref: Y,
|
|
258
|
-
style:
|
|
273
|
+
style: _(`width:100%;background:${e.value.style.chart.backgroundColor}`)
|
|
259
274
|
}, [
|
|
260
|
-
X(
|
|
275
|
+
X(He, {
|
|
261
276
|
config: {
|
|
262
277
|
title: {
|
|
263
278
|
cy: "rings-div-title",
|
|
@@ -269,16 +284,16 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
269
284
|
}
|
|
270
285
|
}
|
|
271
286
|
}, null, 8, ["config"])
|
|
272
|
-
], 4)) :
|
|
273
|
-
e.value.userOptions.show &&
|
|
287
|
+
], 4)) : N("", !0),
|
|
288
|
+
e.value.userOptions.show && O.value ? (n(), B(je, {
|
|
274
289
|
ref_key: "details",
|
|
275
|
-
ref:
|
|
290
|
+
ref: me,
|
|
276
291
|
key: `user_options_${j.value}`,
|
|
277
292
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
278
293
|
color: e.value.style.chart.color,
|
|
279
|
-
isPrinting:
|
|
280
|
-
isImaging:
|
|
281
|
-
uid:
|
|
294
|
+
isPrinting: h(J),
|
|
295
|
+
isImaging: h(K),
|
|
296
|
+
uid: L.value,
|
|
282
297
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
283
298
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
284
299
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -286,112 +301,112 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
286
301
|
hasTable: e.value.userOptions.buttons.table,
|
|
287
302
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
288
303
|
isTooltip: k.value.showTooltip,
|
|
289
|
-
isFullscreen:
|
|
304
|
+
isFullscreen: I.value,
|
|
290
305
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
291
306
|
chartElement: F.value,
|
|
292
|
-
onToggleFullscreen:
|
|
293
|
-
onGeneratePdf:
|
|
307
|
+
onToggleFullscreen: Te,
|
|
308
|
+
onGeneratePdf: h(Q),
|
|
294
309
|
onGenerateCsv: oe,
|
|
295
|
-
onGenerateImage:
|
|
310
|
+
onGenerateImage: h(Z),
|
|
296
311
|
onToggleTable: ae,
|
|
297
312
|
onToggleTooltip: se
|
|
298
|
-
},
|
|
313
|
+
}, Pe({ _: 2 }, [
|
|
299
314
|
t.$slots.optionTooltip ? {
|
|
300
315
|
name: "optionTooltip",
|
|
301
|
-
fn:
|
|
302
|
-
|
|
316
|
+
fn: p(() => [
|
|
317
|
+
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
303
318
|
]),
|
|
304
319
|
key: "0"
|
|
305
320
|
} : void 0,
|
|
306
321
|
t.$slots.optionPdf ? {
|
|
307
322
|
name: "optionPdf",
|
|
308
|
-
fn:
|
|
309
|
-
|
|
323
|
+
fn: p(() => [
|
|
324
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
310
325
|
]),
|
|
311
326
|
key: "1"
|
|
312
327
|
} : void 0,
|
|
313
328
|
t.$slots.optionCsv ? {
|
|
314
329
|
name: "optionCsv",
|
|
315
|
-
fn:
|
|
316
|
-
|
|
330
|
+
fn: p(() => [
|
|
331
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
317
332
|
]),
|
|
318
333
|
key: "2"
|
|
319
334
|
} : void 0,
|
|
320
335
|
t.$slots.optionImg ? {
|
|
321
336
|
name: "optionImg",
|
|
322
|
-
fn:
|
|
323
|
-
|
|
337
|
+
fn: p(() => [
|
|
338
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
324
339
|
]),
|
|
325
340
|
key: "3"
|
|
326
341
|
} : void 0,
|
|
327
342
|
t.$slots.optionTable ? {
|
|
328
343
|
name: "optionTable",
|
|
329
|
-
fn:
|
|
330
|
-
|
|
344
|
+
fn: p(() => [
|
|
345
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
331
346
|
]),
|
|
332
347
|
key: "4"
|
|
333
348
|
} : void 0,
|
|
334
349
|
t.$slots.optionFullscreen ? {
|
|
335
350
|
name: "optionFullscreen",
|
|
336
|
-
fn:
|
|
337
|
-
|
|
351
|
+
fn: p(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
352
|
+
g(t.$slots, "optionFullscreen", D(W({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
338
353
|
]),
|
|
339
354
|
key: "5"
|
|
340
355
|
} : void 0
|
|
341
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
342
|
-
|
|
356
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : N("", !0),
|
|
357
|
+
O.value ? (n(), m("svg", {
|
|
343
358
|
key: 2,
|
|
344
|
-
xmlns:
|
|
345
|
-
class:
|
|
359
|
+
xmlns: h(Ae),
|
|
360
|
+
class: V({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
346
361
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
347
|
-
style:
|
|
362
|
+
style: _(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
348
363
|
}, [
|
|
349
|
-
(n(!0),
|
|
364
|
+
(n(!0), m(ue, null, re(v.value, (l, a) => (n(), m("radialGradient", {
|
|
350
365
|
cx: "50%",
|
|
351
366
|
cy: "30%",
|
|
352
367
|
r: "50%",
|
|
353
368
|
fx: "50%",
|
|
354
369
|
fy: "50%",
|
|
355
|
-
id: `gradient_${
|
|
370
|
+
id: `gradient_${L.value}_${a}`
|
|
356
371
|
}, [
|
|
357
372
|
w("stop", {
|
|
358
373
|
offset: "0%",
|
|
359
|
-
"stop-color": `${
|
|
360
|
-
}, null, 8,
|
|
374
|
+
"stop-color": `${h(Re)(l.color, 0.05)}${h(Ve)[100 - e.value.style.chart.layout.rings.gradient.intensity]}`
|
|
375
|
+
}, null, 8, ot),
|
|
361
376
|
w("stop", {
|
|
362
377
|
offset: "100%",
|
|
363
378
|
"stop-color": l.color
|
|
364
|
-
}, null, 8,
|
|
365
|
-
], 8,
|
|
366
|
-
(n(!0),
|
|
379
|
+
}, null, 8, at)
|
|
380
|
+
], 8, lt))), 256)),
|
|
381
|
+
(n(!0), m(ue, null, re(v.value, (l, a) => (n(), m("g", null, [
|
|
367
382
|
w("circle", {
|
|
368
|
-
class:
|
|
369
|
-
"vue-ui-rings-item":
|
|
370
|
-
"vue-rings-item-onload": !
|
|
383
|
+
class: V({
|
|
384
|
+
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
385
|
+
"vue-rings-item-onload": !P.value && e.value.useCssAnimation,
|
|
371
386
|
"vue-ui-rings-opacity": $.value !== null && $.value !== a
|
|
372
387
|
}),
|
|
373
|
-
style:
|
|
388
|
+
style: _(`animation-delay:${a * 100}ms`),
|
|
374
389
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
375
390
|
cx: u.value.width / 2,
|
|
376
391
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + d.value * v.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
377
392
|
r: d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9,
|
|
378
393
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
379
|
-
}, null, 14,
|
|
394
|
+
}, null, 14, st),
|
|
380
395
|
w("circle", {
|
|
381
|
-
class:
|
|
382
|
-
"vue-ui-rings-item":
|
|
383
|
-
"vue-rings-item-onload": !
|
|
396
|
+
class: V({
|
|
397
|
+
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
398
|
+
"vue-rings-item-onload": !P.value && e.value.useCssAnimation,
|
|
384
399
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
385
400
|
"vue-ui-rings-blur": $.value !== null && $.value !== a
|
|
386
401
|
}),
|
|
387
|
-
style:
|
|
402
|
+
style: _(`animation-delay:${a * 100}ms`),
|
|
388
403
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
389
404
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
390
405
|
cx: u.value.width / 2,
|
|
391
406
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + d.value * v.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
392
407
|
r: d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9,
|
|
393
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${
|
|
394
|
-
}, null, 14,
|
|
408
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${L.value}_${a})` : l.color
|
|
409
|
+
}, null, 14, ut),
|
|
395
410
|
w("circle", {
|
|
396
411
|
"data-cy-trap": "",
|
|
397
412
|
stroke: "none",
|
|
@@ -399,18 +414,18 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
399
414
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + d.value * v.value[0].proportion / 2 - d.value * l.proportion / 2 - 2 * (a + 1),
|
|
400
415
|
r: d.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : d.value * l.proportion / 2 * 0.9,
|
|
401
416
|
fill: "transparent",
|
|
402
|
-
onMouseenter: (s) =>
|
|
417
|
+
onMouseenter: (s) => $e(a, l),
|
|
403
418
|
onMouseleave: o[0] || (o[0] = (s) => {
|
|
404
|
-
$.value = null,
|
|
419
|
+
$.value = null, M.value = !1;
|
|
405
420
|
})
|
|
406
|
-
}, null, 40,
|
|
421
|
+
}, null, 40, rt)
|
|
407
422
|
]))), 256)),
|
|
408
|
-
|
|
409
|
-
], 14,
|
|
410
|
-
t.$slots.watermark ? (n(),
|
|
411
|
-
|
|
412
|
-
])) :
|
|
413
|
-
|
|
423
|
+
g(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
424
|
+
], 14, tt)) : N("", !0),
|
|
425
|
+
t.$slots.watermark ? (n(), m("div", nt, [
|
|
426
|
+
g(t.$slots, "watermark", D(W({ isPrinting: h(J) || h(K) })), void 0, !0)
|
|
427
|
+
])) : N("", !0),
|
|
428
|
+
O.value ? N("", !0) : (n(), B(Ke, {
|
|
414
429
|
key: 4,
|
|
415
430
|
config: {
|
|
416
431
|
type: "rings",
|
|
@@ -426,30 +441,44 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
426
441
|
ref_key: "chartLegend",
|
|
427
442
|
ref: q
|
|
428
443
|
}, [
|
|
429
|
-
e.value.style.chart.legend.show ? (n(),
|
|
444
|
+
e.value.style.chart.legend.show ? (n(), B(Je, {
|
|
430
445
|
key: 0,
|
|
431
446
|
legendSet: le.value,
|
|
432
|
-
config:
|
|
447
|
+
config: Ce.value,
|
|
433
448
|
onClickMarker: o[1] || (o[1] = ({ legend: l }) => U(l.uid))
|
|
434
449
|
}, {
|
|
435
|
-
item:
|
|
450
|
+
item: p(({ legend: l, index: a }) => [
|
|
436
451
|
w("div", {
|
|
437
452
|
"data-cy-legend-item": "",
|
|
438
|
-
onClick: (
|
|
439
|
-
style:
|
|
453
|
+
onClick: (s) => U(l.uid),
|
|
454
|
+
style: _(`opacity:${i.value.includes(l.uid) ? 0.5 : 1}`)
|
|
440
455
|
}, [
|
|
441
|
-
ne(
|
|
442
|
-
|
|
443
|
-
|
|
456
|
+
ne(E(l.name) + ": " + E(h(de)(
|
|
457
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
458
|
+
l.value,
|
|
459
|
+
h(x)({
|
|
460
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
461
|
+
v: l.value,
|
|
462
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
463
|
+
r: e.value.style.chart.legend.roundingValue
|
|
464
|
+
}),
|
|
465
|
+
{ datapoint: l, seriesIndex: a }
|
|
466
|
+
)) + " ", 1),
|
|
467
|
+
i.value.includes(l.uid) ? (n(), m("span", ct, " ( - % ) ")) : (n(), m("span", vt, " (" + E(isNaN(l.value / y.value) ? "-" : h(x)({
|
|
468
|
+
v: l.value / y.value * 100,
|
|
469
|
+
s: "%",
|
|
470
|
+
r: e.value.style.chart.legend.roundingPercentage
|
|
471
|
+
})) + ") ", 1))
|
|
472
|
+
], 12, it)
|
|
444
473
|
]),
|
|
445
474
|
_: 1
|
|
446
|
-
}, 8, ["legendSet", "config"])) :
|
|
475
|
+
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
447
476
|
key: 1,
|
|
448
477
|
legend: le.value
|
|
449
478
|
}, void 0, !0)
|
|
450
479
|
], 512),
|
|
451
|
-
X(
|
|
452
|
-
show: k.value.showTooltip &&
|
|
480
|
+
X(Ye, {
|
|
481
|
+
show: k.value.showTooltip && M.value && i.value.length < f.dataset.length,
|
|
453
482
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
454
483
|
color: e.value.style.chart.tooltip.color,
|
|
455
484
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -463,15 +492,15 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
463
492
|
content: G.value,
|
|
464
493
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
465
494
|
}, {
|
|
466
|
-
"tooltip-before":
|
|
467
|
-
|
|
495
|
+
"tooltip-before": p(() => [
|
|
496
|
+
g(t.$slots, "tooltip-before", D(W({ ...H.value })), void 0, !0)
|
|
468
497
|
]),
|
|
469
|
-
"tooltip-after":
|
|
470
|
-
|
|
498
|
+
"tooltip-after": p(() => [
|
|
499
|
+
g(t.$slots, "tooltip-after", D(W({ ...H.value })), void 0, !0)
|
|
471
500
|
]),
|
|
472
501
|
_: 3
|
|
473
502
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
474
|
-
|
|
503
|
+
O.value ? (n(), B(Qe, {
|
|
475
504
|
key: 5,
|
|
476
505
|
hideDetails: "",
|
|
477
506
|
config: {
|
|
@@ -487,32 +516,32 @@ const Ze = ["id"], et = ["xmlns", "viewBox"], tt = ["id"], lt = ["stop-color"],
|
|
|
487
516
|
}
|
|
488
517
|
}
|
|
489
518
|
}, {
|
|
490
|
-
content:
|
|
491
|
-
X(
|
|
492
|
-
colNames:
|
|
493
|
-
head:
|
|
494
|
-
body:
|
|
495
|
-
config:
|
|
519
|
+
content: p(() => [
|
|
520
|
+
X(qe, {
|
|
521
|
+
colNames: R.value.colNames,
|
|
522
|
+
head: R.value.head,
|
|
523
|
+
body: R.value.body,
|
|
524
|
+
config: R.value.config,
|
|
496
525
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
497
526
|
onClose: o[2] || (o[2] = (l) => k.value.showTable = !1)
|
|
498
527
|
}, {
|
|
499
|
-
th:
|
|
528
|
+
th: p(({ th: l }) => [
|
|
500
529
|
w("div", {
|
|
501
530
|
innerHTML: l,
|
|
502
531
|
style: { display: "flex", "align-items": "center" }
|
|
503
|
-
}, null, 8,
|
|
532
|
+
}, null, 8, dt)
|
|
504
533
|
]),
|
|
505
|
-
td:
|
|
506
|
-
ne(
|
|
534
|
+
td: p(({ td: l }) => [
|
|
535
|
+
ne(E(l.name || l), 1)
|
|
507
536
|
]),
|
|
508
537
|
_: 1
|
|
509
538
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
510
539
|
]),
|
|
511
540
|
_: 1
|
|
512
|
-
}, 8, ["config"])) :
|
|
513
|
-
], 46,
|
|
541
|
+
}, 8, ["config"])) : N("", !0)
|
|
542
|
+
], 46, et));
|
|
514
543
|
}
|
|
515
|
-
},
|
|
544
|
+
}, _t = /* @__PURE__ */ Ze(ht, [["__scopeId", "data-v-747e43da"]]);
|
|
516
545
|
export {
|
|
517
|
-
|
|
546
|
+
_t as default
|
|
518
547
|
};
|