vue-data-ui 2.4.15 → 2.4.17

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 (151) hide show
  1. package/dist/{Arrow-ChrPMCIE.js → Arrow-BgooI-wc.js} +1 -1
  2. package/dist/{Arrow-BCKnYufb.cjs → Arrow-BiEdEdKA.cjs} +1 -1
  3. package/dist/{BaseIcon-CSptCx3b.js → BaseIcon-CEx6ctvt.js} +4 -3
  4. package/dist/{BaseIcon-rMg8xfhX.cjs → BaseIcon-CQHXoBmk.cjs} +1 -1
  5. package/dist/{DataTable-CRmILZBX.cjs → DataTable-C74ri0a_.cjs} +1 -1
  6. package/dist/{DataTable-Cccy3rvu.js → DataTable-DJmlLvjT.js} +2 -2
  7. package/dist/{Legend-CfcLlhaP.js → Legend-0dYtOzjh.js} +1 -1
  8. package/dist/{Legend-Dx7YB-Bt.cjs → Legend-CUAzd-58.cjs} +1 -1
  9. package/dist/{PackageVersion-CiFF5PGi.js → PackageVersion-7ZWPzzBh.js} +1 -1
  10. package/dist/{PackageVersion-B34JcKhO.cjs → PackageVersion-PUrYDB1r.cjs} +1 -1
  11. package/dist/PenAndPaper-BsJfhJzx.js +415 -0
  12. package/dist/PenAndPaper-DtXID4bK.cjs +1 -0
  13. package/dist/{Shape-HKyyToSG.js → Shape-ChZqBrYp.js} +1 -1
  14. package/dist/{Shape-JdI6ZCm8.cjs → Shape-hk-jLUhF.cjs} +1 -1
  15. package/dist/Slicer-BaAgNYLm.cjs +1 -0
  16. package/dist/{Slicer-Dgnj8x-K.js → Slicer-brJjwFit.js} +32 -31
  17. package/dist/{Title-CExB31p9.cjs → Title-BNQkXAzp.cjs} +1 -1
  18. package/dist/{Title-BYSs_RNw.js → Title-Z9WyiszR.js} +1 -1
  19. package/dist/{Tooltip-CLsCXPX_.cjs → Tooltip-Ba-UwAPn.cjs} +1 -1
  20. package/dist/{Tooltip-CZd_cGTh.js → Tooltip-CrQVdepY.js} +1 -1
  21. package/dist/{index-XO811G4S.js → index-CsO-G1pF.js} +1 -1
  22. package/dist/{index-kr_QwGDL.cjs → index-JhKFCmMY.cjs} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +1 -1
  25. package/dist/types/vue-data-ui.d.ts +1 -1
  26. package/dist/{useNestedProp-LP4oR6kx.js → useNestedProp-25bpPEIJ.js} +1 -1
  27. package/dist/{useNestedProp-DCTYscDQ.cjs → useNestedProp-DMCwXhe0.cjs} +1 -1
  28. package/dist/{usePrinter-DnY533x9.cjs → usePrinter-CnFnzxGv.cjs} +1 -1
  29. package/dist/{usePrinter-CsX9yzzX.js → usePrinter-CtEmFGMi.js} +3 -2
  30. package/dist/{vue-data-ui-DxuS01kK.js → vue-data-ui-DDgRwcAN.js} +58 -58
  31. package/dist/{vue-data-ui-DuqyXh3Z.cjs → vue-data-ui-DF-QMzBK.cjs} +1 -1
  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-BcY_qYRY.js → vue-ui-3d-bar-B3KrSswQ.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-46IqOg67.cjs → vue-ui-3d-bar-_bO04BXS.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-DvWhOtea.js → vue-ui-accordion-BtZB8yRU.js} +3 -3
  37. package/dist/{vue-ui-accordion-Cc1lCYCG.cjs → vue-ui-accordion-BzagHU05.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-iHGxmPqt.js → vue-ui-age-pyramid-DMH90WOX.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-CfCFWXzM.cjs → vue-ui-age-pyramid-DZE_Luus.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-BUiIefjR.cjs → vue-ui-annotator-CBRuEmOr.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-CS09PEb4.js → vue-ui-annotator-CM4DLW56.js} +1 -1
  42. package/dist/{vue-ui-bullet-DifOvgtE.js → vue-ui-bullet-BMzsVdyl.js} +8 -8
  43. package/dist/{vue-ui-bullet-EzXv2sWS.cjs → vue-ui-bullet-DwikQ6ju.cjs} +1 -1
  44. package/dist/{vue-ui-candlestick-DByuzyzO.js → vue-ui-candlestick-C4KIT4W6.js} +11 -11
  45. package/dist/{vue-ui-candlestick-CUGe6R39.cjs → vue-ui-candlestick-ZRDcdb9z.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-DDRFUlqH.js → vue-ui-carousel-table-CapfJdG3.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-DPLphRGv.cjs → vue-ui-carousel-table-D1rgIysD.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-0ZG6Eg8o.js → vue-ui-chestnut-BctCM0TL.js} +8 -8
  49. package/dist/{vue-ui-chestnut-_pU4PH9Y.cjs → vue-ui-chestnut-Rf6rE0bl.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-Ci3pOLTZ.cjs → vue-ui-cursor-DusyAVsS.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-BL-euH7c.js → vue-ui-cursor-kBcjSphL.js} +2 -2
  52. package/dist/{vue-ui-dashboard-ZJ8u97Qf.js → vue-ui-dashboard-BB3sVDvV.js} +2 -2
  53. package/dist/{vue-ui-dashboard-1--C3XNW.cjs → vue-ui-dashboard-Cjb73tir.cjs} +1 -1
  54. package/dist/{vue-ui-digits-C5O9vZxI.cjs → vue-ui-digits-B6yFqYC9.cjs} +1 -1
  55. package/dist/{vue-ui-digits-CMskyA7T.js → vue-ui-digits-CPJa5ClB.js} +2 -2
  56. package/dist/{vue-ui-donut-CX41zowC.js → vue-ui-donut-DpuLbPWE.js} +11 -11
  57. package/dist/{vue-ui-donut-BNiP18Il.cjs → vue-ui-donut-WgY1gAoH.cjs} +1 -1
  58. package/dist/{vue-ui-donut-evolution-QV1JE3Fo.js → vue-ui-donut-evolution-B1bmT1Hn.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-vqZF9YJJ.cjs → vue-ui-donut-evolution-Be1DcKCD.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-DxhJJy_r.js → vue-ui-dumbbell-BJlCo1Uu.js} +10 -10
  61. package/dist/{vue-ui-dumbbell-BY4NAOG1.cjs → vue-ui-dumbbell-DS694H2W.cjs} +1 -1
  62. package/dist/{vue-ui-flow-DBBfBgUK.cjs → vue-ui-flow-DNkEPzD8.cjs} +1 -1
  63. package/dist/{vue-ui-flow-DjydJgwR.js → vue-ui-flow-YQQjRjZJ.js} +9 -9
  64. package/dist/{vue-ui-galaxy-CtcRy5Ij.js → vue-ui-galaxy-CWBoQCBu.js} +11 -11
  65. package/dist/{vue-ui-galaxy-VSr_DAmu.cjs → vue-ui-galaxy-wXWBDBN3.cjs} +1 -1
  66. package/dist/{vue-ui-gauge-BjmS4qFe.js → vue-ui-gauge-BpMaui2R.js} +7 -7
  67. package/dist/{vue-ui-gauge-IvNa_DR8.cjs → vue-ui-gauge-CkLScLiT.cjs} +1 -1
  68. package/dist/{vue-ui-gizmo-BzLy3mWD.js → vue-ui-gizmo-CW3i7sGH.js} +3 -3
  69. package/dist/{vue-ui-gizmo-DgANbqmC.cjs → vue-ui-gizmo-CW42uCmT.cjs} +1 -1
  70. package/dist/{vue-ui-heatmap-Bvej9oTA.js → vue-ui-heatmap-CmYLqA2_.js} +10 -10
  71. package/dist/{vue-ui-heatmap-yQSNz-vk.cjs → vue-ui-heatmap-CsmYL0Gt.cjs} +1 -1
  72. package/dist/{vue-ui-kpi-9eMhWuJa.cjs → vue-ui-kpi-CDgSrb5w.cjs} +1 -1
  73. package/dist/{vue-ui-kpi-B08Q3iHK.js → vue-ui-kpi-rbngmyhG.js} +3 -3
  74. package/dist/{vue-ui-mini-loader-BdW1vPkj.cjs → vue-ui-mini-loader-CPT6mWRI.cjs} +1 -1
  75. package/dist/{vue-ui-mini-loader-CA8Jh2xW.js → vue-ui-mini-loader-Xs2haGP9.js} +2 -2
  76. package/dist/{vue-ui-molecule-oCNTo9qq.cjs → vue-ui-molecule--p_0nckO.cjs} +1 -1
  77. package/dist/{vue-ui-molecule-JzIu9Xhu.js → vue-ui-molecule-CaQBNkoU.js} +11 -11
  78. package/dist/{vue-ui-mood-radar-D4MmvJeX.cjs → vue-ui-mood-radar-BrPCZMj9.cjs} +1 -1
  79. package/dist/{vue-ui-mood-radar-BlUEjpq1.js → vue-ui-mood-radar-Bxhit8iq.js} +11 -11
  80. package/dist/{vue-ui-nested-donuts-Di7bDbya.js → vue-ui-nested-donuts-CKtSdQxL.js} +11 -11
  81. package/dist/{vue-ui-nested-donuts-D1vpqiqh.cjs → vue-ui-nested-donuts-Db2PRZa7.cjs} +1 -1
  82. package/dist/{vue-ui-onion-BuxtifKO.js → vue-ui-onion-BcOvRLKd.js} +11 -11
  83. package/dist/{vue-ui-onion-D73_4ozI.cjs → vue-ui-onion-BiUueMU9.cjs} +1 -1
  84. package/dist/{vue-ui-parallel-coordinate-plot-B5gOiDmN.cjs → vue-ui-parallel-coordinate-plot-BHCgCkBU.cjs} +1 -1
  85. package/dist/{vue-ui-parallel-coordinate-plot-D984zizH.js → vue-ui-parallel-coordinate-plot-DbHskdgm.js} +12 -12
  86. package/dist/{vue-ui-quadrant-qXlDTKps.cjs → vue-ui-quadrant-Cnq1XIho.cjs} +1 -1
  87. package/dist/{vue-ui-quadrant-1lD2dgpm.js → vue-ui-quadrant-CtuAUQHm.js} +12 -12
  88. package/dist/{vue-ui-quick-chart-A78wO49s.js → vue-ui-quick-chart-BCMuGPxx.js} +9 -9
  89. package/dist/{vue-ui-quick-chart-BYL-VfNK.cjs → vue-ui-quick-chart-XjXvGQNl.cjs} +1 -1
  90. package/dist/{vue-ui-radar-D3KbMPY7.js → vue-ui-radar-CR5lnsBF.js} +12 -12
  91. package/dist/{vue-ui-radar-DXcRNCAa.cjs → vue-ui-radar-vd7jmG3_.cjs} +1 -1
  92. package/dist/{vue-ui-rating-rjjSmIEJ.cjs → vue-ui-rating-BdrnxDIT.cjs} +1 -1
  93. package/dist/{vue-ui-rating-CnkBBFHV.js → vue-ui-rating-CQUodqSb.js} +2 -2
  94. package/dist/{vue-ui-relation-circle-CZ_FS4Hd.js → vue-ui-relation-circle-BdEcYARl.js} +7 -7
  95. package/dist/{vue-ui-relation-circle-DtPwUZGn.cjs → vue-ui-relation-circle-DF32fFox.cjs} +1 -1
  96. package/dist/{vue-ui-rings-BMwEdEke.cjs → vue-ui-rings-BBLgEk93.cjs} +1 -1
  97. package/dist/{vue-ui-rings-ByRA0qd4.js → vue-ui-rings-DCBGDVf5.js} +11 -11
  98. package/dist/{vue-ui-scatter-BXpXY86w.js → vue-ui-scatter-BZLWG9bi.js} +12 -12
  99. package/dist/{vue-ui-scatter-Cpjy_MXZ.cjs → vue-ui-scatter-D_Khm-rp.cjs} +1 -1
  100. package/dist/{vue-ui-screenshot-CLTmzBUl.js → vue-ui-screenshot-Cgc1JoWv.js} +1 -1
  101. package/dist/{vue-ui-screenshot-BjEmpeGQ.cjs → vue-ui-screenshot-D_2j2r97.cjs} +1 -1
  102. package/dist/{vue-ui-skeleton-B-eJiyiK.js → vue-ui-skeleton-3YuwK-KB.js} +3 -3
  103. package/dist/{vue-ui-skeleton-BFwKDNWk.cjs → vue-ui-skeleton-a45Gy93x.cjs} +1 -1
  104. package/dist/{vue-ui-smiley-DPT05g_d.js → vue-ui-smiley-BJR30dUE.js} +2 -2
  105. package/dist/{vue-ui-smiley-B0aRXyCK.cjs → vue-ui-smiley-BMV3HTk4.cjs} +1 -1
  106. package/dist/{vue-ui-spark-trend-ciVsjAVV.js → vue-ui-spark-trend-DY_173Pe.js} +5 -5
  107. package/dist/{vue-ui-spark-trend-DFhBUPgA.cjs → vue-ui-spark-trend-o0BwOR35.cjs} +1 -1
  108. package/dist/{vue-ui-sparkbar-DXwlMAdA.cjs → vue-ui-sparkbar-DdXGpzCX.cjs} +1 -1
  109. package/dist/{vue-ui-sparkbar-7G6NJ6jC.js → vue-ui-sparkbar-f7BFoFY-.js} +4 -4
  110. package/dist/{vue-ui-sparkgauge-DtL-EHgS.js → vue-ui-sparkgauge-BqHNW_iR.js} +4 -4
  111. package/dist/{vue-ui-sparkgauge-RLpXQQdL.cjs → vue-ui-sparkgauge-C2f4RdUr.cjs} +1 -1
  112. package/dist/{vue-ui-sparkhistogram-CBabO6KY.js → vue-ui-sparkhistogram-CI27O9Z5.js} +5 -5
  113. package/dist/{vue-ui-sparkhistogram-C05pVLX4.cjs → vue-ui-sparkhistogram-Dpk9kLuE.cjs} +1 -1
  114. package/dist/{vue-ui-sparkline-CGpCbxYp.js → vue-ui-sparkline-QF5hPJRY.js} +4 -4
  115. package/dist/{vue-ui-sparkline-Dzx9vneB.cjs → vue-ui-sparkline-QGxTg9Wu.cjs} +1 -1
  116. package/dist/{vue-ui-sparkstackbar-BvvoP0Hr.cjs → vue-ui-sparkstackbar-DiTAymYt.cjs} +1 -1
  117. package/dist/{vue-ui-sparkstackbar-0XJ1y_hw.js → vue-ui-sparkstackbar-Fv27es3Y.js} +5 -5
  118. package/dist/{vue-ui-stackbar-S4ZxRQNf.cjs → vue-ui-stackbar-CmwredTQ.cjs} +1 -1
  119. package/dist/{vue-ui-stackbar-RxoRAQV1.js → vue-ui-stackbar-DXRdE9gQ.js} +12 -12
  120. package/dist/{vue-ui-strip-plot-6Zxs0p_t.cjs → vue-ui-strip-plot-Cv8hjBqK.cjs} +1 -1
  121. package/dist/{vue-ui-strip-plot-Dd7unCwX.js → vue-ui-strip-plot-CwZ074tx.js} +11 -11
  122. package/dist/{vue-ui-table-DZLcx9jA.js → vue-ui-table-BX0aQnsN.js} +1 -1
  123. package/dist/{vue-ui-table-CSEZc0DF.cjs → vue-ui-table-CMx4FAti.cjs} +1 -1
  124. package/dist/{vue-ui-table-heatmap-BA9KsnPZ.cjs → vue-ui-table-heatmap-B5pfuZ06.cjs} +1 -1
  125. package/dist/{vue-ui-table-heatmap-DE6RTOjN.js → vue-ui-table-heatmap-DVTqo0gR.js} +4 -4
  126. package/dist/{vue-ui-table-sparkline-BQZylioG.cjs → vue-ui-table-sparkline-Dpwv04QK.cjs} +1 -1
  127. package/dist/{vue-ui-table-sparkline-ChmFLAEt.js → vue-ui-table-sparkline-HoC10pK0.js} +5 -5
  128. package/dist/{vue-ui-thermometer-Bj8e-yG-.js → vue-ui-thermometer-46rBoQUT.js} +7 -7
  129. package/dist/{vue-ui-thermometer-BgMnwVpw.cjs → vue-ui-thermometer-QNAbTkmc.cjs} +1 -1
  130. package/dist/{vue-ui-timer-Dql8XcMQ.cjs → vue-ui-timer-CEl8k7G2.cjs} +1 -1
  131. package/dist/{vue-ui-timer-CcUwIcM7.js → vue-ui-timer-DeSsZrLI.js} +5 -5
  132. package/dist/{vue-ui-tiremarks-CfNXN9nv.cjs → vue-ui-tiremarks-BFrqRTKT.cjs} +1 -1
  133. package/dist/{vue-ui-tiremarks-ZWxDYt63.js → vue-ui-tiremarks-Bkv2WZBg.js} +7 -7
  134. package/dist/{vue-ui-treemap-BQUkiRrP.cjs → vue-ui-treemap-keCkHtK4.cjs} +1 -1
  135. package/dist/{vue-ui-treemap-DJlHYN6o.js → vue-ui-treemap-yuPjtcVK.js} +11 -11
  136. package/dist/{vue-ui-vertical-bar-DfMOQWhA.js → vue-ui-vertical-bar-BbDzEQl_.js} +11 -11
  137. package/dist/{vue-ui-vertical-bar-DLFK5GLD.cjs → vue-ui-vertical-bar-Bu6-T3E0.cjs} +1 -1
  138. package/dist/{vue-ui-waffle-BzqYPHzr.cjs → vue-ui-waffle-B5jH5mbu.cjs} +1 -1
  139. package/dist/{vue-ui-waffle-CVmVbugH.js → vue-ui-waffle-Bal7gIMa.js} +11 -11
  140. package/dist/{vue-ui-wheel-B7jyz4v1.cjs → vue-ui-wheel-BxlqXii5.cjs} +1 -1
  141. package/dist/{vue-ui-wheel-DPgJtWnl.js → vue-ui-wheel-D9vfr7y3.js} +7 -7
  142. package/dist/{vue-ui-word-cloud-YBQ8Tptq.cjs → vue-ui-word-cloud-CDMrIRV8.cjs} +1 -1
  143. package/dist/{vue-ui-word-cloud-D_aYLkHs.js → vue-ui-word-cloud-Dw5BJoNZ.js} +12 -12
  144. package/dist/{vue-ui-xy-CnXzhDb7.cjs → vue-ui-xy-BtUaFSLQ.cjs} +1 -1
  145. package/dist/{vue-ui-xy-DIvGE5ZZ.js → vue-ui-xy-DrQy_X9V.js} +14 -14
  146. package/dist/{vue-ui-xy-canvas-Kf-kmYwM.js → vue-ui-xy-canvas-74elrp82.js} +11 -11
  147. package/dist/{vue-ui-xy-canvas-Dy7oda3-.cjs → vue-ui-xy-canvas-CZMRdBM5.cjs} +1 -1
  148. package/package.json +1 -1
  149. package/dist/PenAndPaper-BpIqWG4P.js +0 -347
  150. package/dist/PenAndPaper-DrCIS0Eh.cjs +0 -1
  151. package/dist/Slicer-t7C4_beF.cjs +0 -1
