vue-data-ui 3.28.8 → 3.28.9

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.
Files changed (144) hide show
  1. package/dist/{PackageVersion-Bczw6rsP.js → PackageVersion-D6_O7PmZ.js} +1 -1
  2. package/dist/UserOptions-B9EyfU9n.js +1 -0
  3. package/dist/{XyAnalysisOptions-U4UJx51x.js → XyAnalysisOptions-djGOJdKc.js} +1 -1
  4. package/dist/components/vue-ui-3d-bar.js +1 -1
  5. package/dist/components/vue-ui-age-pyramid.js +1 -1
  6. package/dist/components/vue-ui-bullet.js +1 -1
  7. package/dist/components/vue-ui-bump.js +1 -1
  8. package/dist/components/vue-ui-candlestick.js +1 -1
  9. package/dist/components/vue-ui-carousel-table.js +1 -1
  10. package/dist/components/vue-ui-chestnut.js +1 -1
  11. package/dist/components/vue-ui-chord.js +1 -1
  12. package/dist/components/vue-ui-circle-pack.js +1 -1
  13. package/dist/components/vue-ui-cursor.js +1 -1
  14. package/dist/components/vue-ui-dag.js +1 -1
  15. package/dist/components/vue-ui-dashboard.js +1 -1
  16. package/dist/components/vue-ui-digits.js +1 -1
  17. package/dist/components/vue-ui-donut-evolution.js +1 -1
  18. package/dist/components/vue-ui-donut.js +1 -1
  19. package/dist/components/vue-ui-dumbbell.js +1 -1
  20. package/dist/components/vue-ui-flow.js +1 -1
  21. package/dist/components/vue-ui-funnel.js +1 -1
  22. package/dist/components/vue-ui-galaxy.js +1 -1
  23. package/dist/components/vue-ui-gauge.js +1 -1
  24. package/dist/components/vue-ui-geo.js +1 -1
  25. package/dist/components/vue-ui-gizmo.js +1 -1
  26. package/dist/components/vue-ui-graph.js +1 -1
  27. package/dist/components/vue-ui-heatmap.js +1 -1
  28. package/dist/components/vue-ui-hill.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-molecule.js +1 -1
  33. package/dist/components/vue-ui-mood-radar.js +1 -1
  34. package/dist/components/vue-ui-nested-donuts.js +1 -1
  35. package/dist/components/vue-ui-onion.js +1 -1
  36. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  37. package/dist/components/vue-ui-quadrant.js +1 -1
  38. package/dist/components/vue-ui-quick-chart.js +1 -1
  39. package/dist/components/vue-ui-radar.js +1 -1
  40. package/dist/components/vue-ui-relation-circle.js +1 -1
  41. package/dist/components/vue-ui-ridgeline.js +1 -1
  42. package/dist/components/vue-ui-rings.js +1 -1
  43. package/dist/components/vue-ui-scatter.js +1 -1
  44. package/dist/components/vue-ui-skeleton.js +1 -1
  45. package/dist/components/vue-ui-spark-trend.js +1 -1
  46. package/dist/components/vue-ui-sparkbar.js +1 -1
  47. package/dist/components/vue-ui-sparkgauge.js +1 -1
  48. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  49. package/dist/components/vue-ui-sparkline.js +1 -1
  50. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  51. package/dist/components/vue-ui-stackbar.js +1 -1
  52. package/dist/components/vue-ui-stackline.js +1 -1
  53. package/dist/components/vue-ui-strip-plot.js +1 -1
  54. package/dist/components/vue-ui-table-heatmap.js +1 -1
  55. package/dist/components/vue-ui-table-sparkline.js +1 -1
  56. package/dist/components/vue-ui-table.js +1 -1
  57. package/dist/components/vue-ui-thermometer.js +1 -1
  58. package/dist/components/vue-ui-timer.js +1 -1
  59. package/dist/components/vue-ui-tiremarks.js +1 -1
  60. package/dist/components/vue-ui-treemap.js +1 -1
  61. package/dist/components/vue-ui-vertical-bar.js +1 -1
  62. package/dist/components/vue-ui-waffle.js +1 -1
  63. package/dist/components/vue-ui-wheel.js +1 -1
  64. package/dist/components/vue-ui-word-cloud.js +1 -1
  65. package/dist/components/vue-ui-world.js +1 -1
  66. package/dist/components/vue-ui-xy-canvas.js +1 -1
  67. package/dist/components/vue-ui-xy.js +1 -1
  68. package/dist/package-BEq7yyhf.js +1 -0
  69. package/dist/{render-common-DY4sNXDz.js → render-common-BbY81Ao2.js} +1 -1
  70. package/dist/ssr/vue-ui-donut.js +1 -1
  71. package/dist/ssr/vue-ui-xy.js +1 -1
  72. package/dist/ssr.js +1 -1
  73. package/dist/style.css +1 -1
  74. package/dist/vue-data-ui-BwiGr37w.js +1 -0
  75. package/dist/vue-data-ui.js +1 -1
  76. package/dist/{vue-ui-3d-bar-DmRrbXjK.js → vue-ui-3d-bar-C2igj6OX.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-CJJIp5gY.js → vue-ui-age-pyramid-DOG_ZOgO.js} +1 -1
  78. package/dist/{vue-ui-bullet-Br7H7FSM.js → vue-ui-bullet-HUKP90GR.js} +1 -1
  79. package/dist/{vue-ui-bump-DCDHNvWE.js → vue-ui-bump-BuHuxEzm.js} +1 -1
  80. package/dist/{vue-ui-candlestick-C_swW8gM.js → vue-ui-candlestick-CZkyowA5.js} +1 -1
  81. package/dist/{vue-ui-carousel-table-BP_yVdDm.js → vue-ui-carousel-table-B73USTMi.js} +1 -1
  82. package/dist/{vue-ui-chestnut-CIGNqBsT.js → vue-ui-chestnut-VdMHjsWk.js} +1 -1
  83. package/dist/{vue-ui-chord-DZRFBkRJ.js → vue-ui-chord-DfWjMAuo.js} +1 -1
  84. package/dist/{vue-ui-circle-pack-CtdPeMsY.js → vue-ui-circle-pack-ByV3SOkF.js} +1 -1
  85. package/dist/{vue-ui-cursor-DRQc_V2R.js → vue-ui-cursor-D3E3f7Lc.js} +1 -1
  86. package/dist/{vue-ui-dag-Cj0CcntI.js → vue-ui-dag-DlllVyCV.js} +1 -1
  87. package/dist/{vue-ui-dashboard-HyzHqAtX.js → vue-ui-dashboard-C9aGsEAi.js} +1 -1
  88. package/dist/{vue-ui-digits-CfdB0vaP.js → vue-ui-digits-p2met3a2.js} +1 -1
  89. package/dist/{vue-ui-donut-Cv-bYyBN.js → vue-ui-donut-BlQXnf7O.js} +1 -1
  90. package/dist/{vue-ui-donut-Dy4j7B9b.js → vue-ui-donut-CZbBq7bs.js} +1 -1
  91. package/dist/{vue-ui-donut-evolution-DL112anx.js → vue-ui-donut-evolution-Csq1sqhK.js} +1 -1
  92. package/dist/{vue-ui-dumbbell-owG24VsQ.js → vue-ui-dumbbell-ChLfyyGq.js} +1 -1
  93. package/dist/{vue-ui-flow-BMNIydqI.js → vue-ui-flow-DfEHi_Cq.js} +1 -1
  94. package/dist/{vue-ui-funnel-BsVS3vuI.js → vue-ui-funnel-QCG-rmsx.js} +1 -1
  95. package/dist/{vue-ui-galaxy-B8HgdBjc.js → vue-ui-galaxy-DFTeXUse.js} +1 -1
  96. package/dist/{vue-ui-gauge-B1A_NFY6.js → vue-ui-gauge-XTx--A-H.js} +1 -1
  97. package/dist/{vue-ui-geo-_TG4jaV9.js → vue-ui-geo-BXB5xFcV.js} +1 -1
  98. package/dist/{vue-ui-gizmo-D0QjzIGt.js → vue-ui-gizmo-COJHVo7O.js} +1 -1
  99. package/dist/{vue-ui-graph-DScVnTzu.js → vue-ui-graph-BqnyGn9p.js} +1 -1
  100. package/dist/{vue-ui-heatmap-BbQseEbM.js → vue-ui-heatmap-CPq3bcnS.js} +1 -1
  101. package/dist/{vue-ui-hill-D3V84h_t.js → vue-ui-hill-DKm3PjHT.js} +1 -1
  102. package/dist/{vue-ui-history-plot-Bx4WYG6U.js → vue-ui-history-plot-B5OPsHZ1.js} +1 -1
  103. package/dist/{vue-ui-horizontal-bar-Do0HJy4f.js → vue-ui-horizontal-bar-C8SymyhN.js} +1 -1
  104. package/dist/{vue-ui-kpi-CF7pAl08.js → vue-ui-kpi-D1Ps7D_O.js} +1 -1
  105. package/dist/{vue-ui-molecule-bAMGCA2Y.js → vue-ui-molecule-f-GNAQ0p.js} +1 -1
  106. package/dist/{vue-ui-mood-radar-CFpgxjuR.js → vue-ui-mood-radar-kp-jOb4S.js} +1 -1
  107. package/dist/{vue-ui-nested-donuts-CWY26iKX.js → vue-ui-nested-donuts-DCCSKIGa.js} +1 -1
  108. package/dist/{vue-ui-onion-DsBUqL_c.js → vue-ui-onion-KqzGj1z_.js} +1 -1
  109. package/dist/{vue-ui-parallel-coordinate-plot-BF3gO85b.js → vue-ui-parallel-coordinate-plot-dn_41Wv5.js} +1 -1
  110. package/dist/{vue-ui-quadrant-BkNG2LGm.js → vue-ui-quadrant-CP8n4v5B.js} +1 -1
  111. package/dist/{vue-ui-quick-chart-CYxvgVpD.js → vue-ui-quick-chart-D8PbGpSw.js} +1 -1
  112. package/dist/{vue-ui-radar-0H8CiLmc.js → vue-ui-radar-ybR3N44-.js} +1 -1
  113. package/dist/{vue-ui-relation-circle-B0BM4xf8.js → vue-ui-relation-circle-B0PwfFpT.js} +1 -1
  114. package/dist/{vue-ui-ridgeline-D-fDuE3y.js → vue-ui-ridgeline-BnslUzA-.js} +1 -1
  115. package/dist/{vue-ui-rings-UtlBiaZZ.js → vue-ui-rings-B-cOW0Dw.js} +1 -1
  116. package/dist/{vue-ui-scatter-CduaARRt.js → vue-ui-scatter-BX5cTC01.js} +1 -1
  117. package/dist/{vue-ui-skeleton-an0peDis.js → vue-ui-skeleton-98OnGJ2N.js} +1 -1
  118. package/dist/{vue-ui-spark-trend-DCP7blHB.js → vue-ui-spark-trend-C4uYyXEy.js} +1 -1
  119. package/dist/{vue-ui-sparkbar-DT3sDgda.js → vue-ui-sparkbar-BcZyqPB9.js} +1 -1
  120. package/dist/{vue-ui-sparkgauge-AQt2L5dI.js → vue-ui-sparkgauge-dBZzMqn5.js} +1 -1
  121. package/dist/{vue-ui-sparkhistogram-a_jc2Dv2.js → vue-ui-sparkhistogram-DcbAY6vr.js} +1 -1
  122. package/dist/{vue-ui-sparkline-D2-KcHAU.js → vue-ui-sparkline-BizzsAR5.js} +1 -1
  123. package/dist/{vue-ui-sparkstackbar-CBI4S5cu.js → vue-ui-sparkstackbar-xlg048YB.js} +1 -1
  124. package/dist/{vue-ui-stackbar-DS_31-a3.js → vue-ui-stackbar-2AX-m3Pb.js} +1 -1
  125. package/dist/{vue-ui-stackline-CuxohB0U.js → vue-ui-stackline-GKaZJh8y.js} +1 -1
  126. package/dist/{vue-ui-strip-plot-bYGhsPA5.js → vue-ui-strip-plot-BhxIrd67.js} +1 -1
  127. package/dist/{vue-ui-table-lzolsJ_n.js → vue-ui-table-D9FJBxrk.js} +1 -1
  128. package/dist/{vue-ui-table-heatmap-D6gpmHg8.js → vue-ui-table-heatmap-SGJGI5Wq.js} +1 -1
  129. package/dist/{vue-ui-table-sparkline-By319cB8.js → vue-ui-table-sparkline-B6ynMUGE.js} +1 -1
  130. package/dist/{vue-ui-thermometer-B3Uv3aWc.js → vue-ui-thermometer-SE_c51TO.js} +1 -1
  131. package/dist/{vue-ui-timer-C6Pevf4N.js → vue-ui-timer-B1JNZk6j.js} +1 -1
  132. package/dist/{vue-ui-tiremarks-DeNdCFVD.js → vue-ui-tiremarks-Cr8EG4T5.js} +1 -1
  133. package/dist/{vue-ui-treemap-Ck9_llHA.js → vue-ui-treemap-DKJVe7v7.js} +1 -1
  134. package/dist/{vue-ui-waffle-BW2SacnV.js → vue-ui-waffle-DSq3l2sE.js} +1 -1
  135. package/dist/{vue-ui-wheel-BXDhx5bf.js → vue-ui-wheel-CcYOzS05.js} +1 -1
  136. package/dist/{vue-ui-word-cloud-DKPtoruY.js → vue-ui-word-cloud-gogYiwIU.js} +1 -1
  137. package/dist/{vue-ui-world-D9vpDbN7.js → vue-ui-world-C2zGhq_U.js} +1 -1
  138. package/dist/{vue-ui-xy-Df5gIADT.js → vue-ui-xy-B2lrTGG4.js} +1 -1
  139. package/dist/{vue-ui-xy-CMckdUft.js → vue-ui-xy-CpS-ASnd.js} +3 -3
  140. package/dist/{vue-ui-xy-canvas-CBrKi3nN.js → vue-ui-xy-canvas-CXBsRU35.js} +1 -1
  141. package/package.json +1 -1
  142. package/dist/UserOptions-DW84OKKr.js +0 -1
  143. package/dist/package-CNWVs68D.js +0 -1
  144. package/dist/vue-data-ui-BWqplouA.js +0 -1
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-By3Vb5kz.js";import{$ as n,D as r,Dt as i,Ft as a,Ht as o,Jt as s,Kt as c,Mt as l,S as u,X as ee,Zt as te,_ as ne,_t as re,at as ie,i as ae,in as oe,nn as se,nt as ce,o as le,pt as ue,w as de,wt as fe,zt as pe}from"./lib-rPeBMZrn.js";import{n as me,t as he}from"./BaseScanner-8NdoBs7B.js";import{n as ge,t as _e}from"./useHints-C-TwxM0Y.js";import{t as ve}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ye}from"./useNestedProp-DnGoh-XS.js";import{t as be}from"./useThemeCheck-BKNRbGeC.js";import{t as xe}from"./img-D4RQwASc.js";import{t as Se}from"./BaseIcon-CoY0vuL3.js";import{n as Ce}from"./Title-BliHuXfT.js";import{n as we,t as Te}from"./tableIntegration-CNoJ1CIY.js";import{n as Ee,t as De}from"./userOptionsSlots-DYuo-E5m.js";import{n as Oe,r as ke,t as Ae}from"./useTimeLabels-Das5O74F.js";import{t as je}from"./usePrinter-DVf3YcG5.js";import{a as Me,c as Ne,i as d,n as Pe,o as Fe,s as Ie,t as Le}from"./canvas-lib-22VpOI4_.js";import{t as Re}from"./useResponsive-CENUxfEL.js";import{t as ze}from"./SlicerPreview-ChKbdZSU.js";import{t as Be}from"./vue-ui-accordion-DFxSW8ET.js";import{t as Ve}from"./BaseLegendToggle-BIzyyI1h.js";import{t as He}from"./useUserOptionState-CXlFnwPv.js";import{t as Ue}from"./useChartAccessibility-DOMuYJfm.js";import{t as We}from"./Legend-DM0ClX3D.js";import{t as Ge}from"./vue_ui_xy_canvas-CT-FN9rU.js";import{Teleport as Ke,computed as f,createBlock as qe,createCommentVNode as p,createElementBlock as Je,createElementVNode as m,createSlots as Ye,createTextVNode as Xe,createVNode as Ze,defineAsyncComponent as Qe,guardReactiveProps as h,mergeProps as $e,nextTick as et,normalizeClass as tt,normalizeProps as g,normalizeStyle as nt,onBeforeUnmount as rt,onMounted as it,openBlock as _,ref as v,renderList as at,renderSlot as y,resolveDynamicComponent as ot,shallowRef as st,toDisplayString as ct,toRefs as lt,unref as b,useSlots as ut,watch as x,watchEffect as dt,withCtx as S}from"vue";var ft=/* @__PURE__ */ e({default:()=>Et}),pt=[`id`],mt=[`id`],ht={class:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`},gt=[`id`],_t=[`aria-label`,`aria-describedby`],vt=[`viewBox`],yt=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],bt={key:1,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},xt=[`id`],St=[`onClick`],Ct={key:4,class:`vue-data-ui-watermark`},wt={key:0},Tt={key:1},Et=/*#__PURE__*/ ve({__name:`vue-ui-xy-canvas`,props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}},selectedXIndex:{type:Number,default:void 0},zoomState:{type:Object,default:null}},emits:[`selectLegend`,`selectX`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:ve,emit:ft}){let Et=Qe(()=>import(`./Tooltip-C1q0Qoh7.js`)),Dt=Qe(()=>import(`./DataTable-Dof6yhO7.js`)),Ot=Qe(()=>import(`./UserOptions-DW84OKKr.js`).then(e=>e.n)),kt=Qe(()=>import(`./NonSvgPenAndPaper-DXdAh1Sz.js`)),At=Qe(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_xy_canvas:jt}=t(),{isThemeValid:Mt,warnInvalidTheme:Nt}=be(),C=e,Pt=v(ee()),Ft=v(null),It=v(null),w=v(null),T=v(1),Lt=v(1),Rt=v(!1),E=v(null),zt=v(``),Bt=v(null),D=v([]),Vt=v(1),O=v(!0),Ht=v(!0),Ut=v(null),Wt=v(0),Gt=v(!1),Kt=v(null),qt=v(null),Jt=v(null),Yt=v(null),Xt=v(0),Zt=v(0),Qt=v(0),k=v(null),$t=v(!1),en=v(null),tn=v(null),nn=v(!1),rn=v(!1),an=v(!1),A=v(null),on=v(!1),sn=v(!1),cn=v(!1),j=v(null),ln=v({x:0,y:0}),M=f(()=>Array.isArray(vn.value)&&vn.value.length>0),N=ft,un=ut(),P=v(wn()),F=f(()=>P.value.userOptions),I=f(()=>P.value.style.chart.tooltip),L=f(()=>P.value.style.chart.grid.y.verticalLines),dn=f(()=>P.value.style.chart.grid.x.horizontalLines),R=f(()=>P.value.style.chart.grid.y.axisLabels),z=f(()=>P.value.style.chart.grid.x.timeLabels),B=f(()=>P.value.style.chart.grid),V=f(()=>P.value.style.chart.dataLabels),H=f(()=>P.value.style.chart);ge({config:()=>P.value,dataset:()=>C.dataset,component:`VueUiXyCanvas`,rules:[_e.emptyArray,{test:e=>e.every(e=>e.series.length<300),message:[`👀 Series have < 300 datapoints. Consider:`,``,`▶️ Using VueUiXy instead, if you need more options, or more customization possibilities.`]},{test:e=>e.some(e=>e.series.length>1e4),message:[`👀 The dataset has > 10_000 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance can be impacted. JS runtime might crash with > 100_000 datapoints.`]}]});let fn=f(()=>{let e=H.value.title.text||`XY chart`,t=X.value.end-X.value.start;return`${e}. ${Y.value.filter(e=>!D.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`}),pn=f(()=>{if(j.value===null)return``;let e=j.value+X.value.start;return`${_i.value[j.value]?I.value.useDefaultTimeFormat?vi.value[j.value]?.text:Pr.value[j.value]?.text:$.value[e]?.text??`Point ${e+1}`}. ${Y.value.filter(e=>!D.value.includes(e.absoluteIndex)).map(e=>{let t=e.series[j.value],n=t?.value??t??null;return`${e.name}: ${n}`}).join(`. `)}.`}),mn=f(()=>F.value.useCursorPointer),hn=f(()=>P.value.debug);it(()=>{un[`chart-background`]&&hn.value&&console.warn(`VueUiXyCanvas does not support the #chart-background slot.`)});let gn=f(()=>oe({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,grid:{x:{axisColor:`#6A6A6A`,timeLabels:{show:!1},axisName:``,horizontalLines:{color:`#6A6A6A`}},y:{axisColor:`#6A6A6A`,axisLabels:{show:!1},axisName:``,verticalLines:{color:`#6A6A6A`}},zeroLine:{color:`#6A6A6A`}},legend:{backgroundColor:`#99999930`},paddingProportions:{left:.05},scale:{max:null,min:null},zoom:{endIndex:null,startIndex:null}}}},userConfig:P.value.skeletonConfig??{}})),{loading:_n,FINAL_DATASET:vn}=me({...lt(C),FINAL_CONFIG:P,prepareConfig:wn,skeletonDataset:C.config?.skeletonDataset??[{name:``,series:[0,1,2,3,5,8,13,21,34,55,89,134],type:`line`,smooth:!0,color:`#BABABA`},{name:``,series:[0,.5,1,1.5,2.5,4,6.5,10.5,17,27.5,44.5,67],type:`bar`,color:`#AAAAAA`}],skeletonConfig:oe({defaultConfig:P.value,userConfig:gn.value})}),{userOptionsVisible:yn,setUserOptionsVisibility:bn,keepUserOptionState:xn}=He({config:P.value}),{svgRef:U}=Ue({config:H.value.title});function Sn(){bn(!0)}function Cn(){bn(!1),N(`selectX`,{dataset:null,index:null,indexLabel:null}),E.value=null}function wn(){let e=ye({userConfig:C.config,defaultConfig:jt}),t={},n=e.theme;if(n){if(!Mt.value(e))Nt(e),t=e;else{let r=ye({userConfig:Ge[n]||C.config,defaultConfig:e});t={...ye({userConfig:C.config,defaultConfig:r}),customPalette:e.customPalette.length?e.customPalette:se[n]||o}}}else t=e;return C.config&&fe(C.config,`style.chart.grid.y.timeLabels`)&&(console.warn(`VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels.`),t.style.chart.grid.x.timeLabels=ye({defaultConfig:t.style.chart.grid.x.timeLabels,userConfig:C.config.style.chart.grid.y.timeLabels})),t}let Tn=te(C.config);x(()=>C.config,(e,t)=>{let n=te(e),r=n!==Tn;Tn=n;let i=wn();r?(_n.value||(P.value=i),yn.value=!F.value.showOnChartHover,Ni(),Xt.value+=1,Zt.value+=1,Qt.value+=1,W.value.showTable=P.value.table.show,W.value.showDataLabels=V.value.show,W.value.stacked=H.value.stacked,W.value.showTooltip=I.value.show):(P.value.style.chart.tooltip=i.style.chart.tooltip,W.value.showTooltip=P.value.style.chart.tooltip.show)},{deep:!0}),x(()=>C.dataset,async e=>{Array.isArray(e)&&e.length!==0&&(await et(),U.value&&!w.value&&(w.value=U.value.getContext(`2d`,{willReadFrequently:!0})),O.value=!0,Ht.value=!0,await pr(),Cr(),Xt.value+=1,Zt.value+=1,Qt.value+=1)},{deep:!0});let En=v(H.value.aspectRatio),{isPrinting:Dn,isImaging:On,generatePdf:kn,generateImage:An}=je({elementId:`xy_canvas_${Pt.value}`,fileName:H.value.title.text||`vue-ui-xy-canvas`,options:F.value.print}),W=v({showTable:P.value.table.show,showDataLabels:V.value.show,stacked:H.value.stacked,showTooltip:I.value.show});function jn(e){Gt.value=e,Wt.value+=1}let Mn=f(()=>de(P.value.customPalette)),Nn=f(()=>D.value.length===J.value.length),G=f(()=>J.value?Math.max(...J.value.filter((e,t)=>Nn.value?!0:!D.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0);function Pn(e){A.value=e,Jr()}let Fn=v(0),In=v(0);function Ln(){if(!w.value||!z.value.show)return 0;let e=$.value||[],t=X.value.start??0,n=X.value.end??0;if(!Math.max(0,n-t))return 0;let r=Math.round(T.value/40*z.value.fontSizeRatio),i=`${z.value.bold?`bold `:``}${r}px ${P.value.style.fontFamily}`;w.value.save(),w.value.font=i;let a=0;for(let r=t;r<n;r+=1){let t=e[r]?.text??`${r+1}`,n=w.value.measureText(String(t));n.width>a&&(a=n.width)}w.value.restore();let o=(z.value.rotation||0)*Math.PI/180,s=r,c=Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s,l=z.value.offsetY||1,u=T.value/l;return Math.max(0,u+c+4)}function Rn(){Fn.value=Ln()}function zn(){In.value&&cancelAnimationFrame(In.value),In.value=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Rn()})})}rt(()=>{In.value&&cancelAnimationFrame(In.value)});let K=f(()=>{let e=T.value-T.value*(H.value.paddingProportions.left+H.value.paddingProportions.right),t=Lt.value*H.value.paddingProportions.top,n=Lt.value*H.value.paddingProportions.bottom,r=Fn.value,i=Lt.value-n-r,a=Lt.value-(t+n)-r;return{canvasWidth:T.value,canvasHeight:Lt.value,left:T.value*H.value.paddingProportions.left,top:t,right:T.value-T.value*H.value.paddingProportions.right,bottom:i,width:e,height:a,slot:e/(X.value.end-X.value.start)}});function Bn(e,t){return e/t}function Vn({hasAutoScale:e,series:t,min:n,max:r,scale:i,yOffset:a,individualHeight:o,stackIndex:s=null}){return t.map((t,n)=>{let r=i.min<0?Math.abs(i.min):0,c=Bn(t+r,r+i.max),l,u;e&&(l=i.min,u=Bn(t-l,i.max-l));let ee=0;return ee=s===null?K.value.bottom-K.value.height*(e?u:c):K.value.bottom-a-o*(e?u:c),{x:K.value.left+K.value.slot*n+K.value.slot/2,y:ee,value:t}})}let Hn=f(()=>{let e=/* @__PURE__ */ new Map;for(let t of J.value){let n=1/0,r=-1/0;for(let e of t.series.slice(X.value.start,X.value.end))n=Math.min(n,e),r=Math.max(r,e);e.set(t.absoluteIndex,{min:n,max:r})}return e}),Un=f(()=>{let e=1/0,t=-1/0;for(let n of J.value){if(D.value.includes(n.absoluteIndex))continue;let r=Hn.value.get(n.absoluteIndex);e=Math.min(e,r.min),t=Math.max(t,r.max)}return{min:e,max:t}}),q=f(()=>{let e=H.value.scale.min===null?Un.value.min:H.value.scale.min,t=H.value.scale.max===null?Un.value.max:H.value.scale.max,n=ne(e<0?e:0,t===e?e+1<0?0:e+1:t<0?0:t,H.value.scale.ticks),r=n.min<0?Math.abs(n.min):0,i=K.value.bottom-K.value.height*(r/(n.max+r));return{absoluteMin:r,max:t,min:e,scale:n,yLabels:n.ticks.map(e=>({y:K.value.bottom-K.value.height*((e+r)/(n.max+r)),x:K.value.left-8,value:e})),zero:i}}),Wn=f(()=>Y.value.map(e=>`
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-By3Vb5kz.js";import{$ as n,D as r,Dt as i,Ft as a,Ht as o,Jt as s,Kt as c,Mt as l,S as u,X as ee,Zt as te,_ as ne,_t as re,at as ie,i as ae,in as oe,nn as se,nt as ce,o as le,pt as ue,w as de,wt as fe,zt as pe}from"./lib-rPeBMZrn.js";import{n as me,t as he}from"./BaseScanner-8NdoBs7B.js";import{n as ge,t as _e}from"./useHints-C-TwxM0Y.js";import{t as ve}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ye}from"./useNestedProp-DnGoh-XS.js";import{t as be}from"./useThemeCheck-BKNRbGeC.js";import{t as xe}from"./img-D4RQwASc.js";import{t as Se}from"./BaseIcon-CoY0vuL3.js";import{n as Ce}from"./Title-BliHuXfT.js";import{n as we,t as Te}from"./tableIntegration-CNoJ1CIY.js";import{n as Ee,t as De}from"./userOptionsSlots-DYuo-E5m.js";import{n as Oe,r as ke,t as Ae}from"./useTimeLabels-Das5O74F.js";import{t as je}from"./usePrinter-DVf3YcG5.js";import{a as Me,c as Ne,i as d,n as Pe,o as Fe,s as Ie,t as Le}from"./canvas-lib-22VpOI4_.js";import{t as Re}from"./useResponsive-CENUxfEL.js";import{t as ze}from"./SlicerPreview-ChKbdZSU.js";import{t as Be}from"./vue-ui-accordion-DFxSW8ET.js";import{t as Ve}from"./BaseLegendToggle-BIzyyI1h.js";import{t as He}from"./useUserOptionState-CXlFnwPv.js";import{t as Ue}from"./useChartAccessibility-DOMuYJfm.js";import{t as We}from"./Legend-DM0ClX3D.js";import{t as Ge}from"./vue_ui_xy_canvas-CT-FN9rU.js";import{Teleport as Ke,computed as f,createBlock as qe,createCommentVNode as p,createElementBlock as Je,createElementVNode as m,createSlots as Ye,createTextVNode as Xe,createVNode as Ze,defineAsyncComponent as Qe,guardReactiveProps as h,mergeProps as $e,nextTick as et,normalizeClass as tt,normalizeProps as g,normalizeStyle as nt,onBeforeUnmount as rt,onMounted as it,openBlock as _,ref as v,renderList as at,renderSlot as y,resolveDynamicComponent as ot,shallowRef as st,toDisplayString as ct,toRefs as lt,unref as b,useSlots as ut,watch as x,watchEffect as dt,withCtx as S}from"vue";var ft=/* @__PURE__ */ e({default:()=>Et}),pt=[`id`],mt=[`id`],ht={class:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`},gt=[`id`],_t=[`aria-label`,`aria-describedby`],vt=[`viewBox`],yt=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],bt={key:1,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},xt=[`id`],St=[`onClick`],Ct={key:4,class:`vue-data-ui-watermark`},wt={key:0},Tt={key:1},Et=/*#__PURE__*/ ve({__name:`vue-ui-xy-canvas`,props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}},selectedXIndex:{type:Number,default:void 0},zoomState:{type:Object,default:null}},emits:[`selectLegend`,`selectX`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:ve,emit:ft}){let Et=Qe(()=>import(`./Tooltip-C1q0Qoh7.js`)),Dt=Qe(()=>import(`./DataTable-Dof6yhO7.js`)),Ot=Qe(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),kt=Qe(()=>import(`./NonSvgPenAndPaper-DXdAh1Sz.js`)),At=Qe(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_xy_canvas:jt}=t(),{isThemeValid:Mt,warnInvalidTheme:Nt}=be(),C=e,Pt=v(ee()),Ft=v(null),It=v(null),w=v(null),T=v(1),Lt=v(1),Rt=v(!1),E=v(null),zt=v(``),Bt=v(null),D=v([]),Vt=v(1),O=v(!0),Ht=v(!0),Ut=v(null),Wt=v(0),Gt=v(!1),Kt=v(null),qt=v(null),Jt=v(null),Yt=v(null),Xt=v(0),Zt=v(0),Qt=v(0),k=v(null),$t=v(!1),en=v(null),tn=v(null),nn=v(!1),rn=v(!1),an=v(!1),A=v(null),on=v(!1),sn=v(!1),cn=v(!1),j=v(null),ln=v({x:0,y:0}),M=f(()=>Array.isArray(vn.value)&&vn.value.length>0),N=ft,un=ut(),P=v(wn()),F=f(()=>P.value.userOptions),I=f(()=>P.value.style.chart.tooltip),L=f(()=>P.value.style.chart.grid.y.verticalLines),dn=f(()=>P.value.style.chart.grid.x.horizontalLines),R=f(()=>P.value.style.chart.grid.y.axisLabels),z=f(()=>P.value.style.chart.grid.x.timeLabels),B=f(()=>P.value.style.chart.grid),V=f(()=>P.value.style.chart.dataLabels),H=f(()=>P.value.style.chart);ge({config:()=>P.value,dataset:()=>C.dataset,component:`VueUiXyCanvas`,rules:[_e.emptyArray,{test:e=>e.every(e=>e.series.length<300),message:[`👀 Series have < 300 datapoints. Consider:`,``,`▶️ Using VueUiXy instead, if you need more options, or more customization possibilities.`]},{test:e=>e.some(e=>e.series.length>1e4),message:[`👀 The dataset has > 10_000 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance can be impacted. JS runtime might crash with > 100_000 datapoints.`]}]});let fn=f(()=>{let e=H.value.title.text||`XY chart`,t=X.value.end-X.value.start;return`${e}. ${Y.value.filter(e=>!D.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`}),pn=f(()=>{if(j.value===null)return``;let e=j.value+X.value.start;return`${_i.value[j.value]?I.value.useDefaultTimeFormat?vi.value[j.value]?.text:Pr.value[j.value]?.text:$.value[e]?.text??`Point ${e+1}`}. ${Y.value.filter(e=>!D.value.includes(e.absoluteIndex)).map(e=>{let t=e.series[j.value],n=t?.value??t??null;return`${e.name}: ${n}`}).join(`. `)}.`}),mn=f(()=>F.value.useCursorPointer),hn=f(()=>P.value.debug);it(()=>{un[`chart-background`]&&hn.value&&console.warn(`VueUiXyCanvas does not support the #chart-background slot.`)});let gn=f(()=>oe({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,grid:{x:{axisColor:`#6A6A6A`,timeLabels:{show:!1},axisName:``,horizontalLines:{color:`#6A6A6A`}},y:{axisColor:`#6A6A6A`,axisLabels:{show:!1},axisName:``,verticalLines:{color:`#6A6A6A`}},zeroLine:{color:`#6A6A6A`}},legend:{backgroundColor:`#99999930`},paddingProportions:{left:.05},scale:{max:null,min:null},zoom:{endIndex:null,startIndex:null}}}},userConfig:P.value.skeletonConfig??{}})),{loading:_n,FINAL_DATASET:vn}=me({...lt(C),FINAL_CONFIG:P,prepareConfig:wn,skeletonDataset:C.config?.skeletonDataset??[{name:``,series:[0,1,2,3,5,8,13,21,34,55,89,134],type:`line`,smooth:!0,color:`#BABABA`},{name:``,series:[0,.5,1,1.5,2.5,4,6.5,10.5,17,27.5,44.5,67],type:`bar`,color:`#AAAAAA`}],skeletonConfig:oe({defaultConfig:P.value,userConfig:gn.value})}),{userOptionsVisible:yn,setUserOptionsVisibility:bn,keepUserOptionState:xn}=He({config:P.value}),{svgRef:U}=Ue({config:H.value.title});function Sn(){bn(!0)}function Cn(){bn(!1),N(`selectX`,{dataset:null,index:null,indexLabel:null}),E.value=null}function wn(){let e=ye({userConfig:C.config,defaultConfig:jt}),t={},n=e.theme;if(n){if(!Mt.value(e))Nt(e),t=e;else{let r=ye({userConfig:Ge[n]||C.config,defaultConfig:e});t={...ye({userConfig:C.config,defaultConfig:r}),customPalette:e.customPalette.length?e.customPalette:se[n]||o}}}else t=e;return C.config&&fe(C.config,`style.chart.grid.y.timeLabels`)&&(console.warn(`VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels.`),t.style.chart.grid.x.timeLabels=ye({defaultConfig:t.style.chart.grid.x.timeLabels,userConfig:C.config.style.chart.grid.y.timeLabels})),t}let Tn=te(C.config);x(()=>C.config,(e,t)=>{let n=te(e),r=n!==Tn;Tn=n;let i=wn();r?(_n.value||(P.value=i),yn.value=!F.value.showOnChartHover,Ni(),Xt.value+=1,Zt.value+=1,Qt.value+=1,W.value.showTable=P.value.table.show,W.value.showDataLabels=V.value.show,W.value.stacked=H.value.stacked,W.value.showTooltip=I.value.show):(P.value.style.chart.tooltip=i.style.chart.tooltip,W.value.showTooltip=P.value.style.chart.tooltip.show)},{deep:!0}),x(()=>C.dataset,async e=>{Array.isArray(e)&&e.length!==0&&(await et(),U.value&&!w.value&&(w.value=U.value.getContext(`2d`,{willReadFrequently:!0})),O.value=!0,Ht.value=!0,await pr(),Cr(),Xt.value+=1,Zt.value+=1,Qt.value+=1)},{deep:!0});let En=v(H.value.aspectRatio),{isPrinting:Dn,isImaging:On,generatePdf:kn,generateImage:An}=je({elementId:`xy_canvas_${Pt.value}`,fileName:H.value.title.text||`vue-ui-xy-canvas`,options:F.value.print}),W=v({showTable:P.value.table.show,showDataLabels:V.value.show,stacked:H.value.stacked,showTooltip:I.value.show});function jn(e){Gt.value=e,Wt.value+=1}let Mn=f(()=>de(P.value.customPalette)),Nn=f(()=>D.value.length===J.value.length),G=f(()=>J.value?Math.max(...J.value.filter((e,t)=>Nn.value?!0:!D.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0);function Pn(e){A.value=e,Jr()}let Fn=v(0),In=v(0);function Ln(){if(!w.value||!z.value.show)return 0;let e=$.value||[],t=X.value.start??0,n=X.value.end??0;if(!Math.max(0,n-t))return 0;let r=Math.round(T.value/40*z.value.fontSizeRatio),i=`${z.value.bold?`bold `:``}${r}px ${P.value.style.fontFamily}`;w.value.save(),w.value.font=i;let a=0;for(let r=t;r<n;r+=1){let t=e[r]?.text??`${r+1}`,n=w.value.measureText(String(t));n.width>a&&(a=n.width)}w.value.restore();let o=(z.value.rotation||0)*Math.PI/180,s=r,c=Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s,l=z.value.offsetY||1,u=T.value/l;return Math.max(0,u+c+4)}function Rn(){Fn.value=Ln()}function zn(){In.value&&cancelAnimationFrame(In.value),In.value=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Rn()})})}rt(()=>{In.value&&cancelAnimationFrame(In.value)});let K=f(()=>{let e=T.value-T.value*(H.value.paddingProportions.left+H.value.paddingProportions.right),t=Lt.value*H.value.paddingProportions.top,n=Lt.value*H.value.paddingProportions.bottom,r=Fn.value,i=Lt.value-n-r,a=Lt.value-(t+n)-r;return{canvasWidth:T.value,canvasHeight:Lt.value,left:T.value*H.value.paddingProportions.left,top:t,right:T.value-T.value*H.value.paddingProportions.right,bottom:i,width:e,height:a,slot:e/(X.value.end-X.value.start)}});function Bn(e,t){return e/t}function Vn({hasAutoScale:e,series:t,min:n,max:r,scale:i,yOffset:a,individualHeight:o,stackIndex:s=null}){return t.map((t,n)=>{let r=i.min<0?Math.abs(i.min):0,c=Bn(t+r,r+i.max),l,u;e&&(l=i.min,u=Bn(t-l,i.max-l));let ee=0;return ee=s===null?K.value.bottom-K.value.height*(e?u:c):K.value.bottom-a-o*(e?u:c),{x:K.value.left+K.value.slot*n+K.value.slot/2,y:ee,value:t}})}let Hn=f(()=>{let e=/* @__PURE__ */ new Map;for(let t of J.value){let n=1/0,r=-1/0;for(let e of t.series.slice(X.value.start,X.value.end))n=Math.min(n,e),r=Math.max(r,e);e.set(t.absoluteIndex,{min:n,max:r})}return e}),Un=f(()=>{let e=1/0,t=-1/0;for(let n of J.value){if(D.value.includes(n.absoluteIndex))continue;let r=Hn.value.get(n.absoluteIndex);e=Math.min(e,r.min),t=Math.max(t,r.max)}return{min:e,max:t}}),q=f(()=>{let e=H.value.scale.min===null?Un.value.min:H.value.scale.min,t=H.value.scale.max===null?Un.value.max:H.value.scale.max,n=ne(e<0?e:0,t===e?e+1<0?0:e+1:t<0?0:t,H.value.scale.ticks),r=n.min<0?Math.abs(n.min):0,i=K.value.bottom-K.value.height*(r/(n.max+r));return{absoluteMin:r,max:t,min:e,scale:n,yLabels:n.ticks.map(e=>({y:K.value.bottom-K.value.height*((e+r)/(n.max+r)),x:K.value.left-8,value:e})),zero:i}}),Wn=f(()=>Y.value.map(e=>`
2
2
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
3
3
  <svg viewBox="0 0 10 10" height="12" width="12">
