vue-data-ui 2.7.2 → 2.7.4
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-Cuf9zUpa.cjs → Arrow-Bslu6In_.cjs} +1 -1
- package/dist/{Arrow-SOQeOwmT.js → Arrow-Kbu7LT-f.js} +1 -1
- package/dist/{BaseIcon-DqYzMisq.js → BaseIcon-BLhJaEYy.js} +4 -3
- package/dist/{BaseIcon-C0unoacb.cjs → BaseIcon-WIhlX3LN.cjs} +1 -1
- package/dist/{ColorPicker-DyOTLjAA.js → ColorPicker-Dlg-p-yo.js} +3 -3
- package/dist/{ColorPicker-DLNc3kpl.cjs → ColorPicker-mXlj2N11.cjs} +1 -1
- package/dist/{DataTable-C_28ZqiP.js → DataTable-DOKlm7k4.js} +2 -2
- package/dist/{DataTable-ByOfBGEi.cjs → DataTable-c3nDhwbO.cjs} +1 -1
- package/dist/{Legend-mrAy7yUC.cjs → Legend-Bhl2d6oj.cjs} +1 -1
- package/dist/{Legend-CmKaL7xe.js → Legend-CIjMjfNk.js} +2 -2
- package/dist/{PackageVersion-39l3KkzC.js → PackageVersion-BCLALL_i.js} +1 -1
- package/dist/{PackageVersion-By81XV8X.cjs → PackageVersion-DFYAej2o.cjs} +1 -1
- package/dist/PenAndPaper-CAqWCUZx.cjs +1 -0
- package/dist/PenAndPaper-CZs431Nx.js +374 -0
- package/dist/{Shape-iIO-95sh.js → Shape-D9MuIPm8.js} +1 -1
- package/dist/{Shape-x7U3IhoM.cjs → Shape-wMij_bxG.cjs} +1 -1
- package/dist/{Slicer-C49MotZz.js → Slicer-CqYLlNlU.js} +2 -2
- package/dist/{Slicer-Ct66sqV1.cjs → Slicer-Duh-nBCD.cjs} +1 -1
- package/dist/{Title-BgVFZwZZ.cjs → Title-C5w8bVlo.cjs} +1 -1
- package/dist/{Title-Co3F59jq.js → Title-UjBqdYyD.js} +1 -1
- package/dist/{Tooltip-Cr89wMKa.js → Tooltip-3NNIdJ6N.js} +1 -1
- package/dist/{Tooltip-B8E9uCVm.cjs → Tooltip-Dbe23pmt.cjs} +1 -1
- package/dist/{dom-to-png-DtBlqZMR.js → dom-to-png-6NoDv4_U.js} +1 -1
- package/dist/{dom-to-png-D9eujpXB.cjs → dom-to-png-C-_IolaZ.cjs} +1 -1
- package/dist/{img-DQDP5JIH.js → img-BxGd_UqS.js} +1 -1
- package/dist/{img-DgRUFehB.cjs → img-DCkGlbCr.cjs} +1 -1
- package/dist/{index-gC66Se26.js → index-D3VntmA9.js} +1 -1
- package/dist/{index-BeJeDy5m.cjs → index-MIJJ8liG.cjs} +1 -1
- package/dist/{pdf-Bu1ahAX2.cjs → pdf-BGp1xMhT.cjs} +1 -1
- package/dist/{pdf-lJiGVhtL.js → pdf-BpVckOt1.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -1
- package/dist/types/vue-data-ui.d.ts +2 -1
- package/dist/{useNestedProp-BusTOV-6.js → useNestedProp-DTlOqz2P.js} +1 -1
- package/dist/{useNestedProp-CF-iHhIC.cjs → useNestedProp-DwR4JSzw.cjs} +1 -1
- package/dist/{usePrinter-KMFl0n0s.js → usePrinter-H3tAjGXs.js} +3 -3
- package/dist/{usePrinter-Bz_kd3vb.cjs → usePrinter-U1x-RAEA.cjs} +1 -1
- package/dist/{vue-data-ui-Bak-lr4I.cjs → vue-data-ui-BuY9ggUz.cjs} +1 -1
- package/dist/{vue-data-ui-BApY_erH.js → vue-data-ui-DFwVHeO8.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DeTBYGV_.cjs +19 -0
- package/dist/{vue-ui-3d-bar-BWjU0K3_.js → vue-ui-3d-bar-NNib9NTc.js} +30 -30
- package/dist/{vue-ui-accordion-j2beIma_.js → vue-ui-accordion-DGJQIcdB.js} +3 -3
- package/dist/{vue-ui-accordion-CZBJSHT_.cjs → vue-ui-accordion-cBSqrYy3.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Cmw4WVB4.js → vue-ui-age-pyramid-DWG7C-nA.js} +22 -22
- package/dist/vue-ui-age-pyramid-DfGSS3SE.cjs +1 -0
- package/dist/{vue-ui-annotator-BVv5XkoE.cjs → vue-ui-annotator-Bpy0V7AA.cjs} +1 -1
- package/dist/{vue-ui-annotator-CKmqZjUD.js → vue-ui-annotator-D21j4NL0.js} +2 -2
- package/dist/vue-ui-bullet-CrgeKJBE.cjs +34 -0
- package/dist/{vue-ui-bullet-U_yJjO0m.js → vue-ui-bullet-MrNlqcTX.js} +36 -36
- package/dist/vue-ui-candlestick-DfEQ057F.cjs +2 -0
- package/dist/{vue-ui-candlestick-DhdlFIQE.js → vue-ui-candlestick-Dgwjzuq0.js} +11 -11
- package/dist/{vue-ui-carousel-table-BhC5cEe3.cjs → vue-ui-carousel-table-B9AHiJLA.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Ej7qzKkp.js → vue-ui-carousel-table-TOSDOJ0J.js} +4 -4
- package/dist/{vue-ui-chestnut-BzNHXzDj.cjs → vue-ui-chestnut-BQwGKI2l.cjs} +1 -1
- package/dist/{vue-ui-chestnut-L0bS5jtX.js → vue-ui-chestnut-DAlxKIqD.js} +32 -32
- package/dist/vue-ui-circle-pack-B9HW-E4V.cjs +1 -0
- package/dist/{vue-ui-circle-pack-DwCzeO3L.js → vue-ui-circle-pack-BjD7UG4l.js} +44 -44
- package/dist/{vue-ui-cursor-0mZP5nBc.cjs → vue-ui-cursor-Bv_hn_5f.cjs} +1 -1
- package/dist/{vue-ui-cursor-DwHdXwLS.js → vue-ui-cursor-CS0L4MjH.js} +2 -2
- package/dist/{vue-ui-dashboard-DILmOchy.js → vue-ui-dashboard-Cu4QabFb.js} +3 -3
- package/dist/{vue-ui-dashboard-CegApY8_.cjs → vue-ui-dashboard-DGJjS8TM.cjs} +1 -1
- package/dist/{vue-ui-digits-me8Nky0A.cjs → vue-ui-digits-BusMzORo.cjs} +1 -1
- package/dist/{vue-ui-digits-Dbwzk-sl.js → vue-ui-digits-CrqD5QXP.js} +2 -2
- package/dist/{vue-ui-donut-DwE-iZSV.js → vue-ui-donut-CbDkvk9s.js} +12 -12
- package/dist/{vue-ui-donut-evolution-DhFABvEv.js → vue-ui-donut-evolution-DKD_efmP.js} +69 -69
- package/dist/vue-ui-donut-evolution-Dul--Pi_.cjs +1 -0
- package/dist/vue-ui-donut-vqs5auMD.cjs +1 -0
- package/dist/{vue-ui-dumbbell-Cqq4iV6-.js → vue-ui-dumbbell-BGN-Rshy.js} +52 -52
- package/dist/{vue-ui-dumbbell-CL15d-aQ.cjs → vue-ui-dumbbell-CB6lYwMc.cjs} +1 -1
- package/dist/vue-ui-flow-CDPkL02l.cjs +1 -0
- package/dist/{vue-ui-flow-CU-orj9I.js → vue-ui-flow-g93Xo1mO.js} +75 -75
- package/dist/vue-ui-funnel-D1PhFKgP.cjs +1 -0
- package/dist/{vue-ui-funnel-DQmQmdNV.js → vue-ui-funnel-r_WI2IRS.js} +28 -28
- package/dist/{vue-ui-galaxy-nqyCbQ9j.js → vue-ui-galaxy-B4JnwjLW.js} +39 -39
- package/dist/vue-ui-galaxy-DSXcoM3k.cjs +1 -0
- package/dist/{vue-ui-gauge-BV3CJfqe.js → vue-ui-gauge-BPz7mbOb.js} +26 -26
- package/dist/vue-ui-gauge-Ct1Knstr.cjs +1 -0
- package/dist/{vue-ui-gizmo-CJwSAsxs.js → vue-ui-gizmo-BbUqDkQz.js} +3 -3
- package/dist/{vue-ui-gizmo-CNRAH2zT.cjs → vue-ui-gizmo-tet3qRDX.cjs} +1 -1
- package/dist/{vue-ui-heatmap-B1s7KejC.js → vue-ui-heatmap-BbmFxESu.js} +10 -10
- package/dist/vue-ui-heatmap-RHN_eSK2.cjs +1 -0
- package/dist/vue-ui-history-plot-B8_Kig_-.cjs +1 -0
- package/dist/{vue-ui-history-plot-z_KFt5z_.js → vue-ui-history-plot-CJFtY1Rm.js} +35 -35
- package/dist/{vue-ui-kpi-FaGp6_XP.cjs → vue-ui-kpi-C0IWPkaZ.cjs} +1 -1
- package/dist/{vue-ui-kpi-DabR5K70.js → vue-ui-kpi-CQo8VsEv.js} +3 -3
- package/dist/{vue-ui-mini-loader-w-BmywLJ.js → vue-ui-mini-loader-8wZYNxLC.js} +2 -2
- package/dist/{vue-ui-mini-loader-_plxZxma.cjs → vue-ui-mini-loader-DoOFKxep.cjs} +1 -1
- package/dist/{vue-ui-molecule-aiWG--to.js → vue-ui-molecule-DHb8Roml.js} +45 -45
- package/dist/{vue-ui-molecule-3ClCLk7L.cjs → vue-ui-molecule-HnReqNMq.cjs} +1 -1
- package/dist/vue-ui-mood-radar-BjmCUY0q.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DwxCn06q.js → vue-ui-mood-radar-CdBmESCg.js} +40 -40
- package/dist/{vue-ui-nested-donuts-ONgAaLY-.js → vue-ui-nested-donuts-CO7sSeR-.js} +65 -65
- package/dist/vue-ui-nested-donuts-SBaCzHQP.cjs +17 -0
- package/dist/vue-ui-onion-BehdICTa.cjs +5 -0
- package/dist/{vue-ui-onion-DjoQuBo8.js → vue-ui-onion-Ci15BQ0y.js} +75 -75
- package/dist/{vue-ui-parallel-coordinate-plot-DWGVzaHE.js → vue-ui-parallel-coordinate-plot-BJbrb-Mp.js} +38 -38
- package/dist/vue-ui-parallel-coordinate-plot-BLLONfts.cjs +8 -0
- package/dist/{vue-ui-quadrant-CgiD9c7i.js → vue-ui-quadrant-BZTZY3LG.js} +54 -54
- package/dist/vue-ui-quadrant-ntmlYIVx.cjs +1 -0
- package/dist/{vue-ui-quick-chart-5NiRxtpD.js → vue-ui-quick-chart-B2OUF1Pk.js} +9 -9
- package/dist/vue-ui-quick-chart-BCdm0tx2.cjs +15 -0
- package/dist/vue-ui-radar-CUoLdojY.cjs +1 -0
- package/dist/{vue-ui-radar-CfKAy0nI.js → vue-ui-radar-D8DHrSPP.js} +55 -55
- package/dist/{vue-ui-rating-yiM_5H0W.cjs → vue-ui-rating-BWlmz08s.cjs} +1 -1
- package/dist/{vue-ui-rating-CbZvsZNv.js → vue-ui-rating-D4H6cT0d.js} +2 -2
- package/dist/{vue-ui-relation-circle-RRK2jhHr.js → vue-ui-relation-circle-CWvX8cvJ.js} +7 -7
- package/dist/vue-ui-relation-circle-DighSxmd.cjs +1 -0
- package/dist/vue-ui-rings-CPIzjzdm.cjs +2 -0
- package/dist/{vue-ui-rings-CiMKMEpp.js → vue-ui-rings-Dq5YT7h-.js} +62 -62
- package/dist/{vue-ui-scatter-9PFXuvoo.js → vue-ui-scatter-BMuJyp6q.js} +44 -44
- package/dist/vue-ui-scatter-BSgMQLjw.cjs +1 -0
- package/dist/{vue-ui-skeleton-KW-jcPRN.cjs → vue-ui-skeleton-DOE444ST.cjs} +1 -1
- package/dist/{vue-ui-skeleton-7Zfds6H1.js → vue-ui-skeleton-pHcbvN3-.js} +3 -3
- package/dist/{vue-ui-smiley-D0jhMBUh.js → vue-ui-smiley-BsPExuQ7.js} +2 -2
- package/dist/{vue-ui-smiley-BNQlshyY.cjs → vue-ui-smiley-bHv8hVve.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CLm12POW.cjs → vue-ui-spark-trend-S0FbKqDW.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D8nDY0fS.js → vue-ui-spark-trend-eJ5IZSRQ.js} +5 -5
- package/dist/{vue-ui-sparkbar-ChEbpWYC.cjs → vue-ui-sparkbar-B1pwFeeg.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-wKlwMCph.js → vue-ui-sparkbar-B9E03kBf.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DG824sGI.cjs → vue-ui-sparkgauge-BpAFpJN9.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CvhIe_mP.js → vue-ui-sparkgauge-CbtRwF8H.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B8k8a538.cjs → vue-ui-sparkhistogram-4gAnz36n.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CVmbTFTc.js → vue-ui-sparkhistogram-BJfFPQ-X.js} +5 -5
- package/dist/{vue-ui-sparkline-7wnWuXDQ.cjs → vue-ui-sparkline-CJ8rlJiI.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CtqAbSzZ.js → vue-ui-sparkline-CLz-PMi0.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DfwEeUC5.js → vue-ui-sparkstackbar-C5ZzOhRM.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-57SONMGP.cjs → vue-ui-sparkstackbar-ja3t34Mt.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CGSVPiPx.js → vue-ui-stackbar-BnuJOk6L.js} +86 -86
- package/dist/vue-ui-stackbar-DSWEq3Pa.cjs +6 -0
- package/dist/{vue-ui-strip-plot-fJFkn8_0.js → vue-ui-strip-plot-Cbr3Dkmd.js} +36 -36
- package/dist/vue-ui-strip-plot-CyiaXAxw.cjs +1 -0
- package/dist/{vue-ui-table-Das3959J.cjs → vue-ui-table-CPJeRMDV.cjs} +1 -1
- package/dist/{vue-ui-table-CliL2Wsp.js → vue-ui-table-Cr6jEi4z.js} +1 -1
- package/dist/{vue-ui-table-heatmap-C28ozf2S.cjs → vue-ui-table-heatmap-BfKruH6W.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-ZsJMMGpG.js → vue-ui-table-heatmap-C0J52xWN.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CrQNShdH.js → vue-ui-table-sparkline-C9PHXjbW.js} +5 -5
- package/dist/{vue-ui-table-sparkline-0i9FAXug.cjs → vue-ui-table-sparkline-CGUs_6Ij.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BaGL6WSb.js → vue-ui-thermometer-Cs8Xt7tQ.js} +50 -50
- package/dist/vue-ui-thermometer-DWC--OtD.cjs +1 -0
- package/dist/{vue-ui-timer-CFtgJ_Vi.cjs → vue-ui-timer-DD0VvMEs.cjs} +1 -1
- package/dist/{vue-ui-timer-Nk94fV-n.js → vue-ui-timer-DDZHmPLV.js} +5 -5
- package/dist/vue-ui-tiremarks-B_koqVkj.cjs +1 -0
- package/dist/{vue-ui-tiremarks-zYgdq_99.js → vue-ui-tiremarks-DHAdNbAA.js} +25 -25
- package/dist/vue-ui-treemap-C_yhbpyF.cjs +1 -0
- package/dist/{vue-ui-treemap-CAxPcxn-.js → vue-ui-treemap-CfH-P5Oh.js} +12 -12
- package/dist/vue-ui-vertical-bar-BRplGFjj.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-Di3FBkwJ.js → vue-ui-vertical-bar-oBdc4YQS.js} +80 -80
- package/dist/vue-ui-waffle-Bg5T7RVn.cjs +1 -0
- package/dist/{vue-ui-waffle-DBJAQsEf.js → vue-ui-waffle-DZ2zIujl.js} +45 -45
- package/dist/{vue-ui-wheel-BTZEr2Vs.js → vue-ui-wheel-BerXCO4A.js} +27 -27
- package/dist/vue-ui-wheel-Bj3Z92nh.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BEaRWIu-.cjs → vue-ui-word-cloud-BWQ1ogz9.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DBCVUkLM.js → vue-ui-word-cloud-U5KISxTe.js} +72 -72
- package/dist/{vue-ui-xy-DbN93Pcf.cjs → vue-ui-xy-C078AHoi.cjs} +2 -2
- package/dist/vue-ui-xy-canvas-BpblELcE.js +1672 -0
- package/dist/vue-ui-xy-canvas-C76OoGNJ.cjs +9 -0
- package/dist/{vue-ui-xy-aKaGgYGL.js → vue-ui-xy-y9zEQYMK.js} +16 -16
- package/package.json +1 -1
- package/dist/PenAndPaper-CmcfpltX.js +0 -243
- package/dist/PenAndPaper-DNbX5hR8.cjs +0 -1
- package/dist/vue-ui-3d-bar-CmbTiJVx.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Sv-HbbDJ.cjs +0 -1
- package/dist/vue-ui-bullet-vcmTY4AX.cjs +0 -34
- package/dist/vue-ui-candlestick-DQT-8PRz.cjs +0 -2
- package/dist/vue-ui-circle-pack-CVLJs0XP.cjs +0 -1
- package/dist/vue-ui-donut-FoRYusUX.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BIK2yfIJ.cjs +0 -1
- package/dist/vue-ui-flow-N825fjRf.cjs +0 -1
- package/dist/vue-ui-funnel-B6XMYl89.cjs +0 -1
- package/dist/vue-ui-galaxy-p-sbDnSY.cjs +0 -1
- package/dist/vue-ui-gauge-DsZFk8T_.cjs +0 -1
- package/dist/vue-ui-heatmap-VXgeMOwT.cjs +0 -1
- package/dist/vue-ui-history-plot-JmeGiR--.cjs +0 -1
- package/dist/vue-ui-mood-radar-CO5sPVVG.cjs +0 -1
- package/dist/vue-ui-nested-donuts-D0nALasd.cjs +0 -17
- package/dist/vue-ui-onion-CBqx4q4k.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-uNCmnSvz.cjs +0 -8
- package/dist/vue-ui-quadrant-BOkyMgCm.cjs +0 -1
- package/dist/vue-ui-quick-chart-BRp_bNso.cjs +0 -15
- package/dist/vue-ui-radar-BpicgiWF.cjs +0 -1
- package/dist/vue-ui-relation-circle-Dg6rdyGP.cjs +0 -1
- package/dist/vue-ui-rings-A49lyv-J.cjs +0 -2
- package/dist/vue-ui-scatter-C_jHsy8M.cjs +0 -1
- package/dist/vue-ui-stackbar--0FZ_eBi.cjs +0 -6
- package/dist/vue-ui-strip-plot-C_ggDAQ-.cjs +0 -1
- package/dist/vue-ui-thermometer-h0rymM2v.cjs +0 -1
- package/dist/vue-ui-tiremarks-Cj8-XGcp.cjs +0 -1
- package/dist/vue-ui-treemap-CybL6mVf.cjs +0 -1
- package/dist/vue-ui-vertical-bar-D4IkwvAB.cjs +0 -4
- package/dist/vue-ui-waffle-7otLUrER.cjs +0 -1
- package/dist/vue-ui-wheel-BUJXtmeP.cjs +0 -1
- package/dist/vue-ui-xy-canvas-CF_lqLg-.cjs +0 -9
- package/dist/vue-ui-xy-canvas-CVQ__d4u.js +0 -1500
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-MIJJ8liG.cjs");function o({defaultConfig:e,userConfig:t}){if(!Object.keys(t||{}).length)return e;const n=r.treeShake({defaultConfig:e,userConfig:t});return r.convertConfigColors(n)}exports.useNestedProp=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as b, computed as G, onMounted as J, onBeforeUnmount as Q, withDirectives as Y, createElementBlock as i, openBlock as t, normalizeStyle as d, createElementVNode as V, withKeys as Z, withModifiers as p, renderSlot as c, normalizeProps as E, guardReactiveProps as _, createVNode as ee, normalizeClass as y, createCommentVNode as u, Fragment as h, createBlock as f, toDisplayString as $, mergeProps as P, unref as te } from "vue";
|
|
2
|
-
import a from "./BaseIcon-
|
|
2
|
+
import a from "./BaseIcon-BLhJaEYy.js";
|
|
3
3
|
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const ne = {
|
|
5
5
|
beforeMount(e, C) {
|
|
@@ -536,7 +536,7 @@ function ve({
|
|
|
536
536
|
!r || S.value || (S.value = !0, clearTimeout(B.value), B.value = setTimeout(async () => {
|
|
537
537
|
if (r)
|
|
538
538
|
try {
|
|
539
|
-
const { default: v } = await import("./pdf-
|
|
539
|
+
const { default: v } = await import("./pdf-BpVckOt1.js");
|
|
540
540
|
await v({
|
|
541
541
|
domElement: document.getElementById(e),
|
|
542
542
|
fileName: C,
|
|
@@ -553,7 +553,7 @@ function ve({
|
|
|
553
553
|
!r || A.value || (A.value = !0, clearTimeout(B.value), B.value = setTimeout(async () => {
|
|
554
554
|
if (r)
|
|
555
555
|
try {
|
|
556
|
-
const { default: v } = await import("./img-
|
|
556
|
+
const { default: v } = await import("./img-BxGd_UqS.js");
|
|
557
557
|
await v({
|
|
558
558
|
domElement: document.getElementById(e),
|
|
559
559
|
fileName: C,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./BaseIcon-C0unoacb.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A={beforeMount(t,k){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||k.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},L=["title"],w=["data-open"],X={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:"right"},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation","toggleAnnotator"],setup(t,{emit:k}){const s=t,r=k;function d(){r("generatePdf")}function m(){r("generateCsv")}function v(){r("generateImage")}const g=e.ref(!1);function B(){g.value=!g.value,r("toggleTable")}const u=e.ref(!1),M=e.ref(!0);function h(){c.value=window.innerWidth>600,u.value=!u.value,u.value&&(M.value=!1)}function T(){s.isPrinting||s.isImaging||(u.value=!1)}function F(){u.value&&T()}const C=e.ref(s.isLabelActive);function I(){C.value=!C.value,r("toggleLabels")}const b=e.ref(s.isAnimation);function E(){b.value=!b.value,r("toggleAnimation")}const y=e.computed({get:()=>s.isAnnotation,set:l=>l});function z(){y.value=!y.value,r("toggleAnnotator")}function P(){r("toggleSort")}const $=e.ref(s.isStacked);function p(){$.value=!$.value,r("toggleStack")}const S=e.ref(s.isTooltip);function O(){S.value=!S.value,r("toggleTooltip")}const f=e.ref(!1);function N(l){s.chartElement&&(l==="in"?(f.value=!0,s.chartElement.requestFullscreen(),r("toggleFullscreen",!0)):(f.value=!1,document&&document.exitFullscreen(),r("toggleFullscreen",!1)))}function V(l){document.fullscreenElement?f.value=!0:f.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",V)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",V)});const c=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${f.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${f.value?"12px":"0"}`:`left:${f.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:u.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.offsetX?t.offsetX:t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:e.withModifiers(h,["stop"]),onKeypress:e.withKeys(h,["enter"])},[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:u.value,color:t.color})),()=>[e.createVNode(a.default,{name:u.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],!0)],44,L),e.createElementVNode("div",{"data-open":u.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.offsetX?t.offsetX:t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:O,onMouseenter:o[0]||(o[0]=i=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[S.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.tooltip&&!l.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-left-visible":t.position==="left"&&n.value.tooltip,"button-info-right-visible":t.position==="right"&&n.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[2]||(o[2]=i=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.pdf&&!l.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.pdf,"button-info-left-visible":t.position==="left"&&n.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:m,onMouseenter:o[4]||(o[4]=i=>n.value.csv=!0),onMouseout:o[5]||(o[5]=i=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.csv&&!l.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.csv,"button-info-left-visible":t.position==="left"&&n.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:v,onMouseenter:o[6]||(o[6]=i=>n.value.img=!0),onMouseout:o[7]||(o[7]=i=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.img&&!l.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.img,"button-info-left-visible":t.position==="left"&&n.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:B,onMouseenter:o[8]||(o[8]=i=>n.value.table=!0),onMouseout:o[9]||(o[9]=i=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.table&&!l.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.table,"button-info-left-visible":t.position==="left"&&n.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:I,onMouseenter:o[10]||(o[10]=i=>n.value.labels=!0),onMouseout:o[11]||(o[11]=i=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:C.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.labels&&!l.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.labels,"button-info-left-visible":t.position==="left"&&n.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:P,onMouseenter:o[12]||(o[12]=i=>n.value.sort=!0),onMouseout:o[13]||(o[13]=i=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.sort&&!l.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.sort,"button-info-left-visible":t.position==="left"&&n.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:p,onMouseenter:o[14]||(o[14]=i=>n.value.stack=!0),onMouseout:o[15]||(o[15]=i=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.stack&&!l.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.stack,"button-info-left-visible":t.position==="left"&&n.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=i=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>N(f.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:N,isFullscreen:f.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.fullscreen,"button-info-left-visible":t.position==="left"&&n.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=i=>n.value.animation=!0),onMouseout:o[20]||(o[20]=i=>n.value.animation=!1),onClick:E},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:E,isAnimated:b.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.animation,"button-info-left-visible":t.position==="left"&&n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnnotator?(e.openBlock(),e.createElementBlock("button",{key:10,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[21]||(o[21]=i=>n.value.annotator=!0),onMouseout:o[22]||(o[22]=i=>n.value.annotator=!1),onClick:z},[l.$slots.optionAnnotator?e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.mergeProps({key:0},{toggleAnnotator:z,isAnnotator:y.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[y.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"annotatorDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"annotator",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.annotator&&!l.$slots.optionAnnotator?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.annotator,"button-info-left-visible":t.position==="left"&&n.value.annotator}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.annotator),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,w)],4)),[[e.unref(A),F]])}},q=D._export_sfc(X,[["__scopeId","data-v-2b85c189"]]);function U({elementId:t,fileName:k,canPrint:s=!0,options:r}){const d=e.ref(!1),m=e.ref(!1),v=e.ref(null);async function g(){!s||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./pdf-Bu1ahAX2.cjs"));await u({domElement:document.getElementById(t),fileName:k,options:r})}catch(u){console.error("Error generating PDF:",u)}finally{d.value=!1}},100))}async function B(){!s||m.value||(m.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./img-DgRUFehB.cjs"));await u({domElement:document.getElementById(t),fileName:k,format:"png",options:r})}catch(u){console.error("Error generating image:",u)}finally{m.value=!1}},100))}return{generatePdf:g,generateImage:B,isPrinting:d,isImaging:m}}exports.UserOptions=q;exports.usePrinter=U;exports.vClickOutside=A;
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./BaseIcon-WIhlX3LN.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A={beforeMount(t,k){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||k.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},L=["title"],w=["data-open"],X={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:"right"},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation","toggleAnnotator"],setup(t,{emit:k}){const s=t,r=k;function d(){r("generatePdf")}function m(){r("generateCsv")}function v(){r("generateImage")}const g=e.ref(!1);function B(){g.value=!g.value,r("toggleTable")}const u=e.ref(!1),M=e.ref(!0);function h(){c.value=window.innerWidth>600,u.value=!u.value,u.value&&(M.value=!1)}function T(){s.isPrinting||s.isImaging||(u.value=!1)}function F(){u.value&&T()}const C=e.ref(s.isLabelActive);function I(){C.value=!C.value,r("toggleLabels")}const b=e.ref(s.isAnimation);function E(){b.value=!b.value,r("toggleAnimation")}const y=e.computed({get:()=>s.isAnnotation,set:l=>l});function z(){y.value=!y.value,r("toggleAnnotator")}function P(){r("toggleSort")}const $=e.ref(s.isStacked);function p(){$.value=!$.value,r("toggleStack")}const S=e.ref(s.isTooltip);function O(){S.value=!S.value,r("toggleTooltip")}const f=e.ref(!1);function N(l){s.chartElement&&(l==="in"?(f.value=!0,s.chartElement.requestFullscreen(),r("toggleFullscreen",!0)):(f.value=!1,document&&document.exitFullscreen(),r("toggleFullscreen",!1)))}function V(l){document.fullscreenElement?f.value=!0:f.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",V)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",V)});const c=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${f.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${f.value?"12px":"0"}`:`left:${f.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:u.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.offsetX?t.offsetX:t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:e.withModifiers(h,["stop"]),onKeypress:e.withKeys(h,["enter"])},[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:u.value,color:t.color})),()=>[e.createVNode(a.default,{name:u.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],!0)],44,L),e.createElementVNode("div",{"data-open":u.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.offsetX?t.offsetX:t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:O,onMouseenter:o[0]||(o[0]=i=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[S.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.tooltip&&!l.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-left-visible":t.position==="left"&&n.value.tooltip,"button-info-right-visible":t.position==="right"&&n.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[2]||(o[2]=i=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.pdf&&!l.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.pdf,"button-info-left-visible":t.position==="left"&&n.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:m,onMouseenter:o[4]||(o[4]=i=>n.value.csv=!0),onMouseout:o[5]||(o[5]=i=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.csv&&!l.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.csv,"button-info-left-visible":t.position==="left"&&n.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:v,onMouseenter:o[6]||(o[6]=i=>n.value.img=!0),onMouseout:o[7]||(o[7]=i=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.img&&!l.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.img,"button-info-left-visible":t.position==="left"&&n.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:B,onMouseenter:o[8]||(o[8]=i=>n.value.table=!0),onMouseout:o[9]||(o[9]=i=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.table&&!l.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.table,"button-info-left-visible":t.position==="left"&&n.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:I,onMouseenter:o[10]||(o[10]=i=>n.value.labels=!0),onMouseout:o[11]||(o[11]=i=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:C.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.labels&&!l.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.labels,"button-info-left-visible":t.position==="left"&&n.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:P,onMouseenter:o[12]||(o[12]=i=>n.value.sort=!0),onMouseout:o[13]||(o[13]=i=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.sort&&!l.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.sort,"button-info-left-visible":t.position==="left"&&n.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:p,onMouseenter:o[14]||(o[14]=i=>n.value.stack=!0),onMouseout:o[15]||(o[15]=i=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.stack&&!l.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.stack,"button-info-left-visible":t.position==="left"&&n.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=i=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>N(f.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:N,isFullscreen:f.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.fullscreen,"button-info-left-visible":t.position==="left"&&n.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=i=>n.value.animation=!0),onMouseout:o[20]||(o[20]=i=>n.value.animation=!1),onClick:E},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:E,isAnimated:b.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.animation,"button-info-left-visible":t.position==="left"&&n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnnotator?(e.openBlock(),e.createElementBlock("button",{key:10,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[21]||(o[21]=i=>n.value.annotator=!0),onMouseout:o[22]||(o[22]=i=>n.value.annotator=!1),onClick:z},[l.$slots.optionAnnotator?e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.mergeProps({key:0},{toggleAnnotator:z,isAnnotator:y.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[y.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"annotatorDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"annotator",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.annotator&&!l.$slots.optionAnnotator?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&n.value.annotator,"button-info-left-visible":t.position==="left"&&n.value.annotator}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.annotator),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,w)],4)),[[e.unref(A),F]])}},q=D._export_sfc(X,[["__scopeId","data-v-2b85c189"]]);function U({elementId:t,fileName:k,canPrint:s=!0,options:r}){const d=e.ref(!1),m=e.ref(!1),v=e.ref(null);async function g(){!s||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./pdf-BGp1xMhT.cjs"));await u({domElement:document.getElementById(t),fileName:k,options:r})}catch(u){console.error("Error generating PDF:",u)}finally{d.value=!1}},100))}async function B(){!s||m.value||(m.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./img-DCkGlbCr.cjs"));await u({domElement:document.getElementById(t),fileName:k,format:"png",options:r})}catch(u){console.error("Error generating image:",u)}finally{m.value=!1}},100))}return{generatePdf:g,generateImage:B,isPrinting:d,isImaging:m}}exports.UserOptions=q;exports.usePrinter=U;exports.vClickOutside=A;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./BaseIcon-C0unoacb.cjs"),K={style:{width:"36px"}},Y={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap","toggleAnnotator"],setup(E,{expose:O,emit:_}){const i=E,{component:J,dataset:M,config:G}=e.toRefs(i),l={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-CmbTiJVx.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-Sv-HbbDJ.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-BVv5XkoE.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-DQT-8PRz.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-BzNHXzDj.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-CegApY8_.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-me8Nky0A.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-FoRYusUX.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-BIK2yfIJ.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-p-sbDnSY.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-DsZFk8T_.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-VXgeMOwT.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-FaGp6_XP.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-_plxZxma.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-3ClCLk7L.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-CO5sPVVG.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-D0nALasd.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-CBqx4q4k.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-BOkyMgCm.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-BpicgiWF.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-yiM_5H0W.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-Dg6rdyGP.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-A49lyv-J.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-C_jHsy8M.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-KW-jcPRN.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-BNQlshyY.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-ChEbpWYC.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-DG824sGI.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-B8k8a538.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-7wnWuXDQ.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-57SONMGP.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-Das3959J.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-0i9FAXug.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-h0rymM2v.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-Cj8-XGcp.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-CybL6mVf.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-D4IkwvAB.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-7otLUrER.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-BUJXtmeP.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-DbN93Pcf.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-C28ozf2S.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-CZBJSHT_.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-BRp_bNso.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-0mZP5nBc.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-CLm12POW.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-C_ggDAQ-.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-CL15d-aQ.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-BEaRWIu-.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-CF_lqLg-.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-N825fjRf.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-uNCmnSvz.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-CFtgJ_Vi.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-BhC5cEe3.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-CNRAH2zT.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar--0FZ_eBi.cjs"))),VueUiBullet:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-vcmTY4AX.cjs"))),VueUiFunnel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-B6XMYl89.cjs"))),VueUiHistoryPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-JmeGiR--.cjs"))),VueUiCirclePack:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-CVLJs0XP.cjs")))},$={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"],VueUiGizmo:["config","dataset"],VueUiStackbar:["config","dataset"],VueUiBullet:["config","dataset"],VueUiFunnel:["config","dataset"],VueUiHistoryPlot:["config","dataset"],VueUiCirclePack:["config","dataset"]},W=_,c=e.computed(()=>!l[i.component]),X=e.computed(()=>l[i.component]||null),o=e.ref(null),j=e.computed(()=>{const t=$[i.component]||[],n={};return t.includes("config")&&(n.config=G.value),t.includes("dataset")&&(n.dataset=M.value),n}),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),k=e.ref(()=>null),S=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),B=e.ref(()=>null),I=e.ref(()=>null),N=e.ref(()=>null),x=e.ref(()=>null),F=e.ref(()=>null),H=e.ref(()=>null);e.onMounted(()=>{c.value&&console.error(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./BaseIcon-WIhlX3LN.cjs"),K={style:{width:"36px"}},Y={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap","toggleAnnotator"],setup(E,{expose:O,emit:_}){const i=E,{component:J,dataset:M,config:G}=e.toRefs(i),l={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-DeTBYGV_.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-DfGSS3SE.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-Bpy0V7AA.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-DfEQ057F.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-BQwGKI2l.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-DGJjS8TM.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-BusMzORo.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-vqs5auMD.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-Dul--Pi_.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-DSXcoM3k.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-Ct1Knstr.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-RHN_eSK2.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-C0IWPkaZ.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-DoOFKxep.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-HnReqNMq.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-BjmCUY0q.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-SBaCzHQP.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-BehdICTa.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-ntmlYIVx.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-CUoLdojY.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-BWlmz08s.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-DighSxmd.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-CPIzjzdm.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-BSgMQLjw.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-DOE444ST.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-bHv8hVve.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-B1pwFeeg.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-BpAFpJN9.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-4gAnz36n.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-CJ8rlJiI.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-ja3t34Mt.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-CPJeRMDV.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-CGUs_6Ij.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-DWC--OtD.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-B_koqVkj.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-C_yhbpyF.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-BRplGFjj.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-Bg5T7RVn.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-Bj3Z92nh.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-C078AHoi.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-BfKruH6W.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-cBSqrYy3.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-BCdm0tx2.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-Bv_hn_5f.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-S0FbKqDW.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-CyiaXAxw.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-CB6lYwMc.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-BWQ1ogz9.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-C76OoGNJ.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-CDPkL02l.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-BLLONfts.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-DD0VvMEs.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-B9AHiJLA.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-tet3qRDX.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-DSWEq3Pa.cjs"))),VueUiBullet:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-CrgeKJBE.cjs"))),VueUiFunnel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-D1PhFKgP.cjs"))),VueUiHistoryPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-B8_Kig_-.cjs"))),VueUiCirclePack:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-B9HW-E4V.cjs")))},$={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"],VueUiGizmo:["config","dataset"],VueUiStackbar:["config","dataset"],VueUiBullet:["config","dataset"],VueUiFunnel:["config","dataset"],VueUiHistoryPlot:["config","dataset"],VueUiCirclePack:["config","dataset"]},W=_,c=e.computed(()=>!l[i.component]),X=e.computed(()=>l[i.component]||null),o=e.ref(null),j=e.computed(()=>{const t=$[i.component]||[],n={};return t.includes("config")&&(n.config=G.value),t.includes("dataset")&&(n.dataset=M.value),n}),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),k=e.ref(()=>null),S=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),B=e.ref(()=>null),I=e.ref(()=>null),N=e.ref(()=>null),x=e.ref(()=>null),F=e.ref(()=>null),H=e.ref(()=>null);e.onMounted(()=>{c.value&&console.error(`
|
|
2
2
|
|
|
3
3
|
Vue Data UI exception:
|
|
4
4
|
The provided component "${i.component}" does not exist. Check the spelling.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs as tt, defineAsyncComponent as e, computed as s, ref as o, onMounted as et, watch as M, shallowReactive as ot, createElementBlock as it, createBlock as m, openBlock as c, normalizeStyle as at, createElementVNode as nt, createTextVNode as rt, createCommentVNode as $, toDisplayString as lt, resolveDynamicComponent as ut, mergeProps as st, toHandlers as ct, createSlots as gt, renderList as pt, withCtx as mt, renderSlot as dt, normalizeProps as Vt, guardReactiveProps as Ut } from "vue";
|
|
2
|
-
import W from "./BaseIcon-
|
|
2
|
+
import W from "./BaseIcon-BLhJaEYy.js";
|
|
3
3
|
const ft = { style: { width: "36px" } }, ht = {
|
|
4
4
|
__name: "vue-data-ui",
|
|
5
5
|
props: {
|
|
@@ -34,65 +34,65 @@ const ft = { style: { width: "36px" } }, ht = {
|
|
|
34
34
|
],
|
|
35
35
|
setup(X, { expose: Q, emit: j }) {
|
|
36
36
|
const n = X, { component: vt, dataset: z, config: K } = tt(n), g = {
|
|
37
|
-
VueUi3dBar: e(() => import("./vue-ui-3d-bar-
|
|
38
|
-
VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-
|
|
39
|
-
VueUiAnnotator: e(() => import("./vue-ui-annotator-
|
|
40
|
-
VueUiCandlestick: e(() => import("./vue-ui-candlestick-
|
|
41
|
-
VueUiChestnut: e(() => import("./vue-ui-chestnut-
|
|
42
|
-
VueUiDashboard: e(() => import("./vue-ui-dashboard-
|
|
43
|
-
VueUiDigits: e(() => import("./vue-ui-digits-
|
|
44
|
-
VueUiDonut: e(() => import("./vue-ui-donut-
|
|
45
|
-
VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-
|
|
46
|
-
VueUiGalaxy: e(() => import("./vue-ui-galaxy-
|
|
47
|
-
VueUiGauge: e(() => import("./vue-ui-gauge-
|
|
48
|
-
VueUiHeatmap: e(() => import("./vue-ui-heatmap-
|
|
49
|
-
VueUiKpi: e(() => import("./vue-ui-kpi-
|
|
50
|
-
VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-
|
|
51
|
-
VueUiMolecule: e(() => import("./vue-ui-molecule-
|
|
52
|
-
VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-
|
|
53
|
-
VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-
|
|
54
|
-
VueUiOnion: e(() => import("./vue-ui-onion-
|
|
55
|
-
VueUiQuadrant: e(() => import("./vue-ui-quadrant-
|
|
56
|
-
VueUiRadar: e(() => import("./vue-ui-radar-
|
|
57
|
-
VueUiRating: e(() => import("./vue-ui-rating-
|
|
58
|
-
VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-
|
|
59
|
-
VueUiRings: e(() => import("./vue-ui-rings-
|
|
60
|
-
VueUiScatter: e(() => import("./vue-ui-scatter-
|
|
61
|
-
VueUiSkeleton: e(() => import("./vue-ui-skeleton-
|
|
62
|
-
VueUiSmiley: e(() => import("./vue-ui-smiley-
|
|
63
|
-
VueUiSparkbar: e(() => import("./vue-ui-sparkbar-
|
|
64
|
-
VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-
|
|
65
|
-
VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-
|
|
66
|
-
VueUiSparkline: e(() => import("./vue-ui-sparkline-
|
|
67
|
-
VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-
|
|
68
|
-
VueUiTable: e(() => import("./vue-ui-table-
|
|
69
|
-
VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-
|
|
70
|
-
VueUiThermometer: e(() => import("./vue-ui-thermometer-
|
|
71
|
-
VueUiTiremarks: e(() => import("./vue-ui-tiremarks-
|
|
72
|
-
VueUiTreemap: e(() => import("./vue-ui-treemap-
|
|
73
|
-
VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-
|
|
74
|
-
VueUiWaffle: e(() => import("./vue-ui-waffle-
|
|
75
|
-
VueUiWheel: e(() => import("./vue-ui-wheel-
|
|
76
|
-
VueUiXy: e(() => import("./vue-ui-xy-
|
|
77
|
-
VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-
|
|
78
|
-
VueUiAccordion: e(() => import("./vue-ui-accordion-
|
|
79
|
-
VueUiQuickChart: e(() => import("./vue-ui-quick-chart-
|
|
80
|
-
VueUiCursor: e(() => import("./vue-ui-cursor-
|
|
81
|
-
VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-
|
|
82
|
-
VueUiStripPlot: e(() => import("./vue-ui-strip-plot-
|
|
83
|
-
VueUiDumbbell: e(() => import("./vue-ui-dumbbell-
|
|
84
|
-
VueUiWordCloud: e(() => import("./vue-ui-word-cloud-
|
|
85
|
-
VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-
|
|
86
|
-
VueUiFlow: e(() => import("./vue-ui-flow-
|
|
87
|
-
VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-
|
|
88
|
-
VueUiTimer: e(() => import("./vue-ui-timer-
|
|
89
|
-
VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-
|
|
90
|
-
VueUiGizmo: e(() => import("./vue-ui-gizmo-
|
|
91
|
-
VueUiStackbar: e(() => import("./vue-ui-stackbar-
|
|
92
|
-
VueUiBullet: e(() => import("./vue-ui-bullet-
|
|
93
|
-
VueUiFunnel: e(() => import("./vue-ui-funnel-
|
|
94
|
-
VueUiHistoryPlot: e(() => import("./vue-ui-history-plot-
|
|
95
|
-
VueUiCirclePack: e(() => import("./vue-ui-circle-pack-
|
|
37
|
+
VueUi3dBar: e(() => import("./vue-ui-3d-bar-NNib9NTc.js")),
|
|
38
|
+
VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-DWG7C-nA.js")),
|
|
39
|
+
VueUiAnnotator: e(() => import("./vue-ui-annotator-D21j4NL0.js")),
|
|
40
|
+
VueUiCandlestick: e(() => import("./vue-ui-candlestick-Dgwjzuq0.js")),
|
|
41
|
+
VueUiChestnut: e(() => import("./vue-ui-chestnut-DAlxKIqD.js")),
|
|
42
|
+
VueUiDashboard: e(() => import("./vue-ui-dashboard-Cu4QabFb.js")),
|
|
43
|
+
VueUiDigits: e(() => import("./vue-ui-digits-CrqD5QXP.js")),
|
|
44
|
+
VueUiDonut: e(() => import("./vue-ui-donut-CbDkvk9s.js")),
|
|
45
|
+
VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-DKD_efmP.js")),
|
|
46
|
+
VueUiGalaxy: e(() => import("./vue-ui-galaxy-B4JnwjLW.js")),
|
|
47
|
+
VueUiGauge: e(() => import("./vue-ui-gauge-BPz7mbOb.js")),
|
|
48
|
+
VueUiHeatmap: e(() => import("./vue-ui-heatmap-BbmFxESu.js")),
|
|
49
|
+
VueUiKpi: e(() => import("./vue-ui-kpi-CQo8VsEv.js")),
|
|
50
|
+
VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-8wZYNxLC.js")),
|
|
51
|
+
VueUiMolecule: e(() => import("./vue-ui-molecule-DHb8Roml.js")),
|
|
52
|
+
VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-CdBmESCg.js")),
|
|
53
|
+
VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-CO7sSeR-.js")),
|
|
54
|
+
VueUiOnion: e(() => import("./vue-ui-onion-Ci15BQ0y.js")),
|
|
55
|
+
VueUiQuadrant: e(() => import("./vue-ui-quadrant-BZTZY3LG.js")),
|
|
56
|
+
VueUiRadar: e(() => import("./vue-ui-radar-D8DHrSPP.js")),
|
|
57
|
+
VueUiRating: e(() => import("./vue-ui-rating-D4H6cT0d.js")),
|
|
58
|
+
VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-CWvX8cvJ.js")),
|
|
59
|
+
VueUiRings: e(() => import("./vue-ui-rings-Dq5YT7h-.js")),
|
|
60
|
+
VueUiScatter: e(() => import("./vue-ui-scatter-BMuJyp6q.js")),
|
|
61
|
+
VueUiSkeleton: e(() => import("./vue-ui-skeleton-pHcbvN3-.js")),
|
|
62
|
+
VueUiSmiley: e(() => import("./vue-ui-smiley-BsPExuQ7.js")),
|
|
63
|
+
VueUiSparkbar: e(() => import("./vue-ui-sparkbar-B9E03kBf.js")),
|
|
64
|
+
VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-CbtRwF8H.js")),
|
|
65
|
+
VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-BJfFPQ-X.js")),
|
|
66
|
+
VueUiSparkline: e(() => import("./vue-ui-sparkline-CLz-PMi0.js")),
|
|
67
|
+
VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-C5ZzOhRM.js")),
|
|
68
|
+
VueUiTable: e(() => import("./vue-ui-table-Cr6jEi4z.js")),
|
|
69
|
+
VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-C9PHXjbW.js")),
|
|
70
|
+
VueUiThermometer: e(() => import("./vue-ui-thermometer-Cs8Xt7tQ.js")),
|
|
71
|
+
VueUiTiremarks: e(() => import("./vue-ui-tiremarks-DHAdNbAA.js")),
|
|
72
|
+
VueUiTreemap: e(() => import("./vue-ui-treemap-CfH-P5Oh.js")),
|
|
73
|
+
VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-oBdc4YQS.js")),
|
|
74
|
+
VueUiWaffle: e(() => import("./vue-ui-waffle-DZ2zIujl.js")),
|
|
75
|
+
VueUiWheel: e(() => import("./vue-ui-wheel-BerXCO4A.js")),
|
|
76
|
+
VueUiXy: e(() => import("./vue-ui-xy-y9zEQYMK.js")),
|
|
77
|
+
VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-C0J52xWN.js")),
|
|
78
|
+
VueUiAccordion: e(() => import("./vue-ui-accordion-DGJQIcdB.js")),
|
|
79
|
+
VueUiQuickChart: e(() => import("./vue-ui-quick-chart-B2OUF1Pk.js")),
|
|
80
|
+
VueUiCursor: e(() => import("./vue-ui-cursor-CS0L4MjH.js")),
|
|
81
|
+
VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-eJ5IZSRQ.js")),
|
|
82
|
+
VueUiStripPlot: e(() => import("./vue-ui-strip-plot-Cbr3Dkmd.js")),
|
|
83
|
+
VueUiDumbbell: e(() => import("./vue-ui-dumbbell-BGN-Rshy.js")),
|
|
84
|
+
VueUiWordCloud: e(() => import("./vue-ui-word-cloud-U5KISxTe.js")),
|
|
85
|
+
VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-BpblELcE.js")),
|
|
86
|
+
VueUiFlow: e(() => import("./vue-ui-flow-g93Xo1mO.js")),
|
|
87
|
+
VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-BJbrb-Mp.js")),
|
|
88
|
+
VueUiTimer: e(() => import("./vue-ui-timer-DDZHmPLV.js")),
|
|
89
|
+
VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-TOSDOJ0J.js")),
|
|
90
|
+
VueUiGizmo: e(() => import("./vue-ui-gizmo-BbUqDkQz.js")),
|
|
91
|
+
VueUiStackbar: e(() => import("./vue-ui-stackbar-BnuJOk6L.js")),
|
|
92
|
+
VueUiBullet: e(() => import("./vue-ui-bullet-MrNlqcTX.js")),
|
|
93
|
+
VueUiFunnel: e(() => import("./vue-ui-funnel-r_WI2IRS.js")),
|
|
94
|
+
VueUiHistoryPlot: e(() => import("./vue-ui-history-plot-CJFtY1Rm.js")),
|
|
95
|
+
VueUiCirclePack: e(() => import("./vue-ui-circle-pack-BjD7UG4l.js"))
|
|
96
96
|
}, q = {
|
|
97
97
|
VueUi3dBar: ["config", "dataset"],
|
|
98
98
|
VueUiAgePyramid: ["config", "dataset"],
|
package/dist/vue-data-ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-MIJJ8liG.cjs");exports.Arrow=e.Arrow;exports.VueDataUi=e.VueDataUi;exports.VueUi3dBar=e.VueUi3dBar;exports.VueUiAccordion=e.VueUiAccordion;exports.VueUiAgePyramid=e.VueUiAgePyramid;exports.VueUiAnnotator=e.VueUiAnnotator;exports.VueUiBullet=e.VueUiBullet;exports.VueUiCandlestick=e.VueUiCandlestick;exports.VueUiCarouselTable=e.VueUiCarouselTable;exports.VueUiChestnut=e.VueUiChestnut;exports.VueUiCirclePack=e.VueUiCirclePack;exports.VueUiCursor=e.VueUiCursor;exports.VueUiDashboard=e.VueUiDashboard;exports.VueUiDigits=e.VueUiDigits;exports.VueUiDonut=e.VueUiDonut;exports.VueUiDonutEvolution=e.VueUiDonutEvolution;exports.VueUiDumbbell=e.VueUiDumbbell;exports.VueUiFlow=e.VueUiFlow;exports.VueUiFunnel=e.VueUiFunnel;exports.VueUiGalaxy=e.VueUiGalaxy;exports.VueUiGauge=e.VueUiGauge;exports.VueUiGizmo=e.VueUiGizmo;exports.VueUiHeatmap=e.VueUiHeatmap;exports.VueUiHistoryPlot=e.VueUiHistoryPlot;exports.VueUiIcon=e.VueUiIcon;exports.VueUiKpi=e.VueUiKpi;exports.VueUiMiniLoader=e.VueUiMiniLoader;exports.VueUiMolecule=e.VueUiMolecule;exports.VueUiMoodRadar=e.VueUiMoodRadar;exports.VueUiNestedDonuts=e.VueUiNestedDonuts;exports.VueUiOnion=e.VueUiOnion;exports.VueUiParallelCoordinatePlot=e.VueUiParallelCoordinatePlot;exports.VueUiPattern=e.VueUiPattern;exports.VueUiQuadrant=e.VueUiQuadrant;exports.VueUiQuickChart=e.VueUiQuickChart;exports.VueUiRadar=e.VueUiRadar;exports.VueUiRating=e.VueUiRating;exports.VueUiRelationCircle=e.VueUiRelationCircle;exports.VueUiRings=e.VueUiRings;exports.VueUiScatter=e.VueUiScatter;exports.VueUiSkeleton=e.VueUiSkeleton;exports.VueUiSmiley=e.VueUiSmiley;exports.VueUiSparkHistogram=e.VueUiSparkHistogram;exports.VueUiSparkStackbar=e.VueUiSparkStackbar;exports.VueUiSparkTrend=e.VueUiSparkTrend;exports.VueUiSparkbar=e.VueUiSparkbar;exports.VueUiSparkgauge=e.VueUiSparkgauge;exports.VueUiSparkline=e.VueUiSparkline;exports.VueUiStackbar=e.VueUiStackbar;exports.VueUiStripPlot=e.VueUiStripPlot;exports.VueUiTable=e.VueUiTable;exports.VueUiTableHeatmap=e.VueUiTableHeatmap;exports.VueUiTableSparkline=e.VueUiTableSparkline;exports.VueUiThermometer=e.VueUiThermometer;exports.VueUiTimer=e.VueUiTimer;exports.VueUiTiremarks=e.VueUiTiremarks;exports.VueUiTreemap=e.VueUiTreemap;exports.VueUiVerticalBar=e.VueUiVerticalBar;exports.VueUiWaffle=e.VueUiWaffle;exports.VueUiWheel=e.VueUiWheel;exports.VueUiWordCloud=e.VueUiWordCloud;exports.VueUiXy=e.VueUiXy;exports.VueUiXyCanvas=e.VueUiXyCanvas;exports.abbreviate=e.abbreviate;exports.createSmoothPath=e.createSmoothPath;exports.createStraightPath=e.createStraightPath;exports.createTSpans=e.createTSpans;exports.createWordCloudDatasetFromPlainText=e.createWordCloudDatasetFromPlainText;exports.darkenColor=e.darkenColor;exports.getPalette=e.getPalette;exports.getThemeConfig=e.getThemeConfig;exports.getVueDataUiConfig=e.getVueDataUiConfig;exports.lightenColor=e.lightenColor;exports.shiftColorHue=e.shiftColorHue;
|
package/dist/vue-data-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { ak as s, al as u, am as V, an as U, ao as r, ap as t, be as o, aq as l, bb as b, ar as n, bi as d, as as m, at as c, au as S, av as k, aw as C, ax as g, ay as p, bf as T, az as h, aA as P, bc as D, aB as f, bg as y, aC as H, aD as R, aE as A, aF as W, aG as v, aH as x, aI as B, aJ as F, bh as G, aK as M, aL as w, aM as L, aN as Q, aO as X, aP as z, aQ as E, aR as I, aS as K, aT as N, aU as O, aV as j, aW as q, aX as J, aY as Y, bd as Z, aZ as _, a_ as $, a$ as aa, b0 as ea, b1 as ia, b2 as sa, b3 as ua, b4 as Va, b5 as Ua, b6 as ra, b7 as ta, b8 as oa, b9 as la, ba, L as na, T as da, S as ma, af as ca, a6 as Sa, bj as ka, bk as Ca, bl as ga, bm as pa, bn as Ta, bo as ha } from "./index-
|
|
2
|
+
import { ak as s, al as u, am as V, an as U, ao as r, ap as t, be as o, aq as l, bb as b, ar as n, bi as d, as as m, at as c, au as S, av as k, aw as C, ax as g, ay as p, bf as T, az as h, aA as P, bc as D, aB as f, bg as y, aC as H, aD as R, aE as A, aF as W, aG as v, aH as x, aI as B, aJ as F, bh as G, aK as M, aL as w, aM as L, aN as Q, aO as X, aP as z, aQ as E, aR as I, aS as K, aT as N, aU as O, aV as j, aW as q, aX as J, aY as Y, bd as Z, aZ as _, a_ as $, a$ as aa, b0 as ea, b1 as ia, b2 as sa, b3 as ua, b4 as Va, b5 as Ua, b6 as ra, b7 as ta, b8 as oa, b9 as la, ba, L as na, T as da, S as ma, af as ca, a6 as Sa, bj as ka, bk as Ca, bl as ga, bm as pa, bn as Ta, bo as ha } from "./index-D3VntmA9.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Arrow,
|
|
5
5
|
u as VueDataUi,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-MIJJ8liG.cjs"),me=require("./Title-C5w8bVlo.cjs"),oe=require("./usePrinter-U1x-RAEA.cjs"),ye=require("./vue-ui-skeleton-DOE444ST.cjs"),ge=require("./DataTable-c3nDhwbO.cjs"),$e=require("./vue-ui-accordion-cBSqrYy3.cjs"),ne=require("./useNestedProp-DwR4JSzw.cjs"),_e=require("./PackageVersion-DFYAej2o.cjs"),be=require("./PenAndPaper-CAqWCUZx.cjs"),Be=require("./useUserOptionState-BgepsfED.cjs"),xe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],we={key:1,style:"width:100%;background:transparent"},Ne=["xmlns","viewBox"],Ve=["width","height"],Fe=["id"],Me=["stop-color"],Se=["stop-color"],Pe=["id"],Oe=["stop-color"],Le=["stop-color"],De=["id"],Te=["stop-color"],ze=["stop-color"],je=["id"],Ae=["stop-color"],Ie=["stop-color"],We=["stop-color"],Ge={key:1},He=["id"],qe=["stop-color"],Ue=["stop-color"],Re=["id"],Xe=["stop-color"],Ze=["stop-color"],Ye=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["id"],et=["x","y","font-size","font-weight","fill"],tt=["x","y"],lt=["d","stroke"],ot=["d","stroke"],nt={key:4},rt={key:0},at=["stroke-dasharray","d","stroke","stroke-width"],st=["stroke-dasharray","d","stroke","stroke-width"],ut=["stroke-dasharray","d","stroke","stroke-width"],it=["stroke-dasharray","d","stroke","stroke-width"],ct={key:1},dt=["d","stroke","stroke-width","fill"],ht=["d","stroke","stroke-width","fill"],vt=["d","stroke","stroke-width","fill"],pt={key:2},ft=["d","fill","onMouseenter","onClick"],kt=["d","fill","onMouseenter","onClick"],mt=["d","fill","onMouseenter","onClick"],yt=["d","onMouseenter","onClick"],gt=["d"],$t=["d","stroke"],_t=["onClick"],bt=["stroke","d"],Bt=["cx","cy","fill","stroke"],xt=["x","y","width","height"],Ct={key:1},Et=["d","stroke"],wt=["d","fill","stroke"],Nt=["id"],Vt=["stop-color"],Ft=["stop-color"],Mt=["cx","cy","fill"],St=["cx","cy","fill"],Pt={key:0},Ot=["text-anchor","x","y","fill","font-size"],Lt=["text-anchor","x","y","fill","font-size"],Dt={key:2},Tt=["d","fill","stroke"],zt={key:5},jt={key:0},At=["stroke-dasharray","d","stroke","stroke-width"],It=["stroke-dasharray","d","stroke","stroke-width"],Wt=["stroke-dasharray","d","stroke","stroke-width"],Gt=["stroke-dasharray","d","stroke","stroke-width"],Ht=["d","stroke","stroke-width","fill"],qt=["d","stroke","stroke-width","fill"],Ut={key:1},Rt=["onClick"],Xt=["id"],Zt=["stop-color"],Yt=["stop-color"],Jt=["id"],Kt=["stop-color"],Qt=["stop-color"],el=["stop-color"],tl=["stop-color"],ll=["stop-color"],ol=["onMouseenter","onClick","d","fill"],nl=["onMouseenter","onClick","d"],rl=["onMouseenter","onClick","d","fill"],al=["onClick"],sl=["stroke","d"],ul=["cx","cy","fill","stroke"],il=["x","y","width","height"],cl={key:1},dl=["d","stroke"],hl=["d","fill","stroke"],vl=["id"],pl=["stop-color"],fl=["stop-color"],kl=["cx","cy","fill"],ml=["cx","cy","fill"],yl={key:0},gl=["text-anchor","x","y","fill","font-size"],$l=["text-anchor","x","y","fill","font-size"],_l={key:2},bl=["d","fill","stroke"],Bl={key:4,class:"vue-data-ui-watermark"},xl={key:6,ref:"source",dir:"auto"},Cl=["innerHTML"],El={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(re,{expose:ae,emit:se}){const{vue_ui_3d_bar:ue}=s.useConfig(),f=re,F=se,M=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),k=e.ref(s.createUid()),ie=e.ref(null),z=e.ref(null),x=e.ref(!1),j=e.ref(0),A=e.ref(0),l=e.computed({get:()=>H(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:I,keepUserOptionState:W}=Be.useUserOptionState({config:l.value}),{svgRef:G}=xe.useChartAccessibility({config:l.value.style.chart.title});function H(){const a=ne.useNestedProp({userConfig:f.config,defaultConfig:ue});return a.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_3d_bar[a.theme]||f.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>f.config,a=>{l.value=H(),O.value=!l.value.userOptions.showOnChartHover,Z(),j.value+=1,A.value+=1,N.value.showTable=l.value.table.show},{deep:!0});const{isPrinting:q,isImaging:U,generatePdf:R,generateImage:X}=oe.usePrinter({elementId:`3d_bar_${k.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar",options:l.value.userOptions.print}),ce=e.computed(()=>s.convertCustomPalette(l.value.customPalette)),N=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),n=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const a=f.dataset.series.map(o=>o.value||0).reduce((o,u)=>o+u,0),r=f.dataset.series.map((o,u)=>({...o,id:s.createUid(),proportion:(o.value||0)/a,color:s.convertColorToHex(o.color)||ce.value[u]||s.palette[u]||s.palette[u%s.palette.length],breakdown:o.breakdown?o.breakdown.sort((i,p)=>p.value-i.value):null})).sort((o,u)=>u.value-o.value),t=[];let c=0;for(let o=0;o<r.length;o+=1)t.push({...r[o],fill:de(c,r[o].proportion,r[o].breakdown,r[o].color)}),c+=r[o].proportion;return t}return null}),b=e.computed(()=>({right:`M${n.value.width/2},${n.value.top} ${n.value.width-n.value.right}, ${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,left:`M${n.value.width/2},${n.value.top} ${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,side:`M${n.value.width/2},${n.value.height-n.value.bottom} ${n.value.width/2},${n.value.top+n.value.perspective*2}`,topSides:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.width/2},${n.value.top+n.value.perspective*2} ${n.value.width-n.value.right},${n.value.top+n.value.perspective}`,tubeTop:`M${n.value.left},${n.value.top+n.value.perspective} C ${n.value.left},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top+n.value.perspective} C ${n.value.width-n.value.right},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective}`,tubeLeft:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`,tubeRight:`M${n.value.width-n.value.right},${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective}`,tubeBottom:`M${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} C ${n.value.width-n.value.right},${n.value.height} ${n.value.left},${n.value.height} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`})),E=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{Z();let a=0,r=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){E.value+=r+a,a+=t,E.value<f.dataset.percentage?requestAnimationFrame(c):E.value=f.dataset.percentage}l.value.style.chart.animation.use&&(E.value=0,c())});function Z(){s.objectIsEmpty(f.dataset)?s.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((a,r)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","value"]}).forEach(t=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:t,index:r})}),a.breakdown&&a.breakdown.forEach((t,c)=>{s.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["name","value"]}).forEach(o=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:o,index:`${r} - ${c}`})})})}):s.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(a=>{s.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:a})})}function de(a,r,t,c){const o=n.value.height-n.value.bottom-n.value.top-n.value.perspective*2,{width:u,height:i,bottom:p,right:y,left:h,perspective:v}=n.value,d=p+o*a,T=i-d-v-o*r/2,pe=T>n.value.height/2?"top":"bottom",Q=64,fe=!!t;let ee=null,te=null;return fe&&(t=t.map((le,ke)=>({...le,value:le.value||0,color:s.lightenHexColor(c,ke/t.length)})),ee=s.makeDonut({series:t},u+n.value.absoluteWidth/4-14,pe==="top"?T-Q:T+Q,28,28,1.99999,2,1,360,105.25,14),te=s.makeDonut({series:t},u-y+20,i-d-v-o*r/2,6,6,1.99999,2,1,360,105.25,6)),{donut:ee,miniDonut:te,sidePointer:{x:u-y,y:i-d-v-o*r/2,topY:i-d-v-o*r,height:o*r},apexBottom:{y:i-d,x:u/2},apexTop:{y:i-d-o*r,x:u/2},right:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r} ${u-y},${i-d-v}Z`,left:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${h}, ${i-d-v-o*r} ${h},${i-d-v}Z`,liningTop:`M${h},${i-d-v-o*r} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r}`,liningTopShade:`M${h},${i-d-v-o*r-.5} ${u/2},${i-d-o*r-.5} ${u-y},${i-d-v-o*r-.5}`,top:`M${u/2},${i-d-o*r} ${h},${i-d-v-o*r} ${u/2},${i-d-v*2-o*r} ${u-y},${i-d-v-o*r} Z`,tubeTop:`M${h},${i-d-o*r-v} C ${h},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v} C ${u-y},${i-d-o*r+v/2} ${h},${i-d-o*r+v/2} ${h},${i-d-o*r-v}`,bottomTubeTop:`M ${u-y-.5},${i-d-v} C ${u-y-.5},${i-d+v/2} ${h},${i-d+v/2} ${h+.5},${i-d-v}`,tubeBody:`M
|
|
2
|
+
${h},${i-d-o*r-v}
|
|
3
|
+
C ${h},${i-d-o*r+v/2}
|
|
4
|
+
${u-y},${i-d-o*r+v/2}
|
|
5
|
+
${u-y},${i-d-o*r-v}
|
|
6
|
+
L${u-y},${i-d-v}
|
|
7
|
+
C
|
|
8
|
+
${u-y},${i-d+v/2}
|
|
9
|
+
${h},${i-d+v/2}
|
|
10
|
+
${h},${i-d-v}Z`}}const V=e.computed(()=>{const a=E.value/100,r=n.value.height-n.value.bottom-n.value.top-n.value.perspective*2,{width:t,height:c,bottom:o,right:u,left:i,perspective:p}=n.value,h=o+r*0;return{right:`M${t/2},${c-h} ${t/2},${c-h-r*a} ${t-u},${c-h-p-r*a} ${t-u},${c-h-p}Z`,left:`M${t/2},${c-h} ${t/2},${c-h-r*a} ${i}, ${c-h-p-r*a} ${i},${c-h-p}Z`,top:`M${t/2},${c-h-r*a} ${i},${c-h-p-r*a} ${t/2},${c-h-p*2-r*a} ${t-u},${c-h-p-r*a} Z`,tubeTop:`M${i},${c-h-r*a-p} C ${i},${c-h-r*a-p*2.5} ${t-u},${c-h-r*a-p*2.5} ${t-u},${c-h-r*a-p} C ${t-u},${c-h-r*a+p/2} ${i},${c-h-r*a+p/2} ${i},${c-h-r*a-p}`,tubeBody:`M
|
|
11
|
+
${i},${c-h-r*a-p}
|
|
12
|
+
C ${i},${c-h-r*a+p/2}
|
|
13
|
+
${t-u},${c-h-r*a+p/2}
|
|
14
|
+
${t-u},${c-h-r*a-p}
|
|
15
|
+
L${t-u},${c-p*1.5}
|
|
16
|
+
C
|
|
17
|
+
${t-u},${c}
|
|
18
|
+
${i},${c}
|
|
19
|
+
${i},${c-h-p}Z`}}),m=e.ref(null);function _(a,r=!1){F("selectDatapoint",a),r||(m.value=a.id),r&&x.value&&(x.value=!1),r&&!x.value&&(x.value=!0)}function C(){x.value||(m.value=null)}function w(a,r,t=!1){const c=f.dataset.series.map(i=>i.value||0).reduce((i,p)=>i+p,0),o=isNaN(a.value/c)?0:a.value/c*100,u=isNaN(a.value/Y(r))?0:a.value/Y(r)*100;return t?u:o.toFixed(0)+"%"}function Y(a){return[...a].map(r=>r.value).reduce((r,t)=>r+t,0)}const L=e.ref(!1);function he(a){L.value=a}function ve(){return $.value?g.value:f.dataset.percentage}const B=e.computed(()=>{if($.value){const a=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[{name:t.name,color:t.color},...t.breakdown.map((c,o)=>({name:c.name,color:s.lightenHexColor(t.color,o/t.breakdown.length)}))]:{name:t.name,color:t.color}),r=g.value.flatMap(t=>t.breakdown&&t.breakdown.length?[t.value,...t.breakdown.map(c=>c.value)]:t.value);return{head:a,body:r}}else return null});function J(){if(!$.value){console.warn("VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)");return}e.nextTick(()=>{const a=g.value.map(o=>o.value).reduce((o,u)=>o+u,0),r=B.value.head.map((o,u)=>[[o.name],[B.value.body[u]],[isNaN(B.value.body[u]/a)?"-":B.value.body[u]/a*100]]),t=[[l.value.style.chart.title.text],[l.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(r),c=s.createCsvContent(t);s.downloadCsv({csvContent:c,title:l.value.style.chart.title.text||"vue-ui-3d-bar"})})}const S=e.computed(()=>{const a=g.value.map(u=>u.value).reduce((u,i)=>u+i,0),r=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',s.dataLabel({p:l.value.style.chart.legend.prefix,v:a,s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue}),"100%"],t=B.value.head.map((u,i)=>{const p=s.dataLabel({p:l.value.style.chart.legend.prefix,v:B.value.body[i],s:l.value.style.chart.legend.suffix,r:l.value.table.td.roundingValue});return[{color:u.color,name:u.name},p,isNaN(B.value.body[i]/a)?"-":s.dataLabel({v:B.value.body[i]/a*100,s:"%",r:l.value.table.td.roundingPercentage})]}),c={th:{backgroundColor:l.value.table.th.backgroundColor,color:l.value.table.th.color,outline:l.value.table.th.outline},td:{backgroundColor:l.value.table.td.backgroundColor,color:l.value.table.td.color,outline:l.value.table.td.outline},breakpoint:l.value.table.responsiveBreakpoint,shape:l.value.style.shape==="tube"?"circle":"square"};return{colNames:[l.value.table.columnNames.series,l.value.table.columnNames.value,l.value.table.columnNames.percentage],head:r,body:t,config:c}});function K(){N.value.showTable=!N.value.showTable}const P=e.ref(!1);function D(){P.value=!P.value}return ae({generateCsv:J,generatePdf:R,generateImage:X,getData:ve,toggleTable:K,toggleAnnotator:D}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"bar3dChart",ref:z,class:e.normalizeClass("vue-ui-3d-bar"),style:e.normalizeStyle(`font-family:${l.value.style.fontFamily};width:100%; text-align:center;background:${l.value.style.chart.backgroundColor}`),id:`3d_bar_${k.value}`,onMouseenter:r[2]||(r[2]=()=>e.unref(I)(!0)),onMouseleave:r[3]||(r[3]=()=>e.unref(I)(!1))},[l.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(be._sfc_main,{key:0,svgRef:e.unref(G),backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,active:P.value,onClose:D},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),l.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createBlock(me._sfc_main,{key:`title_${j.value}`,config:{title:{cy:"3dBar-div-title",...l.value.style.chart.title},subtitle:{cy:"3dBar-div-subtitle",...l.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),l.value.userOptions.show&&M.value&&(e.unref(W)||e.unref(O))?(e.openBlock(),e.createBlock(oe.UserOptions,{key:2,ref_key:"details",ref:ie,backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(U),uid:k.value,hasPdf:l.value.userOptions.buttons.pdf,hasTable:!!$.value&&l.value.userOptions.buttons.table,hasXls:!!$.value&&l.value.userOptions.buttons.csv,hasImg:l.value.userOptions.buttons.img,hasFullscreen:l.value.userOptions.buttons.fullscreen,titles:{...l.value.userOptions.buttonTitles},chartElement:z.value,position:l.value.userOptions.position,hasAnnotator:l.value.userOptions.buttons.annotator,isAnnotation:P.value,onToggleFullscreen:he,onGeneratePdf:e.unref(R),onGenerateCsv:J,onGenerateImage:e.unref(X),onToggleTable:K,onToggleAnnotator:D,style:e.normalizeStyle({visibility:e.unref(W)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:t,color:c})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:t,color:c})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:t,isFullscreen:c})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:t,isFullscreen:c})),void 0,!0)]),key:"5"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:t,isAnnotator:c})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:t,isAnnotator:c})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasTable","hasXls","hasImg","hasFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),M.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:G,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":L.value,"vue-data-ui-fulscreen--off":!L.value}),viewBox:`0 0 ${n.value.absoluteWidth} ${n.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${l.value.style.chart.color}`)},[e.createVNode(_e._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.absoluteWidth,height:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ve)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_top${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":l.value.style.chart.bar.color},null,8,Se)],8,Fe),e.createElementVNode("radialGradient",{id:`gradient_left${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Oe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,20)},null,8,Le)],8,Pe),e.createElementVNode("radialGradient",{id:`gradient_right${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,20)},null,8,ze)],8,De),e.createElementVNode("linearGradient",{id:`gradient_tube_body${k.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.value.style.chart.bar.color}`},null,8,Ae),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.bar.color,40)},null,8,We)],8,je)]),$.value?(e.openBlock(),e.createElementBlock("defs",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`grad_top_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),80)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.color},null,8,Ue)],8,He))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_left_${t.id}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.5),100)},null,8,Ze)],8,Re))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,t=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`grad_right_${t.id}`},[e.createElementVNode("stop",{offset:"2%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),100)},null,8,Je),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,Ke)],8,Ye))),256)),e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`vertical_line_${k.value}`},r[4]||(r[4]=[e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1),e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)]),8,Qe)])):e.createCommentVNode("",!0),l.value.style.chart.dataLabel.show&&![null,void 0].includes(f.dataset.percentage)&&[null,void 0].includes(f.dataset.series)?(e.openBlock(),e.createElementBlock("text",{key:2,x:n.value.width/2,y:n.value.top-l.value.style.chart.dataLabel.fontSize/2,"font-size":l.value.style.chart.dataLabel.fontSize,"font-weight":l.value.style.chart.dataLabel.bold?"bold":"normal",fill:l.value.style.chart.dataLabel.color,"text-anchor":"middle"},e.toDisplayString(e.unref(s.dataLabel)({v:E.value,s:"%",r:l.value.style.chart.dataLabel.rounding})),9,et)):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("g",{key:3,onClick:r[0]||(r[0]=t=>{x.value=!1,m.value=null}),"data-dom-to-png-ignore":"",style:{cursor:"pointer"}},[e.createElementVNode("rect",{x:n.value.width/2-6,y:n.value.top-20,height:12,width:12,fill:"transparent"},null,8,tt),e.createElementVNode("path",{d:`M${n.value.width/2-6},${n.value.top-20} ${n.value.width/2+6},${n.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,lt),e.createElementVNode("path",{d:`M${n.value.width/2+6},${n.value.top-20} ${n.value.width/2-6},${n.value.top-9}`,stroke:l.value.style.chart.color,"stroke-linecap":"round","stroke-width":"1"},null,8,ot)])):e.createCommentVNode("",!0),!l.value.style.shape||l.value.style.shape==="bar"?(e.openBlock(),e.createElementBlock("g",nt,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",rt,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.right,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,at),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.left,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,st),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.side,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,ut),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.topSides,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,it)])),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",ct,[e.createElementVNode("path",{d:V.value.right,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_right${k.value})`},null,8,dt),e.createElementVNode("path",{d:V.value.left,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_left${k.value})`},null,8,ht),e.createElementVNode("path",{d:V.value.top,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,vt)])),$.value?(e.openBlock(),e.createElementBlock("g",pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack"},[e.createElementVNode("path",{d:t.fill.right,fill:`url(#grad_right_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,ft),e.createElementVNode("path",{d:t.fill.left,fill:`url(#grad_left_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,kt),e.createElementVNode("path",{d:t.fill.top,fill:`url(#grad_top_${t.id})`,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,mt),e.createElementVNode("path",{d:t.fill.liningTop,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round",fill:"none",onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C},null,40,yt),e.createElementVNode("path",{d:`M ${t.fill.apexTop.x},${t.fill.apexTop.y} ${t.fill.apexBottom.x},${t.fill.apexBottom.y}`,stroke:"#FFFFFF","stroke-width":"0.5","stroke-linecap":"round"},null,8,gt)],4))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",null,[c!==g.value.length-1?(e.openBlock(),e.createElementBlock("path",{key:0,d:t.fill.liningTopShade,stroke:l.value.style.chart.bar.shadeColor,"stroke-width":"0.5","stroke-linecap":"round",fill:"none",style:{"pointer-events":"none"}},null,8,$t)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,bt),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,Bt)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:n.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,`${t.name}: ${e.unref(s.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage})} (${e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue})})`,{datapoint:t,seriesIndex:c,type:"barDatapoint"})),5)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",e.mergeProps({ref_for:!0},{datapoint:t,config:l.value,dataset:g.value}),void 0,!0)],8,xt)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(s.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Et)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,wt))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Vt),r[5]||(r[5]=e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,Ft)],8,Nt)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,Mt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,St))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",Pt,[e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,`${w(o,t.fill.donut)} (${e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue})})`,{datapoint:o,seriesIndex:u,type:"donutDatapoint"})),9,Ot),e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,Lt)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,Tt))),256))])):e.createCommentVNode("",!0)],12,_t))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.value.style.shape==="tube"?(e.openBlock(),e.createElementBlock("g",zt,[$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",jt,[e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeTop,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,At),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeLeft,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,It),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeRight,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Wt),e.createElementVNode("path",{"stroke-dasharray":l.value.style.chart.box.strokeDasharray,d:b.value.tubeBottom,stroke:l.value.style.chart.box.stroke,"stroke-width":l.value.style.chart.box.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,8,Gt),e.createElementVNode("path",{d:V.value.tubeTop,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_top${k.value})`},null,8,Ht),e.createElementVNode("path",{d:V.value.tubeBody,stroke:l.value.style.chart.bar.stroke,"stroke-width":l.value.style.chart.bar.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body${k.value})`},null,8,qt)])),$.value?(e.openBlock(),e.createElementBlock("g",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:.3:1}`),class:"vue-ui-3d-bar-stack",onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_tube_top_${t.id}`,fx:"10%",cy:"55%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.5),80)},null,8,Zt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.1),80)},null,8,Yt)],8,Xt),e.createElementVNode("linearGradient",{id:`gradient_tube_body_${t.id}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.color}`},null,8,Kt),e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.7),100)},null,8,Qt),e.createElementVNode("stop",{offset:"25%","stop-color":e.unref(s.setOpacity)(e.unref(s.darkenHexColor)(t.color,.5),100)},null,8,el),e.createElementVNode("stop",{offset:"75%","stop-color":e.unref(s.setOpacity)(t.color,80)},null,8,tl),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(e.unref(s.lightenHexColor)(t.color,.7),100)},null,8,ll)],8,Jt)]),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.tubeBody,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_body_${t.id})`},null,40,ol),c>0?(e.openBlock(),e.createElementBlock("path",{key:0,onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.bottomTubeTop,stroke:"#000000","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:"none"},null,40,nl)):e.createCommentVNode("",!0),e.createElementVNode("path",{onMouseenter:o=>_(t),onClick:o=>_(t,!0),onMouseout:C,d:t.fill.tubeTop,stroke:"#FFFFFF","stroke-width":.5,"stroke-linejoin":"round","stroke-linecap":"round",fill:`url(#gradient_tube_top_${t.id})`},null,40,rl)],12,Rt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(t,c)=>(e.openBlock(),e.createElementBlock("g",{style:e.normalizeStyle(`opacity:${m.value?m.value===t.id?1:0:t.proportion*100>l.value.style.chart.legend.hideUnderPercentage?1:0}`),onClick:o=>F("selectDatapoint",t)},[e.createElementVNode("path",{stroke:l.value.style.chart.color,"stroke-dasharray":"1","stroke-width":"0.5","stroke-linecap":"round",d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x+20},${t.fill.sidePointer.y}`},null,8,sl),!t.fill.miniDonut||m.value?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.fill.sidePointer.x+20,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:l.value.style.chart.backgroundColor},null,8,ul)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("foreignObject",{x:t.fill.sidePointer.x+30,y:t.fill.sidePointer.y-l.value.style.chart.legend.fontSize,width:n.value.absoluteWidth/2-12,height:l.value.style.chart.legend.fontSize*2,style:{overflow:"visible",position:"relative"}},[l.value.style.chart.legend.showDefault?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${l.value.style.chart.legend.fontSize}px; text-align:left; line-height: ${l.value.style.chart.legend.fontSize}px; color:${l.value.style.chart.legend.color}`)},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,t.value,`${t.name}: ${e.unref(s.dataLabel)({v:t.proportion*100,s:"%",r:l.value.style.chart.legend.roundingPercentage})} (${e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:t.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue})})`,{datapoint:t,seriesIndex:c,type:"barDatapoint"})),5)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",e.mergeProps({ref_for:!0},{datapoint:t,config:l.value,dataset:g.value}),void 0,!0)],8,il)),t.fill.donut&&m.value===t.id?(e.openBlock(),e.createElementBlock("g",cl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(s.calcNutArrowPath)(o,{x:o.cx,y:o.cy},0,8,!1,!0,10),stroke:o.color,class:"vue-ui-donut-arc-path","stroke-width":"0.5","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,dl)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":1},null,8,hl))),256)),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`hollow_gradient_${k.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,pl),r[6]||(r[6]=e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)(l.value.style.chart.backgroundColor,0)},null,8,fl)],8,vl)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:28,fill:`url(#hollow_gradient_${k.value})`},null,8,kl))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("circle",{class:"vue-ui-donut-arc-path",cx:o.cx,cy:o.cy,r:14,fill:l.value.style.chart.backgroundColor},null,8,ml))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.donut,(o,u)=>(e.openBlock(),e.createElementBlock("g",null,[w(o,t.fill.donut,!0)>6?(e.openBlock(),e.createElementBlock("g",yl,[e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!0,0).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12),fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(e.unref(s.applyDataLabel)(l.value.style.chart.dataLabel.formatter,o.value,`${w(o,t.fill.donut)} (${e.unref(s.dataLabel)({p:l.value.style.chart.legend.prefix,v:o.value,s:l.value.style.chart.legend.suffix,r:l.value.style.chart.legend.roundingValue})})`,{datapoint:o,seriesIndex:u,type:"donutDatapoint"})),9,gl),e.createElementVNode("text",{"text-anchor":e.unref(s.calcMarkerOffsetX)(o).anchor,x:e.unref(s.calcMarkerOffsetX)(o,!0,2).x,y:e.unref(s.calcMarkerOffsetY)(o,12,12)+l.value.style.chart.legend.fontSize/1.5,fill:l.value.style.chart.legend.color,"font-size":l.value.style.chart.legend.fontSize/1.5},e.toDisplayString(o.name),9,$l)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),t.fill.miniDonut&&!m.value?(e.openBlock(),e.createElementBlock("g",_l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fill.miniDonut,(o,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:o.arcSlice,fill:`${o.color}`,stroke:l.value.style.chart.backgroundColor,"stroke-width":.5},null,8,bl))),256))])):e.createCommentVNode("",!0)],12,al))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:n.value},void 0,!0)],14,Ne)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Bl,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),M.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ye.default,{key:5,config:{type:"bar3d",style:{backgroundColor:l.value.style.chart.backgroundColor,bar3d:{color:"#CCCCCC"}}}},null,8,["config"])),a.$slots.source?(e.openBlock(),e.createElementBlock("div",xl,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),M.value&&$.value?(e.openBlock(),e.createBlock($e.default,{key:7,hideDetails:"",config:{open:N.value.showTable,maxHeight:1e4,body:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color},head:{backgroundColor:l.value.style.chart.backgroundColor,color:l.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ge.DataTable,{key:`table_${A.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text?` : ${l.value.style.chart.title.subtitle.text}`:""}`,onClose:r[1]||(r[1]=t=>N.value.showTable=!1)},{th:e.withCtx(({th:t})=>[e.createElementVNode("div",{innerHTML:t,style:{display:"flex","align-items":"center"}},null,8,Cl)]),td:e.withCtx(({td:t})=>[e.createTextVNode(e.toDisplayString(t.name||t),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ee))}},wl=Ce._export_sfc(El,[["__scopeId","data-v-178469b1"]]);exports.default=wl;
|