vue-data-ui 3.27.1-beta.0 → 3.27.1

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 (189) hide show
  1. package/dist/{Arrow-CJeSufxg.js → Arrow-C2W0uGrq.js} +1 -1
  2. package/dist/{BaseDraggableDialog-T1gEsQid.js → BaseDraggableDialog-D_tuHEjO.js} +1 -1
  3. package/dist/{BaseIcon-Cz30ODFA.js → BaseIcon-DdIyewwY.js} +1 -1
  4. package/dist/{BaseLegendToggle-Dn_tNvn4.js → BaseLegendToggle-Bq5FjyuI.js} +1 -1
  5. package/dist/{BaseZoomControls-xq3tWD3j.js → BaseZoomControls-DoYifY2y.js} +1 -1
  6. package/dist/{ColorPicker-CUjEw53A.js → ColorPicker-MLwiwxl5.js} +1 -1
  7. package/dist/{DataTable-DSUA5M9p.js → DataTable-WNecJMcY.js} +1 -1
  8. package/dist/{HillActions-DdvXld3a.js → HillActions-CHg1AQ3p.js} +1 -1
  9. package/dist/{Legend-DokTll4u.js → Legend-D8YoT1RJ.js} +1 -1
  10. package/dist/{NonSvgPenAndPaper-BLzQuIm6.js → NonSvgPenAndPaper-CqtJpZKh.js} +1 -1
  11. package/dist/{PackageVersion-D6pKL176.js → PackageVersion-CdkxOy58.js} +1 -1
  12. package/dist/{PenAndPaper-DvJJaeU2.js → PenAndPaper-IMw576MC.js} +1 -1
  13. package/dist/{Shape-tkp65OcG.js → Shape-Bp9YNtPc.js} +1 -1
  14. package/dist/SlicerPreview-CNUciSbY.js +1 -0
  15. package/dist/{SparkTooltip-BlJLvizH.js → SparkTooltip-C5JMcBXT.js} +1 -1
  16. package/dist/{Title-BRAjxtjG.js → Title-BGYFqulv.js} +1 -1
  17. package/dist/{Tooltip-BUXB0i6z.js → Tooltip-Cus2-XNQ.js} +1 -1
  18. package/dist/{UserOptions-D65t74CM.js → UserOptions-DTxMeZv3.js} +1 -1
  19. package/dist/{chartImage-NwZO-elv.js → chartImage-CIvU_04o.js} +1 -1
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-label.js +1 -1
  52. package/dist/components/vue-ui-mini-loader.js +1 -1
  53. package/dist/components/vue-ui-molecule.js +1 -1
  54. package/dist/components/vue-ui-mood-radar.js +1 -1
  55. package/dist/components/vue-ui-nested-donuts.js +1 -1
  56. package/dist/components/vue-ui-onion.js +1 -1
  57. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  58. package/dist/components/vue-ui-quadrant.js +1 -1
  59. package/dist/components/vue-ui-quick-chart.js +1 -1
  60. package/dist/components/vue-ui-radar.js +1 -1
  61. package/dist/components/vue-ui-rating.js +1 -1
  62. package/dist/components/vue-ui-relation-circle.js +1 -1
  63. package/dist/components/vue-ui-ridgeline.js +1 -1
  64. package/dist/components/vue-ui-rings.js +1 -1
  65. package/dist/components/vue-ui-scatter.js +1 -1
  66. package/dist/components/vue-ui-skeleton.js +1 -1
  67. package/dist/components/vue-ui-smiley.js +1 -1
  68. package/dist/components/vue-ui-spark-trend.js +1 -1
  69. package/dist/components/vue-ui-sparkbar.js +1 -1
  70. package/dist/components/vue-ui-sparkgauge.js +1 -1
  71. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  72. package/dist/components/vue-ui-sparkline.js +1 -1
  73. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  74. package/dist/components/vue-ui-stackbar.js +1 -1
  75. package/dist/components/vue-ui-stackline.js +1 -1
  76. package/dist/components/vue-ui-strip-plot.js +1 -1
  77. package/dist/components/vue-ui-table-heatmap.js +1 -1
  78. package/dist/components/vue-ui-table-sparkline.js +1 -1
  79. package/dist/components/vue-ui-table.js +1 -1
  80. package/dist/components/vue-ui-thermometer.js +1 -1
  81. package/dist/components/vue-ui-timer.js +1 -1
  82. package/dist/components/vue-ui-tiremarks.js +1 -1
  83. package/dist/components/vue-ui-treemap.js +1 -1
  84. package/dist/components/vue-ui-vertical-bar.js +1 -1
  85. package/dist/components/vue-ui-waffle.js +1 -1
  86. package/dist/components/vue-ui-wheel.js +1 -1
  87. package/dist/components/vue-ui-word-cloud.js +1 -1
  88. package/dist/components/vue-ui-world.js +1 -1
  89. package/dist/components/vue-ui-xy-canvas.js +1 -1
  90. package/dist/components/vue-ui-xy.js +1 -1
  91. package/dist/{dom-to-png-Cp3WLHmJ.js → dom-to-png-D8t3Bm7s.js} +1 -1
  92. package/dist/{exposedLib-CMTeSmyW.js → exposedLib-DHtyEc_G.js} +1 -1
  93. package/dist/{img-8sM3sVWU.js → img-DiT4ivZ5.js} +1 -1
  94. package/dist/{labelUtils-Djp5nJtN.js → labelUtils-CG3uVXoZ.js} +1 -1
  95. package/dist/{lib-zDxoqrgo.js → lib-CV_IANZ6.js} +2 -2
  96. package/dist/package-DE5cU1Rg.js +1 -0
  97. package/dist/{pdf-Dlv_ks7R.js → pdf-BQSB1V3H.js} +1 -1
  98. package/dist/{render-common-DOYi0f4Z.js → render-common-BdZ5aRyn.js} +1 -1
  99. package/dist/{resolveChartConfig-BSo1Oe9n.js → resolveChartConfig-DZg-korK.js} +1 -1
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +1 -1
  103. package/dist/style.css +1 -1
  104. package/dist/{useNestedProp-CT9phgWx.js → useNestedProp-CB186vF2.js} +1 -1
  105. package/dist/{useObjectBindings-DM3xDKV3.js → useObjectBindings-Dse7YyAf.js} +1 -1
  106. package/dist/{usePrinter-CnyKPIFM.js → usePrinter-hLW3cv4N.js} +1 -1
  107. package/dist/utils.js +1 -1
  108. package/dist/vue-data-ui-DyYgLIZN.js +1 -0
  109. package/dist/vue-data-ui.js +1 -1
  110. package/dist/{vue-ui-3d-bar-DiaiNy-k.js → vue-ui-3d-bar-BZAoyWkc.js} +1 -1
  111. package/dist/{vue-ui-accordion-Dy5OVFKr.js → vue-ui-accordion-BNvevckx.js} +1 -1
  112. package/dist/{vue-ui-age-pyramid-OeUr1yxi.js → vue-ui-age-pyramid-DkA6vpU3.js} +1 -1
  113. package/dist/{vue-ui-annotator-DA_xAFql.js → vue-ui-annotator-DuQME4Hh.js} +1 -1
  114. package/dist/{vue-ui-bullet-B9lcCTVb.js → vue-ui-bullet-BVs8JX8S.js} +1 -1
  115. package/dist/{vue-ui-bump-DYajIrva.js → vue-ui-bump-DYdm3EvF.js} +1 -1
  116. package/dist/{vue-ui-candlestick-CdAZuNxo.js → vue-ui-candlestick-DZgxl4mW.js} +1 -1
  117. package/dist/{vue-ui-carousel-table-ihGH0LDH.js → vue-ui-carousel-table-BB7DsTUt.js} +1 -1
  118. package/dist/{vue-ui-chestnut-B2aNXFNO.js → vue-ui-chestnut-Bo1h5rBt.js} +1 -1
  119. package/dist/{vue-ui-chord-fAckHfOW.js → vue-ui-chord-B6_veyvO.js} +1 -1
  120. package/dist/{vue-ui-circle-pack-BWHVImkS.js → vue-ui-circle-pack-Bm7e2YNh.js} +1 -1
  121. package/dist/{vue-ui-cursor-DdXKXmhr.js → vue-ui-cursor-TidZDuSh.js} +1 -1
  122. package/dist/{vue-ui-dag-a0fNoIcJ.js → vue-ui-dag-BiN_AnLo.js} +1 -1
  123. package/dist/{vue-ui-dashboard-DkdYMB7n.js → vue-ui-dashboard-zepAVN_W.js} +1 -1
  124. package/dist/{vue-ui-digits-CL9SuIEI.js → vue-ui-digits-CXKKmfGj.js} +1 -1
  125. package/dist/{vue-ui-donut-BaEodt-3.js → vue-ui-donut-CKkBtyPK.js} +1 -1
  126. package/dist/{vue-ui-donut-DaYxdQmP.js → vue-ui-donut-DLDUpjDU.js} +2 -2
  127. package/dist/{vue-ui-donut-evolution-T8cRXKRQ.js → vue-ui-donut-evolution-BxMTdE5G.js} +1 -1
  128. package/dist/{vue-ui-dumbbell-B6HJxEZp.js → vue-ui-dumbbell-C8rNwdz0.js} +1 -1
  129. package/dist/{vue-ui-flow-BlTCVFr3.js → vue-ui-flow-Dru76A2O.js} +1 -1
  130. package/dist/{vue-ui-funnel-WgLFJadZ.js → vue-ui-funnel-D_u1h5S9.js} +1 -1
  131. package/dist/{vue-ui-galaxy-B3nuI6E8.js → vue-ui-galaxy-sBEH18Xj.js} +1 -1
  132. package/dist/{vue-ui-gauge-BwTP65O4.js → vue-ui-gauge-Do3RN8ne.js} +1 -1
  133. package/dist/{vue-ui-geo-CX3yH18H.js → vue-ui-geo-DDbtx_iJ.js} +1 -1
  134. package/dist/{vue-ui-gizmo-CNHcBsku.js → vue-ui-gizmo-eic6xLjB.js} +1 -1
  135. package/dist/{vue-ui-heatmap-CTdeoar7.js → vue-ui-heatmap-DlmJRsM8.js} +1 -1
  136. package/dist/{vue-ui-hill-DR5k8GWZ.js → vue-ui-hill-C5oiuIXh.js} +1 -1
  137. package/dist/{vue-ui-history-plot-C-9uH-Uj.js → vue-ui-history-plot-BJjnkWcT.js} +1 -1
  138. package/dist/{vue-ui-horizontal-bar-qqF7pL7U.js → vue-ui-horizontal-bar-BRDBJEl1.js} +1 -1
  139. package/dist/{vue-ui-kpi-DVcLXGqG.js → vue-ui-kpi-C-eed3jO.js} +1 -1
  140. package/dist/{vue-ui-label-D1Aog-zO.js → vue-ui-label-B4pkXBxc.js} +1 -1
  141. package/dist/{vue-ui-mini-loader-CX0Dx9tT.js → vue-ui-mini-loader-CElmv_iF.js} +1 -1
  142. package/dist/{vue-ui-molecule-B13qVX71.js → vue-ui-molecule-BeyQWZU9.js} +1 -1
  143. package/dist/{vue-ui-mood-radar-C1BtB8lg.js → vue-ui-mood-radar-Bh0kHfiZ.js} +1 -1
  144. package/dist/{vue-ui-nested-donuts-B90yrlJG.js → vue-ui-nested-donuts-FlnJfDaF.js} +1 -1
  145. package/dist/{vue-ui-onion-UMVO2DE_.js → vue-ui-onion-BjhSpjtW.js} +1 -1
  146. package/dist/vue-ui-parallel-coordinate-plot-CHV6XDti.js +9 -0
  147. package/dist/{vue-ui-quadrant-CPG6yAiu.js → vue-ui-quadrant-BaKSTJDv.js} +1 -1
  148. package/dist/{vue-ui-quick-chart-BTPb-Iz8.js → vue-ui-quick-chart-Nc2mVlle.js} +1 -1
  149. package/dist/{vue-ui-radar-Hd-pE9ih.js → vue-ui-radar-BzUfkLlC.js} +1 -1
  150. package/dist/{vue-ui-rating-C_YxQYa_.js → vue-ui-rating-BwWXvbAg.js} +1 -1
  151. package/dist/{vue-ui-relation-circle-CHYG7ZJl.js → vue-ui-relation-circle-nAZEg-BL.js} +1 -1
  152. package/dist/{vue-ui-ridgeline-DS1Gvljt.js → vue-ui-ridgeline-DxLZg1E2.js} +1 -1
  153. package/dist/{vue-ui-rings-B-Hb13Uu.js → vue-ui-rings-BOti0NGb.js} +1 -1
  154. package/dist/{vue-ui-scatter-BTgvOmuo.js → vue-ui-scatter-CCNMggyo.js} +1 -1
  155. package/dist/{vue-ui-skeleton-B-Acw3CC.js → vue-ui-skeleton-DI7pcimU.js} +1 -1
  156. package/dist/{vue-ui-smiley-Ciwqt6ek.js → vue-ui-smiley-D70sJZWl.js} +1 -1
  157. package/dist/{vue-ui-spark-trend-CYqy6c0S.js → vue-ui-spark-trend-BVtfEalS.js} +1 -1
  158. package/dist/{vue-ui-sparkbar-CTXIgjmP.js → vue-ui-sparkbar-CdsLI7Ke.js} +1 -1
  159. package/dist/{vue-ui-sparkgauge-CObOL6s2.js → vue-ui-sparkgauge-wmj5Wnnp.js} +1 -1
  160. package/dist/{vue-ui-sparkhistogram-ClFyDez-.js → vue-ui-sparkhistogram-D8S_P_P4.js} +1 -1
  161. package/dist/{vue-ui-sparkline-DP_nYlW8.js → vue-ui-sparkline-BjsJnS_9.js} +1 -1
  162. package/dist/{vue-ui-sparkstackbar-B2f0ePMg.js → vue-ui-sparkstackbar-ZN8LXzoV.js} +1 -1
  163. package/dist/{vue-ui-stackbar-nMWHZ-f0.js → vue-ui-stackbar-Dx_EN3pT.js} +1 -1
  164. package/dist/{vue-ui-stackline-B95y6Zc5.js → vue-ui-stackline-DW-oxJvA.js} +1 -1
  165. package/dist/{vue-ui-strip-plot-gFNC4r-X.js → vue-ui-strip-plot-D7kjJ3Qh.js} +1 -1
  166. package/dist/{vue-ui-table-Br2JgD_L.js → vue-ui-table-CaFVLHxE.js} +1 -1
  167. package/dist/{vue-ui-table-heatmap-Btu2ejF4.js → vue-ui-table-heatmap-Ctf7Rhqo.js} +1 -1
  168. package/dist/vue-ui-table-sparkline-C0I0cXBS.js +1 -0
  169. package/dist/{vue-ui-thermometer-C6u1eLfo.js → vue-ui-thermometer-B6og15Al.js} +1 -1
  170. package/dist/{vue-ui-timer-DLgsfB1U.js → vue-ui-timer-DgXvO2Q7.js} +2 -2
  171. package/dist/{vue-ui-tiremarks-8B9uE1Bx.js → vue-ui-tiremarks-Dh6fZ454.js} +1 -1
  172. package/dist/{vue-ui-treemap-C4Mot-Os.js → vue-ui-treemap-7JuvN6P_.js} +1 -1
  173. package/dist/{vue-ui-waffle-BwcwNpf7.js → vue-ui-waffle-BqvGzfse.js} +1 -1
  174. package/dist/{vue-ui-wheel-B3OGCXg7.js → vue-ui-wheel-SdwJqKA7.js} +1 -1
  175. package/dist/{vue-ui-word-cloud-BPIyMBXq.js → vue-ui-word-cloud-1WVV_k12.js} +1 -1
  176. package/dist/{vue-ui-world-Cp0DeauH.js → vue-ui-world-DjMy_utm.js} +1 -1
  177. package/dist/{vue-ui-xy-BOE1jvUS.js → vue-ui-xy-DaozHMfg.js} +1 -1
  178. package/dist/{vue-ui-xy-canvas-CaxxiKSa.js → vue-ui-xy-canvas-CegvS9RR.js} +1 -1
  179. package/dist/{vue-ui-xy-DSyKSn4L.js → vue-ui-xy-rGHSI1am.js} +3 -3
  180. package/dist/vue_ui_donut_evolution-CVoh3twl.js +1 -0
  181. package/dist/vue_ui_quick_chart-BRfcRW6Z.js +1 -0
  182. package/package.json +1 -1
  183. package/dist/SlicerPreview-GFRs2EWB.js +0 -1
  184. package/dist/package-DIR2F6AE.js +0 -1
  185. package/dist/vue-data-ui-BG41UScx.js +0 -1
  186. package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +0 -9
  187. package/dist/vue-ui-table-sparkline-B9mYHAxp.js +0 -1
  188. package/dist/vue_ui_donut_evolution-nzVwNQYv.js +0 -1
  189. package/dist/vue_ui_quick_chart-Da1GwklM.js +0 -1
