vue-data-ui 3.29.2 → 3.29.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/dist/{Arrow-CITPKnWF.js → Arrow-DhkzHBsL.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DVstuNhT.js → BaseDraggableDialog-MyWIeEtr.js} +1 -1
  3. package/dist/{BaseIcon-CoY0vuL3.js → BaseIcon-CQFjKDhE.js} +1 -1
  4. package/dist/{BaseLegendToggle-VzX69MCo.js → BaseLegendToggle-CnQ_U5rI.js} +1 -1
  5. package/dist/{BaseZoomControls-D4i_j6vc.js → BaseZoomControls-OZwEB4vm.js} +1 -1
  6. package/dist/{ColorPicker-DmVnJGVv.js → ColorPicker-dbxPO2fg.js} +1 -1
  7. package/dist/{DataTable-KeuZB1JM.js → DataTable-BHW5xD9B.js} +1 -1
  8. package/dist/{HillActions-D--h5brJ.js → HillActions-KXWY_FyA.js} +1 -1
  9. package/dist/{Legend-W9YVYVX-.js → Legend-D5I3jeGD.js} +1 -1
  10. package/dist/{NonSvgPenAndPaper-B2kuh5Yb.js → NonSvgPenAndPaper-RQzq8DqO.js} +1 -1
  11. package/dist/{PackageVersion-C1vtZkKc.js → PackageVersion-B-1JX0wI.js} +1 -1
  12. package/dist/{PenAndPaper-BV5ODysA.js → PenAndPaper-B2UOwiJM.js} +1 -1
  13. package/dist/{Shape-CRe8woTu.js → Shape-DgpYvQc4.js} +1 -1
  14. package/dist/{SlicerPreview-BVgz_p4G.js → SlicerPreview-QaJuNJhX.js} +1 -1
  15. package/dist/{SparkTooltip-Ch06CV71.js → SparkTooltip-dnNSazTu.js} +1 -1
  16. package/dist/{StackChartTable-rTC6w378.js → StackChartTable-mMKxPOnc.js} +1 -1
  17. package/dist/{Title-BliHuXfT.js → Title-DlhGIAWX.js} +1 -1
  18. package/dist/{Tooltip-B432XpvC.js → Tooltip-CL3U31cL.js} +1 -1
  19. package/dist/UserOptions-B97cPcKc.js +1 -0
  20. package/dist/{XyAnalysisOptions-CD0cCtt5.js → XyAnalysisOptions-DeJOjnC3.js} +1 -1
  21. package/dist/{chartImage-DPGnEuYM.js → chartImage-Dvrx_F7P.js} +1 -1
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-graph.js +1 -1
  48. package/dist/components/vue-ui-heatmap.js +1 -1
  49. package/dist/components/vue-ui-hill.js +1 -1
  50. package/dist/components/vue-ui-history-plot.js +1 -1
  51. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  52. package/dist/components/vue-ui-icon.js +1 -1
  53. package/dist/components/vue-ui-kpi.js +1 -1
  54. package/dist/components/vue-ui-label.js +1 -1
  55. package/dist/components/vue-ui-mini-loader.js +1 -1
  56. package/dist/components/vue-ui-molecule.js +1 -1
  57. package/dist/components/vue-ui-mood-radar.js +1 -1
  58. package/dist/components/vue-ui-nested-donuts.js +1 -1
  59. package/dist/components/vue-ui-onion.js +1 -1
  60. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  61. package/dist/components/vue-ui-quadrant.js +1 -1
  62. package/dist/components/vue-ui-quick-chart.js +1 -1
  63. package/dist/components/vue-ui-radar.js +1 -1
  64. package/dist/components/vue-ui-rating.js +1 -1
  65. package/dist/components/vue-ui-relation-circle.js +1 -1
  66. package/dist/components/vue-ui-ridgeline.js +1 -1
  67. package/dist/components/vue-ui-rings.js +1 -1
  68. package/dist/components/vue-ui-scatter.js +1 -1
  69. package/dist/components/vue-ui-skeleton.js +1 -1
  70. package/dist/components/vue-ui-smiley.js +1 -1
  71. package/dist/components/vue-ui-spark-trend.js +1 -1
  72. package/dist/components/vue-ui-sparkbar.js +1 -1
  73. package/dist/components/vue-ui-sparkgauge.js +1 -1
  74. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  75. package/dist/components/vue-ui-sparkline.js +1 -1
  76. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  77. package/dist/components/vue-ui-stackbar.js +1 -1
  78. package/dist/components/vue-ui-stackline.js +1 -1
  79. package/dist/components/vue-ui-strip-plot.js +1 -1
  80. package/dist/components/vue-ui-table-heatmap.js +1 -1
  81. package/dist/components/vue-ui-table-sparkline.js +1 -1
  82. package/dist/components/vue-ui-table.js +1 -1
  83. package/dist/components/vue-ui-thermometer.js +1 -1
  84. package/dist/components/vue-ui-timer.js +1 -1
  85. package/dist/components/vue-ui-tiremarks.js +1 -1
  86. package/dist/components/vue-ui-treemap.js +1 -1
  87. package/dist/components/vue-ui-vertical-bar.js +1 -1
  88. package/dist/components/vue-ui-waffle.js +1 -1
  89. package/dist/components/vue-ui-wheel.js +1 -1
  90. package/dist/components/vue-ui-word-cloud.js +1 -1
  91. package/dist/components/vue-ui-world.js +1 -1
  92. package/dist/components/vue-ui-xy-canvas.js +1 -1
  93. package/dist/components/vue-ui-xy.js +1 -1
  94. package/dist/{dom-to-png-D56-Zgv4.js → dom-to-png-BciywWcQ.js} +1 -1
  95. package/dist/{exposedLib-BRtClmZy.js → exposedLib-BaycYTOv.js} +1 -1
  96. package/dist/{img-D4RQwASc.js → img-Dwb4XSud.js} +1 -1
  97. package/dist/{labelUtils-CdtU-yB_.js → labelUtils-D_AyGvLO.js} +1 -1
  98. package/dist/{lib-rPeBMZrn.js → lib-BaWaqwnJ.js} +7 -7
  99. package/dist/package-CfW2xYyy.js +1 -0
  100. package/dist/{pdf-CVdqBWVS.js → pdf-Bd6zav8D.js} +1 -1
  101. package/dist/{render-common-DNKT42_W.js → render-common-CxohOkPd.js} +1 -1
  102. package/dist/{resolveChartConfig-0IvbmIE_.js → resolveChartConfig-QgMumfgd.js} +1 -1
  103. package/dist/ssr/vue-ui-donut.js +1 -1
  104. package/dist/ssr/vue-ui-xy.js +1 -1
  105. package/dist/ssr.js +1 -1
  106. package/dist/style.css +1 -1
  107. package/dist/types/vue-data-ui.d.ts +29 -0
  108. package/dist/{useConfig-CXhXxWjB.js → useConfig-B-AzS3w-.js} +1 -1
  109. package/dist/{useNestedProp-DnGoh-XS.js → useNestedProp-ri-deXpG.js} +1 -1
  110. package/dist/{useObjectBindings-BCep9t8A.js → useObjectBindings-DsvXXciT.js} +1 -1
  111. package/dist/{usePrinter-DVf3YcG5.js → usePrinter-CUD8gosC.js} +1 -1
  112. package/dist/utils.js +1 -1
  113. package/dist/vue-data-ui-orKuQ-0A.js +1 -0
  114. package/dist/vue-data-ui.js +1 -1
  115. package/dist/{vue-ui-3d-bar-CNym5PLY.js → vue-ui-3d-bar-BxIOe5pW.js} +1 -1
  116. package/dist/{vue-ui-accordion-D3uT1Ynv.js → vue-ui-accordion-B8LYfVG9.js} +1 -1
  117. package/dist/{vue-ui-age-pyramid-zD6anIub.js → vue-ui-age-pyramid-CsQ6Zx79.js} +1 -1
  118. package/dist/{vue-ui-annotator-aP1DFNt9.js → vue-ui-annotator-xYv2xrXs.js} +1 -1
  119. package/dist/{vue-ui-bullet-CxhIb-XU.js → vue-ui-bullet-CsaTMHaa.js} +1 -1
  120. package/dist/{vue-ui-bump-B8WYM1RE.js → vue-ui-bump-BOVB5hWu.js} +1 -1
  121. package/dist/{vue-ui-candlestick-CwG1H80q.js → vue-ui-candlestick-C8W4sGST.js} +1 -1
  122. package/dist/{vue-ui-carousel-table-CdrxVrHZ.js → vue-ui-carousel-table-DAMT9bn5.js} +1 -1
  123. package/dist/{vue-ui-chestnut-CZG6Ep36.js → vue-ui-chestnut-XdPEyosT.js} +1 -1
  124. package/dist/{vue-ui-chord-DQS4tBWQ.js → vue-ui-chord-CeYpAizS.js} +1 -1
  125. package/dist/{vue-ui-circle-pack-BGbhvnE5.js → vue-ui-circle-pack-Brhoqu25.js} +1 -1
  126. package/dist/{vue-ui-cursor-DTRAPWBW.js → vue-ui-cursor-CieGBz32.js} +1 -1
  127. package/dist/{vue-ui-dag-BGNC8uRQ.js → vue-ui-dag-CC7fXGUn.js} +1 -1
  128. package/dist/{vue-ui-dashboard-DtPlz7y-.js → vue-ui-dashboard-C7oXScoZ.js} +1 -1
  129. package/dist/{vue-ui-digits-gtQiZcOT.js → vue-ui-digits-Cn_wqq4Y.js} +1 -1
  130. package/dist/{vue-ui-donut-COELw22T.js → vue-ui-donut-BHRes5Ak.js} +1 -1
  131. package/dist/{vue-ui-donut-_wqSXunY.js → vue-ui-donut-BXlWXh2v.js} +1 -1
  132. package/dist/{vue-ui-donut-evolution-CdztIQSl.js → vue-ui-donut-evolution-DHPd3KRv.js} +1 -1
  133. package/dist/{vue-ui-dumbbell-CpLMoEet.js → vue-ui-dumbbell-BmqFCL_t.js} +1 -1
  134. package/dist/{vue-ui-flow-DwG1MX2V.js → vue-ui-flow-CvRa8Ija.js} +1 -1
  135. package/dist/{vue-ui-funnel-CisiLlR9.js → vue-ui-funnel-Ds4JV24L.js} +1 -1
  136. package/dist/vue-ui-galaxy-DSHlkl9t.js +1 -0
  137. package/dist/{vue-ui-gauge-CVxKlU2U.js → vue-ui-gauge-2XPqwRR4.js} +1 -1
  138. package/dist/{vue-ui-geo-0PDP2JjE.js → vue-ui-geo-IDzNLYVX.js} +1 -1
  139. package/dist/{vue-ui-gizmo-mFeK8xP1.js → vue-ui-gizmo-BXEnFICN.js} +1 -1
  140. package/dist/{vue-ui-graph-Duw5qG0a.js → vue-ui-graph-DdY8jDH-.js} +2 -2
  141. package/dist/{vue-ui-heatmap-DZM9MvfE.js → vue-ui-heatmap-DmgXUHFz.js} +1 -1
  142. package/dist/{vue-ui-hill-BGQSrcHM.js → vue-ui-hill-CTuh5311.js} +1 -1
  143. package/dist/{vue-ui-history-plot-EGeDhkdS.js → vue-ui-history-plot-qpbsJ706.js} +1 -1
  144. package/dist/{vue-ui-horizontal-bar-CtONqcjG.js → vue-ui-horizontal-bar-BnIRG4Da.js} +1 -1
  145. package/dist/{vue-ui-kpi-BSRfwYk9.js → vue-ui-kpi-BvGMMvPY.js} +1 -1
  146. package/dist/{vue-ui-label-W0ITGnQa.js → vue-ui-label-CcVh3FeS.js} +1 -1
  147. package/dist/{vue-ui-mini-loader-BBsXG6nD.js → vue-ui-mini-loader-C7rLQ7JE.js} +1 -1
  148. package/dist/{vue-ui-molecule-DOQ8dsme.js → vue-ui-molecule-BLCwrefH.js} +1 -1
  149. package/dist/{vue-ui-mood-radar-BJeSC-Op.js → vue-ui-mood-radar-Bm12y-t8.js} +1 -1
  150. package/dist/{vue-ui-nested-donuts-DUUmc8K7.js → vue-ui-nested-donuts-BGz-1VHL.js} +1 -1
  151. package/dist/{vue-ui-onion-B8M1x8Jc.js → vue-ui-onion-C23btxVO.js} +1 -1
  152. package/dist/{vue-ui-parallel-coordinate-plot-Dv0eO4ZI.js → vue-ui-parallel-coordinate-plot-E17cuXGN.js} +1 -1
  153. package/dist/{vue-ui-quadrant-_QcgE234.js → vue-ui-quadrant-NJPbHq0p.js} +1 -1
  154. package/dist/{vue-ui-quick-chart-DzJx0LBu.js → vue-ui-quick-chart-CI1n75li.js} +1 -1
  155. package/dist/{vue-ui-radar-C-idGMCp.js → vue-ui-radar-CD1Ge3r9.js} +1 -1
  156. package/dist/{vue-ui-rating-CwD4CB9M.js → vue-ui-rating-mDoJ2Rkg.js} +1 -1
  157. package/dist/{vue-ui-relation-circle-Dl2XO5DU.js → vue-ui-relation-circle-CQPFqgsl.js} +1 -1
  158. package/dist/{vue-ui-ridgeline-SG44P21X.js → vue-ui-ridgeline-C0fxNnYy.js} +1 -1
  159. package/dist/{vue-ui-rings-b8Ms_mTp.js → vue-ui-rings-D2XUhWg-.js} +1 -1
  160. package/dist/{vue-ui-scatter-KPiaTVuv.js → vue-ui-scatter-DgfuFep8.js} +1 -1
  161. package/dist/{vue-ui-skeleton-Dg0tACvE.js → vue-ui-skeleton-BUMvfDJX.js} +1 -1
  162. package/dist/{vue-ui-smiley-B34VeonG.js → vue-ui-smiley-aTCVrK-n.js} +1 -1
  163. package/dist/{vue-ui-spark-trend-C3EXOm2F.js → vue-ui-spark-trend-B1S6SaGz.js} +1 -1
  164. package/dist/{vue-ui-sparkbar-CCjgG6pR.js → vue-ui-sparkbar-DtGqqvGS.js} +1 -1
  165. package/dist/{vue-ui-sparkgauge-DnxHmWiH.js → vue-ui-sparkgauge-yEOfuIEu.js} +1 -1
  166. package/dist/{vue-ui-sparkhistogram--QcZmUje.js → vue-ui-sparkhistogram-nM2G2AJx.js} +1 -1
  167. package/dist/{vue-ui-sparkline-D1BPdZdr.js → vue-ui-sparkline-B7ZZzccR.js} +1 -1
  168. package/dist/{vue-ui-sparkstackbar-CxF1OSDL.js → vue-ui-sparkstackbar-CTCvV0UA.js} +1 -1
  169. package/dist/{vue-ui-stackbar-yKTDxwXp.js → vue-ui-stackbar-DTlq5Fmr.js} +1 -1
  170. package/dist/{vue-ui-stackline-BPdR_8x0.js → vue-ui-stackline-DgV0GCOn.js} +1 -1
  171. package/dist/{vue-ui-strip-plot-CAmBydR2.js → vue-ui-strip-plot-DlIqyn9G.js} +1 -1
  172. package/dist/{vue-ui-table-BKfGLJgN.js → vue-ui-table-B1QawDAY.js} +1 -1
  173. package/dist/{vue-ui-table-heatmap-CpviNfWA.js → vue-ui-table-heatmap-DFjVopuI.js} +1 -1
  174. package/dist/{vue-ui-table-sparkline-CVomhgHC.js → vue-ui-table-sparkline-D15wq2iu.js} +1 -1
  175. package/dist/{vue-ui-thermometer-DNRR87NF.js → vue-ui-thermometer-gK8M0jyN.js} +1 -1
  176. package/dist/{vue-ui-timer-Bx5D4QsO.js → vue-ui-timer-Be4jnf30.js} +2 -2
  177. package/dist/{vue-ui-tiremarks-CnZqIcFq.js → vue-ui-tiremarks-B1PF45Fh.js} +1 -1
  178. package/dist/{vue-ui-treemap-D7k9vWC9.js → vue-ui-treemap-CProQJII.js} +1 -1
  179. package/dist/{vue-ui-waffle-BHcDq09N.js → vue-ui-waffle-C9QBRGRd.js} +1 -1
  180. package/dist/{vue-ui-wheel-Cd3P9Nq4.js → vue-ui-wheel-EBNVnATV.js} +1 -1
  181. package/dist/vue-ui-word-cloud-D_wT_OgE.js +4 -0
  182. package/dist/{vue-ui-world-bZ7gOrS1.js → vue-ui-world-CvjzqQPz.js} +1 -1
  183. package/dist/{vue-ui-xy-Y_MKCMGp.js → vue-ui-xy-B0z97XdU.js} +1 -1
  184. package/dist/{vue-ui-xy-BTGZ1NSt.js → vue-ui-xy-ZTbijg4Q.js} +3 -3
  185. package/dist/{vue-ui-xy-canvas-C8Xi5Bad.js → vue-ui-xy-canvas-QqaK6zlu.js} +1 -1
  186. package/dist/vue_ui_galaxy-fL8NyfDy.js +1 -0
  187. package/package.json +15 -15
  188. package/dist/UserOptions-K1N7zQRx.js +0 -1
  189. package/dist/package-BPQ4kSL9.js +0 -1
  190. package/dist/vue-data-ui-CeZQZazG.js +0 -1
  191. package/dist/vue-ui-galaxy-HndquOs-.js +0 -1
  192. package/dist/vue-ui-word-cloud-B7iGPkGe.js +0 -4
  193. package/dist/vue_ui_galaxy-iCWLHLBY.js +0 -1
