vue-data-ui 3.25.11 → 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 (204) 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-CEvZNFTz.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-B10eQN5L.js → package-CUB9qFqi.js} +1 -1
  96. package/dist/{pdf-BSOs_GZz.js → pdf-zGbDDpCi.js} +1 -1
  97. package/dist/{render-common-CZ6-MONw.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 +3 -0
  103. package/dist/{useConfig-D32D002m.js → useConfig-Be2DFBsb.js} +1 -0
  104. package/dist/{useNestedProp-Chvyfpl-.js → useNestedProp-Bux0f4iY.js} +1 -1
  105. package/dist/{useObjectBindings-Cd_WuYIn.js → useObjectBindings-DUdzTGvh.js} +1 -1
  106. package/dist/{usePrinter-hohanNCX.js → usePrinter-BBBooAGP.js} +2 -2
  107. package/dist/utils.js +13 -13
  108. package/dist/{vue-data-ui-zJ1rNxIN.js → vue-data-ui-COEVZKW5.js} +70 -70
  109. package/dist/vue-data-ui.js +75 -75
  110. package/dist/{vue-ui-3d-bar-CKTAkCAN.js → vue-ui-3d-bar-DFw5XDWb.js} +536 -536
  111. package/dist/{vue-ui-accordion-DmkL8A59.js → vue-ui-accordion-BZCjuA3V.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-DRUCkRz8.js +1305 -0
  113. package/dist/{vue-ui-annotator-BLYRy--7.js → vue-ui-annotator-BfKA4YVr.js} +60 -60
  114. package/dist/{vue-ui-bullet-Ck398xn8.js → vue-ui-bullet-B0IfmAiX.js} +84 -84
  115. package/dist/{vue-ui-bump-DyA47yse.js → vue-ui-bump-C1kUAd9U.js} +105 -105
  116. package/dist/{vue-ui-candlestick-DCavjk1j.js → vue-ui-candlestick-KA4AueJw.js} +98 -98
  117. package/dist/vue-ui-carousel-table-BxUd6pz5.js +467 -0
  118. package/dist/vue-ui-chestnut-DHSV3tgH.js +2016 -0
  119. package/dist/{vue-ui-chord-GgA7QFUH.js → vue-ui-chord-DwosQDGy.js} +63 -63
  120. package/dist/{vue-ui-circle-pack-BUXTVdy3.js → vue-ui-circle-pack-OoLvvkpK.js} +50 -50
  121. package/dist/{vue-ui-cursor-CEejESe_.js → vue-ui-cursor-DIDq-I8_.js} +61 -61
  122. package/dist/{vue-ui-dag-C1c6scxC.js → vue-ui-dag-CEe-6BAo.js} +44 -44
  123. package/dist/{vue-ui-dashboard-BZBJM7dN.js → vue-ui-dashboard-Dyx0Ri4u.js} +70 -70
  124. package/dist/{vue-ui-digits-CsougDlU.js → vue-ui-digits-aocn4lMx.js} +4 -4
  125. package/dist/{vue-ui-donut-Be9jKelz.js → vue-ui-donut-7uSOM7lM.js} +203 -203
  126. package/dist/{vue-ui-donut-lBgSYKgO.js → vue-ui-donut-DBwkC_24.js} +551 -551
  127. package/dist/vue-ui-donut-evolution-BqQ7Tlsc.js +1552 -0
  128. package/dist/{vue-ui-dumbbell-CwmA5x9G.js → vue-ui-dumbbell-MGfC3D58.js} +87 -87
  129. package/dist/{vue-ui-flow-CRhh8SSN.js → vue-ui-flow-593TeQ2W.js} +99 -99
  130. package/dist/{vue-ui-funnel-DH1hW8Gw.js → vue-ui-funnel-DkJUBGun.js} +40 -40
  131. package/dist/vue-ui-galaxy-BrVH1I3l.js +1097 -0
  132. package/dist/{vue-ui-gauge-CV4-Rn7K.js → vue-ui-gauge-DC4S5TsV.js} +190 -190
  133. package/dist/{vue-ui-geo-BocLrguL.js → vue-ui-geo-Yq0FgILc.js} +12 -12
  134. package/dist/{vue-ui-gizmo-6wKlI5PC.js → vue-ui-gizmo-D9gwOdZE.js} +54 -54
  135. package/dist/vue-ui-heatmap-CIJRLiRS.js +1606 -0
  136. package/dist/{vue-ui-hill-CeIZZFf5.js → vue-ui-hill-B8mE9MIi.js} +21 -21
  137. package/dist/vue-ui-history-plot-Dj4qkhNI.js +1710 -0
  138. package/dist/{vue-ui-horizontal-bar-D2aw-8tx.js → vue-ui-horizontal-bar-njm9Qfcd.js} +85 -85
  139. package/dist/{vue-ui-kpi-BQ967gzv.js → vue-ui-kpi-CFk0QESG.js} +12 -12
  140. package/dist/{vue-ui-label-Cs4ZlAqr.js → vue-ui-label-7gnBMFu5.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-wGeACd-Y.js → vue-ui-mini-loader-CUVEBqJw.js} +3 -3
  142. package/dist/vue-ui-molecule-GqArgNXc.js +941 -0
  143. package/dist/vue-ui-mood-radar-Du71PAqx.js +1111 -0
  144. package/dist/{vue-ui-nested-donuts-DT2zkLx2.js → vue-ui-nested-donuts-BRGYUoVS.js} +481 -481
  145. package/dist/vue-ui-onion-C4LsJp_7.js +1247 -0
  146. package/dist/vue-ui-parallel-coordinate-plot-DumwZpjI.js +1444 -0
  147. package/dist/vue-ui-quadrant-BFEihaNk.js +1979 -0
  148. package/dist/{vue-ui-quick-chart-CkPu6GMh.js → vue-ui-quick-chart-COWxCDXU.js} +169 -169
  149. package/dist/vue-ui-radar-BZMDCj34.js +1386 -0
  150. package/dist/vue-ui-rating-D0tMtjhc.js +359 -0
  151. package/dist/vue-ui-relation-circle-DSNuFlbr.js +905 -0
  152. package/dist/vue-ui-ridgeline-DHHjDn73.js +1630 -0
  153. package/dist/{vue-ui-rings-CBtHZ5Pp.js → vue-ui-rings-BMKxADUw.js} +78 -78
  154. package/dist/{vue-ui-scatter-DzePsQEe.js → vue-ui-scatter-BKJUWiYg.js} +136 -136
  155. package/dist/{vue-ui-skeleton-C347nFnE.js → vue-ui-skeleton-_EBFqU7v.js} +510 -510
  156. package/dist/{vue-ui-smiley-BIjAIpJ9.js → vue-ui-smiley-DsfTcCOQ.js} +6 -6
  157. package/dist/{vue-ui-spark-trend-Di_7Da43.js → vue-ui-spark-trend-Dj1tZM1l.js} +96 -96
  158. package/dist/{vue-ui-sparkbar-CbJ-fKc6.js → vue-ui-sparkbar-B7ogNgvT.js} +113 -113
  159. package/dist/vue-ui-sparkgauge-BFGXwszU.js +268 -0
  160. package/dist/vue-ui-sparkhistogram-c-DSMEiv.js +589 -0
  161. package/dist/{vue-ui-sparkline-BF0Fdo6v.js → vue-ui-sparkline-Bm59iQiE.js} +198 -198
  162. package/dist/{vue-ui-sparkstackbar-IM_l98X-.js → vue-ui-sparkstackbar-DIMZ8Wxa.js} +183 -183
  163. package/dist/vue-ui-stackbar-C53nXwth.js +2369 -0
  164. package/dist/vue-ui-stackline-D4ehty6i.js +2483 -0
  165. package/dist/{vue-ui-strip-plot-CVV0t6mb.js → vue-ui-strip-plot-CNnl1U1H.js} +253 -253
  166. package/dist/{vue-ui-table-nAGCIZKg.js → vue-ui-table-Bbw0YVee.js} +117 -117
  167. package/dist/{vue-ui-table-heatmap-D5F5bLx5.js → vue-ui-table-heatmap-B1uYpEhA.js} +95 -95
  168. package/dist/vue-ui-table-sparkline-D98mkhX0.js +738 -0
  169. package/dist/{vue-ui-thermometer-Ccr2ZnzI.js → vue-ui-thermometer-CDYrYD7E.js} +23 -23
  170. package/dist/{vue-ui-timer-DkW-P6EG.js → vue-ui-timer-CW3wa1tF.js} +13 -13
  171. package/dist/{vue-ui-tiremarks-Bf2anKLr.js → vue-ui-tiremarks-CayzbbTu.js} +30 -30
  172. package/dist/{vue-ui-treemap-Wy61KlkN.js → vue-ui-treemap-BuOGDfHZ.js} +77 -77
  173. package/dist/vue-ui-waffle-D47Z_prI.js +1633 -0
  174. package/dist/{vue-ui-wheel-DGhu_B8n.js → vue-ui-wheel-CNF5e3TM.js} +185 -185
  175. package/dist/{vue-ui-word-cloud-CdRMst8U.js → vue-ui-word-cloud-y46KDG7e.js} +46 -46
  176. package/dist/{vue-ui-world-Bc4hMzzB.js → vue-ui-world-DKW2yCXn.js} +133 -133
  177. package/dist/vue-ui-xy-BgmEGWgv.js +5367 -0
  178. package/dist/{vue-ui-xy-CbgQs7yW.js → vue-ui-xy-G3lMLlIL.js} +169 -169
  179. package/dist/{vue-ui-xy-canvas-R2xbgDOy.js → vue-ui-xy-canvas-CMAT-hT1.js} +435 -435
  180. package/package.json +1 -1
  181. package/dist/exposedLib-CG3aXJ-v.js +0 -28
  182. package/dist/vue-ui-age-pyramid-SpPactMh.js +0 -1305
  183. package/dist/vue-ui-carousel-table-DCnVD0BJ.js +0 -467
  184. package/dist/vue-ui-chestnut-BDBdizBp.js +0 -2016
  185. package/dist/vue-ui-donut-evolution-vLMhwz4K.js +0 -1552
  186. package/dist/vue-ui-galaxy-CiqILfxR.js +0 -1097
  187. package/dist/vue-ui-heatmap-DGXXRsr4.js +0 -1606
  188. package/dist/vue-ui-history-plot-CporPpg9.js +0 -1710
  189. package/dist/vue-ui-molecule-CvDC9Ht5.js +0 -941
  190. package/dist/vue-ui-mood-radar-BK1va5-H.js +0 -1111
  191. package/dist/vue-ui-onion-DPMikBzZ.js +0 -1247
  192. package/dist/vue-ui-parallel-coordinate-plot-DMPxUL3p.js +0 -1444
  193. package/dist/vue-ui-quadrant-DFkIeJXo.js +0 -1979
  194. package/dist/vue-ui-radar-B3OOLJal.js +0 -1386
  195. package/dist/vue-ui-rating-Criq0ofQ.js +0 -359
  196. package/dist/vue-ui-relation-circle-I6e5UxgY.js +0 -905
  197. package/dist/vue-ui-ridgeline-FmmdCdy9.js +0 -1630
  198. package/dist/vue-ui-sparkgauge-Bb9-yFTb.js +0 -268
  199. package/dist/vue-ui-sparkhistogram-kbbbDVul.js +0 -589
  200. package/dist/vue-ui-stackbar-CaEXVeo5.js +0 -2369
  201. package/dist/vue-ui-stackline-MgvhcBfm.js +0 -2483
  202. package/dist/vue-ui-table-sparkline-Bf2hjBwq.js +0 -738
  203. package/dist/vue-ui-waffle-CkIFp-AN.js +0 -1633
  204. package/dist/vue-ui-xy-DybWfQrI.js +0 -5298
@@ -1,1606 +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) => ({ v22af540c: 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-CEvZNFTz.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(() => Q.value.flatMap((e, t) => e.temperatures.map((e, n) => {
593
- let r = K.value.left + K.value.cellSize.width * n, i = K.value.top + K.value.cellSize.height * t;
594
- return {
595
- datapoint: e,
596
- rowIndex: t,
597
- columnIndex: n,
598
- x: r + G.value / 2 + K.value.sumCellXHeight,
599
- y: i + G.value / 2,
600
- width: K.value.cellSize.width - G.value,
601
- height: K.value.cellSize.height - G.value,
602
- labelX: r + K.value.cellSize.width / 2 + K.value.sumCellXHeight,
603
- labelY: i + K.value.cellSize.height / 2 + F.value.value.fontSize / 3,
604
- selectionX: r,
605
- selectionY: i
606
- };
607
- }))), zn = g(() => R.value.length), Bn = Fe(Array(zn.value * H.value || 1).fill(!1)), Vn = g(() => Bn.some((e) => e));
608
- function Hn(e, t) {
609
- Bn[e] = t;
610
- }
611
- let Un = Fe(Array(zn.value * H.value || 1).fill(!1)), Wn = g(() => Un.some((e) => e));
612
- function Gn(e, t) {
613
- Un[e] = t;
614
- }
615
- let $ = w(null), Kn = w(null);
616
- function qn() {
617
- Lt.value = !1, zt.value = void 0, $.value = null, M.value = null, N.value = null, nn.value = null;
618
- }
619
- function Jn(e) {
620
- if (!z.value || !e) return;
621
- let t = z.value.querySelector(`[data-a11y-cell-id="${e}"]`);
622
- if (!t) return;
623
- let n = t.getBoundingClientRect();
624
- rn.value = {
625
- x: n.left + n.width / 2,
626
- y: n.top + n.height / 2
627
- };
628
- }
629
- function Yn(e, t, n, i, a = "pointer", s = null) {
630
- if (P.value.events.datapointEnter && P.value.events.datapointEnter({
631
- datapoint: e,
632
- seriesIndex: t
633
- }), !B.value.showTooltip) return;
634
- an.value = a, N.value = s, nn.value = e.id, M.value = {
635
- x: n,
636
- y: i
637
- };
638
- let { value: c, yAxisName: l, xAxisName: u, id: f } = e;
639
- zt.value = f, $.value = c, Kn.value = {
640
- datapoint: e,
641
- seriesIndex: t,
642
- series: Q.value,
643
- config: P.value
644
- }, Lt.value = !0;
645
- let p = "", m = P.value.style.tooltip.customFormat;
646
- r(m) && ee(() => m({
647
- datapoint: e,
648
- seriesIndex: t,
649
- series: Q.value,
650
- config: P.value
651
- })) ? Rt.value = m({
652
- datapoint: e,
653
- seriesIndex: t,
654
- series: Q.value,
655
- config: P.value
656
- }) : (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({
657
- p: I.value.prefix,
658
- v: c,
659
- s: I.value.suffix,
660
- r: P.value.style.tooltip.roundingValue
661
- }), {
662
- datapoint: e,
663
- seriesIndex: t
664
- })}</span></div>`, Rt.value = `<div style="font-size:${P.value.style.tooltip.fontSize}px">${p}</div>`), a === "keyboard" && je(() => {
665
- Jn(e.id);
666
- });
667
- }
668
- function Xn({ datapoint: e, seriesIndex: t }) {
669
- P.value.events.datapointLeave && P.value.events.datapointLeave({
670
- datapoint: e,
671
- seriesIndex: t
672
- }), (nn.value !== e.id || an.value !== "keyboard") && (Lt.value = !1, zt.value = void 0, $.value = null, M.value = null);
673
- }
674
- function Zn(e) {
675
- return d(F.value.value.formatter, Z.value.yTotals[e].total, o({
676
- p: I.value.prefix,
677
- v: Z.value.yTotals[e].total,
678
- s: I.value.suffix,
679
- r: F.value.value.roundingValue
680
- }), {
681
- datapoint: Z.value.yTotals[e],
682
- rowIndex: e
683
- });
684
- }
685
- function Qn(e) {
686
- return d(F.value.value.formatter, Z.value.xTotals[e].total, o({
687
- p: I.value.prefix,
688
- v: Z.value.xTotals[e].total,
689
- s: I.value.suffix,
690
- r: F.value.value.roundingValue
691
- }), {
692
- datapoint: Z.value.xTotals[e],
693
- colIndex: e
694
- });
695
- }
696
- g(() => ({
697
- head: R.value.map((e) => ({ name: e.name })),
698
- body: R.value.map((e) => e.values)
699
- }));
700
- function $n(e = null) {
701
- je(() => {
702
- let n = ["", ...R.value.map((e, t) => e.name)], r = [];
703
- for (let e = 0; e < Z.value.xLabels.length; e += 1) {
704
- let t = [Z.value.xLabels[e]];
705
- for (let n = 0; n < R.value.length; n += 1) t.push([R.value[n].values[e]]);
706
- r.push(t);
707
- }
708
- let a = [
709
- [P.value.style.title.text],
710
- [P.value.style.title.subtitle.text],
711
- [
712
- [""],
713
- [""],
714
- [""]
715
- ],
716
- n
717
- ].concat(r), o = i(a);
718
- e ? e(o) : t({
719
- csvContent: o,
720
- title: P.value.style.title.text || "vue-ui-heatmap"
721
- });
722
- });
723
- }
724
- let er = w(!1);
725
- function tr(e) {
726
- er.value = e, Bt.value += 1;
727
- }
728
- function nr() {
729
- B.value.showTable = !B.value.showTable;
730
- }
731
- function rr() {
732
- B.value.showTooltip = !B.value.showTooltip;
733
- }
734
- let ir = w(!1);
735
- function ar() {
736
- ir.value = !ir.value;
737
- }
738
- function or(e, t) {
739
- P.value.events.datapointClick && P.value.events.datapointClick({
740
- datapoint: e,
741
- seriesIndex: t
742
- }), Pt("selectDatapoint", e);
743
- }
744
- function sr() {
745
- return Q.value;
746
- }
747
- async function cr({ scale: e = 2 } = {}) {
748
- if (!j.value) return;
749
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
750
- domElement: j.value,
751
- base64: !0,
752
- img: !0,
753
- scale: e
754
- });
755
- return {
756
- imageUri: i,
757
- base64: a,
758
- title: P.value.style.title.text,
759
- width: t,
760
- height: n,
761
- aspectRatio: r
762
- };
763
- }
764
- let lr = g(() => ({
765
- start: 0,
766
- end: H.value
767
- })), ur = g(() => Z.value.xLabels);
768
- pe({
769
- timeLabelsEls: Zt,
770
- timeLabels: ur,
771
- slicer: lr,
772
- configRef: P,
773
- rotationPath: [
774
- "style",
775
- "layout",
776
- "dataLabels",
777
- "xAxis",
778
- "rotation"
779
- ],
780
- autoRotatePath: [
781
- "style",
782
- "layout",
783
- "dataLabels",
784
- "xAxis",
785
- "autoRotate",
786
- "enable"
787
- ],
788
- isAutoSize: !1,
789
- targetClass: ".vue-ui-heatmap-col-name",
790
- rotation: I.value.xAxis.autoRotate.angle,
791
- width: Dn,
792
- height: On
793
- }), pe({
794
- timeLabelsEls: Qt,
795
- timeLabels: ur,
796
- slicer: lr,
797
- configRef: P,
798
- rotationPath: [
799
- "style",
800
- "layout",
801
- "cells",
802
- "columnTotal",
803
- "value",
804
- "rotation"
805
- ],
806
- autoRotatePath: [
807
- "style",
808
- "layout",
809
- "cells",
810
- "columnTotal",
811
- "value",
812
- "autoRotate",
813
- "enable"
814
- ],
815
- isAutoSize: !1,
816
- targetClass: ".vue-ui-heatmap-col-total",
817
- rotation: F.value.columnTotal.value.autoRotate.angle,
818
- width: Dn,
819
- height: On
820
- });
821
- let dr = g(() => {
822
- let e = P.value.table.useDialog && !P.value.table.show, t = B.value.showTable;
823
- return {
824
- component: e ? At : ye,
825
- title: `${P.value.style.title.text}${P.value.style.title.subtitle.text ? `: ${P.value.style.title.subtitle.text}` : ""}`,
826
- props: e ? {
827
- backgroundColor: P.value.table.th.backgroundColor,
828
- color: P.value.table.th.color,
829
- headerColor: P.value.table.th.color,
830
- headerBg: P.value.table.th.backgroundColor,
831
- isFullscreen: er.value,
832
- fullscreenParent: j.value,
833
- forcedWidth: Math.min(800, window.innerWidth * .8),
834
- isCursorPointer: sn.value
835
- } : {
836
- hideDetails: !0,
837
- config: {
838
- open: t,
839
- maxHeight: 1e4,
840
- body: {
841
- backgroundColor: P.value.style.backgroundColor,
842
- color: P.value.style.color
843
- },
844
- head: {
845
- backgroundColor: P.value.style.backgroundColor,
846
- color: P.value.style.color
847
- }
848
- }
849
- }
850
- };
851
- });
852
- Ve(() => B.value.showTable, async (e) => {
853
- P.value.table.show || (e && P.value.table.useDialog && Wt.value ? (await je(), Wt.value.open()) : "close" in Wt.value && Wt.value.close());
854
- });
855
- let { isResponsive: fr } = Ce(Vt, wn);
856
- function pr() {
857
- B.value.showTable = !1, Gt.value && Gt.value.setTableIconState(!1);
858
- }
859
- let mr = g(() => P.value.style.backgroundColor), hr = g(() => P.value.style.title), { isCallbackImaging: gr, isCallbackSvg: _r, generateSvg: vr, onGenerateImage: yr } = fe({
860
- svg: z,
861
- title: hr,
862
- legend: null,
863
- legendItems: null,
864
- backgroundColor: mr,
865
- getSvgCallback: () => P.value.userOptions.callbacks.svg,
866
- generateImage: Sn
867
- });
868
- async function br() {
869
- if (Pt("copyAlt", {
870
- config: P.value,
871
- dataset: Q.value
872
- }), !P.value.userOptions.callbacks.altCopy) {
873
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
874
- return;
875
- }
876
- await Promise.resolve(P.value.userOptions.callbacks.altCopy({
877
- config: P.value,
878
- dataset: Q.value
879
- }));
880
- }
881
- function xr(e, t) {
882
- let n = Q.value[e];
883
- if (!n) return null;
884
- let r = n.temperatures[t];
885
- return r ? {
886
- cell: r,
887
- rowIndex: e,
888
- columnIndex: t
889
- } : null;
890
- }
891
- function Sr(e, t) {
892
- let n = 0;
893
- for (let t = 0; t < e; t += 1) n += Q.value[t]?.temperatures?.length || 0;
894
- return n + t;
895
- }
896
- function Cr() {
897
- N.value = null, nn.value = null, on.value = !0;
898
- }
899
- function wr() {
900
- qn(), on.value = !1;
901
- }
902
- function Tr(e) {
903
- if (!z.value || ir.value || document.activeElement !== z.value || !Or.value.length) return;
904
- 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";
905
- if (!t && !n && !r && !i && !a && !o) return;
906
- if (e.preventDefault(), e.stopPropagation(), o) {
907
- qn();
908
- return;
909
- }
910
- if (a) {
911
- if (N.value === null) return;
912
- let e = Or.value[N.value];
913
- if (!e) return;
914
- or(e.cell, e.rowIndex);
915
- return;
916
- }
917
- let s = N.value === null ? null : Or.value[N.value];
918
- if (!s) {
919
- let e = zt.value ? Or.value.findIndex((e) => e.cell.id === zt.value) : null;
920
- if (e !== null && e >= 0 && e < Or.value.length) {
921
- let a = Or.value[e];
922
- if (!a) return;
923
- let o = a.rowIndex, s = a.columnIndex;
924
- n ? s += 1 : t ? --s : i ? o += 1 : r && --o;
925
- let c = Dr.value.rowCount;
926
- if (c <= 0) return;
927
- o < 0 && (o = c - 1), o >= c && (o = 0);
928
- let l = Q.value[o];
929
- if (!l || !l.temperatures.length) return;
930
- let u = l.temperatures.length;
931
- s < 0 && (s = u - 1), s >= u && (s = 0);
932
- let d = xr(o, s);
933
- if (!d) return;
934
- let ee = Sr(o, s), f = K.value.left + K.value.cellSize.width * d.columnIndex, p = K.value.top + K.value.cellSize.height * d.rowIndex;
935
- Yn(d.cell, d.rowIndex, f, p, "keyboard", ee);
936
- return;
937
- }
938
- let a = Or.value[0];
939
- if (!a) return;
940
- let o = K.value.left + K.value.cellSize.width * a.columnIndex, s = K.value.top + K.value.cellSize.height * a.rowIndex;
941
- Yn(a.cell, a.rowIndex, o, s, "keyboard", 0);
942
- return;
943
- }
944
- let c = s.rowIndex, l = s.columnIndex;
945
- n ? l += 1 : t ? --l : i ? c += 1 : r && --c;
946
- let u = Dr.value.rowCount;
947
- if (u <= 0) return;
948
- c < 0 && (c = u - 1), c >= u && (c = 0);
949
- let d = Q.value[c];
950
- if (!d || !d.temperatures.length) return;
951
- let ee = d.temperatures.length;
952
- l < 0 && (l = ee - 1), l >= ee && (l = 0);
953
- let f = xr(c, l);
954
- if (!f) return;
955
- let p = Sr(c, l), m = K.value.left + K.value.cellSize.width * f.columnIndex, te = K.value.top + K.value.cellSize.height * f.rowIndex;
956
- Yn(f.cell, f.rowIndex, m, te, "keyboard", p);
957
- }
958
- let Er = g(() => ({
959
- headers: [P.value.table.colNames.xAxis, ...R.value.map((e) => e.name)],
960
- rows: Z.value.xLabels.map((e, t) => [e, ...R.value.map((e) => {
961
- let n = e.values?.[t];
962
- return isNaN(n) ? "-" : o({
963
- p: I.value.prefix,
964
- v: n,
965
- s: I.value.suffix,
966
- r: P.value.table.td.roundingValue
967
- });
968
- })])
969
- })), Dr = g(() => ({
970
- rowCount: Q.value.length,
971
- columnCount: Math.max(0, ...Q.value.map((e) => e.temperatures.length))
972
- })), Or = g(() => Q.value.flatMap((e, t) => e.temperatures.map((e, n) => ({
973
- cell: e,
974
- rowIndex: t,
975
- columnIndex: n
976
- }))));
977
- return ge({
978
- getData: sr,
979
- getImage: cr,
980
- generatePdf: xn,
981
- generateCsv: $n,
982
- generateImage: Sn,
983
- generateSvg: vr,
984
- toggleTable: nr,
985
- toggleTooltip: rr,
986
- toggleAnnotator: ar,
987
- toggleFullscreen: tr,
988
- copyAlt: br
989
- }), (t, n) => (C(), v("div", {
990
- ref_key: "heatmapChart",
991
- ref: j,
992
- class: Me(`vue-data-ui-component vue-ui-heatmap ${er.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
993
- style: S(`font-family:${P.value.style.fontFamily};width:100%;${P.value.responsive ? "height: 100%;" : ""} text-align:center;background:${P.value.style.backgroundColor}`),
994
- id: `heatmap__${It.value}`,
995
- onMouseenter: n[1] ||= () => hn(!0),
996
- onMouseleave: n[2] ||= () => {
997
- hn(!1), on.value || qn();
998
- }
999
- }, [
1000
- y("div", {
1001
- id: `chart-instructions-${It.value}`,
1002
- class: "sr-only"
1003
- }, [y("p", null, D(P.value.a11y.translations.keyboardNavigation), 1)], 8, Xe),
1004
- Er.value?.rows?.length ? (C(), Te(be, {
1005
- key: 0,
1006
- uid: It.value,
1007
- head: Er.value.headers,
1008
- body: Er.value.rows,
1009
- notice: P.value.a11y.translations.tableAvailable,
1010
- caption: P.value.a11y.translations.tableCaption
1011
- }, null, 8, [
1012
- "uid",
1013
- "head",
1014
- "body",
1015
- "notice",
1016
- "caption"
1017
- ])) : _("", !0),
1018
- P.value.userOptions.buttons.annotator ? (C(), Te(O(Dt), {
1019
- key: 1,
1020
- svgRef: O(z),
1021
- backgroundColor: P.value.style.backgroundColor,
1022
- color: P.value.style.color,
1023
- active: ir.value,
1024
- isCursorPointer: sn.value,
1025
- palette: P.value.userOptions.annotatorPalette,
1026
- onClose: ar
1027
- }, {
1028
- "annotator-action-close": k(() => [E(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1029
- "annotator-action-color": k(({ color: e }) => [E(t.$slots, "annotator-action-color", x(b({ color: e })), void 0, !0)]),
1030
- "annotator-action-draw": k(({ mode: e }) => [E(t.$slots, "annotator-action-draw", x(b({ mode: e })), void 0, !0)]),
1031
- "annotator-action-undo": k(({ disabled: e }) => [E(t.$slots, "annotator-action-undo", x(b({ disabled: e })), void 0, !0)]),
1032
- "annotator-action-redo": k(({ disabled: e }) => [E(t.$slots, "annotator-action-redo", x(b({ disabled: e })), void 0, !0)]),
1033
- "annotator-action-delete": k(({ disabled: e }) => [E(t.$slots, "annotator-action-delete", x(b({ disabled: e })), void 0, !0)]),
1034
- _: 3
1035
- }, 8, [
1036
- "svgRef",
1037
- "backgroundColor",
1038
- "color",
1039
- "active",
1040
- "isCursorPointer",
1041
- "palette"
1042
- ])) : _("", !0),
1043
- Cn.value ? (C(), v("div", {
1044
- key: 2,
1045
- ref_key: "noTitle",
1046
- ref: qt,
1047
- class: "vue-data-ui-no-title-space",
1048
- style: "height:36px; width: 100%;background:transparent"
1049
- }, null, 512)) : _("", !0),
1050
- P.value.style.title.text ? (C(), v("div", {
1051
- key: 3,
1052
- ref_key: "chartTitle",
1053
- ref: Kt,
1054
- style: "width:100%;background:transparent"
1055
- }, [(C(), Te(he, {
1056
- key: `title_${Ht.value}`,
1057
- config: {
1058
- title: {
1059
- cy: "heatmap-div-title",
1060
- ...P.value.style.title
1061
- },
1062
- subtitle: {
1063
- cy: "heatmap-div-subtitle",
1064
- ...P.value.style.title.subtitle
1065
- }
1066
- }
1067
- }, null, 8, ["config"]))], 512)) : _("", !0),
1068
- P.value.userOptions.show && Ft.value && (O(mn) || O(fn)) ? (C(), Te(O(Ot), {
1069
- ref_key: "userOptionsRef",
1070
- ref: Gt,
1071
- key: `user_options_${Bt.value}`,
1072
- backgroundColor: P.value.style.backgroundColor,
1073
- color: P.value.style.color,
1074
- isImaging: O(bn),
1075
- isPrinting: O(yn),
1076
- uid: It.value,
1077
- hasTooltip: P.value.userOptions.buttons.tooltip && P.value.style.tooltip.show,
1078
- hasPdf: P.value.userOptions.buttons.pdf,
1079
- hasImg: P.value.userOptions.buttons.img,
1080
- hasSvg: P.value.userOptions.buttons.svg,
1081
- hasXls: P.value.userOptions.buttons.csv,
1082
- hasTable: P.value.userOptions.buttons.table,
1083
- hasFullscreen: P.value.userOptions.buttons.fullscreen,
1084
- hasAltCopy: P.value.userOptions.buttons.altCopy,
1085
- isFullscreen: er.value,
1086
- isTooltip: B.value.showTooltip,
1087
- titles: { ...P.value.userOptions.buttonTitles },
1088
- chartElement: j.value,
1089
- position: P.value.userOptions.position,
1090
- hasAnnotator: P.value.userOptions.buttons.annotator,
1091
- isAnnotation: ir.value,
1092
- callbacks: P.value.userOptions.callbacks,
1093
- printScale: P.value.userOptions.print.scale,
1094
- tableDialog: P.value.table.useDialog,
1095
- isCursorPointer: sn.value,
1096
- onToggleFullscreen: tr,
1097
- onGeneratePdf: O(xn),
1098
- onGenerateCsv: $n,
1099
- onGenerateImage: O(yr),
1100
- onGenerateSvg: O(vr),
1101
- onToggleTable: nr,
1102
- onToggleTooltip: rr,
1103
- onToggleAnnotator: ar,
1104
- onCopyAlt: br,
1105
- style: S({ visibility: O(mn) ? O(fn) ? "visible" : "hidden" : "visible" })
1106
- }, Ee({ _: 2 }, [
1107
- t.$slots.menuIcon ? {
1108
- name: "menuIcon",
1109
- fn: k(({ isOpen: e, color: n }) => [E(t.$slots, "menuIcon", x(b({
1110
- isOpen: e,
1111
- color: n
1112
- })), void 0, !0)]),
1113
- key: "0"
1114
- } : void 0,
1115
- t.$slots.optionTooltip ? {
1116
- name: "optionTooltip",
1117
- fn: k(() => [E(t.$slots, "optionTooltip", {}, void 0, !0)]),
1118
- key: "1"
1119
- } : void 0,
1120
- t.$slots.optionPdf ? {
1121
- name: "optionPdf",
1122
- fn: k(() => [E(t.$slots, "optionPdf", {}, void 0, !0)]),
1123
- key: "2"
1124
- } : void 0,
1125
- t.$slots.optionCsv ? {
1126
- name: "optionCsv",
1127
- fn: k(() => [E(t.$slots, "optionCsv", {}, void 0, !0)]),
1128
- key: "3"
1129
- } : void 0,
1130
- t.$slots.optionImg ? {
1131
- name: "optionImg",
1132
- fn: k(() => [E(t.$slots, "optionImg", {}, void 0, !0)]),
1133
- key: "4"
1134
- } : void 0,
1135
- t.$slots.optionSvg ? {
1136
- name: "optionSvg",
1137
- fn: k(() => [E(t.$slots, "optionSvg", {}, void 0, !0)]),
1138
- key: "5"
1139
- } : void 0,
1140
- t.$slots.optionTable ? {
1141
- name: "optionTable",
1142
- fn: k(() => [E(t.$slots, "optionTable", {}, void 0, !0)]),
1143
- key: "6"
1144
- } : void 0,
1145
- t.$slots.optionFullscreen ? {
1146
- name: "optionFullscreen",
1147
- fn: k(({ toggleFullscreen: e, isFullscreen: n }) => [E(t.$slots, "optionFullscreen", x(b({
1148
- toggleFullscreen: e,
1149
- isFullscreen: n
1150
- })), void 0, !0)]),
1151
- key: "7"
1152
- } : void 0,
1153
- t.$slots.optionAnnotator ? {
1154
- name: "optionAnnotator",
1155
- fn: k(({ toggleAnnotator: e, isAnnotator: n }) => [E(t.$slots, "optionAnnotator", x(b({
1156
- toggleAnnotator: e,
1157
- isAnnotator: n
1158
- })), void 0, !0)]),
1159
- key: "8"
1160
- } : void 0,
1161
- t.$slots.optionAltCopy ? {
1162
- name: "optionAltCopy",
1163
- fn: k(({ altCopy: e }) => [E(t.$slots, "optionAltCopy", x(b({ altCopy: e })), void 0, !0)]),
1164
- key: "9"
1165
- } : void 0,
1166
- t.$slots["custom-menu-before"] ? {
1167
- name: "custom-menu-before",
1168
- fn: k(() => [E(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1169
- key: "10"
1170
- } : void 0,
1171
- t.$slots["custom-menu-after"] ? {
1172
- name: "custom-menu-after",
1173
- fn: k(() => [E(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1174
- key: "11"
1175
- } : void 0
1176
- ]), 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),
1177
- y("div", { class: Me({
1178
- "vue-ui-heatmap-chart-wrapper": !0,
1179
- "vue-ui-heatmap-chart-wrapper-legend-right": P.value.style.legend.show
1180
- }) }, [
1181
- (C(), v("svg", {
1182
- ref_key: "svgRef",
1183
- ref: z,
1184
- xmlns: O(te),
1185
- "aria-describedby": `chart-instructions-${It.value}`,
1186
- class: Me({
1187
- "vue-data-ui-fullscreen--on": er.value,
1188
- "vue-data-ui-fulscreen--off": !er.value
1189
- }),
1190
- viewBox: `0 0 ${U.value.width} ${U.value.height}`,
1191
- width: "100%",
1192
- style: S(`overflow: visible; background:transparent;color:${P.value.style.color}`),
1193
- "aria-live": "polite",
1194
- role: "img",
1195
- preserveAspectRatio: "xMidYMid",
1196
- tabindex: "0",
1197
- onFocus: Cr,
1198
- onBlur: wr,
1199
- onKeydown: Tr
1200
- }, [
1201
- Oe(O(kt)),
1202
- t.$slots["chart-background"] ? (C(), v("foreignObject", {
1203
- key: 0,
1204
- x: K.value.left,
1205
- y: K.value.top,
1206
- width: K.value.width,
1207
- height: K.value.height,
1208
- style: { pointerEvents: "none" }
1209
- }, [E(t.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : _("", !0),
1210
- F.value.columnTotal.color.show ? (C(), v("g", {
1211
- key: 1,
1212
- ref_key: "xAxisSumRects",
1213
- ref: $t
1214
- }, [(C(!0), v(h, null, T(Z.value.xTotals, (e, t) => (C(), v("rect", {
1215
- x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
1216
- y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
1217
- height: K.value.sumCellXHeight,
1218
- width: K.value.cellSize.width - G.value,
1219
- fill: F.value.colors.underlayer,
1220
- stroke: P.value.style.backgroundColor,
1221
- "stroke-width": G.value
1222
- }, null, 8, $e))), 256)), (C(!0), v(h, null, T(Z.value.xTotals, (e, t) => (C(), v("rect", {
1223
- x: K.value.left + K.value.cellSize.width * t + G.value / 2 + K.value.sumCellXHeight,
1224
- y: K.value.top - K.value.sumCellXHeight + G.value * (U.value.height / U.value.width),
1225
- height: K.value.sumCellXHeight,
1226
- width: K.value.cellSize.width - G.value,
1227
- fill: e.color,
1228
- stroke: P.value.style.backgroundColor,
1229
- "stroke-width": G.value
1230
- }, null, 8, et))), 256))], 512)) : _("", !0),
1231
- y("g", {
1232
- ref_key: "datapoints",
1233
- ref: Ut
1234
- }, [(C(!0), v(h, null, T(Rn.value, (e) => (C(), v("g", null, [
1235
- y("rect", {
1236
- x: e.x,
1237
- y: e.y,
1238
- width: e.width,
1239
- height: e.height,
1240
- fill: F.value.colors.underlayer,
1241
- stroke: P.value.style.backgroundColor,
1242
- "stroke-width": G.value
1243
- }, null, 8, tt),
1244
- y("rect", {
1245
- "data-a11y-cell-id": e.datapoint.id,
1246
- x: e.x,
1247
- y: e.y,
1248
- width: e.width,
1249
- height: e.height,
1250
- fill: e.datapoint.color,
1251
- stroke: P.value.style.backgroundColor,
1252
- "stroke-width": G.value,
1253
- "aria-label": `${e.datapoint.yAxisName}${e.datapoint.xAxisName ? ` - ${e.datapoint.xAxisName}` : ""}: ${isNaN(e.datapoint.value) ? "-" : e.datapoint.value}`,
1254
- onMouseover: (t) => Yn(e.datapoint, e.rowIndex, e.selectionX, e.selectionY, "pointer", Sr(e.rowIndex, e.columnIndex)),
1255
- onMouseout: () => Xn({
1256
- datapoint: e.datapoint,
1257
- seriesIndex: e.rowIndex
1258
- }),
1259
- onClick: () => or(e.datapoint, e.rowIndex)
1260
- }, null, 40, nt),
1261
- F.value.value.show ? Ue((C(), v("text", {
1262
- key: 0,
1263
- "text-anchor": "middle",
1264
- "font-size": F.value.value.fontSize,
1265
- "font-weight": F.value.value.bold ? "bold" : "normal",
1266
- fill: O(m)(e.datapoint.color),
1267
- x: e.labelX,
1268
- y: e.labelY,
1269
- style: {
1270
- pointerEvents: "none",
1271
- userSelect: "none"
1272
- }
1273
- }, [De(D(O(d)(F.value.value.formatter, e.datapoint.value, O(o)({
1274
- p: I.value.prefix,
1275
- v: e.datapoint.value,
1276
- s: I.value.suffix,
1277
- r: F.value.value.roundingValue
1278
- }), { datapoint: e.datapoint })), 1)], 8, rt)), [[O(Ke), {
1279
- cellWidth: e.width,
1280
- cellHeight: e.height,
1281
- maxFontSize: F.value.value.fontSize,
1282
- minFontSize: 10,
1283
- index: e.rowIndex * H.value + e.columnIndex,
1284
- reportHide: Gn,
1285
- reportRotation: Hn,
1286
- hideAll: Wn.value,
1287
- rotateAll: Vn.value
1288
- }]]) : _("", !0)
1289
- ]))), 256))], 512),
1290
- F.value.rowTotal.color.show ? (C(), v("g", {
1291
- key: 2,
1292
- ref_key: "yAxisSumRects",
1293
- ref: Xt
1294
- }, [(C(!0), v(h, null, T(Q.value, (e, t) => (C(), v(h, null, [y("rect", {
1295
- x: K.value.left,
1296
- y: K.value.top + K.value.cellSize.height * t,
1297
- width: K.value.sumCellXHeight,
1298
- height: K.value.cellSize.height - G.value,
1299
- fill: F.value.colors.underlayer,
1300
- stroke: P.value.style.backgroundColor,
1301
- "stroke-width": G.value
1302
- }, null, 8, it), y("rect", {
1303
- x: K.value.left,
1304
- y: K.value.top + K.value.cellSize.height * t + G.value / 2,
1305
- width: K.value.sumCellXHeight,
1306
- height: K.value.cellSize.height - G.value,
1307
- fill: Z.value.yTotals[t].color,
1308
- stroke: P.value.style.backgroundColor,
1309
- "stroke-width": G.value
1310
- }, null, 8, at)], 64))), 256))], 512)) : _("", !0),
1311
- I.value.yAxis.show ? (C(), v("g", {
1312
- key: 3,
1313
- ref_key: "yAxisLabels",
1314
- ref: Yt
1315
- }, [(C(!0), v(h, null, T(Q.value, (e, t) => (C(), v(h, null, [y("text", {
1316
- class: "vue-ui-heatmap-row-name",
1317
- "font-size": I.value.yAxis.fontSize,
1318
- fill: I.value.yAxis.color,
1319
- x: W.value,
1320
- 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),
1321
- "text-anchor": "end",
1322
- "font-weight": I.value.yAxis.bold ? "bold" : "normal"
1323
- }, D(Z.value.yLabels[t]), 9, ot), F.value.rowTotal.value.show ? (C(), v("text", {
1324
- key: 0,
1325
- class: "vue-ui-heatmap-row-total",
1326
- "font-size": I.value.yAxis.fontSize,
1327
- fill: I.value.yAxis.color,
1328
- x: W.value,
1329
- y: K.value.top + K.value.cellSize.height * t + K.value.cellSize.height / 2 + I.value.yAxis.fontSize + I.value.yAxis.offsetY,
1330
- "text-anchor": "end",
1331
- "font-weight": I.value.yAxis.bold ? "bold" : "normal"
1332
- }, D(Zn(t)), 9, st)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
1333
- I.value.xAxis.show ? (C(), v("g", {
1334
- key: 4,
1335
- ref_key: "xAxisLabels",
1336
- ref: Zt
1337
- }, [(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", {
1338
- key: 0,
1339
- class: "vue-ui-heatmap-col-name",
1340
- "text-anchor": I.value.xAxis.rotation === 0 ? "middle" : I.value.xAxis.rotation < 0 ? "start" : "end",
1341
- "font-size": I.value.xAxis.fontSize,
1342
- fill: I.value.xAxis.color,
1343
- "font-weight": I.value.xAxis.bold ? "bold" : "normal",
1344
- 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})`
1345
- }, D(e), 9, ct)) : _("", !0)], 64))), 256))], 512)) : _("", !0),
1346
- F.value.columnTotal.value.show ? (C(), v("g", {
1347
- key: 5,
1348
- ref_key: "xAxisSums",
1349
- ref: Qt
1350
- }, [(C(!0), v(h, null, T(Z.value.xLabels, (e, t) => (C(), v("text", {
1351
- class: "vue-ui-heatmap-col-total",
1352
- "text-anchor": F.value.columnTotal.value.rotation === 0 ? "middle" : F.value.columnTotal.value.rotation < 0 ? "end" : "start",
1353
- "font-size": I.value.xAxis.fontSize,
1354
- fill: I.value.xAxis.color,
1355
- "font-weight": I.value.xAxis.bold ? "bold" : "normal",
1356
- 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})`
1357
- }, D(Qn(t)), 9, lt))), 256))], 512)) : _("", !0),
1358
- M.value ? (C(), v("g", ut, [y("rect", {
1359
- style: { "pointer-events": "none" },
1360
- x: M.value.x - F.value.selected.border / 2 + G.value + K.value.sumCellXHeight,
1361
- y: M.value.y - F.value.selected.border / 2 + G.value,
1362
- width: K.value.cellSize.width - G.value + F.value.selected.border - G.value,
1363
- height: K.value.cellSize.height - G.value + F.value.selected.border - G.value,
1364
- fill: "transparent",
1365
- stroke: F.value.selected.color,
1366
- "stroke-width": F.value.selected.border,
1367
- rx: 1
1368
- }, null, 8, dt)])) : _("", !0),
1369
- L.value.crosshairs.show && M.value ? (C(), v("g", ft, [y("line", {
1370
- x1: K.value.left + K.value.sumCellXHeight,
1371
- x2: M.value.x + K.value.sumCellXHeight,
1372
- y1: M.value.y + (K.value.cellSize.height - G.value) / 2,
1373
- y2: M.value.y + (K.value.cellSize.height - G.value) / 2,
1374
- stroke: L.value.crosshairs.stroke,
1375
- "stroke-width": L.value.crosshairs.strokeWidth,
1376
- "stroke-dasharray": L.value.crosshairs.strokeDasharray,
1377
- "stroke-linecap": "round"
1378
- }, null, 8, pt), y("line", {
1379
- x1: M.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
1380
- x2: M.value.x + K.value.sumCellXHeight + (K.value.cellSize.width - G.value) / 2,
1381
- y1: M.value.y,
1382
- y2: K.value.top,
1383
- stroke: L.value.crosshairs.stroke,
1384
- "stroke-width": L.value.crosshairs.strokeWidth,
1385
- "stroke-dasharray": L.value.crosshairs.strokeDasharray,
1386
- "stroke-linecap": "round"
1387
- }, null, 8, mt)])) : _("", !0),
1388
- E(t.$slots, "svg", { svg: {
1389
- ...U.value,
1390
- drawingArea: K.value,
1391
- cells: Rn.value,
1392
- isPrintingImg: O(yn) || O(bn) || O(gr),
1393
- isPrintingSvg: O(_r)
1394
- } }, void 0, !0)
1395
- ], 46, Ze)),
1396
- P.value.style.legend.show ? (C(), v("div", {
1397
- key: 0,
1398
- ref_key: "legendRight",
1399
- ref: Jt,
1400
- class: "vue-ui-heatmap-legend-right",
1401
- style: S({ "--legend-width": P.value.style.legend.width + "px" })
1402
- }, [
1403
- O(un) ? _("", !0) : (C(), v("div", {
1404
- key: 0,
1405
- class: "vue-ui-heatmap-legend-label-max",
1406
- style: S({
1407
- fontSize: P.value.style.legend.fontSize + "px",
1408
- color: P.value.style.legend.color
1409
- })
1410
- }, D(O(d)(F.value.value.formatter, O(l)(q.value), O(o)({
1411
- p: I.value.prefix,
1412
- v: O(l)(q.value),
1413
- s: I.value.suffix,
1414
- r: P.value.style.legend.roundingValue
1415
- }))), 5)),
1416
- y("div", ht, [y("div", {
1417
- class: "vue-ui-heatmap-gauge",
1418
- style: S({ background: `linear-gradient(to bottom, ${F.value.colors.hot}, ${F.value.colors.cold})` })
1419
- }, [Ue(y("div", {
1420
- class: "vue-ui-heatmap-gauge-indicator",
1421
- "data-value": O(d)(F.value.value.formatter, O(l)($.value), O(o)({
1422
- p: I.value.prefix,
1423
- v: O(l)($.value),
1424
- s: I.value.suffix,
1425
- r: P.value.style.legend.roundingValue
1426
- })),
1427
- style: S({
1428
- position: "absolute",
1429
- width: "100%",
1430
- height: "2px",
1431
- background: [void 0, null].includes($.value) ? "transparent" : O(m)(Kn.value.datapoint.color),
1432
- top: `${Ln($.value)}%`,
1433
- transition: "all 0.2s ease-in-out",
1434
- "--background-color": P.value.style.backgroundColor,
1435
- "--gauge-arrow-color": O(m)(P.value.style.backgroundColor),
1436
- "--gauge-arrow-text-color": O(m)(P.value.style.backgroundColor),
1437
- "--gauge-arrow-value": $.value,
1438
- "--gauge-arrow-font-size": P.value.style.legend.fontSize + "px"
1439
- })
1440
- }, [y("div", _t, D(O(d)(F.value.value.formatter, O(l)($.value), O(o)({
1441
- p: I.value.prefix,
1442
- v: O(l)($.value),
1443
- s: I.value.suffix,
1444
- r: P.value.style.legend.roundingValue
1445
- }))), 1)], 12, gt), [[Be, ![void 0, null].includes($.value)]])], 4)]),
1446
- O(un) ? _("", !0) : (C(), v("div", {
1447
- key: 1,
1448
- class: "vue-ui-heatmap-legend-label-min",
1449
- style: S({
1450
- fontSize: P.value.style.legend.fontSize + "px",
1451
- color: P.value.style.legend.color
1452
- })
1453
- }, D(O(d)(F.value.value.formatter, O(l)(J.value), O(o)({
1454
- p: I.value.prefix,
1455
- v: O(l)(J.value),
1456
- s: I.value.suffix,
1457
- r: P.value.style.legend.roundingValue
1458
- }))), 5))
1459
- ], 4)) : _("", !0),
1460
- t.$slots.hint ? (C(), v("div", vt, [E(t.$slots, "hint", x(b({
1461
- hint: P.value.a11y.translations.keyboardNavigation,
1462
- isVisible: on.value
1463
- })), void 0, !0)])) : _("", !0)
1464
- ], 2),
1465
- t.$slots.watermark ? (C(), v("div", yt, [E(t.$slots, "watermark", x(b({ isPrinting: O(yn) || O(bn) || O(gr) || O(_r) })), void 0, !0)])) : _("", !0),
1466
- t.$slots.source ? (C(), v("div", {
1467
- key: 6,
1468
- ref_key: "source",
1469
- ref: en,
1470
- dir: "auto"
1471
- }, [E(t.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
1472
- Oe(O(Je), {
1473
- teleportTo: P.value.style.tooltip.teleportTo,
1474
- show: B.value.showTooltip && Lt.value,
1475
- backgroundColor: P.value.style.tooltip.backgroundColor,
1476
- color: P.value.style.tooltip.color,
1477
- borderRadius: P.value.style.tooltip.borderRadius,
1478
- borderColor: P.value.style.tooltip.borderColor,
1479
- borderWidth: P.value.style.tooltip.borderWidth,
1480
- fontSize: P.value.style.tooltip.fontSize,
1481
- backgroundOpacity: P.value.style.tooltip.backgroundOpacity,
1482
- position: P.value.style.tooltip.position,
1483
- offsetX: P.value.style.tooltip.offsetX,
1484
- offsetY: P.value.style.tooltip.offsetY,
1485
- parent: j.value,
1486
- content: Rt.value,
1487
- isFullscreen: er.value,
1488
- isCustom: P.value.style.tooltip.customFormat && typeof P.value.style.tooltip.customFormat == "function",
1489
- smooth: P.value.style.tooltip.smooth,
1490
- backdropFilter: P.value.style.tooltip.backdropFilter,
1491
- smoothForce: P.value.style.tooltip.smoothForce,
1492
- smoothSnapThreshold: P.value.style.tooltip.smoothSnapThreshold,
1493
- isA11yMode: an.value === "keyboard",
1494
- a11yPosition: rn.value
1495
- }, {
1496
- "tooltip-before": k(() => [E(t.$slots, "tooltip-before", x(b({ ...Kn.value })), void 0, !0)]),
1497
- tooltip: k(() => [E(t.$slots, "tooltip", x(b({ ...Kn.value })), void 0, !0)]),
1498
- "tooltip-after": k(() => [E(t.$slots, "tooltip-after", x(b({ ...Kn.value })), void 0, !0)]),
1499
- _: 3
1500
- }, 8, [
1501
- "teleportTo",
1502
- "show",
1503
- "backgroundColor",
1504
- "color",
1505
- "borderRadius",
1506
- "borderColor",
1507
- "borderWidth",
1508
- "fontSize",
1509
- "backgroundOpacity",
1510
- "position",
1511
- "offsetX",
1512
- "offsetY",
1513
- "parent",
1514
- "content",
1515
- "isFullscreen",
1516
- "isCustom",
1517
- "smooth",
1518
- "backdropFilter",
1519
- "smoothForce",
1520
- "smoothSnapThreshold",
1521
- "isA11yMode",
1522
- "a11yPosition"
1523
- ]),
1524
- Ft.value && P.value.userOptions.buttons.table ? (C(), Te(Ie(dr.value.component), Ae({ key: 7 }, dr.value.props, {
1525
- ref_key: "tableUnit",
1526
- ref: Wt,
1527
- onClose: pr
1528
- }), Ee({
1529
- content: k(() => [y("div", {
1530
- ref_key: "tableContainer",
1531
- ref: Vt,
1532
- class: "vue-ui-heatmap-table atom-data-table",
1533
- style: S(`${P.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px;"}`)
1534
- }, [y("div", {
1535
- style: S(`width:100%;overflow-x:auto;position:relative;${P.value.table.useDialog ? "" : "padding-top:36px"};`),
1536
- class: Me({ "vue-ui-responsive": O(fr) })
1537
- }, [P.value.table.useDialog ? _("", !0) : (C(), v("div", {
1538
- key: 0,
1539
- role: "button",
1540
- tabindex: "0",
1541
- 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};`),
1542
- onClick: pr,
1543
- onKeypress: We(pr, ["enter"])
1544
- }, [Oe(O(Et), {
1545
- name: "close",
1546
- stroke: P.value.table.th.color,
1547
- "stroke-width": 2
1548
- }, null, 8, ["stroke"])], 36)), y("table", bt, [
1549
- P.value.table.useDialog ? _("", !0) : (C(), v("caption", {
1550
- key: 0,
1551
- style: S(`backgroundColor:${P.value.table.th.backgroundColor};color:${P.value.table.th.color};outline:${P.value.table.th.outline}`)
1552
- }, [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)),
1553
- y("thead", null, [y("tr", {
1554
- role: "row",
1555
- style: S(`background:${P.value.table.th.backgroundColor};color:${P.value.table.th.color}`)
1556
- }, [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", {
1557
- align: "right",
1558
- style: S(`outline:${P.value.table.th.outline};padding-right:6px`)
1559
- }, D(e.name), 5))), 256))], 4)]),
1560
- y("tbody", null, [(C(!0), v(h, null, T(Z.value.xLabels, (t, n) => (C(), v("tr", {
1561
- role: "row",
1562
- class: Me({
1563
- "vue-ui-data-table__tbody__row": !0,
1564
- "vue-ui-data-table__tbody__row-even": n % 2 == 0,
1565
- "vue-ui-data-table__tbody__row-odd": n % 2 != 0
1566
- }),
1567
- style: S(`background:${P.value.table.td.backgroundColor};color:${P.value.table.td.color}`)
1568
- }, [y("td", {
1569
- "data-cell": P.value.table.colNames.xAxis,
1570
- class: "vue-ui-data-table__tbody__td",
1571
- style: S(`outline:${P.value.table.td.outline}`)
1572
- }, [y("div", Ct, D(t), 1)], 12, St), (C(!0), v(h, null, T(e.dataset, (t, r) => (C(), v("td", {
1573
- class: "vue-ui-data-table__tbody__td",
1574
- "data-cell": e.dataset[r].name,
1575
- style: S(`outline:${P.value.table.td.outline}`)
1576
- }, [y("div", Tt, D(isNaN(t.values[n]) ? "-" : O(o)({
1577
- p: I.value.prefix,
1578
- v: t.values[n],
1579
- s: I.value.suffix,
1580
- r: P.value.table.td.roundingValue
1581
- })), 1)], 12, wt))), 256))], 6))), 256))])
1582
- ])], 6)], 4)]),
1583
- _: 2
1584
- }, [P.value.table.useDialog ? {
1585
- name: "title",
1586
- fn: k(() => [De(D(dr.value.title), 1)]),
1587
- key: "0"
1588
- } : void 0, P.value.table.useDialog ? {
1589
- name: "actions",
1590
- fn: k(() => [y("button", {
1591
- tabindex: "0",
1592
- class: "vue-ui-user-options-button",
1593
- onClick: n[0] ||= (e) => $n(P.value.userOptions.callbacks.csv),
1594
- style: S({ cursor: sn.value ? "pointer" : "default" })
1595
- }, [Oe(O(Et), {
1596
- name: "fileCsv",
1597
- stroke: dr.value.props.color
1598
- }, null, 8, ["stroke"])], 4)]),
1599
- key: "1"
1600
- } : void 0]), 1040)) : _("", !0),
1601
- E(t.$slots, "skeleton", {}, () => [O(un) ? (C(), Te(le, { key: 0 })) : _("", !0)], !0)
1602
- ], 46, Ye));
1603
- }
1604
- }, [["__scopeId", "data-v-2b466c1a"]]);
1605
- //#endregion
1606
- export { Je as n, Et as t };