vue-data-ui 2.4.84 → 2.4.86

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 (168) hide show
  1. package/dist/{Arrow-DCfmf5dA.cjs → Arrow-Bh7Ezbzf.cjs} +1 -1
  2. package/dist/{Arrow-CExa0Dz7.js → Arrow-DpgbndsU.js} +1 -1
  3. package/dist/{BaseIcon-64qWZUaJ.cjs → BaseIcon-CaKclr1e.cjs} +1 -1
  4. package/dist/{BaseIcon-I6DfuN0D.js → BaseIcon-CdPe2CAc.js} +1 -1
  5. package/dist/{DataTable-DYhXzoFM.js → DataTable-BfiPjHpN.js} +2 -2
  6. package/dist/{DataTable-C_6KWwfC.cjs → DataTable-DuosyZ6d.cjs} +1 -1
  7. package/dist/{Legend-BkolTSZc.cjs → Legend-BnKYc6ZY.cjs} +1 -1
  8. package/dist/{Legend-D8VMKZ6f.js → Legend-DiFDWEo2.js} +2 -2
  9. package/dist/{PackageVersion-BV362f3w.cjs → PackageVersion-B5rBHZEb.cjs} +1 -1
  10. package/dist/{PackageVersion-CO2IMTO9.js → PackageVersion-qom4AEUr.js} +1 -1
  11. package/dist/{PenAndPaper-DvN8ocWC.cjs → PenAndPaper-5OV7IAca.cjs} +1 -1
  12. package/dist/{PenAndPaper-CnW2eqXw.js → PenAndPaper-C-1AU46J.js} +3 -3
  13. package/dist/{Shape-VkiqMBJb.cjs → Shape-CmsIulaS.cjs} +1 -1
  14. package/dist/{Shape-Bit--n_P.js → Shape-Dmv7nCLC.js} +1 -1
  15. package/dist/{Slicer-D8EYKe1g.cjs → Slicer-CmBt4xoj.cjs} +1 -1
  16. package/dist/{Slicer-BIRZ38gw.js → Slicer-D4ugcR39.js} +2 -2
  17. package/dist/{Title-C_gOJvlv.js → Title-ClQ27HaB.js} +1 -1
  18. package/dist/{Title-BVwrrnjn.cjs → Title-D3kX1BVl.cjs} +1 -1
  19. package/dist/{Tooltip-CfsfUzgu.cjs → Tooltip-CARCyQNT.cjs} +1 -1
  20. package/dist/{Tooltip-Czv48jTt.js → Tooltip-CGYgJoPR.js} +1 -1
  21. package/dist/{index-CFW17vb1.js → index-CXx0JV8R.js} +1 -1
  22. package/dist/{index-DtU3BvTq.cjs → index-DqxDpUy0.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-HPB1YHuD.js → useNestedProp-B-WAbP7E.js} +1 -1
  25. package/dist/{useNestedProp-Bwqm-3kz.cjs → useNestedProp-DNWKDmdP.cjs} +1 -1
  26. package/dist/{usePrinter-CdEwyYTo.cjs → usePrinter-BC7U4s0U.cjs} +1 -1
  27. package/dist/{usePrinter-19frcFuH.js → usePrinter-Ctor1UK0.js} +1 -1
  28. package/dist/{vue-data-ui-Cwa_3CUx.js → vue-data-ui-BpAZx3Va.js} +60 -60
  29. package/dist/{vue-data-ui-Do7J2TPn.cjs → vue-data-ui-DkgWwqtw.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-DFyAJ8Js.js → vue-ui-3d-bar-1A6t1biQ.js} +9 -9
  33. package/dist/{vue-ui-3d-bar-BHQnk6JC.cjs → vue-ui-3d-bar-ngD35pLb.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-B8vShfXi.js → vue-ui-accordion-BljYKOXR.js} +3 -3
  35. package/dist/{vue-ui-accordion-DP9u_TW0.cjs → vue-ui-accordion-XAEm2rxj.cjs} +1 -1
  36. package/dist/vue-ui-age-pyramid-BgsDYe37.cjs +1 -0
  37. package/dist/{vue-ui-age-pyramid-Dmve7QfH.js → vue-ui-age-pyramid-qfVpUr52.js} +14 -12
  38. package/dist/{vue-ui-annotator-BlXk3QBH.js → vue-ui-annotator-CH9QWqAv.js} +1 -1
  39. package/dist/{vue-ui-annotator-D9EQpzhs.cjs → vue-ui-annotator-pFybuGix.cjs} +1 -1
  40. package/dist/{vue-ui-bullet-C_689DzY.js → vue-ui-bullet-BH7zmX0E.js} +8 -8
  41. package/dist/{vue-ui-bullet-HVCVCTLU.cjs → vue-ui-bullet-C6y7Ddg-.cjs} +1 -1
  42. package/dist/{vue-ui-candlestick-jaQCvTyL.cjs → vue-ui-candlestick-DtCmxeo5.cjs} +2 -2
  43. package/dist/{vue-ui-candlestick-BeoPugFC.js → vue-ui-candlestick-RCtFAjEU.js} +72 -70
  44. package/dist/{vue-ui-carousel-table-DSJth2mn.js → vue-ui-carousel-table-BUL063mi.js} +4 -4
  45. package/dist/{vue-ui-carousel-table-C6TjkSgb.cjs → vue-ui-carousel-table-BeDenKJo.cjs} +1 -1
  46. package/dist/{vue-ui-chestnut-B2ufyy3m.cjs → vue-ui-chestnut-B6EalNLT.cjs} +1 -1
  47. package/dist/{vue-ui-chestnut-DYFaL9sS.js → vue-ui-chestnut-xDD_4bz2.js} +8 -8
  48. package/dist/{vue-ui-cursor-0SZiJ6tf.js → vue-ui-cursor-D6Qndjnn.js} +2 -2
  49. package/dist/{vue-ui-cursor-B8ne66iS.cjs → vue-ui-cursor-DbV0HXHB.cjs} +1 -1
  50. package/dist/{vue-ui-dashboard-9JNDS8H_.js → vue-ui-dashboard-B_4ot4bz.js} +2 -2
  51. package/dist/{vue-ui-dashboard-Cc6YeOue.cjs → vue-ui-dashboard-B_kj8L_A.cjs} +1 -1
  52. package/dist/{vue-ui-digits-DNyhJL4P.js → vue-ui-digits-BLI4lCZC.js} +2 -2
  53. package/dist/{vue-ui-digits-lJ7p7zK0.cjs → vue-ui-digits-DKs2fTGz.cjs} +1 -1
  54. package/dist/vue-ui-donut-B1Cg4vpI.cjs +1 -0
  55. package/dist/{vue-ui-donut-evolution-CNUN-Ibl.cjs → vue-ui-donut-evolution-CgB_aexh.cjs} +1 -1
  56. package/dist/{vue-ui-donut-evolution-BZgaPkPQ.js → vue-ui-donut-evolution-ClOGDHiK.js} +11 -11
  57. package/dist/{vue-ui-donut-rUTpcnu6.js → vue-ui-donut-wBZoPkru.js} +17 -15
  58. package/dist/vue-ui-dumbbell-Cm5O6D4x.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-Dt0y6iAc.js → vue-ui-dumbbell-PR9tHMvD.js} +48 -46
  60. package/dist/{vue-ui-flow-DoDnRTz2.cjs → vue-ui-flow-CIkXePxd.cjs} +1 -1
  61. package/dist/{vue-ui-flow-CNJvuCPl.js → vue-ui-flow-CxW8g0NW.js} +9 -9
  62. package/dist/{vue-ui-funnel-CzxjqsPW.js → vue-ui-funnel-BJNlWIq5.js} +37 -35
  63. package/dist/vue-ui-funnel-BLXk1z5r.cjs +1 -0
  64. package/dist/{vue-ui-galaxy-Bd3A40CM.cjs → vue-ui-galaxy-C01Apc4E.cjs} +1 -1
  65. package/dist/{vue-ui-galaxy-4lQvAV3d.js → vue-ui-galaxy-DuGLDGzf.js} +11 -11
  66. package/dist/{vue-ui-gauge-C-VzxGad.js → vue-ui-gauge-CBx84KCt.js} +28 -26
  67. package/dist/vue-ui-gauge-Dpcxdegh.cjs +1 -0
  68. package/dist/{vue-ui-gizmo-CE_RL3QC.js → vue-ui-gizmo-BPIyNNkI.js} +3 -3
  69. package/dist/{vue-ui-gizmo-C_H8YGW3.cjs → vue-ui-gizmo-Djw5T_Vr.cjs} +1 -1
  70. package/dist/{vue-ui-heatmap-GRSinjd8.js → vue-ui-heatmap-DI8gVwfM.js} +10 -10
  71. package/dist/{vue-ui-heatmap-9F3jF9Ph.cjs → vue-ui-heatmap-DYPE1Efx.cjs} +1 -1
  72. package/dist/vue-ui-history-plot-BeYYrq5_.cjs +1 -0
  73. package/dist/{vue-ui-history-plot-DmGaPsqO.js → vue-ui-history-plot-CWfWMwqw.js} +56 -54
  74. package/dist/{vue-ui-kpi-Ce45VFCW.cjs → vue-ui-kpi-BjGIj-IQ.cjs} +1 -1
  75. package/dist/{vue-ui-kpi-BeGj6WIY.js → vue-ui-kpi-CBJZp-nE.js} +3 -3
  76. package/dist/{vue-ui-mini-loader-D3edtEz_.cjs → vue-ui-mini-loader-Cafts_cp.cjs} +1 -1
  77. package/dist/{vue-ui-mini-loader-DE8S92Sq.js → vue-ui-mini-loader-DfeNWsJk.js} +2 -2
  78. package/dist/{vue-ui-molecule-B3DvbGKk.js → vue-ui-molecule-BTO5WRuL.js} +11 -11
  79. package/dist/{vue-ui-molecule-CBXx1n83.cjs → vue-ui-molecule-Ckh2JsOJ.cjs} +1 -1
  80. package/dist/{vue-ui-mood-radar-D86fg_ce.js → vue-ui-mood-radar-CKGwiCsd.js} +11 -11
  81. package/dist/{vue-ui-mood-radar-LiiA0Dc-.cjs → vue-ui-mood-radar-WHFk1KC1.cjs} +1 -1
  82. package/dist/{vue-ui-nested-donuts-BXKM6dJG.cjs → vue-ui-nested-donuts-BvkJoiOT.cjs} +2 -2
  83. package/dist/{vue-ui-nested-donuts-jk4b-l4R.js → vue-ui-nested-donuts-JGie_log.js} +16 -14
  84. package/dist/{vue-ui-onion-DMDU5CNx.cjs → vue-ui-onion-BWoVr0FT.cjs} +2 -2
  85. package/dist/{vue-ui-onion-0OpNltFd.js → vue-ui-onion-BXauNEVz.js} +31 -29
  86. package/dist/{vue-ui-parallel-coordinate-plot-C6z7ZrZv.cjs → vue-ui-parallel-coordinate-plot-BrvB0jer.cjs} +2 -2
  87. package/dist/{vue-ui-parallel-coordinate-plot-CK1Npqa-.js → vue-ui-parallel-coordinate-plot-njogPtYo.js} +62 -60
  88. package/dist/vue-ui-quadrant-D8krEYWV.cjs +1 -0
  89. package/dist/{vue-ui-quadrant-BTXxbgGe.js → vue-ui-quadrant-DnaOzxMc.js} +16 -14
  90. package/dist/{vue-ui-quick-chart-C648x_Ta.cjs → vue-ui-quick-chart-DTiell5S.cjs} +2 -2
  91. package/dist/{vue-ui-quick-chart-DxTYh43Q.js → vue-ui-quick-chart-kAG9Eaxb.js} +55 -53
  92. package/dist/vue-ui-radar-DKB9rVav.cjs +1 -0
  93. package/dist/{vue-ui-radar-ogrYz2LM.js → vue-ui-radar-DRmP5yb4.js} +100 -98
  94. package/dist/{vue-ui-rating-BA3qzlLU.cjs → vue-ui-rating-BtLDJSwm.cjs} +1 -1
  95. package/dist/{vue-ui-rating-BDOw91i1.js → vue-ui-rating-De5IfgHJ.js} +2 -2
  96. package/dist/vue-ui-relation-circle-B2l-2KnH.cjs +1 -0
  97. package/dist/{vue-ui-relation-circle-DzIUtPsI.js → vue-ui-relation-circle-DKQl7eWX.js} +56 -54
  98. package/dist/{vue-ui-rings-ZT5FspBJ.js → vue-ui-rings-Dwyz2fEm.js} +39 -37
  99. package/dist/{vue-ui-rings-CC2lRhXV.cjs → vue-ui-rings-KQoMkv4v.cjs} +2 -2
  100. package/dist/vue-ui-scatter-CDT3zyXP.cjs +1 -0
  101. package/dist/{vue-ui-scatter-DWrEQi8R.js → vue-ui-scatter-DeOrkD2Y.js} +52 -50
  102. package/dist/{vue-ui-screenshot-C5qnoqpN.cjs → vue-ui-screenshot-BLp1_Q6K.cjs} +1 -1
  103. package/dist/{vue-ui-screenshot-Cu9IDDlN.js → vue-ui-screenshot-D1Ekbb27.js} +1 -1
  104. package/dist/{vue-ui-skeleton-RRyod9qq.js → vue-ui-skeleton-Cw0-Ac_0.js} +3 -3
  105. package/dist/{vue-ui-skeleton-BJjc2poJ.cjs → vue-ui-skeleton-qIxxRRaX.cjs} +1 -1
  106. package/dist/{vue-ui-smiley-y9nTUBhA.cjs → vue-ui-smiley-D3WgXFhb.cjs} +1 -1
  107. package/dist/{vue-ui-smiley-Ph-v2-Ai.js → vue-ui-smiley-D3oqt6Rg.js} +2 -2
  108. package/dist/{vue-ui-spark-trend-CLToG1xM.cjs → vue-ui-spark-trend-CVyPm6ms.cjs} +1 -1
  109. package/dist/{vue-ui-spark-trend-Bny5SJnu.js → vue-ui-spark-trend-DyhcWMWz.js} +5 -5
  110. package/dist/{vue-ui-sparkbar-Cte6J2j-.js → vue-ui-sparkbar-C0av7SAn.js} +4 -4
  111. package/dist/{vue-ui-sparkbar-XuIl0I-2.cjs → vue-ui-sparkbar-CRMMOv0T.cjs} +1 -1
  112. package/dist/{vue-ui-sparkgauge-NGpDEiOA.js → vue-ui-sparkgauge-B3K4si6u.js} +4 -4
  113. package/dist/{vue-ui-sparkgauge-85UuRRgo.cjs → vue-ui-sparkgauge-BQnxP_8u.cjs} +1 -1
  114. package/dist/{vue-ui-sparkhistogram-DC6GQfGG.js → vue-ui-sparkhistogram-Bo3pkA-I.js} +5 -5
  115. package/dist/{vue-ui-sparkhistogram-g9PwZ66_.cjs → vue-ui-sparkhistogram-DVAas7L7.cjs} +1 -1
  116. package/dist/vue-ui-sparkline-CDqFBaPU.cjs +1 -0
  117. package/dist/{vue-ui-sparkline-Cv0OStNn.js → vue-ui-sparkline-DIHKGu0H.js} +37 -35
  118. package/dist/{vue-ui-sparkstackbar-Dvi0gC4_.cjs → vue-ui-sparkstackbar-CC-OaMTb.cjs} +1 -1
  119. package/dist/{vue-ui-sparkstackbar-lUSVcaQd.js → vue-ui-sparkstackbar-DG87wFd5.js} +5 -5
  120. package/dist/{vue-ui-stackbar-DjJtIsdz.cjs → vue-ui-stackbar-CVHKHNom.cjs} +2 -2
  121. package/dist/{vue-ui-stackbar-CqbbJfYt.js → vue-ui-stackbar-fZKaRitE.js} +55 -53
  122. package/dist/vue-ui-strip-plot-C1pjZ1AT.cjs +1 -0
  123. package/dist/{vue-ui-strip-plot-BCg5ReEr.js → vue-ui-strip-plot-WOMaN28I.js} +77 -75
  124. package/dist/{vue-ui-table-BLtxfmhY.cjs → vue-ui-table-CTtYDZPd.cjs} +1 -1
  125. package/dist/{vue-ui-table-C0gtq240.js → vue-ui-table-a4m3lpRq.js} +1 -1
  126. package/dist/{vue-ui-table-heatmap-QuqCtJWs.js → vue-ui-table-heatmap-0vDMKYpV.js} +4 -4
  127. package/dist/{vue-ui-table-heatmap-Df4MQoU-.cjs → vue-ui-table-heatmap-i00aBLPq.cjs} +1 -1
  128. package/dist/{vue-ui-table-sparkline-Cgt7aEwb.js → vue-ui-table-sparkline-D5lngzCM.js} +5 -5
  129. package/dist/{vue-ui-table-sparkline-CUD-P2XB.cjs → vue-ui-table-sparkline-DW7t3xfB.cjs} +1 -1
  130. package/dist/{vue-ui-thermometer-Dmba_BQM.js → vue-ui-thermometer-3aeRI-SM.js} +7 -7
  131. package/dist/{vue-ui-thermometer-DwFIhO9V.cjs → vue-ui-thermometer-QtlVD4-S.cjs} +1 -1
  132. package/dist/vue-ui-timer-B1nkj0WG.cjs +64 -0
  133. package/dist/{vue-ui-timer-C7B7kC_T.js → vue-ui-timer-mRaLpRHZ.js} +35 -33
  134. package/dist/{vue-ui-tiremarks-D5xKuhfo.js → vue-ui-tiremarks-Dv2O6FpS.js} +7 -7
  135. package/dist/{vue-ui-tiremarks-Cbu6E711.cjs → vue-ui-tiremarks-xMuvEsN7.cjs} +1 -1
  136. package/dist/vue-ui-treemap-BupfwSFa.cjs +1 -0
  137. package/dist/{vue-ui-treemap-4MV0XnQk.js → vue-ui-treemap-D89aQanB.js} +37 -35
  138. package/dist/{vue-ui-vertical-bar-CXyj54xk.js → vue-ui-vertical-bar-BpLIp4qR.js} +53 -51
  139. package/dist/{vue-ui-vertical-bar-CoReGxcB.cjs → vue-ui-vertical-bar-CwHag6jq.cjs} +2 -2
  140. package/dist/vue-ui-waffle-DuPI0NV4.cjs +1 -0
  141. package/dist/{vue-ui-waffle-DEs7x_2T.js → vue-ui-waffle-sr2mWvpN.js} +50 -48
  142. package/dist/{vue-ui-wheel-g8X99gKX.js → vue-ui-wheel-B7DOHXW8.js} +22 -20
  143. package/dist/vue-ui-wheel-C0KYRHGC.cjs +1 -0
  144. package/dist/vue-ui-word-cloud-BCPMmXhU.cjs +1 -0
  145. package/dist/{vue-ui-word-cloud-CVa0GWD2.js → vue-ui-word-cloud-BxMb7oCr.js} +47 -45
  146. package/dist/vue-ui-xy-D5ROTNHD.cjs +3 -0
  147. package/dist/{vue-ui-xy-BGlQK1KX.js → vue-ui-xy-DlyUTKB5.js} +809 -818
  148. package/dist/{vue-ui-xy-canvas-B8lWHhig.cjs → vue-ui-xy-canvas-BDMk6XVE.cjs} +2 -2
  149. package/dist/{vue-ui-xy-canvas-C5WvLq7x.js → vue-ui-xy-canvas-DHvkJKQH.js} +36 -34
  150. package/package.json +1 -1
  151. package/dist/vue-ui-age-pyramid-DZM35V2u.cjs +0 -1
  152. package/dist/vue-ui-donut-B1pUA9f9.cjs +0 -1
  153. package/dist/vue-ui-dumbbell-Cvsoh0T7.cjs +0 -9
  154. package/dist/vue-ui-funnel-BuMkpJAC.cjs +0 -1
  155. package/dist/vue-ui-gauge-BE_j4sWG.cjs +0 -1
  156. package/dist/vue-ui-history-plot-CCRPcG-q.cjs +0 -1
  157. package/dist/vue-ui-quadrant-BseIxY55.cjs +0 -1
  158. package/dist/vue-ui-radar-BRL3W3Na.cjs +0 -1
  159. package/dist/vue-ui-relation-circle-lh7NE0h5.cjs +0 -1
  160. package/dist/vue-ui-scatter-ebuihNvY.cjs +0 -1
  161. package/dist/vue-ui-sparkline-BiqTIIb1.cjs +0 -1
  162. package/dist/vue-ui-strip-plot-y7iID0n4.cjs +0 -1
  163. package/dist/vue-ui-timer-mYvuMMWA.cjs +0 -64
  164. package/dist/vue-ui-treemap-CE67vTLK.cjs +0 -1
  165. package/dist/vue-ui-waffle-8nA0-Wb6.cjs +0 -1
  166. package/dist/vue-ui-wheel-CJr7fA0P.cjs +0 -1
  167. package/dist/vue-ui-word-cloud-B6swJJCN.cjs +0 -1
  168. package/dist/vue-ui-xy-lkMHpHRs.cjs +0 -3
