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,8 +1,8 @@
1
- import { L as Y, t as W, S as G, Q as J, d as K, U as Z, P as q, ai as Q, h as $, J as ee, s as E, p as te } from "./lib-C_mNZmhD.js";
2
- import { u as se } from "./useNestedProp-CReNavA0.js";
3
- import ne from "./vue-ui-xy-Cz2qIEfi.js";
4
- import re from "./vue-ui-donut-B_tEm4dT.js";
5
- import le from "./BaseIcon-BmMbm4d0.js";
1
+ import { m as Y, t as W, n as G, q as J, d as K, r as Z, u as q, v as Q, l as $, w as ee, s as E, p as te } from "./lib-C5BH09_g.js";
2
+ import { u as se } from "./useNestedProp-CWo6bftQ.js";
3
+ import { V as ne } from "./vue-ui-xy-Cy7mOurZ.js";
4
+ import { V as re } from "./vue-ui-donut-BLb0kj_P.js";
5
+ import le from "./BaseIcon-CofSxalQ.js";
6
6
  import { resolveComponent as D, createElementBlock as u, openBlock as c, normalizeStyle as g, createCommentVNode as b, createElementVNode as a, toDisplayString as h, withDirectives as O, withKeys as L, withModifiers as S, vModelText as A, createVNode as P, Fragment as C, renderList as k, normalizeClass as p, createTextVNode as _, vModelSelect as H, createBlock as R, ref as oe, computed as ae, useCssVars as ie } from "vue";
