vue-data-ui 3.22.14 → 3.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
  4. package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  5. package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
  6. package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  7. package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  8. package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
  9. package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
  10. package/dist/HillActions-BD9j_sOU.js +187 -0
  11. package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
  13. package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
  14. package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
  15. package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
  16. package/dist/Slicer-CIk57nL4.js +1163 -0
  17. package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
  18. package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
  19. package/dist/Title-BE3qg9xl.js +87 -0
  20. package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
  21. package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/composables.js +1 -1
  93. package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
  94. package/dist/exposedLib-C0DPCgFj.js +28 -0
  95. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  96. package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
  97. package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
  98. package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
  99. package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
  100. package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
  101. package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.js} +21 -21
  102. package/dist/ssr/vue-ui-donut.js +1 -1
  103. package/dist/ssr/vue-ui-xy.js +1 -1
  104. package/dist/ssr.js +2 -2
  105. package/dist/style.css +1 -1
  106. package/dist/types/vue-data-ui.d.ts +496 -0
  107. package/dist/types/vue-ui-hill.d.ts +90 -0
  108. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  109. package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
  110. package/dist/useHints-Dq_w2E8B.js +66 -0
  111. package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
  112. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
  113. package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
  114. package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
  115. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  116. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  117. package/dist/useTransitions-g_zBREk2.js +39 -0
  118. package/dist/utils.js +14 -14
  119. package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
  120. package/dist/vue-data-ui.js +77 -76
  121. package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
  122. package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
  123. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
  124. package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
  125. package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
  126. package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
  127. package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
  128. package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
  129. package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
  130. package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
  131. package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
  132. package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
  133. package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
  134. package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
  135. package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
  136. package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
  137. package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
  138. package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
  139. package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
  140. package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
  141. package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
  142. package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
  143. package/dist/vue-ui-gauge-ByE_txav.js +953 -0
  144. package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
  145. package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
  146. package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
  147. package/dist/vue-ui-hill-BT183G-_.js +1768 -0
  148. package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
  149. package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
  150. package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
  151. package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
  152. package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
  153. package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
  154. package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
  155. package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
  156. package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
  157. package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
  158. package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
  159. package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
  160. package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
  161. package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
  162. package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
  163. package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
  164. package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
  165. package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
  166. package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
  167. package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
  168. package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
  169. package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
  170. package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
  171. package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
  172. package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
  173. package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
  174. package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
  175. package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
  176. package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
  177. package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
  178. package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
  179. package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
  180. package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
  181. package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
  182. package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
  183. package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
  184. package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
  185. package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
  186. package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
  187. package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
  188. package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
  189. package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
  190. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  191. package/package.json +4 -4
  192. package/dist/Slicer-JdCzBeYM.js +0 -1149
  193. package/dist/Title-Thf71-8D.js +0 -87
  194. package/dist/exposedLib-CfZhN94x.js +0 -25
  195. package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
  196. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  197. package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
  198. package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
  199. package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
  200. package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
  201. package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
  202. package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
  203. package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
  204. package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
  205. package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
  206. package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
  207. package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
  208. package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
  209. package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
  210. package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
  211. package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
  212. package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
  213. package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
  214. package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
  215. package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
  216. package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
  217. package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
  218. package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
  219. package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
  220. package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
  221. package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
  222. package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
  223. package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
  224. package/dist/vue-ui-table-DEhy61ln.js +0 -1339
  225. package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
  226. package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
  227. package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
  228. package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
  229. package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
