vue-data-ui 3.8.2 → 3.8.4

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 (161) hide show
  1. package/dist/{Arrow-pvqmWZAQ.js → Arrow-i6njovHV.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BYwNgX3M.js → BaseDraggableDialog-C2wzOVzX.js} +2 -2
  3. package/dist/{BaseIcon-CALhpING.js → BaseIcon-_2VlkSHq.js} +1 -1
  4. package/dist/{ColorPicker-B_9b0REv.js → ColorPicker-Y-VfX-24.js} +2 -2
  5. package/dist/{DataTable-Ca1twcf7.js → DataTable-CokMin24.js} +2 -2
  6. package/dist/{Legend-Djkw4FGq.js → Legend-PhhPyrZ0.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DCQPVA4M.js → NonSvgPenAndPaper-ir3Z1ZAu.js} +3 -3
  8. package/dist/{PackageVersion-CR86X4r9.js → PackageVersion-BuD3uLvK.js} +1 -1
  9. package/dist/PenAndPaper-CFRubEEG.js +402 -0
  10. package/dist/{Shape-BEGGcaL8.js → Shape-BuBasQnO.js} +1 -1
  11. package/dist/{Slicer-DaUi0o8i.js → Slicer-CVcdknEx.js} +2 -2
  12. package/dist/{SlicerPreview-Bk-h_ANq.js → SlicerPreview-C1EQEgYE.js} +2 -2
  13. package/dist/{SparkTooltip-BWdCP-h3.js → SparkTooltip-yKdo0Bx6.js} +1 -1
  14. package/dist/{Title-CWX8otQg.js → Title-DnykBvFl.js} +1 -1
  15. package/dist/{Tooltip-OHx7yHlS.js → Tooltip-l2pmtXwi.js} +1 -1
  16. package/dist/{UserOptions-ChRXLqps.js → UserOptions-M5A9w5GL.js} +2 -2
  17. package/dist/components/arrow.js +1 -1
  18. package/dist/components/vue-ui-3d-bar.js +1 -1
  19. package/dist/components/vue-ui-accordion.js +1 -1
  20. package/dist/components/vue-ui-age-pyramid.js +1 -1
  21. package/dist/components/vue-ui-annotator.js +1 -1
  22. package/dist/components/vue-ui-bullet.js +1 -1
  23. package/dist/components/vue-ui-candlestick.js +1 -1
  24. package/dist/components/vue-ui-carousel-table.js +1 -1
  25. package/dist/components/vue-ui-chestnut.js +1 -1
  26. package/dist/components/vue-ui-chord.js +1 -1
  27. package/dist/components/vue-ui-circle-pack.js +1 -1
  28. package/dist/components/vue-ui-cursor.js +1 -1
  29. package/dist/components/vue-ui-dag.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +1 -1
  33. package/dist/components/vue-ui-donut.js +1 -1
  34. package/dist/components/vue-ui-dumbbell.js +1 -1
  35. package/dist/components/vue-ui-flow.js +1 -1
  36. package/dist/components/vue-ui-funnel.js +1 -1
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +1 -1
  42. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +1 -1
  47. package/dist/components/vue-ui-mood-radar.js +1 -1
  48. package/dist/components/vue-ui-nested-donuts.js +1 -1
  49. package/dist/components/vue-ui-onion.js +1 -1
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +1 -1
  52. package/dist/components/vue-ui-quick-chart.js +1 -1
  53. package/dist/components/vue-ui-radar.js +1 -1
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +1 -1
  56. package/dist/components/vue-ui-ridgeline.js +1 -1
  57. package/dist/components/vue-ui-rings.js +1 -1
  58. package/dist/components/vue-ui-scatter.js +1 -1
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +1 -1
  63. package/dist/components/vue-ui-sparkgauge.js +1 -1
  64. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  65. package/dist/components/vue-ui-sparkline.js +1 -1
  66. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  67. package/dist/components/vue-ui-stackbar.js +1 -1
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +1 -1
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +1 -1
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +1 -1
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +1 -1
  76. package/dist/components/vue-ui-treemap.js +1 -1
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +1 -1
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +1 -1
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +1 -1
  83. package/dist/components/vue-ui-xy.js +1 -1
  84. package/dist/{dom-to-png-VQEAYRVr.js → dom-to-png-CNmX1SJg.js} +1 -1
  85. package/dist/{img-CwrkWkkl.js → img-C5q4A7ke.js} +1 -1
  86. package/dist/{lib-qMPkcvmh.js → lib-_nVZfi2t.js} +29 -28
  87. package/dist/{pdf-BMMrFX8S.js → pdf-B7obJjyd.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +3 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-CY90KinM.js → useAutoSizeLabelsInsideViewbox-Cj4ZcFAh.js} +1 -1
  91. package/dist/{useNestedProp-DH2Pjkde.js → useNestedProp-CNjAKn-Z.js} +5 -1
  92. package/dist/{usePrinter-CjGh4mFJ.js → usePrinter-DXIMGR61.js} +2 -2
  93. package/dist/{vue-data-ui-DSoAFYh6.js → vue-data-ui-DXfEvcys.js} +66 -66
  94. package/dist/vue-data-ui.js +70 -70
  95. package/dist/{vue-ui-3d-bar-Dr9yOng4.js → vue-ui-3d-bar-BR7AtlR0.js} +6 -6
  96. package/dist/{vue-ui-accordion-DiNnR-ZE.js → vue-ui-accordion-WOPRF2Tv.js} +3 -3
  97. package/dist/{vue-ui-age-pyramid-D1wY760N.js → vue-ui-age-pyramid-DUcx-5pl.js} +6 -6
  98. package/dist/{vue-ui-annotator-D_z1JO0m.js → vue-ui-annotator-BBgWTQxm.js} +7 -7
  99. package/dist/{vue-ui-bullet-CATRx7fX.js → vue-ui-bullet-e-E8vgoK.js} +7 -7
  100. package/dist/{vue-ui-candlestick-Wbwh9a_1.js → vue-ui-candlestick-ofOO-UZd.js} +7 -7
  101. package/dist/{vue-ui-carousel-table-B-3Okj00.js → vue-ui-carousel-table-Cw9AZ6K_.js} +4 -4
  102. package/dist/{vue-ui-chestnut-DEIG2RoM.js → vue-ui-chestnut-BfxiZIas.js} +5 -5
  103. package/dist/{vue-ui-chord-enRLQOLg.js → vue-ui-chord-BZplQ2Ah.js} +8 -8
  104. package/dist/{vue-ui-circle-pack-Bn-xTRny.js → vue-ui-circle-pack-65-cbeZq.js} +6 -6
  105. package/dist/{vue-ui-cursor-CZ58l0J2.js → vue-ui-cursor-CowLXeRB.js} +3 -3
  106. package/dist/{vue-ui-dag-CeF87qTR.js → vue-ui-dag-Cnv5koqb.js} +546 -545
  107. package/dist/{vue-ui-dashboard-DIRH3qPO.js → vue-ui-dashboard-CH4lfPnJ.js} +68 -68
  108. package/dist/{vue-ui-digits-B7rN8UWS.js → vue-ui-digits-DwsMbBDJ.js} +2 -2
  109. package/dist/{vue-ui-donut-evolution-DrdfQnMs.js → vue-ui-donut-evolution-DNicvCVK.js} +8 -8
  110. package/dist/vue-ui-donut-gntDZdB4.js +2001 -0
  111. package/dist/{vue-ui-dumbbell-CDq2-NBe.js → vue-ui-dumbbell-CQIJgRxY.js} +7 -7
  112. package/dist/{vue-ui-flow-Y9omWd2u.js → vue-ui-flow-BUThxO9F.js} +7 -7
  113. package/dist/{vue-ui-funnel-BCVF1KTv.js → vue-ui-funnel-fPcBhjoP.js} +6 -6
  114. package/dist/{vue-ui-galaxy-D7DBAhIy.js → vue-ui-galaxy-ClBzduIz.js} +7 -7
  115. package/dist/{vue-ui-gauge-BlxvYBkd.js → vue-ui-gauge-BnWsuqfT.js} +7 -7
  116. package/dist/{vue-ui-gizmo-TAA6z0iU.js → vue-ui-gizmo-B1RWjhoX.js} +3 -3
  117. package/dist/{vue-ui-heatmap-BS1CinF0.js → vue-ui-heatmap-CdGmGjGH.js} +7 -7
  118. package/dist/{vue-ui-history-plot-DNgE02I6.js → vue-ui-history-plot-CyUvc35T.js} +7 -7
  119. package/dist/{vue-ui-horizontal-bar-DQcgNmg8.js → vue-ui-horizontal-bar-CUwFkoh_.js} +13 -13
  120. package/dist/{vue-ui-kpi-B6oDMqQL.js → vue-ui-kpi-BXQvKfTh.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-BXLMnXR4.js → vue-ui-mini-loader-DFBgplMk.js} +2 -2
  122. package/dist/{vue-ui-molecule-Dp_ZSzsj.js → vue-ui-molecule-BTaGK6l7.js} +54 -54
  123. package/dist/{vue-ui-mood-radar-BdRrOGLR.js → vue-ui-mood-radar-DIxGLyf6.js} +7 -7
  124. package/dist/{vue-ui-nested-donuts-AIyLN3zs.js → vue-ui-nested-donuts-Buo1qlvt.js} +7 -7
  125. package/dist/{vue-ui-onion-VFqPdMEh.js → vue-ui-onion-CTRuEQxm.js} +8 -8
  126. package/dist/{vue-ui-parallel-coordinate-plot-E9SLS7RW.js → vue-ui-parallel-coordinate-plot-CX_sxW2v.js} +28 -28
  127. package/dist/{vue-ui-quadrant-BcbUHmkA.js → vue-ui-quadrant-DmVXReZH.js} +8 -8
  128. package/dist/{vue-ui-quick-chart-DOCz-s43.js → vue-ui-quick-chart-B9hUcTr6.js} +6 -6
  129. package/dist/{vue-ui-radar-BIGTJvWQ.js → vue-ui-radar-DCIkshOp.js} +8 -8
  130. package/dist/{vue-ui-rating-CtkV7O_k.js → vue-ui-rating-jjJl1N9l.js} +2 -2
  131. package/dist/{vue-ui-relation-circle-C3TjhX13.js → vue-ui-relation-circle-CM2duT_R.js} +7 -7
  132. package/dist/{vue-ui-ridgeline-BCvf2QDN.js → vue-ui-ridgeline-y7Fwkr-1.js} +8 -8
  133. package/dist/{vue-ui-rings-IrmvR-uv.js → vue-ui-rings-B6HLC79S.js} +8 -8
  134. package/dist/{vue-ui-scatter-ST5ZySnk.js → vue-ui-scatter-BDp469sU.js} +8 -8
  135. package/dist/{vue-ui-skeleton-CbF8cNtW.js → vue-ui-skeleton-CTivICoM.js} +3 -3
  136. package/dist/{vue-ui-smiley-C-mXyFxi.js → vue-ui-smiley-YLy2xBa-.js} +2 -2
  137. package/dist/{vue-ui-spark-trend-CIJLfHtS.js → vue-ui-spark-trend-B2wOWiSY.js} +3 -3
  138. package/dist/{vue-ui-sparkbar-BVcnZro1.js → vue-ui-sparkbar-CqwjRMPQ.js} +3 -3
  139. package/dist/{vue-ui-sparkgauge-Bzl9AdPu.js → vue-ui-sparkgauge-BNv5nBv8.js} +3 -3
  140. package/dist/{vue-ui-sparkhistogram-nEOjS0kw.js → vue-ui-sparkhistogram-ZrALpNpM.js} +4 -4
  141. package/dist/{vue-ui-sparkline-DBMs4QF-.js → vue-ui-sparkline-D7_6htbE.js} +3 -3
  142. package/dist/{vue-ui-sparkstackbar-Drqffzag.js → vue-ui-sparkstackbar-BQD6cbOE.js} +3 -3
  143. package/dist/{vue-ui-stackbar-DmECmpBp.js → vue-ui-stackbar-C9KeiS-Q.js} +9 -9
  144. package/dist/{vue-ui-stackline-CDWhnKV8.js → vue-ui-stackline-qJW5y3GA.js} +9 -9
  145. package/dist/{vue-ui-strip-plot-BSkWmE37.js → vue-ui-strip-plot-Bgt_dkJ3.js} +7 -7
  146. package/dist/{vue-ui-table-DhKfklhX.js → vue-ui-table-BvpnTcTk.js} +5 -5
  147. package/dist/{vue-ui-table-heatmap-DODhMbZE.js → vue-ui-table-heatmap-UkSDagXf.js} +10 -10
  148. package/dist/{vue-ui-table-sparkline-BB7y9MEg.js → vue-ui-table-sparkline-D-UoYPFq.js} +4 -4
  149. package/dist/{vue-ui-thermometer-KpasFVWs.js → vue-ui-thermometer-CCySf8Ei.js} +7 -7
  150. package/dist/{vue-ui-timer-CSesYHmN.js → vue-ui-timer-D2-YQFf3.js} +5 -5
  151. package/dist/{vue-ui-tiremarks-DfXDAMEy.js → vue-ui-tiremarks-NDuNR9MY.js} +6 -6
  152. package/dist/{vue-ui-treemap-80KNxaAC.js → vue-ui-treemap-Dzlc-kC5.js} +8 -8
  153. package/dist/{vue-ui-waffle-IsPJ8tOx.js → vue-ui-waffle-CBBfrQqs.js} +8 -8
  154. package/dist/{vue-ui-wheel-BQZ0ABos.js → vue-ui-wheel-iFV_KfLw.js} +6 -6
  155. package/dist/{vue-ui-word-cloud-Dx0HYmL4.js → vue-ui-word-cloud-DLBK1KRY.js} +6 -6
  156. package/dist/{vue-ui-world-Cvop-Bfx.js → vue-ui-world-BinQefwp.js} +6 -6
  157. package/dist/{vue-ui-xy-5xj16K5g.js → vue-ui-xy-BSxvJyZM.js} +9 -9
  158. package/dist/{vue-ui-xy-canvas-Cq-lVd9y.js → vue-ui-xy-canvas-Bl4ZS4GS.js} +10 -10
  159. package/package.json +1 -1
  160. package/dist/PenAndPaper-DscVdZ1u.js +0 -388
  161. package/dist/vue-ui-donut-CL2l-Mq-.js +0 -1713
