vue-data-ui 3.25.10 → 3.25.12

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 (205) hide show
  1. package/dist/{Arrow-DLn-pcrh.js → Arrow-BhZDUeMp.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Gm4Q30j0.js → BaseDraggableDialog-Ck6R5Q0K.js} +2 -2
  3. package/dist/{BaseIcon-D8R6_sKH.js → BaseIcon-Dlz7gfx0.js} +1 -1
  4. package/dist/{BaseLegendToggle-CXQrLjd-.js → BaseLegendToggle-DGG65LAR.js} +1 -1
  5. package/dist/{BaseZoomControls-BTzjVDPM.js → BaseZoomControls-BK0PxEa8.js} +2 -2
  6. package/dist/{ColorPicker-CUy15T72.js → ColorPicker-DMTwxvi_.js} +2 -2
  7. package/dist/{DataTable-oiM9uWrQ.js → DataTable-BD1eZ0zB.js} +2 -2
  8. package/dist/{HillActions-Dn8aKOVJ.js → HillActions-CiP2m7Nz.js} +1 -1
  9. package/dist/{Legend-X4kF4PvW.js → Legend-C0Ln0VNe.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-DFXjpRyl.js → NonSvgPenAndPaper-BjrMLISf.js} +3 -3
  11. package/dist/{PackageVersion-CZZayD-D.js → PackageVersion-KI_qWJHZ.js} +1 -1
  12. package/dist/{PenAndPaper-Cd3nItcO.js → PenAndPaper-XdUD8uB3.js} +3 -3
  13. package/dist/{Shape-CIqU-p2F.js → Shape-VCdxvFV9.js} +3 -3
  14. package/dist/{SlicerPreview-Ccss7Vsq.js → SlicerPreview-BJ4usfYd.js} +21 -21
  15. package/dist/{SparkTooltip-L3SliZbR.js → SparkTooltip-B1gRxPfb.js} +6 -6
  16. package/dist/{Title-CPHi-evi.js → Title-DeqmC-vN.js} +1 -1
  17. package/dist/{Tooltip-hhrkQ3Lk.js → Tooltip-DZ4a3XJQ.js} +1 -1
  18. package/dist/{UserOptions-qo_Tsqci.js → UserOptions-wFD9vo9g.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BR4imuKV.js → dom-to-png-DdqmzDdY.js} +1 -1
  91. package/dist/exposedLib-BBtjpydc.js +28 -0
  92. package/dist/{img-BkMKbWsI.js → img-W50sC9SC.js} +1 -1
  93. package/dist/{labelUtils-BXX2NzRe.js → labelUtils-Dvm-7rse.js} +1 -1
  94. package/dist/{lib-Dql7cqyA.js → lib-DOpaUOQx.js} +191 -88
  95. package/dist/{package-CYtJq7s7.js → package-CUB9qFqi.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CpHpPc5s.js → render-common-DeM1ZJiv.js} +16 -16
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +19 -9
  103. package/dist/types/vue-ui-heatmap.d.ts +2 -0
  104. package/dist/{useConfig-D32D002m.js → useConfig-Be2DFBsb.js} +1 -0
  105. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  106. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-DUdzTGvh.js} +1 -1
  107. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  108. package/dist/utils.js +13 -13
  109. package/dist/{vue-data-ui-ChB3aXCO.js → vue-data-ui-COEVZKW5.js} +70 -70
  110. package/dist/vue-data-ui.js +75 -75
  111. package/dist/{vue-ui-3d-bar-DcXbkO19.js → vue-ui-3d-bar-DFw5XDWb.js} +536 -536
  112. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-BZCjuA3V.js} +4 -4
  113. package/dist/vue-ui-age-pyramid-DRUCkRz8.js +1305 -0
  114. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BfKA4YVr.js} +60 -60
  115. package/dist/{vue-ui-bullet-DOfD2TSb.js → vue-ui-bullet-B0IfmAiX.js} +84 -84
  116. package/dist/{vue-ui-bump-DL2lDZbE.js → vue-ui-bump-C1kUAd9U.js} +105 -105
  117. package/dist/{vue-ui-candlestick-ijujiVJ5.js → vue-ui-candlestick-KA4AueJw.js} +98 -98
  118. package/dist/vue-ui-carousel-table-BxUd6pz5.js +467 -0
  119. package/dist/vue-ui-chestnut-DHSV3tgH.js +2016 -0
  120. package/dist/{vue-ui-chord-DgBzLfbv.js → vue-ui-chord-DwosQDGy.js} +63 -63
  121. package/dist/{vue-ui-circle-pack-88qDJbt0.js → vue-ui-circle-pack-OoLvvkpK.js} +50 -50
  122. package/dist/{vue-ui-cursor-CcEB7Ypx.js → vue-ui-cursor-DIDq-I8_.js} +61 -61
  123. package/dist/{vue-ui-dag-BeoFmTDs.js → vue-ui-dag-CEe-6BAo.js} +44 -44
  124. package/dist/{vue-ui-dashboard-NOVcGMCa.js → vue-ui-dashboard-Dyx0Ri4u.js} +70 -70
  125. package/dist/{vue-ui-digits-BGmT7H1z.js → vue-ui-digits-aocn4lMx.js} +4 -4
  126. package/dist/{vue-ui-donut-CtXzuWzy.js → vue-ui-donut-7uSOM7lM.js} +203 -203
  127. package/dist/{vue-ui-donut-CP7ilveE.js → vue-ui-donut-DBwkC_24.js} +551 -551
  128. package/dist/vue-ui-donut-evolution-BqQ7Tlsc.js +1552 -0
  129. package/dist/{vue-ui-dumbbell-BR1Cn4wm.js → vue-ui-dumbbell-MGfC3D58.js} +87 -87
  130. package/dist/{vue-ui-flow-Bm6TgD8I.js → vue-ui-flow-593TeQ2W.js} +99 -99
  131. package/dist/{vue-ui-funnel-CQ0-9nZT.js → vue-ui-funnel-DkJUBGun.js} +40 -40
  132. package/dist/vue-ui-galaxy-BrVH1I3l.js +1097 -0
  133. package/dist/{vue-ui-gauge-B6pyA6Jh.js → vue-ui-gauge-DC4S5TsV.js} +190 -190
  134. package/dist/{vue-ui-geo-BlG7s8MH.js → vue-ui-geo-Yq0FgILc.js} +12 -12
  135. package/dist/{vue-ui-gizmo-BlyehpxE.js → vue-ui-gizmo-D9gwOdZE.js} +54 -54
  136. package/dist/vue-ui-heatmap-CIJRLiRS.js +1606 -0
  137. package/dist/{vue-ui-hill-CGE0NdNk.js → vue-ui-hill-B8mE9MIi.js} +21 -21
  138. package/dist/vue-ui-history-plot-Dj4qkhNI.js +1710 -0
  139. package/dist/{vue-ui-horizontal-bar-Ykwe4M1n.js → vue-ui-horizontal-bar-njm9Qfcd.js} +85 -85
  140. package/dist/{vue-ui-kpi-B7Nfet0o.js → vue-ui-kpi-CFk0QESG.js} +12 -12
  141. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-7gnBMFu5.js} +4 -4
  142. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-CUVEBqJw.js} +3 -3
  143. package/dist/vue-ui-molecule-GqArgNXc.js +941 -0
  144. package/dist/vue-ui-mood-radar-Du71PAqx.js +1111 -0
  145. package/dist/{vue-ui-nested-donuts-Bt-r6uXS.js → vue-ui-nested-donuts-BRGYUoVS.js} +481 -481
  146. package/dist/vue-ui-onion-C4LsJp_7.js +1247 -0
  147. package/dist/vue-ui-parallel-coordinate-plot-DumwZpjI.js +1444 -0
  148. package/dist/vue-ui-quadrant-BFEihaNk.js +1979 -0
  149. package/dist/{vue-ui-quick-chart-Cb8x00-X.js → vue-ui-quick-chart-COWxCDXU.js} +169 -169
  150. package/dist/vue-ui-radar-BZMDCj34.js +1386 -0
  151. package/dist/vue-ui-rating-D0tMtjhc.js +359 -0
  152. package/dist/vue-ui-relation-circle-DSNuFlbr.js +905 -0
  153. package/dist/vue-ui-ridgeline-DHHjDn73.js +1630 -0
  154. package/dist/{vue-ui-rings-BqRWK5rY.js → vue-ui-rings-BMKxADUw.js} +78 -78
  155. package/dist/{vue-ui-scatter-Bsh6jbdW.js → vue-ui-scatter-BKJUWiYg.js} +136 -136
  156. package/dist/{vue-ui-skeleton-DbPSsEKV.js → vue-ui-skeleton-_EBFqU7v.js} +510 -510
  157. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-DsfTcCOQ.js} +6 -6
  158. package/dist/{vue-ui-spark-trend--8QokOII.js → vue-ui-spark-trend-Dj1tZM1l.js} +96 -96
  159. package/dist/{vue-ui-sparkbar-DkX9Demg.js → vue-ui-sparkbar-B7ogNgvT.js} +113 -113
  160. package/dist/vue-ui-sparkgauge-BFGXwszU.js +268 -0
  161. package/dist/vue-ui-sparkhistogram-c-DSMEiv.js +589 -0
  162. package/dist/{vue-ui-sparkline-BwldgOYW.js → vue-ui-sparkline-Bm59iQiE.js} +198 -198
  163. package/dist/{vue-ui-sparkstackbar-Divd0hL_.js → vue-ui-sparkstackbar-DIMZ8Wxa.js} +183 -183
  164. package/dist/vue-ui-stackbar-C53nXwth.js +2369 -0
  165. package/dist/vue-ui-stackline-D4ehty6i.js +2483 -0
  166. package/dist/{vue-ui-strip-plot-BCUPHkCp.js → vue-ui-strip-plot-CNnl1U1H.js} +253 -253
  167. package/dist/{vue-ui-table-DJeXLYly.js → vue-ui-table-Bbw0YVee.js} +117 -117
  168. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-B1uYpEhA.js} +95 -95
  169. package/dist/vue-ui-table-sparkline-D98mkhX0.js +738 -0
  170. package/dist/{vue-ui-thermometer-xu4R8d2f.js → vue-ui-thermometer-CDYrYD7E.js} +23 -23
  171. package/dist/{vue-ui-timer-i_3bMu3h.js → vue-ui-timer-CW3wa1tF.js} +13 -13
  172. package/dist/{vue-ui-tiremarks-DGuMI0yH.js → vue-ui-tiremarks-CayzbbTu.js} +30 -30
  173. package/dist/{vue-ui-treemap-Bvl7elni.js → vue-ui-treemap-BuOGDfHZ.js} +77 -77
  174. package/dist/vue-ui-waffle-D47Z_prI.js +1633 -0
  175. package/dist/{vue-ui-wheel-DqHD09iA.js → vue-ui-wheel-CNF5e3TM.js} +185 -185
  176. package/dist/{vue-ui-word-cloud-BDCuTQ8Q.js → vue-ui-word-cloud-y46KDG7e.js} +46 -46
  177. package/dist/{vue-ui-world-B0oVwEDj.js → vue-ui-world-DKW2yCXn.js} +133 -133
  178. package/dist/vue-ui-xy-BgmEGWgv.js +5367 -0
  179. package/dist/{vue-ui-xy-BJJi0E4D.js → vue-ui-xy-G3lMLlIL.js} +169 -169
  180. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-CMAT-hT1.js} +435 -435
  181. package/package.json +1 -1
  182. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  183. package/dist/vue-ui-age-pyramid-Cnaxt9NI.js +0 -1305
  184. package/dist/vue-ui-carousel-table-DFtWb2-C.js +0 -467
  185. package/dist/vue-ui-chestnut-BGXr0s08.js +0 -2016
  186. package/dist/vue-ui-donut-evolution-D_-y7BZi.js +0 -1552
  187. package/dist/vue-ui-galaxy-DUto0BOw.js +0 -1097
  188. package/dist/vue-ui-heatmap-DqbWkKAE.js +0 -1590
  189. package/dist/vue-ui-history-plot-CaxqIiTb.js +0 -1710
  190. package/dist/vue-ui-molecule-DWq98OSc.js +0 -941
  191. package/dist/vue-ui-mood-radar-DDfimq6c.js +0 -1111
  192. package/dist/vue-ui-onion-D8gOhQHP.js +0 -1247
  193. package/dist/vue-ui-parallel-coordinate-plot-BbPbJiiu.js +0 -1444
  194. package/dist/vue-ui-quadrant-BJlf3qW1.js +0 -1979
  195. package/dist/vue-ui-radar-30PF-qqr.js +0 -1386
  196. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  197. package/dist/vue-ui-relation-circle-CRiC4PnL.js +0 -905
  198. package/dist/vue-ui-ridgeline-CSs4Tq_c.js +0 -1630
  199. package/dist/vue-ui-sparkgauge-Ci_xD5B7.js +0 -268
  200. package/dist/vue-ui-sparkhistogram-Qe3ZCPRd.js +0 -589
  201. package/dist/vue-ui-stackbar-BWPSGzN-.js +0 -2369
  202. package/dist/vue-ui-stackline-BQroSnwZ.js +0 -2483
  203. package/dist/vue-ui-table-sparkline-DCm8S2uK.js +0 -738
  204. package/dist/vue-ui-waffle-CVuYg0yU.js +0 -1633
  205. package/dist/vue-ui-xy-D1dPd68D.js +0 -5298
