vue-data-ui 2.6.21 → 2.6.22
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-DQaZQgi6.js → Arrow-Cf2BhlTz.js} +1 -1
- package/dist/{Arrow-C1pcd-am.cjs → Arrow-Dkww_cPT.cjs} +1 -1
- package/dist/{BaseIcon-BQwivF_K.cjs → BaseIcon-CMg_B1n7.cjs} +1 -1
- package/dist/{BaseIcon-DH34CAFx.js → BaseIcon-sQ0Yl3WG.js} +1 -1
- package/dist/{DataTable-DfMqgTjL.js → DataTable-2Igu4lk9.js} +2 -2
- package/dist/{DataTable-D5572vAU.cjs → DataTable-CdAOPHJa.cjs} +1 -1
- package/dist/{Legend-PL8rU0J1.js → Legend-BSuEi9g7.js} +2 -2
- package/dist/{Legend-CoREnR30.cjs → Legend-CWcXXd69.cjs} +1 -1
- package/dist/{PackageVersion-JsuXjgR_.cjs → PackageVersion-D9dPTMdO.cjs} +1 -1
- package/dist/{PackageVersion-1Y7SXTrk.js → PackageVersion-V-_CbVlt.js} +1 -1
- package/dist/{PenAndPaper-7lGhxIH8.cjs → PenAndPaper-Cpwa77pt.cjs} +1 -1
- package/dist/{PenAndPaper-BYhUvcy4.js → PenAndPaper-Dq-ECAue.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-NplvneD1.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-ByFB8slT.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-AmNwJZI7.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DKbZbPIn.js} +3 -3
- package/dist/{Shape-Ov27sl2L.js → Shape-BPvU0s7x.js} +1 -1
- package/dist/{Shape-HtDeeGqp.cjs → Shape-Ca9CTckg.cjs} +1 -1
- package/dist/{Slicer-6F4tHrZR.js → Slicer-CATr5IB9.js} +2 -2
- package/dist/{Slicer-COXIFuZ-.cjs → Slicer-DXEJzT3U.cjs} +1 -1
- package/dist/{Title-1PWD04Gh.js → Title-CUbvh4nY.js} +1 -1
- package/dist/{Title-Pgt1Ixvo.cjs → Title-Vp8RX2Nj.cjs} +1 -1
- package/dist/{Tooltip-BTO5NGkn.js → Tooltip-CYcP5JH9.js} +1 -1
- package/dist/{Tooltip-te_h24w6.cjs → Tooltip-D6K610_p.cjs} +1 -1
- package/dist/{index-DM-Bs-Ua.cjs → index-BCAY_TBF.cjs} +1 -1
- package/dist/{index-DUnEDLbc.js → index-BVM1Hjat.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CEMeoM-f.js → useNestedProp-B7524T_I.js} +1 -1
- package/dist/{useNestedProp-CYy5g-mh.cjs → useNestedProp-Ces_ZEmq.cjs} +1 -1
- package/dist/{usePrinter-Undaynpo.js → usePrinter-BuEZ1Mqw.js} +1 -1
- package/dist/{usePrinter-DbpIk44f.cjs → usePrinter-CMRlY9rc.cjs} +1 -1
- package/dist/{vue-data-ui-DnaIYz0z.js → vue-data-ui-CMHydJ3z.js} +61 -61
- package/dist/{vue-data-ui-BapofDyJ.cjs → vue-data-ui-Cl21-Qn-.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DansBM76.cjs → vue-ui-3d-bar-BB9IHMFV.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-DLYaW0-y.js → vue-ui-3d-bar-CiVt8Lvp.js} +9 -9
- package/dist/{vue-ui-accordion-ZIsT4At8.cjs → vue-ui-accordion-D86VhQnK.cjs} +1 -1
- package/dist/{vue-ui-accordion-C8Couc_G.js → vue-ui-accordion-Zeu2qcSI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BdruKMmo.js → vue-ui-age-pyramid-CaZSG2fN.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BSXnW9GF.cjs → vue-ui-age-pyramid-t5v8gG7E.cjs} +1 -1
- package/dist/{vue-ui-annotator-B7Go0M7W.cjs → vue-ui-annotator-DPQRwLra.cjs} +1 -1
- package/dist/{vue-ui-annotator-DVfdPMa7.js → vue-ui-annotator-DqMnXHaK.js} +1 -1
- package/dist/{vue-ui-bullet-N9ud2cQ7.cjs → vue-ui-bullet-DfJ9YR2-.cjs} +1 -1
- package/dist/{vue-ui-bullet-CkCJgmoJ.js → vue-ui-bullet-oN99bgSq.js} +8 -8
- package/dist/{vue-ui-candlestick-C9B13qeU.js → vue-ui-candlestick-BIznNizW.js} +11 -11
- package/dist/{vue-ui-candlestick-DPIs9tEW.cjs → vue-ui-candlestick-CbvO_6uK.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DgcY4j9y.cjs → vue-ui-carousel-table-DKQSfGt-.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BLo52Rqu.js → vue-ui-carousel-table-DjWEv7sx.js} +4 -4
- package/dist/{vue-ui-chestnut-C9Zw_bey.cjs → vue-ui-chestnut-DJsFMi3a.cjs} +1 -1
- package/dist/{vue-ui-chestnut-D8oXG8Tf.js → vue-ui-chestnut-DtC70R0X.js} +8 -8
- package/dist/{vue-ui-circle-pack-CrEdkNM7.js → vue-ui-circle-pack-Bi3Usmkl.js} +12 -12
- package/dist/vue-ui-circle-pack-KCMKYM9w.cjs +1 -0
- package/dist/{vue-ui-cursor-DkW4pJcP.js → vue-ui-cursor-BbrupWFh.js} +2 -2
- package/dist/{vue-ui-cursor-CtSijliN.cjs → vue-ui-cursor-Bh3F6uU7.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Dh5vRbdI.cjs → vue-ui-dashboard-CR09TdSL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-5_Du0Yr2.js → vue-ui-dashboard-he9hja0v.js} +2 -2
- package/dist/{vue-ui-digits-DEmYk7sS.cjs → vue-ui-digits-CrQuYkCF.cjs} +1 -1
- package/dist/{vue-ui-digits-DhA1bHdz.js → vue-ui-digits-eow8_8IF.js} +2 -2
- package/dist/{vue-ui-donut-B-G7gRdV.js → vue-ui-donut-C2Ab0qsE.js} +12 -12
- package/dist/{vue-ui-donut-BrZxaijU.cjs → vue-ui-donut-Dh75AMUR.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-B4almlBq.js → vue-ui-donut-evolution-C4ZSty9k.js} +11 -11
- package/dist/{vue-ui-donut-evolution-CTbXi7wk.cjs → vue-ui-donut-evolution-CwPKiglD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-kZGa__IU.js → vue-ui-dumbbell-BN8fJSvG.js} +10 -10
- package/dist/{vue-ui-dumbbell-CAIlnhsM.cjs → vue-ui-dumbbell-CafiAGaw.cjs} +1 -1
- package/dist/{vue-ui-flow-D2UNbwlp.cjs → vue-ui-flow-BWm4K97n.cjs} +1 -1
- package/dist/{vue-ui-flow-Bc31ZN1W.js → vue-ui-flow-DKpHc3FI.js} +9 -9
- package/dist/{vue-ui-funnel-DfCz1GNN.cjs → vue-ui-funnel-C25z-XuU.cjs} +1 -1
- package/dist/{vue-ui-funnel-V7hu2Iib.js → vue-ui-funnel-DkmKmnNf.js} +9 -9
- package/dist/{vue-ui-galaxy-DLCcy7Kq.js → vue-ui-galaxy-oV4efmeX.js} +11 -11
- package/dist/{vue-ui-galaxy-CNBC7IbU.cjs → vue-ui-galaxy-wgZKEqln.cjs} +1 -1
- package/dist/{vue-ui-gauge-D8IglqIF.cjs → vue-ui-gauge-CzA2PhpW.cjs} +1 -1
- package/dist/{vue-ui-gauge-CZMHtEcr.js → vue-ui-gauge-DEKM0_3Q.js} +7 -7
- package/dist/{vue-ui-gizmo-fyC414Iv.cjs → vue-ui-gizmo-DlNuWEmn.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BuAVBMBp.js → vue-ui-gizmo-UO3Zkeme.js} +3 -3
- package/dist/{vue-ui-heatmap-hUfFzGck.js → vue-ui-heatmap-E_CcRS7D.js} +10 -10
- package/dist/{vue-ui-heatmap-CDOry_F1.cjs → vue-ui-heatmap-dnvzPPoV.cjs} +1 -1
- package/dist/{vue-ui-history-plot-C79l8rPm.js → vue-ui-history-plot-DRbZ8X1X.js} +11 -11
- package/dist/{vue-ui-history-plot-CIXgvWpk.cjs → vue-ui-history-plot-EWyGCjPe.cjs} +1 -1
- package/dist/{vue-ui-kpi-C3tHthXH.js → vue-ui-kpi-BZxftzEv.js} +3 -3
- package/dist/{vue-ui-kpi-yiWxNLJ-.cjs → vue-ui-kpi-DWJbsdvG.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-26yCYjxn.cjs → vue-ui-mini-loader-BvWPS_gQ.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-1p1jAKx_.js → vue-ui-mini-loader-DsCVKpe9.js} +2 -2
- package/dist/{vue-ui-molecule-Bw0dYLfu.cjs → vue-ui-molecule-BdANdT7O.cjs} +1 -1
- package/dist/{vue-ui-molecule-COQ-yrBr.js → vue-ui-molecule-BnYkqFk0.js} +10 -10
- package/dist/{vue-ui-mood-radar-CwfGiQ43.js → vue-ui-mood-radar-Cgn-5GqE.js} +11 -11
- package/dist/{vue-ui-mood-radar-Cyde9hnR.cjs → vue-ui-mood-radar-D_uLYLXE.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BVaW7w1U.js → vue-ui-nested-donuts-BP9UnBkw.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Y07lLGRa.cjs → vue-ui-nested-donuts-BzOUk2Kz.cjs} +1 -1
- package/dist/{vue-ui-onion-DkXss-B_.cjs → vue-ui-onion-DGw3Ce3f.cjs} +1 -1
- package/dist/{vue-ui-onion-h6DP9kOi.js → vue-ui-onion-vu27Cwcx.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-CkI21cq2.cjs → vue-ui-parallel-coordinate-plot-Bo-yxxDH.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-O5cwKbzH.js → vue-ui-parallel-coordinate-plot-Dy3yQFd1.js} +12 -12
- package/dist/{vue-ui-quadrant-F6w-QJE_.cjs → vue-ui-quadrant-B9GkwB5l.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CfywvXnV.js → vue-ui-quadrant-DgQqkCxk.js} +12 -12
- package/dist/{vue-ui-quick-chart-BeMHD_Kz.cjs → vue-ui-quick-chart-CMQFeKWK.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-C1AwFGSr.js → vue-ui-quick-chart-DcpVDq8t.js} +9 -9
- package/dist/{vue-ui-radar-BejYh3DW.cjs → vue-ui-radar-CnqMJrEU.cjs} +1 -1
- package/dist/{vue-ui-radar-DDKXLi5o.js → vue-ui-radar-cwhwGVar.js} +12 -12
- package/dist/{vue-ui-rating-BrGbM0Op.js → vue-ui-rating-BmtemUqF.js} +2 -2
- package/dist/{vue-ui-rating-C40ktvn7.cjs → vue-ui-rating-Bub3mYba.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DrtdiTMX.js → vue-ui-relation-circle-BerdR_4-.js} +7 -7
- package/dist/{vue-ui-relation-circle-C4qT13SI.cjs → vue-ui-relation-circle-D0py_PRH.cjs} +1 -1
- package/dist/{vue-ui-rings-C4IdhEUE.js → vue-ui-rings-BSm_KC-r.js} +12 -12
- package/dist/{vue-ui-rings-Cd8WyeDZ.cjs → vue-ui-rings-zQ-4JnNS.cjs} +1 -1
- package/dist/{vue-ui-scatter-BS8sgyMi.js → vue-ui-scatter-D0dIO0lS.js} +12 -12
- package/dist/{vue-ui-scatter-MmvIeu4D.cjs → vue-ui-scatter-DXAm7w2U.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BB51-eRL.cjs → vue-ui-screenshot-BdJzHzn9.cjs} +1 -1
- package/dist/{vue-ui-screenshot-tnFPT1vi.js → vue-ui-screenshot-_KsufqYT.js} +1 -1
- package/dist/{vue-ui-skeleton-DlC-U64G.cjs → vue-ui-skeleton-CNtHe3B_.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DieABKlo.js → vue-ui-skeleton-CjC_RR5C.js} +3 -3
- package/dist/{vue-ui-smiley-DSxKw3ud.cjs → vue-ui-smiley-C-dKXMYz.cjs} +1 -1
- package/dist/{vue-ui-smiley-C32wVXgu.js → vue-ui-smiley-CdYhD3n7.js} +2 -2
- package/dist/{vue-ui-spark-trend-B_x1dX38.js → vue-ui-spark-trend-DT0q7zha.js} +5 -5
- package/dist/{vue-ui-spark-trend-vexkCCy9.cjs → vue-ui-spark-trend-ZSffEbvM.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CsOEiHDQ.cjs → vue-ui-sparkbar-Ca8RoM26.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-ZSbB6Llo.js → vue-ui-sparkbar-hm3wy78R.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Cf3bDk98.js → vue-ui-sparkgauge-Dsy3BtE1.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Bdh7X--h.cjs → vue-ui-sparkgauge-Wzb-9Nec.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-fALwb3uK.cjs → vue-ui-sparkhistogram-CcyyqdgC.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CrZy1xf0.js → vue-ui-sparkhistogram-DIccfqcP.js} +5 -5
- package/dist/{vue-ui-sparkline-D4WDvcZR.cjs → vue-ui-sparkline-CJfM9R-P.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DTW_lXgp.js → vue-ui-sparkline-edCpjS99.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DBPLhUoi.cjs → vue-ui-sparkstackbar-BCkwH7OH.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Db2Ndf0k.js → vue-ui-sparkstackbar-UzWOXV8T.js} +5 -5
- package/dist/{vue-ui-stackbar-B3eaSIoO.cjs → vue-ui-stackbar-DLw1lhqT.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DbF3ZJTD.js → vue-ui-stackbar-DtxiLdkG.js} +13 -13
- package/dist/{vue-ui-strip-plot-DiCVf5u-.cjs → vue-ui-strip-plot-Bot6lWVZ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CpkH2Gfd.js → vue-ui-strip-plot-DZBPceJC.js} +11 -11
- package/dist/{vue-ui-table-K13fqkDI.cjs → vue-ui-table-CyT0sQtg.cjs} +1 -1
- package/dist/{vue-ui-table-D6zWwikN.js → vue-ui-table-DR-vUv2U.js} +1 -1
- package/dist/{vue-ui-table-heatmap-EAevgnzN.js → vue-ui-table-heatmap-D4JBAEBg.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BgenCoVa.cjs → vue-ui-table-heatmap-IsfxseMB.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-s_oWe6MG.js → vue-ui-table-sparkline-ClYyMljO.js} +5 -5
- package/dist/{vue-ui-table-sparkline-3JMqr89P.cjs → vue-ui-table-sparkline-Do9vWT7v.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Bo3l_0Kf.js → vue-ui-thermometer-CY0Gi2uj.js} +7 -7
- package/dist/{vue-ui-thermometer--mYRly4x.cjs → vue-ui-thermometer-CkN0NXuR.cjs} +1 -1
- package/dist/{vue-ui-timer-Djh-ZDNe.cjs → vue-ui-timer-Zx3zQyAq.cjs} +1 -1
- package/dist/{vue-ui-timer-C9EuUurN.js → vue-ui-timer-t0fSn-_9.js} +5 -5
- package/dist/{vue-ui-tiremarks-CKv_KApZ.cjs → vue-ui-tiremarks-0JbzmUh6.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DgdpEDJ1.js → vue-ui-tiremarks-5YPN_NoO.js} +7 -7
- package/dist/{vue-ui-treemap-AkNJjd2c.cjs → vue-ui-treemap-B4BUhmni.cjs} +1 -1
- package/dist/{vue-ui-treemap-D13sISL0.js → vue-ui-treemap-kwbjdy0P.js} +11 -11
- package/dist/{vue-ui-vertical-bar-CQlvpdJl.cjs → vue-ui-vertical-bar-CCNvuAMI.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DfegzHj4.js → vue-ui-vertical-bar-DRuH5f-B.js} +12 -12
- package/dist/{vue-ui-waffle-f72Lq8_D.js → vue-ui-waffle-B9zlDgeL.js} +12 -12
- package/dist/{vue-ui-waffle-Dve1LWVt.cjs → vue-ui-waffle-CqVwTFrC.cjs} +1 -1
- package/dist/{vue-ui-wheel-BxefMdit.js → vue-ui-wheel-CAS9hnki.js} +7 -7
- package/dist/{vue-ui-wheel-BG1GcVvN.cjs → vue-ui-wheel-CGWDNbH-.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BYY4K2G4.js → vue-ui-word-cloud-BKRBPyWR.js} +10 -10
- package/dist/{vue-ui-word-cloud-CRRR7H7h.cjs → vue-ui-word-cloud-CxbTioTG.cjs} +1 -1
- package/dist/{vue-ui-xy-DGYZFgdd.cjs → vue-ui-xy-DRn-1RsC.cjs} +1 -1
- package/dist/{vue-ui-xy-BS0_aTIH.js → vue-ui-xy-D_OI_ry8.js} +14 -14
- package/dist/{vue-ui-xy-canvas-Bl2v7Z3U.js → vue-ui-xy-canvas-DXDh8Vzd.js} +12 -12
- package/dist/{vue-ui-xy-canvas-R_pPaj0X.cjs → vue-ui-xy-canvas-DrjjMaQM.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-circle-pack-DYW-e2E5.cjs +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ref as i, computed as T, onMounted as _e, nextTick as Ie, onBeforeUnmount as bt, watch as te, createElementBlock as X, openBlock as C, Fragment as We, createCommentVNode as le, normalizeClass as fe, createElementVNode as U, withDirectives as Ut, normalizeStyle as W, createVNode as ke, vModelText as Wt, withModifiers as dt, unref as D, renderList as Vt, useSlots as Zt, createBlock as ue, createSlots as _t, withCtx as z, renderSlot as M, normalizeProps as ve, guardReactiveProps as de, toDisplayString as ht, createTextVNode as Gt } from "vue";
|
|
2
|
-
import { l as xt, X as jt, u as qt, c as Qt, t as Jt, p as he, a as Kt, C as Ne, b as el, D as Ve, i as be, f as xe, d as ft, _ as tl, J as ll, aa as al, o as ol, e as rl, x as yt, q as nl, r as sl, y as ul, s as Me } from "./index-
|
|
2
|
+
import { l as xt, X as jt, u as qt, c as Qt, t as Jt, p as he, a as Kt, C as Ne, b as el, D as Ve, i as be, f as xe, d as ft, _ as tl, J as ll, aa as al, o as ol, e as rl, x as yt, q as nl, r as sl, y as ul, s as Me } from "./index-BVM1Hjat.js";
|
|
3
3
|
import { d as il, t as cl, u as vl, c as dl, a as gt, l as I, r as Ze, b as ee, p as pt } from "./useResponsive-vZgZwV-S.js";
|
|
4
|
-
import { _ as hl } from "./Tooltip-
|
|
5
|
-
import { L as fl } from "./Legend-
|
|
6
|
-
import { _ as yl } from "./Title-
|
|
7
|
-
import { S as gl } from "./Slicer-
|
|
8
|
-
import { u as pl, U as ml } from "./usePrinter-
|
|
9
|
-
import bl from "./vue-ui-accordion-
|
|
10
|
-
import { D as xl } from "./DataTable-
|
|
11
|
-
import kl from "./vue-ui-skeleton-
|
|
12
|
-
import { u as mt } from "./useNestedProp-
|
|
13
|
-
import Ye from "./BaseIcon-
|
|
4
|
+
import { _ as hl } from "./Tooltip-CYcP5JH9.js";
|
|
5
|
+
import { L as fl } from "./Legend-BSuEi9g7.js";
|
|
6
|
+
import { _ as yl } from "./Title-CUbvh4nY.js";
|
|
7
|
+
import { S as gl } from "./Slicer-CATr5IB9.js";
|
|
8
|
+
import { u as pl, U as ml } from "./usePrinter-BuEZ1Mqw.js";
|
|
9
|
+
import bl from "./vue-ui-accordion-Zeu2qcSI.js";
|
|
10
|
+
import { D as xl } from "./DataTable-2Igu4lk9.js";
|
|
11
|
+
import kl from "./vue-ui-skeleton-CjC_RR5C.js";
|
|
12
|
+
import { u as mt } from "./useNestedProp-B7524T_I.js";
|
|
13
|
+
import Ye from "./BaseIcon-sQ0Yl3WG.js";
|
|
14
14
|
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
import { C as Ll } from "./PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-
|
|
15
|
+
import { C as Ll } from "./PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DKbZbPIn.js";
|
|
16
16
|
import { u as Cl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
17
17
|
import { u as wl } from "./useChartAccessibility-BWojgys7.js";
|
|
18
18
|
const $l = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-DM-Bs-Ua.cjs"),p=require("./useResponsive-N8jl0-aC.cjs"),vt=require("./Tooltip-te_h24w6.cjs"),dt=require("./Legend-CoREnR30.cjs"),ht=require("./Title-Pgt1Ixvo.cjs"),ft=require("./Slicer-COXIFuZ-.cjs"),Ye=require("./usePrinter-DbpIk44f.cjs"),yt=require("./vue-ui-accordion-ZIsT4At8.cjs"),pt=require("./DataTable-D5572vAU.cjs"),gt=require("./vue-ui-skeleton-DlC-U64G.cjs"),He=require("./useNestedProp-CYy5g-mh.cjs"),me=require("./BaseIcon-BQwivF_K.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),mt=require("./PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-NplvneD1.cjs"),bt=require("./useUserOptionState-BgepsfED.cjs"),xt=require("./useChartAccessibility-Cm7nkzTG.cjs"),kt={class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Lt=["disabled"],Ct=["xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],$t=["d","stroke","stroke-width"],zt={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup($,{emit:be}){const X=$,xe=be,x=l.ref([]),D=l.ref([]),_=l.ref("0 0 0 0"),V=l.ref(X.color),c=l.ref(1),k=l.computed(()=>u.lightenHexColor(X.color,.6));function F({width:h,height:v}){_.value=`0 0 ${h} ${v}`}const U=l.ref(null);l.onMounted(()=>{l.nextTick(()=>{if(X.parent){U.value=new ResizeObserver(s=>{for(const d of s){const{width:g,height:C}=d.contentRect;F({width:g,height:C})}}),U.value.observe(X.parent);const{width:h,height:v}=X.parent.getBoundingClientRect();F({width:h,height:v})}})}),l.onBeforeUnmount(()=>{U.value&&U.value.disconnect()}),l.watch(()=>X.parent,h=>{if(!h)return;const{width:v,height:s}=X.parent.getBoundingClientRect();F({width:v,height:s})},{immediate:!0});const f=l.ref(!1),A=l.ref(""),Z=l.ref(null);function I(h){if(!Z.value)return;f.value=!0;const{x:v,y:s}=re(h);A.value=`M ${v} ${s}`}function q(h){if(!f.value||!Z.value)return;const{x:v,y:s}=re(h);A.value+=` ${v} ${s}`}function Y(h){const v=h.trim().split(/\s+/);if(v.length<4)return h;const s=v.slice(1).map(Number);if(s.length%2!==0)return h;const d=G(s),g=[`M ${d[0]} ${d[1]}`];for(let E=2;E<d.length-2;E+=2){const t=d[E-2],M=d[E-1],P=d[E],T=d[E+1],B=(t+P)/2,j=(M+T)/2;g.push(`Q ${t} ${M} ${B} ${j}`)}const C=d[d.length-2],S=d[d.length-1];return g.push(`L ${C} ${S}`),g.join(" ")}function G(h,v=1){const s=[...h];for(let d=2;d<h.length-2;d+=2){const g=h[d],C=h[d+1],S=h[d-2],E=h[d-1],t=h[d+2],M=h[d+3];s[d]=g+v*((S+t)/2-g),s[d+1]=C+v*((E+M)/2-C)}return s}function oe(h){const v=h.trim().split(/\s+/);let s="",d="",g=null,C=null;for(let S=0;S<v.length;S+=1){const E=v[S];if(isNaN(E)){if(d=E,d==="M"||d==="L")g=parseFloat(v[++S]),C=parseFloat(v[++S]),s+=`${d}${g} ${C}`;else if(d==="Q"){const t=parseFloat(v[++S]),M=parseFloat(v[++S]),P=parseFloat(v[++S]),T=parseFloat(v[++S]);t===g&&M===C?s+=`t${P-g} ${T-C}`:s+=`q${t-g} ${M-C} ${P-g} ${T-C}`,g=P,C=T}}else{const t=parseFloat(E),M=parseFloat(v[++S]);if(d==="L"){const P=t-g,T=M-C;P===0?s+=`v${T}`:T===0?s+=`h${P}`:s+=`l${P} ${T}`,g=t,C=M}else if(d==="Q"){const P=t,T=M,B=parseFloat(v[++S]),j=parseFloat(v[++S]);P===g&&T===C?s+=`t${B-g} ${j-C}`:s+=`q${P-g} ${T-C} ${B-g} ${j-C}`,g=B,C=j}}}return s}function ee(){f.value&&(x.value.push({strokeWidth:c.value,path:oe(Y(A.value)),color:V.value}),D.value=[],A.value=""),f.value=!1}function re(h){if(!Z.value)return{x:0,y:0};const v=Z.value.getBoundingClientRect();let s,d;return h.touches&&h.touches.length?(s=h.touches[0].clientX,d=h.touches[0].clientY):(s=h.clientX,d=h.clientY),{x:s-v.left,y:d-v.top}}l.ref(!1);function te(){if(x.value.length>0){const h=x.value.pop();D.value.push(h)}}function ce(){if(D.value.length>0){const h=D.value.pop();x.value.push(h)}}function ve(){x.value=[],D.value=[]}const de=l.ref(null);return(h,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[$.active?(l.openBlock(),l.createElementBlock("div",{key:0,"data-html2canvas-ignore":"",class:l.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:$.active})},[l.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:v[0]||(v[0]=s=>xe("close"))},[l.createVNode(me.default,{name:"close",stroke:$.color},null,8,["stroke"])],4),l.createElementVNode("button",kt,[l.createVNode(mt.ColorPicker,{value:V.value,"onUpdate:value":v[1]||(v[1]=s=>V.value=s),backgroundColor:$.backgroundColor,buttonBorderColor:k.value},null,8,["value","backgroundColor","buttonBorderColor"])]),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length}),disabled:!x.value.length,style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:te},[l.createVNode(me.default,{name:"restart",stroke:$.color},null,8,["stroke"])],14,Lt),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!D.value.length}),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ce},[l.createVNode(me.default,{name:"restart",stroke:$.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),l.createElementVNode("button",{class:l.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length},"vue-ui-pen-and-paper-action"]),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ve},[l.createVNode(me.default,{name:"trash",stroke:$.color},null,8,["stroke"])],6),l.withDirectives(l.createElementVNode("input",{ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":v[2]||(v[2]=s=>c.value=s),style:l.normalizeStyle({accentColor:$.color})},null,4),[[l.vModelText,c.value]])],2)):l.createCommentVNode("",!0),(l.openBlock(),l.createElementBlock("svg",{ref_key:"svgElement",ref:Z,xmlns:l.unref(u.XMLNS),viewBox:_.value,class:l.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!$.active}),onMousedown:I,onMousemove:q,onMouseup:ee,onMouseleave:ee,onTouchstart:l.withModifiers(I,["prevent"]),onTouchmove:l.withModifiers(q,["prevent"]),onTouchend:ee},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,s=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:s},[s.path.replace("M","").split(" ").length===2?(l.openBlock(),l.createElementBlock("circle",{key:0,cx:s.path.replace("M","").split(" ")[0],cy:s.path.replace("M","").split(" ")[1],r:s.strokeWidth/2,fill:s.color},null,8,wt)):(l.openBlock(),l.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:s.path,stroke:s.color,"stroke-width":s.strokeWidth,fill:"none"},null,8,St))],64))),128)),f.value?(l.openBlock(),l.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:Y(A.value),stroke:V.value,"stroke-width":c.value*1.1,fill:"none"},null,8,$t)):l.createCommentVNode("",!0)],42,Ct))],64))}},Mt=Xe._export_sfc(zt,[["__scopeId","data-v-1ffe1d80"]]),Pt=["id"],Tt=["onClick"],Bt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],Et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup($,{expose:be,emit:X}){const{vue_ui_xy_canvas:xe}=u.useConfig(),x=$,D=l.ref(u.createUid()),_=l.ref(null),V=l.ref(null),c=l.ref(null),k=l.ref(1),F=l.ref(1),U=l.ref(!1),f=l.ref(null),A=l.ref(""),Z=l.ref(null),I=l.ref([]),q=l.ref(1),Y=l.ref(!0),G=l.ref(!0),oe=l.ref(null),ee=l.ref(0),re=l.ref(0),te=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),h=l.ref(null),v=l.ref(0),s=l.ref(0),d=l.ref(0),g=l.ref(null),C=l.computed(()=>!!x.dataset&&x.dataset.length),S=X,E=l.useSlots();l.onMounted(()=>{E["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>j(),set:e=>e}),{userOptionsVisible:M,setUserOptionsVisibility:P,keepUserOptionState:T}=bt.useUserOptionState({config:t.value}),{svgRef:B}=xt.useChartAccessibility({config:t.value.style.chart.title});function j(){const e=He.useNestedProp({userConfig:x.config,defaultConfig:xe});let o={};return e.theme?o={...He.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:o=e,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=x.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=x.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>x.config,e=>{t.value=j(),M.value=!t.value.userOptions.showOnChartHover,ke(),v.value+=1,s.value+=1,d.value+=1,i.value.showTable=t.value.table.show,i.value.showDataLabels=t.value.style.chart.dataLabels.show,i.value.stacked=t.value.style.chart.stacked,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>x.dataset,()=>{ke(),v.value+=1,s.value+=1,d.value+=1},{deep:!0});const Ce=l.ref(t.value.style.chart.aspectRatio),{isPrinting:we,isImaging:Se,generatePdf:$e,generateImage:ze}=Ye.usePrinter({elementId:`xy_canvas_${D.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),i=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ue(e){te.value=e,re.value+=1}const Me=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=l.computed(()=>le.value?Math.max(...le.value.filter((e,o)=>!I.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=k.value-k.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:k.value,canvasHeight:F.value,left:k.value*t.value.style.chart.paddingProportions.left,top:F.value*t.value.style.chart.paddingProportions.top,right:k.value-k.value*t.value.style.chart.paddingProportions.right,bottom:F.value-F.value*t.value.style.chart.paddingProportions.bottom,width:e,height:F.value-F.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Pe(e,o){return e/o}function qe({hasAutoScale:e,series:o,min:r,max:y,scale:b,yOffset:R,individualHeight:m,stackIndex:w=null}){return o.map((J,O)=>{const Q=b.min<0?Math.abs(b.min):0,K=Pe(J+Q,Q+b.max);let se,ie;e&&(se=b.min,ie=Pe(J-se,b.max-se));let W=0;return w===null?W=a.value.bottom-a.value.height*(e?ie:K):W=a.value.bottom-R-m*(e?ie:K),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:W,value:J}})}const z=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),y=r.min<0?Math.abs(r.min):0,b=a.value.bottom-a.value.height*(y/(r.max+y)),R=r.ticks.map(m=>({y:a.value.bottom-a.value.height*((m+y)/(r.max+y)),x:a.value.left-8,value:m}));return{absoluteMin:y,max:o,min:e,scale:r,yLabels:R,zero:b}}),We=l.computed(()=>L.value.map(e=>`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-BCAY_TBF.cjs"),p=require("./useResponsive-N8jl0-aC.cjs"),vt=require("./Tooltip-D6K610_p.cjs"),dt=require("./Legend-CWcXXd69.cjs"),ht=require("./Title-Vp8RX2Nj.cjs"),ft=require("./Slicer-DXEJzT3U.cjs"),Ye=require("./usePrinter-CMRlY9rc.cjs"),yt=require("./vue-ui-accordion-D86VhQnK.cjs"),pt=require("./DataTable-CdAOPHJa.cjs"),gt=require("./vue-ui-skeleton-CNtHe3B_.cjs"),He=require("./useNestedProp-Ces_ZEmq.cjs"),me=require("./BaseIcon-CMg_B1n7.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),mt=require("./PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-ByFB8slT.cjs"),bt=require("./useUserOptionState-BgepsfED.cjs"),xt=require("./useChartAccessibility-Cm7nkzTG.cjs"),kt={class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Lt=["disabled"],Ct=["xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],$t=["d","stroke","stroke-width"],zt={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup($,{emit:be}){const X=$,xe=be,x=l.ref([]),D=l.ref([]),_=l.ref("0 0 0 0"),V=l.ref(X.color),c=l.ref(1),k=l.computed(()=>u.lightenHexColor(X.color,.6));function F({width:h,height:v}){_.value=`0 0 ${h} ${v}`}const U=l.ref(null);l.onMounted(()=>{l.nextTick(()=>{if(X.parent){U.value=new ResizeObserver(s=>{for(const d of s){const{width:g,height:C}=d.contentRect;F({width:g,height:C})}}),U.value.observe(X.parent);const{width:h,height:v}=X.parent.getBoundingClientRect();F({width:h,height:v})}})}),l.onBeforeUnmount(()=>{U.value&&U.value.disconnect()}),l.watch(()=>X.parent,h=>{if(!h)return;const{width:v,height:s}=X.parent.getBoundingClientRect();F({width:v,height:s})},{immediate:!0});const f=l.ref(!1),A=l.ref(""),Z=l.ref(null);function I(h){if(!Z.value)return;f.value=!0;const{x:v,y:s}=re(h);A.value=`M ${v} ${s}`}function q(h){if(!f.value||!Z.value)return;const{x:v,y:s}=re(h);A.value+=` ${v} ${s}`}function Y(h){const v=h.trim().split(/\s+/);if(v.length<4)return h;const s=v.slice(1).map(Number);if(s.length%2!==0)return h;const d=G(s),g=[`M ${d[0]} ${d[1]}`];for(let E=2;E<d.length-2;E+=2){const t=d[E-2],M=d[E-1],P=d[E],T=d[E+1],B=(t+P)/2,j=(M+T)/2;g.push(`Q ${t} ${M} ${B} ${j}`)}const C=d[d.length-2],S=d[d.length-1];return g.push(`L ${C} ${S}`),g.join(" ")}function G(h,v=1){const s=[...h];for(let d=2;d<h.length-2;d+=2){const g=h[d],C=h[d+1],S=h[d-2],E=h[d-1],t=h[d+2],M=h[d+3];s[d]=g+v*((S+t)/2-g),s[d+1]=C+v*((E+M)/2-C)}return s}function oe(h){const v=h.trim().split(/\s+/);let s="",d="",g=null,C=null;for(let S=0;S<v.length;S+=1){const E=v[S];if(isNaN(E)){if(d=E,d==="M"||d==="L")g=parseFloat(v[++S]),C=parseFloat(v[++S]),s+=`${d}${g} ${C}`;else if(d==="Q"){const t=parseFloat(v[++S]),M=parseFloat(v[++S]),P=parseFloat(v[++S]),T=parseFloat(v[++S]);t===g&&M===C?s+=`t${P-g} ${T-C}`:s+=`q${t-g} ${M-C} ${P-g} ${T-C}`,g=P,C=T}}else{const t=parseFloat(E),M=parseFloat(v[++S]);if(d==="L"){const P=t-g,T=M-C;P===0?s+=`v${T}`:T===0?s+=`h${P}`:s+=`l${P} ${T}`,g=t,C=M}else if(d==="Q"){const P=t,T=M,B=parseFloat(v[++S]),j=parseFloat(v[++S]);P===g&&T===C?s+=`t${B-g} ${j-C}`:s+=`q${P-g} ${T-C} ${B-g} ${j-C}`,g=B,C=j}}}return s}function ee(){f.value&&(x.value.push({strokeWidth:c.value,path:oe(Y(A.value)),color:V.value}),D.value=[],A.value=""),f.value=!1}function re(h){if(!Z.value)return{x:0,y:0};const v=Z.value.getBoundingClientRect();let s,d;return h.touches&&h.touches.length?(s=h.touches[0].clientX,d=h.touches[0].clientY):(s=h.clientX,d=h.clientY),{x:s-v.left,y:d-v.top}}l.ref(!1);function te(){if(x.value.length>0){const h=x.value.pop();D.value.push(h)}}function ce(){if(D.value.length>0){const h=D.value.pop();x.value.push(h)}}function ve(){x.value=[],D.value=[]}const de=l.ref(null);return(h,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[$.active?(l.openBlock(),l.createElementBlock("div",{key:0,"data-html2canvas-ignore":"",class:l.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:$.active})},[l.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:v[0]||(v[0]=s=>xe("close"))},[l.createVNode(me.default,{name:"close",stroke:$.color},null,8,["stroke"])],4),l.createElementVNode("button",kt,[l.createVNode(mt.ColorPicker,{value:V.value,"onUpdate:value":v[1]||(v[1]=s=>V.value=s),backgroundColor:$.backgroundColor,buttonBorderColor:k.value},null,8,["value","backgroundColor","buttonBorderColor"])]),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length}),disabled:!x.value.length,style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:te},[l.createVNode(me.default,{name:"restart",stroke:$.color},null,8,["stroke"])],14,Lt),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!D.value.length}),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ce},[l.createVNode(me.default,{name:"restart",stroke:$.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),l.createElementVNode("button",{class:l.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length},"vue-ui-pen-and-paper-action"]),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ve},[l.createVNode(me.default,{name:"trash",stroke:$.color},null,8,["stroke"])],6),l.withDirectives(l.createElementVNode("input",{ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":v[2]||(v[2]=s=>c.value=s),style:l.normalizeStyle({accentColor:$.color})},null,4),[[l.vModelText,c.value]])],2)):l.createCommentVNode("",!0),(l.openBlock(),l.createElementBlock("svg",{ref_key:"svgElement",ref:Z,xmlns:l.unref(u.XMLNS),viewBox:_.value,class:l.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!$.active}),onMousedown:I,onMousemove:q,onMouseup:ee,onMouseleave:ee,onTouchstart:l.withModifiers(I,["prevent"]),onTouchmove:l.withModifiers(q,["prevent"]),onTouchend:ee},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,s=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:s},[s.path.replace("M","").split(" ").length===2?(l.openBlock(),l.createElementBlock("circle",{key:0,cx:s.path.replace("M","").split(" ")[0],cy:s.path.replace("M","").split(" ")[1],r:s.strokeWidth/2,fill:s.color},null,8,wt)):(l.openBlock(),l.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:s.path,stroke:s.color,"stroke-width":s.strokeWidth,fill:"none"},null,8,St))],64))),128)),f.value?(l.openBlock(),l.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:Y(A.value),stroke:V.value,"stroke-width":c.value*1.1,fill:"none"},null,8,$t)):l.createCommentVNode("",!0)],42,Ct))],64))}},Mt=Xe._export_sfc(zt,[["__scopeId","data-v-1ffe1d80"]]),Pt=["id"],Tt=["onClick"],Bt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],Et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup($,{expose:be,emit:X}){const{vue_ui_xy_canvas:xe}=u.useConfig(),x=$,D=l.ref(u.createUid()),_=l.ref(null),V=l.ref(null),c=l.ref(null),k=l.ref(1),F=l.ref(1),U=l.ref(!1),f=l.ref(null),A=l.ref(""),Z=l.ref(null),I=l.ref([]),q=l.ref(1),Y=l.ref(!0),G=l.ref(!0),oe=l.ref(null),ee=l.ref(0),re=l.ref(0),te=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),h=l.ref(null),v=l.ref(0),s=l.ref(0),d=l.ref(0),g=l.ref(null),C=l.computed(()=>!!x.dataset&&x.dataset.length),S=X,E=l.useSlots();l.onMounted(()=>{E["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>j(),set:e=>e}),{userOptionsVisible:M,setUserOptionsVisibility:P,keepUserOptionState:T}=bt.useUserOptionState({config:t.value}),{svgRef:B}=xt.useChartAccessibility({config:t.value.style.chart.title});function j(){const e=He.useNestedProp({userConfig:x.config,defaultConfig:xe});let o={};return e.theme?o={...He.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:o=e,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=x.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=x.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>x.config,e=>{t.value=j(),M.value=!t.value.userOptions.showOnChartHover,ke(),v.value+=1,s.value+=1,d.value+=1,i.value.showTable=t.value.table.show,i.value.showDataLabels=t.value.style.chart.dataLabels.show,i.value.stacked=t.value.style.chart.stacked,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>x.dataset,()=>{ke(),v.value+=1,s.value+=1,d.value+=1},{deep:!0});const Ce=l.ref(t.value.style.chart.aspectRatio),{isPrinting:we,isImaging:Se,generatePdf:$e,generateImage:ze}=Ye.usePrinter({elementId:`xy_canvas_${D.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),i=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ue(e){te.value=e,re.value+=1}const Me=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=l.computed(()=>le.value?Math.max(...le.value.filter((e,o)=>!I.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=k.value-k.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:k.value,canvasHeight:F.value,left:k.value*t.value.style.chart.paddingProportions.left,top:F.value*t.value.style.chart.paddingProportions.top,right:k.value-k.value*t.value.style.chart.paddingProportions.right,bottom:F.value-F.value*t.value.style.chart.paddingProportions.bottom,width:e,height:F.value-F.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Pe(e,o){return e/o}function qe({hasAutoScale:e,series:o,min:r,max:y,scale:b,yOffset:R,individualHeight:m,stackIndex:w=null}){return o.map((J,O)=>{const Q=b.min<0?Math.abs(b.min):0,K=Pe(J+Q,Q+b.max);let se,ie;e&&(se=b.min,ie=Pe(J-se,b.max-se));let W=0;return w===null?W=a.value.bottom-a.value.height*(e?ie:K):W=a.value.bottom-R-m*(e?ie:K),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:W,value:J}})}const z=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),y=r.min<0?Math.abs(r.min):0,b=a.value.bottom-a.value.height*(y/(r.max+y)),R=r.ticks.map(m=>({y:a.value.bottom-a.value.height*((m+y)/(r.max+y)),x:a.value.left-8,value:m}));return{absoluteMin:y,max:o,min:e,scale:r,yLabels:R,zero:b}}),We=l.computed(()=>L.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DM-Bs-Ua.cjs"),se=require("./useNestedProp-CYy5g-mh.cjs"),ue=require("./usePrinter-DbpIk44f.cjs"),we=require("./Title-Pgt1Ixvo.cjs"),ze=require("./PenAndPaper-7lGhxIH8.cjs"),_e=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./PackageVersion-JsuXjgR_.cjs"),$e=require("./vue-ui-accordion-ZIsT4At8.cjs"),Ne=require("./DataTable-D5572vAU.cjs"),Se=require("./vue-ui-skeleton-DlC-U64G.cjs"),Pe=require("./useChartAccessibility-Cm7nkzTG.cjs"),ie=require("./useResponsive-N8jl0-aC.cjs"),Te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function ce(u,d=0){const m=u.reduce((a,{x:r,r:c})=>Math.min(a,r-c-d),1/0),i=u.reduce((a,{x:r,r:c})=>Math.max(a,r+c+d),-1/0),f=u.reduce((a,{y:r,r:c})=>Math.min(a,r-c-d),1/0),n=u.reduce((a,{y:r,r:c})=>Math.max(a,r+c+d),-1/0);return[m,f,i-m,n-f]}function Ee(u,d,m){const i=u._,f=u.next._,n=i.r+f.r,a=(i.x*f.r+f.x*i.r)/n,r=(i.y*f.r+f.y*i.r)/n;return Math.max(Math.abs(a*m),Math.abs(r*d))}function ve(u,d,m){const i=Ee,f=u.length;if(!f)return u;let n,a,r;if(n=u[0],n.x=0,n.y=0,!(f>1)||(a=u[1],n.x=-a.r,a.x=n.r,a.y=0,!(f>2)))return u;de(a,n,r=u[2]),n=new A(n),a=new A(a),r=new A(r),n.next=r.previous=a,a.next=n.previous=r,r.next=a.previous=n;e:for(let c=3;c<f;++c){de(n._,a._,r=u[c]),r=new A(r);let y=a.next,g=n.previous,$=a._.r,N=n._.r;do if($<=N){if(fe(y._,r._)){a=y,n.next=a,a.previous=n,--c;continue e}$+=y._.r,y=y.next}else{if(fe(g._,r._)){n=g,n.next=a,a.previous=n,--c;continue e}N+=g._.r,g=g.previous}while(y!==g.next);r.previous=n,r.next=a,n.next=a.previous=a=r;let S=i(n,m,d),I;for(;(r=r.next)!==a;)(I=i(r,m,d))<S&&(n=r,S=I);a=n.next}return u}function de(u,d,m){const i=u.x-d.x,f=u.y-d.y,n=i*i+f*f;if(n){const a=(d.r+m.r)**2,r=(u.r+m.r)**2;if(a>r){const c=(n+r-a)/(2*n),y=Math.sqrt(Math.max(0,r/n-c*c));m.x=u.x-c*i-y*f,m.y=u.y-c*f+y*i}else{const c=(n+a-r)/(2*n),y=Math.sqrt(Math.max(0,a/n-c*c));m.x=d.x+c*i-y*f,m.y=d.y+c*f+y*i}}else m.x=d.x+m.r,m.y=d.y}function fe(u,d){const m=u.r+d.r-1e-6,i=d.x-u.x,f=d.y-u.y;return m>0&&m*m>i*i+f*f}class A{constructor(d){this._=d,this.next=null,this.previous=null}}const Ve=["id"],Oe=["xmlns","viewBox","height","width"],Ie=["x","y","width","height"],Fe=["id"],Re=["stop-color"],Me=["stop-color"],Ae=["stop-color"],qe={key:0},De=["x","y","width","height","stroke","stroke-width","fill","rx","onMouseenter","onClick"],Le=["x","y","width","height","stroke","stroke-width","fill","rx"],Ue=["opacity","x","y","font-size","fill","font-weight"],He=["opacity","x","y","font-size","fill","font-weight"],je=["cx","cy","r","opacity","stroke","stroke-width","fill"],Ge={key:0,style:{pointerEvents:"none"}},Ye={key:1},We=["opacity","x","y","font-size","fill","font-weight"],Xe=["opacity","x","y","font-size","fill","font-weight"],Ze={key:6,class:"vue-data-ui-watermark"},Je=["innerHTML"],Ke={__name:"vue-ui-circle-pack",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(u,{expose:d,emit:m}){e.useCssVars(o=>({"0984759a":_.value,"547089ec":L.value}));const i=u,f=m,{vue_ui_circle_pack:n}=s.useConfig(),a=e.computed(()=>!!i.dataset&&i.dataset.length),r=e.ref(s.createUid()),c=e.ref(null),y=e.ref(null),g=e.ref(null),$=e.ref(0),N=e.ref(0),S=e.ref(0),I=e.ref(null),t=e.computed({get:()=>Z(),set:o=>o}),{svgRef:Y}=Pe.useChartAccessibility({config:t.value.style.chart.title}),{userOptionsVisible:q,setUserOptionsVisibility:W,keepUserOptionState:X}=_e.useUserOptionState({config:t.value});function Z(){const o=se.useNestedProp({userConfig:i.config,defaultConfig:n});return o.theme?{...se.useNestedProp({userConfig:s.themes.vue_ui_circle_pack[o.theme]||i.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>i.config,o=>{t.value=Z(),q.value=!t.value.userOptions.showOnChartHover,D(),$.value+=1,N.value+=1,P.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:J,isImaging:K,generatePdf:Q,generateImage:ee}=ue.usePrinter({elementId:`vue-ui-circle-pack_${r.value}`,fileName:t.value.style.chart.title.text||"vue-ui-circle-pack"}),he=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),P=e.ref({showTable:t.value.table.show}),te=e.ref(null),C=e.ref({h:10,w:10}),le=e.ref(0),w=e.ref([0,0,100,100]);async function D(){s.objectIsEmpty(i.dataset)&&s.error({componentName:"VueUiCirclePack",type:"dataset"}),z.value=await ve(F.value),b.value=ce(z.value,1).join(" ");const o=ie.throttle(()=>{const{width:v,height:l,heightTitle:p,heightNoTitle:B}=ie.useResponsive({chart:c.value,title:y.value,noTitle:g.value}),j=v||10,G=l&&l>10?l:10;le.value=t.value.style.chart.title.text?p:B,requestAnimationFrame(()=>{C.value.w=j,C.value.h=G-le.value,e.nextTick(async()=>{const xe=F.value.map(Ce=>({...Ce}));z.value=await ve(xe,C.value.h,C.value.w),w.value=ce(z.value,1),b.value=w.value.join(" ")})})});te.value=new ResizeObserver(o),te.value.observe(c.value.parentNode)}e.onMounted(D),e.watch(()=>i.dataset,async o=>{await D()},{deep:!0});const me=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),F=e.computed(()=>i.dataset.map((o,v)=>{const l=s.convertColorToHex(o.color)||me.value[v]||s.themePalettes[t.value.theme||"default"][v%s.themePalettes[t.value.theme||"default"].length]||s.palette[v]||s.palette[v%s.palette.length];return{...o,r:o.value,id:s.createUid(),color:l}}).filter(o=>![null,void 0,1/0,-1/0].includes(o.value))),z=e.ref([]),b=e.ref("0 0 100 100"),T=e.computed(()=>Math.max(...z.value.map(o=>o.r)));function oe(o,v){return v/T.value*o}const h=e.ref(null);function pe(o){t.value.style.chart.circles.zoom.show&&(h.value=o)}const _=e.computed(()=>h.value?h.value.r:0),L=e.computed(()=>x.value?_.value:h.value?h.value.r>w.value[3]/6*t.value.style.chart.circles.zoom.zoomRatio?h.value.r:w.value[3]/6*t.value.style.chart.circles.zoom.zoomRatio:0),k=e.ref(0),ye=e.computed(()=>({pointerEvents:"none",opacity:k.value,filter:`drop-shadow(0px 0px 6px ${s.darkenHexColor(h.value.color,t.value.style.chart.circles.zoom.shadowForce)})`})),E=e.ref(_.value);e.watchEffect(()=>{E.value=_.value,k.value=0;let o=null;function v(l){o||(o=l);const p=(l-o)/t.value.style.chart.circles.zoom.animationFrameMs;p<1?(E.value=_.value+(L.value-_.value)*p,k.value=0+t.value.style.chart.circles.zoom.opacity*p,requestAnimationFrame(v)):(E.value=L.value,k.value=t.value.style.chart.circles.zoom.opacity)}requestAnimationFrame(v)});const V=e.computed(()=>({name:t.value.style.chart.circles.zoom.label.name.fontSize*w.value[3]/300,value:t.value.style.chart.circles.zoom.label.value.fontSize*w.value[3]/300}));function U(o){return s.applyDataLabel(t.value.style.chart.circles.labels.value.formatter,o.value,s.dataLabel({p:t.value.style.chart.circles.labels.value.prefix,v:o.value,s:t.value.style.chart.circles.labels.value.suffix,r:t.value.style.chart.circles.labels.value.rounding}))}function ge(){return s.applyDataLabel(t.value.style.chart.circles.zoom.label.value.formatter,h.value.value,s.dataLabel({p:t.value.style.chart.circles.zoom.label.value.prefix,v:h.value.value,s:t.value.style.chart.circles.zoom.label.value.suffix,r:t.value.style.chart.circles.zoom.label.value.rounding}))}function ae(o){if(!o)return 0;const v=o.r/U(o).length*(U(o).length===1?1:2);return Math.min(o.r/2.5,v)}const O=e.ref(!1);function be(o){O.value=o,S.value+=1}const x=e.ref(!1);function H(){x.value=!x.value}const R=e.computed(()=>{const o=F.value.map(l=>({name:l.name,value:l.value,color:l.color})).toSorted((l,p)=>p.value-l.value),v=o.map(l=>l.value);return{head:o,body:v}});function ne(){e.nextTick(()=>{const o=R.value.head.map((p,B)=>[[p.name],[R.value.body[B]]]),v=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(v);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-circle-pack"})})}const M=e.computed(()=>{const o=[t.value.table.columnNames.datapoint,t.value.table.columnNames.value],v=R.value.head.map((B,j)=>{const G=s.dataLabel({p:t.value.style.chart.circles.labels.value.prefix,v:R.value.body[j],s:t.value.style.chart.circles.labels.value.suffix,r:t.value.style.chart.circles.labels.value.rounding});return[{color:B.color,name:B.name},G]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.datapoint,t.value.table.columnNames.value],head:o,body:v,config:l}});function re(){P.value.showTable=!P.value.showTable}function ke(){return F.value}return d({getData:ke,generateCsv:ne,generatePdf:Q,generateImage:ee,toggleTable:re,toggleAnnotator:H}),(o,v)=>(e.openBlock(),e.createElementBlock("div",{id:`vue-ui-circle-pack_${r.value}`,class:e.normalizeClass(`vue-ui-circle-pack ${O.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"circlePackChart",ref:c,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:v[2]||(v[2]=()=>e.unref(W)(!0)),onMouseleave:v[3]||(v[3]=()=>e.unref(W)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ze.PenAndPaper,{key:0,svgRef:e.unref(Y),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:x.value,scale:T.value/100,onClose:H},null,8,["svgRef","backgroundColor","color","active","scale"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),he.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:g,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:y,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(we._sfc_main,{key:`title_${$.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&a.value&&(e.unref(X)||e.unref(q))?(e.openBlock(),e.createBlock(ue.UserOptions,{ref:"details",key:`user_option_${S.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(J),isImaging:e.unref(K),uid:r.value,hasTooltip:!1,hasLabel:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,chartElement:c.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:x.value,onToggleFullscreen:be,onGeneratePdf:e.unref(Q),onGenerateCsv:ne,onGenerateImage:e.unref(ee),onToggleTable:re,onToggleAnnotator:H,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(q)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:p})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:p})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:p})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:p})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:p})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:p})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:Y,xmlns:e.unref(s.XMLNS),viewBox:b.value,height:C.value.h,width:C.value.w,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color};background:${t.value.style.chart.backgroundColor};`)},[e.createVNode(Be._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:b.value.x,y:b.value.y,width:b.value.width,height:b.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ie)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:l.id,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(l.color,t.value.style.chart.circles.gradient.intensity/100)},null,8,Re),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(l.color,.1)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Ae)],8,Fe)]),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",qe,[e.createElementVNode("defs",null,[e.renderSlot(o.$slots,"pattern",e.mergeProps({ref_for:!0},{...l,patternId:`pattern_${r.value}_${l.id}`}),void 0,!0)])])):e.createCommentVNode("",!0),e.createElementVNode("rect",{x:l.x-l.r,y:l.y-l.r,width:l.r*2,height:l.r*2,stroke:t.value.style.chart.circles.stroke,"stroke-width":t.value.style.chart.circles.strokeWidth*T.value/100,fill:t.value.style.chart.circles.gradient.show?`url(#${l.id})`:l.color,rx:l.r,onMouseenter:()=>pe(l),onMouseout:v[0]||(v[0]=p=>h.value=null),onClick:p=>f("selectDatapoint",l)},null,40,De),o.$slots.pattern?(e.openBlock(),e.createElementBlock("rect",{key:1,x:l.x-l.r,y:l.y-l.r,width:l.r*2,height:l.r*2,stroke:t.value.style.chart.circles.stroke,"stroke-width":t.value.style.chart.circles.strokeWidth*T.value/100,fill:`url(#pattern_${r.value}_${l.id})`,rx:l.r,style:{pointerEvents:"none"}},null,8,Le)):e.createCommentVNode("",!0),o.$slots["data-label"]?e.renderSlot(o.$slots,"data-label",e.mergeProps({key:2,ref_for:!0},{...l,createTSpans:e.unref(s.createTSpans),fontSize:{name:l.r/3*t.value.style.chart.circles.labels.name.fontSizeRatio,value:ae(l)*t.value.style.chart.circles.labels.value.fontSizeRatio},color:t.value.style.chart.circles.labels.name.color?t.value.style.chart.circles.labels.name.color:e.unref(s.adaptColorToBackground)(l.color)}),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.style.chart.circles.labels.name.show&&l.name?(e.openBlock(),e.createElementBlock("text",{key:0,style:{pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},opacity:h.value&&!x.value?.2:1,x:l.x,y:l.y+oe(l.r,t.value.style.chart.circles.labels.name.offsetY)-l.r/10,"font-size":l.r/3*t.value.style.chart.circles.labels.name.fontSizeRatio,fill:t.value.style.chart.circles.labels.name.color?t.value.style.chart.circles.labels.name.color:e.unref(s.adaptColorToBackground)(l.color),"font-weight":t.value.style.chart.circles.labels.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(l.name),9,Ue)):e.createCommentVNode("",!0),t.value.style.chart.circles.labels.value.show?(e.openBlock(),e.createElementBlock("text",{key:1,style:{pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},opacity:h.value&&!x.value?.2:1,x:l.x,y:l.y+oe(l.r,t.value.style.chart.circles.labels.value.offsetY)+l.r/2.5,"font-size":ae(l)*t.value.style.chart.circles.labels.value.fontSizeRatio,fill:t.value.style.chart.circles.labels.value.color?t.value.style.chart.circles.labels.value.color:e.unref(s.adaptColorToBackground)(l.color),"font-weight":t.value.style.chart.circles.labels.value.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(U(l)),9,He)):e.createCommentVNode("",!0)],64))],64))),256)),h.value&&t.value.style.chart.circles.zoom.show&&!x.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("circle",{style:e.normalizeStyle(ye.value),cx:h.value.x,cy:h.value.y,r:E.value,opacity:k.value,stroke:t.value.style.chart.circles.stroke,"stroke-width":t.value.style.chart.circles.strokeWidth*T.value/100,fill:t.value.style.chart.circles.gradient.show?`url(#${h.value.id})`:h.value.color},null,12,je),o.$slots["zoom-label"]?(e.openBlock(),e.createElementBlock("g",Ge,[e.renderSlot(o.$slots,"zoom-label",e.normalizeProps(e.guardReactiveProps({...h.value,zoomOpacity:k.value,currentRadius:E.value,fontSize:V.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock("g",Ye,[e.createElementVNode("text",{style:{pointerEvents:"none"},opacity:k.value,x:h.value.x,y:h.value.y+t.value.style.chart.circles.zoom.label.name.offsetY-V.value.name/4,"text-anchor":"middle","font-size":V.value.name,fill:t.value.style.chart.circles.zoom.label.name.color?t.value.style.chart.circles.zoom.label.name.color:e.unref(s.adaptColorToBackground)(h.value.color),"font-weight":t.value.style.chart.circles.zoom.label.name.bold?"bold":"normal"},e.toDisplayString(h.value.name),9,We),e.createElementVNode("text",{style:{pointerEvents:"none"},opacity:k.value,x:h.value.x,y:h.value.y+V.value.value+t.value.style.chart.circles.zoom.label.value.offsetY,"text-anchor":"middle","font-size":V.value.value,fill:t.value.style.chart.circles.zoom.label.value.color?t.value.style.chart.circles.zoom.label.value.color:e.unref(s.adaptColorToBackground)(h.value.color),"font-weight":t.value.style.chart.circles.zoom.label.value.bold?"bold":"normal"},e.toDisplayString(ge()),9,Xe)]))],64)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:{...b.value}},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Se.default,{key:5,config:{type:"circlePack",style:{color:"#CCCCCC"}}})),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ze,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(J)||e.unref(K)})),void 0,!0)])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:I,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createBlock($e.default,{key:8,hideDetails:"",config:{open:P.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ne.DataTable,{key:`table_${N.value}`,colNames:M.value.colNames,head:M.value.head,body:M.value.body,config:M.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:v[1]||(v[1]=l=>P.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Je)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ve))}},Qe=Te._export_sfc(Ke,[["__scopeId","data-v-d5e06482"]]);exports.default=Qe;
|