vue-data-ui 3.5.2 → 3.7.0

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 (199) hide show
  1. package/README.md +36 -27
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
  5. package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
  8. package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  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 +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +5 -0
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +303 -9
  90. package/dist/types/vue-ui-stackline.d.ts +18 -0
  91. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  92. package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
  93. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  94. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  95. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  96. package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
  97. package/dist/vue-data-ui.js +226 -204
  98. package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  99. package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  100. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  101. package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  102. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  103. package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  104. package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  105. package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  106. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  107. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  108. package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  109. package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  110. package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
  111. package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  112. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  113. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  114. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  115. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  116. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  117. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  118. package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  119. package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  120. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  121. package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  122. package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  123. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  124. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  125. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  126. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  127. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  128. package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  129. package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  130. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  131. package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  132. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  133. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  134. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  135. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  136. package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  137. package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  138. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  139. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  140. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  141. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  142. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  143. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  144. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  145. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  146. package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  147. package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
  148. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  149. package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  150. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  151. package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  152. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  153. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  154. package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  155. package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  156. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  157. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  158. package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
  159. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  160. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  161. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  162. package/package.json +5 -5
  163. package/dist/themes-AUNCOb2G.js +0 -53
  164. package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
  165. package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
  166. package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
  167. package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
  168. package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
  169. package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
  170. package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
  171. package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
  172. package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
  173. package/dist/vue-ui-gauge-DAk72bez.js +0 -835
  174. package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
  175. package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
  176. package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
  177. package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
  178. package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
  179. package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
  180. package/dist/vue-ui-radar-BSfxyur3.js +0 -984
  181. package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
  182. package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
  183. package/dist/vue-ui-rings-C96aj57d.js +0 -855
  184. package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
  185. package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
  186. package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
  187. package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
  188. package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
  189. package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
  190. package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
  191. package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
  192. package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
  193. package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
  194. package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
  195. package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
  196. package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
  197. package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
  198. package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
