vue-data-ui 2.6.38 → 2.6.40

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 (156) hide show
  1. package/dist/{Arrow-xcaRkI_P.js → Arrow-CKYmYJHq.js} +1 -1
  2. package/dist/{Arrow-DH-nqfuu.cjs → Arrow-DczKng-K.cjs} +1 -1
  3. package/dist/{BaseIcon-Dhgv4Qgl.cjs → BaseIcon-Db1HIrAt.cjs} +1 -1
  4. package/dist/{BaseIcon-CCOXJ43P.js → BaseIcon-rw8rKNKS.js} +1 -1
  5. package/dist/{ColorPicker-DwgQNiHO.js → ColorPicker-DyZK3Mhl.js} +3 -3
  6. package/dist/{ColorPicker-DdX3Ab75.cjs → ColorPicker-oA_W-jVk.cjs} +1 -1
  7. package/dist/{DataTable-DhEDo7W6.cjs → DataTable-Be-eTBzq.cjs} +1 -1
  8. package/dist/{DataTable--Aq5n5mR.js → DataTable-DvwmNjb-.js} +2 -2
  9. package/dist/{Legend-BbSQMgm3.js → Legend-Be8mrJpb.js} +2 -2
  10. package/dist/{Legend-2PWaf6Bj.cjs → Legend-j3YoAtEf.cjs} +1 -1
  11. package/dist/{PackageVersion-CZ0-Jk6A.js → PackageVersion-D9Lm1C1X.js} +1 -1
  12. package/dist/{PackageVersion-DdCp9lqS.cjs → PackageVersion-D_gJvbGU.cjs} +1 -1
  13. package/dist/{PenAndPaper-BFkX-O1c.js → PenAndPaper-DR58HO_U.js} +3 -3
  14. package/dist/{PenAndPaper-4dibNTrE.cjs → PenAndPaper-DWG9pfri.cjs} +1 -1
  15. package/dist/{Shape-Ba8jxKwR.cjs → Shape-BF6K6die.cjs} +1 -1
  16. package/dist/{Shape-CxNXalS-.js → Shape-BuwIrUMv.js} +1 -1
  17. package/dist/{Slicer-m9Y8-Ul1.js → Slicer-CUm2ijlc.js} +177 -169
  18. package/dist/Slicer-bY7XVDi5.cjs +1 -0
  19. package/dist/{Title-BGQhFU2C.cjs → Title-BP4K_GLE.cjs} +1 -1
  20. package/dist/{Title-xPTli3hs.js → Title-D_MGglyN.js} +1 -1
  21. package/dist/{Tooltip-D42o7dze.js → Tooltip-HRgkF8HD.js} +1 -1
  22. package/dist/{Tooltip-CnSZ7sO1.cjs → Tooltip-KXn1rQhr.cjs} +1 -1
  23. package/dist/{index-BsIlHNy8.js → index-BaaDnc4F.js} +1 -1
  24. package/dist/{index-CtzlfT2i.cjs → index-CBRI5uwl.cjs} +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/{useNestedProp-B5jFEsaz.cjs → useNestedProp-0jJvFRhK.cjs} +1 -1
  27. package/dist/{useNestedProp-CyyJlG5K.js → useNestedProp-D8vQcOps.js} +1 -1
  28. package/dist/{usePrinter-LlH3giBA.cjs → usePrinter-C1Rlqzcj.cjs} +1 -1
  29. package/dist/{usePrinter-D5N6w7Rg.js → usePrinter-y4-4tCWT.js} +1 -1
  30. package/dist/{vue-data-ui-Ba8lztG5.cjs → vue-data-ui-CF4CU0e2.cjs} +1 -1
  31. package/dist/{vue-data-ui-BLYRqJkx.js → vue-data-ui-XwZHx4pB.js} +61 -61
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-BGJLygG0.cjs → vue-ui-3d-bar-BOMvMoht.cjs} +1 -1
  35. package/dist/{vue-ui-3d-bar-BJZ5zSaf.js → vue-ui-3d-bar-BYV4-yM3.js} +9 -9
  36. package/dist/{vue-ui-accordion-tUPDXqYS.cjs → vue-ui-accordion-C5C3XQ8f.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-COi2Xtsr.js → vue-ui-accordion-CF9kQTXq.js} +3 -3
  38. package/dist/{vue-ui-age-pyramid-k5Fu7j2-.js → vue-ui-age-pyramid-8KtaPkny.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-2Fxcq3FV.cjs → vue-ui-age-pyramid-Cm10v1iS.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-MPzfaArN.cjs → vue-ui-annotator-Dq1h3MZY.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-BZ0Yy6ia.js → vue-ui-annotator-KiLEzFIU.js} +1 -1
  42. package/dist/{vue-ui-bullet-u2ESqCXp.js → vue-ui-bullet-DBEuIuyH.js} +8 -8
  43. package/dist/{vue-ui-bullet-CQ7tn9wm.cjs → vue-ui-bullet-yeUQYuwe.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-CwJ_u0fV.js → vue-ui-candlestick-C13zgiOI.js} +11 -11
  45. package/dist/{vue-ui-candlestick-4-kNBi7o.cjs → vue-ui-candlestick-VazI0lag.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-BoC8-DRG.js → vue-ui-carousel-table-CoA9OyeC.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-C0_aau0U.cjs → vue-ui-carousel-table-Dkqumt0q.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-C7fb69a8.cjs → vue-ui-chestnut-V0eah1wF.cjs} +1 -1
  49. package/dist/{vue-ui-chestnut-DPuTvEo_.js → vue-ui-chestnut-kAdb7Jpi.js} +8 -8
  50. package/dist/{vue-ui-circle-pack-_hLdrihN.js → vue-ui-circle-pack-B0CreTV1.js} +9 -9
  51. package/dist/{vue-ui-circle-pack-DDQON0rO.cjs → vue-ui-circle-pack-CnYgigzx.cjs} +1 -1
  52. package/dist/{vue-ui-cursor-gcJigUgC.cjs → vue-ui-cursor-oLpASwAy.cjs} +1 -1
  53. package/dist/{vue-ui-cursor-BWDfw2Ie.js → vue-ui-cursor-sHfZ-rR3.js} +2 -2
  54. package/dist/{vue-ui-dashboard-DesRs2ZI.cjs → vue-ui-dashboard-CB7KJEOi.cjs} +1 -1
  55. package/dist/{vue-ui-dashboard-BkGZ-fol.js → vue-ui-dashboard-D2ZQBDuk.js} +2 -2
  56. package/dist/{vue-ui-digits-BTsRKOh6.js → vue-ui-digits-CiV3V0ry.js} +2 -2
  57. package/dist/{vue-ui-digits-D7S2s6dm.cjs → vue-ui-digits-e7EBKTDv.cjs} +1 -1
  58. package/dist/{vue-ui-donut-CHFJ4llc.js → vue-ui-donut-CrjqZ1ji.js} +12 -12
  59. package/dist/{vue-ui-donut-C8YIBga9.cjs → vue-ui-donut-DL51Fl9m.cjs} +1 -1
  60. package/dist/{vue-ui-donut-evolution-Du7EzpBa.js → vue-ui-donut-evolution-D_F3H8Oa.js} +11 -11
  61. package/dist/{vue-ui-donut-evolution-Dpvf2iFq.cjs → vue-ui-donut-evolution-mCx3HfHW.cjs} +1 -1
  62. package/dist/{vue-ui-dumbbell-D52rmaD-.cjs → vue-ui-dumbbell-BIDzrdGX.cjs} +1 -1
  63. package/dist/{vue-ui-dumbbell-D_ZrpG52.js → vue-ui-dumbbell-POvEBmaZ.js} +10 -10
  64. package/dist/{vue-ui-flow-EOVRHoOo.js → vue-ui-flow-BIfoibps.js} +9 -9
  65. package/dist/{vue-ui-flow-CR8zPj0k.cjs → vue-ui-flow-D8CWkD2E.cjs} +1 -1
  66. package/dist/{vue-ui-funnel-DttSlnhO.cjs → vue-ui-funnel-DNQKb-CW.cjs} +1 -1
  67. package/dist/{vue-ui-funnel-BeEfwpch.js → vue-ui-funnel-DfF9uQGX.js} +9 -9
  68. package/dist/{vue-ui-galaxy-BiG7_RQM.cjs → vue-ui-galaxy-CXAhWSW2.cjs} +1 -1
  69. package/dist/{vue-ui-galaxy-CV_lO5aH.js → vue-ui-galaxy-D6sV6X5K.js} +11 -11
  70. package/dist/{vue-ui-gauge-DcTEz7z0.cjs → vue-ui-gauge-CODDDBdK.cjs} +1 -1
  71. package/dist/{vue-ui-gauge-DLN6zs3X.js → vue-ui-gauge-CvbPkLM2.js} +7 -7
  72. package/dist/{vue-ui-gizmo-DB55cesa.cjs → vue-ui-gizmo-DMsTB4ES.cjs} +1 -1
  73. package/dist/{vue-ui-gizmo-G1WtSE2E.js → vue-ui-gizmo-DUi7lRRe.js} +3 -3
  74. package/dist/vue-ui-heatmap-DDo0YoPA.cjs +1 -0
  75. package/dist/{vue-ui-heatmap-BdWCJv-X.js → vue-ui-heatmap-Dg8XejgT.js} +53 -53
  76. package/dist/{vue-ui-history-plot-Bch7yEUY.js → vue-ui-history-plot-BSd5bL15.js} +11 -11
  77. package/dist/{vue-ui-history-plot-B1UvPHEt.cjs → vue-ui-history-plot-Wb0vm3oN.cjs} +1 -1
  78. package/dist/{vue-ui-kpi-B9HqS8K-.js → vue-ui-kpi-BAMbt0nE.js} +3 -3
  79. package/dist/{vue-ui-kpi-D_x-1qay.cjs → vue-ui-kpi-m4GUxnZu.cjs} +1 -1
  80. package/dist/{vue-ui-mini-loader-CVUQ6Jdq.cjs → vue-ui-mini-loader-BqVkQxqo.cjs} +1 -1
  81. package/dist/{vue-ui-mini-loader-sTAHynyd.js → vue-ui-mini-loader-DiBQaEPy.js} +2 -2
  82. package/dist/{vue-ui-molecule-CzV5mFr9.cjs → vue-ui-molecule-SgHDaN5w.cjs} +1 -1
  83. package/dist/{vue-ui-molecule-CBY0mkv6.js → vue-ui-molecule-kryFDlxX.js} +10 -10
  84. package/dist/{vue-ui-mood-radar-0l5kOwOS.js → vue-ui-mood-radar-INGk_0vz.js} +11 -11
  85. package/dist/{vue-ui-mood-radar-CjZZdlwC.cjs → vue-ui-mood-radar-p2yhGTuV.cjs} +1 -1
  86. package/dist/{vue-ui-nested-donuts-CaMgxVbA.js → vue-ui-nested-donuts-BABAXqTX.js} +11 -11
  87. package/dist/{vue-ui-nested-donuts-DmAwQmwD.cjs → vue-ui-nested-donuts-COy2x2EF.cjs} +1 -1
  88. package/dist/{vue-ui-onion-dzs4bSVa.cjs → vue-ui-onion-B1NZLFqG.cjs} +1 -1
  89. package/dist/{vue-ui-onion-LcKtpoza.js → vue-ui-onion-CJkmj1Nh.js} +11 -11
  90. package/dist/{vue-ui-parallel-coordinate-plot-BF8Erw_q.cjs → vue-ui-parallel-coordinate-plot-CtpGIUKU.cjs} +1 -1
  91. package/dist/{vue-ui-parallel-coordinate-plot-BNLSWVnA.js → vue-ui-parallel-coordinate-plot-DTUIv9ah.js} +12 -12
  92. package/dist/{vue-ui-quadrant-DNIbdRlI.js → vue-ui-quadrant-CxNnHjD9.js} +12 -12
  93. package/dist/{vue-ui-quadrant-DQgc8mxK.cjs → vue-ui-quadrant-ZmF2s1_3.cjs} +1 -1
  94. package/dist/{vue-ui-quick-chart-DD6Dgaf_.cjs → vue-ui-quick-chart-BaHq9DyU.cjs} +1 -1
  95. package/dist/{vue-ui-quick-chart-Bd2xUcYS.js → vue-ui-quick-chart-CJnwyWdJ.js} +9 -9
  96. package/dist/{vue-ui-radar-D0aFz3M1.cjs → vue-ui-radar-BgeUqzpX.cjs} +1 -1
  97. package/dist/{vue-ui-radar-CO7-BuKy.js → vue-ui-radar-CsvmcspN.js} +12 -12
  98. package/dist/{vue-ui-rating-DBQcGPBa.cjs → vue-ui-rating-C-ef3ayK.cjs} +1 -1
  99. package/dist/{vue-ui-rating-BXw-c2re.js → vue-ui-rating-D7kDYc6s.js} +2 -2
  100. package/dist/{vue-ui-relation-circle-BVEursNY.js → vue-ui-relation-circle-CY8ZIPpL.js} +7 -7
  101. package/dist/{vue-ui-relation-circle-CrCtoGdS.cjs → vue-ui-relation-circle-DRkjUqb1.cjs} +1 -1
  102. package/dist/{vue-ui-rings-DW_FdNSK.js → vue-ui-rings-Cxf9NoYT.js} +12 -12
  103. package/dist/{vue-ui-rings-B_NxR1q-.cjs → vue-ui-rings-DEuJ9t0h.cjs} +1 -1
  104. package/dist/{vue-ui-scatter-Bly8ezts.cjs → vue-ui-scatter-BlBNhmJ4.cjs} +1 -1
  105. package/dist/{vue-ui-scatter-CNltzVkT.js → vue-ui-scatter-CiO-B7Jh.js} +12 -12
  106. package/dist/{vue-ui-screenshot-B3_3bmXo.cjs → vue-ui-screenshot--OYVY1cw.cjs} +1 -1
  107. package/dist/{vue-ui-screenshot-iEAAudBg.js → vue-ui-screenshot-BMuBV3BB.js} +1 -1
  108. package/dist/{vue-ui-skeleton-DApuwwZF.js → vue-ui-skeleton-6RiQNJSb.js} +3 -3
  109. package/dist/{vue-ui-skeleton-MFudy6Nx.cjs → vue-ui-skeleton-CM4wEsYA.cjs} +1 -1
  110. package/dist/{vue-ui-smiley-C-RH5eaS.js → vue-ui-smiley-CUDVroKW.js} +2 -2
  111. package/dist/{vue-ui-smiley-D17Lq5EM.cjs → vue-ui-smiley-DMzfsrun.cjs} +1 -1
  112. package/dist/{vue-ui-spark-trend-q3XeHnoN.cjs → vue-ui-spark-trend-CTI98gTQ.cjs} +1 -1
  113. package/dist/{vue-ui-spark-trend-CY_5HSpU.js → vue-ui-spark-trend-fnRrg8Jj.js} +5 -5
  114. package/dist/{vue-ui-sparkbar-FsR-gK2w.cjs → vue-ui-sparkbar-HhcSqSxf.cjs} +1 -1
  115. package/dist/{vue-ui-sparkbar-DSsaunzO.js → vue-ui-sparkbar-msGI6wfO.js} +4 -4
  116. package/dist/{vue-ui-sparkgauge-DS_jMTUO.js → vue-ui-sparkgauge-C3obUsLf.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-BBBk29g7.cjs → vue-ui-sparkgauge-DRpIVDwy.cjs} +1 -1
  118. package/dist/{vue-ui-sparkhistogram-D_gxEiyc.js → vue-ui-sparkhistogram-DOVSl-l-.js} +5 -5
  119. package/dist/{vue-ui-sparkhistogram-BFd0lABr.cjs → vue-ui-sparkhistogram-OtRll6_F.cjs} +1 -1
  120. package/dist/{vue-ui-sparkline-BJBtHg1Z.js → vue-ui-sparkline-DkX9L35W.js} +4 -4
  121. package/dist/{vue-ui-sparkline-BQhNHjjY.cjs → vue-ui-sparkline-Dyd6TPTP.cjs} +1 -1
  122. package/dist/{vue-ui-sparkstackbar-D8i69QTv.cjs → vue-ui-sparkstackbar-Cfn7LKpJ.cjs} +1 -1
  123. package/dist/{vue-ui-sparkstackbar-sk6RTxgo.js → vue-ui-sparkstackbar-Cq7MW3Jk.js} +5 -5
  124. package/dist/{vue-ui-stackbar-usPJtqEt.js → vue-ui-stackbar-BNy2XBmJ.js} +13 -13
  125. package/dist/{vue-ui-stackbar-BxbovsxZ.cjs → vue-ui-stackbar-DDbZ-_sO.cjs} +1 -1
  126. package/dist/{vue-ui-strip-plot-Y_MY3klS.js → vue-ui-strip-plot-Cq9CqXxr.js} +11 -11
  127. package/dist/{vue-ui-strip-plot-xeKRF2hz.cjs → vue-ui-strip-plot-t6_CVzQF.cjs} +1 -1
  128. package/dist/{vue-ui-table-CiYMFIvc.js → vue-ui-table-BowZcUb5.js} +1 -1
  129. package/dist/{vue-ui-table-heatmap-RAhNv1Yt.cjs → vue-ui-table-heatmap-BAczw65J.cjs} +1 -1
  130. package/dist/{vue-ui-table-heatmap-E_W8ydlD.js → vue-ui-table-heatmap-BmObY7ZK.js} +4 -4
  131. package/dist/{vue-ui-table-gdZlpeCl.cjs → vue-ui-table-js0Gdfqi.cjs} +1 -1
  132. package/dist/{vue-ui-table-sparkline-qnUHp7_y.js → vue-ui-table-sparkline-BKDgWukC.js} +5 -5
  133. package/dist/{vue-ui-table-sparkline-BoW8p8nM.cjs → vue-ui-table-sparkline-HE8HXlhe.cjs} +1 -1
  134. package/dist/{vue-ui-thermometer-Cgknp6e4.cjs → vue-ui-thermometer-2RqSKVQ8.cjs} +1 -1
  135. package/dist/{vue-ui-thermometer-B1pc1sTh.js → vue-ui-thermometer-BOF4YYvE.js} +7 -7
  136. package/dist/{vue-ui-timer-artBhlnJ.cjs → vue-ui-timer-BVoMdC97.cjs} +1 -1
  137. package/dist/{vue-ui-timer-aBhtv50v.js → vue-ui-timer-D6WS06mW.js} +5 -5
  138. package/dist/{vue-ui-tiremarks-DiWKoU3P.js → vue-ui-tiremarks-BD81LT9b.js} +7 -7
  139. package/dist/{vue-ui-tiremarks-BzacI8bL.cjs → vue-ui-tiremarks-CiZUYcuP.cjs} +1 -1
  140. package/dist/{vue-ui-treemap-CQaOFvON.cjs → vue-ui-treemap-BQeFDdrJ.cjs} +1 -1
  141. package/dist/{vue-ui-treemap-gTJuFH2s.js → vue-ui-treemap-CKETyAhh.js} +11 -11
  142. package/dist/{vue-ui-vertical-bar-BBuDOBoW.js → vue-ui-vertical-bar-D4RH4OTK.js} +12 -12
  143. package/dist/{vue-ui-vertical-bar-CmhO5QXM.cjs → vue-ui-vertical-bar-nq74gMNu.cjs} +1 -1
  144. package/dist/{vue-ui-waffle-BL0NYWzA.js → vue-ui-waffle-BHP27c7Q.js} +12 -12
  145. package/dist/{vue-ui-waffle-BSelvhkc.cjs → vue-ui-waffle-atvdP-Pb.cjs} +1 -1
  146. package/dist/{vue-ui-wheel-Di-LA-Pk.js → vue-ui-wheel-BpEPqKp-.js} +7 -7
  147. package/dist/{vue-ui-wheel-6MfSLLjP.cjs → vue-ui-wheel-Diad5HyF.cjs} +1 -1
  148. package/dist/{vue-ui-word-cloud-cO7rCys5.cjs → vue-ui-word-cloud-B_ykSDTr.cjs} +1 -1
  149. package/dist/{vue-ui-word-cloud-CIL5uwJc.js → vue-ui-word-cloud-JH_eHxVf.js} +10 -10
  150. package/dist/{vue-ui-xy-Caw1sPOs.js → vue-ui-xy-BGOtOn8w.js} +14 -14
  151. package/dist/{vue-ui-xy-HQqWXfCj.cjs → vue-ui-xy-Csz1n4M-.cjs} +1 -1
  152. package/dist/{vue-ui-xy-canvas-CZffRCNl.cjs → vue-ui-xy-canvas-DLZANhlq.cjs} +1 -1
  153. package/dist/{vue-ui-xy-canvas-CO_1a0bx.js → vue-ui-xy-canvas-DVzzeUmj.js} +12 -12
  154. package/package.json +1 -1
  155. package/dist/Slicer-rJxCx_c3.cjs +0 -1
  156. package/dist/vue-ui-heatmap-D2mxryA0.cjs +0 -1
