vue-data-ui 3.25.4 → 3.25.6

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 (213) hide show
  1. package/README.md +13 -13
  2. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  3. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  4. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  5. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  6. package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
  7. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  8. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  9. package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  10. package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
  11. package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
  12. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  13. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-hill.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-label.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +1 -1
  47. package/dist/components/vue-ui-mood-radar.js +1 -1
  48. package/dist/components/vue-ui-nested-donuts.js +1 -1
  49. package/dist/components/vue-ui-onion.js +1 -1
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +1 -1
  52. package/dist/components/vue-ui-quick-chart.js +1 -1
  53. package/dist/components/vue-ui-radar.js +1 -1
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +1 -1
  56. package/dist/components/vue-ui-ridgeline.js +1 -1
  57. package/dist/components/vue-ui-rings.js +1 -1
  58. package/dist/components/vue-ui-scatter.js +1 -1
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +1 -1
  63. package/dist/components/vue-ui-sparkgauge.js +1 -1
  64. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  65. package/dist/components/vue-ui-sparkline.js +1 -1
  66. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  67. package/dist/components/vue-ui-stackbar.js +1 -1
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +1 -1
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +1 -1
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +1 -1
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +1 -1
  76. package/dist/components/vue-ui-treemap.js +1 -1
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +1 -1
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +1 -1
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +1 -1
  83. package/dist/components/vue-ui-xy.js +1 -1
  84. package/dist/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
  85. package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
  86. package/dist/ssr/vue-ui-donut.js +1 -1
  87. package/dist/ssr/vue-ui-xy.js +1 -1
  88. package/dist/ssr.js +2 -2
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +80 -1
  91. package/dist/types/vue-ui-annotator.d.ts +58 -2
  92. package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
  93. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
  94. package/dist/utils.js +1 -1
  95. package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  96. package/dist/vue-data-ui.js +71 -71
  97. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  98. package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  99. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  100. package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
  101. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  102. package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
  103. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  104. package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  105. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  106. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  107. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  108. package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  109. package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
  110. package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
  111. package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  112. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  113. package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  114. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  115. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  116. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  117. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  118. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  119. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  120. package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
  121. package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  122. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  123. package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
  124. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  125. package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
  126. package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  127. package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  128. package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  129. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  130. package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
  131. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  132. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  133. package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
  134. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  135. package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
  136. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  137. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  138. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  139. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  140. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  141. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  142. package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  143. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  144. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  145. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  146. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  147. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  148. package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  149. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  150. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  151. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  152. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  153. package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  154. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  155. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  156. package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
  157. package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
  158. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  159. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  160. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  161. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  162. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  163. package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
  164. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  165. package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  166. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  167. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  168. package/package.json +1 -1
  169. package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
  170. package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
  171. package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
  172. package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
  173. package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
  174. package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
  175. package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
  176. package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
  177. package/dist/vue-ui-donut-DfiocufT.js +0 -2413
  178. package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
  179. package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
  180. package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
  181. package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
  182. package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
  183. package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
  184. package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
  185. package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
  186. package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
  187. package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
  188. package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
  189. package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
  190. package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
  191. package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
  192. package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
  193. package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
  194. package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
  195. package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
  196. package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
  197. package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
  198. package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
  199. package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
  200. package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
  201. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
  202. package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
  203. package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
  204. package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
  205. package/dist/vue-ui-table-BQna1wL6.js +0 -1352
  206. package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
  207. package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
  208. package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
  209. package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
  210. package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
  211. package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
  212. package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
  213. package/dist/vue-ui-xy-canvas-B_8Mu19r.js +0 -1824
