vue-data-ui 2.3.61 → 2.3.63
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-B5nYwPUt.js → Arrow-CBx1Hj4I.js} +1 -1
- package/dist/{Arrow-Dv_tprAO.cjs → Arrow-fP0md3L3.cjs} +1 -1
- package/dist/{BaseIcon-DUPLRuLO.js → BaseIcon-CS18qRiy.js} +1 -1
- package/dist/{BaseIcon-aPcCSO_Z.cjs → BaseIcon-O8jJvy48.cjs} +1 -1
- package/dist/{DataTable-NUzEZXWt.js → DataTable-BGJ2mVxG.js} +2 -2
- package/dist/{DataTable-B6xCb-DR.cjs → DataTable-CSEiZDAb.cjs} +1 -1
- package/dist/{Legend-ePmJ_YIA.cjs → Legend-DuuSl2rJ.cjs} +1 -1
- package/dist/{Legend-C3tseguI.js → Legend-UWyvC57K.js} +1 -1
- package/dist/{Shape-DAe5uqIA.cjs → Shape-Dsx4SQVn.cjs} +1 -1
- package/dist/{Shape-BPcWPP9D.js → Shape-HfEpP-Tk.js} +1 -1
- package/dist/{Slicer-CmHwU6if.js → Slicer-Bk3Rt85L.js} +9 -9
- package/dist/{Slicer-BJs52Jle.cjs → Slicer-Cf74aFVz.cjs} +1 -1
- package/dist/{Title-BAQrVaNA.js → Title-CPZstF2C.js} +1 -1
- package/dist/{Title-B_p983os.cjs → Title-PZ6S96pU.cjs} +1 -1
- package/dist/{Tooltip-C2dhDgoh.cjs → Tooltip-BoIYPSX3.cjs} +1 -1
- package/dist/{Tooltip-B73tTE2v.js → Tooltip-CBmmiqKr.js} +5 -5
- package/dist/{index-CwG--L4Z.js → index-C_05i_JG.js} +578 -526
- package/dist/{index-nPEJmXmf.cjs → index-NNZeHOBS.cjs} +4 -4
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-TbnnNrH2.cjs → useNestedProp-CPsbJAGj.cjs} +1 -1
- package/dist/{useNestedProp-BqwYEJGM.js → useNestedProp-DLnT0Wtg.js} +1 -1
- package/dist/{usePrinter-D012Olnq.cjs → usePrinter-BLbY8qGZ.cjs} +1 -1
- package/dist/{usePrinter-Do9tGYem.js → usePrinter-DOhlzlnx.js} +1 -1
- package/dist/{vue-data-ui-DQAJDvpX.cjs → vue-data-ui-D5aG0WkE.cjs} +1 -1
- package/dist/{vue-data-ui-ORLyt-v3.js → vue-data-ui-vqnxkVKv.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +7 -7
- package/dist/{vue-ui-3d-bar-BRbooRg3.cjs → vue-ui-3d-bar-Cez69HMH.cjs} +1 -1
- package/dist/{vue-ui-3d-bar--ztApFzW.js → vue-ui-3d-bar-b7Pu7sfL.js} +7 -7
- package/dist/{vue-ui-accordion-CHL4xuW4.cjs → vue-ui-accordion-CcdyvXrp.cjs} +1 -1
- package/dist/{vue-ui-accordion-Be_wWB1T.js → vue-ui-accordion-rGJVvi_V.js} +3 -3
- package/dist/vue-ui-age-pyramid-B6LKyKjc.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-DLIladXC.js → vue-ui-age-pyramid-CH1Vj2R6.js} +226 -226
- package/dist/{vue-ui-annotator-CS2d8F8x.cjs → vue-ui-annotator-BfmMNM_X.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bxrjl1nz.js → vue-ui-annotator-CTio5IiK.js} +1 -1
- package/dist/{vue-ui-candlestick-BppLVU6c.js → vue-ui-candlestick-C4kT9W0j.js} +158 -158
- package/dist/{vue-ui-candlestick-tumv-lhv.cjs → vue-ui-candlestick-DvX9Jxoi.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-BsFNypM6.cjs → vue-ui-carousel-table-CMs7scX3.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BnOsmGVc.js → vue-ui-carousel-table-Df2HHk0v.js} +4 -4
- package/dist/{vue-ui-chestnut-DFb7M_SC.js → vue-ui-chestnut-BKTnDElg.js} +65 -64
- package/dist/{vue-ui-chestnut-tK8ebPQM.cjs → vue-ui-chestnut-CCw8h0_m.cjs} +3 -3
- package/dist/{vue-ui-cursor-D-eRMlWI.cjs → vue-ui-cursor-C-8bpiuy.cjs} +1 -1
- package/dist/{vue-ui-cursor-CYk61ZVK.js → vue-ui-cursor-DOOlFN5D.js} +2 -2
- package/dist/{vue-ui-dashboard-Cbk74q7K.cjs → vue-ui-dashboard-B_h8KxOx.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BomFWtsP.js → vue-ui-dashboard-D7U1UkAh.js} +2 -2
- package/dist/{vue-ui-digits-Ch9quA4D.js → vue-ui-digits-DmxQgABv.js} +2 -2
- package/dist/{vue-ui-digits-DWJOvgi2.cjs → vue-ui-digits-DoQoNGGx.cjs} +1 -1
- package/dist/{vue-ui-donut-BIMgi_Qw.cjs → vue-ui-donut-DdnwGXq6.cjs} +1 -1
- package/dist/vue-ui-donut-evolution-DsRAZLMN.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-ClNciLi2.js → vue-ui-donut-evolution-uPCTV6E6.js} +95 -95
- package/dist/{vue-ui-donut-Ctzc7e6_.js → vue-ui-donut-t5zf9Lm5.js} +42 -42
- package/dist/{vue-ui-dumbbell-IBrAHdlc.js → vue-ui-dumbbell-BCdxqHVR.js} +109 -107
- package/dist/vue-ui-dumbbell-D1Ak2pEE.cjs +9 -0
- package/dist/vue-ui-flow-CLqm5nkx.cjs +1 -0
- package/dist/vue-ui-flow-J1SmdKkh.js +469 -0
- package/dist/vue-ui-galaxy-CSXbhXBe.cjs +1 -0
- package/dist/{vue-ui-galaxy-BBKU6WqV.js → vue-ui-galaxy-DNMbyKNg.js} +91 -91
- package/dist/{vue-ui-gauge-CDpN6D_X.js → vue-ui-gauge-CC_9cSwj.js} +84 -84
- package/dist/vue-ui-gauge-O3ntKI31.cjs +1 -0
- package/dist/{vue-ui-gizmo-BS-olrbu.js → vue-ui-gizmo-C5vGMHUU.js} +2 -2
- package/dist/{vue-ui-gizmo-Dyi4DWSA.cjs → vue-ui-gizmo-qrJt0nH6.cjs} +1 -1
- package/dist/vue-ui-heatmap-BjimHnMb.cjs +1 -0
- package/dist/{vue-ui-heatmap-Bonl3GBj.js → vue-ui-heatmap-ByxLZuR5.js} +257 -239
- package/dist/{vue-ui-kpi-MeC195T8.js → vue-ui-kpi-DdNQlVCe.js} +3 -3
- package/dist/{vue-ui-kpi-ChD3Gh4P.cjs → vue-ui-kpi-eyxMedig.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-NiTij5XQ.cjs → vue-ui-mini-loader-B5ykH9BF.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-l2G4D7lJ.js → vue-ui-mini-loader-C05VGcNr.js} +2 -2
- package/dist/{vue-ui-molecule-C1dO-Ony.js → vue-ui-molecule-DI0oHPT5.js} +20 -20
- package/dist/{vue-ui-molecule-pXZ3aWlr.cjs → vue-ui-molecule-LZ1SRkgK.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-C3Gv4iYr.cjs → vue-ui-mood-radar-BJqk2oK_.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BVpJ3O4m.js → vue-ui-mood-radar-DIDqiVMf.js} +9 -9
- package/dist/{vue-ui-nested-donuts-Dmeqsml8.js → vue-ui-nested-donuts-BkSiryoB.js} +120 -120
- package/dist/{vue-ui-nested-donuts-Cwk0M7SE.cjs → vue-ui-nested-donuts-Nggnu_iK.cjs} +2 -2
- package/dist/{vue-ui-onion-BmJO696O.cjs → vue-ui-onion-B29Cxru2.cjs} +1 -1
- package/dist/{vue-ui-onion-Ogj_rMlX.js → vue-ui-onion-xiubSG3j.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-BBBuJdGN.js → vue-ui-parallel-coordinate-plot-DjmOGHVx.js} +69 -69
- package/dist/{vue-ui-parallel-coordinate-plot-Cqm7uMBs.cjs → vue-ui-parallel-coordinate-plot-DqrkSOo6.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BJtgJ_lu.js → vue-ui-quadrant-Cc79ggIy.js} +36 -36
- package/dist/{vue-ui-quadrant-DcqQwIsD.cjs → vue-ui-quadrant-Df_2X-ca.cjs} +1 -1
- package/dist/vue-ui-quick-chart-BnBGXd4d.cjs +15 -0
- package/dist/{vue-ui-quick-chart-D7dCfDSL.js → vue-ui-quick-chart-t_cPx4OT.js} +549 -515
- package/dist/{vue-ui-radar-BMxzhMFJ.js → vue-ui-radar-C3qEonKT.js} +59 -59
- package/dist/vue-ui-radar-D3W9B9JE.cjs +1 -0
- package/dist/{vue-ui-rating-DSgHml7s.js → vue-ui-rating-DffL7w-I.js} +9 -9
- package/dist/{vue-ui-rating-buop0ul0.cjs → vue-ui-rating-aOa6zIr5.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BACMnvv8.cjs → vue-ui-relation-circle-BZ7r7Unx.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CdHbZK0u.js → vue-ui-relation-circle-D0zUfd3f.js} +5 -5
- package/dist/vue-ui-rings-BjWAtE4x.cjs +2 -0
- package/dist/{vue-ui-rings-BBnzxfo2.js → vue-ui-rings-PHbuqfoT.js} +188 -185
- package/dist/{vue-ui-scatter-sF3c5eqM.cjs → vue-ui-scatter-DMJ77QYr.cjs} +1 -1
- package/dist/{vue-ui-scatter-DYXhTzch.js → vue-ui-scatter-DuCnr2yB.js} +378 -375
- package/dist/{vue-ui-screenshot-D-6YvKkW.cjs → vue-ui-screenshot-DBuA631a.cjs} +1 -1
- package/dist/{vue-ui-screenshot-B4WOalT6.js → vue-ui-screenshot-DbwRrmHv.js} +6 -6
- package/dist/{vue-ui-skeleton-D6wHGzmu.cjs → vue-ui-skeleton-CI4t8LHn.cjs} +1 -1
- package/dist/{vue-ui-skeleton-ClzVF3vm.js → vue-ui-skeleton-CcJR2m18.js} +23 -23
- package/dist/{vue-ui-smiley-B1cqwAN5.js → vue-ui-smiley-2rJFSSZS.js} +2 -2
- package/dist/{vue-ui-smiley-CoVnFdkD.cjs → vue-ui-smiley-C7KBm0fz.cjs} +1 -1
- package/dist/vue-ui-spark-trend-DY_sfo6o.js +251 -0
- package/dist/vue-ui-spark-trend-VH2nwGJf.cjs +1 -0
- package/dist/{vue-ui-sparkbar-BOzSGZak.js → vue-ui-sparkbar-B0O77PcV.js} +3 -3
- package/dist/{vue-ui-sparkbar-CpIfPtyd.cjs → vue-ui-sparkbar-Bs8ZQem1.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-4hk6ZJwJ.js → vue-ui-sparkgauge-B5KqrHQZ.js} +64 -64
- package/dist/vue-ui-sparkgauge-Cd7b4u0z.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-VCAQZfgG.cjs → vue-ui-sparkhistogram-CEWCLohQ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-8degKlMU.js → vue-ui-sparkhistogram-DwRPeG7H.js} +4 -4
- package/dist/{vue-ui-sparkline-DsUwWV4z.cjs → vue-ui-sparkline-CuFtIMpq.cjs} +1 -1
- package/dist/{vue-ui-sparkline-uBkd9kR2.js → vue-ui-sparkline-W5bZnpQo.js} +25 -25
- package/dist/{vue-ui-sparkstackbar-Cpq2lHcl.js → vue-ui-sparkstackbar-9hBQZ0lZ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DyNfMGkM.cjs → vue-ui-sparkstackbar-TyVFUMtT.cjs} +1 -1
- package/dist/{vue-ui-stackbar-lr_qudpY.js → vue-ui-stackbar-BlkgM0nD.js} +35 -35
- package/dist/{vue-ui-stackbar-jQe7BneA.cjs → vue-ui-stackbar-CwVcupxt.cjs} +1 -1
- package/dist/vue-ui-strip-plot-C1GfRjXJ.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DwvlcnHB.js → vue-ui-strip-plot-CBfqkkY6.js} +76 -75
- package/dist/{vue-ui-table-Dhj4_z9d.js → vue-ui-table-B8cvvLk8.js} +1 -1
- package/dist/{vue-ui-table-D5ybohqp.cjs → vue-ui-table-CmguTt4I.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CChLZdxj.cjs → vue-ui-table-heatmap-DMnh8-b1.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BY65DeiH.js → vue-ui-table-heatmap-wVWltZ2x.js} +26 -26
- package/dist/{vue-ui-table-sparkline-CvMETVJ1.js → vue-ui-table-sparkline-_POawNEL.js} +13 -13
- package/dist/{vue-ui-table-sparkline-Cmy6PcPI.cjs → vue-ui-table-sparkline-wtIFAc20.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BIN2ofrh.js → vue-ui-thermometer-CFJqd-VY.js} +116 -116
- package/dist/vue-ui-thermometer-D6SnFJb1.cjs +1 -0
- package/dist/{vue-ui-timer-DBcOT10h.cjs → vue-ui-timer-194y0LUC.cjs} +1 -1
- package/dist/{vue-ui-timer-DoSqphvk.js → vue-ui-timer-D8dgDAfe.js} +4 -4
- package/dist/vue-ui-tiremarks-BM28JsxE.cjs +1 -0
- package/dist/{vue-ui-tiremarks-DRTLsMWt.js → vue-ui-tiremarks-CH1BFqbO.js} +71 -71
- package/dist/vue-ui-treemap-BIpIg3Qa.cjs +1 -0
- package/dist/{vue-ui-treemap-D8-D_wfq.js → vue-ui-treemap-DHsoVY5n.js} +89 -82
- package/dist/{vue-ui-vertical-bar-zUaXmUpB.js → vue-ui-vertical-bar-DNODBoSo.js} +246 -242
- package/dist/vue-ui-vertical-bar-Du8ikoWM.cjs +4 -0
- package/dist/{vue-ui-waffle-CztGir7e.js → vue-ui-waffle-C8hMAeMl.js} +44 -44
- package/dist/{vue-ui-waffle-RCqpPcSF.cjs → vue-ui-waffle-_Bi9MRx8.cjs} +1 -1
- package/dist/{vue-ui-wheel-CBqL8FKG.cjs → vue-ui-wheel-BZxcRGJX.cjs} +1 -1
- package/dist/{vue-ui-wheel-BQ2a-ZyV.js → vue-ui-wheel-CmZKsfKj.js} +5 -5
- package/dist/{vue-ui-word-cloud-CKUGIGnW.js → vue-ui-word-cloud-fLf-x06l.js} +68 -65
- package/dist/vue-ui-word-cloud-nHVG2yid.cjs +1 -0
- package/dist/{vue-ui-xy-Dsa2tfKS.js → vue-ui-xy-CPln5bGQ.js} +82 -82
- package/dist/vue-ui-xy-canvas-Z1tJJV5-.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-JeNqaB_p.js → vue-ui-xy-canvas-k30CEsKi.js} +122 -121
- package/dist/vue-ui-xy-qxQy2sOl.cjs +3 -0
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-BILMRRi1.cjs +0 -1
- package/dist/vue-ui-donut-evolution-K7LUkN6q.cjs +0 -1
- package/dist/vue-ui-dumbbell-HVpK20XO.cjs +0 -9
- package/dist/vue-ui-flow-CiXnGdNb.js +0 -465
- package/dist/vue-ui-flow-ClV2yd8Y.cjs +0 -1
- package/dist/vue-ui-galaxy-CMCXCWDA.cjs +0 -1
- package/dist/vue-ui-gauge-DwCGaX1h.cjs +0 -1
- package/dist/vue-ui-heatmap-WFNo-GFX.cjs +0 -1
- package/dist/vue-ui-quick-chart-D9zFHA0L.cjs +0 -15
- package/dist/vue-ui-radar-D8ik0Fqr.cjs +0 -1
- package/dist/vue-ui-rings-Dn5opKNy.cjs +0 -2
- package/dist/vue-ui-spark-trend-DnO4DW0n.cjs +0 -1
- package/dist/vue-ui-spark-trend-HioE2zeC.js +0 -251
- package/dist/vue-ui-sparkgauge-C2_I0tyO.cjs +0 -1
- package/dist/vue-ui-strip-plot-BMKaWqD4.cjs +0 -1
- package/dist/vue-ui-thermometer-Bfp-FwRE.cjs +0 -1
- package/dist/vue-ui-tiremarks-BeBJHz2R.cjs +0 -1
- package/dist/vue-ui-treemap-DqBukSj6.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BM3aaSuB.cjs +0 -4
- package/dist/vue-ui-word-cloud-BbnU0d3E.cjs +0 -1
- package/dist/vue-ui-xy-BU0fCkSk.cjs +0 -3
- package/dist/vue-ui-xy-canvas-IaIARWWS.cjs +0 -9
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref as r, computed as
|
|
2
|
-
import { u 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 d, onMounted as Ne, onBeforeUnmount as Pe, openBlock as i, createElementBlock as m, normalizeClass as V, normalizeStyle as _, createVNode as X, createCommentVNode as N, createBlock as B, unref as n, createSlots as Le, withCtx as p, renderSlot as g, normalizeProps as D, guardReactiveProps as U, Fragment as ne, renderList as ie, createElementVNode as w, createTextVNode as ve, toDisplayString as W, nextTick as Fe } from "vue";
|
|
2
|
+
import { u as Ie, c as ce, t as Se, a as Oe, p as T, o as Me, e as j, g as ze, b as Ae, F as Re, d as de, f as x, X as Ve, v as Be, w as De, s as Y, i as he, x as Ue, y as We, q as Ee, r as Ge } from "./index-C_05i_JG.js";
|
|
3
|
+
import { t as He, u as Xe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as je } from "./Title-CPZstF2C.js";
|
|
5
|
+
import { u as Ye, U as qe } from "./usePrinter-DOhlzlnx.js";
|
|
6
|
+
import { _ as Je } from "./Tooltip-CBmmiqKr.js";
|
|
7
|
+
import { D as Ke } from "./DataTable-BGJ2mVxG.js";
|
|
8
|
+
import { L as Qe } from "./Legend-UWyvC57K.js";
|
|
9
|
+
import Ze from "./vue-ui-skeleton-CcJR2m18.js";
|
|
10
|
+
import et from "./vue-ui-accordion-rGJVvi_V.js";
|
|
11
|
+
import { u as pe } from "./useNestedProp-DLnT0Wtg.js";
|
|
12
|
+
import { _ as tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"], ut = ["stop-color"], rt = ["stroke", "cx", "cy", "r", "fill"], nt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], it = ["cx", "cy", "r", "onMouseenter"], vt = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, ct = ["onClick"], dt = { key: 0 }, ht = { key: 1 }, pt = ["innerHTML"], gt = {
|
|
17
17
|
__name: "vue-ui-rings",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,143 +30,146 @@ const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"],
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
|
-
setup(
|
|
34
|
-
const f =
|
|
35
|
-
const t =
|
|
33
|
+
setup(ge, { expose: fe, emit: ye }) {
|
|
34
|
+
const f = ge, { vue_ui_rings: me } = Ie(), P = r(!1), O = d(() => !!f.dataset && f.dataset.length), L = r(ce()), be = r(null), M = r(!1), E = r(""), $ = r(null), q = r(0), F = r(null), J = r(null), K = r(null), e = d(() => {
|
|
35
|
+
const t = pe({
|
|
36
36
|
userConfig: f.config,
|
|
37
|
-
defaultConfig:
|
|
37
|
+
defaultConfig: me
|
|
38
38
|
});
|
|
39
39
|
return t.theme ? {
|
|
40
|
-
...
|
|
41
|
-
userConfig:
|
|
40
|
+
...pe({
|
|
41
|
+
userConfig: Se.vue_ui_rings[t.theme] || f.config,
|
|
42
42
|
defaultConfig: t
|
|
43
43
|
}),
|
|
44
|
-
customPalette:
|
|
44
|
+
customPalette: Oe[t.theme] || T
|
|
45
45
|
} : t;
|
|
46
46
|
}), z = r(null);
|
|
47
|
-
|
|
48
|
-
if (
|
|
47
|
+
Ne(() => {
|
|
48
|
+
if (Me(f.dataset) ? j({
|
|
49
49
|
componentName: "VueUiRings",
|
|
50
50
|
type: "dataset"
|
|
51
|
-
}) : f.dataset.forEach((t,
|
|
52
|
-
|
|
51
|
+
}) : f.dataset.forEach((t, a) => {
|
|
52
|
+
t.values.length || j({
|
|
53
|
+
componentName: "VueUiRings",
|
|
54
|
+
type: "dataset"
|
|
55
|
+
}), ze({
|
|
53
56
|
datasetObject: t,
|
|
54
57
|
requiredAttributes: ["name", "values"]
|
|
55
58
|
}).forEach((l) => {
|
|
56
|
-
|
|
59
|
+
j({
|
|
57
60
|
componentName: "VueUiRings",
|
|
58
61
|
type: "datasetSerieAttribute",
|
|
59
62
|
property: l,
|
|
60
|
-
index:
|
|
63
|
+
index: a
|
|
61
64
|
});
|
|
62
65
|
});
|
|
63
66
|
}), e.value.responsive) {
|
|
64
|
-
const t =
|
|
65
|
-
const { width:
|
|
67
|
+
const t = He(() => {
|
|
68
|
+
const { width: a, height: l } = Xe({
|
|
66
69
|
chart: F.value,
|
|
67
|
-
title: e.value.style.chart.title.text ?
|
|
68
|
-
legend: e.value.style.chart.legend.show ?
|
|
70
|
+
title: e.value.style.chart.title.text ? J.value : null,
|
|
71
|
+
legend: e.value.style.chart.legend.show ? K.value : null
|
|
69
72
|
});
|
|
70
|
-
u.value.width =
|
|
73
|
+
u.value.width = a, u.value.height = l;
|
|
71
74
|
});
|
|
72
75
|
z.value = new ResizeObserver(t), z.value.observe(F.value.parentNode);
|
|
73
76
|
}
|
|
74
77
|
setTimeout(() => {
|
|
75
78
|
P.value = !0;
|
|
76
79
|
}, 600);
|
|
77
|
-
}),
|
|
80
|
+
}), Pe(() => {
|
|
78
81
|
z.value && z.value.disconnect();
|
|
79
82
|
});
|
|
80
|
-
const { isPrinting:
|
|
83
|
+
const { isPrinting: Q, isImaging: Z, generatePdf: ee, generateImage: te } = Ye({
|
|
81
84
|
elementId: `rings_${L.value}`,
|
|
82
85
|
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
83
|
-
}),
|
|
86
|
+
}), le = d(() => Ae(e.value.customPalette)), k = r({
|
|
84
87
|
showTable: e.value.table.show,
|
|
85
88
|
showTooltip: e.value.style.chart.tooltip.show
|
|
86
89
|
}), u = r({
|
|
87
90
|
height: 360,
|
|
88
91
|
width: 360
|
|
89
|
-
}),
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
-
name:
|
|
93
|
-
color:
|
|
94
|
-
value:
|
|
92
|
+
}), ke = d(() => Math.min(u.value.height, u.value.width)), v = r([]);
|
|
93
|
+
function G(t) {
|
|
94
|
+
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.push(t), ye("selectLegend", c.value.map((a) => ({
|
|
95
|
+
name: a.name,
|
|
96
|
+
color: a.color,
|
|
97
|
+
value: a.value
|
|
95
98
|
})));
|
|
96
99
|
}
|
|
97
|
-
const
|
|
98
|
-
...A.value.filter((t) => !
|
|
100
|
+
const Ce = d(() => Math.max(
|
|
101
|
+
...A.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t)
|
|
99
102
|
));
|
|
100
|
-
function
|
|
101
|
-
return t /
|
|
103
|
+
function ae(t) {
|
|
104
|
+
return t / Ce.value;
|
|
102
105
|
}
|
|
103
|
-
const A =
|
|
104
|
-
const s = (t
|
|
106
|
+
const A = d(() => f.dataset.map(({ values: t, name: a, color: l = null }, o) => {
|
|
107
|
+
const s = Re(t).reduce((b, S) => b + S, 0);
|
|
105
108
|
return {
|
|
106
|
-
name:
|
|
107
|
-
color: l ||
|
|
109
|
+
name: a,
|
|
110
|
+
color: l || de(l) || le.value[o] || T[o] || T[o % T.length],
|
|
108
111
|
value: s,
|
|
109
|
-
proportion: s / f.dataset.map((b) => (b.values || []).reduce((S,
|
|
110
|
-
uid:
|
|
112
|
+
proportion: s / f.dataset.map((b) => (b.values || []).reduce((S, _e) => S + _e, 0)).reduce((b, S) => b + S, 0),
|
|
113
|
+
uid: ce()
|
|
111
114
|
};
|
|
112
|
-
})),
|
|
115
|
+
})), oe = d(() => A.value.map((t) => ({
|
|
113
116
|
...t,
|
|
114
117
|
shape: "circle",
|
|
115
|
-
opacity:
|
|
116
|
-
segregate: () =>
|
|
117
|
-
isSegregated:
|
|
118
|
-
})).toSorted((t,
|
|
118
|
+
opacity: v.value.includes(t.uid) ? 0.5 : 1,
|
|
119
|
+
segregate: () => G(t.uid),
|
|
120
|
+
isSegregated: v.value.includes(t.uid)
|
|
121
|
+
})).toSorted((t, a) => a.value - t.value)), we = d(() => ({
|
|
119
122
|
cy: "rings-div-legend",
|
|
120
123
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
121
124
|
color: e.value.style.chart.legend.color,
|
|
122
125
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
123
126
|
paddingBottom: 12,
|
|
124
127
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
125
|
-
})), y =
|
|
126
|
-
uid:
|
|
128
|
+
})), y = d(() => A.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), c = d(() => A.value.filter((t) => !v.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o }, s) => ({
|
|
129
|
+
uid: o,
|
|
127
130
|
name: t,
|
|
128
|
-
color: l ||
|
|
129
|
-
value:
|
|
130
|
-
proportion:
|
|
131
|
-
percentage:
|
|
132
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth *
|
|
133
|
-
})).toSorted((t,
|
|
134
|
-
function
|
|
135
|
-
return
|
|
136
|
-
({ name: t, color:
|
|
131
|
+
color: l || de(l) || le.value[s] || T[s] || T[s % T.length],
|
|
132
|
+
value: a,
|
|
133
|
+
proportion: ae(a),
|
|
134
|
+
percentage: a / y.value * 100,
|
|
135
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * ae(a)
|
|
136
|
+
})).toSorted((t, a) => a.value - t.value));
|
|
137
|
+
function $e() {
|
|
138
|
+
return c.value.map(
|
|
139
|
+
({ name: t, color: a, value: l, absoluteValues: o, percentage: s }) => ({
|
|
137
140
|
name: t,
|
|
138
|
-
color:
|
|
141
|
+
color: a,
|
|
139
142
|
value: l,
|
|
140
|
-
absoluteValues:
|
|
143
|
+
absoluteValues: o,
|
|
141
144
|
percentage: s
|
|
142
145
|
})
|
|
143
146
|
);
|
|
144
147
|
}
|
|
145
|
-
const
|
|
146
|
-
function
|
|
147
|
-
if (
|
|
148
|
+
const h = d(() => ke.value - e.value.style.chart.layout.rings.strokeWidth * 2), H = r(null);
|
|
149
|
+
function Te(t, a) {
|
|
150
|
+
if (v.value.length === f.dataset.length) return;
|
|
148
151
|
H.value = {
|
|
149
|
-
datapoint:
|
|
152
|
+
datapoint: a,
|
|
150
153
|
seriesIndex: t,
|
|
151
|
-
series:
|
|
154
|
+
series: c.value,
|
|
152
155
|
config: e.value
|
|
153
156
|
}, $.value = t;
|
|
154
|
-
const l =
|
|
155
|
-
if (
|
|
157
|
+
const l = c.value[t], o = e.value.style.chart.tooltip.customFormat;
|
|
158
|
+
if (Ue(o) && We(() => o({
|
|
156
159
|
seriesIndex: t,
|
|
157
|
-
datapoint:
|
|
158
|
-
series:
|
|
160
|
+
datapoint: a,
|
|
161
|
+
series: c.value,
|
|
159
162
|
config: e.value
|
|
160
163
|
})))
|
|
161
|
-
|
|
164
|
+
E.value = o({
|
|
162
165
|
seriesIndex: t,
|
|
163
|
-
datapoint:
|
|
164
|
-
series:
|
|
166
|
+
datapoint: a,
|
|
167
|
+
series: c.value,
|
|
165
168
|
config: e.value
|
|
166
169
|
});
|
|
167
170
|
else {
|
|
168
171
|
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>${
|
|
172
|
+
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>${he(
|
|
170
173
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
171
174
|
l.value,
|
|
172
175
|
x({
|
|
@@ -175,7 +178,7 @@ const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"],
|
|
|
175
178
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
176
179
|
r: e.value.style.chart.tooltip.roundingValue
|
|
177
180
|
}),
|
|
178
|
-
{ datapoint:
|
|
181
|
+
{ datapoint: a, seriesIndex: t }
|
|
179
182
|
)}
|
|
180
183
|
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${x({
|
|
181
184
|
v: l.value / y.value * 100,
|
|
@@ -185,22 +188,22 @@ const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"],
|
|
|
185
188
|
v: l.value / y.value * 100,
|
|
186
189
|
s: "%",
|
|
187
190
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
188
|
-
})}</b></div>`),
|
|
191
|
+
})}</b></div>`), E.value = s;
|
|
189
192
|
}
|
|
190
193
|
M.value = !0;
|
|
191
194
|
}
|
|
192
|
-
const C =
|
|
193
|
-
const t =
|
|
195
|
+
const C = d(() => {
|
|
196
|
+
const t = c.value.map((l) => ({
|
|
194
197
|
name: l.name,
|
|
195
198
|
color: l.color
|
|
196
|
-
})),
|
|
197
|
-
return { head: t, body:
|
|
198
|
-
}), R =
|
|
199
|
+
})), a = c.value.map((l) => l.value);
|
|
200
|
+
return { head: t, body: a };
|
|
201
|
+
}), R = d(() => {
|
|
199
202
|
const t = [
|
|
200
203
|
' <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>',
|
|
201
204
|
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 }),
|
|
202
205
|
"100%"
|
|
203
|
-
],
|
|
206
|
+
], a = C.value.head.map((s, b) => [
|
|
204
207
|
{
|
|
205
208
|
color: s.color,
|
|
206
209
|
name: s.name
|
|
@@ -219,60 +222,60 @@ const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"],
|
|
|
219
222
|
outline: e.value.table.td.outline
|
|
220
223
|
},
|
|
221
224
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
222
|
-
},
|
|
225
|
+
}, o = [
|
|
223
226
|
e.value.table.columnNames.series,
|
|
224
227
|
e.value.table.columnNames.value,
|
|
225
228
|
e.value.table.columnNames.percentage
|
|
226
229
|
];
|
|
227
230
|
return {
|
|
228
231
|
head: t,
|
|
229
|
-
body:
|
|
232
|
+
body: a,
|
|
230
233
|
config: l,
|
|
231
|
-
colNames:
|
|
234
|
+
colNames: o
|
|
232
235
|
};
|
|
233
236
|
});
|
|
234
|
-
function
|
|
235
|
-
|
|
236
|
-
const t = C.value.head.map((
|
|
237
|
-
|
|
238
|
-
], [C.value.body[s]], [isNaN(C.value.body[s] / y.value) ? "-" : C.value.body[s] / y.value * 100]]),
|
|
239
|
-
|
|
237
|
+
function se() {
|
|
238
|
+
Fe(() => {
|
|
239
|
+
const t = C.value.head.map((o, s) => [[
|
|
240
|
+
o.name
|
|
241
|
+
], [C.value.body[s]], [isNaN(C.value.body[s] / y.value) ? "-" : C.value.body[s] / y.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Ee(a);
|
|
242
|
+
Ge({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
240
243
|
});
|
|
241
244
|
}
|
|
242
245
|
const I = r(!1);
|
|
243
|
-
function
|
|
244
|
-
I.value = t,
|
|
246
|
+
function xe(t) {
|
|
247
|
+
I.value = t, q.value += 1;
|
|
245
248
|
}
|
|
246
|
-
function
|
|
249
|
+
function ue() {
|
|
247
250
|
k.value.showTable = !k.value.showTable;
|
|
248
251
|
}
|
|
249
|
-
function
|
|
252
|
+
function re() {
|
|
250
253
|
k.value.showTooltip = !k.value.showTooltip;
|
|
251
254
|
}
|
|
252
|
-
return
|
|
253
|
-
getData:
|
|
254
|
-
generatePdf:
|
|
255
|
-
generateCsv:
|
|
256
|
-
generateImage:
|
|
257
|
-
toggleTable:
|
|
258
|
-
toggleTooltip:
|
|
259
|
-
}), (t,
|
|
255
|
+
return fe({
|
|
256
|
+
getData: $e,
|
|
257
|
+
generatePdf: ee,
|
|
258
|
+
generateCsv: se,
|
|
259
|
+
generateImage: te,
|
|
260
|
+
toggleTable: ue,
|
|
261
|
+
toggleTooltip: re
|
|
262
|
+
}), (t, a) => (i(), m("div", {
|
|
260
263
|
ref_key: "ringsChart",
|
|
261
264
|
ref: F,
|
|
262
265
|
class: V(`vue-ui-rings ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
263
266
|
style: _(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
264
267
|
id: `rings_${L.value}`,
|
|
265
|
-
onMouseleave:
|
|
268
|
+
onMouseleave: a[3] || (a[3] = (l) => {
|
|
266
269
|
$.value = null, M.value = !1;
|
|
267
270
|
})
|
|
268
271
|
}, [
|
|
269
|
-
e.value.style.chart.title.text ? (
|
|
272
|
+
e.value.style.chart.title.text ? (i(), m("div", {
|
|
270
273
|
key: 0,
|
|
271
274
|
ref_key: "chartTitle",
|
|
272
|
-
ref:
|
|
275
|
+
ref: J,
|
|
273
276
|
style: _(`width:100%;background:${e.value.style.chart.backgroundColor}`)
|
|
274
277
|
}, [
|
|
275
|
-
X(
|
|
278
|
+
X(je, {
|
|
276
279
|
config: {
|
|
277
280
|
title: {
|
|
278
281
|
cy: "rings-div-title",
|
|
@@ -285,14 +288,14 @@ const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"],
|
|
|
285
288
|
}
|
|
286
289
|
}, null, 8, ["config"])
|
|
287
290
|
], 4)) : N("", !0),
|
|
288
|
-
e.value.userOptions.show && O.value ? (
|
|
291
|
+
e.value.userOptions.show && O.value ? (i(), B(qe, {
|
|
289
292
|
ref_key: "details",
|
|
290
|
-
ref:
|
|
291
|
-
key: `user_options_${
|
|
293
|
+
ref: be,
|
|
294
|
+
key: `user_options_${q.value}`,
|
|
292
295
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
293
296
|
color: e.value.style.chart.color,
|
|
294
|
-
isPrinting:
|
|
295
|
-
isImaging:
|
|
297
|
+
isPrinting: n(Q),
|
|
298
|
+
isImaging: n(Z),
|
|
296
299
|
uid: L.value,
|
|
297
300
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
298
301
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -304,13 +307,13 @@ const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"],
|
|
|
304
307
|
isFullscreen: I.value,
|
|
305
308
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
306
309
|
chartElement: F.value,
|
|
307
|
-
onToggleFullscreen:
|
|
308
|
-
onGeneratePdf:
|
|
309
|
-
onGenerateCsv:
|
|
310
|
-
onGenerateImage:
|
|
311
|
-
onToggleTable:
|
|
312
|
-
onToggleTooltip:
|
|
313
|
-
},
|
|
310
|
+
onToggleFullscreen: xe,
|
|
311
|
+
onGeneratePdf: n(ee),
|
|
312
|
+
onGenerateCsv: se,
|
|
313
|
+
onGenerateImage: n(te),
|
|
314
|
+
onToggleTable: ue,
|
|
315
|
+
onToggleTooltip: re
|
|
316
|
+
}, Le({ _: 2 }, [
|
|
314
317
|
t.$slots.optionTooltip ? {
|
|
315
318
|
name: "optionTooltip",
|
|
316
319
|
fn: p(() => [
|
|
@@ -348,84 +351,84 @@ const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"],
|
|
|
348
351
|
} : void 0,
|
|
349
352
|
t.$slots.optionFullscreen ? {
|
|
350
353
|
name: "optionFullscreen",
|
|
351
|
-
fn: p(({ toggleFullscreen: l, isFullscreen:
|
|
352
|
-
g(t.$slots, "optionFullscreen", D(
|
|
354
|
+
fn: p(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
355
|
+
g(t.$slots, "optionFullscreen", D(U({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
353
356
|
]),
|
|
354
357
|
key: "5"
|
|
355
358
|
} : void 0
|
|
356
359
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : N("", !0),
|
|
357
|
-
O.value ? (
|
|
360
|
+
O.value ? (i(), m("svg", {
|
|
358
361
|
key: 2,
|
|
359
|
-
xmlns:
|
|
362
|
+
xmlns: n(Ve),
|
|
360
363
|
class: V({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
361
364
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
362
365
|
style: _(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
363
366
|
}, [
|
|
364
|
-
(
|
|
367
|
+
(i(!0), m(ne, null, ie(c.value, (l, o) => (i(), m("radialGradient", {
|
|
365
368
|
cx: "50%",
|
|
366
369
|
cy: "30%",
|
|
367
370
|
r: "50%",
|
|
368
371
|
fx: "50%",
|
|
369
372
|
fy: "50%",
|
|
370
|
-
id: `gradient_${L.value}_${
|
|
373
|
+
id: `gradient_${L.value}_${o}`
|
|
371
374
|
}, [
|
|
372
375
|
w("stop", {
|
|
373
376
|
offset: "0%",
|
|
374
|
-
"stop-color": `${
|
|
375
|
-
}, null, 8,
|
|
377
|
+
"stop-color": `${n(Be)(l.color, 0.05)}${n(De)[100 - e.value.style.chart.layout.rings.gradient.intensity]}`
|
|
378
|
+
}, null, 8, st),
|
|
376
379
|
w("stop", {
|
|
377
380
|
offset: "100%",
|
|
378
381
|
"stop-color": l.color
|
|
379
|
-
}, null, 8,
|
|
380
|
-
], 8,
|
|
381
|
-
(
|
|
382
|
+
}, null, 8, ut)
|
|
383
|
+
], 8, ot))), 256)),
|
|
384
|
+
(i(!0), m(ne, null, ie(c.value, (l, o) => (i(), m("g", null, [
|
|
382
385
|
w("circle", {
|
|
383
386
|
class: V({
|
|
384
387
|
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
385
388
|
"vue-rings-item-onload": !P.value && e.value.useCssAnimation,
|
|
386
|
-
"vue-ui-rings-opacity": $.value !== null && $.value !==
|
|
389
|
+
"vue-ui-rings-opacity": $.value !== null && $.value !== o
|
|
387
390
|
}),
|
|
388
|
-
style: _(`animation-delay:${
|
|
391
|
+
style: _(`animation-delay:${o * 100}ms`),
|
|
389
392
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
390
393
|
cx: u.value.width / 2,
|
|
391
|
-
cy:
|
|
392
|
-
r:
|
|
394
|
+
cy: o === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * c.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (o + 1),
|
|
395
|
+
r: n(Y)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
393
396
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
394
|
-
}, null, 14,
|
|
397
|
+
}, null, 14, rt),
|
|
395
398
|
w("circle", {
|
|
396
399
|
class: V({
|
|
397
400
|
"vue-ui-rings-item": P.value && e.value.useCssAnimation,
|
|
398
401
|
"vue-rings-item-onload": !P.value && e.value.useCssAnimation,
|
|
399
402
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
400
|
-
"vue-ui-rings-blur": $.value !== null && $.value !==
|
|
403
|
+
"vue-ui-rings-blur": $.value !== null && $.value !== o
|
|
401
404
|
}),
|
|
402
|
-
style: _(`animation-delay:${
|
|
405
|
+
style: _(`animation-delay:${o * 100}ms`),
|
|
403
406
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
404
407
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
405
408
|
cx: u.value.width / 2,
|
|
406
|
-
cy:
|
|
407
|
-
r:
|
|
408
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${L.value}_${
|
|
409
|
-
}, null, 14,
|
|
409
|
+
cy: o === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * c.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (o + 1),
|
|
410
|
+
r: n(Y)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
411
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${L.value}_${o})` : l.color
|
|
412
|
+
}, null, 14, nt),
|
|
410
413
|
w("circle", {
|
|
411
414
|
"data-cy-trap": "",
|
|
412
415
|
stroke: "none",
|
|
413
416
|
cx: u.value.width / 2,
|
|
414
|
-
cy:
|
|
415
|
-
r:
|
|
417
|
+
cy: o === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * c.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (o + 1),
|
|
418
|
+
r: n(Y)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
416
419
|
fill: "transparent",
|
|
417
|
-
onMouseenter: (s) =>
|
|
418
|
-
onMouseleave:
|
|
420
|
+
onMouseenter: (s) => Te(o, l),
|
|
421
|
+
onMouseleave: a[0] || (a[0] = (s) => {
|
|
419
422
|
$.value = null, M.value = !1;
|
|
420
423
|
})
|
|
421
|
-
}, null, 40,
|
|
424
|
+
}, null, 40, it)
|
|
422
425
|
]))), 256)),
|
|
423
426
|
g(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
424
|
-
], 14,
|
|
425
|
-
t.$slots.watermark ? (
|
|
426
|
-
g(t.$slots, "watermark", D(
|
|
427
|
+
], 14, at)) : N("", !0),
|
|
428
|
+
t.$slots.watermark ? (i(), m("div", vt, [
|
|
429
|
+
g(t.$slots, "watermark", D(U({ isPrinting: n(Q) || n(Z) })), void 0, !0)
|
|
427
430
|
])) : N("", !0),
|
|
428
|
-
O.value ? N("", !0) : (
|
|
431
|
+
O.value ? N("", !0) : (i(), B(Ze, {
|
|
429
432
|
key: 4,
|
|
430
433
|
config: {
|
|
431
434
|
type: "rings",
|
|
@@ -439,46 +442,46 @@ const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"],
|
|
|
439
442
|
}, null, 8, ["config"])),
|
|
440
443
|
w("div", {
|
|
441
444
|
ref_key: "chartLegend",
|
|
442
|
-
ref:
|
|
445
|
+
ref: K
|
|
443
446
|
}, [
|
|
444
|
-
e.value.style.chart.legend.show ? (
|
|
447
|
+
e.value.style.chart.legend.show ? (i(), B(Qe, {
|
|
445
448
|
key: 0,
|
|
446
|
-
legendSet:
|
|
447
|
-
config:
|
|
448
|
-
onClickMarker:
|
|
449
|
+
legendSet: oe.value,
|
|
450
|
+
config: we.value,
|
|
451
|
+
onClickMarker: a[1] || (a[1] = ({ legend: l }) => G(l.uid))
|
|
449
452
|
}, {
|
|
450
|
-
item: p(({ legend: l, index:
|
|
453
|
+
item: p(({ legend: l, index: o }) => [
|
|
451
454
|
w("div", {
|
|
452
455
|
"data-cy-legend-item": "",
|
|
453
|
-
onClick: (s) =>
|
|
454
|
-
style: _(`opacity:${
|
|
456
|
+
onClick: (s) => G(l.uid),
|
|
457
|
+
style: _(`opacity:${v.value.includes(l.uid) ? 0.5 : 1}`)
|
|
455
458
|
}, [
|
|
456
|
-
|
|
459
|
+
ve(W(l.name) + ": " + W(n(he)(
|
|
457
460
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
458
461
|
l.value,
|
|
459
|
-
|
|
462
|
+
n(x)({
|
|
460
463
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
461
464
|
v: l.value,
|
|
462
465
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
463
466
|
r: e.value.style.chart.legend.roundingValue
|
|
464
467
|
}),
|
|
465
|
-
{ datapoint: l, seriesIndex:
|
|
468
|
+
{ datapoint: l, seriesIndex: o }
|
|
466
469
|
)) + " ", 1),
|
|
467
|
-
|
|
470
|
+
v.value.includes(l.uid) ? (i(), m("span", ht, " ( - % ) ")) : (i(), m("span", dt, " (" + W(isNaN(l.value / y.value) ? "-" : n(x)({
|
|
468
471
|
v: l.value / y.value * 100,
|
|
469
472
|
s: "%",
|
|
470
473
|
r: e.value.style.chart.legend.roundingPercentage
|
|
471
474
|
})) + ") ", 1))
|
|
472
|
-
], 12,
|
|
475
|
+
], 12, ct)
|
|
473
476
|
]),
|
|
474
477
|
_: 1
|
|
475
478
|
}, 8, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
476
479
|
key: 1,
|
|
477
|
-
legend:
|
|
480
|
+
legend: oe.value
|
|
478
481
|
}, void 0, !0)
|
|
479
482
|
], 512),
|
|
480
|
-
X(
|
|
481
|
-
show: k.value.showTooltip && M.value &&
|
|
483
|
+
X(Je, {
|
|
484
|
+
show: k.value.showTooltip && M.value && v.value.length < f.dataset.length,
|
|
482
485
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
483
486
|
color: e.value.style.chart.tooltip.color,
|
|
484
487
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -489,18 +492,18 @@ const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"],
|
|
|
489
492
|
position: e.value.style.chart.tooltip.position,
|
|
490
493
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
491
494
|
parent: F.value,
|
|
492
|
-
content:
|
|
495
|
+
content: E.value,
|
|
493
496
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
494
497
|
}, {
|
|
495
498
|
"tooltip-before": p(() => [
|
|
496
|
-
g(t.$slots, "tooltip-before", D(
|
|
499
|
+
g(t.$slots, "tooltip-before", D(U({ ...H.value })), void 0, !0)
|
|
497
500
|
]),
|
|
498
501
|
"tooltip-after": p(() => [
|
|
499
|
-
g(t.$slots, "tooltip-after", D(
|
|
502
|
+
g(t.$slots, "tooltip-after", D(U({ ...H.value })), void 0, !0)
|
|
500
503
|
]),
|
|
501
504
|
_: 3
|
|
502
505
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
503
|
-
O.value ? (
|
|
506
|
+
O.value ? (i(), B(et, {
|
|
504
507
|
key: 5,
|
|
505
508
|
hideDetails: "",
|
|
506
509
|
config: {
|
|
@@ -517,31 +520,31 @@ const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"],
|
|
|
517
520
|
}
|
|
518
521
|
}, {
|
|
519
522
|
content: p(() => [
|
|
520
|
-
X(
|
|
523
|
+
X(Ke, {
|
|
521
524
|
colNames: R.value.colNames,
|
|
522
525
|
head: R.value.head,
|
|
523
526
|
body: R.value.body,
|
|
524
527
|
config: R.value.config,
|
|
525
528
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
526
|
-
onClose:
|
|
529
|
+
onClose: a[2] || (a[2] = (l) => k.value.showTable = !1)
|
|
527
530
|
}, {
|
|
528
531
|
th: p(({ th: l }) => [
|
|
529
532
|
w("div", {
|
|
530
533
|
innerHTML: l,
|
|
531
534
|
style: { display: "flex", "align-items": "center" }
|
|
532
|
-
}, null, 8,
|
|
535
|
+
}, null, 8, pt)
|
|
533
536
|
]),
|
|
534
537
|
td: p(({ td: l }) => [
|
|
535
|
-
|
|
538
|
+
ve(W(l.name || l), 1)
|
|
536
539
|
]),
|
|
537
540
|
_: 1
|
|
538
541
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
539
542
|
]),
|
|
540
543
|
_: 1
|
|
541
544
|
}, 8, ["config"])) : N("", !0)
|
|
542
|
-
], 46,
|
|
545
|
+
], 46, lt));
|
|
543
546
|
}
|
|
544
|
-
},
|
|
547
|
+
}, Pt = /* @__PURE__ */ tt(gt, [["__scopeId", "data-v-30253e49"]]);
|
|
545
548
|
export {
|
|
546
|
-
|
|
549
|
+
Pt as default
|
|
547
550
|
};
|