vue-data-ui 2.3.26 → 2.3.28
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/README.md +15 -8
- package/dist/{Arrow-Bkhcj4Ua.js → Arrow-BPoxM_Tq.js} +1 -1
- package/dist/{Arrow-BRk7ox-0.cjs → Arrow-C6lQ94rK.cjs} +1 -1
- package/dist/{BaseIcon-r5Y-jYX5.cjs → BaseIcon-BK5xYOzV.cjs} +1 -1
- package/dist/{BaseIcon-Cr58pV0U.js → BaseIcon-Op8_v5x7.js} +4 -3
- package/dist/{DataTable-BM_PreHp.cjs → DataTable-B4_9ynlY.cjs} +1 -1
- package/dist/{DataTable-DFEpvyNK.js → DataTable-bEXuvNn5.js} +2 -2
- package/dist/{Legend-yNP9uHMI.cjs → Legend-BNfS77GS.cjs} +1 -1
- package/dist/{Legend-C-mWIWYw.js → Legend-DwludSgp.js} +1 -1
- package/dist/{Shape-CN-v5JU3.js → Shape-COYAxpcP.js} +1 -1
- package/dist/{Shape-DBO11ZkD.cjs → Shape-CcWWIf-s.cjs} +1 -1
- package/dist/{Slicer-DK9Yp2l3.js → Slicer-Cv-2s_-r.js} +1 -1
- package/dist/{Slicer-CTw_6ddN.cjs → Slicer-DGkm-5p-.cjs} +1 -1
- package/dist/{Title-BFBOWO3Q.js → Title-CtWGLaoz.js} +1 -1
- package/dist/{Title-R6PrAyfG.cjs → Title-DQz9dO4d.cjs} +1 -1
- package/dist/{Tooltip-DravvC2X.js → Tooltip-D6BUVHr1.js} +1 -1
- package/dist/{Tooltip-DAjRpG7b.cjs → Tooltip-DQgBkgFk.cjs} +1 -1
- package/dist/documentation/installation.md +4 -3
- package/dist/{index-Ck92ROEN.js → index-BhCM2QF1.js} +878 -537
- package/dist/index-Y23HeR26.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +170 -33
- package/dist/types/vue-data-ui.d.ts +170 -33
- package/dist/{useNestedProp-CUrnndD5.cjs → useNestedProp-C2H2jmU6.cjs} +1 -1
- package/dist/{useNestedProp-C0fDv_7c.js → useNestedProp-CH3PVhvc.js} +1 -1
- package/dist/{usePrinter-DBPRZcAN.js → usePrinter-B75HLwzw.js} +1 -1
- package/dist/{usePrinter-c6hW2FYl.cjs → usePrinter-DTF28E03.cjs} +1 -1
- package/dist/{vue-data-ui-BhnYYgwX.js → vue-data-ui-DdhV5Pth.js} +64 -62
- package/dist/vue-data-ui-cqeqQWwY.cjs +9 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +37 -36
- package/dist/{vue-ui-3d-bar-DXLZL0d1.cjs → vue-ui-3d-bar-BB6yidY7.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-B2bAI0Ok.js → vue-ui-3d-bar-gi0fEJUl.js} +7 -7
- package/dist/{vue-ui-accordion-CYyb5N_o.js → vue-ui-accordion-CSZdj7wA.js} +3 -3
- package/dist/{vue-ui-accordion-jSupvtFc.cjs → vue-ui-accordion-CVrj6roI.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DfD0KmQj.js → vue-ui-age-pyramid-CFSWDX3d.js} +8 -8
- package/dist/{vue-ui-age-pyramid-07V7HAUc.cjs → vue-ui-age-pyramid-CrTadT86.cjs} +1 -1
- package/dist/{vue-ui-annotator-DPxczJLi.js → vue-ui-annotator-DqZU11ky.js} +1 -1
- package/dist/{vue-ui-annotator-Cn3IeVBP.cjs → vue-ui-annotator-u5YbenPl.cjs} +1 -1
- package/dist/{vue-ui-candlestick-3oyL2e4C.cjs → vue-ui-candlestick-C3xswSm3.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D5lyf_Oa.js → vue-ui-candlestick-Dph2PhZC.js} +9 -9
- package/dist/{vue-ui-carousel-table-BolCtd-r.cjs → vue-ui-carousel-table-0S6lSZnt.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CMm6zqzo.js → vue-ui-carousel-table-eY08SE2G.js} +4 -4
- package/dist/{vue-ui-chestnut-BaZuTrGs.js → vue-ui-chestnut-BikYCrjQ.js} +6 -6
- package/dist/{vue-ui-chestnut-7EjCEIHL.cjs → vue-ui-chestnut-C3XOHDgw.cjs} +1 -1
- package/dist/{vue-ui-cursor-D_Q1P1gt.cjs → vue-ui-cursor-DUA57VkZ.cjs} +1 -1
- package/dist/{vue-ui-cursor-BNflEMT2.js → vue-ui-cursor-OFgeAFSo.js} +2 -2
- package/dist/{vue-ui-dashboard-D2RbUnMC.cjs → vue-ui-dashboard-BTG0m9YL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CjPmVfs3.js → vue-ui-dashboard-DA4M1Z0-.js} +2 -2
- package/dist/{vue-ui-digits-DZPhwYe-.js → vue-ui-digits-55Zmunkv.js} +2 -2
- package/dist/{vue-ui-digits-CgrkyBWm.cjs → vue-ui-digits-COxRiMVI.cjs} +1 -1
- package/dist/{vue-ui-donut-CT4WPUa9.js → vue-ui-donut-CG3VWjnG.js} +9 -9
- package/dist/{vue-ui-donut-OZoCX5cL.cjs → vue-ui-donut-JA9hlLlV.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-HBigDBJ1.js → vue-ui-donut-evolution-CA8sDbwX.js} +9 -9
- package/dist/{vue-ui-donut-evolution-B5QxzbPT.cjs → vue-ui-donut-evolution-_E0xUI9Y.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-D3bJRtj_.cjs → vue-ui-dumbbell-BSFT-Bce.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BbsbYS3D.js → vue-ui-dumbbell-BtEXt5Ox.js} +8 -8
- package/dist/{vue-ui-flow-JFuGf_sv.js → vue-ui-flow-BBoXBTkC.js} +7 -7
- package/dist/{vue-ui-flow-CfoQVPzv.cjs → vue-ui-flow-BPEGOFRZ.cjs} +1 -1
- package/dist/{vue-ui-galaxy-CvZ1nzpB.cjs → vue-ui-galaxy-DPrJum3L.cjs} +1 -1
- package/dist/{vue-ui-galaxy-e4ZjPVWn.js → vue-ui-galaxy-ZFEufIyy.js} +9 -9
- package/dist/{vue-ui-gauge-KjRrEYR0.js → vue-ui-gauge-BqZp_V5m.js} +5 -5
- package/dist/{vue-ui-gauge-B_LND1ru.cjs → vue-ui-gauge-CfZ9XJW_.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CBtza3IW.cjs → vue-ui-gizmo-CrSaW32p.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DzUxGQT6.js → vue-ui-gizmo-DitbWAJp.js} +2 -2
- package/dist/{vue-ui-heatmap-CT1YT1xR.cjs → vue-ui-heatmap-CTRjjhmd.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BYrZ7lqp.js → vue-ui-heatmap-zV0pg2Q5.js} +8 -8
- package/dist/{vue-ui-kpi-DViXiLEh.cjs → vue-ui-kpi-B2Bo26hh.cjs} +1 -1
- package/dist/{vue-ui-kpi-C5hCo3ZN.js → vue-ui-kpi-BWuzEkyY.js} +2 -2
- package/dist/{vue-ui-mini-loader-BVSeWn2P.js → vue-ui-mini-loader-BwAWiK3k.js} +2 -2
- package/dist/{vue-ui-mini-loader-DDcjfpGi.cjs → vue-ui-mini-loader-C_Nb-qVd.cjs} +1 -1
- package/dist/{vue-ui-molecule-pOHE_E-U.js → vue-ui-molecule-BD2UW2lJ.js} +9 -9
- package/dist/{vue-ui-molecule--7cCYOj1.cjs → vue-ui-molecule-CSbXNrvu.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Co6cLOze.js → vue-ui-mood-radar-CbMab8pJ.js} +9 -9
- package/dist/{vue-ui-mood-radar-DhmpKZpW.cjs → vue-ui-mood-radar-zpxdsZ4u.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BFyjhjQ_.cjs → vue-ui-nested-donuts-07UI_VlW.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-kZh0P2Zc.js → vue-ui-nested-donuts-SDaiotgC.js} +9 -9
- package/dist/{vue-ui-onion-DSGKwLbh.js → vue-ui-onion-BamHJBdP.js} +9 -9
- package/dist/{vue-ui-onion-BoKPJLJS.cjs → vue-ui-onion-DiychUul.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B1I7MZP6.js → vue-ui-parallel-coordinate-plot-1R4CyBdQ.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-BLAKE17u.cjs → vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CHdlKi32.js → vue-ui-quadrant-CKCLhAS7.js} +10 -10
- package/dist/{vue-ui-quadrant-BIPClpre.cjs → vue-ui-quadrant-DxLYb8Mk.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-ChnLIxWE.js → vue-ui-quick-chart-CAXuRSdm.js} +6 -6
- package/dist/{vue-ui-quick-chart-5GZ03bOo.cjs → vue-ui-quick-chart-DgCRM6WA.cjs} +1 -1
- package/dist/{vue-ui-radar-BIogM1O1.js → vue-ui-radar-BY-y8Mal.js} +10 -10
- package/dist/{vue-ui-radar-BWPQ2p4R.cjs → vue-ui-radar-iETP_3US.cjs} +1 -1
- package/dist/{vue-ui-rating-Y3i8Ogz9.js → vue-ui-rating-Bq1SsByA.js} +2 -2
- package/dist/{vue-ui-rating-BI9eigGC.cjs → vue-ui-rating-DGEgzOaB.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-m1hqaBQ0.js → vue-ui-relation-circle-BPzLP6U6.js} +5 -5
- package/dist/{vue-ui-relation-circle-9tS5nJOC.cjs → vue-ui-relation-circle-pdZ79G9r.cjs} +1 -1
- package/dist/{vue-ui-rings-BGa6d8nO.js → vue-ui-rings-C5ce6pEf.js} +9 -9
- package/dist/{vue-ui-rings-C2f4ARZJ.cjs → vue-ui-rings-DdpKT3DJ.cjs} +1 -1
- package/dist/{vue-ui-scatter-B5aIcdg9.js → vue-ui-scatter-CMetujXJ.js} +10 -10
- package/dist/{vue-ui-scatter-CSAIrCEA.cjs → vue-ui-scatter-Dsc6RABP.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BxURLkX-.js → vue-ui-screenshot--2aeIH_x.js} +1 -1
- package/dist/{vue-ui-screenshot-CHnimNZm.cjs → vue-ui-screenshot-BqzljUT3.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DwEcR_uq.cjs → vue-ui-skeleton-B5Z4craS.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B_c8tnen.js → vue-ui-skeleton-_VMQ594N.js} +2 -2
- package/dist/{vue-ui-smiley-UfNprSwL.cjs → vue-ui-smiley-CL-bubXk.cjs} +1 -1
- package/dist/{vue-ui-smiley-CV3_wGOs.js → vue-ui-smiley-Cty3e_yE.js} +2 -2
- package/dist/{vue-ui-spark-trend-DgqT22Rz.cjs → vue-ui-spark-trend-DT1fMqf_.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-7KqTeaKP.js → vue-ui-spark-trend-pgdWTEqG.js} +4 -4
- package/dist/{vue-ui-sparkbar-ekQGLCse.js → vue-ui-sparkbar-BVQPOz2O.js} +3 -3
- package/dist/{vue-ui-sparkbar-DZoXx0tC.cjs → vue-ui-sparkbar-kfA-BPVJ.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-7hgIimV9.cjs → vue-ui-sparkgauge-DdzlyDsm.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CsU1IpLn.js → vue-ui-sparkgauge-Dx2gFX6H.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CRY_Y5eU.cjs → vue-ui-sparkhistogram-B5xstgQG.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-_S3BGzoc.js → vue-ui-sparkhistogram-Bg_fJsT5.js} +4 -4
- package/dist/{vue-ui-sparkline-DRu2dwsD.js → vue-ui-sparkline-BWl_B6LX.js} +3 -3
- package/dist/{vue-ui-sparkline-BR6TRx3i.cjs → vue-ui-sparkline-WMI-RgkW.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DbxeqSNo.js → vue-ui-sparkstackbar-MMGRG9eS.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-aI73Hnxf.cjs → vue-ui-sparkstackbar-Skcshn6g.cjs} +1 -1
- package/dist/vue-ui-stackbar-DZ0CArmk.cjs +15 -0
- package/dist/vue-ui-stackbar-NZFO3R77.js +750 -0
- package/dist/{vue-ui-strip-plot-B1C5JAka.js → vue-ui-strip-plot-CJmCgC_a.js} +9 -9
- package/dist/{vue-ui-strip-plot-CuhUA0Qj.cjs → vue-ui-strip-plot-Db_dqjd9.cjs} +1 -1
- package/dist/{vue-ui-table-vZxmfkYh.js → vue-ui-table-B-vHHlRw.js} +1 -1
- package/dist/{vue-ui-table-heatmap-B-we4-9Z.js → vue-ui-table-heatmap-BfzDb2H7.js} +4 -4
- package/dist/{vue-ui-table-heatmap-CMASM_wg.cjs → vue-ui-table-heatmap-YCyFyq8J.cjs} +1 -1
- package/dist/{vue-ui-table-BKq6uaQQ.cjs → vue-ui-table-jJ3daLHe.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CXr9vhM1.cjs → vue-ui-table-sparkline-4Qbmxxsy.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DBBEauiC.js → vue-ui-table-sparkline-DZt-bo2D.js} +5 -5
- package/dist/{vue-ui-thermometer-_KBWIP2u.js → vue-ui-thermometer-CdtG1AoI.js} +5 -5
- package/dist/{vue-ui-thermometer-8Nd55_MN.cjs → vue-ui-thermometer-HXWDU2wD.cjs} +1 -1
- package/dist/{vue-ui-timer-CgYqGFuQ.cjs → vue-ui-timer-Cb95XSdn.cjs} +1 -1
- package/dist/{vue-ui-timer-D_UhMYSm.js → vue-ui-timer-DBqMb9iX.js} +4 -4
- package/dist/{vue-ui-tiremarks-7TlDnrfz.cjs → vue-ui-tiremarks-BqXfvQ4t.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Dy1h0ZlT.js → vue-ui-tiremarks-CHKETcHr.js} +5 -5
- package/dist/{vue-ui-treemap-feRelA00.cjs → vue-ui-treemap-CW9JmJ2d.cjs} +1 -1
- package/dist/{vue-ui-treemap-DrXs6PXS.js → vue-ui-treemap-DxKunHfW.js} +9 -9
- package/dist/{vue-ui-vertical-bar-ICikmicE.cjs → vue-ui-vertical-bar-83AMwsHD.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BcIZTywJ.js → vue-ui-vertical-bar-DRLwZjIz.js} +9 -9
- package/dist/{vue-ui-waffle-DtIGHSlB.js → vue-ui-waffle-BRuDxyDU.js} +9 -9
- package/dist/{vue-ui-waffle-CGhfSP2_.cjs → vue-ui-waffle-BwUbvdOE.cjs} +1 -1
- package/dist/{vue-ui-wheel-B6Cya6I_.js → vue-ui-wheel-4HKXl04I.js} +5 -5
- package/dist/{vue-ui-wheel-EdABo6ty.cjs → vue-ui-wheel-kMVi976p.cjs} +1 -1
- package/dist/vue-ui-word-cloud-CrC3iKGd.js +495 -0
- package/dist/vue-ui-word-cloud-WgbYJhMF.cjs +1 -0
- package/dist/{vue-ui-xy-D1yhL28g.js → vue-ui-xy-BN_H7q0X.js} +12 -12
- package/dist/{vue-ui-xy-DOWVG8x2.cjs → vue-ui-xy-BXfP5pz5.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-D2VfaNJf.js → vue-ui-xy-canvas-DAY9Ylzs.js} +10 -10
- package/dist/{vue-ui-xy-canvas-Dp8YKKTs.cjs → vue-ui-xy-canvas-NrhVgFsv.cjs} +1 -1
- package/package.json +2 -1
- package/dist/index-D2z8eN-t.cjs +0 -4
- package/dist/vue-data-ui-B1MbygY4.cjs +0 -9
- package/dist/vue-ui-word-cloud-DQV03srb.cjs +0 -1
- package/dist/vue-ui-word-cloud-narokI2y.js +0 -352
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),i=require("./BaseIcon-r5Y-jYX5.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./pdf-Cz3729tZ.cjs"),O=require("./html2canvas.esm-BA_v9SIU.cjs"),w={beforeMount(t,u){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||u.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},D=["title","onClick","onKeypress"],h=["data-open"],q={__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:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation"],setup(t,{emit:u}){const s=t;function v(){u("generatePdf")}function f(){u("generateCsv")}function d(){u("generateImage")}const c=e.ref(!1);function z(){c.value=!c.value,u("toggleTable")}const m=e.ref(!1),V=e.ref(!0);function C(){r.value=window.innerWidth>600,m.value=!m.value,m.value&&(V.value=!1)}function N(){s.isPrinting||s.isImaging||(m.value=!1)}function T(){m.value&&N()}const y=e.ref(s.isLabelActive);function I(){y.value=!y.value,u("toggleLabels")}const g=e.ref(s.isAnimation);function p(){g.value=!g.value,u("toggleAnimation")}function M(){u("toggleSort")}const b=e.ref(s.isStacked);function F(){b.value=!b.value,u("toggleStack")}const B=e.ref(s.isTooltip);function P(){B.value=!B.value,u("toggleTooltip")}const k=e.ref(!1);function $(l){s.chartElement&&(l==="in"?(k.value=!0,s.chartElement.requestFullscreen(),u("toggleFullscreen",!0)):(k.value=!1,document&&document.exitFullscreen(),u("toggleFullscreen",!1)))}function S(l){document.fullscreenElement?k.value=!0:k.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",S)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",S)});const r=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});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${k.value?"fixed":"absolute"}; top: 0; right:${k.value?"12px":"0"}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:m.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right: ${t.noOffset?0:4}px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:${t.backgroundColor}`),onClick:e.withModifiers(C,["stop"]),onKeypress:e.withKeys(C,["enter"])},[e.createVNode(i.default,{name:m.value?"close":"menu",stroke:"#CCCCCC","stroke-width":2},null,8,["name"])],44,D),e.createElementVNode("div",{"data-open":m.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; right:${t.noOffset?0:4}px`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:P,onMouseenter:o[0]||(o[0]=a=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=a=>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},[B.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.tooltip&&!l.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:v,onMouseenter:o[2]||(o[2]=a=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=a=>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(i.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.pdf&&!l.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:f,onMouseenter:o[4]||(o[4]=a=>n.value.csv=!0),onMouseout:o[5]||(o[5]=a=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),r.value&&t.titles.csv&&!l.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:d,onMouseenter:o[6]||(o[6]=a=>n.value.img=!0),onMouseout:o[7]||(o[7]=a=>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(i.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.img&&!l.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:z,onMouseenter:o[8]||(o[8]=a=>n.value.table=!0),onMouseout:o[9]||(o[9]=a=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:c.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),r.value&&t.titles.table&&!l.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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]=a=>n.value.labels=!0),onMouseout:o[11]||(o[11]=a=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:y.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),r.value&&t.titles.labels&&!l.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:M,onMouseenter:o[12]||(o[12]=a=>n.value.sort=!0),onMouseout:o[13]||(o[13]=a=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),r.value&&t.titles.sort&&!l.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:F,onMouseenter:o[14]||(o[14]=a=>n.value.stack=!0),onMouseout:o[15]||(o[15]=a=>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},[b.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.stack&&!l.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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]=a=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=a=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=a=>$(k.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:$,isFullscreen:k.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.fullscreen&&!l.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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]=a=>n.value.animation=!0),onMouseout:o[20]||(o[20]=a=>n.value.animation=!1),onClick:p},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:p,isAnimated:g.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[g.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.fullscreen&&!l.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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)],12,h)],4)),[[e.unref(w),T]])}},U=L._export_sfc(q,[["__scopeId","data-v-d4402778"]]);function E({domElement:t,fileName:u,format:s="png"}){if(t)return new Promise((v,f)=>{const d=document.createElement("a");O.default(t,{scale:2}).then(c=>{d.href=c.toDataURL(`image/${s}`),d.download=`${u}.${s}`,d.click(),d&&d.remove(),v()}).catch(c=>{console.error("Error generating image:",c),f(c)})})}function K({elementId:t,fileName:u}){const s=e.ref(!1),v=e.ref(!1),f=e.ref(null);function d(){s.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{A.pdf({domElement:document.getElementById(t),fileName:u}).finally(()=>{s.value=!1})},100)}function c(){v.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{E({domElement:document.getElementById(t),fileName:u,format:"png"}).finally(()=>{v.value=!1},100)})}return{generatePdf:d,generateImage:c,isPrinting:s,isImaging:v}}exports.UserOptions=U;exports.saveAsImage=E;exports.usePrinter=K;
|
|
1
|
+
"use strict";const e=require("vue"),i=require("./BaseIcon-BK5xYOzV.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./pdf-Cz3729tZ.cjs"),O=require("./html2canvas.esm-BA_v9SIU.cjs"),w={beforeMount(t,u){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||u.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},D=["title","onClick","onKeypress"],h=["data-open"],q={__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:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation"],setup(t,{emit:u}){const s=t;function v(){u("generatePdf")}function f(){u("generateCsv")}function d(){u("generateImage")}const c=e.ref(!1);function z(){c.value=!c.value,u("toggleTable")}const m=e.ref(!1),V=e.ref(!0);function C(){r.value=window.innerWidth>600,m.value=!m.value,m.value&&(V.value=!1)}function N(){s.isPrinting||s.isImaging||(m.value=!1)}function T(){m.value&&N()}const y=e.ref(s.isLabelActive);function I(){y.value=!y.value,u("toggleLabels")}const g=e.ref(s.isAnimation);function p(){g.value=!g.value,u("toggleAnimation")}function M(){u("toggleSort")}const b=e.ref(s.isStacked);function F(){b.value=!b.value,u("toggleStack")}const B=e.ref(s.isTooltip);function P(){B.value=!B.value,u("toggleTooltip")}const k=e.ref(!1);function $(l){s.chartElement&&(l==="in"?(k.value=!0,s.chartElement.requestFullscreen(),u("toggleFullscreen",!0)):(k.value=!1,document&&document.exitFullscreen(),u("toggleFullscreen",!1)))}function S(l){document.fullscreenElement?k.value=!0:k.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",S)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",S)});const r=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});return(l,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${k.value?"fixed":"absolute"}; top: 0; right:${k.value?"12px":"0"}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:m.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right: ${t.noOffset?0:4}px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:${t.backgroundColor}`),onClick:e.withModifiers(C,["stop"]),onKeypress:e.withKeys(C,["enter"])},[e.createVNode(i.default,{name:m.value?"close":"menu",stroke:"#CCCCCC","stroke-width":2},null,8,["name"])],44,D),e.createElementVNode("div",{"data-open":m.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; right:${t.noOffset?0:4}px`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:P,onMouseenter:o[0]||(o[0]=a=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=a=>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},[B.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.tooltip&&!l.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:v,onMouseenter:o[2]||(o[2]=a=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=a=>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(i.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.pdf&&!l.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:f,onMouseenter:o[4]||(o[4]=a=>n.value.csv=!0),onMouseout:o[5]||(o[5]=a=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),r.value&&t.titles.csv&&!l.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:d,onMouseenter:o[6]||(o[6]=a=>n.value.img=!0),onMouseout:o[7]||(o[7]=a=>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(i.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.img&&!l.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:z,onMouseenter:o[8]||(o[8]=a=>n.value.table=!0),onMouseout:o[9]||(o[9]=a=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:c.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),r.value&&t.titles.table&&!l.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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]=a=>n.value.labels=!0),onMouseout:o[11]||(o[11]=a=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:y.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),r.value&&t.titles.labels&&!l.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:M,onMouseenter:o[12]||(o[12]=a=>n.value.sort=!0),onMouseout:o[13]||(o[13]=a=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),r.value&&t.titles.sort&&!l.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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:F,onMouseenter:o[14]||(o[14]=a=>n.value.stack=!0),onMouseout:o[15]||(o[15]=a=>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},[b.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(i.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.stack&&!l.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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]=a=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=a=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=a=>$(k.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:$,isFullscreen:k.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),k.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.fullscreen&&!l.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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]=a=>n.value.animation=!0),onMouseout:o[20]||(o[20]=a=>n.value.animation=!1),onClick:p},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:p,isAnimated:g.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[g.value?(e.openBlock(),e.createBlock(i.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),r.value&&t.titles.fullscreen&&!l.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"button-info":!0,"button-info-visible":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)],12,h)],4)),[[e.unref(w),T]])}},U=L._export_sfc(q,[["__scopeId","data-v-d4402778"]]);function E({domElement:t,fileName:u,format:s="png"}){if(t)return new Promise((v,f)=>{const d=document.createElement("a");O.default(t,{scale:2}).then(c=>{d.href=c.toDataURL(`image/${s}`),d.download=`${u}.${s}`,d.click(),d&&d.remove(),v()}).catch(c=>{console.error("Error generating image:",c),f(c)})})}function K({elementId:t,fileName:u}){const s=e.ref(!1),v=e.ref(!1),f=e.ref(null);function d(){s.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{A.pdf({domElement:document.getElementById(t),fileName:u}).finally(()=>{s.value=!1})},100)}function c(){v.value=!0,clearTimeout(f.value),f.value=setTimeout(()=>{E({domElement:document.getElementById(t),fileName:u,format:"png"}).finally(()=>{v.value=!1},100)})}return{generatePdf:d,generateImage:c,isPrinting:s,isImaging:v}}exports.UserOptions=U;exports.saveAsImage=E;exports.usePrinter=K;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs as q, defineAsyncComponent as t, computed as c, ref as o, onMounted as J, watch as B, shallowReactive as Y, openBlock as O, createElementBlock as Z, createElementVNode as R, createVNode as w, createTextVNode as ee, toDisplayString as te, unref as oe, createBlock as ie, resolveDynamicComponent as ae, mergeProps as ne, toHandlers as re, createSlots as le, renderList as se, withCtx as ue, renderSlot as ce, normalizeProps as ge, guardReactiveProps as pe } from "vue";
|
|
2
|
-
import me from "./BaseIcon-
|
|
2
|
+
import me from "./BaseIcon-Op8_v5x7.js";
|
|
3
3
|
const de = {
|
|
4
4
|
key: 0,
|
|
5
5
|
style: { width: "100%", display: "flex", gap: "6px", "align-items": "center", color: "#FF0000" }
|
|
@@ -36,61 +36,62 @@ const de = {
|
|
|
36
36
|
],
|
|
37
37
|
setup(N, { expose: F, emit: G }) {
|
|
38
38
|
const n = N, { component: M, dataset: W, config: X } = q(n), s = {
|
|
39
|
-
VueUi3dBar: t(() => import("./vue-ui-3d-bar-
|
|
40
|
-
VueUiAgePyramid: t(() => import("./vue-ui-age-pyramid-
|
|
41
|
-
VueUiAnnotator: t(() => import("./vue-ui-annotator-
|
|
42
|
-
VueUiCandlestick: t(() => import("./vue-ui-candlestick-
|
|
43
|
-
VueUiChestnut: t(() => import("./vue-ui-chestnut-
|
|
44
|
-
VueUiDashboard: t(() => import("./vue-ui-dashboard-
|
|
45
|
-
VueUiDigits: t(() => import("./vue-ui-digits-
|
|
46
|
-
VueUiDonut: t(() => import("./vue-ui-donut-
|
|
47
|
-
VueUiDonutEvolution: t(() => import("./vue-ui-donut-evolution-
|
|
48
|
-
VueUiGalaxy: t(() => import("./vue-ui-galaxy-
|
|
49
|
-
VueUiGauge: t(() => import("./vue-ui-gauge-
|
|
50
|
-
VueUiHeatmap: t(() => import("./vue-ui-heatmap-
|
|
51
|
-
VueUiKpi: t(() => import("./vue-ui-kpi-
|
|
52
|
-
VueUiMiniLoader: t(() => import("./vue-ui-mini-loader-
|
|
53
|
-
VueUiMolecule: t(() => import("./vue-ui-molecule-
|
|
54
|
-
VueUiMoodRadar: t(() => import("./vue-ui-mood-radar-
|
|
55
|
-
VueUiNestedDonuts: t(() => import("./vue-ui-nested-donuts-
|
|
56
|
-
VueUiOnion: t(() => import("./vue-ui-onion-
|
|
57
|
-
VueUiQuadrant: t(() => import("./vue-ui-quadrant-
|
|
58
|
-
VueUiRadar: t(() => import("./vue-ui-radar-
|
|
59
|
-
VueUiRating: t(() => import("./vue-ui-rating-
|
|
60
|
-
VueUiRelationCircle: t(() => import("./vue-ui-relation-circle-
|
|
61
|
-
VueUiRings: t(() => import("./vue-ui-rings-
|
|
62
|
-
VueUiScatter: t(() => import("./vue-ui-scatter-
|
|
63
|
-
VueUiScreenshot: t(() => import("./vue-ui-screenshot
|
|
64
|
-
VueUiSkeleton: t(() => import("./vue-ui-skeleton-
|
|
65
|
-
VueUiSmiley: t(() => import("./vue-ui-smiley-
|
|
66
|
-
VueUiSparkbar: t(() => import("./vue-ui-sparkbar-
|
|
67
|
-
VueUiSparkgauge: t(() => import("./vue-ui-sparkgauge-
|
|
68
|
-
VueUiSparkHistogram: t(() => import("./vue-ui-sparkhistogram-
|
|
69
|
-
VueUiSparkline: t(() => import("./vue-ui-sparkline-
|
|
70
|
-
VueUiSparkStackbar: t(() => import("./vue-ui-sparkstackbar-
|
|
71
|
-
VueUiTable: t(() => import("./vue-ui-table-
|
|
72
|
-
VueUiTableSparkline: t(() => import("./vue-ui-table-sparkline-
|
|
73
|
-
VueUiThermometer: t(() => import("./vue-ui-thermometer-
|
|
74
|
-
VueUiTiremarks: t(() => import("./vue-ui-tiremarks-
|
|
75
|
-
VueUiTreemap: t(() => import("./vue-ui-treemap-
|
|
76
|
-
VueUiVerticalBar: t(() => import("./vue-ui-vertical-bar-
|
|
77
|
-
VueUiWaffle: t(() => import("./vue-ui-waffle-
|
|
78
|
-
VueUiWheel: t(() => import("./vue-ui-wheel-
|
|
79
|
-
VueUiXy: t(() => import("./vue-ui-xy-
|
|
80
|
-
VueUiTableHeatmap: t(() => import("./vue-ui-table-heatmap-
|
|
81
|
-
VueUiAccordion: t(() => import("./vue-ui-accordion-
|
|
82
|
-
VueUiQuickChart: t(() => import("./vue-ui-quick-chart-
|
|
83
|
-
VueUiCursor: t(() => import("./vue-ui-cursor-
|
|
84
|
-
VueUiSparkTrend: t(() => import("./vue-ui-spark-trend-
|
|
85
|
-
VueUiStripPlot: t(() => import("./vue-ui-strip-plot-
|
|
86
|
-
VueUiDumbbell: t(() => import("./vue-ui-dumbbell-
|
|
87
|
-
VueUiWordCloud: t(() => import("./vue-ui-word-cloud-
|
|
88
|
-
VueUiXyCanvas: t(() => import("./vue-ui-xy-canvas-
|
|
89
|
-
VueUiFlow: t(() => import("./vue-ui-flow-
|
|
90
|
-
VueUiParallelCoordinatePlot: t(() => import("./vue-ui-parallel-coordinate-plot-
|
|
91
|
-
VueUiTimer: t(() => import("./vue-ui-timer-
|
|
92
|
-
VueUiCarouselTable: t(() => import("./vue-ui-carousel-table-
|
|
93
|
-
VueUiGizmo: t(() => import("./vue-ui-gizmo-
|
|
39
|
+
VueUi3dBar: t(() => import("./vue-ui-3d-bar-gi0fEJUl.js")),
|
|
40
|
+
VueUiAgePyramid: t(() => import("./vue-ui-age-pyramid-CFSWDX3d.js")),
|
|
41
|
+
VueUiAnnotator: t(() => import("./vue-ui-annotator-DqZU11ky.js")),
|
|
42
|
+
VueUiCandlestick: t(() => import("./vue-ui-candlestick-Dph2PhZC.js")),
|
|
43
|
+
VueUiChestnut: t(() => import("./vue-ui-chestnut-BikYCrjQ.js")),
|
|
44
|
+
VueUiDashboard: t(() => import("./vue-ui-dashboard-DA4M1Z0-.js")),
|
|
45
|
+
VueUiDigits: t(() => import("./vue-ui-digits-55Zmunkv.js")),
|
|
46
|
+
VueUiDonut: t(() => import("./vue-ui-donut-CG3VWjnG.js")),
|
|
47
|
+
VueUiDonutEvolution: t(() => import("./vue-ui-donut-evolution-CA8sDbwX.js")),
|
|
48
|
+
VueUiGalaxy: t(() => import("./vue-ui-galaxy-ZFEufIyy.js")),
|
|
49
|
+
VueUiGauge: t(() => import("./vue-ui-gauge-BqZp_V5m.js")),
|
|
50
|
+
VueUiHeatmap: t(() => import("./vue-ui-heatmap-zV0pg2Q5.js")),
|
|
51
|
+
VueUiKpi: t(() => import("./vue-ui-kpi-BWuzEkyY.js")),
|
|
52
|
+
VueUiMiniLoader: t(() => import("./vue-ui-mini-loader-BwAWiK3k.js")),
|
|
53
|
+
VueUiMolecule: t(() => import("./vue-ui-molecule-BD2UW2lJ.js")),
|
|
54
|
+
VueUiMoodRadar: t(() => import("./vue-ui-mood-radar-CbMab8pJ.js")),
|
|
55
|
+
VueUiNestedDonuts: t(() => import("./vue-ui-nested-donuts-SDaiotgC.js")),
|
|
56
|
+
VueUiOnion: t(() => import("./vue-ui-onion-BamHJBdP.js")),
|
|
57
|
+
VueUiQuadrant: t(() => import("./vue-ui-quadrant-CKCLhAS7.js")),
|
|
58
|
+
VueUiRadar: t(() => import("./vue-ui-radar-BY-y8Mal.js")),
|
|
59
|
+
VueUiRating: t(() => import("./vue-ui-rating-Bq1SsByA.js")),
|
|
60
|
+
VueUiRelationCircle: t(() => import("./vue-ui-relation-circle-BPzLP6U6.js")),
|
|
61
|
+
VueUiRings: t(() => import("./vue-ui-rings-C5ce6pEf.js")),
|
|
62
|
+
VueUiScatter: t(() => import("./vue-ui-scatter-CMetujXJ.js")),
|
|
63
|
+
VueUiScreenshot: t(() => import("./vue-ui-screenshot--2aeIH_x.js")),
|
|
64
|
+
VueUiSkeleton: t(() => import("./vue-ui-skeleton-_VMQ594N.js")),
|
|
65
|
+
VueUiSmiley: t(() => import("./vue-ui-smiley-Cty3e_yE.js")),
|
|
66
|
+
VueUiSparkbar: t(() => import("./vue-ui-sparkbar-BVQPOz2O.js")),
|
|
67
|
+
VueUiSparkgauge: t(() => import("./vue-ui-sparkgauge-Dx2gFX6H.js")),
|
|
68
|
+
VueUiSparkHistogram: t(() => import("./vue-ui-sparkhistogram-Bg_fJsT5.js")),
|
|
69
|
+
VueUiSparkline: t(() => import("./vue-ui-sparkline-BWl_B6LX.js")),
|
|
70
|
+
VueUiSparkStackbar: t(() => import("./vue-ui-sparkstackbar-MMGRG9eS.js")),
|
|
71
|
+
VueUiTable: t(() => import("./vue-ui-table-B-vHHlRw.js")),
|
|
72
|
+
VueUiTableSparkline: t(() => import("./vue-ui-table-sparkline-DZt-bo2D.js")),
|
|
73
|
+
VueUiThermometer: t(() => import("./vue-ui-thermometer-CdtG1AoI.js")),
|
|
74
|
+
VueUiTiremarks: t(() => import("./vue-ui-tiremarks-CHKETcHr.js")),
|
|
75
|
+
VueUiTreemap: t(() => import("./vue-ui-treemap-DxKunHfW.js")),
|
|
76
|
+
VueUiVerticalBar: t(() => import("./vue-ui-vertical-bar-DRLwZjIz.js")),
|
|
77
|
+
VueUiWaffle: t(() => import("./vue-ui-waffle-BRuDxyDU.js")),
|
|
78
|
+
VueUiWheel: t(() => import("./vue-ui-wheel-4HKXl04I.js")),
|
|
79
|
+
VueUiXy: t(() => import("./vue-ui-xy-BN_H7q0X.js")),
|
|
80
|
+
VueUiTableHeatmap: t(() => import("./vue-ui-table-heatmap-BfzDb2H7.js")),
|
|
81
|
+
VueUiAccordion: t(() => import("./vue-ui-accordion-CSZdj7wA.js")),
|
|
82
|
+
VueUiQuickChart: t(() => import("./vue-ui-quick-chart-CAXuRSdm.js")),
|
|
83
|
+
VueUiCursor: t(() => import("./vue-ui-cursor-OFgeAFSo.js")),
|
|
84
|
+
VueUiSparkTrend: t(() => import("./vue-ui-spark-trend-pgdWTEqG.js")),
|
|
85
|
+
VueUiStripPlot: t(() => import("./vue-ui-strip-plot-CJmCgC_a.js")),
|
|
86
|
+
VueUiDumbbell: t(() => import("./vue-ui-dumbbell-BtEXt5Ox.js")),
|
|
87
|
+
VueUiWordCloud: t(() => import("./vue-ui-word-cloud-CrC3iKGd.js")),
|
|
88
|
+
VueUiXyCanvas: t(() => import("./vue-ui-xy-canvas-DAY9Ylzs.js")),
|
|
89
|
+
VueUiFlow: t(() => import("./vue-ui-flow-BBoXBTkC.js")),
|
|
90
|
+
VueUiParallelCoordinatePlot: t(() => import("./vue-ui-parallel-coordinate-plot-1R4CyBdQ.js")),
|
|
91
|
+
VueUiTimer: t(() => import("./vue-ui-timer-DBqMb9iX.js")),
|
|
92
|
+
VueUiCarouselTable: t(() => import("./vue-ui-carousel-table-eY08SE2G.js")),
|
|
93
|
+
VueUiGizmo: t(() => import("./vue-ui-gizmo-DitbWAJp.js")),
|
|
94
|
+
VueUiStackbar: t(() => import("./vue-ui-stackbar-NZFO3R77.js"))
|
|
94
95
|
}, Q = {
|
|
95
96
|
VueUi3dBar: ["config", "dataset"],
|
|
96
97
|
VueUiAgePyramid: ["config", "dataset"],
|
|
@@ -146,11 +147,12 @@ const de = {
|
|
|
146
147
|
VueUiParallelCoordinatePlot: ["config", "dataset"],
|
|
147
148
|
VueUiTimer: ["config"],
|
|
148
149
|
VueUiCarouselTable: ["config", "dataset"],
|
|
149
|
-
VueUiGizmo: ["config", "dataset"]
|
|
150
|
+
VueUiGizmo: ["config", "dataset"],
|
|
151
|
+
VueUiStackbar: ["config", "dataset"]
|
|
150
152
|
}, g = c(() => !s[n.component]), $ = c(() => s[n.component] || null), i = o(null), j = c(() => {
|
|
151
153
|
const e = Q[n.component] || [], a = {};
|
|
152
154
|
return e.includes("config") && (a.config = X.value), e.includes("dataset") && (a.dataset = W.value), a;
|
|
153
|
-
}), p = o(() => null), m = o(() => null), d = o(() => null), V = o(() => null), U = o(() => null), f = o(() => null), v = o(() => null), h = o(() => null), k = o(() => null), S = o(() => null),
|
|
155
|
+
}), p = o(() => null), m = o(() => null), d = o(() => null), V = o(() => null), U = o(() => null), f = o(() => null), v = o(() => null), h = o(() => null), k = o(() => null), S = o(() => null), b = o(() => null), y = o(() => null), T = o(() => null), C = o(() => null), A = o(() => null), P = o(() => null), D = o(() => null), x = o(() => null), L = o(() => null), _ = o(() => null), I = o(() => null), E = o(() => null), H = o(() => null);
|
|
154
156
|
J(() => {
|
|
155
157
|
if (g.value)
|
|
156
158
|
throw new Error(`
|
|
@@ -163,7 +165,7 @@ Available components:
|
|
|
163
165
|
${Object.keys(s).map((e) => `. ${e}
|
|
164
166
|
`).join("")}`);
|
|
165
167
|
}), B(i, async (e) => {
|
|
166
|
-
e && (e.generatePdf && (p.value = e.generatePdf), e.generateImage && (d.value = e.generateImage), e.generateCsv && (m.value = e.generateCsv), e.getItemsPositions && (V.value = e.getItemsPositions), e.toggleReadonly && (U.value = e.toggleReadonly), e.shoot && (f.value = e.shoot), e.close && (v.value = e.close), e.restoreOrder && (h.value = e.restoreOrder), e.recalculateHeight && (k.value = e.recalculateHeight), e.toggleLock && (S.value = e.toggleLock), e.toggleTable && (
|
|
168
|
+
e && (e.generatePdf && (p.value = e.generatePdf), e.generateImage && (d.value = e.generateImage), e.generateCsv && (m.value = e.generateCsv), e.getItemsPositions && (V.value = e.getItemsPositions), e.toggleReadonly && (U.value = e.toggleReadonly), e.shoot && (f.value = e.shoot), e.close && (v.value = e.close), e.restoreOrder && (h.value = e.restoreOrder), e.recalculateHeight && (k.value = e.recalculateHeight), e.toggleLock && (S.value = e.toggleLock), e.toggleTable && (b.value = e.toggleTable), e.toggleLabels && (y.value = e.toggleLabels), e.toggleSort && (T.value = e.toggleSort), e.toggleStack && (C.value = e.toggleStack), e.toggleTooltip && (A.value = e.toggleTooltip), e.start && (P.value = e.start), e.pause && (D.value = e.pause), e.reset && (x.value = e.reset), e.restart && (L.value = e.restart), e.lap && (_.value = e.lap), e.toggleAnimation && (I.value = e.toggleAnimation), e.pauseAnimation && (E.value = e.pauseAnimation), e.resumeAnimation && (H.value = e.resumeAnimation));
|
|
167
169
|
});
|
|
168
170
|
const z = () => {
|
|
169
171
|
const e = [
|
|
@@ -214,9 +216,9 @@ ${Object.keys(s).map((e) => `. ${e}
|
|
|
214
216
|
restoreOrder: h,
|
|
215
217
|
recalculateHeight: k,
|
|
216
218
|
toggleLock: S,
|
|
217
|
-
toggleTable:
|
|
218
|
-
toggleLabels:
|
|
219
|
-
toggleSort:
|
|
219
|
+
toggleTable: b,
|
|
220
|
+
toggleLabels: y,
|
|
221
|
+
toggleSort: T,
|
|
220
222
|
toggleStack: C,
|
|
221
223
|
toggleTooltip: A,
|
|
222
224
|
start: P,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./BaseIcon-BK5xYOzV.cjs"),Q={key:0,style:{width:"100%",display:"flex",gap:"6px","align-items":"center",color:"#FF0000"}},$={style:{width:"36px"}},z={__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"],setup(I,{expose:B,emit:E}){const i=I,{component:H,dataset:O,config:N}=e.toRefs(i),a={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-BB6yidY7.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-CrTadT86.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-u5YbenPl.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-C3xswSm3.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-C3XOHDgw.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-BTG0m9YL.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-COxRiMVI.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-JA9hlLlV.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-_E0xUI9Y.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-DPrJum3L.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-CfZ9XJW_.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-CTRjjhmd.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-B2Bo26hh.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-C_Nb-qVd.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-CSbXNrvu.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-zpxdsZ4u.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-07UI_VlW.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-DiychUul.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-DxLYb8Mk.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-iETP_3US.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-DGEgzOaB.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-pdZ79G9r.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-DdpKT3DJ.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-Dsc6RABP.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-BqzljUT3.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-B5Z4craS.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-CL-bubXk.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-kfA-BPVJ.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-DdzlyDsm.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-B5xstgQG.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-WMI-RgkW.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-Skcshn6g.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-jJ3daLHe.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-4Qbmxxsy.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-HXWDU2wD.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-BqXfvQ4t.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-CW9JmJ2d.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-83AMwsHD.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-BwUbvdOE.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-kMVi976p.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-BXfP5pz5.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-YCyFyq8J.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-CVrj6roI.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-DgCRM6WA.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-DUA57VkZ.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-DT1fMqf_.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-Db_dqjd9.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-BSFT-Bce.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-WgbYJhMF.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-NrhVgFsv.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-BPEGOFRZ.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-Cb95XSdn.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-0S6lSZnt.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-CrSaW32p.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-DZ0CArmk.cjs")))},M={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"],VueUiScreenshot:["config"],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"]},u=e.computed(()=>!a[i.component]),F=e.computed(()=>a[i.component]||null),t=e.ref(null),G=e.computed(()=>{const o=M[i.component]||[],n={};return o.includes("config")&&(n.config=N.value),o.includes("dataset")&&(n.dataset=O.value),n}),c=e.ref(()=>null),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),S=e.ref(()=>null),k=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),L=e.ref(()=>null),_=e.ref(()=>null),x=e.ref(()=>null);e.onMounted(()=>{if(u.value)throw new Error(`
|
|
2
|
+
|
|
3
|
+
Vue Data UI exception:
|
|
4
|
+
The provided component "${i.component}" does not exist. Check the spelling.
|
|
5
|
+
|
|
6
|
+
Available components:
|
|
7
|
+
|
|
8
|
+
${Object.keys(a).map(o=>`. ${o}
|
|
9
|
+
`).join("")}`)}),e.watch(t,async o=>{o&&(o.generatePdf&&(c.value=o.generatePdf),o.generateImage&&(d.value=o.generateImage),o.generateCsv&&(m.value=o.generateCsv),o.getItemsPositions&&(g.value=o.getItemsPositions),o.toggleReadonly&&(p.value=o.toggleReadonly),o.shoot&&(f.value=o.shoot),o.close&&(V.value=o.close),o.restoreOrder&&(v.value=o.restoreOrder),o.recalculateHeight&&(U.value=o.recalculateHeight),o.toggleLock&&(h.value=o.toggleLock),o.toggleTable&&(y.value=o.toggleTable),o.toggleLabels&&(C.value=o.toggleLabels),o.toggleSort&&(A.value=o.toggleSort),o.toggleStack&&(P.value=o.toggleStack),o.toggleTooltip&&(q.value=o.toggleTooltip),o.start&&(S.value=o.start),o.pause&&(k.value=o.pause),o.reset&&(b.value=o.reset),o.restart&&(T.value=o.restart),o.lap&&(D.value=o.lap),o.toggleAnimation&&(L.value=o.toggleAnimation),o.pauseAnimation&&(_.value=o.pauseAnimation),o.resumeAnimation&&(x.value=o.resumeAnimation))});const W=()=>{const o=["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","pause","reset","restart","lap","toggleAnimation","pauseAnimation","resumeAnimation"],n={};return o.forEach(l=>{n[l]=(...s)=>E(l,...s)}),n},r=e.shallowReactive([]);return e.watch([r,t],()=>{if(t.value)for(;r.length;){const[o,...n]=r.shift();typeof t.value[o]=="function"&&t.value[o](...n)}}),B({getData:(...o)=>t.value&&typeof t.value.getData=="function"?t.value.getData():r.push(["getData",...o]),generatePdf:c,generateCsv:m,generateImage:d,getItemsPositions:g,toggleReadonly:p,shoot:f,close:V,restoreOrder:v,recalculateHeight:U,toggleLock:h,toggleTable:y,toggleLabels:C,toggleSort:A,toggleStack:P,toggleTooltip:q,start:S,pause:k,reset:b,restart:T,lap:D,pauseAnimation:_,resumeAnimation:x,toggleAnimation:L}),(o,n)=>u.value?(e.openBlock(),e.createElementBlock("div",Q,[e.createElementVNode("div",$,[e.createVNode(j.default,{name:"moodFlat",stroke:"#FF0000"})]),e.createTextVNode(' The provided component "'+e.toDisplayString(e.unref(H))+'" does not exist ',1)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(F.value),e.mergeProps({key:1,ref_key:"currentComponentRef",ref:t},G.value,e.toHandlers(W())),e.createSlots({_:2},[e.renderList(o.$slots,(l,s)=>({name:s,fn:e.withCtx(X=>[e.renderSlot(o.$slots,s,e.normalizeProps(e.guardReactiveProps(X)))])}))]),1040))}};exports.default=z;
|
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-Y23HeR26.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.VueUiCandlestick=e.VueUiCandlestick;exports.VueUiCarouselTable=e.VueUiCarouselTable;exports.VueUiChestnut=e.VueUiChestnut;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.VueUiGalaxy=e.VueUiGalaxy;exports.VueUiGauge=e.VueUiGauge;exports.VueUiGizmo=e.VueUiGizmo;exports.VueUiHeatmap=e.VueUiHeatmap;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.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.VueUiScreenshot=e.VueUiScreenshot;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.createWordCloudDatasetFromPlainText=e.createWordCloudDatasetFromPlainText;exports.getPalette=e.getPalette;exports.getThemeConfig=e.getThemeConfig;exports.getVueDataUiConfig=e.getVueDataUiConfig;
|
package/dist/vue-data-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as s, $ as u, a0 as V, a1 as U, a2 as r, a3 as t, a4 as o, aS as l, a5 as n, a6 as d, a7 as m, a8 as S, a9 as p, aa as c, ab as g, ac as k, ad as C, ae as T, aT as b, af as D, ag as h, ah as P, ai as f, aj as y, ak as R, al as A, am as W, an as x, ao as G, ap as H, aq as M, ar as v, as as w, at as B, au as F, av as Q, aw as X, ax as z, ay as E, az as I, aA as K, aB as L, aC as N, aD as O, aU as j, aE as q, aF as J, aG as _, aH as $, aI as Y, aJ as Z, aK as aa, aL as ea, aM as ia, aN as sa, aO as ua, aP as Va, aQ as Ua, aR as ra, S as ta, aV as oa, aW as la, aX as na } from "./index-BhCM2QF1.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Arrow,
|
|
5
5
|
u as VueDataUi,
|
|
@@ -12,10 +12,10 @@ export {
|
|
|
12
12
|
n as VueUiChestnut,
|
|
13
13
|
d as VueUiCursor,
|
|
14
14
|
m as VueUiDashboard,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
S as VueUiDigits,
|
|
16
|
+
p as VueUiDonut,
|
|
17
|
+
c as VueUiDonutEvolution,
|
|
18
|
+
g as VueUiDumbbell,
|
|
19
19
|
k as VueUiFlow,
|
|
20
20
|
C as VueUiGalaxy,
|
|
21
21
|
T as VueUiGauge,
|
|
@@ -27,40 +27,41 @@ export {
|
|
|
27
27
|
y as VueUiMolecule,
|
|
28
28
|
R as VueUiMoodRadar,
|
|
29
29
|
A as VueUiNestedDonuts,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
W as VueUiOnion,
|
|
31
|
+
x as VueUiParallelCoordinatePlot,
|
|
32
|
+
G as VueUiQuadrant,
|
|
33
|
+
H as VueUiQuickChart,
|
|
34
|
+
M as VueUiRadar,
|
|
35
35
|
v as VueUiRating,
|
|
36
36
|
w as VueUiRelationCircle,
|
|
37
37
|
B as VueUiRings,
|
|
38
38
|
F as VueUiScatter,
|
|
39
39
|
Q as VueUiScreenshot,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
j as
|
|
49
|
-
q as
|
|
50
|
-
J as
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
aa as
|
|
56
|
-
ea as
|
|
57
|
-
ia as
|
|
58
|
-
sa as
|
|
59
|
-
ua as
|
|
60
|
-
Va as
|
|
61
|
-
Ua as
|
|
62
|
-
ra as
|
|
63
|
-
ta as
|
|
64
|
-
oa as
|
|
65
|
-
la as
|
|
40
|
+
X as VueUiSkeleton,
|
|
41
|
+
z as VueUiSmiley,
|
|
42
|
+
E as VueUiSparkHistogram,
|
|
43
|
+
I as VueUiSparkStackbar,
|
|
44
|
+
K as VueUiSparkTrend,
|
|
45
|
+
L as VueUiSparkbar,
|
|
46
|
+
N as VueUiSparkgauge,
|
|
47
|
+
O as VueUiSparkline,
|
|
48
|
+
j as VueUiStackbar,
|
|
49
|
+
q as VueUiStripPlot,
|
|
50
|
+
J as VueUiTable,
|
|
51
|
+
_ as VueUiTableHeatmap,
|
|
52
|
+
$ as VueUiTableSparkline,
|
|
53
|
+
Y as VueUiThermometer,
|
|
54
|
+
Z as VueUiTimer,
|
|
55
|
+
aa as VueUiTiremarks,
|
|
56
|
+
ea as VueUiTreemap,
|
|
57
|
+
ia as VueUiVerticalBar,
|
|
58
|
+
sa as VueUiWaffle,
|
|
59
|
+
ua as VueUiWheel,
|
|
60
|
+
Va as VueUiWordCloud,
|
|
61
|
+
Ua as VueUiXy,
|
|
62
|
+
ra as VueUiXyCanvas,
|
|
63
|
+
ta as createWordCloudDatasetFromPlainText,
|
|
64
|
+
oa as getPalette,
|
|
65
|
+
la as getThemeConfig,
|
|
66
|
+
na as getVueDataUiConfig
|
|
66
67
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-Y23HeR26.cjs"),se=require("./Title-DQz9dO4d.cjs"),Z=require("./usePrinter-DTF28E03.cjs"),ue=require("./vue-ui-skeleton-B5Z4craS.cjs"),ie=require("./DataTable-B4_9ynlY.cjs"),ce=require("./vue-ui-accordion-CVrj6roI.cjs"),Y=require("./useNestedProp-C2H2jmU6.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),D=N=>(e.pushScopeId("data-v-82f069d2"),N=N(),e.popScopeId(),N),he=["id"],ve=["xmlns","viewBox"],fe=["id"],pe=["stop-color"],ke=["stop-color"],me=["id"],ye=["stop-color"],ge=["stop-color"],$e=["id"],_e=["stop-color"],xe=["stop-color"],Be=["id"],be=["stop-color"],Ce=["stop-color"],Ee=["stop-color"],we={key:0},Ne=["id"],Ve=["stop-color"],Fe=["stop-color"],Se=["id"],Me=["stop-color"],Pe=["stop-color"],De=["id"],Te=["stop-color"],Le=["stop-color"],ze=["id"],je=D(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),Oe=D(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),He=[je,Oe],Ie=["x","y","font-size","font-weight","fill"],We=["x","y"],Ge=["d","stroke"],Ae=["d","stroke"],qe={key:3},Ue={key:0},Xe=["stroke-dasharray","d","stroke","stroke-width"],Re=["stroke-dasharray","d","stroke","stroke-width"],Ze=["stroke-dasharray","d","stroke","stroke-width"],Ye=["stroke-dasharray","d","stroke","stroke-width"],Je={key:1},Ke=["d","stroke","stroke-width","fill"],Qe=["d","stroke","stroke-width","fill"],et=["d","stroke","stroke-width","fill"],tt={key:2},lt=["d","fill","onMouseenter","onClick"],ot=["d","fill","onMouseenter","onClick"],rt=["d","fill","onMouseenter","onClick"],nt=["d","onMouseenter","onClick"],at=["d"],st=["d","stroke"],ut=["onClick"],it=["stroke","d"],ct=["cx","cy","fill","stroke"],dt=["x","y","width","height"],ht={key:1},vt=["d","stroke"],ft=["d","fill","stroke"],pt=["id"],kt=["stop-color"],mt=D(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),yt=["stop-color"],gt=["cx","cy","fill"],$t=["cx","cy","fill"],_t={key:0},xt=["text-anchor","x","y","fill","font-size"],Bt=["text-anchor","x","y","fill","font-size"],bt={key:2},Ct=["d","fill","stroke"],Et={key:4},wt={key:0},Nt=["stroke-dasharray","d","stroke","stroke-width"],Vt=["stroke-dasharray","d","stroke","stroke-width"],Ft=["stroke-dasharray","d","stroke","stroke-width"],St=["stroke-dasharray","d","stroke","stroke-width"],Mt=["d","stroke","stroke-width","fill"],Pt=["d","stroke","stroke-width","fill"],Dt={key:1},Tt=["onClick"],Lt=["id"],zt=["stop-color"],jt=["stop-color"],Ot=["id"],Ht=["stop-color"],It=["stop-color"],Wt=["stop-color"],Gt=["stop-color"],At=["stop-color"],qt=["onMouseenter","onClick","d","fill"],Ut=["onMouseenter","onClick","d"],Xt=["onMouseenter","onClick","d","fill"],Rt=["onClick"],Zt=["stroke","d"],Yt=["cx","cy","fill","stroke"],Jt=["x","y","width","height"],Kt={key:1},Qt=["d","stroke"],el=["d","fill","stroke"],tl=["id"],ll=["stop-color"],ol=D(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),rl=["stop-color"],nl=["cx","cy","fill"],al=["cx","cy","fill"],sl={key:0},ul=["text-anchor","x","y","fill","font-size"],il=["text-anchor","x","y","fill","font-size"],cl={key:2},dl=["d","fill","stroke"],hl={key:3,class:"vue-data-ui-watermark"},vl=["innerHTML"],fl={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(N,{expose:J,emit:F}){const p=N,{vue_ui_3d_bar:K}=i.useConfig(),S=e.computed(()=>!!p.dataset&&Object.keys(p.dataset).length),m=e.ref(i.createUid()),Q=e.ref(null),z=e.ref(null),b=e.ref(!1),l=e.computed(()=>{const u=Y.useNestedProp({userConfig:p.config,defaultConfig:K});return u.theme?{...Y.useNestedProp({userConfig:i.themes.vue_ui_3d_bar[u.theme]||p.config,defaultConfig:u}),customPalette:i.themePalettes[u.theme]||i.palette}:u}),{isPrinting:j,isImaging:O,generatePdf:H,generateImage:I}=Z.usePrinter({elementId:`3d_bar_${m.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar"}),ee=e.computed(()=>i.convertCustomPalette(l.value.customPalette)),M=e.ref({showTable:l.value.table.show}),$=e.computed(()=>p.dataset.series&&p.dataset.series.length),r=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 u=p.dataset.series.map(o=>o.value||0).reduce((o,a)=>o+a,0),n=p.dataset.series.map((o,a)=>({...o,id:i.createUid(),proportion:(o.value||0)/u,color:i.convertColorToHex(o.color)||ee.value[a]||i.palette[a]||i.palette[a%i.palette.length],breakdown:o.breakdown?o.breakdown.sort((s,f)=>f.value-s.value):null})).sort((o,a)=>a.value-o.value),t=[];let c=0;for(let o=0;o<n.length;o+=1)t.push({...n[o],fill:te(c,n[o].proportion,n[o].breakdown,n[o].color)}),c+=n[o].proportion;return t}return null}),x=e.computed(()=>({right:`M${r.value.width/2},${r.value.top} ${r.value.width-r.value.right}, ${r.value.top+r.value.perspective} ${r.value.width-r.value.right},${r.value.height-r.value.bottom-r.value.perspective} ${r.value.width/2},${r.value.height-r.value.bottom}`,left:`M${r.value.width/2},${r.value.top} ${r.value.left},${r.value.top+r.value.perspective} ${r.value.left},${r.value.height-r.value.bottom-r.value.perspective} ${r.value.width/2},${r.value.height-r.value.bottom}`,side:`M${r.value.width/2},${r.value.height-r.value.bottom} ${r.value.width/2},${r.value.top+r.value.perspective*2}`,topSides:`M${r.value.left},${r.value.top+r.value.perspective} ${r.value.width/2},${r.value.top+r.value.perspective*2} ${r.value.width-r.value.right},${r.value.top+r.value.perspective}`,tubeTop:`M${r.value.left},${r.value.top+r.value.perspective} C ${r.value.left},${r.value.top-r.value.perspective/3} ${r.value.width-r.value.right},${r.value.top-r.value.perspective/3} ${r.value.width-r.value.right},${r.value.top+r.value.perspective} C ${r.value.width-r.value.right},${r.value.top+r.value.perspective*2.3} ${r.value.left},${r.value.top+r.value.perspective*2.3} ${r.value.left},${r.value.top+r.value.perspective}`,tubeLeft:`M${r.value.left},${r.value.top+r.value.perspective} ${r.value.left},${r.value.height-r.value.bottom-r.value.perspective}`,tubeRight:`M${r.value.width-r.value.right},${r.value.top+r.value.perspective} ${r.value.width-r.value.right},${r.value.height-r.value.bottom-r.value.perspective}`,tubeBottom:`M${r.value.width-r.value.right},${r.value.height-r.value.bottom-r.value.perspective} C ${r.value.width-r.value.right},${r.value.height} ${r.value.left},${r.value.height} ${r.value.left},${r.value.height-r.value.bottom-r.value.perspective}`})),C=e.ref(l.value.style.chart.animation.use?0:p.dataset.percentage);e.onMounted(()=>{i.objectIsEmpty(p.dataset)?i.error({componentName:"VueUi3dBar",type:"dataset"}):p.dataset.series?p.dataset.series.forEach((o,a)=>{i.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(s=>{i.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:s,index:a})}),o.breakdown&&o.breakdown.forEach((s,f)=>{i.getMissingDatasetAttributes({datasetObject:s,requiredAttributes:["name","value"]}).forEach(k=>{i.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:k,index:`${a} - ${f}`})})})}):i.getMissingDatasetAttributes({datasetObject:p.dataset,requiredAttributes:["percentage"]}).forEach(o=>{i.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:o})});let u=0,n=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){C.value+=n+u,u+=t,C.value<p.dataset.percentage?requestAnimationFrame(c):C.value=p.dataset.percentage}l.value.style.chart.animation.use&&(C.value=0,c())});function te(u,n,t,c){const o=r.value.height-r.value.bottom-r.value.top-r.value.perspective*2,{width:a,height:s,bottom:f,right:k,left:h,perspective:v}=r.value,d=f+o*u,L=s-d-v-o*n/2,re=L>r.value.height/2?"top":"bottom",q=64,ne=!!t;let U=null,X=null;return ne&&(t=t.map((R,ae)=>({...R,value:R.value||0,color:i.lightenHexColor(c,ae/t.length)})),U=i.makeDonut({series:t},a+r.value.absoluteWidth/4-14,re==="top"?L-q:L+q,28,28,1.99999,2,1,360,105.25,14),X=i.makeDonut({series:t},a-k+20,s-d-v-o*n/2,6,6,1.99999,2,1,360,105.25,6)),{donut:U,miniDonut:X,sidePointer:{x:a-k,y:s-d-v-o*n/2,topY:s-d-v-o*n,height:o*n},apexBottom:{y:s-d,x:a/2},apexTop:{y:s-d-o*n,x:a/2},right:`M${a/2},${s-d} ${a/2},${s-d-o*n} ${a-k},${s-d-v-o*n} ${a-k},${s-d-v}Z`,left:`M${a/2},${s-d} ${a/2},${s-d-o*n} ${h}, ${s-d-v-o*n} ${h},${s-d-v}Z`,liningTop:`M${h},${s-d-v-o*n} ${a/2},${s-d-o*n} ${a-k},${s-d-v-o*n}`,liningTopShade:`M${h},${s-d-v-o*n-.5} ${a/2},${s-d-o*n-.5} ${a-k},${s-d-v-o*n-.5}`,top:`M${a/2},${s-d-o*n} ${h},${s-d-v-o*n} ${a/2},${s-d-v*2-o*n} ${a-k},${s-d-v-o*n} Z`,tubeTop:`M${h},${s-d-o*n-v} C ${h},${s-d-o*n-v*2.5} ${a-k},${s-d-o*n-v*2.5} ${a-k},${s-d-o*n-v} C ${a-k},${s-d-o*n+v/2} ${h},${s-d-o*n+v/2} ${h},${s-d-o*n-v}`,bottomTubeTop:`M ${a-k-.5},${s-d-v} C ${a-k-.5},${s-d+v/2} ${h},${s-d+v/2} ${h+.5},${s-d-v}`,tubeBody:`M
|
|
2
2
|
${h},${s-d-o*n-v}
|
|
3
3
|
C ${h},${s-d-o*n+v/2}
|
|
4
4
|
${a-k},${s-d-o*n+v/2}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as P, ref as z, onMounted as ze, openBlock as n, createElementBlock as i, normalizeClass as $e, normalizeStyle as D, createVNode as ge, createCommentVNode as k, createBlock as se, unref as v, createSlots as Be, withCtx as B, renderSlot as j, normalizeProps as R, guardReactiveProps as Y, createElementVNode as r, Fragment as $, renderList as g, toDisplayString as M, createTextVNode as Ie, nextTick as Oe, pushScopeId as Le, popScopeId as We } from "vue";
|
|
2
|
-
import { u as Ge, c as _e, t as Ve, a as Ae, p as J, b as Ue, d as S, o as Ee, e as K, g as ae, l as A, m as me, f as I, X as He, h as Q, i as xe, j as O, k as ee, n as Ze, q as qe } from "./index-
|
|
3
|
-
import { _ as Xe } from "./Title-
|
|
4
|
-
import { u as Re, U as Ye } from "./usePrinter-
|
|
5
|
-
import Je from "./vue-ui-skeleton-
|
|
6
|
-
import { D as Ke } from "./DataTable-
|
|
7
|
-
import Qe from "./vue-ui-accordion-
|
|
8
|
-
import { u as be } from "./useNestedProp-
|
|
2
|
+
import { u as Ge, c as _e, t as Ve, a as Ae, p as J, b as Ue, d as S, o as Ee, e as K, g as ae, l as A, m as me, f as I, X as He, h as Q, i as xe, j as O, k as ee, n as Ze, q as qe } from "./index-BhCM2QF1.js";
|
|
3
|
+
import { _ as Xe } from "./Title-CtWGLaoz.js";
|
|
4
|
+
import { u as Re, U as Ye } from "./usePrinter-B75HLwzw.js";
|
|
5
|
+
import Je from "./vue-ui-skeleton-_VMQ594N.js";
|
|
6
|
+
import { D as Ke } from "./DataTable-bEXuvNn5.js";
|
|
7
|
+
import Qe from "./vue-ui-accordion-CSZdj7wA.js";
|
|
8
|
+
import { u as be } from "./useNestedProp-CH3PVhvc.js";
|
|
9
9
|
import { _ as et } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const te = (U) => (Le("data-v-82f069d2"), U = U(), We(), U), tt = ["id"], lt = ["xmlns", "viewBox"], ot = ["id"], st = ["stop-color"], at = ["stop-color"], nt = ["id"], rt = ["stop-color"], ut = ["stop-color"], it = ["id"], dt = ["stop-color"], ct = ["stop-color"], ht = ["id"], vt = ["stop-color"], ft = ["stop-color"], pt = ["stop-color"], yt = { key: 0 }, kt = ["id"], $t = ["stop-color"], gt = ["stop-color"], _t = ["id"], mt = ["stop-color"], xt = ["stop-color"], bt = ["id"], wt = ["stop-color"], Ct = ["stop-color"], Ft = ["id"], Mt = /* @__PURE__ */ te(() => /* @__PURE__ */ r("stop", {
|
|
11
11
|
offset: "0%",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as y, computed as s, ref as r, onMounted as b, watch as _, openBlock as u, createElementBlock as v, createElementVNode as n, normalizeClass as $, normalizeStyle as p, renderSlot as c, normalizeProps as i, mergeProps as O, createBlock as D, createCommentVNode as N, guardReactiveProps as m } from "vue";
|
|
2
|
-
import w from "./BaseIcon-
|
|
3
|
-
import { u as x } from "./useNestedProp-
|
|
4
|
-
import { u as B, c as I } from "./index-
|
|
2
|
+
import w from "./BaseIcon-Op8_v5x7.js";
|
|
3
|
+
import { u as x } from "./useNestedProp-CH3PVhvc.js";
|
|
4
|
+
import { u as B, c as I } from "./index-BhCM2QF1.js";
|
|
5
5
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const F = ["id"], P = {
|
|
7
7
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-BK5xYOzV.cjs"),g=require("./useNestedProp-C2H2jmU6.cjs"),u=require("./index-Y23HeR26.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=["id"],h={key:0,class:"vue-ui-accordion-arrow"},k={__name:"vue-ui-accordion",props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},setup(l){const c=l;e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:d}=u.useConfig(),o=e.computed(()=>g.useNestedProp({userConfig:c.config,defaultConfig:d})),a=e.ref(o.value.open),i=e.ref(u.createUid()),t=e.ref(null),n=e.ref(0);e.onMounted(()=>{t.value.open=o.value.open}),e.watch(()=>o.value.open,r=>{t.value.open=r});function s(){(n.value>0||!o.value.open)&&(a.value=!a.value),n.value+=1}const v=e.computed(()=>`${o.value.maxHeight}px`);return(r,C)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("details",{id:`details_${i.value}`,ref_key:"details",ref:t,onToggle:s},[e.createElementVNode("summary",{class:e.normalizeClass({"vue-ui-accordion-headless":l.hideDetails})},[e.createElementVNode("div",{class:"vue-ui-accordion-head",style:e.normalizeStyle(`background:${o.value.head.backgroundColor};padding:${o.value.head.padding}; ${l.hideDetails?"height: 0px !important; padding: 0 !important;":""}`)},[l.hideDetails?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[o.value.head.useArrowSlot?e.renderSlot(r.$slots,"arrow",e.normalizeProps(e.mergeProps({key:0},{backgroundColor:o.value.head.backgroundColor,color:o.value.head.color,iconColor:o.value.head.iconColor,isOpen:a.value})),void 0,!0):(e.openBlock(),e.createBlock(p.default,{key:1,name:"arrowRight",stroke:o.value.head.iconColor},null,8,["stroke"]))])),e.renderSlot(r.$slots,"title",e.normalizeProps(e.guardReactiveProps({color:o.value.head.color,isOpen:a.value})),void 0,!0)],4)],2)],40,m),e.createElementVNode("div",{class:"vue-ui-accordion-content",style:e.normalizeStyle(`background:${o.value.body.backgroundColor};color:${o.value.body.color}`)},[e.renderSlot(r.$slots,"content",e.normalizeProps(e.guardReactiveProps({backgroundColor:o.value.body.backgroundColor,color:o.value.body.color,isOpen:a.value})),void 0,!0)],4)]))}},y=f._export_sfc(k,[["__scopeId","data-v-28fc829c"]]);exports.default=y;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed as p, ref as d, onMounted as ve, openBlock as i, createElementBlock as u, normalizeClass as Z, normalizeStyle as R, createVNode as D, createCommentVNode as v, createBlock as G, unref as h, createSlots as ye, withCtx as f, renderSlot as g, normalizeProps as I, guardReactiveProps as M, createElementVNode as r, Fragment as $, renderList as S, toDisplayString as m, createTextVNode as ee, nextTick as he } from "vue";
|
|
2
|
-
import { u as ce, c as fe, t as ge, o as pe, e as be, X as xe, s as te, r as B, v as me, w as we, n as ke, q as _e } from "./index-
|
|
2
|
+
import { u as ce, c as fe, t as ge, o as pe, e as be, X as xe, s as te, r as B, v as me, w as we, n as ke, q as _e } from "./index-BhCM2QF1.js";
|
|
3
3
|
import { t as $e, u as Ce } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Te } from "./Title-
|
|
5
|
-
import { u as Le, U as Se } from "./usePrinter-
|
|
6
|
-
import { _ as ze } from "./Tooltip-
|
|
7
|
-
import { D as Ae } from "./DataTable-
|
|
8
|
-
import Fe from "./vue-ui-skeleton-
|
|
9
|
-
import Ie from "./vue-ui-accordion-
|
|
10
|
-
import { u as le } from "./useNestedProp-
|
|
4
|
+
import { _ as Te } from "./Title-CtWGLaoz.js";
|
|
5
|
+
import { u as Le, U as Se } from "./usePrinter-B75HLwzw.js";
|
|
6
|
+
import { _ as ze } from "./Tooltip-D6BUVHr1.js";
|
|
7
|
+
import { D as Ae } from "./DataTable-bEXuvNn5.js";
|
|
8
|
+
import Fe from "./vue-ui-skeleton-_VMQ594N.js";
|
|
9
|
+
import Ie from "./vue-ui-accordion-CSZdj7wA.js";
|
|
10
|
+
import { u as le } from "./useNestedProp-CH3PVhvc.js";
|
|
11
11
|
import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Oe = ["id"], Pe = ["xmlns", "viewBox"], Ne = ["id"], Re = ["stop-color"], De = ["stop-color"], Ge = ["id"], Be = ["stop-color"], Ee = ["stop-color"], We = ["x", "y", "width", "height", "fill", "rx"], Xe = ["x", "y", "width", "height", "fill", "rx"], Ue = ["x", "y", "width", "height", "fill", "rx"], Ve = ["x", "y", "width", "height", "fill", "rx"], Ye = { key: 0 }, je = ["x", "y", "fill", "font-size", "font-weight"], He = ["x", "y", "fill", "font-size", "font-weight"], qe = { key: 1 }, Je = ["x", "y", "font-size", "fill", "font-weight"], Ke = { key: 2 }, Qe = { key: 0 }, Ze = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], lt = ["x", "y", "font-size", "fill", "font-weight"], at = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ot = ["x", "y", "font-size", "fill", "font-weight"], st = ["x", "y", "font-size", "fill", "font-weight"], it = ["x", "y", "width", "height", "fill", "onMouseover"], ut = {
|
|
13
13
|
key: 3,
|