4
4
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.28.8",
4
+ "version": "3.28.9",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as n}from"./img-D4RQwASc.js";import{t as r}from"./BaseIcon-CoY0vuL3.js";import{t as i}from"./vClickOutside-BxNzkY17.js";import{Fragment as a,computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,createVNode as d,guardReactiveProps as f,nextTick as p,normalizeClass as m,normalizeProps as h,normalizeStyle as g,onBeforeUnmount as _,onMounted as v,openBlock as y,ref as b,renderList as ee,renderSlot as x,toDisplayString as te,unref as S,watch as ne,withDirectives as re,withKeys as ie,withModifiers as C}from"vue";var w=/* @__PURE__ */ new WeakMap;function ae(e){if(!e?.classList||e.classList.contains(`vue-ui-graph`))return{enter(){},stop(){}};if(w.has(e))return w.get(e);let t=e.clientWidth||e.getBoundingClientRect().width||800,n=/* @__PURE__ */ new Set,r=null,i,a,o=!1,s=1,c=1,l=[`--vdui-fullscreen-width`,`--vdui-fullscreen-scale`,`--vdui-fullscreen-chrome-width`,`--vdui-fullscreen-chrome-scale`,`--vdui-fullscreen-pan-height`,`--vdui-fullscreen-chart-width`].map(t=>[t,e.style.getPropertyValue(t),e.style.getPropertyPriority(t)]);function u(t,n){e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n)}function d(){if(r=null,!o||!e.isConnected)return;u(`--vdui-fullscreen-width`,`${t}px`),u(`--vdui-fullscreen-scale`,String(s));for(let t of e.children){let e=getComputedStyle(t);e.position!==`absolute`&&e.position!==`fixed`&&(n.has(t)||(n.add(t),t.setAttribute(`data-vdui-fullscreen-content`,``),i?.observe(t)))}let a=Math.max(1,e.clientWidth-32),l=Math.max(1,e.clientHeight-32);u(`--vdui-fullscreen-chrome-width`,`${a/c}px`),u(`--vdui-fullscreen-chrome-scale`,String(c));let d=0,p=0,m=0,h=t;for(let t of n){if(!e.contains(t)){i?.unobserve(t),n.delete(t);continue}let r=getComputedStyle(t);if(r.position===`absolute`||r.position===`fixed`){t.removeAttribute(`data-vdui-fullscreen-content`),t.removeAttribute(`data-vdui-fullscreen-visual`),t.removeAttribute(`data-vdui-fullscreen-pan-zoom`),i?.unobserve(t),n.delete(t);continue}if(r.display===`none`)continue;let a=!t.hasAttribute(`data-vdui-fullscreen-control`)&&(t.matches(`svg, canvas, table`)||!!t.querySelector(`canvas, table`)||[...t.querySelectorAll(`svg`)].some(e=>!e.closest(`[data-vdui-fullscreen-control]`)&&(e.matches(`.vue-data-ui-svg, .vue-data-ui-fullscreen--on`)||e.clientWidth>128)));a!==t.hasAttribute(`data-vdui-fullscreen-visual`)&&(t.toggleAttribute(`data-vdui-fullscreen-visual`,a),f());let o=t.matches(`svg[data-vdui-pan-zoom]`)||!!t.querySelector(`svg[data-vdui-pan-zoom]`);o!==t.hasAttribute(`data-vdui-fullscreen-pan-zoom`)&&(t.toggleAttribute(`data-vdui-fullscreen-pan-zoom`,o),f()),o&&(d+=1);let l=t.getBoundingClientRect(),u=a?s:c,g=l.height/u+(parseFloat(r.marginTop)||0)+(parseFloat(r.marginBottom)||0);a?o||(h=Math.max(h,l.width/s),p+=g):m+=g}let g=Math.min(96,l/3),_=Math.min(1,(l-g)/Math.max(1,m));Math.abs(_-c)*Math.max(1,m)>.25&&(c=_,u(`--vdui-fullscreen-chrome-scale`,String(c)),u(`--vdui-fullscreen-chrome-width`,`${a/c}px`),f()),d&&u(`--vdui-fullscreen-pan-height`,`${Math.max(1,l-m*c-p*s)/d}px`);let v=Math.min(a/h,Math.max(1,l-m*c)/Math.max(1,p));Number.isFinite(v)&&v>0&&Math.abs(v-s)*Math.max(1,h,p)>.25&&(s=v,u(`--vdui-fullscreen-scale`,String(s))),u(`--vdui-fullscreen-chart-width`,`${Math.min(a,t*s)/c}px`)}function f(){o&&r===null&&(r=requestAnimationFrame(d))}function p(){document.fullscreenElement!==e&&h()}function m(){o||(o=!0,e.setAttribute(`data-vdui-fullscreen-layout`,``),u(`--vdui-fullscreen-width`,`${t}px`),u(`--vdui-fullscreen-scale`,`1`),u(`--vdui-fullscreen-chrome-scale`,`1`),u(`--vdui-fullscreen-chrome-width`,`${Math.max(1,e.clientWidth-32)}px`),i=new ResizeObserver(f),i.observe(e),a=new MutationObserver(e=>{e.some(e=>!(e.target instanceof SVGElement))&&f()}),a.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`style`,`class`]}),window.addEventListener(`resize`,f),document.addEventListener(`fullscreenchange`,p),d())}function h(){if(!o)w.get(e)===g&&w.delete(e);else{o=!1,r!==null&&cancelAnimationFrame(r),r=null,i?.disconnect(),a?.disconnect(),window.removeEventListener(`resize`,f),document.removeEventListener(`fullscreenchange`,p),w.delete(e),e.removeAttribute(`data-vdui-fullscreen-layout`);for(let e of n)e.removeAttribute(`data-vdui-fullscreen-content`),e.removeAttribute(`data-vdui-fullscreen-visual`),e.removeAttribute(`data-vdui-fullscreen-pan-zoom`);n.clear();for(let[t,n,r]of l)n?e.style.setProperty(t,n,r):e.style.removeProperty(t);s=1,c=1}}let g={enter:m,stop:h};return w.set(e,g),g}var oe={beforeMount(e,t){let n=()=>typeof t.value==`function`?{handler:t.value,targets:[e],disabled:!1,scrollGuardMs:250,moveThreshold:10}:{handler:t.value?.handler,targets:t.value?.targets??[e],disabled:!!t.value?.disabled,scrollGuardMs:t.value?.scrollGuardMs??250,moveThreshold:t.value?.moveThreshold??10},r={lastScrollTs:0,pointerId:null,startX:0,startY:0,moved:!1},i=()=>{r.lastScrollTs=performance.now()},a=e=>{r.pointerId=e.pointerId??null,r.startX=e.clientX??0,r.startY=e.clientY??0,r.moved=!1},o=e=>{if(r.pointerId===null||(e.pointerId??null)!==r.pointerId)return;let t=(e.clientX??0)-r.startX,i=(e.clientY??0)-r.startY,{moveThreshold:a}=n();t*t+i*i>=a*a&&(r.moved=!0)},s=e=>{r.pointerId!==null&&(e.pointerId??null)===r.pointerId&&(r.pointerId=null)},c=(e,t)=>{let n=e.composedPath?e.composedPath():[];for(let r of t){let t=r&&typeof r==`object`&&`value`in r?r.value:r;if(t&&(t===e.target||t.contains&&t.contains(e.target)||n.length&&n.includes(t)))return!0}return!1},l=e=>{let{handler:t,targets:i,disabled:a,scrollGuardMs:o}=n();a||typeof t==`function`&&(performance.now()-r.lastScrollTs<o||r.moved||c(e,i)||t(e))};e.__vPopoverClickOutside__={onScrollCapture:i,onPointerDownCapture:a,onPointerMoveCapture:o,onPointerUpCapture:s,onClickCapture:l},window.addEventListener(`scroll`,i,!0),document.addEventListener(`pointerdown`,a,!0),document.addEventListener(`pointermove`,o,!0),document.addEventListener(`pointerup`,s,!0),document.addEventListener(`click`,l,!0)},unmounted(e){let t=e.__vPopoverClickOutside__;t&&(window.removeEventListener(`scroll`,t.onScrollCapture,!0),document.removeEventListener(`pointerdown`,t.onPointerDownCapture,!0),document.removeEventListener(`pointermove`,t.onPointerMoveCapture,!0),document.removeEventListener(`pointerup`,t.onPointerUpCapture,!0),document.removeEventListener(`click`,t.onClickCapture,!0),delete e.__vPopoverClickOutside__)}},T=/* @__PURE__ */ e({default:()=>E}),se=[`title`,`onKeydown`],ce=[`popover`,`data-open`],le=[`onClick`,`onMouseenter`,`onMouseout`],ue=[`title`],de=[`data-open`],fe=[`onClick`,`onMouseenter`,`onMouseout`],E=/*#__PURE__*/ t({__name:`UserOptions`,props:{hasAnalyze:{type:Boolean,default:!1},hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasSvg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:`right`},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1},callbacks:{type:Object,default(){return{}}},printScale:{type:Number,default:2},tableDialog:{type:Boolean,default:!1},hasZoom:{type:Boolean,default:!1},isZoom:{type:Boolean,default:!1},isCursorPointer:{type:Boolean,default:!1},hasAltCopy:{type:Boolean,default:!1}},emits:[`analyze`,`generatePdf`,`generateCsv`,`generateImage`,`toggleTable`,`toggleLabels`,`toggleSort`,`toggleFullscreen`,`toggleStack`,`toggleTooltip`,`toggleAnimation`,`toggleAnnotator`,`generateSvg`,`toggleZoom`,`copyAlt`],setup(e,{expose:t,emit:w}){let T=e,E=w,D=b(null),O=b(null),k=b(null),A=b(!1),j=o(()=>typeof window<`u`&&typeof HTMLElement<`u`&&`popover`in HTMLElement.prototype);async function pe(){if(T.callbacks.pdf){let{imageUri:e,base64:t}=await n({domElement:T.chartElement,base64:!0,img:!0,scale:T.printScale});T.callbacks.pdf({domElement:T.chartElement,base64:t,imageUri:e})}else E(`generatePdf`)}function me(){E(`generateCsv`,T.callbacks.csv)}async function he(){if(T.callbacks.img){E(`generateImage`,{stage:`start`});try{let{imageUri:e,base64:t}=await n({domElement:T.chartElement,base64:!0,img:!0,scale:T.printScale});await Promise.resolve(T.callbacks.img({domElement:T.chartElement,imageUri:e,base64:t}))}finally{E(`generateImage`,{stage:`end`})}}else E(`generateImage`)}function ge(){E(`generateSvg`,{isCb:!!T.callbacks.svg})}let M=b(!1);function _e(){T.callbacks.table?T.callbacks.table():(M.value=!M.value,E(`toggleTable`))}function ve(e){M.value=e}t({setTableIconState:ve,setTooltipIconState:Se});let N=b(T.isLabelActive);function ye(){T.callbacks.labels?T.callbacks.labels():(N.value=!N.value,E(`toggleLabels`))}let P=b(T.isAnimation);function F(){T.callbacks.animation?T.callbacks.animation():(P.value=!P.value,E(`toggleAnimation`))}let I=b(T.isZoom);function L(){T.callbacks.zoom?T.callbacks.zoom():(I.value=!I.value,E(`toggleZoom`))}let R=o({get:()=>T.isAnnotation,set:e=>e});function z(){T.callbacks.annotator?T.callbacks.annotator():(R.value=!R.value,E(`toggleAnnotator`))}function be(){T.callbacks.sort?T.callbacks.sort():E(`toggleSort`)}function B(){E(`copyAlt`)}let V=b(T.isStacked);function xe(){T.callbacks.stack?T.callbacks.stack():(V.value=!V.value,E(`toggleStack`))}let H=b(T.isTooltip);function Se(e){H.value=e}function Ce(){T.callbacks.tooltip?T.callbacks.tooltip():(H.value=!H.value,E(`toggleTooltip`))}let U=null,W=null;function we(){W!==T.chartElement&&(U?.stop(),W=T.chartElement,U=ae(T.chartElement))}async function Te(){if(T.chartElement){we(),E(`toggleFullscreen`,!T.isFullscreen);try{document.fullscreenElement===T.chartElement?await document.exitFullscreen():await T.chartElement.requestFullscreen()}catch{U?.stop(),E(`toggleFullscreen`,!1)}}}function G(){let e=!!T.chartElement&&document.fullscreenElement===T.chartElement;e?(we(),U?.enter()):U?.stop(),e!==T.isFullscreen&&E(`toggleFullscreen`,e)}v(()=>{document.addEventListener(`fullscreenchange`,G),T.chartElement&&document.fullscreenElement===T.chartElement&&G()}),_(()=>{document.removeEventListener(`fullscreenchange`,G);let e=U,t=W;p(()=>{t?.isConnected&&document.fullscreenElement===t||e?.stop()})});let K=b(window.innerWidth>600),q=b({analyze:!1,tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1,svg:!1,zoom:!1,altCopy:!1}),Ee=b(!0);function De(){K.value=window.innerWidth>600,A.value=!A.value,A.value&&(Ee.value=!1)}function Oe(){T.isPrinting||T.isImaging||(A.value=!1)}function ke(){A.value&&Oe()}let J=b(0);function Ae(){J.value=performance.now()+50}function Y(){T.isPrinting||T.isImaging||(j.value&&Q(),A.value=!1)}function je(){performance.now()<J.value||Y()}function Me(){if(K.value=window.innerWidth>600,!j.value){A.value||Ae(),A.value=!A.value;return}let e=k.value;e&&e.matches&&e.matches(`:popover-open`)||A.value?(A.value=!1,Q()):(Ae(),A.value=!0)}function Ne(){Me()}function X(e,t,n,r){let i=window.devicePixelRatio||1,a=e=>Math.round(e*i)/i;e.style.position=`fixed`,e.style.top=`${a(t)}px`,e.style.left=`${a(n)}px`,e.style.right=`auto`,e.style.width=`${a(r)}px`}function Pe(e){if(e.style.width=``,e.style.left=``,e.style.right=``,e.style.top=``,e.style.position=`absolute`,e.style.top=`36px`,T.position===`right`){let t=T.offsetX?T.offsetX:T.noOffset?0:4;e.style.right=`${t}px`,e.style.left=`auto`}else{let t=T.noOffset?0:4;e.style.left=`${t}px`,e.style.right=`auto`}e.style.display=`flex`,e.style.visibility=`hidden`,e.style.pointerEvents=`none`}function Fe(){if(!j.value||!A.value||!D.value||!k.value)return;let e=D.value.getBoundingClientRect(),t=k.value.getBoundingClientRect(),n=e.top+38;if(T.position===`right`){let r=T.offsetX?T.offsetX:T.noOffset?0:4,i=e.right-r-t.width;X(k.value,n,i,t.width)}else{let r=T.noOffset?0:4,i=e.left+r;X(k.value,n,i,t.width)}}let Ie=0;function Le(){cancelAnimationFrame(Ie),Ie=requestAnimationFrame(()=>{Fe()})}function Z(){j.value&&A.value&&Le()}function Re(e,t){let n=window.devicePixelRatio||1,r=e=>Math.round(e*n)/n;e.style.position=`fixed`,e.style.top=`${r(t.top)}px`,e.style.left=`${r(t.left)}px`,e.style.right=`auto`,e.style.width=`${r(t.width)}px`}async function ze(e=!1){if(!j.value)return;let t=k.value;if(!t)return;let n=t.getAttribute(`style`)||``,r=t.getAttribute(`data-open`);t.setAttribute(`popover`,`manual`);try{t.setAttribute(`data-open`,`true`),Pe(t),await p();let i=t.getBoundingClientRect();t.setAttribute(`style`,n),r===null?t.removeAttribute(`data-open`):t.setAttribute(`data-open`,r),Re(t,i),e||(typeof t.showPopover==`function`?t.showPopover():t.style.display=`flex`)}catch{if(!e)try{typeof t.showPopover==`function`?t.showPopover():t.style.display=`flex`}catch{}}}function Q(){if(!j.value)return;let e=k.value;if(e){e.setAttribute(`popover`,`manual`);try{typeof e.hidePopover==`function`?e.hidePopover():e.style.display=`none`}catch{e.style.display=`none`}e.style.position=``,e.style.top=``,e.style.left=``,e.style.right=``,e.style.width=``,e.style.inset=``}}function Be(){if(!j.value)return;let e=k.value;e&&(A.value&&=typeof e.matches==`function`&&(()=>{try{return e.matches(`:popover-open`)}catch{return!1}})())}function Ve(e){if(!j.value||!A.value||performance.now()<J.value)return;let t=e.composedPath?e.composedPath():[],n=O.value?t.includes(O.value):!1,r=k.value?t.includes(k.value):!1;!n&&!r&&Y()}ne(()=>T.isFullscreen,async()=>{j.value&&(await p(),A.value&&ze())}),ne(()=>A.value,async e=>{j.value&&(await p(),e?(await ze(!1),Fe()):Q())});function He(e){e.key===`Escape`&&D.value&&D.value.contains(document.activeElement)&&(e.preventDefault(),e.stopPropagation(),Y(),O.value?.focus())}v(()=>{window.addEventListener(`pointerdown`,Ve,!0),window.addEventListener(`resize`,Z,{passive:!0}),window.addEventListener(`scroll`,Z,{passive:!0,capture:!0}),k.value&&k.value.addEventListener(`toggle`,Be)}),_(()=>{window.removeEventListener(`pointerdown`,Ve,!0),window.removeEventListener(`resize`,Z),window.removeEventListener(`scroll`,Z,!0),k.value&&k.value.removeEventListener(`toggle`,Be)});let Ue=o(()=>[{key:`pdf`,visible:T.hasPdf,slot:`optionPdf`,testId:`user-options-pdf`,run:pe,icon:`filePdf`,alternate:T.isPrinting,alternateIcon:`hourglass`,spin:!0},{key:`csv`,visible:T.hasXls,slot:`optionCsv`,testId:`user-options-xls`,run:me,icon:`fileCsv`},{key:`img`,visible:T.hasImg,slot:`optionImg`,testId:`user-options-img`,run:he,icon:`filePng`,alternate:T.isImaging,alternateIcon:`hourglass`,spin:!0},{key:`svg`,visible:T.hasSvg,slot:`optionSvg`,testId:`user-options-svg`,run:ge,icon:`fileSvg`},{key:`tooltip`,visible:T.hasTooltip,slot:`optionTooltip`,testId:`user-options-tooltip`,run:Ce,icon:`tooltipDisabled`,alternate:H.value,alternateIcon:`tooltip`},{key:`table`,visible:T.hasTable,slot:`optionTable`,testId:`user-options-table`,run:_e,icon:M.value?`tableClose`:`tableOpen`,alternate:T.tableDialog,alternateIcon:M.value?`tableDialogClose`:`tableDialogOpen`},{key:`labels`,visible:T.hasLabel,slot:`optionLabels`,testId:`user-options-label`,run:ye,icon:N.value?`labelClose`:`labelOpen`},{key:`sort`,visible:T.hasSort,slot:`optionSort`,testId:`user-options-sort`,run:be,icon:`sort`},{key:`stack`,visible:T.hasStack,slot:`optionStack`,testId:`user-options-stack`,run:xe,icon:`stack`,alternate:V.value,alternateIcon:`unstack`,slotProps:{first:{name:`isStack`,value:V.value}}},{key:`fullscreen`,visible:T.hasFullscreen,slot:`optionFullscreen`,testId:`user-options-fullscreen`,run:()=>Te(T.isFullscreen?`out`:`in`),icon:`fullscreen`,alternate:T.isFullscreen,alternateIcon:`exitFullscreen`,slotProps:{first:{name:`toggleFullscreen`,value:Te},second:{name:`isFullscreen`,value:T.isFullscreen}}},{key:`zoom`,visible:T.hasZoom,slot:`optionZoom`,testId:`user-options-fullscreen`,run:()=>L(),icon:`zoomLock`,alternate:T.isZoom,alternateIcon:`zoomUnlock`,slotProps:{first:{name:`toggleZoom`,value:L},second:{name:`isZoomLocked`,value:!T.isZoom}}},{key:`animation`,visible:T.hasAnimation,slot:`optionAnimation`,testId:`user-options-anim`,run:F,icon:`pause`,alternate:P.value,alternateIcon:`play`,slotProps:{first:{name:`toggleAnimation`,value:F},second:{name:`isAnimated`,value:P.value}}},{key:`annotator`,visible:T.hasAnnotator,slot:`optionAnnotator`,testId:`user-options-annotator`,run:z,icon:`annotator`,alternate:R.value,alternateIcon:`annotatorDisabled`,slotProps:{first:{name:`toggleAnnotator`,value:z},second:{name:`isAnnotator`,value:R.value}}},{key:`analyze`,visible:T.hasAnalyze,slot:`optionAnalyze`,testId:`user-options-analyze`,run:()=>E(`analyze`),icon:`analyze`},{key:`altCopy`,visible:T.hasAltCopy,slot:`optionAltCopy`,testId:`user-options-alt-copy`,run:B,icon:`accessibility`,slotProps:{first:{name:`copyAlt`,value:B}}}]);function $(e){let t={"button-info-left":T.position===`left`,"button-info-right":T.position===`right`},n=T.position===`left`&&q.value[e],r=T.position===`right`&&q.value[e];return e===`tooltip`?{...t,"button-info-left-visible":n,"button-info-right-visible":r}:{...t,"button-info-right-visible":r,"button-info-left-visible":n}}return(t,n)=>j.value?re((y(),l(`div`,{key:0,ref_key:`rootRef`,ref:D,"data-dom-to-png-ignore":``,class:`vue-ui-user-options`,style:g(`z-index: ${e.zIndex}; height: 34px; position: ${e.isFullscreen?`fixed`:`absolute`}; top: 0; ${e.position===`right`?`right:${e.isFullscreen?`12px`:`0`}`:`left:${e.isFullscreen?`12px`:`0`}`}; padding: 4px; background:transparent;`),onKeydown:He},[u(`div`,{ref_key:`triggerRef`,ref:O,tabindex:`0`,role:`button`,title:A.value?e.titles.close||``:e.titles.open||``,style:g(`width:32px; position: absolute; top: 0;${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:${e.isCursorPointer?`pointer`:`default`}; background:transparent`),onPointerdown:C(Me,[`stop`,`prevent`]),onKeydown:ie(C(Ne,[`stop`,`prevent`]),[`enter`])},[x(t.$slots,`menuIcon`,h(f({isOpen:A.value,color:e.color})),()=>[d(r,{name:A.value?`close`:`menu`,stroke:e.color,"stroke-width":2},null,8,[`name`,`stroke`])],!0)],44,se),u(`div`,{ref_key:`drawerRef`,ref:k,popover:j.value?`manual`:null,"data-open":j.value?null:A.value,class:m({"vue-ui-user-options-drawer":!0}),style:g(j.value?{background:e.backgroundColor}:`background:${e.backgroundColor}; ${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}`)},[x(t.$slots,`custom-menu-before`,{},void 0,!0),(y(!0),l(a,null,ee(Ue.value,n=>(y(),l(a,{key:n.key},[n.visible?(y(),l(`button`,{key:0,tabindex:`0`,class:`vue-ui-user-options-button`,onClick:n.run,onMouseenter:e=>q.value[n.key]=!0,onMouseout:e=>q.value[n.key]=!1,style:g({cursor:e.isCursorPointer?`pointer`:`default`})},[t.$slots[n.slot]?(y(),l(a,{key:0},[n.slotProps?n.slotProps.second?x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value,[n.slotProps.second.name||``]:n.slotProps.second.value}),void 0,!0,2):x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value}),void 0,!0,1):x(t.$slots,n.slot,{},void 0,!0,0)],64)):(y(),l(a,{key:1},[n.alternate?(y(),s(r,{key:0,name:n.alternateIcon,isSpin:n.spin,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`isSpin`,`stroke`])):(y(),s(r,{key:1,name:n.icon,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`stroke`]))],64)),K.value&&e.titles[n.key===`animation`?`fullscreen`:n.key]?(y(),l(`div`,{key:2,dir:`auto`,class:m($(n.key)),style:g({background:e.backgroundColor,color:e.color})},te(e.titles[n.key]),7)):c(``,!0)],44,le)):c(``,!0)],64))),128)),x(t.$slots,`custom-menu-after`,{},void 0,!0)],12,ce)],36)),[[S(oe),j.value?null:{targets:[D.value,k.value,O.value],handler:je}]]):re((y(),l(`div`,{key:1,ref_key:`rootRef`,ref:D,"data-dom-to-png-ignore":``,class:`vue-ui-user-options`,style:g(`z-index: ${e.zIndex}; height: 34px; position: ${e.isFullscreen?`fixed`:`absolute`}; top: 0; ${e.position===`right`?`right:${e.isFullscreen?`12px`:`0`}`:`left:${e.isFullscreen?`12px`:`0`}`}; padding: 4px; background:transparent;`),onKeydown:He},[u(`div`,{ref_key:`triggerRef`,ref:O,tabindex:`0`,title:A.value?e.titles.close||``:e.titles.open||``,style:g(`width:32px; position: absolute; top: 0;${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:C(De,[`stop`]),onKeypress:ie(De,[`enter`])},[x(t.$slots,`menuIcon`,h(f({isOpen:A.value,color:e.color})),()=>[d(r,{name:A.value?`close`:`menu`,stroke:e.color,"stroke-width":2},null,8,[`name`,`stroke`])],!0)],44,ue),u(`div`,{ref_key:`drawerRef`,ref:k,"data-open":A.value,class:m({"vue-ui-user-options-drawer":!0}),style:g(`background:${e.backgroundColor}; ${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}`)},[x(t.$slots,`custom-menu-before`,{},void 0,!0),(y(!0),l(a,null,ee(Ue.value,n=>(y(),l(a,{key:n.key},[n.visible?(y(),l(`button`,{key:0,tabindex:`0`,class:`vue-ui-user-options-button`,onClick:e=>n.run(e),onMouseenter:e=>q.value[n.key]=!0,onMouseout:e=>q.value[n.key]=!1},[t.$slots[n.slot]?(y(),l(a,{key:0},[n.slotProps?n.slotProps.second?x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value,[n.slotProps.second.name||``]:n.slotProps.second.value}),void 0,!0,2):x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value}),void 0,!0,1):x(t.$slots,n.slot,{},void 0,!0,0)],64)):(y(),l(a,{key:1},[n.alternate?(y(),s(r,{key:0,name:n.alternateIcon,isSpin:n.spin,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`isSpin`,`stroke`])):(y(),s(r,{key:1,name:n.icon,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`stroke`]))],64)),K.value&&e.titles[n.key===`animation`?`fullscreen`:n.key]?(y(),l(`div`,{key:2,dir:`auto`,class:m($(n.key)),style:g({background:e.backgroundColor,color:e.color})},te(e.titles[n.key]),7)):c(``,!0)],40,fe)):c(``,!0)],64))),128)),x(t.$slots,`custom-menu-actions`,{},void 0,!0)],12,de)],36)),[[S(i),ke]])}},[[`__scopeId`,`data-v-cab0147c`]]);export{T as n,E as t};
@@ -1 +0,0 @@
1
- var e=`3.28.8`;export{e as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./BaseIcon-CoY0vuL3.js";import{computed as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createSlots as s,createTextVNode as c,defineAsyncComponent as l,guardReactiveProps as u,mergeProps as d,normalizeProps as f,normalizeStyle as p,onMounted as m,openBlock as h,ref as g,renderList as _,renderSlot as v,resolveDynamicComponent as y,toDisplayString as b,useAttrs as x,watch as S,withCtx as C}from"vue";var w=/* @__PURE__ */ e({default:()=>E}),T={style:{width:`36px`}},E=/*@__PURE__*/ Object.assign({inheritAttrs:!1},{__name:`vue-data-ui`,props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},setup(e,{expose:w}){let E=e,D=x(),O={VueUiGraph:l(()=>import(`./vue-ui-graph-DScVnTzu.js`).then(e=>e.n)),VueUi3dBar:l(()=>import(`./vue-ui-3d-bar-DmRrbXjK.js`).then(e=>e.n)),VueUiAgePyramid:l(()=>import(`./vue-ui-age-pyramid-CJJIp5gY.js`).then(e=>e.n)),VueUiAnnotator:l(()=>import(`./vue-ui-annotator-BnR2XnsL.js`).then(e=>e.n)),VueUiCandlestick:l(()=>import(`./vue-ui-candlestick-C_swW8gM.js`).then(e=>e.n)),VueUiChestnut:l(()=>import(`./vue-ui-chestnut-CIGNqBsT.js`).then(e=>e.n)),VueUiDashboard:l(()=>import(`./vue-ui-dashboard-HyzHqAtX.js`).then(e=>e.n)),VueUiDigits:l(()=>import(`./vue-ui-digits-CfdB0vaP.js`).then(e=>e.n)),VueUiDonut:l(()=>import(`./vue-ui-donut-Cv-bYyBN.js`).then(e=>e.n)),VueUiDonutEvolution:l(()=>import(`./vue-ui-donut-evolution-DL112anx.js`).then(e=>e.n)),VueUiGalaxy:l(()=>import(`./vue-ui-galaxy-B8HgdBjc.js`).then(e=>e.n)),VueUiGauge:l(()=>import(`./vue-ui-gauge-B1A_NFY6.js`).then(e=>e.n)),VueUiHeatmap:l(()=>import(`./vue-ui-heatmap-BbQseEbM.js`).then(e=>e.n)),VueUiKpi:l(()=>import(`./vue-ui-kpi-CF7pAl08.js`).then(e=>e.n)),VueUiMiniLoader:l(()=>import(`./vue-ui-mini-loader-OLYDdN3T.js`).then(e=>e.n)),VueUiMolecule:l(()=>import(`./vue-ui-molecule-bAMGCA2Y.js`).then(e=>e.n)),VueUiMoodRadar:l(()=>import(`./vue-ui-mood-radar-CFpgxjuR.js`).then(e=>e.n)),VueUiNestedDonuts:l(()=>import(`./vue-ui-nested-donuts-CWY26iKX.js`).then(e=>e.n)),VueUiOnion:l(()=>import(`./vue-ui-onion-DsBUqL_c.js`).then(e=>e.n)),VueUiQuadrant:l(()=>import(`./vue-ui-quadrant-BkNG2LGm.js`).then(e=>e.n)),VueUiRadar:l(()=>import(`./vue-ui-radar-0H8CiLmc.js`).then(e=>e.n)),VueUiRating:l(()=>import(`./vue-ui-rating-B9HeTCLa.js`).then(e=>e.n)),VueUiRelationCircle:l(()=>import(`./vue-ui-relation-circle-B0BM4xf8.js`).then(e=>e.n)),VueUiRings:l(()=>import(`./vue-ui-rings-UtlBiaZZ.js`).then(e=>e.n)),VueUiScatter:l(()=>import(`./vue-ui-scatter-CduaARRt.js`).then(e=>e.n)),VueUiSkeleton:l(()=>import(`./vue-ui-skeleton-an0peDis.js`).then(e=>e.n)),VueUiSmiley:l(()=>import(`./vue-ui-smiley-Cht1imV-.js`).then(e=>e.n)),VueUiSparkbar:l(()=>import(`./vue-ui-sparkbar-DT3sDgda.js`).then(e=>e.n)),VueUiSparkgauge:l(()=>import(`./vue-ui-sparkgauge-AQt2L5dI.js`).then(e=>e.n)),VueUiSparkHistogram:l(()=>import(`./vue-ui-sparkhistogram-a_jc2Dv2.js`).then(e=>e.n)),VueUiSparkline:l(()=>import(`./vue-ui-sparkline-D2-KcHAU.js`).then(e=>e.n)),VueUiSparkStackbar:l(()=>import(`./vue-ui-sparkstackbar-CBI4S5cu.js`).then(e=>e.n)),VueUiTable:l(()=>import(`./vue-ui-table-lzolsJ_n.js`).then(e=>e.n)),VueUiTableSparkline:l(()=>import(`./vue-ui-table-sparkline-By319cB8.js`).then(e=>e.n)),VueUiThermometer:l(()=>import(`./vue-ui-thermometer-B3Uv3aWc.js`).then(e=>e.n)),VueUiTiremarks:l(()=>import(`./vue-ui-tiremarks-DeNdCFVD.js`).then(e=>e.n)),VueUiTreemap:l(()=>import(`./vue-ui-treemap-Ck9_llHA.js`).then(e=>e.n)),VueUiVerticalBar:l(()=>import(`./vue-ui-horizontal-bar-Do0HJy4f.js`).then(e=>e.n)),VueUiHorizontalBar:l(()=>import(`./vue-ui-horizontal-bar-Do0HJy4f.js`).then(e=>e.n)),VueUiWaffle:l(()=>import(`./vue-ui-waffle-BW2SacnV.js`).then(e=>e.n)),VueUiWheel:l(()=>import(`./vue-ui-wheel-BXDhx5bf.js`).then(e=>e.n)),VueUiXy:l(()=>import(`./vue-ui-xy-CMckdUft.js`).then(e=>e.n)),VueUiTableHeatmap:l(()=>import(`./vue-ui-table-heatmap-D6gpmHg8.js`).then(e=>e.n)),VueUiAccordion:l(()=>import(`./vue-ui-accordion-DFxSW8ET.js`).then(e=>e.n)),VueUiQuickChart:l(()=>import(`./vue-ui-quick-chart-CYxvgVpD.js`).then(e=>e.n)),VueUiCursor:l(()=>import(`./vue-ui-cursor-DRQc_V2R.js`).then(e=>e.n)),VueUiSparkTrend:l(()=>import(`./vue-ui-spark-trend-DCP7blHB.js`).then(e=>e.n)),VueUiStripPlot:l(()=>import(`./vue-ui-strip-plot-bYGhsPA5.js`).then(e=>e.n)),VueUiDumbbell:l(()=>import(`./vue-ui-dumbbell-owG24VsQ.js`).then(e=>e.n)),VueUiWordCloud:l(()=>import(`./vue-ui-word-cloud-DKPtoruY.js`).then(e=>e.n)),VueUiXyCanvas:l(()=>import(`./vue-ui-xy-canvas-CBrKi3nN.js`).then(e=>e.n)),VueUiFlow:l(()=>import(`./vue-ui-flow-BMNIydqI.js`).then(e=>e.n)),VueUiParallelCoordinatePlot:l(()=>import(`./vue-ui-parallel-coordinate-plot-BF3gO85b.js`).then(e=>e.n)),VueUiTimer:l(()=>import(`./vue-ui-timer-C6Pevf4N.js`).then(e=>e.n)),VueUiCarouselTable:l(()=>import(`./vue-ui-carousel-table-BP_yVdDm.js`).then(e=>e.n)),VueUiGizmo:l(()=>import(`./vue-ui-gizmo-D0QjzIGt.js`).then(e=>e.n)),VueUiStackbar:l(()=>import(`./vue-ui-stackbar-DS_31-a3.js`).then(e=>e.n)),VueUiStackline:l(()=>import(`./vue-ui-stackline-CuxohB0U.js`).then(e=>e.n)),VueUiBullet:l(()=>import(`./vue-ui-bullet-Br7H7FSM.js`).then(e=>e.n)),VueUiFunnel:l(()=>import(`./vue-ui-funnel-BsVS3vuI.js`).then(e=>e.n)),VueUiHistoryPlot:l(()=>import(`./vue-ui-history-plot-Bx4WYG6U.js`).then(e=>e.n)),VueUiCirclePack:l(()=>import(`./vue-ui-circle-pack-CtdPeMsY.js`).then(e=>e.n)),VueUiWorld:l(()=>import(`./vue-ui-world-D9vpDbN7.js`).then(e=>e.n)),VueUiRidgeline:l(()=>import(`./vue-ui-ridgeline-D-fDuE3y.js`).then(e=>e.n)),VueUiChord:l(()=>import(`./vue-ui-chord-DZRFBkRJ.js`).then(e=>e.n)),VueUiDag:l(()=>import(`./vue-ui-dag-Cj0CcntI.js`).then(e=>e.n)),VueUiGeo:l(()=>import(`./vue-ui-geo-_TG4jaV9.js`).then(e=>e.n)),VueUiBump:l(()=>import(`./vue-ui-bump-DCDHNvWE.js`).then(e=>e.n)),VueUiHill:l(()=>import(`./vue-ui-hill-D3V84h_t.js`).then(e=>e.n)),VueUiLabel:l(()=>import(`./vue-ui-label-W0oz08pp.js`).then(e=>e.n))},k=/* @__PURE__ */ new Set([`VueUiMiniLoader`,`VueUiSkeleton`,`VueUiAccordion`,`VueUiCursor`,`VueUiTimer`]),A=/* @__PURE__ */ `fitToView.focusNode.resetLayout.autoSize.cancel.close.copyAlt.focusLocation.generateCsv.generateImage.generatePdf.generateSvg.getItemsPositions.hideSeries.lap.pause.pauseAnimation.recalculateHeight.reset.resetZoom.restart.restoreOrder.resumeAnimation.save.selectGroup.selectNode.selectRibbon.setZoomState.shoot.showSeries.start.switchOrientation.toggleAnimation.toggleAnnotator.toggleLabels.toggleLock.toggleReadonly.toggleSort.toggleStack.toggleTable.toggleFullscreen.toggleTooltip.toggleZoom.zoomIn.zoomOut`.split(`.`),j=g(null),M=n(()=>!O[E.component]),N=n(()=>O[E.component]||null);function P(){let e={...D,config:E.config};return k.has(E.component)||(e.dataset=E.dataset),e}let F=[];function I(e,t){return new Promise((n,r)=>{F.push({method:e,args:t,resolve:n,reject:r})})}function L(e){return/* @__PURE__ */ Error(`Method "${e}" not found on ${E.component}`)}function R(e,t){let n=j.value;if(!n)return null;let r=n[e];return typeof r==`function`?r.apply(n,t):null}function z(e,t){let n=j.value;if(!n)return I(e,t);let r=n[e];return typeof r==`function`?r.apply(n,t):Promise.reject(L(e))}S(j,e=>{if(e)for(;F.length;){let{method:t,args:n,resolve:r,reject:i}=F.shift(),a=e[t];typeof a==`function`?Promise.resolve().then(()=>a.apply(e,n)).then(r).catch(i):i(L(t))}}),w({getData(...e){return z(`getData`,e)},getImage(e={}){let{scale:t=2}=e;return z(`getImage`,[{scale:t}])},...Object.fromEntries(A.map(e=>[e,(...t)=>R(e,t)]))}),m(()=>{M.value&&console.error(`\n\nVue Data UI exception:\nThe provided component "${E.component}" does not exist. Check the spelling.\n\nAvailable components:\n\n${Object.keys(O).map(e=>`. ${e}\n`).join(``)}`)});let B=n(()=>{let e=`The provided component ${E.component} does not exist.`;return[`VueUiIcon`,`VueUiPattern`,`Arrow`].includes(E.component)?(e=`${E.component} is not supported by the VueDataUi universal component. You must import it individually.`,console.warn(e),{status:`notSupported`,message:e}):(console.warn(e),{status:`unknown`,message:e})});return(e,n)=>M.value?(h(),a(`div`,{key:0,style:p({width:`100%`,display:`flex`,gap:`6px`,alignItems:`center`,color:B.value.status===`notSupported`?`#FF9000`:`#FF0000`})},[o(`div`,T,[B.value.status===`unknown`?(h(),r(t,{key:0,name:`moodFlat`,stroke:`#FF0000`})):i(``,!0),B.value.status===`notSupported`?(h(),r(t,{key:1,name:`circleExclamation`,stroke:`#FF9000`})):i(``,!0)]),c(` `+b(B.value.message),1)],4)):(h(),r(y(N.value),d({key:1,ref_key:`currentComponentRef`,ref:j},P()),s({_:2},[_(e.$slots,(t,n)=>({name:n,fn:C(t=>[v(e.$slots,n,f(u(t)))])}))]),1040))}});export{w as n,E as t};