@@ -1,19 +1,19 @@
1
- import { computed as d, ref as n, watch as Ge, onMounted as Ue, onBeforeUnmount as Ve, openBlock as s, createElementBlock as u, normalizeClass as F, normalizeStyle as B, unref as v, createBlock as T, createCommentVNode as c, createSlots as Ee, withCtx as f, renderSlot as p, normalizeProps as M, guardReactiveProps as W, createVNode as $e, Fragment as g, renderList as C, createElementVNode as k, toDisplayString as L, mergeProps as He, createTextVNode as Re, nextTick as Be } from "vue";
2
- import { u as Xe, c as ee, t as je, a as Ye, p as A, o as Je, e as te, g as _e, b as qe, d as Te, v as Ke, D as Qe, f as X, X as Ze, i as le, l as et, h as tt, x as Le, y as lt, q as at, r as ot, F as st } from "./index-CFW17vb1.js";
1
+ import { computed as d, ref as n, watch as Ge, onMounted as Ue, onBeforeUnmount as Ve, openBlock as s, createElementBlock as u, normalizeClass as F, normalizeStyle as B, unref as v, createBlock as T, createCommentVNode as c, createSlots as Ee, withCtx as y, renderSlot as p, normalizeProps as M, guardReactiveProps as W, createVNode as $e, Fragment as g, renderList as C, createElementVNode as k, toDisplayString as A, mergeProps as He, createTextVNode as Re, nextTick as Be } from "vue";
2
+ import { u as Xe, c as ee, t as je, a as Ye, p as L, o as qe, e as te, g as _e, b as Je, d as Te, v as Ke, D as Qe, f as X, X as Ze, i as le, l as et, h as tt, x as Ae, y as lt, q as at, r as ot, F as st } from "./index-CXx0JV8R.js";
3
3
  import { t as rt, u as ut } from "./useResponsive-CoxXLe23.js";