@@ -1,19 +1,19 @@
1
- import { useCssVars as De, computed as s, ref as u, watch as $, onMounted as Te, onBeforeUnmount as Pe, onUpdated as Ae, nextTick as ne, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as b, renderSlot as Fe, normalizeStyle as N, createVNode as Ie, withDirectives as ie, unref as G, Fragment as ue, renderList as oe, normalizeClass as L, vModelText as re, toDisplayString as se } from "vue";
2
- import ze from "./BaseIcon-CCOXJ43P.js";
3
- import { t as He, u as Ve } from "./useResponsive-vZgZwV-S.js";
4
- import { c as We, S as de, R as ve, X as Xe, G as me } from "./index-BsIlHNy8.js";
5
- import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- const Oe = {
1
+ import { useCssVars as Ie, computed as s, ref as u, watch as R, onMounted as Pe, onBeforeUnmount as ze, onUpdated as Ae, nextTick as ue, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as x, renderSlot as Fe, normalizeStyle as $, createVNode as He, withDirectives as oe, unref as Z, Fragment as re, renderList as se, normalizeClass as L, vModelText as de, toDisplayString as ve } from "vue";
2
+ import Ve from "./BaseIcon-rw8rKNKS.js";
3
+ import { t as We, u as Xe } from "./useResponsive-vZgZwV-S.js";
4
+ import { c as Ue, S as me, R as ce, X as Oe, G as he } from "./index-BaaDnc4F.js";
5
+ import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const Ge = {
7
7
  class: "vue-data-ui-slicer-labels",
8
8
  style: { position: "relative", "z-index": "1", "pointer-events": "none" }
9
- }, Ge = {
9
+ }, je = {
10
10
  key: 0,
11
11
  style: { width: "100%", position: "relative" }
12
- }, je = {
12
+ }, qe = {
13
13
  key: 0,
14
14
  class: "minimap",
15
15
  style: { width: "100%" }
16
- }, Ze = ["xmlns", "viewBox"], qe = ["id"], Je = ["stop-color"], Ke = ["d", "stroke"], Qe = ["x", "width", "height", "fill", "rx"], Ye = ["d", "fill"], _e = ["x", "width", "height", "rx", "fill"], et = ["x", "width", "height", "fill", "rx"], tt = ["d", "fill"], lt = ["d", "stroke"], at = ["cx", "cy", "stroke", "fill"], nt = ["cx", "cy", "stroke", "fill"], it = ["x1", "x2", "y2", "stroke"], ut = ["x", "height", "width", "onMouseenter"], ot = ["min", "max"], rt = ["min", "max"], st = {
16
+ }, Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"], Ye = ["d", "stroke"], _e = ["x", "width", "height", "fill", "rx"], et = ["d", "fill"], tt = ["x", "width", "height", "rx", "fill"], lt = ["x", "width", "height", "fill", "rx"], at = ["d", "fill"], nt = ["d", "stroke"], it = ["cx", "cy", "stroke", "fill"], ut = ["cx", "cy", "stroke", "fill"], ot = ["x1", "x2", "y2", "stroke"], rt = ["x", "height", "width", "onMouseenter"], st = ["min", "max"], dt = ["min", "max"], vt = {
17
17
  __name: "Slicer",
18
18
  props: {
19
19
  background: {
@@ -122,146 +122,146 @@ const Oe = {
122
122
  }
123
123
  },
124
124
  emits: ["update:start", "update:end", "reset", "trapMouse"],
125
- setup(a, { expose: ce, emit: he }) {
126
- De((t) => ({
127
- "5f3498b1": ge.value,
128
- "11abbdb6": w.value,
129
- 57330254: be.value,
130
- "51413b56": a.selectColor,
131
- "70c09a63": pe.value
125
+ setup(a, { expose: fe, emit: ge }) {
126
+ Ie((e) => ({
127
+ a9eaaa56: xe.value,
128
+ 43003349: w.value,
129
+ "084765fa": be.value,
130
+ 23357479: a.selectColor,
131
+ "3d8e0af2": ye.value
132
132
  }));
133
- const e = a, f = u(null), o = u(e.min), r = u(e.max), M = s(() => !!e.minimap.length), D = u(We()), fe = s(() => e.refreshEndPoint === null ? e.max : e.refreshEndPoint), x = he, y = s(() => {
134
- const t = e.max - e.min, l = (o.value - e.min) / t * 100, n = (r.value - e.min) / t * 100;
133
+ const t = a, f = u(null), o = u(t.min), r = u(t.max), M = s(() => !!t.minimap.length), D = u(Ue()), pe = s(() => t.refreshEndPoint === null ? t.max : t.refreshEndPoint), y = ge, b = s(() => {
134
+ const e = t.max - t.min, l = (o.value - t.min) / e * 100, n = (r.value - t.min) / e * 100;
135
135
  return {
136
136
  left: `${l}%`,
137
137
  width: `${n - l}%`,
138
- background: e.selectColor,
139
- tooltipLeft: `calc(${l}% - ${j.value ? 0 : U.value / 2}px)`,
140
- tooltipRight: `calc(${n}% - ${Z.value ? B.value : B.value / 2}px)`,
141
- arrowLeft: !j.value,
142
- arrowRight: !Z.value
138
+ background: t.selectColor,
139
+ tooltipLeft: `calc(${l}% - ${G.value ? 0 : U.value / 2}px)`,
140
+ tooltipRight: `calc(${n}% - ${j.value ? B.value : B.value / 2}px)`,
141
+ arrowLeft: !G.value,
142
+ arrowRight: !j.value
143
143
  };
144
- }), j = s(() => f.value ? f.value.getBoundingClientRect().width * ((o.value - e.min) / (e.max - e.min)) - U.value / 2 < 0 : !1), Z = s(() => f.value ? f.value.getBoundingClientRect().width * ((r.value - e.min) / (e.max - e.min)) + B.value / 2 > f.value.getBoundingClientRect().width : !1), ge = s(() => e.inputColor), pe = s(() => e.background), be = s(() => `${e.selectColor}33`), w = s(() => e.borderColor), q = s(() => {
145
- let t = [];
146
- for (let l = 0; l < e.minimap.length; l += 1)
147
- t.push(l);
148
- return t;
144
+ }), G = s(() => f.value ? f.value.getBoundingClientRect().width * ((o.value - t.min) / (t.max - t.min)) - U.value / 2 < 0 : !1), j = s(() => f.value ? f.value.getBoundingClientRect().width * ((r.value - t.min) / (t.max - t.min)) + B.value / 2 > f.value.getBoundingClientRect().width : !1), xe = s(() => t.inputColor), ye = s(() => t.background), be = s(() => `${t.selectColor}33`), w = s(() => t.borderColor), q = s(() => {
145
+ let e = [];
146
+ for (let l = 0; l < t.minimap.length; l += 1)
147
+ e.push(l);
148
+ return e;
149
149
  });
150
150
  function J() {
151
- x("reset");
151
+ y("reset");
152
152
  }
153
- function xe() {
154
- Number(o.value) > Number(r.value) - 1 && (o.value = Number(r.value) - 1), x("update:start", Number(o.value));
153
+ function we() {
154
+ Number(o.value) > Number(r.value) - 1 && (o.value = Number(r.value) - 1), y("update:start", Number(o.value));
155
155
  }
156
- function ye() {
157
- Number(r.value) < Number(o.value) + 1 && (r.value = Number(o.value) + 1), x("update:end", Number(r.value));
156
+ function Se() {
157
+ Number(r.value) < Number(o.value) + 1 && (r.value = Number(o.value) + 1), y("update:end", Number(r.value));
158
158
  }
159
- $(
160
- () => e.min,
161
- (t) => {
162
- Number(o.value) < Number(t) && (o.value = Number(t)), Number(r.value) < Number(t) && (r.value = Number(t));
159
+ R(
160
+ () => t.min,
161
+ (e) => {
162
+ Number(o.value) < Number(e) && (o.value = Number(e)), Number(r.value) < Number(e) && (r.value = Number(e));
163
163
  }
164
- ), $(
165
- () => e.max,
166
- (t) => {
167
- Number(o.value) > Number(t) && (o.value = Number(t)), Number(r.value) > Number(t) && (r.value = Number(t));
164
+ ), R(
165
+ () => t.max,
166
+ (e) => {
167
+ Number(o.value) > Number(e) && (o.value = Number(e)), Number(r.value) > Number(e) && (r.value = Number(e));
168
168
  }
169
169
  );
170
170
  const T = u(null), i = u({
171
171
  width: 1,
172
172
  height: 1
173
173
  }), E = u(null);
174
- Te(() => {
174
+ Pe(() => {
175
175
  if (M.value) {
176
- const t = He(() => {
177
- const { width: l, height: n } = Ve({
176
+ const e = We(() => {
177
+ const { width: l, height: n } = Xe({
178
178
  chart: T.value
179
179
  });
180
180
  i.value.width = l, i.value.height = n - 47;
181
181
  });
182
- E.value = new ResizeObserver(t), E.value.observe(T.value);
182
+ E.value = new ResizeObserver(e), E.value.observe(T.value);
183
183
  }
184
- }), Pe(() => {
184
+ }), ze(() => {
185
185
  E.value && E.value.disconnect();
186
186
  });
187
- const c = s(() => e.minimap.length ? i.value.width / e.minimap.length : 0), g = s(() => {
188
- if (!e.minimap.length) return [];
189
- const t = Math.max(...e.minimap), l = Math.min(...e.minimap) - 10, n = t - (l > 0 ? 0 : l), h = e.minimap.map((Le, Ee) => {
190
- const Be = Le - l;
187
+ const c = s(() => t.minimap.length ? i.value.width / t.minimap.length : 0), g = s(() => {
188
+ if (!t.minimap.length) return [];
189
+ const e = Math.max(...t.minimap), l = Math.min(...t.minimap) - 10, n = e - (l > 0 ? 0 : l), h = t.minimap.map((Be, De) => {
190
+ const Te = Be - l;
191
191
  return {
192
- x: i.value.width / e.minimap.length * Ee + c.value / 2,
193
- y: i.value.height - Be / n * (i.value.height * 0.9)
192
+ x: i.value.width / t.minimap.length * De + c.value / 2,
193
+ y: i.value.height - Te / n * (i.value.height * 0.9)
194
194
  };
195
- }), S = e.smoothMinimap ? de(h) : ve(h), O = [...h].slice(e.valueStart, e.valueEnd), $e = e.smoothMinimap ? de(O) : ve(O);
195
+ }), S = t.smoothMinimap ? me(h) : ce(h), O = [...h].slice(t.valueStart, t.valueEnd), Ee = t.smoothMinimap ? me(O) : ce(O);
196
196
  return {
197
197
  fullSet: S,
198
- selectionSet: $e,
198
+ selectionSet: Ee,
199
199
  sliced: O,
200
- firstPlot: h[e.valueStart],
201
- lastPlot: h[e.valueEnd - 1]
200
+ firstPlot: h[t.valueStart],
201
+ lastPlot: h[t.valueEnd - 1]
202
202
  };
203
203
  }), p = s(() => ({
204
204
  x: c.value * o.value + c.value / 2,
205
- width: i.value.width * ((r.value - o.value) / e.max) - c.value
206
- })), R = u(e.minimapSelectedIndex);
207
- $(() => e.minimapSelectedIndex, (t) => {
208
- R.value = t + e.valueStart;
205
+ width: i.value.width * ((r.value - o.value) / t.max) - c.value
206
+ })), N = u(t.minimapSelectedIndex);
207
+ R(() => t.minimapSelectedIndex, (e) => {
208
+ N.value = e + t.valueStart;
209
209
  }, { immediate: !0 });
210
- function we(t) {
211
- R.value = t, t >= e.valueStart && t < e.valueEnd && x("trapMouse", t - e.valueStart);
210
+ function ke(e) {
211
+ N.value = e, e >= t.valueStart && e < t.valueEnd && y("trapMouse", e - t.valueStart);
212
212
  }
213
- const Se = u(0), P = u(null), A = u(null);
214
- function F(t) {
215
- o.value = t, P.value && (P.value.value = t), x("update:start", Number(o.value));
213
+ const Ce = u(0), I = u(null), P = u(null);
214
+ function z(e) {
215
+ o.value = e, I.value && (I.value.value = e), y("update:start", Number(o.value));
216
216
  }
217
- function I(t) {
218
- r.value = t, A.value && (A.value.value = t), x("update:end", Number(r.value));
217
+ function A(e) {
218
+ r.value = e, P.value && (P.value.value = e), y("update:end", Number(r.value));
219
219
  }
220
- const z = s(() => e.valueEnd - e.valueStart), H = u(!1);
220
+ const F = s(() => t.valueEnd - t.valueStart), H = u(!1);
221
221
  let V = u(null);
222
- const ke = s(() => f.value ? (f.value.getBoundingClientRect().width - 48) / (e.max - e.min) : 20), Ce = s(() => (f.value.getBoundingClientRect().width - 48) / (e.max - e.min) * z.value), Ne = u(2.5), K = s(() => {
223
- const t = f.value.getBoundingClientRect().width - 48;
224
- return Math.ceil((e.max - e.min) / ((t - Ce.value) / Ne.value));
225
- }), Q = (t) => {
226
- if (C.value = !0, !e.enableSelectionDrag)
222
+ const $e = s(() => f.value ? (f.value.getBoundingClientRect().width - 48) / (t.max - t.min) : 20), Me = s(() => (f.value.getBoundingClientRect().width - 48) / (t.max - t.min) * F.value), Ne = u(2.5), K = s(() => {
223
+ const e = f.value.getBoundingClientRect().width - 48;
224
+ return Math.ceil((t.max - t.min) / ((e - Me.value) / Ne.value));
225
+ }), Q = (e) => {
226
+ if (C.value = !0, !t.enableSelectionDrag)
227
227
  return;
228
- const l = t.type === "touchstart";
229
- if ((l ? t.targetTouches[0].target : t.target).classList.contains("range-handle"))
228
+ const l = e.type === "touchstart";
229
+ if ((l ? e.targetTouches[0].target : e.target).classList.contains("range-handle"))
230
230
  return;
231
- H.value = !0, V.value = l ? t.targetTouches[0].clientX : t.clientX;
232
- const h = l ? Me : Y, S = l ? Re : ee;
231
+ H.value = !0, V.value = l ? e.targetTouches[0].clientX : e.clientX;
232
+ const h = l ? Re : Y, S = l ? Le : ee;
233
233
  window.addEventListener(l ? "touchmove" : "mousemove", h, { passive: !1 }), window.addEventListener(l ? "touchend" : "mouseup", S);
234
234
  };
235
- function Y(t) {
236
- _(t.clientX);
235
+ function Y(e) {
236
+ _(e.clientX);
237
237
  }
238
- function Me(t) {
239
- f.value.contains(t.target) && (t.target.classList.contains("range-handle") || (t.preventDefault(), _(t.targetTouches[0].clientX)));
238
+ function Re(e) {
239
+ f.value.contains(e.target) && (e.target.classList.contains("range-handle") || (e.preventDefault(), _(e.targetTouches[0].clientX)));
240
240
  }
241
- function _(t) {
241
+ function _(e) {
242
242
  if (!H.value) return;
243
- const l = t - V.value;
244
- if (Math.abs(l) > ke.value) {
243
+ const l = e - V.value;
244
+ if (Math.abs(l) > $e.value) {
245
245
  if (l > 0) {
246
- if (Number(r.value) + 1 <= e.max) {
247
- const n = Math.min(e.max, Number(r.value) + K.value);
248
- I(n), F(n - z.value);
246
+ if (Number(r.value) + 1 <= t.max) {
247
+ const n = Math.min(t.max, Number(r.value) + K.value);
248
+ A(n), z(n - F.value);
249
249
  }
250
- } else if (Number(o.value) - 1 >= e.min) {
250
+ } else if (Number(o.value) - 1 >= t.min) {
251
251
  const n = Math.max(0, Number(o.value) - K.value);
252
- F(n), I(n + z.value);
252
+ z(n), A(n + F.value);
253
253
  }
254
- V.value = t;
254
+ V.value = e;
255
255
  }
256
256
  }
257
257
  function ee() {
258
258
  te("mousemove", "mouseup");
259
259
  }
260
- function Re() {
260
+ function Le() {
261
261
  te("touchmove", "touchend");
262
262
  }
263
- function te(t, l) {
264
- H.value = !1, window.removeEventListener(t, Y), window.removeEventListener(l, ee);
263
+ function te(e, l) {
264
+ H.value = !1, window.removeEventListener(e, Y), window.removeEventListener(l, ee);
265
265
  }
266
266
  const k = u(!1), W = u(null), X = u(null), U = u(1), B = u(1), C = u(!1);
267
267
  function le() {
@@ -270,16 +270,20 @@ const Oe = {
270
270
  function ae() {
271
271
  X.value && (B.value = X.value.getBoundingClientRect().width);
272
272
  }
273
+ const ne = u(0);
274
+ function ie(e) {
275
+ ne.value = e === "start" ? 1 : 0;
276
+ }
273
277
  return Ae(() => {
274
278
  le(), ae();
275
- }), $(() => e.labelLeft, () => {
276
- ne(le);
277
- }, { deep: !0 }), $(() => e.labelRight, () => {
278
- ne(ae);
279
- }, { deep: !0 }), ce({
280
- setStartValue: F,
281
- setEndValue: I
282
- }), (t, l) => (m(), v("div", {
279
+ }), R(() => t.labelLeft, () => {
280
+ ue(le);
281
+ }, { deep: !0 }), R(() => t.labelRight, () => {
282
+ ue(ae);
283
+ }, { deep: !0 }), fe({
284
+ setStartValue: z,
285
+ setEndValue: A
286
+ }), (e, l) => (m(), v("div", {
283
287
  "data-html2canvas-ignore": "",
284
288
  style: { padding: "0 24px" },
285
289
  class: "vue-data-ui-zoom",
@@ -287,11 +291,11 @@ const Oe = {
287
291
  ref: f,
288
292
  onMousedown: Q,
289
293
  onTouchstart: Q,
290
- onTouchend: l[9] || (l[9] = (n) => C.value = !1)
294
+ onTouchend: l[11] || (l[11] = (n) => C.value = !1)
291
295
  }, [
292
- d("div", Oe, [
293
- a.valueStart !== a.refreshStartPoint || a.valueEnd !== fe.value ? (m(), v("div", Ge, [
294
- a.useResetSlot ? Fe(t.$slots, "reset-action", {
296
+ d("div", Ge, [
297
+ a.valueStart !== a.refreshStartPoint || a.valueEnd !== pe.value ? (m(), v("div", je, [
298
+ a.useResetSlot ? Fe(e.$slots, "reset-action", {
295
299
  key: 1,
296
300
  reset: J
297
301
  }, void 0, !0) : (m(), v("button", {
@@ -299,30 +303,30 @@ const Oe = {
299
303
  tabindex: "0",
300
304
  role: "button",
301
305
  class: "vue-data-ui-refresh-button",
302
- style: N({
306
+ style: $({
303
307
  top: M.value ? "36px" : "-16px",
304
308
  pointerEvents: "all !important"
305
309
  }),
306
310
  onClick: J
307
311
  }, [
308
- Ie(ze, {
312
+ He(Ve, {
309
313
  name: "refresh",
310
314
  stroke: a.textColor
311
315
  }, null, 8, ["stroke"])
312
316
  ], 4))
313
- ])) : b("", !0)
317
+ ])) : x("", !0)
314
318
  ]),
315
319
  d("div", {
316
320
  class: "double-range-slider",
317
321
  ref_key: "minimapWrapper",
318
322
  ref: T,
319
323
  style: { "z-index": "0" },
320
- onMouseenter: l[7] || (l[7] = (n) => C.value = !0),
321
- onMouseleave: l[8] || (l[8] = (n) => C.value = !1)
324
+ onMouseenter: l[9] || (l[9] = (n) => C.value = !0),
325
+ onMouseleave: l[10] || (l[10] = (n) => C.value = !1)
322
326
  }, [
323
- M.value ? (m(), v("div", je, [
327
+ M.value ? (m(), v("div", qe, [
324
328
  (m(), v("svg", {
325
- xmlns: G(Xe),
329
+ xmlns: Z(Oe),
326
330
  viewBox: `0 0 ${i.value.width < 0 ? 0 : i.value.width} ${i.value.height < 0 ? 0 : i.value.height}`
327
331
  }, [
328
332
  d("defs", null, [
@@ -336,12 +340,12 @@ const Oe = {
336
340
  d("stop", {
337
341
  offset: "0%",
338
342
  "stop-color": `${a.minimapLineColor}50`
339
- }, null, 8, Je),
340
- l[10] || (l[10] = d("stop", {
343
+ }, null, 8, Qe),
344
+ l[12] || (l[12] = d("stop", {
341
345
  offset: "100%",
342
346
  "stop-color": "transparent"
343
347
  }, null, -1))
344
- ], 8, qe)
348
+ ], 8, Ke)
345
349
  ]),
346
350
  d("path", {
347
351
  d: `M${g.value.fullSet}`,
@@ -351,7 +355,7 @@ const Oe = {
351
355
  "stroke-linecap": "round",
352
356
  "stroke-linejoin": "round",
353
357
  style: { opacity: "1" }
354
- }, null, 8, Ke),
358
+ }, null, 8, Ye),
355
359
  d("rect", {
356
360
  x: p.value.x,
357
361
  width: p.value.width < 0 ? 0 : p.value.width,
@@ -360,13 +364,13 @@ const Oe = {
360
364
  fill: w.value,
361
365
  rx: a.minimapSelectionRadius,
362
366
  stroke: "none"
363
- }, null, 8, Qe),
367
+ }, null, 8, _e),
364
368
  d("path", {
365
369
  d: `M${c.value / 2},${Math.max(i.value.height, 0)} ${g.value.fullSet} L${i.value.width - c.value / 2},${Math.max(i.value.height, 0)}Z`,
366
370
  fill: `url(#${D.value})`,
367
371
  stroke: "none",
368
372
  style: { opacity: "1" }
369
- }, null, 8, Ye),
373
+ }, null, 8, et),
370
374
  d("rect", {
371
375
  x: p.value.x,
372
376
  width: p.value.width < 0 ? 0 : p.value.width,
@@ -374,7 +378,7 @@ const Oe = {
374
378
  y: 0,
375
379
  rx: a.minimapSelectionRadius,
376
380
  fill: w.value
377
- }, null, 8, _e),
381
+ }, null, 8, tt),
378
382
  d("rect", {
379
383
  x: p.value.x,
380
384
  width: p.value.width < 0 ? 0 : p.value.width,
@@ -382,16 +386,16 @@ const Oe = {
382
386
  y: 0,
383
387
  fill: a.minimapSelectedColor,
384
388
  rx: a.minimapSelectionRadius,
385
- style: N({
389
+ style: $({
386
390
  opacity: a.minimapSelectedColorOpacity
387
391
  })
388
- }, null, 12, et),
392
+ }, null, 12, lt),
389
393
  d("path", {
390
394
  d: `M${g.value.sliced[0].x},${Math.max(i.value.height, 0)} ${g.value.selectionSet} L${g.value.sliced.at(-1).x},${Math.max(i.value.height, 0)}Z`,
391
395
  fill: `url(#${D.value})`,
392
396
  stroke: "none",
393
397
  style: { opacity: "1" }
394
- }, null, 8, tt),
398
+ }, null, 8, at),
395
399
  d("path", {
396
400
  d: `M ${g.value.selectionSet}`,
397
401
  stroke: `${a.minimapLineColor}`,
@@ -399,7 +403,7 @@ const Oe = {
399
403
  "stroke-width": "2",
400
404
  "stroke-linecap": "round",
401
405
  "stroke-linejoin": "round"
402
- }, null, 8, lt),
406
+ }, null, 8, nt),
403
407
  d("circle", {
404
408
  cx: g.value.firstPlot.x,
405
409
  cy: g.value.firstPlot.y,
@@ -407,7 +411,7 @@ const Oe = {
407
411
  stroke: w.value,
408
412
  r: "3",
409
413
  fill: a.minimapLineColor
410
- }, null, 8, at),
414
+ }, null, 8, it),
411
415
  d("circle", {
412
416
  cx: g.value.lastPlot.x,
413
417
  cy: g.value.lastPlot.y,
@@ -415,9 +419,9 @@ const Oe = {
415
419
  stroke: w.value,
416
420
  r: "3",
417
421
  fill: a.minimapLineColor
418
- }, null, 8, nt),
419
- R.value !== null ? (m(!0), v(ue, { key: 0 }, oe(q.value, (n, h) => (m(), v("g", null, [
420
- R.value === n && n >= a.valueStart && n < a.valueEnd ? (m(), v("line", {
422
+ }, null, 8, ut),
423
+ N.value !== null ? (m(!0), v(re, { key: 0 }, se(q.value, (n, h) => (m(), v("g", null, [
424
+ N.value === n && n >= a.valueStart && n < a.valueEnd ? (m(), v("line", {
421
425
  key: 0,
422
426
  x1: c.value * h + c.value / 2,
423
427
  x2: c.value * h + c.value / 2,
@@ -427,27 +431,27 @@ const Oe = {
427
431
  "stroke-linecap": "round",
428
432
  "stroke-dasharray": "2",
429
433
  "stroke-width": "1"
430
- }, null, 8, it)) : b("", !0)
431
- ]))), 256)) : b("", !0),
432
- (m(!0), v(ue, null, oe(q.value, (n, h) => (m(), v("rect", {
434
+ }, null, 8, ot)) : x("", !0)
435
+ ]))), 256)) : x("", !0),
436
+ (m(!0), v(re, null, se(q.value, (n, h) => (m(), v("rect", {
433
437
  x: c.value * h,
434
438
  y: 0,
435
439
  height: Math.max(i.value.height, 0),
436
440
  width: c.value < 0 ? 0 : c.value,
437
441
  fill: "transparent",
438
- style: N([{ "pointer-events": "all !important" }, {
442
+ style: $([{ "pointer-events": "all !important" }, {
439
443
  cursor: n >= a.valueStart && n < a.valueEnd && a.enableSelectionDrag ? k.value ? "grabbing" : "grab" : "default"
440
444
  }]),
441
445
  onMousedown: l[0] || (l[0] = (S) => k.value = !0),
442
446
  onMouseup: l[1] || (l[1] = (S) => k.value = !1),
443
- onMouseenter: (S) => we(n),
447
+ onMouseenter: (S) => ke(n),
444
448
  onMouseleave: l[2] || (l[2] = (S) => {
445
- R.value = null, x("trapMouse", null);
449
+ N.value = null, y("trapMouse", null);
446
450
  })
447
- }, null, 44, ut))), 256))
448
- ], 8, Ze))
449
- ])) : b("", !0),
450
- l[11] || (l[11] = d("div", { class: "slider-track" }, null, -1)),
451
+ }, null, 44, rt))), 256))
452
+ ], 8, Je))
453
+ ])) : x("", !0),
454
+ l[13] || (l[13] = d("div", { class: "slider-track" }, null, -1)),
451
455
  d("div", {
452
456
  class: L({
453
457
  "range-highlight": !0,
@@ -455,37 +459,39 @@ const Oe = {
455
459
  }),
456
460
  onMousedown: l[3] || (l[3] = (n) => k.value = !0),
457
461
  onMouseup: l[4] || (l[4] = (n) => k.value = !1),
458
- style: N({
459
- ...y.value,
462
+ style: $({
463
+ ...b.value,
460
464
  cursor: k.value ? "grabbing" : "grab"
461
465
  })
462
466
  }, null, 38),
463
- a.enableRangeHandles ? ie((m(), v("input", {
467
+ a.enableRangeHandles ? oe((m(), v("input", {
464
468
  ref_key: "rangeStart",
465
- ref: P,
466
- key: `range-min${Se.value}`,
469
+ ref: I,
470
+ key: `range-min${Ce.value}`,
467
471
  type: "range",
468
472
  class: L({ "range-left": !0, "range-handle": !0, "range-minimap": M.value && a.verticalHandles }),
469
473
  min: a.min,
470
474
  max: a.max,
471
475
  "onUpdate:modelValue": l[5] || (l[5] = (n) => o.value = n),
472
- onInput: xe
473
- }, null, 42, ot)), [
474
- [re, o.value]
475
- ]) : b("", !0),
476
- a.enableRangeHandles ? ie((m(), v("input", {
476
+ onInput: we,
477
+ onMouseenter: l[6] || (l[6] = (n) => ie("start"))
478
+ }, null, 42, st)), [
479
+ [de, o.value]
480
+ ]) : x("", !0),
481
+ a.enableRangeHandles ? oe((m(), v("input", {
477
482
  key: 2,
478
483
  ref_key: "rangeEnd",
479
- ref: A,
484
+ ref: P,
480
485
  type: "range",
481
486
  class: L({ "range-right": !0, "range-handle": !0, "range-minimap": M.value && a.verticalHandles }),
482
487
  min: a.min,
483
488
  max: a.max,
484
- "onUpdate:modelValue": l[6] || (l[6] = (n) => r.value = n),
485
- onInput: ye
486
- }, null, 42, rt)), [
487
- [re, r.value]
488
- ]) : b("", !0),
489
+ "onUpdate:modelValue": l[7] || (l[7] = (n) => r.value = n),
490
+ onInput: Se,
491
+ onMouseenter: l[8] || (l[8] = (n) => ie("end"))
492
+ }, null, 42, dt)), [
493
+ [de, r.value]
494
+ ]) : x("", !0),
489
495
  a.labelLeft ? (m(), v("div", {
490
496
  key: 3,
491
497
  ref_key: "tooltipLeft",
@@ -493,16 +499,17 @@ const Oe = {
493
499
  class: L({
494
500
  "range-tooltip": !0,
495
501
  "range-tooltip-visible": C.value,
496
- "range-tooltip-arrow": y.value.arrowLeft && !a.verticalHandles,
497
- "range-tooltip-arrow-left": !y.value.arrowLeft && !a.verticalHandles
502
+ "range-tooltip-arrow": b.value.arrowLeft && !a.verticalHandles,
503
+ "range-tooltip-arrow-left": !b.value.arrowLeft && !a.verticalHandles
498
504
  }),
499
- style: N({
500
- left: y.value.tooltipLeft,
501
- color: G(me)(a.selectColor),
505
+ style: $({
506
+ left: b.value.tooltipLeft,
507
+ color: Z(he)(a.selectColor),
502
508
  backgroundColor: a.selectColor,
503
- border: `1px solid ${w.value}`
509
+ border: `1px solid ${w.value}`,
510
+ zIndex: `${ne.value + 4}`
504
511
  })
505
- }, se(a.labelLeft), 7)) : b("", !0),
512
+ }, ve(a.labelLeft), 7)) : x("", !0),
506
513
  a.labelRight ? (m(), v("div", {
507
514
  key: 4,
508
515
  ref_key: "tooltipRight",
@@ -510,20 +517,21 @@ const Oe = {
510
517
  class: L({
511
518
  "range-tooltip": !0,
512
519
  "range-tooltip-visible": C.value,
513
- "range-tooltip-arrow": y.value.arrowRight && !a.verticalHandles,
514
- "range-tooltip-arrow-right": !y.value.arrowRight && !a.verticalHandles
520
+ "range-tooltip-arrow": b.value.arrowRight && !a.verticalHandles,
521
+ "range-tooltip-arrow-right": !b.value.arrowRight && !a.verticalHandles
515
522
  }),
516
- style: N({
517
- left: y.value.tooltipRight,
518
- color: G(me)(a.selectColor),
523
+ style: $({
524
+ left: b.value.tooltipRight,
525
+ color: Z(he)(a.selectColor),
519
526
  backgroundColor: a.selectColor,
520
- border: `1px solid ${w.value}`
527
+ border: `1px solid ${w.value}`,
528
+ zIndex: "4"
521
529
  })
522
- }, se(a.labelRight), 7)) : b("", !0)
530
+ }, ve(a.labelRight), 7)) : x("", !0)
523
531
  ], 544)
524
532
  ], 544));
525
533
  }
526
- }, ft = /* @__PURE__ */ Ue(st, [["__scopeId", "data-v-a64f4070"]]);
534
+ }, pt = /* @__PURE__ */ Ze(vt, [["__scopeId", "data-v-04e0735b"]]);
527
535
  export {
528
- ft as S
536
+ pt as S
529
537
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),xe=require("./BaseIcon-Db1HIrAt.cjs"),Y=require("./useResponsive-N8jl0-aC.cjs"),f=require("./index-CBRI5uwl.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},ke={key:0,style:{width:"100%",position:"relative"}},we={key:0,class:"minimap",style:{width:"100%"}},Se=["xmlns","viewBox"],Ne=["id"],Ce=["stop-color"],Ee=["d","stroke"],Be=["x","width","height","fill","rx"],Me=["d","fill"],$e=["x","width","height","rx","fill"],Re=["x","width","height","fill","rx"],Le=["d","fill"],Ve=["d","stroke"],ze=["cx","cy","stroke","fill"],De=["cx","cy","stroke","fill"],Te=["x1","x2","y2","stroke"],Pe=["x","height","width","onMouseenter"],Ie=["min","max"],Fe=["min","max"],Ae={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:"#2D353C"},refreshStartPoint:{type:Number,default:0},refreshEndPoint:{type:Number,default:null},enableRangeHandles:{type:Boolean,default:!1},enableSelectionDrag:{type:Boolean,default:!0},verticalHandles:{type:Boolean,default:!1}},emits:["update:start","update:end","reset","trapMouse"],setup(n,{expose:_,emit:ee}){e.useCssVars(t=>({a9eaaa56:le.value,43003349:p.value,"084765fa":ne.value,23357479:n.selectColor,"3d8e0af2":ae.value}));const l=n,c=e.ref(null),u=e.ref(l.min),r=e.ref(l.max),k=e.computed(()=>!!l.minimap.length),C=e.ref(f.createUid()),te=e.computed(()=>l.refreshEndPoint===null?l.max:l.refreshEndPoint),h=ee,g=e.computed(()=>{const t=l.max-l.min,a=(u.value-l.min)/t*100,o=(r.value-l.min)/t*100;return{left:`${a}%`,width:`${o-a}%`,background:l.selectColor,tooltipLeft:`calc(${a}% - ${F.value?0:P.value/2}px)`,tooltipRight:`calc(${o}% - ${A.value?N.value:N.value/2}px)`,arrowLeft:!F.value,arrowRight:!A.value}}),F=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((u.value-l.min)/(l.max-l.min))-P.value/2<0:!1),A=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((r.value-l.min)/(l.max-l.min))+N.value/2>c.value.getBoundingClientRect().width:!1),le=e.computed(()=>l.inputColor),ae=e.computed(()=>l.background),ne=e.computed(()=>`${l.selectColor}33`),p=e.computed(()=>l.borderColor),H=e.computed(()=>{let t=[];for(let a=0;a<l.minimap.length;a+=1)t.push(a);return t});function W(){h("reset")}function oe(){Number(u.value)>Number(r.value)-1&&(u.value=Number(r.value)-1),h("update:start",Number(u.value))}function ie(){Number(r.value)<Number(u.value)+1&&(r.value=Number(u.value)+1),h("update:end",Number(r.value))}e.watch(()=>l.min,t=>{Number(u.value)<Number(t)&&(u.value=Number(t)),Number(r.value)<Number(t)&&(r.value=Number(t))}),e.watch(()=>l.max,t=>{Number(u.value)>Number(t)&&(u.value=Number(t)),Number(r.value)>Number(t)&&(r.value=Number(t))});const E=e.ref(null),i=e.ref({width:1,height:1}),S=e.ref(null);e.onMounted(()=>{if(k.value){const t=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:E.value});i.value.width=a,i.value.height=o-47});S.value=new ResizeObserver(t),S.value.observe(E.value)}}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const s=e.computed(()=>l.minimap.length?i.value.width/l.minimap.length:0),m=e.computed(()=>{if(!l.minimap.length)return[];const t=Math.max(...l.minimap),a=Math.min(...l.minimap)-10,o=t-(a>0?0:a),d=l.minimap.map((he,ge)=>{const pe=he-a;return{x:i.value.width/l.minimap.length*ge+s.value/2,y:i.value.height-pe/o*(i.value.height*.9)}}),x=l.smoothMinimap?f.createSmoothPath(d):f.createStraightPath(d),I=[...d].slice(l.valueStart,l.valueEnd),fe=l.smoothMinimap?f.createSmoothPath(I):f.createStraightPath(I);return{fullSet:x,selectionSet:fe,sliced:I,firstPlot:d[l.valueStart],lastPlot:d[l.valueEnd-1]}}),v=e.computed(()=>({x:s.value*u.value+s.value/2,width:i.value.width*((r.value-u.value)/l.max)-s.value})),w=e.ref(l.minimapSelectedIndex);e.watch(()=>l.minimapSelectedIndex,t=>{w.value=t+l.valueStart},{immediate:!0});function ue(t){w.value=t,t>=l.valueStart&&t<l.valueEnd&&h("trapMouse",t-l.valueStart)}const re=e.ref(0),B=e.ref(null),M=e.ref(null);function $(t){u.value=t,B.value&&(B.value.value=t),h("update:start",Number(u.value))}function R(t){r.value=t,M.value&&(M.value.value=t),h("update:end",Number(r.value))}const L=e.computed(()=>l.valueEnd-l.valueStart),V=e.ref(!1);let z=e.ref(null);const se=e.computed(()=>c.value?(c.value.getBoundingClientRect().width-48)/(l.max-l.min):20),de=e.computed(()=>(c.value.getBoundingClientRect().width-48)/(l.max-l.min)*L.value),ce=e.ref(2.5),X=e.computed(()=>{const t=c.value.getBoundingClientRect().width-48;return Math.ceil((l.max-l.min)/((t-de.value)/ce.value))}),q=t=>{if(b.value=!0,!l.enableSelectionDrag)return;const a=t.type==="touchstart";if((a?t.targetTouches[0].target:t.target).classList.contains("range-handle"))return;V.value=!0,z.value=a?t.targetTouches[0].clientX:t.clientX;const d=a?me:U,x=a?ve:Z;window.addEventListener(a?"touchmove":"mousemove",d,{passive:!1}),window.addEventListener(a?"touchend":"mouseup",x)};function U(t){O(t.clientX)}function me(t){c.value.contains(t.target)&&(t.target.classList.contains("range-handle")||(t.preventDefault(),O(t.targetTouches[0].clientX)))}function O(t){if(!V.value)return;const a=t-z.value;if(Math.abs(a)>se.value){if(a>0){if(Number(r.value)+1<=l.max){const o=Math.min(l.max,Number(r.value)+X.value);R(o),$(o-L.value)}}else if(Number(u.value)-1>=l.min){const o=Math.max(0,Number(u.value)-X.value);$(o),R(o+L.value)}z.value=t}}function Z(){j("mousemove","mouseup")}function ve(){j("touchmove","touchend")}function j(t,a){V.value=!1,window.removeEventListener(t,U),window.removeEventListener(a,Z)}const y=e.ref(!1),D=e.ref(null),T=e.ref(null),P=e.ref(1),N=e.ref(1),b=e.ref(!1);function G(){D.value&&(P.value=D.value.getBoundingClientRect().width)}function J(){T.value&&(N.value=T.value.getBoundingClientRect().width)}const K=e.ref(0);function Q(t){K.value=t==="start"?1:0}return e.onUpdated(()=>{G(),J()}),e.watch(()=>l.labelLeft,()=>{e.nextTick(G)},{deep:!0}),e.watch(()=>l.labelRight,()=>{e.nextTick(J)},{deep:!0}),_({setStartValue:$,setEndValue:R}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:c,onMousedown:q,onTouchstart:q,onTouchend:a[11]||(a[11]=o=>b.value=!1)},[e.createElementVNode("div",be,[n.valueStart!==n.refreshStartPoint||n.valueEnd!==te.value?(e.openBlock(),e.createElementBlock("div",ke,[n.useResetSlot?e.renderSlot(t.$slots,"reset-action",{key:1,reset:W},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:k.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:W},[e.createVNode(xe.default,{name:"refresh",stroke:n.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:E,style:{"z-index":"0"},onMouseenter:a[9]||(a[9]=o=>b.value=!0),onMouseleave:a[10]||(a[10]=o=>b.value=!1)},[k.value?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(f.XMLNS),viewBox:`0 0 ${i.value.width<0?0:i.value.width} ${i.value.height<0?0:i.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:C.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${n.minimapLineColor}50`},null,8,Ce),a[12]||(a[12]=e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1))],8,Ne)]),e.createElementVNode("path",{d:`M${m.value.fullSet}`,stroke:`${n.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,Ee),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:p.value,rx:n.minimapSelectionRadius,stroke:"none"},null,8,Be),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(i.value.height,0)} ${m.value.fullSet} L${i.value.width-s.value/2},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Me),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,rx:n.minimapSelectionRadius,fill:p.value},null,8,$e),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:n.minimapSelectedColor,rx:n.minimapSelectionRadius,style:e.normalizeStyle({opacity:n.minimapSelectedColorOpacity})},null,12,Re),e.createElementVNode("path",{d:`M${m.value.sliced[0].x},${Math.max(i.value.height,0)} ${m.value.selectionSet} L${m.value.sliced.at(-1).x},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Le),e.createElementVNode("path",{d:`M ${m.value.selectionSet}`,stroke:`${n.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ve),e.createElementVNode("circle",{cx:m.value.firstPlot.x,cy:m.value.firstPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,ze),e.createElementVNode("circle",{cx:m.value.lastPlot.x,cy:m.value.lastPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,De),w.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("g",null,[w.value===o&&o>=n.valueStart&&o<n.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*d+s.value/2,x2:s.value*d+s.value/2,y1:0,y2:Math.max(i.value.height,0),stroke:n.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,Te)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:Math.max(i.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:e.normalizeStyle([{"pointer-events":"all !important"},{cursor:o>=n.valueStart&&o<n.valueEnd&&n.enableSelectionDrag?y.value?"grabbing":"grab":"default"}]),onMousedown:a[0]||(a[0]=x=>y.value=!0),onMouseup:a[1]||(a[1]=x=>y.value=!1),onMouseenter:x=>ue(o),onMouseleave:a[2]||(a[2]=x=>{w.value=null,h("trapMouse",null)})},null,44,Pe))),256))],8,Se))])):e.createCommentVNode("",!0),a[13]||(a[13]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass({"range-highlight":!0,move:n.enableSelectionDrag}),onMousedown:a[3]||(a[3]=o=>y.value=!0),onMouseup:a[4]||(a[4]=o=>y.value=!1),style:e.normalizeStyle({...g.value,cursor:y.value?"grabbing":"grab"})},null,38),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:B,key:`range-min${re.value}`,type:"range",class:e.normalizeClass({"range-left":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[5]||(a[5]=o=>u.value=o),onInput:oe,onMouseenter:a[6]||(a[6]=o=>Q("start"))},null,42,Ie)),[[e.vModelText,u.value]]):e.createCommentVNode("",!0),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"rangeEnd",ref:M,type:"range",class:e.normalizeClass({"range-right":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[7]||(a[7]=o=>r.value=o),onInput:ie,onMouseenter:a[8]||(a[8]=o=>Q("end"))},null,42,Fe)),[[e.vModelText,r.value]]):e.createCommentVNode("",!0),n.labelLeft?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"tooltipLeft",ref:D,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowLeft&&!n.verticalHandles,"range-tooltip-arrow-left":!g.value.arrowLeft&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipLeft,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:`${K.value+4}`})},e.toDisplayString(n.labelLeft),7)):e.createCommentVNode("",!0),n.labelRight?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"tooltipRight",ref:T,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowRight&&!n.verticalHandles,"range-tooltip-arrow-right":!g.value.arrowRight&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipRight,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:"4"})},e.toDisplayString(n.labelRight),7)):e.createCommentVNode("",!0)],544)],544))}},He=ye._export_sfc(Ae,[["__scopeId","data-v-04e0735b"]]);exports.Slicer=He;