@@ -1,1590 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, $t as n, Ct as r, D as i, Pt as a, X as o, Z as s, Zt as c, b as l, ht as u, i as d, lt as ee, nt as f, q as p, r as m, t as te, xt as ne } from "./lib-Dql7cqyA.js";
3
- import { n as re, t as ie } from "./useHints-Dq_w2E8B.js";
4
- import { t as ae } from "./useTimeLabels-d2f-W1L4.js";
5
- import { t as oe } from "./useConfig-D32D002m.js";
6
- import { t as se } from "./usePrinter-hohanNCX.js";
7
- import { n as ce, t as le } from "./BaseScanner-Dzc8VT3j.js";
8
- import { t as ue } from "./useNestedProp-Chvyfpl-.js";
9
- import { t as de } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as fe } from "./useChartExport-iwOqiIWX.js";
11
- import { t as pe } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
- import { t as me } from "./img-BkMKbWsI.js";
13
- import { n as he } from "./Title-CPHi-evi.js";
14
- import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
16
- import { t as ye } from "./vue-ui-accordion-DmkL8A59.js";
17
- import { t as be } from "./A11yDataTable-DdRsVULz.js";
18
- import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
19
- import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
20
- import { t as Ce } from "./useTableResponsive-BAqJPR68.js";
21
- import { t as we } from "./vue_ui_heatmap-B2BBBSWG.js";
22
- import { Fragment as h, computed as g, createBlock as Te, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as Ee, createTextVNode as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as b, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Ne, onMounted as Pe, openBlock as C, reactive as Fe, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as Ie, shallowRef as Le, toDisplayString as D, toRefs as Re, unref as O, useCssVars as ze, vShow as Be, watch as Ve, watchEffect as He, withCtx as k, withDirectives as Ue, withKeys as We } from "vue";
23
- //#region src/useLabelObserverEfffect.js
24
- function Ge({ elementRef: e, callback: t, attr: n, earlyReturn: r = !1, retryFrames: i = 12, alsoAfterFontsReady: a = !0 }) {
25
- if (r) return;
26
- let o = (e) => {
27
- if (!e) return;
28
- let r;
29
- if (typeof e.getBBox == "function") try {
30
- let t = e.getBBox();
31
- r = n === "width" ? t.width : t.height;
32
- } catch {}
33
- if (typeof r != "number" || Number.isNaN(r)) try {
34
- let t = e.getBoundingClientRect();
35
- r = n === "width" ? t.width : t.height;
36
- } catch {
37
- r = void 0;
38
- }
39
- typeof r == "number" && !Number.isNaN(r) && t(r);
40
- };
41
- He((t) => {
42
- let n = e.value;
43
- if (!n) return;
44
- let r = !1;
45
- (async () => {
46
- await je();
47
- for (let t = 0; t < i; t += 1) {
48
- if (r) return;
49
- await new Promise((e) => requestAnimationFrame(e));
50
- let t = e.value;
51
- if (!t) return;
52
- o(t);
53
- }
54
- if (a && typeof document < "u" && document.fonts && document.fonts.ready) {
55
- try {
56
- await document.fonts.ready;
57
- } catch {}
58
- !r && e.value && o(e.value);
59
- }
60
- })();
61
- let s = new MutationObserver(() => {
62
- e.value && requestAnimationFrame(() => {
63
- e.value && o(e.value);
64
- });
65
- });
66
- s.observe(n, {
67
- childList: !0,
68
- subtree: !0,
69
- characterData: !0,
70
- attributes: !0,
71
- attributeFilter: [
72
- "transform",
73
- "style",
74
- "class"
75
- ]
76
- });
77
- let c;
78
- if (typeof ResizeObserver < "u") {
79
- let t = n.ownerSVGElement ? n.ownerSVGElement : n;
80
- c = new ResizeObserver(() => {
81
- let t = e.value;
82
- t && o(t);
83
- }), c.observe(t);
84
- }
85
- t(() => {
86
- r = !0, s.disconnect(), c && c.disconnect();
87
- });
88
- }, { flush: "post" });
89
- }
90
- //#endregion
91
- //#region src/directives/vFitText.js
92
- var Ke = {
93
- mounted(e, t) {
94
- qe(e, t.value);
95
- },
96
- updated(e, t) {
97
- qe(e, t.value);
98
- }
99
- };
100
- function qe(e, { cellWidth: t, cellHeight: n, maxFontSize: r, minFontSize: i, index: a, reportRotation: o, reportHide: s, rotateAll: c, hideAll: l }) {
101
- e.removeAttribute("transform"), e.removeAttribute("visibility");
102
- let u = !1, d = !1;
103
- e.setAttribute("font-size", r);
104
- let ee = e.getComputedTextLength();
105
- if (ee <= t) o(a, !1), s(a, !1);
106
- else {
107
- let n = Math.floor(r * t / ee);
108
- n >= i ? (e.setAttribute("font-size", n), o(a, !1), s(a, !1)) : (o(a, !0), s(a, !1), u = !0);
109
- }
110
- if (c && (u = !0), u) {
111
- e.setAttribute("font-size", r);
112
- let t = e.getBBox(), o = t.x + t.width / 2, c = t.y + t.height / 2;
113
- e.setAttribute("transform", `rotate(-90 ${o} ${c})`);
114
- let l = e.getBBox().width;
115
- if (l <= n) s(a, !1);
116
- else {
117
- let t = Math.floor(r * n / l);
118
- t >= i ? (e.setAttribute("font-size", t), s(a, !1)) : (d = !0, s(a, !0));
119
- }
120
- }
121
- (l || d) && e.setAttribute("visibility", "hidden");
122
- }
123
- //#endregion
124
- //#region src/components/vue-ui-heatmap.vue
125
- var Je = /* @__PURE__ */ e({ default: () => Et }), Ye = ["id"], Xe = ["id"], Ze = [
126
- "xmlns",
127
- "aria-describedby",
128
- "viewBox"
129
- ], Qe = [
130
- "x",
131
- "y",
132
- "width",
133
- "height"
134
- ], $e = [
135
- "x",
136
- "y",
137
- "height",
138
- "width",
139
- "fill",
140
- "stroke",
141
- "stroke-width"
142
- ], et = [
143
- "x",
144
- "y",
145
- "height",
146
- "width",
147
- "fill",
148
- "stroke",
149
- "stroke-width"
150
- ], tt = [
151
- "x",
152
- "y",
153
- "width",
154
- "height",
155
- "fill",
156
- "stroke",
157
- "stroke-width"
158
- ], nt = [
159
- "data-a11y-cell-id",
160
- "x",
161
- "y",
162
- "width",
163
- "height",
164
- "fill",
165
- "stroke",
166
- "stroke-width",
167
- "aria-label",
168
- "onMouseover",
169
- "onMouseout",
170
- "onClick"
171
- ], rt = [
172
- "font-size",
173
- "font-weight",
174
- "fill",
175
- "x",
176
- "y"
177
- ], it = [
178
- "x",
179
- "y",
180
- "width",
181
- "height",
182
- "fill",
183
- "stroke",
184
- "stroke-width"
185
- ], at = [
186
- "x",
187
- "y",
188
- "width",
189
- "height",
190
- "fill",
191
- "stroke",
192
- "stroke-width"
193
- ], ot = [
194
- "font-size",
195
- "fill",
196
- "x",
197
- "y",
198
- "font-weight"
199
- ], st = [
200
- "font-size",
201
- "fill",
202
- "x",
203
- "y",
204
- "font-weight"
205
- ], ct = [
206
- "text-anchor",
207
- "font-size",
208
- "fill",
209
- "font-weight",
210
- "transform"
211
- ], lt = [
212
- "text-anchor",
213
- "font-size",
214
- "fill",
215
- "font-weight",
216
- "transform"
217
- ], ut = { key: 6 }, dt = [
218
- "x",
219
- "y",
220
- "width",
221
- "height",
222
- "stroke",
223
- "stroke-width"
224
- ], ft = { key: 7 }, pt = [
225
- "x1",
226
- "x2",
227
- "y1",
228
- "y2",
229
- "stroke",
230
- "stroke-width",
231
- "stroke-dasharray"
232
- ], mt = [
233
- "x1",
234
- "x2",
235
- "y1",
236
- "y2",
237
- "stroke",
238
- "stroke-width",
239
- "stroke-dasharray"
240
- ], ht = { class: "vue-ui-heatmap-legend-gauge-right" }, gt = ["data-value"], _t = { class: "vue-ui-heatmap-gauge-indicator-value" }, vt = {
241
- key: 1,
242
- style: {
243
- position: "absolute",
244
- top: "100%",
245
- left: "0",
246
- width: "100%"
247
- },
248
- "data-dom-to-png-ignore": "",
249
- "aria-hidden": "true"
250
- }, yt = {
251
- key: 5,
252
- class: "vue-data-ui-watermark"
253
- }, bt = { class: "vue-ui-data-table" }, xt = { key: 0 }, St = ["data-cell"], Ct = { style: {
254
- display: "flex",
255
- "align-items": "center",
256
- gap: "5px",
257
- "justify-content": "flex-end",
258
- width: "100%",
259
- "padding-right": "3px"
260
- } }, wt = ["data-cell"], Tt = { style: {
261
- display: "flex",
262
- "align-items": "center",
263
- gap: "5px",
264
- "justify-content": "flex-end",
265
- width: "100%",
266
- "padding-right": "3px"
267
- } }, Et = /*#__PURE__*/ ge({
268
- __name: "vue-ui-heatmap",
269
- props: {
270
- config: {
271
- type: Object,
272
- default() {
273
- return {};
274
- }
275
- },
276
- dataset: {
277
- type: Array,
278
- default() {
279
- return [];
280
- }
281
- }
282
- },
283
- emits: ["selectDatapoint", "copyAlt"],
284
- setup(e, { expose: ge, emit: qe }) {
285
- ze((e) => ({ c8b0ccd2: e.tdo }));
286
- let Je = ke(() => import("./Tooltip-hhrkQ3Lk.js")), Et = ke(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Dt = ke(() => import("./PenAndPaper-Cd3nItcO.js").then((e) => e.t)), Ot = ke(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), kt = ke(() => import("./PackageVersion-CZZayD-D.js").then((e) => e.t)), At = ke(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_heatmap: jt } = oe(), { isThemeValid: Mt, warnInvalidTheme: Nt } = de(), A = e, Pt = qe, Ft = g({
287
- get() {
288
- return !!A.dataset && A.dataset.length;
289
- },
290
- set(e) {
291
- return e;
292
- }
293
- }), It = w(p()), j = w(null), Lt = w(!1), Rt = w(""), zt = w(void 0), M = w(null), Bt = w(0), Vt = w(null), Ht = w(0), Ut = w(null), Wt = w(null), Gt = w(null), Kt = w(null), qt = w(null), Jt = w(null), Yt = w(null), Xt = w(null), Zt = w(null), Qt = w(null), $t = w(null), en = w(null), tn = Le(null), N = w(null), nn = w(null), rn = w({
294
- x: 0,
295
- y: 0
296
- }), an = w("pointer"), on = w(!1), P = w(gn()), F = g(() => P.value.style.layout.cells), I = g(() => P.value.style.layout.dataLabels), L = g(() => P.value.style.layout);
297
- re({
298
- config: () => P.value,
299
- dataset: () => A.dataset,
300
- component: "VueUiHeatmap",
301
- rules: [ie.emptyArray, ie.noHint]
302
- });
303
- let sn = g(() => P.value.userOptions.useCursorPointer);
304
- function cn() {
305
- let e = Array(7).fill("_"), t = [], n = e.length;
306
- for (let r = 0; r < n; r += 1) {
307
- let n = [];
308
- for (let e = 0; e < 14; e += 1) n.push(r + e * 2);
309
- t.push({
310
- name: `${e[r]}`,
311
- values: n
312
- });
313
- }
314
- return t;
315
- }
316
- let ln = g(() => c({
317
- defaultConfig: {
318
- table: { show: !1 },
319
- userOptions: { show: !1 },
320
- style: {
321
- backgroundColor: "#99999930",
322
- layout: {
323
- cells: {
324
- colors: {
325
- hot: "#999999",
326
- cold: "#CACACA"
327
- },
328
- columnTotal: { value: { show: !1 } },
329
- rowTotal: { value: { show: !1 } },
330
- value: { show: !1 }
331
- },
332
- dataLabels: {
333
- xAxis: { show: !1 },
334
- yAxis: { show: !1 }
335
- }
336
- }
337
- }
338
- },
339
- userConfig: P.value.skeletonConfig ?? {}
340
- })), { loading: un, FINAL_DATASET: R, manualLoading: dn } = ce({
341
- ...Re(A),
342
- FINAL_CONFIG: P,
343
- prepareConfig: gn,
344
- callback: () => {
345
- Promise.resolve().then(async () => {
346
- await je(), j.value && n(j.value, {
347
- delta: .1,
348
- delay: 250
349
- });
350
- });
351
- },
352
- skeletonDataset: A.config?.skeletonDataset ?? cn(),
353
- skeletonConfig: c({
354
- defaultConfig: P.value,
355
- userConfig: ln.value
356
- })
357
- }), { userOptionsVisible: fn, setUserOptionsVisibility: pn, keepUserOptionState: mn } = xe({ config: P.value }), { svgRef: z } = Se({ config: P.value.style.title });
358
- function hn(e) {
359
- pn(e);
360
- }
361
- function gn() {
362
- let e = ue({
363
- userConfig: A.config,
364
- defaultConfig: jt
365
- }), t = {}, n = e.theme;
366
- if (n) {
367
- if (!Mt.value(e)) Nt(e), t = e;
368
- else {
369
- let r = ue({
370
- userConfig: we[n] || A.config,
371
- defaultConfig: e
372
- });
373
- t = { ...ue({
374
- userConfig: A.config,
375
- defaultConfig: r
376
- }) };
377
- }
378
- } else t = e;
379
- return t;
380
- }
381
- function _n(e) {
382
- let t = s(e);
383
- return t?.style && delete t.style.tooltip, JSON.stringify(t);
384
- }
385
- let vn = _n(A.config);
386
- Ve(() => A.config, (e, t) => {
387
- let n = _n(e), r = n !== vn;
388
- vn = n;
389
- let i = gn();
390
- if (!r) {
391
- P.value.style.tooltip = i.style.tooltip, B.value.showTooltip = P.value.style.tooltip.show;
392
- return;
393
- }
394
- un.value || (P.value = i), fn.value = !P.value.userOptions.showOnChartHover, En(), Ht.value += 1, B.value.showTable = P.value.table.show, B.value.showTooltip = P.value.style.tooltip.show, Dn.value = L.value.width, On.value = L.value.height;
395
- }, { deep: !0 }), Ve(() => A.dataset, (e) => {
396
- Array.isArray(e) && e.length > 0 && (dn.value = !1), En();
397
- }, { deep: !0 });
398
- let { isPrinting: yn, isImaging: bn, generatePdf: xn, generateImage: Sn } = se({
399
- elementId: `heatmap__${It.value}`,
400
- fileName: P.value.style.title.text || "vue-ui-heatmap",
401
- options: P.value.userOptions.print
402
- }), Cn = g(() => P.value.userOptions.show && !P.value.style.title.text), B = w({
403
- showTable: P.value.table.show,
404
- showTooltip: P.value.style.tooltip.show
405
- });
406
- Ve(P, () => {
407
- B.value = {
408
- showTable: P.value.table.show,
409
- showTooltip: P.value.style.tooltip.show
410
- };
411
- }, { immediate: !0 });
412
- let wn = g(() => P.value.table.responsiveBreakpoint), V = w(null), Tn = g(() => P.value.debug);
413
- function En() {
414
- if (a(A.dataset) && (f({
415
- componentName: "VueUiHeatmap",
416
- type: "dataset",
417
- debug: Tn.value
418
- }), Ft.value = !1, dn.value = !0), a(A.dataset) || (dn.value = P.value.loading), P.value.responsive) {
419
- let e = _e(() => {
420
- let { width: e, height: t } = ve({
421
- chart: j.value,
422
- title: P.value.style.title.text ? Kt.value : null,
423
- source: en.value,
424
- noTitle: qt.value
425
- });
426
- requestAnimationFrame(() => {
427
- Dn.value = e, On.value = t;
428
- });
429
- });
430
- V.value && (tn.value && V.value.unobserve(tn.value), V.value.disconnect()), V.value = new ResizeObserver(e), tn.value = j.value.parentNode, V.value.observe(tn.value);
431
- }
432
- }
433
- Ne(() => {
434
- V.value && (tn.value && V.value.unobserve(tn.value), V.value.disconnect());
435
- }), Pe(() => {
436
- En();
437
- });
438
- let H = g(() => Math.max(...R.value.flatMap((e) => (e.values || []).length))), Dn = w(L.value.width), On = w(L.value.height), U = g(() => ({
439
- width: Math.max(10, Dn.value),
440
- height: Math.max(10, On.value)
441
- })), kn = w(0);
442
- Ge({
443
- elementRef: Zt,
444
- callback: _e((e) => {
445
- e !== kn.value && (kn.value = e);
446
- }, 100),
447
- attr: "height"
448
- });
449
- let W = w(0);
450
- Ge({
451
- elementRef: Yt,
452
- callback: _e((e) => {
453
- e !== W.value && (W.value = e);
454
- }, 100),
455
- attr: "width"
456
- });
457
- let An = w(0);
458
- Ge({
459
- elementRef: Qt,
460
- callback: _e((e) => {
461
- e !== An.value && (An.value = e);
462
- }, 100),
463
- attr: "height"
464
- }), Ne(() => {
465
- kn.value = 0, W.value = 0, An.value = 0;
466
- });
467
- let G = g(() => Math.min(U.value.height, U.value.width) / 1e3 * F.value.spacing), K = g(() => {
468
- let e = 0;
469
- P.value.style.legend.show && (e = P.value.style.legend.width);
470
- let t = L.value.padding, n = I.value.xAxis.fontSize / 3, r = I.value.xAxis.fontSize / 2, i = U.value.height - t.top - t.bottom - kn.value - n, a = U.value.width / 60, o = {
471
- x: G.value * H.value,
472
- y: G.value * ((R.value || []).length + 1)
473
- }, s = U.value.width - t.left - t.right - o.x - a * 2 - 2 - e - W.value, c = i - a - o.y - An.value - r - F.value.columnTotal.value.offsetY, l = {
474
- width: Math.max(3, s / H.value),
475
- height: Math.max(3, c / (R.value.length ?? 1))
476
- };
477
- return {
478
- top: t.top + kn.value + a + n,
479
- topLabelsHeight: kn.value,
480
- sumCellXHeight: a,
481
- height: c,
482
- left: t.left + W.value + a / 2,
483
- right: t.right - e,
484
- bottom: U.value.height - t.bottom - An.value,
485
- width: s,
486
- cellSize: l
487
- };
488
- }), jn = g(() => Math.max(...R.value.flatMap((e) => e.values))), Mn = g(() => Math.min(...R.value.flatMap((e) => e.values))), q = g(() => F.value.scaleMax === null ? jn.value : F.value.scaleMax), J = g(() => F.value.scaleMin === null ? Mn.value : F.value.scaleMin), Y = g(() => {
489
- let e = R.value.flatMap((e) => e.values);
490
- return e.reduce((e, t) => e + t, 0) / e.length;
491
- }), Nn = w([]), Pn = w([]), Fn = 0;
492
- He(() => {
493
- let e = ++Fn;
494
- (async () => {
495
- let t = I.value.yAxis, n = await ae({
496
- values: t.values.length ? t.values : R.value.map((e) => e.name),
497
- maxDatapoints: R.value.length,
498
- formatter: t.datetimeFormatter,
499
- start: 0,
500
- end: R.value.length
501
- });
502
- e === Fn && (Nn.value = n);
503
- })();
504
- });
505
- let In = 0;
506
- He(() => {
507
- let e = ++In;
508
- (async () => {
509
- let t = I.value.xAxis, n = await ae({
510
- values: t.values,
511
- maxDatapoints: H.value,
512
- formatter: t.datetimeFormatter,
513
- start: 0,
514
- end: H.value
515
- });
516
- e === In && (Pn.value = n);
517
- })();
518
- });
519
- function X(e, t, n) {
520
- if (t === n) return F.value.colors.hot;
521
- let r = Math.min(Math.max(e, t), n);
522
- return ne(F.value.colors.cold, F.value.colors.hot, t, n, r);
523
- }
524
- function Ln(e) {
525
- if ([void 0, null].includes(e)) return 0;
526
- let t = J.value, n = q.value;
527
- if (t === n) return 0;
528
- let r = (e - t) / (n - t);
529
- return (1 - Math.min(Math.max(r, 0), 1)) * 100;
530
- }
531
- let Z = g(() => {
532
- let e = Nn.value.map((e) => e.text), t = Pn.value.map((e) => e.text), n = F.value.scaleMin !== null || F.value.scaleMax !== null, r = R.value.map((e) => e.values.reduce((e, t) => e + t, 0)), i = R.value.map((e) => Math.max(1, e.values.length)), a = Math.max(...r), o = Math.min(...r), s = [], c = [];
533
- for (let e = 0; e < H.value; e += 1) {
534
- let t = 0, n = 0;
535
- R.value.forEach((r) => {
536
- e < r.values.length && (t += r.values[e] || 0, n += 1);
537
- }), s.push(t), c.push(Math.max(1, n));
538
- }
539
- let l = Math.max(...s), u = Math.min(...s);
540
- return {
541
- yTotals: r.map((e, t) => {
542
- let r = isNaN(e / a) ? 0 : e / a, s = i[t], c = J.value * s, l = q.value * s;
543
- return {
544
- total: e,
545
- proportion: r,
546
- color: n ? X(e, c, l) : X(e, o, a)
547
- };
548
- }),
549
- xTotals: s.map((e, t) => {
550
- let r = isNaN(e / l) ? 0 : e / l, i = c[t], a = J.value * i, o = q.value * i;
551
- return {
552
- total: e,
553
- proportion: r,
554
- color: n ? X(e, a, o) : X(e, u, l)
555
- };
556
- }),
557
- yLabels: e,
558
- xLabels: t.slice(0, H.value)
559
- };
560
- }), Q = g(() => (R.value.forEach((e, t) => {
561
- u({
562
- datasetObject: e,
563
- requiredAttributes: ["values"]
564
- }).forEach((e) => {
565
- f({
566
- componentName: "VueUiHeatmap",
567
- type: "datasetSerieAttribute",
568
- property: "values",
569
- index: t,
570
- debug: Tn.value
571
- });
572
- });
573
- }), R.value.map((e, t) => ({
574
- ...e,
575
- temperatures: (e.values || []).map((e, n) => e >= Y.value ? {
576
- side: "up",
577
- color: X(e, J.value, q.value),
578
- ratio: Math.abs(Math.abs(e - Y.value) / Math.abs(jn.value - Y.value)) > 1 ? 1 : Math.abs(Math.abs(e - Y.value) / Math.abs(jn.value - Y.value)),
579
- value: e,
580
- yAxisName: Z.value.yLabels[t],
581
- xAxisName: Z.value.xLabels[n],
582
- id: `vue-data-ui-heatmap-cell-${p()}`
583
- } : {
584
- side: "down",
585
- ratio: Math.abs(1 - Math.abs(e) / Math.abs(Y.value)) > 1 ? 1 : Math.abs(1 - Math.abs(e) / Math.abs(Y.value)),
586
- color: X(e, J.value, q.value),
587
- value: e,
588
- yAxisName: Z.value.yLabels[t],
589
- xAxisName: Z.value.xLabels[n],
590
- id: `vue-data-ui-heatmap-cell-${p()}`
591
- })
592
- })))), Rn = g(() => R.value.length), zn = Fe(Array(Rn.value * H.value || 1).fill(!1)), Bn = g(() => zn.some((e) => e));
593
- function Vn(e, t) {
594
- zn[e] = t;
595
- }
596
- let Hn = Fe(Array(Rn.value * H.value || 1).fill(!1)), Un = g(() => Hn.some((e) => e));
597
- function Wn(e, t) {
598
- Hn[e] = t;
599
- }
600
- let $ = w(null), Gn = w(null);
601
- function Kn() {
602
- Lt.value = !1, zt.value = void 0, $.value = null, M.value = null, N.value = null, nn.value = null;
603
- }
604
- function qn(e) {
605
- if (!z.value || !e) return;
606
- let t = z.value.querySelector(`[data-a11y-cell-id="${e}"]`);
607
- if (!t) return;
608
- let n = t.getBoundingClientRect();
609
- rn.value = {
610
- x: n.left + n.width / 2,
611
- y: n.top + n.height / 2
612
- };
613
- }
614
- function Jn(e, t, n, i, a = "pointer", s = null) {
615
- if (P.value.events.datapointEnter && P.value.events.datapointEnter({
616
- datapoint: e,
617
- seriesIndex: t
618
- }), !B.value.showTooltip) return;
619
- an.value = a, N.value = s, nn.value = e.id, M.value = {
620
- x: n,
621
- y: i
622
- };
623
- let { value: c, yAxisName: l, xAxisName: u, id: f } = e;
624
- zt.value = f, $.value = c, Gn.value = {
625
- datapoint: e,
626
- seriesIndex: t,
627
- series: Q.value,
628
- config: P.value
629
- }, Lt.value = !0;
630
- let p = "", m = P.value.style.tooltip.customFormat;
631
- r(m) && ee(() => m({
632
- datapoint: e,
633
- seriesIndex: t,
634
- series: Q.value,
635
- config: P.value
636
- })) ? Rt.value = m({
637
- datapoint: e,
638
- seriesIndex: t,
639
- series: Q.value,
640
- config: P.value
641
- }) : (p += `<div>${l} ${u ? l ? ` - ${u}` : `${u}` : ""}</div>`, p += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${P.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${X(c, J.value, q.value)}">⬤</span><span>${isNaN(c) ? "-" : d(F.value.value.formatter, c, o({
642
- p: I.value.prefix,
643
- v: c,
644
- s: I.value.suffix,
645
- r: P.value.style.tooltip.roundingValue
646
- }), {
647
- datapoint: e,
648
- seriesIndex: t
649
- })}</span></div>`, Rt.value = `<div style="font-size:${P.value.style.tooltip.fontSize}px">${p}</div>`), a === "keyboard" && je(() => {
650
- qn(e.id);
651
- });
652
- }
653
- function Yn({ datapoint: e, seriesIndex: t }) {
654
- P.value.events.datapointLeave && P.value.events.datapointLeave({
655
- datapoint: e,
656
- seriesIndex: t
657
- }), (nn.value !== e.id || an.value !== "keyboard") && (Lt.value = !1, zt.value = void 0, $.value = null, M.value = null);
658
- }
659
- function Xn(e) {
660
- return d(F.value.value.formatter, Z.value.yTotals[e].total, o({
661
- p: I.value.prefix,
662
- v: Z.value.yTotals[e].total,
663
- s: I.value.suffix,
664
- r: F.value.value.roundingValue
665
- }), {
666
- datapoint: Z.value.yTotals[e],
667
- rowIndex: e
668
- });
669
- }
670
- function Zn(e) {
671
- return d(F.value.value.formatter, Z.value.xTotals[e].total, o({
672
- p: I.value.prefix,
673
- v: Z.value.xTotals[e].total,
674
- s: I.value.suffix,
675
- r: F.value.value.roundingValue
676
- }), {
677
- datapoint: Z.value.xTotals[e],
678
- colIndex: e
679
- });
680
- }
681
- g(() => ({
682
- head: R.value.map((e) => ({ name: e.name })),
683
- body: R.value.map((e) => e.values)
684
- }));
685
- function Qn(e = null) {
686
- je(() => {
687
- let n = ["", ...R.value.map((e, t) => e.name)], r = [];
688
- for (let e = 0; e < Z.value.xLabels.length; e += 1) {
689
- let t = [Z.value.xLabels[e]];
690
- for (let n = 0; n < R.value.length; n += 1) t.push([R.value[n].values[e]]);
691
- r.push(t);
692
- }
693
- let a = [
694
- [P.value.style.title.text],
695
- [P.value.style.title.subtitle.text],
696
- [
697
- [""],
698
- [""],
699
- [""]
700
- ],
701
- n
702
- ].concat(r), o = i(a);
703
- e ? e(o) : t({
704
- csvContent: o,
705
- title: P.value.style.title.text || "vue-ui-heatmap"
706
- });
707
- });
708
- }
709
- let $n = w(!1);
710
- function er(e) {
711
- $n.value = e, Bt.value += 1;
712
- }
713
- function tr() {
714
- B.value.showTable = !B.value.showTable;
715
- }
716
- function nr() {
717
- B.value.showTooltip = !B.value.showTooltip;
718
- }
719
- let rr = w(!1);
720
- function ir() {
721
- rr.value = !rr.value;
722
- }
723
- function ar(e, t) {
724
- P.value.events.datapointClick && P.value.events.datapointClick({
725
- datapoint: e,
726
- seriesIndex: t
727
- }), Pt("selectDatapoint", e);
728
- }
729
- function or() {
730
- return Q.value;
731
- }
732
- async function sr({ scale: e = 2 } = {}) {
733
- if (!j.value) return;
734
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
735
- domElement: j.value,
736
- base64: !0,
737
- img: !0,
738
- scale: e
739
- });
740
- return {
741
- imageUri: i,
742
- base64: a,
743
- title: P.value.style.title.text,
744
- width: t,
745
- height: n,
746
- aspectRatio: r
747
- };
748
- }
749
- let cr = g(() => ({
750
- start: 0,
751
- end: H.value
752
- })), lr = g(() => Z.value.xLabels);
753
- pe({
754
- timeLabelsEls: Zt,
755
- timeLabels: lr,
756
- slicer: cr,
757
- configRef: P,
758
- rotationPath: [
759
- "style",
760
- "layout",
761
- "dataLabels",
762
- "xAxis",
763
- "rotation"
764
- ],
765
- autoRotatePath: [
766
- "style",
767
- "layout",
768
- "dataLabels",
769
- "xAxis",
770
- "autoRotate",
771
- "enable"
772
- ],
773
- isAutoSize: !1,
774
- targetClass: ".vue-ui-heatmap-col-name",
775
- rotation: I.value.xAxis.autoRotate.angle,
776
- width: Dn,
777
- height: On
778
- }), pe({
779
- timeLabelsEls: Qt,
780
- timeLabels: lr,
781
- slicer: cr,
782
- configRef: P,
783
- rotationPath: [
784
- "style",
785
- "layout",
786
- "cells",
787
- "columnTotal",
788
- "value",
789
- "rotation"
790
- ],
791
- autoRotatePath: [
792
- "style",
793
- "layout",
794
- "cells",
795
- "columnTotal",
796
- "value",
797
- "autoRotate",
798
- "enable"
799
- ],
800
- isAutoSize: !1,
801
- targetClass: ".vue-ui-heatmap-col-total",
802
- rotation: F.value.columnTotal.value.autoRotate.angle,
803
- width: Dn,
804
- height: On
805
- });
806
- let ur = g(() => {
807
- let e = P.value.table.useDialog && !P.value.table.show, t = B.value.showTable;
808
- return {
809
- component: e ? At : ye,
810
- title: `${P.value.style.title.text}${P.value.style.title.subtitle.text ? `: ${P.value.style.title.subtitle.text}` : ""}`,
811
- props: e ? {
812
- backgroundColor: P.value.table.th.backgroundColor,
813
- color: P.value.table.th.color,
814
- headerColor: P.value.table.th.color,
815
- headerBg: P.value.table.th.backgroundColor,
816
- isFullscreen: $n.value,
817
- fullscreenParent: j.value,
818
- forcedWidth: Math.min(800, window.innerWidth * .8),
819
- isCursorPointer: sn.value
820
- } : {
821
- hideDetails: !0,
822
- config: {
823
- open: t,
824
- maxHeight: 1e4,
825
- body: {
826
- backgroundColor: P.value.style.backgroundColor,
827
- color: P.value.style.color
828
- },
829
- head: {
830
- backgroundColor: P.value.style.backgroundColor,
831
- color: P.value.style.color
832
- }
833
- }
834
- }
835
- };
836
- });
837
- Ve(() => B.value.showTable, async (e) => {
838
- P.value.table.show || (e && P.value.table.useDialog && Wt.value ? (await je(), Wt.value.open()) : "close" in Wt.value && Wt.value.close());
839
- });
840
- let { isResponsive: dr } = Ce(Vt, wn);
841
- function fr() {
842
- B.value.showTable = !1, Gt.value && Gt.value.setTableIconState(!1);
843
- }
844
- let pr = g(() => P.value.style.backgroundColor), mr = g(() => P.value.style.title), { isCallbackImaging: hr, isCallbackSvg: gr, generateSvg: _r, onGenerateImage: vr } = fe({
845
- svg: z,
846
- title: mr,
847
- legend: null,
848
- legendItems: null,
849
- backgroundColor: pr,
850
- getSvgCallback: () => P.value.userOptions.callbacks.svg,
851
- generateImage: Sn
852
- });
853
- async function yr() {
854
- if (Pt("copyAlt", {
855
- config: P.value,
856
- dataset: Q.value
857
- }), !P.value.userOptions.callbacks.altCopy) {
858
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
859
- return;
860
- }
861
- await Promise.resolve(P.value.userOptions.callbacks.altCopy({
862
- config: P.value,
863
- dataset: Q.value
864
- }));
865
- }
866
- function br(e, t) {
867
- let n = Q.value[e];
868
- if (!n) return null;
869
- let r = n.temperatures[t];
870
- return r ? {
871
- cell: r,
872
- rowIndex: e,
873
- columnIndex: t
874
- } : null;
875
- }
876
- function xr(e, t) {
877
- let n = 0;
878
- for (let t = 0; t < e; t += 1) n += Q.value[t]?.temperatures?.length || 0;
879
- return n + t;
880
- }
881
- function Sr() {
882
- N.value = null, nn.value = null, on.value = !0;
883
- }
884
- function Cr() {
885
- Kn(), on.value = !1;
886
- }
887
- function wr(e) {
888
- if (!z.value || rr.value || document.activeElement !== z.value || !Dr.value.length) return;
889
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
890
- if (!t && !n && !r && !i && !a && !o) return;
891
- if (e.preventDefault(), e.stopPropagation(), o) {
892
- Kn();
893
- return;
894
- }
895
- if (a) {
896
- if (N.value === null) return;
897
- let e = Dr.value[N.value];
898
- if (!e) return;
899
- ar(e.cell, e.rowIndex);
900
- return;
901
- }
902
- let s = N.value === null ? null : Dr.value[N.value];
903
- if (!s) {
904
- let e = zt.value ? Dr.value.findIndex((e) => e.cell.id === zt.value) : null;
905
- if (e !== null && e >= 0 && e < Dr.value.length) {
906
- let a = Dr.value[e];
907
- if (!a) return;
908
- let o = a.rowIndex, s = a.columnIndex;
909
- n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
910
- let c = Er.value.rowCount;
911
- if (c <= 0) return;
912
- o < 0 && (o = c - 1), o >= c && (o = 0);
913
- let l = Q.value[o];
914
- if (!l || !l.temperatures.length) return;
915
- let u = l.temperatures.length;
916
- s < 0 && (s = u - 1), s >= u && (s = 0);
917
- let d = br(o, s);
918
- if (!d) return;
919
- let ee = xr(o, s), f = K.value.left + K.value.cellSize.width * d.columnIndex, p = K.value.top + K.value.cellSize.height * d.rowIndex;
920
- Jn(d.cell, d.rowIndex, f, p, "keyboard", ee);
921
- return;
922
- }
923
- let a = Dr.value[0];
924
- if (!a) return;
925
- let o = K.value.left + K.value.cellSize.width * a.columnIndex, s = K.value.top + K.value.cellSize.height * a.rowIndex;
926
- Jn(a.cell, a.rowIndex, o, s, "keyboard", 0);
927
- return;
928
- }
929
- let c = s.rowIndex, l = s.columnIndex;
930
- n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
931
- let u = Er.value.rowCount;
932
- if (u <= 0) return;
933
- c < 0 && (c = u - 1), c >= u && (c = 0);
934
- let d = Q.value[c];
935
- if (!d || !d.temperatures.length) return;
936
- let ee = d.temperatures.length;
937
- l < 0 && (l = ee - 1), l >= ee && (l = 0);
938
- let f = br(c, l);
939
- if (!f) return;
940
- let p = xr(c, l), m = K.value.left + K.value.cellSize.width * f.columnIndex, te = K.value.top + K.value.cellSize.height * f.rowIndex;
941
- Jn(f.cell, f.rowIndex, m, te, "keyboard", p);
942
- }
943
- let Tr = g(() => ({
944
- headers: [P.value.table.colNames.xAxis, ...R.value.map((e) => e.name)],
945
- rows: Z.value.xLabels.map((e, t) => [e, ...R.value.map((e) => {
946
- let n = e.values?.[t];
947
- return isNaN(n) ? "-" : o({
948
- p: I.value.prefix,
949
- v: n,
950
- s: I.value.suffix,
951
- r: P.value.table.td.roundingValue
952
- });
953
- })])
954
- })), Er = g(() => ({
955
- rowCount: Q.value.length,
956
- columnCount: Math.max(0, ...Q.value.map((e) => e.temperatures.length))
957
- })), Dr = g(() => Q.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
958
- cell: e,
959
- rowIndex: t,
960
- columnIndex: n
961
- }))));
962
- return ge({
963
- getData: or,
964
- getImage: sr,
965
- generatePdf: xn,
966
- generateCsv: Qn,
967
- generateImage: Sn,
968
- generateSvg: _r,
969
- toggleTable: tr,
970
- toggleTooltip: nr,
971
- toggleAnnotator: ir,
972
- toggleFullscreen: er,
973
- copyAlt: yr
974
- }), (t, n) => (C(), v("div", {
975
- ref_key: "heatmapChart",
976
- ref: j,
977
- class: Me(`vue-data-ui-component vue-ui-heatmap ${$n.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
978
- style: S(`font-family:${P.value.style.fontFamily};width:100%;${P.value.responsive ? "height: 100%;" : ""} text-align:center;background:${P.value.style.backgroundColor}`),
979
- id: `heatmap__${It.value}`,
980
- onMouseenter: n[1] ||= () => hn(!0),
981
- onMouseleave: n[2] ||= () => {
982
- hn(!1), on.value || Kn();
983
- }
984
- }, [
985
- y("div", {
986
- id: `chart-instructions-${It.value}`,
987
- class: "sr-only"
988
- }, [y("p", null, D(P.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
989
- Tr.value?.rows?.length ? (C(), Te(be, {
990
- key: 0,
991
- uid: It.value,
992
- head: Tr.value.headers,
993
- body: Tr.value.rows,
994
- notice: P.value.a11y.translations.tableAvailable,
995
- caption: P.value.a11y.translations.tableCaption
996
- }, null, 8, [
997
- "uid",
998
- "head",
999
- "body",
1000
- "notice",
1001
- "caption"
1002
- ])) : _("", !0),
1003
- P.value.userOptions.buttons.annotator ? (C(), Te(O(Dt), {
1004
- key: 1,
1005
- svgRef: O(z),
1006
- backgroundColor: P.value.style.backgroundColor,
1007
- color: P.value.style.color,
1008
- active: rr.value,
1009
- isCursorPointer: sn.value,
1010
- palette: P.value.userOptions.annotatorPalette,
1011
- onClose: ir
1012
- }, {
1013
- "annotator-action-close": k(() => [E(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1014
- "annotator-action-color": k(({ color: e }) => [E(t.$slots, "annotator-action-color", x(b({ color: e })), void 0, !0)]),
1015
- "annotator-action-draw": k(({ mode: e }) => [E(t.$slots, "annotator-action-draw", x(b({ mode: e })), void 0, !0)]),
1016
- "annotator-action-undo": k(({ disabled: e }) => [E(t.$slots, "annotator-action-undo", x(b({ disabled: e })), void 0, !0)]),
1017
- "annotator-action-redo": k(({ disabled: e }) => [E(t.$slots, "annotator-action-redo", x(b({ disabled: e })), void 0, !0)]),
1018
- "annotator-action-delete": k(({ disabled: e }) => [E(t.$slots, "annotator-action-delete", x(b({ disabled: e })), void 0, !0)]),
1019
- _: 3
1020
- }, 8, [
1021
- "svgRef",
1022
- "backgroundColor",
1023
- "color",
1024
- "active",
1025
- "isCursorPointer",
1026
- "palette"
1027
- ])) : _("", !0),
1028
- Cn.value ? (C(), v("div", {
1029
- key: 2,
1030
- ref_key: "noTitle",
1031
- ref: qt,
1032
- class: "vue-data-ui-no-title-space",
1033
- style: "height:36px; width: 100%;background:transparent"
1034
- }, null, 512)) : _("", !0),
1035
- P.value.style.title.text ? (C(), v("div", {
1036
- key: 3,
1037
- ref_key: "chartTitle",
1038
- ref: Kt,
1039
- style: "width:100%;background:transparent"
1040
- }, [(C(), Te(he, {
1041
- key: `title_${Ht.value}`,
1042
- config: {
1043
- title: {
1044
- cy: "heatmap-div-title",
1045
- ...P.value.style.title
1046
- },
1047
- subtitle: {
1048
- cy: "heatmap-div-subtitle",
1049
- ...P.value.style.title.subtitle
1050
- }
1051
- }
1052
- }, null, 8, ["config"]))], 512)) : _("", !0),
1053
- P.value.userOptions.show && Ft.value && (O(mn) || O(fn)) ? (C(), Te(O(Ot), {
1054
- ref_key: "userOptionsRef",
1055
- ref: Gt,
1056
- key: `user_options_${Bt.value}`,
1057
- backgroundColor: P.value.style.backgroundColor,
1058
- color: P.value.style.color,
1059
- isImaging: O(bn),
1060
- isPrinting: O(yn),
1061
- uid: It.value,
1062
- hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.tooltip.show,
1063
- hasPdf: P.value.userOptions.buttons.pdf,
1064
- hasImg: P.value.userOptions.buttons.img,
1065
- hasSvg: P.value.userOptions.buttons.svg,
1066
- hasXls: P.value.userOptions.buttons.csv,
1067
- hasTable: P.value.userOptions.buttons.table,
1068
- hasFullscreen: P.value.userOptions.buttons.fullscreen,
1069
- hasAltCopy: P.value.userOptions.buttons.altCopy,
1070
- isFullscreen: $n.value,
1071
- isTooltip: B.value.showTooltip,
1072
- titles: { ...P.value.userOptions.buttonTitles },
1073
- chartElement: j.value,
1074
- position: P.value.userOptions.position,
1075
- hasAnnotator: P.value.userOptions.buttons.annotator,
1076
- isAnnotation: rr.value,
1077
- callbacks: P.value.userOptions.callbacks,
1078
- printScale: P.value.userOptions.print.scale,
1079
- tableDialog: P.value.table.useDialog,
1080
- isCursorPointer: sn.value,
1081
- onToggleFullscreen: er,
1082
- onGeneratePdf: O(xn),
1083
- onGenerateCsv: Qn,
1084
- onGenerateImage: O(vr),
1085
- onGenerateSvg: O(_r),
1086
- onToggleTable: tr,
1087
- onToggleTooltip: nr,
1088
- onToggleAnnotator: ir,
1089
- onCopyAlt: yr,
1090
- style: S({ visibility: O(mn) ? O(fn) ? "visible" : "hidden" : "visible" })
1091
- }, Ee({ _: 2 }, [
1092
- t.$slots.menuIcon ? {
1093
- name: "menuIcon",
1094
- fn: k(({ isOpen: e, color: n }) => [E(t.$slots, "menuIcon", x(b({
1095
- isOpen: e,
1096
- color: n
1097
- })), void 0, !0)]),
1098
- key: "0"
1099
- } : void 0,
1100
- t.$slots.optionTooltip ? {
1101
- name: "optionTooltip",
1102
- fn: k(() => [E(t.$slots, "optionTooltip", {}, void 0, !0)]),
1103
- key: "1"
1104
- } : void 0,
1105
- t.$slots.optionPdf ? {
1106
- name: "optionPdf",
1107
- fn: k(() => [E(t.$slots, "optionPdf", {}, void 0, !0)]),
1108
- key: "2"
1109
- } : void 0,
1110
- t.$slots.optionCsv ? {
1111
- name: "optionCsv",
1112
- fn: k(() => [E(t.$slots, "optionCsv", {}, void 0, !0)]),
1113
- key: "3"
1114
- } : void 0,
1115
- t.$slots.optionImg ? {
1116
- name: "optionImg",
1117
- fn: k(() => [E(t.$slots, "optionImg", {}, void 0, !0)]),
1118
- key: "4"
1119
- } : void 0,
1120
- t.$slots.optionSvg ? {
1121
- name: "optionSvg",
1122
- fn: k(() => [E(t.$slots, "optionSvg", {}, void 0, !0)]),
1123
- key: "5"
1124
- } : void 0,
1125
- t.$slots.optionTable ? {
1126
- name: "optionTable",
1127
- fn: k(() => [E(t.$slots, "optionTable", {}, void 0, !0)]),
1128
- key: "6"
1129
- } : void 0,
1130
- t.$slots.optionFullscreen ? {
1131
- name: "optionFullscreen",
1132
- fn: k(({ toggleFullscreen: e, isFullscreen: n }) => [E(t.$slots, "optionFullscreen", x(b({
1133
- toggleFullscreen: e,
1134
- isFullscreen: n
1135
- })), void 0, !0)]),
1136
- key: "7"
1137
- } : void 0,
1138
- t.$slots.optionAnnotator ? {
1139
- name: "optionAnnotator",
1140
- fn: k(({ toggleAnnotator: e, isAnnotator: n }) => [E(t.$slots, "optionAnnotator", x(b({
1141
- toggleAnnotator: e,
1142
- isAnnotator: n
1143
- })), void 0, !0)]),
1144
- key: "8"
1145
- } : void 0,
1146
- t.$slots.optionAltCopy ? {
1147
- name: "optionAltCopy",
1148
- fn: k(({ altCopy: e }) => [E(t.$slots, "optionAltCopy", x(b({ altCopy: e })), void 0, !0)]),
1149
- key: "9"
1150
- } : void 0,
1151
- t.$slots["custom-menu-before"] ? {
1152
- name: "custom-menu-before",
1153
- fn: k(() => [E(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1154
- key: "10"
1155
- } : void 0,
1156
- t.$slots["custom-menu-after"] ? {
1157
- name: "custom-menu-after",
1158
- fn: k(() => [E(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1159
- key: "11"
1160
- } : void 0
1161
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : _("", !0),
1162
- y("div", { class: Me({
1163
- "vue-ui-heatmap-chart-wrapper": !0,
1164
- "vue-ui-heatmap-chart-wrapper-legend-right": P.value.style.legend.show
1165
- }) }, [
1166
- (C(), v("svg", {
1167
- ref_key: "svgRef",
1168
- ref: z,
1169
- xmlns: O(te),
1170
- "aria-describedby": `chart-instructions-${It.value}`,
1171
- class: Me({
1172
- "vue-data-ui-fullscreen--on": $n.value,
1173
- "vue-data-ui-fulscreen--off": !$n.value
1174
- }),
1175
- viewBox: `0 0 ${U.value.width} ${U.value.height}`,
1176
- width: "100%",
1177
- style: S(`overflow: visible; background:transparent;color:${P.value.style.color}`),
1178
- "aria-live": "polite",
1179
- role: "img",
1180
- preserveAspectRatio: "xMidYMid",
1181
- tabindex: "0",
1182
- onFocus: Sr,
1183
- onBlur: Cr,
1184
- onKeydown: wr
1185
- }, [
1186
- Oe(O(kt)),
1187
- t.$slots["chart-background"] ? (C(), v("foreignObject", {
1188
- key: 0,
1189
- x: K.value.left,
1190
- y: K.value.top,
1191
- width: K.value.width,
1192
- height: K.value.height,
1193
- style: { pointerEvents: "none" }
1194
- }, [E(t.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : _("", !0),
1195
- F.value.columnTotal.color.show ? (C(), v("g", {
1196
- key: 1,
1197
- ref_key: "xAxisSumRects",
1198
- ref: $t
1199
- }, [(C(!0), v(h, null, T(Z.value.xTotals, (e, t) => (C(), v("rect", {
1200
- x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
1201
- y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
1202
- height: K.value.sumCellXHeight,
1203
- width: K.value.cellSize.width - G.value,
1204
- fill: F.value.colors.underlayer,
1205
- stroke: P.value.style.backgroundColor,
1206
- "stroke-width": G.value
1207
- }, null, 8, $e))), 256)), (C(!0), v(h, null, T(Z.value.xTotals, (e, t) => (C(), v("rect", {
1208
- x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
1209
- y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
1210
- height: K.value.sumCellXHeight,
1211
- width: K.value.cellSize.width - G.value,
1212
- fill: e.color,
1213
- stroke: P.value.style.backgroundColor,
1214
- "stroke-width": G.value
1215
- }, null, 8, et))), 256))], 512)) : _("", !0),
1216
- y("g", {
1217
- ref_key: "datapoints",
1218
- ref: Ut
1219
- }, [(C(!0), v(h, null, T(Q.value, (e, t) => (C(), v(h, null, [(C(!0), v(h, null, T(e.temperatures, (e, n) => (C(), v("g", null, [
1220
- y("rect", {
1221
- x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
1222
- y: K.value.top + K.value.cellSize.height * t + G.value / 2,
1223
- width: K.value.cellSize.width - G.value,
1224
- height: K.value.cellSize.height - G.value,
1225
- fill: F.value.colors.underlayer,
1226
- stroke: P.value.style.backgroundColor,
1227
- "stroke-width": G.value
1228
- }, null, 8, tt),
1229
- y("rect", {
1230
- "data-a11y-cell-id": e.id,
1231
- x: K.value.left + K.value.cellSize.width * n + G.value / 2 + K.value.sumCellXHeight,
1232
- y: K.value.top + K.value.cellSize.height * t + G.value / 2,
1233
- width: K.value.cellSize.width - G.value,
1234
- height: K.value.cellSize.height - G.value,
1235
- fill: e.color,
1236
- stroke: P.value.style.backgroundColor,
1237
- "stroke-width": G.value,
1238
- "aria-label": `${e.yAxisName}${e.xAxisName ? ` - ${e.xAxisName}` : ""}: ${isNaN(e.value) ? "-" : e.value}`,
1239
- onMouseover: (r) => Jn(e, t, K.value.left + K.value.cellSize.width * n, K.value.top + K.value.cellSize.height * t, "pointer", xr(t, n)),
1240
- onMouseout: () => Yn({
1241
- datapoint: e,
1242
- seriesIndex: t
1243
- }),
1244
- onClick: () => ar(e, t)
1245
- }, null, 40, nt),
1246
- F.value.value.show ? Ue((C(), v("text", {
1247
- key: 0,
1248
- "text-anchor": "middle",
1249
- "font-size": F.value.value.fontSize,
1250
- "font-weight": F.value.value.bold ? "bold" : "normal",
1251
- fill: O(m)(e.color),
1252
- x: K.value.left + K.value.cellSize.width * n + K.value.cellSize.width / 2 + K.value.sumCellXHeight,
1253
- y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + F.value.value.fontSize / 3,
1254
- style: {
1255
- pointerEvents: "none",
1256
- userSelect: "none"
1257
- }
1258
- }, [De(D(O(d)(F.value.value.formatter, e.value, O(o)({
1259
- p: I.value.prefix,
1260
- v: e.value,
1261
- s: I.value.suffix,
1262
- r: F.value.value.roundingValue
1263
- }), { datapoint: e })), 1)], 8, rt)), [[O(Ke), {
1264
- cellWidth: K.value.cellSize.width - G.value,
1265
- cellHeight: K.value.cellSize.height - G.value,
1266
- maxFontSize: F.value.value.fontSize,
1267
- minFontSize: 10,
1268
- index: t * H.value + n,
1269
- reportHide: Wn,
1270
- reportRotation: Vn,
1271
- hideAll: Un.value,
1272
- rotateAll: Bn.value
1273
- }]]) : _("", !0)
1274
- ]))), 256))], 64))), 256))], 512),
1275
- F.value.rowTotal.color.show ? (C(), v("g", {
1276
- key: 2,
1277
- ref_key: "yAxisSumRects",
1278
- ref: Xt
1279
- }, [(C(!0), v(h, null, T(Q.value, (e, t) => (C(), v(h, null, [y("rect", {
1280
- x: K.value.left,
1281
- y: K.value.top + K.value.cellSize.height * t,
1282
- width: K.value.sumCellXHeight,
1283
- height: K.value.cellSize.height - G.value,
1284
- fill: F.value.colors.underlayer,
1285
- stroke: P.value.style.backgroundColor,
1286
- "stroke-width": G.value
1287
- }, null, 8, it), y("rect", {
1288
- x: K.value.left,
1289
- y: K.value.top + K.value.cellSize.height * t + G.value / 2,
1290
- width: K.value.sumCellXHeight,
1291
- height: K.value.cellSize.height - G.value,
1292
- fill: Z.value.yTotals[t].color,
1293
- stroke: P.value.style.backgroundColor,
1294
- "stroke-width": G.value
1295
- }, null, 8, at)], 64))), 256))], 512)) : _("", !0),
1296
- I.value.yAxis.show ? (C(), v("g", {
1297
- key: 3,
1298
- ref_key: "yAxisLabels",
1299
- ref: Yt
1300
- }, [(C(!0), v(h, null, T(Q.value, (e, t) => (C(), v(h, null, [y("text", {
1301
- class: "vue-ui-heatmap-row-name",
1302
- "font-size": I.value.yAxis.fontSize,
1303
- fill: I.value.yAxis.color,
1304
- x: W.value,
1305
- y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.yAxis.fontSize / 3 + I.value.yAxis.offsetY - (F.value.rowTotal.value.show ? I.value.yAxis.fontSize / 1.5 : 0),
1306
- "text-anchor": "end",
1307
- "font-weight": I.value.yAxis.bold ? "bold" : "normal"
1308
- }, D(Z.value.yLabels[t]), 9, ot), F.value.rowTotal.value.show ? (C(), v("text", {
1309
- key: 0,
1310
- class: "vue-ui-heatmap-row-total",
1311
- "font-size": I.value.yAxis.fontSize,
1312
- fill: I.value.yAxis.color,
1313
- x: W.value,
1314
- y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.yAxis.fontSize + I.value.yAxis.offsetY,
1315
- "text-anchor": "end",
1316
- "font-weight": I.value.yAxis.bold ? "bold" : "normal"
1317
- }, D(Xn(t)), 9, st)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
1318
- I.value.xAxis.show ? (C(), v("g", {
1319
- key: 4,
1320
- ref_key: "xAxisLabels",
1321
- ref: Zt
1322
- }, [(C(!0), v(h, null, T(Z.value.xLabels, (e, t) => (C(), v(h, null, [!I.value.xAxis.showOnlyAtModulo || I.value.xAxis.showOnlyAtModulo && t % I.value.xAxis.showOnlyAtModulo === 0 ? (C(), v("text", {
1323
- key: 0,
1324
- class: "vue-ui-heatmap-col-name",
1325
- "text-anchor": I.value.xAxis.rotation === 0 ? "middle" : I.value.xAxis.rotation < 0 ? "start" : "end",
1326
- "font-size": I.value.xAxis.fontSize,
1327
- fill: I.value.xAxis.color,
1328
- "font-weight": I.value.xAxis.bold ? "bold" : "normal",
1329
- transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Z.value.xLabels.length * t + I.value.xAxis.offsetX + K.value.sumCellXHeight}, ${K.value.topLabelsHeight}), rotate(${I.value.xAxis.rotation})`
1330
- }, D(e), 9, ct)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
1331
- F.value.columnTotal.value.show ? (C(), v("g", {
1332
- key: 5,
1333
- ref_key: "xAxisSums",
1334
- ref: Qt
1335
- }, [(C(!0), v(h, null, T(Z.value.xLabels, (e, t) => (C(), v("text", {
1336
- class: "vue-ui-heatmap-col-total",
1337
- "text-anchor": F.value.columnTotal.value.rotation === 0 ? "middle" : F.value.columnTotal.value.rotation < 0 ? "end" : "start",
1338
- "font-size": I.value.xAxis.fontSize,
1339
- fill: I.value.xAxis.color,
1340
- "font-weight": I.value.xAxis.bold ? "bold" : "normal",
1341
- transform: `translate(${K.value.left + K.value.cellSize.width / 2 + K.value.width / Z.value.xLabels.length * t + I.value.xAxis.offsetX + F.value.columnTotal.value.offsetX + K.value.sumCellXHeight}, ${K.value.bottom + I.value.xAxis.fontSize / 2}), rotate(${F.value.columnTotal.value.rotation})`
1342
- }, D(Zn(t)), 9, lt))), 256))], 512)) : _("", !0),
1343
- M.value ? (C(), v("g", ut, [y("rect", {
1344
- style: { "pointer-events": "none" },
1345
- x: M.value.x - F.value.selected.border / 2 + G.value + K.value.sumCellXHeight,
1346
- y: M.value.y - F.value.selected.border / 2 + G.value,
1347
- width: K.value.cellSize.width - G.value + F.value.selected.border - G.value,
1348
- height: K.value.cellSize.height - G.value + F.value.selected.border - G.value,
1349
- fill: "transparent",
1350
- stroke: F.value.selected.color,
1351
- "stroke-width": F.value.selected.border,
1352
- rx: 1
1353
- }, null, 8, dt)])) : _("", !0),
1354
- L.value.crosshairs.show && M.value ? (C(), v("g", ft, [y("line", {
1355
- x1: K.value.left + K.value.sumCellXHeight,
1356
- x2: M.value.x + K.value.sumCellXHeight,
1357
- y1: M.value.y + (K.value.cellSize.height - G.value) / 2,
1358
- y2: M.value.y + (K.value.cellSize.height - G.value) / 2,
1359
- stroke: L.value.crosshairs.stroke,
1360
- "stroke-width": L.value.crosshairs.strokeWidth,
1361
- "stroke-dasharray": L.value.crosshairs.strokeDasharray,
1362
- "stroke-linecap": "round"
1363
- }, null, 8, pt), y("line", {
1364
- x1: M.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
1365
- x2: M.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
1366
- y1: M.value.y,
1367
- y2: K.value.top,
1368
- stroke: L.value.crosshairs.stroke,
1369
- "stroke-width": L.value.crosshairs.strokeWidth,
1370
- "stroke-dasharray": L.value.crosshairs.strokeDasharray,
1371
- "stroke-linecap": "round"
1372
- }, null, 8, mt)])) : _("", !0),
1373
- E(t.$slots, "svg", { svg: {
1374
- ...U.value,
1375
- drawingArea: K.value,
1376
- isPrintingImg: O(yn) || O(bn) || O(hr),
1377
- isPrintingSvg: O(gr)
1378
- } }, void 0, !0)
1379
- ], 46, Ze)),
1380
- P.value.style.legend.show ? (C(), v("div", {
1381
- key: 0,
1382
- ref_key: "legendRight",
1383
- ref: Jt,
1384
- class: "vue-ui-heatmap-legend-right",
1385
- style: S({ "--legend-width": P.value.style.legend.width + "px" })
1386
- }, [
1387
- O(un) ? _("", !0) : (C(), v("div", {
1388
- key: 0,
1389
- class: "vue-ui-heatmap-legend-label-max",
1390
- style: S({
1391
- fontSize: P.value.style.legend.fontSize + "px",
1392
- color: P.value.style.legend.color
1393
- })
1394
- }, D(O(d)(F.value.value.formatter, O(l)(q.value), O(o)({
1395
- p: I.value.prefix,
1396
- v: O(l)(q.value),
1397
- s: I.value.suffix,
1398
- r: P.value.style.legend.roundingValue
1399
- }))), 5)),
1400
- y("div", ht, [y("div", {
1401
- class: "vue-ui-heatmap-gauge",
1402
- style: S({ background: `linear-gradient(to bottom, ${F.value.colors.hot}, ${F.value.colors.cold})` })
1403
- }, [Ue(y("div", {
1404
- class: "vue-ui-heatmap-gauge-indicator",
1405
- "data-value": O(d)(F.value.value.formatter, O(l)($.value), O(o)({
1406
- p: I.value.prefix,
1407
- v: O(l)($.value),
1408
- s: I.value.suffix,
1409
- r: P.value.style.legend.roundingValue
1410
- })),
1411
- style: S({
1412
- position: "absolute",
1413
- width: "100%",
1414
- height: "2px",
1415
- background: [void 0, null].includes($.value) ? "transparent" : O(m)(Gn.value.datapoint.color),
1416
- top: `${Ln($.value)}%`,
1417
- transition: "all 0.2s ease-in-out",
1418
- "--background-color": P.value.style.backgroundColor,
1419
- "--gauge-arrow-color": O(m)(P.value.style.backgroundColor),
1420
- "--gauge-arrow-text-color": O(m)(P.value.style.backgroundColor),
1421
- "--gauge-arrow-value": $.value,
1422
- "--gauge-arrow-font-size": P.value.style.legend.fontSize + "px"
1423
- })
1424
- }, [y("div", _t, D(O(d)(F.value.value.formatter, O(l)($.value), O(o)({
1425
- p: I.value.prefix,
1426
- v: O(l)($.value),
1427
- s: I.value.suffix,
1428
- r: P.value.style.legend.roundingValue
1429
- }))), 1)], 12, gt), [[Be, ![void 0, null].includes($.value)]])], 4)]),
1430
- O(un) ? _("", !0) : (C(), v("div", {
1431
- key: 1,
1432
- class: "vue-ui-heatmap-legend-label-min",
1433
- style: S({
1434
- fontSize: P.value.style.legend.fontSize + "px",
1435
- color: P.value.style.legend.color
1436
- })
1437
- }, D(O(d)(F.value.value.formatter, O(l)(J.value), O(o)({
1438
- p: I.value.prefix,
1439
- v: O(l)(J.value),
1440
- s: I.value.suffix,
1441
- r: P.value.style.legend.roundingValue
1442
- }))), 5))
1443
- ], 4)) : _("", !0),
1444
- t.$slots.hint ? (C(), v("div", vt, [E(t.$slots, "hint", x(b({
1445
- hint: P.value.a11y.translations.keyboardNavigation,
1446
- isVisible: on.value
1447
- })), void 0, !0)])) : _("", !0)
1448
- ], 2),
1449
- t.$slots.watermark ? (C(), v("div", yt, [E(t.$slots, "watermark", x(b({ isPrinting: O(yn) || O(bn) || O(hr) || O(gr) })), void 0, !0)])) : _("", !0),
1450
- t.$slots.source ? (C(), v("div", {
1451
- key: 6,
1452
- ref_key: "source",
1453
- ref: en,
1454
- dir: "auto"
1455
- }, [E(t.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
1456
- Oe(O(Je), {
1457
- teleportTo: P.value.style.tooltip.teleportTo,
1458
- show: B.value.showTooltip && Lt.value,
1459
- backgroundColor: P.value.style.tooltip.backgroundColor,
1460
- color: P.value.style.tooltip.color,
1461
- borderRadius: P.value.style.tooltip.borderRadius,
1462
- borderColor: P.value.style.tooltip.borderColor,
1463
- borderWidth: P.value.style.tooltip.borderWidth,
1464
- fontSize: P.value.style.tooltip.fontSize,
1465
- backgroundOpacity: P.value.style.tooltip.backgroundOpacity,
1466
- position: P.value.style.tooltip.position,
1467
- offsetX: P.value.style.tooltip.offsetX,
1468
- offsetY: P.value.style.tooltip.offsetY,
1469
- parent: j.value,
1470
- content: Rt.value,
1471
- isFullscreen: $n.value,
1472
- isCustom: P.value.style.tooltip.customFormat && typeof P.value.style.tooltip.customFormat == "function",
1473
- smooth: P.value.style.tooltip.smooth,
1474
- backdropFilter: P.value.style.tooltip.backdropFilter,
1475
- smoothForce: P.value.style.tooltip.smoothForce,
1476
- smoothSnapThreshold: P.value.style.tooltip.smoothSnapThreshold,
1477
- isA11yMode: an.value === "keyboard",
1478
- a11yPosition: rn.value
1479
- }, {
1480
- "tooltip-before": k(() => [E(t.$slots, "tooltip-before", x(b({ ...Gn.value })), void 0, !0)]),
1481
- tooltip: k(() => [E(t.$slots, "tooltip", x(b({ ...Gn.value })), void 0, !0)]),
1482
- "tooltip-after": k(() => [E(t.$slots, "tooltip-after", x(b({ ...Gn.value })), void 0, !0)]),
1483
- _: 3
1484
- }, 8, [
1485
- "teleportTo",
1486
- "show",
1487
- "backgroundColor",
1488
- "color",
1489
- "borderRadius",
1490
- "borderColor",
1491
- "borderWidth",
1492
- "fontSize",
1493
- "backgroundOpacity",
1494
- "position",
1495
- "offsetX",
1496
- "offsetY",
1497
- "parent",
1498
- "content",
1499
- "isFullscreen",
1500
- "isCustom",
1501
- "smooth",
1502
- "backdropFilter",
1503
- "smoothForce",
1504
- "smoothSnapThreshold",
1505
- "isA11yMode",
1506
- "a11yPosition"
1507
- ]),
1508
- Ft.value && P.value.userOptions.buttons.table ? (C(), Te(Ie(ur.value.component), Ae({ key: 7 }, ur.value.props, {
1509
- ref_key: "tableUnit",
1510
- ref: Wt,
1511
- onClose: fr
1512
- }), Ee({
1513
- content: k(() => [y("div", {
1514
- ref_key: "tableContainer",
1515
- ref: Vt,
1516
- class: "vue-ui-heatmap-table atom-data-table",
1517
- style: S(`${P.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
1518
- }, [y("div", {
1519
- style: S(`width:100%;overflow-x:auto;position:relative;${P.value.table.useDialog ? "" : "padding-top:36px"};`),
1520
- class: Me({ "vue-ui-responsive": O(dr) })
1521
- }, [P.value.table.useDialog ? _("", !0) : (C(), v("div", {
1522
- key: 0,
1523
- role: "button",
1524
- tabindex: "0",
1525
- style: S(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${P.value.table.th.backgroundColor};`),
1526
- onClick: fr,
1527
- onKeypress: We(fr, ["enter"])
1528
- }, [Oe(O(Et), {
1529
- name: "close",
1530
- stroke: P.value.table.th.color,
1531
- "stroke-width": 2
1532
- }, null, 8, ["stroke"])], 36)), y("table", bt, [
1533
- P.value.table.useDialog ? _("", !0) : (C(), v("caption", {
1534
- key: 0,
1535
- style: S(`backgroundColor:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`)
1536
- }, [De(D(P.value.style.title.text) + " ", 1), P.value.style.title.subtitle.text ? (C(), v("span", xt, D(P.value.style.title.subtitle.text), 1)) : _("", !0)], 4)),
1537
- y("thead", null, [y("tr", {
1538
- role: "row",
1539
- style: S(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color}`)
1540
- }, [y("th", { style: S(`outline:${P.value.table.th.outline};padding-right:6px`) }, null, 4), (C(!0), v(h, null, T(e.dataset, (e, t) => (C(), v("th", {
1541
- align: "right",
1542
- style: S(`outline:${P.value.table.th.outline};padding-right:6px`)
1543
- }, D(e.name), 5))), 256))], 4)]),
1544
- y("tbody", null, [(C(!0), v(h, null, T(Z.value.xLabels, (t, n) => (C(), v("tr", {
1545
- role: "row",
1546
- class: Me({
1547
- "vue-ui-data-table__tbody__row": !0,
1548
- "vue-ui-data-table__tbody__row-even": n % 2 == 0,
1549
- "vue-ui-data-table__tbody__row-odd": n % 2 != 0
1550
- }),
1551
- style: S(`background:${P.value.table.td.backgroundColor};color:${P.value.table.td.color}`)
1552
- }, [y("td", {
1553
- "data-cell": P.value.table.colNames.xAxis,
1554
- class: "vue-ui-data-table__tbody__td",
1555
- style: S(`outline:${P.value.table.td.outline}`)
1556
- }, [y("div", Ct, D(t), 1)], 12, St), (C(!0), v(h, null, T(e.dataset, (t, r) => (C(), v("td", {
1557
- class: "vue-ui-data-table__tbody__td",
1558
- "data-cell": e.dataset[r].name,
1559
- style: S(`outline:${P.value.table.td.outline}`)
1560
- }, [y("div", Tt, D(isNaN(t.values[n]) ? "-" : O(o)({
1561
- p: I.value.prefix,
1562
- v: t.values[n],
1563
- s: I.value.suffix,
1564
- r: P.value.table.td.roundingValue
1565
- })), 1)], 12, wt))), 256))], 6))), 256))])
1566
- ])], 6)], 4)]),
1567
- _: 2
1568
- }, [P.value.table.useDialog ? {
1569
- name: "title",
1570
- fn: k(() => [De(D(ur.value.title), 1)]),
1571
- key: "0"
1572
- } : void 0, P.value.table.useDialog ? {
1573
- name: "actions",
1574
- fn: k(() => [y("button", {
1575
- tabindex: "0",
1576
- class: "vue-ui-user-options-button",
1577
- onClick: n[0] ||= (e) => Qn(P.value.userOptions.callbacks.csv),
1578
- style: S({ cursor: sn.value ? "pointer" : "default" })
1579
- }, [Oe(O(Et), {
1580
- name: "fileCsv",
1581
- stroke: ur.value.props.color
1582
- }, null, 8, ["stroke"])], 4)]),
1583
- key: "1"
1584
- } : void 0]), 1040)) : _("", !0),
1585
- E(t.$slots, "skeleton", {}, () => [O(un) ? (C(), Te(le, { key: 0 })) : _("", !0)], !0)
1586
- ], 46, Ye));
1587
- }
1588
- }, [["__scopeId", "data-v-cffecfe2"]]);
1589
- //#endregion
1590
- export { Je as n, Et as t };