vue-data-ui 2.3.92 → 2.3.94
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-CdJD01md.cjs → Arrow-Dqk-HgBj.cjs} +1 -1
- package/dist/{Arrow-16rQhq4i.js → Arrow-FQNwuQt_.js} +1 -1
- package/dist/{BaseIcon-CAmYNoaf.js → BaseIcon-CcOdzI48.js} +1 -1
- package/dist/{BaseIcon-dYWMubrH.cjs → BaseIcon-DhAyJ2rW.cjs} +1 -1
- package/dist/{DataTable-BXnbua0J.js → DataTable-D1vDu_2B.js} +2 -2
- package/dist/{DataTable-oa0Srfuc.cjs → DataTable-kOScyzFF.cjs} +1 -1
- package/dist/{Legend-Dhm9_peB.cjs → Legend-BJdr5n-o.cjs} +1 -1
- package/dist/{Legend-Cr1hulgT.js → Legend-CZk6McMv.js} +1 -1
- package/dist/{PackageVersion-BVZfgDqm.js → PackageVersion-DDKechCD.js} +1 -1
- package/dist/{PackageVersion-BkgJVmj1.cjs → PackageVersion-Tm6EPIDH.cjs} +1 -1
- package/dist/{Shape-hGbEoQOv.cjs → Shape-CHWOgbhq.cjs} +1 -1
- package/dist/{Shape-D75m5xWM.js → Shape-CY3Tsyaq.js} +1 -1
- package/dist/{Slicer-B7ya0m2Q.cjs → Slicer-C0R4JA2q.cjs} +1 -1
- package/dist/{Slicer-Bx8AozB8.js → Slicer-DBVND1TR.js} +15 -15
- package/dist/{Title-1Sw6EmHy.js → Title-B6kWQmNb.js} +1 -1
- package/dist/{Title-Bjrh7khe.cjs → Title-DAEaaXFr.cjs} +1 -1
- package/dist/{Tooltip-CPATjuur.cjs → Tooltip-Cb9jWppv.cjs} +1 -1
- package/dist/{Tooltip-EJf3VBPR.js → Tooltip-Cwp4dS4t.js} +1 -1
- package/dist/{index-DhJby8wL.js → index-Bu852AzK.js} +725 -705
- package/dist/index-jAZxyteD.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-CrHvyupb.js → useNestedProp-1sCLAHuR.js} +1 -1
- package/dist/{useNestedProp-Bwd7mK1Z.cjs → useNestedProp-DksYpyh6.cjs} +1 -1
- package/dist/{usePrinter-Bwm8J3RQ.js → usePrinter-CaNEdNUc.js} +1 -1
- package/dist/{usePrinter-DdsPm5a4.cjs → usePrinter-Cx-xmAjb.cjs} +1 -1
- package/dist/{vue-data-ui-CLxne31S.js → vue-data-ui-DRT0INR_.js} +57 -57
- package/dist/{vue-data-ui-ZitCqVgG.cjs → vue-data-ui-DVWQuwQb.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +5 -5
- package/dist/{vue-ui-3d-bar-Dg87_AAm.js → vue-ui-3d-bar-CwTmIafL.js} +8 -8
- package/dist/{vue-ui-3d-bar-DAv5cYGJ.cjs → vue-ui-3d-bar-fPokAY4t.cjs} +1 -1
- package/dist/{vue-ui-accordion-Cn5Jbplg.js → vue-ui-accordion-CBwmD_zS.js} +3 -3
- package/dist/{vue-ui-accordion-BAHX7KzB.cjs → vue-ui-accordion-WXKee19V.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-PlamQWqC.js → vue-ui-age-pyramid-BuJ384HP.js} +9 -9
- package/dist/{vue-ui-age-pyramid-GzHwQzsH.cjs → vue-ui-age-pyramid-CSlbHHIq.cjs} +1 -1
- package/dist/{vue-ui-annotator-Dd5KF_cy.js → vue-ui-annotator-CQQfgcyq.js} +1 -1
- package/dist/{vue-ui-annotator-DGgQwl-K.cjs → vue-ui-annotator-DqCVD1IT.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BIEB2J1w.cjs → vue-ui-candlestick-2uxcI-Xb.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DTzwPhV5.js → vue-ui-candlestick-O0pBnymd.js} +10 -10
- package/dist/{vue-ui-carousel-table-YEfvPESA.js → vue-ui-carousel-table-CpaHwBTF.js} +4 -4
- package/dist/{vue-ui-carousel-table-HNTf5AYY.cjs → vue-ui-carousel-table-DJelccvO.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DzjdAYsT.cjs → vue-ui-chestnut-DoS0ZkSz.cjs} +1 -1
- package/dist/{vue-ui-chestnut-PzMOM7mp.js → vue-ui-chestnut-bP29gPF2.js} +7 -7
- package/dist/{vue-ui-cursor-DWea2yXV.js → vue-ui-cursor-BXsEO1jQ.js} +2 -2
- package/dist/{vue-ui-cursor-C5rsiCdn.cjs → vue-ui-cursor-DvrLmTy2.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BqXhoS8m.cjs → vue-ui-dashboard-CtAtCuEu.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CVespiTo.js → vue-ui-dashboard-VQiRxgUe.js} +2 -2
- package/dist/{vue-ui-digits-gNKgZqYU.js → vue-ui-digits-2h-uYg5M.js} +2 -2
- package/dist/{vue-ui-digits-wmDN7Vkf.cjs → vue-ui-digits-DxwUUK2a.cjs} +1 -1
- package/dist/vue-ui-donut-CVkNiaR7.js +999 -0
- package/dist/vue-ui-donut-ClCDBTXq.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DhDxLZ1J.cjs → vue-ui-donut-evolution-CVy-DhHk.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Ch6HH0ja.js → vue-ui-donut-evolution-D0HDE6fN.js} +53 -53
- package/dist/{vue-ui-dumbbell-B9Z_pjnG.cjs → vue-ui-dumbbell-CblIThyd.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-lFlZX8Yi.js → vue-ui-dumbbell-DIVxIXgO.js} +9 -9
- package/dist/{vue-ui-flow-CSIOC-JR.js → vue-ui-flow-Cy5HKKbs.js} +20 -20
- package/dist/{vue-ui-flow-BaFpUJg-.cjs → vue-ui-flow-Dbw0yzSb.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DL2mnel_.js → vue-ui-galaxy-CBR86BVE.js} +23 -23
- package/dist/{vue-ui-galaxy-BIR5GxIc.cjs → vue-ui-galaxy-Z5-e5hHG.cjs} +1 -1
- package/dist/{vue-ui-gauge-BMq7KT3t.js → vue-ui-gauge-BwC9HPyF.js} +19 -19
- package/dist/{vue-ui-gauge-r_qvpwE7.cjs → vue-ui-gauge-DAgx6nds.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DBas_Sw_.cjs → vue-ui-gizmo-5FygVg05.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Dj7zvNI1.js → vue-ui-gizmo-D6U5riWt.js} +3 -3
- package/dist/{vue-ui-heatmap-pqBYIrxm.js → vue-ui-heatmap-PVlvCw_B.js} +9 -9
- package/dist/{vue-ui-heatmap-qPgEhAzc.cjs → vue-ui-heatmap-XVVbgtw6.cjs} +1 -1
- package/dist/{vue-ui-kpi-Cmo9J7wp.cjs → vue-ui-kpi-2eoTT0Hv.cjs} +1 -1
- package/dist/{vue-ui-kpi-ZPBinMiF.js → vue-ui-kpi-DiG34MXd.js} +3 -3
- package/dist/{vue-ui-mini-loader-DOTWhLi9.js → vue-ui-mini-loader-CVOfsZ-d.js} +2 -2
- package/dist/{vue-ui-mini-loader-Ce-jbgMT.cjs → vue-ui-mini-loader-DpoTiQhx.cjs} +1 -1
- package/dist/{vue-ui-molecule-RDpgNrHQ.js → vue-ui-molecule-85QzZoSm.js} +29 -29
- package/dist/{vue-ui-molecule-D429iwPP.cjs → vue-ui-molecule-Mt0YXGcP.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CdLJxrkT.cjs → vue-ui-mood-radar-B3xF0_xt.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CD5L8WCU.js → vue-ui-mood-radar-Ds21V6oP.js} +21 -21
- package/dist/{vue-ui-nested-donuts-A-tid5cQ.js → vue-ui-nested-donuts-BrMouz8T.js} +46 -46
- package/dist/{vue-ui-nested-donuts-DyM3uc7x.cjs → vue-ui-nested-donuts-DFrY4v-O.cjs} +1 -1
- package/dist/{vue-ui-onion-BKql8oal.cjs → vue-ui-onion-CQu0-ZlV.cjs} +1 -1
- package/dist/{vue-ui-onion-Cap01Ehu.js → vue-ui-onion-ZWa0bPAG.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-B0zMgtnq.cjs → vue-ui-parallel-coordinate-plot-Cet-vJ3E.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CcDKe4L0.js → vue-ui-parallel-coordinate-plot-SpCkXomG.js} +11 -11
- package/dist/{vue-ui-quadrant-CZzdpeQ2.cjs → vue-ui-quadrant-B1fnSqPf.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BDEfAeyJ.js → vue-ui-quadrant-DwxUTnpH.js} +11 -11
- package/dist/{vue-ui-quick-chart-DlAUYg5u.js → vue-ui-quick-chart-DDSDdZMZ.js} +8 -8
- package/dist/{vue-ui-quick-chart-DpGYUyhq.cjs → vue-ui-quick-chart-DSOONkrO.cjs} +1 -1
- package/dist/{vue-ui-radar-oBeaHlpT.cjs → vue-ui-radar-CQJzxB9Y.cjs} +1 -1
- package/dist/{vue-ui-radar-CbTln7gs.js → vue-ui-radar-Cc4hxNkF.js} +11 -11
- package/dist/{vue-ui-rating-BkDncqow.js → vue-ui-rating-CRs01ao2.js} +7 -7
- package/dist/{vue-ui-rating-BU7-F3_e.cjs → vue-ui-rating-DRLfSg4n.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-IWiJWgcB.cjs → vue-ui-relation-circle-BZcoHhTb.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-C5B6UNGd.js → vue-ui-relation-circle-mlXpg86O.js} +6 -6
- package/dist/{vue-ui-rings-BujVUJ90.js → vue-ui-rings-DHlbwWrt.js} +37 -37
- package/dist/{vue-ui-rings-Df2cRgD8.cjs → vue-ui-rings-OeMdVo_s.cjs} +1 -1
- package/dist/{vue-ui-scatter-jFTeM2hW.cjs → vue-ui-scatter-D65sxQAb.cjs} +1 -1
- package/dist/{vue-ui-scatter-D6yqZJ7s.js → vue-ui-scatter-DtX5NOb_.js} +34 -34
- package/dist/{vue-ui-screenshot-CVu8IM33.cjs → vue-ui-screenshot-B1pv3wKU.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CHAySwpv.js → vue-ui-screenshot-BwgdW92q.js} +1 -1
- package/dist/{vue-ui-skeleton-ASX40MGk.js → vue-ui-skeleton-B-obKEDg.js} +49 -49
- package/dist/{vue-ui-skeleton-CAlTn_Cg.cjs → vue-ui-skeleton-C14g9G-o.cjs} +1 -1
- package/dist/{vue-ui-smiley-dwCqhB0r.cjs → vue-ui-smiley-CHY-BKbe.cjs} +1 -1
- package/dist/{vue-ui-smiley-DGVzhza2.js → vue-ui-smiley-i8xqKjND.js} +2 -2
- package/dist/{vue-ui-spark-trend-B7XhDvTj.js → vue-ui-spark-trend-DzZsfML2.js} +20 -20
- package/dist/{vue-ui-spark-trend-A1EHFK_r.cjs → vue-ui-spark-trend-i3VmY_gx.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BuNcvi66.js → vue-ui-sparkbar-7rOXvOgH.js} +4 -4
- package/dist/{vue-ui-sparkbar-CwNjHOjD.cjs → vue-ui-sparkbar-BnYKNJWQ.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-ISu154lS.cjs → vue-ui-sparkgauge-BuOMrzYW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-JY2kB9WX.js → vue-ui-sparkgauge-DnphjNVE.js} +11 -11
- package/dist/{vue-ui-sparkhistogram-C8zyC-ii.cjs → vue-ui-sparkhistogram-DZaNR3tu.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DyEPWxkP.js → vue-ui-sparkhistogram-DvLl4E_s.js} +5 -5
- package/dist/{vue-ui-sparkline-DL3Thtc4.cjs → vue-ui-sparkline-BpmqNCQy.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DYC3sdvQ.js → vue-ui-sparkline-CPjnG7wg.js} +21 -21
- package/dist/{vue-ui-sparkstackbar-7TmtP3WR.js → vue-ui-sparkstackbar-BGgNBuJz.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-ChIM9bn2.cjs → vue-ui-sparkstackbar-CJ17fiW5.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DrtiSaNc.cjs → vue-ui-stackbar-CFoe4XwZ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CP5C6Gb_.js → vue-ui-stackbar-SFKe9f6_.js} +11 -11
- package/dist/{vue-ui-strip-plot-BMYMIHGu.cjs → vue-ui-strip-plot-B8utOfmZ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DJQCq_KE.js → vue-ui-strip-plot-CGgheJ1-.js} +10 -10
- package/dist/{vue-ui-table-D6hvgMif.cjs → vue-ui-table-BpSsgihB.cjs} +1 -1
- package/dist/{vue-ui-table-IJi0xaVg.js → vue-ui-table-JOi6x-Kt.js} +10 -10
- package/dist/{vue-ui-table-heatmap-Ls8_xq0D.js → vue-ui-table-heatmap-EeR8_0fs.js} +23 -23
- package/dist/{vue-ui-table-heatmap-BZNKXZNs.cjs → vue-ui-table-heatmap-fNf5Hgfn.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BeuvdssX.js → vue-ui-table-sparkline-of9ZervK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-BQFK30H1.cjs → vue-ui-table-sparkline-yjChfsNj.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DKm8SXlE.cjs → vue-ui-thermometer-Ct59Zrkd.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DPWIvG92.js → vue-ui-thermometer-Hb5jQa3y.js} +6 -6
- package/dist/{vue-ui-timer-CEzDvZf7.js → vue-ui-timer-Duo6PjNq.js} +5 -5
- package/dist/{vue-ui-timer-n6lv7oTx.cjs → vue-ui-timer-nIKem40S.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-B33mHXZN.cjs → vue-ui-tiremarks-D5vYyYcq.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BUGoY22W.js → vue-ui-tiremarks-rxEA2WzL.js} +6 -6
- package/dist/{vue-ui-treemap-DPxBZUUr.cjs → vue-ui-treemap-DK5klTWq.cjs} +1 -1
- package/dist/{vue-ui-treemap-DmOYjJ_F.js → vue-ui-treemap-DWDrLYPR.js} +10 -10
- package/dist/{vue-ui-vertical-bar-BpVKdSY5.js → vue-ui-vertical-bar-3TzyIQBn.js} +10 -10
- package/dist/{vue-ui-vertical-bar-BJMYX8t4.cjs → vue-ui-vertical-bar-CCOjOr9t.cjs} +1 -1
- package/dist/{vue-ui-waffle-ULg6SwPx.js → vue-ui-waffle-CUiQJf4B.js} +23 -23
- package/dist/{vue-ui-waffle-DGcueccy.cjs → vue-ui-waffle-CzbWP2YI.cjs} +1 -1
- package/dist/{vue-ui-wheel-CWKq-CFW.cjs → vue-ui-wheel-BgLqSlSe.cjs} +1 -1
- package/dist/{vue-ui-wheel-DlmgZd-_.js → vue-ui-wheel-DJe1aYWh.js} +6 -6
- package/dist/vue-ui-word-cloud-CS4EPwJc.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DWyboczt.js → vue-ui-word-cloud-ouNY0ixo.js} +75 -75
- package/dist/{vue-ui-xy-Cz81fw_E.cjs → vue-ui-xy-DkHIDMtO.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-B9cRe5gT.js → vue-ui-xy-canvas-CGG7Levw.js} +34 -34
- package/dist/{vue-ui-xy-canvas-GiuHOyj5.cjs → vue-ui-xy-canvas-iMF1sItL.cjs} +1 -1
- package/dist/{vue-ui-xy-V13Ns1gv.js → vue-ui-xy-iQJGfaFk.js} +28 -28
- package/package.json +1 -1
- package/dist/index-D09qCApg.cjs +0 -4
- package/dist/vue-ui-donut-n37BZPxr.cjs +0 -1
- package/dist/vue-ui-donut-sQunZI1L.js +0 -871
- package/dist/vue-ui-word-cloud-BhHWdmqP.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { computed as g, ref as d, watch as De, onMounted as
|
|
2
|
-
import { u as tt, c as lt, t as at, a as ot, p as Q, o as st, e as A, b as ut,
|
|
1
|
+
import { computed as g, ref as d, watch as De, onMounted as Ke, onBeforeUnmount as Je, openBlock as u, createElementBlock as n, normalizeClass as z, normalizeStyle as ue, createBlock as P, createCommentVNode as y, unref as r, createSlots as Qe, withCtx as m, renderSlot as $, normalizeProps as q, guardReactiveProps as K, createVNode as Oe, createElementVNode as p, Fragment as x, renderList as S, toDisplayString as T, createTextVNode as J, nextTick as Ze, pushScopeId as je, popScopeId as et } from "vue";
|
|
2
|
+
import { u as tt, c as lt, t as at, a as ot, p as Q, o as st, e as A, b as ut, I as ze, d as nt, m as Pe, f as L, X as rt, s as Ae, K as it, k as V, n as ne, i as R, x as Ve, y as dt, q as ct, r as vt } from "./index-Bu852AzK.js";
|
|
3
3
|
import { t as ft, u as ht } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as yt } from "./Title-
|
|
5
|
-
import { u as pt, U as bt } from "./usePrinter-
|
|
6
|
-
import { D as gt } from "./DataTable-
|
|
7
|
-
import { _ as mt } from "./Tooltip-
|
|
8
|
-
import { L as _t } from "./Legend-
|
|
9
|
-
import wt from "./vue-ui-skeleton-
|
|
10
|
-
import kt from "./vue-ui-accordion-
|
|
11
|
-
import { u as Me } from "./useNestedProp-
|
|
12
|
-
import { _ as xt } from "./PackageVersion-
|
|
4
|
+
import { _ as yt } from "./Title-B6kWQmNb.js";
|
|
5
|
+
import { u as pt, U as bt } from "./usePrinter-CaNEdNUc.js";
|
|
6
|
+
import { D as gt } from "./DataTable-D1vDu_2B.js";
|
|
7
|
+
import { _ as mt } from "./Tooltip-Cwp4dS4t.js";
|
|
8
|
+
import { L as _t } from "./Legend-CZk6McMv.js";
|
|
9
|
+
import wt from "./vue-ui-skeleton-B-obKEDg.js";
|
|
10
|
+
import kt from "./vue-ui-accordion-CBwmD_zS.js";
|
|
11
|
+
import { u as Me } from "./useNestedProp-1sCLAHuR.js";
|
|
12
|
+
import { _ as xt } from "./PackageVersion-DDKechCD.js";
|
|
13
13
|
import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = ["xmlns", "viewBox"], Ft = ["id"], St = /* @__PURE__ */ re(() => /* @__PURE__ */ p("stop", {
|
|
15
15
|
offset: "0%",
|
|
@@ -22,13 +22,13 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
22
22
|
}, null, -1)), Dt = ["id"], Ot = ["id"], zt = /* @__PURE__ */ re(() => /* @__PURE__ */ p("feColorMatrix", {
|
|
23
23
|
type: "saturate",
|
|
24
24
|
values: "0"
|
|
25
|
-
}, null, -1)), Pt = ["id"], At = ["flood-color"], Vt = ["d", "fill", "stroke", "stroke-width", "filter"], Mt = { key: 0 }, Bt = ["d", "fill"], Ut = { key: 1 },
|
|
25
|
+
}, null, -1)), Pt = ["id"], At = ["flood-color"], Vt = ["d", "fill", "stroke", "stroke-width", "filter"], Mt = { key: 0 }, Bt = ["d", "fill"], Ut = { key: 1 }, Rt = ["x", "y", "font-size", "font-weight", "fill"], Et = { key: 2 }, Gt = ["filter"], Yt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Xt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Wt = ["text-anchor", "x", "y", "fill", "font-size", "font-weight"], Ht = ["d", "fill", "onMouseenter", "onClick"], qt = {
|
|
26
26
|
key: 3,
|
|
27
27
|
class: "vue-data-ui-watermark"
|
|
28
|
-
},
|
|
28
|
+
}, Kt = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "vue-ui-nested-donuts-legend-title"
|
|
31
|
-
},
|
|
31
|
+
}, Jt = ["onClick"], Qt = ["innerHTML"], Zt = {
|
|
32
32
|
__name: "vue-ui-nested-donuts",
|
|
33
33
|
props: {
|
|
34
34
|
config: {
|
|
@@ -46,8 +46,8 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["selectLegend", "selectDatapoint"],
|
|
48
48
|
setup(M, { expose: Be, emit: ie }) {
|
|
49
|
-
const I = M, { vue_ui_nested_donuts: Ue } = tt(),
|
|
50
|
-
function
|
|
49
|
+
const I = M, { vue_ui_nested_donuts: Ue } = tt(), E = g(() => !!I.dataset && I.dataset.length), _ = d(lt()), Z = d(!1), j = d(""), Re = d(null), de = d(0), B = d(null), ce = d(null), ee = d(null), ve = d(0), fe = d(0), he = d(0), U = d(!1);
|
|
50
|
+
function Ee(t) {
|
|
51
51
|
U.value = t, de.value += 1;
|
|
52
52
|
}
|
|
53
53
|
const e = g({
|
|
@@ -70,8 +70,8 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
70
70
|
De(() => I.config, (t) => {
|
|
71
71
|
e.value = ye(), pe(), ve.value += 1, fe.value += 1, he.value += 1;
|
|
72
72
|
}, { deep: !0 });
|
|
73
|
-
const
|
|
74
|
-
|
|
73
|
+
const G = d(null);
|
|
74
|
+
Ke(() => {
|
|
75
75
|
pe();
|
|
76
76
|
});
|
|
77
77
|
function pe() {
|
|
@@ -87,16 +87,16 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
87
87
|
});
|
|
88
88
|
f.value.width = s, f.value.height = a;
|
|
89
89
|
});
|
|
90
|
-
|
|
90
|
+
G.value = new ResizeObserver(t), G.value.observe(B.value.parentNode);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
Je(() => {
|
|
94
|
+
G.value && G.value.disconnect();
|
|
95
95
|
});
|
|
96
96
|
const { isPrinting: be, isImaging: ge, generatePdf: me, generateImage: _e } = pt({
|
|
97
97
|
elementId: `nested_donuts_${_.value}`,
|
|
98
98
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts"
|
|
99
|
-
}),
|
|
99
|
+
}), Ge = g(() => ut(e.value.customPalette)), w = d({
|
|
100
100
|
dataLabels: {
|
|
101
101
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
102
102
|
},
|
|
@@ -151,7 +151,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
151
151
|
id: `${_.value}_${s}_${o}`,
|
|
152
152
|
seriesIndex: o,
|
|
153
153
|
datasetIndex: s,
|
|
154
|
-
color: nt(a.color) ||
|
|
154
|
+
color: nt(a.color) || Ge.value[o] || Q[o] || Q[o % Q.length],
|
|
155
155
|
value: ze(a.values).reduce((l, i) => l + i, 0),
|
|
156
156
|
absoluteValues: a.values || []
|
|
157
157
|
}))
|
|
@@ -291,7 +291,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
291
291
|
</span>
|
|
292
292
|
</div>
|
|
293
293
|
<span>
|
|
294
|
-
${e.value.style.chart.tooltip.showValue ? `<b>${
|
|
294
|
+
${e.value.style.chart.tooltip.showValue ? `<b>${R(
|
|
295
295
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
296
296
|
t.value,
|
|
297
297
|
L({
|
|
@@ -313,7 +313,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
313
313
|
`;
|
|
314
314
|
});
|
|
315
315
|
} else
|
|
316
|
-
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${
|
|
316
|
+
l += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.arcOf ?? ""} - ${t.name}</div>`, l += `<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="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (l += `<b>${R(
|
|
317
317
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
318
318
|
t.value,
|
|
319
319
|
L({
|
|
@@ -474,7 +474,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
474
474
|
}
|
|
475
475
|
}, null, 8, ["config"]))
|
|
476
476
|
], 512)) : y("", !0),
|
|
477
|
-
e.value.userOptions.show &&
|
|
477
|
+
e.value.userOptions.show && E.value ? (u(), P(bt, {
|
|
478
478
|
ref: "details",
|
|
479
479
|
key: `user_option_${de.value}`,
|
|
480
480
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -494,7 +494,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
494
494
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
495
495
|
chartElement: B.value,
|
|
496
496
|
position: e.value.userOptions.position,
|
|
497
|
-
onToggleFullscreen:
|
|
497
|
+
onToggleFullscreen: Ee,
|
|
498
498
|
onGeneratePdf: r(me),
|
|
499
499
|
onGenerateCsv: Se,
|
|
500
500
|
onGenerateImage: r(_e),
|
|
@@ -547,12 +547,12 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
547
547
|
t.$slots.optionFullscreen ? {
|
|
548
548
|
name: "optionFullscreen",
|
|
549
549
|
fn: m(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
550
|
-
$(t.$slots, "optionFullscreen", q(
|
|
550
|
+
$(t.$slots, "optionFullscreen", q(K({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
551
551
|
]),
|
|
552
552
|
key: "6"
|
|
553
553
|
} : void 0
|
|
554
554
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
555
|
-
|
|
555
|
+
E.value ? (u(), n("svg", {
|
|
556
556
|
key: 2,
|
|
557
557
|
xmlns: r(rt),
|
|
558
558
|
class: z({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
@@ -640,11 +640,11 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
640
640
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
641
641
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldDonutName ? "bold" : "normal",
|
|
642
642
|
fill: e.value.style.chart.layout.labels.dataLabels.color
|
|
643
|
-
}, T(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(it)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11,
|
|
643
|
+
}, T(e.value.style.chart.layout.labels.dataLabels.donutNameAbbreviation ? r(it)({ source: a.name, length: e.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize }) : a.name), 11, Rt)) : y("", !0)
|
|
644
644
|
]))), 256))
|
|
645
645
|
]))), 256))
|
|
646
646
|
])) : y("", !0),
|
|
647
|
-
e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g",
|
|
647
|
+
e.value.style.chart.layout.labels.dataLabels.show ? (u(), n("g", Et, [
|
|
648
648
|
(u(!0), n(x, null, S(Y.value, (a, o) => (u(), n("g", null, [
|
|
649
649
|
(u(!0), n(x, null, S(a.donut, (l, i) => (u(), n("g", {
|
|
650
650
|
filter: Fe(l, i)
|
|
@@ -668,7 +668,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
668
668
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
669
669
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
670
670
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
671
|
-
}, " (" + T(r(
|
|
671
|
+
}, " (" + T(r(R)(
|
|
672
672
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
673
673
|
l.value,
|
|
674
674
|
r(L)({
|
|
@@ -688,7 +688,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
688
688
|
fill: e.value.style.chart.layout.labels.dataLabels.useSerieColor ? l.color : e.value.style.chart.layout.labels.dataLabels.color,
|
|
689
689
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
690
690
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.boldValue ? "bold" : "normal"
|
|
691
|
-
}, T(r(
|
|
691
|
+
}, T(r(R)(
|
|
692
692
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
693
693
|
l.value,
|
|
694
694
|
r(L)({
|
|
@@ -699,7 +699,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
699
699
|
}),
|
|
700
700
|
{ datapoint: l, seriesIndex: o, datapointIndex: i }
|
|
701
701
|
)), 11, Wt)) : y("", !0)
|
|
702
|
-
], 8,
|
|
702
|
+
], 8, Gt))), 256))
|
|
703
703
|
]))), 256))
|
|
704
704
|
])) : y("", !0),
|
|
705
705
|
(u(!0), n(x, null, S(Y.value, (a, o) => (u(), n("g", null, [
|
|
@@ -707,7 +707,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
707
707
|
p("path", {
|
|
708
708
|
"data-cy-donut-trap": "",
|
|
709
709
|
d: l.arcSlice,
|
|
710
|
-
fill:
|
|
710
|
+
fill: Re.value === o ? "rgba(0,0,0,0.1)" : "transparent",
|
|
711
711
|
onMouseenter: (b) => We({
|
|
712
712
|
datapoint: l,
|
|
713
713
|
relativeIndex: o,
|
|
@@ -723,9 +723,9 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
723
723
|
$(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
724
724
|
], 14, Ct)) : y("", !0),
|
|
725
725
|
t.$slots.watermark ? (u(), n("div", qt, [
|
|
726
|
-
$(t.$slots, "watermark", q(
|
|
726
|
+
$(t.$slots, "watermark", q(K({ isPrinting: r(be) || r(ge) })), void 0, !0)
|
|
727
727
|
])) : y("", !0),
|
|
728
|
-
|
|
728
|
+
E.value ? y("", !0) : (u(), P(wt, {
|
|
729
729
|
key: 4,
|
|
730
730
|
config: {
|
|
731
731
|
type: "donut",
|
|
@@ -753,10 +753,10 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
753
753
|
isCustom: r(Ve)(e.value.style.chart.tooltip.customFormat)
|
|
754
754
|
}, {
|
|
755
755
|
"tooltip-before": m(() => [
|
|
756
|
-
$(t.$slots, "tooltip-before", q(
|
|
756
|
+
$(t.$slots, "tooltip-before", q(K({ ...ae.value })), void 0, !0)
|
|
757
757
|
]),
|
|
758
758
|
"tooltip-after": m(() => [
|
|
759
|
-
$(t.$slots, "tooltip-after", q(
|
|
759
|
+
$(t.$slots, "tooltip-after", q(K({ ...ae.value })), void 0, !0)
|
|
760
760
|
]),
|
|
761
761
|
_: 3
|
|
762
762
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -773,14 +773,14 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
773
773
|
onClickMarker: s[1] || (s[1] = ({ legend: l }) => te(l))
|
|
774
774
|
}, {
|
|
775
775
|
legendTitle: m(({ titleSet: l }) => [
|
|
776
|
-
l[0] && l[0].arcOf ? (u(), n("div",
|
|
776
|
+
l[0] && l[0].arcOf ? (u(), n("div", Kt, T(l[0].arcOf), 1)) : y("", !0)
|
|
777
777
|
]),
|
|
778
778
|
item: m(({ legend: l, index: i }) => [
|
|
779
779
|
p("div", {
|
|
780
780
|
onClick: (b) => te(l),
|
|
781
781
|
style: ue(`opacity:${h.value.includes(l.id) ? 0.5 : 1}`)
|
|
782
782
|
}, [
|
|
783
|
-
|
|
783
|
+
J(T(l.name) + ": " + T(r(R)(
|
|
784
784
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
785
785
|
l.value,
|
|
786
786
|
r(L)({
|
|
@@ -792,11 +792,11 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
792
792
|
{ datapoint: l, seriesIndex: i }
|
|
793
793
|
)) + " ", 1),
|
|
794
794
|
h.value.includes(l.id) ? (u(), n(x, { key: 1 }, [
|
|
795
|
-
|
|
795
|
+
J(" ( - % ) ")
|
|
796
796
|
], 64)) : (u(), n(x, { key: 0 }, [
|
|
797
|
-
|
|
797
|
+
J(" (" + T(isNaN(l.value / l.total) ? "-" : r(L)({ v: l.value / l.total * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })) + ") ", 1)
|
|
798
798
|
], 64))
|
|
799
|
-
], 12,
|
|
799
|
+
], 12, Jt)
|
|
800
800
|
]),
|
|
801
801
|
_: 2
|
|
802
802
|
}, 1032, ["legendSet", "config"]))), 128))
|
|
@@ -808,7 +808,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
808
808
|
}, [
|
|
809
809
|
$(t.$slots, "legend", { legend: se.value }, void 0, !0)
|
|
810
810
|
], 512)),
|
|
811
|
-
|
|
811
|
+
E.value ? (u(), P(kt, {
|
|
812
812
|
key: 7,
|
|
813
813
|
hideDetails: "",
|
|
814
814
|
config: {
|
|
@@ -841,7 +841,7 @@ const re = (M) => (je("data-v-e05474aa"), M = M(), et(), M), Lt = ["id"], Ct = [
|
|
|
841
841
|
}, null, 8, Qt)
|
|
842
842
|
]),
|
|
843
843
|
td: m(({ td: a }) => [
|
|
844
|
-
|
|
844
|
+
J(T(a.name || a), 1)
|
|
845
845
|
]),
|
|
846
846
|
_: 1
|
|
847
847
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-jAZxyteD.cjs"),ce=require("./useResponsive-B3TrDDIG.cjs"),we=require("./Title-DAEaaXFr.cjs"),de=require("./usePrinter-Cx-xmAjb.cjs"),xe=require("./DataTable-kOScyzFF.cjs"),Be=require("./Tooltip-Cb9jWppv.cjs"),_e=require("./Legend-BJdr5n-o.cjs"),$e=require("./vue-ui-skeleton-C14g9G-o.cjs"),Ne=require("./vue-ui-accordion-WXKee19V.cjs"),ve=require("./useNestedProp-DksYpyh6.cjs"),Se=require("./PackageVersion-Tm6EPIDH.cjs"),Ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M=w=>(e.pushScopeId("data-v-e05474aa"),w=w(),e.popScopeId(),w),Fe=["id"],Ve=["xmlns","viewBox"],Te=["id"],De=M(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF","stop-opacity":"0"},null,-1)),ze=["offset","stop-color"],Pe=["offset","stop-opacity"],Oe=M(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF","stop-opacity":"0"},null,-1)),Ie=["id"],Ae=["id"],Me=M(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Re=["id"],Ue=["flood-color"],qe=["d","fill","stroke","stroke-width","filter"],Ye={key:0},Xe=["d","fill"],Ge={key:1},He=["x","y","font-size","font-weight","fill"],We={key:2},Je=["filter"],Ke=["text-anchor","x","y","fill","font-size","font-weight"],Qe=["text-anchor","x","y","fill","font-size","font-weight"],Ze=["text-anchor","x","y","fill","font-size","font-weight"],je=["d","fill","onMouseenter","onClick"],et={key:3,class:"vue-data-ui-watermark"},tt={key:0,class:"vue-ui-nested-donuts-legend-title"},lt=["onClick"],at=["innerHTML"],ot={__name:"vue-ui-nested-donuts",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(w,{expose:fe,emit:R}){const k=w,{vue_ui_nested_donuts:pe}=r.useConfig(),_=e.computed(()=>!!k.dataset&&k.dataset.length),p=e.ref(r.createUid()),V=e.ref(!1),T=e.ref(""),he=e.ref(null),U=e.ref(0),x=e.ref(null),q=e.ref(null),D=e.ref(null),Y=e.ref(0),X=e.ref(0),G=e.ref(0),B=e.ref(!1);function ye(l){B.value=l,U.value+=1}const t=e.computed({get:()=>H(),set:l=>l});function H(){const l=ve.useNestedProp({userConfig:k.config,defaultConfig:pe});return l.theme?{...ve.useNestedProp({userConfig:r.themes.vue_ui_nested_donuts[l.theme]||k.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>k.config,l=>{t.value=H(),W(),Y.value+=1,X.value+=1,G.value+=1},{deep:!0});const $=e.ref(null);e.onMounted(()=>{W()});function W(){if(r.objectIsEmpty(k.dataset)&&r.error({componentName:"VueUiNestedDonuts",type:"dataset"}),t.value.responsive){const l=ce.throttle(()=>{const{width:s,height:o}=ce.useResponsive({chart:x.value,title:t.value.style.chart.title.text?q.value:null,legend:t.value.style.chart.legend.show?D.value:null});d.value.width=s,d.value.height=o});$.value=new ResizeObserver(l),$.value.observe(x.value.parentNode)}}e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:J,isImaging:K,generatePdf:Q,generateImage:Z}=de.usePrinter({elementId:`nested_donuts_${p.value}`,fileName:t.value.style.chart.title.text||"vue-ui-nested-donuts"}),me=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),h=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),d=e.ref({height:512,width:512});function be({datapoint:l,index:s}){R("selectDatapoint",{datapoint:l,index:s})}const v=e.ref([]),m=e.computed(()=>(k.dataset.forEach((l,s)=>{[null,void 0].includes(l.name)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"name",index:s}),[null,void 0].includes(l.series)?r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"series",index:s}):l.series.length===0?r.error({componentName:"VueUiNestedDonuts",type:"datasetAttributeEmpty",property:`series at index ${s}`}):l.series.forEach((o,n)=>{[null,void 0].includes(o.name)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"name",index:n,key:"serie"}),[null,void 0].includes(o.values)&&r.error({componentName:"VueUiNestedDonuts",type:"datasetSerieAttribute",property:"values",index:n,key:"serie"})})}),k.dataset.map((l,s)=>({...l,total:l.series.filter(o=>!v.value.includes(o.id)).map(o=>r.sanitizeArray(o.values).reduce((n,a)=>n+a,0)).reduce((o,n)=>o+n,0),datasetIndex:s,id:`${p.value}_${s}`,series:l.series.map((o,n)=>({name:o.name,arcOf:l.name,arcOfId:`${p.value}_${s}`,id:`${p.value}_${s}_${n}`,seriesIndex:n,datasetIndex:s,color:r.convertColorToHex(o.color)||me.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:r.sanitizeArray(o.values).reduce((a,u)=>a+u,0),absoluteValues:o.values||[]}))})))),b=e.computed(()=>Math.min(d.value.height,d.value.width)*(t.value.style.chart.layout.donut.strokeWidth/512)),j=e.computed(()=>[...m.value].map((l,s)=>{const o=l.series.filter(n=>!v.value.includes(n.id)).map(n=>n.value).reduce((n,a)=>n+a,0);return{...l,total:o,series:l.series.filter(n=>!v.value.includes(n.id)).map(n=>({...n,proportion:n.value/o}))}}));function ge(l,s,o){let n=0;for(let a=0;a<l.length;a+=1)o.includes(l[a])&&(n+=1);return n<s}const c=e.ref(j.value);e.watch(()=>j.value,l=>c.value=l);const ee=e.ref(null),te=e.ref(null);function z(l){R("selectLegend",l);const s=m.value.flatMap(i=>i.series).find(i=>i.id===l.id),o=c.value.flatMap(i=>i.series).find(i=>i.id===l.id);let a=o?o.value:0;const u=m.value.find(i=>i.id===s.arcOfId).series.map(i=>i.id),f=ge(u,u.length-1,v.value);if(v.value.includes(l.id)){let i=function(){a>s.value?(cancelAnimationFrame(ee.value),c.value=c.value.map(y=>({...y,series:y.series.map(g=>g.id==l.id?{...g,value:s.value}:g)}))):(a+=s.value*.025,c.value=c.value.map(y=>({...y,series:y.series.map(g=>g.id===l.id?{...g,value:a}:g)})),ee.value=requestAnimationFrame(i))};v.value=v.value.filter(y=>y!==l.id),i()}else if(f){let i=function(){a<.1?(cancelAnimationFrame(te.value),v.value.push(l.id),c.value=c.value.map((y,g)=>({...y,series:y.series.map(L=>L.id===l.id?{...L,value:0}:L)}))):(a/=1.1,c.value=c.value.map((y,g)=>({...y,series:y.series.map(L=>L.id===l.id?{...L,value:a}:L)})),te.value=requestAnimationFrame(i))};i()}}const P=e.computed(()=>b.value/m.value.length*t.value.style.chart.layout.donut.spacingRatio),le=e.computed(()=>c.value.map((l,s)=>b.value-s*b.value/m.value.length)),N=e.computed(()=>c.value.map((l,s)=>{const o=s*b.value/m.value.length;return{...l,radius:b.value-o,donut:r.makeDonut({series:l.series},d.value.width/2,d.value.height/2,b.value-o,b.value-o,1.99999,2,1,360,105.25,P.value)}})),ae=e.computed(()=>[...m.value].map((l,s)=>{const o=s*b.value/m.value.length;return{sizeRatio:o,donut:r.makeDonut({series:[{value:1}]},d.value.width/2,d.value.height/2,b.value-o,b.value-o,1.99999,2,1,360,105.25,b.value/m.value.length*t.value.style.chart.layout.donut.spacingRatio)[0]}})),oe=e.ref(null),S=e.ref(null),E=e.ref(null),O=e.ref(null);function ke({datapoint:l,_relativeIndex:s,seriesIndex:o}){oe.value=l.arcOfId,S.value=l.id,E.value=o,O.value={datapoint:l,seriesIndex:o,series:c.value,config:t.value};const n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:o,datapoint:l,series:c.value,config:t.value})))T.value=n({seriesIndex:o,datapoint:l,series:c.value,config:t.value});else{let a="";if(t.value.style.chart.tooltip.showAllItemsAtIndex&&v.value.length===0){const u=c.value.map(f=>f.series.find(i=>i.seriesIndex===o));u.forEach((f,i)=>{if(!f)return"";a+=`
|
|
2
2
|
<div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${i<u.length-1?`border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor}`:""}">
|
|
3
3
|
<div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
|
|
4
4
|
<svg viewBox="0 0 20 20" height="${t.value.style.chart.tooltip.fontSize}" width="${t.value.style.chart.tooltip.fontSize}">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-jAZxyteD.cjs"),j=require("./useResponsive-B3TrDDIG.cjs"),he=require("./Title-DAEaaXFr.cjs"),J=require("./usePrinter-Cx-xmAjb.cjs"),pe=require("./Legend-BJdr5n-o.cjs"),fe=require("./DataTable-kOScyzFF.cjs"),ge=require("./Tooltip-Cb9jWppv.cjs"),me=require("./vue-ui-skeleton-C14g9G-o.cjs"),ye=require("./vue-ui-accordion-WXKee19V.cjs"),K=require("./useNestedProp-DksYpyh6.cjs"),be=require("./PackageVersion-Tm6EPIDH.cjs"),ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),we=["id"],Ce=["xmlns","viewBox"],xe=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],$e=["cx","cy","r","stroke","stroke-width","stroke-dasharray","stroke-dashoffset"],Be=["id"],Te=["stdDeviation"],_e=["filter"],Se=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset"],Pe=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset","onMouseenter"],Ne={key:1},Oe=["onMouseenter"],Fe=["x","y","font-size","fill","font-weight"],Ie={key:3,class:"vue-data-ui-watermark"},Ve=["onClick"],Ee=["innerHTML"],Le={__name:"vue-ui-onion",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(Q,{expose:Z,emit:ee}){const p=Q,{vue_ui_onion:te}=u.useConfig(),C=e.computed(()=>!!p.dataset&&p.dataset.length),m=e.ref(u.createUid()),ae=e.ref(null),F=e.ref(0),x=e.ref(!1),T=e.ref(""),d=e.ref([]),y=e.ref(null),I=e.ref(null),V=e.ref(null),E=e.ref(0),L=e.ref(0),M=e.ref(0),t=e.computed({get:()=>D(),set:l=>l});function D(){const l=K.useNestedProp({userConfig:p.config,defaultConfig:te});return l.theme?{...K.useNestedProp({userConfig:u.themes.vue_ui_onion[l.theme]||p.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:l}e.watch(()=>p.config,l=>{t.value=D(),Y(),E.value+=1,L.value+=1,M.value+=1},{deep:!0});const{isPrinting:R,isImaging:z,generatePdf:A,generateImage:q}=J.usePrinter({elementId:`vue-ui-onion_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-onion"}),le=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),f=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),n=e.ref({height:512,width:512,padding:{top:64,left:64,right:64,bottom:64},minRadius:64}),$=e.ref(null);e.onMounted(()=>{Y()});function Y(){if(u.objectIsEmpty(p.dataset)&&u.error({componentName:"VueUiOnion",type:"dataset"}),t.value.responsive){const r=j.throttle(()=>{const{width:a,height:o}=j.useResponsive({chart:y.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?V.value:null});n.value.width=a,n.value.height=o,n.value.padding.top=Math.max(a,o)*.125,n.value.padding.right=Math.max(a,o)*.125,n.value.padding.bottom=Math.max(a,o)*.125,n.value.padding.left=Math.max(a,o)*.125,n.value.minRadius=Math.min(a,o)*.125});$.value=new ResizeObserver(r),$.value.observe(y.value.parentNode)}}e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const s=e.computed(()=>({top:n.value.padding.top,left:n.value.padding.left,right:n.value.width-n.value.padding.right,bottom:n.value.height-n.value.padding.bottom,centerX:n.value.width/2,centerY:n.value.height/2,width:n.value.width-n.value.padding.right-n.value.padding.left,height:n.value.height-n.value.padding.bottom-n.value.padding.top,minRadius:n.value.minRadius,maxRadius:Math.min(n.value.width,n.value.height)-n.value.padding.top*2})),i=e.computed(()=>(p.dataset.forEach((l,r)=>{[null,void 0].includes(l.name)&&u.error({componentName:"VueUiOnion",type:"datasetSerieAttribute",property:"name",index:r}),[void 0].includes(l.percentage)&&u.error({componentName:"VueUiOnion",type:"datasetSerieAttribute",property:"percentage",index:r})}),p.dataset.map((l,r)=>{const a=`onion_serie_${r}_${m.value}`;return{...l,percentage:l.percentage||0,targetPercentage:l.percentage||0,color:u.convertColorToHex(l.color)||le.value[r]||u.palette[r],id:a,shape:"circle",opacity:d.value.includes(a)?.5:1,absoluteIndex:r,segregate:()=>X(a),isSegregated:d.value.includes(a)}}))),b=e.ref(i.value),oe=e.computed(()=>t.value.useStartAnimation),re=e.ref(null),ne=e.computed(()=>Math.max(...i.value.map(l=>l.percentage))),_=e.ref(!1);e.watch(()=>i.value,ue,{immediate:!0});function ue(){if(oe.value&&!_.value){let r=function(){l>=ne.value?(cancelAnimationFrame(re.value),b.value=i.value,_.value=!0):(b.value=i.value.map(a=>({...a,percentage:l<a.targetPercentage?l:a.targetPercentage})),l+=1,requestAnimationFrame(r),_.value=!0)};b.value=i.value.map(a=>({...a,percentage:0}));let l=0;r()}else b.value=i.value}const se=e.computed(()=>({cy:"onion-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),ie=e.computed(()=>i.value.filter(l=>!d.value.includes(l.id)).length),g=e.computed(()=>{const l=Math.min(s.value.width,s.value.height)/2/i.value.length;return{gutter:(l>t.value.style.chart.layout.maxThickness?t.value.style.chart.layout.maxThickness:l)*t.value.style.chart.layout.gutter.width,track:(l>t.value.style.chart.layout.maxThickness?t.value.style.chart.layout.maxThickness:l)*t.value.style.chart.layout.track.width}}),v=e.computed(()=>b.value.filter(l=>!d.value.includes(l.id)).map((l,r)=>{const a=(s.value.maxRadius-g.value.track)/ie.value/2*(1+r),o=s.value.centerY-a;return{percentage:l.percentage||0,...l,labelY:o,radius:a,path:ce(a,l.percentage||0)}}));function ce(l,r){const a=2*Math.PI*l,o=a*.75,c=`${o} ${a}`,w=o*(1-r/100);return{bgDashArray:`${o} ${a}`,bgDashOffset:0,dashArray:c,dashOffset:w,fullOffset:0,active:`
|
|
2
2
|
M ${s.value.centerX},${s.value.centerY-l}
|
|
3
3
|
A ${l},${l} 0 1 1
|
|
4
4
|
${s.value.centerX+l*Math.cos(Math.PI*3/4)},${s.value.centerY+l*Math.sin(Math.PI*3/4)}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { computed as d, ref as n, watch as he, onMounted as Ne, onBeforeUnmount as Re, openBlock as s, createElementBlock as u, normalizeClass as z, normalizeStyle as W, createBlock as C, createCommentVNode as b, unref as v, createSlots as Ae, withCtx as h, renderSlot as g, normalizeProps as Y, guardReactiveProps as B, createVNode as fe, Fragment as M, renderList as F, createElementVNode as _, toDisplayString as T, createTextVNode as De, nextTick as Le } from "vue";
|
|
2
|
-
import { u as ze, c as Ye, t as Be, a as Ve, p as ge, b as Xe, o as Ge, e as j, d as Ue, X as Ee, f as N, i as q, x as pe, q as He, r as We, y as je } from "./index-
|
|
2
|
+
import { u as ze, c as Ye, t as Be, a as Ve, p as ge, b as Xe, o as Ge, e as j, d as Ue, X as Ee, f as N, i as q, x as pe, q as He, r as We, y as je } from "./index-Bu852AzK.js";
|
|
3
3
|
import { t as qe, u as Je } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Ke } from "./Title-
|
|
5
|
-
import { u as Qe, U as Ze } from "./usePrinter-
|
|
6
|
-
import { L as et } from "./Legend-
|
|
7
|
-
import { D as tt } from "./DataTable-
|
|
8
|
-
import { _ as at } from "./Tooltip-
|
|
9
|
-
import lt from "./vue-ui-skeleton-
|
|
10
|
-
import ot from "./vue-ui-accordion-
|
|
11
|
-
import { u as ye } from "./useNestedProp-
|
|
12
|
-
import { _ as rt } from "./PackageVersion-
|
|
4
|
+
import { _ as Ke } from "./Title-B6kWQmNb.js";
|
|
5
|
+
import { u as Qe, U as Ze } from "./usePrinter-CaNEdNUc.js";
|
|
6
|
+
import { L as et } from "./Legend-CZk6McMv.js";
|
|
7
|
+
import { D as tt } from "./DataTable-D1vDu_2B.js";
|
|
8
|
+
import { _ as at } from "./Tooltip-Cwp4dS4t.js";
|
|
9
|
+
import lt from "./vue-ui-skeleton-B-obKEDg.js";
|
|
10
|
+
import ot from "./vue-ui-accordion-CBwmD_zS.js";
|
|
11
|
+
import { u as ye } from "./useNestedProp-1sCLAHuR.js";
|
|
12
|
+
import { _ as rt } from "./PackageVersion-DDKechCD.js";
|
|
13
13
|
import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const nt = ["id"], ut = ["xmlns", "viewBox"], it = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], ct = ["cx", "cy", "r", "stroke", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], dt = ["id"], vt = ["stdDeviation"], ht = ["filter"], ft = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset"], gt = ["cx", "cy", "r", "stroke-width", "stroke-dasharray", "stroke-dashoffset", "onMouseenter"], pt = { key: 1 }, yt = ["onMouseenter"], mt = ["x", "y", "font-size", "fill", "font-weight"], bt = {
|
|
15
15
|
key: 3,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-jAZxyteD.cjs"),le=require("./useResponsive-B3TrDDIG.cjs"),ye=require("./Title-DAEaaXFr.cjs"),fe=require("./Legend-BJdr5n-o.cjs"),ge=require("./Tooltip-Cb9jWppv.cjs"),be=require("./Shape-CHWOgbhq.cjs"),ae=require("./usePrinter-Cx-xmAjb.cjs"),ke=require("./DataTable-kOScyzFF.cjs"),xe=require("./vue-ui-accordion-WXKee19V.cjs"),Ce=require("./vue-ui-skeleton-C14g9G-o.cjs"),oe=require("./useNestedProp-DksYpyh6.cjs"),we=require("./PackageVersion-Tm6EPIDH.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=["id"],$e=["xmlns","viewBox"],ze={style:{"pointer-events":"none"}},Ne=["x1","x2","y1","y2","stroke","stroke-width"],_e=["x","y","fill","font-size","font-weight"],Te=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x","y","fill","font-size","font-weight"],Pe={key:0},Ae=["x","y","font-size","fill"],Me=["width","x","y"],Le={style:{width:"100%"}},Ee=["x","y","fill","font-weight","font-size","onMouseenter"],Ie=["d","stroke","stroke-width","onMouseenter"],Ve={key:3,class:"vue-data-ui-watermark"},De=["onClick"],Oe=["innerHTML"],qe={__name:"vue-ui-parallel-coordinate-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(ne,{expose:se,emit:M}){const b=ne,{vue_ui_parallel_coordinate_plot:re}=i.useConfig(),x=e.computed({get(){return!!b.dataset&&b.dataset.length},set(l){return l}}),L=e.ref(0),w=e.ref(null),E=e.ref(null),I=e.ref(null),V=e.ref(0),D=e.ref(0),O=e.ref(0),N=e.ref(i.createUid()),B=e.ref(!1);function ie(l){B.value=l,L.value+=1}const t=e.computed({get:()=>q(),set:l=>l});function q(){const l=oe.useNestedProp({userConfig:b.config,defaultConfig:re});return l.theme?{...oe.useNestedProp({userConfig:i.themes.vue_ui_parallel_coordinate_plot[l.theme]||b.config,defaultConfig:l}),customPalette:i.themePalettes[l.theme]||i.palette}:l}e.watch(()=>b.config,l=>{t.value=q(),R(),V.value+=1,O.value+=1,D.value+=1},{deep:!0});const $=e.ref(null);e.onMounted(()=>{R()});function R(){if(i.objectIsEmpty(b.dataset)?i.error({componentName:"VueUiParallelCoordinatePlot",type:"dataset"}):b.dataset.forEach((l,o)=>{i.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","series"]}).forEach(a=>{x.value=!1,i.error({componentName:"VueUiParallelCoordinatePlot",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=le.throttle(()=>{const{width:o,height:a}=le.useResponsive({chart:w.value,title:t.value.style.chart.title.text?E.value:null,legend:t.value.style.chart.legend.show?I.value:null});c.value.width=o,c.value.height=a,c.value.plotSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.radius,threshold:2,fallback:2}),c.value.ticksFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.ticks.fontSize,threshold:10,fallback:10}),c.value.datapointFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.datapoints.fontSize,threshold:10,fallback:10}),c.value.axisNameFontSize=i.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.yAxis.labels.axisNamesFontSize,threshold:12,fallback:12})});$.value=new ResizeObserver(l),$.value.observe(w.value.parentNode)}}e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:U,isImaging:W,generatePdf:j,generateImage:H}=ae.usePrinter({elementId:`pcp_${N.value}`,fileName:t.value.style.chart.title.text||"vue-ui-parallel-coordinate-plot"}),c=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width,plotSize:t.value.style.chart.plots.radius,ticksFontSize:t.value.style.chart.yAxis.labels.ticks.fontSize,datapointFontSize:t.value.style.chart.yAxis.labels.datapoints.fontSize,axisNameFontSize:t.value.style.chart.yAxis.labels.axisNamesFontSize}),d=e.computed(()=>{const{top:l,right:o,bottom:a,left:n}=t.value.style.chart.padding,r=c.value.height,s=c.value.width;return{chartHeight:r,chartWidth:s,height:r-l-a,width:s-n-o,top:l,left:n,right:s-o,bottom:r-a}}),ue=e.computed(()=>i.convertCustomPalette(t.value.customPalette)),m=e.ref({dataLabels:{show:t.value.style.chart.yAxis.labels.datapoints.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),f=e.ref([]);function G(l){f.value.includes(l)?f.value=f.value.filter(o=>o!==l):f.value.push(l)}const k=e.computed(()=>b.dataset.map((l,o)=>{const a=i.convertColorToHex(l.color)||ue.value[o]||i.palette[o]||i.palette[o%i.palette.length];return{...l,series:l.series.map(n=>({...n,id:i.createUid(),color:a})),seriesIndex:o,color:a,id:i.createUid(),shape:l.shape||"circle"}})),ce=e.computed(()=>k.value.map(l=>({...l,opacity:f.value.includes(l.id)?.5:1,segregate:()=>G(l.id),isSegregated:f.value.includes(l.id)}))),de=e.computed(()=>({cy:"pcp-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),Y=e.computed(()=>Math.max(...k.value.filter(l=>!f.value.includes(l.id)).map(l=>Math.max(...l.series.flatMap(o=>o.values.length))))),y=e.computed(()=>d.value.width/Y.value),_=e.computed(()=>k.value.filter(l=>!f.value.includes(l.id))),h=e.computed(()=>{let l=[];for(let o=0;o<Y.value;o+=1){const a=Math.min(..._.value.flatMap(v=>v.series.map(z=>z.values[o]||0)||0)),n=Math.max(..._.value.flatMap(v=>v.series.map(z=>z.values[o]||0)||0)),r=n===a?a/4:a,s=n===a?n*2:n,u=i.calculateNiceScale(r,s,t.value.style.chart.yAxis.scaleTicks),g=u.ticks.map((v,z)=>{const he=u.min<0?v+Math.abs(u.min):v-Math.abs(u.min),me=u.min<0?u.max+Math.abs(u.min):u.max-Math.abs(u.min);return{y:d.value.bottom-d.value.height*(he/me),x:d.value.left+y.value*o+y.value/2,value:v}});l.push({scale:u,ticks:g,name:t.value.style.chart.yAxis.labels.axisNames[o]||`Y-${o+1}`})}return l}),T=e.computed(()=>_.value.map((l,o)=>({...l,series:l.series.map((a,n)=>({...a,datapoints:a.values.map((r,s)=>{const u=h.value[s].scale.min<0?(r||0)+Math.abs(h.value[s].scale.min):(r||0)-Math.abs(h.value[s].scale.min),g=h.value[s].scale.min<0?h.value[s].scale.max+Math.abs(h.value[s].scale.min):h.value[s].scale.max-Math.abs(h.value[s].scale.min);return{name:a.name,seriesName:l.name,axisIndex:s,datapointIndex:n,seriesIndex:o,value:r||0,x:d.value.left+y.value*s+y.value/2,y:d.value.bottom-d.value.height*(u/g),comment:a.comments&&a.comments[s]||""}})}))})).map(l=>({...l,series:l.series.map(o=>{const a=i.createStraightPath(o.datapoints),n=i.createSmoothPath(o.datapoints),r=i.getPathLengthFromCoordinates(t.value.style.chart.lines.smooth?`M ${n}`:`M ${a}`);return{...o,smoothPath:n,straightPath:a,pathLength:r}})})));function X({value:l,index:o,datapoint:a}){return i.applyDataLabel(t.value.style.chart.yAxis.labels.formatters[o]||null,l,i.dataLabel({p:t.value.style.chart.yAxis.labels.prefixes[o]||"",v:l,s:t.value.style.chart.yAxis.labels.suffixes[o]||"",r:t.value.style.chart.yAxis.labels.roundings[o]||0}),{datapoint:a,seriesIndex:o})}const p=e.ref(null),F=e.ref(null),S=e.ref(!1),P=e.ref("");function A({shape:l,serieName:o,serie:a,relativeIndex:n,seriesIndex:r}){F.value={serie:a,relativeIndex:n,seriesIndex:r,series:k.value,scales:h.value},S.value=!0,p.value=a.id;let s="";const u=t.value.style.chart.tooltip.customFormat;i.isFunction(u)&&i.functionReturnsString(()=>u({serie:a,seriesIndex:a.seriesIndex,series:k.value,config:t.value,scales:h.value}))?P.value=u({serie:a,seriesIndex:a.seriesIndex,series:k.value,config:t.value,scales:h.value}):(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o?o+" - ":""}${a.name}</div>`,h.value.map(g=>g.name).forEach((g,v)=>{s+=`
|
|
2
2
|
<div class="vue-ui-tooltip-item" style="text-align:left">
|
|
3
3
|
<span>${g}: </span>
|
|
4
4
|
<span>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { computed as f, ref as h, watch as De, onMounted as We, onBeforeUnmount as Ee, openBlock as i, createElementBlock as u, normalizeClass as B, normalizeStyle as z, createBlock as I, createCommentVNode as g, unref as A, createSlots as Be, withCtx as b, renderSlot as x, normalizeProps as R, guardReactiveProps as j, createVNode as xe, Fragment as C, renderList as M, createElementVNode as F, toDisplayString as S, createTextVNode as Re } from "vue";
|
|
2
|
-
import { u as je, c as J, t as Ue, a as Ve, p as U, o as Ge, e as ke, g as He, b as Xe, d as Ye, C as qe,
|
|
2
|
+
import { u as je, c as J, t as Ue, a as Ve, p as U, o as Ge, e as ke, g as He, b as Xe, d as Ye, C as qe, Q as Qe, R as Je, S as Ke, X as Ze, x as Ce, i as we, f as $e, y as et, q as tt, r as at, E as V } from "./index-Bu852AzK.js";
|
|
3
3
|
import { t as lt, u as ot } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as st } from "./Title-
|
|
5
|
-
import { L as nt } from "./Legend-
|
|
6
|
-
import { _ as it } from "./Tooltip-
|
|
7
|
-
import { _ as ut } from "./Shape-
|
|
8
|
-
import { u as rt, U as ct } from "./usePrinter-
|
|
9
|
-
import { D as vt } from "./DataTable-
|
|
10
|
-
import dt from "./vue-ui-accordion-
|
|
11
|
-
import ht from "./vue-ui-skeleton-
|
|
12
|
-
import { u as _e } from "./useNestedProp-
|
|
13
|
-
import { _ as pt } from "./PackageVersion-
|
|
4
|
+
import { _ as st } from "./Title-B6kWQmNb.js";
|
|
5
|
+
import { L as nt } from "./Legend-CZk6McMv.js";
|
|
6
|
+
import { _ as it } from "./Tooltip-Cwp4dS4t.js";
|
|
7
|
+
import { _ as ut } from "./Shape-CY3Tsyaq.js";
|
|
8
|
+
import { u as rt, U as ct } from "./usePrinter-CaNEdNUc.js";
|
|
9
|
+
import { D as vt } from "./DataTable-D1vDu_2B.js";
|
|
10
|
+
import dt from "./vue-ui-accordion-CBwmD_zS.js";
|
|
11
|
+
import ht from "./vue-ui-skeleton-B-obKEDg.js";
|
|
12
|
+
import { u as _e } from "./useNestedProp-1sCLAHuR.js";
|
|
13
|
+
import { _ as pt } from "./PackageVersion-DDKechCD.js";
|
|
14
14
|
import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const yt = ["id"], ft = ["xmlns", "viewBox"], gt = { style: { "pointer-events": "none" } }, bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xt = ["x", "y", "fill", "font-size", "font-weight"], kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ct = ["x", "y", "fill", "font-size", "font-weight"], wt = { key: 0 }, $t = ["x", "y", "font-size", "fill"], _t = ["width", "x", "y"], Tt = { style: { width: "100%" } }, zt = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter"], At = ["d", "stroke", "stroke-width", "onMouseenter"], Mt = {
|
|
16
16
|
key: 3,
|