vue-data-ui 2.4.51 → 2.4.52
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-BUz63pb2.js → Arrow-BuBoE64l.js} +1 -1
- package/dist/{Arrow-2a_SwBgz.cjs → Arrow-CFlFdPC5.cjs} +1 -1
- package/dist/{BaseIcon-BASl_NFX.cjs → BaseIcon-CfhoS_qC.cjs} +1 -1
- package/dist/{BaseIcon-CmiukQBl.js → BaseIcon-zmxwsaLW.js} +1 -1
- package/dist/{DataTable-DGf6RrOJ.js → DataTable-COkA4Nyz.js} +2 -2
- package/dist/{DataTable-G3ICK-5h.cjs → DataTable-CwAdpLng.cjs} +1 -1
- package/dist/{Legend-BiuPlEMg.cjs → Legend-CR9ydX8N.cjs} +1 -1
- package/dist/{Legend-BLaZxMge.js → Legend-bYlSC7I7.js} +1 -1
- package/dist/{PackageVersion-Bj34UNnQ.cjs → PackageVersion-C1F3QLoY.cjs} +1 -1
- package/dist/{PackageVersion-CxJghxYD.js → PackageVersion-Dz3KcTL4.js} +1 -1
- package/dist/{PenAndPaper-ZdZEumki.js → PenAndPaper-BycdTwSP.js} +3 -3
- package/dist/{PenAndPaper-D9yQnc0e.cjs → PenAndPaper-DDheVRNG.cjs} +1 -1
- package/dist/{Shape-yducHWd0.cjs → Shape-BBp5EwJH.cjs} +1 -1
- package/dist/{Shape-DIKzzpFm.js → Shape-BDJJ38uM.js} +1 -1
- package/dist/{Slicer-BHS9W4MJ.cjs → Slicer-7oTpm-cZ.cjs} +1 -1
- package/dist/{Slicer-Cxdl3cDt.js → Slicer-D_DaIThC.js} +2 -2
- package/dist/{Title-Bk_55doC.cjs → Title-B7ruS8yl.cjs} +1 -1
- package/dist/{Title-aSAft5dl.js → Title-aMb2ETf7.js} +1 -1
- package/dist/{Tooltip-smutPF--.js → Tooltip-BRZ3DT4p.js} +1 -1
- package/dist/{Tooltip-G7ENx87_.cjs → Tooltip-BqSN71SL.cjs} +1 -1
- package/dist/{index-DhDYBLBe.cjs → index-BkXYJDpD.cjs} +1 -1
- package/dist/{index-BbPeL8Gp.js → index-K5uyh1gA.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BphUExEh.cjs → useNestedProp-C6IvqE-r.cjs} +1 -1
- package/dist/{useNestedProp-BN8claGG.js → useNestedProp-DifqJZAs.js} +1 -1
- package/dist/{usePrinter-2_QjJFdH.cjs → usePrinter-DHv-BwME.cjs} +1 -1
- package/dist/{usePrinter-DaybDVqP.js → usePrinter-p_ZZlGc9.js} +1 -1
- package/dist/{vue-data-ui-Ckbp-yIf.js → vue-data-ui-3PlAeIlX.js} +60 -60
- package/dist/{vue-data-ui-C5vsHRHD.cjs → vue-data-ui-M0E2b8Dw.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-wDYs3sVe.js → vue-ui-3d-bar-PrijRaoI.js} +30 -30
- package/dist/{vue-ui-3d-bar-DUgumRsg.cjs → vue-ui-3d-bar-VQyMytda.cjs} +2 -2
- package/dist/{vue-ui-accordion-5d5iVpr7.js → vue-ui-accordion-CsJT7Az3.js} +3 -3
- package/dist/{vue-ui-accordion-B7tNzRWB.cjs → vue-ui-accordion-kr18wKfc.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BV1MgH8J.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BH1khaaq.js → vue-ui-age-pyramid-DFYykOow.js} +42 -42
- package/dist/{vue-ui-annotator-B9VKE_qz.js → vue-ui-annotator-Blg3LdqF.js} +1 -1
- package/dist/{vue-ui-annotator-jXkB5XnD.cjs → vue-ui-annotator-DffUZR4a.cjs} +1 -1
- package/dist/vue-ui-bullet-DSampkai.cjs +34 -0
- package/dist/{vue-ui-bullet-BLi9CSZw.js → vue-ui-bullet-Ybz4qPWl.js} +41 -41
- package/dist/{vue-ui-candlestick-Da4ygGXR.cjs → vue-ui-candlestick-BxcwK8UI.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bjz1uFbv.js → vue-ui-candlestick-DsVBdCz_.js} +61 -61
- package/dist/{vue-ui-carousel-table-B6zgTL-W.js → vue-ui-carousel-table-C2ThrWYt.js} +50 -50
- package/dist/vue-ui-carousel-table-DkWNe0mJ.cjs +1 -0
- package/dist/{vue-ui-chestnut-D5HpkuIa.js → vue-ui-chestnut-BacH0ZYK.js} +66 -66
- package/dist/{vue-ui-chestnut-C_N7EbjQ.cjs → vue-ui-chestnut-Cw8LKuZG.cjs} +3 -3
- package/dist/{vue-ui-cursor-DZNIbvR2.js → vue-ui-cursor-CMKSCQ-v.js} +2 -2
- package/dist/{vue-ui-cursor-A_siHYBc.cjs → vue-ui-cursor-D2kQNFWy.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DCqe4BZg.js → vue-ui-dashboard-9PYl4mWC.js} +2 -2
- package/dist/{vue-ui-dashboard-BfPJyiY9.cjs → vue-ui-dashboard-BHwlhK33.cjs} +1 -1
- package/dist/{vue-ui-digits-BEhLa3jI.cjs → vue-ui-digits-2yacgzrJ.cjs} +1 -1
- package/dist/{vue-ui-digits-BEWCnojc.js → vue-ui-digits-CyTjq_oN.js} +2 -2
- package/dist/vue-ui-donut-BNv1eGiu.cjs +1 -0
- package/dist/{vue-ui-donut-g5ZLhYPx.js → vue-ui-donut-BxLlCBhU.js} +57 -57
- package/dist/{vue-ui-donut-evolution-Cu6dmlT2.js → vue-ui-donut-evolution-Bw9hfwuO.js} +66 -66
- package/dist/vue-ui-donut-evolution-DGjHfyq8.cjs +1 -0
- package/dist/vue-ui-dumbbell-CjHcgzti.cjs +9 -0
- package/dist/{vue-ui-dumbbell-bb4-Ep6o.js → vue-ui-dumbbell-D0PjpD19.js} +46 -46
- package/dist/{vue-ui-flow-hD0F6mTK.js → vue-ui-flow-BuTJcn6b.js} +43 -43
- package/dist/vue-ui-flow-Dc-KV4a3.cjs +1 -0
- package/dist/{vue-ui-funnel-hcbE4yky.js → vue-ui-funnel-CxO1aav3.js} +59 -59
- package/dist/vue-ui-funnel-QQGqK4OD.cjs +1 -0
- package/dist/{vue-ui-galaxy-ByKjxVWV.js → vue-ui-galaxy-B2uwYVgz.js} +54 -54
- package/dist/vue-ui-galaxy-CABgAX76.cjs +1 -0
- package/dist/vue-ui-gauge-CTEPbzWe.cjs +1 -0
- package/dist/{vue-ui-gauge-PGirbe6O.js → vue-ui-gauge-CqhJx__t.js} +70 -70
- package/dist/{vue-ui-gizmo-ChSfBYZ_.js → vue-ui-gizmo-D7G-8Al-.js} +3 -3
- package/dist/{vue-ui-gizmo-CHMApil6.cjs → vue-ui-gizmo-DlQOItIS.cjs} +1 -1
- package/dist/vue-ui-heatmap-BOwY6qNR.cjs +1 -0
- package/dist/{vue-ui-heatmap-CK3FIWpo.js → vue-ui-heatmap-DLNzJh--.js} +87 -87
- package/dist/{vue-ui-history-plot-EmQ-Byiz.js → vue-ui-history-plot-CH2mN74k.js} +75 -75
- package/dist/vue-ui-history-plot-EiYWpITj.cjs +1 -0
- package/dist/{vue-ui-kpi-DjC68pSz.js → vue-ui-kpi-Cb3fLQlS.js} +3 -3
- package/dist/{vue-ui-kpi-BdungaO2.cjs → vue-ui-kpi-DB00TrXv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CzrblCCD.js → vue-ui-mini-loader-Czn2u6m3.js} +2 -2
- package/dist/{vue-ui-mini-loader-jwL_pZjb.cjs → vue-ui-mini-loader-DAaZwOTE.cjs} +1 -1
- package/dist/{vue-ui-molecule-DBQJQs4Y.js → vue-ui-molecule-BAwzIU19.js} +52 -52
- package/dist/vue-ui-molecule-DZ6Z4eru.cjs +1 -0
- package/dist/vue-ui-mood-radar-BL3vQzMq.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Ca9wPZpJ.js → vue-ui-mood-radar-BXOWHB57.js} +35 -35
- package/dist/{vue-ui-nested-donuts-DEdS6dpj.cjs → vue-ui-nested-donuts-D1EF5IEw.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-C8at93dN.js → vue-ui-nested-donuts-F1pwFa1Y.js} +90 -90
- package/dist/{vue-ui-onion-B-PXxNu6.js → vue-ui-onion-C9dEaRbc.js} +52 -52
- package/dist/{vue-ui-onion-B2ioudP5.cjs → vue-ui-onion-nA8sXxh-.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-ByM3So9k.js → vue-ui-parallel-coordinate-plot-Cgc8JHMy.js} +62 -62
- package/dist/{vue-ui-parallel-coordinate-plot-DtJi9cT0.cjs → vue-ui-parallel-coordinate-plot-DL4DOhyh.cjs} +2 -2
- package/dist/{vue-ui-quadrant-BqOJBcsI.js → vue-ui-quadrant-C_hJHr9T.js} +50 -50
- package/dist/vue-ui-quadrant-DJGxKeBq.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bt9KA82P.cjs → vue-ui-quick-chart-C5v_8Kpw.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BfXxT3KM.js → vue-ui-quick-chart-D4k-zSan.js} +9 -9
- package/dist/vue-ui-radar-BeGVGueh.cjs +1 -0
- package/dist/{vue-ui-radar-BKpD9xDr.js → vue-ui-radar-WKQ-TavD.js} +59 -59
- package/dist/{vue-ui-rating-DQRuqev5.js → vue-ui-rating-BrSnMkzF.js} +2 -2
- package/dist/{vue-ui-rating-BE545aI4.cjs → vue-ui-rating-DI3L8UYN.cjs} +1 -1
- package/dist/vue-ui-relation-circle-BJ_TOhIp.cjs +1 -0
- package/dist/{vue-ui-relation-circle-nZ2nBpWX.js → vue-ui-relation-circle-DzZ5H4og.js} +56 -56
- package/dist/{vue-ui-rings-B7JzZ3ub.cjs → vue-ui-rings-1qwg2E0O.cjs} +2 -2
- package/dist/{vue-ui-rings-C1PV0873.js → vue-ui-rings-43dY-4_7.js} +65 -65
- package/dist/vue-ui-scatter-cTK10i0K.cjs +1 -0
- package/dist/{vue-ui-scatter-dgs1m3-2.js → vue-ui-scatter-q6Sfqa4W.js} +102 -102
- package/dist/{vue-ui-screenshot-Dxj0l8Jg.js → vue-ui-screenshot-CEy169Mc.js} +1 -1
- package/dist/{vue-ui-screenshot--cHV0jG3.cjs → vue-ui-screenshot-gOGGT_ti.cjs} +1 -1
- package/dist/{vue-ui-skeleton-lkPDknHn.cjs → vue-ui-skeleton-BTN1PKkz.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bniq21d9.js → vue-ui-skeleton-BhA2lIT6.js} +3 -3
- package/dist/{vue-ui-smiley-D4DAZIpA.js → vue-ui-smiley-BAFdctGJ.js} +2 -2
- package/dist/{vue-ui-smiley-CozXoiti.cjs → vue-ui-smiley-BIEXWWWa.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-ZqrwhwqS.js → vue-ui-spark-trend-Deg6oJxD.js} +5 -5
- package/dist/{vue-ui-spark-trend-CSqyvI_K.cjs → vue-ui-spark-trend-LqnAP3mZ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bph8KIjk.cjs → vue-ui-sparkbar-CJR8pSqp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-q0G4GvFm.js → vue-ui-sparkbar-Dm393iij.js} +4 -4
- package/dist/{vue-ui-sparkgauge-nSAW83dN.cjs → vue-ui-sparkgauge-DpP1XF6C.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DA_h9jcN.js → vue-ui-sparkgauge-WTo7H8eC.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BLYhRNpt.cjs → vue-ui-sparkhistogram-CEvdVaLZ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-B1WyBiq_.js → vue-ui-sparkhistogram-DNVBeCU9.js} +5 -5
- package/dist/{vue-ui-sparkline-PNix1-R9.cjs → vue-ui-sparkline-B87AKRMY.cjs} +1 -1
- package/dist/{vue-ui-sparkline-ccfl0s3m.js → vue-ui-sparkline-Bcn_JAfC.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DpuvEumy.cjs → vue-ui-sparkstackbar-Cmafq74u.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-PNKwVRu8.js → vue-ui-sparkstackbar-DPPTp1Tm.js} +5 -5
- package/dist/{vue-ui-stackbar-BBYnF8qm.js → vue-ui-stackbar-BeXW23yH.js} +43 -43
- package/dist/vue-ui-stackbar-DeFiDh8a.cjs +6 -0
- package/dist/vue-ui-strip-plot-5n6Om5PH.cjs +1 -0
- package/dist/{vue-ui-strip-plot-TVlnzXFq.js → vue-ui-strip-plot-CG-wp65N.js} +78 -78
- package/dist/{vue-ui-table-CHdv3KuM.cjs → vue-ui-table-Bbfdq7B8.cjs} +1 -1
- package/dist/{vue-ui-table-CsEajH9S.js → vue-ui-table-BzuWkWse.js} +1 -1
- package/dist/vue-ui-table-heatmap--Uj5nFcF.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-CubRipoB.js → vue-ui-table-heatmap-obAYC2HB.js} +38 -38
- package/dist/vue-ui-table-sparkline-Buh41Ovt.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-YV8DUOqh.js → vue-ui-table-sparkline-CW0-ubzl.js} +293 -247
- package/dist/{vue-ui-thermometer-DmMjSLc1.js → vue-ui-thermometer-BmgPuIr6.js} +74 -74
- package/dist/vue-ui-thermometer-DW10BlzG.cjs +1 -0
- package/dist/{vue-ui-timer-DvE_nqd9.js → vue-ui-timer-6eWSNYld.js} +5 -5
- package/dist/{vue-ui-timer-DteYgv9y.cjs → vue-ui-timer-CKp_yNVJ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CCrkDgjX.js → vue-ui-tiremarks-DeEI5TAa.js} +46 -46
- package/dist/vue-ui-tiremarks-nb8r7akm.cjs +1 -0
- package/dist/vue-ui-treemap-B54QUZ46.cjs +1 -0
- package/dist/{vue-ui-treemap-C4A4spvg.js → vue-ui-treemap-tlPZye6M.js} +91 -91
- package/dist/{vue-ui-vertical-bar-8iL1xiaz.js → vue-ui-vertical-bar-BIst1a32.js} +67 -67
- package/dist/{vue-ui-vertical-bar-B60lSXNq.cjs → vue-ui-vertical-bar-CCXF79YU.cjs} +2 -2
- package/dist/vue-ui-waffle-Dctw-uNI.cjs +1 -0
- package/dist/{vue-ui-waffle-CaYNz-Kd.js → vue-ui-waffle-iJT4g4Ht.js} +48 -48
- package/dist/vue-ui-wheel-DnCpgZZo.cjs +1 -0
- package/dist/{vue-ui-wheel-BRR2rGou.js → vue-ui-wheel-v1_jsNWp.js} +36 -36
- package/dist/vue-ui-word-cloud-BXa6XzUJ.cjs +1 -0
- package/dist/{vue-ui-word-cloud-y2GGxwoq.js → vue-ui-word-cloud-DR8E1ArH.js} +66 -66
- package/dist/{vue-ui-xy-CXoWP8bh.js → vue-ui-xy-BZ3lbw6i.js} +14 -14
- package/dist/{vue-ui-xy-CbM75yXK.cjs → vue-ui-xy-CvFWhRR-.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-DWvIvSry.cjs → vue-ui-xy-canvas-BVw3zOIC.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-D7MrUJj7.js → vue-ui-xy-canvas-hPcU2SBK.js} +53 -53
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-Dxx1mVwR.cjs +0 -1
- package/dist/vue-ui-bullet-QrXtipbT.cjs +0 -34
- package/dist/vue-ui-carousel-table-Cfif8Oiz.cjs +0 -1
- package/dist/vue-ui-donut-By3QRfkV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DEABWsj0.cjs +0 -1
- package/dist/vue-ui-dumbbell-Dfb1l5qP.cjs +0 -9
- package/dist/vue-ui-flow-CCvTnu7z.cjs +0 -1
- package/dist/vue-ui-funnel-DKxAPRi_.cjs +0 -1
- package/dist/vue-ui-galaxy-D2kmqwpI.cjs +0 -1
- package/dist/vue-ui-gauge-BFA_unjg.cjs +0 -1
- package/dist/vue-ui-heatmap-C0VxwPhr.cjs +0 -1
- package/dist/vue-ui-history-plot-BmGodgUx.cjs +0 -1
- package/dist/vue-ui-molecule-Dzh-0SWI.cjs +0 -1
- package/dist/vue-ui-mood-radar-DV6ZZIXF.cjs +0 -1
- package/dist/vue-ui-quadrant-CIr4i6cC.cjs +0 -1
- package/dist/vue-ui-radar-Czmsd_uv.cjs +0 -1
- package/dist/vue-ui-relation-circle-B1uMTqFP.cjs +0 -1
- package/dist/vue-ui-scatter-CTI943ks.cjs +0 -1
- package/dist/vue-ui-stackbar-D4AIFoQT.cjs +0 -6
- package/dist/vue-ui-strip-plot-ClNxSw9M.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BE3UT8U9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-BeYviUrb.cjs +0 -1
- package/dist/vue-ui-thermometer-C6lMWRiF.cjs +0 -1
- package/dist/vue-ui-tiremarks-PGGgsNgS.cjs +0 -1
- package/dist/vue-ui-treemap-BzRVKqXL.cjs +0 -1
- package/dist/vue-ui-waffle-O8pAEf4X.cjs +0 -1
- package/dist/vue-ui-wheel-CnFdB_B1.cjs +0 -1
- package/dist/vue-ui-word-cloud-X4mp280j.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BkXYJDpD.cjs"),ye=require("./useResponsive-BJ7DTGpm.cjs"),Ee=require("./Title-B7ruS8yl.cjs"),ge=require("./usePrinter-DHv-BwME.cjs"),Ie=require("./Tooltip-BqSN71SL.cjs"),ze=require("./DataTable-CwAdpLng.cjs"),Fe=require("./Legend-CR9ydX8N.cjs"),Oe=require("./vue-ui-skeleton-BTN1PKkz.cjs"),Ae=require("./vue-ui-accordion-kr18wKfc.cjs"),me=require("./useNestedProp-C6IvqE-r.cjs"),De=require("./PackageVersion-C1F3QLoY.cjs"),qe=require("./PenAndPaper-DDheVRNG.cjs"),Me=require("./useUserOptionState-BgepsfED.cjs"),Re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be=$=>(e.pushScopeId("data-v-ddb68bc6"),$=$(),e.popScopeId(),$),Ue=["id"],je=["xmlns","viewBox"],Ge=["id"],We=["stop-color"],He=["stop-color"],Ye=["id"],Xe=be(()=>e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2},null,-1)),Je=be(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Ke=[Xe,Je],Qe=["x","y","height","width"],Ze=["height","width"],et=["rx","x","y","height","width","stroke","stroke-width","filter"],tt=["rx","x","y","height","width","fill","stroke","stroke-width","filter"],lt=["x","y","height","width","filter"],at={key:0},ot={key:1},rt={key:2},ut={key:3},nt=["onMouseover","x","y","height","width"],st={key:5,class:"vue-data-ui-watermark"},it=["onClick"],ct={key:0},vt={key:1},dt=["innerHTML"],pt={__name:"vue-ui-waffle",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup($,{expose:ke,emit:we}){const p=$,{vue_ui_waffle:Ce}=n.useConfig(),V=e.computed(()=>!!p.dataset&&p.dataset.length),b=e.ref(n.createUid()),xe=e.ref(null),O=e.ref(!1),A=e.ref(""),B=e.ref(null),j=e.ref(0),S=e.ref(null),G=e.ref(null),W=e.ref(null),H=e.ref(null),Y=e.ref(null),X=e.ref(0),J=e.ref(0),K=e.ref(0),t=e.computed({get:()=>ee(),set:l=>l}),{userOptionsVisible:D,setUserOptionsVisibility:Q,keepUserOptionState:Z}=Me.useUserOptionState({config:t.value});function ee(){const l=me.useNestedProp({userConfig:p.config,defaultConfig:Ce});return l.theme?{...me.useNestedProp({userConfig:n.themes.vue_ui_waffle[l.theme]||p.config,defaultConfig:l}),customPalette:n.themePalettes[l.theme]||n.palette}:l}e.watch(()=>p.config,l=>{t.value=ee(),D.value=!t.value.showOnChartHover,te(),X.value+=1,J.value+=1,K.value+=1},{deep:!0});const E=e.ref(null);function te(){if(n.objectIsEmpty(p.dataset)?n.error({componentName:"VueUiWaffle",type:"dataset"}):p.dataset.forEach((l,o)=>{n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{n.error({componentName:"VueUiWaffle",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=ye.throttle(()=>{const{width:o,height:a}=ye.useResponsive({chart:S.value,title:t.value.style.chart.title.text?G.value:null,legend:t.value.style.chart.legend.show?W.value:null,source:H.value,noTitle:Y.value});k.value.width=o,k.value.height=a,f.value.width=o,f.value.height=a});E.value=new ResizeObserver(l),E.value.observe(S.value.parentNode)}}e.onMounted(()=>{te()}),e.onBeforeUnmount(()=>{E.value&&E.value.disconnect()});const{isPrinting:le,isImaging:ae,generatePdf:oe,generateImage:re}=ge.usePrinter({elementId:`vue-ui-waffle_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-waffle"}),Be=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ue=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),m=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),k=e.ref({height:512,width:512}),f=e.ref({top:0,left:0,height:512,width:512}),w=e.computed(()=>(f.value.width-t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.spaceBetween)/t.value.style.chart.layout.grid.size),C=e.computed(()=>(f.value.height-t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.spaceBetween)/t.value.style.chart.layout.grid.size),T=e.computed(()=>f.value.width/t.value.style.chart.layout.grid.size),I=e.computed(()=>f.value.height/t.value.style.chart.layout.grid.size);function ne(l){const o=t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.size,a=l.reduce((h,U)=>h+U,0),r=l.map(h=>h/a*o),u=r.map(Math.floor),i=r.map(h=>h%1);let d=o-u.reduce((h,U)=>h+U,0);for(;d>0;){let h=i.indexOf(Math.max(...i));u[h]+=1,i[h]=0,d-=1}return u}function se(){return p.dataset.map((l,o)=>({...l,color:n.convertColorToHex(l.color)||ue.value[o]||n.palette[o]||n.palette[o%n.palette.length],uid:`serie_${o}`,absoluteIndex:o}))}const ie=e.computed(()=>se()),c=e.ref(ie.value);e.watch(()=>p.dataset,l=>{c.value=se()},{deep:!0});const Se=e.computed(()=>{const l=c.value.filter((o,a)=>!v.value.includes(o.uid)).map((o,a)=>(o.values||[]).reduce((r,u)=>r+u,0));return ne(l)}),_e=e.computed(()=>{const l=c.value.map((o,a)=>(o.values||[]).reduce((r,u)=>r+u));return ne(l)}),L=e.computed(()=>(p.dataset.forEach((l,o)=>{[null,void 0].includes(l.values)&&n.error({componentName:"VueUiWaffle",type:"datasetSerieAttribute",property:"values (number[])",index:o})}),c.value.filter((l,o)=>!v.value.includes(l.uid)).map((l,o)=>({absoluteIndex:l.absoluteIndex,uid:l.uid,name:l.name,color:l.color,value:(l.values||[]).reduce((a,r)=>a+r,0),absoluteValues:l.values||[],proportion:Se.value[o]})))),Ne=e.computed(()=>c.value.map((l,o)=>({absoluteIndex:l.absoluteIndex,uid:l.uid,name:l.name,color:l.color,value:(l.values||[]).reduce((a,r)=>a+r,0),absoluteValues:l.values||[],proportion:_e.value[o]})));function $e(){return Ne.value.map(l=>({name:l.name,color:l.color,value:l.value,proportion:l.proportion}))}const Te=e.computed(()=>{let l=0;return L.value.map((o,a)=>{const r=l,u=r+o.proportion,i=[];for(let d=Math.floor(r);d<Math.floor(u);d+=1)i.push(d);return l=u,{...o,start:r,rects:i}})}),s=e.computed(()=>Te.value.flatMap((l,o)=>l.rects.map((a,r)=>({isFirst:r===0,isLongEnough:a.length>2,name:l.name,color:l.color,value:l.value,serieIndex:o,absoluteStartIndex:r<3,serieId:l.uid,...l}))).map((l,o)=>({...l,isAbsoluteFirst:o%t.value.style.chart.layout.grid.size===0}))),P=e.computed(()=>{const l=[];for(let o=0;o<t.value.style.chart.layout.grid.size;o+=1)for(let a=0;a<t.value.style.chart.layout.grid.size;a+=1)l.push({isStartOfLine:a===0,position:t.value.style.chart.layout.grid.vertical?o:a,x:(t.value.style.chart.layout.grid.vertical?o:a)*(w.value+t.value.style.chart.layout.grid.spaceBetween),y:(t.value.style.chart.layout.grid.vertical?a:o)*(C.value+t.value.style.chart.layout.grid.spaceBetween)+f.value.top});return l}),v=e.ref([]),x=e.ref(!1),ce=e.ref(null),ve=e.ref(null);function de(l){if(!t.value.useAnimation){v.value.includes(l)?v.value=v.value.filter(u=>u!==l):v.value.length<_.value.length-1&&_.value.length>1&&v.value.push(l);return}const o=ie.value.find(u=>u.uid===l).values.reduce((u,i)=>u+i,0);let r=c.value.find(u=>u.uid===l).values.reduce((u,i)=>u+i,0);if(v.value.includes(l)){let i=function(){r>u?(cancelAnimationFrame(ce.value),c.value=c.value.map((d,h)=>d.uid===l?{...d,values:[u]}:d),x.value=!1):(x.value=!0,r+=u*.025,c.value=c.value.map((d,h)=>d.uid===l?{...d,values:[r]}:d),ce.value=requestAnimationFrame(i))};v.value=v.value.filter(d=>d!==l);const u=o;i()}else if(v.value.length<_.value.length-1&&_.value.length>1){let u=function(){r<.1?(cancelAnimationFrame(ve.value),v.value.push(l),c.value=c.value.map((i,d)=>i.uid===l?{...i,values:[0]}:i),x.value=!1):(x.value=!0,r/=1.5,c.value=c.value.map((i,d)=>i.uid===l?{...i,values:[r]}:i),ve.value=requestAnimationFrame(u))};u()}we("selectLegend",L.value.map(u=>({name:u.name,color:u.color,value:u.value,proportion:u.proportion/Math.pow(t.value.style.chart.layout.grid.size,2)})))}const _=e.computed(()=>c.value.map((l,o)=>({name:l.name,color:l.color||ue[o]||n.palette[o]||n.palette[o%n.palette.length],value:(l.values||[]).reduce((a,r)=>a+r,0),uid:l.uid,shape:"square"})).map((l,o)=>({...l,proportion:l.value/c.value.map(a=>(a.values||[]).reduce((r,u)=>r+u,0)).reduce((a,r)=>a+r,0),opacity:v.value.includes(l.uid)?.5:1,segregate:()=>de(l.uid),isSegregated:v.value.includes(l.uid)}))),Le=e.computed(()=>({cy:"waffle-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),y=e.computed(()=>L.value.map(l=>l.value).reduce((l,o)=>l+o,0)),q=e.ref(null);function Pe(l){if(v.value.length===p.dataset.length)return;const o=s.value[l];q.value={datapoint:o,seriesIndex:o.absoluteIndex,series:c.value,config:t.value},O.value=!0,B.value=s.value[l].serieIndex;const a=t.value.style.chart.tooltip.customFormat;if(n.isFunction(a)&&n.functionReturnsString(()=>a({seriesIndex:s.value[l].absoluteIndex,datapoint:o,series:c.value,config:t.value})))A.value=a({seriesIndex:s.value[l].absoluteIndex,datapoint:o,series:c.value,config:t.value});else{let r="";if(r+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,r+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" rx="1" fill="${o.color}" /></svg>`,t.value.style.chart.tooltip.showValue&&(r+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,seriesIndex:s.value[l].absoluteIndex,series:c.value})}</b>`),t.value.style.chart.tooltip.showPercentage){const u=n.dataLabel({v:o.value/y.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage});t.value.style.chart.tooltip.showValue?r+=`<span>(${u})</span></div>`:r+=`<b>${u}%</b></div>`}A.value=r}}const g=e.computed(()=>{const l=L.value.map(a=>({name:a.name,color:a.color})),o=L.value.map(a=>a.value);return{head:l,body:o}});function M(l){return t.value.useBlurOnHover&&![null,void 0].includes(B.value)&&B.value!==l?`url(#blur_${b.value})`:""}function pe(){e.nextTick(()=>{const l=g.value.head.map((r,u)=>[[r.name],[g.value.body[u]],[isNaN(g.value.body[u]/y.value)?"-":g.value.body[u]/y.value*100]]),o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),a=n.createCsvContent(o);n.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-waffle"})})}const z=e.computed(()=>{const l=[' <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>',n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,y.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:y.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue})),"100%"],o=g.value.head.map((u,i)=>[{color:u.color,name:u.name},n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,g.value.body[i],n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:g.value.body[i],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue})),isNaN(g.value.body[i]/y.value)?"-":n.dataLabel({v:g.value.body[i]/y.value*100,s:"%",r:t.value.table.td.roundingPercentage})]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},shape:"square",breakpoint:t.value.table.responsiveBreakpoint},r=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:o,config:a,colNames:r}}),N=e.ref(!1);function Ve(l){N.value=l,j.value+=1}function he(){m.value.showTable=!m.value.showTable}function fe(){m.value.showTooltip=!m.value.showTooltip}const F=e.ref(!1);function R(){F.value=!F.value}return ke({getData:$e,generatePdf:oe,generateCsv:pe,generateImage:re,toggleTable:he,toggleTooltip:fe,toggleAnnotator:R}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-waffle ${N.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"waffleChart",ref:S,id:`vue-ui-waffle_${b.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:o[3]||(o[3]=()=>e.unref(Q)(!0)),onMouseleave:o[4]||(o[4]=()=>e.unref(Q)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(qe.PenAndPaper,{key:0,parent:S.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:F.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Be.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Y,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:G,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Ee._sfc_main,{key:`title_${X.value}`,config:{title:{cy:"waffle-title",...t.value.style.chart.title},subtitle:{cy:"waffle-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&V.value&&(e.unref(Z)||e.unref(D))?(e.openBlock(),e.createBlock(ge.UserOptions,{ref_key:"details",ref:xe,key:`user_options_${j.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(le),isImaging:e.unref(ae),uid:b.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:N.value,isTooltip:m.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:S.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:F.value,onToggleFullscreen:Ve,onGeneratePdf:e.unref(oe),onGenerateCsv:pe,onGenerateImage:e.unref(re),onToggleTable:he,onToggleTooltip:fe,onToggleAnnotator:R,style:e.normalizeStyle({visibility:e.unref(Z)?e.unref(D)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":N.value,"vue-data-ui-fulscreen--off":!N.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(De._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${b.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(a.color,.05),100-t.value.style.chart.layout.rect.gradientIntensity)},null,8,We),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,He)],8,Ge))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${b.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},Ke,8,Ye)]),t.value.useCustomCells&&s.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(P.value,(a,r)=>(e.openBlock(),e.createElementBlock("foreignObject",{x:a.x,y:a.y,height:C.value<=0?1e-4:C.value,width:w.value<=0?1e-4:w.value,class:"vue-ui-waffle-custom-cell-foreignObject"},[e.renderSlot(l.$slots,"cell",e.normalizeProps(e.guardReactiveProps({cell:{...a,color:s.value[r].color,...s.value[r]},isSelected:[null,void 0].includes(B.value)?!0:s.value[r].serieIndex===B.value})),void 0,!0)],8,Qe))),256)):e.createCommentVNode("",!0),!s.value.length&&!t.value.useCustomCells?(e.openBlock(),e.createElementBlock("rect",{key:1,x:12,y:12,height:f.value.height-24,width:f.value.width-24,rx:3,fill:"none",stroke:"black"},null,8,Ze)):s.value.length&&!t.value.useCustomCells?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:C.value<=0?1e-4:C.value,width:w.value<=0?1e-4:w.value,fill:"white",stroke:t.value.style.chart.layout.rect.stroke,"stroke-width":t.value.style.chart.layout.rect.strokeWidth,filter:M(s.value[r].serieIndex)},null,8,et))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:C.value<=0?1e-4:C.value,width:w.value<=0?1e-4:w.value,fill:t.value.style.chart.layout.rect.useGradient&&t.value.style.chart.layout.rect.gradientIntensity>0?`url(#gradient_${b.value}_${r})`:s.value[r].color,stroke:t.value.style.chart.layout.rect.stroke,"stroke-width":t.value.style.chart.layout.rect.strokeWidth,filter:M(s.value[r].serieIndex)},null,8,tt))),256))],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value.length&&!x.value&&!t.value.style.chart.layout.grid.vertical&&t.value.style.chart.layout.labels.captions.show&&(s.value[r].isFirst&&a.position<t.value.style.chart.layout.grid.size-2||s.value[r].isAbsoluteFirst&&r%t.value.style.chart.layout.grid.size===0&&s.value[r].absoluteStartIndex)?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:a.x+t.value.style.chart.layout.labels.captions.offsetX+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.labels.captions.offsetY+t.value.style.chart.layout.grid.spaceBetween/2,height:I.value<=0?1e-4:I.value,width:T.value*t.value.style.chart.layout.grid.size<=0?1e-4:T.value*t.value.style.chart.layout.grid.size,filter:M(s.value[r].serieIndex)},[e.createElementVNode("div",{class:"vue-ui-waffle-caption",style:e.normalizeStyle(`height: 100%; width: 100%; font-size:${t.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${T.value/12}px;color:${e.unref(n.adaptColorToBackground)(s.value[r].color)};gap:2px`)},[t.value.style.chart.layout.labels.captions.showSerieName?(e.openBlock(),e.createElementBlock("span",at,e.toDisplayString(t.value.style.chart.layout.labels.captions.serieNameAbbreviation?e.unref(n.abbreviate)({source:s.value[r].name,length:t.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize}):s.value[r].name)+": ",1)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.captions.showPercentage?(e.openBlock(),e.createElementBlock("span",ot,e.toDisplayString(e.unref(n.dataLabel)({v:s.value[r].proportion,s:"%",r:t.value.style.chart.layout.labels.captions.roundingPercentage})),1)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",rt," ("+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,s.value[r].value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:s.value[r].value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.captions.roundingValue}),{datapoint:s.value[r],position:a}))+") ",1)):e.createCommentVNode("",!0),!t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",ut,e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,s.value[r].value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:s.value[r].value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.captions.roundingValue}),{datapoint:s.value[r],position:a})),1)):e.createCommentVNode("",!0)],4)],8,lt)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{onMouseover:u=>Pe(r),onMouseleave:o[0]||(o[0]=u=>{O.value=!1,B.value=null}),x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:I.value<=0?1e-4:I.value,width:T.value<=0?1e-4:T.value,fill:"transparent",stroke:"none"},null,40,nt))),256)),e.renderSlot(l.$slots,"svg",{svg:k.value},void 0,!0)],14,je)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",st,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(le)||e.unref(ae)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Oe.default,{key:6,config:{type:"waffle",style:{backgroundColor:t.value.style.chart.backgroundColor,waffle:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:W},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Fe.Legend,{key:`legend_${K.value}`,legendSet:_.value,config:Le.value,onClickMarker:o[1]||(o[1]=({legend:a})=>de(a.uid))},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${v.value.includes(a.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue,isAnimating:x.value}),{datapoint:a}))+" ",1),v.value.includes(a.uid)?(e.openBlock(),e.createElementBlock("span",vt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",ct," ("+e.toDisplayString(isNaN(a.value/y.value)?"-":e.unref(n.dataLabel)({v:a.value/y.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage,isAnimating:x.value}))+") ",1))],12,it)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:_.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:H,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ie._sfc_main,{show:m.value.showTooltip&&O.value&&v.value.length<p.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:S.value,content:A.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function",fontSize:t.value.style.chart.tooltip.fontSize,isFullscreen:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...q.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","fontSize","isFullscreen"]),V.value?(e.openBlock(),e.createBlock(Ae.default,{key:8,hideDetails:"",config:{open:m.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ze.DataTable,{key:`table_${J.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[2]||(o[2]=a=>m.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,dt)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ue))}},ht=Re._export_sfc(pt,[["__scopeId","data-v-ddb68bc6"]]);exports.default=ht;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { computed as d, ref as c, watch as ze, onMounted as Ze, onBeforeUnmount as et, openBlock as s, createElementBlock as n, normalizeClass as Ne, normalizeStyle as X, unref as v, createBlock as z, createCommentVNode as f, createSlots as tt, withCtx as b, renderSlot as g, normalizeProps as U, guardReactiveProps as G, createVNode as Be, createElementVNode as k, Fragment as I, renderList as R, toDisplayString as S, createTextVNode as Ve, nextTick as lt, pushScopeId as at, popScopeId as ot } from "vue";
|
|
2
|
-
import { u as ut, c as st, t as rt, a as nt, p as N, o as it, e as
|
|
2
|
+
import { u as ut, c as st, t as rt, a as nt, p as N, o as it, e as re, g as ct, b as vt, i as j, f as x, X as dt, s as ht, w as pt, G as yt, L as ft, d as gt, x as bt, y as mt, q as wt, r as kt } from "./index-K5uyh1gA.js";
|
|
3
3
|
import { t as xt, u as Ct } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as _t } from "./Title-
|
|
5
|
-
import { u as $t, U as Tt } from "./usePrinter-
|
|
6
|
-
import { _ as It } from "./Tooltip-
|
|
7
|
-
import { D as St } from "./DataTable-
|
|
8
|
-
import { L as Pt } from "./Legend-
|
|
9
|
-
import Lt from "./vue-ui-skeleton-
|
|
10
|
-
import Ot from "./vue-ui-accordion-
|
|
11
|
-
import { u as Me } from "./useNestedProp-
|
|
12
|
-
import { _ as At } from "./PackageVersion-
|
|
13
|
-
import { P as Ft } from "./PenAndPaper-
|
|
4
|
+
import { _ as _t } from "./Title-aMb2ETf7.js";
|
|
5
|
+
import { u as $t, U as Tt } from "./usePrinter-p_ZZlGc9.js";
|
|
6
|
+
import { _ as It } from "./Tooltip-BRZ3DT4p.js";
|
|
7
|
+
import { D as St } from "./DataTable-COkA4Nyz.js";
|
|
8
|
+
import { L as Pt } from "./Legend-bYlSC7I7.js";
|
|
9
|
+
import Lt from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
10
|
+
import Ot from "./vue-ui-accordion-CsJT7Az3.js";
|
|
11
|
+
import { u as Me } from "./useNestedProp-DifqJZAs.js";
|
|
12
|
+
import { _ as At } from "./PackageVersion-Dz3KcTL4.js";
|
|
13
|
+
import { P as Ft } from "./PenAndPaper-BycdTwSP.js";
|
|
14
14
|
import { u as zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const De = (E) => (at("data-v-
|
|
16
|
+
const De = (E) => (at("data-v-ddb68bc6"), E = E(), ot(), E), Bt = ["id"], Vt = ["xmlns", "viewBox"], Mt = ["id"], Dt = ["stop-color"], Ut = ["stop-color"], Gt = ["id"], Rt = /* @__PURE__ */ De(() => /* @__PURE__ */ k("feGaussianBlur", {
|
|
17
17
|
in: "SourceGraphic",
|
|
18
18
|
stdDeviation: 2
|
|
19
19
|
}, null, -1)), jt = /* @__PURE__ */ De(() => /* @__PURE__ */ k("feColorMatrix", {
|
|
@@ -43,10 +43,10 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
43
43
|
},
|
|
44
44
|
emits: ["selectLegend"],
|
|
45
45
|
setup(E, { expose: Ue, emit: Ge }) {
|
|
46
|
-
const m = E, { vue_ui_waffle: Re } = ut(), Y = d(() => !!m.dataset && m.dataset.length), P = c(st()), je = c(null), ee = c(!1), te = c(""), B = c(null),
|
|
46
|
+
const m = E, { vue_ui_waffle: Re } = ut(), Y = d(() => !!m.dataset && m.dataset.length), P = c(st()), je = c(null), ee = c(!1), te = c(""), B = c(null), ne = c(0), V = c(null), ie = c(null), ce = c(null), ve = c(null), de = c(null), he = c(0), pe = c(0), ye = c(0), e = d({
|
|
47
47
|
get: () => be(),
|
|
48
48
|
set: (t) => t
|
|
49
|
-
}), { userOptionsVisible:
|
|
49
|
+
}), { userOptionsVisible: le, setUserOptionsVisibility: fe, keepUserOptionState: ge } = zt({ config: e.value });
|
|
50
50
|
function be() {
|
|
51
51
|
const t = Me({
|
|
52
52
|
userConfig: m.config,
|
|
@@ -61,11 +61,11 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
61
61
|
} : t;
|
|
62
62
|
}
|
|
63
63
|
ze(() => m.config, (t) => {
|
|
64
|
-
e.value = be(), me(),
|
|
64
|
+
e.value = be(), le.value = !e.value.showOnChartHover, me(), he.value += 1, pe.value += 1, ye.value += 1;
|
|
65
65
|
}, { deep: !0 });
|
|
66
66
|
const J = c(null);
|
|
67
67
|
function me() {
|
|
68
|
-
if (it(m.dataset) ?
|
|
68
|
+
if (it(m.dataset) ? re({
|
|
69
69
|
componentName: "VueUiWaffle",
|
|
70
70
|
type: "dataset"
|
|
71
71
|
}) : m.dataset.forEach((t, a) => {
|
|
@@ -73,7 +73,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
73
73
|
datasetObject: t,
|
|
74
74
|
requiredAttributes: ["name", "values"]
|
|
75
75
|
}).forEach((l) => {
|
|
76
|
-
|
|
76
|
+
re({
|
|
77
77
|
componentName: "VueUiWaffle",
|
|
78
78
|
type: "datasetSerieAttribute",
|
|
79
79
|
property: l,
|
|
@@ -84,10 +84,10 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
84
84
|
const t = xt(() => {
|
|
85
85
|
const { width: a, height: l } = Ct({
|
|
86
86
|
chart: V.value,
|
|
87
|
-
title: e.value.style.chart.title.text ?
|
|
88
|
-
legend: e.value.style.chart.legend.show ?
|
|
89
|
-
source:
|
|
90
|
-
noTitle:
|
|
87
|
+
title: e.value.style.chart.title.text ? ie.value : null,
|
|
88
|
+
legend: e.value.style.chart.legend.show ? ce.value : null,
|
|
89
|
+
source: ve.value,
|
|
90
|
+
noTitle: de.value
|
|
91
91
|
});
|
|
92
92
|
L.value.width = a, L.value.height = l, C.value.width = a, C.value.height = l;
|
|
93
93
|
});
|
|
@@ -115,8 +115,8 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
115
115
|
width: 512
|
|
116
116
|
}), O = d(() => (C.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), A = d(() => (C.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), W = d(() => C.value.width / e.value.style.chart.layout.grid.size), K = d(() => C.value.height / e.value.style.chart.layout.grid.size);
|
|
117
117
|
function $e(t) {
|
|
118
|
-
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w,
|
|
119
|
-
let y = a - u.reduce((w,
|
|
118
|
+
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, se) => w + se, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), i = o.map((w) => w % 1);
|
|
119
|
+
let y = a - u.reduce((w, se) => w + se, 0);
|
|
120
120
|
for (; y > 0; ) {
|
|
121
121
|
let w = i.indexOf(Math.max(...i));
|
|
122
122
|
u[w] += 1, i[w] = 0, y -= 1;
|
|
@@ -142,7 +142,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
142
142
|
const t = h.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
|
|
143
143
|
return $e(t);
|
|
144
144
|
}), q = d(() => (m.dataset.forEach((t, a) => {
|
|
145
|
-
[null, void 0].includes(t.values) &&
|
|
145
|
+
[null, void 0].includes(t.values) && re({
|
|
146
146
|
componentName: "VueUiWaffle",
|
|
147
147
|
type: "datasetSerieAttribute",
|
|
148
148
|
property: "values (number[])",
|
|
@@ -268,11 +268,11 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
268
268
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
269
269
|
paddingBottom: 12,
|
|
270
270
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
271
|
-
})), _ = d(() => q.value.map((t) => t.value).reduce((t, a) => t + a, 0)),
|
|
271
|
+
})), _ = d(() => q.value.map((t) => t.value).reduce((t, a) => t + a, 0)), ae = c(null);
|
|
272
272
|
function Ke(t) {
|
|
273
273
|
if (p.value.length === m.dataset.length) return;
|
|
274
274
|
const a = r.value[t];
|
|
275
|
-
|
|
275
|
+
ae.value = {
|
|
276
276
|
datapoint: a,
|
|
277
277
|
seriesIndex: a.absoluteIndex,
|
|
278
278
|
series: h.value,
|
|
@@ -325,7 +325,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
325
325
|
})), a = q.value.map((l) => l.value);
|
|
326
326
|
return { head: t, body: a };
|
|
327
327
|
});
|
|
328
|
-
function
|
|
328
|
+
function oe(t) {
|
|
329
329
|
return e.value.useBlurOnHover && ![null, void 0].includes(B.value) && B.value !== t ? `url(#blur_${P.value})` : "";
|
|
330
330
|
}
|
|
331
331
|
function Oe() {
|
|
@@ -396,7 +396,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
396
396
|
};
|
|
397
397
|
}), D = c(!1);
|
|
398
398
|
function Qe(t) {
|
|
399
|
-
D.value = t,
|
|
399
|
+
D.value = t, ne.value += 1;
|
|
400
400
|
}
|
|
401
401
|
function Ae() {
|
|
402
402
|
T.value.showTable = !T.value.showTable;
|
|
@@ -405,7 +405,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
405
405
|
T.value.showTooltip = !T.value.showTooltip;
|
|
406
406
|
}
|
|
407
407
|
const Z = c(!1);
|
|
408
|
-
function
|
|
408
|
+
function ue() {
|
|
409
409
|
Z.value = !Z.value;
|
|
410
410
|
}
|
|
411
411
|
return Ue({
|
|
@@ -415,7 +415,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
415
415
|
generateImage: Ce,
|
|
416
416
|
toggleTable: Ae,
|
|
417
417
|
toggleTooltip: Fe,
|
|
418
|
-
toggleAnnotator:
|
|
418
|
+
toggleAnnotator: ue
|
|
419
419
|
}), (t, a) => (s(), n("div", {
|
|
420
420
|
class: Ne(`vue-ui-waffle ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
421
421
|
ref_key: "waffleChart",
|
|
@@ -431,23 +431,23 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
431
431
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
432
432
|
color: e.value.style.chart.color,
|
|
433
433
|
active: Z.value,
|
|
434
|
-
onClose:
|
|
434
|
+
onClose: ue
|
|
435
435
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
|
|
436
436
|
Ee.value ? (s(), n("div", {
|
|
437
437
|
key: 1,
|
|
438
438
|
ref_key: "noTitle",
|
|
439
|
-
ref:
|
|
439
|
+
ref: de,
|
|
440
440
|
class: "vue-data-ui-no-title-space",
|
|
441
441
|
style: "height:36px; width: 100%;background:transparent"
|
|
442
442
|
}, null, 512)) : f("", !0),
|
|
443
443
|
e.value.style.chart.title.text ? (s(), n("div", {
|
|
444
444
|
key: 2,
|
|
445
445
|
ref_key: "chartTitle",
|
|
446
|
-
ref:
|
|
446
|
+
ref: ie,
|
|
447
447
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
448
448
|
}, [
|
|
449
449
|
(s(), z(_t, {
|
|
450
|
-
key: `title_${
|
|
450
|
+
key: `title_${he.value}`,
|
|
451
451
|
config: {
|
|
452
452
|
title: {
|
|
453
453
|
cy: "waffle-title",
|
|
@@ -460,10 +460,10 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
460
460
|
}
|
|
461
461
|
}, null, 8, ["config"]))
|
|
462
462
|
], 512)) : f("", !0),
|
|
463
|
-
e.value.userOptions.show && Y.value && (v(ge) || v(
|
|
463
|
+
e.value.userOptions.show && Y.value && (v(ge) || v(le)) ? (s(), z(Tt, {
|
|
464
464
|
ref_key: "details",
|
|
465
465
|
ref: je,
|
|
466
|
-
key: `user_options_${
|
|
466
|
+
key: `user_options_${ne.value}`,
|
|
467
467
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
468
468
|
color: e.value.style.chart.color,
|
|
469
469
|
isPrinting: v(we),
|
|
@@ -488,9 +488,9 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
488
488
|
onGenerateImage: v(Ce),
|
|
489
489
|
onToggleTable: Ae,
|
|
490
490
|
onToggleTooltip: Fe,
|
|
491
|
-
onToggleAnnotator:
|
|
491
|
+
onToggleAnnotator: ue,
|
|
492
492
|
style: X({
|
|
493
|
-
visibility: v(ge) ? v(
|
|
493
|
+
visibility: v(ge) ? v(le) ? "visible" : "hidden" : "visible"
|
|
494
494
|
})
|
|
495
495
|
}, tt({ _: 2 }, [
|
|
496
496
|
t.$slots.optionTooltip ? {
|
|
@@ -607,7 +607,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
607
607
|
fill: "white",
|
|
608
608
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
609
609
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
610
|
-
filter:
|
|
610
|
+
filter: oe(r.value[o].serieIndex)
|
|
611
611
|
}, null, 8, Ht))), 256)),
|
|
612
612
|
(s(!0), n(I, null, R(H.value, (l, o) => (s(), n("rect", {
|
|
613
613
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
@@ -618,7 +618,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
618
618
|
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${P.value}_${o})` : r.value[o].color,
|
|
619
619
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
620
620
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
621
|
-
filter:
|
|
621
|
+
filter: oe(r.value[o].serieIndex)
|
|
622
622
|
}, null, 8, Xt))), 256))
|
|
623
623
|
], 64)) : f("", !0),
|
|
624
624
|
(s(!0), n(I, null, R(H.value, (l, o) => (s(), n(I, null, [
|
|
@@ -628,7 +628,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
628
628
|
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
629
629
|
height: K.value <= 0 ? 1e-4 : K.value,
|
|
630
630
|
width: W.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : W.value * e.value.style.chart.layout.grid.size,
|
|
631
|
-
filter:
|
|
631
|
+
filter: oe(r.value[o].serieIndex)
|
|
632
632
|
}, [
|
|
633
633
|
k("div", {
|
|
634
634
|
class: "vue-ui-waffle-caption",
|
|
@@ -692,10 +692,10 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
692
692
|
}, null, 8, ["config"])),
|
|
693
693
|
k("div", {
|
|
694
694
|
ref_key: "chartLegend",
|
|
695
|
-
ref:
|
|
695
|
+
ref: ce
|
|
696
696
|
}, [
|
|
697
697
|
e.value.style.chart.legend.show ? (s(), z(Pt, {
|
|
698
|
-
key: `legend_${
|
|
698
|
+
key: `legend_${ye.value}`,
|
|
699
699
|
legendSet: M.value,
|
|
700
700
|
config: Je.value,
|
|
701
701
|
onClickMarker: a[1] || (a[1] = ({ legend: l }) => Le(l.uid))
|
|
@@ -729,7 +729,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
729
729
|
t.$slots.source ? (s(), n("div", {
|
|
730
730
|
key: 7,
|
|
731
731
|
ref_key: "source",
|
|
732
|
-
ref:
|
|
732
|
+
ref: ve,
|
|
733
733
|
dir: "auto"
|
|
734
734
|
}, [
|
|
735
735
|
g(t.$slots, "source", {}, void 0, !0)
|
|
@@ -751,10 +751,10 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
751
751
|
isFullscreen: D.value
|
|
752
752
|
}, {
|
|
753
753
|
"tooltip-before": b(() => [
|
|
754
|
-
g(t.$slots, "tooltip-before", U(G({ ...
|
|
754
|
+
g(t.$slots, "tooltip-before", U(G({ ...ae.value })), void 0, !0)
|
|
755
755
|
]),
|
|
756
756
|
"tooltip-after": b(() => [
|
|
757
|
-
g(t.$slots, "tooltip-after", U(G({ ...
|
|
757
|
+
g(t.$slots, "tooltip-after", U(G({ ...ae.value })), void 0, !0)
|
|
758
758
|
]),
|
|
759
759
|
_: 3
|
|
760
760
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen"]),
|
|
@@ -776,7 +776,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
776
776
|
}, {
|
|
777
777
|
content: b(() => [
|
|
778
778
|
(s(), z(St, {
|
|
779
|
-
key: `table_${
|
|
779
|
+
key: `table_${pe.value}`,
|
|
780
780
|
colNames: Q.value.colNames,
|
|
781
781
|
head: Q.value.head,
|
|
782
782
|
body: Q.value.body,
|
|
@@ -800,7 +800,7 @@ const De = (E) => (at("data-v-7fed69c0"), E = E(), ot(), E), Bt = ["id"], Vt = [
|
|
|
800
800
|
}, 8, ["config"])) : f("", !0)
|
|
801
801
|
], 46, Bt));
|
|
802
802
|
}
|
|
803
|
-
}, xl = /* @__PURE__ */ Nt(sl, [["__scopeId", "data-v-
|
|
803
|
+
}, xl = /* @__PURE__ */ Nt(sl, [["__scopeId", "data-v-ddb68bc6"]]);
|
|
804
804
|
export {
|
|
805
805
|
xl as default
|
|
806
806
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BkXYJDpD.cjs"),W=require("./Title-B7ruS8yl.cjs"),M=require("./usePrinter-DHv-BwME.cjs"),E=require("./useResponsive-BJ7DTGpm.cjs"),J=require("./vue-ui-skeleton-BTN1PKkz.cjs"),T=require("./useNestedProp-C6IvqE-r.cjs"),K=require("./PackageVersion-C1F3QLoY.cjs"),Q=require("./PenAndPaper-DDheVRNG.cjs"),Z=require("./useUserOptionState-BgepsfED.cjs"),ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=["id"],ne=["xmlns","viewBox"],oe=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],le=["cx","cy","r","stroke","stroke-width"],ae=["x","y","font-size","fill","font-weight"],re={key:5,class:"vue-data-ui-watermark"},se={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(q,{expose:V}){const c=q,{vue_ui_wheel:U}=s.useConfig(),p=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),y=e.ref(s.createUid()),R=e.ref(null),w=e.ref(0),v=e.ref(null),C=e.ref(null),b=e.ref(null),B=e.ref(null),P=e.ref(0),t=e.computed({get:()=>x(),set:n=>n}),{userOptionsVisible:m,setUserOptionsVisibility:S,keepUserOptionState:_}=Z.useUserOptionState({config:t.value});function x(){const n=T.useNestedProp({userConfig:c.config,defaultConfig:U});return n.theme?{...T.useNestedProp({userConfig:s.themes.vue_ui_wheel[n.theme]||c.config,defaultConfig:n})}:n}e.watch(()=>c.config,n=>{t.value=x(),m.value=!t.value.showOnChartHover,z(),P.value+=1},{deep:!0});const{isPrinting:N,isImaging:O,generatePdf:A,generateImage:I}=M.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),L=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),l=e.ref({size:360,height:360,width:360}),g=e.ref(t.value.style.chart.layout.percentage.fontSize),i=e.computed(()=>({radius:Math.min(l.value.width,l.value.height)*.9/2,centerX:l.value.width/2,centerY:l.value.height/2}));function $(n,r=1){return{x:i.value.centerX+i.value.radius*Math.cos(29.85+n*Math.PI/180)*r,y:i.value.centerY+i.value.radius*Math.sin(29.85+n*Math.PI/180)*r}}const a=e.ref(t.value.style.chart.animation.use?0:c.dataset.percentage||0);e.watch(()=>c.dataset,n=>{t.value.style.chart.animation.use?F(n.percentage):a.value=n.percentage||0},{deep:!0});const d=e.ref(null);e.onMounted(()=>{z()});function z(){if(s.objectIsEmpty(c.dataset)&&s.error({componentName:"VueUiWheel",type:"dataset"}),F(c.dataset.percentage||0),t.value.responsive){const n=E.throttle(()=>{const{width:r,height:o}=E.useResponsive({chart:v.value,title:t.value.style.chart.title.text?C.value:null,source:b.value,noTitle:B.value});l.value.width=r,l.value.height=o,g.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(r,o)});d.value=new ResizeObserver(n),d.value.observe(v.value.parentNode)}}e.onBeforeUnmount(()=>{d.value&&d.value.disconnect()});function F(n){let r=t.value.style.chart.animation.speed;const o=Math.abs(n-a.value)/(r*120);function u(){a.value<n?a.value=Math.min(a.value+o,n):a.value>n&&(a.value=Math.max(a.value-o,n)),a.value!==n&&requestAnimationFrame(u)}u()}const G=e.computed(()=>{const n=[];for(let o=0;o<100;o+=1){const u=a.value>o?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:X,y:j}=$(l.value.size/100*o),{x:D,y:Y}=$(l.value.size/100*o,t.value.style.chart.layout.wheel.ticks.sizeRatio);n.push({x1:X,y1:j,x2:D,y2:Y,color:t.value.style.chart.layout.wheel.ticks.gradient.show?s.shiftHue(u,o/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):u})}return n}),h=e.ref(!1);function H(n){h.value=n,w.value+=1}const f=e.ref(!1);function k(){f.value=!f.value}return V({generatePdf:A,generateImage:I,toggleAnnotator:k}),(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:v,id:y.value,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:r[0]||(r[0]=()=>e.unref(S)(!0)),onMouseleave:r[1]||(r[1]=()=>e.unref(S)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Q.PenAndPaper,{key:0,parent:v.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:k},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:B,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:C,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(W._sfc_main,{key:`title_${P.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(_)||e.unref(m))?(e.openBlock(),e.createBlock(M.UserOptions,{ref_key:"details",ref:R,key:`user_options_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(N),isImaging:e.unref(O),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,chartElement:v.value,onToggleFullscreen:H,onGeneratePdf:e.unref(A),onGenerateImage:e.unref(I),onToggleAnnotator:k,style:e.normalizeStyle({visibility:e.unref(_)?e.unref(m)?"visible":"hidden":"visible"})},e.createSlots({_:2},[n.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,n.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,n.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"2"}:void 0,n.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(n.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","hasAnnotator","isAnnotation","chartElement","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(K._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,(o,u)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2,stroke:o.color,"stroke-width":5/360*Math.min(l.value.width,l.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&u<=a.value})},null,10,oe))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:i.value.centerX,cy:i.value.centerY,r:i.value.radius*.8<=0?1e-4:i.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,le)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:i.value.centerX,y:i.value.centerY+g.value/3,"font-size":g.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(s.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,a.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(s.checkNaN)(a.value),e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,ae)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"svg",{svg:l.value},void 0,!0)],14,ne)):e.createCommentVNode("",!0),n.$slots.watermark?(e.openBlock(),e.createElementBlock("div",re,[e.renderSlot(n.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(N)||e.unref(O)})),void 0,!0)])):e.createCommentVNode("",!0),n.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:b,dir:"auto"},[e.renderSlot(n.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(J.default,{key:7,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],44,te))}},ue=ee._export_sfc(se,[["__scopeId","data-v-149700ac"]]);exports.default=ue;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { computed as p, ref as s, watch as
|
|
2
|
-
import { u as fe, c as ye, t as pe, o as ge, e as me, w as W, X as ke, i as we, v as q, f as be } from "./index-
|
|
3
|
-
import { _ as Ce } from "./Title-
|
|
4
|
-
import { u as _e, U as
|
|
5
|
-
import { t as
|
|
6
|
-
import Ae from "./vue-ui-skeleton-
|
|
7
|
-
import { u as V } from "./useNestedProp-
|
|
8
|
-
import { _ as Ie } from "./PackageVersion-
|
|
9
|
-
import { P as Pe } from "./PenAndPaper-
|
|
1
|
+
import { computed as p, ref as s, watch as H, onMounted as re, onBeforeUnmount as ue, openBlock as r, createElementBlock as v, normalizeStyle as A, unref as l, createBlock as w, createCommentVNode as h, createSlots as ie, withCtx as b, renderSlot as f, normalizeProps as I, guardReactiveProps as P, normalizeClass as Y, createVNode as ce, Fragment as ve, renderList as he, toDisplayString as de } from "vue";
|
|
2
|
+
import { u as fe, c as ye, t as pe, o as ge, e as me, w as W, X as ke, i as we, v as q, f as be } from "./index-K5uyh1gA.js";
|
|
3
|
+
import { _ as Ce } from "./Title-aMb2ETf7.js";
|
|
4
|
+
import { u as _e, U as Oe } from "./usePrinter-p_ZZlGc9.js";
|
|
5
|
+
import { t as $e, u as xe } from "./useResponsive-CoxXLe23.js";
|
|
6
|
+
import Ae from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
7
|
+
import { u as V } from "./useNestedProp-DifqJZAs.js";
|
|
8
|
+
import { _ as Ie } from "./PackageVersion-Dz3KcTL4.js";
|
|
9
|
+
import { P as Pe } from "./PenAndPaper-BycdTwSP.js";
|
|
10
10
|
import { u as Fe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Te = ["cx", "cy", "r", "stroke", "stroke-width"], Ue = ["x", "y", "font-size", "fill", "font-weight"], Le = {
|
|
@@ -29,10 +29,10 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup(J, { expose: K }) {
|
|
32
|
-
const d = J, { vue_ui_wheel: Q } = fe(), C = p(() => !!d.dataset && Object.keys(d.dataset).length), _ = s(ye()), Z = s(null),
|
|
32
|
+
const d = J, { vue_ui_wheel: Q } = fe(), C = p(() => !!d.dataset && Object.keys(d.dataset).length), _ = s(ye()), Z = s(null), F = s(0), y = s(null), S = s(null), z = s(null), M = s(null), N = s(0), e = p({
|
|
33
33
|
get: () => L(),
|
|
34
34
|
set: (t) => t
|
|
35
|
-
}), { userOptionsVisible:
|
|
35
|
+
}), { userOptionsVisible: O, setUserOptionsVisibility: T, keepUserOptionState: U } = Fe({ config: e.value });
|
|
36
36
|
function L() {
|
|
37
37
|
const t = V({
|
|
38
38
|
userConfig: d.config,
|
|
@@ -45,8 +45,8 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
45
45
|
})
|
|
46
46
|
} : t;
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
e.value = L(), j(),
|
|
48
|
+
H(() => d.config, (t) => {
|
|
49
|
+
e.value = L(), O.value = !e.value.showOnChartHover, j(), N.value += 1;
|
|
50
50
|
}, { deep: !0 });
|
|
51
51
|
const { isPrinting: X, isImaging: B, generatePdf: G, generateImage: E } = _e({
|
|
52
52
|
elementId: _.value,
|
|
@@ -67,7 +67,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
const n = s(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
|
|
70
|
-
|
|
70
|
+
H(() => d.dataset, (t) => {
|
|
71
71
|
e.value.style.chart.animation.use ? D(t.percentage) : n.value = t.percentage || 0;
|
|
72
72
|
}, { deep: !0 });
|
|
73
73
|
const g = s(null);
|
|
@@ -79,12 +79,12 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
79
79
|
componentName: "VueUiWheel",
|
|
80
80
|
type: "dataset"
|
|
81
81
|
}), D(d.dataset.percentage || 0), e.value.responsive) {
|
|
82
|
-
const t =
|
|
83
|
-
const { width: u, height: a } =
|
|
82
|
+
const t = $e(() => {
|
|
83
|
+
const { width: u, height: a } = xe({
|
|
84
84
|
chart: y.value,
|
|
85
|
-
title: e.value.style.chart.title.text ?
|
|
86
|
-
source:
|
|
87
|
-
noTitle:
|
|
85
|
+
title: e.value.style.chart.title.text ? S.value : null,
|
|
86
|
+
source: z.value,
|
|
87
|
+
noTitle: M.value
|
|
88
88
|
});
|
|
89
89
|
o.value.width = u, o.value.height = a, $.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(u, a);
|
|
90
90
|
});
|
|
@@ -117,7 +117,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
117
117
|
return t;
|
|
118
118
|
}), m = s(!1);
|
|
119
119
|
function ae(t) {
|
|
120
|
-
m.value = t,
|
|
120
|
+
m.value = t, F.value += 1;
|
|
121
121
|
}
|
|
122
122
|
const k = s(!1);
|
|
123
123
|
function x() {
|
|
@@ -132,7 +132,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
132
132
|
ref_key: "wheelChart",
|
|
133
133
|
ref: y,
|
|
134
134
|
id: _.value,
|
|
135
|
-
style:
|
|
135
|
+
style: A(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
136
136
|
onMouseenter: u[0] || (u[0] = () => l(T)(!0)),
|
|
137
137
|
onMouseleave: u[1] || (u[1] = () => l(T)(!1))
|
|
138
138
|
}, [
|
|
@@ -147,18 +147,18 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
147
147
|
ee.value ? (r(), v("div", {
|
|
148
148
|
key: 1,
|
|
149
149
|
ref_key: "noTitle",
|
|
150
|
-
ref:
|
|
150
|
+
ref: M,
|
|
151
151
|
class: "vue-data-ui-no-title-space",
|
|
152
152
|
style: "height:36px; width: 100%;background:transparent"
|
|
153
153
|
}, null, 512)) : h("", !0),
|
|
154
154
|
e.value.style.chart.title.text ? (r(), v("div", {
|
|
155
155
|
key: 2,
|
|
156
156
|
ref_key: "chartTitle",
|
|
157
|
-
ref:
|
|
157
|
+
ref: S,
|
|
158
158
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
159
159
|
}, [
|
|
160
160
|
(r(), w(Ce, {
|
|
161
|
-
key: `title_${
|
|
161
|
+
key: `title_${N.value}`,
|
|
162
162
|
config: {
|
|
163
163
|
title: {
|
|
164
164
|
cy: "wheel-title",
|
|
@@ -171,10 +171,10 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
171
171
|
}
|
|
172
172
|
}, null, 8, ["config"]))
|
|
173
173
|
], 512)) : h("", !0),
|
|
174
|
-
e.value.userOptions.show && C.value && (l(U) || l(
|
|
174
|
+
e.value.userOptions.show && C.value && (l(U) || l(O)) ? (r(), w(Oe, {
|
|
175
175
|
ref_key: "details",
|
|
176
176
|
ref: Z,
|
|
177
|
-
key: `user_options_${
|
|
177
|
+
key: `user_options_${F.value}`,
|
|
178
178
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
179
179
|
color: e.value.style.chart.color,
|
|
180
180
|
isPrinting: l(X),
|
|
@@ -194,8 +194,8 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
194
194
|
onGeneratePdf: l(G),
|
|
195
195
|
onGenerateImage: l(E),
|
|
196
196
|
onToggleAnnotator: x,
|
|
197
|
-
style:
|
|
198
|
-
visibility: l(U) ? l(
|
|
197
|
+
style: A({
|
|
198
|
+
visibility: l(U) ? l(O) ? "visible" : "hidden" : "visible"
|
|
199
199
|
})
|
|
200
200
|
}, ie({ _: 2 }, [
|
|
201
201
|
t.$slots.optionPdf ? {
|
|
@@ -215,14 +215,14 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
215
215
|
t.$slots.optionFullscreen ? {
|
|
216
216
|
name: "optionFullscreen",
|
|
217
217
|
fn: b(({ toggleFullscreen: a, isFullscreen: i }) => [
|
|
218
|
-
f(t.$slots, "optionFullscreen",
|
|
218
|
+
f(t.$slots, "optionFullscreen", I(P({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
|
|
219
219
|
]),
|
|
220
220
|
key: "2"
|
|
221
221
|
} : void 0,
|
|
222
222
|
t.$slots.optionAnnotator ? {
|
|
223
223
|
name: "optionAnnotator",
|
|
224
224
|
fn: b(({ toggleAnnotator: a, isAnnotator: i }) => [
|
|
225
|
-
f(t.$slots, "optionAnnotator",
|
|
225
|
+
f(t.$slots, "optionAnnotator", I(P({ toggleAnnotator: a, isAnnotator: i })), void 0, !0)
|
|
226
226
|
]),
|
|
227
227
|
key: "3"
|
|
228
228
|
} : void 0
|
|
@@ -230,9 +230,9 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
230
230
|
C.value ? (r(), v("svg", {
|
|
231
231
|
key: 4,
|
|
232
232
|
xmlns: l(ke),
|
|
233
|
-
class:
|
|
233
|
+
class: Y({ "vue-data-ui-fullscreen--on": m.value, "vue-data-ui-fulscreen--off": !m.value }),
|
|
234
234
|
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
235
|
-
style:
|
|
235
|
+
style: A(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
236
236
|
}, [
|
|
237
237
|
ce(Ie),
|
|
238
238
|
(r(!0), v(ve, null, he(te.value, (a, i) => (r(), v("line", {
|
|
@@ -243,7 +243,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
243
243
|
stroke: a.color,
|
|
244
244
|
"stroke-width": 5 / 360 * Math.min(o.value.width, o.value.height),
|
|
245
245
|
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
246
|
-
class:
|
|
246
|
+
class: Y({ "vue-ui-tick-animated": e.value.style.chart.animation.use && i <= n.value })
|
|
247
247
|
}, null, 10, Ne))), 256)),
|
|
248
248
|
e.value.style.chart.layout.innerCircle.show ? (r(), v("circle", {
|
|
249
249
|
key: 0,
|
|
@@ -275,12 +275,12 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
275
275
|
f(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
276
276
|
], 14, Me)) : h("", !0),
|
|
277
277
|
t.$slots.watermark ? (r(), v("div", Le, [
|
|
278
|
-
f(t.$slots, "watermark",
|
|
278
|
+
f(t.$slots, "watermark", I(P({ isPrinting: l(X) || l(B) })), void 0, !0)
|
|
279
279
|
])) : h("", !0),
|
|
280
280
|
t.$slots.source ? (r(), v("div", {
|
|
281
281
|
key: 6,
|
|
282
282
|
ref_key: "source",
|
|
283
|
-
ref:
|
|
283
|
+
ref: z,
|
|
284
284
|
dir: "auto"
|
|
285
285
|
}, [
|
|
286
286
|
f(t.$slots, "source", {}, void 0, !0)
|
|
@@ -299,7 +299,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["x1", "x2", "y1", "y2", "str
|
|
|
299
299
|
}, null, 8, ["config"]))
|
|
300
300
|
], 44, ze));
|
|
301
301
|
}
|
|
302
|
-
}, Je = /* @__PURE__ */ Se(Xe, [["__scopeId", "data-v-
|
|
302
|
+
}, Je = /* @__PURE__ */ Se(Xe, [["__scopeId", "data-v-149700ac"]]);
|
|
303
303
|
export {
|
|
304
304
|
Je as default
|
|
305
305
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BkXYJDpD.cjs"),Se=require("./Title-B7ruS8yl.cjs"),se=require("./usePrinter-DHv-BwME.cjs"),L=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-kr18wKfc.cjs"),Te=require("./DataTable-CwAdpLng.cjs"),Ne=require("./BaseIcon-CfhoS_qC.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ue=require("./useNestedProp-C6IvqE-r.cjs"),Pe=require("./PackageVersion-C1F3QLoY.cjs"),Be=require("./Tooltip-BqSN71SL.cjs"),Fe=require("./PenAndPaper-DDheVRNG.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Oe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Ae={"data-html2canvas-ignore":""},Ve={key:0,class:"reset-wrapper"},_e={key:1,class:"reset-wrapper"},Ee={class:"mono-slicer"},Ie=Oe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Me=["min","max","value"],Re={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(c,{emit:P}){const r=c;e.useCssVars(g=>({"90ad3208":_.value,"4f9eef70":S.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const _=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),f=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=r.max-r.min,p=0,b=(r.value-r.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:r.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Ae,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Ve,[c.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(Ne.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",_e)),e.createElementVNode("div",Ee,[Ie,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Me)])]))}},qe=ie._export_sfc(Re,[["__scopeId","data-v-3fd7d274"]]),Ue=["id"],We=["xmlns","viewBox"],De=["transform"],Ge=["fill","font-weight","x","y","font-size","transform","onMouseover"],Le={key:4,class:"vue-data-ui-watermark"},je=["innerHTML"],He={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const r=c,{vue_ui_word_cloud:_}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),f=e.ref(typeof r.dataset=="string"?s.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:s.checkNaN(o.value)}))),S=e.ref(s.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),j=e.ref(0),E=e.ref(!1),t=e.computed({get:()=>Y(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:H,keepUserOptionState:X}=ze.useUserOptionState({config:t.value});function Y(){const o=ue.useNestedProp({userConfig:r.config,defaultConfig:_});return o.theme?{...ue.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>r.config,o=>{t.value=Y(),I.value=!t.value.showOnChartHover,K(),b.value+=1,j.value+=1,M()},{deep:!0});const J=e.ref(null),C=e.ref(0),u=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),ce=L.throttle(()=>{const{width:o,height:a}=L.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&J.value,source:p.value});u.value.width=o,u.value.height=a,e.nextTick(R)});e.watch(()=>C.value,()=>{de()});const de=L.debounce(()=>{R()},10);function M(){C.value=oe.value}const B=e.ref(null);e.onMounted(()=>{K(),M()});function K(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(ce),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Q,isImaging:Z,generatePdf:ee,generateImage:te}=se.usePrinter({elementId:`wordCloud_${S.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function ve(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function he(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function pe(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let D=!1;for(let V=0;V<Math.max(a,l)/2&&!D;V+=t.value.style.chart.words.packingWeight)for(let G=0;G<360&&!D;G+=t.value.style.chart.words.packingWeight){const re=G*Math.PI/180,be=v+V*Math.cos(re)-x.width/2,Ce=w+V*Math.sin(re)-x.height/2,m={...x,x:be,y:Ce},ke=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,we=i.some(xe=>he(m,xe));ke&&!we&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>r.dataset,R,{immediate:!0});const oe=e.computed(()=>Math.min(...f.value.map(o=>o.value))),me=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function R(){const o=[...f.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=C.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(u.value.maxFontSize-u.value.minFontSize)+u.value.minFontSize,x=ve(n.name,w);return{...n,id:s.createUid(),fontSize:w,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||s.palette[v]||s.palette[v%s.palette.length]:t.value.style.chart.words.color}});T.value=pe(i,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function le(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:F.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),O=e.ref(!1);function fe(o){O.value=o,$.value+=1}function ge(){return T.value}function ae(){d.value.showTable=!d.value.showTable}function ne(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function q(){A.value=!A.value}P({getData:ge,generateCsv:le,generatePdf:ee,generateImage:te,toggleTable:ae,toggleTooltip:ne,toggleAnnotator:q});const k=e.ref(null),N=e.ref(!1),U=e.ref(""),W=e.ref(null);function ye(o){if(!d.value.showTooltip)return;k.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(U.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;U.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}E.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${S.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(H)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(H)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:q},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Se._sfc_main,{key:`title_${b.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value&&(e.unref(X)||e.unref(I))?(e.openBlock(),e.createBlock(se.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Q),isImaging:e.unref(Z),uid:S.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:O.value,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(ee),onGenerateCsv:le,onGenerateImage:e.unref(te),onToggleTable:ae,onToggleTooltip:ne,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(I)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Pe._sfc_main),e.createElementVNode("g",{transform:`translate(${(u.value.width<=0?10:u.value.width)/2}, ${(u.value.height<=0?10:u.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:i,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":k.value&&k.value===l.id&&d.value.showTooltip,"word-not-selected":k.value&&k.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>ye(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,E.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Ge))]))),256))],8,De),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,We)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Le,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Q)||e.unref(Z)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:d.value.showTooltip&&E.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:h.value,content:U.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:J,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(qe,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:oe.value,max:me.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:M},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock($e.default,{key:6,hideDetails:"",config:{open:d.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Te.DataTable,{key:`table_${j.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,je)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],44,Ue))}},Xe=ie._export_sfc(He,[["__scopeId","data-v-491de240"]]);exports.default=Xe;
|