@@ -1,282 +0,0 @@
1
- import { useCssVars as ae, computed as c, defineAsyncComponent as oe, ref as h, useSlots as se, onMounted as z, watch as ne, createElementBlock as r, openBlock as n, unref as i, normalizeClass as E, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as u, normalizeProps as G, guardReactiveProps as B, Fragment as k, renderList as w, mergeProps as f, createVNode as ue, nextTick as ie } from "vue";
2
- import { c as A, o as de, f as pe, ag as ce, J as ve, ae as me, P as fe, Q as he } from "./lib-C_mNZmhD.js";
3
- import { u as ge, a as H } from "./useNestedProp-CReNavA0.js";
4
- import { u as be } from "./usePrinter-DTzqpYKF.js";
5
- import { u as ye } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { t as Ce } from "./themes-AUNCOb2G.js";
7
- import { _ as ke } from "./Shape-CNXKB8O0.js";
8
- import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"], Pe = {
10
- key: 0,
11
- style: { display: "flex", "flex-direction": "row", gap: "2px", "align-items": "center" }
12
- }, xe = ["height", "width"], Fe = {
13
- key: 0,
14
- role: "cell",
15
- "data-cell": "sum"
16
- }, Ne = {
17
- key: 1,
18
- role: "cell",
19
- "data-cell": "average"
20
- }, Se = {
21
- key: 2,
22
- role: "cell",
23
- "data-cell": "median"
24
- }, Ve = {
25
- key: 1,
26
- ref: "source",
27
- dir: "auto"
28
- }, Re = {
29
- __name: "vue-ui-table-heatmap",
30
- props: {
31
- config: {
32
- type: Object,
33
- default() {
34
- return {};
35
- }
36
- },
37
- dataset: {
38
- type: Array,
39
- default() {
40
- return [];
41
- }
42
- }
43
- },
44
- setup(D, { expose: L }) {
45
- ae((e) => ({
46
- cea75ac0: ee.value,
47
- v98a6fd0a: j.value
48
- }));
49
- const X = oe(() => import("./UserOptions-CGnQt6Fd.js")), { vue_ui_table_heatmap: W } = ge(), m = D, _ = h(A()), d = h(!1), y = h(null), I = h(!1), O = h(0), J = se();
50
- z(() => {
51
- J["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
52
- });
53
- const t = c({
54
- get: () => F(),
55
- set: (e) => e
56
- }), { userOptionsVisible: $, setUserOptionsVisibility: P, keepUserOptionState: x } = ye({ config: t.value });
57
- function F() {
58
- const e = H({
59
- userConfig: m.config,
60
- defaultConfig: W
61
- });
62
- return e.theme ? {
63
- ...H({
64
- userConfig: Ce.vue_ui_table_heatmap[e.theme] || m.config,
65
- defaultConfig: e
66
- })
67
- } : e;
68
- }
69
- ne(() => m.config, (e) => {
70
- t.value = F(), $.value = !t.value.userOptions.showOnChartHover, V();
71
- }, { deep: !0 });
72
- const { isPrinting: Q, isImaging: q, generatePdf: N, generateImage: S } = be({
73
- elementId: `table_heatmap_${_.value}`,
74
- fileName: "vue-ui-table-heatmap",
75
- options: t.value.userOptions.print
76
- }), K = c(() => t.value.table.responsiveBreakpoint), Y = c(() => !!m.dataset && m.dataset.length);
77
- z(() => {
78
- V();
79
- });
80
- function V() {
81
- de(m.dataset) && pe({
82
- componentName: "VueUiTableHeatmap",
83
- type: "dataset"
84
- });
85
- const e = new ResizeObserver((o) => {
86
- o.forEach((a) => {
87
- d.value = a.contentRect.width < K.value;
88
- });
89
- });
90
- y.value && e.observe(y.value);
91
- }
92
- const R = c(() => m.dataset.map((e) => {
93
- const o = e.values.map((s) => isNaN(s) ? 0 : s), a = o.reduce((s, l) => s + l, 0);
94
- return {
95
- ...e,
96
- values: o,
97
- serieExtremes: {
98
- max: Math.max(...o),
99
- min: Math.min(...o)
100
- },
101
- sum: a,
102
- average: a / o.length,
103
- median: ce(o),
104
- displayValues: [e.name, ...e.values],
105
- id: A()
106
- };
107
- })), M = c(() => {
108
- const e = R.value.flatMap((o) => o.values);
109
- return {
110
- min: Math.min(...e),
111
- max: Math.max(...e)
112
- };
113
- });
114
- function Z(e, o) {
115
- const a = t.value.style.heatmapColors.useIndividualScale;
116
- return me(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, a ? o.min : M.value.min, a ? o.max : M.value.max, e);
117
- }
118
- const T = c(() => R.value.map((e) => ({
119
- ...e,
120
- colors: e.displayValues.map((o) => isNaN(o) ? t.value.style.backgroundColor : Z(o, e.serieExtremes))
121
- }))), j = c(() => t.value.style.backgroundColor), ee = c(() => `${t.value.table.borderWidth}px`);
122
- function U(e = null) {
123
- ie(() => {
124
- const o = T.value.map((l) => [
125
- [l.name],
126
- l.displayValues,
127
- [l.sum],
128
- [l.average],
129
- [l.median]
130
- ]), a = [[[""], t.value.table.head.values, ["sum"], ["average"], ["median"]]].concat(o), s = fe(a);
131
- e ? e(s) : he({ csvContent: s, title: "vue-ui-table-heatmap" });
132
- });
133
- }
134
- function te(e) {
135
- I.value = e, O.value += 1;
136
- }
137
- return L({
138
- generatePdf: N,
139
- generateCsv: U,
140
- generateImage: S
141
- }), (e, o) => (n(), r("div", {
142
- ref_key: "tableContainer",
143
- ref: y,
144
- style: C(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${t.value.userOptions.show ? "36px" : ""}; ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}; position:relative;`),
145
- class: E({ "vue-data-ui-component": !0, "vue-ui-responsive": d.value }),
146
- id: `table_heatmap_${_.value}`,
147
- onMouseenter: o[0] || (o[0] = () => i(P)(!0)),
148
- onMouseleave: o[1] || (o[1] = () => i(P)(!1))
149
- }, [
150
- t.value.userOptions.show && Y.value && (i(x) || i($)) ? (n(), le(i(X), {
151
- ref: "details",
152
- key: `user_option_${O.value}`,
153
- backgroundColor: t.value.style.backgroundColor,
154
- color: t.value.style.color,
155
- isPrinting: i(Q),
156
- isImaging: i(q),
157
- uid: _.value,
158
- hasPdf: t.value.userOptions.buttons.pdf,
159
- hasXls: t.value.userOptions.buttons.csv,
160
- hasImg: t.value.userOptions.buttons.img,
161
- hasFullscreen: t.value.userOptions.buttons.fullscreen,
162
- isFullscreen: I.value,
163
- titles: { ...t.value.userOptions.buttonTitles },
164
- chartElement: y.value,
165
- position: t.value.userOptions.position,
166
- callbacks: t.value.userOptions.callbacks,
167
- printScale: t.value.userOptions.print.scale,
168
- onToggleFullscreen: te,
169
- onGeneratePdf: i(N),
170
- onGenerateCsv: U,
171
- onGenerateImage: i(S),
172
- style: C({
173
- visibility: i(x) ? i($) ? "visible" : "hidden" : "visible"
174
- })
175
- }, re({ _: 2 }, [
176
- e.$slots.menuIcon ? {
177
- name: "menuIcon",
178
- fn: b(({ isOpen: a, color: s }) => [
179
- u(e.$slots, "menuIcon", G(B({ isOpen: a, color: s })), void 0, !0)
180
- ]),
181
- key: "0"
182
- } : void 0,
183
- e.$slots.optionPdf ? {
184
- name: "optionPdf",
185
- fn: b(() => [
186
- u(e.$slots, "optionPdf", {}, void 0, !0)
187
- ]),
188
- key: "1"
189
- } : void 0,
190
- e.$slots.optionCsv ? {
191
- name: "optionCsv",
192
- fn: b(() => [
193
- u(e.$slots, "optionCsv", {}, void 0, !0)
194
- ]),
195
- key: "2"
196
- } : void 0,
197
- e.$slots.optionImg ? {
198
- name: "optionImg",
199
- fn: b(() => [
200
- u(e.$slots, "optionImg", {}, void 0, !0)
201
- ]),
202
- key: "3"
203
- } : void 0,
204
- e.$slots.optionFullscreen ? {
205
- name: "optionFullscreen",
206
- fn: b(({ toggleFullscreen: a, isFullscreen: s }) => [
207
- u(e.$slots, "optionFullscreen", G(B({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
208
- ]),
209
- key: "4"
210
- } : void 0
211
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
212
- g("table", {
213
- class: E({ "vue-ui-table-heatmap": !0 }),
214
- style: C(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
215
- }, [
216
- g("caption", null, [
217
- u(e.$slots, "caption", {}, void 0, !0)
218
- ]),
219
- g("thead", null, [
220
- g("tr", {
221
- role: "row",
222
- style: C(`background:${t.value.table.head.backgroundColor};color:${t.value.table.head.color}`)
223
- }, [
224
- (n(!0), r(k, null, w(t.value.table.head.values, (a, s) => (n(), r("th", $e, [
225
- u(e.$slots, "head", f({ ref_for: !0 }, { value: a, rowIndex: s, type: typeof a, isResponsive: d.value }), void 0, !0)
226
- ]))), 256))
227
- ], 4)
228
- ]),
229
- g("tbody", null, [
230
- (n(!0), r(k, null, w(T.value, (a, s) => (n(), r("tr", we, [
231
- (n(!0), r(k, null, w(a.displayValues, (l, p) => (n(), r("td", {
232
- role: "cell",
233
- "data-cell": t.value.table.head.values[p]
234
- }, [
235
- a.color && p === 0 ? (n(), r("div", Pe, [
236
- a.color ? (n(), r("svg", {
237
- key: 0,
238
- height: t.value.style.shapeSize,
239
- width: t.value.style.shapeSize,
240
- viewBox: "0 0 20 20",
241
- style: { background: "none", overflow: "visible" }
242
- }, [
243
- ue(ke, {
244
- plot: { x: 10, y: 10 },
245
- color: a.color,
246
- radius: 9,
247
- shape: a.shape || "circle"
248
- }, null, 8, ["color", "shape"])
249
- ], 8, xe)) : v("", !0),
250
- u(e.$slots, "rowTitle", f({ ref_for: !0 }, { value: l, rowIndex: s, colIndex: p, type: typeof l, isResponsive: d.value }), void 0, !0)
251
- ])) : (n(), r(k, { key: 1 }, [
252
- p === 0 ? u(e.$slots, "rowTitle", f({
253
- key: 0,
254
- ref_for: !0
255
- }, { value: l, rowIndex: s, colIndex: p, type: typeof l, isResponsive: d.value }), void 0, !0) : v("", !0),
256
- p > 0 ? u(e.$slots, "cell", f({
257
- key: 1,
258
- ref_for: !0
259
- }, { value: l, rowIndex: s, colIndex: p, type: typeof l, isResponsive: d.value, color: a.colors[p], textColor: i(ve)(a.colors[p]) }), void 0, !0) : v("", !0)
260
- ], 64))
261
- ], 8, Oe))), 256)),
262
- t.value.table.showSum ? (n(), r("td", Fe, [
263
- u(e.$slots, "sum", f({ ref_for: !0 }, { value: a.sum, rowIndex: s, isResponsive: d.value }), void 0, !0)
264
- ])) : v("", !0),
265
- t.value.table.showAverage ? (n(), r("td", Ne, [
266
- u(e.$slots, "average", f({ ref_for: !0 }, { value: a.average, rowIndex: s, isResponsive: d.value }), void 0, !0)
267
- ])) : v("", !0),
268
- t.value.table.showMedian ? (n(), r("td", Se, [
269
- u(e.$slots, "median", f({ ref_for: !0 }, { value: a.median, rowIndex: s, isResponsive: d.value }), void 0, !0)
270
- ])) : v("", !0)
271
- ]))), 256))
272
- ])
273
- ], 4),
274
- e.$slots.source ? (n(), r("div", Ve, [
275
- u(e.$slots, "source", {}, void 0, !0)
276
- ], 512)) : v("", !0)
277
- ], 46, Ie));
278
- }
279
- }, He = /* @__PURE__ */ _e(Re, [["__scopeId", "data-v-8e88d7ae"]]);
280
- export {
281
- He as default
282
- };