vue-data-ui 2.3.74 → 2.3.76
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-DK6F5Fq3.cjs → Arrow-D7M4-bW7.cjs} +1 -1
- package/dist/{Arrow-CYCrAySW.js → Arrow-DY9RKUmG.js} +1 -1
- package/dist/{BaseIcon-DBHVtm3A.cjs → BaseIcon-DB7Apwv_.cjs} +1 -1
- package/dist/{BaseIcon-kBIAYqUO.js → BaseIcon-rwm-10Hu.js} +1 -1
- package/dist/{DataTable-BNFSPjhv.cjs → DataTable-CsNozyz7.cjs} +1 -1
- package/dist/{DataTable-CKdV-L0e.js → DataTable-e2fnfjXV.js} +2 -2
- package/dist/{Legend-Cj7T-DqJ.js → Legend-5cQ0xZjK.js} +1 -1
- package/dist/{Legend-Do2kcWFT.cjs → Legend-DgFd-O0m.cjs} +1 -1
- package/dist/{Shape-Bo8ZjViG.js → Shape-CiTElr_0.js} +1 -1
- package/dist/{Shape-DRDUAe_o.cjs → Shape-yPECDLiP.cjs} +1 -1
- package/dist/{Slicer-D8jHSP7U.cjs → Slicer-DaZgCKV7.cjs} +1 -1
- package/dist/{Slicer-4nGKvUYF.js → Slicer-DwBBu3kB.js} +2 -2
- package/dist/{Title-D5cATWsL.cjs → Title-3EduyW4p.cjs} +1 -1
- package/dist/{Title-DZjnxQdN.js → Title-gUz6GDA3.js} +1 -1
- package/dist/{Tooltip-B8yLaegk.cjs → Tooltip-DScSrYXJ.cjs} +1 -1
- package/dist/{Tooltip--kgFEVZs.js → Tooltip-DfSM1mNP.js} +1 -1
- package/dist/{index-D_32ZGWd.cjs → index-BTgtr0F8.cjs} +1 -1
- package/dist/{index-C8SH0f2u.js → index-CaV1s-yZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BvvH633N.cjs → useNestedProp-CisbRRo_.cjs} +1 -1
- package/dist/{useNestedProp-lS_T5lM3.js → useNestedProp-tWCzZrLx.js} +1 -1
- package/dist/{usePrinter-BouFNHWR.cjs → usePrinter-DzTaA1eh.cjs} +1 -1
- package/dist/{usePrinter-Dj50NAxo.js → usePrinter-rvJyT65A.js} +1 -1
- package/dist/{vue-data-ui-v_BbbLtJ.cjs → vue-data-ui-BGkWRPUY.cjs} +1 -1
- package/dist/{vue-data-ui-DoXqU7xC.js → vue-data-ui-BO89gTtq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CnoPOJHm.js → vue-ui-3d-bar-CcTMIHiB.js} +499 -486
- package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +19 -0
- package/dist/{vue-ui-accordion-Cka6b_Up.cjs → vue-ui-accordion-7e4Myhcg.cjs} +1 -1
- package/dist/{vue-ui-accordion-YHleIgkV.js → vue-ui-accordion-CpzGQ63y.js} +3 -3
- package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CENg8fDg.js → vue-ui-age-pyramid-D71ZLkVV.js} +182 -169
- package/dist/{vue-ui-annotator-VJOLUkqJ.js → vue-ui-annotator-B8Iu6cYt.js} +1 -1
- package/dist/{vue-ui-annotator-ByYg6QMs.cjs → vue-ui-annotator-BKQrweqm.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CHsGD3bx.js → vue-ui-candlestick-Bx4QVkY0.js} +295 -279
- package/dist/vue-ui-candlestick-DAc1FQ-i.cjs +2 -0
- package/dist/vue-ui-carousel-table-uFRqkghO.cjs +1 -0
- package/dist/{vue-ui-carousel-table-RAtX3VBu.js → vue-ui-carousel-table-xuQG6bcH.js} +146 -129
- package/dist/{vue-ui-chestnut-B5GQX0J_.js → vue-ui-chestnut-Bo6rDcU7.js} +215 -204
- package/dist/vue-ui-chestnut-DJkm72oD.cjs +6 -0
- package/dist/{vue-ui-cursor-DnZqLj21.cjs → vue-ui-cursor-BQbeuW-k.cjs} +1 -1
- package/dist/{vue-ui-cursor-CMm7XSSG.js → vue-ui-cursor-C0KOqEOq.js} +2 -2
- package/dist/{vue-ui-dashboard-DgEQJnLr.cjs → vue-ui-dashboard-0Hsjx-bO.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Ck_5L3eu.js → vue-ui-dashboard-BT71xS7P.js} +2 -2
- package/dist/{vue-ui-digits--ULH35um.js → vue-ui-digits-BRqpKYvD.js} +2 -2
- package/dist/{vue-ui-digits-UvwUdi6U.cjs → vue-ui-digits-C2ReH6w0.cjs} +1 -1
- package/dist/{vue-ui-donut-QQ1fWWvc.js → vue-ui-donut-NQW-3prf.js} +376 -362
- package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Cx8kBB_7.js → vue-ui-donut-evolution-jbXQQGTc.js} +270 -255
- package/dist/vue-ui-donut-v81suIOX.cjs +1 -0
- package/dist/vue-ui-dumbbell-DXQSg6wa.cjs +9 -0
- package/dist/{vue-ui-dumbbell-BYvwHpU8.js → vue-ui-dumbbell-Dyz8xdtC.js} +232 -213
- package/dist/vue-ui-flow-BL3JWW1m.js +481 -0
- package/dist/vue-ui-flow-UqSNwH9d.cjs +1 -0
- package/dist/vue-ui-galaxy-DTQWGvRH.cjs +1 -0
- package/dist/{vue-ui-galaxy-B0L57aec.js → vue-ui-galaxy-Dx9nsOuM.js} +175 -162
- package/dist/vue-ui-gauge-BUB7H0qA.cjs +1 -0
- package/dist/vue-ui-gauge-CLaKGi0-.js +500 -0
- package/dist/vue-ui-gizmo-Kitfqu0J.cjs +1 -0
- package/dist/{vue-ui-gizmo-D2RfM55X.js → vue-ui-gizmo-of-4s5HG.js} +66 -53
- package/dist/{vue-ui-heatmap-DKM0DH41.js → vue-ui-heatmap-BIzjOMXO.js} +157 -143
- package/dist/vue-ui-heatmap-DUw2350O.cjs +1 -0
- package/dist/vue-ui-kpi-By3YPwgo.js +98 -0
- package/dist/vue-ui-kpi-DyL2Hcz-.cjs +1 -0
- package/dist/{vue-ui-mini-loader-CLP19Txv.cjs → vue-ui-mini-loader-C048-8Kd.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-MywnWlYI.js → vue-ui-mini-loader-DnK3V2z2.js} +2 -2
- package/dist/{vue-ui-molecule-CLI9iTRE.js → vue-ui-molecule-BfhbIqa5.js} +177 -167
- package/dist/vue-ui-molecule-D-ahly6R.cjs +1 -0
- package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +1 -0
- package/dist/{vue-ui-mood-radar-O30wZo9a.js → vue-ui-mood-radar-DXxEKr3x.js} +172 -161
- package/dist/{vue-ui-nested-donuts-D8o4TqTt.js → vue-ui-nested-donuts-BdUdHFd-.js} +377 -364
- package/dist/vue-ui-nested-donuts-C7qM_FRw.cjs +17 -0
- package/dist/{vue-ui-onion-Hmcke6xB.js → vue-ui-onion-D0vF5jBt.js} +191 -177
- package/dist/vue-ui-onion-DX3gofXZ.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CyChE3NP.js → vue-ui-parallel-coordinate-plot-CTZY-pY8.js} +298 -284
- package/dist/vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs +8 -0
- package/dist/{vue-ui-quadrant-DimTQdAj.js → vue-ui-quadrant-ByY8GP3y.js} +347 -334
- package/dist/vue-ui-quadrant-CgApzie6.cjs +1 -0
- package/dist/{vue-ui-quick-chart-DxJvENid.js → vue-ui-quick-chart-DTxJ__7j.js} +483 -469
- package/dist/vue-ui-quick-chart-DWZEgUJF.cjs +15 -0
- package/dist/{vue-ui-radar-D_FieunT.js → vue-ui-radar-5UBmAU6W.js} +202 -189
- package/dist/vue-ui-radar-DEED0rTz.cjs +1 -0
- package/dist/{vue-ui-rating-BHW2Onru.cjs → vue-ui-rating-Ce_Ewqtl.cjs} +1 -1
- package/dist/{vue-ui-rating-DF1BpH4E.js → vue-ui-rating-Dr6jquxh.js} +2 -2
- package/dist/vue-ui-relation-circle-BU8i2miI.js +322 -0
- package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +1 -0
- package/dist/{vue-ui-rings-BqS-iece.js → vue-ui-rings-Ctl3Jywh.js} +203 -189
- package/dist/vue-ui-rings-OQ8a1Ruw.cjs +2 -0
- package/dist/vue-ui-scatter-B8StSjt8.cjs +1 -0
- package/dist/{vue-ui-scatter-Dns49Nht.js → vue-ui-scatter-BwJ_koWT.js} +284 -270
- package/dist/{vue-ui-screenshot-5Gsnd0Wr.js → vue-ui-screenshot-BS3L5vhN.js} +1 -1
- package/dist/{vue-ui-screenshot---q062Kd.cjs → vue-ui-screenshot-bAVk3EPl.cjs} +1 -1
- package/dist/{vue-ui-skeleton-fVPw-oIR.cjs → vue-ui-skeleton-CMQzFTs9.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B4eWLjH3.js → vue-ui-skeleton-CvFX_ExX.js} +2 -2
- package/dist/{vue-ui-smiley-B8Tyunn3.js → vue-ui-smiley-CGYZpNt9.js} +2 -2
- package/dist/{vue-ui-smiley-YfHmv0rQ.cjs → vue-ui-smiley-sF8QIso1.cjs} +1 -1
- package/dist/vue-ui-spark-trend-B4XSSKl9.js +263 -0
- package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +1 -0
- package/dist/{vue-ui-sparkbar-9DBvdYn7.js → vue-ui-sparkbar-BbsJGDMZ.js} +95 -87
- package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +1 -0
- package/dist/vue-ui-sparkgauge-BKyQoI7C.cjs +1 -0
- package/dist/vue-ui-sparkgauge-D4w_i_QJ.js +178 -0
- package/dist/{vue-ui-sparkhistogram-BBUVmco4.js → vue-ui-sparkhistogram-CYybrW-6.js} +79 -68
- package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +1 -0
- package/dist/vue-ui-sparkline-CDowaDRS.cjs +1 -0
- package/dist/{vue-ui-sparkline-CeqNV6Re.js → vue-ui-sparkline-DjN1SVdO.js} +142 -123
- package/dist/{vue-ui-sparkstackbar-C3GMC1eW.js → vue-ui-sparkstackbar-BLMhJxaN.js} +120 -104
- package/dist/vue-ui-sparkstackbar-BZ2bESBi.cjs +1 -0
- package/dist/{vue-ui-stackbar-DyGPrFxi.js → vue-ui-stackbar-BTKOHUYc.js} +235 -222
- package/dist/vue-ui-stackbar-DRHaJFR8.cjs +6 -0
- package/dist/vue-ui-strip-plot-DxQxFbWg.cjs +1 -0
- package/dist/{vue-ui-strip-plot-y1AnVJmq.js → vue-ui-strip-plot-o6GTsGAT.js} +246 -232
- package/dist/{vue-ui-table-xWvAQS-s.cjs → vue-ui-table-BFIj1Rgh.cjs} +1 -1
- package/dist/{vue-ui-table-B4kfykAO.js → vue-ui-table-CnquiTpr.js} +1 -1
- package/dist/vue-ui-table-heatmap-CCGK12Fa.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-YZRSzwRM.js → vue-ui-table-heatmap-CZRIwv-Q.js} +106 -95
- package/dist/{vue-ui-table-sparkline-C0v2r4Kf.js → vue-ui-table-sparkline-B3zEeq6Z.js} +151 -138
- package/dist/vue-ui-table-sparkline-DYmgfHz4.cjs +1 -0
- package/dist/{vue-ui-thermometer-D5qurIy7.js → vue-ui-thermometer-BopiohUh.js} +116 -104
- package/dist/vue-ui-thermometer-CzPRBt6c.cjs +1 -0
- package/dist/vue-ui-timer-Bonw69Lt.cjs +64 -0
- package/dist/{vue-ui-timer-VWjovnKL.js → vue-ui-timer-C7WkW8hK.js} +191 -176
- package/dist/{vue-ui-tiremarks-jH6cdQOJ.js → vue-ui-tiremarks-BurRtFv4.js} +115 -103
- package/dist/vue-ui-tiremarks-DkIGfq8t.cjs +1 -0
- package/dist/vue-ui-treemap-CalhJmnp.cjs +1 -0
- package/dist/{vue-ui-treemap-BCc5sQLB.js → vue-ui-treemap-DWy4voIr.js} +251 -237
- package/dist/{vue-ui-vertical-bar-2In_g5iC.js → vue-ui-vertical-bar-CJW1YhtY.js} +314 -299
- package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +4 -0
- package/dist/{vue-ui-waffle-OzU830VX.js → vue-ui-waffle-DB7X6nTS.js} +285 -265
- package/dist/vue-ui-waffle-faQMBYNx.cjs +1 -0
- package/dist/vue-ui-wheel-BzjbGP6a.cjs +1 -0
- package/dist/vue-ui-wheel-CryKap2E.js +255 -0
- package/dist/vue-ui-word-cloud-COqUkvei.js +512 -0
- package/dist/vue-ui-word-cloud-DJN9I4q4.cjs +1 -0
- package/dist/vue-ui-xy-BmA0tspd.cjs +3 -0
- package/dist/{vue-ui-xy-DuJtYXKl.js → vue-ui-xy-b1Z_HPsx.js} +300 -274
- package/dist/{vue-ui-xy-canvas-CKibMJHh.js → vue-ui-xy-canvas-BgbLnY5B.js} +345 -327
- package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +9 -0
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CwCEoPX-.cjs +0 -19
- package/dist/vue-ui-age-pyramid-GqCNpd_h.cjs +0 -1
- package/dist/vue-ui-candlestick-TdNVq_FX.cjs +0 -2
- package/dist/vue-ui-carousel-table-yXUSFk2u.cjs +0 -1
- package/dist/vue-ui-chestnut-EJj-dQSY.cjs +0 -6
- package/dist/vue-ui-donut-BqUBysA_.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BXtEnop4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CjIh7KTm.cjs +0 -9
- package/dist/vue-ui-flow-hp0Hpuhn.js +0 -469
- package/dist/vue-ui-flow-u29zqSQj.cjs +0 -1
- package/dist/vue-ui-galaxy-DE1HbBi-.cjs +0 -1
- package/dist/vue-ui-gauge-B_IZrsfj.cjs +0 -1
- package/dist/vue-ui-gauge-CPyyn7cL.js +0 -488
- package/dist/vue-ui-gizmo-DR4gacOL.cjs +0 -1
- package/dist/vue-ui-heatmap-DMB_eUpA.cjs +0 -1
- package/dist/vue-ui-kpi-BAxAY13T.js +0 -84
- package/dist/vue-ui-kpi-BD21xshi.cjs +0 -1
- package/dist/vue-ui-molecule-BNsWckH-.cjs +0 -1
- package/dist/vue-ui-mood-radar-BsWE1f8R.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CYyUtXs2.cjs +0 -17
- package/dist/vue-ui-onion-D7TXJu5w.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs +0 -8
- package/dist/vue-ui-quadrant-BPDTvxlT.cjs +0 -1
- package/dist/vue-ui-quick-chart-C_-ut0if.cjs +0 -15
- package/dist/vue-ui-radar-C5Kq19hg.cjs +0 -1
- package/dist/vue-ui-relation-circle-4kIYttRI.js +0 -310
- package/dist/vue-ui-relation-circle-DHMHHsqY.cjs +0 -1
- package/dist/vue-ui-rings-BqPS8NKl.cjs +0 -2
- package/dist/vue-ui-scatter-BLVcdf3d.cjs +0 -1
- package/dist/vue-ui-spark-trend-Dpv6am0Z.cjs +0 -1
- package/dist/vue-ui-spark-trend-Em9OqYyG.js +0 -251
- package/dist/vue-ui-sparkbar-BuSuwQYl.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BN5feBzp.js +0 -167
- package/dist/vue-ui-sparkgauge-DKtUZMv1.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BmuusW02.cjs +0 -1
- package/dist/vue-ui-sparkline-Blzv-tIQ.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-D__WDEMv.cjs +0 -1
- package/dist/vue-ui-stackbar-DFqJ5K_q.cjs +0 -6
- package/dist/vue-ui-strip-plot-z9fjJ6Dj.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGKecjtm.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CHFZG3Tg.cjs +0 -1
- package/dist/vue-ui-thermometer-DoOxxVW1.cjs +0 -1
- package/dist/vue-ui-timer-D63zHe-I.cjs +0 -64
- package/dist/vue-ui-tiremarks-Cp8YEmXh.cjs +0 -1
- package/dist/vue-ui-treemap-DJrdEFW5.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +0 -4
- package/dist/vue-ui-waffle-A2gmRbq0.cjs +0 -1
- package/dist/vue-ui-wheel-C9QXzWu1.js +0 -242
- package/dist/vue-ui-wheel-DGSh9VKq.cjs +0 -1
- package/dist/vue-ui-word-cloud-C2ZaVlfO.js +0 -498
- package/dist/vue-ui-word-cloud-DPFB1MYk.cjs +0 -1
- package/dist/vue-ui-xy-C-2-aijE.cjs +0 -3
- package/dist/vue-ui-xy-canvas-D7wf3xab.cjs +0 -9
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref 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 u, computed as d, watch as Fe, onMounted as Ie, onBeforeUnmount as Oe, openBlock as n, createElementBlock as m, normalizeClass as B, normalizeStyle as x, createBlock as N, createCommentVNode as P, unref as i, createSlots as Me, withCtx as p, renderSlot as f, normalizeProps as D, guardReactiveProps as U, Fragment as de, renderList as he, createElementVNode as w, createTextVNode as pe, toDisplayString as W, createVNode as ze, nextTick as Ae } from "vue";
|
|
2
|
+
import { u as Re, c as ge, t as Ve, a as Be, p as T, o as De, e as X, g as Ue, b as We, F as Ee, d as fe, f as _, X as Ge, v as He, w as Xe, s as j, i as ye, x as je, y as Ye, q as qe, r as Je } from "./index-CaV1s-yZ.js";
|
|
3
|
+
import { t as Ke, u as Qe } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Ze } from "./Title-gUz6GDA3.js";
|
|
5
|
+
import { u as et, U as tt } from "./usePrinter-rvJyT65A.js";
|
|
6
|
+
import { _ as lt } from "./Tooltip-DfSM1mNP.js";
|
|
7
|
+
import { D as at } from "./DataTable-e2fnfjXV.js";
|
|
8
|
+
import { L as ot } from "./Legend-5cQ0xZjK.js";
|
|
9
|
+
import st from "./vue-ui-skeleton-CvFX_ExX.js";
|
|
10
|
+
import ut from "./vue-ui-accordion-CpzGQ63y.js";
|
|
11
|
+
import { u as me } from "./useNestedProp-tWCzZrLx.js";
|
|
12
|
+
import { _ as rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const nt = ["id"], it = ["xmlns", "viewBox"], vt = ["id"], ct = ["stop-color"], dt = ["stop-color"], ht = ["stroke", "cx", "cy", "r", "fill"], pt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], gt = ["cx", "cy", "r", "onMouseenter"], ft = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, yt = ["onClick"], mt = { key: 0 }, bt = { key: 1 }, kt = ["innerHTML"], Ct = {
|
|
17
17
|
__name: "vue-ui-rings",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,33 +30,44 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
setup(be, { expose: ke, emit: Ce }) {
|
|
34
|
+
const g = be, { vue_ui_rings: we } = Re(), L = u(!1), M = d(() => !!g.dataset && g.dataset.length), S = u(ge()), $e = u(null), z = u(!1), E = u(""), $ = u(null), Y = u(0), F = u(null), q = u(null), J = u(null), K = u(0), Q = u(0), Z = u(0), e = d({
|
|
35
|
+
get: () => ee(),
|
|
36
|
+
set: (t) => t
|
|
37
|
+
});
|
|
38
|
+
function ee() {
|
|
39
|
+
const t = me({
|
|
40
|
+
userConfig: g.config,
|
|
41
|
+
defaultConfig: we
|
|
38
42
|
});
|
|
39
43
|
return t.theme ? {
|
|
40
|
-
...
|
|
41
|
-
userConfig:
|
|
44
|
+
...me({
|
|
45
|
+
userConfig: Ve.vue_ui_rings[t.theme] || g.config,
|
|
42
46
|
defaultConfig: t
|
|
43
47
|
}),
|
|
44
|
-
customPalette:
|
|
48
|
+
customPalette: Be[t.theme] || T
|
|
45
49
|
} : t;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
}
|
|
51
|
+
Fe(() => g.config, (t) => {
|
|
52
|
+
e.value = ee(), te(), K.value += 1, Q.value += 1, Z.value += 1;
|
|
53
|
+
}, { deep: !0 });
|
|
54
|
+
const A = u(null);
|
|
55
|
+
Ie(() => {
|
|
56
|
+
te();
|
|
57
|
+
});
|
|
58
|
+
function te() {
|
|
59
|
+
if (De(g.dataset) ? X({
|
|
49
60
|
componentName: "VueUiRings",
|
|
50
61
|
type: "dataset"
|
|
51
|
-
}) :
|
|
52
|
-
t.values.length ||
|
|
62
|
+
}) : g.dataset.forEach((t, a) => {
|
|
63
|
+
t.values.length || X({
|
|
53
64
|
componentName: "VueUiRings",
|
|
54
65
|
type: "dataset"
|
|
55
|
-
}),
|
|
66
|
+
}), Ue({
|
|
56
67
|
datasetObject: t,
|
|
57
68
|
requiredAttributes: ["name", "values"]
|
|
58
69
|
}).forEach((l) => {
|
|
59
|
-
|
|
70
|
+
X({
|
|
60
71
|
componentName: "VueUiRings",
|
|
61
72
|
type: "datasetSerieAttribute",
|
|
62
73
|
property: l,
|
|
@@ -64,77 +75,78 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
64
75
|
});
|
|
65
76
|
});
|
|
66
77
|
}), e.value.responsive) {
|
|
67
|
-
const t =
|
|
68
|
-
const { width: a, height: l } =
|
|
78
|
+
const t = Ke(() => {
|
|
79
|
+
const { width: a, height: l } = Qe({
|
|
69
80
|
chart: F.value,
|
|
70
|
-
title: e.value.style.chart.title.text ?
|
|
71
|
-
legend: e.value.style.chart.legend.show ?
|
|
81
|
+
title: e.value.style.chart.title.text ? q.value : null,
|
|
82
|
+
legend: e.value.style.chart.legend.show ? J.value : null
|
|
72
83
|
});
|
|
73
|
-
|
|
84
|
+
r.value.width = a, r.value.height = l;
|
|
74
85
|
});
|
|
75
|
-
|
|
86
|
+
A.value = new ResizeObserver(t), A.value.observe(F.value.parentNode);
|
|
76
87
|
}
|
|
77
88
|
setTimeout(() => {
|
|
78
|
-
|
|
89
|
+
L.value = !0;
|
|
79
90
|
}, 600);
|
|
80
|
-
}
|
|
81
|
-
|
|
91
|
+
}
|
|
92
|
+
Oe(() => {
|
|
93
|
+
A.value && A.value.disconnect();
|
|
82
94
|
});
|
|
83
|
-
const { isPrinting:
|
|
84
|
-
elementId: `rings_${
|
|
95
|
+
const { isPrinting: le, isImaging: ae, generatePdf: oe, generateImage: se } = et({
|
|
96
|
+
elementId: `rings_${S.value}`,
|
|
85
97
|
fileName: e.value.style.chart.title.text || "vue-ui-rings"
|
|
86
|
-
}),
|
|
98
|
+
}), ue = d(() => We(e.value.customPalette)), k = u({
|
|
87
99
|
showTable: e.value.table.show,
|
|
88
100
|
showTooltip: e.value.style.chart.tooltip.show
|
|
89
|
-
}),
|
|
101
|
+
}), r = u({
|
|
90
102
|
height: 360,
|
|
91
103
|
width: 360
|
|
92
|
-
}),
|
|
104
|
+
}), Te = d(() => Math.min(r.value.height, r.value.width)), v = u([]);
|
|
93
105
|
function G(t) {
|
|
94
|
-
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.push(t),
|
|
106
|
+
v.value.includes(t) ? v.value = v.value.filter((a) => a !== t) : v.value.push(t), Ce("selectLegend", c.value.map((a) => ({
|
|
95
107
|
name: a.name,
|
|
96
108
|
color: a.color,
|
|
97
109
|
value: a.value
|
|
98
110
|
})));
|
|
99
111
|
}
|
|
100
|
-
const
|
|
101
|
-
...
|
|
112
|
+
const _e = d(() => Math.max(
|
|
113
|
+
...R.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t)
|
|
102
114
|
));
|
|
103
|
-
function
|
|
104
|
-
return t /
|
|
115
|
+
function re(t) {
|
|
116
|
+
return t / _e.value;
|
|
105
117
|
}
|
|
106
|
-
const
|
|
107
|
-
const s =
|
|
118
|
+
const R = d(() => g.dataset.map(({ values: t, name: a, color: l = null }, o) => {
|
|
119
|
+
const s = Ee(t).reduce((b, O) => b + O, 0);
|
|
108
120
|
return {
|
|
109
121
|
name: a,
|
|
110
|
-
color: l ||
|
|
122
|
+
color: l || fe(l) || ue.value[o] || T[o] || T[o % T.length],
|
|
111
123
|
value: s,
|
|
112
|
-
proportion: s /
|
|
113
|
-
uid:
|
|
124
|
+
proportion: s / g.dataset.map((b) => (b.values || []).reduce((O, Se) => O + Se, 0)).reduce((b, O) => b + O, 0),
|
|
125
|
+
uid: ge()
|
|
114
126
|
};
|
|
115
|
-
})),
|
|
127
|
+
})), ne = d(() => R.value.map((t) => ({
|
|
116
128
|
...t,
|
|
117
129
|
shape: "circle",
|
|
118
130
|
opacity: v.value.includes(t.uid) ? 0.5 : 1,
|
|
119
131
|
segregate: () => G(t.uid),
|
|
120
132
|
isSegregated: v.value.includes(t.uid)
|
|
121
|
-
})).toSorted((t, a) => a.value - t.value)),
|
|
133
|
+
})).toSorted((t, a) => a.value - t.value)), xe = d(() => ({
|
|
122
134
|
cy: "rings-div-legend",
|
|
123
135
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
124
136
|
color: e.value.style.chart.legend.color,
|
|
125
137
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
126
138
|
paddingBottom: 12,
|
|
127
139
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
128
|
-
})), y = d(() =>
|
|
140
|
+
})), y = d(() => R.value.filter((t) => !v.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), c = d(() => R.value.filter((t) => !v.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o }, s) => ({
|
|
129
141
|
uid: o,
|
|
130
142
|
name: t,
|
|
131
|
-
color: l ||
|
|
143
|
+
color: l || fe(l) || ue.value[s] || T[s] || T[s % T.length],
|
|
132
144
|
value: a,
|
|
133
|
-
proportion:
|
|
145
|
+
proportion: re(a),
|
|
134
146
|
percentage: a / y.value * 100,
|
|
135
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth *
|
|
147
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * re(a)
|
|
136
148
|
})).toSorted((t, a) => a.value - t.value));
|
|
137
|
-
function
|
|
149
|
+
function Ne() {
|
|
138
150
|
return c.value.map(
|
|
139
151
|
({ name: t, color: a, value: l, absoluteValues: o, percentage: s }) => ({
|
|
140
152
|
name: t,
|
|
@@ -145,9 +157,9 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
145
157
|
})
|
|
146
158
|
);
|
|
147
159
|
}
|
|
148
|
-
const h = d(() =>
|
|
149
|
-
function
|
|
150
|
-
if (v.value.length ===
|
|
160
|
+
const h = d(() => Te.value - e.value.style.chart.layout.rings.strokeWidth * 2), H = u(null);
|
|
161
|
+
function Pe(t, a) {
|
|
162
|
+
if (v.value.length === g.dataset.length) return;
|
|
151
163
|
H.value = {
|
|
152
164
|
datapoint: a,
|
|
153
165
|
seriesIndex: t,
|
|
@@ -155,7 +167,7 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
155
167
|
config: e.value
|
|
156
168
|
}, $.value = t;
|
|
157
169
|
const l = c.value[t], o = e.value.style.chart.tooltip.customFormat;
|
|
158
|
-
if (
|
|
170
|
+
if (je(o) && Ye(() => o({
|
|
159
171
|
seriesIndex: t,
|
|
160
172
|
datapoint: a,
|
|
161
173
|
series: c.value,
|
|
@@ -169,10 +181,10 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
169
181
|
});
|
|
170
182
|
else {
|
|
171
183
|
let s = "";
|
|
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>${
|
|
184
|
+
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>${ye(
|
|
173
185
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
174
186
|
l.value,
|
|
175
|
-
|
|
187
|
+
_({
|
|
176
188
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
177
189
|
v: l.value,
|
|
178
190
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -180,17 +192,17 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
180
192
|
}),
|
|
181
193
|
{ datapoint: a, seriesIndex: t }
|
|
182
194
|
)}
|
|
183
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${
|
|
195
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? s += `<span>(${_({
|
|
184
196
|
v: l.value / y.value * 100,
|
|
185
197
|
s: "%",
|
|
186
198
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
187
|
-
})})</span></div>` : s += `<b>${
|
|
199
|
+
})})</span></div>` : s += `<b>${_({
|
|
188
200
|
v: l.value / y.value * 100,
|
|
189
201
|
s: "%",
|
|
190
202
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
191
203
|
})}</b></div>`), E.value = s;
|
|
192
204
|
}
|
|
193
|
-
|
|
205
|
+
z.value = !0;
|
|
194
206
|
}
|
|
195
207
|
const C = d(() => {
|
|
196
208
|
const t = c.value.map((l) => ({
|
|
@@ -198,17 +210,17 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
198
210
|
color: l.color
|
|
199
211
|
})), a = c.value.map((l) => l.value);
|
|
200
212
|
return { head: t, body: a };
|
|
201
|
-
}),
|
|
213
|
+
}), V = d(() => {
|
|
202
214
|
const t = [
|
|
203
215
|
' <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>',
|
|
204
|
-
|
|
216
|
+
_({ 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 }),
|
|
205
217
|
"100%"
|
|
206
218
|
], a = C.value.head.map((s, b) => [
|
|
207
219
|
{
|
|
208
220
|
color: s.color,
|
|
209
221
|
name: s.name
|
|
210
222
|
},
|
|
211
|
-
|
|
223
|
+
_({ 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 }),
|
|
212
224
|
isNaN(C.value.body[b] / y.value) ? "-" : (C.value.body[b] / y.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
213
225
|
]), l = {
|
|
214
226
|
th: {
|
|
@@ -234,48 +246,49 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
234
246
|
colNames: o
|
|
235
247
|
};
|
|
236
248
|
});
|
|
237
|
-
function
|
|
238
|
-
|
|
249
|
+
function ie() {
|
|
250
|
+
Ae(() => {
|
|
239
251
|
const t = C.value.head.map((o, s) => [[
|
|
240
252
|
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 =
|
|
242
|
-
|
|
253
|
+
], [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 = qe(a);
|
|
254
|
+
Je({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
243
255
|
});
|
|
244
256
|
}
|
|
245
|
-
const I =
|
|
246
|
-
function
|
|
247
|
-
I.value = t,
|
|
257
|
+
const I = u(!1);
|
|
258
|
+
function Le(t) {
|
|
259
|
+
I.value = t, Y.value += 1;
|
|
248
260
|
}
|
|
249
|
-
function
|
|
261
|
+
function ve() {
|
|
250
262
|
k.value.showTable = !k.value.showTable;
|
|
251
263
|
}
|
|
252
|
-
function
|
|
264
|
+
function ce() {
|
|
253
265
|
k.value.showTooltip = !k.value.showTooltip;
|
|
254
266
|
}
|
|
255
|
-
return
|
|
256
|
-
getData:
|
|
257
|
-
generatePdf:
|
|
258
|
-
generateCsv:
|
|
259
|
-
generateImage:
|
|
260
|
-
toggleTable:
|
|
261
|
-
toggleTooltip:
|
|
262
|
-
}), (t, a) => (
|
|
267
|
+
return ke({
|
|
268
|
+
getData: Ne,
|
|
269
|
+
generatePdf: oe,
|
|
270
|
+
generateCsv: ie,
|
|
271
|
+
generateImage: se,
|
|
272
|
+
toggleTable: ve,
|
|
273
|
+
toggleTooltip: ce
|
|
274
|
+
}), (t, a) => (n(), m("div", {
|
|
263
275
|
ref_key: "ringsChart",
|
|
264
276
|
ref: F,
|
|
265
|
-
class:
|
|
266
|
-
style:
|
|
267
|
-
id: `rings_${
|
|
277
|
+
class: B(`vue-ui-rings ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
278
|
+
style: x(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
279
|
+
id: `rings_${S.value}`,
|
|
268
280
|
onMouseleave: a[3] || (a[3] = (l) => {
|
|
269
|
-
$.value = null,
|
|
281
|
+
$.value = null, z.value = !1;
|
|
270
282
|
})
|
|
271
283
|
}, [
|
|
272
|
-
e.value.style.chart.title.text ? (
|
|
284
|
+
e.value.style.chart.title.text ? (n(), m("div", {
|
|
273
285
|
key: 0,
|
|
274
286
|
ref_key: "chartTitle",
|
|
275
|
-
ref:
|
|
276
|
-
style:
|
|
287
|
+
ref: q,
|
|
288
|
+
style: x(`width:100%;background:${e.value.style.chart.backgroundColor}`)
|
|
277
289
|
}, [
|
|
278
|
-
|
|
290
|
+
(n(), N(Ze, {
|
|
291
|
+
key: `title_${K.value}`,
|
|
279
292
|
config: {
|
|
280
293
|
title: {
|
|
281
294
|
cy: "rings-div-title",
|
|
@@ -286,17 +299,17 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
286
299
|
...e.value.style.chart.title.subtitle
|
|
287
300
|
}
|
|
288
301
|
}
|
|
289
|
-
}, null, 8, ["config"])
|
|
290
|
-
], 4)) :
|
|
291
|
-
e.value.userOptions.show &&
|
|
302
|
+
}, null, 8, ["config"]))
|
|
303
|
+
], 4)) : P("", !0),
|
|
304
|
+
e.value.userOptions.show && M.value ? (n(), N(tt, {
|
|
292
305
|
ref_key: "details",
|
|
293
|
-
ref:
|
|
294
|
-
key: `user_options_${
|
|
306
|
+
ref: $e,
|
|
307
|
+
key: `user_options_${Y.value}`,
|
|
295
308
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
296
309
|
color: e.value.style.chart.color,
|
|
297
|
-
isPrinting:
|
|
298
|
-
isImaging:
|
|
299
|
-
uid:
|
|
310
|
+
isPrinting: i(le),
|
|
311
|
+
isImaging: i(ae),
|
|
312
|
+
uid: S.value,
|
|
300
313
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
301
314
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
302
315
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -307,128 +320,128 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
307
320
|
isFullscreen: I.value,
|
|
308
321
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
309
322
|
chartElement: F.value,
|
|
310
|
-
onToggleFullscreen:
|
|
311
|
-
onGeneratePdf:
|
|
312
|
-
onGenerateCsv:
|
|
313
|
-
onGenerateImage:
|
|
314
|
-
onToggleTable:
|
|
315
|
-
onToggleTooltip:
|
|
316
|
-
},
|
|
323
|
+
onToggleFullscreen: Le,
|
|
324
|
+
onGeneratePdf: i(oe),
|
|
325
|
+
onGenerateCsv: ie,
|
|
326
|
+
onGenerateImage: i(se),
|
|
327
|
+
onToggleTable: ve,
|
|
328
|
+
onToggleTooltip: ce
|
|
329
|
+
}, Me({ _: 2 }, [
|
|
317
330
|
t.$slots.optionTooltip ? {
|
|
318
331
|
name: "optionTooltip",
|
|
319
332
|
fn: p(() => [
|
|
320
|
-
|
|
333
|
+
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
321
334
|
]),
|
|
322
335
|
key: "0"
|
|
323
336
|
} : void 0,
|
|
324
337
|
t.$slots.optionPdf ? {
|
|
325
338
|
name: "optionPdf",
|
|
326
339
|
fn: p(() => [
|
|
327
|
-
|
|
340
|
+
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
328
341
|
]),
|
|
329
342
|
key: "1"
|
|
330
343
|
} : void 0,
|
|
331
344
|
t.$slots.optionCsv ? {
|
|
332
345
|
name: "optionCsv",
|
|
333
346
|
fn: p(() => [
|
|
334
|
-
|
|
347
|
+
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
335
348
|
]),
|
|
336
349
|
key: "2"
|
|
337
350
|
} : void 0,
|
|
338
351
|
t.$slots.optionImg ? {
|
|
339
352
|
name: "optionImg",
|
|
340
353
|
fn: p(() => [
|
|
341
|
-
|
|
354
|
+
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
342
355
|
]),
|
|
343
356
|
key: "3"
|
|
344
357
|
} : void 0,
|
|
345
358
|
t.$slots.optionTable ? {
|
|
346
359
|
name: "optionTable",
|
|
347
360
|
fn: p(() => [
|
|
348
|
-
|
|
361
|
+
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
349
362
|
]),
|
|
350
363
|
key: "4"
|
|
351
364
|
} : void 0,
|
|
352
365
|
t.$slots.optionFullscreen ? {
|
|
353
366
|
name: "optionFullscreen",
|
|
354
367
|
fn: p(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
355
|
-
|
|
368
|
+
f(t.$slots, "optionFullscreen", D(U({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
356
369
|
]),
|
|
357
370
|
key: "5"
|
|
358
371
|
} : void 0
|
|
359
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
360
|
-
|
|
372
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : P("", !0),
|
|
373
|
+
M.value ? (n(), m("svg", {
|
|
361
374
|
key: 2,
|
|
362
|
-
xmlns:
|
|
363
|
-
class:
|
|
364
|
-
viewBox: `0 0 ${
|
|
365
|
-
style:
|
|
375
|
+
xmlns: i(Ge),
|
|
376
|
+
class: B({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
|
|
377
|
+
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
378
|
+
style: x(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
366
379
|
}, [
|
|
367
|
-
(
|
|
380
|
+
(n(!0), m(de, null, he(c.value, (l, o) => (n(), m("radialGradient", {
|
|
368
381
|
cx: "50%",
|
|
369
382
|
cy: "30%",
|
|
370
383
|
r: "50%",
|
|
371
384
|
fx: "50%",
|
|
372
385
|
fy: "50%",
|
|
373
|
-
id: `gradient_${
|
|
386
|
+
id: `gradient_${S.value}_${o}`
|
|
374
387
|
}, [
|
|
375
388
|
w("stop", {
|
|
376
389
|
offset: "0%",
|
|
377
|
-
"stop-color": `${
|
|
378
|
-
}, null, 8,
|
|
390
|
+
"stop-color": `${i(He)(l.color, 0.05)}${i(Xe)[100 - e.value.style.chart.layout.rings.gradient.intensity]}`
|
|
391
|
+
}, null, 8, ct),
|
|
379
392
|
w("stop", {
|
|
380
393
|
offset: "100%",
|
|
381
394
|
"stop-color": l.color
|
|
382
|
-
}, null, 8,
|
|
383
|
-
], 8,
|
|
384
|
-
(
|
|
395
|
+
}, null, 8, dt)
|
|
396
|
+
], 8, vt))), 256)),
|
|
397
|
+
(n(!0), m(de, null, he(c.value, (l, o) => (n(), m("g", null, [
|
|
385
398
|
w("circle", {
|
|
386
|
-
class:
|
|
387
|
-
"vue-ui-rings-item":
|
|
388
|
-
"vue-rings-item-onload": !
|
|
399
|
+
class: B({
|
|
400
|
+
"vue-ui-rings-item": L.value && e.value.useCssAnimation,
|
|
401
|
+
"vue-rings-item-onload": !L.value && e.value.useCssAnimation,
|
|
389
402
|
"vue-ui-rings-opacity": $.value !== null && $.value !== o
|
|
390
403
|
}),
|
|
391
|
-
style:
|
|
404
|
+
style: x(`animation-delay:${o * 100}ms`),
|
|
392
405
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
393
|
-
cx:
|
|
394
|
-
cy: o === 0 ?
|
|
395
|
-
r:
|
|
406
|
+
cx: r.value.width / 2,
|
|
407
|
+
cy: o === 0 ? r.value.height / 2 : r.value.height / 2 + h.value * c.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (o + 1),
|
|
408
|
+
r: i(j)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
396
409
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
397
|
-
}, null, 14,
|
|
410
|
+
}, null, 14, ht),
|
|
398
411
|
w("circle", {
|
|
399
|
-
class:
|
|
400
|
-
"vue-ui-rings-item":
|
|
401
|
-
"vue-rings-item-onload": !
|
|
412
|
+
class: B({
|
|
413
|
+
"vue-ui-rings-item": L.value && e.value.useCssAnimation,
|
|
414
|
+
"vue-rings-item-onload": !L.value && e.value.useCssAnimation,
|
|
402
415
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
403
416
|
"vue-ui-rings-blur": $.value !== null && $.value !== o
|
|
404
417
|
}),
|
|
405
|
-
style:
|
|
418
|
+
style: x(`animation-delay:${o * 100}ms`),
|
|
406
419
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
407
420
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
408
|
-
cx:
|
|
409
|
-
cy: o === 0 ?
|
|
410
|
-
r:
|
|
411
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${
|
|
412
|
-
}, null, 14,
|
|
421
|
+
cx: r.value.width / 2,
|
|
422
|
+
cy: o === 0 ? r.value.height / 2 : r.value.height / 2 + h.value * c.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (o + 1),
|
|
423
|
+
r: i(j)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
424
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${S.value}_${o})` : l.color
|
|
425
|
+
}, null, 14, pt),
|
|
413
426
|
w("circle", {
|
|
414
427
|
"data-cy-trap": "",
|
|
415
428
|
stroke: "none",
|
|
416
|
-
cx:
|
|
417
|
-
cy: o === 0 ?
|
|
418
|
-
r:
|
|
429
|
+
cx: r.value.width / 2,
|
|
430
|
+
cy: o === 0 ? r.value.height / 2 : r.value.height / 2 + h.value * c.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (o + 1),
|
|
431
|
+
r: i(j)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
419
432
|
fill: "transparent",
|
|
420
|
-
onMouseenter: (s) =>
|
|
433
|
+
onMouseenter: (s) => Pe(o, l),
|
|
421
434
|
onMouseleave: a[0] || (a[0] = (s) => {
|
|
422
|
-
$.value = null,
|
|
435
|
+
$.value = null, z.value = !1;
|
|
423
436
|
})
|
|
424
|
-
}, null, 40,
|
|
437
|
+
}, null, 40, gt)
|
|
425
438
|
]))), 256)),
|
|
426
|
-
|
|
427
|
-
], 14,
|
|
428
|
-
t.$slots.watermark ? (
|
|
429
|
-
|
|
430
|
-
])) :
|
|
431
|
-
|
|
439
|
+
f(t.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
440
|
+
], 14, it)) : P("", !0),
|
|
441
|
+
t.$slots.watermark ? (n(), m("div", ft, [
|
|
442
|
+
f(t.$slots, "watermark", D(U({ isPrinting: i(le) || i(ae) })), void 0, !0)
|
|
443
|
+
])) : P("", !0),
|
|
444
|
+
M.value ? P("", !0) : (n(), N(st, {
|
|
432
445
|
key: 4,
|
|
433
446
|
config: {
|
|
434
447
|
type: "rings",
|
|
@@ -442,24 +455,24 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
442
455
|
}, null, 8, ["config"])),
|
|
443
456
|
w("div", {
|
|
444
457
|
ref_key: "chartLegend",
|
|
445
|
-
ref:
|
|
458
|
+
ref: J
|
|
446
459
|
}, [
|
|
447
|
-
e.value.style.chart.legend.show ? (
|
|
448
|
-
key:
|
|
449
|
-
legendSet:
|
|
450
|
-
config:
|
|
460
|
+
e.value.style.chart.legend.show ? (n(), N(ot, {
|
|
461
|
+
key: `legend_${Z.value}`,
|
|
462
|
+
legendSet: ne.value,
|
|
463
|
+
config: xe.value,
|
|
451
464
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => G(l.uid))
|
|
452
465
|
}, {
|
|
453
466
|
item: p(({ legend: l, index: o }) => [
|
|
454
467
|
w("div", {
|
|
455
468
|
"data-cy-legend-item": "",
|
|
456
469
|
onClick: (s) => G(l.uid),
|
|
457
|
-
style:
|
|
470
|
+
style: x(`opacity:${v.value.includes(l.uid) ? 0.5 : 1}`)
|
|
458
471
|
}, [
|
|
459
|
-
|
|
472
|
+
pe(W(l.name) + ": " + W(i(ye)(
|
|
460
473
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
461
474
|
l.value,
|
|
462
|
-
|
|
475
|
+
i(_)({
|
|
463
476
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
464
477
|
v: l.value,
|
|
465
478
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -467,21 +480,21 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
467
480
|
}),
|
|
468
481
|
{ datapoint: l, seriesIndex: o }
|
|
469
482
|
)) + " ", 1),
|
|
470
|
-
v.value.includes(l.uid) ? (
|
|
483
|
+
v.value.includes(l.uid) ? (n(), m("span", bt, " ( - % ) ")) : (n(), m("span", mt, " (" + W(isNaN(l.value / y.value) ? "-" : i(_)({
|
|
471
484
|
v: l.value / y.value * 100,
|
|
472
485
|
s: "%",
|
|
473
486
|
r: e.value.style.chart.legend.roundingPercentage
|
|
474
487
|
})) + ") ", 1))
|
|
475
|
-
], 12,
|
|
488
|
+
], 12, yt)
|
|
476
489
|
]),
|
|
477
490
|
_: 1
|
|
478
|
-
}, 8, ["legendSet", "config"])) :
|
|
491
|
+
}, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
|
|
479
492
|
key: 1,
|
|
480
|
-
legend:
|
|
493
|
+
legend: ne.value
|
|
481
494
|
}, void 0, !0)
|
|
482
495
|
], 512),
|
|
483
|
-
|
|
484
|
-
show: k.value.showTooltip &&
|
|
496
|
+
ze(lt, {
|
|
497
|
+
show: k.value.showTooltip && z.value && v.value.length < g.dataset.length,
|
|
485
498
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
486
499
|
color: e.value.style.chart.tooltip.color,
|
|
487
500
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -496,14 +509,14 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
496
509
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
497
510
|
}, {
|
|
498
511
|
"tooltip-before": p(() => [
|
|
499
|
-
|
|
512
|
+
f(t.$slots, "tooltip-before", D(U({ ...H.value })), void 0, !0)
|
|
500
513
|
]),
|
|
501
514
|
"tooltip-after": p(() => [
|
|
502
|
-
|
|
515
|
+
f(t.$slots, "tooltip-after", D(U({ ...H.value })), void 0, !0)
|
|
503
516
|
]),
|
|
504
517
|
_: 3
|
|
505
518
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
506
|
-
|
|
519
|
+
M.value ? (n(), N(ut, {
|
|
507
520
|
key: 5,
|
|
508
521
|
hideDetails: "",
|
|
509
522
|
config: {
|
|
@@ -520,11 +533,12 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
520
533
|
}
|
|
521
534
|
}, {
|
|
522
535
|
content: p(() => [
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
536
|
+
(n(), N(at, {
|
|
537
|
+
key: `table_${Q.value}`,
|
|
538
|
+
colNames: V.value.colNames,
|
|
539
|
+
head: V.value.head,
|
|
540
|
+
body: V.value.body,
|
|
541
|
+
config: V.value.config,
|
|
528
542
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
529
543
|
onClose: a[2] || (a[2] = (l) => k.value.showTable = !1)
|
|
530
544
|
}, {
|
|
@@ -532,19 +546,19 @@ const lt = ["id"], at = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"],
|
|
|
532
546
|
w("div", {
|
|
533
547
|
innerHTML: l,
|
|
534
548
|
style: { display: "flex", "align-items": "center" }
|
|
535
|
-
}, null, 8,
|
|
549
|
+
}, null, 8, kt)
|
|
536
550
|
]),
|
|
537
551
|
td: p(({ td: l }) => [
|
|
538
|
-
|
|
552
|
+
pe(W(l.name || l), 1)
|
|
539
553
|
]),
|
|
540
554
|
_: 1
|
|
541
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
555
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
542
556
|
]),
|
|
543
557
|
_: 1
|
|
544
|
-
}, 8, ["config"])) :
|
|
545
|
-
], 46,
|
|
558
|
+
}, 8, ["config"])) : P("", !0)
|
|
559
|
+
], 46, nt));
|
|
546
560
|
}
|
|
547
|
-
},
|
|
561
|
+
}, Mt = /* @__PURE__ */ rt(Ct, [["__scopeId", "data-v-2d607318"]]);
|
|
548
562
|
export {
|
|
549
|
-
|
|
563
|
+
Mt as default
|
|
550
564
|
};
|