vue-data-ui 3.23.5 → 3.23.7

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 (155) hide show
  1. package/dist/{PackageVersion-QmpeTdwH.js → PackageVersion-Dy83B80Q.js} +1 -1
  2. package/dist/PenAndPaper-C0UZ74fa.js +571 -0
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-accordion.js +1 -1
  5. package/dist/components/vue-ui-age-pyramid.js +1 -1
  6. package/dist/components/vue-ui-annotator.js +1 -1
  7. package/dist/components/vue-ui-bullet.js +1 -1
  8. package/dist/components/vue-ui-bump.js +1 -1
  9. package/dist/components/vue-ui-candlestick.js +1 -1
  10. package/dist/components/vue-ui-carousel-table.js +1 -1
  11. package/dist/components/vue-ui-chestnut.js +1 -1
  12. package/dist/components/vue-ui-chord.js +1 -1
  13. package/dist/components/vue-ui-circle-pack.js +1 -1
  14. package/dist/components/vue-ui-cursor.js +1 -1
  15. package/dist/components/vue-ui-dag.js +1 -1
  16. package/dist/components/vue-ui-dashboard.js +1 -1
  17. package/dist/components/vue-ui-digits.js +1 -1
  18. package/dist/components/vue-ui-donut-evolution.js +1 -1
  19. package/dist/components/vue-ui-donut.js +1 -1
  20. package/dist/components/vue-ui-dumbbell.js +1 -1
  21. package/dist/components/vue-ui-flow.js +1 -1
  22. package/dist/components/vue-ui-funnel.js +1 -1
  23. package/dist/components/vue-ui-galaxy.js +1 -1
  24. package/dist/components/vue-ui-gauge.js +1 -1
  25. package/dist/components/vue-ui-geo.js +1 -1
  26. package/dist/components/vue-ui-gizmo.js +1 -1
  27. package/dist/components/vue-ui-heatmap.js +1 -1
  28. package/dist/components/vue-ui-hill.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-stackline.js +1 -1
  56. package/dist/components/vue-ui-strip-plot.js +1 -1
  57. package/dist/components/vue-ui-table-heatmap.js +1 -1
  58. package/dist/components/vue-ui-table-sparkline.js +1 -1
  59. package/dist/components/vue-ui-table.js +1 -1
  60. package/dist/components/vue-ui-thermometer.js +1 -1
  61. package/dist/components/vue-ui-timer.js +1 -1
  62. package/dist/components/vue-ui-tiremarks.js +1 -1
  63. package/dist/components/vue-ui-treemap.js +1 -1
  64. package/dist/components/vue-ui-vertical-bar.js +1 -1
  65. package/dist/components/vue-ui-waffle.js +1 -1
  66. package/dist/components/vue-ui-wheel.js +1 -1
  67. package/dist/components/vue-ui-word-cloud.js +1 -1
  68. package/dist/components/vue-ui-world.js +1 -1
  69. package/dist/components/vue-ui-xy-canvas.js +1 -1
  70. package/dist/components/vue-ui-xy.js +1 -1
  71. package/dist/{package-AMny8nIk.js → package-CMYqMdZB.js} +1 -1
  72. package/dist/{render-common-CzbQb-8Y.js → render-common-CqzziMg4.js} +1 -1
  73. package/dist/ssr/vue-ui-donut.js +1 -1
  74. package/dist/ssr/vue-ui-xy.js +1 -1
  75. package/dist/ssr.js +2 -2
  76. package/dist/style.css +1 -1
  77. package/dist/types/vue-data-ui.d.ts +13 -0
  78. package/dist/{useConfig-xRLM3Q8l.js → useConfig-DwdGsXTx.js} +15 -2
  79. package/dist/{useObjectBindings-B7drP349.js → useObjectBindings-BKkmFRiI.js} +2 -2
  80. package/dist/utils.js +1 -1
  81. package/dist/{vue-data-ui-VlsOsITu.js → vue-data-ui-C2MzofEj.js} +68 -68
  82. package/dist/vue-data-ui.js +69 -69
  83. package/dist/{vue-ui-3d-bar-CXOPbeiO.js → vue-ui-3d-bar-DbMCxsYc.js} +2 -2
  84. package/dist/{vue-ui-accordion-DIPkJSR5.js → vue-ui-accordion-CLU_su1P.js} +1 -1
  85. package/dist/{vue-ui-age-pyramid-BXsOR5vR.js → vue-ui-age-pyramid-Dmbk6rMP.js} +2 -2
  86. package/dist/{vue-ui-annotator-BUp16M0M.js → vue-ui-annotator-QjHngrui.js} +2 -2
  87. package/dist/{vue-ui-bullet-CQDSUZGN.js → vue-ui-bullet-DBZ3n4yK.js} +2 -2
  88. package/dist/{vue-ui-bump-Bi6vei_K.js → vue-ui-bump-CirnIRZw.js} +2 -2
  89. package/dist/{vue-ui-candlestick-vlN6ggwT.js → vue-ui-candlestick-DZX6VVMs.js} +2 -2
  90. package/dist/{vue-ui-carousel-table-BsM01Vhv.js → vue-ui-carousel-table-CWhd8Plu.js} +2 -2
  91. package/dist/{vue-ui-chestnut-DeZm4G27.js → vue-ui-chestnut-CMktwDOV.js} +2 -2
  92. package/dist/{vue-ui-chord-BVZ0JwUk.js → vue-ui-chord-_3zAHsdj.js} +2 -2
  93. package/dist/{vue-ui-circle-pack-BPfju3EJ.js → vue-ui-circle-pack-BhcQw1-I.js} +2 -2
  94. package/dist/{vue-ui-cursor-CXA7DIe8.js → vue-ui-cursor-Bo39SVBr.js} +2 -2
  95. package/dist/{vue-ui-dag-B-DSsdY1.js → vue-ui-dag-DEF_uf-N.js} +2 -2
  96. package/dist/{vue-ui-dashboard-DgluDGFX.js → vue-ui-dashboard-DFIIsh3Z.js} +66 -66
  97. package/dist/{vue-ui-digits-B0A9bPI5.js → vue-ui-digits-BrIyw5fg.js} +2 -2
  98. package/dist/{vue-ui-donut-C03nCGpX.js → vue-ui-donut-CpOqB9bK.js} +2 -2
  99. package/dist/{vue-ui-donut-HCALQsex.js → vue-ui-donut-IafNVctv.js} +2 -2
  100. package/dist/{vue-ui-donut-evolution-vfnMiNoN.js → vue-ui-donut-evolution-BmNVUdQJ.js} +2 -2
  101. package/dist/{vue-ui-dumbbell-CQBMWG-l.js → vue-ui-dumbbell-Bx0yMiUm.js} +2 -2
  102. package/dist/{vue-ui-flow-XZss-d4f.js → vue-ui-flow-Fk99WJs7.js} +2 -2
  103. package/dist/{vue-ui-funnel-D64cvpBm.js → vue-ui-funnel-D1TarfGe.js} +2 -2
  104. package/dist/{vue-ui-galaxy-Dh9FC1po.js → vue-ui-galaxy-CTKKLd-F.js} +2 -2
  105. package/dist/{vue-ui-gauge-DNWuelXL.js → vue-ui-gauge-DixSuz96.js} +2 -2
  106. package/dist/{vue-ui-geo-Q45Z0d9t.js → vue-ui-geo-BdSJqRTr.js} +2 -2
  107. package/dist/{vue-ui-gizmo-EhW4Yj0N.js → vue-ui-gizmo-BvsWv7cn.js} +2 -2
  108. package/dist/{vue-ui-heatmap-D-S6iVj0.js → vue-ui-heatmap-B2BZy3E-.js} +3 -3
  109. package/dist/{vue-ui-hill-DBJ9tInh.js → vue-ui-hill-DVJJzAAy.js} +2 -2
  110. package/dist/{vue-ui-history-plot-DFeFFGSZ.js → vue-ui-history-plot-BmEHbHlS.js} +2 -2
  111. package/dist/{vue-ui-horizontal-bar-B-t3zdFz.js → vue-ui-horizontal-bar-BnoA1A4R.js} +3 -3
  112. package/dist/{vue-ui-kpi-DoCo4ZAq.js → vue-ui-kpi-DOp84kGR.js} +2 -2
  113. package/dist/{vue-ui-mini-loader-ow1PDKqt.js → vue-ui-mini-loader-SNMKnmMa.js} +1 -1
  114. package/dist/{vue-ui-molecule-Bz-IHYv6.js → vue-ui-molecule-XDZzvX7C.js} +2 -2
  115. package/dist/{vue-ui-mood-radar-DPoF1xPe.js → vue-ui-mood-radar-D0j2W6G-.js} +2 -2
  116. package/dist/{vue-ui-nested-donuts-idh-j_dl.js → vue-ui-nested-donuts-BZF53Z7q.js} +2 -2
  117. package/dist/{vue-ui-onion-Dood2FqS.js → vue-ui-onion-1igRoVIp.js} +2 -2
  118. package/dist/{vue-ui-parallel-coordinate-plot-CTRW-9bD.js → vue-ui-parallel-coordinate-plot-CmzCg7s7.js} +2 -2
  119. package/dist/{vue-ui-quadrant-DdbUGvzU.js → vue-ui-quadrant-CHfXIMG-.js} +2 -2
  120. package/dist/{vue-ui-quick-chart-Bi9tGI-u.js → vue-ui-quick-chart-9-Qnx_Kz.js} +2 -2
  121. package/dist/{vue-ui-radar-BVRE6v_s.js → vue-ui-radar-Db7AYBVg.js} +2 -2
  122. package/dist/{vue-ui-rating-BpFfa4CS.js → vue-ui-rating-BnXrMeGg.js} +1 -1
  123. package/dist/{vue-ui-relation-circle-B4xfo1E7.js → vue-ui-relation-circle-B3edjo3F.js} +2 -2
  124. package/dist/{vue-ui-ridgeline-DyWbiQNg.js → vue-ui-ridgeline-Bv-zLQ97.js} +2 -2
  125. package/dist/{vue-ui-rings-BfYL9hMO.js → vue-ui-rings-B8PHv7n8.js} +2 -2
  126. package/dist/{vue-ui-scatter-RvLKQUL4.js → vue-ui-scatter-Bb6KG5JD.js} +2 -2
  127. package/dist/{vue-ui-skeleton-Ck0Nq_dn.js → vue-ui-skeleton-CPoc6Owm.js} +2 -2
  128. package/dist/{vue-ui-smiley-DnsU4Jem.js → vue-ui-smiley-BQuXRW4o.js} +1 -1
  129. package/dist/{vue-ui-spark-trend-BzF1FhA5.js → vue-ui-spark-trend-C-84OhV_.js} +2 -2
  130. package/dist/{vue-ui-sparkbar-stqU6JTt.js → vue-ui-sparkbar-CqAsZIv7.js} +2 -2
  131. package/dist/{vue-ui-sparkgauge-D-YaMv2r.js → vue-ui-sparkgauge-B4RzqC0W.js} +2 -2
  132. package/dist/{vue-ui-sparkhistogram-KL0NLePf.js → vue-ui-sparkhistogram-Bfrn9PCA.js} +2 -2
  133. package/dist/{vue-ui-sparkline-eCysP_-V.js → vue-ui-sparkline-M2i8hZ-F.js} +2 -2
  134. package/dist/{vue-ui-sparkstackbar-dhTCfleQ.js → vue-ui-sparkstackbar-Bai-Pfzu.js} +2 -2
  135. package/dist/{vue-ui-stackbar-BNMgum7u.js → vue-ui-stackbar-DZgRubem.js} +2 -2
  136. package/dist/{vue-ui-stackline-DskDMrgM.js → vue-ui-stackline-DFZUoZvY.js} +2 -2
  137. package/dist/{vue-ui-strip-plot-ItsPmUkY.js → vue-ui-strip-plot-CJacirOo.js} +394 -387
  138. package/dist/{vue-ui-table-BDbYOygV.js → vue-ui-table-DBzvP2ym.js} +3 -3
  139. package/dist/{vue-ui-table-heatmap-Dh8LN7-3.js → vue-ui-table-heatmap-DRABMw2H.js} +1 -1
  140. package/dist/{vue-ui-table-sparkline-CdOHPHx8.js → vue-ui-table-sparkline-wyjv7lH2.js} +2 -2
  141. package/dist/{vue-ui-thermometer-BWTK1Kzj.js → vue-ui-thermometer-DYj19_DZ.js} +2 -2
  142. package/dist/{vue-ui-timer-OtkFW5hj.js → vue-ui-timer-BPf8xQBa.js} +2 -2
  143. package/dist/{vue-ui-tiremarks-BeLS-qd1.js → vue-ui-tiremarks-CB2uiMTU.js} +2 -2
  144. package/dist/{vue-ui-treemap-CuubuUdj.js → vue-ui-treemap-MC_-L3n4.js} +2 -2
  145. package/dist/vue-ui-waffle-C6PGQQya.js +1612 -0
  146. package/dist/{vue-ui-wheel-CzvqEBBJ.js → vue-ui-wheel-BT7AT9NJ.js} +2 -2
  147. package/dist/{vue-ui-word-cloud-Q3QIlJjr.js → vue-ui-word-cloud-DIr_9Qnb.js} +2 -2
  148. package/dist/{vue-ui-world-B_HDGmvz.js → vue-ui-world-CZOKJNuR.js} +2 -2
  149. package/dist/{vue-ui-xy-R_Gw0nak.js → vue-ui-xy-CLwh64AO.js} +3 -3
  150. package/dist/{vue-ui-xy-BsCa9b8S.js → vue-ui-xy-Dv_310kS.js} +2 -2
  151. package/dist/{vue-ui-xy-canvas-CoxFOWek.js → vue-ui-xy-canvas-B-KxaFGF.js} +2 -2
  152. package/dist/{vue_ui_waffle-DIARFc7g.js → vue_ui_waffle-DE_DiSVP.js} +14 -7
  153. package/package.json +1 -1
  154. package/dist/PenAndPaper-DAE-tnEQ.js +0 -461
  155. package/dist/vue-ui-waffle-BpR55zbX.js +0 -1386
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "./package-AMny8nIk.js";
2
+ import { t } from "./package-CMYqMdZB.js";
3
3
  import { createElementBlock as n, openBlock as r, toDisplayString as i, unref as a } from "vue";