4
- import { _ as it } from "./Title-C_gOJvlv.js";
5
- import { u as nt, U as vt } from "./usePrinter-19frcFuH.js";
6
- import { _ as ct } from "./Tooltip-Czv48jTt.js";
7
- import { D as ht } from "./DataTable-DYhXzoFM.js";
8
- import dt from "./vue-ui-skeleton-RRyod9qq.js";
9
- import { _ as pt } from "./Shape-Bit--n_P.js";
10
- import yt from "./vue-ui-accordion-B8vShfXi.js";
11
- import { u as Ae } from "./useNestedProp-HPB1YHuD.js";
12
- import { _ as ft } from "./PackageVersion-CO2IMTO9.js";
13
- import { P as bt } from "./PenAndPaper-CnW2eqXw.js";
4
+ import { _ as it } from "./Title-ClQ27HaB.js";
5
+ import { u as nt, U as vt } from "./usePrinter-Ctor1UK0.js";
6
+ import { _ as ct } from "./Tooltip-CGYgJoPR.js";
7
+ import { D as ht } from "./DataTable-BfiPjHpN.js";
8
+ import dt from "./vue-ui-skeleton-Cw0-Ac_0.js";
9
+ import { _ as pt } from "./Shape-Dmv7nCLC.js";
10
+ import ft from "./vue-ui-accordion-BljYKOXR.js";
11
+ import { u as Le } from "./useNestedProp-B-WAbP7E.js";
12
+ import { _ as yt } from "./PackageVersion-qom4AEUr.js";
13
+ import { P as bt } from "./PenAndPaper-C-1AU46J.js";
14
14
  import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
15
15
  import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"], wt = { key: 1 }, $t = { key: 0 }, _t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Tt = { key: 1 }, Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = ["x", "y", "fill", "font-size"], Ot = ["x", "y", "font-size", "fill"], zt = ["fill", "font-size", "transform"], Nt = ["fill", "font-size", "x", "y"], Ft = ["x1", "x2", "y1", "y2", "stroke"], Mt = ["cx", "cy", "fill"], Wt = ["cx", "cy", "fill"], It = ["id"], Dt = ["stop-color"], Gt = ["stop-color"], Ut = ["stop-color"], Vt = { key: 0 }, Et = ["x", "y", "font-size", "fill"], Ht = {