@@ -0,0 +1 @@
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./unpackTheme-CNsFKCeq.js";var n=/* @__PURE__ */ e({default:()=>b}),r=[[],[`userOptions`,`style`],[`show`],[`chart`],[`layout`,`legend`],[`arcs`],[`gradient`],[`userOptions`,`style`,`table`],[`backgroundColor`,`color`,`layout`,`legend`,`title`,`tooltip`],[`arcs`,`labels`],[`dataLabels`],[`color`],[`show`,`backgroundColor`,`color`,`selectAllToggle`],[`backgroundColor`,`color`],[`color`,`subtitle`],[`backgroundColor`,`backgroundOpacity`,`color`,`borderColor`],[`th`,`td`],[`style`,`table`],[`backgroundColor`,`color`,`legend`,`title`,`tooltip`,`layout`],[`backgroundColor`,`color`,`selectAllToggle`],[`labels`],[`backgroundColor`,`color`,`borderColor`]],i=[2,!1],a=[6,i],o=`#1A1A1A`,s=`#CCCCCC`,c=`#3A3A3A`,l=[11,`#757575`],u=[13,o,s],d=`#FFF8E1`,f=`#424242`,p=`#1E1E1E`,m=`#BDBDBD`,h=`#99AA99`,g=`#fbfafa`,_=`#f6f6fb`,v=`#50606C`,y=[13,_,v],b={default:/* @__PURE__ */ t([0],r),minimal:/* @__PURE__ */ t([1,i,[3,[4,[5,a],i]]],r),minimalDark:/* @__PURE__ */ t([7,i,[3,[8,o,s,[9,a,[10,[11,s]]],[12,!1,o,s,[13,c,s]],[14,s,l],[15,o,70,s,c]]],[16,u,u]],r),dark:/* @__PURE__ */ t([17,[3,[18,o,s,[19,o,s,[13,c,s]],[14,s,l],[15,o,70,s,`#5A5A5A`],[20,[10,[11,s]]]]],[16,u,u]],r),celebration:/* @__PURE__ */ t([17,[3,[8,d,f,[9,a,[10,[11,f]]],[19,d,f,[13,`#5D4037`,d]],[14,f,l],[15,`#FFECB3`,30,f,`#FF8A65`]]],[16,[13,d,f],[13,d,f]]],r),celebrationNight:/* @__PURE__ */ t([17,[3,[8,p,m,[9,a,[10,[11,m]]],[19,p,m,[13,c,m]],[14,d,[11,m]],[15,p,30,d,`#FF8A65`]]],[16,[13,p,m],[13,p,m]]],r),hack:/* @__PURE__ */ t([17,[3,[8,o,h,[9,[6,[11,o]],[10,[11,`#AACCAA`]]],[19,o,h,[13,c,h]],[14,`#66CC66`,[11,h]],[21,`#2A2F2A`,`#AACCAA`,`#66CC66`]]],[16,[13,o,h],[13,o,`#AACCAA`]]],r),zen:/* @__PURE__ */ t([17,[3,[8,g,`#8A9892`,[9,[6,[11,g]],[10,[11,`#A0AC94`]]],[19,g,h,[13,`#E0CFC3`,`#8F837A`]],[14,`#8A9892`,[11,h]],[13,g,`#8A9892`]]],[16,[13,g,`#8F837A`],[13,g,`#8F837A`]]],r),concrete:/* @__PURE__ */ t([17,[3,[8,_,v,[9,a,[10,[11,`#61747E`]]],[19,_,`#61747E`,[13,v,_]],[14,v,[11,`#718890`]],y]],[16,y,y]],r)};export{n,b as t};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.29.2",
4
+ "version": "3.29.4",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -106,26 +106,26 @@
106
106
  }
107
107
  },
108
108
  "devDependencies": {
109
- "@storybook/addon-docs": "^10.6.6",
110
- "@storybook/addon-vitest": "^10.6.6",
111
- "@storybook/vue3-vite": "^10.6.3",
109
+ "@storybook/addon-docs": "^10.6.8",
110
+ "@storybook/addon-vitest": "^10.6.8",
111
+ "@storybook/vue3-vite": "^10.6.8",
112
112
  "@types/node": "^25.5.0",
113
- "@vitejs/plugin-vue": "^6.0.10",
114
- "@vitest/browser-playwright": "^5.0.5",
115
- "@vue/compiler-dom": "3.5.45",
116
- "@vue/test-utils": "^2.5.1",
117
- "jsdom": "^31.0.0",
118
- "playwright": "^1.65.0",
113
+ "@vitejs/plugin-vue": "^6.0.11",
114
+ "@vitest/browser-playwright": "^5.1.1",
115
+ "@vue/compiler-dom": "3.5.46",
116
+ "@vue/test-utils": "^2.6.0",
117
+ "jsdom": "^31.0.1",
118
+ "playwright": "^1.65.1",
119
119
  "prettier": "3.8.1",
120
120
  "remove-attr": "^0.0.13",
121
- "rolldown": "1.3.0",
121
+ "rolldown": "1.3.3",
122
122
  "sass": "^1.57.1",
123
123
  "simple-git": "^4.0.2",
124
- "storybook": "^10.6.6",
124
+ "storybook": "^10.6.8",
125
125
  "typescript": "^6.0.2",
126
- "vite": "^8.3.6",
127
- "vitest": "^5.1.0",
128
- "vue": "^3.5.45"
126
+ "vite": "^8.3.8",
127
+ "vitest": "^5.1.1",
128
+ "vue": "^3.5.46"
129
129
  },
