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"),u=require("./index-BkXYJDpD.cjs"),re=require("./useNestedProp-C6IvqE-r.cjs"),K=require("./usePrinter-DHv-BwME.cjs"),ie=require("./vue-ui-skeleton-BTN1PKkz.cjs"),ue=require("./useUserOptionState-BgepsfED.cjs"),se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),de=["id"],ve=["height"],ce=["data-cell","height"],pe={key:2,ref:"source",dir:"auto"},fe={__name:"vue-ui-carousel-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(p,{expose:Q}){const l=p,{vue_ui_carousel_table:W}=u.useConfig(),S=e.ref(u.createUid()),I=e.ref(!1),g=e.ref(!!l.dataset);e.onMounted(()=>{P()});function P(){u.objectIsEmpty(l.dataset)?u.error({componentName:"VueUiCarouselTable",type:"dataset"}):((!l.dataset.head||u.objectIsEmpty(l.dataset.head))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"head"}),g.value=!1),(!l.dataset.body||u.objectIsEmpty(l.dataset.body))&&(u.error({componentName:"VueUiCarouselTable",type:"datasetAttribute",property:"body"}),g.value=!1))}const t=e.computed({get:()=>R(),set:o=>o}),{userOptionsVisible:A,setUserOptionsVisibility:F,keepUserOptionState:N}=ue.useUserOptionState({config:t.value});function R(){return re.useNestedProp({userConfig:l.config,defaultConfig:W})}e.watch(()=>l.config,o=>{t.value=R(),A.value=!t.value.showOnChartHover,P()},{deep:!0}),e.watch(()=>l.dataset,o=>{O()},{deep:!0});const{isPrinting:V,isImaging:U,generatePdf:Y,generateImage:M}=K.usePrinter({elementId:`carousel-table_${S.value}`,fileName:t.value.caption.text||"vue-ui-carousel-table"}),s=e.ref({showAnimation:t.value.animation.use}),i=e.ref(null),H=e.ref(null),b=e.ref(null),y=e.ref(null),k=e.ref(0),T=e.ref(0),w=e.ref(!1),C=e.ref(null),v=e.ref(null),$=e.ref(0);function O(){C.value&&(v.value={elements:C.value.getElementsByTagName("tr"),heights:Array.from(C.value.getElementsByTagName("tr")).map(o=>o.getBoundingClientRect().height)})}e.onMounted(O);const Z=e.computed(()=>!v.value||!v.value.heights.length?0:Math.max(...v.value.heights)+k.value+T.value),_=e.computed(()=>l.dataset.body?t.value.tbody.tr.visible<=l.dataset.body.length?t.value.tbody.tr.visible:l.dataset.body.length:0),ee=e.computed(()=>(t.value.tbody.tr.height+t.value.tbody.tr.td.padding.top+t.value.tbody.tr.td.padding.bottom+t.value.tbody.tr.border.size*2)*_.value+k.value+T.value),x=e.ref(0),B=e.ref(null),f=e.ref(0),m=e.ref(!1),q=e.ref(0);e.onMounted(()=>{b.value&&(k.value=b.value.getBoundingClientRect().height),y.value&&(T.value=y.value.getBoundingClientRect().height),s.value.showAnimation&&v.value&&L()}),e.onMounted(()=>{if(i.value){let a=function(){const r=o.getBoundingClientRect().bottom;n.forEach(d=>{d.getBoundingClientRect().top<r?d.style.visibility="hidden":d.style.visibility="visible"})};const o=i.value.querySelector("thead"),n=Array.from(C.value.querySelectorAll("tr"));i.value.addEventListener("scroll",a),a(),e.onBeforeUnmount(()=>{i.value.removeEventListener("scroll",a)})}});function te(o){I.value=o,q.value+=1}function L(){!B.value&&!m.value&&(B.value=requestAnimationFrame(D))}function oe(){if(!i.value)return!1;const{scrollTop:o,scrollHeight:n,clientHeight:a}=i.value;return o+a>=n}function D(o){if(m.value)return;f.value||(f.value=o),o-f.value>=t.value.animation.speedMs&&(x.value+=v.value.heights[$.value],(oe()||$.value>=v.value.heights.length)&&(x.value=0,$.value=-1),$.value+=1,i.value&&i.value.scrollTo({top:x.value,behavior:"smooth"}),f.value=o),B.value=requestAnimationFrame(D)}function c(){m.value=!0,cancelAnimationFrame(B.value),B.value=null}e.onBeforeUnmount(c);function h(){!m.value||!s.value.showAnimation||(m.value=!1,f.value=0,L())}function ne(){t.value.animation.pauseOnHover&&c()}const E=e.ref(null);function ae(){c(),clearTimeout(E.value)}function G(){clearTimeout(E.value),E.value=setTimeout(h,1e3)}e.watch(()=>t.value.animation.use,o=>{o?(s.value.showAnimation=!0,h()):(s.value.showAnimation=!1,c())});const le=e.computed(()=>t.value.responsiveBreakpoint);e.onMounted(()=>{const o=new ResizeObserver(n=>{n.forEach(a=>{w.value=a.contentRect.width<le.value}),k.value=b.value?b.value.getBoundingClientRect().height:0,T.value=y.value?y.value.getBoundingClientRect().height:0,$.value=0,e.nextTick(()=>{c(),f.value=0,x.value=0,O(),h()})});i.value&&o.observe(i.value)});function j(){Y()}function X(){s.value.showAnimation=!s.value.showAnimation,s.value.showAnimation?h():c()}function J(){e.nextTick(()=>{const o=l.dataset.head.map((r,d)=>[[l.dataset.body[d]]]),n=[[t.value.caption.text],[l.dataset.head.map(r=>[r])]].concat(o),a=u.createCsvContent(n);u.downloadCsv({csvContent:a,title:t.value.caption.text||"vue-ui-carousel-table"})})}return Q({pauseAnimation:c,resumeAnimation:h,toggleAnimation:X,generateCsv:J,generatePdf:j,generateImage:M}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{style:{position:"relative",overflow:"visible"},ref_key:"chartContainer",ref:H,onMouseenter:n[5]||(n[5]=()=>e.unref(F)(!0)),onMouseleave:n[6]||(n[6]=()=>e.unref(F)(!1))},[e.createElementVNode("div",{ref_key:"tableContainer",ref:i,id:`carousel-table_${S.value}`,style:e.normalizeStyle({height:e.unref(V)||e.unref(U)?"auto":`${Math.max(ee.value,Z.value)}px`,containerType:"inline-size",position:"relative",overflow:"auto",fontFamily:t.value.fontFamily}),class:e.normalizeClass({"vue-ui-responsive":w.value,"is-playing":t.value.scrollbar.hide||!m.value&&t.value.scrollbar.showOnlyOnHover}),onMouseover:n[0]||(n[0]=a=>ne()),onMouseleave:n[1]||(n[1]=a=>h()),onTouchstart:n[2]||(n[2]=a=>ae()),onTouchend:n[3]||(n[3]=a=>G()),onTouchcancel:n[4]||(n[4]=a=>G())},[g.value?(e.openBlock(),e.createElementBlock("table",{key:0,class:"vue-data-ui-carousel-table",style:e.normalizeStyle({...t.value.style,border:`${t.value.border.size}px solid ${t.value.border.color}`,width:"100%",borderCollapse:"collapse",backgroundColor:t.value.tbody.backgroundColor})},[e.createElementVNode("caption",{ref_key:"caption",ref:b,class:"vue-data-ui-carousel-table-caption",style:e.normalizeStyle({...t.value.caption.style,fontFamily:"inherit",position:"sticky",top:0,zIndex:2,paddingTop:t.value.caption.padding.top+"px",paddingRight:t.value.caption.padding.right+"px",paddingBottom:t.value.caption.padding.bottom+"px",paddingLeft:t.value.caption.padding.left+"px",boxShadow:w.value?t.value.thead.tr.style.boxShadow:"none",minHeight:"36px",display:o.$slots.caption||t.value.caption.text||t.value.userOptions.show?"":"none"})},[e.createTextVNode(e.toDisplayString(t.value.caption.text&&!o.$slots.caption?t.value.caption.text:"")+" ",1),e.renderSlot(o.$slots,"caption",{},void 0,!0)],4),e.createElementVNode("thead",{style:e.normalizeStyle({...t.value.thead.style,position:"sticky",top:`${o.$slots.caption||t.value.caption.text||t.value.userOptions.show?k.value:0}px`,zIndex:1})},[e.createElementVNode("tr",{ref_key:"tableRow",ref:y,role:"row",style:e.normalizeStyle({...t.value.thead.tr.style,border:t.value.thead.tr.border.size?`${t.value.thead.tr.border.size}px solid ${t.value.thead.tr.border.color}`:"none",boxShadow:w.value?"none":t.value.thead.tr.style.boxShadow}),height:`${t.value.thead.tr.height}px`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.dataset.head,(a,r)=>(e.openBlock(),e.createElementBlock("th",{role:"cell",key:`th_${r}`,style:e.normalizeStyle({...t.value.thead.tr.th.style,border:t.value.thead.tr.th.border.size?`${t.value.thead.tr.th.border.size}px solid ${t.value.thead.tr.th.border.color}`:"none",paddingTop:t.value.thead.tr.th.padding.top+"px",paddingRight:t.value.thead.tr.th.padding.right+"px",paddingBottom:t.value.thead.tr.th.padding.bottom+"px",paddingLeft:t.value.thead.tr.th.padding.left+"px"})},[e.createTextVNode(e.toDisplayString(o.$slots.th?"":a)+" ",1),e.renderSlot(o.$slots,"th",e.normalizeProps(e.guardReactiveProps({th:a,colIndex:r})),void 0,!0)],4))),128))],12,ve)],4),p.dataset.body&&p.dataset.head?(e.openBlock(),e.createElementBlock("tbody",{key:0,ref_key:"tbody",ref:C,style:e.normalizeStyle({clipPath:"inset(0,0,0,0)"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.dataset.body,(a,r)=>(e.openBlock(),e.createElementBlock("tr",{style:e.normalizeStyle({...t.value.tbody.tr.style,border:`${t.value.tbody.tr.border.size}px solid ${t.value.tbody.tr.border.color}`,verticalAlign:"middle"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(d,z)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":p.dataset.head[z]||"",style:e.normalizeStyle({...t.value.tbody.tr.td.style,border:`${t.value.tbody.tr.td.border.size}px solid ${t.value.tbody.tr.td.border.color}`,backgroundColor:e.unref(u.setOpacity)(t.value.tbody.tr.td.style.backgroundColor,r%2===0&&t.value.tbody.tr.td.alternateColor?t.value.tbody.tr.td.alternateOpacity*100:100),paddingTop:t.value.tbody.tr.td.padding.top+"px",paddingRight:t.value.tbody.tr.td.padding.right+"px",paddingBottom:t.value.tbody.tr.td.padding.bottom+"px",paddingLeft:t.value.tbody.tr.td.padding.left+"px",verticalAlign:"middle"}),height:`${t.value.tbody.tr.height}px`},[e.createTextVNode(e.toDisplayString(o.$slots.td?"":d)+" ",1),e.renderSlot(o.$slots,"td",e.normalizeProps(e.guardReactiveProps({td:d,rowIndex:r,colIndex:z})),void 0,!0)],12,ce))),256))],4))),256))],4)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0)],46,de),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ie.default,{key:0,config:{type:"table"}})),t.value.userOptions.show&&g.value&&(e.unref(N)||e.unref(A))?(e.openBlock(),e.createBlock(K.UserOptions,{ref:"details",key:`user_option_${q.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isPrinting:e.unref(V),isImaging:e.unref(U),uid:S.value,hasTooltip:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:!1,hasLabel:!1,hasAnimation:t.value.userOptions.buttons.animation,isAnimation:!s.value.showAnimation,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:I.value,chartElement:H.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},zIndex:3,offsetX:12,onGeneratePdf:j,onGenerateCsv:J,onGenerateImage:e.unref(M),onToggleAnimation:X,onToggleFullscreen:te,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(A)?"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.optionAnimation?{name:"optionAnimation",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionAnimation",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasAnimation","isAnimation","hasFullscreen","isFullscreen","chartElement","position","titles","onGenerateImage","style"])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",pe,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],544))}},me=se._export_sfc(fe,[["__scopeId","data-v-9d3c0699"]]);exports.default=me;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { useCssVars as Ye, computed as m, ref as T, watch as qe, onMounted as He, openBlock as a, createElementBlock as o, normalizeClass as k, normalizeStyle as h, unref as n, createBlock as K, createCommentVNode as f, createSlots as We, withCtx as X, renderSlot as I, normalizeProps as
|
|
2
|
-
import { u as Je, c as Qe, t as Ze, a as et, p as P, b as tt, g as
|
|
3
|
-
import { u as nt, U as rt } from "./usePrinter-
|
|
4
|
-
import it from "./vue-ui-skeleton-
|
|
5
|
-
import ct from "./BaseIcon-
|
|
6
|
-
import dt from "./vue-ui-accordion-
|
|
7
|
-
import { u as Se } from "./useNestedProp-
|
|
8
|
-
import { _ as vt } from "./PackageVersion-
|
|
9
|
-
import { P as yt } from "./PenAndPaper-
|
|
1
|
+
import { useCssVars as Ye, computed as m, ref as T, watch as qe, onMounted as He, openBlock as a, createElementBlock as o, normalizeClass as k, normalizeStyle as h, unref as n, createBlock as K, createCommentVNode as f, createSlots as We, withCtx as X, renderSlot as I, normalizeProps as ue, guardReactiveProps as ne, createVNode as $e, toDisplayString as c, createElementVNode as s, Fragment as g, renderList as _, createTextVNode as J, withKeys as Ke, nextTick as Ce } from "vue";
|
|
2
|
+
import { u as Je, c as Qe, t as Ze, a as et, p as P, b as tt, g as re, e as Q, d as ie, o as lt, X as at, s as S, w as Te, i as G, f as z, G as ze, m as Ne, j as ot, k as V, n as H, q as st, r as ut } from "./index-K5uyh1gA.js";
|
|
3
|
+
import { u as nt, U as rt } from "./usePrinter-p_ZZlGc9.js";
|
|
4
|
+
import it from "./vue-ui-skeleton-BhA2lIT6.js";
|
|
5
|
+
import ct from "./BaseIcon-zmxwsaLW.js";
|
|
6
|
+
import dt from "./vue-ui-accordion-CsJT7Az3.js";
|
|
7
|
+
import { u as Se } from "./useNestedProp-DifqJZAs.js";
|
|
8
|
+
import { _ as vt } from "./PackageVersion-Dz3KcTL4.js";
|
|
9
|
+
import { P as yt } from "./PenAndPaper-BycdTwSP.js";
|
|
10
10
|
import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const bt = ["id"], pt = {
|
|
@@ -14,7 +14,7 @@ const bt = ["id"], pt = {
|
|
|
14
14
|
ref: "noTitle",
|
|
15
15
|
class: "vue-data-ui-no-title-space",
|
|
16
16
|
style: "height:36px; width: 100%;background:transparent"
|
|
17
|
-
}, gt = ["xmlns", "viewBox"], _t = { key: 0 }, xt = ["fill", "font-weight", "font-size", "x", "y"], mt = ["fill", "font-weight", "font-size", "x", "y"], kt = ["id"], wt = ["stop-color"], $t = ["stop-color"], Ct = ["id"], Tt = ["stop-color"], zt = ["stop-color"], Nt = ["id"], St = ["stop-color"], Ft = ["stop-color"], Lt = ["stop-color"], It = ["id"], Pt = ["stop-color"], Vt = ["stop-color"],
|
|
17
|
+
}, gt = ["xmlns", "viewBox"], _t = { key: 0 }, xt = ["fill", "font-weight", "font-size", "x", "y"], mt = ["fill", "font-weight", "font-size", "x", "y"], kt = ["id"], wt = ["stop-color"], $t = ["stop-color"], Ct = ["id"], Tt = ["stop-color"], zt = ["stop-color"], Nt = ["id"], St = ["stop-color"], Ft = ["stop-color"], Lt = ["stop-color"], It = ["id"], Pt = ["stop-color"], Vt = ["stop-color"], Ot = ["stop-color"], Mt = ["id"], Rt = ["stop-color"], Bt = ["stop-color"], jt = ["stop-color"], At = { key: 1 }, Xt = ["x", "y", "font-size", "font-weight", "fill"], Gt = ["x", "y", "font-size", "font-weight", "fill"], Et = ["d", "stroke"], Ut = ["cx", "cy", "r", "fill"], Dt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], Yt = { key: 2 }, qt = ["x", "y", "font-size", "fill", "onClick"], Ht = { key: 0 }, Wt = ["x", "y", "fill", "font-size", "font-weight"], Kt = ["x", "y", "height", "width", "fill", "rx", "onClick"], Jt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], Qt = { key: 3 }, Zt = ["x", "y", "fill", "font-size", "onClick"], el = ["d", "stroke"], tl = ["fill", "cx", "cy", "r", "onClick"], ll = { key: 4 }, al = ["x", "y", "font-size", "font-weight", "fill"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], sl = ["y", "height", "width"], ul = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, nl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, rl = {
|
|
18
18
|
viewBox: "0 0 20 20",
|
|
19
19
|
height: "16",
|
|
20
20
|
width: "16"
|
|
@@ -29,7 +29,7 @@ const bt = ["id"], pt = {
|
|
|
29
29
|
key: 6,
|
|
30
30
|
ref: "source",
|
|
31
31
|
dir: "auto"
|
|
32
|
-
}, Vl = { style: { "padding-top": "36px", position: "relative" } },
|
|
32
|
+
}, Vl = { style: { "padding-top": "36px", position: "relative" } }, Ol = { class: "vue-ui-data-table" }, Ml = { key: 0 }, Rl = ["data-cell"], Bl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, jl = { key: 0 }, Al = { key: 1 }, Xl = ["data-cell"], Gl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, El = { key: 0 }, Ul = { key: 1 }, Dl = ["data-cell"], Yl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ql = { key: 0 }, Hl = { key: 1 }, Wl = ["data-cell"], Kl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Jl = { key: 0 }, Ql = { key: 1 }, Zl = ["data-cell"], ea = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ta = { key: 0 }, la = { key: 1 }, aa = ["data-cell"], oa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, sa = { key: 0 }, ua = { key: 1 }, na = ["data-cell"], ra = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ia = { key: 0 }, ca = { key: 1 }, da = ["data-cell"], va = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ya = ["data-cell"], ha = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, fa = ["data-cell"], ba = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, pa = ["data-cell"], ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, _a = ["data-cell"], xa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ma = {
|
|
33
33
|
__name: "vue-ui-chestnut",
|
|
34
34
|
props: {
|
|
35
35
|
config: {
|
|
@@ -47,36 +47,36 @@ const bt = ["id"], pt = {
|
|
|
47
47
|
},
|
|
48
48
|
emits: ["selectRoot", "selectBranch", "selectNut"],
|
|
49
49
|
setup(Fe, { expose: Le, emit: E }) {
|
|
50
|
-
const
|
|
50
|
+
const O = Fe;
|
|
51
51
|
Ye((l) => ({
|
|
52
|
-
|
|
52
|
+
"3173d692": l.tdo
|
|
53
53
|
}));
|
|
54
|
-
const { vue_ui_chestnut: Ie } = Je(), D = m(() => !!
|
|
54
|
+
const { vue_ui_chestnut: Ie } = Je(), D = m(() => !!O.dataset && O.dataset.length), w = T(Qe()), Z = T(null), Pe = T(null), ce = T(0), e = m({
|
|
55
55
|
get: () => ye(),
|
|
56
56
|
set: (l) => l
|
|
57
|
-
}), { userOptionsVisible:
|
|
57
|
+
}), { userOptionsVisible: ee, setUserOptionsVisibility: de, keepUserOptionState: ve } = ht({ config: e.value });
|
|
58
58
|
function ye() {
|
|
59
59
|
const l = Se({
|
|
60
|
-
userConfig:
|
|
60
|
+
userConfig: O.config,
|
|
61
61
|
defaultConfig: Ie
|
|
62
62
|
});
|
|
63
63
|
return l.theme ? {
|
|
64
64
|
...Se({
|
|
65
|
-
userConfig: Ze.vue_ui_chestnut[l.theme] ||
|
|
65
|
+
userConfig: Ze.vue_ui_chestnut[l.theme] || O.config,
|
|
66
66
|
defaultConfig: l
|
|
67
67
|
}),
|
|
68
68
|
customPalette: et[l.theme] || P
|
|
69
69
|
} : l;
|
|
70
70
|
}
|
|
71
|
-
qe(() =>
|
|
72
|
-
e.value = ye(), me();
|
|
71
|
+
qe(() => O.config, (l) => {
|
|
72
|
+
e.value = ye(), ee.value = !e.value.showOnChartHover, me();
|
|
73
73
|
}, { deep: !0 });
|
|
74
74
|
const { isPrinting: he, isImaging: fe, generatePdf: be, generateImage: pe } = nt({
|
|
75
75
|
elementId: `vue-ui-chestnut_${w.value}`,
|
|
76
76
|
fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut"
|
|
77
|
-
}), Ve = m(() => e.value.userOptions.show),
|
|
77
|
+
}), Ve = m(() => e.value.userOptions.show), te = m(() => tt(e.value.customPalette)), Y = T({
|
|
78
78
|
showTable: e.value.table.show
|
|
79
|
-
}),
|
|
79
|
+
}), le = T(null), ge = T(!1), Oe = m(() => e.value.table.responsiveBreakpoint), r = T({
|
|
80
80
|
gap: 6,
|
|
81
81
|
padding: {
|
|
82
82
|
top: 102,
|
|
@@ -96,8 +96,8 @@ const bt = ["id"], pt = {
|
|
|
96
96
|
width: r.value.width - (r.value.padding.left + r.value.padding.right),
|
|
97
97
|
height: r.value.height - (r.value.padding.top + r.value.padding.bottom),
|
|
98
98
|
seedX: r.value.padding.left + 64
|
|
99
|
-
})),
|
|
100
|
-
|
|
99
|
+
})), M = m(() => D.value ? O.dataset.flatMap((l) => (l.branches || []).map((i) => i.value || 0)).reduce((l, i) => l + i, 0) : 0), N = m(() => (O.dataset.forEach((l, i) => {
|
|
100
|
+
re({
|
|
101
101
|
datasetObject: l,
|
|
102
102
|
requiredAttributes: ["name", "branches"]
|
|
103
103
|
}).forEach((t) => {
|
|
@@ -108,7 +108,7 @@ const bt = ["id"], pt = {
|
|
|
108
108
|
index: i
|
|
109
109
|
});
|
|
110
110
|
}), l.branches && l.branches.forEach((t, u) => {
|
|
111
|
-
|
|
111
|
+
re({
|
|
112
112
|
datasetObject: t,
|
|
113
113
|
requiredAttributes: ["name", "value"]
|
|
114
114
|
}).forEach((b) => {
|
|
@@ -119,7 +119,7 @@ const bt = ["id"], pt = {
|
|
|
119
119
|
index: `${i} - ${u}`
|
|
120
120
|
});
|
|
121
121
|
}), t.breakdown && t.breakdown.forEach((b, y) => {
|
|
122
|
-
|
|
122
|
+
re({
|
|
123
123
|
datasetObject: b,
|
|
124
124
|
requiredAttributes: ["name", "value"]
|
|
125
125
|
}).forEach((p) => {
|
|
@@ -132,11 +132,11 @@ const bt = ["id"], pt = {
|
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
|
-
}),
|
|
135
|
+
}), O.dataset.map((l, i) => {
|
|
136
136
|
const t = (l.branches || []).map((u) => u.value || 0).reduce((u, b) => u + b, 0);
|
|
137
137
|
return {
|
|
138
138
|
...l,
|
|
139
|
-
color:
|
|
139
|
+
color: ie(l.color) || te.value[i] || P[i] || P[i % P.length],
|
|
140
140
|
id: l.id || `root_${i}_${w.value}`,
|
|
141
141
|
type: "root",
|
|
142
142
|
total: t,
|
|
@@ -145,7 +145,7 @@ const bt = ["id"], pt = {
|
|
|
145
145
|
...u,
|
|
146
146
|
rootName: l.name,
|
|
147
147
|
rootIndex: i,
|
|
148
|
-
color:
|
|
148
|
+
color: ie(l.color) || te.value[i] || P[i] || P[i % P.length],
|
|
149
149
|
value: u.value >= 0 ? u.value : 0,
|
|
150
150
|
id: u.id || `branch_${i}_${b}_${w.value}`,
|
|
151
151
|
proportionToRoot: u.value / t,
|
|
@@ -154,14 +154,14 @@ const bt = ["id"], pt = {
|
|
|
154
154
|
table: {
|
|
155
155
|
rootName: l.name,
|
|
156
156
|
rootValue: t,
|
|
157
|
-
rootToTotal: t /
|
|
157
|
+
rootToTotal: t / M.value,
|
|
158
158
|
branchName: u.name,
|
|
159
159
|
branchValue: u.value,
|
|
160
|
-
branchToTotal: u.value /
|
|
160
|
+
branchToTotal: u.value / M.value,
|
|
161
161
|
branchToRoot: u.value / t,
|
|
162
162
|
nutName: y.name,
|
|
163
163
|
nutValue: y.value,
|
|
164
|
-
nutToTotal: y.value /
|
|
164
|
+
nutToTotal: y.value / M.value,
|
|
165
165
|
nutToRoot: y.value / t,
|
|
166
166
|
nutToBranch: y.value / u.value
|
|
167
167
|
},
|
|
@@ -172,16 +172,16 @@ const bt = ["id"], pt = {
|
|
|
172
172
|
branchTotal: u.value >= 0 ? u.value : 0,
|
|
173
173
|
proportionToBranch: y.value / u.value,
|
|
174
174
|
proportionToRoot: y.value / t,
|
|
175
|
-
proportionToTree: y.value /
|
|
175
|
+
proportionToTree: y.value / M.value,
|
|
176
176
|
rootIndex: i,
|
|
177
177
|
id: y.id || `nut_${i}_${b}_${p}_${w.value}`,
|
|
178
|
-
color:
|
|
178
|
+
color: ie(y.color) || te.value[p] || P[p] || P[p % P.length],
|
|
179
179
|
value: y.value >= 0 ? y.value : 0
|
|
180
180
|
}))
|
|
181
181
|
}))
|
|
182
182
|
};
|
|
183
183
|
})));
|
|
184
|
-
function
|
|
184
|
+
function Me() {
|
|
185
185
|
return N.value;
|
|
186
186
|
}
|
|
187
187
|
const Re = m(() => N.value.flatMap((l) => l.branches).length), Be = m(() => Math.max(...N.value.map((l) => l.branches.map((i) => i.value).reduce((i, t) => i + t, 0)))), je = m(() => Math.max(...N.value.flatMap((l) => l.branches.map((i) => i.value)))), _e = m(() => 256 + r.value.padding.left), B = m(() => N.value.sort((l, i) => i.total - l.total).map((l, i) => {
|
|
@@ -199,7 +199,7 @@ const bt = ["id"], pt = {
|
|
|
199
199
|
x1: _e.value,
|
|
200
200
|
x2: 384 * l.value / je.value * Ae.value + _e.value
|
|
201
201
|
})));
|
|
202
|
-
function
|
|
202
|
+
function ae(l) {
|
|
203
203
|
const i = B.value.find((t) => t.rootIndex === l.rootIndex);
|
|
204
204
|
return { x: i.x, y: i.y, r: i.r };
|
|
205
205
|
}
|
|
@@ -224,7 +224,7 @@ const bt = ["id"], pt = {
|
|
|
224
224
|
function A() {
|
|
225
225
|
d.value = null, R.value = null, E("selectNut", null);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function oe(l) {
|
|
228
228
|
x.value && x.value.id === l.id ? (x.value = null, $(), E("selectBranch", null)) : ($(), x.value = l, E("selectBranch", l));
|
|
229
229
|
}
|
|
230
230
|
function xe(l) {
|
|
@@ -239,16 +239,16 @@ const bt = ["id"], pt = {
|
|
|
239
239
|
function Ue() {
|
|
240
240
|
const l = new ResizeObserver((i) => {
|
|
241
241
|
i.forEach((t) => {
|
|
242
|
-
ge.value = t.contentRect.width <
|
|
242
|
+
ge.value = t.contentRect.width < Oe.value;
|
|
243
243
|
});
|
|
244
244
|
});
|
|
245
|
-
|
|
245
|
+
le.value && l.observe(le.value);
|
|
246
246
|
}
|
|
247
247
|
He(() => {
|
|
248
248
|
me();
|
|
249
249
|
});
|
|
250
250
|
function me() {
|
|
251
|
-
lt(
|
|
251
|
+
lt(O.dataset) && Q({
|
|
252
252
|
componentName: "VueUiChestnut",
|
|
253
253
|
type: "dataset"
|
|
254
254
|
});
|
|
@@ -274,7 +274,7 @@ const bt = ["id"], pt = {
|
|
|
274
274
|
});
|
|
275
275
|
function ke() {
|
|
276
276
|
Ce(() => {
|
|
277
|
-
const l = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total",
|
|
277
|
+
const l = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", M.value], [""]], i = v.value.head, t = v.value.body.map((y, p) => [
|
|
278
278
|
v.value.body[p - 1] && v.value.body[p - 1].rootName === y.rootName ? "" : y.rootName,
|
|
279
279
|
v.value.body[p - 1] && v.value.body[p - 1].rootName === y.rootName ? "" : y.rootValue,
|
|
280
280
|
v.value.body[p - 1] && v.value.body[p - 1].rootName === y.rootName ? "" : y.rootToTotal,
|
|
@@ -293,22 +293,22 @@ const bt = ["id"], pt = {
|
|
|
293
293
|
}
|
|
294
294
|
const q = T(!1);
|
|
295
295
|
function De(l) {
|
|
296
|
-
q.value = l,
|
|
296
|
+
q.value = l, ce.value += 1;
|
|
297
297
|
}
|
|
298
298
|
function we() {
|
|
299
299
|
Y.value.showTable = !Y.value.showTable;
|
|
300
300
|
}
|
|
301
301
|
const W = T(!1);
|
|
302
|
-
function
|
|
302
|
+
function se() {
|
|
303
303
|
W.value = !W.value;
|
|
304
304
|
}
|
|
305
305
|
return Le({
|
|
306
|
-
getData:
|
|
306
|
+
getData: Me,
|
|
307
307
|
generatePdf: be,
|
|
308
308
|
generateCsv: ke,
|
|
309
309
|
generateImage: pe,
|
|
310
310
|
toggleTable: we,
|
|
311
|
-
toggleAnnotator:
|
|
311
|
+
toggleAnnotator: se
|
|
312
312
|
}), (l, i) => (a(), o("div", {
|
|
313
313
|
class: k(`vue-ui-chestnut ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
314
314
|
ref_key: "chestnutChart",
|
|
@@ -324,13 +324,13 @@ const bt = ["id"], pt = {
|
|
|
324
324
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
325
325
|
color: e.value.style.chart.color,
|
|
326
326
|
active: W.value,
|
|
327
|
-
onClose:
|
|
327
|
+
onClose: se
|
|
328
328
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
|
|
329
329
|
Ve.value ? (a(), o("div", pt, null, 512)) : f("", !0),
|
|
330
|
-
e.value.userOptions.show && D.value && (n(ve) || n(
|
|
330
|
+
e.value.userOptions.show && D.value && (n(ve) || n(ee)) ? (a(), K(rt, {
|
|
331
331
|
ref_key: "details",
|
|
332
332
|
ref: Pe,
|
|
333
|
-
key: `user_options_${
|
|
333
|
+
key: `user_options_${ce.value}`,
|
|
334
334
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
335
335
|
color: e.value.style.chart.color,
|
|
336
336
|
isImaging: n(fe),
|
|
@@ -352,9 +352,9 @@ const bt = ["id"], pt = {
|
|
|
352
352
|
onGenerateCsv: ke,
|
|
353
353
|
onGenerateImage: n(pe),
|
|
354
354
|
onToggleTable: we,
|
|
355
|
-
onToggleAnnotator:
|
|
355
|
+
onToggleAnnotator: se,
|
|
356
356
|
style: h({
|
|
357
|
-
visibility: n(ve) ? n(
|
|
357
|
+
visibility: n(ve) ? n(ee) ? "visible" : "hidden" : "visible"
|
|
358
358
|
})
|
|
359
359
|
}, We({ _: 2 }, [
|
|
360
360
|
l.$slots.optionPdf ? {
|
|
@@ -388,14 +388,14 @@ const bt = ["id"], pt = {
|
|
|
388
388
|
l.$slots.optionFullscreen ? {
|
|
389
389
|
name: "optionFullscreen",
|
|
390
390
|
fn: X(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
391
|
-
I(l.$slots, "optionFullscreen",
|
|
391
|
+
I(l.$slots, "optionFullscreen", ue(ne({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
392
392
|
]),
|
|
393
393
|
key: "4"
|
|
394
394
|
} : void 0,
|
|
395
395
|
l.$slots.optionAnnotator ? {
|
|
396
396
|
name: "optionAnnotator",
|
|
397
397
|
fn: X(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
398
|
-
I(l.$slots, "optionAnnotator",
|
|
398
|
+
I(l.$slots, "optionAnnotator", ue(ne({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
399
399
|
]),
|
|
400
400
|
key: "5"
|
|
401
401
|
} : void 0
|
|
@@ -504,7 +504,7 @@ const bt = ["id"], pt = {
|
|
|
504
504
|
s("stop", {
|
|
505
505
|
offset: "100%",
|
|
506
506
|
"stop-color": n(S)("#FFFFFF", 0)
|
|
507
|
-
}, null, 8,
|
|
507
|
+
}, null, 8, Ot)
|
|
508
508
|
], 8, It),
|
|
509
509
|
s("radialGradient", {
|
|
510
510
|
cx: "50%",
|
|
@@ -526,7 +526,7 @@ const bt = ["id"], pt = {
|
|
|
526
526
|
offset: "100%",
|
|
527
527
|
"stop-color": n(S)(e.value.style.chart.backgroundColor, 0)
|
|
528
528
|
}, null, 8, jt)
|
|
529
|
-
], 8,
|
|
529
|
+
], 8, Mt)
|
|
530
530
|
]),
|
|
531
531
|
e.value.style.chart.layout.grandTotal.show ? (a(), o("g", At, [
|
|
532
532
|
s("text", {
|
|
@@ -548,10 +548,10 @@ const bt = ["id"], pt = {
|
|
|
548
548
|
onClick: $
|
|
549
549
|
}, c(n(G)(
|
|
550
550
|
e.value.style.chart.layout.grandTotal.formatter,
|
|
551
|
-
|
|
551
|
+
M.value,
|
|
552
552
|
n(z)({
|
|
553
553
|
p: e.value.style.chart.layout.grandTotal.prefix,
|
|
554
|
-
v:
|
|
554
|
+
v: M.value,
|
|
555
555
|
s: e.value.style.chart.layout.grandTotal.suffix,
|
|
556
556
|
r: e.value.style.chart.layout.grandTotal.roundingValue
|
|
557
557
|
})
|
|
@@ -563,7 +563,7 @@ const bt = ["id"], pt = {
|
|
|
563
563
|
${t.x1},${t.y1 + b}
|
|
564
564
|
C${t.x1 - 20},${t.y1 + b}
|
|
565
565
|
${t.x1 - 80},${t.y1 + b}
|
|
566
|
-
${
|
|
566
|
+
${ae(t).x + ae(t).r / 2}, ${ae(t).y}
|
|
567
567
|
`,
|
|
568
568
|
stroke: n(S)(t.color, e.value.style.chart.layout.links.opacity),
|
|
569
569
|
fill: "none",
|
|
@@ -635,7 +635,7 @@ const bt = ["id"], pt = {
|
|
|
635
635
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
636
636
|
stroke: "none",
|
|
637
637
|
style: h(`opacity:${L(t) ? 1 : 0.05}`),
|
|
638
|
-
onClick: (u) =>
|
|
638
|
+
onClick: (u) => oe(t)
|
|
639
639
|
}, null, 12, Kt))), 256)),
|
|
640
640
|
(a(!0), o(g, null, _(j.value, (t, u) => (a(), o("rect", {
|
|
641
641
|
x: t.x1,
|
|
@@ -647,7 +647,7 @@ const bt = ["id"], pt = {
|
|
|
647
647
|
stroke: e.value.style.chart.layout.branches.stroke,
|
|
648
648
|
"stroke-width": e.value.style.chart.layout.branches.strokeWidth,
|
|
649
649
|
style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
|
|
650
|
-
onClick: (b) =>
|
|
650
|
+
onClick: (b) => oe(t)
|
|
651
651
|
}, null, 12, Jt))), 256)),
|
|
652
652
|
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", Qt, [
|
|
653
653
|
(a(!0), o(g, null, _(j.value, (t) => (a(), o("g", null, [
|
|
@@ -660,7 +660,7 @@ const bt = ["id"], pt = {
|
|
|
660
660
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
661
661
|
"font-weight": "bold",
|
|
662
662
|
style: h(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
|
|
663
|
-
onClick: (u) =>
|
|
663
|
+
onClick: (u) => oe(t)
|
|
664
664
|
}, c(n(G)(
|
|
665
665
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
666
666
|
t.value,
|
|
@@ -752,7 +752,7 @@ const bt = ["id"], pt = {
|
|
|
752
752
|
{ datapoint: t }
|
|
753
753
|
)), 1),
|
|
754
754
|
J(" (" + c(n(z)({
|
|
755
|
-
v: t.total /
|
|
755
|
+
v: t.total / M.value * 100,
|
|
756
756
|
s: "%",
|
|
757
757
|
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
758
758
|
})) + ") ", 1)
|
|
@@ -1006,7 +1006,7 @@ const bt = ["id"], pt = {
|
|
|
1006
1006
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1007
1007
|
onClick: $
|
|
1008
1008
|
}, c(n(z)({
|
|
1009
|
-
v: t.value /
|
|
1009
|
+
v: t.value / M.value * 100,
|
|
1010
1010
|
s: "%",
|
|
1011
1011
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1012
1012
|
})) + " " + c(e.value.translations.proportionToTree), 9, Ll)) : f("", !0)
|
|
@@ -1014,7 +1014,7 @@ const bt = ["id"], pt = {
|
|
|
1014
1014
|
I(l.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
1015
1015
|
], 14, gt)) : f("", !0),
|
|
1016
1016
|
l.$slots.watermark ? (a(), o("div", Il, [
|
|
1017
|
-
I(l.$slots, "watermark",
|
|
1017
|
+
I(l.$slots, "watermark", ue(ne({ isPrinting: n(he) || n(fe) })), void 0, !0)
|
|
1018
1018
|
])) : f("", !0),
|
|
1019
1019
|
D.value ? f("", !0) : (a(), K(it, {
|
|
1020
1020
|
key: 5,
|
|
@@ -1051,7 +1051,7 @@ const bt = ["id"], pt = {
|
|
|
1051
1051
|
content: X(() => [
|
|
1052
1052
|
s("div", {
|
|
1053
1053
|
ref_key: "tableContainer",
|
|
1054
|
-
ref:
|
|
1054
|
+
ref: le,
|
|
1055
1055
|
class: "vue-ui-chestnut-table"
|
|
1056
1056
|
}, [
|
|
1057
1057
|
s("div", Vl, [
|
|
@@ -1072,13 +1072,13 @@ const bt = ["id"], pt = {
|
|
|
1072
1072
|
style: { width: "100%" },
|
|
1073
1073
|
class: k({ "vue-ui-responsive": ge.value })
|
|
1074
1074
|
}, [
|
|
1075
|
-
s("table",
|
|
1075
|
+
s("table", Ol, [
|
|
1076
1076
|
s("caption", {
|
|
1077
1077
|
style: h({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1078
1078
|
class: "vue-ui-data-table__caption"
|
|
1079
1079
|
}, [
|
|
1080
1080
|
J(c(e.value.style.chart.layout.title.text) + " ", 1),
|
|
1081
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span",
|
|
1081
|
+
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span", Ml, c(e.value.style.chart.layout.title.subtitle.text), 1)) : f("", !0)
|
|
1082
1082
|
], 4),
|
|
1083
1083
|
s("thead", null, [
|
|
1084
1084
|
s("tr", {
|
|
@@ -1204,7 +1204,7 @@ const bt = ["id"], pt = {
|
|
|
1204
1204
|
}, 8, ["config"])) : f("", !0)
|
|
1205
1205
|
], 46, bt));
|
|
1206
1206
|
}
|
|
1207
|
-
}, Va = /* @__PURE__ */ ft(ma, [["__scopeId", "data-v-
|
|
1207
|
+
}, Va = /* @__PURE__ */ ft(ma, [["__scopeId", "data-v-9a052507"]]);
|
|
1208
1208
|
export {
|
|
1209
1209
|
Va as default
|
|
1210
1210
|
};
|