@@ -1,18 +1,18 @@
1
1
  import { defineAsyncComponent as Xe, useSlots as er, getCurrentInstance as lr, ref as x, computed as b, onMounted as Zl, toRefs as ar, watch as Ll, watchEffect as Lt, onBeforeUnmount as ka, nextTick as Mt, createElementBlock as n, openBlock as u, normalizeStyle as C, normalizeClass as ll, createBlock as Te, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, withCtx as G, renderSlot as P, normalizeProps as ke, guardReactiveProps as _e, createSlots as Tt, Fragment as d, renderList as w, mergeProps as al, toDisplayString as ae, Teleport as tr, resolveDynamicComponent as or, withDirectives as rr, vModelCheckbox as sr, createTextVNode as zt } from "vue";
2
- import { c as _a, g as wa, t as ir, j as ur, M as Ml, N as tl, l as It, p as Sa, O as Jl, P as Y, Q as Ca, R as nr, S as cr, T as N, y as Ft, z as Ot, A as Bt, B as Nt, U as vr, V as Vt, W as Dt, a as re, Y as dr, x as Pt, Z as hr, b as Et, e as Ne, d as Ve, h as ol, s as ze, F as fr, w as Ge, G as Ql, m as Ce, _ as gr, $ as Ue, a0 as fe, i as mr, o as Rt, u as br, q as xr, a1 as dl } from "./lib-qMPkcvmh.js";
2
+ import { c as _a, g as wa, t as ir, j as ur, M as Ml, N as tl, l as It, p as Sa, O as Jl, P as Y, Q as Ca, R as nr, S as cr, T as N, y as Ft, z as Ot, A as Bt, B as Nt, U as vr, V as Vt, W as Dt, a as re, Y as dr, x as Pt, Z as hr, b as Et, e as Ne, d as Ve, h as ol, s as ze, F as fr, w as Ge, G as Ql, m as Ce, _ as gr, $ as Ue, a0 as fe, i as mr, o as Rt, u as br, q as xr, a1 as dl } from "./lib-_nVZfi2t.js";
3
3
  import { t as pr } from "./useResponsive-DfdjqQps.js";