@@ -1,1250 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Ct as n, D as r, G as i, Lt as a, Pt as o, S as ee, Ut as te, Vt as ne, Wt as re, X as s, Yt as ie, Zt as ae, b as oe, ht as se, i as ce, lt as le, nt as ue, q as de, t as fe, w as pe } from "./lib-Dql7cqyA.js";
3
- import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
4
- import { t as ge } from "./useConfig-CyCVHo81.js";
5
- import { t as _e } from "./usePrinter-DISD7q5m.js";
6
- import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as be } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as Se } from "./useChartExport-iwOqiIWX.js";
10
- import { t as Ce } from "./useTransitions-g_zBREk2.js";
11
- import { t as we } from "./img-DhGApYG0.js";
12
- import { n as Te } from "./Title-CPHi-evi.js";
13
- import { t as Ee } from "./Shape-CIqU-p2F.js";
14
- import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
16
- import { t as Ae } from "./DefGrad-DVBqDjhO.js";
17
- import { t as je } from "./BaseLegendToggle-__JnV08B.js";
18
- import { t as Me } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Fe } from "./labelUtils-BXX2NzRe.js";
22
- import { t as Ie } from "./Legend-X4kF4PvW.js";
23
- import { t as Le } from "./vue_ui_rings-BVgD2aMn.js";
24
- import { Fragment as Re, Teleport as ze, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Ue, nextTick as We, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Ge, onMounted as Ke, openBlock as v, ref as y, renderList as qe, renderSlot as b, resolveDynamicComponent as Je, shallowRef as Ye, toDisplayString as x, toRefs as Xe, unref as S, useSlots as Ze, watch as Qe, withCtx as C } from "vue";
25
- //#region src/components/vue-ui-rings.vue
26
- var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt = ["id"], rt = { style: { position: "relative" } }, it = [
27
- "xmlns",
28
- "viewBox",
29
- "aria-describedby"
30
- ], at = ["width", "height"], ot = { key: 1 }, st = [
31
- "stroke",
32
- "cx",
33
- "cy",
34
- "r",
35
- "fill"
36
- ], ct = [
37
- "stroke",
38
- "stroke-width",
39
- "cx",
40
- "cy",
41
- "r",
42
- "fill"
43
- ], lt = [
44
- "stroke",
45
- "stroke-width",
46
- "cx",
47
- "cy",
48
- "r",
49
- "fill"
50
- ], ut = [
51
- "cx",
52
- "cy",
53
- "r",
54
- "onMouseenter",
55
- "onMouseleave",
56
- "onClick"
57
- ], dt = [
58
- "x",
59
- "y",
60
- "width",
61
- "height",
62
- "fill",
63
- "rx"
64
- ], ft = [
65
- "cx",
66
- "cy",
67
- "r",
68
- "fill",
69
- "stroke"
70
- ], pt = [
71
- "text-anchor",
72
- "font-size",
73
- "fill",
74
- "font-weight",
75
- "transform",
76
- "onMouseenter",
77
- "onMouseleave",
78
- "onClick",
79
- "innerHTML"
80
- ], mt = {
81
- key: 0,
82
- style: {
83
- position: "absolute",
84
- top: "100%",
85
- left: "0",
86
- width: "100%"
87
- },
88
- "data-dom-to-png-ignore": "",
89
- "aria-hidden": "true"
90
- }, ht = {
91
- key: 5,
92
- class: "vue-data-ui-watermark"
93
- }, gt = ["id"], _t = ["onClick"], vt = { key: 0 }, yt = { key: 1 }, bt = /*#__PURE__*/ De({
94
- __name: "vue-ui-rings",
95
- props: {
96
- config: {
97
- type: Object,
98
- default() {
99
- return {};
100
- }
101
- },
102
- dataset: {
103
- type: Array,
104
- default() {
105
- return [];
106
- }
107
- }
108
- },
109
- emits: ["selectLegend", "copyAlt"],
110
- setup(e, { expose: De, emit: $e }) {
111
- let bt = p(() => import("./Tooltip-hhrkQ3Lk.js")), xt = p(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), St = p(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), Ct = p(() => import("./DataTable-COIO9gi4.js")), wt = p(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), Tt = p(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Et = p(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), Dt = p(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_rings: Ot } = ge(), { isThemeValid: kt, warnInvalidTheme: At } = xe(), jt = Ze(), w = e, T = y(!1), Mt = c(() => !!w.dataset && w.dataset.length), E = y(de()), D = y(!1), Nt = y(""), O = y(null), Pt = y(0), k = y(null), Ft = y(null), It = y(null), Lt = y(null), Rt = y(null), zt = y(0), Bt = y(0), Vt = y(0), Ht = y(!1), Ut = y(!1), A = y(null), Wt = y(null), j = y(null), Gt = y({
112
- x: 0,
113
- y: 0
114
- }), M = y("pointer"), Kt = y(!1), N = y($t());
115
- me({
116
- config: () => N.value,
117
- dataset: () => w.dataset,
118
- component: "VueUiRings",
119
- rules: [
120
- he.singleSeries,
121
- he.emptyArray,
122
- {
123
- test: (e) => e.length > 6,
124
- message: [
125
- "👀 The number of series is > 6. Consider:",
126
- "",
127
- "▶️ Grouping small values dynamically into a single \"Other\" series.",
128
- "",
129
- "▶️ Using filters to let users choose a maximum number of series to display.",
130
- "",
131
- "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
132
- ]
133
- }
134
- ]
135
- });
136
- let { transitionEnabled: P } = Ce({
137
- config: () => N.value.transitions,
138
- dataset: () => w.dataset
139
- }), F = c(() => N.value.userOptions.useCursorPointer), qt = c(() => ae({
140
- defaultConfig: {
141
- userOptions: { show: !1 },
142
- table: { show: !1 },
143
- style: { chart: {
144
- backgroundColor: "#99999930",
145
- layout: {
146
- rings: {
147
- stroke: "#6A6A6A",
148
- gradient: { underlayerColor: "#FFFFFF" }
149
- },
150
- labels: { dataLabels: { show: !1 } }
151
- },
152
- legend: { backgroundColor: "transparent" }
153
- } }
154
- },
155
- userConfig: N.value.skeletonConfig ?? {}
156
- })), { loading: I, FINAL_DATASET: Jt, manualLoading: Yt } = ve({
157
- ...Xe(w),
158
- FINAL_CONFIG: N,
159
- prepareConfig: $t,
160
- skeletonDataset: w.config?.skeletonDataset ?? [
161
- {
162
- name: "_",
163
- values: [13],
164
- color: "#808080"
165
- },
166
- {
167
- name: "_",
168
- values: [8],
169
- color: "#969696"
170
- },
171
- {
172
- name: "_",
173
- values: [5],
174
- color: "#ADADAD"
175
- },
176
- {
177
- name: "_",
178
- values: [3],
179
- color: "#C4C4C4"
180
- },
181
- {
182
- name: "_",
183
- values: [2],
184
- color: "#DBDBDB"
185
- }
186
- ],
187
- skeletonConfig: ae({
188
- defaultConfig: N.value,
189
- userConfig: qt.value
190
- })
191
- }), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = Ne({ config: N.value }), { svgRef: L } = Pe({ config: N.value.style.chart.title });
192
- function $t() {
193
- let e = be({
194
- userConfig: w.config,
195
- defaultConfig: Ot
196
- }), t = e.theme;
197
- if (!t) return e;
198
- if (!kt.value(e)) return At(e), e;
199
- let n = be({
200
- userConfig: Le[t] || w.config,
201
- defaultConfig: e
202
- });
203
- return {
204
- ...be({
205
- userConfig: w.config,
206
- defaultConfig: n
207
- }),
208
- customPalette: e.customPalette.length ? e.customPalette : ie[e.theme] || a
209
- };
210
- }
211
- Qe(() => w.config, (e) => {
212
- I.value || (N.value = $t()), Xt.value = !N.value.userOptions.showOnChartHover, tn(), zt.value += 1, Bt.value += 1, Vt.value += 1, H.value.showTable = N.value.table.show, H.value.showTooltip = N.value.style.chart.tooltip.show, H.value.showLabels = N.value.style.chart.layout.labels.dataLabels.show, U.value.width = N.value.style.chart.size, U.value.height = N.value.style.chart.size;
213
- }, { deep: !0 });
214
- let en = c(() => {
215
- let { markers: e } = N.value.style.chart.layout.labels.dataLabels, t = J.value / 2, n = H.value.showLabels ? e.position === "left" ? t : -t : 0, r = H.value.showLabels ? U.value.width / 2 - t : 0, i = e.position === "left" ? r : -r;
216
- return {
217
- x: N.value.responsive ? i : n / N.value.style.chart.size * U.value.width,
218
- y: 0 / N.value.style.chart.size * U.value.height
219
- };
220
- }), R = c(() => ({
221
- x: U.value.width / 2 + en.value.x,
222
- y: U.value.height / 2 + en.value.y
223
- }));
224
- Qe(() => w.dataset, (e) => {
225
- Array.isArray(e) && e.length > 0 && (Yt.value = !1);
226
- }, { deep: !0 });
227
- let z = Ye(null), B = Ye(null);
228
- Ke(() => {
229
- Ut.value = !0, tn();
230
- });
231
- let V = c(() => N.value.debug);
232
- function tn() {
233
- if (o(w.dataset) ? (ue({
234
- componentName: "VueUiRings",
235
- type: "dataset",
236
- debug: V.value
237
- }), Yt.value = !0) : w.dataset.forEach((e, t) => {
238
- e.values.length || (ue({
239
- componentName: "VueUiRings",
240
- type: "dataset",
241
- debug: V.value
242
- }), Yt.value = !0), se({
243
- datasetObject: e,
244
- requiredAttributes: ["name", "values"]
245
- }).forEach((e) => {
246
- ue({
247
- componentName: "VueUiRings",
248
- type: "datasetSerieAttribute",
249
- property: e,
250
- index: t,
251
- debug: V.value
252
- });
253
- });
254
- }), o(w.dataset) || (Yt.value = N.value.loading), N.value.responsive) {
255
- let e = Oe(() => {
256
- Ht.value = !0;
257
- let { width: e, height: t } = ke({
258
- chart: k.value,
259
- title: N.value.style.chart.title.text ? Ft.value : null,
260
- legend: N.value.style.chart.legend.show ? It.value : null,
261
- source: Lt.value,
262
- noTitle: Rt.value
263
- });
264
- requestAnimationFrame(() => {
265
- U.value.width = e, U.value.height = t - 12, Ht.value = !1;
266
- });
267
- });
268
- z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = k.value.parentNode, z.value.observe(B.value);
269
- }
270
- setTimeout(() => {
271
- T.value = !0;
272
- }, 600);
273
- }
274
- Ge(() => {
275
- z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
276
- });
277
- let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = _e({
278
- elementId: `rings_${E.value}`,
279
- fileName: N.value.style.chart.title.text || "vue-ui-rings",
280
- options: N.value.userOptions.print
281
- }), sn = c(() => N.value.userOptions.show && !N.value.style.chart.title.text), cn = c(() => pe(N.value.customPalette)), H = y({
282
- showTable: N.value.table.show,
283
- showTooltip: N.value.style.chart.tooltip.show,
284
- showLabels: N.value.style.chart.layout.labels.dataLabels.show
285
- });
286
- Qe(N, () => {
287
- H.value = {
288
- showTable: N.value.table.show,
289
- showTooltip: N.value.style.chart.tooltip.show,
290
- showLabels: N.value.style.chart.layout.labels.dataLabels.show
291
- };
292
- }, { immediate: !0 });
293
- let U = y({
294
- height: N.value.style.chart.size,
295
- width: N.value.style.chart.size
296
- }), ln = c(() => Math.min(U.value.height, U.value.width)), un = $e, W = y([]);
297
- function dn() {
298
- W.value.length ? W.value = [] : yn.value.forEach((e) => {
299
- W.value.push(e.uid);
300
- }), fn();
301
- }
302
- function fn() {
303
- un("selectLegend", q.value.map((e) => ({
304
- name: e.name,
305
- color: e.color,
306
- value: e.value
307
- })));
308
- }
309
- function pn(e) {
310
- if (W.value.includes(e)) W.value = W.value.filter((t) => t !== e);
311
- else {
312
- if (W.value.length === G.value.length - 1) return;
313
- W.value.push(e);
314
- }
315
- fn();
316
- }
317
- function mn(e) {
318
- return G.value.length ? G.value.find((t) => t.name === e) || (V.value && console.warn(`VueUiRings - Series name not found "${e}"`), null) : (V.value && console.warn("VueUiRings - There are no series to show."), null);
319
- }
320
- function hn(e) {
321
- let t = mn(e);
322
- t !== null && W.value.includes(t.uid) && pn(t.uid);
323
- }
324
- function gn(e) {
325
- let t = mn(e);
326
- t !== null && (W.value.includes(t.uid) || pn(t.uid));
327
- }
328
- let _n = c(() => Math.max(...G.value.filter((e) => !W.value.includes(e.uid)).map(({ value: e }) => e)));
329
- function vn(e) {
330
- return e / _n.value;
331
- }
332
- let G = c(() => Jt.value.map(({ values: e, name: t, color: n = null }, r) => {
333
- let i = ne(e).reduce((e, t) => e + t, 0);
334
- return {
335
- name: t,
336
- color: n || ee(n) || cn.value[r] || a[r] || a[r % a.length],
337
- value: i,
338
- proportion: i / Jt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
339
- uid: de(),
340
- absoluteIndex: r
341
- };
342
- })), yn = c(() => G.value.map((e, t) => {
343
- let n = ce(N.value.style.chart.layout.labels.dataLabels.formatter, e.value, s({
344
- p: N.value.style.chart.layout.labels.dataLabels.prefix,
345
- v: e.value,
346
- s: N.value.style.chart.layout.labels.dataLabels.suffix,
347
- r: N.value.style.chart.legend.roundingValue
348
- }), {
349
- datapoint: e,
350
- index: t
351
- }), r = isNaN(e.value / K.value) ? "-" : s({
352
- v: e.value / K.value * 100,
353
- s: "%",
354
- r: N.value.style.chart.legend.roundingPercentage
355
- }), i = wn({
356
- showVal: N.value.style.chart.legend.showValue,
357
- showPercentage: N.value.style.chart.legend.showPercentage,
358
- val: n,
359
- percentage: W.value.includes(e.uid) ? "-%" : r
360
- });
361
- return {
362
- ...e,
363
- shape: "circle",
364
- opacity: W.value.includes(e.uid) ? .5 : 1,
365
- segregate: () => pn(e.uid),
366
- isSegregated: W.value.includes(e.uid),
367
- display: `${e.name}${N.value.style.chart.legend.showPercentage || N.value.style.chart.legend.showValue ? ": " : ""}${i}`
368
- };
369
- }).toSorted((e, t) => t.value - e.value)), bn = c(() => ({
370
- cy: "rings-div-legend",
371
- backgroundColor: N.value.style.chart.legend.backgroundColor,
372
- color: N.value.style.chart.legend.color,
373
- fontSize: N.value.style.chart.legend.fontSize,
374
- paddingBottom: 12,
375
- fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
376
- })), K = c(() => G.value.filter((e) => !W.value.includes(e.uid)).map(({ value: e }) => e).reduce((e, t) => e + t, 0)), q = c(() => G.value.filter((e) => !W.value.includes(e.uid)).map(({ name: e, value: t, color: n = null, uid: r, absoluteIndex: i }, o) => ({
377
- absoluteIndex: i,
378
- uid: r,
379
- name: e,
380
- color: n || ee(n) || cn.value[o] || a[o] || a[o % a.length],
381
- value: t,
382
- proportion: vn(t),
383
- percentage: t / K.value * 100,
384
- strokeWidth: N.value.style.chart.layout.rings.strokeWidth * vn(t)
385
- })).toSorted((e, t) => t.value - e.value));
386
- function xn() {
387
- return q.value.map(({ name: e, color: t, value: n, absoluteValues: r, percentage: i }) => ({
388
- name: e,
389
- color: t,
390
- value: n,
391
- absoluteValues: r,
392
- percentage: i
393
- }));
394
- }
395
- let J = c(() => ln.value - N.value.style.chart.layout.rings.strokeWidth * 2);
396
- function Sn(e, t) {
397
- N.value.events.datapointClick && N.value.events.datapointClick({
398
- datapoint: e,
399
- seriesIndex: t
400
- });
401
- }
402
- function Cn(e, t) {
403
- O.value = null, D.value = !1, j.value = null, M.value = "pointer", N.value.events.datapointLeave && N.value.events.datapointLeave({
404
- datapoint: e,
405
- seriesIndex: t
406
- });
407
- }
408
- function wn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
409
- let i = N.value.style.chart.layout.labels.dataLabels;
410
- return Fe({
411
- config: i,
412
- val: e,
413
- percentage: t,
414
- showVal: n,
415
- showPercentage: r
416
- });
417
- }
418
- function Tn(e) {
419
- let t = N.value.style.chart.layout.labels.dataLabels, n = ce(t.formatter, e.value, s({
420
- p: t.prefix,
421
- v: e.value,
422
- s: t.suffix,
423
- r: t.roundingValue
424
- })), r = s({
425
- v: e.percentage,
426
- s: "%",
427
- r: t.roundingPercentage
428
- });
429
- return `${e.name}\n${wn({
430
- val: n,
431
- percentage: r,
432
- showVal: t.showValue,
433
- showPercentage: t.showPercentage
434
- })}`;
435
- }
436
- function En(e) {
437
- return oe(J.value * e.proportion / 2 * .9 <= 0 ? 1e-4 : J.value * e.proportion / 2 * .9);
438
- }
439
- function Dn(e, t) {
440
- return t === 0 ? R.value.y : R.value.y + J.value * q.value[0].proportion / 2 - J.value * e.proportion / 2 - 2 * (t + 1);
441
- }
442
- function Y(e, t) {
443
- let n = N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(J.value / 2) : J.value / 2;
444
- return {
445
- x: R.value.x + n,
446
- y: Dn(e, t) - En(e)
447
- };
448
- }
449
- let On = y(null);
450
- function kn(e, t, r = "pointer") {
451
- if (N.value.events.datapointEnter && N.value.events.datapointEnter({
452
- datapoint: e,
453
- seriesIndex: t
454
- }), W.value.length === w.dataset.length) return;
455
- On.value = {
456
- datapoint: e,
457
- seriesIndex: t,
458
- series: q.value,
459
- config: N.value
460
- }, O.value = t, j.value = t, M.value = r;
461
- let i = q.value[t], a = N.value.style.chart.tooltip.customFormat;
462
- if (n(a) && le(() => a({
463
- seriesIndex: t,
464
- datapoint: e,
465
- series: q.value,
466
- config: N.value
467
- }))) Nt.value = a({
468
- seriesIndex: t,
469
- datapoint: e,
470
- series: q.value,
471
- config: N.value
472
- });
473
- else {
474
- let n = "";
475
- n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${i.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${i.color}" />${jt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${E.value}_${e.absoluteIndex})" />` : ""}</svg>`, n += `<b>${wn({
476
- showVal: N.value.style.chart.tooltip.showValue,
477
- showPercentage: N.value.style.chart.tooltip.showPercentage,
478
- val: `<span>${ce(N.value.style.chart.layout.labels.dataLabels.formatter, i.value, s({
479
- p: N.value.style.chart.layout.labels.dataLabels.prefix,
480
- v: i.value,
481
- s: N.value.style.chart.layout.labels.dataLabels.suffix,
482
- r: N.value.style.chart.tooltip.roundingValue
483
- }), {
484
- datapoint: e,
485
- seriesIndex: t
486
- })}</span>`,
487
- percentage: s({
488
- v: i.value / K.value * 100,
489
- s: "%",
490
- r: N.value.style.chart.tooltip.roundingPercentage
491
- })
492
- })}</b></div>`, Nt.value = n;
493
- }
494
- D.value = !0;
495
- }
496
- let X = c(() => ({
497
- head: q.value.map((e) => ({
498
- name: e.name,
499
- color: e.color
500
- })),
501
- body: q.value.map((e) => e.value)
502
- })), Z = c(() => {
503
- let e = [
504
- "__SUM__",
505
- s({
506
- p: N.value.style.chart.layout.labels.dataLabels.prefix,
507
- v: K.value,
508
- s: N.value.style.chart.layout.labels.dataLabels.suffix,
509
- r: N.value.table.td.roundingValue
510
- }),
511
- "100%"
512
- ], t = X.value.head.map((e, t) => [
513
- {
514
- color: e.color,
515
- name: e.name
516
- },
517
- s({
518
- p: N.value.style.chart.layout.labels.dataLabels.prefix,
519
- v: X.value.body[t],
520
- s: N.value.style.chart.layout.labels.dataLabels.suffix,
521
- r: N.value.table.td.roundingValue
522
- }),
523
- isNaN(X.value.body[t] / K.value) ? "-" : (X.value.body[t] / K.value * 100).toFixed(N.value.table.td.roundingPercentage) + "%"
524
- ]);
525
- return {
526
- head: e,
527
- body: t,
528
- a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.name : e)),
529
- config: {
530
- th: {
531
- backgroundColor: N.value.table.th.backgroundColor,
532
- color: N.value.table.th.color,
533
- outline: N.value.table.th.outline
534
- },
535
- td: {
536
- backgroundColor: N.value.table.td.backgroundColor,
537
- color: N.value.table.td.color,
538
- outline: N.value.table.td.outline
539
- },
540
- breakpoint: N.value.table.responsiveBreakpoint
541
- },
542
- colNames: [
543
- N.value.table.columnNames.series,
544
- N.value.table.columnNames.value,
545
- N.value.table.columnNames.percentage
546
- ]
547
- };
548
- });
549
- function An(e = null) {
550
- We(() => {
551
- let n = X.value.head.map((e, t) => [
552
- [e.name],
553
- [X.value.body[t]],
554
- [isNaN(X.value.body[t] / K.value) ? "-" : X.value.body[t] / K.value * 100]
555
- ]), i = [
556
- [N.value.style.chart.title.text],
557
- [N.value.style.chart.title.subtitle.text],
558
- [
559
- [""],
560
- ["val"],
561
- ["%"]
562
- ]
563
- ].concat(n), a = r(i);
564
- e ? e(a) : t({
565
- csvContent: a,
566
- title: N.value.style.chart.title.text || "vue-ui-rings"
567
- });
568
- });
569
- }
570
- let Q = y(!1);
571
- function jn(e) {
572
- Q.value = e, Pt.value += 1;
573
- }
574
- function Mn() {
575
- H.value.showTable = !H.value.showTable;
576
- }
577
- function Nn() {
578
- H.value.showTooltip = !H.value.showTooltip;
579
- }
580
- function Pn() {
581
- H.value.showLabels = !H.value.showLabels;
582
- }
583
- let Fn = y(!1);
584
- function In() {
585
- Fn.value = !Fn.value;
586
- }
587
- async function Ln({ scale: e = 2 } = {}) {
588
- if (!k.value) return;
589
- let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
590
- domElement: k.value,
591
- base64: !0,
592
- img: !0,
593
- scale: e
594
- });
595
- return {
596
- imageUri: i,
597
- base64: a,
598
- title: N.value.style.chart.title.text,
599
- width: t,
600
- height: n,
601
- aspectRatio: r
602
- };
603
- }
604
- let $ = c(() => {
605
- let e = N.value.table.useDialog && !N.value.table.show, t = H.value.showTable;
606
- return {
607
- component: e ? Dt : St,
608
- title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
609
- props: e ? {
610
- backgroundColor: N.value.table.th.backgroundColor,
611
- color: N.value.table.th.color,
612
- headerColor: N.value.table.th.color,
613
- headerBg: N.value.table.th.backgroundColor,
614
- isFullscreen: Q.value,
615
- fullscreenParent: k.value,
616
- forcedWidth: Math.min(800, window.innerWidth * .8),
617
- isCursorPointer: F.value
618
- } : {
619
- hideDetails: !0,
620
- config: {
621
- open: t,
622
- maxHeight: 1e4,
623
- body: {
624
- backgroundColor: N.value.style.chart.backgroundColor,
625
- color: N.value.style.chart.color
626
- },
627
- head: {
628
- backgroundColor: N.value.style.chart.backgroundColor,
629
- color: N.value.style.chart.color
630
- }
631
- }
632
- }
633
- };
634
- });
635
- Qe(() => H.value.showTable, (e) => {
636
- N.value.table.show || (e && N.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
637
- });
638
- function Rn() {
639
- H.value.showTable = !1, Wt.value && Wt.value.setTableIconState(!1);
640
- }
641
- let zn = c(() => yn.value.map((e) => ({
642
- ...e,
643
- name: e.display
644
- }))), Bn = c(() => N.value.style.chart.backgroundColor), Vn = c(() => N.value.style.chart.legend), Hn = c(() => N.value.style.chart.title), { isCallbackImaging: Un, isCallbackSvg: Wn, generateSvg: Gn, onGenerateImage: Kn } = Se({
645
- svg: L,
646
- title: Hn,
647
- legend: Vn,
648
- legendItems: zn,
649
- backgroundColor: Bn,
650
- getSvgCallback: () => N.value.userOptions.callbacks.svg,
651
- generateImage: on
652
- });
653
- async function qn() {
654
- if (un("copyAlt", {
655
- config: N.value,
656
- dataset: q.value
657
- }), !N.value.userOptions.callbacks.altCopy) {
658
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
659
- return;
660
- }
661
- await Promise.resolve(N.value.userOptions.callbacks.altCopy({
662
- config: N.value,
663
- dataset: q.value
664
- }));
665
- }
666
- function Jn() {
667
- j.value = null, Kt.value = !0;
668
- }
669
- function Yn() {
670
- j.value = null, M.value = "pointer", D.value = !1, O.value = null, Kt.value = !1;
671
- }
672
- function Xn(e) {
673
- if (!L.value || Fn.value || document.activeElement !== L.value || !q.value.length || W.value.length === w.dataset.length) return;
674
- let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
675
- if (!t && !n && !r && !i) return;
676
- if (e.preventDefault(), e.stopPropagation(), i) {
677
- j.value = null, M.value = "pointer", D.value = !1, O.value = null;
678
- return;
679
- }
680
- if (r) {
681
- if (j.value === null) return;
682
- let e = q.value[j.value];
683
- if (!e) return;
684
- Sn(e, j.value);
685
- return;
686
- }
687
- let a = j.value;
688
- a === null || a < 0 || a >= q.value.length ? a = n ? 0 : q.value.length - 1 : n ? (a += 1, a >= q.value.length && (a = 0)) : t && (--a, a < 0 && (a = q.value.length - 1));
689
- let o = q.value[a];
690
- o && (Zn(a), kn(o, a, "keyboard"));
691
- }
692
- function Zn(e) {
693
- if (!Number.isFinite(e) || !L.value) return;
694
- let t = q.value[e];
695
- if (!t) return;
696
- let n = Y(t, e), r = L.value.getBoundingClientRect();
697
- Gt.value = {
698
- x: r.left + n.x / U.value.width * r.width,
699
- y: r.top + n.y / U.value.height * r.height
700
- };
701
- }
702
- let Qn = c(() => ({
703
- headers: Z.value?.colNames ?? [],
704
- rows: Z.value?.a11yBody ?? []
705
- }));
706
- return De({
707
- getData: xn,
708
- getImage: Ln,
709
- generatePdf: an,
710
- generateCsv: An,
711
- generateImage: on,
712
- generateSvg: Gn,
713
- hideSeries: gn,
714
- showSeries: hn,
715
- toggleTable: Mn,
716
- toggleTooltip: Nn,
717
- toggleAnnotator: In,
718
- toggleFullscreen: jn,
719
- toggleLabels: Pn,
720
- copyAlt: qn
721
- }), (e, t) => (v(), d("div", {
722
- ref_key: "ringsChart",
723
- ref: k,
724
- class: h(`vue-data-ui-component vue-ui-rings ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
725
- style: _(`font-family:${N.value.style.fontFamily};text-align:center;width:100%;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height: 100%" : ""}`),
726
- id: `rings_${E.value}`,
727
- onMouseleave: t[2] ||= (e) => {
728
- O.value = null, D.value = !1, S(Zt)(!1);
729
- },
730
- onMouseenter: t[3] ||= () => S(Zt)(!0)
731
- }, [
732
- f("div", {
733
- id: `chart-instructions-${E.value}`,
734
- class: "sr-only"
735
- }, [f("p", null, x(N.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
736
- Qn.value?.rows?.length ? (v(), l(Me, {
737
- key: 0,
738
- uid: E.value,
739
- head: Qn.value.headers,
740
- body: Qn.value.rows,
741
- notice: N.value.a11y.translations.tableAvailable,
742
- caption: N.value.a11y.translations.tableCaption
743
- }, null, 8, [
744
- "uid",
745
- "head",
746
- "body",
747
- "notice",
748
- "caption"
749
- ])) : u("", !0),
750
- N.value.userOptions.buttons.annotator ? (v(), l(S(wt), {
751
- key: 1,
752
- svgRef: S(L),
753
- backgroundColor: N.value.style.chart.backgroundColor,
754
- color: N.value.style.chart.color,
755
- active: Fn.value,
756
- isCursorPointer: F.value,
757
- onClose: In
758
- }, {
759
- "annotator-action-close": C(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
760
- "annotator-action-color": C(({ color: t }) => [b(e.$slots, "annotator-action-color", g(m({ color: t })), void 0, !0)]),
761
- "annotator-action-draw": C(({ mode: t }) => [b(e.$slots, "annotator-action-draw", g(m({ mode: t })), void 0, !0)]),
762
- "annotator-action-undo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", g(m({ disabled: t })), void 0, !0)]),
763
- "annotator-action-redo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", g(m({ disabled: t })), void 0, !0)]),
764
- "annotator-action-delete": C(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", g(m({ disabled: t })), void 0, !0)]),
765
- _: 3
766
- }, 8, [
767
- "svgRef",
768
- "backgroundColor",
769
- "color",
770
- "active",
771
- "isCursorPointer"
772
- ])) : u("", !0),
773
- sn.value ? (v(), d("div", {
774
- key: 2,
775
- ref_key: "noTitle",
776
- ref: Rt,
777
- class: "vue-data-ui-no-title-space",
778
- style: "height:36px; width: 100%;background:transparent"
779
- }, null, 512)) : u("", !0),
780
- N.value.style.chart.title.text ? (v(), d("div", {
781
- key: 3,
782
- ref_key: "chartTitle",
783
- ref: Ft,
784
- style: "width:100%;background:transparent"
785
- }, [(v(), l(Te, {
786
- key: `title_${zt.value}`,
787
- config: {
788
- title: {
789
- cy: "rings-div-title",
790
- ...N.value.style.chart.title
791
- },
792
- subtitle: {
793
- cy: "rings-div-subtitle",
794
- ...N.value.style.chart.title.subtitle
795
- }
796
- }
797
- }, null, 8, ["config"]))], 512)) : u("", !0),
798
- f("div", { id: `legend-top-${E.value}` }, null, 8, nt),
799
- N.value.userOptions.show && Mt.value && (S(Qt) || S(Xt)) ? (v(), l(S(Tt), {
800
- ref_key: "userOptionsRef",
801
- ref: Wt,
802
- key: `user_options_${Pt.value}`,
803
- backgroundColor: N.value.style.chart.backgroundColor,
804
- color: N.value.style.chart.color,
805
- isPrinting: S(nn),
806
- isImaging: S(rn),
807
- uid: E.value,
808
- hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
809
- hasPdf: N.value.userOptions.buttons.pdf,
810
- hasXls: N.value.userOptions.buttons.csv,
811
- hasImg: N.value.userOptions.buttons.img,
812
- hasSvg: N.value.userOptions.buttons.svg,
813
- hasTable: N.value.userOptions.buttons.table,
814
- hasFullscreen: N.value.userOptions.buttons.fullscreen,
815
- hasAltCopy: N.value.userOptions.buttons.altCopy,
816
- hasLabel: N.value.userOptions.buttons.labels,
817
- isTooltip: H.value.showTooltip,
818
- isFullscreen: Q.value,
819
- titles: { ...N.value.userOptions.buttonTitles },
820
- chartElement: k.value,
821
- position: N.value.userOptions.position,
822
- hasAnnotator: N.value.userOptions.buttons.annotator,
823
- isAnnotation: Fn.value,
824
- callbacks: N.value.userOptions.callbacks,
825
- printScale: N.value.userOptions.print.scale,
826
- tableDialog: N.value.table.useDialog,
827
- isCursorPointer: F.value,
828
- onToggleFullscreen: jn,
829
- onGeneratePdf: S(an),
830
- onGenerateCsv: An,
831
- onGenerateImage: S(Kn),
832
- onGenerateSvg: S(Gn),
833
- onToggleTable: Mn,
834
- onToggleTooltip: Nn,
835
- onToggleAnnotator: In,
836
- onToggleLabels: Pn,
837
- onCopyAlt: qn,
838
- style: _({ visibility: S(Qt) ? S(Xt) ? "visible" : "hidden" : "visible" })
839
- }, Be({ _: 2 }, [
840
- e.$slots.menuIcon ? {
841
- name: "menuIcon",
842
- fn: C(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", g(m({
843
- isOpen: t,
844
- color: n
845
- })), void 0, !0)]),
846
- key: "0"
847
- } : void 0,
848
- e.$slots.optionTooltip ? {
849
- name: "optionTooltip",
850
- fn: C(() => [b(e.$slots, "optionTooltip", {}, void 0, !0)]),
851
- key: "1"
852
- } : void 0,
853
- e.$slots.optionPdf ? {
854
- name: "optionPdf",
855
- fn: C(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
856
- key: "2"
857
- } : void 0,
858
- e.$slots.optionCsv ? {
859
- name: "optionCsv",
860
- fn: C(() => [b(e.$slots, "optionCsv", {}, void 0, !0)]),
861
- key: "3"
862
- } : void 0,
863
- e.$slots.optionImg ? {
864
- name: "optionImg",
865
- fn: C(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
866
- key: "4"
867
- } : void 0,
868
- e.$slots.optionSvg ? {
869
- name: "optionSvg",
870
- fn: C(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
871
- key: "5"
872
- } : void 0,
873
- e.$slots.optionTable ? {
874
- name: "optionTable",
875
- fn: C(() => [b(e.$slots, "optionTable", {}, void 0, !0)]),
876
- key: "6"
877
- } : void 0,
878
- e.$slots.optionLabels ? {
879
- name: "optionLabels",
880
- fn: C(() => [b(e.$slots, "optionLabels", {}, void 0, !0)]),
881
- key: "7"
882
- } : void 0,
883
- e.$slots.optionFullscreen ? {
884
- name: "optionFullscreen",
885
- fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", g(m({
886
- toggleFullscreen: t,
887
- isFullscreen: n
888
- })), void 0, !0)]),
889
- key: "8"
890
- } : void 0,
891
- e.$slots.optionAnnotator ? {
892
- name: "optionAnnotator",
893
- fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", g(m({
894
- toggleAnnotator: t,
895
- isAnnotator: n
896
- })), void 0, !0)]),
897
- key: "9"
898
- } : void 0,
899
- e.$slots.optionAltCopy ? {
900
- name: "optionAltCopy",
901
- fn: C(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", g(m({ altCopy: t })), void 0, !0)]),
902
- key: "10"
903
- } : void 0,
904
- e.$slots["custom-menu-before"] ? {
905
- name: "custom-menu-before",
906
- fn: C(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
907
- key: "11"
908
- } : void 0,
909
- e.$slots["custom-menu-after"] ? {
910
- name: "custom-menu-after",
911
- fn: C(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
912
- key: "12"
913
- } : void 0
914
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.hasLabel.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
915
- f("div", rt, [(v(), d("svg", {
916
- ref_key: "svgRef",
917
- ref: L,
918
- xmlns: S(fe),
919
- class: h({
920
- "vue-data-ui-fullscreen--on": Q.value,
921
- "vue-data-ui-fulscreen--off": !Q.value,
922
- resizing: Ht.value || S(I),
923
- "vue-data-ui-no-transition": !S(P)
924
- }),
925
- viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
926
- style: _(`max-width:100%;overflow:hidden;background:transparent;color:${N.value.style.chart.color}`),
927
- "aria-describedby": `chart-instructions-${E.value}`,
928
- tabindex: "0",
929
- onFocus: Jn,
930
- onBlur: Yn,
931
- onKeydown: Xn
932
- }, [
933
- He(S(Et)),
934
- e.$slots["chart-background"] ? (v(), d("foreignObject", {
935
- key: 0,
936
- x: 0,
937
- y: 0,
938
- width: U.value.width <= 0 ? 10 : U.value.width,
939
- height: U.value.height <= 0 ? 10 : U.value.height,
940
- style: { pointerEvents: "none" }
941
- }, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, at)) : u("", !0),
942
- f("defs", null, [(v(!0), d(Re, null, qe(q.value, (e, t) => (v(), l(Ae, {
943
- t: "radial",
944
- cx: "50%",
945
- cy: "30%",
946
- r: "50%",
947
- fx: "50%",
948
- fy: "50%",
949
- id: `gradient_${E.value}_${t}`,
950
- key: `gradient_${E.value}_${t}`,
951
- stops: [[
952
- "0%",
953
- S(te)(S(re)(e.color, .05), 100 - N.value.style.chart.layout.rings.gradient.intensity),
954
- 1
955
- ], [
956
- "100%",
957
- e.color,
958
- 1
959
- ]]
960
- }, null, 8, ["id", "stops"]))), 128))]),
961
- e.$slots.pattern ? (v(), d("g", ot, [(v(!0), d(Re, null, qe(q.value, (t) => (v(), d("defs", null, [b(e.$slots, "pattern", Ue({ ref_for: !0 }, {
962
- seriesIndex: t.absoluteIndex,
963
- patternId: `pattern_${E.value}_${t.absoluteIndex}`
964
- }), void 0, !0)]))), 256))])) : u("", !0),
965
- (v(!0), d(Re, null, qe(q.value, (t, n) => (v(), d("g", { key: `r_${t.uid}` }, [
966
- f("circle", {
967
- class: h({
968
- "vue-data-ui-transition": T.value && S(P),
969
- "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
970
- "vue-ui-rings-opacity": O.value !== null && O.value !== n
971
- }),
972
- style: _(`animation-delay:${n * 100}ms`),
973
- stroke: N.value.style.chart.layout.rings.stroke,
974
- cx: R.value.x,
975
- cy: Dn(t, n),
976
- r: En(t),
977
- fill: N.value.style.chart.layout.rings.gradient.underlayerColor
978
- }, null, 14, st),
979
- f("circle", {
980
- class: h({
981
- "vue-data-ui-transition": T.value && S(P),
982
- "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
983
- "vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
984
- "vue-ui-rings-blur": O.value !== null && O.value !== n
985
- }),
986
- style: _(`animation-delay:${n * 100}ms`),
987
- stroke: N.value.style.chart.layout.rings.stroke,
988
- "stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
989
- cx: R.value.x,
990
- cy: Dn(t, n),
991
- r: En(t),
992
- fill: N.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${E.value}_${n})` : t.color
993
- }, null, 14, ct),
994
- e.$slots.pattern ? (v(), d("circle", {
995
- key: 0,
996
- class: h({
997
- "vue-data-ui-transition": T.value && S(P),
998
- "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
999
- "vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
1000
- "vue-ui-rings-blur": O.value !== null && O.value !== n
1001
- }),
1002
- style: _(`animation-delay:${n * 100}ms`),
1003
- stroke: N.value.style.chart.layout.rings.stroke,
1004
- "stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
1005
- cx: R.value.x,
1006
- cy: Dn(t, n),
1007
- r: En(t),
1008
- fill: `url(#pattern_${E.value}_${t.absoluteIndex})`
1009
- }, null, 14, lt)) : u("", !0),
1010
- f("circle", {
1011
- stroke: "none",
1012
- cx: R.value.x,
1013
- cy: Dn(t, n),
1014
- r: En(t),
1015
- fill: "transparent",
1016
- onMouseenter: (e) => kn(t, n, "pointer"),
1017
- onMouseleave: (e) => Cn(t, n),
1018
- onClick: (e) => Sn(t, n)
1019
- }, null, 40, ut),
1020
- H.value.showLabels ? (v(), d(Re, { key: 1 }, [
1021
- f("rect", {
1022
- x: N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? Y(t, n).x : R.value.x,
1023
- y: Y(t, n).y - N.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
1024
- width: Math.abs(R.value.x - Y(t, n).x),
1025
- height: N.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
1026
- fill: N.value.style.chart.layout.labels.dataLabels.markers.stroke,
1027
- rx: N.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
1028
- class: h({
1029
- "vue-data-ui-transition": T.value && S(P),
1030
- "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
1031
- "vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
1032
- "vue-ui-rings-blur": O.value !== null && O.value !== n
1033
- })
1034
- }, null, 10, dt),
1035
- f("circle", {
1036
- cx: Y(t, n).x,
1037
- cy: Y(t, n).y,
1038
- r: N.value.style.chart.layout.labels.dataLabels.markers.radius,
1039
- fill: t.color,
1040
- stroke: N.value.style.chart.backgroundColor,
1041
- class: h({
1042
- "vue-data-ui-transition": T.value && S(P),
1043
- "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
1044
- "vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
1045
- "vue-ui-rings-blur": O.value !== null && O.value !== n
1046
- })
1047
- }, null, 10, ft),
1048
- f("text", {
1049
- "text-anchor": N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? "end" : "start",
1050
- "font-size": N.value.style.chart.layout.labels.dataLabels.fontSize,
1051
- fill: N.value.style.chart.layout.labels.dataLabels.color,
1052
- "font-weight": N.value.style.chart.layout.labels.dataLabels.bold ? "bold" : "normal",
1053
- class: h({
1054
- "vue-data-ui-transition": T.value && S(P),
1055
- "vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
1056
- "vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
1057
- "vue-ui-rings-blur": O.value !== null && O.value !== n
1058
- }),
1059
- transform: `translate(${Y(t, n).x + (N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -N.value.style.chart.layout.labels.dataLabels.offsetX - 14 : N.value.style.chart.layout.labels.dataLabels.offsetX) + 6}, ${Y(t, n).y + N.value.style.chart.layout.labels.dataLabels.fontSize / 3})`,
1060
- onMouseenter: (e) => kn(t, n, "pointer"),
1061
- onMouseleave: (e) => Cn(t, n),
1062
- onClick: (e) => Sn(t, n),
1063
- innerHTML: S(i)({
1064
- content: Tn(t),
1065
- fontSize: N.value.style.chart.layout.labels.dataLabels.fontSize,
1066
- fill: N.value.style.chart.layout.labels.dataLabels.color,
1067
- x: 0,
1068
- y: 0,
1069
- translateY: !0
1070
- })
1071
- }, null, 42, pt)
1072
- ], 64)) : u("", !0)
1073
- ]))), 128)),
1074
- b(e.$slots, "svg", { svg: {
1075
- ...U.value,
1076
- isPrintingImg: S(nn) || S(rn) || S(Un),
1077
- isPrintingSvg: S(Wn)
1078
- } }, void 0, !0)
1079
- ], 46, it)), e.$slots.hint ? (v(), d("div", mt, [b(e.$slots, "hint", g(m({
1080
- hint: N.value.a11y.translations.keyboardNavigation,
1081
- isVisible: Kt.value
1082
- })), void 0, !0)])) : u("", !0)]),
1083
- e.$slots.watermark ? (v(), d("div", ht, [b(e.$slots, "watermark", g(m({ isPrinting: S(nn) || S(rn) || S(Un) || S(Wn) })), void 0, !0)])) : u("", !0),
1084
- f("div", { id: `legend-bottom-${E.value}` }, null, 8, gt),
1085
- Ut.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (v(), l(ze, {
1086
- key: 6,
1087
- to: N.value.style.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
1088
- }, [f("div", {
1089
- ref_key: "chartLegend",
1090
- ref: It
1091
- }, [b(e.$slots, "legend", { legend: yn.value }, () => [N.value.style.chart.legend.show ? (v(), l(Ie, {
1092
- key: `legend_${Vt.value}`,
1093
- legendSet: yn.value,
1094
- config: bn.value,
1095
- isCursorPointer: F.value,
1096
- onClickMarker: t[0] ||= ({ legend: e }) => pn(e.uid)
1097
- }, Be({
1098
- item: C(({ legend: e, index: t }) => [S(I) ? u("", !0) : (v(), d("div", {
1099
- key: 0,
1100
- onClick: (t) => pn(e.uid),
1101
- style: _(`opacity:${W.value.includes(e.uid) ? .5 : 1}`)
1102
- }, x(e.display), 13, _t))]),
1103
- legendToggle: C(() => [yn.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !S(I) ? (v(), l(je, {
1104
- key: 0,
1105
- backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
1106
- color: N.value.style.chart.legend.selectAllToggle.color,
1107
- fontSize: N.value.style.chart.legend.fontSize,
1108
- checked: W.value.length > 0,
1109
- isCursorPointer: F.value,
1110
- onToggle: dn
1111
- }, null, 8, [
1112
- "backgroundColor",
1113
- "color",
1114
- "fontSize",
1115
- "checked",
1116
- "isCursorPointer"
1117
- ])) : u("", !0)]),
1118
- _: 2
1119
- }, [e.$slots.pattern ? {
1120
- name: "legend-pattern",
1121
- fn: C(({ legend: e, index: t }) => [He(Ee, {
1122
- shape: e.shape,
1123
- radius: 30,
1124
- stroke: "none",
1125
- plot: {
1126
- x: 30,
1127
- y: 30
1128
- },
1129
- fill: `url(#pattern_${E.value}_${t})`
1130
- }, null, 8, ["shape", "fill"])]),
1131
- key: "0"
1132
- } : void 0]), 1032, [
1133
- "legendSet",
1134
- "config",
1135
- "isCursorPointer"
1136
- ])) : u("", !0)], !0)], 512)], 8, ["to"])) : u("", !0),
1137
- e.$slots.source ? (v(), d("div", {
1138
- key: 7,
1139
- ref_key: "source",
1140
- ref: Lt,
1141
- dir: "auto"
1142
- }, [b(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
1143
- He(S(bt), {
1144
- teleportTo: N.value.style.chart.tooltip.teleportTo,
1145
- show: H.value.showTooltip && D.value && W.value.length < w.dataset.length,
1146
- backgroundColor: N.value.style.chart.tooltip.backgroundColor,
1147
- color: N.value.style.chart.tooltip.color,
1148
- borderRadius: N.value.style.chart.tooltip.borderRadius,
1149
- borderColor: N.value.style.chart.tooltip.borderColor,
1150
- borderWidth: N.value.style.chart.tooltip.borderWidth,
1151
- fontSize: N.value.style.chart.tooltip.fontSize,
1152
- backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
1153
- position: N.value.style.chart.tooltip.position,
1154
- offsetX: N.value.style.chart.tooltip.offsetX,
1155
- offsetY: N.value.style.chart.tooltip.offsetY,
1156
- parent: k.value,
1157
- content: Nt.value,
1158
- isFullscreen: Q.value,
1159
- isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
1160
- smooth: N.value.style.chart.tooltip.smooth,
1161
- backdropFilter: N.value.style.chart.tooltip.backdropFilter,
1162
- smoothForce: N.value.style.chart.tooltip.smoothForce,
1163
- smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
1164
- isA11yMode: M.value === "keyboard",
1165
- a11yPosition: Gt.value
1166
- }, {
1167
- "tooltip-before": C(() => [b(e.$slots, "tooltip-before", g(m({ ...On.value })), void 0, !0)]),
1168
- tooltip: C(() => [b(e.$slots, "tooltip", g(m({ ...On.value })), void 0, !0)]),
1169
- "tooltip-after": C(() => [b(e.$slots, "tooltip-after", g(m({ ...On.value })), void 0, !0)]),
1170
- _: 3
1171
- }, 8, [
1172
- "teleportTo",
1173
- "show",
1174
- "backgroundColor",
1175
- "color",
1176
- "borderRadius",
1177
- "borderColor",
1178
- "borderWidth",
1179
- "fontSize",
1180
- "backgroundOpacity",
1181
- "position",
1182
- "offsetX",
1183
- "offsetY",
1184
- "parent",
1185
- "content",
1186
- "isFullscreen",
1187
- "isCustom",
1188
- "smooth",
1189
- "backdropFilter",
1190
- "smoothForce",
1191
- "smoothSnapThreshold",
1192
- "isA11yMode",
1193
- "a11yPosition"
1194
- ]),
1195
- Mt.value && N.value.userOptions.buttons.table ? (v(), l(Je($.value.component), Ue({ key: 8 }, $.value.props, {
1196
- ref_key: "tableUnit",
1197
- ref: A,
1198
- onClose: Rn
1199
- }), Be({
1200
- content: C(() => [(v(), l(S(Ct), {
1201
- key: `table_${Bt.value}`,
1202
- colNames: Z.value.colNames,
1203
- head: Z.value.head,
1204
- body: Z.value.body,
1205
- config: Z.value.config,
1206
- title: N.value.table.useDialog ? "" : $.value.title,
1207
- withCloseButton: !N.value.table.useDialog,
1208
- isCursorPointer: F.value,
1209
- onClose: Rn
1210
- }, {
1211
- th: C(({ th: e }) => [e === "__SUM__" ? (v(), d("div", vt, [He(S(xt), {
1212
- name: "sigma",
1213
- stroke: Z.value.config.th.color,
1214
- size: 16
1215
- }, null, 8, ["stroke"])])) : (v(), d("div", yt, x(e), 1))]),
1216
- td: C(({ td: e }) => [Ve(x(e.name || e), 1)]),
1217
- _: 1
1218
- }, 8, [
1219
- "colNames",
1220
- "head",
1221
- "body",
1222
- "config",
1223
- "title",
1224
- "withCloseButton",
1225
- "isCursorPointer"
1226
- ]))]),
1227
- _: 2
1228
- }, [N.value.table.useDialog ? {
1229
- name: "title",
1230
- fn: C(() => [Ve(x($.value.title), 1)]),
1231
- key: "0"
1232
- } : void 0, N.value.table.useDialog ? {
1233
- name: "actions",
1234
- fn: C(() => [f("button", {
1235
- tabindex: "0",
1236
- class: "vue-ui-user-options-button",
1237
- onClick: t[1] ||= (e) => An(N.value.userOptions.callbacks.csv),
1238
- style: _({ cursor: F.value ? "pointer" : "default" })
1239
- }, [He(S(xt), {
1240
- name: "fileCsv",
1241
- stroke: $.value.props.color
1242
- }, null, 8, ["stroke"])], 4)]),
1243
- key: "1"
1244
- } : void 0]), 1040)) : u("", !0),
1245
- b(e.$slots, "skeleton", {}, () => [S(I) ? (v(), l(ye, { key: 0 })) : u("", !0)], !0)
1246
- ], 46, et));
1247
- }
1248
- }, [["__scopeId", "data-v-157db649"]]);
1249
- //#endregion
1250
- export { $e as n, bt as t };