4
4
  //#region src/atoms/PackageVersion.vue
5
5
  var o = /* @__PURE__ */ e({ default: () => c }), s = { "aria-hidden": "true" }, c = {
@@ -0,0 +1,571 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Ot as t, X as n, q as r, t as i } from "./lib-Bttd6u5E.js";
3
+ import { t as a } from "./BaseIcon-BfndwIWE.js";
4
+ import { t as o } from "./ColorPicker--ayG2YHf.js";
5
+ import { computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, guardReactiveProps as f, nextTick as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as ee, onMounted as te, openBlock as ne, ref as _, renderSlot as v, toDisplayString as re, unref as ie, vModelText as ae, watch as y, withCtx as oe, withDirectives as se } from "vue";
6
+ //#region src/atoms/PenAndPaper.vue
7
+ var ce = /* @__PURE__ */ e({ default: () => b }), le = {
8
+ "aria-hidden": "true",
9
+ viewBox: "0 0 6 12",
10
+ style: { width: "100%" }
11
+ }, ue = ["fill"], de = ["fill"], fe = ["fill"], pe = ["disabled"], b = {
12
+ __name: "PenAndPaper",
13
+ props: {
14
+ svgRef: {
15
+ type: [
16
+ Object,
17
+ null,
18
+ void 0
19
+ ],
20
+ required: !0
21
+ },
22
+ color: {
23
+ type: String,
24
+ default: "#2D353C"
25
+ },
26
+ backgroundColor: {
27
+ type: String,
28
+ default: "#FFFFFF"
29
+ },
30
+ active: {
31
+ type: Boolean,
32
+ default: !1
33
+ },
34
+ scale: {
35
+ type: Number,
36
+ default: 1
37
+ },
38
+ isCursorPointer: {
39
+ type: Boolean,
40
+ default: !1
41
+ }
42
+ },
43
+ emits: ["close"],
44
+ setup(e, { emit: ce }) {
45
+ let b = e, me = ce, x = _([]), S = _([]), C = _(b.color), w = _(2), T = _(!1), he = _(""), E = _(null), D = _(null), O = _(null), k = _(null), ge = /* @__PURE__ */ new Map(), _e = _(`arrow-def-${r()}`), A = _(!1), j = _(null), ve = _({
46
+ x: 0,
47
+ y: 0
48
+ }), M = _([""]), N = _({
49
+ row: 0,
50
+ col: 0
51
+ }), P = _(16), F = _(!1), ye = [
52
+ "arrow",
53
+ "text",
54
+ "line",
55
+ "draw"
56
+ ], I = _(0), L = s(() => ye[I.value]), be = {
57
+ arrow: "plotArrow",
58
+ text: "text",
59
+ line: "plotLine",
60
+ draw: "annotator"
61
+ }, xe = _("url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVh2YQcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnAtB020wn4lIuvyqFXhGGiAhCiMnMMpKZxSx8x9c9Any9i/Es/3N/jgG1YDEgIBHPMcO0iTeIZzZtg/M+scjKskp8Tjxu0gWJH7muePzGueSywDNFM5ueJxaJpVIXK13MyqZGPE0cVTWd8oWcxyrnLc5atc7a9+QvDBf0lQzXaY4ggSUkkYIEBXVUUIWNGK06KRbStB/38Q+7/hS5FHJVwMixgBo0yK4f/A9+d2sVpya9pHAc6H1xnI9RILQLtBqO833sOK0TIPgMXOkdf60JzH6S3uho0SNgcBu4uO5oyh5wuQMMPRmyKbtSkKZQLALvZ/RNeSByC/Sveb2193H6AGSpq+Ub4OAQGCtR9rrPu/u6e/v3TLu/H5C7crM1WjgWAAAABmJLR0QAqwB5AHWF+8OUAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gwUExIUagzGcQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABfSURBVBjTldAxDoNQDIPhL0+q1L33P1AvAhN7xfK6WAgoLfSfrNiykpQtE+7RLzx2vgF9D3o8lWDmn1QVVMP0LZQGmNtqp1/cmou0XHdG/+sYeGZwFBqPCub8rkcvvAGvsi1VYarR8wAAAABJRU5ErkJggg==') 5 5, auto");
62
+ function Se() {
63
+ I.value + 1 >= ye.length ? I.value = 0 : I.value += 1;
64
+ }
65
+ function R(e) {
66
+ if (!E.value || L.value !== "text" || A.value) return;
67
+ let { x: t, y: n } = H(e);
68
+ ve.value = {
69
+ x: t,
70
+ y: n
71
+ }, M.value = [""], N.value = {
72
+ row: 0,
73
+ col: 0
74
+ }, F.value = !1;
75
+ let r = document.createElementNS("http://www.w3.org/2000/svg", "text");
76
+ r.setAttribute("x", t), r.setAttribute("y", n), r.setAttribute("fill", C.value), r.setAttribute("font-size", P.value * b.scale), r.setAttribute("font-family", "sans-serif"), r.setAttribute("class", "vue-data-ui-doodle"), r.setAttribute("dominant-baseline", "hanging"), r.setAttribute("pointer-events", "all");
77
+ let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
78
+ i.setAttribute("x", t), i.setAttribute("dy", "0"), i.setAttribute("dominant-baseline", "hanging"), i.textContent = "", r.appendChild(i), r.style.pointerEvents = "none", r.style.userSelect = "none", E.value.appendChild(r), j.value = r, A.value = !0, window.addEventListener("keydown", Ce), window.addEventListener("mousedown", De, !0), we(), Ee();
79
+ }
80
+ function Ce(e) {
81
+ if (!A.value) return;
82
+ let { row: t, col: n } = N.value, r = M.value.slice(), i = !1;
83
+ if (e.key === "Enter") {
84
+ let a = r[t], o = a.slice(0, n), s = a.slice(n);
85
+ r.splice(t, 1, o, s), t += 1, n = 0, i = !0, e.preventDefault();
86
+ } else if (e.key === "Backspace") {
87
+ if (n > 0) r[t] = r[t].slice(0, n - 1) + r[t].slice(n), --n, i = !0;
88
+ else if (t > 0) {
89
+ let e = r[t - 1].length;
90
+ r[t - 1] += r[t], r.splice(t, 1), --t, n = e, i = !0;
91
+ }
92
+ e.preventDefault();
93
+ } else if (e.key === "Delete") n < r[t].length ? (r[t] = r[t].slice(0, n) + r[t].slice(n + 1), i = !0) : t < r.length - 1 && (r[t] += r[t + 1], r.splice(t + 1, 1), i = !0), e.preventDefault();
94
+ else if (e.key === "ArrowLeft") n > 0 ? --n : t > 0 && (--t, n = r[t].length), i = !0, e.preventDefault();
95
+ else if (e.key === "ArrowRight") n < r[t].length ? n += 1 : t < r.length - 1 && (t += 1, n = 0), i = !0, e.preventDefault();
96
+ else if (e.key === "ArrowUp") t > 0 && (--t, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
97
+ else if (e.key === "ArrowDown") t < r.length - 1 && (t += 1, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
98
+ else if (e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) r[t] = r[t].slice(0, n) + e.key + r[t].slice(n), n += 1, i = !0, e.preventDefault();
99
+ else if (e.key === "Escape") {
100
+ Oe(!0);
101
+ return;
102
+ } else e.key === "Tab" && e.preventDefault();
103
+ i && (M.value = r, N.value = {
104
+ row: t,
105
+ col: n
106
+ }, r.some((e) => e.length > 0) && !F.value && j.value && (x.value.push(j.value), S.value = [], F.value = !0), we(), Ee());
107
+ }
108
+ function we() {
109
+ let e = j.value, { x: t } = ve.value;
110
+ for (; e.firstChild;) e.removeChild(e.firstChild);
111
+ M.value.forEach((n, r) => {
112
+ let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
113
+ i.setAttribute("x", t), i.setAttribute("dominant-baseline", "hanging"), i.setAttribute("dy", r === 0 ? "0" : `${P.value * 1.2 * b.scale}`), i.textContent = n.length ? n : "​", e.appendChild(i);
114
+ });
115
+ }
116
+ let z = _(null);
117
+ function B() {
118
+ z.value !== null && (clearInterval(z.value), z.value = null);
119
+ }
120
+ function Te(e) {
121
+ B();
122
+ let t = !0;
123
+ e.style.opacity = "1", z.value = setInterval(() => {
124
+ if (!E.value || !e || !E.value.contains(e)) {
125
+ B();
126
+ return;
127
+ }
128
+ t = !t, e.style.opacity = t ? "1" : "0";
129
+ }, 500);
130
+ }
131
+ function Ee() {
132
+ let e = E.value?.querySelector(".vue-data-ui-svg-caret");
133
+ e && E.value && E.value.removeChild(e);
134
+ let t = j.value;
135
+ if (!t || !E.value) return;
136
+ let { x: n, y: r } = ve.value, { row: i, col: a } = N.value, o = P.value * b.scale, s = t.childNodes[i];
137
+ if (!s) return;
138
+ let c = s.textContent.slice(0, a);
139
+ c.endsWith(" ") && (c += "\xA0");
140
+ let l = document.createElementNS("http://www.w3.org/2000/svg", "text");
141
+ l.setAttribute("x", n), l.setAttribute("y", r), l.setAttribute("font-size", o), l.setAttribute("font-family", "sans-serif"), l.textContent = c || "", E.value.appendChild(l);
142
+ let u = l.getBBox();
143
+ E.value.removeChild(l);
144
+ let d = r + i * o * 1.2, f = n + u.width, p = document.createElementNS("http://www.w3.org/2000/svg", "rect");
145
+ p.setAttribute("x", f), p.setAttribute("y", d), p.setAttribute("rx", 1), p.setAttribute("width", 2), p.setAttribute("height", o), p.setAttribute("fill", C.value), p.setAttribute("class", "vue-data-ui-svg-caret"), E.value.appendChild(p), Te(p);
146
+ }
147
+ function De(e) {
148
+ if (j.value && !j.value.contains(e.target)) {
149
+ let e = j.value.children;
150
+ e.length === 1 && (e[0].textContent === "" || e[0].textContent === "​") && j.value.remove(), Oe(!1);
151
+ }
152
+ }
153
+ function Oe(e = !1) {
154
+ window.removeEventListener("keydown", Ce), window.removeEventListener("mousedown", De, !0), B();
155
+ let t = E.value?.querySelector(".vue-data-ui-svg-caret");
156
+ t && E.value && E.value.removeChild(t);
157
+ let n = j.value?.children, r = !1;
158
+ if (n && n.length === 1) {
159
+ let e = n[0].textContent;
160
+ r = !e || e === "​";
161
+ }
162
+ (e || r) && j.value && E.value && E.value.contains(j.value) && E.value.removeChild(j.value), A.value = !1, j.value = null, M.value = [""], N.value = {
163
+ row: 0,
164
+ col: 0
165
+ }, F.value = !1;
166
+ }
167
+ let V = s(() => t(b.color, .6));
168
+ function ke() {
169
+ if (!E.value) return;
170
+ let e = E.value.querySelector(".vue-data-ui-mask");
171
+ if (e && E.value.removeChild(e), b.active) {
172
+ let e = document.createElementNS("http://www.w3.org/2000/svg", "rect");
173
+ e.setAttribute("class", "vue-data-ui-mask"), e.setAttribute("width", "100%"), e.setAttribute("height", "100%"), e.setAttribute("fill", "transparent"), e.setAttribute("pointer-events", "all"), E.value.insertBefore(e, E.value.firstChild);
174
+ }
175
+ }
176
+ function H(e) {
177
+ let t = b.svgRef;
178
+ if (!t) return {
179
+ x: 0,
180
+ y: 0
181
+ };
182
+ let n = t.createSVGPoint(), r = e.touches?.length || e.changedTouches?.length ? e.touches?.[0] || e.changedTouches?.[0] : null, i = r ? r.clientX : e.clientX, a = r ? r.clientY : e.clientY;
183
+ n.x = i, n.y = a;
184
+ let o = t.getScreenCTM()?.inverse();
185
+ return o ? n.matrixTransform(o) : {
186
+ x: 0,
187
+ y: 0
188
+ };
189
+ }
190
+ function Ae(e) {
191
+ let t = e.trim().split(/\s+/);
192
+ if (t.length < 4) return e;
193
+ let n = t.slice(1).map(Number);
194
+ if (n.length % 2 != 0) return e;
195
+ let r = je(n), i = [`M ${r[0]} ${r[1]}`];
196
+ for (let e = 2; e < r.length - 2; e += 2) {
197
+ let t = r[e - 2], n = r[e - 1], a = r[e], o = r[e + 1], s = (t + a) / 2, c = (n + o) / 2;
198
+ i.push(`Q ${t} ${n} ${s} ${c}`);
199
+ }
200
+ let a = r[r.length - 2], o = r[r.length - 1];
201
+ return i.push(`L ${a} ${o}`), i.join(" ");
202
+ }
203
+ function je(e, t = 1) {
204
+ let n = [...e];
205
+ for (let r = 2; r < e.length - 2; r += 2) {
206
+ let i = e[r], a = e[r + 1], o = e[r - 2], s = e[r - 1], c = e[r + 2], l = e[r + 3];
207
+ n[r] = i + t * ((o + c) / 2 - i), n[r + 1] = a + t * ((s + l) / 2 - a);
208
+ }
209
+ return n;
210
+ }
211
+ function Me(e) {
212
+ let t = e.trim().split(/\s+/), n = "", r = "", i = null, a = null;
213
+ for (let e = 0; e < t.length; e += 1) {
214
+ let o = t[e];
215
+ if (isNaN(o)) {
216
+ if (r = o, r === "M" || r === "L") i = parseFloat(t[++e]), a = parseFloat(t[++e]), n += `${r}${i} ${a}`;
217
+ else if (r === "Q") {
218
+ let r = parseFloat(t[++e]), o = parseFloat(t[++e]), s = parseFloat(t[++e]), c = parseFloat(t[++e]);
219
+ n += r === i && o === a ? `t${s - i} ${c - a}` : `q${r - i} ${o - a} ${s - i} ${c - a}`, i = s, a = c;
220
+ }
221
+ } else {
222
+ let s = parseFloat(o), c = parseFloat(t[++e]);
223
+ if (r === "L") {
224
+ let e = s - i, t = c - a;
225
+ n += e === 0 ? `v${t}` : t === 0 ? `h${e}` : `l${e} ${t}`, i = s, a = c;
226
+ } else if (r === "Q") {
227
+ let r = s, o = c, l = parseFloat(t[++e]), u = parseFloat(t[++e]);
228
+ n += r === i && o === a ? `t${l - i} ${u - a}` : `q${r - i} ${o - a} ${l - i} ${u - a}`, i = l, a = u;
229
+ }
230
+ }
231
+ }
232
+ return n;
233
+ }
234
+ function U(e) {
235
+ if (e.cancelable && e.preventDefault(), L.value !== "draw" || !b.active || !E.value) return;
236
+ T.value = !0;
237
+ let { x: t, y: n } = H(e);
238
+ k.value = {
239
+ x: t,
240
+ y: n
241
+ }, he.value = `M ${t} ${n}`, D.value = document.createElementNS(i, "path"), D.value.setAttribute("stroke", C.value), D.value.setAttribute("stroke-width", w.value * b.scale), D.value.setAttribute("fill", "none"), D.value.setAttribute("stroke-linecap", "round"), D.value.setAttribute("stroke-linejoin", "round"), D.value.setAttribute("class", "vue-data-ui-doodle"), E.value.appendChild(D.value);
242
+ }
243
+ function W(e) {
244
+ if (e.cancelable && e.preventDefault(), !T.value || !E.value || !D.value) return;
245
+ let { x: t, y: n } = H(e);
246
+ he.value += ` ${t} ${n}`, D.value.setAttribute("d", he.value);
247
+ }
248
+ function Ne(e) {
249
+ let t = b.svgRef;
250
+ if (!t) return null;
251
+ let n = t.querySelector(`defs#${_e.value}`);
252
+ n || (n = document.createElementNS(i, "defs"), n.setAttribute("id", _e.value), t.appendChild(n));
253
+ let a = String(e).trim();
254
+ if (ge.has(a)) return ge.get(a);
255
+ let o = `arrow-${r()}`, s = document.createElementNS(i, "marker");
256
+ s.setAttribute("id", o), s.setAttribute("markerUnits", "strokeWidth"), s.setAttribute("markerWidth", "6"), s.setAttribute("markerHeight", "6"), s.setAttribute("refX", "4"), s.setAttribute("refY", "3"), s.setAttribute("orient", "auto"), s.setAttribute("viewBox", "0 0 6 6");
257
+ let c = document.createElementNS(i, "path");
258
+ return c.setAttribute("d", `M 0 0 L 6 ${6 / 2} L 0 6 z`), c.setAttribute("fill", e), c.setAttribute("stroke", "none"), s.appendChild(c), n.appendChild(s), ge.set(a, o), o;
259
+ }
260
+ function G(e) {
261
+ if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !b.active || !E.value) return;
262
+ T.value = !0;
263
+ let { x: t, y: n } = H(e);
264
+ if (k.value = {
265
+ x: t,
266
+ y: n
267
+ }, O.value = document.createElementNS(i, "line"), O.value.setAttribute("stroke", C.value), O.value.setAttribute("stroke-width", w.value * b.scale), O.value.setAttribute("stroke-linecap", "round"), O.value.setAttribute("class", "vue-data-ui-doodle"), O.value.setAttribute("x1", t), O.value.setAttribute("y1", n), O.value.setAttribute("x2", t), O.value.setAttribute("y2", n), L.value === "arrow") {
268
+ let e = Ne(C.value);
269
+ e && O.value.setAttribute("marker-end", `url(#${e})`);
270
+ }
271
+ E.value.appendChild(O.value);
272
+ }
273
+ function K(e) {
274
+ if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !T.value || !E.value || !O.value) return;
275
+ let { x: t, y: n } = H(e);
276
+ O.value.setAttribute("x2", t), O.value.setAttribute("y2", n);
277
+ }
278
+ function q(e) {
279
+ if (T.value && E.value && O.value) {
280
+ let { x: t, y: n } = H(e);
281
+ O.value.setAttribute("x2", t), O.value.setAttribute("y2", n), x.value.push(O.value), S.value = [], O.value = "";
282
+ }
283
+ T.value = !1;
284
+ }
285
+ function J(e) {
286
+ if (T.value && E.value && D.value) {
287
+ let { x: t, y: n } = H(e);
288
+ if (k.value && k.value.x === t && k.value.y === n) {
289
+ let e = document.createElementNS("http://www.w3.org/2000/svg", "circle");
290
+ e.setAttribute("cx", t), e.setAttribute("cy", n), e.setAttribute("r", w.value * b.scale / 2), e.setAttribute("fill", C.value), e.setAttribute("class", "vue-data-ui-doodle"), E.value.appendChild(e), x.value.push(e);
291
+ } else {
292
+ let e = D.value;
293
+ e.setAttribute("d", Me(Ae(he.value))), x.value.push(e);
294
+ }
295
+ S.value = [], D.value = "";
296
+ }
297
+ T.value = !1;
298
+ }
299
+ function Pe() {
300
+ if (x.value.length > 0) {
301
+ let e = x.value.pop();
302
+ S.value.push(e), e === j.value ? Oe(!0) : E.value && E.value.contains(e) && E.value.removeChild(e);
303
+ }
304
+ }
305
+ function Fe() {
306
+ if (S.value.length > 0) {
307
+ let e = S.value.pop();
308
+ x.value.push(e), E.value && E.value.appendChild(e);
309
+ }
310
+ }
311
+ function Ie() {
312
+ E.value && (E.value.innerHTML = ""), x.value = [], S.value = [], F.value = !1, ke();
313
+ }
314
+ y(L, (e) => {
315
+ b.active && (Re(), Le(), ze());
316
+ });
317
+ function Le() {
318
+ !b.svgRef || !b.active || (L.value === "draw" ? (b.svgRef.addEventListener("mousedown", U), b.svgRef.addEventListener("mousemove", W), b.svgRef.addEventListener("mouseup", J), b.svgRef.addEventListener("mouseleave", J), b.svgRef.addEventListener("touchstart", U, { passive: !1 }), b.svgRef.addEventListener("touchmove", W, { passive: !1 }), b.svgRef.addEventListener("touchend", J), b.svgRef.addEventListener("touchcancel", J)) : ["line", "arrow"].includes(L.value) ? (b.svgRef.addEventListener("mousedown", G), b.svgRef.addEventListener("mousemove", K), b.svgRef.addEventListener("mouseup", q), b.svgRef.addEventListener("touchstart", G, { passive: !1 }), b.svgRef.addEventListener("touchmove", K, { passive: !1 }), b.svgRef.addEventListener("touchend", q), b.svgRef.addEventListener("touchcancel", q)) : L.value === "text" && (b.svgRef.addEventListener("mousedown", R), b.svgRef.addEventListener("touchstart", R, { passive: !1 })), E.value && (E.value.style.pointerEvents = "auto"));
319
+ }
320
+ function Re() {
321
+ b.svgRef && (b.svgRef.removeEventListener("mousedown", U), b.svgRef.removeEventListener("mousemove", W), b.svgRef.removeEventListener("mouseup", J), b.svgRef.removeEventListener("mouseleave", J), b.svgRef.removeEventListener("touchstart", U), b.svgRef.removeEventListener("touchmove", W), b.svgRef.removeEventListener("touchend", J), b.svgRef.removeEventListener("touchcancel", J), b.svgRef.removeEventListener("mousedown", G), b.svgRef.removeEventListener("mousemove", K), b.svgRef.removeEventListener("mouseup", q), b.svgRef.removeEventListener("touchstart", G), b.svgRef.removeEventListener("touchmove", K), b.svgRef.removeEventListener("touchend", q), b.svgRef.removeEventListener("touchcancel", q), b.svgRef.removeEventListener("mousedown", R), b.svgRef.removeEventListener("touchstart", R), E.value && (E.value.style.pointerEvents = "none"));
322
+ }
323
+ y(() => b.active, (e) => {
324
+ e ? Le() : Re();
325
+ }), y(() => b.active, () => {
326
+ p(() => {
327
+ ke();
328
+ });
329
+ }), y(() => b.active, (e) => {
330
+ b.svgRef && (e ? b.svgRef.style.touchAction = "none" : b.svgRef.style.touchAction = "");
331
+ }, { immediate: !0 });
332
+ function ze() {
333
+ E.value && (L.value === "text" ? E.value.style.cursor = "text" : ["line", "arrow"].includes(L.value) ? E.value.style.cursor = "crosshair" : E.value.style.cursor = xe.value);
334
+ }
335
+ let Y = _(null), Be = _(null), Ve = _(!1), X = _({
336
+ x: 0,
337
+ y: 0
338
+ }), Z = _(null), Q = _(null), He = s(() => ({
339
+ backgroundColor: b.backgroundColor,
340
+ "--vue-ui-pen-and-paper-drag-x": `${X.value.x}px`,
341
+ "--vue-ui-pen-and-paper-drag-y": `${X.value.y}px`
342
+ }));
343
+ function Ue() {
344
+ return {
345
+ width: document.documentElement.clientWidth || window.innerWidth,
346
+ height: document.documentElement.clientHeight || window.innerHeight
347
+ };
348
+ }
349
+ function We() {
350
+ if (!Y.value) return null;
351
+ let e = [
352
+ Y.value,
353
+ Y.value.querySelector(".vue-ui-pen-and-paper-drag-handle"),
354
+ Y.value.querySelector(".vertical-range")
355
+ ].filter(Boolean).map((e) => e.getBoundingClientRect());
356
+ return {
357
+ left: Math.min(...e.map((e) => e.left)),
358
+ top: Math.min(...e.map((e) => e.top)),
359
+ right: Math.max(...e.map((e) => e.right)),
360
+ bottom: Math.max(...e.map((e) => e.bottom))
361
+ };
362
+ }
363
+ function Ge(e) {
364
+ if (e.pointerType === "mouse" && e.button !== 0 || !Y.value) return;
365
+ e.preventDefault(), e.stopPropagation();
366
+ let t = We();
367
+ t && (Ve.value = !0, Q.value = e.pointerId, Z.value = {
368
+ clientX: e.clientX,
369
+ clientY: e.clientY,
370
+ offsetX: X.value.x,
371
+ offsetY: X.value.y,
372
+ rect: t
373
+ }, window.addEventListener("pointermove", Ke), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
374
+ }
375
+ function Ke(e) {
376
+ if (!Ve.value || !Z.value || e.pointerId !== Q.value) return;
377
+ e.preventDefault();
378
+ let t = Z.value, { width: n, height: r } = Ue(), i = e.clientX - t.clientX, a = e.clientY - t.clientY, o = Math.min(Math.max(i, -t.rect.left), n - t.rect.right), s = Math.min(Math.max(a, -t.rect.top), r - t.rect.bottom);
379
+ X.value = {
380
+ x: t.offsetX + o,
381
+ y: t.offsetY + s
382
+ };
383
+ }
384
+ function $(e) {
385
+ (e?.pointerId === void 0 || Q.value === null || e.pointerId === Q.value) && (Ve.value = !1, Z.value = null, Q.value = null, window.removeEventListener("pointermove", Ke), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $));
386
+ }
387
+ function qe() {
388
+ if (!Y.value || !b.active) return;
389
+ let e = We();
390
+ if (!e) return;
391
+ let { width: t, height: n } = Ue(), r = 0, i = 0;
392
+ e.left < 0 ? r = -e.left : e.right > t && (r = t - e.right), e.top < 0 ? i = -e.top : e.bottom > n && (i = n - e.bottom), (r || i) && (X.value = {
393
+ x: X.value.x + r,
394
+ y: X.value.y + i
395
+ });
396
+ }
397
+ return te(() => {
398
+ window.addEventListener("resize", qe), p(() => {
399
+ b.svgRef && (E.value = document.createElementNS("http://www.w3.org/2000/svg", "g"), E.value.setAttribute("class", "vue-data-ui-doodles"), b.svgRef.appendChild(E.value), ze(), Re());
400
+ });
401
+ }), y(() => b.active, async (e) => {
402
+ if (!e) {
403
+ $(), X.value = {
404
+ x: 0,
405
+ y: 0
406
+ };
407
+ return;
408
+ }
409
+ await p(), Be.value?.focus();
410
+ }, { flush: "post" }), ee(() => {
411
+ B(), $(), window.removeEventListener("resize", qe), E.value && b.svgRef && (E.value.remove(), Re());
412
+ }), (t, r) => e.active ? (ne(), l("div", {
413
+ key: 0,
414
+ ref_key: "menuRef",
415
+ ref: Y,
416
+ "data-dom-to-png-ignore": "",
417
+ class: m(["vue-ui-pen-and-paper-actions", { "vue-ui-pen-and-paper-actions-dragging": Ve.value }]),
418
+ style: g(He.value)
419
+ }, [
420
+ u("button", {
421
+ type: "button",
422
+ class: "vue-ui-pen-and-paper-drag-handle",
423
+ "aria-label": "Move drawing toolbar",
424
+ style: g({
425
+ backgroundColor: e.backgroundColor,
426
+ border: `1px solid ${V.value}`,
427
+ color: e.color
428
+ }),
429
+ onPointerdown: Ge
430
+ }, [(ne(), l("svg", le, [
431
+ u("circle", {
432
+ fill: e.color,
433
+ cx: "3",
434
+ cy: "3",
435
+ r: "0.7"
436
+ }, null, 8, ue),
437
+ u("circle", {
438
+ fill: e.color,
439
+ cx: "3",
440
+ cy: "6",
441
+ r: "0.7"
442
+ }, null, 8, de),
443
+ u("circle", {
444
+ fill: e.color,
445
+ cx: "3",
446
+ cy: "9",
447
+ r: "0.7"
448
+ }, null, 8, fe)
449
+ ]))], 36),
450
+ u("button", {
451
+ ref_key: "buttonToggle",
452
+ ref: Be,
453
+ class: "vue-ui-pen-and-paper-action",
454
+ onClick: r[0] ||= (e) => me("close"),
455
+ style: g({
456
+ backgroundColor: e.backgroundColor,
457
+ border: `1px solid ${V.value}`,
458
+ cursor: e.isCursorPointer ? "pointer" : "default"
459
+ })
460
+ }, [v(t.$slots, "annotator-action-close", {}, () => [d(a, {
461
+ name: "close",
462
+ stroke: e.color
463
+ }, null, 8, ["stroke"])])], 4),
464
+ u("button", {
465
+ class: "vue-ui-pen-and-paper-action",
466
+ tabindex: "-1",
467
+ style: g(`padding: 0 !important; cursor: ${e.isCursorPointer ? "pointer" : "default"}`)
468
+ }, [d(o, {
469
+ value: C.value,
470
+ "onUpdate:value": r[1] ||= (e) => C.value = e,
471
+ backgroundColor: e.backgroundColor,
472
+ buttonBorderColor: V.value,
473
+ isCursorPointer: e.isCursorPointer
474
+ }, {
475
+ "annotator-action-color": oe(({ color: e }) => [v(t.$slots, "annotator-action-color", h(f({ color: e })))]),
476
+ _: 3
477
+ }, 8, [
478
+ "value",
479
+ "backgroundColor",
480
+ "buttonBorderColor",
481
+ "isCursorPointer"
482
+ ])], 4),
483
+ u("button", {
484
+ class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": L.value === "text" }]),
485
+ onClick: r[2] ||= (e) => Se(),
486
+ style: g({
487
+ backgroundColor: e.backgroundColor,
488
+ border: `1px solid ${V.value}`,
489
+ cursor: e.isCursorPointer ? "pointer" : "default"
490
+ })
491
+ }, [v(t.$slots, "annotator-action-draw", h(f({ mode: L.value })), () => [d(a, {
492
+ name: be[L.value],
493
+ stroke: e.color
494
+ }, null, 8, ["name", "stroke"])]), u("div", { style: g({
495
+ position: "absolute",
496
+ bottom: "-20px",
497
+ color: V.value,
498
+ width: "100%",
499
+ textAlign: "center",
500
+ fontSize: "12px",
501
+ fontVariantNumeric: "tabular-nums"
502
+ }) }, re(ie(n)({
503
+ v: L.value === "text" ? Math.round(P.value) : Math.round(w.value),
504
+ s: "px",
505
+ r: 1
506
+ })), 5)], 6),
507
+ u("button", {
508
+ class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !x.value.length }]),
509
+ disabled: !x.value.length,
510
+ onClick: Pe,
511
+ style: g({
512
+ backgroundColor: e.backgroundColor,
513
+ border: `1px solid ${V.value}`,
514
+ marginTop: "20px",
515
+ cursor: e.isCursorPointer ? "pointer" : "default"
516
+ })
517
+ }, [v(t.$slots, "annotator-action-undo", h(f({ disabled: !x.value.length })), () => [d(a, {
518
+ name: "refresh",
519
+ stroke: e.color
520
+ }, null, 8, ["stroke"])])], 14, pe),
521
+ u("button", {
522
+ class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !S.value.length }]),
523
+ onClick: Fe,
524
+ style: g({
525
+ backgroundColor: e.backgroundColor,
526
+ border: `1px solid ${V.value}`,
527
+ cursor: e.isCursorPointer ? "pointer" : "default"
528
+ })
529
+ }, [v(t.$slots, "annotator-action-redo", h(f({ disabled: !S.value.length })), () => [d(a, {
530
+ name: "refresh",
531
+ stroke: e.color,
532
+ style: { transform: "scaleX(-1)" }
533
+ }, null, 8, ["stroke"])])], 6),
534
+ u("button", {
535
+ class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !x.value.length }]),
536
+ onClick: Ie,
537
+ style: g({
538
+ backgroundColor: e.backgroundColor,
539
+ border: `1px solid ${V.value}`,
540
+ cursor: e.isCursorPointer ? "pointer" : "default"
541
+ })
542
+ }, [v(t.$slots, "annotator-action-delete", h(f({ disabled: !x.value.length })), () => [d(a, {
543
+ name: "trash",
544
+ stroke: e.color
545
+ }, null, 8, ["stroke"])])], 6),
546
+ L.value === "text" ? se((ne(), l("input", {
547
+ key: 0,
548
+ ref: "range",
549
+ type: "range",
550
+ class: "vertical-range",
551
+ min: 3,
552
+ max: 48,
553
+ step: 1,
554
+ "onUpdate:modelValue": r[3] ||= (e) => P.value = e,
555
+ style: g({ accentColor: e.color })
556
+ }, null, 4)), [[ae, P.value]]) : se((ne(), l("input", {
557
+ key: 1,
558
+ ref: "range",
559
+ type: "range",
560
+ class: "vertical-range",
561
+ min: .5,
562
+ max: 12,
563
+ step: .1,
564
+ "onUpdate:modelValue": r[4] ||= (e) => w.value = e,
565
+ style: g({ accentColor: e.color })
566
+ }, null, 4)), [[ae, w.value]])
567
+ ], 6)) : c("", !0);
568
+ }
569
+ };
570
+ //#endregion
571
+ export { b as n, ce as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-3d-bar-CXOPbeiO.js";
1
+ import { t as e } from "../vue-ui-3d-bar-DbMCxsYc.js";
2
2
  export { e as VueUi3dBar, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-accordion-DIPkJSR5.js";
1
+ import { t as e } from "../vue-ui-accordion-CLU_su1P.js";
2
2
  export { e as VueUiAccordion, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-age-pyramid-BXsOR5vR.js";
1
+ import { t as e } from "../vue-ui-age-pyramid-Dmbk6rMP.js";
2
2
  export { e as VueUiAgePyramid, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-annotator-BUp16M0M.js";
1
+ import { t as e } from "../vue-ui-annotator-QjHngrui.js";
2
2
  export { e as VueUiAnnotator, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-bullet-CQDSUZGN.js";
1
+ import { t as e } from "../vue-ui-bullet-DBZ3n4yK.js";
2
2
  export { e as VueUiBullet, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-bump-Bi6vei_K.js";
1
+ import { t as e } from "../vue-ui-bump-CirnIRZw.js";
2
2
  export { e as VueUiBump, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-candlestick-vlN6ggwT.js";
1
+ import { t as e } from "../vue-ui-candlestick-DZX6VVMs.js";
2
2
  export { e as VueUiCandlestick, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-carousel-table-BsM01Vhv.js";
1
+ import { t as e } from "../vue-ui-carousel-table-CWhd8Plu.js";
2
2
  export { e as VueUiCarouselTable, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-chestnut-DeZm4G27.js";
1
+ import { t as e } from "../vue-ui-chestnut-CMktwDOV.js";
2
2
  export { e as VueUiChestnut, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-chord-BVZ0JwUk.js";
1
+ import { t as e } from "../vue-ui-chord-_3zAHsdj.js";
2
2
  export { e as VueUiChord, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-circle-pack-BPfju3EJ.js";
1
+ import { t as e } from "../vue-ui-circle-pack-BhcQw1-I.js";
2
2
  export { e as VueUiCirclePack, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-cursor-CXA7DIe8.js";
1
+ import { t as e } from "../vue-ui-cursor-Bo39SVBr.js";
2
2
  export { e as VueUiCursor, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-dag-B-DSsdY1.js";
1
+ import { t as e } from "../vue-ui-dag-DEF_uf-N.js";
2
2
  export { e as VueUiDag, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-dashboard-DgluDGFX.js";
1
+ import { t as e } from "../vue-ui-dashboard-DFIIsh3Z.js";
2
2
  export { e as VueUiDashboard, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-digits-B0A9bPI5.js";
1
+ import { t as e } from "../vue-ui-digits-BrIyw5fg.js";
2
2
  export { e as VueUiDigits, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-donut-evolution-vfnMiNoN.js";
1
+ import { t as e } from "../vue-ui-donut-evolution-BmNVUdQJ.js";
2
2
  export { e as VueUiDonutEvolution, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../vue-ui-donut-HCALQsex.js";
1
+ import { t as e } from "../vue-ui-donut-IafNVctv.js";
2
2
  export { e as VueUiDonut, e as default };