@@ -1,347 +0,0 @@
1
- import { computed as I, ref as p, watch as q, openBlock as k, createElementBlock as y, normalizeStyle as w, createElementVNode as $, createVNode as F, onMounted as Z, nextTick as ee, onBeforeUnmount as te, Fragment as R, normalizeClass as P, withDirectives as oe, vModelText as ne, createCommentVNode as W, unref as le, withModifiers as Q, renderList as ae } from "vue";
2
- import { F as re, l as se, X as ue } from "./index-XO811G4S.js";
3
- import z from "./BaseIcon-CSptCx3b.js";
4
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const ce = ["value"], ie = { class: "icon" }, de = {
6
- __name: "ColorPicker",
7
- props: {
8
- value: {
9
- type: String,
10
- default: "#ffffff"
11
- },
12
- size: {
13
- type: String,
14
- default: "50px"
15
- }
16
- },
17
- emits: ["update:value"],
18
- setup(r, { emit: Y }) {
19
- const v = r, f = I(() => ({
20
- backgroundColor: v.value,
21
- width: "100%",
22
- height: "100%",
23
- cursor: "pointer"
24
- })), m = p(null), L = () => {
25
- var u;
26
- (u = m.value) == null || u.click();
27
- }, x = (u) => {
28
- const b = u.target.value;
29
- Y("update:value", b);
30
- }, C = I(() => re(v.value));
31
- return q(
32
- () => v.value,
33
- (u) => {
34
- m.value.value = u;
35
- }
36
- ), (u, b) => (k(), y("div", {
37
- style: w(f.value),
38
- class: "color-picker-wrapper",
39
- onClick: L
40
- }, [
41
- $("input", {
42
- ref_key: "colorInput",
43
- ref: m,
44
- type: "color",
45
- value: r.value,
46
- class: "hidden-input",
47
- onInput: x
48
- }, null, 40, ce),
49
- $("div", ie, [
50
- F(z, {
51
- name: "palette",
52
- stroke: C.value,
53
- size: 22
54
- }, null, 8, ["stroke"])
55
- ])
56
- ], 4));
57
- }
58
- }, pe = /* @__PURE__ */ A(de, [["__scopeId", "data-v-d3f01240"]]), ve = {
59
- class: /* @__PURE__ */ P({
60
- "vue-ui-pen-and-paper-action": !0
61
- }),
62
- style: { padding: "0 !important" }
63
- }, fe = ["disabled"], he = ["xmlns", "viewBox", "onTouchstart", "onTouchmove"], ge = ["cx", "cy", "r", "fill"], me = ["d", "stroke", "stroke-width"], ke = ["d", "stroke", "stroke-width"], ye = {
64
- __name: "PenAndPaper",
65
- props: {
66
- parent: {
67
- type: HTMLElement
68
- },
69
- backgroundColor: {
70
- type: String,
71
- default: "#FFFFFF"
72
- },
73
- color: {
74
- type: String,
75
- default: "#2D353C"
76
- },
77
- active: {
78
- type: Boolean,
79
- default: !1
80
- }
81
- },
82
- emits: ["close"],
83
- setup(r, { emit: Y }) {
84
- const v = r, f = p([]), m = p([]), L = p("0 0 0 0"), x = p(v.color), C = p(1), u = I(() => se(v.color, 0.6));
85
- function b({ width: o, height: t }) {
86
- L.value = `0 0 ${o} ${t}`;
87
- }
88
- const N = p(null);
89
- Z(() => {
90
- ee(() => {
91
- if (v.parent) {
92
- N.value = new ResizeObserver((e) => {
93
- for (const n of e) {
94
- const { width: l, height: a } = n.contentRect;
95
- b({ width: l, height: a });
96
- }
97
- }), N.value.observe(v.parent);
98
- const { width: o, height: t } = v.parent.getBoundingClientRect();
99
- b({ width: o, height: t });
100
- }
101
- });
102
- }), te(() => {
103
- N.value && N.value.disconnect();
104
- }), q(
105
- () => v.parent,
106
- (o) => {
107
- if (!o) return;
108
- const { width: t, height: e } = v.parent.getBoundingClientRect();
109
- b({ width: t, height: e });
110
- },
111
- { immediate: !0 }
112
- );
113
- const M = p(!1), B = p(""), X = p(null);
114
- function _(o) {
115
- if (!X.value) return;
116
- M.value = !0;
117
- const { x: t, y: e } = U(o);
118
- B.value = `M ${t} ${e}`;
119
- }
120
- function E(o) {
121
- if (!M.value || !X.value) return;
122
- const { x: t, y: e } = U(o);
123
- B.value += ` ${t} ${e}`;
124
- }
125
- function V(o) {
126
- const t = o.trim().split(/\s+/);
127
- if (t.length < 4)
128
- return o;
129
- const e = t.slice(1).map(Number);
130
- if (e.length % 2 !== 0)
131
- return o;
132
- const n = H(e), l = [`M ${n[0]} ${n[1]}`];
133
- for (let c = 2; c < n.length - 2; c += 2) {
134
- const h = n[c - 2], g = n[c - 1], i = n[c], d = n[c + 1], S = (h + i) / 2, T = (g + d) / 2;
135
- l.push(`Q ${h} ${g} ${S} ${T}`);
136
- }
137
- const a = n[n.length - 2], s = n[n.length - 1];
138
- return l.push(`L ${a} ${s}`), l.join(" ");
139
- }
140
- function H(o, t = 1) {
141
- const e = [...o];
142
- for (let n = 2; n < o.length - 2; n += 2) {
143
- const l = o[n], a = o[n + 1], s = o[n - 2], c = o[n - 1], h = o[n + 2], g = o[n + 3];
144
- e[n] = l + t * ((s + h) / 2 - l), e[n + 1] = a + t * ((c + g) / 2 - a);
145
- }
146
- return e;
147
- }
148
- function O(o) {
149
- const t = o.trim().split(/\s+/);
150
- let e = "", n = "", l = null, a = null;
151
- for (let s = 0; s < t.length; s += 1) {
152
- const c = t[s];
153
- if (isNaN(c)) {
154
- if (n = c, n === "M" || n === "L")
155
- l = parseFloat(t[++s]), a = parseFloat(t[++s]), e += `${n}${l} ${a}`;
156
- else if (n === "Q") {
157
- const h = parseFloat(t[++s]), g = parseFloat(t[++s]), i = parseFloat(t[++s]), d = parseFloat(t[++s]);
158
- h === l && g === a ? e += `t${i - l} ${d - a}` : e += `q${h - l} ${g - a} ${i - l} ${d - a}`, l = i, a = d;
159
- }
160
- } else {
161
- const h = parseFloat(c), g = parseFloat(t[++s]);
162
- if (n === "L") {
163
- const i = h - l, d = g - a;
164
- i === 0 ? e += `v${d}` : d === 0 ? e += `h${i}` : e += `l${i} ${d}`, l = h, a = g;
165
- } else if (n === "Q") {
166
- const i = h, d = g, S = parseFloat(t[++s]), T = parseFloat(t[++s]);
167
- i === l && d === a ? e += `t${S - l} ${T - a}` : e += `q${i - l} ${d - a} ${S - l} ${T - a}`, l = S, a = T;
168
- }
169
- }
170
- }
171
- return e;
172
- }
173
- function D() {
174
- M.value && (f.value.push({
175
- strokeWidth: C.value,
176
- path: O(V(B.value)),
177
- color: x.value
178
- }), m.value = [], B.value = ""), M.value = !1;
179
- }
180
- function U(o) {
181
- if (!X.value) return { x: 0, y: 0 };
182
- const t = X.value.getBoundingClientRect();
183
- let e, n;
184
- return o.touches && o.touches.length ? (e = o.touches[0].clientX, n = o.touches[0].clientY) : (e = o.clientX, n = o.clientY), {
185
- x: e - t.left,
186
- y: n - t.top
187
- };
188
- }
189
- p(!1);
190
- function j() {
191
- if (f.value.length > 0) {
192
- const o = f.value.pop();
193
- m.value.push(o);
194
- }
195
- }
196
- function G() {
197
- if (m.value.length > 0) {
198
- const o = m.value.pop();
199
- f.value.push(o);
200
- }
201
- }
202
- function J() {
203
- f.value = [], m.value = [];
204
- }
205
- const K = p(null);
206
- return (o, t) => (k(), y(R, null, [
207
- r.active ? (k(), y("div", {
208
- key: 0,
209
- "data-html2canvas-ignore": "",
210
- class: P({
211
- "vue-ui-pen-and-paper-actions": !0,
212
- visible: r.active
213
- })
214
- }, [
215
- $("button", {
216
- class: "vue-ui-pen-and-paper-action",
217
- style: w({
218
- backgroundColor: r.backgroundColor,
219
- border: `1px solid ${u.value}`
220
- }),
221
- onClick: t[0] || (t[0] = (e) => Y("close"))
222
- }, [
223
- F(z, {
224
- name: "close",
225
- stroke: r.color
226
- }, null, 8, ["stroke"])
227
- ], 4),
228
- $("button", ve, [
229
- F(pe, {
230
- value: x.value,
231
- "onUpdate:value": t[1] || (t[1] = (e) => x.value = e)
232
- }, null, 8, ["value"])
233
- ]),
234
- $("button", {
235
- class: P({
236
- "vue-ui-pen-and-paper-action": !0,
237
- "vue-ui-pen-and-paper-action-disabled": !f.value.length
238
- }),
239
- disabled: !f.value.length,
240
- style: w({
241
- backgroundColor: r.backgroundColor,
242
- border: `1px solid ${u.value}`
243
- }),
244
- onClick: j
245
- }, [
246
- F(z, {
247
- name: "restart",
248
- stroke: r.color
249
- }, null, 8, ["stroke"])
250
- ], 14, fe),
251
- $("button", {
252
- class: P({
253
- "vue-ui-pen-and-paper-action": !0,
254
- "vue-ui-pen-and-paper-action-disabled": !m.value.length
255
- }),
256
- style: w({
257
- backgroundColor: r.backgroundColor,
258
- border: `1px solid ${u.value}`
259
- }),
260
- onClick: G
261
- }, [
262
- F(z, {
263
- name: "restart",
264
- stroke: r.color,
265
- style: { transform: "scaleX(-1)" }
266
- }, null, 8, ["stroke"])
267
- ], 6),
268
- $("button", {
269
- class: P([{
270
- "vue-ui-pen-and-paper-action": !0,
271
- "vue-ui-pen-and-paper-action-disabled": !f.value.length
272
- }, "vue-ui-pen-and-paper-action"]),
273
- style: w({
274
- backgroundColor: r.backgroundColor,
275
- border: `1px solid ${u.value}`
276
- }),
277
- onClick: J
278
- }, [
279
- F(z, {
280
- name: "trash",
281
- stroke: r.color
282
- }, null, 8, ["stroke"])
283
- ], 6),
284
- oe($("input", {
285
- ref_key: "range",
286
- ref: K,
287
- type: "range",
288
- class: "vertical-range",
289
- min: 0.5,
290
- max: 12,
291
- step: 0.1,
292
- "onUpdate:modelValue": t[2] || (t[2] = (e) => C.value = e),
293
- style: w({
294
- accentColor: r.color
295
- })
296
- }, null, 4), [
297
- [ne, C.value]
298
- ])
299
- ], 2)) : W("", !0),
300
- (k(), y("svg", {
301
- ref_key: "svgElement",
302
- ref: X,
303
- xmlns: le(ue),
304
- viewBox: L.value,
305
- class: P({
306
- "vue-ui-pen-and-paper": !0,
307
- inactive: !r.active
308
- }),
309
- onMousedown: _,
310
- onMousemove: E,
311
- onMouseup: D,
312
- onMouseleave: D,
313
- onTouchstart: Q(_, ["prevent"]),
314
- onTouchmove: Q(E, ["prevent"]),
315
- onTouchend: D
316
- }, [
317
- (k(!0), y(R, null, ae(f.value, (e) => (k(), y(R, { key: e }, [
318
- e.path.replace("M", "").split(" ").length === 2 ? (k(), y("circle", {
319
- key: 0,
320
- cx: e.path.replace("M", "").split(" ")[0],
321
- cy: e.path.replace("M", "").split(" ")[1],
322
- r: e.strokeWidth / 2,
323
- fill: e.color
324
- }, null, 8, ge)) : (k(), y("path", {
325
- key: 1,
326
- class: "vue-ui-pen-and-paper-path",
327
- d: e.path,
328
- stroke: e.color,
329
- "stroke-width": e.strokeWidth,
330
- fill: "none"
331
- }, null, 8, me))
332
- ], 64))), 128)),
333
- M.value ? (k(), y("path", {
334
- key: 0,
335
- class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
336
- d: V(B.value),
337
- stroke: x.value,
338
- "stroke-width": C.value * 1.1,
339
- fill: "none"
340
- }, null, 8, ke)) : W("", !0)
341
- ], 42, he))
342
- ], 64));
343
- }
344
- }, we = /* @__PURE__ */ A(ye, [["__scopeId", "data-v-a868f599"]]);
345
- export {
346
- we as P
347
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),P=require("./index-kr_QwGDL.cjs"),N=require("./BaseIcon-rMg8xfhX.cjs"),_=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=["value"],W={class:"icon"},A={__name:"ColorPicker",props:{value:{type:String,default:"#ffffff"},size:{type:String,default:"50px"}},emits:["update:value"],setup(c,{emit:z}){const v=c,f=e.computed(()=>({backgroundColor:v.value,width:"100%",height:"100%",cursor:"pointer"})),k=e.ref(null),E=()=>{var u;(u=k.value)==null||u.click()},g=u=>{const $=u.target.value;z("update:value",$)},y=e.computed(()=>P.adaptColorToBackground(v.value));return e.watch(()=>v.value,u=>{k.value.value=u}),(u,$)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(f.value),class:"color-picker-wrapper",onClick:E},[e.createElementVNode("input",{ref_key:"colorInput",ref:k,type:"color",value:c.value,class:"hidden-input",onInput:g},null,40,U),e.createElementVNode("div",W,[e.createVNode(N.default,{name:"palette",stroke:y.value,size:22},null,8,["stroke"])])],4))}},H=_._export_sfc(A,[["__scopeId","data-v-d3f01240"]]),Q={class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},O=["disabled"],j=["xmlns","viewBox","onTouchstart","onTouchmove"],G=["cx","cy","r","fill"],J=["d","stroke","stroke-width"],K=["d","stroke","stroke-width"],Z={__name:"PenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup(c,{emit:z}){const v=c,f=e.ref([]),k=e.ref([]),E=e.ref("0 0 0 0"),g=e.ref(v.color),y=e.ref(1),u=e.computed(()=>P.lightenHexColor(v.color,.6));function $({width:n,height:o}){E.value=`0 0 ${n} ${o}`}const V=e.ref(null);e.onMounted(()=>{e.nextTick(()=>{if(v.parent){V.value=new ResizeObserver(t=>{for(const l of t){const{width:r,height:a}=l.contentRect;$({width:r,height:a})}}),V.value.observe(v.parent);const{width:n,height:o}=v.parent.getBoundingClientRect();$({width:n,height:o})}})}),e.onBeforeUnmount(()=>{V.value&&V.value.disconnect()}),e.watch(()=>v.parent,n=>{if(!n)return;const{width:o,height:t}=v.parent.getBoundingClientRect();$({width:o,height:t})},{immediate:!0});const C=e.ref(!1),x=e.ref(""),b=e.ref(null);function M(n){if(!b.value)return;C.value=!0;const{x:o,y:t}=T(n);x.value=`M ${o} ${t}`}function S(n){if(!C.value||!b.value)return;const{x:o,y:t}=T(n);x.value+=` ${o} ${t}`}function X(n){const o=n.trim().split(/\s+/);if(o.length<4)return n;const t=o.slice(1).map(Number);if(t.length%2!==0)return n;const l=L(t),r=[`M ${l[0]} ${l[1]}`];for(let i=2;i<l.length-2;i+=2){const m=l[i-2],h=l[i-1],d=l[i],p=l[i+1],B=(m+d)/2,w=(h+p)/2;r.push(`Q ${m} ${h} ${B} ${w}`)}const a=l[l.length-2],s=l[l.length-1];return r.push(`L ${a} ${s}`),r.join(" ")}function L(n,o=1){const t=[...n];for(let l=2;l<n.length-2;l+=2){const r=n[l],a=n[l+1],s=n[l-2],i=n[l-1],m=n[l+2],h=n[l+3];t[l]=r+o*((s+m)/2-r),t[l+1]=a+o*((i+h)/2-a)}return t}function Y(n){const o=n.trim().split(/\s+/);let t="",l="",r=null,a=null;for(let s=0;s<o.length;s+=1){const i=o[s];if(isNaN(i)){if(l=i,l==="M"||l==="L")r=parseFloat(o[++s]),a=parseFloat(o[++s]),t+=`${l}${r} ${a}`;else if(l==="Q"){const m=parseFloat(o[++s]),h=parseFloat(o[++s]),d=parseFloat(o[++s]),p=parseFloat(o[++s]);m===r&&h===a?t+=`t${d-r} ${p-a}`:t+=`q${m-r} ${h-a} ${d-r} ${p-a}`,r=d,a=p}}else{const m=parseFloat(i),h=parseFloat(o[++s]);if(l==="L"){const d=m-r,p=h-a;d===0?t+=`v${p}`:p===0?t+=`h${d}`:t+=`l${d} ${p}`,r=m,a=h}else if(l==="Q"){const d=m,p=h,B=parseFloat(o[++s]),w=parseFloat(o[++s]);d===r&&p===a?t+=`t${B-r} ${w-a}`:t+=`q${d-r} ${p-a} ${B-r} ${w-a}`,r=B,a=w}}}return t}function F(){C.value&&(f.value.push({strokeWidth:y.value,path:Y(X(x.value)),color:g.value}),k.value=[],x.value=""),C.value=!1}function T(n){if(!b.value)return{x:0,y:0};const o=b.value.getBoundingClientRect();let t,l;return n.touches&&n.touches.length?(t=n.touches[0].clientX,l=n.touches[0].clientY):(t=n.clientX,l=n.clientY),{x:t-o.left,y:l-o.top}}e.ref(!1);function D(){if(f.value.length>0){const n=f.value.pop();k.value.push(n)}}function R(){if(k.value.length>0){const n=k.value.pop();f.value.push(n)}}function q(){f.value=[],k.value=[]}const I=e.ref(null);return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c.active?(e.openBlock(),e.createElementBlock("div",{key:0,"data-html2canvas-ignore":"",class:e.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:c.active})},[e.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:e.normalizeStyle({backgroundColor:c.backgroundColor,border:`1px solid ${u.value}`}),onClick:o[0]||(o[0]=t=>z("close"))},[e.createVNode(N.default,{name:"close",stroke:c.color},null,8,["stroke"])],4),e.createElementVNode("button",Q,[e.createVNode(H,{value:g.value,"onUpdate:value":o[1]||(o[1]=t=>g.value=t)},null,8,["value"])]),e.createElementVNode("button",{class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!f.value.length}),disabled:!f.value.length,style:e.normalizeStyle({backgroundColor:c.backgroundColor,border:`1px solid ${u.value}`}),onClick:D},[e.createVNode(N.default,{name:"restart",stroke:c.color},null,8,["stroke"])],14,O),e.createElementVNode("button",{class:e.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!k.value.length}),style:e.normalizeStyle({backgroundColor:c.backgroundColor,border:`1px solid ${u.value}`}),onClick:R},[e.createVNode(N.default,{name:"restart",stroke:c.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),e.createElementVNode("button",{class:e.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!f.value.length},"vue-ui-pen-and-paper-action"]),style:e.normalizeStyle({backgroundColor:c.backgroundColor,border:`1px solid ${u.value}`}),onClick:q},[e.createVNode(N.default,{name:"trash",stroke:c.color},null,8,["stroke"])],6),e.withDirectives(e.createElementVNode("input",{ref_key:"range",ref:I,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":o[2]||(o[2]=t=>y.value=t),style:e.normalizeStyle({accentColor:c.color})},null,4),[[e.vModelText,y.value]])],2)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{ref_key:"svgElement",ref:b,xmlns:e.unref(P.XMLNS),viewBox:E.value,class:e.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!c.active}),onMousedown:M,onMousemove:S,onMouseup:F,onMouseleave:F,onTouchstart:e.withModifiers(M,["prevent"]),onTouchmove:e.withModifiers(S,["prevent"]),onTouchend:F},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,t=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t},[t.path.replace("M","").split(" ").length===2?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:t.path.replace("M","").split(" ")[0],cy:t.path.replace("M","").split(" ")[1],r:t.strokeWidth/2,fill:t.color},null,8,G)):(e.openBlock(),e.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:t.path,stroke:t.color,"stroke-width":t.strokeWidth,fill:"none"},null,8,J))],64))),128)),C.value?(e.openBlock(),e.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:X(x.value),stroke:g.value,"stroke-width":y.value*1.1,fill:"none"},null,8,K)):e.createCommentVNode("",!0)],42,j))],64))}},ee=_._export_sfc(Z,[["__scopeId","data-v-a868f599"]]);exports.PenAndPaper=ee;
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),O=require("./BaseIcon-rMg8xfhX.cjs"),C=require("./useResponsive-BJ7DTGpm.cjs"),v=require("./index-kr_QwGDL.cjs"),T=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=l=>(e.pushScopeId("data-v-35870043"),l=l(),e.popScopeId(),l),U={"data-html2canvas-ignore":"",style:{padding:"0 24px"}},W={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},j={key:0,style:{width:"100%",position:"relative"}},X={key:0,class:"minimap",style:{width:"100%"}},Z=["xmlns","viewBox"],_=["id"],G=["stop-color"],H=w(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),J=["d","stroke"],K=["x","width","height","fill","rx"],Q=["d","fill"],Y=["x","width","height","rx","fill"],ee=["x","width","height","fill","rx"],te=["d","fill"],le=["d","stroke"],ae=["cx","cy","stroke","fill"],ne=["cx","cy","stroke","fill"],oe=["x1","x2","y2","stroke"],ie=["x","height","width","onMouseenter"],re=w(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),ue=["min","max"],se=["min","max"],ce={__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"}},emits:["update:start","update:end","reset","trapMouse"],setup(l,{emit:h}){const t=l;e.useCssVars(a=>({"6303158d":$.value,"0a0ec3fe":f.value,"4042e6b2":M.value,"49a4419e":l.selectColor,"85e56d82":B.value}));const r=e.ref(t.min),u=e.ref(t.max),p=e.computed(()=>!!t.minimap.length),S=e.ref(v.createUid()),V=e.computed(()=>{const a=t.max-t.min,o=(r.value-t.min)/a*100,i=(u.value-t.min)/a*100;return{left:`${o}%`,width:`${i-o}%`,background:t.selectColor}}),$=e.computed(()=>t.inputColor),B=e.computed(()=>t.background),M=e.computed(()=>`${t.selectColor}33`),f=e.computed(()=>t.borderColor),N=e.computed(()=>{let a=[];for(let o=0;o<t.minimap.length;o+=1)a.push(o);return a});function E(){h("reset")}function z(){Number(r.value)>Number(u.value)-1&&(r.value=Number(u.value)-1),h("update:start",Number(r.value))}function L(){Number(u.value)<Number(r.value)+1&&(u.value=Number(r.value)+1),h("update:end",Number(u.value))}e.watch(()=>t.min,a=>{Number(r.value)<Number(a)&&(r.value=Number(a)),Number(u.value)<Number(a)&&(u.value=Number(a))}),e.watch(()=>t.max,a=>{Number(r.value)>Number(a)&&(r.value=Number(a)),Number(u.value)>Number(a)&&(u.value=Number(a))});const g=e.ref(null),n=e.ref({width:1,height:1}),x=e.ref(null);e.onMounted(()=>{if(p.value&&g.value){const a=C.throttle(()=>{requestAnimationFrame(()=>{const{width:o,height:i}=C.useResponsive({chart:g.value});n.value.width=o,n.value.height=Math.max(0,i-47)})});x.value=new ResizeObserver(a),x.value.observe(g.value)}}),e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});const s=e.computed(()=>t.minimap.length?n.value.width/t.minimap.length:0),c=e.computed(()=>{if(!t.minimap.length)return[];const a=Math.max(...t.minimap),o=Math.min(...t.minimap)-10,i=a-(o>0?0:o),d=t.minimap.map((A,q)=>{const D=A-o;return{x:n.value.width/t.minimap.length*q+s.value/2,y:n.value.height-D/i*(n.value.height*.9)}}),b=t.smoothMinimap?v.createSmoothPath(d):v.createStraightPath(d),k=[...d].slice(t.valueStart,t.valueEnd),R=t.smoothMinimap?v.createSmoothPath(k):v.createStraightPath(k);return{fullSet:b,selectionSet:R,sliced:k,firstPlot:d[t.valueStart],lastPlot:d[t.valueEnd-1]}}),m=e.computed(()=>({x:s.value*r.value+s.value/2,width:n.value.width*((u.value-r.value)/t.max)-s.value})),F=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",pointerEvents:"none"})),I=e.computed(()=>({right:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"})),y=e.ref(t.minimapSelectedIndex);e.watch(()=>t.minimapSelectedIndex,a=>{y.value=a+t.valueStart},{immediate:!0});function P(a){y.value=a,a>=t.valueStart&&a<t.valueEnd&&h("trapMouse",a-t.valueStart)}return(a,o)=>(e.openBlock(),e.createElementBlock("div",U,[e.createElementVNode("div",W,[l.valueStart>0||l.valueEnd<l.max?(e.openBlock(),e.createElementBlock("div",j,[l.useResetSlot?e.renderSlot(a.$slots,"reset-action",{key:1,reset:E},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:p.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:E},[e.createVNode(O.default,{name:"refresh",stroke:l.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:g,style:{"z-index":"0"}},[p.value?(e.openBlock(),e.createElementBlock("div",X,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(v.XMLNS),viewBox:`0 0 ${n.value.width<0?0:n.value.width} ${n.value.height<0?0:n.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:S.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${l.minimapLineColor}50`},null,8,G),H],8,_)]),e.createElementVNode("path",{d:`M${c.value.fullSet}`,stroke:`${l.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,J),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:f.value,rx:l.minimapSelectionRadius,stroke:"none"},null,8,K),e.createElementVNode("path",{d:`M${s.value/2},${n.value.height} ${c.value.fullSet} L${n.value.width-s.value/2},${n.value.height}Z`,fill:`url(#${S.value})`,stroke:"none",style:{opacity:"1"}},null,8,Q),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,rx:l.minimapSelectionRadius,fill:f.value},null,8,Y),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:l.minimapSelectedColor,rx:l.minimapSelectionRadius,style:e.normalizeStyle({opacity:l.minimapSelectedColorOpacity})},null,12,ee),e.createElementVNode("path",{d:`M${c.value.sliced[0].x},${n.value.height} ${c.value.selectionSet} L${c.value.sliced.at(-1).x},${n.value.height}Z`,fill:`url(#${S.value})`,stroke:"none",style:{opacity:"1"}},null,8,te),e.createElementVNode("path",{d:`M ${c.value.selectionSet}`,stroke:`${l.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,le),e.createElementVNode("circle",{cx:c.value.firstPlot.x,cy:c.value.firstPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:l.minimapLineColor},null,8,ae),e.createElementVNode("circle",{cx:c.value.lastPlot.x,cy:c.value.lastPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:l.minimapLineColor},null,8,ne),y.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(N.value,(i,d)=>(e.openBlock(),e.createElementBlock("g",null,[y.value===i&&i>=l.valueStart&&i<l.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:n.value.height,stroke:l.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,oe)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(i,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:n.value.height,width:s.value<0?0:s.value,fill:"transparent",style:{"pointer-events":"all !important"},onMouseenter:b=>P(i),onMouseleave:o[0]||(o[0]=b=>{y.value=null,h("trapMouse",null)})},null,40,ie))),256))],8,Z))])):e.createCommentVNode("",!0),re,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(V.value)},null,4),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-left",min:l.min,max:l.max,"onUpdate:modelValue":o[1]||(o[1]=i=>r.value=i),onInput:z},null,40,ue),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(F.value)},e.toDisplayString(l.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-right",min:l.min,max:l.max,"onUpdate:modelValue":o[2]||(o[2]=i=>u.value=i),onInput:L},null,40,se),[[e.vModelText,u.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(I.value)},e.toDisplayString(l.labelRight),5)],512)]))}},de=T._export_sfc(ce,[["__scopeId","data-v-35870043"]]);exports.Slicer=de;