@@ -1 +1 @@
1
- import{C as e,in as t}from"./lib-zDxoqrgo.js";function n({defaultConfig:n,userConfig:r}){if(!Object.keys(r||{}).length)return n;let i=t({defaultConfig:n,userConfig:r});return e(i)}export{n as t};
1
+ import{C as e,in as t}from"./lib-CV_IANZ6.js";function n({defaultConfig:n,userConfig:r}){if(!Object.keys(r||{}).length)return n;let i=t({defaultConfig:n,userConfig:r});return e(i)}export{n as t};
@@ -1 +1 @@
1
- import{t as e}from"./useConfig-CKdzPrcf.js";import{computed as t,isRef as n,markRaw as r,watchEffect as i}from"vue";var a=/* @__PURE__ */ `vue_ui_3d_bar.vue_ui_accordion.vue_ui_age_pyramid.vue_ui_annotator.vue_ui_bullet.vue_ui_bump.vue_ui_candlestick.vue_ui_carousel_table.vue_ui_chestnut.vue_ui_chord.vue_ui_circle_pack.vue_ui_cursor.vue_ui_dag.vue_ui_dashboard.vue_ui_digits.vue_ui_donut.vue_ui_donut_evolution.vue_ui_dumbbell.vue_ui_flow.vue_ui_funnel.vue_ui_galaxy.vue_ui_gauge.vue_ui_geo.vue_ui_gizmo.vue_ui_heatmap.vue_ui_hill.vue_ui_history_plot.vue_ui_horizontal_bar.vue_ui_kpi.vue_ui_label.vue_ui_mini_loader.vue_ui_molecule.vue_ui_mood_radar.vue_ui_nested_donuts.vue_ui_onion.vue_ui_parallel_coordinate_plot.vue_ui_quadrant.vue_ui_quick_chart.vue_ui_radar.vue_ui_rating.vue_ui_relation_circle.vue_ui_ridgeline.vue_ui_rings.vue_ui_scatter.vue_ui_skeleton.vue_ui_smiley.vue_ui_spark_trend.vue_ui_sparkbar.vue_ui_sparkgauge.vue_ui_sparkhistogram.vue_ui_sparkline.vue_ui_sparkstackbar.vue_ui_stackbar.vue_ui_stackline.vue_ui_strip_plot.vue_ui_table.vue_ui_table_heatmap.vue_ui_table_sparkline.vue_ui_thermometer.vue_ui_timer.vue_ui_tiremarks.vue_ui_treemap.vue_ui_vertical_bar.vue_ui_waffle.vue_ui_wheel.vue_ui_word_cloud.vue_ui_world.vue_ui_xy.vue_ui_xy_canvas`.split(`.`);function o(t,n={}){return a.includes(t)?e(n)[t]:(console.error(`VueDataUi - getVueDataUiConfig : ${t} is not a valid component name for this utility.\nUse snake case names, for example 'vue_ui_xy', 'vue_ui_donut', etc.`),{})}var s;function c(){return s||=Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({"./themes/vue_ui_3d_bar.json":()=>import(`./vue_ui_3d_bar-DmAve5Ri.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_age_pyramid.json":()=>import(`./vue_ui_age_pyramid-CL0Ef8Ov.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_bullet.json":()=>import(`./vue_ui_bullet-CwVYkpjd.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_bump.json":()=>import(`./vue_ui_bump-KJL9GYr4.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_candlestick.json":()=>import(`./vue_ui_candlestick-DKvha_Ab.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_chestnut.json":()=>import(`./vue_ui_chestnut-BxxivKN7.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_chord.json":()=>import(`./vue_ui_chord-Fq6VBRT1.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_circle_pack.json":()=>import(`./vue_ui_circle_pack-CfXkXi7v.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_dag.json":()=>import(`./vue_ui_dag-1b_dLSym.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_donut.json":()=>import(`./vue_ui_donut-T5PeOqvf.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_donut_evolution.json":()=>import(`./vue_ui_donut_evolution-nzVwNQYv.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_dumbbell.json":()=>import(`./vue_ui_dumbbell-BMcxK0N3.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_flow.json":()=>import(`./vue_ui_flow-kvV56Es9.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_funnel.json":()=>import(`./vue_ui_funnel-CaEV5hG7.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_galaxy.json":()=>import(`./vue_ui_galaxy-B94QInxc.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_gauge.json":()=>import(`./vue_ui_gauge-BJhb6yqE.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_geo.json":()=>import(`./vue_ui_geo-DL1SMQHp.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_heatmap.json":()=>import(`./vue_ui_heatmap-kh5NMmwf.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_hill.json":()=>import(`./vue_ui_hill-DQi4pQCG.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_history_plot.json":()=>import(`./vue_ui_history_plot-soyqUW4Y.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_horizontal_bar.json":()=>import(`./vue_ui_horizontal_bar-C4ulIxeT.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_label.json":()=>import(`./vue_ui_label-dtPqyFsj.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_molecule.json":()=>import(`./vue_ui_molecule-Bw1UW1Na.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_mood_radar.json":()=>import(`./vue_ui_mood_radar-CXaBdJnv.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_nested_donuts.json":()=>import(`./vue_ui_nested_donuts-CRtGsJcz.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_onion.json":()=>import(`./vue_ui_onion-C9BedU_-.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_parallel_coordinate_plot.json":()=>import(`./vue_ui_parallel_coordinate_plot-Cs_xXAG5.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_quadrant.json":()=>import(`./vue_ui_quadrant-BUv-SqzP.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_quick_chart.json":()=>import(`./vue_ui_quick_chart-Da1GwklM.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_radar.json":()=>import(`./vue_ui_radar-68iK9Fam.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_relation_circle.json":()=>import(`./vue_ui_relation_circle-Dkv-cSB6.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_ridgeline.json":()=>import(`./vue_ui_ridgeline-Di26JtQu.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_rings.json":()=>import(`./vue_ui_rings-BcDDXHpQ.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_scatter.json":()=>import(`./vue_ui_scatter-C50uFYQL.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_spark_trend.json":()=>import(`./vue_ui_spark_trend-BOM3zo64.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_sparkbar.json":()=>import(`./vue_ui_sparkbar-Bpx7QrFq.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_sparkgauge.json":()=>import(`./vue_ui_sparkgauge-D2Hk6bvS.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_sparkhistogram.json":()=>import(`./vue_ui_sparkhistogram-ChwOkoMb.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_sparkline.json":()=>import(`./vue_ui_sparkline-CvL_e9L8.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_sparkstackbar.json":()=>import(`./vue_ui_sparkstackbar-Chtog7hC.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_stackbar.json":()=>import(`./vue_ui_stackbar-BkBIi_bL.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_stackline.json":()=>import(`./vue_ui_stackline-D7b63K84.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_strip_plot.json":()=>import(`./vue_ui_strip_plot-CwMowrhT.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_table_heatmap.json":()=>import(`./vue_ui_table_heatmap-vfeY6r97.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_table_sparkline.json":()=>import(`./vue_ui_table_sparkline-Dlfbza49.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_thermometer.json":()=>import(`./vue_ui_thermometer-CRijq6H6.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_tiremarks.json":()=>import(`./vue_ui_tiremarks-8HFfABNF.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_treemap.json":()=>import(`./vue_ui_treemap-Bv4Rdl5_.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_vertical_bar.json":()=>import(`./vue_ui_vertical_bar-BLyflvlz.js`).then(e=>e.default),"./themes/vue_ui_waffle.json":()=>import(`./vue_ui_waffle-BbBLSluB.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_wheel.json":()=>import(`./vue_ui_wheel-C-479bvJ.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_word_cloud.json":()=>import(`./vue_ui_word_cloud-DBiJtSyL.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_xy.json":()=>import(`./vue_ui_xy-CJBM9F6W.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_xy_canvas.json":()=>import(`./vue_ui_xy_canvas-CT-FN9rU.js`).then(e=>e.n).then(e=>e.default)})).map(([e,t])=>{let n=e.match(/\/themes\/(.+)\.json$/);return[n?n[1]:e,t]})),s}var l=/* @__PURE__ */ new Map,u=async e=>{let t=c()[e];if(!t){let e=/* @__PURE__ */ Error(`ENOENT`);throw e.code=`ENOENT`,e}return await t()};async function d(e){if(!e)return null;if(l.has(e))return l.get(e);try{let t=await u(e);return l.set(e,t),t}catch(t){return console.warn(`[getThemeConfig] Missing theme file: ${e}.json`,t),null}}function f(e,t){if(t<=0||e.length<3)return e;let n=e.length,r=Array.from({length:n});for(let i=0;i<n;i+=1){let n=Math.max(0,i-t),a=0;for(let t=n;t<=i;t+=1)a+=e[t].value;r[i]=a/(i-n+1)}let i=Array.from({length:n});for(let r=0;r<n;r+=1){let a=Math.min(n-1,r+t),o=0;for(let t=r;t<=a;t+=1)o+=e[t].value;i[r]=o/(a-r+1)}let a=e.map(e=>({...e}));for(let e=1;e<n-1;e+=1){let t=e/(n-1);a[e].value=(1-t)*r[e]+t*i[e]}return a}function p(e,t){if(t<=0||e.length<3)return e;let n=1/(1+t),r=e.length,i=Array.from({length:r});i[0]=e[0].value;for(let t=1;t<r;t+=1)i[t]=n*e[t].value+(1-n)*i[t-1];let a=Array.from({length:r});a[r-1]=e[r-1].value;for(let t=r-2;t>=0;--t)a[t]=n*e[t].value+(1-n)*a[t+1];let o=e.map(e=>({...e}));for(let e=1;e<r-1;e+=1){let t=e/(r-1);o[e].value=(1-t)*i[e]+t*a[e]}return o}function m(e,t){let n=e;return n=f(n,t.averageWindow),n=p(n,t.smoothingTau),n}function h(e,t=[],n=!0){let r=[];if(e&&typeof e==`object`){if(Array.isArray(e)&&n)return[];for(let i of Object.keys(e)){let a=e[i];if(Array.isArray(a)&&n)continue;let o=t.concat(i);a&&typeof a==`object`?r.push(...h(a,o,n)):r.push(o)}}return r}function g(e,t){return t.reduce((e,t)=>e?.[t],e)}function _(e,t,r){let i=n(e)?e.value:e;for(let e=0;e<t.length-1;e+=1){let n=t[e];(!Object.prototype.hasOwnProperty.call(i,n)||typeof i[n]!=`object`)&&(i[n]={}),i=i[n]}i[t[t.length-1]]=r}function v(e,t,n,r){let i=t.split(r),a=e;for(let e=0;e<i.length-1;e+=1){let t=i[e];a[t]||(a[t]={}),a=a[t]}a[i[i.length-1]]=n}function y(e,n){let{delimiter:a=`.`,skipArrays:o=!0}=n||{},s={};function c(){Object.keys(s).forEach(e=>delete s[e]);let n=h(e.value,[],o);for(let r of n){let n=r.join(a);s[n]=t({get:()=>g(e.value,r),set:t=>_(e.value,r,t)})}}return i(c),c(),r(new Proxy(s,{get(n,r){return typeof r==`string`||r.startsWith(`__v_`)?r in n?Reflect.get(n,r):(v(e.value,r,void 0,a),s[r]=t({get:()=>g(e.value,r),set:t=>_(e.value,r,t)}),r.startsWith(`__v_`)||console.warn(`Vue Data UI - useObjectBindings: no binding found for key "${r}". Please verify you are binding to a property path which exists on the object.`),``):!0},set(n,r,i){return typeof r==`string`||r.startsWith(`__v_`)?r in n?Reflect.set(n,r,i):(v(e.value,r,i,a),s[r]=t({get:()=>g(e.value,r),set:t=>_(e.value,r,t)}),r.startsWith(`__v_`)||console.warn(`Vue Data UI - useObjectBindings: cannot set unknown binding "${r}".`),!0):!0}}))}export{o as i,m as n,d as r,y as t};
1
+ import{t as e}from"./useConfig-CKdzPrcf.js";import{computed as t,isRef as n,markRaw as r,watchEffect as i}from"vue";var a=/* @__PURE__ */ `vue_ui_3d_bar.vue_ui_accordion.vue_ui_age_pyramid.vue_ui_annotator.vue_ui_bullet.vue_ui_bump.vue_ui_candlestick.vue_ui_carousel_table.vue_ui_chestnut.vue_ui_chord.vue_ui_circle_pack.vue_ui_cursor.vue_ui_dag.vue_ui_dashboard.vue_ui_digits.vue_ui_donut.vue_ui_donut_evolution.vue_ui_dumbbell.vue_ui_flow.vue_ui_funnel.vue_ui_galaxy.vue_ui_gauge.vue_ui_geo.vue_ui_gizmo.vue_ui_heatmap.vue_ui_hill.vue_ui_history_plot.vue_ui_horizontal_bar.vue_ui_kpi.vue_ui_label.vue_ui_mini_loader.vue_ui_molecule.vue_ui_mood_radar.vue_ui_nested_donuts.vue_ui_onion.vue_ui_parallel_coordinate_plot.vue_ui_quadrant.vue_ui_quick_chart.vue_ui_radar.vue_ui_rating.vue_ui_relation_circle.vue_ui_ridgeline.vue_ui_rings.vue_ui_scatter.vue_ui_skeleton.vue_ui_smiley.vue_ui_spark_trend.vue_ui_sparkbar.vue_ui_sparkgauge.vue_ui_sparkhistogram.vue_ui_sparkline.vue_ui_sparkstackbar.vue_ui_stackbar.vue_ui_stackline.vue_ui_strip_plot.vue_ui_table.vue_ui_table_heatmap.vue_ui_table_sparkline.vue_ui_thermometer.vue_ui_timer.vue_ui_tiremarks.vue_ui_treemap.vue_ui_vertical_bar.vue_ui_waffle.vue_ui_wheel.vue_ui_word_cloud.vue_ui_world.vue_ui_xy.vue_ui_xy_canvas`.split(`.`);function o(t,n={}){return a.includes(t)?e(n)[t]:(console.error(`VueDataUi - getVueDataUiConfig : ${t} is not a valid component name for this utility.\nUse snake case names, for example 'vue_ui_xy', 'vue_ui_donut', etc.`),{})}var s;function c(){return s||=Object.fromEntries(Object.entries(/* @__PURE__ */ Object.assign({"./themes/vue_ui_3d_bar.json":()=>import(`./vue_ui_3d_bar-DmAve5Ri.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_age_pyramid.json":()=>import(`./vue_ui_age_pyramid-CL0Ef8Ov.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_bullet.json":()=>import(`./vue_ui_bullet-CwVYkpjd.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_bump.json":()=>import(`./vue_ui_bump-KJL9GYr4.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_candlestick.json":()=>import(`./vue_ui_candlestick-DKvha_Ab.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_chestnut.json":()=>import(`./vue_ui_chestnut-BxxivKN7.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_chord.json":()=>import(`./vue_ui_chord-Fq6VBRT1.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_circle_pack.json":()=>import(`./vue_ui_circle_pack-CfXkXi7v.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_dag.json":()=>import(`./vue_ui_dag-1b_dLSym.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_donut.json":()=>import(`./vue_ui_donut-T5PeOqvf.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_donut_evolution.json":()=>import(`./vue_ui_donut_evolution-CVoh3twl.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_dumbbell.json":()=>import(`./vue_ui_dumbbell-BMcxK0N3.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_flow.json":()=>import(`./vue_ui_flow-kvV56Es9.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_funnel.json":()=>import(`./vue_ui_funnel-CaEV5hG7.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_galaxy.json":()=>import(`./vue_ui_galaxy-B94QInxc.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_gauge.json":()=>import(`./vue_ui_gauge-BJhb6yqE.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_geo.json":()=>import(`./vue_ui_geo-DL1SMQHp.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_heatmap.json":()=>import(`./vue_ui_heatmap-kh5NMmwf.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_hill.json":()=>import(`./vue_ui_hill-DQi4pQCG.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_history_plot.json":()=>import(`./vue_ui_history_plot-soyqUW4Y.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_horizontal_bar.json":()=>import(`./vue_ui_horizontal_bar-C4ulIxeT.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_label.json":()=>import(`./vue_ui_label-dtPqyFsj.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_molecule.json":()=>import(`./vue_ui_molecule-Bw1UW1Na.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_mood_radar.json":()=>import(`./vue_ui_mood_radar-CXaBdJnv.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_nested_donuts.json":()=>import(`./vue_ui_nested_donuts-CRtGsJcz.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_onion.json":()=>import(`./vue_ui_onion-C9BedU_-.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_parallel_coordinate_plot.json":()=>import(`./vue_ui_parallel_coordinate_plot-Cs_xXAG5.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_quadrant.json":()=>import(`./vue_ui_quadrant-BUv-SqzP.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_quick_chart.json":()=>import(`./vue_ui_quick_chart-BRfcRW6Z.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_radar.json":()=>import(`./vue_ui_radar-68iK9Fam.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_relation_circle.json":()=>import(`./vue_ui_relation_circle-Dkv-cSB6.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_ridgeline.json":()=>import(`./vue_ui_ridgeline-Di26JtQu.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_rings.json":()=>import(`./vue_ui_rings-BcDDXHpQ.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_scatter.json":()=>import(`./vue_ui_scatter-C50uFYQL.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_spark_trend.json":()=>import(`./vue_ui_spark_trend-BOM3zo64.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_sparkbar.json":()=>import(`./vue_ui_sparkbar-Bpx7QrFq.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_sparkgauge.json":()=>import(`./vue_ui_sparkgauge-D2Hk6bvS.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_sparkhistogram.json":()=>import(`./vue_ui_sparkhistogram-ChwOkoMb.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_sparkline.json":()=>import(`./vue_ui_sparkline-CvL_e9L8.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_sparkstackbar.json":()=>import(`./vue_ui_sparkstackbar-Chtog7hC.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_stackbar.json":()=>import(`./vue_ui_stackbar-BkBIi_bL.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_stackline.json":()=>import(`./vue_ui_stackline-D7b63K84.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_strip_plot.json":()=>import(`./vue_ui_strip_plot-CwMowrhT.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_table_heatmap.json":()=>import(`./vue_ui_table_heatmap-vfeY6r97.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_table_sparkline.json":()=>import(`./vue_ui_table_sparkline-Dlfbza49.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_thermometer.json":()=>import(`./vue_ui_thermometer-CRijq6H6.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_tiremarks.json":()=>import(`./vue_ui_tiremarks-8HFfABNF.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_treemap.json":()=>import(`./vue_ui_treemap-Bv4Rdl5_.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_vertical_bar.json":()=>import(`./vue_ui_vertical_bar-BLyflvlz.js`).then(e=>e.default),"./themes/vue_ui_waffle.json":()=>import(`./vue_ui_waffle-BbBLSluB.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_wheel.json":()=>import(`./vue_ui_wheel-C-479bvJ.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_word_cloud.json":()=>import(`./vue_ui_word_cloud-DBiJtSyL.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_xy.json":()=>import(`./vue_ui_xy-CJBM9F6W.js`).then(e=>e.n).then(e=>e.default),"./themes/vue_ui_xy_canvas.json":()=>import(`./vue_ui_xy_canvas-CT-FN9rU.js`).then(e=>e.n).then(e=>e.default)})).map(([e,t])=>{let n=e.match(/\/themes\/(.+)\.json$/);return[n?n[1]:e,t]})),s}var l=/* @__PURE__ */ new Map,u=async e=>{let t=c()[e];if(!t){let e=/* @__PURE__ */ Error(`ENOENT`);throw e.code=`ENOENT`,e}return await t()};async function d(e){if(!e)return null;if(l.has(e))return l.get(e);try{let t=await u(e);return l.set(e,t),t}catch(t){return console.warn(`[getThemeConfig] Missing theme file: ${e}.json`,t),null}}function f(e,t){if(t<=0||e.length<3)return e;let n=e.length,r=Array.from({length:n});for(let i=0;i<n;i+=1){let n=Math.max(0,i-t),a=0;for(let t=n;t<=i;t+=1)a+=e[t].value;r[i]=a/(i-n+1)}let i=Array.from({length:n});for(let r=0;r<n;r+=1){let a=Math.min(n-1,r+t),o=0;for(let t=r;t<=a;t+=1)o+=e[t].value;i[r]=o/(a-r+1)}let a=e.map(e=>({...e}));for(let e=1;e<n-1;e+=1){let t=e/(n-1);a[e].value=(1-t)*r[e]+t*i[e]}return a}function p(e,t){if(t<=0||e.length<3)return e;let n=1/(1+t),r=e.length,i=Array.from({length:r});i[0]=e[0].value;for(let t=1;t<r;t+=1)i[t]=n*e[t].value+(1-n)*i[t-1];let a=Array.from({length:r});a[r-1]=e[r-1].value;for(let t=r-2;t>=0;--t)a[t]=n*e[t].value+(1-n)*a[t+1];let o=e.map(e=>({...e}));for(let e=1;e<r-1;e+=1){let t=e/(r-1);o[e].value=(1-t)*i[e]+t*a[e]}return o}function m(e,t){let n=e;return n=f(n,t.averageWindow),n=p(n,t.smoothingTau),n}function h(e,t=[],n=!0){let r=[];if(e&&typeof e==`object`){if(Array.isArray(e)&&n)return[];for(let i of Object.keys(e)){let a=e[i];if(Array.isArray(a)&&n)continue;let o=t.concat(i);a&&typeof a==`object`?r.push(...h(a,o,n)):r.push(o)}}return r}function g(e,t){return t.reduce((e,t)=>e?.[t],e)}function _(e,t,r){let i=n(e)?e.value:e;for(let e=0;e<t.length-1;e+=1){let n=t[e];(!Object.prototype.hasOwnProperty.call(i,n)||typeof i[n]!=`object`)&&(i[n]={}),i=i[n]}i[t[t.length-1]]=r}function v(e,t,n,r){let i=t.split(r),a=e;for(let e=0;e<i.length-1;e+=1){let t=i[e];a[t]||(a[t]={}),a=a[t]}a[i[i.length-1]]=n}function y(e,n){let{delimiter:a=`.`,skipArrays:o=!0}=n||{},s={};function c(){Object.keys(s).forEach(e=>delete s[e]);let n=h(e.value,[],o);for(let r of n){let n=r.join(a);s[n]=t({get:()=>g(e.value,r),set:t=>_(e.value,r,t)})}}return i(c),c(),r(new Proxy(s,{get(n,r){return typeof r==`string`||r.startsWith(`__v_`)?r in n?Reflect.get(n,r):(v(e.value,r,void 0,a),s[r]=t({get:()=>g(e.value,r),set:t=>_(e.value,r,t)}),r.startsWith(`__v_`)||console.warn(`Vue Data UI - useObjectBindings: no binding found for key "${r}". Please verify you are binding to a property path which exists on the object.`),``):!0},set(n,r,i){return typeof r==`string`||r.startsWith(`__v_`)?r in n?Reflect.set(n,r,i):(v(e.value,r,i,a),s[r]=t({get:()=>g(e.value,r),set:t=>_(e.value,r,t)}),r.startsWith(`__v_`)||console.warn(`Vue Data UI - useObjectBindings: cannot set unknown binding "${r}".`),!0):!0}}))}export{o as i,m as n,d as r,y as t};
@@ -1 +1 @@
1
- import{ref as e}from"vue";function t({elementId:t,fileName:n,canPrint:r=!0,options:i}){let a=e(!1),o=e(!1),s=e(null);async function c(){r&&!a.value&&(a.value=!0,clearTimeout(s.value),s.value=setTimeout(async()=>{if(r)try{let{default:e}=await import(`./pdf-Dlv_ks7R.js`);await e({domElement:document.getElementById(t),fileName:n,orientation:i.orientation,overflowTolerance:i.overflowTolerance,scale:i.scale,aspectRatio:i.aspectRatio??null})}catch(e){console.error(`Error generating PDF:`,e)}finally{a.value=!1}},100))}async function l(){r&&!o.value&&(o.value=!0,clearTimeout(s.value),s.value=setTimeout(async()=>{if(r)try{let{default:e}=await import(`./img-8sM3sVWU.js`).then(e=>e.n);await e({domElement:document.getElementById(t),fileName:n,format:`png`,scale:i?.scale})}catch(e){console.error(`Error generating image:`,e)}finally{o.value=!1}},100))}return{generatePdf:c,generateImage:l,isPrinting:a,isImaging:o}}export{t};
1
+ import{ref as e}from"vue";function t({elementId:t,fileName:n,canPrint:r=!0,options:i}){let a=e(!1),o=e(!1),s=e(null);async function c(){r&&!a.value&&(a.value=!0,clearTimeout(s.value),s.value=setTimeout(async()=>{if(r)try{let{default:e}=await import(`./pdf-BQSB1V3H.js`);await e({domElement:document.getElementById(t),fileName:n,orientation:i.orientation,overflowTolerance:i.overflowTolerance,scale:i.scale,aspectRatio:i.aspectRatio??null})}catch(e){console.error(`Error generating PDF:`,e)}finally{a.value=!1}},100))}async function l(){r&&!o.value&&(o.value=!0,clearTimeout(s.value),s.value=setTimeout(async()=>{if(r)try{let{default:e}=await import(`./img-DiT4ivZ5.js`).then(e=>e.n);await e({domElement:document.getElementById(t),fileName:n,format:`png`,scale:i?.scale})}catch(e){console.error(`Error generating image:`,e)}finally{o.value=!1}},100))}return{generatePdf:c,generateImage:l,isPrinting:a,isImaging:o}}export{t};
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- import{E as e,P as t,U as n,Z as r,bt as i,ft as a,ht as o,mt as s,n as c,q as l,r as u}from"./lib-zDxoqrgo.js";import{a as d,i as f,n as p,o as m,r as h,t as g}from"./exposedLib-CMTeSmyW.js";import{t as _}from"./patternUtils-_q3ArM3g.js";import{i as v,n as y,r as b,t as x}from"./useObjectBindings-DM3xDKV3.js";var S={applyDataCorrection:y,getVueDataUiConfig:v,getThemeConfig:b,abbreviate:c,createPatternDef:_,createSmoothPath:t,createStraightPath:n,createTSpans:l,createWordCloudDatasetFromPlainText:r,formatSmallValue:a,getCumulativeAverage:s,getCumulativeMedian:o,getPalette:i,lightenColor:h,darkenColor:p,shiftColorHue:m,mergeConfigs:d,useObjectBindings:x,adaptColorToBackground:u,average:g,median:f};export{c as abbreviate,u as adaptColorToBackground,y as applyDataCorrection,g as average,e as createColorWheel,_ as createPatternDef,t as createSmoothPath,n as createStraightPath,l as createTSpans,r as createWordCloudDatasetFromPlainText,p as darkenColor,S as default,a as formatSmallValue,s as getCumulativeAverage,o as getCumulativeMedian,i as getPalette,b as getThemeConfig,v as getVueDataUiConfig,h as lightenColor,f as median,d as mergeConfigs,m as shiftColorHue,x as useObjectBindings};
1
+ import{E as e,P as t,U as n,Z as r,bt as i,ft as a,ht as o,mt as s,n as c,q as l,r as u}from"./lib-CV_IANZ6.js";import{a as d,i as f,n as p,o as m,r as h,t as g}from"./exposedLib-DHtyEc_G.js";import{t as _}from"./patternUtils-_q3ArM3g.js";import{i as v,n as y,r as b,t as x}from"./useObjectBindings-Dse7YyAf.js";var S={applyDataCorrection:y,getVueDataUiConfig:v,getThemeConfig:b,abbreviate:c,createPatternDef:_,createSmoothPath:t,createStraightPath:n,createTSpans:l,createWordCloudDatasetFromPlainText:r,formatSmallValue:a,getCumulativeAverage:s,getCumulativeMedian:o,getPalette:i,lightenColor:h,darkenColor:p,shiftColorHue:m,mergeConfigs:d,useObjectBindings:x,adaptColorToBackground:u,average:g,median:f};export{c as abbreviate,u as adaptColorToBackground,y as applyDataCorrection,g as average,e as createColorWheel,_ as createPatternDef,t as createSmoothPath,n as createStraightPath,l as createTSpans,r as createWordCloudDatasetFromPlainText,p as darkenColor,S as default,a as formatSmallValue,s as getCumulativeAverage,o as getCumulativeMedian,i as getPalette,b as getThemeConfig,v as getVueDataUiConfig,h as lightenColor,f as median,d as mergeConfigs,m as shiftColorHue,x as useObjectBindings};
@@ -0,0 +1 @@
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./BaseIcon-DdIyewwY.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={VueUi3dBar:l(()=>import(`./vue-ui-3d-bar-BZAoyWkc.js`).then(e=>e.n)),VueUiAgePyramid:l(()=>import(`./vue-ui-age-pyramid-DkA6vpU3.js`).then(e=>e.n)),VueUiAnnotator:l(()=>import(`./vue-ui-annotator-DuQME4Hh.js`).then(e=>e.n)),VueUiCandlestick:l(()=>import(`./vue-ui-candlestick-DZgxl4mW.js`).then(e=>e.n)),VueUiChestnut:l(()=>import(`./vue-ui-chestnut-Bo1h5rBt.js`).then(e=>e.n)),VueUiDashboard:l(()=>import(`./vue-ui-dashboard-zepAVN_W.js`).then(e=>e.n)),VueUiDigits:l(()=>import(`./vue-ui-digits-CXKKmfGj.js`).then(e=>e.n)),VueUiDonut:l(()=>import(`./vue-ui-donut-DLDUpjDU.js`).then(e=>e.n)),VueUiDonutEvolution:l(()=>import(`./vue-ui-donut-evolution-BxMTdE5G.js`).then(e=>e.n)),VueUiGalaxy:l(()=>import(`./vue-ui-galaxy-sBEH18Xj.js`).then(e=>e.n)),VueUiGauge:l(()=>import(`./vue-ui-gauge-Do3RN8ne.js`).then(e=>e.n)),VueUiHeatmap:l(()=>import(`./vue-ui-heatmap-DlmJRsM8.js`).then(e=>e.n)),VueUiKpi:l(()=>import(`./vue-ui-kpi-C-eed3jO.js`).then(e=>e.n)),VueUiMiniLoader:l(()=>import(`./vue-ui-mini-loader-CElmv_iF.js`).then(e=>e.n)),VueUiMolecule:l(()=>import(`./vue-ui-molecule-BeyQWZU9.js`).then(e=>e.n)),VueUiMoodRadar:l(()=>import(`./vue-ui-mood-radar-Bh0kHfiZ.js`).then(e=>e.n)),VueUiNestedDonuts:l(()=>import(`./vue-ui-nested-donuts-FlnJfDaF.js`).then(e=>e.n)),VueUiOnion:l(()=>import(`./vue-ui-onion-BjhSpjtW.js`).then(e=>e.n)),VueUiQuadrant:l(()=>import(`./vue-ui-quadrant-BaKSTJDv.js`).then(e=>e.n)),VueUiRadar:l(()=>import(`./vue-ui-radar-BzUfkLlC.js`).then(e=>e.n)),VueUiRating:l(()=>import(`./vue-ui-rating-BwWXvbAg.js`).then(e=>e.n)),VueUiRelationCircle:l(()=>import(`./vue-ui-relation-circle-nAZEg-BL.js`).then(e=>e.n)),VueUiRings:l(()=>import(`./vue-ui-rings-BOti0NGb.js`).then(e=>e.n)),VueUiScatter:l(()=>import(`./vue-ui-scatter-CCNMggyo.js`).then(e=>e.n)),VueUiSkeleton:l(()=>import(`./vue-ui-skeleton-DI7pcimU.js`).then(e=>e.n)),VueUiSmiley:l(()=>import(`./vue-ui-smiley-D70sJZWl.js`).then(e=>e.n)),VueUiSparkbar:l(()=>import(`./vue-ui-sparkbar-CdsLI7Ke.js`).then(e=>e.n)),VueUiSparkgauge:l(()=>import(`./vue-ui-sparkgauge-wmj5Wnnp.js`).then(e=>e.n)),VueUiSparkHistogram:l(()=>import(`./vue-ui-sparkhistogram-D8S_P_P4.js`).then(e=>e.n)),VueUiSparkline:l(()=>import(`./vue-ui-sparkline-BjsJnS_9.js`).then(e=>e.n)),VueUiSparkStackbar:l(()=>import(`./vue-ui-sparkstackbar-ZN8LXzoV.js`).then(e=>e.n)),VueUiTable:l(()=>import(`./vue-ui-table-CaFVLHxE.js`).then(e=>e.n)),VueUiTableSparkline:l(()=>import(`./vue-ui-table-sparkline-C0I0cXBS.js`).then(e=>e.n)),VueUiThermometer:l(()=>import(`./vue-ui-thermometer-B6og15Al.js`).then(e=>e.n)),VueUiTiremarks:l(()=>import(`./vue-ui-tiremarks-Dh6fZ454.js`).then(e=>e.n)),VueUiTreemap:l(()=>import(`./vue-ui-treemap-7JuvN6P_.js`).then(e=>e.n)),VueUiVerticalBar:l(()=>import(`./vue-ui-horizontal-bar-BRDBJEl1.js`).then(e=>e.n)),VueUiHorizontalBar:l(()=>import(`./vue-ui-horizontal-bar-BRDBJEl1.js`).then(e=>e.n)),VueUiWaffle:l(()=>import(`./vue-ui-waffle-BqvGzfse.js`).then(e=>e.n)),VueUiWheel:l(()=>import(`./vue-ui-wheel-SdwJqKA7.js`).then(e=>e.n)),VueUiXy:l(()=>import(`./vue-ui-xy-rGHSI1am.js`).then(e=>e.n)),VueUiTableHeatmap:l(()=>import(`./vue-ui-table-heatmap-Ctf7Rhqo.js`).then(e=>e.n)),VueUiAccordion:l(()=>import(`./vue-ui-accordion-BNvevckx.js`).then(e=>e.n)),VueUiQuickChart:l(()=>import(`./vue-ui-quick-chart-Nc2mVlle.js`).then(e=>e.n)),VueUiCursor:l(()=>import(`./vue-ui-cursor-TidZDuSh.js`).then(e=>e.n)),VueUiSparkTrend:l(()=>import(`./vue-ui-spark-trend-BVtfEalS.js`).then(e=>e.n)),VueUiStripPlot:l(()=>import(`./vue-ui-strip-plot-D7kjJ3Qh.js`).then(e=>e.n)),VueUiDumbbell:l(()=>import(`./vue-ui-dumbbell-C8rNwdz0.js`).then(e=>e.n)),VueUiWordCloud:l(()=>import(`./vue-ui-word-cloud-1WVV_k12.js`).then(e=>e.n)),VueUiXyCanvas:l(()=>import(`./vue-ui-xy-canvas-CegvS9RR.js`).then(e=>e.n)),VueUiFlow:l(()=>import(`./vue-ui-flow-Dru76A2O.js`).then(e=>e.n)),VueUiParallelCoordinatePlot:l(()=>import(`./vue-ui-parallel-coordinate-plot-CHV6XDti.js`).then(e=>e.n)),VueUiTimer:l(()=>import(`./vue-ui-timer-DgXvO2Q7.js`).then(e=>e.n)),VueUiCarouselTable:l(()=>import(`./vue-ui-carousel-table-BB7DsTUt.js`).then(e=>e.n)),VueUiGizmo:l(()=>import(`./vue-ui-gizmo-eic6xLjB.js`).then(e=>e.n)),VueUiStackbar:l(()=>import(`./vue-ui-stackbar-Dx_EN3pT.js`).then(e=>e.n)),VueUiStackline:l(()=>import(`./vue-ui-stackline-DW-oxJvA.js`).then(e=>e.n)),VueUiBullet:l(()=>import(`./vue-ui-bullet-BVs8JX8S.js`).then(e=>e.n)),VueUiFunnel:l(()=>import(`./vue-ui-funnel-D_u1h5S9.js`).then(e=>e.n)),VueUiHistoryPlot:l(()=>import(`./vue-ui-history-plot-BJjnkWcT.js`).then(e=>e.n)),VueUiCirclePack:l(()=>import(`./vue-ui-circle-pack-Bm7e2YNh.js`).then(e=>e.n)),VueUiWorld:l(()=>import(`./vue-ui-world-DjMy_utm.js`).then(e=>e.n)),VueUiRidgeline:l(()=>import(`./vue-ui-ridgeline-DxLZg1E2.js`).then(e=>e.n)),VueUiChord:l(()=>import(`./vue-ui-chord-B6_veyvO.js`).then(e=>e.n)),VueUiDag:l(()=>import(`./vue-ui-dag-BiN_AnLo.js`).then(e=>e.n)),VueUiGeo:l(()=>import(`./vue-ui-geo-DDbtx_iJ.js`).then(e=>e.n)),VueUiBump:l(()=>import(`./vue-ui-bump-DYdm3EvF.js`).then(e=>e.n)),VueUiHill:l(()=>import(`./vue-ui-hill-C5oiuIXh.js`).then(e=>e.n)),VueUiLabel:l(()=>import(`./vue-ui-label-B4pkXBxc.js`).then(e=>e.n))},k=/* @__PURE__ */ new Set([`VueUiMiniLoader`,`VueUiSkeleton`,`VueUiAccordion`,`VueUiCursor`,`VueUiTimer`]),A=/* @__PURE__ */ `autoSize.cancel.close.copyAlt.focusLocation.generateCsv.generateImage.generatePdf.generateSvg.getItemsPositions.hideSeries.lap.pause.pauseAnimation.recalculateHeight.reset.resetZoom.restart.restoreOrder.resumeAnimation.save.selectGroup.selectNode.selectRibbon.setZoomState.shoot.showSeries.start.switchOrientation.toggleAnimation.toggleAnnotator.toggleLabels.toggleLock.toggleReadonly.toggleSort.toggleStack.toggleTable.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];if(typeof a!=`function`){i(L(t));continue}Promise.resolve().then(()=>a.apply(e,n)).then(r).catch(i)}}),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 +1 @@
1
- import{E as e,P as t,U as ee,Z as n,bt as r,ft as i,ht as a,mt as o,n as s,q as c}from"./lib-zDxoqrgo.js";import{t as l}from"./vue-ui-xy-DSyKSn4L.js";import{t as u}from"./BaseIcon-Cz30ODFA.js";import{t as d}from"./vue-ui-accordion-Dy5OVFKr.js";import{t as f}from"./Arrow-CJeSufxg.js";import{t as p}from"./vue-ui-3d-bar-DiaiNy-k.js";import{t as m}from"./vue-ui-age-pyramid-OeUr1yxi.js";import{t as h}from"./vue-ui-annotator-DA_xAFql.js";import{t as g}from"./vue-ui-candlestick-CdAZuNxo.js";import{t as _}from"./vue-ui-chestnut-B2aNXFNO.js";import{t as v}from"./vue-ui-cursor-DdXKXmhr.js";import{t as y}from"./vue-ui-dashboard-DkdYMB7n.js";import{t as b}from"./vue-ui-digits-CL9SuIEI.js";import{t as x}from"./vue-ui-donut-DaYxdQmP.js";import{t as S}from"./vue-ui-donut-evolution-T8cRXKRQ.js";import{t as C}from"./vue-ui-dumbbell-B6HJxEZp.js";import{t as w}from"./vue-ui-flow-BlTCVFr3.js";import{t as T}from"./vue-ui-galaxy-B3nuI6E8.js";import{t as E}from"./vue-ui-gauge-BwTP65O4.js";import{t as D}from"./vue-ui-heatmap-CTdeoar7.js";import{t as O}from"./vue-ui-kpi-DVcLXGqG.js";import{t as k}from"./vue-ui-mini-loader-CX0Dx9tT.js";import{t as A}from"./vue-ui-molecule-B13qVX71.js";import{t as j}from"./vue-ui-mood-radar-C1BtB8lg.js";import{t as M}from"./vue-ui-nested-donuts-B90yrlJG.js";import{t as N}from"./vue-ui-onion-UMVO2DE_.js";import{t as P}from"./vue-ui-parallel-coordinate-plot-C0ofFivm.js";import{t as F}from"./vue-ui-quadrant-CPG6yAiu.js";import{t as I}from"./vue-ui-quick-chart-BTPb-Iz8.js";import{t as L}from"./vue-ui-radar-Hd-pE9ih.js";import{t as R}from"./vue-ui-rating-C_YxQYa_.js";import{t as z}from"./vue-ui-relation-circle-CHYG7ZJl.js";import{t as B}from"./vue-ui-rings-B-Hb13Uu.js";import{t as V}from"./vue-ui-scatter-BTgvOmuo.js";import{t as H}from"./vue-ui-skeleton-B-Acw3CC.js";import{t as U}from"./vue-ui-smiley-Ciwqt6ek.js";import{t as W}from"./vue-ui-sparkhistogram-ClFyDez-.js";import{t as G}from"./vue-ui-sparkstackbar-B2f0ePMg.js";import{t as K}from"./vue-ui-spark-trend-CYqy6c0S.js";import{t as q}from"./vue-ui-sparkbar-CTXIgjmP.js";import{t as J}from"./vue-ui-sparkgauge-CObOL6s2.js";import{t as te}from"./vue-ui-sparkline-DP_nYlW8.js";import{t as Y}from"./vue-ui-strip-plot-gFNC4r-X.js";import{t as X}from"./vue-ui-table-Br2JgD_L.js";import{t as Z}from"./vue-ui-table-heatmap-Btu2ejF4.js";import{t as Q}from"./vue-ui-table-sparkline-B9mYHAxp.js";import{t as ne}from"./vue-ui-thermometer-C6u1eLfo.js";import{t as re}from"./vue-ui-timer-DLgsfB1U.js";import{t as ie}from"./vue-ui-tiremarks-8B9uE1Bx.js";import{t as ae}from"./vue-ui-treemap-C4Mot-Os.js";import{t as $}from"./vue-ui-horizontal-bar-qqF7pL7U.js";import{t as oe}from"./vue-ui-waffle-BwcwNpf7.js";import{t as se}from"./vue-ui-wheel-B3OGCXg7.js";import{t as ce}from"./vue-ui-word-cloud-BPIyMBXq.js";import{a as le,i as ue,n as de,o as fe,r as pe,t as me}from"./exposedLib-CMTeSmyW.js";import{t as he}from"./vue-ui-xy-canvas-CaxxiKSa.js";import{t as ge}from"./vue-ui-carousel-table-ihGH0LDH.js";import{t as _e}from"./vue-ui-gizmo-CNHcBsku.js";import{t as ve}from"./vue-ui-stackbar-nMWHZ-f0.js";import{t as ye}from"./vue-ui-stackline-B95y6Zc5.js";import{t as be}from"./vue-ui-bullet-B9lcCTVb.js";import{t as xe}from"./vue-ui-funnel-WgLFJadZ.js";import{t as Se}from"./vue-ui-history-plot-C-9uH-Uj.js";import{t as Ce}from"./vue-ui-pattern-DrPCu32G.js";import{t as we}from"./vue-ui-circle-pack-BWHVImkS.js";import{t as Te}from"./vue-ui-world-Cp0DeauH.js";import{t as Ee}from"./vue-ui-ridgeline-DS1Gvljt.js";import{t as De}from"./vue-ui-chord-fAckHfOW.js";import{t as Oe}from"./vue-ui-dag-a0fNoIcJ.js";import{t as ke}from"./vue-data-ui-BG41UScx.js";import{t as Ae}from"./vue-ui-geo-CX3yH18H.js";import{t as je}from"./vue-ui-bump-DYajIrva.js";import{t as Me}from"./vue-ui-hill-DR5k8GWZ.js";import{t as Ne}from"./patternUtils-_q3ArM3g.js";import{t as Pe}from"./vue-ui-pattern-seed-B8YjAAEH.js";import{t as Fe}from"./vue-ui-label-D1Aog-zO.js";import{i as Ie,n as Le,r as Re,t as ze}from"./useObjectBindings-DM3xDKV3.js";import{t as Be}from"./useTooltipPosition-aoV8pZZ9.js";export{f as Arrow,ke as VueDataUi,p as VueUi3dBar,d as VueUiAccordion,m as VueUiAgePyramid,h as VueUiAnnotator,be as VueUiBullet,je as VueUiBump,g as VueUiCandlestick,ge as VueUiCarouselTable,_ as VueUiChestnut,De as VueUiChord,we as VueUiCirclePack,v as VueUiCursor,Oe as VueUiDag,y as VueUiDashboard,b as VueUiDigits,x as VueUiDonut,S as VueUiDonutEvolution,C as VueUiDumbbell,w as VueUiFlow,xe as VueUiFunnel,T as VueUiGalaxy,E as VueUiGauge,Ae as VueUiGeo,_e as VueUiGizmo,D as VueUiHeatmap,Me as VueUiHill,Se as VueUiHistoryPlot,$ as VueUiHorizontalBar,$ as VueUiVerticalBar,u as VueUiIcon,O as VueUiKpi,Fe as VueUiLabel,k as VueUiMiniLoader,A as VueUiMolecule,j as VueUiMoodRadar,M as VueUiNestedDonuts,N as VueUiOnion,P as VueUiParallelCoordinatePlot,Ce as VueUiPattern,Pe as VueUiPatternSeed,F as VueUiQuadrant,I as VueUiQuickChart,L as VueUiRadar,R as VueUiRating,z as VueUiRelationCircle,Ee as VueUiRidgeline,B as VueUiRings,V as VueUiScatter,H as VueUiSkeleton,U as VueUiSmiley,W as VueUiSparkHistogram,G as VueUiSparkStackbar,K as VueUiSparkTrend,q as VueUiSparkbar,J as VueUiSparkgauge,te as VueUiSparkline,ve as VueUiStackbar,ye as VueUiStackline,Y as VueUiStripPlot,X as VueUiTable,Z as VueUiTableHeatmap,Q as VueUiTableSparkline,ne as VueUiThermometer,re as VueUiTimer,ie as VueUiTiremarks,ae as VueUiTreemap,oe as VueUiWaffle,se as VueUiWheel,ce as VueUiWordCloud,Te as VueUiWorld,l as VueUiXy,he as VueUiXyCanvas,s as abbreviate,Le as applyDataCorrection,me as average,e as createColorWheel,Ne as createPatternDef,t as createSmoothPath,ee as createStraightPath,c as createTSpans,n as createWordCloudDatasetFromPlainText,de as darkenColor,i as formatSmallValue,o as getCumulativeAverage,a as getCumulativeMedian,r as getPalette,Re as getThemeConfig,Ie as getVueDataUiConfig,pe as lightenColor,ue as median,le as mergeConfigs,fe as shiftColorHue,ze as useObjectBindings,Be as useTooltipPosition};
1
+ import{E as e,P as t,U as ee,Z as n,bt as r,ft as i,ht as a,mt as o,n as s,q as c}from"./lib-CV_IANZ6.js";import{t as l}from"./vue-ui-xy-rGHSI1am.js";import{t as u}from"./BaseIcon-DdIyewwY.js";import{t as d}from"./vue-ui-accordion-BNvevckx.js";import{t as f}from"./Arrow-C2W0uGrq.js";import{t as p}from"./vue-ui-3d-bar-BZAoyWkc.js";import{t as m}from"./vue-ui-age-pyramid-DkA6vpU3.js";import{t as h}from"./vue-ui-annotator-DuQME4Hh.js";import{t as g}from"./vue-ui-candlestick-DZgxl4mW.js";import{t as _}from"./vue-ui-chestnut-Bo1h5rBt.js";import{t as v}from"./vue-ui-cursor-TidZDuSh.js";import{t as y}from"./vue-ui-dashboard-zepAVN_W.js";import{t as b}from"./vue-ui-digits-CXKKmfGj.js";import{t as x}from"./vue-ui-donut-DLDUpjDU.js";import{t as S}from"./vue-ui-donut-evolution-BxMTdE5G.js";import{t as C}from"./vue-ui-dumbbell-C8rNwdz0.js";import{t as w}from"./vue-ui-flow-Dru76A2O.js";import{t as T}from"./vue-ui-galaxy-sBEH18Xj.js";import{t as E}from"./vue-ui-gauge-Do3RN8ne.js";import{t as D}from"./vue-ui-heatmap-DlmJRsM8.js";import{t as O}from"./vue-ui-kpi-C-eed3jO.js";import{t as k}from"./vue-ui-mini-loader-CElmv_iF.js";import{t as A}from"./vue-ui-molecule-BeyQWZU9.js";import{t as j}from"./vue-ui-mood-radar-Bh0kHfiZ.js";import{t as M}from"./vue-ui-nested-donuts-FlnJfDaF.js";import{t as N}from"./vue-ui-onion-BjhSpjtW.js";import{t as P}from"./vue-ui-parallel-coordinate-plot-CHV6XDti.js";import{t as F}from"./vue-ui-quadrant-BaKSTJDv.js";import{t as I}from"./vue-ui-quick-chart-Nc2mVlle.js";import{t as L}from"./vue-ui-radar-BzUfkLlC.js";import{t as R}from"./vue-ui-rating-BwWXvbAg.js";import{t as z}from"./vue-ui-relation-circle-nAZEg-BL.js";import{t as B}from"./vue-ui-rings-BOti0NGb.js";import{t as V}from"./vue-ui-scatter-CCNMggyo.js";import{t as H}from"./vue-ui-skeleton-DI7pcimU.js";import{t as U}from"./vue-ui-smiley-D70sJZWl.js";import{t as W}from"./vue-ui-sparkhistogram-D8S_P_P4.js";import{t as G}from"./vue-ui-sparkstackbar-ZN8LXzoV.js";import{t as K}from"./vue-ui-spark-trend-BVtfEalS.js";import{t as q}from"./vue-ui-sparkbar-CdsLI7Ke.js";import{t as J}from"./vue-ui-sparkgauge-wmj5Wnnp.js";import{t as te}from"./vue-ui-sparkline-BjsJnS_9.js";import{t as Y}from"./vue-ui-strip-plot-D7kjJ3Qh.js";import{t as X}from"./vue-ui-table-CaFVLHxE.js";import{t as Z}from"./vue-ui-table-heatmap-Ctf7Rhqo.js";import{t as Q}from"./vue-ui-table-sparkline-C0I0cXBS.js";import{t as ne}from"./vue-ui-thermometer-B6og15Al.js";import{t as re}from"./vue-ui-timer-DgXvO2Q7.js";import{t as ie}from"./vue-ui-tiremarks-Dh6fZ454.js";import{t as ae}from"./vue-ui-treemap-7JuvN6P_.js";import{t as $}from"./vue-ui-horizontal-bar-BRDBJEl1.js";import{t as oe}from"./vue-ui-waffle-BqvGzfse.js";import{t as se}from"./vue-ui-wheel-SdwJqKA7.js";import{t as ce}from"./vue-ui-word-cloud-1WVV_k12.js";import{a as le,i as ue,n as de,o as fe,r as pe,t as me}from"./exposedLib-DHtyEc_G.js";import{t as he}from"./vue-ui-xy-canvas-CegvS9RR.js";import{t as ge}from"./vue-ui-carousel-table-BB7DsTUt.js";import{t as _e}from"./vue-ui-gizmo-eic6xLjB.js";import{t as ve}from"./vue-ui-stackbar-Dx_EN3pT.js";import{t as ye}from"./vue-ui-stackline-DW-oxJvA.js";import{t as be}from"./vue-ui-bullet-BVs8JX8S.js";import{t as xe}from"./vue-ui-funnel-D_u1h5S9.js";import{t as Se}from"./vue-ui-history-plot-BJjnkWcT.js";import{t as Ce}from"./vue-ui-pattern-DrPCu32G.js";import{t as we}from"./vue-ui-circle-pack-Bm7e2YNh.js";import{t as Te}from"./vue-ui-world-DjMy_utm.js";import{t as Ee}from"./vue-ui-ridgeline-DxLZg1E2.js";import{t as De}from"./vue-ui-chord-B6_veyvO.js";import{t as Oe}from"./vue-ui-dag-BiN_AnLo.js";import{t as ke}from"./vue-data-ui-DyYgLIZN.js";import{t as Ae}from"./vue-ui-geo-DDbtx_iJ.js";import{t as je}from"./vue-ui-bump-DYdm3EvF.js";import{t as Me}from"./vue-ui-hill-C5oiuIXh.js";import{t as Ne}from"./patternUtils-_q3ArM3g.js";import{t as Pe}from"./vue-ui-pattern-seed-B8YjAAEH.js";import{t as Fe}from"./vue-ui-label-B4pkXBxc.js";import{i as Ie,n as Le,r as Re,t as ze}from"./useObjectBindings-Dse7YyAf.js";import{t as Be}from"./useTooltipPosition-aoV8pZZ9.js";export{f as Arrow,ke as VueDataUi,p as VueUi3dBar,d as VueUiAccordion,m as VueUiAgePyramid,h as VueUiAnnotator,be as VueUiBullet,je as VueUiBump,g as VueUiCandlestick,ge as VueUiCarouselTable,_ as VueUiChestnut,De as VueUiChord,we as VueUiCirclePack,v as VueUiCursor,Oe as VueUiDag,y as VueUiDashboard,b as VueUiDigits,x as VueUiDonut,S as VueUiDonutEvolution,C as VueUiDumbbell,w as VueUiFlow,xe as VueUiFunnel,T as VueUiGalaxy,E as VueUiGauge,Ae as VueUiGeo,_e as VueUiGizmo,D as VueUiHeatmap,Me as VueUiHill,Se as VueUiHistoryPlot,$ as VueUiHorizontalBar,$ as VueUiVerticalBar,u as VueUiIcon,O as VueUiKpi,Fe as VueUiLabel,k as VueUiMiniLoader,A as VueUiMolecule,j as VueUiMoodRadar,M as VueUiNestedDonuts,N as VueUiOnion,P as VueUiParallelCoordinatePlot,Ce as VueUiPattern,Pe as VueUiPatternSeed,F as VueUiQuadrant,I as VueUiQuickChart,L as VueUiRadar,R as VueUiRating,z as VueUiRelationCircle,Ee as VueUiRidgeline,B as VueUiRings,V as VueUiScatter,H as VueUiSkeleton,U as VueUiSmiley,W as VueUiSparkHistogram,G as VueUiSparkStackbar,K as VueUiSparkTrend,q as VueUiSparkbar,J as VueUiSparkgauge,te as VueUiSparkline,ve as VueUiStackbar,ye as VueUiStackline,Y as VueUiStripPlot,X as VueUiTable,Z as VueUiTableHeatmap,Q as VueUiTableSparkline,ne as VueUiThermometer,re as VueUiTimer,ie as VueUiTiremarks,ae as VueUiTreemap,oe as VueUiWaffle,se as VueUiWheel,ce as VueUiWordCloud,Te as VueUiWorld,l as VueUiXy,he as VueUiXyCanvas,s as abbreviate,Le as applyDataCorrection,me as average,e as createColorWheel,Ne as createPatternDef,t as createSmoothPath,ee as createStraightPath,c as createTSpans,n as createWordCloudDatasetFromPlainText,de as darkenColor,i as formatSmallValue,o as getCumulativeAverage,a as getCumulativeMedian,r as getPalette,Re as getThemeConfig,Ie as getVueDataUiConfig,pe as lightenColor,ue as median,le as mergeConfigs,fe as shiftColorHue,ze as useObjectBindings,Be as useTooltipPosition};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,t as n}from"./tableIntegration-CNoJ1CIY.js";import{n as r,t as i}from"./annotationSlots-BRR85CqJ.js";import{n as a,t as o}from"./userOptionsSlots-DYuo-E5m.js";import{$ as s,D as c,Ft as l,Ht as u,It as ee,Jt as d,Q as f,S as p,X as m,at as h,b as te,f as g,h as ne,i as re,in as ie,nt as ae,p as oe,t as se,w as ce,yt as le,zt as ue}from"./lib-zDxoqrgo.js";import{n as de}from"./useHints-BH9r_0Vd.js";import{t as fe}from"./useConfig-CKdzPrcf.js";import{t as pe}from"./usePrinter-CnyKPIFM.js";import{n as me,t as he}from"./BaseScanner-8NdoBs7B.js";import{t as ge}from"./useChartExport-DtPNpc9M.js";import{t as _e}from"./img-8sM3sVWU.js";import{n as ve}from"./Title-BRAjxtjG.js";import{t as ye}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{l as be,t as xe}from"./useResponsive-D2CPcpda.js";import{t as _}from"./DefGrad-DKMq1REY.js";import{t as Se}from"./A11yDataTable-DWNlWXzs.js";import{n as Ce}from"./resolveChartConfig-BSo1Oe9n.js";import{t as we}from"./useUserOptionState-CXlFnwPv.js";import{t as Te}from"./useChartAccessibility-DOMuYJfm.js";import{t as Ee}from"./vue_ui_3d_bar-DmAve5Ri.js";import{Fragment as v,computed as y,createBlock as b,createCommentVNode as x,createElementBlock as S,createElementVNode as C,createSlots as De,createTextVNode as Oe,createVNode as w,defineAsyncComponent as T,guardReactiveProps as ke,mergeProps as Ae,nextTick as je,normalizeClass as Me,normalizeProps as Ne,normalizeStyle as E,onMounted as Pe,openBlock as D,ref as O,renderList as k,renderSlot as A,resolveDynamicComponent as Fe,toDisplayString as j,toRefs as Ie,unref as M,watch as Le,withCtx as N,withKeys as Re,withModifiers as ze}from"vue";var Be=/* @__PURE__ */ e({default:()=>sn}),Ve=[`id`],He=[`id`],Ue={"aria-live":`polite`,class:`sr-only`},We={style:{position:`relative`}},Ge=[`xmlns`,`viewBox`,`aria-describedby`],Ke=[`width`,`height`],qe={key:1},Je=[`x`,`y`,`font-size`,`font-weight`,`fill`],Ye=[`x`,`y`],Xe=[`cx`,`cy`,`stroke`,`opacity`],Ze=[`d`,`stroke`],Qe=[`d`,`stroke`],$e={key:4},et={key:0},tt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],nt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],rt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],it=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],at={key:1},ot=[`d`,`stroke`,`stroke-width`,`fill`],st=[`d`,`stroke`,`stroke-width`,`fill`],ct=[`d`,`stroke`,`stroke-width`,`fill`],lt={key:2},ut=[`aria-label`],dt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],ft=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],pt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],mt=[`d`,`onMouseenter`,`onClick`,`onMouseout`],ht=[`d`],gt=[`d`,`stroke`],_t=[`onClick`],vt=[`stroke`,`d`],yt=[`cx`,`cy`,`fill`,`stroke`],bt=[`x`,`y`,`width`,`height`],xt=[`x`,`y`,`width`,`height`],St={key:3},Ct=[`d`,`stroke`],wt=[`d`,`fill`,`stroke`],Tt={key:0},Et=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],Dt=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],Ot={key:4},kt=[`d`,`fill`,`stroke`],At={key:5},jt={key:0},Mt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Nt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Pt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Ft=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],It=[`d`,`stroke`,`stroke-width`,`fill`],Lt=[`d`,`stroke`,`stroke-width`,`fill`],Rt=[`d`],zt={key:1},Bt=[`aria-label`],Vt=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Ht=[`onMouseenter`,`onClick`,`onMouseout`,`d`],Ut=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Wt=[`onClick`],Gt=[`stroke`,`d`],Kt=[`cx`,`cy`,`fill`,`stroke`],qt=[`x`,`y`,`width`,`height`],Jt=[`x`,`y`,`width`,`height`],Yt={key:3},Xt=[`d`,`stroke`],Zt=[`d`,`fill`,`stroke`],Qt={key:0},$t=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],en=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],tn={key:4},nn=[`d`,`fill`,`stroke`],rn={key:4,class:`vue-data-ui-watermark`},an={key:0},on={key:1},sn=/*#__PURE__*/ ye({__name:`vue-ui-3d-bar`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`selectDatapoint`,`copyAlt`],setup(e,{expose:ye,emit:Be}){let sn=T(()=>import(`./BaseIcon-Cz30ODFA.js`).then(e=>e.n)),cn=T(()=>import(`./vue-ui-accordion-Dy5OVFKr.js`).then(e=>e.n)),ln=T(()=>import(`./DataTable-DSUA5M9p.js`)),un=T(()=>import(`./PenAndPaper-DvJJaeU2.js`).then(e=>e.t)),dn=T(()=>import(`./UserOptions-D65t74CM.js`).then(e=>e.n)),fn=T(()=>import(`./PackageVersion-D6pKL176.js`).then(e=>e.t)),pn=T(()=>import(`./BaseDraggableDialog-T1gEsQid.js`).then(e=>e.n)),{vue_ui_3d_bar:mn}=fe(),P=e,hn=Be,gn=y(()=>!!P.dataset&&Object.keys(P.dataset).length),F=O(m()),I=O(null),L=O(!1),_n=O(0),vn=O(0),yn=O(null),bn=O(null),xn=O(null),Sn=O(null),R=O(!1),Cn=O(null),wn=O(null),z=O(null),B=O(``),V=O(Nn()),Tn=y(()=>V.value.style),H=y(()=>V.value.style.chart),U=y(()=>V.value.userOptions);de({config:()=>V.value,dataset:()=>P.dataset,component:`VueUi3dBar`,rules:[{test:e=>e?.series&&e.series.length>8,message:[`👀 The number of series is > 8. 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.`]},{test:e=>e?.series&&e.series.some(e=>e?.breakdown&&e.breakdown.length>6),message:[`👀 Some donut breakdowns have > 6 data points. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" data point.`]}]});let En=y(()=>V.value.userOptions.useCursorPointer),Dn=y(()=>ie({defaultConfig:{customPalette:[`#808080`,`#ADADAD`,`#DBDBDB`],userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,color:`#6A6A6A`,bar:{color:`#ADADAD`,stroke:`#6A6A6A`},box:{stroke:`#6A6A6A`}}}},userConfig:V.value.skeletonConfig??{}})),{loading:On,FINAL_DATASET:W}=me({...Ie(P),FINAL_CONFIG:V,prepareConfig:Nn,callback:()=>{Promise.resolve().then(async()=>{await je(),Hn()})},skeletonDataset:P.config?.skeletonDataset??{series:[{name:`_`,value:21,breakdown:[{name:`_`,value:13},{name:`_`,value:8}]},{name:`_`,value:13,breakdown:[{name:`_`,value:8},{name:`_`,value:5}]},{name:`_`,value:8,breakdown:[{name:`_`,value:5},{name:`_`,value:3}]}]},skeletonConfig:ie({defaultConfig:V.value,userConfig:Dn.value})}),{userOptionsVisible:kn,setUserOptionsVisibility:An,keepUserOptionState:jn}=we({config:V.value}),{svgRef:Mn}=Te({config:V.value.style.chart.title});function Nn(){return Ce(P.config,mn,Ee)}Le(()=>P.config,e=>{On.value||(V.value=Nn()),kn.value=!V.value.userOptions.showOnChartHover,Gn(),_n.value+=1,vn.value+=1,G.value.showTable=V.value.table.show},{deep:!0});let{isPrinting:Pn,isImaging:Fn,generatePdf:In,generateImage:Ln}=pe({elementId:`3d_bar_${F.value}`,fileName:H.value.title.text||`vue-ui-3d-bar`,options:V.value.userOptions.print}),Rn=y(()=>ce(V.value.customPalette)),G=O({showTable:V.value.table.show});Le(V,()=>{G.value={showTable:V.value.table.show}},{immediate:!0});let K=y(()=>W.value.series&&W.value.series.length),zn=O(H.value.box.dimensions.width*(K.value?2:1)),Bn=O(H.value.box.dimensions.height),q=y(()=>({height:Bn.value,width:zn.value,absoluteWidth:zn.value,top:H.value.box.dimensions.top,bottom:H.value.box.dimensions.bottom,left:H.value.box.dimensions.left,right:H.value.box.dimensions.right,perspective:H.value.box.dimensions.perspective})),J=y(()=>{if(K.value){let e=W.value.series.map(e=>e.value||0).reduce((e,t)=>e+t,0),t=W.value.series.map((t,n)=>({...t,seriesIndex:n,id:m(),proportion:(t.value||0)/e,color:p(t.color)||Rn.value[n]||u[n]||u[n%u.length],breakdown:t.breakdown?t.breakdown.sort((e,t)=>t.value-e.value):null})).sort((e,t)=>t.value-e.value),n=[],r=0;for(let e=0;e<t.length;e+=1)n.push({...t[e],fill:qn(r,t[e].proportion,t[e].breakdown,t[e].color)}),r+=t[e].proportion;return n}return null}),Y=y(()=>{let e=q.value.width/2,t=q.value;return{right:`M${e},${t.top} ${t.width-t.right}, ${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,left:`M${e},${t.top} ${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,side:`M${e},${t.height-t.bottom} ${e},${t.top+t.perspective*2}`,topSides:`M${t.left},${t.top+t.perspective} ${e},${t.top+t.perspective*2} ${t.width-t.right},${t.top+t.perspective}`,tubeTop:`M${t.left},${t.top+t.perspective} C ${t.left},${t.top-t.perspective/3} ${t.width-t.right},${t.top-t.perspective/3} ${t.width-t.right},${t.top+t.perspective} C ${t.width-t.right},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective}`,tubeLeft:`M${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective}`,tubeRight:`M${t.width-t.right},${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective}`,tubeBottom:`M${t.width-t.right},${t.height-t.bottom-t.perspective} C ${t.width-t.right},${t.height} ${t.left},${t.height} ${t.left},${t.height-t.bottom-t.perspective}`}}),Vn=O(H.value.animation.use?0:W.value.percentage);function Hn(){let e=0,t=H.value.animation.speed,n=.005*H.value.animation.acceleration;function r(){Vn.value+=t+e,e+=n,Vn.value<W.value.percentage?requestAnimationFrame(r):Vn.value=W.value.percentage}H.value.animation.use&&(Vn.value=0,r())}Pe(()=>{Gn(),Hn()});let Un=y(()=>V.value.debug);function Wn(){Un.value&&(ue(P.dataset)?h({componentName:`VueUi3dBar`,type:`dataset`,debug:Un.value}):P.dataset.series?P.dataset.series.forEach((e,t)=>{le({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{h({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:t,debug:Un.value})}),e.breakdown&&e.breakdown.forEach((e,n)=>{le({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{h({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:`${t} - ${n}`,debug:Un.value})})})}):le({datasetObject:P.dataset,requiredAttributes:[`percentage`]}).forEach(e=>{h({componentName:`VueUi3dBar`,type:`datasetAttribute`,property:e,debug:Un.value})}))}function Gn(){if(Wn(),V.value.responsive){let e=be(()=>{let{width:e,height:t}=xe({chart:I.value,title:H.value.title.text?yn.value:null,source:Sn.value});requestAnimationFrame(()=>{Bn.value=t-12,zn.value=e})});bn.value&&(xn.value&&bn.value.unobserve(xn.value),bn.value.disconnect()),bn.value=new ResizeObserver(e),xn.value=I.value.parentNode,bn.value.observe(xn.value)}}let Kn=y(()=>q.value.width/4);function qn(e,t,n,r){let i=q.value.height-q.value.bottom-q.value.top-q.value.perspective*2,{width:a,height:o,bottom:s,right:c,left:u,perspective:d}=q.value,f=K.value?a/4:a/2,p=f*2+u,m=s+i*e,h=o-m-d-i*t/2,te=h>q.value.height/2?`top`:`bottom`,g=o*.25,ne=!!n,re=null,ie=null;return ne&&(n=n.map((e,t)=>({...e,value:e.value||0,color:l(r,t/n.length)})),re=ee({series:n},a/2+a/5,te===`top`?h-g:h+g,a/10,a/10,1.99999,2,1,360,105.25,a/20),ie=ee({series:n},a-p+a/14,o-m-d-i*t/2,a/40,a/40,1.99999,2,1,360,105.25,a/40)),{donut:re,miniDonut:ie,donutR:a/20,CENTER_X:f,sidePointer:{x:a-p,x2:a-p+a/14,xText:a-p+a/9,y:o-m-d-i*t/2,topY:o-m-d-i*t,height:i*t},apexBottom:{y:o-m,x:f},apexTop:{y:o-m-i*t,x:f},right:`M${f},${o-m} ${f},${o-m-i*t} ${a-p},${o-m-d-i*t} ${a-p},${o-m-d}Z`,left:`M${f},${o-m} ${f},${o-m-i*t} ${u}, ${o-m-d-i*t} ${u},${o-m-d}Z`,liningTop:`M${u},${o-m-d-i*t} ${f},${o-m-i*t} ${a-p},${o-m-d-i*t}`,liningTopShade:`M${u},${o-m-d-i*t-.5} ${f},${o-m-i*t-.5} ${a-p},${o-m-d-i*t-.5}`,top:`M${f},${o-m-i*t} ${u},${o-m-d-i*t} ${f},${o-m-d*2-i*t} ${a-p},${o-m-d-i*t} Z`,tubeTop:`M${u},${o-m-i*t-d} C ${u},${o-m-i*t-d*2.5} ${a-p},${o-m-i*t-d*2.5} ${a-p},${o-m-i*t-d} C ${a-p},${o-m-i*t+d/2} ${u},${o-m-i*t+d/2} ${u},${o-m-i*t-d}`,bottomTubeTop:`M ${a-p-.5},${o-m-d} C ${a-p-.5},${o-m+d/2} ${u},${o-m+d/2} ${u+.5},${o-m-d}`,tubeBody:`M
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,t as n}from"./tableIntegration-CNoJ1CIY.js";import{n as r,t as i}from"./annotationSlots-BRR85CqJ.js";import{n as a,t as o}from"./userOptionsSlots-DYuo-E5m.js";import{$ as s,D as c,Ft as l,Ht as u,It as ee,Jt as d,Q as f,S as p,X as m,at as h,b as te,f as g,h as ne,i as re,in as ie,nt as ae,p as oe,t as se,w as ce,yt as le,zt as ue}from"./lib-CV_IANZ6.js";import{n as de}from"./useHints-BH9r_0Vd.js";import{t as fe}from"./useConfig-CKdzPrcf.js";import{t as pe}from"./usePrinter-hLW3cv4N.js";import{n as me,t as he}from"./BaseScanner-8NdoBs7B.js";import{t as ge}from"./useChartExport-DtPNpc9M.js";import{t as _e}from"./img-DiT4ivZ5.js";import{n as ve}from"./Title-BGYFqulv.js";import{t as ye}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{l as be,t as xe}from"./useResponsive-D2CPcpda.js";import{t as _}from"./DefGrad-DKMq1REY.js";import{t as Se}from"./A11yDataTable-DWNlWXzs.js";import{n as Ce}from"./resolveChartConfig-DZg-korK.js";import{t as we}from"./useUserOptionState-CXlFnwPv.js";import{t as Te}from"./useChartAccessibility-DOMuYJfm.js";import{t as Ee}from"./vue_ui_3d_bar-DmAve5Ri.js";import{Fragment as v,computed as y,createBlock as b,createCommentVNode as x,createElementBlock as S,createElementVNode as C,createSlots as De,createTextVNode as Oe,createVNode as w,defineAsyncComponent as T,guardReactiveProps as ke,mergeProps as Ae,nextTick as je,normalizeClass as Me,normalizeProps as Ne,normalizeStyle as E,onMounted as Pe,openBlock as D,ref as O,renderList as k,renderSlot as A,resolveDynamicComponent as Fe,toDisplayString as j,toRefs as Ie,unref as M,watch as Le,withCtx as N,withKeys as Re,withModifiers as ze}from"vue";var Be=/* @__PURE__ */ e({default:()=>sn}),Ve=[`id`],He=[`id`],Ue={"aria-live":`polite`,class:`sr-only`},We={style:{position:`relative`}},Ge=[`xmlns`,`viewBox`,`aria-describedby`],Ke=[`width`,`height`],qe={key:1},Je=[`x`,`y`,`font-size`,`font-weight`,`fill`],Ye=[`x`,`y`],Xe=[`cx`,`cy`,`stroke`,`opacity`],Ze=[`d`,`stroke`],Qe=[`d`,`stroke`],$e={key:4},et={key:0},tt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],nt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],rt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],it=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],at={key:1},ot=[`d`,`stroke`,`stroke-width`,`fill`],st=[`d`,`stroke`,`stroke-width`,`fill`],ct=[`d`,`stroke`,`stroke-width`,`fill`],lt={key:2},ut=[`aria-label`],dt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],ft=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],pt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],mt=[`d`,`onMouseenter`,`onClick`,`onMouseout`],ht=[`d`],gt=[`d`,`stroke`],_t=[`onClick`],vt=[`stroke`,`d`],yt=[`cx`,`cy`,`fill`,`stroke`],bt=[`x`,`y`,`width`,`height`],xt=[`x`,`y`,`width`,`height`],St={key:3},Ct=[`d`,`stroke`],wt=[`d`,`fill`,`stroke`],Tt={key:0},Et=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],Dt=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],Ot={key:4},kt=[`d`,`fill`,`stroke`],At={key:5},jt={key:0},Mt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Nt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Pt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Ft=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],It=[`d`,`stroke`,`stroke-width`,`fill`],Lt=[`d`,`stroke`,`stroke-width`,`fill`],Rt=[`d`],zt={key:1},Bt=[`aria-label`],Vt=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Ht=[`onMouseenter`,`onClick`,`onMouseout`,`d`],Ut=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Wt=[`onClick`],Gt=[`stroke`,`d`],Kt=[`cx`,`cy`,`fill`,`stroke`],qt=[`x`,`y`,`width`,`height`],Jt=[`x`,`y`,`width`,`height`],Yt={key:3},Xt=[`d`,`stroke`],Zt=[`d`,`fill`,`stroke`],Qt={key:0},$t=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],en=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],tn={key:4},nn=[`d`,`fill`,`stroke`],rn={key:4,class:`vue-data-ui-watermark`},an={key:0},on={key:1},sn=/*#__PURE__*/ ye({__name:`vue-ui-3d-bar`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`selectDatapoint`,`copyAlt`],setup(e,{expose:ye,emit:Be}){let sn=T(()=>import(`./BaseIcon-DdIyewwY.js`).then(e=>e.n)),cn=T(()=>import(`./vue-ui-accordion-BNvevckx.js`).then(e=>e.n)),ln=T(()=>import(`./DataTable-WNecJMcY.js`)),un=T(()=>import(`./PenAndPaper-IMw576MC.js`).then(e=>e.t)),dn=T(()=>import(`./UserOptions-DTxMeZv3.js`).then(e=>e.n)),fn=T(()=>import(`./PackageVersion-CdkxOy58.js`).then(e=>e.t)),pn=T(()=>import(`./BaseDraggableDialog-D_tuHEjO.js`).then(e=>e.n)),{vue_ui_3d_bar:mn}=fe(),P=e,hn=Be,gn=y(()=>!!P.dataset&&Object.keys(P.dataset).length),F=O(m()),I=O(null),L=O(!1),_n=O(0),vn=O(0),yn=O(null),bn=O(null),xn=O(null),Sn=O(null),R=O(!1),Cn=O(null),wn=O(null),z=O(null),B=O(``),V=O(Nn()),Tn=y(()=>V.value.style),H=y(()=>V.value.style.chart),U=y(()=>V.value.userOptions);de({config:()=>V.value,dataset:()=>P.dataset,component:`VueUi3dBar`,rules:[{test:e=>e?.series&&e.series.length>8,message:[`👀 The number of series is > 8. 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.`]},{test:e=>e?.series&&e.series.some(e=>e?.breakdown&&e.breakdown.length>6),message:[`👀 Some donut breakdowns have > 6 data points. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" data point.`]}]});let En=y(()=>V.value.userOptions.useCursorPointer),Dn=y(()=>ie({defaultConfig:{customPalette:[`#808080`,`#ADADAD`,`#DBDBDB`],userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,color:`#6A6A6A`,bar:{color:`#ADADAD`,stroke:`#6A6A6A`},box:{stroke:`#6A6A6A`}}}},userConfig:V.value.skeletonConfig??{}})),{loading:On,FINAL_DATASET:W}=me({...Ie(P),FINAL_CONFIG:V,prepareConfig:Nn,callback:()=>{Promise.resolve().then(async()=>{await je(),Hn()})},skeletonDataset:P.config?.skeletonDataset??{series:[{name:`_`,value:21,breakdown:[{name:`_`,value:13},{name:`_`,value:8}]},{name:`_`,value:13,breakdown:[{name:`_`,value:8},{name:`_`,value:5}]},{name:`_`,value:8,breakdown:[{name:`_`,value:5},{name:`_`,value:3}]}]},skeletonConfig:ie({defaultConfig:V.value,userConfig:Dn.value})}),{userOptionsVisible:kn,setUserOptionsVisibility:An,keepUserOptionState:jn}=we({config:V.value}),{svgRef:Mn}=Te({config:V.value.style.chart.title});function Nn(){return Ce(P.config,mn,Ee)}Le(()=>P.config,e=>{On.value||(V.value=Nn()),kn.value=!V.value.userOptions.showOnChartHover,Gn(),_n.value+=1,vn.value+=1,G.value.showTable=V.value.table.show},{deep:!0});let{isPrinting:Pn,isImaging:Fn,generatePdf:In,generateImage:Ln}=pe({elementId:`3d_bar_${F.value}`,fileName:H.value.title.text||`vue-ui-3d-bar`,options:V.value.userOptions.print}),Rn=y(()=>ce(V.value.customPalette)),G=O({showTable:V.value.table.show});Le(V,()=>{G.value={showTable:V.value.table.show}},{immediate:!0});let K=y(()=>W.value.series&&W.value.series.length),zn=O(H.value.box.dimensions.width*(K.value?2:1)),Bn=O(H.value.box.dimensions.height),q=y(()=>({height:Bn.value,width:zn.value,absoluteWidth:zn.value,top:H.value.box.dimensions.top,bottom:H.value.box.dimensions.bottom,left:H.value.box.dimensions.left,right:H.value.box.dimensions.right,perspective:H.value.box.dimensions.perspective})),J=y(()=>{if(K.value){let e=W.value.series.map(e=>e.value||0).reduce((e,t)=>e+t,0),t=W.value.series.map((t,n)=>({...t,seriesIndex:n,id:m(),proportion:(t.value||0)/e,color:p(t.color)||Rn.value[n]||u[n]||u[n%u.length],breakdown:t.breakdown?t.breakdown.sort((e,t)=>t.value-e.value):null})).sort((e,t)=>t.value-e.value),n=[],r=0;for(let e=0;e<t.length;e+=1)n.push({...t[e],fill:qn(r,t[e].proportion,t[e].breakdown,t[e].color)}),r+=t[e].proportion;return n}return null}),Y=y(()=>{let e=q.value.width/2,t=q.value;return{right:`M${e},${t.top} ${t.width-t.right}, ${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,left:`M${e},${t.top} ${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,side:`M${e},${t.height-t.bottom} ${e},${t.top+t.perspective*2}`,topSides:`M${t.left},${t.top+t.perspective} ${e},${t.top+t.perspective*2} ${t.width-t.right},${t.top+t.perspective}`,tubeTop:`M${t.left},${t.top+t.perspective} C ${t.left},${t.top-t.perspective/3} ${t.width-t.right},${t.top-t.perspective/3} ${t.width-t.right},${t.top+t.perspective} C ${t.width-t.right},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective}`,tubeLeft:`M${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective}`,tubeRight:`M${t.width-t.right},${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective}`,tubeBottom:`M${t.width-t.right},${t.height-t.bottom-t.perspective} C ${t.width-t.right},${t.height} ${t.left},${t.height} ${t.left},${t.height-t.bottom-t.perspective}`}}),Vn=O(H.value.animation.use?0:W.value.percentage);function Hn(){let e=0,t=H.value.animation.speed,n=.005*H.value.animation.acceleration;function r(){Vn.value+=t+e,e+=n,Vn.value<W.value.percentage?requestAnimationFrame(r):Vn.value=W.value.percentage}H.value.animation.use&&(Vn.value=0,r())}Pe(()=>{Gn(),Hn()});let Un=y(()=>V.value.debug);function Wn(){Un.value&&(ue(P.dataset)?h({componentName:`VueUi3dBar`,type:`dataset`,debug:Un.value}):P.dataset.series?P.dataset.series.forEach((e,t)=>{le({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{h({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:t,debug:Un.value})}),e.breakdown&&e.breakdown.forEach((e,n)=>{le({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{h({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:`${t} - ${n}`,debug:Un.value})})})}):le({datasetObject:P.dataset,requiredAttributes:[`percentage`]}).forEach(e=>{h({componentName:`VueUi3dBar`,type:`datasetAttribute`,property:e,debug:Un.value})}))}function Gn(){if(Wn(),V.value.responsive){let e=be(()=>{let{width:e,height:t}=xe({chart:I.value,title:H.value.title.text?yn.value:null,source:Sn.value});requestAnimationFrame(()=>{Bn.value=t-12,zn.value=e})});bn.value&&(xn.value&&bn.value.unobserve(xn.value),bn.value.disconnect()),bn.value=new ResizeObserver(e),xn.value=I.value.parentNode,bn.value.observe(xn.value)}}let Kn=y(()=>q.value.width/4);function qn(e,t,n,r){let i=q.value.height-q.value.bottom-q.value.top-q.value.perspective*2,{width:a,height:o,bottom:s,right:c,left:u,perspective:d}=q.value,f=K.value?a/4:a/2,p=f*2+u,m=s+i*e,h=o-m-d-i*t/2,te=h>q.value.height/2?`top`:`bottom`,g=o*.25,ne=!!n,re=null,ie=null;return ne&&(n=n.map((e,t)=>({...e,value:e.value||0,color:l(r,t/n.length)})),re=ee({series:n},a/2+a/5,te===`top`?h-g:h+g,a/10,a/10,1.99999,2,1,360,105.25,a/20),ie=ee({series:n},a-p+a/14,o-m-d-i*t/2,a/40,a/40,1.99999,2,1,360,105.25,a/40)),{donut:re,miniDonut:ie,donutR:a/20,CENTER_X:f,sidePointer:{x:a-p,x2:a-p+a/14,xText:a-p+a/9,y:o-m-d-i*t/2,topY:o-m-d-i*t,height:i*t},apexBottom:{y:o-m,x:f},apexTop:{y:o-m-i*t,x:f},right:`M${f},${o-m} ${f},${o-m-i*t} ${a-p},${o-m-d-i*t} ${a-p},${o-m-d}Z`,left:`M${f},${o-m} ${f},${o-m-i*t} ${u}, ${o-m-d-i*t} ${u},${o-m-d}Z`,liningTop:`M${u},${o-m-d-i*t} ${f},${o-m-i*t} ${a-p},${o-m-d-i*t}`,liningTopShade:`M${u},${o-m-d-i*t-.5} ${f},${o-m-i*t-.5} ${a-p},${o-m-d-i*t-.5}`,top:`M${f},${o-m-i*t} ${u},${o-m-d-i*t} ${f},${o-m-d*2-i*t} ${a-p},${o-m-d-i*t} Z`,tubeTop:`M${u},${o-m-i*t-d} C ${u},${o-m-i*t-d*2.5} ${a-p},${o-m-i*t-d*2.5} ${a-p},${o-m-i*t-d} C ${a-p},${o-m-i*t+d/2} ${u},${o-m-i*t+d/2} ${u},${o-m-i*t-d}`,bottomTubeTop:`M ${a-p-.5},${o-m-d} C ${a-p-.5},${o-m+d/2} ${u},${o-m+d/2} ${u+.5},${o-m-d}`,tubeBody:`M
2
2
  ${u},${o-m-i*t-d}
3
3
  C ${u},${o-m-i*t+d/2}
4
4
  ${a-p},${o-m-i*t+d/2}
@@ -1 +1 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{X as t}from"./lib-zDxoqrgo.js";import{t as n}from"./useConfig-CKdzPrcf.js";import{t as r}from"./useNestedProp-CT9phgWx.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as a}from"./BaseIcon-Cz30ODFA.js";import{computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,guardReactiveProps as d,normalizeClass as f,normalizeProps as p,normalizeStyle as m,onMounted as h,openBlock as g,ref as _,renderSlot as v,useCssVars as y,watch as b}from"vue";var x=/* @__PURE__ */ e({default:()=>T}),S={class:`vue-data-ui-component`},C=[`id`],w={key:0,class:`vue-ui-accordion-arrow`},T=/*#__PURE__*/ i({__name:`vue-ui-accordion`,props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},emits:[`toggle`],setup(e,{emit:i}){y(e=>({fc620ee6:P.value}));let{vue_ui_accordion:x}=n(),T=e,E=i,D=o(()=>r({userConfig:T.config,defaultConfig:x})),O=o(()=>D.value.useCursorPointer),k=_(D.value.open),A=_(t()),j=_(null),M=_(0);h(()=>{j.value.open=D.value.open}),b(()=>D.value.open,e=>{j.value.open=e});function N(){(M.value>0||!D.value.open)&&(k.value=!k.value),M.value+=1,E(`toggle`)}let P=o(()=>`${D.value.maxHeight}px`);return(t,n)=>(g(),l(`div`,S,[u(`details`,{id:`details_${A.value}`,ref_key:`details`,ref:j,onToggle:N},[u(`summary`,{class:f({"vue-ui-accordion-headless":e.hideDetails}),style:m({cursor:O.value?`pointer`:`default`})},[u(`div`,{class:`vue-ui-accordion-head`,style:m(`background:${D.value.head.backgroundColor};padding:${D.value.head.padding}; ${e.hideDetails?`height: 0px !important; padding: 0 !important;`:``}`)},[e.hideDetails?c(``,!0):(g(),l(`div`,w,[D.value.head.useArrowSlot?v(t.$slots,`arrow`,p(d({backgroundColor:D.value.head.backgroundColor,color:D.value.head.color,iconColor:D.value.head.iconColor,isOpen:k.value})),void 0,!0,0):(g(),s(a,{key:1,name:D.value.head.icon,stroke:D.value.head.iconColor,size:D.value.head.iconSize},null,8,[`name`,`stroke`,`size`]))])),v(t.$slots,`title`,p(d({color:D.value.head.color,isOpen:k.value})),void 0,!0)],4)],6)],40,C),u(`div`,{class:`vue-ui-accordion-content`,style:m(`background:${D.value.body.backgroundColor};color:${D.value.body.color}`)},[v(t.$slots,`content`,p(d({backgroundColor:D.value.body.backgroundColor,color:D.value.body.color,isOpen:k.value})),void 0,!0)],4)]))}},[[`__scopeId`,`data-v-2782a9e6`]]);export{x as n,T as t};
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{X as t}from"./lib-CV_IANZ6.js";import{t as n}from"./useConfig-CKdzPrcf.js";import{t as r}from"./useNestedProp-CB186vF2.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as a}from"./BaseIcon-DdIyewwY.js";import{computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,guardReactiveProps as d,normalizeClass as f,normalizeProps as p,normalizeStyle as m,onMounted as h,openBlock as g,ref as _,renderSlot as v,useCssVars as y,watch as b}from"vue";var x=/* @__PURE__ */ e({default:()=>T}),S={class:`vue-data-ui-component`},C=[`id`],w={key:0,class:`vue-ui-accordion-arrow`},T=/*#__PURE__*/ i({__name:`vue-ui-accordion`,props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},emits:[`toggle`],setup(e,{emit:i}){y(e=>({fc620ee6:P.value}));let{vue_ui_accordion:x}=n(),T=e,E=i,D=o(()=>r({userConfig:T.config,defaultConfig:x})),O=o(()=>D.value.useCursorPointer),k=_(D.value.open),A=_(t()),j=_(null),M=_(0);h(()=>{j.value.open=D.value.open}),b(()=>D.value.open,e=>{j.value.open=e});function N(){(M.value>0||!D.value.open)&&(k.value=!k.value),M.value+=1,E(`toggle`)}let P=o(()=>`${D.value.maxHeight}px`);return(t,n)=>(g(),l(`div`,S,[u(`details`,{id:`details_${A.value}`,ref_key:`details`,ref:j,onToggle:N},[u(`summary`,{class:f({"vue-ui-accordion-headless":e.hideDetails}),style:m({cursor:O.value?`pointer`:`default`})},[u(`div`,{class:`vue-ui-accordion-head`,style:m(`background:${D.value.head.backgroundColor};padding:${D.value.head.padding}; ${e.hideDetails?`height: 0px !important; padding: 0 !important;`:``}`)},[e.hideDetails?c(``,!0):(g(),l(`div`,w,[D.value.head.useArrowSlot?v(t.$slots,`arrow`,p(d({backgroundColor:D.value.head.backgroundColor,color:D.value.head.color,iconColor:D.value.head.iconColor,isOpen:k.value})),void 0,!0,0):(g(),s(a,{key:1,name:D.value.head.icon,stroke:D.value.head.iconColor,size:D.value.head.iconSize},null,8,[`name`,`stroke`,`size`]))])),v(t.$slots,`title`,p(d({color:D.value.head.color,isOpen:k.value})),void 0,!0)],4)],6)],40,C),u(`div`,{class:`vue-ui-accordion-content`,style:m(`background:${D.value.body.backgroundColor};color:${D.value.body.color}`)},[v(t.$slots,`content`,p(d({backgroundColor:D.value.body.backgroundColor,color:D.value.body.color,isOpen:k.value})),void 0,!0)],4)]))}},[[`__scopeId`,`data-v-2782a9e6`]]);export{x as n,T as t};
@@ -1 +1 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,t as n}from"./tableIntegration-CNoJ1CIY.js";import{n as r,t as i}from"./annotationSlots-BRR85CqJ.js";import{n as a,t as o}from"./userOptionsSlots-DYuo-E5m.js";import{$ as s,D as ee,Dt as te,Jt as ne,X as re,Yt as ie,at as ae,b as c,et as oe,i as l,in as se,nt as ce,pt as le,t as ue,tn as de,zt as fe}from"./lib-zDxoqrgo.js";import{n as pe,t as me}from"./useHints-BH9r_0Vd.js";import{t as he}from"./useConfig-CKdzPrcf.js";import{t as ge}from"./usePrinter-CnyKPIFM.js";import{n as _e,t as ve}from"./BaseScanner-8NdoBs7B.js";import{t as ye}from"./useChartExport-DtPNpc9M.js";import{t as be}from"./useTimeLabelCollider-XQf_S7-z.js";import{t as xe}from"./img-8sM3sVWU.js";import{n as Se}from"./Title-BRAjxtjG.js";import{t as Ce}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{l as we,t as Te}from"./useResponsive-D2CPcpda.js";import{t as Ee}from"./DefGrad-DKMq1REY.js";import{t as De}from"./A11yDataTable-DWNlWXzs.js";import{t as Oe}from"./resolveChartConfig-BSo1Oe9n.js";import{t as ke}from"./useUserOptionState-CXlFnwPv.js";import{t as Ae}from"./useChartAccessibility-DOMuYJfm.js";import{t as je}from"./vue_ui_age_pyramid-CL0Ef8Ov.js";import{Fragment as u,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createSlots as Me,createTextVNode as Ne,createVNode as g,defineAsyncComponent as _,guardReactiveProps as v,mergeProps as Pe,nextTick as Fe,normalizeClass as Ie,normalizeProps as y,normalizeStyle as Le,onBeforeUnmount as Re,onMounted as ze,openBlock as b,ref as x,renderList as S,renderSlot as C,resolveDynamicComponent as Be,shallowRef as Ve,toDisplayString as w,toRefs as He,unref as T,watch as Ue,watchEffect as We,withCtx as E}from"vue";var Ge=/* @__PURE__ */ e({default:()=>bt}),Ke=[`id`],qe=[`id`],Je={style:{position:`relative`}},Ye=[`xmlns`,`viewBox`,`aria-describedby`],Xe=[`x`,`y`,`width`,`height`],Ze=[`x`,`y`,`width`,`height`,`fill`,`rx`],Qe=[`x`,`y`,`width`,`height`,`fill`,`rx`],$e=[`x`,`y`,`width`,`height`,`fill`,`rx`],et=[`x`,`y`,`width`,`height`,`fill`,`rx`],tt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],nt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],rt={key:0},it=[`x`,`y`,`fill`,`font-size`,`font-weight`],at=[`x`,`y`,`fill`,`font-size`,`font-weight`],ot={key:1},st=[`x`,`y`,`font-size`,`fill`,`font-weight`],ct={key:2},lt={key:0},ut=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],dt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ft=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],pt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],mt=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],ht=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],gt=[`x`,`y`,`font-size`,`fill`,`font-weight`],_t=[`x`,`y`,`width`,`height`,`fill`,`onMouseover`,`onMouseleave`,`onClick`],vt={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},yt={key:5,class:`vue-data-ui-watermark`},bt=/*#__PURE__*/ Ce({__name:`vue-ui-age-pyramid`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`copyAlt`],setup(e,{expose:Ce,emit:Ge}){let bt=_(()=>import(`./Tooltip-BUXB0i6z.js`)),xt=_(()=>import(`./BaseIcon-Cz30ODFA.js`).then(e=>e.n)),St=_(()=>import(`./vue-ui-accordion-Dy5OVFKr.js`).then(e=>e.n)),Ct=_(()=>import(`./DataTable-DSUA5M9p.js`)),wt=_(()=>import(`./PenAndPaper-DvJJaeU2.js`).then(e=>e.t)),Tt=_(()=>import(`./UserOptions-D65t74CM.js`).then(e=>e.n)),Et=_(()=>import(`./PackageVersion-D6pKL176.js`).then(e=>e.t)),Dt=_(()=>import(`./BaseDraggableDialog-T1gEsQid.js`).then(e=>e.n)),{vue_ui_age_pyramid:Ot}=he(),D=e,kt=Ge,At=d(()=>!!D.dataset&&D.dataset.length),O=x(re()),k=x(!1),jt=x(``),A=x(null),Mt=x(0),j=x(null),Nt=x(null),Pt=x(null),Ft=x(null),It=x(0),Lt=x(0),Rt=x(null),zt=x(null),Bt=x(null),M=x(null),Vt=x({x:0,y:0}),N=x(`pointer`),Ht=x(!1),P=x(Xt()),F=d(()=>P.value.style),I=d(()=>P.value.style.layout.dataLabels),L=d(()=>P.value.style.layout.bars),R=d(()=>P.value.style.layout.bars.labels);pe({config:()=>P.value,dataset:()=>D.dataset,component:`VueUiAgePyramid`,rules:[me.emptyArray,{test:e=>e.length>130,message:[`👀 Dataset has > 130 points. Consider:`,``,`▶️ Grouping small values into aggregated categories.`,``,`▶️ Using VueUiStackline to display data in a more compact way.`]}]});let z=d(()=>P.value.userOptions.useCursorPointer),Ut=d(()=>se({defaultConfig:{userOptions:{show:!1},table:{show:!1},translations:{male:``,female:``},style:{backgroundColor:`#99999930`,layout:{bars:{left:{color:`#CACACA`},right:{color:`#999999`}},dataLabels:{xAxis:{fontSize:0,scale:1e3,translation:``},yAxis:{show:!1}},grid:{stroke:`#6A6A6A`}}}},userConfig:P.value.skeletonConfig??{}})),{loading:Wt,FINAL_DATASET:Gt,manualLoading:Kt}=_e({...He(D),FINAL_CONFIG:P,prepareConfig:Xt,skeletonDataset:D.config?.skeletonDataset??[[`_`,9,2,2],[`_`,8,3,3],[`_`,7,5,5],[`_`,6,8,8],[`_`,5,13,13],[`_`,4,21,21],[`_`,3,34,34],[`_`,2,55,55],[`_`,1,89,89],[`_`,0,144,144]],skeletonConfig:se({defaultConfig:P.value,userConfig:Ut.value})}),{userOptionsVisible:qt,setUserOptionsVisibility:Jt,keepUserOptionState:Yt}=ke({config:P.value}),{svgRef:B}=Ae({config:P.value.style.title});function Xt(){return Oe(D.config,Ot,je)}function Zt(e){let t=oe(e);return t?.style?.chart&&delete t.style.tooltip,JSON.stringify(t)}let Qt=Zt(D.config);Ue(()=>D.config,(e,t)=>{let n=Zt(e),r=n!==Qt;Qt=n;let i=Xt();if(!r){P.value.style.tooltip=i.style.tooltip,U.value.showTooltip=P.value.style.tooltip.show;return}Wt.value||(P.value=i),qt.value=!P.value.userOptions.showOnChartHover,en(),It.value+=1,Lt.value+=1,U.value.showTable=P.value.table.show,U.value.showTooltip=P.value.style.tooltip.show},{deep:!0}),Ue(()=>D.dataset,e=>{Array.isArray(e)&&e.length>0&&(Kt.value=!1)},{deep:!0});let V=Ve(null),H=Ve(null);ze(()=>{en()});let $t=d(()=>P.value.debug);function en(){if(fe(D.dataset)&&(ae({componentName:`VueUiAgePyramid`,type:`dataset`,debug:$t.value}),Kt.value=!0),fe(D.dataset)||(Kt.value=P.value.loading),P.value.responsive){let e=we(()=>{let{width:e,height:t}=Te({chart:j.value,title:F.value.title.text?Nt.value:null,source:Pt.value,noTitle:Ft.value});requestAnimationFrame(()=>{W.value.width=e,W.value.height=t})});V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect()),V.value=new ResizeObserver(e),H.value=j.value.parentNode,V.value.observe(H.value)}}Re(()=>{V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect())});let{isPrinting:tn,isImaging:nn,generatePdf:rn,generateImage:an}=ge({elementId:`vue-ui-age-pyramid_${O.value}`,fileName:F.value.title.text||`vue-ui-age-pyramid`,options:P.value.userOptions.print}),on=d(()=>P.value.userOptions.show&&!F.value.title.text),U=x({showTable:P.value.table.show,showTooltip:F.value.tooltip.show});Ue(P,()=>{U.value={showTable:P.value.table.show,showTooltip:F.value.tooltip.show}},{immediate:!0});let W=x({height:F.value.height,width:F.value.width}),sn=d(()=>W.value.width),cn=d(()=>W.value.height),ln=x(0),un=we(e=>{ln.value=e},100);We(e=>{let t=Rt.value;if(!t)return;let n=new ResizeObserver(e=>{un(e[0].contentRect.height)});n.observe(t),e(()=>n.disconnect())}),Re(()=>{ln.value=0});let G=d(()=>{let e=W.value.width-F.value.layout.padding.right-F.value.layout.padding.left,t=F.value.layout.padding.left,n=W.value.width-F.value.layout.padding.right;return{top:F.value.layout.padding.top+I.value.sideTitles.fontSize+I.value.sideTitles.offsetY+12,left:t,right:n,bottom:W.value.height-F.value.layout.padding.bottom-ln.value,width:e,height:W.value.height-F.value.layout.padding.top-F.value.layout.padding.bottom-ln.value-I.value.sideTitles.fontSize-I.value.sideTitles.offsetY-12,centerX:F.value.layout.padding.left+e/2,leftChart:{width:e/2-F.value.layout.centerSlit.width,right:t+e/2-F.value.layout.centerSlit.width},rightChart:{width:e/2-F.value.layout.centerSlit.width,left:t+e/2+F.value.layout.centerSlit.width}}}),dn=d(()=>Gt.value.map(e=>I.value.yAxis.display===`age`?e[1]:e[0])),K=d(()=>{let e=fn(q.value/5),t=[],n=[];for(let r=0;r<=5;r+=1){let i=e*r,a=e*(r-5);t.push({value:i,x:G.value.left+G.value.width/2+F.value.layout.centerSlit.width+i/q.value*G.value.leftChart.width}),n.push({value:Math.abs(a),x:G.value.left+G.value.width/2+a/q.value*G.value.leftChart.width-F.value.layout.centerSlit.width})}return{right:t,left:n}});function fn(e){if(e===0)return 0;let t=10**Math.floor(Math.log10(Math.abs(e))),n;return n=Math.round(e/t)*t,n}let q=d(()=>Math.max(...Gt.value.flatMap(e=>e.slice(-2).map(e=>c(e))))),J=d(()=>Gt.value.length),pn=d(()=>Gt.value.map(e=>({segment:e[0],age:e[1],left:{value:e[2],proportionToMax:e[2]/q.value},right:{value:e[3],proportionToMax:e[3]/q.value}}))),Y=d(()=>pn.value.map((e,t)=>{let n=G.value.top+G.value.height/J.value*t,r=G.value.height/J.value-L.value.gap;return{segment:e.segment,age:e.age,left:{...e.left,y:n,color:L.value.left.color,x:G.value.leftChart.right-e.left.proportionToMax*G.value.leftChart.width,width:c(e.left.proportionToMax*G.value.leftChart.width),height:r},right:{...e.right,y:n,color:L.value.right.color,x:G.value.rightChart.left,width:c(e.right.proportionToMax*G.value.rightChart.width),height:r}}})),mn=x(null);function hn(e){let[t,n,r,i]=e;return{segment:t,index:n,left:r,right:i}}function gn(e,t){P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:hn(t),seriesIndex:e})}function _n(e,t){P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:hn(t),seriesIndex:e}),(N.value!==`keyboard`||M.value!==e)&&(A.value=null,k.value=!1)}function vn(e){if(!B.value)return;let t=Y.value[e];if(!t)return;let n=de(G.value.left+G.value.width/2,t.left.y+t.left.height/2,B.value);n&&(Vt.value=n)}function yn(e,t,n=`pointer`){P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:hn(t),seriesIndex:e}),A.value=e,M.value=e,N.value=n,mn.value={datapoint:t,seriesIndex:e,series:Y.value,config:P.value};let r=F.value.tooltip.customFormat;if(te(r)&&le(()=>r({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value})))jt.value=r({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value});else{let n=``,r=Y.value[e];n+=`<div><b>${r.segment}</b></div>`,n+=`<div>${P.value.translations.age}: ${l(I.value.yAxis.formatter,c(r.age),s({v:c(r.age)}),{datapoint:t,seriesIndex:e})}</div>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}">`,n+=`<div style="display:flex; flex-direction:row;gap:12px">`,n+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:L.value.left.color}"/></svg><div>${P.value.translations.female}</div><div><b>${l(I.value.xAxis.formatter,c(r.left.value),s({v:c(r.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:L.value.right.color}"/></svg><div>${P.value.translations.male}</div><div><b>${l(I.value.xAxis.formatter,c(r.right.value),s({v:c(r.right.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`</div>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}"><div>${P.value.translations.total}</div><div><b>${l(I.value.xAxis.formatter,c(r.right.value)+c(r.left.value),s({v:c(r.right.value)+c(r.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`</div>`,jt.value=`<div>${n}</div>`}k.value=!0,n===`keyboard`&&Fe(()=>{vn(e)})}function bn(e=null){Fe(()=>{let t=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total],n=D.dataset.map(e=>[e[0],e[1],e[2],e[3],e[2]??0+e[3]??0]),r=[[F.value.title.text],[F.value.title.subtitle.text],[[``],[``],[``]],t].concat(n),i=ee(r);e?e(i):ce({csvContent:i,title:F.value.title.text||`vue-ui-heatmap`})})}let X=d(()=>{let e=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total];return{head:e,body:D.dataset.map(e=>[e[0],e[1],e[2]==null?``:e[2].toLocaleString(),e[3]==null?``:e[3].toLocaleString(),(e[2]??0+e[3]??0).toLocaleString()]),config:{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},colNames:e}}),Z=x(!1);function xn(e){Z.value=e,Mt.value+=1}function Sn(){U.value.showTable=!U.value.showTable}function Cn(){U.value.showTooltip=!U.value.showTooltip}let Q=x(!1);function wn(){Q.value=!Q.value}async function Tn({scale:e=2}={}){if(!j.value)return;let{width:t,height:n}=j.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await xe({domElement:j.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:F.value.title.text,width:t,height:n,aspectRatio:r}}let En=x([]),Dn=x({start:0,end:Y.value.length});be({timeLabelsEls:Rt,timeLabels:En,slicer:Dn,configRef:P,rotationPath:[`style`,`layout`,`dataLabels`,`xAxis`,`rotation`],autoRotatePath:[`style`,`layout`,`dataLabels`,`xAxis`,`autoRotate`,`enable`],isAutoSize:!1,width:sn,height:cn,targetClass:`.vue-ui-age-pyramid-x-axis-label`,rotation:F.value.layout.dataLabels.xAxis.autoRotate.angle});let $=d(()=>n({config:P,style:F,mutableConfig:U,dialog:Dt,accordion:St,isFullscreen:Z,parent:j,maxWidth:800,isCursorPointer:z}));Ue(()=>U.value.showTable,e=>t(e,P,zt));function On(){U.value.showTable=!1,Bt.value&&Bt.value.setTableIconState(!1)}let kn=d(()=>P.value.style.backgroundColor),An=d(()=>P.value.style.title),{isCallbackImaging:jn,isCallbackSvg:Mn,generateSvg:Nn,onGenerateImage:Pn}=ye({svg:B,title:An,legend:null,legendItems:null,backgroundColor:kn,getSvgCallback:()=>P.value.userOptions.callbacks.svg,generateImage:an});async function Fn(){if(kt(`copyAlt`,{config:P.value,dataset:Y.value}),!P.value.userOptions.callbacks.altCopy){console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");return}await Promise.resolve(P.value.userOptions.callbacks.altCopy({config:P.value,dataset:Y.value}))}function In(){Ht.value=!0}function Ln(){A.value=null,M.value=null,N.value=`pointer`,k.value=!1,Ht.value=!1}function Rn(e){if(!B.value||Q.value||document.activeElement!==B.value||!Y.value.length)return;let t=[`ArrowUp`,`ArrowLeft`].includes(e.key),n=[`ArrowDown`,`ArrowRight`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){A.value=null,M.value=null,N.value=`pointer`,k.value=!1;return}if(r){if(M.value===null)return;let e=D.dataset[M.value];if(!e)return;gn(M.value,e);return}let a=M.value,o=A.value,s=a!==null&&a>=0&&a<Y.value.length,ee=o!==null&&o>=0&&o<Y.value.length;s?t?a=a-1<0?Y.value.length-1:a-1:n&&(a=a+1>Y.value.length-1?0:a+1):ee?(a=n?o+1:o-1,a>=Y.value.length&&(a=0),a<0&&(a=Y.value.length-1)):a=n?0:Y.value.length-1;let te=D.dataset[a];te&&yn(a,te,`keyboard`)}return Ce({getImage:Tn,generatePdf:rn,generateCsv:bn,generateImage:an,generateSvg:Nn,toggleTable:Sn,toggleTooltip:Cn,toggleAnnotator:wn,toggleFullscreen:xn,copyAlt:Fn}),(t,n)=>(b(),m(`div`,{class:Ie(`vue-data-ui-component vue-ui-age-pyramid ${Z.value?`vue-data-ui-wrapper-fullscreen`:``}`),ref_key:`agePyramid`,ref:j,id:`vue-ui-age-pyramid_${O.value}`,style:Le(`font-family:${F.value.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor};${P.value.responsive?`height:100%`:``}`),onMouseenter:n[1]||=()=>T(Jt)(!0),onMouseleave:n[2]||=()=>T(Jt)(!1)},[h(`div`,{id:`chart-instructions-${O.value}`,class:`sr-only`},[h(`p`,null,w(P.value.a11y.translations.keyboardNavigation),1)],8,qe),X.value?.body?.length?(b(),f(De,{key:0,uid:O.value,head:X.value.head,body:X.value.body,notice:P.value.a11y.translations.tableAvailable,caption:P.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):p(``,!0),P.value.userOptions.buttons.annotator?(b(),f(T(wt),{key:1,svgRef:T(B),backgroundColor:F.value.backgroundColor,color:F.value.color,active:Q.value,isCursorPointer:z.value,palette:P.value.userOptions.annotatorPalette,onClose:wn},Me({_:2},[S(T(i),e=>({name:e,fn:E(n=>[C(t.$slots,e,y(v(T(r)(e,n))),void 0,!0)])}))]),1032,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):p(``,!0),on.value?(b(),m(`div`,{key:2,ref_key:`noTitle`,ref:Ft,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):p(``,!0),F.value.title.text?(b(),m(`div`,{key:3,ref_key:`chartTitle`,ref:Nt,style:`width:100%;background:transparent`},[(b(),f(Se,{key:`title_${It.value}`,config:{title:{cy:`pyramid-div-title`,...F.value.title},subtitle:{cy:`pyramid-div-subtitle`,...F.value.title.subtitle}}},null,8,[`config`]))],512)):p(``,!0),P.value.userOptions.show&&At.value&&(T(Yt)||T(qt))?(b(),f(T(Tt),{ref_key:`userOptionsRef`,ref:Bt,key:`user_options_${Mt.value}`,backgroundColor:F.value.backgroundColor,color:F.value.color,isImaging:T(nn),isPrinting:T(tn),uid:O.value,hasTooltip:P.value.userOptions.buttons.tooltip&&F.value.tooltip.show,hasPdf:P.value.userOptions.buttons.pdf,hasXls:P.value.userOptions.buttons.csv,hasImg:P.value.userOptions.buttons.img,hasSvg:P.value.userOptions.buttons.svg,hasTable:P.value.userOptions.buttons.table,hasFullscreen:P.value.userOptions.buttons.fullscreen,hasAltCopy:P.value.userOptions.buttons.altCopy,isFullscreen:Z.value,isTooltip:U.value.showTooltip,titles:{...P.value.userOptions.buttonTitles},chartElement:j.value,position:P.value.userOptions.position,hasAnnotator:P.value.userOptions.buttons.annotator,isAnnotation:Q.value,callbacks:P.value.userOptions.callbacks,printScale:P.value.userOptions.print.scale,tableDialog:P.value.table.useDialog,isCursorPointer:z.value,onToggleFullscreen:xn,onGeneratePdf:T(rn),onGenerateCsv:bn,onGenerateImage:T(Pn),onGenerateSvg:T(Nn),onToggleTable:Sn,onToggleTooltip:Cn,onToggleAnnotator:wn,onCopyAlt:Fn,style:Le({visibility:T(Yt)?T(qt)?`visible`:`hidden`:`visible`})},Me({_:2},[S(T(a)(t.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),e=>({name:e,fn:E(n=>[C(t.$slots,e,y(v(T(o)(e,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):p(``,!0),h(`div`,Je,[(b(),m(`svg`,{ref_key:`svgRef`,ref:B,xmlns:T(ue),class:Ie({"vue-data-ui-fullscreen--on":Z.value,"vue-data-ui-fulscreen--off":!Z.value}),viewBox:`0 0 ${W.value.width<=0?10:W.value.width} ${W.value.height<=0?10:W.value.height}`,style:Le(`max-width:100%;overflow:visible;background:transparent;color:${F.value.color}`),tabindex:`0`,"aria-describedby":`chart-instructions-${O.value}`,onFocus:In,onBlur:Ln,onKeydown:Rn},[g(T(Et)),t.$slots[`chart-background`]?(b(),m(`foreignObject`,{key:0,x:G.value.left,y:G.value.top,width:Math.max(.1,G.value.width),height:Math.max(.1,G.value.height),style:{pointerEvents:`none`}},[C(t.$slots,`chart-background`,{},void 0,!0)],8,Xe)):p(``,!0),h(`defs`,null,[g(Ee,{t:`linear`,id:`age_pyramid_left_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,L.value.left.color,1],[`100%`,T(ne)(T(ie)(L.value.left.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1]]},null,8,[`id`,`stops`]),g(Ee,{t:`linear`,id:`age_pyramid_right_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,T(ne)(T(ie)(L.value.right.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1],[`100%`,L.value.right.color,1]]},null,8,[`id`,`stops`])]),(b(!0),m(u,null,S(Y.value,(e,t)=>(b(),m(`g`,null,[h(`rect`,{x:e.left.x,y:e.left.y,width:T(c)(e.left.width<=0?1e-4:e.left.width),height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,Ze),h(`rect`,{x:e.left.x,y:e.left.y,width:e.left.width<=0?1e-4:e.left.width,height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:e.left.color,rx:L.value.borderRadius},null,8,Qe),h(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,$e),h(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:e.right.color,rx:L.value.borderRadius},null,8,et)]))),256)),(b(!0),m(u,null,S(Y.value,(e,t)=>(b(),m(`g`,null,[R.value.show?(b(),m(u,{key:0},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(b(),m(`text`,{key:0,x:e.left.x+Math.max(1e-4,e.left.width)-R.value.offsetX-6,y:e.left.y+Math.max(1e-4,e.left.height/2)+L.value.gap/2,"text-anchor":`end`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},w(T(l)(R.value.formatter,e.left.value,T(s)({v:e.left.value}),{datapoint:e.left,seriesIndex:t})),9,tt)):p(``,!0)],64)):p(``,!0),R.value.show?(b(),m(u,{key:1},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(b(),m(`text`,{key:0,x:e.right.x+R.value.offsetX+6,y:e.right.y+Math.max(1e-4,e.right.height/2)+L.value.gap/2,"text-anchor":`start`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},w(T(l)(R.value.formatter,e.right.value,T(s)({v:e.right.value}),{datapoint:e.right,seriesIndex:t})),9,nt)):p(``,!0)],64)):p(``,!0)]))),256)),h(`g`,null,[I.value.sideTitles.show?(b(),m(`g`,rt,[h(`text`,{x:G.value.left,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.left.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`start`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},w(P.value.translations.female),9,it),h(`text`,{x:G.value.right,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.right.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`end`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},w(P.value.translations.male),9,at)])):p(``,!0),I.value.yAxis.show?(b(),m(`g`,ot,[(b(!0),m(u,null,S(dn.value,(e,t)=>(b(),m(u,null,[t%I.value.yAxis.showEvery===0&&(!R.value.show||R.value.showOnHover&&A.value===t||A.value===null)||(R.value.show||R.value.showOnHover)&&A.value===t?(b(),m(`text`,{key:0,x:G.value.centerX,y:G.value.top+G.value.height/J.value/2+G.value.height/J.value*t,"dominant-baseline":`middle`,"text-anchor":`middle`,"font-size":I.value.yAxis.fontSize,fill:I.value.yAxis.color,"font-weight":I.value.yAxis.bold?`bold`:`normal`},w(T(l)(I.value.yAxis.formatter,e,T(s)({v:e}),{datapoint:e,seriesIndex:t})),9,st)):p(``,!0)],64))),256))])):p(``,!0),I.value.xAxis.show?(b(),m(`g`,ct,[F.value.layout.grid.show?(b(),m(`g`,lt,[h(`line`,{x1:K.value.right[0].x,x2:K.value.right.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ut),h(`line`,{x1:K.value.left[0].x,x2:K.value.left.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,dt)])):p(``,!0),(b(!0),m(u,null,S(K.value.right,(e,t)=>(b(),m(`g`,null,[F.value.layout.grid.show?(b(),m(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ft)):p(``,!0)]))),256)),(b(!0),m(u,null,S(K.value.left,(e,t)=>(b(),m(`g`,null,[F.value.layout.grid.show?(b(),m(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,pt)):p(``,!0)]))),256)),h(`g`,{ref_key:`xAxisLabels`,ref:Rt},[(b(!0),m(u,null,S(K.value.right,(e,t)=>(b(),m(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},w(T(l)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,T(s)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,mt))),256)),(b(!0),m(u,null,S(K.value.left,(e,t)=>(b(),m(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},w(T(l)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,T(s)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,ht))),256))],512),h(`text`,{x:G.value.right,y:W.value.height,"text-anchor":`end`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"font-weight":I.value.xAxis.bold?`bold`:`normal`},w(I.value.xAxis.translation),9,gt)])):p(``,!0)]),(b(!0),m(u,null,S(e.dataset,(e,t)=>(b(),m(`g`,null,[h(`rect`,{x:G.value.left,y:G.value.top+G.value.height/J.value*t-L.value.gap/2,width:G.value.width<=0?1e-4:G.value.width,height:G.value.height/J.value<=0?1e-4:G.value.height/J.value,fill:A.value!==null&&A.value===t?T(ne)(F.value.highlighter.color,F.value.highlighter.opacity):`transparent`,onMouseover:n=>yn(t,e,`pointer`),onMouseleave:n=>_n(t,e),onClick:n=>gn(t,e)},null,40,_t)]))),256)),C(t.$slots,`svg`,{svg:{...W.value,drawingArea:G.value,isPrintingImg:T(tn)||T(nn)||T(jn),isPrintingSvg:T(Mn)}},void 0,!0)],46,Ye)),t.$slots.hint?(b(),m(`div`,vt,[C(t.$slots,`hint`,y(v({hint:P.value.a11y.translations.keyboardNavigation,isVisible:Ht.value})),void 0,!0)])):p(``,!0)]),t.$slots.watermark?(b(),m(`div`,yt,[C(t.$slots,`watermark`,y(v({isPrinting:T(tn)||T(nn)||T(jn)||T(Mn)})),void 0,!0)])):p(``,!0),C(t.$slots,`legend`,{legend:Y.value},void 0,!0),t.$slots.source?(b(),m(`div`,{key:6,ref_key:`source`,ref:Pt,dir:`auto`},[C(t.$slots,`source`,{},void 0,!0)],512)):p(``,!0),g(T(bt),{teleportTo:F.value.tooltip.teleportTo,show:U.value.showTooltip&&k.value,backgroundColor:F.value.tooltip.backgroundColor,color:F.value.tooltip.color,borderRadius:F.value.tooltip.borderRadius,borderColor:F.value.tooltip.borderColor,borderWidth:F.value.tooltip.borderWidth,fontSize:F.value.tooltip.fontSize,backgroundOpacity:F.value.tooltip.backgroundOpacity,position:F.value.tooltip.position,offsetX:F.value.tooltip.offsetX,offsetY:F.value.tooltip.offsetY,parent:j.value,content:jt.value,isFullscreen:Z.value,isCustom:F.value.tooltip.customFormat&&typeof F.value.tooltip.customFormat==`function`,smooth:F.value.tooltip.smooth,backdropFilter:F.value.tooltip.backdropFilter,smoothForce:F.value.tooltip.smoothForce,smoothSnapThreshold:F.value.tooltip.smoothSnapThreshold,isA11yMode:N.value===`keyboard`,a11yPosition:Vt.value},{"tooltip-before":E(()=>[C(t.$slots,`tooltip-before`,y(v({...mn.value})),void 0,!0)]),tooltip:E(()=>[C(t.$slots,`tooltip`,y(v({...mn.value})),void 0,!0)]),"tooltip-after":E(()=>[C(t.$slots,`tooltip-after`,y(v({...mn.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`]),At.value&&P.value.userOptions.buttons.table?(b(),f(Be($.value.component),Pe({key:7},$.value.props,{ref_key:`tableUnit`,ref:zt,onClose:On}),Me({content:E(()=>[(b(),f(T(Ct),{key:`table_${Lt.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:P.value.table.useDialog?``:$.value.title,withCloseButton:!P.value.table.useDialog,isCursorPointer:z.value,onClose:On},{th:E(({th:e})=>[Ne(w(e),1)]),td:E(({td:e})=>[Ne(w(e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[P.value.table.useDialog?{name:`title`,fn:E(()=>[Ne(w($.value.title),1)]),key:`0`}:void 0,P.value.table.useDialog?{name:`actions`,fn:E(()=>[h(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:n[0]||=e=>bn(P.value.userOptions.callbacks.csv),style:Le({cursor:z.value?`pointer`:`default`})},[g(T(xt),{name:`fileCsv`,stroke:$.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):p(``,!0),C(t.$slots,`skeleton`,{},()=>[T(Wt)?(b(),f(ve,{key:0})):p(``,!0)],!0)],46,Ke))}},[[`__scopeId`,`data-v-ce0de65b`]]);export{Ge as n,bt as t};
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,t as n}from"./tableIntegration-CNoJ1CIY.js";import{n as r,t as i}from"./annotationSlots-BRR85CqJ.js";import{n as a,t as o}from"./userOptionsSlots-DYuo-E5m.js";import{$ as s,D as ee,Dt as te,Jt as ne,X as re,Yt as ie,at as ae,b as c,et as oe,i as l,in as se,nt as ce,pt as le,t as ue,tn as de,zt as fe}from"./lib-CV_IANZ6.js";import{n as pe,t as me}from"./useHints-BH9r_0Vd.js";import{t as he}from"./useConfig-CKdzPrcf.js";import{t as ge}from"./usePrinter-hLW3cv4N.js";import{n as _e,t as ve}from"./BaseScanner-8NdoBs7B.js";import{t as ye}from"./useChartExport-DtPNpc9M.js";import{t as be}from"./useTimeLabelCollider-XQf_S7-z.js";import{t as xe}from"./img-DiT4ivZ5.js";import{n as Se}from"./Title-BGYFqulv.js";import{t as Ce}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{l as we,t as Te}from"./useResponsive-D2CPcpda.js";import{t as Ee}from"./DefGrad-DKMq1REY.js";import{t as De}from"./A11yDataTable-DWNlWXzs.js";import{t as Oe}from"./resolveChartConfig-DZg-korK.js";import{t as ke}from"./useUserOptionState-CXlFnwPv.js";import{t as Ae}from"./useChartAccessibility-DOMuYJfm.js";import{t as je}from"./vue_ui_age_pyramid-CL0Ef8Ov.js";import{Fragment as u,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createSlots as Me,createTextVNode as Ne,createVNode as g,defineAsyncComponent as _,guardReactiveProps as v,mergeProps as Pe,nextTick as Fe,normalizeClass as Ie,normalizeProps as y,normalizeStyle as Le,onBeforeUnmount as Re,onMounted as ze,openBlock as b,ref as x,renderList as S,renderSlot as C,resolveDynamicComponent as Be,shallowRef as Ve,toDisplayString as w,toRefs as He,unref as T,watch as Ue,watchEffect as We,withCtx as E}from"vue";var Ge=/* @__PURE__ */ e({default:()=>bt}),Ke=[`id`],qe=[`id`],Je={style:{position:`relative`}},Ye=[`xmlns`,`viewBox`,`aria-describedby`],Xe=[`x`,`y`,`width`,`height`],Ze=[`x`,`y`,`width`,`height`,`fill`,`rx`],Qe=[`x`,`y`,`width`,`height`,`fill`,`rx`],$e=[`x`,`y`,`width`,`height`,`fill`,`rx`],et=[`x`,`y`,`width`,`height`,`fill`,`rx`],tt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],nt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],rt={key:0},it=[`x`,`y`,`fill`,`font-size`,`font-weight`],at=[`x`,`y`,`fill`,`font-size`,`font-weight`],ot={key:1},st=[`x`,`y`,`font-size`,`fill`,`font-weight`],ct={key:2},lt={key:0},ut=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],dt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ft=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],pt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],mt=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],ht=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],gt=[`x`,`y`,`font-size`,`fill`,`font-weight`],_t=[`x`,`y`,`width`,`height`,`fill`,`onMouseover`,`onMouseleave`,`onClick`],vt={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},yt={key:5,class:`vue-data-ui-watermark`},bt=/*#__PURE__*/ Ce({__name:`vue-ui-age-pyramid`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`copyAlt`],setup(e,{expose:Ce,emit:Ge}){let bt=_(()=>import(`./Tooltip-Cus2-XNQ.js`)),xt=_(()=>import(`./BaseIcon-DdIyewwY.js`).then(e=>e.n)),St=_(()=>import(`./vue-ui-accordion-BNvevckx.js`).then(e=>e.n)),Ct=_(()=>import(`./DataTable-WNecJMcY.js`)),wt=_(()=>import(`./PenAndPaper-IMw576MC.js`).then(e=>e.t)),Tt=_(()=>import(`./UserOptions-DTxMeZv3.js`).then(e=>e.n)),Et=_(()=>import(`./PackageVersion-CdkxOy58.js`).then(e=>e.t)),Dt=_(()=>import(`./BaseDraggableDialog-D_tuHEjO.js`).then(e=>e.n)),{vue_ui_age_pyramid:Ot}=he(),D=e,kt=Ge,At=d(()=>!!D.dataset&&D.dataset.length),O=x(re()),k=x(!1),jt=x(``),A=x(null),Mt=x(0),j=x(null),Nt=x(null),Pt=x(null),Ft=x(null),It=x(0),Lt=x(0),Rt=x(null),zt=x(null),Bt=x(null),M=x(null),Vt=x({x:0,y:0}),N=x(`pointer`),Ht=x(!1),P=x(Xt()),F=d(()=>P.value.style),I=d(()=>P.value.style.layout.dataLabels),L=d(()=>P.value.style.layout.bars),R=d(()=>P.value.style.layout.bars.labels);pe({config:()=>P.value,dataset:()=>D.dataset,component:`VueUiAgePyramid`,rules:[me.emptyArray,{test:e=>e.length>130,message:[`👀 Dataset has > 130 points. Consider:`,``,`▶️ Grouping small values into aggregated categories.`,``,`▶️ Using VueUiStackline to display data in a more compact way.`]}]});let z=d(()=>P.value.userOptions.useCursorPointer),Ut=d(()=>se({defaultConfig:{userOptions:{show:!1},table:{show:!1},translations:{male:``,female:``},style:{backgroundColor:`#99999930`,layout:{bars:{left:{color:`#CACACA`},right:{color:`#999999`}},dataLabels:{xAxis:{fontSize:0,scale:1e3,translation:``},yAxis:{show:!1}},grid:{stroke:`#6A6A6A`}}}},userConfig:P.value.skeletonConfig??{}})),{loading:Wt,FINAL_DATASET:Gt,manualLoading:Kt}=_e({...He(D),FINAL_CONFIG:P,prepareConfig:Xt,skeletonDataset:D.config?.skeletonDataset??[[`_`,9,2,2],[`_`,8,3,3],[`_`,7,5,5],[`_`,6,8,8],[`_`,5,13,13],[`_`,4,21,21],[`_`,3,34,34],[`_`,2,55,55],[`_`,1,89,89],[`_`,0,144,144]],skeletonConfig:se({defaultConfig:P.value,userConfig:Ut.value})}),{userOptionsVisible:qt,setUserOptionsVisibility:Jt,keepUserOptionState:Yt}=ke({config:P.value}),{svgRef:B}=Ae({config:P.value.style.title});function Xt(){return Oe(D.config,Ot,je)}function Zt(e){let t=oe(e);return t?.style?.chart&&delete t.style.tooltip,JSON.stringify(t)}let Qt=Zt(D.config);Ue(()=>D.config,(e,t)=>{let n=Zt(e),r=n!==Qt;Qt=n;let i=Xt();if(!r){P.value.style.tooltip=i.style.tooltip,U.value.showTooltip=P.value.style.tooltip.show;return}Wt.value||(P.value=i),qt.value=!P.value.userOptions.showOnChartHover,en(),It.value+=1,Lt.value+=1,U.value.showTable=P.value.table.show,U.value.showTooltip=P.value.style.tooltip.show},{deep:!0}),Ue(()=>D.dataset,e=>{Array.isArray(e)&&e.length>0&&(Kt.value=!1)},{deep:!0});let V=Ve(null),H=Ve(null);ze(()=>{en()});let $t=d(()=>P.value.debug);function en(){if(fe(D.dataset)&&(ae({componentName:`VueUiAgePyramid`,type:`dataset`,debug:$t.value}),Kt.value=!0),fe(D.dataset)||(Kt.value=P.value.loading),P.value.responsive){let e=we(()=>{let{width:e,height:t}=Te({chart:j.value,title:F.value.title.text?Nt.value:null,source:Pt.value,noTitle:Ft.value});requestAnimationFrame(()=>{W.value.width=e,W.value.height=t})});V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect()),V.value=new ResizeObserver(e),H.value=j.value.parentNode,V.value.observe(H.value)}}Re(()=>{V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect())});let{isPrinting:tn,isImaging:nn,generatePdf:rn,generateImage:an}=ge({elementId:`vue-ui-age-pyramid_${O.value}`,fileName:F.value.title.text||`vue-ui-age-pyramid`,options:P.value.userOptions.print}),on=d(()=>P.value.userOptions.show&&!F.value.title.text),U=x({showTable:P.value.table.show,showTooltip:F.value.tooltip.show});Ue(P,()=>{U.value={showTable:P.value.table.show,showTooltip:F.value.tooltip.show}},{immediate:!0});let W=x({height:F.value.height,width:F.value.width}),sn=d(()=>W.value.width),cn=d(()=>W.value.height),ln=x(0),un=we(e=>{ln.value=e},100);We(e=>{let t=Rt.value;if(!t)return;let n=new ResizeObserver(e=>{un(e[0].contentRect.height)});n.observe(t),e(()=>n.disconnect())}),Re(()=>{ln.value=0});let G=d(()=>{let e=W.value.width-F.value.layout.padding.right-F.value.layout.padding.left,t=F.value.layout.padding.left,n=W.value.width-F.value.layout.padding.right;return{top:F.value.layout.padding.top+I.value.sideTitles.fontSize+I.value.sideTitles.offsetY+12,left:t,right:n,bottom:W.value.height-F.value.layout.padding.bottom-ln.value,width:e,height:W.value.height-F.value.layout.padding.top-F.value.layout.padding.bottom-ln.value-I.value.sideTitles.fontSize-I.value.sideTitles.offsetY-12,centerX:F.value.layout.padding.left+e/2,leftChart:{width:e/2-F.value.layout.centerSlit.width,right:t+e/2-F.value.layout.centerSlit.width},rightChart:{width:e/2-F.value.layout.centerSlit.width,left:t+e/2+F.value.layout.centerSlit.width}}}),dn=d(()=>Gt.value.map(e=>I.value.yAxis.display===`age`?e[1]:e[0])),K=d(()=>{let e=fn(q.value/5),t=[],n=[];for(let r=0;r<=5;r+=1){let i=e*r,a=e*(r-5);t.push({value:i,x:G.value.left+G.value.width/2+F.value.layout.centerSlit.width+i/q.value*G.value.leftChart.width}),n.push({value:Math.abs(a),x:G.value.left+G.value.width/2+a/q.value*G.value.leftChart.width-F.value.layout.centerSlit.width})}return{right:t,left:n}});function fn(e){if(e===0)return 0;let t=10**Math.floor(Math.log10(Math.abs(e))),n;return n=Math.round(e/t)*t,n}let q=d(()=>Math.max(...Gt.value.flatMap(e=>e.slice(-2).map(e=>c(e))))),J=d(()=>Gt.value.length),pn=d(()=>Gt.value.map(e=>({segment:e[0],age:e[1],left:{value:e[2],proportionToMax:e[2]/q.value},right:{value:e[3],proportionToMax:e[3]/q.value}}))),Y=d(()=>pn.value.map((e,t)=>{let n=G.value.top+G.value.height/J.value*t,r=G.value.height/J.value-L.value.gap;return{segment:e.segment,age:e.age,left:{...e.left,y:n,color:L.value.left.color,x:G.value.leftChart.right-e.left.proportionToMax*G.value.leftChart.width,width:c(e.left.proportionToMax*G.value.leftChart.width),height:r},right:{...e.right,y:n,color:L.value.right.color,x:G.value.rightChart.left,width:c(e.right.proportionToMax*G.value.rightChart.width),height:r}}})),mn=x(null);function hn(e){let[t,n,r,i]=e;return{segment:t,index:n,left:r,right:i}}function gn(e,t){P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:hn(t),seriesIndex:e})}function _n(e,t){P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:hn(t),seriesIndex:e}),(N.value!==`keyboard`||M.value!==e)&&(A.value=null,k.value=!1)}function vn(e){if(!B.value)return;let t=Y.value[e];if(!t)return;let n=de(G.value.left+G.value.width/2,t.left.y+t.left.height/2,B.value);n&&(Vt.value=n)}function yn(e,t,n=`pointer`){P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:hn(t),seriesIndex:e}),A.value=e,M.value=e,N.value=n,mn.value={datapoint:t,seriesIndex:e,series:Y.value,config:P.value};let r=F.value.tooltip.customFormat;if(te(r)&&le(()=>r({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value})))jt.value=r({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value});else{let n=``,r=Y.value[e];n+=`<div><b>${r.segment}</b></div>`,n+=`<div>${P.value.translations.age}: ${l(I.value.yAxis.formatter,c(r.age),s({v:c(r.age)}),{datapoint:t,seriesIndex:e})}</div>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}">`,n+=`<div style="display:flex; flex-direction:row;gap:12px">`,n+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:L.value.left.color}"/></svg><div>${P.value.translations.female}</div><div><b>${l(I.value.xAxis.formatter,c(r.left.value),s({v:c(r.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:L.value.right.color}"/></svg><div>${P.value.translations.male}</div><div><b>${l(I.value.xAxis.formatter,c(r.right.value),s({v:c(r.right.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`</div>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}"><div>${P.value.translations.total}</div><div><b>${l(I.value.xAxis.formatter,c(r.right.value)+c(r.left.value),s({v:c(r.right.value)+c(r.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`</div>`,jt.value=`<div>${n}</div>`}k.value=!0,n===`keyboard`&&Fe(()=>{vn(e)})}function bn(e=null){Fe(()=>{let t=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total],n=D.dataset.map(e=>[e[0],e[1],e[2],e[3],e[2]??0+e[3]??0]),r=[[F.value.title.text],[F.value.title.subtitle.text],[[``],[``],[``]],t].concat(n),i=ee(r);e?e(i):ce({csvContent:i,title:F.value.title.text||`vue-ui-heatmap`})})}let X=d(()=>{let e=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total];return{head:e,body:D.dataset.map(e=>[e[0],e[1],e[2]==null?``:e[2].toLocaleString(),e[3]==null?``:e[3].toLocaleString(),(e[2]??0+e[3]??0).toLocaleString()]),config:{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},colNames:e}}),Z=x(!1);function xn(e){Z.value=e,Mt.value+=1}function Sn(){U.value.showTable=!U.value.showTable}function Cn(){U.value.showTooltip=!U.value.showTooltip}let Q=x(!1);function wn(){Q.value=!Q.value}async function Tn({scale:e=2}={}){if(!j.value)return;let{width:t,height:n}=j.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await xe({domElement:j.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:F.value.title.text,width:t,height:n,aspectRatio:r}}let En=x([]),Dn=x({start:0,end:Y.value.length});be({timeLabelsEls:Rt,timeLabels:En,slicer:Dn,configRef:P,rotationPath:[`style`,`layout`,`dataLabels`,`xAxis`,`rotation`],autoRotatePath:[`style`,`layout`,`dataLabels`,`xAxis`,`autoRotate`,`enable`],isAutoSize:!1,width:sn,height:cn,targetClass:`.vue-ui-age-pyramid-x-axis-label`,rotation:F.value.layout.dataLabels.xAxis.autoRotate.angle});let $=d(()=>n({config:P,style:F,mutableConfig:U,dialog:Dt,accordion:St,isFullscreen:Z,parent:j,maxWidth:800,isCursorPointer:z}));Ue(()=>U.value.showTable,e=>t(e,P,zt));function On(){U.value.showTable=!1,Bt.value&&Bt.value.setTableIconState(!1)}let kn=d(()=>P.value.style.backgroundColor),An=d(()=>P.value.style.title),{isCallbackImaging:jn,isCallbackSvg:Mn,generateSvg:Nn,onGenerateImage:Pn}=ye({svg:B,title:An,legend:null,legendItems:null,backgroundColor:kn,getSvgCallback:()=>P.value.userOptions.callbacks.svg,generateImage:an});async function Fn(){if(kt(`copyAlt`,{config:P.value,dataset:Y.value}),!P.value.userOptions.callbacks.altCopy){console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");return}await Promise.resolve(P.value.userOptions.callbacks.altCopy({config:P.value,dataset:Y.value}))}function In(){Ht.value=!0}function Ln(){A.value=null,M.value=null,N.value=`pointer`,k.value=!1,Ht.value=!1}function Rn(e){if(!B.value||Q.value||document.activeElement!==B.value||!Y.value.length)return;let t=[`ArrowUp`,`ArrowLeft`].includes(e.key),n=[`ArrowDown`,`ArrowRight`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){A.value=null,M.value=null,N.value=`pointer`,k.value=!1;return}if(r){if(M.value===null)return;let e=D.dataset[M.value];if(!e)return;gn(M.value,e);return}let a=M.value,o=A.value,s=a!==null&&a>=0&&a<Y.value.length,ee=o!==null&&o>=0&&o<Y.value.length;s?t?a=a-1<0?Y.value.length-1:a-1:n&&(a=a+1>Y.value.length-1?0:a+1):ee?(a=n?o+1:o-1,a>=Y.value.length&&(a=0),a<0&&(a=Y.value.length-1)):a=n?0:Y.value.length-1;let te=D.dataset[a];te&&yn(a,te,`keyboard`)}return Ce({getImage:Tn,generatePdf:rn,generateCsv:bn,generateImage:an,generateSvg:Nn,toggleTable:Sn,toggleTooltip:Cn,toggleAnnotator:wn,toggleFullscreen:xn,copyAlt:Fn}),(t,n)=>(b(),m(`div`,{class:Ie(`vue-data-ui-component vue-ui-age-pyramid ${Z.value?`vue-data-ui-wrapper-fullscreen`:``}`),ref_key:`agePyramid`,ref:j,id:`vue-ui-age-pyramid_${O.value}`,style:Le(`font-family:${F.value.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor};${P.value.responsive?`height:100%`:``}`),onMouseenter:n[1]||=()=>T(Jt)(!0),onMouseleave:n[2]||=()=>T(Jt)(!1)},[h(`div`,{id:`chart-instructions-${O.value}`,class:`sr-only`},[h(`p`,null,w(P.value.a11y.translations.keyboardNavigation),1)],8,qe),X.value?.body?.length?(b(),f(De,{key:0,uid:O.value,head:X.value.head,body:X.value.body,notice:P.value.a11y.translations.tableAvailable,caption:P.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):p(``,!0),P.value.userOptions.buttons.annotator?(b(),f(T(wt),{key:1,svgRef:T(B),backgroundColor:F.value.backgroundColor,color:F.value.color,active:Q.value,isCursorPointer:z.value,palette:P.value.userOptions.annotatorPalette,onClose:wn},Me({_:2},[S(T(i),e=>({name:e,fn:E(n=>[C(t.$slots,e,y(v(T(r)(e,n))),void 0,!0)])}))]),1032,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):p(``,!0),on.value?(b(),m(`div`,{key:2,ref_key:`noTitle`,ref:Ft,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):p(``,!0),F.value.title.text?(b(),m(`div`,{key:3,ref_key:`chartTitle`,ref:Nt,style:`width:100%;background:transparent`},[(b(),f(Se,{key:`title_${It.value}`,config:{title:{cy:`pyramid-div-title`,...F.value.title},subtitle:{cy:`pyramid-div-subtitle`,...F.value.title.subtitle}}},null,8,[`config`]))],512)):p(``,!0),P.value.userOptions.show&&At.value&&(T(Yt)||T(qt))?(b(),f(T(Tt),{ref_key:`userOptionsRef`,ref:Bt,key:`user_options_${Mt.value}`,backgroundColor:F.value.backgroundColor,color:F.value.color,isImaging:T(nn),isPrinting:T(tn),uid:O.value,hasTooltip:P.value.userOptions.buttons.tooltip&&F.value.tooltip.show,hasPdf:P.value.userOptions.buttons.pdf,hasXls:P.value.userOptions.buttons.csv,hasImg:P.value.userOptions.buttons.img,hasSvg:P.value.userOptions.buttons.svg,hasTable:P.value.userOptions.buttons.table,hasFullscreen:P.value.userOptions.buttons.fullscreen,hasAltCopy:P.value.userOptions.buttons.altCopy,isFullscreen:Z.value,isTooltip:U.value.showTooltip,titles:{...P.value.userOptions.buttonTitles},chartElement:j.value,position:P.value.userOptions.position,hasAnnotator:P.value.userOptions.buttons.annotator,isAnnotation:Q.value,callbacks:P.value.userOptions.callbacks,printScale:P.value.userOptions.print.scale,tableDialog:P.value.table.useDialog,isCursorPointer:z.value,onToggleFullscreen:xn,onGeneratePdf:T(rn),onGenerateCsv:bn,onGenerateImage:T(Pn),onGenerateSvg:T(Nn),onToggleTable:Sn,onToggleTooltip:Cn,onToggleAnnotator:wn,onCopyAlt:Fn,style:Le({visibility:T(Yt)?T(qt)?`visible`:`hidden`:`visible`})},Me({_:2},[S(T(a)(t.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),e=>({name:e,fn:E(n=>[C(t.$slots,e,y(v(T(o)(e,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):p(``,!0),h(`div`,Je,[(b(),m(`svg`,{ref_key:`svgRef`,ref:B,xmlns:T(ue),class:Ie({"vue-data-ui-fullscreen--on":Z.value,"vue-data-ui-fulscreen--off":!Z.value}),viewBox:`0 0 ${W.value.width<=0?10:W.value.width} ${W.value.height<=0?10:W.value.height}`,style:Le(`max-width:100%;overflow:visible;background:transparent;color:${F.value.color}`),tabindex:`0`,"aria-describedby":`chart-instructions-${O.value}`,onFocus:In,onBlur:Ln,onKeydown:Rn},[g(T(Et)),t.$slots[`chart-background`]?(b(),m(`foreignObject`,{key:0,x:G.value.left,y:G.value.top,width:Math.max(.1,G.value.width),height:Math.max(.1,G.value.height),style:{pointerEvents:`none`}},[C(t.$slots,`chart-background`,{},void 0,!0)],8,Xe)):p(``,!0),h(`defs`,null,[g(Ee,{t:`linear`,id:`age_pyramid_left_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,L.value.left.color,1],[`100%`,T(ne)(T(ie)(L.value.left.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1]]},null,8,[`id`,`stops`]),g(Ee,{t:`linear`,id:`age_pyramid_right_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,T(ne)(T(ie)(L.value.right.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1],[`100%`,L.value.right.color,1]]},null,8,[`id`,`stops`])]),(b(!0),m(u,null,S(Y.value,(e,t)=>(b(),m(`g`,null,[h(`rect`,{x:e.left.x,y:e.left.y,width:T(c)(e.left.width<=0?1e-4:e.left.width),height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,Ze),h(`rect`,{x:e.left.x,y:e.left.y,width:e.left.width<=0?1e-4:e.left.width,height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:e.left.color,rx:L.value.borderRadius},null,8,Qe),h(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,$e),h(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:e.right.color,rx:L.value.borderRadius},null,8,et)]))),256)),(b(!0),m(u,null,S(Y.value,(e,t)=>(b(),m(`g`,null,[R.value.show?(b(),m(u,{key:0},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(b(),m(`text`,{key:0,x:e.left.x+Math.max(1e-4,e.left.width)-R.value.offsetX-6,y:e.left.y+Math.max(1e-4,e.left.height/2)+L.value.gap/2,"text-anchor":`end`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},w(T(l)(R.value.formatter,e.left.value,T(s)({v:e.left.value}),{datapoint:e.left,seriesIndex:t})),9,tt)):p(``,!0)],64)):p(``,!0),R.value.show?(b(),m(u,{key:1},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(b(),m(`text`,{key:0,x:e.right.x+R.value.offsetX+6,y:e.right.y+Math.max(1e-4,e.right.height/2)+L.value.gap/2,"text-anchor":`start`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},w(T(l)(R.value.formatter,e.right.value,T(s)({v:e.right.value}),{datapoint:e.right,seriesIndex:t})),9,nt)):p(``,!0)],64)):p(``,!0)]))),256)),h(`g`,null,[I.value.sideTitles.show?(b(),m(`g`,rt,[h(`text`,{x:G.value.left,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.left.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`start`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},w(P.value.translations.female),9,it),h(`text`,{x:G.value.right,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.right.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`end`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},w(P.value.translations.male),9,at)])):p(``,!0),I.value.yAxis.show?(b(),m(`g`,ot,[(b(!0),m(u,null,S(dn.value,(e,t)=>(b(),m(u,null,[t%I.value.yAxis.showEvery===0&&(!R.value.show||R.value.showOnHover&&A.value===t||A.value===null)||(R.value.show||R.value.showOnHover)&&A.value===t?(b(),m(`text`,{key:0,x:G.value.centerX,y:G.value.top+G.value.height/J.value/2+G.value.height/J.value*t,"dominant-baseline":`middle`,"text-anchor":`middle`,"font-size":I.value.yAxis.fontSize,fill:I.value.yAxis.color,"font-weight":I.value.yAxis.bold?`bold`:`normal`},w(T(l)(I.value.yAxis.formatter,e,T(s)({v:e}),{datapoint:e,seriesIndex:t})),9,st)):p(``,!0)],64))),256))])):p(``,!0),I.value.xAxis.show?(b(),m(`g`,ct,[F.value.layout.grid.show?(b(),m(`g`,lt,[h(`line`,{x1:K.value.right[0].x,x2:K.value.right.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ut),h(`line`,{x1:K.value.left[0].x,x2:K.value.left.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,dt)])):p(``,!0),(b(!0),m(u,null,S(K.value.right,(e,t)=>(b(),m(`g`,null,[F.value.layout.grid.show?(b(),m(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ft)):p(``,!0)]))),256)),(b(!0),m(u,null,S(K.value.left,(e,t)=>(b(),m(`g`,null,[F.value.layout.grid.show?(b(),m(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,pt)):p(``,!0)]))),256)),h(`g`,{ref_key:`xAxisLabels`,ref:Rt},[(b(!0),m(u,null,S(K.value.right,(e,t)=>(b(),m(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},w(T(l)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,T(s)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,mt))),256)),(b(!0),m(u,null,S(K.value.left,(e,t)=>(b(),m(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},w(T(l)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,T(s)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,ht))),256))],512),h(`text`,{x:G.value.right,y:W.value.height,"text-anchor":`end`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"font-weight":I.value.xAxis.bold?`bold`:`normal`},w(I.value.xAxis.translation),9,gt)])):p(``,!0)]),(b(!0),m(u,null,S(e.dataset,(e,t)=>(b(),m(`g`,null,[h(`rect`,{x:G.value.left,y:G.value.top+G.value.height/J.value*t-L.value.gap/2,width:G.value.width<=0?1e-4:G.value.width,height:G.value.height/J.value<=0?1e-4:G.value.height/J.value,fill:A.value!==null&&A.value===t?T(ne)(F.value.highlighter.color,F.value.highlighter.opacity):`transparent`,onMouseover:n=>yn(t,e,`pointer`),onMouseleave:n=>_n(t,e),onClick:n=>gn(t,e)},null,40,_t)]))),256)),C(t.$slots,`svg`,{svg:{...W.value,drawingArea:G.value,isPrintingImg:T(tn)||T(nn)||T(jn),isPrintingSvg:T(Mn)}},void 0,!0)],46,Ye)),t.$slots.hint?(b(),m(`div`,vt,[C(t.$slots,`hint`,y(v({hint:P.value.a11y.translations.keyboardNavigation,isVisible:Ht.value})),void 0,!0)])):p(``,!0)]),t.$slots.watermark?(b(),m(`div`,yt,[C(t.$slots,`watermark`,y(v({isPrinting:T(tn)||T(nn)||T(jn)||T(Mn)})),void 0,!0)])):p(``,!0),C(t.$slots,`legend`,{legend:Y.value},void 0,!0),t.$slots.source?(b(),m(`div`,{key:6,ref_key:`source`,ref:Pt,dir:`auto`},[C(t.$slots,`source`,{},void 0,!0)],512)):p(``,!0),g(T(bt),{teleportTo:F.value.tooltip.teleportTo,show:U.value.showTooltip&&k.value,backgroundColor:F.value.tooltip.backgroundColor,color:F.value.tooltip.color,borderRadius:F.value.tooltip.borderRadius,borderColor:F.value.tooltip.borderColor,borderWidth:F.value.tooltip.borderWidth,fontSize:F.value.tooltip.fontSize,backgroundOpacity:F.value.tooltip.backgroundOpacity,position:F.value.tooltip.position,offsetX:F.value.tooltip.offsetX,offsetY:F.value.tooltip.offsetY,parent:j.value,content:jt.value,isFullscreen:Z.value,isCustom:F.value.tooltip.customFormat&&typeof F.value.tooltip.customFormat==`function`,smooth:F.value.tooltip.smooth,backdropFilter:F.value.tooltip.backdropFilter,smoothForce:F.value.tooltip.smoothForce,smoothSnapThreshold:F.value.tooltip.smoothSnapThreshold,isA11yMode:N.value===`keyboard`,a11yPosition:Vt.value},{"tooltip-before":E(()=>[C(t.$slots,`tooltip-before`,y(v({...mn.value})),void 0,!0)]),tooltip:E(()=>[C(t.$slots,`tooltip`,y(v({...mn.value})),void 0,!0)]),"tooltip-after":E(()=>[C(t.$slots,`tooltip-after`,y(v({...mn.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`]),At.value&&P.value.userOptions.buttons.table?(b(),f(Be($.value.component),Pe({key:7},$.value.props,{ref_key:`tableUnit`,ref:zt,onClose:On}),Me({content:E(()=>[(b(),f(T(Ct),{key:`table_${Lt.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:P.value.table.useDialog?``:$.value.title,withCloseButton:!P.value.table.useDialog,isCursorPointer:z.value,onClose:On},{th:E(({th:e})=>[Ne(w(e),1)]),td:E(({td:e})=>[Ne(w(e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[P.value.table.useDialog?{name:`title`,fn:E(()=>[Ne(w($.value.title),1)]),key:`0`}:void 0,P.value.table.useDialog?{name:`actions`,fn:E(()=>[h(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:n[0]||=e=>bn(P.value.userOptions.callbacks.csv),style:Le({cursor:z.value?`pointer`:`default`})},[g(T(xt),{name:`fileCsv`,stroke:$.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):p(``,!0),C(t.$slots,`skeleton`,{},()=>[T(Wt)?(b(),f(ve,{key:0})):p(``,!0)],!0)],46,Ke))}},[[`__scopeId`,`data-v-ce0de65b`]]);export{Ge as n,bt as t};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{C as t,Vt as n,X as r,in as i}from"./lib-zDxoqrgo.js";import{n as a,t as o}from"./useHints-BH9r_0Vd.js";import{t as s}from"./useConfig-CKdzPrcf.js";import{t as c}from"./usePrinter-CnyKPIFM.js";import{t as l}from"./dom-to-png-Cp3WLHmJ.js";import{t as ee}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as u}from"./BaseIcon-Cz30ODFA.js";import{t as te}from"./vue-ui-accordion-Dy5OVFKr.js";import{t as ne}from"./ColorPicker-CUjEw53A.js";import{Fragment as re,Teleport as ie,computed as ae,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createTextVNode as h,createVNode as oe,guardReactiveProps as se,nextTick as ce,normalizeClass as g,normalizeProps as le,normalizeStyle as _,onBeforeUnmount as ue,onMounted as de,openBlock as v,ref as y,renderList as fe,renderSlot as b,toDisplayString as x,unref as pe,vModelCheckbox as me,vModelText as he,watch as ge,withCtx as S,withDirectives as _e,withModifiers as ve}from"vue";function ye(e){let t=t=>e.isMacLike.value?t.metaKey:t.ctrlKey,n=e=>{let t=e;if(!t)return!1;let n=(t.tagName||``).toLowerCase();return t.isContentEditable||n===`input`||n===`textarea`||n===`select`},r=t=>!!(!e.isSummaryOpen.value||n(t.target)||e.isWriting.value),i=()=>{e.isDeleteMode.value=!1,e.isMoveMode.value=!1,e.isResizeMode.value=!1,e.isSelectMode.value=!1,e.isDrawMode.value=!1,e.isTextMode.value=!1,e.activeShape.value=void 0,e.showCaret.value=!1},a=t=>{switch(i(),t){case`m`:e.isMoveMode.value=!0;break;case`r`:e.isResizeMode.value=!0;break;case`d`:e.isDeleteMode.value=!0;break;case`g`:e.isSelectMode.value=!0,e.setShapeTo(`group`),e.activeShape.value=`group`;break;case`t`:e.isTextMode.value=!0,e.isWriting.value=!1,e.showCaret.value=!1}},o=t=>{switch(t){case`c`:e.setShapeTo(`circle`);break;case`s`:e.setShapeTo(`rect`);break;case`a`:e.setShapeTo(`arrow`);break;case`l`:e.setShapeTo(`line`)}},s=(t,n)=>{let r=e.lastSelectedShape.value;if(!r)return;let i=(e,t)=>{typeof r[e]==`number`&&(r[e]+=t)};switch(r.type){case`rect`:case`circle`:case`text`:i(`x`,t),i(`y`,n);break;case`arrow`:i(`x`,t),i(`y`,n),i(`endX`,t),i(`endY`,n)}},c=()=>{let t=e.lastSelectedShape.value;t&&(e.shapes.value=e.shapes.value.filter(e=>e.id!==t.id),e.lastSelectedShape.value=void 0)},l=!1,ee=null,u=()=>{l||(l=!0,e.history?.value?.begin?.(`nudge`))},te=()=>{l&&(clearTimeout(ee),ee=setTimeout(()=>{l=!1,e.history?.value?.end?.()},160))},ne=()=>{clearTimeout(ee),l&&e.history?.value?.end?.(),l=!1},re=n=>{if(t(n)&&!n.shiftKey&&n.key.toLowerCase()===`z`){if(r(n))return;n.preventDefault(),e.undoLastShape?.();return}if(t(n)&&n.shiftKey&&n.key.toLowerCase()===`z`||t(n)&&n.key.toLowerCase()===`y`){if(r(n))return;n.preventDefault(),typeof e.redoLastShape==`function`?e.redoLastShape():e.history?.value?.redo?.();return}if(r(n))return;let l=n.key.toLowerCase();if(l===`escape`){n.preventDefault(),i();return}if(l===`delete`||l===`backspace`){n.preventDefault(),c();return}if([`m`,`r`,`d`,`g`,`t`].includes(l)){n.preventDefault(),a(l);return}if([`c`,`a`,`l`,`s`].includes(l)){n.preventDefault(),o(l);return}if(n.key===`ArrowUp`||n.key===`ArrowDown`||n.key===`ArrowLeft`||n.key===`ArrowRight`){n.preventDefault(),u();let e=n.shiftKey?10:1;n.key===`ArrowUp`&&s(0,-e),n.key===`ArrowDown`&&s(0,e),n.key===`ArrowLeft`&&s(-e,0),n.key===`ArrowRight`&&s(e,0),te()}},ie=e=>{e.key.startsWith(`Arrow`)&&te()};return window.addEventListener(`keydown`,re),window.addEventListener(`keyup`,ie),function(){window.removeEventListener(`keydown`,re),window.removeEventListener(`keyup`,ie),ne()}}var be={class:`teleport-tooltip__inner`},C=/*#__PURE__*/ ee({__name:`TeleportedTooltip`,props:{show:{type:Boolean,default:!1},x:{type:Number,required:!0},y:{type:Number,required:!0},placement:{type:String,default:`top`},styleObject:{type:Object,default(){return{}}},delay:{type:Number,default:0},delayIn:{type:Number,default:300},delayOut:{type:Number,default:0}},setup(e){let t=e,n=ae(()=>t.delayIn??t.delay),r=ae(()=>t.delayOut??t.delay),i=y(!1),a=null,o=null;function s(){a&&=(clearTimeout(a),null),o&&=(clearTimeout(o),null)}function c(){s();let e=Math.max(0,n.value||0);e===0?i.value=!0:a=setTimeout(()=>{i.value=!0,a=null},e)}function l(){s();let e=Math.max(0,r.value||0);e===0?i.value=!1:o=setTimeout(()=>{i.value=!1,o=null},e)}ge(()=>t.show,e=>{e?c():l()},{immediate:!0}),de(()=>{t.show&&c()}),ue(()=>{s()});let ee=ae(()=>({position:`fixed`,zIndex:2147483647,top:`${t.y}px`,left:`${t.x}px`,transform:t.placement===`bottom`?`translate(-50%, 8px)`:`translate(-50%, -100%)`,pointerEvents:`none`,...t.styleObject}));return(t,n)=>(v(),d(ie,{to:`body`},[i.value?(v(),p(`div`,{key:0,class:g([`teleport-tooltip`,e.placement]),style:_(ee.value),role:`tooltip`,"aria-hidden":`false`},[m(`div`,be,[b(t.$slots,`default`,{},void 0,!0)])],6)):f(``,!0)]))}},[[`__scopeId`,`data-v-c292996f`]]),xe=/* @__PURE__ */ e({default:()=>Dt}),Se={class:`vue-data-ui-component vue-ui-annotator`},Ce={"data-dom-to-png-ignore":``},we=[`id`],Te=[`id`],Ee={class:`tool-selection`},De=[`disabled`],Oe=[`disabled`],ke=[`disabled`],Ae=[`disabled`],je=[`disabled`],Me=[`disabled`],Ne=[`disabled`],Pe=[`disabled`],Fe=[`disabled`],Ie={class:`tool-selection`,style:{"margin-top":`6px`}},Le={viewBox:`0 0 12 12`,style:{width:`100%`}},Re=[`fill`],ze={key:0},Be={class:`tool-input`},Ve=[`checked`],He={viewBox:`0 0 12 12`,style:{width:`100%`}},Ue=[`fill`],We={key:1},Ge={class:`tool-input`},Ke=[`checked`],qe={viewBox:`0 0 24 24`,style:{width:`100%`}},Je=[`stroke`],Ye={key:2},Xe={style:{display:`flex`,"flex-direction":`column`,"align-items":`center`,"justify-content":`center`}},Ze={class:`tool-input`},Qe={key:3},$e={style:{display:`flex`,"flex-direction":`column`,"align-items":`center`,"justify-content":`center`}},et={class:`tool-input`},tt=[`checked`],nt={key:4},rt={style:{display:`flex`,"flex-direction":`column`,"align-items":`center`,"justify-content":`center`}},it={class:`tool-input`},at={key:5},ot={key:6},st=[`disabled`],ct={key:7},lt=[`disabled`],ut={key:8},dt={key:9},ft={key:10},pt={key:11},mt={style:{display:`flex`,"flex-direction":`column`,"align-items":`center`,"justify-content":`center`},class:`tooltip`},ht={style:{display:`flex`,"flex-direction":`column`,"align-items":`start`,"justify-content":`center`}},gt={class:`tool-input`,style:{"font-variant-numeric":`tabular-nums`}},_t=[`id`],vt=[`viewBox`,`width`,`height`],yt=[`width`,`height`,`pointer-events`],bt=[`innerHTML`,`onClick`,`onDblclick`],xt=[`x1`,`x2`,`y1`,`y2`,`stroke`],St=[`height`,`viewBox`,`width`],Ct=[`cx`,`cy`],wt=`annotations`,Tt=`‎`,Et=450,Dt=/*#__PURE__*/ ee({__name:`vue-ui-annotator`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},emits:[`toggleOpenState`,`saveAnnotations`],setup(e,{emit:ee}){let be=e,xe=ee,Dt=y(!1),Ot=y(!1);de(()=>Dt.value=!0);let kt=y(r()),{isImaging:At,generateImage:jt}=c({elementId:kt.value,fileName:wt}),w=y(void 0),Mt=y(1),T=y({start:{x:0,y:0},end:{x:0,y:0}}),E=y(void 0),Nt=y(void 0),Pt=y(!1),Ft=y(!1),It=y(!1),D=y(!1),Lt=y(!1),Rt=y(!0),O=y(!1),zt=y(!1),Bt=y(!1),k=y(!1),Vt=y(!1),A=y(!1),j=y(!1),M=y(!1);ge(M,async e=>{if(Ot.value=!1,!e){F.value=void 0,E.value=void 0,Nt.value=void 0,Wt.value=[],j.value=!1;return}await ce(),Ot.value=!0});let N=y(!1),Ht=y(!1),P=y(!1),F=y(be.dataset?.lastSelectedShape??void 0),I=y({x:0,y:0}),Ut=y(!0),Wt=y([]),L=y(be.dataset?.shapes||[]);y([]);let Gt=y(Math.round(Math.random())*1e5),Kt=y(1e3),qt=y(1e3),R=y({arrow:{color:`grey`,filled:!0},circle:{color:`grey`,filled:!1,radius:3,strokeWidth:2},rect:{color:`grey`,filled:!1,strokeWidth:2,height:12,width:12}}),z=y(!1),Jt=y(1),Yt=y(void 0),Xt=y(1),Zt=y(1),B=y(`start`),Qt=y(20),$t=y(100),en=n,tn=y(null),nn=y(null),V=y(null),rn=y(null),an=y(null),on=y(!1),sn=y({row:0,col:0}),H=y(null),U=y(!1),W=y(null),G=y({x:0,y:0}),cn=y(null),ln=y([]),un=y(!1),dn=y(null),fn=y({undo:0,redo:0}),pn=y(null);y(null),y(null);let mn=y(null),K=ae(()=>{let e=s().vue_ui_annotator;if(!Object.keys(be.config||{}).length)return e;let n=i({defaultConfig:e,userConfig:be.config});return t(n)}),hn=y(K.value.style.paletteColor),q=ae(()=>K.value.style.buttons),J=ae(()=>K.value.style);a({config:()=>K.value,dataset:()=>[],component:`VueUiAnnotator`,rules:[o.noHint]});let Y=ae(()=>K.value.useCursorPointer),X=ae(()=>{let e=J.value.tooltips;return{backgroundColor:e.backgroundColor,color:e.color,border:e.border,borderRadius:`${e.borderRadius}px`,boxShadow:e.boxShadow}}),gn=ae(()=>L.value.filter(e=>e.type!==`group`||Array.isArray(e.source)&&e.source.length>0).length>1),_n=ae(()=>en[$t.value>98?98:$t.value]),vn=ae(()=>{switch(!0){case D.value:return`default`;case k.value:return`move`;case N.value:return`text`;case A.value:return`move`;default:return``}}),yn=ae(()=>L.value),bn=y(null);function xn(e){return e?!!(F.value&&F.value.id===e.id):!1}function Sn(e=``){let t=String(e).trim().split(/\s+/).map(Number).filter(Number.isFinite),n=[];for(let e=0;e+1<t.length;e+=2)n.push({x:t[e],y:t[e+1]});return n}function Cn(e=[]){return e.map(({x:e,y:t})=>`${e} ${t}`).join(` `)}function wn(e=``){let t=Sn(e);if(!t.length)return null;let n=t.map(e=>e.x),r=t.map(e=>e.y),i=Math.min(...n),a=Math.max(...n),o=Math.min(...r),s=Math.max(...r);return{minX:i,minY:o,maxX:a,maxY:s,width:Math.max(1,a-i),height:Math.max(1,s-o)}}function Tn(e){if(!e||!M.value||!A.value||!F.value||F.value.id!==e.id)return``;let t=J.value.color||`grey`,n=J.value.backgroundColor||`rgba(255,255,255,0.95)`,r=({handle:r,x:i,y:a,cursor:o=`nwse-resize`})=>`
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{C as t,Vt as n,X as r,in as i}from"./lib-CV_IANZ6.js";import{n as a,t as o}from"./useHints-BH9r_0Vd.js";import{t as s}from"./useConfig-CKdzPrcf.js";import{t as c}from"./usePrinter-hLW3cv4N.js";import{t as l}from"./dom-to-png-D8t3Bm7s.js";import{t as ee}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as u}from"./BaseIcon-DdIyewwY.js";import{t as te}from"./vue-ui-accordion-BNvevckx.js";import{t as ne}from"./ColorPicker-MLwiwxl5.js";import{Fragment as re,Teleport as ie,computed as ae,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createTextVNode as h,createVNode as oe,guardReactiveProps as se,nextTick as ce,normalizeClass as g,normalizeProps as le,normalizeStyle as _,onBeforeUnmount as ue,onMounted as de,openBlock as v,ref as y,renderList as fe,renderSlot as b,toDisplayString as x,unref as pe,vModelCheckbox as me,vModelText as he,watch as ge,withCtx as S,withDirectives as _e,withModifiers as ve}from"vue";function ye(e){let t=t=>e.isMacLike.value?t.metaKey:t.ctrlKey,n=e=>{let t=e;if(!t)return!1;let n=(t.tagName||``).toLowerCase();return t.isContentEditable||n===`input`||n===`textarea`||n===`select`},r=t=>!!(!e.isSummaryOpen.value||n(t.target)||e.isWriting.value),i=()=>{e.isDeleteMode.value=!1,e.isMoveMode.value=!1,e.isResizeMode.value=!1,e.isSelectMode.value=!1,e.isDrawMode.value=!1,e.isTextMode.value=!1,e.activeShape.value=void 0,e.showCaret.value=!1},a=t=>{switch(i(),t){case`m`:e.isMoveMode.value=!0;break;case`r`:e.isResizeMode.value=!0;break;case`d`:e.isDeleteMode.value=!0;break;case`g`:e.isSelectMode.value=!0,e.setShapeTo(`group`),e.activeShape.value=`group`;break;case`t`:e.isTextMode.value=!0,e.isWriting.value=!1,e.showCaret.value=!1}},o=t=>{switch(t){case`c`:e.setShapeTo(`circle`);break;case`s`:e.setShapeTo(`rect`);break;case`a`:e.setShapeTo(`arrow`);break;case`l`:e.setShapeTo(`line`)}},s=(t,n)=>{let r=e.lastSelectedShape.value;if(!r)return;let i=(e,t)=>{typeof r[e]==`number`&&(r[e]+=t)};switch(r.type){case`rect`:case`circle`:case`text`:i(`x`,t),i(`y`,n);break;case`arrow`:i(`x`,t),i(`y`,n),i(`endX`,t),i(`endY`,n)}},c=()=>{let t=e.lastSelectedShape.value;t&&(e.shapes.value=e.shapes.value.filter(e=>e.id!==t.id),e.lastSelectedShape.value=void 0)},l=!1,ee=null,u=()=>{l||(l=!0,e.history?.value?.begin?.(`nudge`))},te=()=>{l&&(clearTimeout(ee),ee=setTimeout(()=>{l=!1,e.history?.value?.end?.()},160))},ne=()=>{clearTimeout(ee),l&&e.history?.value?.end?.(),l=!1},re=n=>{if(t(n)&&!n.shiftKey&&n.key.toLowerCase()===`z`){if(r(n))return;n.preventDefault(),e.undoLastShape?.();return}if(t(n)&&n.shiftKey&&n.key.toLowerCase()===`z`||t(n)&&n.key.toLowerCase()===`y`){if(r(n))return;n.preventDefault(),typeof e.redoLastShape==`function`?e.redoLastShape():e.history?.value?.redo?.();return}if(r(n))return;let l=n.key.toLowerCase();if(l===`escape`){n.preventDefault(),i();return}if(l===`delete`||l===`backspace`){n.preventDefault(),c();return}if([`m`,`r`,`d`,`g`,`t`].includes(l)){n.preventDefault(),a(l);return}if([`c`,`a`,`l`,`s`].includes(l)){n.preventDefault(),o(l);return}if(n.key===`ArrowUp`||n.key===`ArrowDown`||n.key===`ArrowLeft`||n.key===`ArrowRight`){n.preventDefault(),u();let e=n.shiftKey?10:1;n.key===`ArrowUp`&&s(0,-e),n.key===`ArrowDown`&&s(0,e),n.key===`ArrowLeft`&&s(-e,0),n.key===`ArrowRight`&&s(e,0),te()}},ie=e=>{e.key.startsWith(`Arrow`)&&te()};return window.addEventListener(`keydown`,re),window.addEventListener(`keyup`,ie),function(){window.removeEventListener(`keydown`,re),window.removeEventListener(`keyup`,ie),ne()}}var be={class:`teleport-tooltip__inner`},C=/*#__PURE__*/ ee({__name:`TeleportedTooltip`,props:{show:{type:Boolean,default:!1},x:{type:Number,required:!0},y:{type:Number,required:!0},placement:{type:String,default:`top`},styleObject:{type:Object,default(){return{}}},delay:{type:Number,default:0},delayIn:{type:Number,default:300},delayOut:{type:Number,default:0}},setup(e){let t=e,n=ae(()=>t.delayIn??t.delay),r=ae(()=>t.delayOut??t.delay),i=y(!1),a=null,o=null;function s(){a&&=(clearTimeout(a),null),o&&=(clearTimeout(o),null)}function c(){s();let e=Math.max(0,n.value||0);e===0?i.value=!0:a=setTimeout(()=>{i.value=!0,a=null},e)}function l(){s();let e=Math.max(0,r.value||0);e===0?i.value=!1:o=setTimeout(()=>{i.value=!1,o=null},e)}ge(()=>t.show,e=>{e?c():l()},{immediate:!0}),de(()=>{t.show&&c()}),ue(()=>{s()});let ee=ae(()=>({position:`fixed`,zIndex:2147483647,top:`${t.y}px`,left:`${t.x}px`,transform:t.placement===`bottom`?`translate(-50%, 8px)`:`translate(-50%, -100%)`,pointerEvents:`none`,...t.styleObject}));return(t,n)=>(v(),d(ie,{to:`body`},[i.value?(v(),p(`div`,{key:0,class:g([`teleport-tooltip`,e.placement]),style:_(ee.value),role:`tooltip`,"aria-hidden":`false`},[m(`div`,be,[b(t.$slots,`default`,{},void 0,!0)])],6)):f(``,!0)]))}},[[`__scopeId`,`data-v-c292996f`]]),xe=/* @__PURE__ */ e({default:()=>Dt}),Se={class:`vue-data-ui-component vue-ui-annotator`},Ce={"data-dom-to-png-ignore":``},we=[`id`],Te=[`id`],Ee={class:`tool-selection`},De=[`disabled`],Oe=[`disabled`],ke=[`disabled`],Ae=[`disabled`],je=[`disabled`],Me=[`disabled`],Ne=[`disabled`],Pe=[`disabled`],Fe=[`disabled`],Ie={class:`tool-selection`,style:{"margin-top":`6px`}},Le={viewBox:`0 0 12 12`,style:{width:`100%`}},Re=[`fill`],ze={key:0},Be={class:`tool-input`},Ve=[`checked`],He={viewBox:`0 0 12 12`,style:{width:`100%`}},Ue=[`fill`],We={key:1},Ge={class:`tool-input`},Ke=[`checked`],qe={viewBox:`0 0 24 24`,style:{width:`100%`}},Je=[`stroke`],Ye={key:2},Xe={style:{display:`flex`,"flex-direction":`column`,"align-items":`center`,"justify-content":`center`}},Ze={class:`tool-input`},Qe={key:3},$e={style:{display:`flex`,"flex-direction":`column`,"align-items":`center`,"justify-content":`center`}},et={class:`tool-input`},tt=[`checked`],nt={key:4},rt={style:{display:`flex`,"flex-direction":`column`,"align-items":`center`,"justify-content":`center`}},it={class:`tool-input`},at={key:5},ot={key:6},st=[`disabled`],ct={key:7},lt=[`disabled`],ut={key:8},dt={key:9},ft={key:10},pt={key:11},mt={style:{display:`flex`,"flex-direction":`column`,"align-items":`center`,"justify-content":`center`},class:`tooltip`},ht={style:{display:`flex`,"flex-direction":`column`,"align-items":`start`,"justify-content":`center`}},gt={class:`tool-input`,style:{"font-variant-numeric":`tabular-nums`}},_t=[`id`],vt=[`viewBox`,`width`,`height`],yt=[`width`,`height`,`pointer-events`],bt=[`innerHTML`,`onClick`,`onDblclick`],xt=[`x1`,`x2`,`y1`,`y2`,`stroke`],St=[`height`,`viewBox`,`width`],Ct=[`cx`,`cy`],wt=`annotations`,Tt=`‎`,Et=450,Dt=/*#__PURE__*/ ee({__name:`vue-ui-annotator`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{shapes:[],lastSelectedShape:void 0}}}},emits:[`toggleOpenState`,`saveAnnotations`],setup(e,{emit:ee}){let be=e,xe=ee,Dt=y(!1),Ot=y(!1);de(()=>Dt.value=!0);let kt=y(r()),{isImaging:At,generateImage:jt}=c({elementId:kt.value,fileName:wt}),w=y(void 0),Mt=y(1),T=y({start:{x:0,y:0},end:{x:0,y:0}}),E=y(void 0),Nt=y(void 0),Pt=y(!1),Ft=y(!1),It=y(!1),D=y(!1),Lt=y(!1),Rt=y(!0),O=y(!1),zt=y(!1),Bt=y(!1),k=y(!1),Vt=y(!1),A=y(!1),j=y(!1),M=y(!1);ge(M,async e=>{if(Ot.value=!1,!e){F.value=void 0,E.value=void 0,Nt.value=void 0,Wt.value=[],j.value=!1;return}await ce(),Ot.value=!0});let N=y(!1),Ht=y(!1),P=y(!1),F=y(be.dataset?.lastSelectedShape??void 0),I=y({x:0,y:0}),Ut=y(!0),Wt=y([]),L=y(be.dataset?.shapes||[]);y([]);let Gt=y(Math.round(Math.random())*1e5),Kt=y(1e3),qt=y(1e3),R=y({arrow:{color:`grey`,filled:!0},circle:{color:`grey`,filled:!1,radius:3,strokeWidth:2},rect:{color:`grey`,filled:!1,strokeWidth:2,height:12,width:12}}),z=y(!1),Jt=y(1),Yt=y(void 0),Xt=y(1),Zt=y(1),B=y(`start`),Qt=y(20),$t=y(100),en=n,tn=y(null),nn=y(null),V=y(null),rn=y(null),an=y(null),on=y(!1),sn=y({row:0,col:0}),H=y(null),U=y(!1),W=y(null),G=y({x:0,y:0}),cn=y(null),ln=y([]),un=y(!1),dn=y(null),fn=y({undo:0,redo:0}),pn=y(null);y(null),y(null);let mn=y(null),K=ae(()=>{let e=s().vue_ui_annotator;if(!Object.keys(be.config||{}).length)return e;let n=i({defaultConfig:e,userConfig:be.config});return t(n)}),hn=y(K.value.style.paletteColor),q=ae(()=>K.value.style.buttons),J=ae(()=>K.value.style);a({config:()=>K.value,dataset:()=>[],component:`VueUiAnnotator`,rules:[o.noHint]});let Y=ae(()=>K.value.useCursorPointer),X=ae(()=>{let e=J.value.tooltips;return{backgroundColor:e.backgroundColor,color:e.color,border:e.border,borderRadius:`${e.borderRadius}px`,boxShadow:e.boxShadow}}),gn=ae(()=>L.value.filter(e=>e.type!==`group`||Array.isArray(e.source)&&e.source.length>0).length>1),_n=ae(()=>en[$t.value>98?98:$t.value]),vn=ae(()=>{switch(!0){case D.value:return`default`;case k.value:return`move`;case N.value:return`text`;case A.value:return`move`;default:return``}}),yn=ae(()=>L.value),bn=y(null);function xn(e){return e?!!(F.value&&F.value.id===e.id):!1}function Sn(e=``){let t=String(e).trim().split(/\s+/).map(Number).filter(Number.isFinite),n=[];for(let e=0;e+1<t.length;e+=2)n.push({x:t[e],y:t[e+1]});return n}function Cn(e=[]){return e.map(({x:e,y:t})=>`${e} ${t}`).join(` `)}function wn(e=``){let t=Sn(e);if(!t.length)return null;let n=t.map(e=>e.x),r=t.map(e=>e.y),i=Math.min(...n),a=Math.max(...n),o=Math.min(...r),s=Math.max(...r);return{minX:i,minY:o,maxX:a,maxY:s,width:Math.max(1,a-i),height:Math.max(1,s-o)}}function Tn(e){if(!e||!M.value||!A.value||!F.value||F.value.id!==e.id)return``;let t=J.value.color||`grey`,n=J.value.backgroundColor||`rgba(255,255,255,0.95)`,r=({handle:r,x:i,y:a,cursor:o=`nwse-resize`})=>`
2
2
  <circle
3
3
  data-dom-to-png-ignore
4
4
  id="${e.id}"
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,t as n}from"./annotationSlots-BRR85CqJ.js";import{n as r,t as i}from"./userOptionsSlots-DYuo-E5m.js";import{$ as a,Ft as o,S as ee,X as te,_ as ne,at as re,i as s,in as ie,t as ae,yt as oe,zt as se}from"./lib-zDxoqrgo.js";import{n as ce}from"./useHints-BH9r_0Vd.js";import{t as le}from"./useConfig-CKdzPrcf.js";import{t as ue}from"./usePrinter-CnyKPIFM.js";import{n as de,t as fe}from"./BaseScanner-8NdoBs7B.js";import{t as pe}from"./useChartExport-DtPNpc9M.js";import{n as me}from"./Title-BRAjxtjG.js";import{t as he}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{l as ge,t as _e}from"./useResponsive-D2CPcpda.js";import{t as ve}from"./resolveChartConfig-BSo1Oe9n.js";import{t as ye}from"./useUserOptionState-CXlFnwPv.js";import{t as be}from"./useChartAccessibility-DOMuYJfm.js";import{t as xe}from"./chartImage-NwZO-elv.js";import{t as Se}from"./Legend-DokTll4u.js";import{t as Ce}from"./vue_ui_bullet-CwVYkpjd.js";import{Fragment as we,Teleport as Te,computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createSlots as Ee,createVNode as De,defineAsyncComponent as p,guardReactiveProps as m,normalizeClass as Oe,normalizeProps as h,normalizeStyle as g,onBeforeUnmount as ke,onMounted as Ae,openBlock as _,ref as v,renderList as y,renderSlot as b,toDisplayString as x,toRefs as je,unref as S,watch as Me,withCtx as C}from"vue";var Ne=/* @__PURE__ */ e({default:()=>w}),Pe=[`id`],Fe={key:1,ref:`noTitle`,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},Ie=[`id`],Le=[`xmlns`,`viewBox`,`aria-labelledby`,`aria-describedby`],Re=[`id`],ze=[`id`],Be=[`width`,`height`],Ve={key:1},He=[`x`,`y`,`height`,`width`,`fill`,`stroke`],Ue=[`x`,`y`,`height`,`width`,`rx`,`fill`,`stroke`,`stroke-width`],We=[`x`,`y`,`height`,`width`,`fill`,`stroke`,`stroke-width`],Ge=[`x`,`y`,`font-size`,`font-weight`,`fill`],Ke=[`x`,`y`,`height`,`width`,`rx`,`fill`,`stroke`,`stroke-width`],qe={key:3},Je=[`x`,`y`,`fill`,`font-size`,`font-weight`],Ye={key:4},Xe=[`x1`,`x2`,`y1`,`y2`,`stroke`],Ze={key:4,class:`vue-data-ui-watermark`},Qe=[`id`],$e={key:0,class:`vue-ui-bullet-legend-item`,dir:`auto`},et={style:{"margin-right":`2px`}},w=/*#__PURE__*/ he({__name:`vue-ui-bullet`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`copyAlt`],setup(e,{expose:he,emit:Ne}){let w=p(()=>import(`./PackageVersion-D6pKL176.js`).then(e=>e.t)),tt=p(()=>import(`./PenAndPaper-DvJJaeU2.js`).then(e=>e.t)),nt=p(()=>import(`./UserOptions-D65t74CM.js`).then(e=>e.n)),{vue_ui_bullet:rt}=le(),T=e,it=Ne,E=v(null),at=v(null),ot=v(0),st=v(null),ct=v(null),lt=v(0),D=v(null),O=v(null),ut=v(!1),k=c({get:()=>B.value.hasOwnProperty(`value`),set:e=>e}),A=v(R()),j=c(()=>A.value.debug),M=c(()=>A.value.style.chart.target),N=c(()=>A.value.style.chart.segments),P=c(()=>A.value.style.chart),F=c(()=>A.value.userOptions),I=c(()=>B.value.segments?Array.isArray(B.value.segments)?B.value.segments.length?!0:(j.value&&console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,t as n}from"./annotationSlots-BRR85CqJ.js";import{n as r,t as i}from"./userOptionsSlots-DYuo-E5m.js";import{$ as a,Ft as o,S as ee,X as te,_ as ne,at as re,i as s,in as ie,t as ae,yt as oe,zt as se}from"./lib-CV_IANZ6.js";import{n as ce}from"./useHints-BH9r_0Vd.js";import{t as le}from"./useConfig-CKdzPrcf.js";import{t as ue}from"./usePrinter-hLW3cv4N.js";import{n as de,t as fe}from"./BaseScanner-8NdoBs7B.js";import{t as pe}from"./useChartExport-DtPNpc9M.js";import{n as me}from"./Title-BGYFqulv.js";import{t as he}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{l as ge,t as _e}from"./useResponsive-D2CPcpda.js";import{t as ve}from"./resolveChartConfig-DZg-korK.js";import{t as ye}from"./useUserOptionState-CXlFnwPv.js";import{t as be}from"./useChartAccessibility-DOMuYJfm.js";import{t as xe}from"./chartImage-CIvU_04o.js";import{t as Se}from"./Legend-D8YoT1RJ.js";import{t as Ce}from"./vue_ui_bullet-CwVYkpjd.js";import{Fragment as we,Teleport as Te,computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createSlots as Ee,createVNode as De,defineAsyncComponent as p,guardReactiveProps as m,normalizeClass as Oe,normalizeProps as h,normalizeStyle as g,onBeforeUnmount as ke,onMounted as Ae,openBlock as _,ref as v,renderList as y,renderSlot as b,toDisplayString as x,toRefs as je,unref as S,watch as Me,withCtx as C}from"vue";var Ne=/* @__PURE__ */ e({default:()=>w}),Pe=[`id`],Fe={key:1,ref:`noTitle`,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},Ie=[`id`],Le=[`xmlns`,`viewBox`,`aria-labelledby`,`aria-describedby`],Re=[`id`],ze=[`id`],Be=[`width`,`height`],Ve={key:1},He=[`x`,`y`,`height`,`width`,`fill`,`stroke`],Ue=[`x`,`y`,`height`,`width`,`rx`,`fill`,`stroke`,`stroke-width`],We=[`x`,`y`,`height`,`width`,`fill`,`stroke`,`stroke-width`],Ge=[`x`,`y`,`font-size`,`font-weight`,`fill`],Ke=[`x`,`y`,`height`,`width`,`rx`,`fill`,`stroke`,`stroke-width`],qe={key:3},Je=[`x`,`y`,`fill`,`font-size`,`font-weight`],Ye={key:4},Xe=[`x1`,`x2`,`y1`,`y2`,`stroke`],Ze={key:4,class:`vue-data-ui-watermark`},Qe=[`id`],$e={key:0,class:`vue-ui-bullet-legend-item`,dir:`auto`},et={style:{"margin-right":`2px`}},w=/*#__PURE__*/ he({__name:`vue-ui-bullet`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`copyAlt`],setup(e,{expose:he,emit:Ne}){let w=p(()=>import(`./PackageVersion-CdkxOy58.js`).then(e=>e.t)),tt=p(()=>import(`./PenAndPaper-IMw576MC.js`).then(e=>e.t)),nt=p(()=>import(`./UserOptions-DTxMeZv3.js`).then(e=>e.n)),{vue_ui_bullet:rt}=le(),T=e,it=Ne,E=v(null),at=v(null),ot=v(0),st=v(null),ct=v(null),lt=v(0),D=v(null),O=v(null),ut=v(!1),k=c({get:()=>B.value.hasOwnProperty(`value`),set:e=>e}),A=v(R()),j=c(()=>A.value.debug),M=c(()=>A.value.style.chart.target),N=c(()=>A.value.style.chart.segments),P=c(()=>A.value.style.chart),F=c(()=>A.value.userOptions),I=c(()=>B.value.segments?Array.isArray(B.value.segments)?B.value.segments.length?!0:(j.value&&console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
2
2
 
3
3
  segments: [
4
4
  {
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,t as n}from"./tableIntegration-CNoJ1CIY.js";import{n as r,t as i}from"./annotationSlots-BRR85CqJ.js";import{n as a,t as o}from"./userOptionsSlots-DYuo-E5m.js";import{$ as ee,At as s,D as c,Ht as l,J as te,P as ne,S as re,U as ie,X as ae,at as oe,c as se,i as ce,in as le,nn as ue,nt as de,r as fe,t as pe,w as me,yt as he,zt as ge}from"./lib-zDxoqrgo.js";import{n as _e,t as ve}from"./useHints-BH9r_0Vd.js";import{t as ye}from"./useTimeLabels-Das5O74F.js";import{t as be}from"./useConfig-CKdzPrcf.js";import{t as xe}from"./usePrinter-CnyKPIFM.js";import{n as Se,t as Ce}from"./BaseScanner-8NdoBs7B.js";import{t as we}from"./useNestedProp-CT9phgWx.js";import{t as Te}from"./useThemeCheck-BKNRbGeC.js";import{t as Ee}from"./useChartExport-DtPNpc9M.js";import{t as De}from"./useTimeLabelCollider-XQf_S7-z.js";import{n as Oe}from"./Title-BRAjxtjG.js";import{t as ke}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{l as Ae,t as je}from"./useResponsive-D2CPcpda.js";import{t as Me}from"./A11yDataTable-DWNlWXzs.js";import{t as Ne}from"./useUserOptionState-CXlFnwPv.js";import{t as Pe}from"./useChartAccessibility-DOMuYJfm.js";import{t as Fe}from"./chartImage-NwZO-elv.js";import{t as Ie}from"./vue_ui_bump-KJL9GYr4.js";import{t as Le}from"./BaseDraggableDialog-T1gEsQid.js";import{Fragment as u,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createSlots as Re,createTextVNode as ze,createVNode as Be,defineAsyncComponent as g,guardReactiveProps as Ve,mergeProps as He,normalizeClass as Ue,normalizeProps as We,normalizeStyle as _,onBeforeUnmount as Ge,onMounted as Ke,openBlock as v,ref as y,renderList as b,renderSlot as x,resolveDynamicComponent as qe,shallowRef as Je,toDisplayString as S,toRefs as Ye,unref as C,watch as Xe,watchEffect as Ze,withCtx as w}from"vue";var Qe=/* @__PURE__ */ e({default:()=>vt}),$e=[`id`],et=[`id`],tt={style:{position:`relative`}},nt=[`xmlns`,`aria-describedby`,`viewBox`],rt=[`x`,`y`,`width`,`height`],it=[`d`,`stroke`,`stroke-width`,`onMouseenter`],at=[`d`,`stroke`,`stroke-width`,`onMouseenter`,`onMouseleave`,`onClick`],ot=[`cx`,`cy`,`r`,`fill`,`stroke`,`stroke-width`,`onMouseenter`,`onMouseleave`,`onClick`],st=[`x`,`y`,`fill`,`font-size`],ct=[`onMouseenter`,`onMouseleave`,`onClick`],lt=[`x`,`y`,`fill`,`font-size`],ut=[`x`,`y`,`fill`,`font-size`,`font--weight`,`innerHTML`,`onMouseenter`,`onMouseleave`,`onClick`],dt=[`x`,`y`,`fill`,`font-size`,`font--weight`,`innerHTML`,`onMouseenter`,`onMouseleave`,`onClick`],ft={key:0},pt={key:1},mt=[`text-anchor`,`font-size`,`font-weight`,`fill`,`stroke`,`transform`],ht=[`text-anchor`,`font-size`,`fill`,`transform`,`innerHTML`],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=/*#__PURE__*/ ke({__name:`vue-ui-bump`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`copyAlt`],setup(e,{expose:ke,emit:Qe}){let vt=g(()=>import(`./BaseIcon-Cz30ODFA.js`).then(e=>e.n)),yt=g(()=>import(`./vue-ui-accordion-Dy5OVFKr.js`).then(e=>e.n)),bt=g(()=>import(`./DataTable-DSUA5M9p.js`)),xt=g(()=>import(`./PenAndPaper-DvJJaeU2.js`).then(e=>e.t)),St=g(()=>import(`./UserOptions-D65t74CM.js`).then(e=>e.n)),Ct=g(()=>import(`./PackageVersion-D6pKL176.js`).then(e=>e.t)),{vue_ui_bump:wt}=be(),{isThemeValid:Tt,warnInvalidTheme:Et}=Te(),T=e,Dt=Qe,Ot=d({get(){return!!T.dataset&&T.dataset.length},set(e){return e}}),E=y(null),D=y(ae()),kt=y(0),At=y(null),jt=y(null),Mt=y(null),Nt=y(!1),Pt=y(!1),Ft=y(0),It=y(0),Lt=y(null),Rt=y(null),zt=y(!1),O=y(null),Bt=y(null),Vt=y(null),Ht=y(null),k=y(null),Ut=y(!1),A=y(Jt()),j=d(()=>A.value.style.chart.layout.plots),M=d(()=>A.value.style.chart.layout),N=d(()=>A.value.style.chart),P=d(()=>A.value.userOptions);_e({config:()=>A.value,dataset:()=>T.dataset,component:`VueUiBump`,rules:[ve.emptyArray,{test:e=>e.length>31,message:[`👀 The number of series > 31. Consider:`,``,`▶️ Using filters to let users choose a maximum number of series to display`,``,`▶️ Use several instances of the component to show related series`]},{test:e=>e.length===1,message:[`👀 There is only 1 series in your dataset. Consider:`,``,`▶️ Using a line chart, with VueUiXy.`]},{test:e=>e.some(e=>e.values.length>31),message:[`👀 Some series contain > 31 data points, which can make the chart hard to read. Consider:`,``,`▶️ Use filters to show less data points at a time.`,``,`▶️ Use larger time scales, or aggregated values.`]}]});let F=d(()=>A.value.userOptions.useCursorPointer),Wt=d(()=>le({defaultConfig:{userOptions:{show:!1},style:{chart:{backgroundColor:`#99999930`,layout:{timeLabels:{show:!1},lines:{coatingColor:`#4A4A4A`},plots:{stroke:`#4A4A4A`,labels:{show:!1,displayedValue:`rank`}},nameLabels:{useSerieColor:!0}}}}},userConfig:A.value.skeletonConfig??{}})),{loading:Gt,FINAL_DATASET:Kt,manualLoading:qt}=Se({...Ye(T),FINAL_CONFIG:A,prepareConfig:Jt,skeletonDataset:T.config?.skeletonDataset??[{name:`————`,values:[1,1,1,2,2,2,3,3,2,2],color:`#4A4A4A`},{name:`————`,values:[2,2,2,1,3,3,2,2,3,3],color:`#6A6A6A`},{name:`————`,values:[3,3,3,3,1,1,1,1,1,1],color:`#8A8A8A`}],skeletonConfig:le({defaultConfig:A.value,userConfig:Wt.value})});Ke(ln);function Jt(){let e=we({userConfig:T.config,defaultConfig:wt}),t={},n=e.theme;if(n){if(!Tt.value(e))Et(e),t=e;else{let r=we({userConfig:Ie[n]||T.config,defaultConfig:e});t={...we({userConfig:T.config,defaultConfig:r}),customPalette:e.customPalette.length?e.customPalette:ue[n]||l}}}else t=e;return t}let{userOptionsVisible:Yt,setUserOptionsVisibility:Xt,keepUserOptionState:Zt}=Ne({config:A.value}),{svgRef:I}=Pe({config:N.value.title});function Qt(){zt.value=!0,Xt(!0)}function $t(){Xt(!1),zt.value=!1}let L=y({showTable:A.value.table.show});Xe(A,()=>{L.value={showTable:A.value.table.show}},{immediate:!0}),Xe(()=>T.config,e=>{Gt.value||(A.value=Jt()),Yt.value=!A.value.userOptions.showOnChartHover,ln(),Ft.value+=1,It.value+=1,L.value.showTable=A.value.table.show,R.value.width=N.value.width,R.value.height=N.value.height,R.value.paddingRatio={top:N.value.padding.top/N.value.height,right:N.value.padding.right/N.value.width,bottom:N.value.padding.bottom/N.value.height,left:N.value.padding.left/N.value.width}}),Xe(()=>T.dataset,e=>{Array.isArray(e)&&e.length>0&&(qt.value=!1)},{deep:!0});let{isPrinting:en,isImaging:tn,generatePdf:nn,generateImage:rn}=xe({elementId:`bump_${D.value}`,fileName:N.value.title.text||`vue-ui-bump`,options:A.value.userOptions.print}),an=d(()=>A.value.userOptions.show&&!N.value.title.text),R=y({width:N.value.width,height:N.value.height,paddingRatio:{top:N.value.padding.top/N.value.height,right:N.value.padding.right/N.value.width,bottom:N.value.padding.bottom/N.value.height,left:N.value.padding.left/N.value.width}}),on=d(()=>me(A.value.customPalette)),z=Je(null),B=Je(null),sn=y(null),cn=d(()=>A.value.debug);function ln(){if(ge(T.dataset)?(oe({componentName:`VueUiBump`,type:`dataset`,debug:cn.value}),qt.value=!0):T.dataset.forEach((e,t)=>{he({datasetObject:e,requiredAttributes:[`name`,`values`]}).forEach(e=>{Ot.value=!1,oe({componentName:`VueUiBump`,type:`datasetSerieAttribute`,property:e,index:t,debug:cn.value}),qt.value=!0})}),ge(T.dataset)||(qt.value=A.value.loading),setTimeout(()=>{Pt.value=!0},10),A.value.responsive){let e=Ae(()=>{Pt.value=!1;let{width:e,height:t}=je({chart:E.value,noTitle:jt.value,title:N.value.title.text?At.value:null,legend:null,slicer:null,source:Mt.value});requestAnimationFrame(()=>{R.value.width=e,R.value.height=t-12,clearTimeout(sn.value),sn.value=setTimeout(()=>{Pt.value=!0},10)})});z.value&&(B.value&&z.value.unobserve(B.value),z.value.disconnect()),z.value=new ResizeObserver(e),B.value=E.value.parentNode,z.value.observe(B.value)}}Ge(()=>{z.value&&(B.value&&z.value.unobserve(B.value),z.value.disconnect())});let un=d(()=>Kt.value.map((e,t)=>{let n=re(e.color)||on.value[t]||l[t]||l[t%l.length];return{...e,absoluteIndex:t,id:ae(),color:n}})),V=d(()=>Math.max(...un.value.map(e=>e.values.length)));function dn(e){let t=e.map(()=>Array(V.value).fill(null));for(let n=0;n<V.value;n+=1){let r=e.map((e,r)=>({seriesIndex:r,value:e.values?.[n],previousPosition:n>0?t[r][n-1]:r})).filter(e=>Number.isFinite(e.value));r.sort((e,t)=>t.value===e.value?e.previousPosition-t.previousPosition:t.value-e.value);for(let e=0;e<r.length;e+=1){let i=r[e];t[i.seriesIndex][n]=e}}return t}function fn(){let e=0;return Bt.value&&(e=Array.from(Bt.value.querySelectorAll(`tspan`)).reduce((e,t)=>{let n=t.getComputedTextLength();return n>e?n:e},0)),e}function pn(){let e=0;return Vt.value&&(e=Array.from(Vt.value.querySelectorAll(`tspan`)).reduce((e,t)=>{let n=t.getComputedTextLength();return n>e?n:e},0)),e}let mn=y(0),hn=Ae(e=>{mn.value=e},100);Ze(e=>{let t=Ht.value;if(!t)return;let n=new ResizeObserver(e=>{hn(e[0].contentRect.height)});n.observe(t),e(()=>n.disconnect())}),Ge(()=>{mn.value=0});let gn=d(()=>{let e=M.value.timeLabels;if(!e.show)return 0;let t=e.fontSize,n=e.rotation,r=Math.PI/180*n,i=G.value||[];if(!i.length)return 0;let a=i.reduce((e,t)=>{let n=String(t?.text??``).split(`
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,t as n}from"./tableIntegration-CNoJ1CIY.js";import{n as r,t as i}from"./annotationSlots-BRR85CqJ.js";import{n as a,t as o}from"./userOptionsSlots-DYuo-E5m.js";import{$ as ee,At as s,D as c,Ht as l,J as te,P as ne,S as re,U as ie,X as ae,at as oe,c as se,i as ce,in as le,nn as ue,nt as de,r as fe,t as pe,w as me,yt as he,zt as ge}from"./lib-CV_IANZ6.js";import{n as _e,t as ve}from"./useHints-BH9r_0Vd.js";import{t as ye}from"./useTimeLabels-Das5O74F.js";import{t as be}from"./useConfig-CKdzPrcf.js";import{t as xe}from"./usePrinter-hLW3cv4N.js";import{n as Se,t as Ce}from"./BaseScanner-8NdoBs7B.js";import{t as we}from"./useNestedProp-CB186vF2.js";import{t as Te}from"./useThemeCheck-BKNRbGeC.js";import{t as Ee}from"./useChartExport-DtPNpc9M.js";import{t as De}from"./useTimeLabelCollider-XQf_S7-z.js";import{n as Oe}from"./Title-BGYFqulv.js";import{t as ke}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{l as Ae,t as je}from"./useResponsive-D2CPcpda.js";import{t as Me}from"./A11yDataTable-DWNlWXzs.js";import{t as Ne}from"./useUserOptionState-CXlFnwPv.js";import{t as Pe}from"./useChartAccessibility-DOMuYJfm.js";import{t as Fe}from"./chartImage-CIvU_04o.js";import{t as Ie}from"./vue_ui_bump-KJL9GYr4.js";import{t as Le}from"./BaseDraggableDialog-D_tuHEjO.js";import{Fragment as u,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createSlots as Re,createTextVNode as ze,createVNode as Be,defineAsyncComponent as g,guardReactiveProps as Ve,mergeProps as He,normalizeClass as Ue,normalizeProps as We,normalizeStyle as _,onBeforeUnmount as Ge,onMounted as Ke,openBlock as v,ref as y,renderList as b,renderSlot as x,resolveDynamicComponent as qe,shallowRef as Je,toDisplayString as S,toRefs as Ye,unref as C,watch as Xe,watchEffect as Ze,withCtx as w}from"vue";var Qe=/* @__PURE__ */ e({default:()=>vt}),$e=[`id`],et=[`id`],tt={style:{position:`relative`}},nt=[`xmlns`,`aria-describedby`,`viewBox`],rt=[`x`,`y`,`width`,`height`],it=[`d`,`stroke`,`stroke-width`,`onMouseenter`],at=[`d`,`stroke`,`stroke-width`,`onMouseenter`,`onMouseleave`,`onClick`],ot=[`cx`,`cy`,`r`,`fill`,`stroke`,`stroke-width`,`onMouseenter`,`onMouseleave`,`onClick`],st=[`x`,`y`,`fill`,`font-size`],ct=[`onMouseenter`,`onMouseleave`,`onClick`],lt=[`x`,`y`,`fill`,`font-size`],ut=[`x`,`y`,`fill`,`font-size`,`font--weight`,`innerHTML`,`onMouseenter`,`onMouseleave`,`onClick`],dt=[`x`,`y`,`fill`,`font-size`,`font--weight`,`innerHTML`,`onMouseenter`,`onMouseleave`,`onClick`],ft={key:0},pt={key:1},mt=[`text-anchor`,`font-size`,`font-weight`,`fill`,`stroke`,`transform`],ht=[`text-anchor`,`font-size`,`fill`,`transform`,`innerHTML`],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=/*#__PURE__*/ ke({__name:`vue-ui-bump`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`copyAlt`],setup(e,{expose:ke,emit:Qe}){let vt=g(()=>import(`./BaseIcon-DdIyewwY.js`).then(e=>e.n)),yt=g(()=>import(`./vue-ui-accordion-BNvevckx.js`).then(e=>e.n)),bt=g(()=>import(`./DataTable-WNecJMcY.js`)),xt=g(()=>import(`./PenAndPaper-IMw576MC.js`).then(e=>e.t)),St=g(()=>import(`./UserOptions-DTxMeZv3.js`).then(e=>e.n)),Ct=g(()=>import(`./PackageVersion-CdkxOy58.js`).then(e=>e.t)),{vue_ui_bump:wt}=be(),{isThemeValid:Tt,warnInvalidTheme:Et}=Te(),T=e,Dt=Qe,Ot=d({get(){return!!T.dataset&&T.dataset.length},set(e){return e}}),E=y(null),D=y(ae()),kt=y(0),At=y(null),jt=y(null),Mt=y(null),Nt=y(!1),Pt=y(!1),Ft=y(0),It=y(0),Lt=y(null),Rt=y(null),zt=y(!1),O=y(null),Bt=y(null),Vt=y(null),Ht=y(null),k=y(null),Ut=y(!1),A=y(Jt()),j=d(()=>A.value.style.chart.layout.plots),M=d(()=>A.value.style.chart.layout),N=d(()=>A.value.style.chart),P=d(()=>A.value.userOptions);_e({config:()=>A.value,dataset:()=>T.dataset,component:`VueUiBump`,rules:[ve.emptyArray,{test:e=>e.length>31,message:[`👀 The number of series > 31. Consider:`,``,`▶️ Using filters to let users choose a maximum number of series to display`,``,`▶️ Use several instances of the component to show related series`]},{test:e=>e.length===1,message:[`👀 There is only 1 series in your dataset. Consider:`,``,`▶️ Using a line chart, with VueUiXy.`]},{test:e=>e.some(e=>e.values.length>31),message:[`👀 Some series contain > 31 data points, which can make the chart hard to read. Consider:`,``,`▶️ Use filters to show less data points at a time.`,``,`▶️ Use larger time scales, or aggregated values.`]}]});let F=d(()=>A.value.userOptions.useCursorPointer),Wt=d(()=>le({defaultConfig:{userOptions:{show:!1},style:{chart:{backgroundColor:`#99999930`,layout:{timeLabels:{show:!1},lines:{coatingColor:`#4A4A4A`},plots:{stroke:`#4A4A4A`,labels:{show:!1,displayedValue:`rank`}},nameLabels:{useSerieColor:!0}}}}},userConfig:A.value.skeletonConfig??{}})),{loading:Gt,FINAL_DATASET:Kt,manualLoading:qt}=Se({...Ye(T),FINAL_CONFIG:A,prepareConfig:Jt,skeletonDataset:T.config?.skeletonDataset??[{name:`————`,values:[1,1,1,2,2,2,3,3,2,2],color:`#4A4A4A`},{name:`————`,values:[2,2,2,1,3,3,2,2,3,3],color:`#6A6A6A`},{name:`————`,values:[3,3,3,3,1,1,1,1,1,1],color:`#8A8A8A`}],skeletonConfig:le({defaultConfig:A.value,userConfig:Wt.value})});Ke(ln);function Jt(){let e=we({userConfig:T.config,defaultConfig:wt}),t={},n=e.theme;if(n){if(!Tt.value(e))Et(e),t=e;else{let r=we({userConfig:Ie[n]||T.config,defaultConfig:e});t={...we({userConfig:T.config,defaultConfig:r}),customPalette:e.customPalette.length?e.customPalette:ue[n]||l}}}else t=e;return t}let{userOptionsVisible:Yt,setUserOptionsVisibility:Xt,keepUserOptionState:Zt}=Ne({config:A.value}),{svgRef:I}=Pe({config:N.value.title});function Qt(){zt.value=!0,Xt(!0)}function $t(){Xt(!1),zt.value=!1}let L=y({showTable:A.value.table.show});Xe(A,()=>{L.value={showTable:A.value.table.show}},{immediate:!0}),Xe(()=>T.config,e=>{Gt.value||(A.value=Jt()),Yt.value=!A.value.userOptions.showOnChartHover,ln(),Ft.value+=1,It.value+=1,L.value.showTable=A.value.table.show,R.value.width=N.value.width,R.value.height=N.value.height,R.value.paddingRatio={top:N.value.padding.top/N.value.height,right:N.value.padding.right/N.value.width,bottom:N.value.padding.bottom/N.value.height,left:N.value.padding.left/N.value.width}}),Xe(()=>T.dataset,e=>{Array.isArray(e)&&e.length>0&&(qt.value=!1)},{deep:!0});let{isPrinting:en,isImaging:tn,generatePdf:nn,generateImage:rn}=xe({elementId:`bump_${D.value}`,fileName:N.value.title.text||`vue-ui-bump`,options:A.value.userOptions.print}),an=d(()=>A.value.userOptions.show&&!N.value.title.text),R=y({width:N.value.width,height:N.value.height,paddingRatio:{top:N.value.padding.top/N.value.height,right:N.value.padding.right/N.value.width,bottom:N.value.padding.bottom/N.value.height,left:N.value.padding.left/N.value.width}}),on=d(()=>me(A.value.customPalette)),z=Je(null),B=Je(null),sn=y(null),cn=d(()=>A.value.debug);function ln(){if(ge(T.dataset)?(oe({componentName:`VueUiBump`,type:`dataset`,debug:cn.value}),qt.value=!0):T.dataset.forEach((e,t)=>{he({datasetObject:e,requiredAttributes:[`name`,`values`]}).forEach(e=>{Ot.value=!1,oe({componentName:`VueUiBump`,type:`datasetSerieAttribute`,property:e,index:t,debug:cn.value}),qt.value=!0})}),ge(T.dataset)||(qt.value=A.value.loading),setTimeout(()=>{Pt.value=!0},10),A.value.responsive){let e=Ae(()=>{Pt.value=!1;let{width:e,height:t}=je({chart:E.value,noTitle:jt.value,title:N.value.title.text?At.value:null,legend:null,slicer:null,source:Mt.value});requestAnimationFrame(()=>{R.value.width=e,R.value.height=t-12,clearTimeout(sn.value),sn.value=setTimeout(()=>{Pt.value=!0},10)})});z.value&&(B.value&&z.value.unobserve(B.value),z.value.disconnect()),z.value=new ResizeObserver(e),B.value=E.value.parentNode,z.value.observe(B.value)}}Ge(()=>{z.value&&(B.value&&z.value.unobserve(B.value),z.value.disconnect())});let un=d(()=>Kt.value.map((e,t)=>{let n=re(e.color)||on.value[t]||l[t]||l[t%l.length];return{...e,absoluteIndex:t,id:ae(),color:n}})),V=d(()=>Math.max(...un.value.map(e=>e.values.length)));function dn(e){let t=e.map(()=>Array(V.value).fill(null));for(let n=0;n<V.value;n+=1){let r=e.map((e,r)=>({seriesIndex:r,value:e.values?.[n],previousPosition:n>0?t[r][n-1]:r})).filter(e=>Number.isFinite(e.value));r.sort((e,t)=>t.value===e.value?e.previousPosition-t.previousPosition:t.value-e.value);for(let e=0;e<r.length;e+=1){let i=r[e];t[i.seriesIndex][n]=e}}return t}function fn(){let e=0;return Bt.value&&(e=Array.from(Bt.value.querySelectorAll(`tspan`)).reduce((e,t)=>{let n=t.getComputedTextLength();return n>e?n:e},0)),e}function pn(){let e=0;return Vt.value&&(e=Array.from(Vt.value.querySelectorAll(`tspan`)).reduce((e,t)=>{let n=t.getComputedTextLength();return n>e?n:e},0)),e}let mn=y(0),hn=Ae(e=>{mn.value=e},100);Ze(e=>{let t=Ht.value;if(!t)return;let n=new ResizeObserver(e=>{hn(e[0].contentRect.height)});n.observe(t),e(()=>n.disconnect())}),Ge(()=>{mn.value=0});let gn=d(()=>{let e=M.value.timeLabels;if(!e.show)return 0;let t=e.fontSize,n=e.rotation,r=Math.PI/180*n,i=G.value||[];if(!i.length)return 0;let a=i.reduce((e,t)=>{let n=String(t?.text??``).split(`
2
2
  `).length;return Math.max(e,n)},1),o=i.reduce((e,t)=>{let n=String(t?.text??``).split(`
3
3
  `).reduce((e,t)=>Math.max(e,t.length),0);return Math.max(e,n)},0),ee=t*1.3*a,s=o*t*(o===1?1:.6),c=Math.abs(Math.sin(r))*s+Math.abs(Math.cos(r))*ee,l=t*.3;return Math.max(0,c+Math.abs(e.offsetY)+l)}),H=d(()=>{let{height:e,width:t}=R.value,{right:n,left:r}=R.value.paddingRatio,i=fn(),a=pn(),o=N.value.padding.top,ee=t-t*n-a,s=t*r+i,c=t-t*n-t*r-i-a,l=e-o-N.value.padding.bottom-gn.value,te=o+l,ne=o+l,re=Math.max(0,e);return{chartHeight:ne,chartWidth:Math.max(0,t),top:o,right:Math.max(0,ee),bottom:Math.max(0,te),left:Math.max(0,s),width:Math.max(0,c),height:Math.max(0,l),unitH:Math.max(0,l)/un.value.length,unitW:Math.max(0,c)/V.value,svgHeight:re}}),U=d(()=>{if(!Ot.value&&!Gt.value)return[];let e=dn(un.value);return un.value.map((t,n)=>({...t,positions:e[n]})).map(e=>{let t=e.positions.map((t,n)=>{let r=ce(j.value.labels.formatter,e.values[n],ee({p:j.value.labels.prefix,v:e.values[n],s:j.value.labels.suffix,r:j.value.labels.rounding}));return{name:e.name,id:e.id,x:H.value.left+n*H.value.unitW+H.value.unitW/2,y:H.value.top+t*H.value.unitH+H.value.unitH/2,value:e.values[n],displayValue:r,rank:e.positions[n]+1,color:e.color,labelColor:j.value.labels.color===`auto`?fe(e.color):re(j.value.labels.color)??fe(e.color)}}),n=t.filter(e=>s(e.value)),r=M.value.lines.smooth?ne(n):ie(n);return{...e,coordinates:t,path:r}})});d(()=>U.value.flatMap((e,t)=>e.coordinates.map((n,r)=>({...n,pointIndex:r,seriesIndex:t,seriesId:e.id,seriesName:e.name,pointId:`${e.id}_${r}`})).filter(e=>s(e.value))));function _n(e,t,n,r){let i=e.toSorted((e,t)=>e.y-t.y);for(let e=1;e<i.length;e+=1){let n=i[e-1],r=i[e];r.y<n.y+t&&(r.y=n.y+t)}let a=i.length-1;if(a>=0&&i[a].y>r){i[a].y=r;for(let e=a-1;e>=0;--e){let n=i[e+1],r=i[e];r.y>n.y-t&&(r.y=n.y-t)}}if(i.length&&i[0].y<n){let e=n-i[0].y;for(let t=0;t<i.length;t+=1)i[t].y+=e}return i}let vn=d(()=>{let e=[],t=[];U.value.forEach(n=>{let r=n.coordinates.filter(e=>Number.isFinite(e.rank));if(!r.length)return;e.push({...r[0]});let i=r[r.length-1];t.push({...i})});let n=M.value.nameLabels.fontSize,r=n*1.4,i=H.value.top+n,a=H.value.bottom-n,o=_n(t,r,i,a);return{left:_n(e,r,i,a),right:o}});function yn(e){let t=j.value.labels.fontSize*.4,n=e.displayValue,r=n.length*(j.value.labels.fontSize*(n.length===1?1:.6)),i=j.value.labels.fontSize,a=r+t*2,o=i+t*2,ee=e.x-a/2,s=e.y-o/2,c=j.value.strokeWidth;return{x:ee-c/2,y:s-c/2,width:a+c,height:o+c,fill:e.color,stroke:j.value.stroke,"stroke-width":c,rx:o/2}}let W=y([]),bn=0;Ze(()=>{let e=++bn,t=M.value.timeLabels,n=t.values,r=t.datetimeFormatter,i=V.value;if(!i||!Array.isArray(n)||n.length===0){W.value=[];return}(async()=>{let t=await ye({values:n,maxDatapoints:i,formatter:r,start:0,end:i});e===bn&&(W.value=t)})()});let G=d(()=>{let e=M.value.timeLabels,t=W.value||[],n=W.value||[],r=V.value,i=t.map(e=>e?.text??``),a=n.map(e=>e?.text??``);return se(!!e.showOnlyFirstAndLast,!!e.showOnlyAtModulo,Math.max(1,Number(e.modulo)||1),i,a,0,null,r)}),xn=d(()=>R.value.width),Sn=d(()=>R.value.height),Cn=d(()=>({start:0,end:V.value})),K=d(()=>[...U.value].map(e=>{let t=[...e.coordinates].filter(e=>s(e.value)).at(-1);return{...e,navigationRank:t?.rank??1/0}}).sort((e,t)=>e.navigationRank-t.navigationRank));function wn(){k.value=null,Ut.value=!0}function Tn(){Dn(),Ut.value=!1}function En(e,t){let n=K.value.length;return n?e===null||e<0||e>=n?0:t===`previous`?(e-1+n)%n:(e+1)%n:null}function Dn(){if(k.value!==null){let e=K.value[k.value];e&&Q(e,e)}k.value=null,O.value=null}function On(e){if(!I.value||J.value||document.activeElement!==I.value||!K.value.length)return;let t=[`ArrowLeft`,`ArrowUp`].includes(e.key),n=[`ArrowRight`,`ArrowDown`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){Dn();return}if(r){if(k.value===null)return;let e=K.value[k.value];if(!e)return;$(e,e);return}let a=k.value;a===null?a=0:t?a=En(a,`previous`):n&&(a=En(a,`next`));let o=K.value[a];o&&(k.value=a,Z(o,o))}let q=d(()=>({head:X.value.head,body:U.value.map(e=>[e.name,...e.coordinates.map(e=>s(e.value)?`${e.displayValue} (${e.rank})`:`-`)]),caption:A.value.a11y.translations.tableCaption,notice:A.value.a11y.translations.tableAvailable}));De({timeLabelsEls:Ht,timeLabels:W,slicer:Cn,configRef:A,rotationPath:[`style`,`chart`,`layout`,`timeLabels`,`rotation`],autoRotatePath:[`style`,`chart`,`layout`,`timeLabels`,`autoRotate`,`enable`],isAutoSize:!1,width:xn,height:Sn,rotation:M.value.timeLabels.autoRotate.angle});let J=y(!1);function kn(){J.value=!J.value}function An(e){Nt.value=e,kt.value+=1}function jn(){L.value.showTable=!L.value.showTable}Xe(()=>L.value.showTable,e=>t(e,A,Lt));function Mn(){L.value.showTable=!1,Rt.value&&Rt.value.setTableIconState(!1)}function Nn(){return U.value}function Pn(e=null){let t=[[N.value.title.text],[N.value.title.subtitle.text],[``]],n=[``,...G.value.map(e=>e?.text??``)],r=U.value.map(e=>[e.name,...e.coordinates.map(e=>`${e.displayValue}`)]),i=U.value.map(e=>[e.name,...e.coordinates.map(e=>`${e.rank}`)]),a=t.concat([[A.value.table.columnNames.values]]).concat([n]).concat(r).concat([[``],[A.value.table.columnNames.ranking],[n]]).concat(i),o=c(a);e?e(o):de({csvContent:o,title:N.value.title.text||`vue-ui-bump`})}let Y=d(()=>n({config:A,style:N,mutableConfig:L,dialog:Le,accordion:yt,isFullscreen:Nt,parent:E,maxWidth:800,isCursorPointer:F})),X=d(()=>({head:[``].concat(G.value.map(e=>e.text)),body:U.value.map((e,t)=>[e.name,...e.coordinates.map(e=>`${e.displayValue} (${e.rank})`)]),config:{th:{backgroundColor:A.value.table.th.backgroundColor,color:A.value.table.th.color,outline:A.value.table.th.outline},td:{backgroundColor:A.value.table.td.backgroundColor,color:A.value.table.td.color,outline:A.value.table.td.outline},breakpoint:A.value.table.responsiveBreakpoint},colNames:[A.value.table.columnNames.series]})),Fn=d(()=>N.value.backgroundColor),In=d(()=>N.value.title),{isCallbackImaging:Ln,isCallbackSvg:Rn,generateSvg:zn,onGenerateImage:Bn}=Ee({svg:I,title:In,legend:null,legendItems:null,backgroundColor:Fn,getSvgCallback:()=>A.value.userOptions.callbacks.svg,generateImage:rn}),Vn=Fe(E,()=>N.value.title.text);function Z(e,t){O.value=t.id,A.value.events.datapointEnter&&A.value.events.datapointEnter({datapoint:e,seriesIndex:e?.pointIndex??null})}function Q(e,t){O.value=null,A.value.events.datapointLeave&&A.value.events.datapointLeave({datapoint:e,seriesIndex:e?.pointIndex??null})}function $(e,t){A.value.events.datapointClick&&A.value.events.datapointClick({datapoint:e,seriesIndex:e?.pointIndex??null})}async function Hn(){if(Dt(`copyAlt`,{config:A.value,dataset:U.value}),!A.value.userOptions.callbacks.altCopy){console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");return}await Promise.resolve(A.value.userOptions.callbacks.altCopy({config:A.value,dataset:U.value}))}return ke({getData:Nn,getImage:Vn,generatePdf:nn,generateCsv:Pn,generateImage:rn,generateSvg:zn,toggleTable:jn,toggleAnnotator:kn,toggleFullscreen:An,copyAlt:Hn}),(e,t)=>(v(),m(`div`,{id:`bump_${D.value}`,ref_key:`bumpChart`,ref:E,class:Ue({"vue-data-ui-component":!0,"vue-ui-bump":!0,"vue-data-ui-wrapper-fullscreen":Nt.value}),style:_(`background:${N.value.backgroundColor};color:${N.value.color};font-family:${A.value.style.fontFamily}; position: relative; ${A.value.responsive?`height: 100%`:``}`),onMouseenter:Qt,onMouseleave:$t},[h(`p`,{id:`chart-instructions-${D.value}`,class:`sr-only`},S(A.value.a11y.translations.keyboardNavigation),9,et),q.value.body.length?(v(),f(Me,{key:0,uid:D.value,head:q.value.head,body:q.value.body,caption:q.value.caption,notice:q.value.notice},null,8,[`uid`,`head`,`body`,`caption`,`notice`])):p(``,!0),P.value.buttons.annotator?(v(),f(C(xt),{key:1,svgRef:C(I),backgroundColor:N.value.backgroundColor,color:N.value.color,active:J.value,isCursorPointer:F.value,palette:P.value.annotatorPalette,onClose:kn},Re({_:2},[b(C(i),t=>({name:t,fn:w(n=>[x(e.$slots,t,We(Ve(C(r)(t,n))),void 0,!0)])}))]),1032,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):p(``,!0),x(e.$slots,`userConfig`,{},void 0,!0),an.value?(v(),m(`div`,{key:2,ref_key:`noTitle`,ref:jt,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):p(``,!0),N.value.title.text?(v(),m(`div`,{key:3,ref_key:`chartTitle`,ref:At,style:`width:100%;background:transparent;`},[(v(),f(Oe,{key:`title_${Ft.value}`,config:{title:{cy:`bump-title`,...N.value.title},subtitle:{cy:`bump-subtitle`,...N.value.title.subtitle}}},null,8,[`config`]))],512)):p(``,!0),P.value.show&&Ot.value&&(C(Zt)||C(Yt))?(v(),f(C(St),{ref_key:`userOptionsRef`,ref:Rt,key:`user_option_${kt.value}`,backgroundColor:N.value.backgroundColor,color:N.value.color,isPrinting:C(en),isImaging:C(tn),uid:D.value,hasTooltip:!1,hasPdf:P.value.buttons.pdf,hasImg:P.value.buttons.img,hasSvg:P.value.buttons.svg,hasXls:P.value.buttons.csv,hasTable:P.value.buttons.table,hasLabel:!1,hasAltCopy:P.value.buttons.altCopy,hasFullscreen:P.value.buttons.fullscreen,isFullcreen:Nt.value,chartElement:E.value,position:P.value.position,titles:{...P.value.buttonTitles},hasAnnotator:P.value.buttons.annotator,isAnnotation:J.value,callbacks:P.value.callbacks,printScale:P.value.print.scale,tableDialog:A.value.table.useDialog,isCursorPointer:F.value,onToggleFullscreen:An,onGeneratePdf:C(nn),onGenerateCsv:Pn,onGenerateImage:C(Bn),onGenerateSvg:C(zn),onToggleTable:jn,onToggleAnnotator:kn,onCopyAlt:Hn,style:_({visibility:C(Zt)?C(Yt)?`visible`:`hidden`:`visible`})},Re({_:2},[b(C(a)(e.$slots,`menuIcon optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:w(n=>[x(e.$slots,t,We(Ve(C(o)(t,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasAltCopy.hasFullscreen.isFullcreen.chartElement.position.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):p(``,!0),h(`div`,tt,[(v(),m(`svg`,{ref_key:`svgRef`,ref:I,xmlns:C(pe),"aria-describedby":`chart-instructions-${D.value}`,viewBox:`0 0 ${H.value.chartWidth<=0?10:H.value.chartWidth} ${H.value.svgHeight<=0?10:H.value.svgHeight}`,class:Ue({"vue-data-ui-loading":C(Gt),"no-transition":!A.value.useCssAnimation}),style:_(`max-width:100%;overflow:visible;background:transparent;color:${N.value.color}`),role:`img`,"aria-live":`polite`,preserveAspectRatio:`xMidYMid`,tabindex:`0`,onFocus:wn,onBlur:Tn,onKeydown:On},[Be(C(Ct)),e.$slots[`chart-background`]?(v(),m(`foreignObject`,{key:0,x:H.value.left,y:H.value.top,width:H.value.width<=0?10:H.value.width,height:H.value.height<=0?10:H.value.height,style:{pointerEvents:`none`}},[x(e.$slots,`chart-background`,{},void 0,!0)],8,rt)):p(``,!0),(v(!0),m(u,null,b(U.value,e=>(v(),m(u,null,[h(`path`,{class:`transition-opacity`,d:`M${e.path}`,stroke:M.value.lines.coatingColor,"stroke-width":M.value.lines.strokeWidth+2,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`,style:_({opacity:O.value==null||O.value===e.id?1:.1}),onMouseenter:t=>O.value=e.id,onMouseleave:t[0]||=e=>O.value=null},null,44,it),h(`path`,{class:`transition-opacity`,d:`M${e.path}`,stroke:e.color,"stroke-width":M.value.lines.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`,style:_({opacity:O.value==null||O.value===e.id?1:.1}),onMouseenter:t=>Z(e,e),onMouseleave:t=>Q(e,e),onClick:t=>$(e,e)},null,44,at)],64))),256)),(v(!0),m(u,null,b(U.value,t=>(v(),m(u,null,[j.value.labels.displayedValue===`rank`?(v(!0),m(u,{key:0},b(t.coordinates,(e,n)=>(v(),m(`circle`,{class:`transition-opacity`,cx:e.x,cy:e.y,r:j.value.radius,fill:t.color,stroke:j.value.stroke,"stroke-width":j.value.strokeWidth,style:_({opacity:O.value==null||O.value===t.id?1:.1}),onMouseenter:r=>Z({...e,pointIndex:n},t),onMouseleave:r=>Q({...e,pointIndex:n},t),onClick:r=>Z({...e,pointIndex:n},t)},null,44,ot))),256)):p(``,!0),j.value.labels.show&&j.value.labels.displayedValue===`rank`?(v(!0),m(u,{key:1},b(t.coordinates,e=>(v(),m(`text`,{class:`transition-opacity`,x:e.x,y:e.y+j.value.labels.fontSize/3,fill:e.labelColor,"font-size":j.value.labels.fontSize,"text-anchor":`middle`,style:_({userSelect:`none`,pointerEvents:`none`,opacity:O.value==null||O.value===t.id?1:.1})},S(e.rank),13,st))),256)):p(``,!0),j.value.labels.displayedValue===`value`?(v(!0),m(u,{key:2},b(t.coordinates,n=>(v(),m(u,null,[C(s)(n.value)?(v(),m(`rect`,He({key:0,class:`transition-opacity`},{ref_for:!0},yn(n),{style:{opacity:O.value==null||O.value===t.id?1:.1},onMouseenter:n=>Z({...e.point,pointIndex:e.i},t),onMouseleave:n=>Q({...e.point,pointIndex:e.i},t),onClick:n=>Z({...e.point,pointIndex:e.i},t)}),null,16,ct)):p(``,!0),C(s)(n.value)&&j.value.labels.show?(v(),m(`text`,{key:1,class:`transition-opacity`,x:n.x,y:n.y+j.value.labels.fontSize/3,fill:n.labelColor,"font-size":j.value.labels.fontSize,"text-anchor":`middle`,style:_({userSelect:`none`,pointerEvents:`none`,opacity:O.value==null||O.value===t.id?1:.1})},S(n.displayValue),13,lt)):p(``,!0)],64))),256)):p(``,!0)],64))),256)),M.value.nameLabels.leftLabels.show?(v(),m(`g`,{key:1,ref_key:`labelsLeft`,ref:Bt},[(v(!0),m(u,null,b(vn.value.left.filter(e=>C(s)(e.value)),(e,t)=>(v(),m(`text`,{class:`transition-opacity`,x:H.value.left,y:e.y+M.value.nameLabels.fontSize/3,fill:M.value.nameLabels.useSerieColor?e.color:M.value.nameLabels.color,"font-size":M.value.nameLabels.fontSize,"font--weight":M.value.nameLabels.bold?`bold`:`normal`,"text-anchor":`end`,innerHTML:C(te)({content:e.name,fontSize:M.value.nameLabels.fontSize,fill:M.value.nameLabels.useSerieColor?e.color:M.value.nameLabels.color,x:H.value.left-M.value.nameLabels.offsetX,y:e.y+M.value.nameLabels.fontSize/3,translateY:!0}),style:_({opacity:O.value==null||O.value===e.id?1:.1}),onMouseenter:t=>Z(e,e),onMouseleave:t=>Q(e,e),onClick:t=>$(e,e)},null,44,ut))),256))],512)):p(``,!0),M.value.nameLabels.rightLabels.show?(v(),m(`g`,{key:2,ref_key:`labelsRight`,ref:Vt},[(v(!0),m(u,null,b(vn.value.right.filter(e=>C(s)(e.value)),(e,t)=>(v(),m(`text`,{class:`transition-opacity`,x:H.value.right,y:e.y+M.value.nameLabels.fontSize/3,fill:M.value.nameLabels.useSerieColor?e.color:M.value.nameLabels.color,"font-size":M.value.nameLabels.fontSize,"font--weight":M.value.nameLabels.bold?`bold`:`normal`,"text-anchor":`start`,innerHTML:C(te)({content:e.name,fontSize:M.value.nameLabels.fontSize,fill:M.value.nameLabels.useSerieColor?e.color:M.value.nameLabels.color,x:H.value.right+M.value.nameLabels.offsetX,y:e.y+M.value.nameLabels.fontSize/3,translateY:!0}),style:_({opacity:O.value==null||O.value===e.id?1:.1}),onMouseenter:t=>Z(e,e),onMouseleave:t=>Q(e,e),onClick:t=>$(e,e)},null,44,dt))),256))],512)):p(``,!0),M.value.timeLabels.show?(v(),m(`g`,{key:3,ref_key:`timeLabelsEls`,ref:Ht},[e.$slots[`time-label`]?(v(),m(`g`,ft,[(v(!0),m(u,null,b(G.value,(t,n)=>(v(),m(`g`,null,[x(e.$slots,`time-label`,He({ref_for:!0},{x:H.value.unitW*n+H.value.unitW/2+H.value.left,y:H.value.chartHeight+M.value.timeLabels.offsetY,fontSize:M.value.timeLabels.fontSize,fill:M.value.timeLabels.color,transform:`translate(${H.value.unitW*n+H.value.unitW/2+H.value.left}, ${H.value.chartHeight+M.value.timeLabels.offsetY}), rotate(${M.value.timeLabels.rotation})`,absoluteIndex:t.absoluteIndex,content:t.text,textAnchor:M.value.timeLabels.rotation>0?`start`:N.value.layout.timeLabels.rotation<0?`end`:`middle`,show:!0}),void 0,!0)]))),256))])):(v(),m(`g`,pt,[(v(!0),m(u,null,b(G.value,(e,t)=>(v(),m(`g`,null,[String(e.text).includes(`
4
4
  `)?(v(),m(`text`,{key:t+`-multi`,"text-anchor":M.value.timeLabels.rotation>0?`start`:M.value.timeLabels.rotation<0?`end`:`middle`,"font-size":M.value.timeLabels.fontSize,fill:M.value.timeLabels.color,transform:`