4
- import { u as yr, a as Tl } from "./useNestedProp-DH2Pjkde.js";
5
- import { u as kr } from "./usePrinter-CjGh4mFJ.js";
4
+ import { u as yr, a as Tl } from "./useNestedProp-CNjAKn-Z.js";
5
+ import { u as kr } from "./usePrinter-DXIMGR61.js";
6
6
  import { u as _r, B as wr } from "./BaseScanner-BgWxam9d.js";
7
7
  import { u as Ht, a as Sr, l as Cr } from "./useTimeLabels-C5qMhpbe.js";
8
8
  import { u as $r } from "./useSvgExport-DrjCWun4.js";
9
9
  import { u as Ar } from "./useThemeCheck-DGJ31Vi5.js";
10
10
  import { u as Lr } from "./useTimeLabelCollider-CIsgDrl9.js";
11
- import Mr from "./img-CwrkWkkl.js";
12
- import Tr from "./Title-CWX8otQg.js";
13
- import { _ as Kl } from "./Shape-BEGGcaL8.js";
14
- import { S as zr } from "./SlicerPreview-Bk-h_ANq.js";
15
- import Ir from "./vue-ui-accordion-DiNnR-ZE.js";
11
+ import Mr from "./img-C5q4A7ke.js";
12
+ import Tr from "./Title-DnykBvFl.js";
13
+ import { _ as Kl } from "./Shape-BuBasQnO.js";
14
+ import { S as zr } from "./SlicerPreview-C1EQEgYE.js";
15
+ import Ir from "./vue-ui-accordion-WOPRF2Tv.js";
16
16
  import { _ as Fr } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, timeTag: { backgroundColor: "#2A2A2A", color: "#CCCCCC", circleMarker: { color: "#2A2A2A" } }, grid: { stroke: "#5A5A5A", showVerticalLines: !1, labels: { color: "#CCCCCC", xAxisLabels: { color: "#CCCCCC" } } }, legend: { color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } }, bar: { border: { stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" }, serieName: { color: "#CCCCCC" } }, line: { labels: { color: "#CCCCCC" } }, plot: { labels: { color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Wt = { chart: { backgroundColor: "#FFF8E1", color: "#424242", zoom: { color: "#5D4037", highlightColor: "#FF8A65", minimap: { selectedColor: "#FF8A65", lineColor: "#424242", indicatorColor: "#FF8A65" } }, highlighter: { color: "#424242" }, timeTag: { backgroundColor: "#424242", color: "#FFF8E1", circleMarker: { color: "#424242" } }, grid: { stroke: "#5D4037", showVerticalLines: !1, labels: { color: "#424242", xAxisLabels: { color: "#424242" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } }, bar: { borderRadius: 2, border: { stroke: "#FFF8E1" }, labels: { color: "#424242" }, serieName: { color: "#424242" } }, line: { labels: { color: "#424242" } }, plot: { labels: { color: "#424242" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Xt = { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", zoom: { color: "#5D4037", highlightColor: "#FF8A65", minimap: { selectedColor: "#FF8A65", lineColor: "#FF6B6B", indicatorColor: "#FF8A65" } }, highlighter: { color: "#FFF8E1" }, timeTag: { backgroundColor: "#5D4037", color: "#FFF8E1", circleMarker: { color: "#5D4037" } }, grid: { stroke: "#5D4037", showVerticalLines: !1, labels: { color: "#BDBDBD", xAxisLabels: { color: "#BDBDBD" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } }, bar: { borderRadius: 2, border: { stroke: "#1E1E1E" }, labels: { color: "#BDBDBD" }, serieName: { color: "#BDBDBD" } }, line: { labels: { color: "#BDBDBD" } }, plot: { labels: { color: "#BDBDBD" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Gt = { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, highlighter: { color: "#66CC66" }, timeTag: { backgroundColor: "#1A1A1A", color: "#66CC66", circleMarker: { color: "#66CC66" } }, grid: { stroke: "#5F6A5F", showVerticalLines: !1, labels: { color: "#99AA99", xAxisLabels: { color: "#99AA99" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } }, bar: { borderRadius: 0, border: { stroke: "#66CC66" }, labels: { color: "#AACCAA" }, serieName: { color: "#99CC99" } }, line: { labels: { color: "#AACCAA" } }, plot: { labels: { color: "#AACCAA" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Ut = { chart: { backgroundColor: "#fbfafa", color: "#8A9892", zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, highlighter: { color: "#8F837A" }, timeTag: { backgroundColor: "#fbfafa", color: "#8A9892", circleMarker: { color: "#8A9892" } }, grid: { stroke: "transparent", labels: { show: !1, color: "#99AA99", xAxisLabels: { show: !1, color: "#99AA99" }, zeroLine: { show: !1 }, yAxis: { showBaseline: !1 } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, bar: { borderRadius: 4, border: { stroke: "#D7E0D2" }, labels: { color: "#8F837A" }, serieName: { color: "#858480" } }, line: { labels: { color: "#8F837A" } }, plot: { labels: { color: "#8F837A" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, qt = { chart: { backgroundColor: "#f6f6fb", color: "#50606C", zoom: { color: "#92B0AB", highlightColor: "#50606C" }, highlighter: { color: "#7DA9B5" }, timeTag: { backgroundColor: "#f6f6fb", color: "#50606C", circleMarker: { color: "#50606C" } }, grid: { stroke: "#829C98", showVerticalLines: !0, showHorizontalLines: !0, labels: { color: "#50606C", xAxisLabels: { color: "#50606C" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, bar: { borderRadius: 2, border: { stroke: "#404C4D" }, labels: { color: "#50606C" }, serieName: { color: "#61747E" } }, line: { labels: { color: "#50606C" } }, plot: { labels: { color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Zt = {
18
18
  default: {},
@@ -97,7 +97,7 @@ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { colo
97
97
  },
98
98
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
99
99
  setup(jl, { expose: Jt, emit: Qt }) {
100
- const g = jl, Kt = Xe(() => import("./DataTable-Ca1twcf7.js")), jt = Xe(() => import("./Tooltip-OHx7yHlS.js")), eo = Xe(() => import("./UserOptions-ChRXLqps.js")), $a = Xe(() => import("./BaseIcon-CALhpING.js")), lo = Xe(() => import("./vue-ui-table-sparkline-BB7y9MEg.js").then((a) => a.b)), ao = Xe(() => import("./PackageVersion-CR86X4r9.js")), to = Xe(() => import("./PenAndPaper-DscVdZ1u.js")), oo = Xe(() => import("./BaseDraggableDialog-BYwNgX3M.js")), ea = Qt, Aa = er(), ro = lr(), { vue_ui_xy: hl } = yr(), { isThemeValid: so, warnInvalidTheme: io } = Ar(), Ie = x(null), fl = x(null), Fe = x(null), rl = x(null), gl = x(null), ml = x(null), uo = x(null), la = x(null), aa = x(null), sl = x(null), ta = x(null), oa = x(null), Ee = x(null), ra = x(null), no = x(0), I = x(null), La = x(!0), ve = x(600), ee = x(1e3), zl = x("0 0 1000 600"), co = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), Ma = x(!1), Ze = x(null), J = x([]), H = x(_a()), Ta = x(0), za = x(0), Ia = x(0), pl = x(!0), sa = x(0), B = x(null), Fa = x(!1), ia = x(!0), Il = x(!0), se = x(null), De = x({}), Fl = x(null), Oa = x(!1), il = x(null), _ = x(null), vo = b(() => ({
100
+ const g = jl, Kt = Xe(() => import("./DataTable-CokMin24.js")), jt = Xe(() => import("./Tooltip-l2pmtXwi.js")), eo = Xe(() => import("./UserOptions-M5A9w5GL.js")), $a = Xe(() => import("./BaseIcon-_2VlkSHq.js")), lo = Xe(() => import("./vue-ui-table-sparkline-D-UoYPFq.js").then((a) => a.b)), ao = Xe(() => import("./PackageVersion-BuD3uLvK.js")), to = Xe(() => import("./PenAndPaper-CFRubEEG.js")), oo = Xe(() => import("./BaseDraggableDialog-C2wzOVzX.js")), ea = Qt, Aa = er(), ro = lr(), { vue_ui_xy: hl } = yr(), { isThemeValid: so, warnInvalidTheme: io } = Ar(), Ie = x(null), fl = x(null), Fe = x(null), rl = x(null), gl = x(null), ml = x(null), uo = x(null), la = x(null), aa = x(null), sl = x(null), ta = x(null), oa = x(null), Ee = x(null), ra = x(null), no = x(0), I = x(null), La = x(!0), ve = x(600), ee = x(1e3), zl = x("0 0 1000 600"), co = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), Ma = x(!1), Ze = x(null), J = x([]), H = x(_a()), Ta = x(0), za = x(0), Ia = x(0), pl = x(!0), sa = x(0), B = x(null), Fa = x(!1), ia = x(!0), Il = x(!0), se = x(null), De = x({}), Fl = x(null), Oa = x(!1), il = x(null), _ = x(null), vo = b(() => ({
101
101
  height: ve.value,
102
102
  width: ee.value
103
103
  }));
@@ -1,19 +1,19 @@
1
1
  import { defineAsyncComponent as pe, ref as d, computed as p, useSlots as Na, onMounted as $l, toRefs as _a, watch as O, nextTick as be, onBeforeUnmount as Tl, shallowRef as je, createElementBlock as Te, openBlock as I, normalizeClass as Ha, normalizeStyle as xe, createCommentVNode as V, createElementVNode as J, createBlock as W, unref as C, createSlots as Il, withCtx as b, renderSlot as S, normalizeProps as K, guardReactiveProps as ee, createVNode as El, Teleport as Xa, toDisplayString as qe, resolveDynamicComponent as Ua, mergeProps as Va, createTextVNode as Ol } from "vue";
2
- import { c as Wa, t as Ya, i as ja, p as le, a0 as Ce, j as qa, M as Ge, a as se, d as ue, l as Rl, Q as Ga, aa as Za, S as Ja, o as Qa, g as Ka, x as Pl, s as Le, n as et, u as lt, q as at, Z as tt } from "./lib-qMPkcvmh.js";
2
+ import { c as Wa, t as Ya, i as ja, p as le, a0 as Ce, j as qa, M as Ge, a as se, d as ue, l as Rl, Q as Ga, ab as Za, S as Ja, o as Qa, g as Ka, x as Pl, s as Le, n as et, u as lt, q as at, Z as tt } from "./lib-_nVZfi2t.js";
3
3
  import { c as ot, a as Ze, d as rt, t as st, u as ut, l as k, r as Ie, b as Y, p as Bl } from "./useResponsive-DfdjqQps.js";
4
- import { u as nt, a as Ee } from "./useNestedProp-DH2Pjkde.js";
4
+ import { u as nt, a as Ee } from "./useNestedProp-CNjAKn-Z.js";
5
5
  import { u as it, B as ct } from "./BaseScanner-BgWxam9d.js";
6
- import { u as vt } from "./usePrinter-CjGh4mFJ.js";
6
+ import { u as vt } from "./usePrinter-DXIMGR61.js";
7
7
  import { u as dt, a as ht, l as ft } from "./useTimeLabels-C5qMhpbe.js";
8
8
  import { u as yt } from "./useThemeCheck-DGJ31Vi5.js";
9
9
  import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
10
10
  import { u as gt } from "./useChartAccessibility-9icAAmYg.js";
11
- import pt from "./img-CwrkWkkl.js";
12
- import bt from "./Legend-Djkw4FGq.js";
13
- import xt from "./Title-CWX8otQg.js";
14
- import Ct from "./BaseIcon-CALhpING.js";
15
- import Lt from "./vue-ui-accordion-DiNnR-ZE.js";
16
- import { S as kt } from "./SlicerPreview-Bk-h_ANq.js";
11
+ import pt from "./img-C5q4A7ke.js";
12
+ import bt from "./Legend-PhhPyrZ0.js";
13
+ import xt from "./Title-DnykBvFl.js";
14
+ import Ct from "./BaseIcon-_2VlkSHq.js";
15
+ import Lt from "./vue-ui-accordion-WOPRF2Tv.js";
16
+ import { S as kt } from "./SlicerPreview-C1EQEgYE.js";
17
17
  import { _ as At } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, selector: { color: "#CCCCCC" }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" }, grid: { y: { axisColor: "#5A5A5A", axisLabels: { color: "#CCCCCC" }, verticalLines: { color: "#4A4A4A" } }, x: { axisColor: "#5A5A5A", horizontalLines: { color: "#4A4A4A" }, timeLabels: { color: "#CCCCCC" } }, zeroLine: { color: "#5A5A5A" } }, dataLabels: { color: "#CCCCCC" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, _l = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, selector: { color: "#5D4037" }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, grid: { y: { axisColor: "#5D4037", axisLabels: { color: "#424242" }, verticalLines: { show: !1 } }, x: { axisColor: "#5D4037", horizontalLines: { color: "#9A9A9A" }, timeLabels: { color: "#424242" } }, zeroLine: { color: "#424242" } }, dataLabels: { color: "#424242" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Hl = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, selector: { color: "#BDBDBD" }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, grid: { y: { axisColor: "#5D4037", axisLabels: { color: "#BDBDBD" }, verticalLines: { show: !1 } }, x: { axisColor: "#5D4037", horizontalLines: { color: "#3A3A3A" }, timeLabels: { color: "#BDBDBD" } }, zeroLine: { color: "#5D4037" } }, dataLabels: { color: "#BDBDBD" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Xl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, selector: { color: "#66CC66" }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66", borderRadius: 0 }, grid: { y: { axisColor: "#5F6A5F", axisLabels: { color: "#99AA99" }, verticalLines: { show: !1 } }, x: { axisColor: "#5F6A5F", horizontalLines: { color: "#3A3A3A" }, timeLabels: { color: "#99AA99" } }, zeroLine: { color: "#444444" } }, dataLabels: { color: "#99AA99" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Ul = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, selector: { color: "#8F837A" }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" }, grid: { y: { axisColor: "#8F837A", axisLabels: { color: "#8F837A" }, verticalLines: { show: !1 } }, x: { axisColor: "#8F837A", horizontalLines: { show: !1, alternate: !1 }, timeLabels: { color: "#8F837A" } }, zeroLine: { color: "#444444" } }, dataLabels: { color: "#8F837A" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Vl = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", zoom: { color: "#92B0AB", highlightColor: "#50606C" }, selector: { color: "#7DA9B5" }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" }, grid: { y: { axisColor: "#829C98", axisLabels: { color: "#50606C" }, verticalLines: { show: !1 } }, x: { axisColor: "#829C98", timeLabels: { color: "#50606C" } }, zeroLine: { color: "#444444" } }, dataLabels: { color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Wl = {
19
19
  default: {},
@@ -57,7 +57,7 @@ const Nl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
57
57
  },
58
58
  emits: ["selectLegend", "selectX"],
59
59
  setup(Je, { expose: Yl, emit: jl }) {
60
- const ql = pe(() => import("./Tooltip-OHx7yHlS.js")), Gl = pe(() => import("./DataTable-Ca1twcf7.js")), Zl = pe(() => import("./UserOptions-ChRXLqps.js")), Jl = pe(() => import("./NonSvgPenAndPaper-DCQPVA4M.js")), Ql = pe(() => import("./BaseDraggableDialog-BYwNgX3M.js")), { vue_ui_xy_canvas: Kl } = nt(), { isThemeValid: ea, warnInvalidTheme: la } = yt(), g = Je, Q = d(Wa()), _ = d(null), ae = d(null), c = d(null), m = d(1), j = d(1), ne = d(!1), h = d(null), ke = d(""), Qe = d(null), F = d([]), te = d(1), R = d(!0), H = d(!0), Ae = d(null), Ke = d(0), ie = d(!1), el = d(null), ll = d(null), q = d(null), al = d(null), Oe = d(0), Re = d(0), Pe = d(0), P = d(null), tl = d(!1), ce = d(null), Be = d(null), ve = d(!1), ol = d(!1), we = d(!1), A = d(null), X = p(() => Array.isArray(He.value) && He.value.length > 0), Ne = jl, aa = Na();
60
+ const ql = pe(() => import("./Tooltip-l2pmtXwi.js")), Gl = pe(() => import("./DataTable-CokMin24.js")), Zl = pe(() => import("./UserOptions-M5A9w5GL.js")), Jl = pe(() => import("./NonSvgPenAndPaper-ir3Z1ZAu.js")), Ql = pe(() => import("./BaseDraggableDialog-C2wzOVzX.js")), { vue_ui_xy_canvas: Kl } = nt(), { isThemeValid: ea, warnInvalidTheme: la } = yt(), g = Je, Q = d(Wa()), _ = d(null), ae = d(null), c = d(null), m = d(1), j = d(1), ne = d(!1), h = d(null), ke = d(""), Qe = d(null), F = d([]), te = d(1), R = d(!0), H = d(!0), Ae = d(null), Ke = d(0), ie = d(!1), el = d(null), ll = d(null), q = d(null), al = d(null), Oe = d(0), Re = d(0), Pe = d(0), P = d(null), tl = d(!1), ce = d(null), Be = d(null), ve = d(!1), ol = d(!1), we = d(!1), A = d(null), X = p(() => Array.isArray(He.value) && He.value.length > 0), Ne = jl, aa = Na();
61
61
  $l(() => {
62
62
  aa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
63
63
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.8.2",
4
+ "version": "3.8.4",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,388 +0,0 @@
1
- import { ref as c, computed as he, watch as z, nextTick as se, onMounted as Ae, onBeforeUnmount as we, createElementBlock as W, createCommentVNode as O, openBlock as j, normalizeStyle as x, createElementVNode as E, withDirectives as re, renderSlot as B, createVNode as R, withCtx as be, normalizeProps as T, guardReactiveProps as M, normalizeClass as Y, toDisplayString as xe, unref as ye, vModelText as ue } from "vue";
2
- import F from "./BaseIcon-CALhpING.js";
3
- import { C as Ce } from "./ColorPicker-B_9b0REv.js";
4
- import { n as ke, d as Ee } from "./lib-qMPkcvmh.js";
5
- const Se = {
6
- class: "vue-ui-pen-and-paper-action",
7
- style: { padding: "0 !important" }
8
- }, $e = ["disabled"], De = {
9
- __name: "PenAndPaper",
10
- props: {
11
- svgRef: {
12
- type: [Object, null, void 0],
13
- required: !0
14
- },
15
- color: {
16
- type: String,
17
- default: "#2D353C"
18
- },
19
- backgroundColor: {
20
- type: String,
21
- default: "#FFFFFF"
22
- },
23
- active: {
24
- type: Boolean,
25
- default: !1
26
- },
27
- scale: {
28
- type: Number,
29
- default: 1
30
- }
31
- },
32
- emits: ["close"],
33
- setup(d, { emit: ie }) {
34
- const s = d, ve = ie, b = c([]), y = c([]), S = c(s.color), N = c(2), Q = c(!1), V = c(""), o = c(null), A = c(null), I = c(null), p = c("draw"), K = c(!1), f = c(null), q = c({ x: 0, y: 0 }), D = c([""]), P = c({ row: 0, col: 0 }), $ = c(16), J = c("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");
35
- function Z(n) {
36
- if (!o.value || p.value !== "text" || K.value) return;
37
- const { x: e, y: l } = U(n);
38
- q.value = { x: e, y: l }, D.value = [""], P.value = { row: 0, col: 0 };
39
- const t = document.createElementNS("http://www.w3.org/2000/svg", "text");
40
- t.setAttribute("x", e), t.setAttribute("y", l), t.setAttribute("fill", S.value), t.setAttribute("font-size", $.value * s.scale), t.setAttribute("font-family", "sans-serif"), t.setAttribute("class", "vue-data-ui-doodle"), t.setAttribute("dominant-baseline", "hanging"), t.setAttribute("pointer-events", "all");
41
- const a = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
42
- a.setAttribute("x", e), a.setAttribute("dy", "0"), a.textContent = "", t.appendChild(a), t.style.pointerEvents = "none", t.style.userSelect = "none", o.value.appendChild(t), f.value = t, K.value = !0, window.addEventListener("keydown", _), window.addEventListener("mousedown", ne, !0), ee(), te();
43
- }
44
- function _(n) {
45
- if (!K.value) return;
46
- let { row: e, col: l } = P.value, t = D.value.slice(), a = !1;
47
- if (n.key === "Enter") {
48
- const r = t[e], u = r.slice(0, l), v = r.slice(l);
49
- t.splice(e, 1, u, v), e += 1, l = 0, a = !0, n.preventDefault();
50
- } else if (n.key === "Backspace") {
51
- if (l > 0)
52
- t[e] = t[e].slice(0, l - 1) + t[e].slice(l), l -= 1, a = !0;
53
- else if (e > 0) {
54
- const r = t[e - 1].length;
55
- t[e - 1] += t[e], t.splice(e, 1), e -= 1, l = r, a = !0;
56
- }
57
- n.preventDefault();
58
- } else if (n.key === "Delete")
59
- l < t[e].length ? (t[e] = t[e].slice(0, l) + t[e].slice(l + 1), a = !0) : e < t.length - 1 && (t[e] += t[e + 1], t.splice(e + 1, 1), a = !0), n.preventDefault();
60
- else if (n.key === "ArrowLeft")
61
- l > 0 ? l -= 1 : e > 0 && (e -= 1, l = t[e].length), a = !0, n.preventDefault();
62
- else if (n.key === "ArrowRight")
63
- l < t[e].length ? l += 1 : e < t.length - 1 && (e += 1, l = 0), a = !0, n.preventDefault();
64
- else if (n.key === "ArrowUp")
65
- e > 0 && (e -= 1, l = Math.min(l, t[e].length), a = !0), n.preventDefault();
66
- else if (n.key === "ArrowDown")
67
- e < t.length - 1 && (e += 1, l = Math.min(l, t[e].length), a = !0), n.preventDefault();
68
- else if (n.key.length === 1 && !n.ctrlKey && !n.metaKey && !n.altKey)
69
- t[e] = t[e].slice(0, l) + n.key + t[e].slice(l), l += 1, a = !0, n.preventDefault();
70
- else if (n.key === "Escape") {
71
- le(!0);
72
- return;
73
- } else n.key === "Tab" && n.preventDefault();
74
- a && (D.value = t, P.value = { row: e, col: l }, ee(), te());
75
- }
76
- function ee() {
77
- const n = f.value, { x: e } = q.value;
78
- for (; n.firstChild; ) n.removeChild(n.firstChild);
79
- D.value.forEach((l, t) => {
80
- const a = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
81
- a.setAttribute("x", e), a.setAttribute("dy", t === 0 ? "0" : `${$.value * 1.2 * s.scale}`), a.textContent = l.length ? l : "​", n.appendChild(a);
82
- });
83
- }
84
- function te() {
85
- const n = o.value.querySelector(".vue-data-ui-svg-caret");
86
- n && o.value.removeChild(n);
87
- const e = f.value;
88
- if (!e) return;
89
- const { x: l, y: t } = q.value, { row: a, col: r } = P.value, u = $.value * s.scale, v = e.childNodes[a];
90
- if (!v) return;
91
- let g = v.textContent.slice(0, r);
92
- g.endsWith(" ") && (g += " ");
93
- const i = document.createElementNS("http://www.w3.org/2000/svg", "text");
94
- i.setAttribute("x", l), i.setAttribute("y", t), i.setAttribute("font-size", u), i.setAttribute("font-family", "sans-serif"), i.textContent = g || "", o.value.appendChild(i);
95
- const m = i.getBBox();
96
- o.value.removeChild(i);
97
- let h = t + a * u * 1.2, k = l + m.width;
98
- const w = document.createElementNS("http://www.w3.org/2000/svg", "rect");
99
- w.setAttribute("x", k), w.setAttribute("y", h), w.setAttribute("width", 2), w.setAttribute("height", u), w.setAttribute("fill", S.value), w.setAttribute("class", "vue-data-ui-svg-caret"), o.value.appendChild(w);
100
- }
101
- function ne(n) {
102
- if (f.value && !f.value.contains(n.target)) {
103
- const e = f.value.children;
104
- e.length === 1 && (e[0].textContent === "" || e[0].textContent === "​") && f.value.remove(), le(!1);
105
- }
106
- }
107
- function le(n = !1) {
108
- window.removeEventListener("keydown", _), window.removeEventListener("mousedown", ne, !0);
109
- const e = o.value.querySelector(".vue-data-ui-svg-caret");
110
- e && o.value.removeChild(e);
111
- const l = f.value?.children;
112
- let t = !1;
113
- if (l && l.length === 1) {
114
- const a = l[0].textContent;
115
- t = !a || a === "​";
116
- }
117
- n || t ? f.value && o.value.contains(f.value) && o.value.removeChild(f.value) : f.value && o.value.contains(f.value) && b.value.push(f.value), K.value = !1, f.value = null, D.value = [""], P.value = { row: 0, col: 0 };
118
- }
119
- const C = he(() => ke(s.color, 0.6));
120
- function ae() {
121
- if (!o.value) return;
122
- const n = o.value.querySelector(".vue-data-ui-mask");
123
- if (n && o.value.removeChild(n), s.active) {
124
- const e = document.createElementNS("http://www.w3.org/2000/svg", "rect");
125
- e.setAttribute("class", "vue-data-ui-mask"), e.setAttribute("width", "100%"), e.setAttribute("height", "100%"), e.setAttribute("fill", "transparent"), e.setAttribute("pointer-events", "all"), o.value.insertBefore(e, o.value.firstChild);
126
- }
127
- }
128
- function U(n) {
129
- const e = s.svgRef;
130
- if (!e) return { x: 0, y: 0 };
131
- const l = e.createSVGPoint();
132
- l.x = n.clientX, l.y = n.clientY;
133
- const t = e.getScreenCTM()?.inverse();
134
- return t ? l.matrixTransform(t) : { x: 0, y: 0 };
135
- }
136
- function ce(n) {
137
- const e = n.trim().split(/\s+/);
138
- if (e.length < 4)
139
- return n;
140
- const l = e.slice(1).map(Number);
141
- if (l.length % 2 !== 0)
142
- return n;
143
- const t = de(l), a = [`M ${t[0]} ${t[1]}`];
144
- for (let v = 2; v < t.length - 2; v += 2) {
145
- const g = t[v - 2], i = t[v - 1], m = t[v], h = t[v + 1], k = (g + m) / 2, w = (i + h) / 2;
146
- a.push(`Q ${g} ${i} ${k} ${w}`);
147
- }
148
- const r = t[t.length - 2], u = t[t.length - 1];
149
- return a.push(`L ${r} ${u}`), a.join(" ");
150
- }
151
- function de(n, e = 1) {
152
- const l = [...n];
153
- for (let t = 2; t < n.length - 2; t += 2) {
154
- const a = n[t], r = n[t + 1], u = n[t - 2], v = n[t - 1], g = n[t + 2], i = n[t + 3];
155
- l[t] = a + e * ((u + g) / 2 - a), l[t + 1] = r + e * ((v + i) / 2 - r);
156
- }
157
- return l;
158
- }
159
- function fe(n) {
160
- const e = n.trim().split(/\s+/);
161
- let l = "", t = "", a = null, r = null;
162
- for (let u = 0; u < e.length; u += 1) {
163
- const v = e[u];
164
- if (isNaN(v)) {
165
- if (t = v, t === "M" || t === "L")
166
- a = parseFloat(e[++u]), r = parseFloat(e[++u]), l += `${t}${a} ${r}`;
167
- else if (t === "Q") {
168
- const g = parseFloat(e[++u]), i = parseFloat(e[++u]), m = parseFloat(e[++u]), h = parseFloat(e[++u]);
169
- g === a && i === r ? l += `t${m - a} ${h - r}` : l += `q${g - a} ${i - r} ${m - a} ${h - r}`, a = m, r = h;
170
- }
171
- } else {
172
- const g = parseFloat(v), i = parseFloat(e[++u]);
173
- if (t === "L") {
174
- const m = g - a, h = i - r;
175
- m === 0 ? l += `v${h}` : h === 0 ? l += `h${m}` : l += `l${m} ${h}`, a = g, r = i;
176
- } else if (t === "Q") {
177
- const m = g, h = i, k = parseFloat(e[++u]), w = parseFloat(e[++u]);
178
- m === a && h === r ? l += `t${k - a} ${w - r}` : l += `q${m - a} ${h - r} ${k - a} ${w - r}`, a = k, r = w;
179
- }
180
- }
181
- }
182
- return l;
183
- }
184
- function G(n) {
185
- if (p.value !== "draw" || !s.active || !o.value) return;
186
- Q.value = !0;
187
- const { x: e, y: l } = U(n);
188
- I.value = { x: e, y: l }, V.value = `M ${e} ${l}`, A.value = document.createElementNS("http://www.w3.org/2000/svg", "path"), A.value.setAttribute("stroke", S.value), A.value.setAttribute("stroke-width", N.value * s.scale), A.value.setAttribute("fill", "none"), A.value.setAttribute("stroke-linecap", "round"), A.value.setAttribute("stroke-linejoin", "round"), A.value.setAttribute("class", "vue-data-ui-doodle"), o.value.appendChild(A.value);
189
- }
190
- function H(n) {
191
- if (!Q.value || !o.value || !A.value) return;
192
- const { x: e, y: l } = U(n);
193
- V.value += ` ${e} ${l}`, A.value.setAttribute("d", V.value);
194
- }
195
- function L(n) {
196
- if (Q.value && o.value && A.value) {
197
- const { x: e, y: l } = U(n);
198
- if (I.value && I.value.x === e && I.value.y === l) {
199
- const t = document.createElementNS("http://www.w3.org/2000/svg", "circle");
200
- t.setAttribute("cx", e), t.setAttribute("cy", l), t.setAttribute("r", N.value * s.scale / 2), t.setAttribute("fill", S.value), t.setAttribute("class", "vue-data-ui-doodle"), o.value.appendChild(t), b.value.push(t);
201
- } else {
202
- const t = A.value;
203
- t.setAttribute("d", fe(ce(V.value))), b.value.push(t);
204
- }
205
- y.value = [], A.value = "";
206
- }
207
- Q.value = !1;
208
- }
209
- function ge() {
210
- if (b.value.length > 0) {
211
- const n = b.value.pop();
212
- y.value.push(n), o.value && o.value.removeChild(n);
213
- }
214
- }
215
- function pe() {
216
- if (y.value.length > 0) {
217
- const n = y.value.pop();
218
- b.value.push(n), o.value && o.value.appendChild(n);
219
- }
220
- }
221
- function me() {
222
- o.value && (o.value.innerHTML = ""), b.value = [], y.value = [], ae();
223
- }
224
- z(p, () => {
225
- s.active && (X(), oe(), p.value === "text" ? o.value.style.cursor = "text" : o.value.style.cursor = J.value);
226
- });
227
- function oe() {
228
- !s.svgRef || !s.active || (p.value === "draw" ? (s.svgRef.addEventListener("mousedown", G), s.svgRef.addEventListener("mousemove", H), s.svgRef.addEventListener("mouseup", L), s.svgRef.addEventListener("mouseleave", L), s.svgRef.addEventListener("touchstart", G, { passive: !1 }), s.svgRef.addEventListener("touchmove", H, { passive: !1 }), s.svgRef.addEventListener("touchend", L)) : p.value === "text" && s.svgRef.addEventListener("mousedown", Z), o.value && (o.value.style.pointerEvents = "auto"));
229
- }
230
- function X() {
231
- s.svgRef && (s.svgRef.removeEventListener("mousedown", G), s.svgRef.removeEventListener("mousemove", H), s.svgRef.removeEventListener("mouseup", L), s.svgRef.removeEventListener("mouseleave", L), s.svgRef.removeEventListener("touchstart", G), s.svgRef.removeEventListener("touchmove", H), s.svgRef.removeEventListener("touchend", L), s.svgRef.removeEventListener("mousedown", Z), o.value && (o.value.style.pointerEvents = "none"));
232
- }
233
- return z(() => s.active, (n) => {
234
- n ? oe() : X();
235
- }), z(() => s.active, () => {
236
- se(() => {
237
- ae();
238
- });
239
- }), Ae(() => {
240
- se(() => {
241
- s.svgRef && (o.value = document.createElementNS("http://www.w3.org/2000/svg", "g"), o.value.setAttribute("class", "vue-data-ui-doodles"), o.value.style.cursor = J.value, s.svgRef.appendChild(o.value), X());
242
- });
243
- }), we(() => {
244
- o.value && s.svgRef && (o.value.remove(), X());
245
- }), (n, e) => d.active ? (j(), W("div", {
246
- key: 0,
247
- "data-dom-to-png-ignore": "",
248
- class: "vue-ui-pen-and-paper-actions",
249
- style: x({ backgroundColor: d.backgroundColor })
250
- }, [
251
- E("button", {
252
- class: "vue-ui-pen-and-paper-action",
253
- onClick: e[0] || (e[0] = (l) => ve("close")),
254
- style: x({
255
- backgroundColor: d.backgroundColor,
256
- border: `1px solid ${C.value}`
257
- })
258
- }, [
259
- B(n.$slots, "annotator-action-close", {}, () => [
260
- R(F, {
261
- name: "close",
262
- stroke: d.color
263
- }, null, 8, ["stroke"])
264
- ])
265
- ], 4),
266
- E("button", Se, [
267
- R(Ce, {
268
- value: S.value,
269
- "onUpdate:value": e[1] || (e[1] = (l) => S.value = l),
270
- backgroundColor: d.backgroundColor,
271
- buttonBorderColor: C.value
272
- }, {
273
- "annotator-action-color": be(({ color: l }) => [
274
- B(n.$slots, "annotator-action-color", T(M({ color: l })))
275
- ]),
276
- _: 3
277
- }, 8, ["value", "backgroundColor", "buttonBorderColor"])
278
- ]),
279
- E("button", {
280
- class: Y(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": p.value === "text" }]),
281
- onClick: e[2] || (e[2] = (l) => p.value = p.value === "text" ? "draw" : "text"),
282
- style: x({
283
- backgroundColor: d.backgroundColor,
284
- border: `1px solid ${C.value}`
285
- })
286
- }, [
287
- B(n.$slots, "annotator-action-draw", T(M({ mode: p.value })), () => [
288
- R(F, {
289
- name: p.value === "draw" ? "annotator" : "text",
290
- stroke: d.color
291
- }, null, 8, ["name", "stroke"])
292
- ]),
293
- E("div", {
294
- style: x({
295
- position: "absolute",
296
- bottom: "-20px",
297
- color: C.value,
298
- width: "100%",
299
- textAlign: "center",
300
- fontSize: "12px",
301
- fontVariantNumeric: "tabular-nums"
302
- })
303
- }, xe(ye(Ee)({
304
- v: p.value === "draw" ? N.value : $.value,
305
- s: "px",
306
- r: 1
307
- })), 5)
308
- ], 6),
309
- E("button", {
310
- class: Y(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !b.value.length }]),
311
- disabled: !b.value.length,
312
- onClick: ge,
313
- style: x({
314
- backgroundColor: d.backgroundColor,
315
- border: `1px solid ${C.value}`,
316
- marginTop: "20px"
317
- })
318
- }, [
319
- B(n.$slots, "annotator-action-undo", T(M({ disabled: !b.value.length })), () => [
320
- R(F, {
321
- name: "restart",
322
- stroke: d.color
323
- }, null, 8, ["stroke"])
324
- ])
325
- ], 14, $e),
326
- E("button", {
327
- class: Y(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !y.value.length }]),
328
- onClick: pe,
329
- style: x({
330
- backgroundColor: d.backgroundColor,
331
- border: `1px solid ${C.value}`
332
- })
333
- }, [
334
- B(n.$slots, "annotator-action-redo", T(M({ disabled: !y.value.length })), () => [
335
- R(F, {
336
- name: "restart",
337
- stroke: d.color,
338
- style: { transform: "scaleX(-1)" }
339
- }, null, 8, ["stroke"])
340
- ])
341
- ], 6),
342
- E("button", {
343
- class: Y(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !b.value.length }]),
344
- onClick: me,
345
- style: x({
346
- backgroundColor: d.backgroundColor,
347
- border: `1px solid ${C.value}`
348
- })
349
- }, [
350
- B(n.$slots, "annotator-action-delete", T(M({ disabled: !b.value.length })), () => [
351
- R(F, {
352
- name: "trash",
353
- stroke: d.color
354
- }, null, 8, ["stroke"])
355
- ])
356
- ], 6),
357
- p.value === "draw" ? re((j(), W("input", {
358
- key: 0,
359
- ref: "range",
360
- type: "range",
361
- class: "vertical-range",
362
- min: 0.5,
363
- max: 12,
364
- step: 0.1,
365
- "onUpdate:modelValue": e[3] || (e[3] = (l) => N.value = l),
366
- style: x({ accentColor: d.color })
367
- }, null, 4)), [
368
- [ue, N.value]
369
- ]) : O("", !0),
370
- p.value === "text" ? re((j(), W("input", {
371
- key: 1,
372
- ref: "range",
373
- type: "range",
374
- class: "vertical-range",
375
- min: 3,
376
- max: 48,
377
- step: 0.1,
378
- "onUpdate:modelValue": e[4] || (e[4] = (l) => $.value = l),
379
- style: x({ accentColor: d.color })
380
- }, null, 4)), [
381
- [ue, $.value]
382
- ]) : O("", !0)
383
- ], 4)) : O("", !0);
384
- }
385
- };
386
- export {
387
- De as default
388
- };