vue-data-ui 3.25.11 → 3.25.13

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 (205) hide show
  1. package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
  3. package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
  4. package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
  5. package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
  6. package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
  7. package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
  8. package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
  9. package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
  11. package/dist/{PackageVersion-CEvZNFTz.js → PackageVersion-D5QkTJQU.js} +1 -1
  12. package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
  13. package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
  14. package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
  15. package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
  16. package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
  17. package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
  18. package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
  91. package/dist/exposedLib-BBtjpydc.js +28 -0
  92. package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
  93. package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
  94. package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
  95. package/dist/{package-B10eQN5L.js → package-Cmcke8zR.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CZ6-MONw.js → render-common-CG1wuHZY.js} +16 -16
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +6 -0
  103. package/dist/{useConfig-D32D002m.js → useConfig-C2uy4ltq.js} +2 -0
  104. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  105. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-CEuNiBIT.js} +1 -1
  106. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  107. package/dist/utils.js +13 -13
  108. package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-BVzA0tEV.js} +70 -70
  109. package/dist/vue-data-ui.js +75 -75
  110. package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-Ckauu3d4.js} +536 -536
  111. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-yHZMJLaY.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-BczIt1-U.js +1305 -0
  113. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BGB6K6u0.js} +60 -60
  114. package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-BoTsLccZ.js} +84 -84
  115. package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-B5ztSSQO.js} +105 -105
  116. package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-BJtdA4Yu.js} +98 -98
  117. package/dist/vue-ui-carousel-table-D-3KSWok.js +467 -0
  118. package/dist/vue-ui-chestnut-W2l-W0_e.js +2016 -0
  119. package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-BFPQsMj8.js} +63 -63
  120. package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-BtPc1BR3.js} +50 -50
  121. package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-CpNOiwkt.js} +61 -61
  122. package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-i-zPwLcN.js} +44 -44
  123. package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-DtaW9a2P.js} +70 -70
  124. package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-BIlec9af.js} +4 -4
  125. package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-Bgf-n95J.js} +551 -551
  126. package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-CJlBEyxu.js} +203 -203
  127. package/dist/vue-ui-donut-evolution-C0BKntfL.js +1552 -0
  128. package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-C112YLkC.js} +87 -87
  129. package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-j4bDg9Zd.js} +99 -99
  130. package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-CVHpfBCW.js} +40 -40
  131. package/dist/vue-ui-galaxy-ChGpUWh8.js +1097 -0
  132. package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-Cp00vXfG.js} +190 -190
  133. package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-B4hDk5NO.js} +12 -12
  134. package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D6nCCsS4.js} +54 -54
  135. package/dist/vue-ui-heatmap-scVJc1cw.js +1606 -0
  136. package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-DnYUHGAK.js} +21 -21
  137. package/dist/vue-ui-history-plot-C5qAMaaW.js +1710 -0
  138. package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-nEG4uvpv.js} +85 -85
  139. package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-DOxId6xg.js} +12 -12
  140. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-BDKY7BI7.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-BknVs9VJ.js} +3 -3
  142. package/dist/vue-ui-molecule-_x232mMu.js +941 -0
  143. package/dist/vue-ui-mood-radar-D-F4855V.js +1111 -0
  144. package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-0E5IllFW.js} +481 -481
  145. package/dist/vue-ui-onion-Eip0S1H7.js +1247 -0
  146. package/dist/vue-ui-parallel-coordinate-plot-DO0sQdJw.js +1444 -0
  147. package/dist/vue-ui-quadrant-CA0ClWfL.js +1979 -0
  148. package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-D-VuAoll.js} +169 -169
  149. package/dist/vue-ui-radar-BTD7Y0Ps.js +1386 -0
  150. package/dist/vue-ui-rating-C_Qj6gnP.js +359 -0
  151. package/dist/vue-ui-relation-circle-CcxLBVFV.js +905 -0
  152. package/dist/vue-ui-ridgeline-BZrzbbhb.js +1630 -0
  153. package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-CO48GOP2.js} +78 -78
  154. package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-DrxUgZbQ.js} +136 -136
  155. package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-CeKjW4MX.js} +510 -510
  156. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-BvRwx69s.js} +6 -6
  157. package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-DnujGRyt.js} +96 -96
  158. package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-Cd_uhYGD.js} +113 -113
  159. package/dist/vue-ui-sparkgauge-hT31YEtt.js +268 -0
  160. package/dist/vue-ui-sparkhistogram-PKlTYhKA.js +589 -0
  161. package/dist/vue-ui-sparkline-BSu1uRvP.js +1610 -0
  162. package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-R0ij2vi1.js} +183 -183
  163. package/dist/vue-ui-stackbar-BrzzkGFk.js +2369 -0
  164. package/dist/vue-ui-stackline-zEX3gR3y.js +2483 -0
  165. package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-DR3N56rS.js} +253 -253
  166. package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bg6BeLrf.js} +117 -117
  167. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-C1b1Pcp8.js} +95 -95
  168. package/dist/vue-ui-table-sparkline-CkVXyequ.js +738 -0
  169. package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CqkaMF7Z.js} +23 -23
  170. package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CgJvNwBv.js} +13 -13
  171. package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-B078YJ9M.js} +30 -30
  172. package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-Cfjf8mDl.js} +77 -77
  173. package/dist/vue-ui-waffle-BZIcPa0l.js +1633 -0
  174. package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CPTm8AHn.js} +185 -185
  175. package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-DnGblUwj.js} +46 -46
  176. package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-KkcpeKqp.js} +133 -133
  177. package/dist/vue-ui-xy-C6lVqZnx.js +5367 -0
  178. package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-ClCV7xA5.js} +169 -169
  179. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-BlpCbXKR.js} +435 -435
  180. package/package.json +1 -1
  181. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  182. package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
  183. package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
  184. package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
  185. package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
  186. package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
  187. package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
  188. package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
  189. package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
  190. package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
  191. package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
  192. package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
  193. package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
  194. package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
  195. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  196. package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
  197. package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
  198. package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
  199. package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
  200. package/dist/vue-ui-sparkline-BF0Fdo6v.js +0 -1587
  201. package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
  202. package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
  203. package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
  204. package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
  205. package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