7
7
  import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const x = {
@@ -0,0 +1,307 @@
1
+ import { useCssVars as de, computed as v, defineAsyncComponent as ce, ref as b, useSlots as pe, onMounted as R, watch as ve, createElementBlock as r, openBlock as s, unref as i, normalizeClass as U, normalizeStyle as y, createBlock as fe, createCommentVNode as f, createElementVNode as g, createSlots as me, withCtx as h, renderSlot as u, normalizeProps as B, guardReactiveProps as D, Fragment as k, renderList as F, mergeProps as m, createVNode as be, nextTick as ge } from "vue";
2
+ import { c as G, o as he, g as Ce, ak as ye, w as ke, ai as _e, u as Ie, q as $e } from "./lib-C5BH09_g.js";
3
+ import { u as Fe, a as w } from "./useNestedProp-CWo6bftQ.js";
4
+ import { u as we } from "./usePrinter-DCJzEiS8.js";
5
+ import { u as Oe } from "./useThemeCheck-DGJ31Vi5.js";
6
+ import { u as Ae } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { _ as xe } from "./Shape-DE6X_t31.js";
8
+ import { _ as Pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const H = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, table: { head: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, L = { style: { backgroundColor: "#FFF8E1", color: "#424242", heatmapColors: { min: "#FFECB3", max: "#D32F2F" } }, table: { head: { backgroundColor: "#FFF8E1", color: "#424242" } } }, X = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", heatmapColors: { min: "#333333", max: "#66CC66" } }, table: { head: { backgroundColor: "#1A1A1A", color: "#99AA99" } } }, W = { style: { backgroundColor: "#fbfafa", color: "#8A9892", heatmapColors: { max: "#C09E85", min: "#DCDFE7" } }, table: { head: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, q = { style: { backgroundColor: "#f6f6fb", color: "#50606C", heatmapColors: { max: "#4A6A75", min: "#EFECEC" } }, table: { head: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, J = {
10
+ default: {},
11
+ dark: H,
12
+ celebration: L,
13
+ hack: X,
14
+ zen: W,
15
+ concrete: q
16
+ }, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17
+ __proto__: null,
18
+ celebration: L,
19
+ concrete: q,
20
+ dark: H,
21
+ default: J,
22
+ hack: X,
23
+ zen: W
24
+ }, Symbol.toStringTag, { value: "Module" })), Ee = ["id"], Se = { role: "cell" }, Te = { role: "row" }, Ne = ["data-cell"], Ve = {
25
+ key: 0,
26
+ style: { display: "flex", "flex-direction": "row", gap: "2px", "align-items": "center" }
27
+ }, Me = ["height", "width"], ze = {
28
+ key: 0,
29
+ role: "cell",
30
+ "data-cell": "sum"
31
+ }, Re = {
32
+ key: 1,
33
+ role: "cell",
34
+ "data-cell": "average"
35
+ }, Ue = {
36
+ key: 2,
37
+ role: "cell",
38
+ "data-cell": "median"
39
+ }, Be = {
40
+ key: 1,
41
+ ref: "source",
42
+ dir: "auto"
43
+ }, De = {
44
+ __name: "vue-ui-table-heatmap",
45
+ props: {
46
+ config: {
47
+ type: Object,
48
+ default() {
49
+ return {};
50
+ }
51
+ },
52
+ dataset: {
53
+ type: Array,
54
+ default() {
55
+ return [];
56
+ }
57
+ }
58
+ },
59
+ setup(K, { expose: Q }) {
60
+ de((e) => ({
61
+ v7bb1d4dc: ue.value,
62
+ v4b487b6d: re.value
63
+ }));
64
+ const Y = ce(() => import("./UserOptions-B3I-s3Lw.js")), { vue_ui_table_heatmap: Z } = Fe(), { isThemeValid: j, warnInvalidTheme: ee } = Oe(), p = K, _ = b(G()), d = b(!1), C = b(null), I = b(!1), O = b(0), te = pe();
65
+ R(() => {
66
+ te["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
67
+ });
68
+ const t = v({
69
+ get: () => P(),
70
+ set: (e) => e
71
+ }), { userOptionsVisible: $, setUserOptionsVisibility: A, keepUserOptionState: x } = Ae({ config: t.value });
72
+ function P() {
73
+ const e = w({
74
+ userConfig: p.config,
75
+ defaultConfig: Z
76
+ }), a = e.theme;
77
+ if (!a) return e;
78
+ if (!j.value(e))
79
+ return ee(e), e;
80
+ const o = w({
81
+ userConfig: J[a] || p.config,
82
+ defaultConfig: e
83
+ });
84
+ return w({
85
+ userConfig: p.config,
86
+ defaultConfig: o
87
+ });
88
+ }
89
+ ve(() => p.config, (e) => {
90
+ t.value = P(), $.value = !t.value.userOptions.showOnChartHover, T();
91
+ }, { deep: !0 });
92
+ const { isPrinting: oe, isImaging: ae, generatePdf: E, generateImage: S } = we({
93
+ elementId: `table_heatmap_${_.value}`,
94
+ fileName: "vue-ui-table-heatmap",
95
+ options: t.value.userOptions.print
96
+ }), ne = v(() => t.value.table.responsiveBreakpoint), se = v(() => !!p.dataset && p.dataset.length);
97
+ R(() => {
98
+ T();
99
+ });
100
+ function T() {
101
+ he(p.dataset) && Ce({
102
+ componentName: "VueUiTableHeatmap",
103
+ type: "dataset"
104
+ });
105
+ const e = new ResizeObserver((a) => {
106
+ a.forEach((o) => {
107
+ d.value = o.contentRect.width < ne.value;
108
+ });
109
+ });
110
+ C.value && e.observe(C.value);
111
+ }
112
+ const N = v(() => p.dataset.map((e) => {
113
+ const a = e.values.map((n) => isNaN(n) ? 0 : n), o = a.reduce((n, l) => n + l, 0);
114
+ return {
115
+ ...e,
116
+ values: a,
117
+ serieExtremes: {
118
+ max: Math.max(...a),
119
+ min: Math.min(...a)
120
+ },
121
+ sum: o,
122
+ average: o / a.length,
123
+ median: ye(a),
124
+ displayValues: [e.name, ...e.values],
125
+ id: G()
126
+ };
127
+ })), V = v(() => {
128
+ const e = N.value.flatMap((a) => a.values);
129
+ return {
130
+ min: Math.min(...e),
131
+ max: Math.max(...e)
132
+ };
133
+ });
134
+ function le(e, a) {
135
+ const o = t.value.style.heatmapColors.useIndividualScale;
136
+ return _e(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, o ? a.min : V.value.min, o ? a.max : V.value.max, e);
137
+ }
138
+ const M = v(() => N.value.map((e) => ({
139
+ ...e,
140
+ colors: e.displayValues.map((a) => isNaN(a) ? t.value.style.backgroundColor : le(a, e.serieExtremes))
141
+ }))), re = v(() => t.value.style.backgroundColor), ue = v(() => `${t.value.table.borderWidth}px`);
142
+ function z(e = null) {
143
+ ge(() => {
144
+ const a = M.value.map((l) => [
145
+ [l.name],
146
+ l.displayValues,
147
+ [l.sum],
148
+ [l.average],
149
+ [l.median]
150
+ ]), o = [[[""], t.value.table.head.values, ["sum"], ["average"], ["median"]]].concat(a), n = Ie(o);
151
+ e ? e(n) : $e({ csvContent: n, title: "vue-ui-table-heatmap" });
152
+ });
153
+ }
154
+ function ie(e) {
155
+ I.value = e, O.value += 1;
156
+ }
157
+ return Q({
158
+ generatePdf: E,
159
+ generateCsv: z,
160
+ generateImage: S
161
+ }), (e, a) => (s(), r("div", {
162
+ ref_key: "tableContainer",
163
+ ref: C,
164
+ style: y(`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;`),
165
+ class: U({ "vue-data-ui-component": !0, "vue-ui-responsive": d.value }),
166
+ id: `table_heatmap_${_.value}`,
167
+ onMouseenter: a[0] || (a[0] = () => i(A)(!0)),
168
+ onMouseleave: a[1] || (a[1] = () => i(A)(!1))
169
+ }, [
170
+ t.value.userOptions.show && se.value && (i(x) || i($)) ? (s(), fe(i(Y), {
171
+ ref: "details",
172
+ key: `user_option_${O.value}`,
173
+ backgroundColor: t.value.style.backgroundColor,
174
+ color: t.value.style.color,
175
+ isPrinting: i(oe),
176
+ isImaging: i(ae),
177
+ uid: _.value,
178
+ hasPdf: t.value.userOptions.buttons.pdf,
179
+ hasXls: t.value.userOptions.buttons.csv,
180
+ hasImg: t.value.userOptions.buttons.img,
181
+ hasFullscreen: t.value.userOptions.buttons.fullscreen,
182
+ isFullscreen: I.value,
183
+ titles: { ...t.value.userOptions.buttonTitles },
184
+ chartElement: C.value,
185
+ position: t.value.userOptions.position,
186
+ callbacks: t.value.userOptions.callbacks,
187
+ printScale: t.value.userOptions.print.scale,
188
+ onToggleFullscreen: ie,
189
+ onGeneratePdf: i(E),
190
+ onGenerateCsv: z,
191
+ onGenerateImage: i(S),
192
+ style: y({
193
+ visibility: i(x) ? i($) ? "visible" : "hidden" : "visible"
194
+ })
195
+ }, me({ _: 2 }, [
196
+ e.$slots.menuIcon ? {
197
+ name: "menuIcon",
198
+ fn: h(({ isOpen: o, color: n }) => [
199
+ u(e.$slots, "menuIcon", B(D({ isOpen: o, color: n })), void 0, !0)
200
+ ]),
201
+ key: "0"
202
+ } : void 0,
203
+ e.$slots.optionPdf ? {
204
+ name: "optionPdf",
205
+ fn: h(() => [
206
+ u(e.$slots, "optionPdf", {}, void 0, !0)
207
+ ]),
208
+ key: "1"
209
+ } : void 0,
210
+ e.$slots.optionCsv ? {
211
+ name: "optionCsv",
212
+ fn: h(() => [
213
+ u(e.$slots, "optionCsv", {}, void 0, !0)
214
+ ]),
215
+ key: "2"
216
+ } : void 0,
217
+ e.$slots.optionImg ? {
218
+ name: "optionImg",
219
+ fn: h(() => [
220
+ u(e.$slots, "optionImg", {}, void 0, !0)
221
+ ]),
222
+ key: "3"
223
+ } : void 0,
224
+ e.$slots.optionFullscreen ? {
225
+ name: "optionFullscreen",
226
+ fn: h(({ toggleFullscreen: o, isFullscreen: n }) => [
227
+ u(e.$slots, "optionFullscreen", B(D({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
228
+ ]),
229
+ key: "4"
230
+ } : void 0
231
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
232
+ g("table", {
233
+ class: U({ "vue-ui-table-heatmap": !0 }),
234
+ style: y(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
235
+ }, [
236
+ g("caption", null, [
237
+ u(e.$slots, "caption", {}, void 0, !0)
238
+ ]),
239
+ g("thead", null, [
240
+ g("tr", {
241
+ role: "row",
242
+ style: y(`background:${t.value.table.head.backgroundColor};color:${t.value.table.head.color}`)
243
+ }, [
244
+ (s(!0), r(k, null, F(t.value.table.head.values, (o, n) => (s(), r("th", Se, [
245
+ u(e.$slots, "head", m({ ref_for: !0 }, { value: o, rowIndex: n, type: typeof o, isResponsive: d.value }), void 0, !0)
246
+ ]))), 256))
247
+ ], 4)
248
+ ]),
249
+ g("tbody", null, [
250
+ (s(!0), r(k, null, F(M.value, (o, n) => (s(), r("tr", Te, [
251
+ (s(!0), r(k, null, F(o.displayValues, (l, c) => (s(), r("td", {
252
+ role: "cell",
253
+ "data-cell": t.value.table.head.values[c]
254
+ }, [
255
+ o.color && c === 0 ? (s(), r("div", Ve, [
256
+ o.color ? (s(), r("svg", {
257
+ key: 0,
258
+ height: t.value.style.shapeSize,
259
+ width: t.value.style.shapeSize,
260
+ viewBox: "0 0 20 20",
261
+ style: { background: "none", overflow: "visible" }
262
+ }, [
263
+ be(xe, {
264
+ plot: { x: 10, y: 10 },
265
+ color: o.color,
266
+ radius: 9,
267
+ shape: o.shape || "circle"
268
+ }, null, 8, ["color", "shape"])
269
+ ], 8, Me)) : f("", !0),
270
+ u(e.$slots, "rowTitle", m({ ref_for: !0 }, { value: l, rowIndex: n, colIndex: c, type: typeof l, isResponsive: d.value }), void 0, !0)
271
+ ])) : (s(), r(k, { key: 1 }, [
272
+ c === 0 ? u(e.$slots, "rowTitle", m({
273
+ key: 0,
274
+ ref_for: !0
275
+ }, { value: l, rowIndex: n, colIndex: c, type: typeof l, isResponsive: d.value }), void 0, !0) : f("", !0),
276
+ c > 0 ? u(e.$slots, "cell", m({
277
+ key: 1,
278
+ ref_for: !0
279
+ }, { value: l, rowIndex: n, colIndex: c, type: typeof l, isResponsive: d.value, color: o.colors[c], textColor: i(ke)(o.colors[c]) }), void 0, !0) : f("", !0)
280
+ ], 64))
281
+ ], 8, Ne))), 256)),
282
+ t.value.table.showSum ? (s(), r("td", ze, [
283
+ u(e.$slots, "sum", m({ ref_for: !0 }, { value: o.sum, rowIndex: n, isResponsive: d.value }), void 0, !0)
284
+ ])) : f("", !0),
285
+ t.value.table.showAverage ? (s(), r("td", Re, [
286
+ u(e.$slots, "average", m({ ref_for: !0 }, { value: o.average, rowIndex: n, isResponsive: d.value }), void 0, !0)
287
+ ])) : f("", !0),
288
+ t.value.table.showMedian ? (s(), r("td", Ue, [
289
+ u(e.$slots, "median", m({ ref_for: !0 }, { value: o.median, rowIndex: n, isResponsive: d.value }), void 0, !0)
290
+ ])) : f("", !0)
291
+ ]))), 256))
292
+ ])
293
+ ], 4),
294
+ e.$slots.source ? (s(), r("div", Be, [
295
+ u(e.$slots, "source", {}, void 0, !0)
296
+ ], 512)) : f("", !0)
297
+ ], 46, Ee));
298
+ }
299
+ }, Ge = /* @__PURE__ */ Pe(De, [["__scopeId", "data-v-9de1ab93"]]), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
300
+ __proto__: null,
301
+ default: Ge
302
+ }, Symbol.toStringTag, { value: "Module" }));
303
+ export {
304
+ Ye as a,
305
+ Ze as b,
306
+ Ge as v
307
+ };