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,23 +1,23 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import
|
|
8
|
-
import { L as
|
|
9
|
-
import { D as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { computed as p, ref as i, watch as Ve, onMounted as Ue, onBeforeUnmount as Ee, openBlock as s, createElementBlock as n, normalizeClass as z, normalizeStyle as B, createBlock as S, createCommentVNode as f, unref as h, createSlots as Be, withCtx as y, renderSlot as m, normalizeProps as D, guardReactiveProps as G, createElementVNode as w, Fragment as $, renderList as x, toDisplayString as R, createVNode as me, createTextVNode as be, nextTick as De } from "vue";
|
|
2
|
+
import { u as Ge, c as We, t as Xe, a as Ye, p as P, o as je, e as F, b as qe, g as ke, d as Ce, M as _e, s as He, i as we, f as M, X as Je, v as Ke, w as K, N as $e, x as Qe, y as Ze, q as et, r as tt } from "./index-CaV1s-yZ.js";
|
|
3
|
+
import { t as at, u as ot } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as lt } from "./Title-gUz6GDA3.js";
|
|
5
|
+
import { u as rt, U as st } from "./usePrinter-rvJyT65A.js";
|
|
6
|
+
import { _ as nt } from "./Tooltip-DfSM1mNP.js";
|
|
7
|
+
import ut from "./vue-ui-sparkbar-BbsJGDMZ.js";
|
|
8
|
+
import { L as it } from "./Legend-5cQ0xZjK.js";
|
|
9
|
+
import { D as ct } from "./DataTable-e2fnfjXV.js";
|
|
10
|
+
import dt from "./vue-ui-skeleton-CvFX_ExX.js";
|
|
11
|
+
import vt from "./vue-ui-accordion-CpzGQ63y.js";
|
|
12
|
+
import { u as xe } from "./useNestedProp-tWCzZrLx.js";
|
|
13
|
+
import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const ht = ["id"], gt = ["xmlns", "viewBox"], ft = ["id"], yt = ["stop-color"], mt = ["stop-color"], bt = { key: 0 }, kt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Ct = { key: 0 }, _t = ["d", "stroke", "stroke-width"], wt = ["d", "stroke", "stroke-width"], $t = { key: 1 }, xt = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Pt = ["points", "stroke", "stroke-width"], Tt = ["points", "stroke", "stroke-width", "fill"], Nt = { key: 2 }, St = ["cx", "cy", "fill", "r", "stroke"], Ft = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Ot = ["onClick"], At = {
|
|
18
18
|
key: 0,
|
|
19
19
|
style: { "max-width": "200px", margin: "0 auto" }
|
|
20
|
-
},
|
|
20
|
+
}, It = {
|
|
21
21
|
__name: "vue-ui-radar",
|
|
22
22
|
props: {
|
|
23
23
|
config: {
|
|
@@ -34,48 +34,59 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
emits: ["selectLegend"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
setup(Pe, { expose: Te, emit: Ne }) {
|
|
38
|
+
const v = Pe, { vue_ui_radar: Se } = Ge(), O = p(() => !!v.dataset && Object.keys(v.dataset).length), _ = i(We()), Fe = i(null), W = i(!1), X = i(""), Q = i(0), A = i(null), Z = i(null), ee = i(null), te = i(0), ae = i(0), oe = i(0), e = p({
|
|
39
|
+
get: () => le(),
|
|
40
|
+
set: (t) => t
|
|
41
|
+
});
|
|
42
|
+
function le() {
|
|
43
|
+
const t = xe({
|
|
44
|
+
userConfig: v.config,
|
|
45
|
+
defaultConfig: Se
|
|
42
46
|
});
|
|
43
47
|
return t.theme ? {
|
|
44
|
-
...
|
|
45
|
-
userConfig:
|
|
48
|
+
...xe({
|
|
49
|
+
userConfig: Xe.vue_ui_radar[t.theme] || v.config,
|
|
46
50
|
defaultConfig: t
|
|
47
51
|
}),
|
|
48
|
-
customPalette:
|
|
52
|
+
customPalette: Ye[t.theme] || P
|
|
49
53
|
} : t;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
}
|
|
55
|
+
Ve(() => v.config, (t) => {
|
|
56
|
+
e.value = le(), re(), te.value += 1, ae.value += 1, oe.value += 1;
|
|
57
|
+
}, { deep: !0 });
|
|
58
|
+
const V = i(null);
|
|
59
|
+
function re() {
|
|
60
|
+
if (je(v.dataset) && F({
|
|
53
61
|
componentName: "VueUiRadar",
|
|
54
62
|
type: "dataset"
|
|
55
63
|
}), e.value.responsive) {
|
|
56
|
-
const t =
|
|
57
|
-
const { width: a, height: o } =
|
|
64
|
+
const t = at(() => {
|
|
65
|
+
const { width: a, height: o } = ot({
|
|
58
66
|
chart: A.value,
|
|
59
|
-
title: e.value.style.chart.title.text ?
|
|
60
|
-
legend: e.value.style.chart.legend.show ?
|
|
67
|
+
title: e.value.style.chart.title.text ? Z.value : null,
|
|
68
|
+
legend: e.value.style.chart.legend.show ? ee.value : null
|
|
61
69
|
});
|
|
62
70
|
u.value.width = a, u.value.height = o;
|
|
63
71
|
});
|
|
64
|
-
|
|
72
|
+
V.value = new ResizeObserver(t), V.value.observe(A.value.parentNode);
|
|
65
73
|
}
|
|
66
|
-
}
|
|
67
|
-
|
|
74
|
+
}
|
|
75
|
+
Ue(() => {
|
|
76
|
+
re();
|
|
77
|
+
}), Ee(() => {
|
|
78
|
+
V.value && V.value.disconnect();
|
|
68
79
|
});
|
|
69
|
-
const { isPrinting:
|
|
80
|
+
const { isPrinting: se, isImaging: ne, generatePdf: ue, generateImage: ie } = rt({
|
|
70
81
|
elementId: `vue-ui-radar_${_.value}`,
|
|
71
82
|
fileName: e.value.style.chart.title.text || "vue-ui-radar"
|
|
72
|
-
}),
|
|
83
|
+
}), ce = p(() => qe(e.value.customPalette)), k = i({
|
|
73
84
|
dataLabels: {
|
|
74
85
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
75
86
|
},
|
|
76
87
|
showTable: e.value.table.show,
|
|
77
88
|
showTooltip: e.value.style.chart.tooltip.show
|
|
78
|
-
}),
|
|
89
|
+
}), Oe = p(() => ({
|
|
79
90
|
style: {
|
|
80
91
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
81
92
|
animation: {
|
|
@@ -97,34 +108,34 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
97
108
|
height: 312,
|
|
98
109
|
width: 512
|
|
99
110
|
}), c = i([]), I = i(null), T = i(!1);
|
|
100
|
-
function
|
|
111
|
+
function de(t) {
|
|
101
112
|
T.value = !0, c.value.includes(t) ? (I.value = t, c.value = c.value.filter((a) => a !== t), setTimeout(() => {
|
|
102
113
|
T.value = !1, I.value = null;
|
|
103
114
|
}, 500)) : (c.value.push(t), setTimeout(() => {
|
|
104
115
|
T.value = !1;
|
|
105
|
-
}, 500)),
|
|
116
|
+
}, 500)), Ne("selectLegend", N.value.filter((a, o) => !c.value.includes(o)).map((a) => ({
|
|
106
117
|
name: a.name,
|
|
107
118
|
color: a.color,
|
|
108
119
|
proportion: a.totalProportion
|
|
109
120
|
})));
|
|
110
121
|
}
|
|
111
|
-
function
|
|
122
|
+
function Ae() {
|
|
112
123
|
return N.value.map((t) => ({
|
|
113
124
|
name: t.name,
|
|
114
125
|
color: t.color,
|
|
115
126
|
proportion: t.totalProportion
|
|
116
127
|
}));
|
|
117
128
|
}
|
|
118
|
-
const g =
|
|
129
|
+
const g = p(() => [null, void 0].includes(v.dataset.categories) ? (F({
|
|
119
130
|
componentName: "VueUiRadar",
|
|
120
131
|
type: "datasetAttribute",
|
|
121
132
|
property: "categories ({ name: string; prefix?: string; suffix?: string}[])"
|
|
122
|
-
}), []) : (
|
|
133
|
+
}), []) : (v.dataset.categories.length === 0 ? F({
|
|
123
134
|
componentName: "VueUiRadar",
|
|
124
135
|
type: "datasetAttributeEmpty",
|
|
125
136
|
property: "categories"
|
|
126
|
-
}) :
|
|
127
|
-
|
|
137
|
+
}) : v.dataset.categories.forEach((t, a) => {
|
|
138
|
+
ke({
|
|
128
139
|
datasetObject: t,
|
|
129
140
|
requiredAttributes: ["name"]
|
|
130
141
|
}).forEach((o) => {
|
|
@@ -135,12 +146,12 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
135
146
|
index: a
|
|
136
147
|
});
|
|
137
148
|
});
|
|
138
|
-
}), [null, void 0].includes(
|
|
149
|
+
}), [null, void 0].includes(v.dataset.series) ? F({
|
|
139
150
|
componentName: "VueUiRadar",
|
|
140
151
|
type: "datasetAttribute",
|
|
141
152
|
property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
|
|
142
|
-
}) :
|
|
143
|
-
|
|
153
|
+
}) : v.dataset.series.forEach((t, a) => {
|
|
154
|
+
ke({
|
|
144
155
|
datasetObject: t,
|
|
145
156
|
requiredAttributes: ["name", "values", "target"]
|
|
146
157
|
}).forEach((o) => {
|
|
@@ -152,34 +163,34 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
152
163
|
index: a
|
|
153
164
|
});
|
|
154
165
|
});
|
|
155
|
-
}),
|
|
166
|
+
}), v.dataset.categories.map((t, a) => ({
|
|
156
167
|
name: t.name,
|
|
157
168
|
categoryId: `radar_category_${_.value}_${a}`,
|
|
158
|
-
color:
|
|
169
|
+
color: Ce(t.color) || ce.value[a] || P[a] || P[a % P.length],
|
|
159
170
|
prefix: t.prefix ?? "",
|
|
160
171
|
suffix: t.suffix ?? ""
|
|
161
|
-
})))), b =
|
|
172
|
+
})))), b = p(() => O.value ? v.dataset.series.map((t, a) => ({
|
|
162
173
|
...t,
|
|
163
|
-
color:
|
|
174
|
+
color: Ce(t.color) || ce.value[a] || P[a] || P[a % P.length],
|
|
164
175
|
serieId: `radar_serie_${_.value}_${a}`,
|
|
165
176
|
formatter: t.formatter || null
|
|
166
|
-
})) : []),
|
|
177
|
+
})) : []), ve = p(() => Math.max(...b.value.flatMap((t) => t.values))), pe = p(() => b.value.length), Y = p(() => Math.min(u.value.width, u.value.height) / 3), he = p(() => _e({
|
|
167
178
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
168
|
-
radius:
|
|
169
|
-
sides:
|
|
179
|
+
radius: Y.value,
|
|
180
|
+
sides: pe.value,
|
|
170
181
|
rotation: 0
|
|
171
|
-
})),
|
|
182
|
+
})), Ie = p(() => {
|
|
172
183
|
const t = [];
|
|
173
|
-
for (let a = 0; a <
|
|
184
|
+
for (let a = 0; a < Y.value; a += Y.value / e.value.style.chart.layout.grid.graduations)
|
|
174
185
|
t.push(a);
|
|
175
186
|
return t;
|
|
176
|
-
}), C =
|
|
177
|
-
const o = b.value[a].values.map((l) =>
|
|
187
|
+
}), C = p(() => he.value.coordinates.map((t, a) => {
|
|
188
|
+
const o = b.value[a].values.map((l) => Le({
|
|
178
189
|
centerX: u.value.width / 2,
|
|
179
190
|
centerY: u.value.height / 2,
|
|
180
191
|
apexX: t.x,
|
|
181
192
|
apexY: t.y,
|
|
182
|
-
proportion: l / (b.value[a].target ||
|
|
193
|
+
proportion: l / (b.value[a].target || ve.value)
|
|
183
194
|
}));
|
|
184
195
|
return {
|
|
185
196
|
...t,
|
|
@@ -187,55 +198,55 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
187
198
|
plots: o
|
|
188
199
|
};
|
|
189
200
|
}));
|
|
190
|
-
function
|
|
201
|
+
function j({ x: t, y: a }) {
|
|
191
202
|
let o = "middle";
|
|
192
203
|
return t = Math.round(t), a = Math.round(a), t > u.value.width / 2 && (t += 12, o = "start"), t < u.value.width / 2 && (t -= 12, o = "end"), a > u.value.height / 2 && (a += 20), a < u.value.height / 2 && (a -= 12), a === u.value.height / 2 && (a += 4), { x: t, y: a, anchor: o };
|
|
193
204
|
}
|
|
194
|
-
function
|
|
205
|
+
function Le({ centerX: t, centerY: a, apexX: o, apexY: l, proportion: r }) {
|
|
195
206
|
return {
|
|
196
207
|
x: t + (o - t) * r,
|
|
197
208
|
y: a + (l - a) * r
|
|
198
209
|
};
|
|
199
210
|
}
|
|
200
|
-
const N =
|
|
201
|
-
const t = b.value.map((a, o) => a.values.map((l) => l / (a.target ||
|
|
211
|
+
const N = p(() => {
|
|
212
|
+
const t = b.value.map((a, o) => a.values.map((l) => l / (a.target || ve.value)));
|
|
202
213
|
return g.value.map((a, o) => ({
|
|
203
214
|
...a,
|
|
204
|
-
totalProportion:
|
|
215
|
+
totalProportion: He(t.map((l) => l[o]).reduce((l, r) => l + r, 0) / b.value.length),
|
|
205
216
|
shape: "circle",
|
|
206
217
|
opacity: c.value.includes(o) ? 0.5 : 1,
|
|
207
|
-
segregate: () =>
|
|
218
|
+
segregate: () => de(o),
|
|
208
219
|
isSegregated: c.value.includes(o)
|
|
209
220
|
}));
|
|
210
|
-
}),
|
|
221
|
+
}), ze = p(() => ({
|
|
211
222
|
cy: "radar-div-legend",
|
|
212
223
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
213
224
|
color: e.value.style.chart.legend.color,
|
|
214
225
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
215
226
|
paddingBottom: 12,
|
|
216
227
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
217
|
-
})),
|
|
228
|
+
})), U = p(() => {
|
|
218
229
|
const t = [
|
|
219
230
|
{ name: e.value.translations.datapoint, color: "" },
|
|
220
231
|
{ name: e.value.translations.target, color: "" },
|
|
221
232
|
...N.value
|
|
222
|
-
], a =
|
|
233
|
+
], a = v.dataset.series.map((l) => [
|
|
223
234
|
l.name,
|
|
224
|
-
|
|
235
|
+
we(
|
|
225
236
|
l.formatter,
|
|
226
237
|
l.target,
|
|
227
|
-
|
|
238
|
+
M({
|
|
228
239
|
p: l.prefix,
|
|
229
240
|
v: l.target,
|
|
230
241
|
s: l.suffix,
|
|
231
242
|
r: e.value.table.td.roundingValue
|
|
232
243
|
})
|
|
233
244
|
),
|
|
234
|
-
...l.values.map((r, d) => `${
|
|
245
|
+
...l.values.map((r, d) => `${we(
|
|
235
246
|
l.formatter,
|
|
236
247
|
r,
|
|
237
|
-
|
|
238
|
-
)} (${isNaN(r / l.target) ? "" :
|
|
248
|
+
M({ p: g.value[d].prefix, v: r, s: g.value[d].suffix, r: e.value.table.td.roundingValue })
|
|
249
|
+
)} (${isNaN(r / l.target) ? "" : M({
|
|
239
250
|
v: r / l.target * 100,
|
|
240
251
|
s: "%",
|
|
241
252
|
r: e.value.table.td.roundingPercentage
|
|
@@ -254,11 +265,11 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
254
265
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
255
266
|
};
|
|
256
267
|
return { head: t, body: a, config: o, colNames: t };
|
|
257
|
-
}),
|
|
258
|
-
function
|
|
259
|
-
|
|
268
|
+
}), E = i(null), q = i([]), H = i(null);
|
|
269
|
+
function Re(t, a) {
|
|
270
|
+
q.value = [], E.value = a, W.value = !0;
|
|
260
271
|
let o = "";
|
|
261
|
-
|
|
272
|
+
H.value = {
|
|
262
273
|
datapoint: t,
|
|
263
274
|
seriesIndex: a,
|
|
264
275
|
series: {
|
|
@@ -269,13 +280,13 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
269
280
|
config: e.value
|
|
270
281
|
};
|
|
271
282
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
272
|
-
if (
|
|
283
|
+
if (Qe(l) && Ze(() => l({
|
|
273
284
|
seriesIndex: a,
|
|
274
285
|
datapoint: t,
|
|
275
286
|
series: { categories: g.value, datapoints: b.value, radar: C.value },
|
|
276
287
|
config: e.value
|
|
277
288
|
})))
|
|
278
|
-
|
|
289
|
+
X.value = l({
|
|
279
290
|
seriesIndex: a,
|
|
280
291
|
datapoint: t,
|
|
281
292
|
series: { categories: g.value, datapoints: b.value, radar: C.value },
|
|
@@ -284,58 +295,59 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
284
295
|
else {
|
|
285
296
|
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`;
|
|
286
297
|
for (let r = 0; r < t.values.length; r += 1)
|
|
287
|
-
c.value.includes(r) ||
|
|
298
|
+
c.value.includes(r) || q.value.push({
|
|
288
299
|
name: g.value[r].name,
|
|
289
300
|
value: t.values[r] / t.target * 100,
|
|
290
301
|
color: g.value[r].color,
|
|
291
302
|
suffix: "%)",
|
|
292
|
-
prefix: `${
|
|
303
|
+
prefix: `${M({ p: g.value[r].prefix ?? "", v: t.values[r], s: g.value[r].suffix ?? "", r: e.value.style.chart.tooltip.roundingValue })} (`,
|
|
293
304
|
rounding: e.value.style.chart.tooltip.roundingPercentage,
|
|
294
305
|
formatter: t.formatter
|
|
295
306
|
});
|
|
296
|
-
|
|
307
|
+
X.value = o;
|
|
297
308
|
}
|
|
298
309
|
}
|
|
299
|
-
function
|
|
300
|
-
|
|
301
|
-
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...N.value.flatMap((d) => [[d.name], ["%"]])], o =
|
|
302
|
-
|
|
303
|
-
isNaN(
|
|
304
|
-
])]), l = t.concat([a]).concat(o), r =
|
|
305
|
-
|
|
310
|
+
function ge() {
|
|
311
|
+
De(() => {
|
|
312
|
+
const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...N.value.flatMap((d) => [[d.name], ["%"]])], o = v.dataset.series.map((d, Lt) => [d.name, d.target, ...d.values.flatMap((J) => [
|
|
313
|
+
J,
|
|
314
|
+
isNaN(J / d.target) ? "" : J / d.target * 100
|
|
315
|
+
])]), l = t.concat([a]).concat(o), r = et(l);
|
|
316
|
+
tt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-radar" });
|
|
306
317
|
});
|
|
307
318
|
}
|
|
308
|
-
const
|
|
309
|
-
function
|
|
310
|
-
|
|
319
|
+
const L = i(!1);
|
|
320
|
+
function Me(t) {
|
|
321
|
+
L.value = t, Q.value += 1;
|
|
311
322
|
}
|
|
312
|
-
function
|
|
323
|
+
function fe() {
|
|
313
324
|
k.value.showTable = !k.value.showTable;
|
|
314
325
|
}
|
|
315
|
-
function
|
|
326
|
+
function ye() {
|
|
316
327
|
k.value.showTooltip = !k.value.showTooltip;
|
|
317
328
|
}
|
|
318
|
-
return
|
|
319
|
-
getData:
|
|
320
|
-
generatePdf:
|
|
321
|
-
generateCsv:
|
|
322
|
-
generateImage:
|
|
323
|
-
toggleTable:
|
|
324
|
-
toggleTooltip:
|
|
329
|
+
return Te({
|
|
330
|
+
getData: Ae,
|
|
331
|
+
generatePdf: ue,
|
|
332
|
+
generateCsv: ge,
|
|
333
|
+
generateImage: ie,
|
|
334
|
+
toggleTable: fe,
|
|
335
|
+
toggleTooltip: ye
|
|
325
336
|
}), (t, a) => (s(), n("div", {
|
|
326
|
-
class:
|
|
337
|
+
class: z(`vue-ui-radar ${L.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
327
338
|
ref_key: "radarChart",
|
|
328
339
|
ref: A,
|
|
329
340
|
id: `vue-ui-radar_${_.value}`,
|
|
330
|
-
style:
|
|
341
|
+
style: B(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`)
|
|
331
342
|
}, [
|
|
332
343
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
333
344
|
key: 0,
|
|
334
345
|
ref_key: "chartTitle",
|
|
335
|
-
ref:
|
|
336
|
-
style:
|
|
346
|
+
ref: Z,
|
|
347
|
+
style: B(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
|
|
337
348
|
}, [
|
|
338
|
-
|
|
349
|
+
(s(), S(lt, {
|
|
350
|
+
key: `title_${te.value}`,
|
|
339
351
|
config: {
|
|
340
352
|
title: {
|
|
341
353
|
cy: "radar-div-title",
|
|
@@ -346,16 +358,16 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
346
358
|
...e.value.style.chart.title.subtitle
|
|
347
359
|
}
|
|
348
360
|
}
|
|
349
|
-
}, null, 8, ["config"])
|
|
361
|
+
}, null, 8, ["config"]))
|
|
350
362
|
], 4)) : f("", !0),
|
|
351
|
-
e.value.userOptions.show && O.value ? (s(),
|
|
363
|
+
e.value.userOptions.show && O.value ? (s(), S(st, {
|
|
352
364
|
ref_key: "details",
|
|
353
|
-
ref:
|
|
354
|
-
key: `user_options_${
|
|
365
|
+
ref: Fe,
|
|
366
|
+
key: `user_options_${Q.value}`,
|
|
355
367
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
356
368
|
color: e.value.style.chart.color,
|
|
357
|
-
isImaging: h(
|
|
358
|
-
isPrinting: h(
|
|
369
|
+
isImaging: h(ne),
|
|
370
|
+
isPrinting: h(se),
|
|
359
371
|
uid: _.value,
|
|
360
372
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
361
373
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -363,17 +375,17 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
363
375
|
hasXls: e.value.userOptions.buttons.csv,
|
|
364
376
|
hasTable: e.value.userOptions.buttons.table,
|
|
365
377
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
366
|
-
isFullscreen:
|
|
378
|
+
isFullscreen: L.value,
|
|
367
379
|
isTooltip: k.value.showTooltip,
|
|
368
380
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
369
381
|
chartElement: A.value,
|
|
370
|
-
onToggleFullscreen:
|
|
371
|
-
onGeneratePdf: h(
|
|
372
|
-
onGenerateCsv:
|
|
373
|
-
onGenerateImage: h(
|
|
374
|
-
onToggleTable:
|
|
375
|
-
onToggleTooltip:
|
|
376
|
-
},
|
|
382
|
+
onToggleFullscreen: Me,
|
|
383
|
+
onGeneratePdf: h(ue),
|
|
384
|
+
onGenerateCsv: ge,
|
|
385
|
+
onGenerateImage: h(ie),
|
|
386
|
+
onToggleTable: fe,
|
|
387
|
+
onToggleTooltip: ye
|
|
388
|
+
}, Be({ _: 2 }, [
|
|
377
389
|
t.$slots.optionTooltip ? {
|
|
378
390
|
name: "optionTooltip",
|
|
379
391
|
fn: y(() => [
|
|
@@ -412,17 +424,17 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
412
424
|
t.$slots.optionFullscreen ? {
|
|
413
425
|
name: "optionFullscreen",
|
|
414
426
|
fn: y(({ toggleFullscreen: o, isFullscreen: l }) => [
|
|
415
|
-
m(t.$slots, "optionFullscreen", G(
|
|
427
|
+
m(t.$slots, "optionFullscreen", D(G({ toggleFullscreen: o, isFullscreen: l })), void 0, !0)
|
|
416
428
|
]),
|
|
417
429
|
key: "5"
|
|
418
430
|
} : void 0
|
|
419
431
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
420
432
|
O.value ? (s(), n("svg", {
|
|
421
433
|
key: 2,
|
|
422
|
-
xmlns: h(
|
|
423
|
-
class:
|
|
434
|
+
xmlns: h(Je),
|
|
435
|
+
class: z({ "vue-data-ui-fullscreen--on": L.value, "vue-data-ui-fulscreen--off": !L.value }),
|
|
424
436
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
425
|
-
style:
|
|
437
|
+
style: B(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
426
438
|
}, [
|
|
427
439
|
w("defs", null, [
|
|
428
440
|
(s(!0), n($, null, x(g.value, (o, l) => (s(), n("radialGradient", {
|
|
@@ -435,15 +447,15 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
435
447
|
}, [
|
|
436
448
|
w("stop", {
|
|
437
449
|
offset: "0%",
|
|
438
|
-
"stop-color": `${h(
|
|
439
|
-
}, null, 8,
|
|
450
|
+
"stop-color": `${h(Ke)(o.color, 0.05)}${h(K)[e.value.style.chart.layout.dataPolygon.opacity]}`
|
|
451
|
+
}, null, 8, yt),
|
|
440
452
|
w("stop", {
|
|
441
453
|
offset: "100%",
|
|
442
|
-
"stop-color": o.color + h(
|
|
443
|
-
}, null, 8,
|
|
444
|
-
], 8,
|
|
454
|
+
"stop-color": o.color + h(K)[e.value.style.chart.layout.dataPolygon.opacity]
|
|
455
|
+
}, null, 8, mt)
|
|
456
|
+
], 8, ft))), 256))
|
|
445
457
|
]),
|
|
446
|
-
e.value.style.chart.layout.grid.show ? (s(), n("g",
|
|
458
|
+
e.value.style.chart.layout.grid.show ? (s(), n("g", bt, [
|
|
447
459
|
(s(!0), n($, null, x(C.value, (o) => (s(), n("line", {
|
|
448
460
|
x1: u.value.width / 2,
|
|
449
461
|
y1: u.value.height / 2,
|
|
@@ -451,83 +463,83 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
451
463
|
y2: o.y,
|
|
452
464
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
453
465
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
454
|
-
}, null, 8,
|
|
455
|
-
e.value.style.chart.layout.grid.graduations > 0 ? (s(), n("g",
|
|
456
|
-
(s(!0), n($, null, x(
|
|
457
|
-
d: h(
|
|
466
|
+
}, null, 8, kt))), 256)),
|
|
467
|
+
e.value.style.chart.layout.grid.graduations > 0 ? (s(), n("g", Ct, [
|
|
468
|
+
(s(!0), n($, null, x(Ie.value, (o) => (s(), n("path", {
|
|
469
|
+
d: h(_e)({
|
|
458
470
|
plot: { x: u.value.width / 2, y: u.value.height / 2 },
|
|
459
471
|
radius: o,
|
|
460
|
-
sides:
|
|
472
|
+
sides: pe.value,
|
|
461
473
|
rotation: 0
|
|
462
474
|
}).path,
|
|
463
475
|
fill: "none",
|
|
464
476
|
stroke: e.value.style.chart.layout.grid.stroke,
|
|
465
477
|
"stroke-width": e.value.style.chart.layout.grid.strokeWidth
|
|
466
|
-
}, null, 8,
|
|
478
|
+
}, null, 8, _t))), 256))
|
|
467
479
|
])) : f("", !0)
|
|
468
480
|
])) : f("", !0),
|
|
469
481
|
w("path", {
|
|
470
|
-
d:
|
|
482
|
+
d: he.value.path,
|
|
471
483
|
fill: "none",
|
|
472
484
|
stroke: e.value.style.chart.layout.outerPolygon.stroke,
|
|
473
485
|
"stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
|
|
474
486
|
"stroke-linejoin": "round",
|
|
475
487
|
"stroke-linecap": "round"
|
|
476
|
-
}, null, 8,
|
|
477
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (s(), n("g",
|
|
488
|
+
}, null, 8, wt),
|
|
489
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (s(), n("g", $t, [
|
|
478
490
|
(s(!0), n($, null, x(C.value, (o, l) => (s(), n("text", {
|
|
479
|
-
x:
|
|
480
|
-
y:
|
|
481
|
-
"text-anchor":
|
|
491
|
+
x: j(o).x,
|
|
492
|
+
y: j(o).y,
|
|
493
|
+
"text-anchor": j(o).anchor,
|
|
482
494
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
483
495
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
484
|
-
onMouseenter: (r) =>
|
|
496
|
+
onMouseenter: (r) => Re(o, l),
|
|
485
497
|
onMouseleave: a[0] || (a[0] = (r) => {
|
|
486
|
-
|
|
498
|
+
W.value = !1, E.value = null;
|
|
487
499
|
})
|
|
488
|
-
},
|
|
500
|
+
}, R(o.name), 41, xt))), 256))
|
|
489
501
|
])) : f("", !0),
|
|
490
502
|
(s(!0), n($, null, x(g.value, (o, l) => (s(), n("g", null, [
|
|
491
503
|
w("g", null, [
|
|
492
504
|
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (s(), n("polygon", {
|
|
493
505
|
key: 0,
|
|
494
506
|
"data-cy-radar-path": "",
|
|
495
|
-
points: h(
|
|
507
|
+
points: h($e)(C.value.map((r) => r.plots[l]), !1, !0),
|
|
496
508
|
stroke: e.value.style.chart.backgroundColor,
|
|
497
509
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
|
|
498
510
|
fill: "none",
|
|
499
|
-
class:
|
|
500
|
-
}, null, 10,
|
|
511
|
+
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in": T.value && I.value === l && e.value.useCssAnimation })
|
|
512
|
+
}, null, 10, Pt)) : f("", !0),
|
|
501
513
|
e.value.useCssAnimation || !e.value.useCssAnimation && !c.value.includes(l) ? (s(), n("polygon", {
|
|
502
514
|
key: 1,
|
|
503
515
|
"data-cy-radar-path": "",
|
|
504
|
-
points: h(
|
|
516
|
+
points: h($e)(C.value.map((r) => r.plots[l]), !1, !0),
|
|
505
517
|
stroke: o.color,
|
|
506
518
|
"stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
|
|
507
|
-
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : o.color + h(
|
|
508
|
-
class:
|
|
509
|
-
}, null, 10,
|
|
519
|
+
fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${_.value}_${l})` : o.color + h(K)[e.value.style.chart.layout.dataPolygon.opacity],
|
|
520
|
+
class: z({ "animated-out": c.value.includes(l) && e.value.useCssAnimation, "animated-in": T.value && I.value === l && e.value.useCssAnimation })
|
|
521
|
+
}, null, 10, Tt)) : f("", !0)
|
|
510
522
|
])
|
|
511
523
|
]))), 256)),
|
|
512
|
-
e.value.style.chart.layout.plots.show ? (s(), n("g",
|
|
524
|
+
e.value.style.chart.layout.plots.show ? (s(), n("g", Nt, [
|
|
513
525
|
(s(!0), n($, null, x(C.value, (o, l) => (s(), n("g", null, [
|
|
514
526
|
(s(!0), n($, null, x(o.plots, (r, d) => (s(), n("circle", {
|
|
515
527
|
cx: r.x,
|
|
516
528
|
cy: r.y,
|
|
517
529
|
fill: c.value.includes(d) ? "transparent" : g.value[d].color,
|
|
518
|
-
r:
|
|
530
|
+
r: E.value !== null && E.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
|
|
519
531
|
stroke: c.value.includes(d) ? "transparent" : e.value.style.chart.backgroundColor,
|
|
520
532
|
"stroke-width": 0.5,
|
|
521
|
-
class:
|
|
522
|
-
}, null, 10,
|
|
533
|
+
class: z({ "animated-out": c.value.includes(d) && e.value.useCssAnimation, "animated-in": T.value && I.value === d && e.value.useCssAnimation })
|
|
534
|
+
}, null, 10, St))), 256))
|
|
523
535
|
]))), 256))
|
|
524
536
|
])) : f("", !0),
|
|
525
537
|
m(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
526
|
-
], 14,
|
|
527
|
-
t.$slots.watermark ? (s(), n("div",
|
|
528
|
-
m(t.$slots, "watermark", G(
|
|
538
|
+
], 14, gt)) : f("", !0),
|
|
539
|
+
t.$slots.watermark ? (s(), n("div", Ft, [
|
|
540
|
+
m(t.$slots, "watermark", D(G({ isPrinting: h(se) || h(ne) })), void 0, !0)
|
|
529
541
|
])) : f("", !0),
|
|
530
|
-
O.value ? f("", !0) : (s(),
|
|
542
|
+
O.value ? f("", !0) : (s(), S(dt, {
|
|
531
543
|
key: 4,
|
|
532
544
|
config: {
|
|
533
545
|
type: "radar",
|
|
@@ -546,24 +558,24 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
546
558
|
}, null, 8, ["config"])),
|
|
547
559
|
w("div", {
|
|
548
560
|
ref_key: "chartLegend",
|
|
549
|
-
ref:
|
|
561
|
+
ref: ee
|
|
550
562
|
}, [
|
|
551
|
-
e.value.style.chart.legend.show ? (s(),
|
|
552
|
-
key:
|
|
563
|
+
e.value.style.chart.legend.show ? (s(), S(it, {
|
|
564
|
+
key: `legend_${oe.value}`,
|
|
553
565
|
legendSet: N.value,
|
|
554
|
-
config:
|
|
555
|
-
onClickMarker: a[1] || (a[1] = ({ i: o }) =>
|
|
566
|
+
config: ze.value,
|
|
567
|
+
onClickMarker: a[1] || (a[1] = ({ i: o }) => de(o))
|
|
556
568
|
}, {
|
|
557
569
|
item: y(({ legend: o, index: l }) => [
|
|
558
570
|
w("div", {
|
|
559
571
|
"data-cy-legend-item": "",
|
|
560
572
|
onClick: (r) => o.segregate(),
|
|
561
|
-
style:
|
|
562
|
-
},
|
|
573
|
+
style: B(`opacity:${c.value.includes(l) ? 0.5 : 1}`)
|
|
574
|
+
}, R(o.name) + ": " + R(h(M)({
|
|
563
575
|
v: o.totalProportion * 100,
|
|
564
576
|
s: "%",
|
|
565
577
|
r: e.value.style.chart.legend.roundingPercentage
|
|
566
|
-
})), 13,
|
|
578
|
+
})), 13, Ot)
|
|
567
579
|
]),
|
|
568
580
|
_: 1
|
|
569
581
|
}, 8, ["legendSet", "config"])) : m(t.$slots, "legend", {
|
|
@@ -571,8 +583,8 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
571
583
|
legend: N.value
|
|
572
584
|
}, void 0, !0)
|
|
573
585
|
], 512),
|
|
574
|
-
|
|
575
|
-
show: k.value.showTooltip &&
|
|
586
|
+
me(nt, {
|
|
587
|
+
show: k.value.showTooltip && W.value,
|
|
576
588
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
577
589
|
color: e.value.style.chart.tooltip.color,
|
|
578
590
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -583,25 +595,25 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
583
595
|
position: e.value.style.chart.tooltip.position,
|
|
584
596
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
585
597
|
parent: A.value,
|
|
586
|
-
content:
|
|
598
|
+
content: X.value,
|
|
587
599
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
588
600
|
}, {
|
|
589
601
|
"tooltip-before": y(() => [
|
|
590
|
-
m(t.$slots, "tooltip-before", G(
|
|
602
|
+
m(t.$slots, "tooltip-before", D(G({ ...H.value })), void 0, !0)
|
|
591
603
|
]),
|
|
592
604
|
"tooltip-after": y(() => [
|
|
593
|
-
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? f("", !0) : (s(), n("div",
|
|
594
|
-
|
|
595
|
-
dataset:
|
|
596
|
-
config:
|
|
605
|
+
["function"].includes(typeof e.value.style.chart.tooltip.customFormat) ? f("", !0) : (s(), n("div", At, [
|
|
606
|
+
me(ut, {
|
|
607
|
+
dataset: q.value,
|
|
608
|
+
config: Oe.value,
|
|
597
609
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity
|
|
598
610
|
}, null, 8, ["dataset", "config", "backgroundOpacity"])
|
|
599
611
|
])),
|
|
600
|
-
m(t.$slots, "tooltip-after", G(
|
|
612
|
+
m(t.$slots, "tooltip-after", D(G({ ...H.value })), void 0, !0)
|
|
601
613
|
]),
|
|
602
614
|
_: 3
|
|
603
615
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
604
|
-
O.value ? (s(),
|
|
616
|
+
O.value ? (s(), S(vt, {
|
|
605
617
|
key: 5,
|
|
606
618
|
hideDetails: "",
|
|
607
619
|
config: {
|
|
@@ -618,28 +630,29 @@ const ut = ["id"], it = ["xmlns", "viewBox"], ct = ["id"], dt = ["stop-color"],
|
|
|
618
630
|
}
|
|
619
631
|
}, {
|
|
620
632
|
content: y(() => [
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
633
|
+
(s(), S(ct, {
|
|
634
|
+
key: `table_${ae.value}`,
|
|
635
|
+
colNames: U.value.colNames,
|
|
636
|
+
head: U.value.head,
|
|
637
|
+
body: U.value.body,
|
|
638
|
+
config: U.value.config,
|
|
626
639
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
627
640
|
onClose: a[2] || (a[2] = (o) => k.value.showTable = !1)
|
|
628
641
|
}, {
|
|
629
642
|
th: y(({ th: o }) => [
|
|
630
|
-
|
|
643
|
+
be(R(o.name), 1)
|
|
631
644
|
]),
|
|
632
645
|
td: y(({ td: o }) => [
|
|
633
|
-
|
|
646
|
+
be(R(o), 1)
|
|
634
647
|
]),
|
|
635
648
|
_: 1
|
|
636
|
-
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
649
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
637
650
|
]),
|
|
638
651
|
_: 1
|
|
639
652
|
}, 8, ["config"])) : f("", !0)
|
|
640
|
-
], 14,
|
|
653
|
+
], 14, ht));
|
|
641
654
|
}
|
|
642
|
-
},
|
|
655
|
+
}, qt = /* @__PURE__ */ pt(It, [["__scopeId", "data-v-9855cfb0"]]);
|
|
643
656
|
export {
|
|
644
|
-
|
|
657
|
+
qt as default
|
|
645
658
|
};
|