130
130
  "scripts": {
131
131
  "dev": "node add-dev-dep.cjs && pnpm install && vite",
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./vClickOutside-BxNzkY17.js";import{t as n}from"./BaseIcon-CoY0vuL3.js";import{t as r}from"./img-D4RQwASc.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.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__*/ i({__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:i,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 r({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 r({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}i({setTableIconState:ve,setTooltipIconState:Se,close:Y});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(r,i)=>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(r.$slots,`menuIcon`,h(f({isOpen:A.value,color:e.color})),()=>[d(n,{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(r.$slots,`custom-menu-before`,{},void 0,!0),(y(!0),l(a,null,ee(Ue.value,t=>(y(),l(a,{key:t.key},[t.visible?(y(),l(`button`,{key:0,tabindex:`0`,class:`vue-ui-user-options-button`,onClick:t.run,onMouseenter:e=>q.value[t.key]=!0,onMouseout:e=>q.value[t.key]=!1,style:g({cursor:e.isCursorPointer?`pointer`:`default`})},[r.$slots[t.slot]?(y(),l(a,{key:0},[t.slotProps?t.slotProps.second?x(r.$slots,t.slot,h({[t.slotProps.first.name||``]:t.slotProps.first.value,[t.slotProps.second.name||``]:t.slotProps.second.value}),void 0,!0,2):x(r.$slots,t.slot,h({[t.slotProps.first.name||``]:t.slotProps.first.value}),void 0,!0,1):x(r.$slots,t.slot,{},void 0,!0,0)],64)):(y(),l(a,{key:1},[t.alternate?(y(),s(n,{key:0,name:t.alternateIcon,isSpin:t.spin,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`isSpin`,`stroke`])):(y(),s(n,{key:1,name:t.icon,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`stroke`]))],64)),K.value&&e.titles[t.key===`animation`?`fullscreen`:t.key]?(y(),l(`div`,{key:2,dir:`auto`,class:m($(t.key)),style:g({background:e.backgroundColor,color:e.color})},te(e.titles[t.key]),7)):c(``,!0)],44,le)):c(``,!0)],64))),128)),x(r.$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(r.$slots,`menuIcon`,h(f({isOpen:A.value,color:e.color})),()=>[d(n,{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(r.$slots,`custom-menu-before`,{},void 0,!0),(y(!0),l(a,null,ee(Ue.value,t=>(y(),l(a,{key:t.key},[t.visible?(y(),l(`button`,{key:0,tabindex:`0`,class:`vue-ui-user-options-button`,onClick:e=>t.run(e),onMouseenter:e=>q.value[t.key]=!0,onMouseout:e=>q.value[t.key]=!1},[r.$slots[t.slot]?(y(),l(a,{key:0},[t.slotProps?t.slotProps.second?x(r.$slots,t.slot,h({[t.slotProps.first.name||``]:t.slotProps.first.value,[t.slotProps.second.name||``]:t.slotProps.second.value}),void 0,!0,2):x(r.$slots,t.slot,h({[t.slotProps.first.name||``]:t.slotProps.first.value}),void 0,!0,1):x(r.$slots,t.slot,{},void 0,!0,0)],64)):(y(),l(a,{key:1},[t.alternate?(y(),s(n,{key:0,name:t.alternateIcon,isSpin:t.spin,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`isSpin`,`stroke`])):(y(),s(n,{key:1,name:t.icon,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`stroke`]))],64)),K.value&&e.titles[t.key===`animation`?`fullscreen`:t.key]?(y(),l(`div`,{key:2,dir:`auto`,class:m($(t.key)),style:g({background:e.backgroundColor,color:e.color})},te(e.titles[t.key]),7)):c(``,!0)],40,fe)):c(``,!0)],64))),128)),x(r.$slots,`custom-menu-actions`,{},void 0,!0)],12,de)],36)),[[S(t),ke]])}},[[`__scopeId`,`data-v-769c3c21`]]);export{T as n,E as t};
@@ -1 +0,0 @@
1
- var e=`3.29.2`;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-Duw5qG0a.js`).then(e=>e.n)),VueUi3dBar:l(()=>import(`./vue-ui-3d-bar-CNym5PLY.js`).then(e=>e.n)),VueUiAgePyramid:l(()=>import(`./vue-ui-age-pyramid-zD6anIub.js`).then(e=>e.n)),VueUiAnnotator:l(()=>import(`./vue-ui-annotator-aP1DFNt9.js`).then(e=>e.n)),VueUiCandlestick:l(()=>import(`./vue-ui-candlestick-CwG1H80q.js`).then(e=>e.n)),VueUiChestnut:l(()=>import(`./vue-ui-chestnut-CZG6Ep36.js`).then(e=>e.n)),VueUiDashboard:l(()=>import(`./vue-ui-dashboard-DtPlz7y-.js`).then(e=>e.n)),VueUiDigits:l(()=>import(`./vue-ui-digits-gtQiZcOT.js`).then(e=>e.n)),VueUiDonut:l(()=>import(`./vue-ui-donut-_wqSXunY.js`).then(e=>e.n)),VueUiDonutEvolution:l(()=>import(`./vue-ui-donut-evolution-CdztIQSl.js`).then(e=>e.n)),VueUiGalaxy:l(()=>import(`./vue-ui-galaxy-HndquOs-.js`).then(e=>e.n)),VueUiGauge:l(()=>import(`./vue-ui-gauge-CVxKlU2U.js`).then(e=>e.n)),VueUiHeatmap:l(()=>import(`./vue-ui-heatmap-DZM9MvfE.js`).then(e=>e.n)),VueUiKpi:l(()=>import(`./vue-ui-kpi-BSRfwYk9.js`).then(e=>e.n)),VueUiMiniLoader:l(()=>import(`./vue-ui-mini-loader-BBsXG6nD.js`).then(e=>e.n)),VueUiMolecule:l(()=>import(`./vue-ui-molecule-DOQ8dsme.js`).then(e=>e.n)),VueUiMoodRadar:l(()=>import(`./vue-ui-mood-radar-BJeSC-Op.js`).then(e=>e.n)),VueUiNestedDonuts:l(()=>import(`./vue-ui-nested-donuts-DUUmc8K7.js`).then(e=>e.n)),VueUiOnion:l(()=>import(`./vue-ui-onion-B8M1x8Jc.js`).then(e=>e.n)),VueUiQuadrant:l(()=>import(`./vue-ui-quadrant-_QcgE234.js`).then(e=>e.n)),VueUiRadar:l(()=>import(`./vue-ui-radar-C-idGMCp.js`).then(e=>e.n)),VueUiRating:l(()=>import(`./vue-ui-rating-CwD4CB9M.js`).then(e=>e.n)),VueUiRelationCircle:l(()=>import(`./vue-ui-relation-circle-Dl2XO5DU.js`).then(e=>e.n)),VueUiRings:l(()=>import(`./vue-ui-rings-b8Ms_mTp.js`).then(e=>e.n)),VueUiScatter:l(()=>import(`./vue-ui-scatter-KPiaTVuv.js`).then(e=>e.n)),VueUiSkeleton:l(()=>import(`./vue-ui-skeleton-Dg0tACvE.js`).then(e=>e.n)),VueUiSmiley:l(()=>import(`./vue-ui-smiley-B34VeonG.js`).then(e=>e.n)),VueUiSparkbar:l(()=>import(`./vue-ui-sparkbar-CCjgG6pR.js`).then(e=>e.n)),VueUiSparkgauge:l(()=>import(`./vue-ui-sparkgauge-DnxHmWiH.js`).then(e=>e.n)),VueUiSparkHistogram:l(()=>import(`./vue-ui-sparkhistogram--QcZmUje.js`).then(e=>e.n)),VueUiSparkline:l(()=>import(`./vue-ui-sparkline-D1BPdZdr.js`).then(e=>e.n)),VueUiSparkStackbar:l(()=>import(`./vue-ui-sparkstackbar-CxF1OSDL.js`).then(e=>e.n)),VueUiTable:l(()=>import(`./vue-ui-table-BKfGLJgN.js`).then(e=>e.n)),VueUiTableSparkline:l(()=>import(`./vue-ui-table-sparkline-CVomhgHC.js`).then(e=>e.n)),VueUiThermometer:l(()=>import(`./vue-ui-thermometer-DNRR87NF.js`).then(e=>e.n)),VueUiTiremarks:l(()=>import(`./vue-ui-tiremarks-CnZqIcFq.js`).then(e=>e.n)),VueUiTreemap:l(()=>import(`./vue-ui-treemap-D7k9vWC9.js`).then(e=>e.n)),VueUiVerticalBar:l(()=>import(`./vue-ui-horizontal-bar-CtONqcjG.js`).then(e=>e.n)),VueUiHorizontalBar:l(()=>import(`./vue-ui-horizontal-bar-CtONqcjG.js`).then(e=>e.n)),VueUiWaffle:l(()=>import(`./vue-ui-waffle-BHcDq09N.js`).then(e=>e.n)),VueUiWheel:l(()=>import(`./vue-ui-wheel-Cd3P9Nq4.js`).then(e=>e.n)),VueUiXy:l(()=>import(`./vue-ui-xy-BTGZ1NSt.js`).then(e=>e.n)),VueUiTableHeatmap:l(()=>import(`./vue-ui-table-heatmap-CpviNfWA.js`).then(e=>e.n)),VueUiAccordion:l(()=>import(`./vue-ui-accordion-D3uT1Ynv.js`).then(e=>e.n)),VueUiQuickChart:l(()=>import(`./vue-ui-quick-chart-DzJx0LBu.js`).then(e=>e.n)),VueUiCursor:l(()=>import(`./vue-ui-cursor-DTRAPWBW.js`).then(e=>e.n)),VueUiSparkTrend:l(()=>import(`./vue-ui-spark-trend-C3EXOm2F.js`).then(e=>e.n)),VueUiStripPlot:l(()=>import(`./vue-ui-strip-plot-CAmBydR2.js`).then(e=>e.n)),VueUiDumbbell:l(()=>import(`./vue-ui-dumbbell-CpLMoEet.js`).then(e=>e.n)),VueUiWordCloud:l(()=>import(`./vue-ui-word-cloud-B7iGPkGe.js`).then(e=>e.n)),VueUiXyCanvas:l(()=>import(`./vue-ui-xy-canvas-C8Xi5Bad.js`).then(e=>e.n)),VueUiFlow:l(()=>import(`./vue-ui-flow-DwG1MX2V.js`).then(e=>e.n)),VueUiParallelCoordinatePlot:l(()=>import(`./vue-ui-parallel-coordinate-plot-Dv0eO4ZI.js`).then(e=>e.n)),VueUiTimer:l(()=>import(`./vue-ui-timer-Bx5D4QsO.js`).then(e=>e.n)),VueUiCarouselTable:l(()=>import(`./vue-ui-carousel-table-CdrxVrHZ.js`).then(e=>e.n)),VueUiGizmo:l(()=>import(`./vue-ui-gizmo-mFeK8xP1.js`).then(e=>e.n)),VueUiStackbar:l(()=>import(`./vue-ui-stackbar-yKTDxwXp.js`).then(e=>e.n)),VueUiStackline:l(()=>import(`./vue-ui-stackline-BPdR_8x0.js`).then(e=>e.n)),VueUiBullet:l(()=>import(`./vue-ui-bullet-CxhIb-XU.js`).then(e=>e.n)),VueUiFunnel:l(()=>import(`./vue-ui-funnel-CisiLlR9.js`).then(e=>e.n)),VueUiHistoryPlot:l(()=>import(`./vue-ui-history-plot-EGeDhkdS.js`).then(e=>e.n)),VueUiCirclePack:l(()=>import(`./vue-ui-circle-pack-BGbhvnE5.js`).then(e=>e.n)),VueUiWorld:l(()=>import(`./vue-ui-world-bZ7gOrS1.js`).then(e=>e.n)),VueUiRidgeline:l(()=>import(`./vue-ui-ridgeline-SG44P21X.js`).then(e=>e.n)),VueUiChord:l(()=>import(`./vue-ui-chord-DQS4tBWQ.js`).then(e=>e.n)),VueUiDag:l(()=>import(`./vue-ui-dag-BGNC8uRQ.js`).then(e=>e.n)),VueUiGeo:l(()=>import(`./vue-ui-geo-0PDP2JjE.js`).then(e=>e.n)),VueUiBump:l(()=>import(`./vue-ui-bump-B8WYM1RE.js`).then(e=>e.n)),VueUiHill:l(()=>import(`./vue-ui-hill-BGQSrcHM.js`).then(e=>e.n)),VueUiLabel:l(()=>import(`./vue-ui-label-W0ITGnQa.js`).then(e=>e.n))},k=/* @__PURE__ */ new Set([`VueUiMiniLoader`,`VueUiSkeleton`,`VueUiAccordion`,`VueUiCursor`,`VueUiTimer`]),A=/* @__PURE__ */ `fitToView.focusNode.resetLayout.autoSize.cancel.close.copyAlt.clearSelection.fitCountries.focusCountry.focusLocation.generateCsv.generateImage.generatePdf.generateSvg.getItemsPositions.hideSeries.lap.pause.pauseAnimation.recalculateHeight.reset.resetView.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};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./userOptionsSlots-CWtXN5Q6.js";import{n as i,r as a,t as o}from"./annotationSlots-OLiW25XN.js";import{n as s,t as ee}from"./tableIntegration-CNoJ1CIY.js";import{t as te}from"./chartImage-DPGnEuYM.js";import{n as ne}from"./resolveChartConfig-0IvbmIE_.js";import{$ as c,D as re,Dt as ie,Ht as ae,Kt as oe,S as se,X as ce,at as le,i as ue,in as de,nt as fe,t as pe,w as me,z as he}from"./lib-rPeBMZrn.js";import{n as ge,t as _e}from"./useHints-C-TwxM0Y.js";import{t as ve}from"./useConfig-CXhXxWjB.js";import{t as ye}from"./usePrinter-DVf3YcG5.js";import{t as be}from"./useResponsive-CENUxfEL.js";import{t as xe}from"./useChartExport-BZts4KFb.js";import{t as Se}from"./useTransitions-ChGGrtrv.js";import{t as Ce}from"./useChartAccessibility-DOMuYJfm.js";import{t as we}from"./labelUtils-CdtU-yB_.js";import{n as Te}from"./Title-BliHuXfT.js";import{t as Ee}from"./Legend-W9YVYVX-.js";import{t as De}from"./vue_ui_galaxy-iCWLHLBY.js";import{t as Oe}from"./BaseScanner-m6QR9rwD.js";import{t as ke}from"./A11yDataTable-DWNlWXzs.js";import{t as Ae}from"./BaseLegendToggle-VzX69MCo.js";import{t as je}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as Me,Teleport as Ne,computed as l,createBlock as u,createCommentVNode as d,createElementBlock as f,createElementVNode as p,createSlots as Pe,createTextVNode as Fe,createVNode as m,defineAsyncComponent as h,guardReactiveProps as g,mergeProps as Ie,nextTick as Le,normalizeClass as _,normalizeProps as v,normalizeStyle as Re,onBeforeUnmount as ze,onMounted as Be,openBlock as y,ref as b,renderList as Ve,renderSlot as x,resolveDynamicComponent as He,shallowRef as Ue,toDisplayString as S,unref as C,watch as w,withCtx as T}from"vue";var We=/* @__PURE__ */ e({default:()=>dt}),Ge=[`id`],Ke=[`id`],qe=[`id`],Je={style:{position:`relative`}},Ye=[`xmlns`,`aria-describedby`,`viewBox`],Xe=[`width`,`height`],Ze=[`id`],Qe=[`stdDeviation`],$e=[`d`,`stroke`,`stroke-width`],et=[`d`,`stroke`,`stroke-width`],tt=[`filter`],nt=[`d`,`stroke`,`stroke-width`],rt=[`data-a11y-serie-id`,`d`,`stroke-width`,`aria-label`,`onMouseenter`,`onMouseleave`,`onClick`],it={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},at={key:5,class:`vue-data-ui-watermark`},ot=[`id`],st=[`onClick`],ct={key:0},lt={key:1},ut=190,dt=/*#__PURE__*/ je({__name:`vue-ui-galaxy`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`selectLegend`,`selectDatapoint`,`copyAlt`],setup(e,{expose:je,emit:We}){let dt=h(()=>import(`./Tooltip-B432XpvC.js`)),ft=h(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),pt=h(()=>import(`./vue-ui-accordion-D3uT1Ynv.js`).then(e=>e.n)),mt=h(()=>import(`./DataTable-KeuZB1JM.js`)),ht=h(()=>import(`./PenAndPaper-BV5ODysA.js`).then(e=>e.t)),gt=h(()=>import(`./UserOptions-K1N7zQRx.js`).then(e=>e.n)),_t=h(()=>import(`./PackageVersion-C1vtZkKc.js`).then(e=>e.t)),vt=h(()=>import(`./BaseDraggableDialog-DVstuNhT.js`).then(e=>e.n)),{vue_ui_galaxy:yt}=ve(),E=e,D=b(ce()),O=b(null),bt=b(!1),xt=b(``),k=b(null),St=b(0),Ct=b(null),wt=b(null),Tt=b(null),Et=b(null),A=Ue(null),Dt=b(!1),Ot=b(null),kt=b(null),j=b(null),M=b(null),At=b({x:0,y:0}),jt=b(`pointer`),Mt=b(!1),Nt=l(()=>!!E.dataset&&E.dataset.length),Pt=l(Kt),N=l(()=>!!E.config.loading||!E.dataset?.length),Ft=l(()=>de({defaultConfig:{userOptions:{show:!1},table:{show:!1},useCssAnimation:!1,style:{chart:{backgroundColor:`#99999930`,legend:{backgroundColor:`transparent`}}}},userConfig:Pt.value.skeletonConfig??{}})),P=l(()=>N.value?de({defaultConfig:Pt.value,userConfig:Ft.value}):Pt.value),It=l(()=>N.value?E.config.skeletonDataset??[{name:`_`,values:[21],color:`#DBDBDB`},{name:`_`,values:[13],color:`#C4C4C4`},{name:`_`,values:[8],color:`#ADADAD`}]:E.dataset),F=l(()=>P.value.style.chart.layout.arcs),I=l(()=>P.value.style.chart.layout),L=l(()=>P.value.style.chart);ge({config:()=>P.value,dataset:()=>E.dataset,component:`VueUiGalaxy`,rules:[_e.singleSeries,_e.emptyArray,{test:e=>e.length>6,message:[`👀 The number of series is > 6. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" series.`,``,`▶️ Using filters to let users choose a maximum number of series to display.`,``,`▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read.`]}]});let{transitionEnabled:Lt}=Se({config:()=>P.value.transitions,dataset:()=>E.dataset}),Rt=l(()=>P.value.userOptions.useCursorPointer),R=l(()=>Pt.value.debug);w([()=>E.dataset,R],()=>{E.dataset?.length||le({componentName:`VueUiGalaxy`,type:`dataset`,debug:R.value}),E.dataset?.forEach((e,t)=>{let n=e&&typeof e==`object`?Object.keys(e):[];[`name`,`values`].filter(e=>!n.includes(e)).forEach(e=>le({componentName:`VueUiGalaxy`,type:`datasetSerieAttribute`,property:e,index:t,debug:R.value})),n.includes(`values`)&&!Array.isArray(e.values)&&R.value&&console.warn(`VueUiGalaxy: dataset[${t}].values must be an array.`)})},{immediate:!0,deep:!0});let zt=b(null),z=null,Bt=!1;function Vt(){A.value?.disconnect(),A.value=null,z!==null&&cancelAnimationFrame(z),z=null}function Ht(){if(Vt(),zt.value=null,!P.value.responsive||!O.value?.parentNode)return;let e=new ResizeObserver(t);function t(){Bt||A.value!==e||(z!==null&&cancelAnimationFrame(z),z=requestAnimationFrame(()=>{if(Bt||A.value!==e)return;z=null;let{width:t,height:n}=be({chart:O.value,title:L.value.title.text?Ct.value:null,legend:L.value.legend.show?wt.value:null,noTitle:Et.value,source:Tt.value});zt.value={width:Math.max(.1,t),height:Math.max(.1,n-12)}}))}A.value=e,e.observe(O.value.parentNode),t()}Be(()=>{Dt.value=!0,Ht()}),ze(()=>{Bt=!0,Vt()}),w([()=>P.value.responsive,()=>L.value.title.text,()=>L.value.title.subtitle.text,()=>L.value.legend.show,()=>L.value.legend.position],Ht,{flush:`post`});let Ut=b(!P.value.userOptions.showOnChartHover),Wt=l(()=>P.value.userOptions.keepStateOnChartLeave);function Gt(e=!1){P.value.userOptions.showOnChartHover&&(Ut.value=e)}w(()=>P.value.userOptions.showOnChartHover,e=>{Ut.value=!e});let{svgRef:B}=Ce({config:L.value.title});function Kt(){return ne(E.config,yt,De)}let{isPrinting:qt,isImaging:Jt,generatePdf:Yt,generateImage:Xt}=ye({elementId:`galaxy_${D.value}`,fileName:L.value.title.text||`vue-ui-galaxy`,options:P.value.userOptions.print}),Zt=l(()=>P.value.userOptions.show&&!L.value.title.text),Qt=l(()=>me(P.value.customPalette)),V=b({dataLabels:{show:I.value.labels.dataLabels.show},showTable:P.value.table.show,showTooltip:L.value.tooltip.show});w(()=>P.value.table.show,e=>{V.value.showTable=e}),w(()=>L.value.tooltip.show,e=>{V.value.showTooltip=e}),w(()=>I.value.labels.dataLabels.show,e=>{V.value.dataLabels.show=e});let H=l(()=>{let{width:e,height:t}=zt.value||{width:250,height:180};return{width:e,height:t,viewBox:`0 0 ${e} ${t}`}}),$t=We,U=b([]);function en(){$t(`selectLegend`,J.value.map(e=>({name:e.name,color:e.color,value:e.value})))}function tn(){U.value.length?U.value=[]:Cn.value.forEach(e=>{U.value.push(e.id)}),en()}function W(e){U.value.includes(e.id)?U.value=U.value.filter(t=>t!==e.id):U.value.push(e.id),en()}function nn(e){return K.value.length?K.value.find(t=>t.name===e)||(R.value&&console.warn(`VueUiGalaxy - Series name not found "${e}"`),null):(R.value&&console.warn(`VueUiGalaxy - There are no series to show.`),null)}function rn(e){let t=nn(e);t!==null&&U.value.includes(t.id)&&W({id:t.id})}function an(e){let t=nn(e);t!==null&&(U.value.includes(t.id)||W({id:t.id}))}let G=/* @__PURE__ */ new Map,on=l(()=>{let e=/* @__PURE__ */ new Map,t=/* @__PURE__ */ new Set,n=It.value.map((n,r)=>{let i=n?.id==null?`index:${r}`:`id:${typeof n.id}:${n.id}`,a=e.get(i)||0;e.set(i,a+1);let o=`${N.value?`skeleton`:`data`}:${i}:${a}`;return t.add(o),G.has(o)||G.set(o,ce()),G.get(o)}),r=`${N.value?`skeleton`:`data`}:`;for(let e of G.keys())e.startsWith(r)&&!t.has(e)&&G.delete(e);return n}),K=l(()=>It.value.flatMap((e,t)=>{if(!e||typeof e!=`object`)return[];let n=oe(Array.isArray(e.values)?e.values:[]),r=n.reduce((e,t)=>e+(typeof t==`number`?t:0),0);return[{name:e.name,color:se(e.color)||Qt.value[t]||ae[t%ae.length],value:Number.isFinite(r)?r:0,absoluteValues:n,id:on.value[t]}]}).sort((e,t)=>t.value-e.value).map((e,t)=>({...e,absoluteIndex:t})));function sn(){return K.value.map(e=>({name:e.name,color:e.color,value:e.value}))}let cn=l(()=>K.value.filter(e=>!U.value.includes(e.id))),q=l(()=>cn.value.reduce((e,t)=>e+t.value,0)),ln=l(()=>K.value.reduce((e,t)=>e+t.value,0));function un(e,t){let n=t?e/t:0;return Number.isFinite(n)?n:0}w(K,e=>{if(N.value)return;let t=new Set(e.map(e=>e.id));U.value=U.value.filter(e=>t.has(e))});let dn=l(()=>(F.value.strokeWidth+F.value.borderWidth)/2+(I.value.padding??12)),fn=l(()=>he({maxPoints:ut,a:F.value.a??6,b:F.value.b??6,angleStep:F.value.angleStep??.07,startX:H.value.width/2+F.value.offsetX,startY:H.value.height/2+F.value.offsetY,boxWidth:H.value.width,boxHeight:H.value.height,padding:dn.value})),J=l(()=>{let e=[];for(let t=0;t<cn.value.length;t+=1){let n=cn.value[t],r=un(n.value,q.value)*ut+(t>0&&e.length?e[t-1].points:0);e.push({points:r,...n,seriesIndex:t,proportion:un(n.value,q.value),path:fn.value(r)})}return e.toSorted((e,t)=>t.points-e.points)});function pn(e){let t=Math.min(H.value.width,H.value.height),n=k.value===e.id&&F.value.hoverEffect.show?F.value.hoverEffect.multiplicator:1,r=(F.value.strokeWidth+F.value.borderWidth)*n,i=F.value.strokeWidth*n,a=F.value.strokeWidth/2*n;return{border:r/180*t,path:i/180*t,blur:a/180*t}}let mn=l(()=>Object.fromEntries(J.value.map(e=>[e.id,pn(e)]))),Y=b(!1);function hn(e){Y.value=e,St.value+=1}let X=b(null);function gn(){bt.value=!1,k.value=null,j.value=null,M.value=null,X.value=null,xt.value=``}function _n(e){if(!B.value||!e)return;let t=B.value.querySelector(`[data-a11y-serie-id="${e}"]`);if(!t)return;let n=t.getBoundingClientRect();At.value={x:n.left+n.width/2,y:n.top+n.height/2}}function vn(e){P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:e,seriesIndex:e.absoluteIndex}),(M.value!==e.id||jt.value!==`keyboard`)&&gn()}function yn(e){N.value||($t(`selectDatapoint`,e),P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:e,seriesIndex:e.absoluteIndex}))}function bn({val:e,percentage:t,showVal:n,showPercentage:r}){let i=I.value.labels.dataLabels;return we({config:i,val:e,percentage:t,showVal:n,showPercentage:r})}function xn({datapoint:e,seriesIndex:t,show:n=!1,triggerMode:r=`pointer`,flatIndex:i=null}){N.value||(P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:e,seriesIndex:e.absoluteIndex}),jt.value=r,j.value=i,M.value=e.id,k.value=e.id,bt.value=n&&V.value.showTooltip,Sn(e,t),r===`keyboard`&&Le(()=>_n(e.id)))}function Sn(e,t){if(X.value={datapoint:e,seriesIndex:t,series:K.value,config:P.value},!V.value.showTooltip){xt.value=``;return}let n=``,r=L.value.tooltip.customFormat,i=ie(r)?r({seriesIndex:t,datapoint:e,series:K.value,config:P.value}):null;typeof i==`string`?xt.value=i:(n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`,n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`,n+=`<b>${bn({showVal:L.value.tooltip.showValue,showPercentage:L.value.tooltip.showPercentage,val:ue(I.value.labels.dataLabels.formatter,e.value,c({p:I.value.labels.dataLabels.prefix,v:e.value,s:I.value.labels.dataLabels.suffix,r:L.value.tooltip.roundingValue}),{datapoint:e,seriesIndex:t}),percentage:c({v:e.proportion*100,s:`%`,r:L.value.tooltip.roundingPercentage})})}</b></div>`,xt.value=`<div>${n}</div>`)}w([J,()=>L.value.tooltip,()=>I.value.labels.dataLabels,()=>V.value.showTooltip,N],()=>{if(!M.value)return;let e=$.value.findIndex(e=>e.datapoint.id===M.value);if(e<0){gn();return}let t=$.value[e].datapoint;j.value=e,Sn(t,t.seriesIndex),V.value.showTooltip||(bt.value=!1),jt.value===`keyboard`&&Le(()=>_n(t.id))});let Cn=l(()=>K.value.map((e,t)=>{let n=ue(I.value.labels.dataLabels.formatter,e.value,c({p:I.value.labels.dataLabels.prefix,v:e.value,s:I.value.labels.dataLabels.suffix,r:L.value.legend.roundingValue}),{datapoint:e,index:t}),r=!q.value||!Number.isFinite(q.value)||U.value.includes(e.id)?`-`:c({v:e.value/q.value*100,s:`%`,r:L.value.legend.roundingPercentage}),i=bn({showVal:L.value.legend.showValue,showPercentage:L.value.legend.showPercentage,val:n,percentage:r});return{...e,proportion:un(e.value,ln.value),opacity:U.value.includes(e.id)?.5:1,shape:e.shape||`circle`,segregate:()=>W(e),isSegregated:U.value.includes(e.id),display:`${e.name}${L.value.legend.showPercentage||L.value.legend.showValue?`: `:``}${i}`}})),wn=l(()=>({cy:`galaxy-div-legend`,backgroundColor:L.value.legend.backgroundColor,color:L.value.legend.color,fontSize:L.value.legend.fontSize,paddingBottom:12,fontWeight:L.value.legend.bold?`bold`:``})),Z=l(()=>({head:J.value.map(e=>({name:e.name,color:e.color})),body:J.value.map(e=>e.value)}));function Tn(e=null){Le(()=>{let t=Z.value.head.map((e,t)=>[[e.name],[Z.value.body[t]],[!q.value||!Number.isFinite(q.value)?`-`:Z.value.body[t]/q.value*100]]),n=[[L.value.title.text],[L.value.title.subtitle.text],[[P.value.table.columnNames.series],[P.value.table.columnNames.value],[P.value.table.columnNames.percentage]]].concat(t),r=re(n);e?e(r):fe({csvContent:r,title:L.value.title.text||`vue-ui-galaxy`})})}let Q=l(()=>{let e=[`__SUM__`,c({p:I.value.labels.dataLabels.prefix,v:q.value,s:I.value.labels.dataLabels.suffix,r:P.value.table.td.roundingValue}),`100%`],t=Z.value.head.map((e,t)=>{let n=c({p:I.value.labels.dataLabels.prefix,v:Z.value.body[t],s:I.value.labels.dataLabels.suffix,r:P.value.table.td.roundingValue});return[{color:e.color,name:e.name},n,!q.value||!Number.isFinite(q.value)?`-`:c({v:Z.value.body[t]/q.value*100,s:`%`,r:P.value.table.td.roundingPercentage})]}),n={th:{backgroundColor:P.value.table.th.backgroundColor,color:P.value.table.th.color,outline:P.value.table.th.outline},td:{backgroundColor:P.value.table.td.backgroundColor,color:P.value.table.td.color,outline:P.value.table.td.outline},breakpoint:P.value.table.responsiveBreakpoint};return{colNames:[P.value.table.columnNames.series,P.value.table.columnNames.value,P.value.table.columnNames.percentage],head:e,body:t,config:n}});function En(){V.value.showTable=!V.value.showTable}function Dn(){V.value.showTooltip=!V.value.showTooltip}let On=b(!1);function kn(){On.value=!On.value}let An=te(O,()=>L.value.title.text),jn=l(()=>ee({config:P,style:L,mutableConfig:V,dialog:vt,accordion:pt,isFullscreen:Y,parent:O,maxWidth:500,isCursorPointer:Rt}));w(()=>V.value.showTable,e=>{Ot.value&&s(e,P,Ot)});function Mn(){V.value.showTable=!1,kt.value&&kt.value.setTableIconState(!1)}let Nn=l(()=>Cn.value.map(e=>({...e,name:e.display}))),Pn=l(()=>L.value.backgroundColor),Fn=l(()=>L.value.legend),In=l(()=>L.value.title),{isCallbackImaging:Ln,isCallbackSvg:Rn,generateSvg:zn,onGenerateImage:Bn}=xe({svg:B,title:In,legend:Fn,legendItems:Nn,backgroundColor:Pn,getSvgCallback:()=>P.value.userOptions.callbacks.svg,generateImage:Xt});async function Vn(){$t(`copyAlt`,{config:P.value,dataset:K.value}),P.value.userOptions.callbacks.altCopy?await Promise.resolve(P.value.userOptions.callbacks.altCopy({config:P.value,dataset:K.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function Hn(){j.value=null,M.value=null,Mt.value=!0}function Un(){gn(),Mt.value=!1}function Wn(e){if(!B.value||On.value||document.activeElement!==B.value||!$.value.length)return;let t=e.key===`ArrowLeft`||e.key===`ArrowUp`,n=e.key===`ArrowRight`||e.key===`ArrowDown`,r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){gn();return}if(r){if(j.value===null)return;let e=$.value[j.value];if(!e)return;yn(e.datapoint);return}let a=j.value;a===null||a<0||a>=$.value.length?a=n?0:$.value.length-1:(a+=n?1:-1,a<0&&(a=$.value.length-1),a>=$.value.length&&(a=0));let o=$.value[a];o&&xn({datapoint:o.datapoint,seriesIndex:o.datapoint.seriesIndex,show:!0,triggerMode:`keyboard`,flatIndex:a})}let Gn=l(()=>({headers:Q.value?.colNames??[],rows:Q.value.body.map(([e,...t])=>[e.name,...t])})),$=l(()=>J.value.filter(e=>e.value&&!N.value).map((e,t)=>({datapoint:e,index:t})));return je({getData:sn,getImage:An,generatePdf:Yt,generateCsv:Tn,generateImage:Xt,generateSvg:zn,hideSeries:an,showSeries:rn,toggleTable:En,toggleTooltip:Dn,toggleAnnotator:kn,toggleFullscreen:hn,copyAlt:Vn}),(e,s)=>(y(),f(`div`,{ref_key:`galaxyChart`,ref:O,class:_(`vue-data-ui-component vue-ui-galaxy ${Y.value?`vue-data-ui-wrapper-fullscreen`:``} ${P.value.useCssAnimation?``:`vue-ui-dna`} ${N.value?`loading`:``}`),style:Re(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;${L.value.title.text?``:`padding-top:36px`};background:${L.value.backgroundColor}`),id:`galaxy_${D.value}`,onMouseenter:s[2]||=()=>Gt(!0),onMouseleave:s[3]||=()=>{Gt(!1),Mt.value||gn()}},[p(`div`,{id:`chart-instructions-${D.value}`,class:`sr-only`},[p(`p`,null,S(P.value.a11y.translations.keyboardNavigation),1)],8,Ke),P.value.a11y.includeTable&&Gn.value?.rows?.length?(y(),u(ke,{key:0,uid:D.value,head:Gn.value.headers,body:Gn.value.rows,notice:P.value.a11y.translations.tableAvailable,caption:P.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):d(``,!0),P.value.userOptions.buttons.annotator?(y(),u(C(ht),Ie({key:1},C(a)(P.value.userOptions.annotator),{svgRef:C(B),backgroundColor:L.value.backgroundColor,color:L.value.color,active:On.value,isCursorPointer:Rt.value,palette:P.value.userOptions.annotatorPalette,onClose:kn}),Pe({_:2},[Ve(C(o),t=>({name:t,fn:T(n=>[x(e.$slots,t,v(g(C(i)(t,n))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):d(``,!0),Zt.value?(y(),f(`div`,{key:2,ref_key:`noTitle`,ref:Et,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):d(``,!0),L.value.title.text?(y(),f(`div`,{key:3,ref_key:`chartTitle`,ref:Ct,style:`width:100%;background:transparent;padding-bottom:24px`},[m(Te,{config:{title:{cy:`galaxy-div-title`,...L.value.title},subtitle:{cy:`galaxy-div-subtitle`,...L.value.title.subtitle}}},null,8,[`config`])],512)):d(``,!0),p(`div`,{id:`legend-top-${D.value}`},null,8,qe),P.value.userOptions.show&&Nt.value&&(Wt.value||Ut.value)?(y(),u(C(gt),Ie({ref_key:`userOptionsRef`,ref:kt,key:`user_option_${St.value}`,backgroundColor:L.value.backgroundColor,color:L.value.color,isPrinting:C(qt),isImaging:C(Jt),uid:D.value,hasTooltip:P.value.userOptions.buttons.tooltip&&L.value.tooltip.show,isTooltip:V.value.showTooltip,isFullscreen:Y.value,chartElement:O.value},C(n)(P.value.userOptions,`pdf csv img svg table fullscreen altCopy annotator`),{isAnnotation:On.value,tableDialog:P.value.table.useDialog,isCursorPointer:Rt.value,onToggleFullscreen:hn,onGeneratePdf:C(Yt),onGenerateCsv:Tn,onGenerateImage:C(Bn),onGenerateSvg:C(zn),onToggleTable:En,onToggleTooltip:Dn,onToggleAnnotator:kn,onCopyAlt:Vn,style:{visibility:Wt.value?Ut.value?`visible`:`hidden`:`visible`}}),Pe({_:2},[Ve(C(t)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:T(n=>[x(e.$slots,t,v(g(C(r)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`hasTooltip`,`isTooltip`,`isFullscreen`,`chartElement`,`isAnnotation`,`tableDialog`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):d(``,!0),p(`div`,Je,[(y(),f(`svg`,{ref_key:`svgRef`,ref:B,xmlns:C(pe),"aria-describedby":`chart-instructions-${D.value}`,class:_({"vue-data-ui-fullscreen--on":Y.value,"vue-data-ui-fulscreen--off":!Y.value}),viewBox:H.value.viewBox,style:Re(`max-width:100%; overflow: visible; background:transparent;color:${L.value.color}`),tabindex:`0`,onFocus:Hn,onBlur:Un,onKeydown:Wn},[m(C(_t)),x(e.$slots,`svg-underlayer`,{svg:{...H.value,isPrintingImg:C(qt)||C(Jt)||C(Ln),isPrintingSvg:C(Rn)}},void 0,!0),e.$slots[`chart-background`]?(y(),f(`foreignObject`,{key:0,x:0,y:0,width:H.value.width,height:H.value.height,style:{pointerEvents:`none`}},[x(e.$slots,`chart-background`,{},void 0,!0)],8,Xe)):d(``,!0),p(`defs`,null,[p(`filter`,{id:`blur_${D.value}`,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`},[p(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:100/F.value.gradient.intensity},null,8,Qe)],8,Ze)]),(y(!0),f(Me,null,Ve(J.value,e=>(y(),f(`g`,{key:`dp_${e.id}`},[e.value?(y(),f(`path`,{key:0,d:e.path,fill:`none`,stroke:L.value.backgroundColor,"stroke-width":mn.value[e.id].border,class:_({"vue-data-ui-transition":C(Lt)}),"stroke-linecap":`round`},null,10,$e)):d(``,!0),e.value?(y(),f(`path`,{key:1,d:e.path,fill:`none`,stroke:e.color,"stroke-width":mn.value[e.id].path,"stroke-linecap":`round`,class:_({"vue-data-ui-transition":C(Lt),"vue-ui-galaxy-blur":k.value&&k.value!==e.id&&P.value.useBlurOnHover})},null,10,et)):d(``,!0),e.value&&F.value.gradient.show?(y(),f(`g`,{key:2,filter:`url(#blur_${D.value})`},[p(`path`,{d:e.path,fill:`none`,stroke:F.value.gradient.color,"stroke-width":mn.value[e.id].blur,"stroke-linecap":`round`,class:_({"vue-ui-galaxy-gradient":!0,"vue-data-ui-transition":C(Lt),"vue-ui-galaxy-blur":k.value&&k.value!==e.id&&P.value.useBlurOnHover})},null,10,nt)],8,tt)):d(``,!0)]))),128)),(y(!0),f(Me,null,Ve(J.value,(e,t)=>(y(),f(`g`,null,[e.value?(y(),f(`path`,{key:0,"data-a11y-serie-id":e.id,d:e.path,fill:`none`,stroke:`transparent`,"stroke-width":mn.value[e.id].border,"stroke-linecap":`round`,"aria-label":`${e.name}: ${C(c)({p:I.value.labels.dataLabels.prefix,v:e.value,s:I.value.labels.dataLabels.suffix,r:L.value.tooltip.roundingValue})}`,onMouseenter:t=>xn({datapoint:e,seriesIndex:e.seriesIndex,show:!0,triggerMode:`pointer`,flatIndex:$.value.findIndex(t=>t.datapoint.id===e.id)}),onMouseleave:t=>vn(e),onClick:t=>yn(e)},null,40,rt)):d(``,!0)]))),256)),x(e.$slots,`svg`,{svg:{...H.value,isPrintingImg:C(qt)||C(Jt)||C(Ln),isPrintingSvg:C(Rn)}},void 0,!0)],46,Ye)),e.$slots.hint?(y(),f(`div`,it,[x(e.$slots,`hint`,v(g({hint:P.value.a11y.translations.keyboardNavigation,isVisible:Mt.value})),void 0,!0)])):d(``,!0)]),e.$slots.watermark?(y(),f(`div`,at,[x(e.$slots,`watermark`,v(g({isPrinting:C(qt)||C(Jt)||C(Ln)||C(Rn)})),void 0,!0)])):d(``,!0),p(`div`,{id:`legend-bottom-${D.value}`},null,8,ot),Dt.value&&(L.value.legend.show||e.$slots.legend)?(y(),u(Ne,{key:6,to:L.value.legend.position===`top`?`#legend-top-${D.value}`:`#legend-bottom-${D.value}`},[p(`div`,{ref_key:`chartLegend`,ref:wt},[x(e.$slots,`legend`,{legend:Cn.value},()=>[L.value.legend.show?(y(),u(Ee,{key:0,legendSet:Cn.value,config:wn.value,onClickMarker:s[0]||=({legend:e})=>W(e)},{item:T(({legend:e,index:t})=>[N.value?d(``,!0):(y(),f(`div`,{key:0,onClick:t=>W(e),style:Re(`opacity:${U.value.includes(e.id)?.5:1}`)},S(e.display),13,st))]),legendToggle:T(()=>[Cn.value.length>2&&L.value.legend.selectAllToggle.show&&!N.value?(y(),u(Ae,{key:0,backgroundColor:L.value.legend.selectAllToggle.backgroundColor,color:L.value.legend.selectAllToggle.color,fontSize:L.value.legend.fontSize,checked:U.value.length>0,onToggle:tn},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`])):d(``,!0)]),_:1},8,[`legendSet`,`config`])):d(``,!0)],!0)],512)],8,[`to`])):d(``,!0),e.$slots.source?(y(),f(`div`,{key:7,ref_key:`source`,ref:Tt,dir:`auto`},[x(e.$slots,`source`,{},void 0,!0)],512)):d(``,!0),m(C(dt),{teleportTo:L.value.tooltip.teleportTo,show:V.value.showTooltip&&bt.value,backgroundColor:L.value.tooltip.backgroundColor,color:L.value.tooltip.color,borderRadius:L.value.tooltip.borderRadius,borderColor:L.value.tooltip.borderColor,borderWidth:L.value.tooltip.borderWidth,fontSize:L.value.tooltip.fontSize,backgroundOpacity:L.value.tooltip.backgroundOpacity,position:L.value.tooltip.position,offsetX:L.value.tooltip.offsetX,offsetY:L.value.tooltip.offsetY,parent:O.value,content:xt.value,isFullscreen:Y.value,isCustom:C(ie)(L.value.tooltip.customFormat),smooth:L.value.tooltip.smooth,backdropFilter:L.value.tooltip.backdropFilter,smoothForce:L.value.tooltip.smoothForce,smoothSnapThreshold:L.value.tooltip.smoothSnapThreshold,isA11yMode:jt.value===`keyboard`,a11yPosition:At.value},{"tooltip-before":T(()=>[x(e.$slots,`tooltip-before`,v(g({...X.value})),void 0,!0)]),tooltip:T(()=>[x(e.$slots,`tooltip`,v(g({...X.value})),void 0,!0)]),"tooltip-after":T(()=>[x(e.$slots,`tooltip-after`,v(g({...X.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),Nt.value&&P.value.userOptions.buttons.table?(y(),u(He(jn.value.component),Ie({key:8},jn.value.props,{ref_key:`tableUnit`,ref:Ot,onClose:Mn}),Pe({content:T(()=>[m(C(mt),{colNames:Q.value.colNames,head:Q.value.head,body:Q.value.body,config:Q.value.config,title:P.value.table.useDialog?``:jn.value.title,withCloseButton:!P.value.table.useDialog,isCursorPointer:Rt.value,onClose:Mn},{th:T(({th:e})=>[e===`__SUM__`?(y(),f(`div`,ct,[m(C(ft),{name:`sigma`,stroke:Q.value.config.th.color,size:16},null,8,[`stroke`])])):(y(),f(`div`,lt,S(e),1))]),td:T(({td:e})=>[Fe(S(e.name||e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`])]),_:2},[P.value.table.useDialog?{name:`title`,fn:T(()=>[Fe(S(jn.value.title),1)]),key:`0`}:void 0,P.value.table.useDialog?{name:`actions`,fn:T(()=>[p(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:s[1]||=e=>Tn(P.value.userOptions.callbacks.csv),style:Re({cursor:Rt.value?`pointer`:`default`})},[m(C(ft),{name:`fileCsv`,stroke:jn.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):d(``,!0),x(e.$slots,`skeleton`,{},()=>[N.value?(y(),u(Oe,{key:0})):d(``,!0)],!0)],46,Ge))}},[[`__scopeId`,`data-v-799ed9d7`]]);export{We as n,dt as t};
@@ -1,4 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./userOptionsSlots-CWtXN5Q6.js";import{n as i,r as a,t as o}from"./annotationSlots-OLiW25XN.js";import{n as s}from"./annotationViewport-X8fvs7pz.js";import{n as c,t as l}from"./tableIntegration-CNoJ1CIY.js";import{t as u}from"./chartImage-DPGnEuYM.js";import{n as d}from"./resolveChartConfig-0IvbmIE_.js";import{r as f}from"./canvas-lib-22VpOI4_.js";import{$ as p,D as m,Dt as h,Ht as g,S as _,X as v,Z as y,Zt as ee,at as te,b,in as x,nt as S,t as C,yt as w,zt as T}from"./lib-rPeBMZrn.js";import{n as ne,t as re}from"./useHints-C-TwxM0Y.js";import{t as ie}from"./useConfig-CXhXxWjB.js";import{t as E}from"./useLoading-DoqqfnmS.js";import{t as ae}from"./usePrinter-DVf3YcG5.js";import{t as oe}from"./useResponsive-CENUxfEL.js";import{t as se}from"./useChartExport-BZts4KFb.js";import{t as ce}from"./useUserOptionState-CXlFnwPv.js";import{t as le}from"./useChartAccessibility-DOMuYJfm.js";import{n as ue}from"./Title-BliHuXfT.js";import{t as de}from"./vue_ui_word_cloud-BCZlF5jp.js";import{t as fe}from"./usePanZoom-DlEcNgCv.js";import{t as pe}from"./BaseScanner-m6QR9rwD.js";import{t as me}from"./A11yDataTable-DWNlWXzs.js";import{t as he}from"./BaseZoomControls-D4i_j6vc.js";import{t as ge}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Fragment as _e,computed as D,createBlock as O,createCommentVNode as k,createElementBlock as A,createElementVNode as j,createSlots as ve,createTextVNode as ye,createVNode as be,defineAsyncComponent as M,guardReactiveProps as xe,mergeProps as Se,nextTick as Ce,normalizeClass as we,normalizeProps as Te,normalizeStyle as Ee,onBeforeUnmount as De,onMounted as Oe,openBlock as N,ref as P,renderList as ke,renderSlot as F,resolveDynamicComponent as Ae,shallowRef as je,toDisplayString as Me,toRefs as Ne,unref as I,watch as Pe,withCtx as L}from"vue";var Fe={fast:{spiralStep:6,fallbackSpiralStep:2,spiralRadiusStep:2,fallbackSpiralRadiusStep:1,primaryAttempts:1e4,fallbackAttempts:25e3,minimumVisualPadding:2,scaleStep:.9},balanced:{spiralStep:4,fallbackSpiralStep:1,spiralRadiusStep:1.5,fallbackSpiralRadiusStep:1,primaryAttempts:2e4,fallbackAttempts:5e4,minimumVisualPadding:3,scaleStep:.92},precise:{spiralStep:2,fallbackSpiralStep:1,spiralRadiusStep:1,fallbackSpiralRadiusStep:.75,primaryAttempts:5e4,fallbackAttempts:1e5,minimumVisualPadding:4,scaleStep:.95}},Ie=`fast`;function Le(e){return Fe[e]||Fe[Ie]}var Re=/* @__PURE__ */ new Map;function ze(e){let t=String(e),n=Re.get(t);if(n)return n;let r=Math.PI/180,i=[],a=[];for(let t=0;t<360;t+=e){let e=t*r;i.push(Math.cos(e)),a.push(Math.sin(e))}let o={cosineArray:i,sineArray:a};return Re.set(t,o),o}function Be({word:e,fontSize:t,pad:n,canvas:r,ctx:i,svg:a}){let o=a.style&&a.style.bold,s=a.style&&a.style.fontFamily||`Arial, "Noto Sans Arabic", Tahoma, sans-serif`,c=`${o?`bold `:``}${t}px ${s}`,l=String(e.name||``),u=/[\u0600-\u06FF]/.test(l);i.font=c,i.direction=u?`rtl`:`ltr`,i.textAlign=`left`,i.textBaseline=`alphabetic`;let d=i.measureText(l),f=Math.ceil(Math.abs(d.actualBoundingBoxLeft||0)),p=Math.ceil(Math.abs(d.actualBoundingBoxRight||d.width)),m=Math.ceil(d.actualBoundingBoxAscent||t),h=Math.ceil(d.actualBoundingBoxDescent||t*.25),g=Math.max(0,Math.round(n||0))+Math.ceil(t*(u?.22:.12)),_=Math.max(1,f+p+g*2),v=Math.max(1,m+h+g*2);r.width=_,r.height=v,i.font=c,i.direction=u?`rtl`:`ltr`,i.textAlign=`left`,i.textBaseline=`alphabetic`,i.fillStyle=`black`;let y=g+f,ee=g+m;i.fillText(l,y,ee);let te=i.getImageData(0,0,_,v).data,b=[],x=[],S=_,C=v,w=0,T=0,ne=!1;for(let e=0;e<v;e+=1){let t=e*_*4,n=-1,r=!1;for(let i=0;i<_;i+=1)te[t+i*4+3]>1?(b.push([i,e]),ne=!0,i<S&&(S=i),i>w&&(w=i),e<C&&(C=e),e>T&&(T=e),r||(r=!0,n=i)):r&&(x.push([e,n,i-1]),r=!1,n=-1);r&&x.push([e,n,_-1])}return ne||(S=0,C=0,w=0,T=0),{w:_,h:v,wordMask:b,runs:x,minX:S,minY:C,maxX:w,maxY:T}}function Ve(e){let t=[];if(!e.length)return t;let n=e[0][1],r=e[0][0],i=r;for(let a=1;a<e.length;a+=1){let o=e[a][0],s=e[a][1];s===n?(o===i+1||(t.push([n,r,i]),r=o),i=o):(t.push([n,r,i]),n=s,r=o,i=o)}return t.push([n,r,i]),t}function He(e,t){return 4294967295>>>32-(t-e+1)<<e>>>0}function Ue(e){return 4294967295<<e>>>0}function We(e){return 4294967295>>>31-e>>>0}function R({maskBits:e,maskRowStride:t,maskW:n,maskH:r,wx:i,wy:a,runs:o}){for(let s=0;s<o.length;s+=1){let c=o[s][0],l=o[s][1],u=o[s][2],d=a+c;if(d<0||d>=r)return!1;let f=i+l,p=i+u;if(f<0||p>=n)return!1;let m=d*t,h=f>>>5,g=p>>>5,_=f&31,v=p&31;if(h===g){if(e[m+h]&He(_,v))return!1}else{if(e[m+h]&Ue(_))return!1;for(let t=h+1;t<g;t+=1)if(e[m+t])return!1;if(e[m+g]&We(v))return!1}}return!0}function Ge({maskBits:e,maskRowStride:t,maskW:n,maskH:r,wx:i,wy:a,runs:o}){for(let s=0;s<o.length;s+=1){let c=o[s][0],l=o[s][1],u=o[s][2],d=a+c;if(d<0||d>=r)continue;let f=i+l,p=i+u;if(p<0||f>=n)continue;let m=d*t,h=f>>>5,g=p>>>5,_=f&31,v=p&31;if(h===g){let t=He(_,v);e[m+h]|=t}else{{let t=Ue(_);e[m+h]|=t}for(let t=h+1;t<g;t+=1)e[m+t]=4294967295;{let t=We(v);e[m+g]|=t}}}}function Ke({wordMask:e,w:t,h:n,dilation:r}){let i=new Uint8Array(t*n),a=[];for(let n=0;n<e.length;n+=1){let r=e[n][0],o=e[n][1]*t+r;i[o]||(i[o]=1,a.push(o))}for(let e=0;e<a.length;e+=1){let o=a[e],s=o/t|0,c=o-s*t;for(let e=-r;e<=r;e+=1){let a=s+e;if(a<0||a>=n)continue;let o=a*t;for(let n=-r;n<=r;n+=1){if(n===0&&e===0)continue;let r=c+n;r<0||r>=t||(i[o+r]=1)}}}let o=[];for(let e=0;e<i.length;e+=1)if(i[e]){let n=e/t|0,r=e-n*t;o.push([r,n])}return o}function z(e,t){let n=[];for(let r=0;r<t;r+=1){let t=e[r];if(!t||t.length===0)continue;t.sort((e,t)=>e[0]-t[0]);let i=t[0][0],a=t[0][1];for(let e=1;e<t.length;e+=1){let o=t[e][0],s=t[e][1];o<=a+1?s>a&&(a=s):(n.push([r,i,a]),i=o,a=s)}n.push([r,i,a])}return n}function qe({runs:e,w:t,h:n,dilation:r}){if(!e.length||r<=0)return e;let i=Array(n);for(let a=0;a<e.length;a+=1){let o=e[a],s=o[0],c=Math.max(0,o[1]-r),l=Math.min(t-1,o[2]+r),u=Math.max(0,s-r),d=Math.min(n-1,s+r);for(let e=u;e<=d;e+=1){let t=i[e];t||(t=[],i[e]=t),t.push([c,l])}}return z(i,n)}function B(e,t){let n=e.runs,r=e.w,i=e.h,a=Math.max(1,Math.round(r*t)),o=Math.max(1,Math.round(i*t)),s=Array(o),c=a,l=o,u=0,d=0,f=!1;for(let e=0;e<n.length;e+=1){let r=n[e],i=r[0],a=r[1],p=r[2],m=Math.round(i*t);if(m<0||m>=o)continue;let h=Math.round(a*t),g=Math.round((p+1)*t)-1;if(g<h)continue;let _=s[m];_||(_=[],s[m]=_),_.push([h,g]),f=!0,h<c&&(c=h),g>u&&(u=g),m<l&&(l=m),m>d&&(d=m)}if(!f)return{w:a,h:o,runs:[],minX:0,minY:0,maxX:0,maxY:0};let p=[];for(let e=0;e<o;e+=1){let t=s[e];if(!t||t.length===0)continue;t.sort((e,t)=>e[0]-t[0]);let n=t[0][0],r=t[0][1];for(let i=1;i<t.length;i+=1){let a=t[i][0],o=t[i][1];a<=r+1?o>r&&(r=o):(p.push([e,n,r]),n=a,r=o)}p.push([e,n,r])}return{w:a,h:o,runs:p,minX:c,minY:l,maxX:u,maxY:d}}var Je=/* @__PURE__ */ new Map,Ye=/* @__PURE__ */ new Map;function Xe({word:e,fontSize:t,pad:n,svg:r}){let i=r.style&&r.style.bold?1:0,a=n||0;return`${e.name}::${t}::${a}::${i}`}function Ze({word:e,fontSize:t,pad:n,canvas:r,ctx:i,svg:a}){let o=Xe({word:e,fontSize:t,pad:n,svg:a}),s=Je.get(o);if(s)return{key:o,bitmap:s};let c=Be({word:e,fontSize:t,pad:n,canvas:r,ctx:i,svg:a});return Je.set(o,c),{key:o,bitmap:c}}function Qe({bitmapKey:e,wordMask:t,w:n,h:r,dilation:i}){let a=`${e}::d${i}`,o=Ye.get(a);if(o)return o;let s=Ke({wordMask:t,w:n,h:r,dilation:i}),c={wordMask:s,runs:Ve(s)};return Ye.set(a,c),c}function $e(e,t,n){if(!e.length)return;let r=1/0,i=-1/0,a=1/0,o=-1/0;for(let t=0;t<e.length;t+=1){let n=e[t],s=n.x+n.minX,c=n.x+n.maxX,l=n.y+n.minY,u=n.y+n.maxY;s<r&&(r=s),c>i&&(i=c),l<a&&(a=l),u>o&&(o=u)}if(!isFinite(r)||!isFinite(i)||!isFinite(a)||!isFinite(o))return;let s=Math.max(Math.abs(r),Math.abs(i)),c=Math.max(Math.abs(a),Math.abs(o));if(s===0||c===0)return;let l=.9,u=t*.5*l/s,d=n*.5*l/c,f=Math.min(u,d);if(!(f<=1)){f>4&&(f=4);for(let t=0;t<e.length;t+=1){let n=e[t];n.x*=f,n.y*=f,n.width*=f,n.height*=f,n.fontSize*=f,n.minX*=f,n.maxX*=f,n.minY*=f,n.maxY*=f}}}function et(){return typeof performance<`u`&&typeof performance.now==`function`?()=>performance.now():()=>Date.now()}function tt({value:e,minimumValue:t,maximumValue:n,configuredMinimumFontSize:r,maximumFontSize:i}){if(n===t)return i;let a=(e-t)/(n-t)*(i-r)+r;return Math.max(r,Math.min(i,a))}function nt({bitmapHeight:e,proximity:t,strictPixelPadding:n,minimumVisualPadding:r}){let i=Math.max(0,Math.round(t||0)),a=Math.ceil(e*.035)+2;return Math.max(i,a,n?3:0,r)}function rt({currentBitmap:e,strictPixelPadding:t,scaleFactor:n,baseBitmap:r,bitmapKey:i,proximity:a,minimumVisualPadding:o}){let s=e.runs,c=e.w,l=e.h,u=e.minX,d=e.minY,f=e.maxX,p=e.maxY;if(!s.length)return{runs:s,bitmapWidth:c,bitmapHeight:l,bitmapMinimumX:u,bitmapMinimumY:d,bitmapMaximumX:f,bitmapMaximumY:p};let m=nt({bitmapHeight:l,proximity:a,strictPixelPadding:t,minimumVisualPadding:o});return m<=0?{runs:s,bitmapWidth:c,bitmapHeight:l,bitmapMinimumX:u,bitmapMinimumY:d,bitmapMaximumX:f,bitmapMaximumY:p}:n===1&&m===2&&t?{runs:Qe({bitmapKey:i,wordMask:r.wordMask,w:r.w,h:r.h,dilation:m}).runs,bitmapWidth:c,bitmapHeight:l,bitmapMinimumX:u,bitmapMinimumY:d,bitmapMaximumX:f,bitmapMaximumY:p}:{runs:qe({runs:s,w:c,h:l,dilation:m}),bitmapWidth:c,bitmapHeight:l,bitmapMinimumX:u,bitmapMinimumY:d,bitmapMaximumX:f,bitmapMaximumY:p}}async function V({baseBitmap:e,baseFontSize:t,minimumScaleFactor:n,maskBits:r,maskRowStride:i,maskWidth:a,maskHeight:o,centerX:s,centerY:c,maximumRadius:l,scaleStep:u,strictPixelPadding:d,bitmapKey:f,minimumFontSize:p,rawWord:m,cosineArray:h,sineArray:g,radiusStep:_,maximumAttempts:v,maybeYield:y,proximity:ee,minimumVisualPadding:te}){let b=1;for(;b>=n;){let{runs:n,bitmapWidth:x,bitmapHeight:S,bitmapMinimumX:C,bitmapMinimumY:w,bitmapMaximumX:T,bitmapMaximumY:ne}=rt({currentBitmap:b===1?e:B(e,b),strictPixelPadding:d,scaleFactor:b,baseBitmap:e,bitmapKey:f,proximity:ee,minimumVisualPadding:te}),re=0,ie=0;for(;re<l&&ie<v;){for(let e=0;e<h.length;e+=1){ie+=1;let l=Math.round(s+re*h[e]-x/2),u=Math.round(c+re*g[e]-S/2);if(!(l<0||u<0||l+x>a||u+S>o)&&R({maskBits:r,maskRowStride:i,maskW:a,maskH:o,wx:l,wy:u,runs:n})){let{__wcIndex:e,...s}=m,c=Math.max(p,Math.round(t*b)),d={...s,x:l-a/2,y:u-o/2,fontSize:c,width:x,height:S,angle:0,minX:C,minY:w,maxX:T,maxY:ne};return Ge({maskBits:r,maskRowStride:i,maskW:a,maskH:o,wx:l,wy:u,runs:n}),d}}re+=_,ie&1023||await y()}b*=u,await y()}return null}async function it({baseBitmap:e,baseFontSize:t,minimumScaleFactor:n,maskBits:r,maskRowStride:i,maskWidth:a,maskHeight:o,centerX:s,centerY:c,maximumRadius:l,scaleStep:u,strictPixelPadding:d,bitmapKey:f,minimumFontSize:p,rawWord:m,maybeYield:h,proximity:g,qualityPreset:_,primarySpiral:v,fallbackSpiral:y}){return await V({baseBitmap:e,baseFontSize:t,minimumScaleFactor:n,maskBits:r,maskRowStride:i,maskWidth:a,maskHeight:o,centerX:s,centerY:c,maximumRadius:l,scaleStep:u,strictPixelPadding:d,bitmapKey:f,minimumFontSize:p,rawWord:m,cosineArray:v.cosineArray,sineArray:v.sineArray,radiusStep:_.spiralRadiusStep,maximumAttempts:_.primaryAttempts,maybeYield:h,proximity:g,minimumVisualPadding:_.minimumVisualPadding})||await V({baseBitmap:e,baseFontSize:t,minimumScaleFactor:n,maskBits:r,maskRowStride:i,maskWidth:a,maskHeight:o,centerX:s,centerY:c,maximumRadius:l,scaleStep:u,strictPixelPadding:d,bitmapKey:f,minimumFontSize:p,rawWord:m,cosineArray:y.cosineArray,sineArray:y.sineArray,radiusStep:_.fallbackSpiralRadiusStep,maximumAttempts:_.fallbackAttempts,maybeYield:h,proximity:g,minimumVisualPadding:_.minimumVisualPadding})}async function at({words:e,proximity:t=0,svg:n,strictPixelPadding:r,quality:i=Ie,onProgress:a,debugTiming:o=!1}){let s=et(),c=s(),l=c;async function u(){s()-l>=12&&(await new Promise(e=>setTimeout(e,0)),l=s())}let d=n.width,f=n.height,p=Math.round(d),m=Math.round(f),h=Le(i),g=ze(h.spiralStep),_=ze(h.fallbackSpiralStep),v=n.minFontSize,y=Math.min(n.maxFontSize,100),ee=e.map(e=>e.value),te=Math.min(...ee),b=Math.max(...ee);if(p<=0||m<=0)return[];let x=p+31>>>5,S=new Uint32Array(x*m),C=document.createElement(`canvas`),w=C.getContext(`2d`,{willReadFrequently:!0});C.width=p,C.height=m;let T=Math.max(p,m),ne=Math.floor(p/2),re=Math.floor(m/2),ie=[...e.map((e,t)=>({...e,__wcIndex:t,id:e.id==null?`${e.name}__${t}`:e.id}))].sort((e,t)=>t.value-e.value),E=[],ae=h.scaleStep;for(let e=0;e<ie.length;e+=1){let i=ie[e],o=E.length,s=tt({value:i.value,minimumValue:te,maximumValue:b,configuredMinimumFontSize:v,maximumFontSize:y}),c=Ze({word:i,fontSize:s,pad:t,canvas:C,ctx:w,svg:n}),l=c.key,d=c.bitmap,f=d.w,ee=d.h;if(f<=0||ee<=0){await u();continue}let oe=await it({baseBitmap:d,baseFontSize:s,minimumScaleFactor:Math.max(1/s,.1),maskBits:S,maskRowStride:x,maskWidth:p,maskHeight:m,centerX:ne,centerY:re,maximumRadius:T,scaleStep:ae,strictPixelPadding:r,bitmapKey:l,minimumFontSize:1,rawWord:i,maybeYield:u,proximity:t,qualityPreset:h,primarySpiral:g,fallbackSpiral:_});if(oe&&(E.push(oe),a&&E.length>o)){let e=E[E.length-1];a({word:e,all:E})}await u()}if(!E.length)return[];$e(E,p,m);let oe=s()-c;return o&&typeof console<`u`&&console.log&&console.log(`[vue-data-ui][word-cloud] positionWordsAsync:`,`${oe.toFixed(2)} ms for ${e.length} words`),E.sort((e,t)=>t.fontSize-e.fontSize)}var ot=/* @__PURE__ */ e({default:()=>bt}),st=[`id`,`data-resizing`,`data-relayout`],ct=[`id`],lt={style:{position:`relative`}},ut=[`aria-describedby`,`xmlns`,`viewBox`],dt=[`width`,`height`],ft=[`transform`],pt=[`transform`],mt=[`data-a11y-word-index`,`x`,`y`,`width`,`height`,`aria-label`,`onMouseover`,`onMouseleave`,`onClick`],ht=[`fill`,`font-weight`,`font-size`,`transform`,`stroke`,`stroke-width`],gt={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},_t={key:5,class:`vue-data-ui-watermark`},vt={key:6,"data-dom-to-png-ignore":``,class:`reset-wrapper`},yt={style:{display:`flex`,"align-items":`center`}},bt=/*#__PURE__*/ ge({__name:`vue-ui-word-cloud`,props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},emits:[`copyAlt`],setup(e,{expose:ge,emit:Fe}){let Ie=M(()=>import(`./Tooltip-B432XpvC.js`)),Le=M(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),Re=M(()=>import(`./vue-ui-accordion-D3uT1Ynv.js`).then(e=>e.n)),ze=M(()=>import(`./DataTable-KeuZB1JM.js`)),Be=M(()=>import(`./PenAndPaper-BV5ODysA.js`).then(e=>e.t)),Ve=M(()=>import(`./UserOptions-K1N7zQRx.js`).then(e=>e.n)),He=M(()=>import(`./PackageVersion-C1vtZkKc.js`).then(e=>e.t)),Ue=M(()=>import(`./BaseDraggableDialog-DVstuNhT.js`).then(e=>e.n)),{vue_ui_word_cloud:We}=ie(),R=e,Ge=Fe,Ke=D({get(){return!!R.dataset&&R.dataset.length},set(e){return e}}),z=P(v()),qe=P(0),B=P(null),Je=P(null),Ye=P(null),Xe=P(0),Ze=P(0),Qe=P(!1),$e=P(null),et=P(null),tt=P(!1),nt=P(!1),rt=P(null),V=P(null),it=P({x:0,y:0}),ot=P(`pointer`),bt=P(!1),H=P(Mt()),U=D(()=>H.value.userOptions),W=D(()=>H.value.style.chart.tooltip),xt=D(()=>H.value.style.chart.controls),G=D(()=>H.value.style.chart.words),K=D(()=>H.value.style.chart);ne({config:()=>H.value,dataset:()=>R.dataset,component:`VueUiWordCloud`,rules:[re.noHint]});let St=D(()=>H.value.userOptions.useCursorPointer),Ct=D(()=>x({defaultConfig:{userOptions:{show:!1},table:{show:!1},useCssAnimation:!1,animationDelayMs:0,nodeCategories:{},nodeCategoryColors:{},style:{chart:{backgroundColor:`#99999930`,words:{color:`#6A6A6A`,usePalette:!1,selectedStroke:`#CCCCCC`}}}},userConfig:H.value.skeletonConfig??{}})),{loading:wt,FINAL_DATASET:Tt,manualLoading:Et}=E({...Ne(R),FINAL_CONFIG:H,prepareConfig:Mt,callback:()=>{Promise.resolve().then(()=>{X.value.showTable=H.value.table.show,X.value.showTooltip=W.value.show,X.value.showZoom=K.value.zoom.show})},skeletonDataset:R.config?.skeletonDataset??[{name:`Lorem`,value:6},{name:`ipsum`,value:3},{name:`dolor`,value:1},{name:`sit`,value:3},{name:`amet`,value:3},{name:`consectetur`,value:2},{name:`adipiscing`,value:1},{name:`elit`,value:2},{name:`Vivamus`,value:2},{name:`pulvinar`,value:1},{name:`pretium`,value:1},{name:`venenatis`,value:2},{name:`Donec`,value:1},{name:`imperdiet`,value:3},{name:`id`,value:1},{name:`porttitor`,value:2},{name:`tristique`,value:1},{name:`Aenean`,value:2},{name:`ac`,value:5},{name:`commodo`,value:2},{name:`justo`,value:2},{name:`Vestibulum`,value:2},{name:`placerat`,value:1},{name:`molestie`,value:1},{name:`nisl`,value:1},{name:`lacinia`,value:2},{name:`nulla`,value:1},{name:`posuere`,value:2},{name:`quis`,value:3},{name:`ullamcorper`,value:1},{name:`eu`,value:1},{name:`ex`,value:1},{name:`vitae`,value:3},{name:`facilisis`,value:1},{name:`Aliquam`,value:1},{name:`erat`,value:1},{name:`volutpat`,value:1},{name:`Proin`,value:1},{name:`nunc`,value:1},{name:`felis`,value:1},{name:`gravida`,value:3},{name:`sed`,value:1},{name:`orci`,value:1},{name:`Interdum`,value:1},{name:`et`,value:1},{name:`malesuada`,value:1},{name:`fames`,value:1},{name:`ante`,value:1}],skeletonConfig:x({defaultConfig:H.value,userConfig:Ct.value})}),Dt=P(Ot());function Ot(){return typeof Tt.value==`string`?y(Tt.value):Tt.value.map((e,t)=>({...e,value:b(e.value)}))}let{userOptionsVisible:kt,setUserOptionsVisibility:At,keepUserOptionState:jt}=ce({config:H.value}),{svgRef:q}=le({config:K.value.title});function Mt(){return d(R.config,We,de)}let Nt=P({x:0,y:0});function Pt(){let e={x:0,y:0,width:Math.max(10,J.value.width),height:Math.max(10,J.value.height)};dn(e),Nt.value={x:e.x+e.width/2,y:e.y+e.height/2},ln()}let Ft=f(()=>{Yt()},100),It=P(!1);Pe(()=>It.value,e=>{e===!1&&(nt.value=!0,Ft(),Pt())});let Lt=ee(R.config);Pe(()=>R.config,(e,t)=>{let n=ee(e),r=n!==Lt;Lt=n;let i=Mt();r?(H.value=i,kt.value=!H.value.userOptions.showOnChartHover,Ht(),Xe.value+=1,Ze.value+=1,X.value.showTable=H.value.table.show,X.value.showTooltip=W.value.show,X.value.showZoom=K.value.zoom.show):(H.value.style.chart.tooltip=i.style.chart.tooltip,X.value.showTooltip=H.value.style.chart.tooltip.show)},{deep:!0});let J=P({width:K.value.width,height:K.value.height,maxFontSize:G.value.maxFontSize,minFontSize:G.value.minFontSize,bold:G.value.bold}),Rt=f(()=>{let{width:e,height:t}=oe({chart:B.value,title:K.value.title.text?Je.value:null,legend:xt.value.show?rt.value?.$el:null,source:Ye.value});requestAnimationFrame(async()=>{J.value.width=Math.max(10,e),J.value.height=Math.max(10,t-12),await Ce(),It.value=!1})},100),zt=()=>{It.value=!0,Rt()},Y=je(null),Bt=je(null);Oe(Ht);let Vt=D(()=>H.value.debug);function Ht(){T(R.dataset)?te({componentName:`VueUiWordCloud`,type:`dataset`,debug:Vt.value}):Dt.value.forEach((e,t)=>{w({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{Ke.value=!1,te({componentName:`VueUiWordCloud`,type:`datasetSerieAttribute`,property:e,index:t,debug:Vt.value})})}),T(R.dataset)||(Et.value=H.value.loading),H.value.responsive&&(Y.value&&(Bt.value&&Y.value.unobserve(Bt.value),Y.value.disconnect()),Y.value=new ResizeObserver(zt),Bt.value=B.value.parentNode,Y.value.observe(Bt.value)),Pt()}De(()=>{Y.value&&(Bt.value&&Y.value.unobserve(Bt.value),Y.value.disconnect())});let{isPrinting:Ut,isImaging:Wt,generatePdf:Gt,generateImage:Kt}=ae({elementId:`wordCloud_${z.value}`,fileName:K.value.title.text||`vue-ui-word-cloud`,options:H.value.userOptions.print}),X=P({showTable:H.value.table.show,showTooltip:W.value.show,showZoom:K.value.zoom.show});Pe(H,()=>{X.value.showTable=H.value.table.show,X.value.showTooltip=W.value.show,X.value.showZoom=K.value.zoom.show},{immediate:!0});function qt(e,t,n=`Arial`){let r=document.createElement(`canvas`).getContext(`2d`);return r.font=`${t}px ${G.value.bold?`bold`:`normal`} ${n}`,{width:r.measureText(e).width+G.value.proximity,height:t}}let Z=P([]),Jt=/* @__PURE__ */ new Map;function Yt(){let e=[...Dt.value].map(e=>e.value),t=Math.max(...e),n=Math.min(...e),r=[...Dt.value].map((e,r)=>{let i=(e.value-n)/(t-n)*(J.value.maxFontSize-J.value.minFontSize)+J.value.minFontSize;i=isNaN(i)?J.value.minFontSize:i;let a=qt(e.name,i);return{...e,id:e.id??`${e.name}__${r}`,fontSize:i,width:a.width,height:a.height,color:e.color?_(e.color):G.value.usePalette?H.value.customPalette[r]||H.value.customPalette[r%H.value.customPalette.length]||g[r]||g[r%g.length]:G.value.color}});Z.value.length=0,Jt.clear(),at({debugTiming:Vt.value,words:r,svg:J.value,proximity:G.value.proximity,strictPixelPadding:H.value.strictPixelPadding,quality:H.value.quality,onProgress:({all:e})=>{for(let t of e){let e=t.id,n=Jt.get(e);if(n===void 0)n=Z.value.length,Jt.set(e,n),Z.value.push({...t});else{let e=Z.value[n];e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e.fontSize=t.fontSize,e.minX=t.minX,e.minY=t.minY,e.maxX=t.maxX,e.maxY=t.maxY}}}}),Z.value.sort((e,t)=>t.fontSize-e.fontSize),Jt.clear(),Z.value.forEach((e,t)=>{Jt.set(e.id,t)}),tt.value=!0,nt.value=!1}let Xt=D(()=>({head:Z.value.map(e=>({name:e.name,color:e.color})),body:Z.value.map(e=>e.value)}));function Zt(e=null){Ce(()=>{let t=Xt.value.head.map((e,t)=>[[e.name],[Xt.value.body[t]]]),n=[[K.value.title.text],[K.value.title.subtitle.text],[[``],[H.value.table.columnNames.value]]].concat(t),r=m(n);e?e(r):S({csvContent:r,title:K.value.title.text||`vue-ui-word-cloud`})})}let Qt=D(()=>{let e=[H.value.table.columnNames.series,H.value.table.columnNames.value],t=Xt.value.head.map((e,t)=>{let n=p({p:H.value.table.td.prefix,v:Xt.value.body[t],s:H.value.table.td.suffix,r:H.value.table.td.roundingValue});return[{color:e.color,name:e.name},n]}),n=t.map(e=>e.map((e,t)=>t===0?e.name:e)),r={th:{backgroundColor:H.value.table.th.backgroundColor,color:H.value.table.th.color,outline:H.value.table.th.outline},td:{backgroundColor:H.value.table.td.backgroundColor,color:H.value.table.td.color,outline:H.value.table.td.outline},breakpoint:H.value.table.responsiveBreakpoint};return{colNames:[H.value.table.columnNames.series,H.value.table.columnNames.value],head:e,body:t,a11yBody:n,config:r}}),Q=P(!1);function $t(e){Q.value=e,qe.value+=1}function en(){return Z.value}function tn(){X.value.showTable=!X.value.showTable}function nn(){X.value.showTooltip=!X.value.showTooltip}let rn=P(!1);function an(){rn.value=!rn.value}function on(){X.value.showZoom=!X.value.showZoom}let sn=D(()=>!rn.value&&X.value.showZoom),{viewBox:cn,resetZoom:ln,isZoom:un,setInitialViewBox:dn,zoomByFactor:fn,scale:pn}=fe(q,{x:0,y:0,width:J.value.width<=0?10:J.value.width,height:J.value.height<=0?10:J.value.height},1,sn);Pe(()=>R.dataset,()=>{Dt.value=Ot(),H.value.responsive||(Yt(),Pt())},{immediate:!0});let mn=u(B,()=>K.value.title.text),hn=D(()=>l({config:H,style:K,mutableConfig:X,dialog:Ue,accordion:Re,isFullscreen:Q,parent:B,maxWidth:500,isCursorPointer:St}));Pe(()=>X.value.showTable,e=>c(e,H,$e));function gn(){X.value.showTable=!1,et.value&&et.value.setTableIconState(!1)}let _n=D(()=>K.value.backgroundColor),vn=D(()=>K.value.title),{isCallbackImaging:yn,isCallbackSvg:bn,generateSvg:xn,onGenerateImage:Sn}=se({svg:q,title:vn,legend:null,legendItems:null,backgroundColor:_n,getSvgCallback:()=>H.value.userOptions.callbacks.svg,generateImage:Kt});function Cn(){fn(1.5,!0)}function wn(){fn(1/1.5,!0)}let $=P(null),Tn=P(!1),En=P(``),Dn=P(null);function On(){$.value=null,V.value=null,Qe.value=!1}function kn(e,t){H.value.events.datapointLeave&&H.value.events.datapointLeave({datapoint:e,seriesIndex:t}),(V.value!==t||ot.value!==`keyboard`)&&($.value=null,Qe.value=!1)}function An(e,t){H.value.events.datapointClick&&H.value.events.datapointClick({datapoint:e,seriesIndex:t})}function jn(e){if(!q.value||e==null)return;let t=q.value.querySelector(`[data-a11y-word-index="${e}-${z.value}"]`);if(!t)return;let n=t.getBoundingClientRect();it.value={x:n.left+n.width/2,y:n.top+n.height/2}}function Mn(e,t,n=`pointer`){if(H.value.events.datapointEnter&&H.value.events.datapointEnter({datapoint:e,seriesIndex:t}),!X.value.showTooltip)return;ot.value=n,V.value=t,$.value=e.id,Dn.value={datapoint:e,config:H.value,seriesIndex:t};let r=W.value.customFormat;if(Tn.value=!1,h(r))try{let t=r({datapoint:e,config:H.value});typeof t==`string`&&(En.value=t,Tn.value=!0)}catch{console.warn(`Custom format cannot be applied.`),Tn.value=!1}if(!Tn.value){let t=`<svg viewBox="0 0 10 10" height="${W.value.fontSize}"><circle cx="5" cy="5" r="5" fill="${e.color}"/></svg><span>${e.name}:</span><b>${(e.value||0).toFixed(W.value.roundingValue)}</b>`;En.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${t}</div>`}n===`keyboard`&&Ce(()=>{jn(t)}),Qe.value=!0}async function Nn(){Ge(`copyAlt`,{config:H.value,dataset:Z.value}),H.value.userOptions.callbacks.altCopy?await Promise.resolve(H.value.userOptions.callbacks.altCopy({config:H.value,dataset:Z.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function Pn(){V.value=null,bt.value=!0}function Fn(){On(),bt.value=!1}function In(e){if(!q.value||rn.value||document.activeElement!==q.value||!Z.value.length)return;let t=e.key===`ArrowLeft`||e.key===`ArrowUp`,n=e.key===`ArrowRight`||e.key===`ArrowDown`,r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){On();return}if(r){if(V.value===null)return;let e=Z.value[V.value];if(!e)return;An(e,V.value);return}let a=V.value;a===null||a<0||a>=Z.value.length?a=n?0:Z.value.length-1:(a+=n?1:-1,a<0&&(a=Z.value.length-1),a>=Z.value.length&&(a=0));let o=Z.value[a];o&&Mn(o,a,`keyboard`)}let Ln=D(()=>({headers:Qt.value?.colNames??[],rows:Qt.value?.a11yBody??[]}));ge({getData:en,getImage:mn,generateCsv:Zt,generatePdf:Gt,generateImage:Kt,generateSvg:xn,resetZoom:ln,toggleTable:tn,toggleTooltip:nn,toggleAnnotator:an,toggleFullscreen:$t,toggleZoom:on,copyAlt:Nn});let Rn=D(()=>s(H.value.userOptions?.annotator?.followZoom,cn.value));return(e,s)=>(N(),A(`div`,{class:`vue-data-ui-component vue-ui-word-cloud`,ref_key:`wordCloudChart`,ref:B,id:`wordCloud_${z.value}`,"data-resizing":It.value,"data-relayout":nt.value,style:Ee(`width: 100%; font-family:${H.value.style.fontFamily};background:${K.value.backgroundColor};${H.value.responsive?`height:100%`:``}`),onMouseenter:s[3]||=()=>I(At)(!0),onMouseleave:s[4]||=()=>{I(At)(!1),bt.value||On()}},[j(`div`,{id:`chart-instructions-${z.value}`,class:`sr-only`},[j(`p`,null,Me(H.value.a11y.translations.keyboardNavigation),1)],8,ct),H.value.a11y.includeTable&&Ln.value?.rows?.length?(N(),O(me,{key:0,uid:z.value,head:Ln.value.headers,body:Ln.value.rows,notice:H.value.a11y.translations.tableAvailable,caption:H.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):k(``,!0),U.value.buttons.annotator?(N(),O(I(Be),Se({key:1},I(a)(U.value.annotator),{svgRef:I(q),followZoom:H.value.userOptions?.annotator?.followZoom,annotationViewport:Rn.value,backgroundColor:K.value.backgroundColor,color:K.value.color,active:rn.value,isCursorPointer:St.value,palette:U.value.annotatorPalette,onClose:an}),ve({_:2},[ke(I(o),t=>({name:t,fn:L(n=>[F(e.$slots,t,Te(xe(I(i)(t,n))),void 0,!0)])}))]),1040,[`svgRef`,`followZoom`,`annotationViewport`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):k(``,!0),K.value.title.text?(N(),A(`div`,{key:2,ref_key:`chartTitle`,ref:Je,style:`width:100%;background:transparent;padding-bottom:24px`},[(N(),O(ue,{key:`title_${Xe.value}`,config:{title:{...K.value.title},subtitle:{...K.value.title.subtitle}}},null,8,[`config`]))],512)):k(``,!0),U.value.show&&Ke.value&&(I(jt)||I(kt))?(N(),O(I(Ve),Se({ref_key:`userOptionsRef`,ref:et,key:`user_option_${qe.value}`,backgroundColor:K.value.backgroundColor,color:K.value.color,isPrinting:I(Ut),isImaging:I(Wt),uid:z.value,isFullscreen:Q.value,chartElement:B.value},I(n)(U.value,`pdf csv img svg table fullscreen altCopy annotator zoom`),{hasTooltip:W.value.show&&U.value.buttons.tooltip,isTooltip:X.value.showTooltip,isAnnotation:rn.value,tableDialog:H.value.table.useDialog,isZoom:X.value.showZoom,isCursorPointer:St.value,onToggleFullscreen:$t,onGeneratePdf:I(Gt),onGenerateCsv:Zt,onGenerateImage:I(Sn),onGenerateSvg:I(xn),onToggleTable:tn,onToggleTooltip:nn,onToggleAnnotator:an,onToggleZoom:on,onCopyAlt:Nn,style:{visibility:I(jt)?I(kt)?`visible`:`hidden`:`visible`}}),ve({_:2},[ke(I(t)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionZoom optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:L(n=>[F(e.$slots,t,Te(xe(I(r)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`isFullscreen`,`chartElement`,`hasTooltip`,`isTooltip`,`isAnnotation`,`tableDialog`,`isZoom`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):k(``,!0),xt.value.position===`top`&&xt.value.show&&!I(wt)?(N(),O(he,{key:4,ref_key:`zoomControls`,ref:rt,config:H.value,scale:I(pn),isFullscreen:Q.value,isCursorPointer:St.value,onZoomIn:Cn,onZoomOut:wn,onResetZoom:s[0]||=e=>I(ln)(!0)},null,8,[`config`,`scale`,`isFullscreen`,`isCursorPointer`])):k(``,!0),j(`div`,lt,[(N(),A(`svg`,{ref_key:`svgRef`,ref:q,class:we({"vue-data-ui-fullscreen--on":Q.value,"vue-data-ui-fulscreen--off":!Q.value}),"aria-describedby":`chart-instructions-${z.value}`,xmlns:I(C),viewBox:`${I(cn).x} ${I(cn).y} ${I(cn).width} ${I(cn).height}`,style:`overflow:hidden;background:transparent;display:block`,tabindex:`0`,onFocus:Pn,onBlur:Fn,onKeydown:In},[be(I(He)),F(e.$slots,`svg-underlayer`,{svg:{...J.value,isPrintingImg:I(Ut)||I(Wt)||I(yn),isPrintingSvg:I(bn)}},void 0,!0),e.$slots[`chart-background`]?(N(),A(`foreignObject`,{key:0,x:0,y:0,width:J.value.width<=0?10:J.value.width,height:J.value.height<=0?10:J.value.height,style:{pointerEvents:`none`}},[F(e.$slots,`chart-background`,{},void 0,!0)],8,dt)):k(``,!0),j(`g`,{transform:`translate(${Nt.value.x}, ${Nt.value.y})`,class:we({"wc-finalized":tt.value})},[(N(!0),A(_e,null,ke(Z.value,(e,t)=>(N(),A(`g`,{key:e.id,class:`vue-ui-word-cloud-word`,transform:`translate(${e.x}, ${e.y})`},[e.minX===void 0?k(``,!0):(N(),A(`rect`,{key:0,"data-a11y-word-index":`${t}-${z.value}`,x:e.minX,y:e.minY*1.25,width:e.maxX-e.minX,height:e.maxY-e.minY,fill:`transparent`,"pointer-events":`visiblePainted`,"aria-label":`${e.name}: ${(e.value||0).toFixed(W.value.roundingValue)}`,onMouseover:n=>Mn(e,t),onMouseleave:n=>kn(e,t),onClick:n=>An(e,t)},null,40,mt)),j(`text`,{fill:e.color,"font-weight":G.value.bold?`bold`:`normal`,x:0,y:0,"font-size":e.fontSize,transform:`translate(${e.width/2}, ${e.height/2})`,"text-anchor":`middle`,"dominant-baseline":`central`,"paint-order":`stroke fill`,stroke:!$.value||$.value===e.id?G.value.selectedStroke:void 0,"stroke-width":e.height*.05,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:Ee(`
2
- pointer-events:none;
3
- fill-opacity:${!$.value||$.value===e.id||!tt.value?1:G.value.hoverOpacity} !important;
4
- `)},Me(e.name),13,ht)],8,pt))),128))],10,ft),F(e.$slots,`svg`,{svg:{...J.value,isPrintingImg:I(Ut)||I(Wt)||I(yn),isPrintingSvg:I(bn)}},void 0,!0)],42,ut)),e.$slots.hint?(N(),A(`div`,gt,[F(e.$slots,`hint`,Te(xe({hint:H.value.a11y.translations.keyboardNavigation,isVisible:bt.value})),void 0,!0)])):k(``,!0)]),e.$slots.watermark?(N(),A(`div`,_t,[F(e.$slots,`watermark`,Te(xe({isPrinting:I(Ut)||I(Wt)||I(yn)||I(bn)})),void 0,!0)])):k(``,!0),I(un)?(N(),A(`div`,vt,[F(e.$slots,`reset-action`,{reset:I(ln)},void 0,!0)])):k(``,!0),xt.value.position===`bottom`&&xt.value.show&&!I(wt)?(N(),O(he,{key:7,ref_key:`zoomControls`,ref:rt,config:H.value,scale:I(pn),isFullscreen:Q.value,isCursorPointer:St.value,onZoomIn:Cn,onZoomOut:wn,onResetZoom:s[1]||=e=>I(ln)(!0)},null,8,[`config`,`scale`,`isFullscreen`,`isCursorPointer`])):k(``,!0),be(I(Ie),{teleportTo:W.value.teleportTo,show:X.value.showTooltip&&Qe.value,backgroundColor:W.value.backgroundColor,color:W.value.color,fontSize:W.value.fontSize,borderRadius:W.value.borderRadius,borderColor:W.value.borderColor,borderWidth:W.value.borderWidth,backgroundOpacity:W.value.backgroundOpacity,position:W.value.position,offsetX:W.value.offsetX,offsetY:W.value.offsetY,parent:B.value,content:En.value,isCustom:Tn.value,isFullscreen:Q.value,smooth:W.value.smooth,backdropFilter:W.value.backdropFilter,smoothForce:W.value.smoothForce,smoothSnapThreshold:W.value.smoothSnapThreshold,isA11yMode:ot.value===`keyboard`,a11yPosition:it.value},{"tooltip-before":L(()=>[F(e.$slots,`tooltip-before`,Te(xe({...Dn.value})),void 0,!0)]),tooltip:L(()=>[F(e.$slots,`tooltip`,Te(xe({...Dn.value})),void 0,!0)]),"tooltip-after":L(()=>[F(e.$slots,`tooltip-after`,Te(xe({...Dn.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`fontSize`,`borderRadius`,`borderColor`,`borderWidth`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isCustom`,`isFullscreen`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),e.$slots.source?(N(),A(`div`,{key:8,ref_key:`source`,ref:Ye,dir:`auto`},[F(e.$slots,`source`,{},void 0,!0)],512)):k(``,!0),Ke.value&&U.value.buttons.table?(N(),O(Ae(hn.value.component),Se({key:9},hn.value.props,{ref_key:`tableUnit`,ref:$e,onClose:gn}),ve({content:L(()=>[(N(),O(I(ze),{key:`table_${Ze.value}`,colNames:Qt.value.colNames,head:Qt.value.head,body:Qt.value.body,config:Qt.value.config,title:H.value.table.useDialog?``:hn.value.title,withCloseButton:!H.value.table.useDialog,isCursorPointer:St.value,onClose:gn},{th:L(({th:e})=>[j(`div`,yt,Me(e),1)]),td:L(({td:e})=>[ye(Me(e.name||e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[H.value.table.useDialog?{name:`title`,fn:L(()=>[ye(Me(hn.value.title),1)]),key:`0`}:void 0,H.value.table.useDialog?{name:`actions`,fn:L(()=>[j(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:s[2]||=e=>Zt(U.value.callbacks.csv),style:Ee({cursor:St.value?`pointer`:`default`})},[be(I(Le),{name:`fileCsv`,stroke:hn.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):k(``,!0),F(e.$slots,`skeleton`,{},()=>[I(wt)?(N(),O(pe,{key:0})):k(``,!0)],!0)],44,st))}},[[`__scopeId`,`data-v-3aa94b65`]]);export{ot as n,bt as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./unpackTheme-CNsFKCeq.js";var n=/* @__PURE__ */ e({default:()=>b}),r=[[],[`userOptions`,`style`],[`show`],[`chart`],[`layout`,`legend`],[`arcs`],[`gradient`],[`userOptions`,`style`,`table`],[`backgroundColor`,`color`,`layout`,`legend`,`title`,`tooltip`],[`show`,`backgroundColor`,`color`,`selectAllToggle`],[`backgroundColor`,`color`],[`color`,`subtitle`],[`color`],[`backgroundColor`,`backgroundOpacity`,`color`,`borderColor`],[`th`,`td`],[`style`,`table`],[`backgroundColor`,`color`,`legend`,`title`,`tooltip`],[`backgroundColor`,`color`,`selectAllToggle`],[`backgroundColor`,`color`,`borderColor`]],i=[2,!1],a=[5,[6,i]],o=`#1A1A1A`,s=`#CCCCCC`,c=`#3A3A3A`,l=[12,`#757575`],u=[10,o,s],d=`#FFF8E1`,f=`#424242`,p=`#1E1E1E`,m=`#BDBDBD`,h=`#99AA99`,g=`#fbfafa`,_=`#f6f6fb`,v=`#50606C`,y=[10,_,v],b={default:/* @__PURE__ */ t([0],r),minimal:/* @__PURE__ */ t([1,i,[3,[4,a,i]]],r),minimalDark:/* @__PURE__ */ t([7,i,[3,[8,o,s,a,[9,!1,o,s,[10,c,s]],[11,s,l],[13,o,70,s,c]]],[14,u,u]],r),dark:/* @__PURE__ */ t([15,[3,[16,o,s,[17,o,s,[10,c,s]],[11,s,l],[13,o,70,s,`#5A5A5A`]]],[14,u,u]],r),celebration:/* @__PURE__ */ t([15,[3,[8,d,f,a,[17,d,f,[10,`#5D4037`,d]],[11,f,l],[13,`#FFECB3`,30,f,`#FF8A65`]]],[14,[10,d,f],[10,d,f]]],r),celebrationNight:/* @__PURE__ */ t([15,[3,[8,p,m,a,[17,p,m,[10,c,m]],[11,d,[12,m]],[13,p,30,d,`#FF8A65`]]],[14,[10,p,m],[10,p,m]]],r),hack:/* @__PURE__ */ t([15,[3,[8,o,h,[5,[6,[12,o]]],[17,o,h,[10,c,h]],[11,`#66CC66`,[12,h]],[18,`#2A2F2A`,`#AACCAA`,`#66CC66`]]],[14,[10,o,h],[10,o,`#AACCAA`]]],r),zen:/* @__PURE__ */ t([15,[3,[8,g,`#8A9892`,[5,[6,[12,g]]],[17,g,h,[10,`#E0CFC3`,`#8F837A`]],[11,`#8A9892`,[12,h]],[10,g,`#8A9892`]]],[14,[10,g,`#8F837A`],[10,g,`#8F837A`]]],r),concrete:/* @__PURE__ */ t([15,[3,[8,_,v,a,[17,_,`#61747E`,[10,v,_]],[11,v,[12,`#718890`]],y]],[14,y,y]],r)};export{n,b as t};