@@ -1,1305 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Ct as n, D as r, Jt as i, Pt as a, Ut as o, Wt as ee, X as s, Z as te, Zt as ne, b as c, i as l, lt as re, nt as ie, q as ae, t as oe } from "./lib-Dql7cqyA.js";
3
- import { n as se, t as ce } from "./useHints-Dq_w2E8B.js";
4
- import { t as le } from "./useConfig-D32D002m.js";
5
- import { t as ue } from "./usePrinter-hohanNCX.js";
6
- import { n as de, t as fe } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as pe } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as me } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as he } from "./useChartExport-iwOqiIWX.js";
10
- import { t as ge } from "./useTimeLabelCollider-AEcY4Ioe.js";
11
- import { t as _e } from "./img-BkMKbWsI.js";
12
- import { n as ve } from "./Title-CPHi-evi.js";
13
- import { t as ye } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { l as be, t as xe } from "./useResponsive-ZtArZtUf.js";
15
- import { t as Se } from "./DefGrad-DVBqDjhO.js";
16
- import { t as Ce } from "./A11yDataTable-DdRsVULz.js";
17
- import { t as we } from "./useUserOptionState-DK-_1ddE.js";
18
- import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
19
- import { t as Ee } from "./vue_ui_age_pyramid-B2R66DgQ.js";
20
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as De, createTextVNode as Oe, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as ke, nextTick as Ae, normalizeClass as je, normalizeProps as y, normalizeStyle as Me, onBeforeUnmount as Ne, onMounted as Pe, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Fe, shallowRef as Ie, toDisplayString as w, toRefs as Le, unref as T, watch as Re, watchEffect as ze, withCtx as E } from "vue";
21
- //#region src/components/vue-ui-age-pyramid.vue
22
- var Be = /* @__PURE__ */ e({ default: () => ht }), Ve = ["id"], He = ["id"], Ue = { style: { position: "relative" } }, We = [
23
- "xmlns",
24
- "viewBox",
25
- "aria-describedby"
26
- ], Ge = [
27
- "x",
28
- "y",
29
- "width",
30
- "height"
31
- ], Ke = [
32
- "x",
33
- "y",
34
- "width",
35
- "height",
36
- "fill",
37
- "rx"
38
- ], qe = [
39
- "x",
40
- "y",
41
- "width",
42
- "height",
43
- "fill",
44
- "rx"
45
- ], Je = [
46
- "x",
47
- "y",
48
- "width",
49
- "height",
50
- "fill",
51
- "rx"
52
- ], Ye = [
53
- "x",
54
- "y",
55
- "width",
56
- "height",
57
- "fill",
58
- "rx"
59
- ], Xe = [
60
- "x",
61
- "y",
62
- "font-size",
63
- "font-weight",
64
- "fill",
65
- "stroke"
66
- ], Ze = [
67
- "x",
68
- "y",
69
- "font-size",
70
- "font-weight",
71
- "fill",
72
- "stroke"
73
- ], Qe = { key: 0 }, $e = [
74
- "x",
75
- "y",
76
- "fill",
77
- "font-size",
78
- "font-weight"
79
- ], et = [
80
- "x",
81
- "y",
82
- "fill",
83
- "font-size",
84
- "font-weight"
85
- ], tt = { key: 1 }, nt = [
86
- "x",
87
- "y",
88
- "font-size",
89
- "fill",
90
- "font-weight"
91
- ], rt = { key: 2 }, it = { key: 0 }, at = [
92
- "x1",
93
- "x2",
94
- "y1",
95
- "y2",
96
- "stroke",
97
- "stroke-width"
98
- ], ot = [
99
- "x1",
100
- "x2",
101
- "y1",
102
- "y2",
103
- "stroke",
104
- "stroke-width"
105
- ], st = [
106
- "x1",
107
- "x2",
108
- "y1",
109
- "y2",
110
- "stroke",
111
- "stroke-width"
112
- ], ct = [
113
- "x1",
114
- "x2",
115
- "y1",
116
- "y2",
117
- "stroke",
118
- "stroke-width"
119
- ], lt = [
120
- "font-size",
121
- "fill",
122
- "text-anchor",
123
- "font-weight",
124
- "transform"
125
- ], ut = [
126
- "font-size",
127
- "fill",
128
- "text-anchor",
129
- "font-weight",
130
- "transform"
131
- ], dt = [
132
- "x",
133
- "y",
134
- "font-size",
135
- "fill",
136
- "font-weight"
137
- ], ft = [
138
- "x",
139
- "y",
140
- "width",
141
- "height",
142
- "fill",
143
- "onMouseover",
144
- "onMouseleave",
145
- "onClick"
146
- ], pt = {
147
- key: 0,
148
- style: {
149
- position: "absolute",
150
- top: "100%",
151
- left: "0",
152
- width: "100%"
153
- },
154
- "data-dom-to-png-ignore": "",
155
- "aria-hidden": "true"
156
- }, mt = {
157
- key: 5,
158
- class: "vue-data-ui-watermark"
159
- }, ht = /*#__PURE__*/ ye({
160
- __name: "vue-ui-age-pyramid",
161
- props: {
162
- config: {
163
- type: Object,
164
- default() {
165
- return {};
166
- }
167
- },
168
- dataset: {
169
- type: Array,
170
- default() {
171
- return [];
172
- }
173
- }
174
- },
175
- emits: ["copyAlt"],
176
- setup(e, { expose: ye, emit: Be }) {
177
- let ht = _(() => import("./Tooltip-hhrkQ3Lk.js")), gt = _(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), _t = _(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), vt = _(() => import("./DataTable-oiM9uWrQ.js")), yt = _(() => import("./PenAndPaper-Cd3nItcO.js").then((e) => e.t)), bt = _(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), xt = _(() => import("./PackageVersion-CEvZNFTz.js").then((e) => e.t)), St = _(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_age_pyramid: Ct } = le(), { isThemeValid: wt, warnInvalidTheme: Tt } = me(), D = e, Et = Be, Dt = d(() => !!D.dataset && D.dataset.length), O = x(ae()), k = x(!1), Ot = x(""), A = x(null), kt = x(0), j = x(null), At = x(null), jt = x(null), Mt = x(null), Nt = x(0), Pt = x(0), Ft = x(null), M = x(null), It = x(null), N = x(null), Lt = x({
178
- x: 0,
179
- y: 0
180
- }), P = x("pointer"), Rt = x(!1), F = x(Kt()), I = d(() => F.value.style), L = d(() => F.value.style.layout.dataLabels), R = d(() => F.value.style.layout.bars), z = d(() => F.value.style.layout.bars.labels);
181
- se({
182
- config: () => F.value,
183
- dataset: () => D.dataset,
184
- component: "VueUiAgePyramid",
185
- rules: [ce.emptyArray, {
186
- test: (e) => e.length > 130,
187
- message: [
188
- "👀 Dataset has > 130 points. Consider:",
189
- "",
190
- "▶️ Grouping small values into aggregated categories.",
191
- "",
192
- "▶️ Using VueUiStackline to display data in a more compact way."
193
- ]
194
- }]
195
- });
196
- let B = d(() => F.value.userOptions.useCursorPointer), zt = d(() => ne({
197
- defaultConfig: {
198
- userOptions: { show: !1 },
199
- table: { show: !1 },
200
- translations: {
201
- male: "",
202
- female: ""
203
- },
204
- style: {
205
- backgroundColor: "#99999930",
206
- layout: {
207
- bars: {
208
- left: { color: "#CACACA" },
209
- right: { color: "#999999" }
210
- },
211
- dataLabels: {
212
- xAxis: {
213
- fontSize: 0,
214
- scale: 1e3,
215
- translation: ""
216
- },
217
- yAxis: { show: !1 }
218
- },
219
- grid: { stroke: "#6A6A6A" }
220
- }
221
- }
222
- },
223
- userConfig: F.value.skeletonConfig ?? {}
224
- })), { loading: Bt, FINAL_DATASET: Vt, manualLoading: Ht } = de({
225
- ...Le(D),
226
- FINAL_CONFIG: F,
227
- prepareConfig: Kt,
228
- skeletonDataset: D.config?.skeletonDataset ?? [
229
- [
230
- "_",
231
- 9,
232
- 2,
233
- 2
234
- ],
235
- [
236
- "_",
237
- 8,
238
- 3,
239
- 3
240
- ],
241
- [
242
- "_",
243
- 7,
244
- 5,
245
- 5
246
- ],
247
- [
248
- "_",
249
- 6,
250
- 8,
251
- 8
252
- ],
253
- [
254
- "_",
255
- 5,
256
- 13,
257
- 13
258
- ],
259
- [
260
- "_",
261
- 4,
262
- 21,
263
- 21
264
- ],
265
- [
266
- "_",
267
- 3,
268
- 34,
269
- 34
270
- ],
271
- [
272
- "_",
273
- 2,
274
- 55,
275
- 55
276
- ],
277
- [
278
- "_",
279
- 1,
280
- 89,
281
- 89
282
- ],
283
- [
284
- "_",
285
- 0,
286
- 144,
287
- 144
288
- ]
289
- ],
290
- skeletonConfig: ne({
291
- defaultConfig: F.value,
292
- userConfig: zt.value
293
- })
294
- }), { userOptionsVisible: Ut, setUserOptionsVisibility: Wt, keepUserOptionState: Gt } = we({ config: F.value }), { svgRef: V } = Te({ config: F.value.style.title });
295
- function Kt() {
296
- let e = pe({
297
- userConfig: D.config,
298
- defaultConfig: Ct
299
- }), t = e.theme;
300
- if (!t) return e;
301
- if (!wt.value(e)) return Tt(e), e;
302
- let n = pe({
303
- userConfig: Ee[t] || D.config,
304
- defaultConfig: e
305
- });
306
- return pe({
307
- userConfig: D.config,
308
- defaultConfig: n
309
- });
310
- }
311
- function qt(e) {
312
- let t = te(e);
313
- return t?.style?.chart && delete t.style.tooltip, JSON.stringify(t);
314
- }
315
- let Jt = qt(D.config);
316
- Re(() => D.config, (e, t) => {
317
- let n = qt(e), r = n !== Jt;
318
- Jt = n;
319
- let i = Kt();
320
- if (!r) {
321
- F.value.style.tooltip = i.style.tooltip, W.value.showTooltip = F.value.style.tooltip.show;
322
- return;
323
- }
324
- Bt.value || (F.value = i), Ut.value = !F.value.userOptions.showOnChartHover, Xt(), Nt.value += 1, Pt.value += 1, W.value.showTable = F.value.table.show, W.value.showTooltip = F.value.style.tooltip.show;
325
- }, { deep: !0 }), Re(() => D.dataset, (e) => {
326
- Array.isArray(e) && e.length > 0 && (Ht.value = !1);
327
- }, { deep: !0 });
328
- let H = Ie(null), U = Ie(null);
329
- Pe(() => {
330
- Xt();
331
- });
332
- let Yt = d(() => F.value.debug);
333
- function Xt() {
334
- if (a(D.dataset) && (ie({
335
- componentName: "VueUiAgePyramid",
336
- type: "dataset",
337
- debug: Yt.value
338
- }), Ht.value = !0), a(D.dataset) || (Ht.value = F.value.loading), F.value.responsive) {
339
- let e = be(() => {
340
- let { width: e, height: t } = xe({
341
- chart: j.value,
342
- title: I.value.title.text ? At.value : null,
343
- source: jt.value,
344
- noTitle: Mt.value
345
- });
346
- requestAnimationFrame(() => {
347
- G.value.width = e, G.value.height = t;
348
- });
349
- });
350
- H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect()), H.value = new ResizeObserver(e), U.value = j.value.parentNode, H.value.observe(U.value);
351
- }
352
- }
353
- Ne(() => {
354
- H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect());
355
- });
356
- let { isPrinting: Zt, isImaging: Qt, generatePdf: $t, generateImage: en } = ue({
357
- elementId: `vue-ui-age-pyramid_${O.value}`,
358
- fileName: I.value.title.text || "vue-ui-age-pyramid",
359
- options: F.value.userOptions.print
360
- }), tn = d(() => F.value.userOptions.show && !I.value.title.text), W = x({
361
- showTable: F.value.table.show,
362
- showTooltip: I.value.tooltip.show
363
- });
364
- Re(F, () => {
365
- W.value = {
366
- showTable: F.value.table.show,
367
- showTooltip: I.value.tooltip.show
368
- };
369
- }, { immediate: !0 });
370
- let G = x({
371
- height: I.value.height,
372
- width: I.value.width
373
- }), nn = d(() => G.value.width), rn = d(() => G.value.height), an = x(0), on = be((e) => {
374
- an.value = e;
375
- }, 100);
376
- ze((e) => {
377
- let t = Ft.value;
378
- if (!t) return;
379
- let n = new ResizeObserver((e) => {
380
- on(e[0].contentRect.height);
381
- });
382
- n.observe(t), e(() => n.disconnect());
383
- }), Ne(() => {
384
- an.value = 0;
385
- });
386
- let K = d(() => {
387
- let e = G.value.width - I.value.layout.padding.right - I.value.layout.padding.left, t = I.value.layout.padding.left, n = G.value.width - I.value.layout.padding.right;
388
- return {
389
- top: I.value.layout.padding.top + L.value.sideTitles.fontSize + L.value.sideTitles.offsetY + 12,
390
- left: t,
391
- right: n,
392
- bottom: G.value.height - I.value.layout.padding.bottom - an.value,
393
- width: e,
394
- height: G.value.height - I.value.layout.padding.top - I.value.layout.padding.bottom - an.value - L.value.sideTitles.fontSize - L.value.sideTitles.offsetY - 12,
395
- centerX: I.value.layout.padding.left + e / 2,
396
- leftChart: {
397
- width: e / 2 - I.value.layout.centerSlit.width,
398
- right: t + e / 2 - I.value.layout.centerSlit.width
399
- },
400
- rightChart: {
401
- width: e / 2 - I.value.layout.centerSlit.width,
402
- left: t + e / 2 + I.value.layout.centerSlit.width
403
- }
404
- };
405
- }), sn = d(() => Vt.value.map((e) => L.value.yAxis.display === "age" ? e[1] : e[0])), q = d(() => {
406
- let e = cn(J.value / 5), t = [], n = [];
407
- for (let r = 0; r <= 5; r += 1) {
408
- let i = e * r, a = e * (r - 5);
409
- t.push({
410
- value: i,
411
- x: K.value.left + K.value.width / 2 + I.value.layout.centerSlit.width + i / J.value * K.value.leftChart.width
412
- }), n.push({
413
- value: Math.abs(a),
414
- x: K.value.left + K.value.width / 2 + a / J.value * K.value.leftChart.width - I.value.layout.centerSlit.width
415
- });
416
- }
417
- return {
418
- right: t,
419
- left: n
420
- };
421
- });
422
- function cn(e) {
423
- if (e === 0) return 0;
424
- let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
425
- return n = Math.round(e / t) * t, n;
426
- }
427
- let J = d(() => Math.max(...Vt.value.flatMap((e) => e.slice(-2).map((e) => c(e))))), Y = d(() => Vt.value.length), ln = d(() => Vt.value.map((e) => ({
428
- segment: e[0],
429
- age: e[1],
430
- left: {
431
- value: e[2],
432
- proportionToMax: e[2] / J.value
433
- },
434
- right: {
435
- value: e[3],
436
- proportionToMax: e[3] / J.value
437
- }
438
- }))), X = d(() => ln.value.map((e, t) => {
439
- let n = K.value.top + K.value.height / Y.value * t, r = K.value.height / Y.value - R.value.gap;
440
- return {
441
- segment: e.segment,
442
- age: e.age,
443
- left: {
444
- ...e.left,
445
- y: n,
446
- color: R.value.left.color,
447
- x: K.value.leftChart.right - e.left.proportionToMax * K.value.leftChart.width,
448
- width: c(e.left.proportionToMax * K.value.leftChart.width),
449
- height: r
450
- },
451
- right: {
452
- ...e.right,
453
- y: n,
454
- color: R.value.right.color,
455
- x: K.value.rightChart.left,
456
- width: c(e.right.proportionToMax * K.value.rightChart.width),
457
- height: r
458
- }
459
- };
460
- })), un = x(null);
461
- function dn(e) {
462
- let [t, n, r, i] = e;
463
- return {
464
- segment: t,
465
- index: n,
466
- left: r,
467
- right: i
468
- };
469
- }
470
- function fn(e, t) {
471
- F.value.events.datapointClick && F.value.events.datapointClick({
472
- datapoint: dn(t),
473
- seriesIndex: e
474
- });
475
- }
476
- function pn(e, t) {
477
- F.value.events.datapointLeave && F.value.events.datapointLeave({
478
- datapoint: dn(t),
479
- seriesIndex: e
480
- }), (P.value !== "keyboard" || N.value !== e) && (A.value = null, k.value = !1);
481
- }
482
- function mn(e) {
483
- if (!V.value) return;
484
- let t = X.value[e];
485
- if (!t) return;
486
- let n = i(K.value.left + K.value.width / 2, t.left.y + t.left.height / 2, V.value);
487
- n && (Lt.value = n);
488
- }
489
- function hn(e, t, r = "pointer") {
490
- F.value.events.datapointEnter && F.value.events.datapointEnter({
491
- datapoint: dn(t),
492
- seriesIndex: e
493
- }), A.value = e, N.value = e, P.value = r, un.value = {
494
- datapoint: t,
495
- seriesIndex: e,
496
- series: X.value,
497
- config: F.value
498
- };
499
- let i = I.value.tooltip.customFormat;
500
- if (n(i) && re(() => i({
501
- seriesIndex: e,
502
- datapoint: {
503
- segment: t[0],
504
- index: t[1],
505
- left: t[2],
506
- right: t[3]
507
- },
508
- series: X.value,
509
- config: F.value
510
- }))) Ot.value = i({
511
- seriesIndex: e,
512
- datapoint: {
513
- segment: t[0],
514
- index: t[1],
515
- left: t[2],
516
- right: t[3]
517
- },
518
- series: X.value,
519
- config: F.value
520
- });
521
- else {
522
- let n = "", r = X.value[e];
523
- n += `<div><b>${r.segment}</b></div>`, n += `<div>${F.value.translations.age}: ${l(L.value.yAxis.formatter, c(r.age), s({ v: c(r.age) }), {
524
- datapoint: t,
525
- seriesIndex: e
526
- })}</div>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${I.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="${R.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${R.value.gradient.show ? `url(#age_pyramid_left_${O.value})` : R.value.left.color}"/></svg><div>${F.value.translations.female}</div><div><b>${l(L.value.xAxis.formatter, c(r.left.value), s({ v: c(r.left.value) }), {
527
- datapoint: t,
528
- seriesIndex: e
529
- })}</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="${R.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${R.value.gradient.show ? `url(#age_pyramid_right_${O.value})` : R.value.right.color}"/></svg><div>${F.value.translations.male}</div><div><b>${l(L.value.xAxis.formatter, c(r.right.value), s({ v: c(r.right.value) }), {
530
- datapoint: t,
531
- seriesIndex: e
532
- })}</b></div></div>`, n += "</div>", n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${I.value.tooltip.borderColor}"><div>${F.value.translations.total}</div><div><b>${l(L.value.xAxis.formatter, c(r.right.value) + c(r.left.value), s({ v: c(r.right.value) + c(r.left.value) }), {
533
- datapoint: t,
534
- seriesIndex: e
535
- })}</b></div></div>`, n += "</div>", Ot.value = `<div>${n}</div>`;
536
- }
537
- k.value = !0, r === "keyboard" && Ae(() => {
538
- mn(e);
539
- });
540
- }
541
- function gn(e = null) {
542
- Ae(() => {
543
- let n = [
544
- F.value.translations.year,
545
- F.value.translations.age,
546
- F.value.translations.female,
547
- F.value.translations.male,
548
- F.value.translations.total
549
- ], i = D.dataset.map((e) => [
550
- e[0],
551
- e[1],
552
- e[2],
553
- e[3],
554
- e[2] ?? 0 + e[3] ?? 0
555
- ]), a = [
556
- [I.value.title.text],
557
- [I.value.title.subtitle.text],
558
- [
559
- [""],
560
- [""],
561
- [""]
562
- ],
563
- n
564
- ].concat(i), o = r(a);
565
- e ? e(o) : t({
566
- csvContent: o,
567
- title: I.value.title.text || "vue-ui-heatmap"
568
- });
569
- });
570
- }
571
- let Z = d(() => {
572
- let e = [
573
- F.value.translations.year,
574
- F.value.translations.age,
575
- F.value.translations.female,
576
- F.value.translations.male,
577
- F.value.translations.total
578
- ];
579
- return {
580
- head: e,
581
- body: D.dataset.map((e) => [
582
- e[0],
583
- e[1],
584
- e[2] == null ? "" : e[2].toLocaleString(),
585
- e[3] == null ? "" : e[3].toLocaleString(),
586
- (e[2] ?? 0 + e[3] ?? 0).toLocaleString()
587
- ]),
588
- config: {
589
- th: {
590
- backgroundColor: F.value.table.th.backgroundColor,
591
- color: F.value.table.th.color,
592
- outline: F.value.table.th.outline
593
- },
594
- td: {
595
- backgroundColor: F.value.table.td.backgroundColor,
596
- color: F.value.table.td.color,
597
- outline: F.value.table.td.outline
598
- },
599
- breakpoint: F.value.table.responsiveBreakpoint
600
- },
601
- colNames: e
602
- };
603
- }), Q = x(!1);
604
- function _n(e) {
605
- Q.value = e, kt.value += 1;
606
- }
607
- function vn() {
608
- W.value.showTable = !W.value.showTable;
609
- }
610
- function yn() {
611
- W.value.showTooltip = !W.value.showTooltip;
612
- }
613
- let $ = x(!1);
614
- function bn() {
615
- $.value = !$.value;
616
- }
617
- async function xn({ scale: e = 2 } = {}) {
618
- if (!j.value) return;
619
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
620
- domElement: j.value,
621
- base64: !0,
622
- img: !0,
623
- scale: e
624
- });
625
- return {
626
- imageUri: i,
627
- base64: a,
628
- title: I.value.title.text,
629
- width: t,
630
- height: n,
631
- aspectRatio: r
632
- };
633
- }
634
- let Sn = x([]), Cn = x({
635
- start: 0,
636
- end: X.value.length
637
- });
638
- ge({
639
- timeLabelsEls: Ft,
640
- timeLabels: Sn,
641
- slicer: Cn,
642
- configRef: F,
643
- rotationPath: [
644
- "style",
645
- "layout",
646
- "dataLabels",
647
- "xAxis",
648
- "rotation"
649
- ],
650
- autoRotatePath: [
651
- "style",
652
- "layout",
653
- "dataLabels",
654
- "xAxis",
655
- "autoRotate",
656
- "enable"
657
- ],
658
- isAutoSize: !1,
659
- width: nn,
660
- height: rn,
661
- targetClass: ".vue-ui-age-pyramid-x-axis-label",
662
- rotation: I.value.layout.dataLabels.xAxis.autoRotate.angle
663
- });
664
- let wn = d(() => {
665
- let e = F.value.table.useDialog && !F.value.table.show, t = W.value.showTable;
666
- return {
667
- component: e ? St : _t,
668
- title: `${I.value.title.text}${I.value.title.subtitle.text ? `: ${I.value.title.subtitle.text}` : ""}`,
669
- props: e ? {
670
- backgroundColor: F.value.table.th.backgroundColor,
671
- color: F.value.table.th.color,
672
- headerColor: F.value.table.th.color,
673
- headerBg: F.value.table.th.backgroundColor,
674
- isFullscreen: Q.value,
675
- fullscreenParent: j.value,
676
- forcedWidth: Math.min(800, window.innerWidth * .8),
677
- isCursorPointer: B.value
678
- } : {
679
- hideDetails: !0,
680
- config: {
681
- open: t,
682
- maxHeight: 1e4,
683
- body: {
684
- backgroundColor: I.value.backgroundColor,
685
- color: I.value.color
686
- },
687
- head: {
688
- backgroundColor: I.value.backgroundColor,
689
- color: I.value.color
690
- }
691
- }
692
- }
693
- };
694
- });
695
- Re(() => W.value.showTable, (e) => {
696
- F.value.table.show || (e && F.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
697
- });
698
- function Tn() {
699
- W.value.showTable = !1, It.value && It.value.setTableIconState(!1);
700
- }
701
- let En = d(() => F.value.style.backgroundColor), Dn = d(() => F.value.style.title), { isCallbackImaging: On, isCallbackSvg: kn, generateSvg: An, onGenerateImage: jn } = he({
702
- svg: V,
703
- title: Dn,
704
- legend: null,
705
- legendItems: null,
706
- backgroundColor: En,
707
- getSvgCallback: () => F.value.userOptions.callbacks.svg,
708
- generateImage: en
709
- });
710
- async function Mn() {
711
- if (Et("copyAlt", {
712
- config: F.value,
713
- dataset: X.value
714
- }), !F.value.userOptions.callbacks.altCopy) {
715
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
716
- return;
717
- }
718
- await Promise.resolve(F.value.userOptions.callbacks.altCopy({
719
- config: F.value,
720
- dataset: X.value
721
- }));
722
- }
723
- function Nn() {
724
- Rt.value = !0;
725
- }
726
- function Pn() {
727
- A.value = null, N.value = null, P.value = "pointer", k.value = !1, Rt.value = !1;
728
- }
729
- function Fn(e) {
730
- if (!V.value || $.value || document.activeElement !== V.value || !X.value.length) return;
731
- let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
732
- if (!t && !n && !r && !i) return;
733
- if (e.preventDefault(), e.stopPropagation(), i) {
734
- A.value = null, N.value = null, P.value = "pointer", k.value = !1;
735
- return;
736
- }
737
- if (r) {
738
- if (N.value === null) return;
739
- let e = D.dataset[N.value];
740
- if (!e) return;
741
- fn(N.value, e);
742
- return;
743
- }
744
- let a = N.value, o = A.value, ee = a !== null && a >= 0 && a < X.value.length, s = o !== null && o >= 0 && o < X.value.length;
745
- ee ? t ? a = a - 1 < 0 ? X.value.length - 1 : a - 1 : n && (a = a + 1 > X.value.length - 1 ? 0 : a + 1) : s ? (a = n ? o + 1 : o - 1, a >= X.value.length && (a = 0), a < 0 && (a = X.value.length - 1)) : a = n ? 0 : X.value.length - 1;
746
- let te = D.dataset[a];
747
- te && hn(a, te, "keyboard");
748
- }
749
- return ye({
750
- getImage: xn,
751
- generatePdf: $t,
752
- generateCsv: gn,
753
- generateImage: en,
754
- generateSvg: An,
755
- toggleTable: vn,
756
- toggleTooltip: yn,
757
- toggleAnnotator: bn,
758
- toggleFullscreen: _n,
759
- copyAlt: Mn
760
- }), (t, n) => (b(), m("div", {
761
- class: je(`vue-data-ui-component vue-ui-age-pyramid ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
762
- ref_key: "agePyramid",
763
- ref: j,
764
- id: `vue-ui-age-pyramid_${O.value}`,
765
- style: Me(`font-family:${I.value.fontFamily};width:100%; text-align:center;background:${I.value.backgroundColor};${F.value.responsive ? "height:100%" : ""}`),
766
- onMouseenter: n[1] ||= () => T(Wt)(!0),
767
- onMouseleave: n[2] ||= () => T(Wt)(!1)
768
- }, [
769
- h("div", {
770
- id: `chart-instructions-${O.value}`,
771
- class: "sr-only"
772
- }, [h("p", null, w(F.value.a11y.translations.keyboardNavigation), 1)], 8, He),
773
- Z.value?.body?.length ? (b(), f(Ce, {
774
- key: 0,
775
- uid: O.value,
776
- head: Z.value.head,
777
- body: Z.value.body,
778
- notice: F.value.a11y.translations.tableAvailable,
779
- caption: F.value.a11y.translations.tableCaption
780
- }, null, 8, [
781
- "uid",
782
- "head",
783
- "body",
784
- "notice",
785
- "caption"
786
- ])) : p("", !0),
787
- F.value.userOptions.buttons.annotator ? (b(), f(T(yt), {
788
- key: 1,
789
- svgRef: T(V),
790
- backgroundColor: I.value.backgroundColor,
791
- color: I.value.color,
792
- active: $.value,
793
- isCursorPointer: B.value,
794
- palette: F.value.userOptions.annotatorPalette,
795
- onClose: bn
796
- }, {
797
- "annotator-action-close": E(() => [C(t.$slots, "annotator-action-close", {}, void 0, !0)]),
798
- "annotator-action-color": E(({ color: e }) => [C(t.$slots, "annotator-action-color", y(v({ color: e })), void 0, !0)]),
799
- "annotator-action-draw": E(({ mode: e }) => [C(t.$slots, "annotator-action-draw", y(v({ mode: e })), void 0, !0)]),
800
- "annotator-action-undo": E(({ disabled: e }) => [C(t.$slots, "annotator-action-undo", y(v({ disabled: e })), void 0, !0)]),
801
- "annotator-action-redo": E(({ disabled: e }) => [C(t.$slots, "annotator-action-redo", y(v({ disabled: e })), void 0, !0)]),
802
- "annotator-action-delete": E(({ disabled: e }) => [C(t.$slots, "annotator-action-delete", y(v({ disabled: e })), void 0, !0)]),
803
- _: 3
804
- }, 8, [
805
- "svgRef",
806
- "backgroundColor",
807
- "color",
808
- "active",
809
- "isCursorPointer",
810
- "palette"
811
- ])) : p("", !0),
812
- tn.value ? (b(), m("div", {
813
- key: 2,
814
- ref_key: "noTitle",
815
- ref: Mt,
816
- class: "vue-data-ui-no-title-space",
817
- style: "height:36px; width: 100%;background:transparent"
818
- }, null, 512)) : p("", !0),
819
- I.value.title.text ? (b(), m("div", {
820
- key: 3,
821
- ref_key: "chartTitle",
822
- ref: At,
823
- style: "width:100%;background:transparent"
824
- }, [(b(), f(ve, {
825
- key: `title_${Nt.value}`,
826
- config: {
827
- title: {
828
- cy: "pyramid-div-title",
829
- ...I.value.title
830
- },
831
- subtitle: {
832
- cy: "pyramid-div-subtitle",
833
- ...I.value.title.subtitle
834
- }
835
- }
836
- }, null, 8, ["config"]))], 512)) : p("", !0),
837
- F.value.userOptions.show && Dt.value && (T(Gt) || T(Ut)) ? (b(), f(T(bt), {
838
- ref_key: "userOptionsRef",
839
- ref: It,
840
- key: `user_options_${kt.value}`,
841
- backgroundColor: I.value.backgroundColor,
842
- color: I.value.color,
843
- isImaging: T(Qt),
844
- isPrinting: T(Zt),
845
- uid: O.value,
846
- hasTooltip: F.value.userOptions.buttons.tooltip && I.value.tooltip.show,
847
- hasPdf: F.value.userOptions.buttons.pdf,
848
- hasXls: F.value.userOptions.buttons.csv,
849
- hasImg: F.value.userOptions.buttons.img,
850
- hasSvg: F.value.userOptions.buttons.svg,
851
- hasTable: F.value.userOptions.buttons.table,
852
- hasFullscreen: F.value.userOptions.buttons.fullscreen,
853
- hasAltCopy: F.value.userOptions.buttons.altCopy,
854
- isFullscreen: Q.value,
855
- isTooltip: W.value.showTooltip,
856
- titles: { ...F.value.userOptions.buttonTitles },
857
- chartElement: j.value,
858
- position: F.value.userOptions.position,
859
- hasAnnotator: F.value.userOptions.buttons.annotator,
860
- isAnnotation: $.value,
861
- callbacks: F.value.userOptions.callbacks,
862
- printScale: F.value.userOptions.print.scale,
863
- tableDialog: F.value.table.useDialog,
864
- isCursorPointer: B.value,
865
- onToggleFullscreen: _n,
866
- onGeneratePdf: T($t),
867
- onGenerateCsv: gn,
868
- onGenerateImage: T(jn),
869
- onGenerateSvg: T(An),
870
- onToggleTable: vn,
871
- onToggleTooltip: yn,
872
- onToggleAnnotator: bn,
873
- onCopyAlt: Mn,
874
- style: Me({ visibility: T(Gt) ? T(Ut) ? "visible" : "hidden" : "visible" })
875
- }, De({ _: 2 }, [
876
- t.$slots.menuIcon ? {
877
- name: "menuIcon",
878
- fn: E(({ isOpen: e, color: n }) => [C(t.$slots, "menuIcon", y(v({
879
- isOpen: e,
880
- color: n
881
- })), void 0, !0)]),
882
- key: "0"
883
- } : void 0,
884
- t.$slots.optionTooltip ? {
885
- name: "optionTooltip",
886
- fn: E(() => [C(t.$slots, "optionTooltip", {}, void 0, !0)]),
887
- key: "1"
888
- } : void 0,
889
- t.$slots.optionPdf ? {
890
- name: "optionPdf",
891
- fn: E(() => [C(t.$slots, "optionPdf", {}, void 0, !0)]),
892
- key: "2"
893
- } : void 0,
894
- t.$slots.optionCsv ? {
895
- name: "optionCsv",
896
- fn: E(() => [C(t.$slots, "optionCsv", {}, void 0, !0)]),
897
- key: "3"
898
- } : void 0,
899
- t.$slots.optionImg ? {
900
- name: "optionImg",
901
- fn: E(() => [C(t.$slots, "optionImg", {}, void 0, !0)]),
902
- key: "4"
903
- } : void 0,
904
- t.$slots.optionSvg ? {
905
- name: "optionSvg",
906
- fn: E(() => [C(t.$slots, "optionSvg", {}, void 0, !0)]),
907
- key: "5"
908
- } : void 0,
909
- t.$slots.optionTable ? {
910
- name: "optionTable",
911
- fn: E(() => [C(t.$slots, "optionTable", {}, void 0, !0)]),
912
- key: "6"
913
- } : void 0,
914
- t.$slots.optionFullscreen ? {
915
- name: "optionFullscreen",
916
- fn: E(({ toggleFullscreen: e, isFullscreen: n }) => [C(t.$slots, "optionFullscreen", y(v({
917
- toggleFullscreen: e,
918
- isFullscreen: n
919
- })), void 0, !0)]),
920
- key: "7"
921
- } : void 0,
922
- t.$slots.optionAnnotator ? {
923
- name: "optionAnnotator",
924
- fn: E(({ toggleAnnotator: e, isAnnotator: n }) => [C(t.$slots, "optionAnnotator", y(v({
925
- toggleAnnotator: e,
926
- isAnnotator: n
927
- })), void 0, !0)]),
928
- key: "8"
929
- } : void 0,
930
- t.$slots.optionAltCopy ? {
931
- name: "optionAltCopy",
932
- fn: E(({ altCopy: e }) => [C(t.$slots, "optionAltCopy", y(v({ altCopy: e })), void 0, !0)]),
933
- key: "9"
934
- } : void 0,
935
- t.$slots["custom-menu-before"] ? {
936
- name: "custom-menu-before",
937
- fn: E(() => [C(t.$slots, "custom-menu-before", {}, void 0, !0)]),
938
- key: "10"
939
- } : void 0,
940
- t.$slots["custom-menu-after"] ? {
941
- name: "custom-menu-after",
942
- fn: E(() => [C(t.$slots, "custom-menu-after", {}, void 0, !0)]),
943
- key: "11"
944
- } : void 0
945
- ]), 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),
946
- h("div", Ue, [(b(), m("svg", {
947
- ref_key: "svgRef",
948
- ref: V,
949
- xmlns: T(oe),
950
- class: je({
951
- "vue-data-ui-fullscreen--on": Q.value,
952
- "vue-data-ui-fulscreen--off": !Q.value
953
- }),
954
- viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${G.value.height <= 0 ? 10 : G.value.height}`,
955
- style: Me(`max-width:100%;overflow:visible;background:transparent;color:${I.value.color}`),
956
- tabindex: "0",
957
- "aria-describedby": `chart-instructions-${O.value}`,
958
- onFocus: Nn,
959
- onBlur: Pn,
960
- onKeydown: Fn
961
- }, [
962
- g(T(xt)),
963
- t.$slots["chart-background"] ? (b(), m("foreignObject", {
964
- key: 0,
965
- x: K.value.left,
966
- y: K.value.top,
967
- width: Math.max(.1, K.value.width),
968
- height: Math.max(.1, K.value.height),
969
- style: { pointerEvents: "none" }
970
- }, [C(t.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : p("", !0),
971
- h("defs", null, [g(Se, {
972
- t: "linear",
973
- id: `age_pyramid_left_${O.value}`,
974
- x1: "0%",
975
- y1: "0%",
976
- x2: "100%",
977
- y2: "0%",
978
- stops: [[
979
- "0%",
980
- R.value.left.color,
981
- 1
982
- ], [
983
- "100%",
984
- T(o)(T(ee)(R.value.left.color, R.value.gradient.shiftHue), 100 - R.value.gradient.intensity),
985
- 1
986
- ]]
987
- }, null, 8, ["id", "stops"]), g(Se, {
988
- t: "linear",
989
- id: `age_pyramid_right_${O.value}`,
990
- x1: "0%",
991
- y1: "0%",
992
- x2: "100%",
993
- y2: "0%",
994
- stops: [[
995
- "0%",
996
- T(o)(T(ee)(R.value.right.color, R.value.gradient.shiftHue), 100 - R.value.gradient.intensity),
997
- 1
998
- ], [
999
- "100%",
1000
- R.value.right.color,
1001
- 1
1002
- ]]
1003
- }, null, 8, ["id", "stops"])]),
1004
- (b(!0), m(u, null, S(X.value, (e, t) => (b(), m("g", null, [
1005
- h("rect", {
1006
- x: e.left.x,
1007
- y: e.left.y,
1008
- width: T(c)(e.left.width <= 0 ? 1e-4 : e.left.width),
1009
- height: e.left.height <= 0 ? 1e-4 : e.left.height,
1010
- fill: R.value.gradient.underlayer,
1011
- rx: R.value.borderRadius
1012
- }, null, 8, Ke),
1013
- h("rect", {
1014
- x: e.left.x,
1015
- y: e.left.y,
1016
- width: e.left.width <= 0 ? 1e-4 : e.left.width,
1017
- height: e.left.height <= 0 ? 1e-4 : e.left.height,
1018
- fill: R.value.gradient.show ? `url(#age_pyramid_left_${O.value})` : e.left.color,
1019
- rx: R.value.borderRadius
1020
- }, null, 8, qe),
1021
- h("rect", {
1022
- x: e.right.x,
1023
- y: e.right.y,
1024
- width: e.right.width <= 0 ? 1e-4 : e.right.width,
1025
- height: e.right.height <= 0 ? 1e-4 : e.right.height,
1026
- fill: R.value.gradient.underlayer,
1027
- rx: R.value.borderRadius
1028
- }, null, 8, Je),
1029
- h("rect", {
1030
- x: e.right.x,
1031
- y: e.right.y,
1032
- width: e.right.width <= 0 ? 1e-4 : e.right.width,
1033
- height: e.right.height <= 0 ? 1e-4 : e.right.height,
1034
- fill: R.value.gradient.show ? `url(#age_pyramid_right_${O.value})` : e.right.color,
1035
- rx: R.value.borderRadius
1036
- }, null, 8, Ye)
1037
- ]))), 256)),
1038
- (b(!0), m(u, null, S(X.value, (e, t) => (b(), m("g", null, [z.value.show ? (b(), m(u, { key: 0 }, [!z.value.showOnHover || z.value.showOnHover && A.value === t ? (b(), m("text", {
1039
- key: 0,
1040
- x: e.left.x + Math.max(1e-4, e.left.width) - z.value.offsetX - 6,
1041
- y: e.left.y + Math.max(1e-4, e.left.height / 2) + R.value.gap / 2,
1042
- "text-anchor": "end",
1043
- "dominant-baseline": "middle",
1044
- "font-size": z.value.fontSize,
1045
- "font-weight": z.value.bold ? "bold" : "normal",
1046
- fill: z.value.color,
1047
- stroke: I.value.backgroundColor,
1048
- "paint-order": "stroke fill",
1049
- "stroke-linecap": "round",
1050
- "stroke-linejoin": "round",
1051
- "stroke-width": "3"
1052
- }, w(T(l)(z.value.formatter, e.left.value, T(s)({ v: e.left.value }), {
1053
- datapoint: e.left,
1054
- seriesIndex: t
1055
- })), 9, Xe)) : p("", !0)], 64)) : p("", !0), z.value.show ? (b(), m(u, { key: 1 }, [!z.value.showOnHover || z.value.showOnHover && A.value === t ? (b(), m("text", {
1056
- key: 0,
1057
- x: e.right.x + z.value.offsetX + 6,
1058
- y: e.right.y + Math.max(1e-4, e.right.height / 2) + R.value.gap / 2,
1059
- "text-anchor": "start",
1060
- "dominant-baseline": "middle",
1061
- "font-size": z.value.fontSize,
1062
- "font-weight": z.value.bold ? "bold" : "normal",
1063
- fill: z.value.color,
1064
- stroke: I.value.backgroundColor,
1065
- "paint-order": "stroke fill",
1066
- "stroke-linecap": "round",
1067
- "stroke-linejoin": "round",
1068
- "stroke-width": "3"
1069
- }, w(T(l)(z.value.formatter, e.right.value, T(s)({ v: e.right.value }), {
1070
- datapoint: e.right,
1071
- seriesIndex: t
1072
- })), 9, Ze)) : p("", !0)], 64)) : p("", !0)]))), 256)),
1073
- h("g", null, [
1074
- L.value.sideTitles.show ? (b(), m("g", Qe, [h("text", {
1075
- x: K.value.left,
1076
- y: L.value.sideTitles.fontSize,
1077
- fill: L.value.sideTitles.useSideColor ? R.value.left.color : L.value.sideTitles.color,
1078
- "font-size": L.value.sideTitles.fontSize,
1079
- "text-anchor": "start",
1080
- "font-weight": L.value.sideTitles.bold ? "bold" : "normal"
1081
- }, w(F.value.translations.female), 9, $e), h("text", {
1082
- x: K.value.right,
1083
- y: L.value.sideTitles.fontSize,
1084
- fill: L.value.sideTitles.useSideColor ? R.value.right.color : L.value.sideTitles.color,
1085
- "font-size": L.value.sideTitles.fontSize,
1086
- "text-anchor": "end",
1087
- "font-weight": L.value.sideTitles.bold ? "bold" : "normal"
1088
- }, w(F.value.translations.male), 9, et)])) : p("", !0),
1089
- L.value.yAxis.show ? (b(), m("g", tt, [(b(!0), m(u, null, S(sn.value, (e, t) => (b(), m(u, null, [t % L.value.yAxis.showEvery === 0 && (!z.value.show || z.value.showOnHover && A.value === t || A.value === null) || (z.value.show || z.value.showOnHover) && A.value === t ? (b(), m("text", {
1090
- key: 0,
1091
- x: K.value.centerX,
1092
- y: K.value.top + K.value.height / Y.value / 2 + K.value.height / Y.value * t,
1093
- "dominant-baseline": "middle",
1094
- "text-anchor": "middle",
1095
- "font-size": L.value.yAxis.fontSize,
1096
- fill: L.value.yAxis.color,
1097
- "font-weight": L.value.yAxis.bold ? "bold" : "normal"
1098
- }, w(T(l)(L.value.yAxis.formatter, e, T(s)({ v: e }), {
1099
- datapoint: e,
1100
- seriesIndex: t
1101
- })), 9, nt)) : p("", !0)], 64))), 256))])) : p("", !0),
1102
- L.value.xAxis.show ? (b(), m("g", rt, [
1103
- I.value.layout.grid.show ? (b(), m("g", it, [h("line", {
1104
- x1: q.value.right[0].x,
1105
- x2: q.value.right.at(-1).x,
1106
- y1: K.value.bottom + L.value.xAxis.fontSize / 2,
1107
- y2: K.value.bottom + L.value.xAxis.fontSize / 2,
1108
- stroke: I.value.layout.grid.stroke,
1109
- "stroke-width": I.value.layout.grid.strokeWidth,
1110
- "stroke-linecap": "round"
1111
- }, null, 8, at), h("line", {
1112
- x1: q.value.left[0].x,
1113
- x2: q.value.left.at(-1).x,
1114
- y1: K.value.bottom + L.value.xAxis.fontSize / 2,
1115
- y2: K.value.bottom + L.value.xAxis.fontSize / 2,
1116
- stroke: I.value.layout.grid.stroke,
1117
- "stroke-width": I.value.layout.grid.strokeWidth,
1118
- "stroke-linecap": "round"
1119
- }, null, 8, ot)])) : p("", !0),
1120
- (b(!0), m(u, null, S(q.value.right, (e, t) => (b(), m("g", null, [I.value.layout.grid.show ? (b(), m("line", {
1121
- key: 0,
1122
- x1: e.x,
1123
- x2: e.x,
1124
- y1: K.value.bottom + L.value.xAxis.fontSize / 2,
1125
- y2: K.value.bottom + L.value.xAxis.fontSize / 2 + 4,
1126
- stroke: I.value.layout.grid.stroke,
1127
- "stroke-width": I.value.layout.grid.strokeWidth,
1128
- "stroke-linecap": "round"
1129
- }, null, 8, st)) : p("", !0)]))), 256)),
1130
- (b(!0), m(u, null, S(q.value.left, (e, t) => (b(), m("g", null, [I.value.layout.grid.show ? (b(), m("line", {
1131
- key: 0,
1132
- x1: e.x,
1133
- x2: e.x,
1134
- y1: K.value.bottom + L.value.xAxis.fontSize / 2,
1135
- y2: K.value.bottom + L.value.xAxis.fontSize / 2 + 4,
1136
- stroke: I.value.layout.grid.stroke,
1137
- "stroke-width": I.value.layout.grid.strokeWidth,
1138
- "stroke-linecap": "round"
1139
- }, null, 8, ct)) : p("", !0)]))), 256)),
1140
- h("g", {
1141
- ref_key: "xAxisLabels",
1142
- ref: Ft
1143
- }, [(b(!0), m(u, null, S(q.value.right, (e, t) => (b(), m("text", {
1144
- class: "vue-ui-age-pyramid-x-axis-label",
1145
- "font-size": L.value.xAxis.fontSize,
1146
- fill: L.value.xAxis.color,
1147
- "text-anchor": L.value.xAxis.rotation > 0 ? "start" : L.value.xAxis.rotation < 0 ? "end" : "middle",
1148
- "font-weight": L.value.xAxis.bold ? "bold" : "normal",
1149
- transform: `translate(${e.x}, ${K.value.bottom + L.value.xAxis.fontSize * 2}) rotate(${L.value.xAxis.rotation})`
1150
- }, w(T(l)(L.value.xAxis.formatter, e.value / L.value.xAxis.scale, T(s)({ v: e.value / I.value.layout.dataLabels.xAxis.scale }), {
1151
- datapoint: e,
1152
- seriesIndex: t
1153
- })), 9, lt))), 256)), (b(!0), m(u, null, S(q.value.left, (e, t) => (b(), m("text", {
1154
- class: "vue-ui-age-pyramid-x-axis-label",
1155
- "font-size": L.value.xAxis.fontSize,
1156
- fill: L.value.xAxis.color,
1157
- "text-anchor": L.value.xAxis.rotation > 0 ? "start" : L.value.xAxis.rotation < 0 ? "end" : "middle",
1158
- "font-weight": L.value.xAxis.bold ? "bold" : "normal",
1159
- transform: `translate(${e.x}, ${K.value.bottom + L.value.xAxis.fontSize * 2}) rotate(${L.value.xAxis.rotation})`
1160
- }, w(T(l)(L.value.xAxis.formatter, e.value / L.value.xAxis.scale, T(s)({ v: e.value / I.value.layout.dataLabels.xAxis.scale }), {
1161
- datapoint: e,
1162
- seriesIndex: t
1163
- })), 9, ut))), 256))], 512),
1164
- h("text", {
1165
- x: K.value.right,
1166
- y: G.value.height,
1167
- "text-anchor": "end",
1168
- "font-size": L.value.xAxis.fontSize,
1169
- fill: L.value.xAxis.color,
1170
- "font-weight": L.value.xAxis.bold ? "bold" : "normal"
1171
- }, w(L.value.xAxis.translation), 9, dt)
1172
- ])) : p("", !0)
1173
- ]),
1174
- (b(!0), m(u, null, S(e.dataset, (e, t) => (b(), m("g", null, [h("rect", {
1175
- x: K.value.left,
1176
- y: K.value.top + K.value.height / Y.value * t - R.value.gap / 2,
1177
- width: K.value.width <= 0 ? 1e-4 : K.value.width,
1178
- height: K.value.height / Y.value <= 0 ? 1e-4 : K.value.height / Y.value,
1179
- fill: A.value !== null && A.value === t ? T(o)(I.value.highlighter.color, I.value.highlighter.opacity) : "transparent",
1180
- onMouseover: (n) => hn(t, e, "pointer"),
1181
- onMouseleave: (n) => pn(t, e),
1182
- onClick: (n) => fn(t, e)
1183
- }, null, 40, ft)]))), 256)),
1184
- C(t.$slots, "svg", { svg: {
1185
- ...G.value,
1186
- drawingArea: K.value,
1187
- isPrintingImg: T(Zt) || T(Qt) || T(On),
1188
- isPrintingSvg: T(kn)
1189
- } }, void 0, !0)
1190
- ], 46, We)), t.$slots.hint ? (b(), m("div", pt, [C(t.$slots, "hint", y(v({
1191
- hint: F.value.a11y.translations.keyboardNavigation,
1192
- isVisible: Rt.value
1193
- })), void 0, !0)])) : p("", !0)]),
1194
- t.$slots.watermark ? (b(), m("div", mt, [C(t.$slots, "watermark", y(v({ isPrinting: T(Zt) || T(Qt) || T(On) || T(kn) })), void 0, !0)])) : p("", !0),
1195
- C(t.$slots, "legend", { legend: X.value }, void 0, !0),
1196
- t.$slots.source ? (b(), m("div", {
1197
- key: 6,
1198
- ref_key: "source",
1199
- ref: jt,
1200
- dir: "auto"
1201
- }, [C(t.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1202
- g(T(ht), {
1203
- teleportTo: I.value.tooltip.teleportTo,
1204
- show: W.value.showTooltip && k.value,
1205
- backgroundColor: I.value.tooltip.backgroundColor,
1206
- color: I.value.tooltip.color,
1207
- borderRadius: I.value.tooltip.borderRadius,
1208
- borderColor: I.value.tooltip.borderColor,
1209
- borderWidth: I.value.tooltip.borderWidth,
1210
- fontSize: I.value.tooltip.fontSize,
1211
- backgroundOpacity: I.value.tooltip.backgroundOpacity,
1212
- position: I.value.tooltip.position,
1213
- offsetX: I.value.tooltip.offsetX,
1214
- offsetY: I.value.tooltip.offsetY,
1215
- parent: j.value,
1216
- content: Ot.value,
1217
- isFullscreen: Q.value,
1218
- isCustom: I.value.tooltip.customFormat && typeof I.value.tooltip.customFormat == "function",
1219
- smooth: I.value.tooltip.smooth,
1220
- backdropFilter: I.value.tooltip.backdropFilter,
1221
- smoothForce: I.value.tooltip.smoothForce,
1222
- smoothSnapThreshold: I.value.tooltip.smoothSnapThreshold,
1223
- isA11yMode: P.value === "keyboard",
1224
- a11yPosition: Lt.value
1225
- }, {
1226
- "tooltip-before": E(() => [C(t.$slots, "tooltip-before", y(v({ ...un.value })), void 0, !0)]),
1227
- tooltip: E(() => [C(t.$slots, "tooltip", y(v({ ...un.value })), void 0, !0)]),
1228
- "tooltip-after": E(() => [C(t.$slots, "tooltip-after", y(v({ ...un.value })), void 0, !0)]),
1229
- _: 3
1230
- }, 8, [
1231
- "teleportTo",
1232
- "show",
1233
- "backgroundColor",
1234
- "color",
1235
- "borderRadius",
1236
- "borderColor",
1237
- "borderWidth",
1238
- "fontSize",
1239
- "backgroundOpacity",
1240
- "position",
1241
- "offsetX",
1242
- "offsetY",
1243
- "parent",
1244
- "content",
1245
- "isFullscreen",
1246
- "isCustom",
1247
- "smooth",
1248
- "backdropFilter",
1249
- "smoothForce",
1250
- "smoothSnapThreshold",
1251
- "isA11yMode",
1252
- "a11yPosition"
1253
- ]),
1254
- Dt.value && F.value.userOptions.buttons.table ? (b(), f(Fe(wn.value.component), ke({ key: 7 }, wn.value.props, {
1255
- ref_key: "tableUnit",
1256
- ref: M,
1257
- onClose: Tn
1258
- }), De({
1259
- content: E(() => [(b(), f(T(vt), {
1260
- key: `table_${Pt.value}`,
1261
- colNames: Z.value.colNames,
1262
- head: Z.value.head,
1263
- body: Z.value.body,
1264
- config: Z.value.config,
1265
- title: F.value.table.useDialog ? "" : wn.value.title,
1266
- withCloseButton: !F.value.table.useDialog,
1267
- isCursorPointer: B.value,
1268
- onClose: Tn
1269
- }, {
1270
- th: E(({ th: e }) => [Oe(w(e), 1)]),
1271
- td: E(({ td: e }) => [Oe(w(e), 1)]),
1272
- _: 1
1273
- }, 8, [
1274
- "colNames",
1275
- "head",
1276
- "body",
1277
- "config",
1278
- "title",
1279
- "withCloseButton",
1280
- "isCursorPointer"
1281
- ]))]),
1282
- _: 2
1283
- }, [F.value.table.useDialog ? {
1284
- name: "title",
1285
- fn: E(() => [Oe(w(wn.value.title), 1)]),
1286
- key: "0"
1287
- } : void 0, F.value.table.useDialog ? {
1288
- name: "actions",
1289
- fn: E(() => [h("button", {
1290
- tabindex: "0",
1291
- class: "vue-ui-user-options-button",
1292
- onClick: n[0] ||= (e) => gn(F.value.userOptions.callbacks.csv),
1293
- style: Me({ cursor: B.value ? "pointer" : "default" })
1294
- }, [g(T(gt), {
1295
- name: "fileCsv",
1296
- stroke: wn.value.props.color
1297
- }, null, 8, ["stroke"])], 4)]),
1298
- key: "1"
1299
- } : void 0]), 1040)) : p("", !0),
1300
- C(t.$slots, "skeleton", {}, () => [T(Bt) ? (b(), f(fe, { key: 0 })) : p("", !0)], !0)
1301
- ], 46, Ve));
1302
- }
1303
- }, [["__scopeId", "data-v-3f4fd835"]]);
1304
- //#endregion
1305
- export { Be as n, ht as t };