@@ -1,338 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, E as n, K as r, Q as i, et as ee, p as te, r as ne, vt as re } from "./lib-C-QGo8GG.js";
3
- import { t as ie } from "./useConfig-C0V0eG7L.js";
4
- import { t as ae } from "./usePrinter-C5ordS-4.js";
5
- import { t as a } from "./useNestedProp-BYfiWVP8.js";
6
- import { t as oe } from "./useThemeCheck-C43Tcqmk.js";
7
- import { t as se } from "./Shape-Dmh9jBFh.js";
8
- import { t as o } from "./_plugin-vue_export-helper-B3ysoDQm.js";
9
- import { t as ce } from "./useUserOptionState-DK-_1ddE.js";
10
- import { t as le } from "./vue_ui_table_heatmap-w8vx5k6f.js";
11
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as ue, createVNode as de, defineAsyncComponent as fe, guardReactiveProps as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onMounted as y, openBlock as b, ref as x, renderList as S, renderSlot as C, unref as w, useCssVars as pe, useSlots as me, watch as he, withCtx as T } from "vue";
12
- //#region src/components/vue-ui-table-heatmap.vue
13
- var E = /* @__PURE__ */ e({ default: () => P }), ge = ["id"], _e = { role: "cell" }, ve = { role: "row" }, D = ["data-cell"], O = {
14
- key: 0,
15
- style: {
16
- display: "flex",
17
- "flex-direction": "row",
18
- gap: "2px",
19
- "align-items": "center"
20
- }
21
- }, k = ["height", "width"], A = {
22
- key: 0,
23
- role: "cell",
24
- "data-cell": "sum"
25
- }, j = {
26
- key: 1,
27
- role: "cell",
28
- "data-cell": "average"
29
- }, M = {
30
- key: 2,
31
- role: "cell",
32
- "data-cell": "median"
33
- }, N = {
34
- key: 1,
35
- ref: "source",
36
- dir: "auto"
37
- }, P = /*#__PURE__*/ o({
38
- __name: "vue-ui-table-heatmap",
39
- props: {
40
- config: {
41
- type: Object,
42
- default() {
43
- return {};
44
- }
45
- },
46
- dataset: {
47
- type: Array,
48
- default() {
49
- return [];
50
- }
51
- }
52
- },
53
- setup(e, { expose: o }) {
54
- pe((e) => ({
55
- v52b63863: De.value,
56
- v32106484: Ee.value
57
- }));
58
- let E = fe(() => import("./UserOptions-BknvMNU1.js").then((e) => e.n)), { vue_ui_table_heatmap: P } = ie(), { isThemeValid: F, warnInvalidTheme: ye } = oe(), I = e, L = x(r()), R = x(!1), z = x(null), B = x(!1), V = x(0), be = me();
59
- y(() => {
60
- be["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
61
- });
62
- let H = c({
63
- get: () => K(),
64
- set: (e) => e
65
- }), { userOptionsVisible: U, setUserOptionsVisibility: W, keepUserOptionState: G } = ce({ config: H.value });
66
- function K() {
67
- let e = a({
68
- userConfig: I.config,
69
- defaultConfig: P
70
- }), t = e.theme;
71
- if (!t) return e;
72
- if (!F.value(e)) return ye(e), e;
73
- let n = a({
74
- userConfig: le[t] || I.config,
75
- defaultConfig: e
76
- });
77
- return a({
78
- userConfig: I.config,
79
- defaultConfig: n
80
- });
81
- }
82
- he(() => I.config, (e) => {
83
- H.value = K(), U.value = !H.value.userOptions.showOnChartHover, Y();
84
- }, { deep: !0 });
85
- let { isPrinting: xe, isImaging: Se, generatePdf: q, generateImage: J } = ae({
86
- elementId: `table_heatmap_${L.value}`,
87
- fileName: "vue-ui-table-heatmap",
88
- options: H.value.userOptions.print
89
- }), Ce = c(() => H.value.table.responsiveBreakpoint), we = c(() => !!I.dataset && I.dataset.length);
90
- y(() => {
91
- Y();
92
- });
93
- function Y() {
94
- t(I.dataset) && ee({
95
- componentName: "VueUiTableHeatmap",
96
- type: "dataset"
97
- });
98
- let e = new ResizeObserver((e) => {
99
- e.forEach((e) => {
100
- R.value = e.contentRect.width < Ce.value;
101
- });
102
- });
103
- z.value && e.observe(z.value);
104
- }
105
- let X = c(() => I.dataset.map((e) => {
106
- let t = e.values.map((e) => isNaN(e) ? 0 : e), n = t.reduce((e, t) => e + t, 0);
107
- return {
108
- ...e,
109
- values: t,
110
- serieExtremes: {
111
- max: Math.max(...t),
112
- min: Math.min(...t)
113
- },
114
- sum: n,
115
- average: n / t.length,
116
- median: te(t),
117
- displayValues: [e.name, ...e.values],
118
- id: r()
119
- };
120
- })), Z = c(() => {
121
- let e = X.value.flatMap((e) => e.values);
122
- return {
123
- min: Math.min(...e),
124
- max: Math.max(...e)
125
- };
126
- });
127
- function Te(e, t) {
128
- let n = H.value.style.heatmapColors.useIndividualScale;
129
- return re(H.value.style.heatmapColors.min, H.value.style.heatmapColors.max, n ? t.min : Z.value.min, n ? t.max : Z.value.max, e);
130
- }
131
- let Q = c(() => X.value.map((e) => ({
132
- ...e,
133
- colors: e.displayValues.map((t) => isNaN(t) ? H.value.style.backgroundColor : Te(t, e.serieExtremes))
134
- }))), Ee = c(() => H.value.style.backgroundColor), De = c(() => `${H.value.table.borderWidth}px`);
135
- function $(e = null) {
136
- h(() => {
137
- let t = Q.value.map((e) => [
138
- [e.name],
139
- e.displayValues,
140
- [e.sum],
141
- [e.average],
142
- [e.median]
143
- ]), r = n([[
144
- [""],
145
- H.value.table.head.values,
146
- ["sum"],
147
- ["average"],
148
- ["median"]
149
- ]].concat(t));
150
- e ? e(r) : i({
151
- csvContent: r,
152
- title: "vue-ui-table-heatmap"
153
- });
154
- });
155
- }
156
- function Oe(e) {
157
- B.value = e, V.value += 1;
158
- }
159
- return o({
160
- generatePdf: q,
161
- generateCsv: $,
162
- generateImage: J
163
- }), (e, t) => (b(), d("div", {
164
- ref_key: "tableContainer",
165
- ref: z,
166
- style: v(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${H.value.userOptions.show ? "36px" : ""}; ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""}; position:relative;`),
167
- class: g({
168
- "vue-data-ui-component": !0,
169
- "vue-ui-responsive": R.value
170
- }),
171
- id: `table_heatmap_${L.value}`,
172
- onMouseenter: t[0] ||= () => w(W)(!0),
173
- onMouseleave: t[1] ||= () => w(W)(!1)
174
- }, [
175
- H.value.userOptions.show && we.value && (w(G) || w(U)) ? (b(), l(w(E), {
176
- ref: "details",
177
- key: `user_option_${V.value}`,
178
- backgroundColor: H.value.style.backgroundColor,
179
- color: H.value.style.color,
180
- isPrinting: w(xe),
181
- isImaging: w(Se),
182
- uid: L.value,
183
- hasPdf: H.value.userOptions.buttons.pdf,
184
- hasXls: H.value.userOptions.buttons.csv,
185
- hasImg: H.value.userOptions.buttons.img,
186
- hasFullscreen: H.value.userOptions.buttons.fullscreen,
187
- isFullscreen: B.value,
188
- titles: { ...H.value.userOptions.buttonTitles },
189
- chartElement: z.value,
190
- position: H.value.userOptions.position,
191
- callbacks: H.value.userOptions.callbacks,
192
- printScale: H.value.userOptions.print.scale,
193
- onToggleFullscreen: Oe,
194
- onGeneratePdf: w(q),
195
- onGenerateCsv: $,
196
- onGenerateImage: w(J),
197
- style: v({ visibility: w(G) ? w(U) ? "visible" : "hidden" : "visible" })
198
- }, ue({ _: 2 }, [
199
- e.$slots.menuIcon ? {
200
- name: "menuIcon",
201
- fn: T(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", _(p({
202
- isOpen: t,
203
- color: n
204
- })), void 0, !0)]),
205
- key: "0"
206
- } : void 0,
207
- e.$slots.optionPdf ? {
208
- name: "optionPdf",
209
- fn: T(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
210
- key: "1"
211
- } : void 0,
212
- e.$slots.optionCsv ? {
213
- name: "optionCsv",
214
- fn: T(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
215
- key: "2"
216
- } : void 0,
217
- e.$slots.optionImg ? {
218
- name: "optionImg",
219
- fn: T(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
220
- key: "3"
221
- } : void 0,
222
- e.$slots.optionFullscreen ? {
223
- name: "optionFullscreen",
224
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", _(p({
225
- toggleFullscreen: t,
226
- isFullscreen: n
227
- })), void 0, !0)]),
228
- key: "4"
229
- } : void 0,
230
- e.$slots["custom-menu-before"] ? {
231
- name: "custom-menu-before",
232
- fn: T(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
233
- key: "5"
234
- } : void 0,
235
- e.$slots["custom-menu-after"] ? {
236
- name: "custom-menu-after",
237
- fn: T(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
238
- key: "6"
239
- } : void 0
240
- ]), 1032, [
241
- "backgroundColor",
242
- "color",
243
- "isPrinting",
244
- "isImaging",
245
- "uid",
246
- "hasPdf",
247
- "hasXls",
248
- "hasImg",
249
- "hasFullscreen",
250
- "isFullscreen",
251
- "titles",
252
- "chartElement",
253
- "position",
254
- "callbacks",
255
- "printScale",
256
- "onGeneratePdf",
257
- "onGenerateImage",
258
- "style"
259
- ])) : u("", !0),
260
- f("table", {
261
- class: g({ "vue-ui-table-heatmap": !0 }),
262
- style: v(`width:100%;font-family:${H.value.style.fontFamily};background:${H.value.style.backgroundColor};`)
263
- }, [
264
- f("caption", null, [C(e.$slots, "caption", {}, void 0, !0)]),
265
- f("thead", null, [f("tr", {
266
- role: "row",
267
- style: v(`background:${H.value.table.head.backgroundColor};color:${H.value.table.head.color}`)
268
- }, [(b(!0), d(s, null, S(H.value.table.head.values, (t, n) => (b(), d("th", _e, [C(e.$slots, "head", m({ ref_for: !0 }, {
269
- value: t,
270
- rowIndex: n,
271
- type: typeof t,
272
- isResponsive: R.value
273
- }), void 0, !0)]))), 256))], 4)]),
274
- f("tbody", null, [(b(!0), d(s, null, S(Q.value, (t, n) => (b(), d("tr", ve, [
275
- (b(!0), d(s, null, S(t.displayValues, (r, i) => (b(), d("td", {
276
- role: "cell",
277
- "data-cell": H.value.table.head.values[i]
278
- }, [t.color && i === 0 ? (b(), d("div", O, [t.color ? (b(), d("svg", {
279
- key: 0,
280
- height: H.value.style.shapeSize,
281
- width: H.value.style.shapeSize,
282
- viewBox: "0 0 20 20",
283
- style: {
284
- background: "none",
285
- overflow: "visible"
286
- }
287
- }, [de(se, {
288
- plot: {
289
- x: 10,
290
- y: 10
291
- },
292
- color: t.color,
293
- radius: 9,
294
- shape: t.shape || "circle"
295
- }, null, 8, ["color", "shape"])], 8, k)) : u("", !0), C(e.$slots, "rowTitle", m({ ref_for: !0 }, {
296
- value: r,
297
- rowIndex: n,
298
- colIndex: i,
299
- type: typeof r,
300
- isResponsive: R.value
301
- }), void 0, !0)])) : (b(), d(s, { key: 1 }, [i === 0 ? C(e.$slots, "rowTitle", m({ ref_for: !0 }, {
302
- value: r,
303
- rowIndex: n,
304
- colIndex: i,
305
- type: typeof r,
306
- isResponsive: R.value
307
- }), void 0, !0, 0) : u("", !0), i > 0 ? C(e.$slots, "cell", m({ ref_for: !0 }, {
308
- value: r,
309
- rowIndex: n,
310
- colIndex: i,
311
- type: typeof r,
312
- isResponsive: R.value,
313
- color: t.colors[i],
314
- textColor: w(ne)(t.colors[i])
315
- }), void 0, !0, 1) : u("", !0)], 64))], 8, D))), 256)),
316
- H.value.table.showSum ? (b(), d("td", A, [C(e.$slots, "sum", m({ ref_for: !0 }, {
317
- value: t.sum,
318
- rowIndex: n,
319
- isResponsive: R.value
320
- }), void 0, !0)])) : u("", !0),
321
- H.value.table.showAverage ? (b(), d("td", j, [C(e.$slots, "average", m({ ref_for: !0 }, {
322
- value: t.average,
323
- rowIndex: n,
324
- isResponsive: R.value
325
- }), void 0, !0)])) : u("", !0),
326
- H.value.table.showMedian ? (b(), d("td", M, [C(e.$slots, "median", m({ ref_for: !0 }, {
327
- value: t.median,
328
- rowIndex: n,
329
- isResponsive: R.value
330
- }), void 0, !0)])) : u("", !0)
331
- ]))), 256))])
332
- ], 4),
333
- e.$slots.source ? (b(), d("div", N, [C(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0)
334
- ], 46, ge));
335
- }
336
- }, [["__scopeId", "data-v-57d3c3aa"]]);
337
- //#endregion
338
- export { E as n, P as t };