16
+ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"], wt = { key: 1 }, $t = { key: 0 }, _t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Tt = { key: 1 }, At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = ["x", "y", "fill", "font-size"], Ot = ["x", "y", "font-size", "fill"], zt = ["fill", "font-size", "transform"], Nt = ["fill", "font-size", "x", "y"], Ft = ["x1", "x2", "y1", "y2", "stroke"], Mt = ["cx", "cy", "fill"], Wt = ["cx", "cy", "fill"], It = ["id"], Dt = ["stop-color"], Gt = ["stop-color"], Ut = ["stop-color"], Vt = { key: 0 }, Et = ["x", "y", "font-size", "fill"], Ht = {
17
17
  key: 5,
18
18
  class: "vue-data-ui-watermark"
19
19
  }, Rt = ["innerHTML"], Bt = {
@@ -41,32 +41,32 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
41
41
  set(t) {
42
42
  return t;
43
43
  }
44
- }), j = n(ee()), ae = n(0), Y = n(!1), J = n(""), S = n(null), oe = n(null), se = n(null), re = n(null), ue = n(!1), ie = n(0), ne = n(0), e = d({
44
+ }), j = n(ee()), ae = n(0), Y = n(!1), q = n(""), S = n(null), oe = n(null), se = n(null), re = n(null), ue = n(!1), ie = n(0), ne = n(0), e = d({
45
45
  get: () => he(),
46
46
  set: (t) => t
47
- }), { userOptionsVisible: q, setUserOptionsVisibility: ve, keepUserOptionState: ce } = mt({ config: e.value });
47
+ }), { userOptionsVisible: J, setUserOptionsVisibility: ve, keepUserOptionState: ce } = mt({ config: e.value });
48
48
  function he() {
49
- const t = Ae({
49
+ const t = Le({
50
50
  userConfig: b.config,
51
51
  defaultConfig: ze
52
52
  });
53
53
  return t.theme ? {
54
- ...Ae({
54
+ ...Le({
55
55
  userConfig: je.vue_ui_strip_plot[t.theme] || b.config,
56
56
  defaultConfig: t
57
57
  }),
58
- customPalette: Ye[t.theme] || A
58
+ customPalette: Ye[t.theme] || L
59
59
  } : t;
60
60
  }
61
61
  Ge(() => b.config, (t) => {
62
- e.value = he(), q.value = !e.value.showOnChartHover, de(), ie.value += 1, ne.value += 1;
62
+ e.value = he(), J.value = !e.value.showOnChartHover, de(), ie.value += 1, ne.value += 1;
63
63
  }, { deep: !0 });
64
64
  const I = n(null);
65
65
  Ue(() => {
66
66
  de();
67
67
  });
68
68
  function de() {
69
- if (Je(b.dataset) ? te({
69
+ if (qe(b.dataset) ? te({
70
70
  componentName: "VueUiStripPlot",
71
71
  type: "dataset"
72
72
  }) : b.dataset.forEach((t, o) => {
@@ -101,12 +101,14 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
101
101
  source: se.value,
102
102
  noTitle: re.value
103
103
  });
104
- D.value = l, P.value.width = o, P.value.height = l, N.value = (o - m.value.left - m.value.right) / b.dataset.length, G.value = st({
105
- relator: Math.min(l, o),
106
- adjuster: 600,
107
- source: e.value.style.chart.plots.radius,
108
- threshold: 6,
109
- fallback: 6
104
+ requestAnimationFrame(() => {
105
+ D.value = l, P.value.width = o, P.value.height = l, N.value = (o - m.value.left - m.value.right) / b.dataset.length, G.value = st({
106
+ relator: Math.min(l, o),
107
+ adjuster: 600,
108
+ source: e.value.style.chart.plots.radius,
109
+ threshold: 6,
110
+ fallback: 6
111
+ });
110
112
  });
111
113
  });
112
114
  I.value = new ResizeObserver(t), I.value.observe(S.value.parentNode);
@@ -118,10 +120,10 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
118
120
  Ve(() => {
119
121
  I.value && I.value.disconnect();
120
122
  });
121
- const { isPrinting: pe, isImaging: ye, generatePdf: fe, generateImage: be } = nt({
123
+ const { isPrinting: pe, isImaging: fe, generatePdf: ye, generateImage: be } = nt({
122
124
  elementId: `strip-plot_${j.value}`,
123
125
  fileName: e.value.style.chart.title.text || "vue-ui-strip-plot"
124
- }), Ne = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = d(() => qe(e.value.customPalette)), z = n(e.value.useCssAnimation), y = n({
126
+ }), Ne = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = d(() => Je(e.value.customPalette)), z = n(e.value.useCssAnimation), f = n({
125
127
  showTable: e.value.table.show,
126
128
  dataLabels: {
127
129
  show: e.value.style.chart.labels.bestPlotLabel.show
@@ -153,12 +155,12 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
153
155
  return {
154
156
  ...t,
155
157
  id: l,
156
- color: t.color ? Te(t.color) : me.value[o] || A[o] || A[o % A.length],
158
+ color: t.color ? Te(t.color) : me.value[o] || L[o] || L[o % L.length],
157
159
  plots: t.plots.map((r) => ({
158
160
  ...r,
159
161
  value: Ke(r.value),
160
162
  parentId: l,
161
- color: t.color ? Te(t.color) : me.value[o] || A[o] || A[o % A.length],
163
+ color: t.color ? Te(t.color) : me.value[o] || L[o] || L[o % L.length],
162
164
  id: ee()
163
165
  })).sort((r, i) => r.value - i.value)
164
166
  };
@@ -189,13 +191,13 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
189
191
  function We({ datapoint: t, seriesIndex: o }) {
190
192
  Q.value = { datapoint: t, seriesIndex: o, config: e.value, series: U.value }, Y.value = !0, h.value = t;
191
193
  const l = e.value.style.chart.tooltip.customFormat;
192
- if (Le(l) && lt(() => l({
194
+ if (Ae(l) && lt(() => l({
193
195
  seriesIndex: o,
194
196
  datapoint: t,
195
197
  series: U.value,
196
198
  config: e.value
197
199
  })))
198
- J.value = l({
200
+ q.value = l({
199
201
  seriesIndex: o,
200
202
  datapoint: t,
201
203
  series: U.value,
@@ -213,7 +215,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
213
215
  r: e.value.style.chart.tooltip.roundingValue
214
216
  }),
215
217
  { datapoint: t, seriesIndex: o }
216
- )}</div>`, J.value = `<div>${r}</div>`;
218
+ )}</div>`, q.value = `<div>${r}</div>`;
217
219
  }
218
220
  }
219
221
  const V = d(() => {
@@ -279,13 +281,13 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
279
281
  return x.value;
280
282
  }
281
283
  function xe() {
282
- y.value.showTable = !y.value.showTable;
284
+ f.value.showTable = !f.value.showTable;
283
285
  }
284
286
  function Ce() {
285
- y.value.dataLabels.show = !y.value.dataLabels.show;
287
+ f.value.dataLabels.show = !f.value.dataLabels.show;
286
288
  }
287
289
  function we() {
288
- y.value.showTooltip = !y.value.showTooltip;
290
+ f.value.showTooltip = !f.value.showTooltip;
289
291
  }
290
292
  const H = n(!1);
291
293
  function Z() {
@@ -293,7 +295,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
293
295
  }
294
296
  return Pe({
295
297
  getData: De,
296
- generatePdf: fe,
298
+ generatePdf: ye,
297
299
  generateCsv: ke,
298
300
  generateImage: be,
299
301
  toggleTable: xe,
@@ -344,13 +346,13 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
344
346
  }
345
347
  }, null, 8, ["config"]))
346
348
  ], 512)) : c("", !0),
347
- e.value.userOptions.show && w.value && (v(ce) || v(q)) ? (s(), T(vt, {
349
+ e.value.userOptions.show && w.value && (v(ce) || v(J)) ? (s(), T(vt, {
348
350
  ref: "details",
349
351
  key: `user_option_${ae.value}`,
350
352
  backgroundColor: e.value.style.chart.backgroundColor,
351
353
  color: e.value.style.chart.color,
352
354
  isPrinting: v(pe),
353
- isImaging: v(ye),
355
+ isImaging: v(fe),
354
356
  uid: j.value,
355
357
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
356
358
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -359,7 +361,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
359
361
  hasTable: e.value.userOptions.buttons.table,
360
362
  hasLabel: e.value.userOptions.buttons.labels,
361
363
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
362
- isTooltip: y.value.showTooltip,
364
+ isTooltip: f.value.showTooltip,
363
365
  isFullscreen: O.value,
364
366
  titles: { ...e.value.userOptions.buttonTitles },
365
367
  chartElement: S.value,
@@ -367,7 +369,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
367
369
  hasAnnotator: e.value.userOptions.buttons.annotator,
368
370
  isAnnotation: H.value,
369
371
  onToggleFullscreen: Ie,
370
- onGeneratePdf: v(fe),
372
+ onGeneratePdf: v(ye),
371
373
  onGenerateCsv: ke,
372
374
  onGenerateImage: v(be),
373
375
  onToggleTable: xe,
@@ -375,61 +377,61 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
375
377
  onToggleTooltip: we,
376
378
  onToggleAnnotator: Z,
377
379
  style: B({
378
- visibility: v(ce) ? v(q) ? "visible" : "hidden" : "visible"
380
+ visibility: v(ce) ? v(J) ? "visible" : "hidden" : "visible"
379
381
  })
380
382
  }, Ee({ _: 2 }, [
381
383
  t.$slots.optionTooltip ? {
382
384
  name: "optionTooltip",
383
- fn: f(() => [
385
+ fn: y(() => [
384
386
  p(t.$slots, "optionTooltip", {}, void 0, !0)
385
387
  ]),
386
388
  key: "0"
387
389
  } : void 0,
388
390
  t.$slots.optionPdf ? {
389
391
  name: "optionPdf",
390
- fn: f(() => [
392
+ fn: y(() => [
391
393
  p(t.$slots, "optionPdf", {}, void 0, !0)
392
394
  ]),
393
395
  key: "1"
394
396
  } : void 0,
395
397
  t.$slots.optionCsv ? {
396
398
  name: "optionCsv",
397
- fn: f(() => [
399
+ fn: y(() => [
398
400
  p(t.$slots, "optionCsv", {}, void 0, !0)
399
401
  ]),
400
402
  key: "2"
401
403
  } : void 0,
402
404
  t.$slots.optionImg ? {
403
405
  name: "optionImg",
404
- fn: f(() => [
406
+ fn: y(() => [
405
407
  p(t.$slots, "optionImg", {}, void 0, !0)
406
408
  ]),
407
409
  key: "3"
408
410
  } : void 0,
409
411
  t.$slots.optionTable ? {
410
412
  name: "optionTable",
411
- fn: f(() => [
413
+ fn: y(() => [
412
414
  p(t.$slots, "optionTable", {}, void 0, !0)
413
415
  ]),
414
416
  key: "4"
415
417
  } : void 0,
416
418
  t.$slots.optionLabels ? {
417
419
  name: "optionLabels",
418
- fn: f(() => [
420
+ fn: y(() => [
419
421
  p(t.$slots, "optionLabels", {}, void 0, !0)
420
422
  ]),
421
423
  key: "5"
422
424
  } : void 0,
423
425
  t.$slots.optionFullscreen ? {
424
426
  name: "optionFullscreen",
425
- fn: f(({ toggleFullscreen: l, isFullscreen: r }) => [
427
+ fn: y(({ toggleFullscreen: l, isFullscreen: r }) => [
426
428
  p(t.$slots, "optionFullscreen", M(W({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
427
429
  ]),
428
430
  key: "6"
429
431
  } : void 0,
430
432
  t.$slots.optionAnnotator ? {
431
433
  name: "optionAnnotator",
432
- fn: f(({ toggleAnnotator: l, isAnnotator: r }) => [
434
+ fn: y(({ toggleAnnotator: l, isAnnotator: r }) => [
433
435
  p(t.$slots, "optionAnnotator", M(W({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
434
436
  ]),
435
437
  key: "7"
@@ -442,7 +444,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
442
444
  viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
443
445
  style: B(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
444
446
  }, [
445
- $e(ft),
447
+ $e(yt),
446
448
  t.$slots["chart-background"] ? (s(), u("foreignObject", {
447
449
  key: 0,
448
450
  x: a.value.left,
@@ -478,7 +480,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
478
480
  "stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
479
481
  "stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray,
480
482
  "stroke-linecap": "round"
481
- }, null, 8, Lt))), 256))
483
+ }, null, 8, At))), 256))
482
484
  ])) : c("", !0),
483
485
  k("line", {
484
486
  x1: a.value.left,
@@ -488,7 +490,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
488
490
  stroke: e.value.style.chart.grid.stroke,
489
491
  "stroke-width": e.value.style.chart.grid.strokeWidth,
490
492
  "stroke-linecap": "round"
491
- }, null, 8, At),
493
+ }, null, 8, Lt),
492
494
  k("line", {
493
495
  x1: a.value.left,
494
496
  x2: a.value.right,
@@ -505,7 +507,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
505
507
  fill: e.value.style.chart.labels.yAxisLabels.color,
506
508
  "font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
507
509
  "text-anchor": "end"
508
- }, L(v(le)(
510
+ }, A(v(le)(
509
511
  e.value.style.chart.labels.formatter,
510
512
  l.value,
511
513
  v(X)({
@@ -522,14 +524,14 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
522
524
  "font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
523
525
  fill: e.value.style.chart.labels.xAxisLabels.color,
524
526
  "text-anchor": "middle"
525
- }, L(l.name), 9, Ot))), 256)) : c("", !0),
527
+ }, A(l.name), 9, Ot))), 256)) : c("", !0),
526
528
  e.value.style.chart.labels.axis.yLabel ? (s(), u("text", {
527
529
  key: 4,
528
530
  fill: e.value.style.chart.labels.axis.color,
529
531
  "font-size": e.value.style.chart.labels.axis.fontSize,
530
532
  transform: `translate(${e.value.style.chart.labels.axis.fontSize + e.value.style.chart.labels.axis.yLabelOffsetX}, ${a.value.top + a.value.height / 2}) rotate(-90)`,
531
533
  "text-anchor": "middle"
532
- }, L(e.value.style.chart.labels.axis.yLabel), 9, zt)) : c("", !0),
534
+ }, A(e.value.style.chart.labels.axis.yLabel), 9, zt)) : c("", !0),
533
535
  e.value.style.chart.labels.axis.xLabel ? (s(), u("text", {
534
536
  key: 5,
535
537
  fill: e.value.style.chart.labels.axis.color,
@@ -537,7 +539,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
537
539
  x: a.value.left + a.value.width / 2,
538
540
  y: a.value.absoluteHeight,
539
541
  "text-anchor": "middle"
540
- }, L(e.value.style.chart.labels.axis.xLabel), 9, Nt)) : c("", !0),
542
+ }, A(e.value.style.chart.labels.axis.xLabel), 9, Nt)) : c("", !0),
541
543
  h.value ? (s(), u(g, { key: 6 }, [
542
544
  k("line", {
543
545
  x1: a.value.left,
@@ -598,17 +600,17 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
598
600
  style: `transition: all 0.2s ease-in-out; opacity:${h.value ? h.value.id === i.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${z.value ? `transition-delay:${_ * 50}ms` : ""}`,
599
601
  class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && z.value, "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !z.value }
600
602
  }, t.$attrs), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "onMouseenter", "onClick", "style", "class"]))), 256)),
601
- y.value.dataLabels.show ? (s(), u("g", Vt, [
603
+ f.value.dataLabels.show ? (s(), u("g", Vt, [
602
604
  (s(!0), u(g, null, C(l.plots, (i, _) => (s(), u(g, null, [
603
- _ === l.plots.length - 1 || h.value && h.value.id === i.id && !y.value.showTooltip ? (s(), u("text", {
605
+ _ === l.plots.length - 1 || h.value && h.value.id === i.id && !f.value.showTooltip ? (s(), u("text", {
604
606
  key: 0,
605
607
  x: i.x,
606
- y: i.y + e.value.style.chart.labels.bestPlotLabel.offsetY - G.value * (h.value && h.value.id === i.id && !y.value.showTooltip ? 2 : 1.5),
608
+ y: i.y + e.value.style.chart.labels.bestPlotLabel.offsetY - G.value * (h.value && h.value.id === i.id && !f.value.showTooltip ? 2 : 1.5),
607
609
  "font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
608
610
  fill: e.value.style.chart.labels.bestPlotLabel.color,
609
611
  "text-anchor": "middle",
610
612
  style: B(`opacity:${e.value.useCssAnimation && z.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
611
- }, L(i.name) + " " + L(e.value.style.chart.labels.bestPlotLabel.showValue ? v(le)(
613
+ }, A(i.name) + " " + A(e.value.style.chart.labels.bestPlotLabel.showValue ? v(le)(
612
614
  e.value.style.chart.labels.formatter,
613
615
  i.value,
614
616
  v(X)({
@@ -625,7 +627,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
625
627
  p(t.$slots, "svg", { svg: a.value }, void 0, !0)
626
628
  ], 14, xt)) : c("", !0),
627
629
  t.$slots.watermark ? (s(), u("div", Ht, [
628
- p(t.$slots, "watermark", M(W({ isPrinting: v(pe) || v(ye) })), void 0, !0)
630
+ p(t.$slots, "watermark", M(W({ isPrinting: v(pe) || v(fe) })), void 0, !0)
629
631
  ])) : c("", !0),
630
632
  w.value ? c("", !0) : (s(), T(dt, {
631
633
  key: 6,
@@ -648,7 +650,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
648
650
  p(t.$slots, "source", {}, void 0, !0)
649
651
  ], 512)) : c("", !0),
650
652
  $e(ct, {
651
- show: y.value.showTooltip && Y.value,
653
+ show: f.value.showTooltip && Y.value,
652
654
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
653
655
  color: e.value.style.chart.tooltip.color,
654
656
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -659,23 +661,23 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
659
661
  position: e.value.style.chart.tooltip.position,
660
662
  offsetY: e.value.style.chart.tooltip.offsetY,
661
663
  parent: S.value,
662
- content: J.value,
664
+ content: q.value,
663
665
  isFullscreen: O.value,
664
- isCustom: v(Le)(e.value.style.chart.tooltip.customFormat)
666
+ isCustom: v(Ae)(e.value.style.chart.tooltip.customFormat)
665
667
  }, {
666
- "tooltip-before": f(() => [
668
+ "tooltip-before": y(() => [
667
669
  p(t.$slots, "tooltip-before", M(W({ ...Q.value })), void 0, !0)
668
670
  ]),
669
- "tooltip-after": f(() => [
671
+ "tooltip-after": y(() => [
670
672
  p(t.$slots, "tooltip-after", M(W({ ...Q.value })), void 0, !0)
671
673
  ]),
672
674
  _: 3
673
675
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
674
- w.value ? (s(), T(yt, {
676
+ w.value ? (s(), T(ft, {
675
677
  key: 8,
676
678
  hideDetails: "",
677
679
  config: {
678
- open: y.value.showTable,
680
+ open: f.value.showTable,
679
681
  maxHeight: 1e4,
680
682
  body: {
681
683
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -687,7 +689,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
687
689
  }
688
690
  }
689
691
  }, {
690
- content: f(() => [
692
+ content: y(() => [
691
693
  (s(), T(ht, {
692
694
  key: `table_${ne.value}`,
693
695
  colNames: E.value.colNames,
@@ -695,16 +697,16 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
695
697
  body: E.value.body,
696
698
  config: E.value.config,
697
699
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
698
- onClose: o[1] || (o[1] = (l) => y.value.showTable = !1)
700
+ onClose: o[1] || (o[1] = (l) => f.value.showTable = !1)
699
701
  }, {
700
- th: f(({ th: l }) => [
702
+ th: y(({ th: l }) => [
701
703
  k("div", {
702
704
  innerHTML: l,
703
705
  style: { display: "flex", "align-items": "center" }
704
706
  }, null, 8, Rt)
705
707
  ]),
706
- td: f(({ td: l }) => [
707
- Re(L(l.name || l), 1)
708
+ td: y(({ td: l }) => [
709
+ Re(A(l.name || l), 1)
708
710
  ]),
709
711
  _: 1
710
712
  }, 8, ["colNames", "head", "body", "config", "title"]))
@@ -713,7 +715,7 @@ const kt = ["id"], xt = ["xmlns", "viewBox"], Ct = ["x", "y", "width", "height"]
713
715
  }, 8, ["config"])) : c("", !0)
714
716
  ], 46, kt));
715
717
  }
716
- }, ul = /* @__PURE__ */ gt(Bt, [["__scopeId", "data-v-375e8dc0"]]);
718
+ }, ul = /* @__PURE__ */ gt(Bt, [["__scopeId", "data-v-fa6178f3"]]);
717
719
  export {
718
720
  ul as default
719
721
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-DtU3BvTq.cjs"),e=require("vue"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((l,o)=>l-o),palette:g.palette,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(l=>({average:Object.hasOwn(l,"average")?l.average:!1,decimals:Object.hasOwn(l,"decimals")?l.decimals:0,isMultiselect:Object.hasOwn(l,"isMultiselect")?l.isMultiselect:!1,isPercentage:Object.hasOwn(l,"isPercentage")?l.isPercentage:!1,isSearch:Object.hasOwn(l,"isSearch")?l.isSearch:!1,isSort:Object.hasOwn(l,"isSort")?l.isSort:!1,name:l.name,percentageTo:Object.hasOwn(l,"percentageTo")?l.percentageTo:void 0,prefix:Object.hasOwn(l,"prefix")?l.prefix:"",rangeFilter:Object.hasOwn(l,"rangeFilter")?l.rangeFilter:!1,suffix:Object.hasOwn(l,"suffix")?l.suffix:"",sum:Object.hasOwn(l,"sum")?l.sum:!1,type:l.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-DqxDpUy0.cjs"),e=require("vue"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((l,o)=>l-o),palette:g.palette,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((l,o)=>({...l,absoluteIndex:o})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(l=>({average:Object.hasOwn(l,"average")?l.average:!1,decimals:Object.hasOwn(l,"decimals")?l.decimals:0,isMultiselect:Object.hasOwn(l,"isMultiselect")?l.isMultiselect:!1,isPercentage:Object.hasOwn(l,"isPercentage")?l.isPercentage:!1,isSearch:Object.hasOwn(l,"isSearch")?l.isSearch:!1,isSort:Object.hasOwn(l,"isSort")?l.isSort:!1,name:l.name,percentageTo:Object.hasOwn(l,"percentageTo")?l.percentageTo:void 0,prefix:Object.hasOwn(l,"prefix")?l.prefix:"",rangeFilter:Object.hasOwn(l,"rangeFilter")?l.rangeFilter:!1,suffix:Object.hasOwn(l,"suffix")?l.suffix:"",sum:Object.hasOwn(l,"sum")?l.sum:!1,type:l.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
2
2
  Provide an array of objects of type:
3
3
  {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { p as D, u as x, A as G, m as M, d as T, B as E, q as z, r as B, a1 as H } from "./index-CFW17vb1.js";
1
+ import { p as D, u as x, A as G, m as M, d as T, B as E, q as z, r as B, a1 as H } from "./index-CXx0JV8R.js";
2
2
  import { openBlock as i, createElementBlock as c, normalizeStyle as g, createElementVNode as a, toDisplayString as u, Fragment as b, renderList as _, normalizeClass as f, createTextVNode as I, createCommentVNode as N, withDirectives as k, vModelText as w, withKeys as S, withModifiers as O, vModelSelect as P, createStaticVNode as R, pushScopeId as U, popScopeId as V } from "vue";
3
3
  import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const X = {
@@ -1,8 +1,8 @@
1
1
  import { useCssVars as te, ref as g, useSlots as ae, onMounted as E, computed as v, watch as oe, openBlock as n, createElementBlock as l, normalizeStyle as C, normalizeClass as G, unref as u, createBlock as se, createSlots as ne, withCtx as k, renderSlot as r, normalizeProps as c, guardReactiveProps as h, createCommentVNode as m, createElementVNode as b, Fragment as _, renderList as x, createVNode as le, mergeProps as B, nextTick as re } from "vue";
2
- import { u as ue, c as H, t as ie, o as de, e as pe, a0 as ve, G as ce, N as me, q as fe, r as he } from "./index-CFW17vb1.js";
3
- import { u as A } from "./useNestedProp-HPB1YHuD.js";
4
- import { u as ge, U as be } from "./usePrinter-19frcFuH.js";
5
- import { _ as ye } from "./Shape-Bit--n_P.js";
2
+ import { u as ue, c as H, t as ie, o as de, e as pe, a0 as ve, G as ce, N as me, q as fe, r as he } from "./index-CXx0JV8R.js";
3
+ import { u as A } from "./useNestedProp-B-WAbP7E.js";
4
+ import { u as ge, U as be } from "./usePrinter-Ctor1UK0.js";
5
+ import { _ as ye } from "./Shape-Dmv7nCLC.js";
6
6
  import { u as Ce } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const _e = ["id"], Ie = { role: "cell" }, $e = { role: "row" }, we = ["data-cell"], xe = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-DtU3BvTq.cjs"),S=require("./useNestedProp-Bwqm-3kz.cjs"),$=require("./usePrinter-CdEwyYTo.cjs"),q=require("./Shape-VkiqMBJb.cjs"),G=require("./useUserOptionState-BgepsfED.cjs"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),L=["id"],A={role:"cell"},D={role:"row"},X=["data-cell"],W={key:0,style:{display:"flex","flex-direction":"row",gap:"2px","align-items":"center"}},J=["height","width"],K={key:0,role:"cell","data-cell":"sum"},Q={key:1,role:"cell","data-cell":"average"},Y={key:2,role:"cell","data-cell":"median"},Z={key:1,ref:"source",dir:"auto"},j={__name:"vue-ui-table-heatmap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(w,{expose:N}){const d=w;e.useCssVars(t=>({"51ba93f2":T.value,"63946c66":M.value}));const{vue_ui_table_heatmap:E}=l.useConfig(),p=e.ref(l.createUid()),s=e.ref(!1),c=e.ref(null),m=e.ref(!1),f=e.ref(0),V=e.useSlots();e.onMounted(()=>{V["chart-background"]&&console.warn("VueUiTableHeatmap does not support the #chart-background slot.")});const o=e.computed({get:()=>b(),set:t=>t}),{userOptionsVisible:v,setUserOptionsVisibility:g,keepUserOptionState:h}=G.useUserOptionState({config:o.value});function b(){const t=S.useNestedProp({userConfig:d.config,defaultConfig:E});return t.theme?{...S.useNestedProp({userConfig:l.themes.vue_ui_table_heatmap[t.theme]||d.config,defaultConfig:t})}:t}e.watch(()=>d.config,t=>{o.value=b(),v.value=!o.value.showOnChartHover,C()},{deep:!0});const{isPrinting:x,isImaging:O,generatePdf:y,generateImage:k}=$.usePrinter({elementId:`table_heatmap_${p.value}`,fileName:"vue-ui-table-heatmap"}),z=e.computed(()=>o.value.table.responsiveBreakpoint),F=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(()=>{C()});function C(){l.objectIsEmpty(d.dataset)&&l.error({componentName:"VueUiTableHeatmap",type:"dataset"});const t=new ResizeObserver(a=>{a.forEach(n=>{s.value=n.contentRect.width<z.value})});c.value&&t.observe(c.value)}const B=e.computed(()=>d.dataset.map(t=>{const a=t.values.map(r=>isNaN(r)?0:r),n=a.reduce((r,i)=>r+i,0);return{...t,values:a,serieExtremes:{max:Math.max(...a),min:Math.min(...a)},sum:n,average:n/a.length,median:l.calcMedian(a),displayValues:[t.name,...t.values],id:l.createUid()}})),P=e.computed(()=>{const t=B.value.flatMap(a=>a.values);return{min:Math.min(...t),max:Math.max(...t)}});function R(t,a){const n=o.value.style.heatmapColors.useIndividualScale;return l.interpolateColorHex(o.value.style.heatmapColors.min,o.value.style.heatmapColors.max,n?a.min:P.value.min,n?a.max:P.value.max,t)}const _=e.computed(()=>B.value.map(t=>({...t,colors:t.displayValues.map(a=>isNaN(a)?o.value.style.backgroundColor:R(a,t.serieExtremes))}))),M=e.computed(()=>o.value.style.backgroundColor),T=e.computed(()=>`${o.value.table.borderWidth}px`);function I(){e.nextTick(()=>{const t=_.value.map(r=>[[r.name],r.displayValues,[r.sum],[r.average],[r.median]]),a=[[[""],o.value.table.head.values,["sum"],["average"],["median"]]].concat(t),n=l.createCsvContent(a);l.downloadCsv({csvContent:n,title:"vue-ui-table-heatmap"})})}function U(t){m.value=t,f.value+=1}return N({generatePdf:y,generateCsv:I,generateImage:k}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:c,style:e.normalizeStyle(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${o.value.userOptions.show?"36px":""}; ${m.value?"vue-data-ui-wrapper-fullscreen":""}; position:relative;`),class:e.normalizeClass({"vue-ui-responsive":s.value}),id:`table_heatmap_${p.value}`,onMouseenter:a[0]||(a[0]=()=>e.unref(g)(!0)),onMouseleave:a[1]||(a[1]=()=>e.unref(g)(!1))},[o.value.userOptions.show&&F.value&&(e.unref(h)||e.unref(v))?(e.openBlock(),e.createBlock($.UserOptions,{ref:"details",key:`user_option_${f.value}`,backgroundColor:o.value.style.backgroundColor,color:o.value.style.color,isPrinting:e.unref(x),isImaging:e.unref(O),uid:p.value,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasFullscreen:o.value.userOptions.buttons.fullscreen,isFullscreen:m.value,titles:{...o.value.userOptions.buttonTitles},chartElement:c.value,position:o.value.userOptions.position,onToggleFullscreen:U,onGeneratePdf:e.unref(y),onGenerateCsv:I,onGenerateImage:e.unref(k),style:e.normalizeStyle({visibility:e.unref(h)?e.unref(v)?"visible":"hidden":"visible"})},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:r})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),e.createElementVNode("table",{class:e.normalizeClass({"vue-ui-table-heatmap":!0}),style:e.normalizeStyle(`width:100%;font-family:${o.value.style.fontFamily};background:${o.value.style.backgroundColor};`)},[e.createElementVNode("caption",null,[e.renderSlot(t.$slots,"caption",{},void 0,!0)]),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${o.value.table.head.backgroundColor};color:${o.value.table.head.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.table.head.values,(n,r)=>(e.openBlock(),e.createElementBlock("th",A,[e.renderSlot(t.$slots,"head",e.normalizeProps(e.guardReactiveProps({value:n,rowIndex:r,type:typeof n,isResponsive:s.value})),void 0,!0)]))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(n,r)=>(e.openBlock(),e.createElementBlock("tr",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.displayValues,(i,u)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":o.value.table.head.values[u]},[n.color&&u===0?(e.openBlock(),e.createElementBlock("div",W,[n.color?(e.openBlock(),e.createElementBlock("svg",{key:0,height:o.value.style.shapeSize,width:o.value.style.shapeSize,viewBox:"0 0 20 20",style:{background:"none",overflow:"visible"}},[e.createVNode(q._sfc_main,{plot:{x:10,y:10},color:n.color,radius:9,shape:n.shape||"circle"},null,8,["color","shape"])],8,J)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.guardReactiveProps({value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u===0?e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.mergeProps({key:0},{value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0):e.createCommentVNode("",!0),u>0?e.renderSlot(t.$slots,"cell",e.normalizeProps(e.mergeProps({key:1},{value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value,color:n.colors[u],textColor:e.unref(l.adaptColorToBackground)(n.colors[u])})),void 0,!0):e.createCommentVNode("",!0)],64))],8,X))),256)),o.value.table.showSum?(e.openBlock(),e.createElementBlock("td",K,[e.renderSlot(t.$slots,"sum",e.normalizeProps(e.guardReactiveProps({value:n.sum,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showAverage?(e.openBlock(),e.createElementBlock("td",Q,[e.renderSlot(t.$slots,"average",e.normalizeProps(e.guardReactiveProps({value:n.average,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showMedian?(e.openBlock(),e.createElementBlock("td",Y,[e.renderSlot(t.$slots,"median",e.normalizeProps(e.guardReactiveProps({value:n.median,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0)]))),256))])],4),t.$slots.source?(e.openBlock(),e.createElementBlock("div",Z,[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,L))}},ee=H._export_sfc(j,[["__scopeId","data-v-4469b342"]]);exports.default=ee;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-DqxDpUy0.cjs"),S=require("./useNestedProp-DNWKDmdP.cjs"),$=require("./usePrinter-BC7U4s0U.cjs"),q=require("./Shape-CmsIulaS.cjs"),G=require("./useUserOptionState-BgepsfED.cjs"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),L=["id"],A={role:"cell"},D={role:"row"},X=["data-cell"],W={key:0,style:{display:"flex","flex-direction":"row",gap:"2px","align-items":"center"}},J=["height","width"],K={key:0,role:"cell","data-cell":"sum"},Q={key:1,role:"cell","data-cell":"average"},Y={key:2,role:"cell","data-cell":"median"},Z={key:1,ref:"source",dir:"auto"},j={__name:"vue-ui-table-heatmap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(w,{expose:N}){const d=w;e.useCssVars(t=>({"51ba93f2":T.value,"63946c66":M.value}));const{vue_ui_table_heatmap:E}=l.useConfig(),p=e.ref(l.createUid()),s=e.ref(!1),c=e.ref(null),m=e.ref(!1),f=e.ref(0),V=e.useSlots();e.onMounted(()=>{V["chart-background"]&&console.warn("VueUiTableHeatmap does not support the #chart-background slot.")});const o=e.computed({get:()=>b(),set:t=>t}),{userOptionsVisible:v,setUserOptionsVisibility:g,keepUserOptionState:h}=G.useUserOptionState({config:o.value});function b(){const t=S.useNestedProp({userConfig:d.config,defaultConfig:E});return t.theme?{...S.useNestedProp({userConfig:l.themes.vue_ui_table_heatmap[t.theme]||d.config,defaultConfig:t})}:t}e.watch(()=>d.config,t=>{o.value=b(),v.value=!o.value.showOnChartHover,C()},{deep:!0});const{isPrinting:x,isImaging:O,generatePdf:y,generateImage:k}=$.usePrinter({elementId:`table_heatmap_${p.value}`,fileName:"vue-ui-table-heatmap"}),z=e.computed(()=>o.value.table.responsiveBreakpoint),F=e.computed(()=>!!d.dataset&&d.dataset.length);e.onMounted(()=>{C()});function C(){l.objectIsEmpty(d.dataset)&&l.error({componentName:"VueUiTableHeatmap",type:"dataset"});const t=new ResizeObserver(a=>{a.forEach(n=>{s.value=n.contentRect.width<z.value})});c.value&&t.observe(c.value)}const B=e.computed(()=>d.dataset.map(t=>{const a=t.values.map(r=>isNaN(r)?0:r),n=a.reduce((r,i)=>r+i,0);return{...t,values:a,serieExtremes:{max:Math.max(...a),min:Math.min(...a)},sum:n,average:n/a.length,median:l.calcMedian(a),displayValues:[t.name,...t.values],id:l.createUid()}})),P=e.computed(()=>{const t=B.value.flatMap(a=>a.values);return{min:Math.min(...t),max:Math.max(...t)}});function R(t,a){const n=o.value.style.heatmapColors.useIndividualScale;return l.interpolateColorHex(o.value.style.heatmapColors.min,o.value.style.heatmapColors.max,n?a.min:P.value.min,n?a.max:P.value.max,t)}const _=e.computed(()=>B.value.map(t=>({...t,colors:t.displayValues.map(a=>isNaN(a)?o.value.style.backgroundColor:R(a,t.serieExtremes))}))),M=e.computed(()=>o.value.style.backgroundColor),T=e.computed(()=>`${o.value.table.borderWidth}px`);function I(){e.nextTick(()=>{const t=_.value.map(r=>[[r.name],r.displayValues,[r.sum],[r.average],[r.median]]),a=[[[""],o.value.table.head.values,["sum"],["average"],["median"]]].concat(t),n=l.createCsvContent(a);l.downloadCsv({csvContent:n,title:"vue-ui-table-heatmap"})})}function U(t){m.value=t,f.value+=1}return N({generatePdf:y,generateCsv:I,generateImage:k}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tableContainer",ref:c,style:e.normalizeStyle(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${o.value.userOptions.show?"36px":""}; ${m.value?"vue-data-ui-wrapper-fullscreen":""}; position:relative;`),class:e.normalizeClass({"vue-ui-responsive":s.value}),id:`table_heatmap_${p.value}`,onMouseenter:a[0]||(a[0]=()=>e.unref(g)(!0)),onMouseleave:a[1]||(a[1]=()=>e.unref(g)(!1))},[o.value.userOptions.show&&F.value&&(e.unref(h)||e.unref(v))?(e.openBlock(),e.createBlock($.UserOptions,{ref:"details",key:`user_option_${f.value}`,backgroundColor:o.value.style.backgroundColor,color:o.value.style.color,isPrinting:e.unref(x),isImaging:e.unref(O),uid:p.value,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasFullscreen:o.value.userOptions.buttons.fullscreen,isFullscreen:m.value,titles:{...o.value.userOptions.buttonTitles},chartElement:c.value,position:o.value.userOptions.position,onToggleFullscreen:U,onGeneratePdf:e.unref(y),onGenerateCsv:I,onGenerateImage:e.unref(k),style:e.normalizeStyle({visibility:e.unref(h)?e.unref(v)?"visible":"hidden":"visible"})},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:n,isFullscreen:r})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:n,isFullscreen:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),e.createElementVNode("table",{class:e.normalizeClass({"vue-ui-table-heatmap":!0}),style:e.normalizeStyle(`width:100%;font-family:${o.value.style.fontFamily};background:${o.value.style.backgroundColor};`)},[e.createElementVNode("caption",null,[e.renderSlot(t.$slots,"caption",{},void 0,!0)]),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${o.value.table.head.backgroundColor};color:${o.value.table.head.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.table.head.values,(n,r)=>(e.openBlock(),e.createElementBlock("th",A,[e.renderSlot(t.$slots,"head",e.normalizeProps(e.guardReactiveProps({value:n,rowIndex:r,type:typeof n,isResponsive:s.value})),void 0,!0)]))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(n,r)=>(e.openBlock(),e.createElementBlock("tr",D,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.displayValues,(i,u)=>(e.openBlock(),e.createElementBlock("td",{role:"cell","data-cell":o.value.table.head.values[u]},[n.color&&u===0?(e.openBlock(),e.createElementBlock("div",W,[n.color?(e.openBlock(),e.createElementBlock("svg",{key:0,height:o.value.style.shapeSize,width:o.value.style.shapeSize,viewBox:"0 0 20 20",style:{background:"none",overflow:"visible"}},[e.createVNode(q._sfc_main,{plot:{x:10,y:10},color:n.color,radius:9,shape:n.shape||"circle"},null,8,["color","shape"])],8,J)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.guardReactiveProps({value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[u===0?e.renderSlot(t.$slots,"rowTitle",e.normalizeProps(e.mergeProps({key:0},{value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value})),void 0,!0):e.createCommentVNode("",!0),u>0?e.renderSlot(t.$slots,"cell",e.normalizeProps(e.mergeProps({key:1},{value:i,rowIndex:r,colIndex:u,type:typeof i,isResponsive:s.value,color:n.colors[u],textColor:e.unref(l.adaptColorToBackground)(n.colors[u])})),void 0,!0):e.createCommentVNode("",!0)],64))],8,X))),256)),o.value.table.showSum?(e.openBlock(),e.createElementBlock("td",K,[e.renderSlot(t.$slots,"sum",e.normalizeProps(e.guardReactiveProps({value:n.sum,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showAverage?(e.openBlock(),e.createElementBlock("td",Q,[e.renderSlot(t.$slots,"average",e.normalizeProps(e.guardReactiveProps({value:n.average,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0),o.value.table.showMedian?(e.openBlock(),e.createElementBlock("td",Y,[e.renderSlot(t.$slots,"median",e.normalizeProps(e.guardReactiveProps({value:n.median,rowIndex:r,isResponsive:s.value})),void 0,!0)])):e.createCommentVNode("",!0)]))),256))])],4),t.$slots.source?(e.openBlock(),e.createElementBlock("div",Z,[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,L))}},ee=H._export_sfc(j,[["__scopeId","data-v-4469b342"]]);exports.default=ee;
@@ -1,9 +1,9 @@
1
1
  import { useCssVars as $e, ref as p, useSlots as ze, onMounted as pe, computed as _, watch as fe, openBlock as d, createElementBlock as c, normalizeClass as X, unref as i, normalizeStyle as s, createElementVNode as f, toDisplayString as C, createCommentVNode as b, withDirectives as Pe, createVNode as $, Fragment as J, renderList as K, createBlock as De, createSlots as Ne, withCtx as N, renderSlot as z, normalizeProps as Fe, guardReactiveProps as Ve, nextTick as Te } from "vue";
2
- import { u as We, c as Me, t as Ee, a as Ue, p as F, b as Be, o as Ge, e as me, g as Le, a0 as Re, d as He, i as V, f as T, q as qe, r as Xe } from "./index-CFW17vb1.js";
3
- import { u as ge } from "./useNestedProp-HPB1YHuD.js";
4
- import Je from "./vue-ui-sparkline-Cv0OStNn.js";
5
- import W from "./BaseIcon-I6DfuN0D.js";
6
- import { u as Ke, U as Qe, v as Ye } from "./usePrinter-19frcFuH.js";
2
+ import { u as We, c as Me, t as Ee, a as Ue, p as F, b as Be, o as Ge, e as me, g as Le, a0 as Re, d as He, i as V, f as T, q as qe, r as Xe } from "./index-CXx0JV8R.js";
3
+ import { u as ge } from "./useNestedProp-B-WAbP7E.js";
4
+ import Je from "./vue-ui-sparkline-DIHKGu0H.js";
5
+ import W from "./BaseIcon-CdPe2CAc.js";
6
+ import { u as Ke, U as Qe, v as Ye } from "./usePrinter-Ctor1UK0.js";
7
7
  import { u as Ze } from "./useUserOptionState-BIvW1Kz7.js";
8
8
  import { _ as je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const et = ["id"], tt = { style: { "z-index": "1", "padding-right": "24px" } }, at = {