vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,255 @@
1
+ import { useCssVars as W, ref as u, computed as T, watchEffect as Y, onMounted as j, onBeforeUnmount as q, watch as A, withDirectives as G, openBlock as s, createElementBlock as v, withKeys as R, createElementVNode as i, normalizeStyle as a, renderSlot as H, normalizeProps as J, guardReactiveProps as Q, createVNode as g, withModifiers as r, Fragment as $, renderList as M, createCommentVNode as N, createBlock as X, Teleport as Z, unref as _, nextTick as ee } from "vue";
2
+ import F from "./BaseIcon-Cb3zzG6s.js";
3
+ import { W as oe } from "./lib-DBptbyyI.js";
4
+ import { v as te } from "./vClickOutside-C6WiFswA.js";
5
+ import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const re = ["aria-expanded", "aria-label"], le = ["aria-label", "aria-pressed", "onClick"], ie = { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%,-46%)" } }, ue = ["value"], se = ["onClick"], ae = { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%,-46%)" } }, de = ["value"], ce = {
7
+ __name: "ColorPicker",
8
+ props: {
9
+ value: {
10
+ type: String,
11
+ default: "#ffffff"
12
+ },
13
+ size: {
14
+ type: String,
15
+ default: "50px"
16
+ },
17
+ backgroundColor: {
18
+ type: String,
19
+ default: "#FFFFFF"
20
+ },
21
+ buttonBorderColor: {
22
+ type: String,
23
+ default: "#FFFFFF"
24
+ },
25
+ teleported: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ isCursorPointer: {
30
+ type: Boolean,
31
+ default: !1
32
+ }
33
+ },
34
+ emits: ["update:value"],
35
+ setup(o, { emit: O }) {
36
+ W((t) => ({
37
+ v514e661b: o.buttonBorderColor
38
+ }));
39
+ const d = o, w = O, V = u(null), C = u(null), c = u(null), l = u(!1), b = u(!1), y = u({ top: 0, left: 0 }), K = T(() => ({
40
+ backgroundColor: d.value,
41
+ width: "100%",
42
+ height: "100%",
43
+ cursor: d.isCursorPointer ? "pointer" : "default"
44
+ })), p = T(() => oe(d.value));
45
+ function E(t) {
46
+ w("update:value", t), l.value = !1;
47
+ }
48
+ function x(t) {
49
+ w("update:value", t.target.value);
50
+ }
51
+ function P(t) {
52
+ t?.stopPropagation?.(), b.value = !0, c.value?.click();
53
+ }
54
+ function D() {
55
+ l.value = !1;
56
+ }
57
+ function m() {
58
+ !b.value && l.value && D();
59
+ }
60
+ async function U() {
61
+ l.value = !l.value, l.value && d.teleported && (await ee(), B());
62
+ }
63
+ function B() {
64
+ if (!C.value) return;
65
+ const t = C.value.getBoundingClientRect();
66
+ y.value = { top: t.top + 36, left: t.right - 48 };
67
+ }
68
+ function f() {
69
+ l.value && d.teleported && B();
70
+ }
71
+ function k() {
72
+ setTimeout(() => b.value = !1, 0);
73
+ }
74
+ Y((t) => {
75
+ const e = c.value;
76
+ if (!e) return;
77
+ const n = () => k(), I = () => k(), S = () => {
78
+ };
79
+ e.addEventListener("blur", n), e.addEventListener("change", I), e.addEventListener("input", S), t(() => {
80
+ e.removeEventListener("blur", n), e.removeEventListener("change", I), e.removeEventListener("input", S);
81
+ });
82
+ });
83
+ function L() {
84
+ k();
85
+ }
86
+ function h() {
87
+ document.visibilityState === "visible" && k();
88
+ }
89
+ j(() => {
90
+ window.addEventListener("scroll", f, { passive: !0 }), window.addEventListener("resize", f, { passive: !0 }), window.addEventListener("focus", L), document.addEventListener("visibilitychange", h);
91
+ }), q(() => {
92
+ window.removeEventListener("scroll", f), window.removeEventListener("resize", f), window.removeEventListener("focus", L), document.removeEventListener("visibilitychange", h);
93
+ }), A(
94
+ () => d.value,
95
+ (t) => {
96
+ c.value && (c.value.value = t);
97
+ }
98
+ );
99
+ const z = u([
100
+ "#000000",
101
+ "#FFFFFF",
102
+ "#FF5733",
103
+ "#33FF57",
104
+ "#3357FF",
105
+ "#FFC300",
106
+ "#800080",
107
+ "#FF1493",
108
+ "#00CED1"
109
+ ]);
110
+ return (t, e) => G((s(), v("div", {
111
+ ref_key: "wrapperRef",
112
+ ref: V,
113
+ onKeydown: R(m, ["esc"]),
114
+ style: { height: "100%", width: "100%", position: "relative" },
115
+ "aria-expanded": l.value ? "true" : "false",
116
+ "aria-haspopup": "dialog",
117
+ "aria-label": `Choose color. Current color ${o.value}`
118
+ }, [
119
+ i("button", {
120
+ ref_key: "buttonRef",
121
+ ref: C,
122
+ class: "icon",
123
+ onClick: U,
124
+ style: a(K.value),
125
+ type: "button"
126
+ }, [
127
+ H(t.$slots, "annotator-action-color", J(Q({ color: p.value })), () => [
128
+ g(F, {
129
+ name: "palette",
130
+ stroke: p.value,
131
+ size: 22
132
+ }, null, 8, ["stroke"])
133
+ ], !0)
134
+ ], 4),
135
+ l.value && !o.teleported ? (s(), v("div", {
136
+ key: 0,
137
+ class: "vue-ui-color-picker",
138
+ role: "dialog",
139
+ "aria-label": "Color picker",
140
+ style: a({
141
+ backgroundColor: o.backgroundColor,
142
+ position: "absolute",
143
+ left: "calc(100% + 30px)",
144
+ top: "50%",
145
+ transform: "translateY(-18%)"
146
+ }),
147
+ onMousedown: e[2] || (e[2] = r(() => {
148
+ }, ["stop"])),
149
+ onClick: e[3] || (e[3] = r(() => {
150
+ }, ["stop"])),
151
+ onTouchstart: e[4] || (e[4] = r(() => {
152
+ }, ["stop"])),
153
+ onKeydown: R(m, ["esc"])
154
+ }, [
155
+ (s(!0), v($, null, M(z.value, (n) => (s(), v("button", {
156
+ key: n,
157
+ "aria-label": `Select color ${n}`,
158
+ "aria-pressed": o.value === n ? "true" : "false",
159
+ class: "vue-ui-color-picker-option",
160
+ type: "button",
161
+ style: a({ backgroundColor: n, outline: `1px solid ${o.buttonBorderColor}`, cursor: o.isCursorPointer ? "pointer" : "default" }),
162
+ onClick: () => E(n)
163
+ }, null, 12, le))), 128)),
164
+ i("button", {
165
+ class: "vue-ui-color-picker-option",
166
+ type: "button",
167
+ style: a({ backgroundColor: o.value, outline: `1px solid ${o.buttonBorderColor}`, cursor: o.isCursorPointer ? "pointer" : "default" }),
168
+ "aria-label": "Open native color picker",
169
+ onClick: r(P, ["stop"]),
170
+ onMousedown: e[0] || (e[0] = r(() => {
171
+ }, ["stop"])),
172
+ onTouchstart: e[1] || (e[1] = r(() => {
173
+ }, ["stop"]))
174
+ }, [
175
+ i("div", ie, [
176
+ g(F, {
177
+ name: "colorPicker",
178
+ stroke: p.value,
179
+ size: 22
180
+ }, null, 8, ["stroke"])
181
+ ]),
182
+ i("input", {
183
+ ref_key: "colorInput",
184
+ ref: c,
185
+ type: "color",
186
+ value: o.value,
187
+ class: "hidden-input",
188
+ onInput: x
189
+ }, null, 40, ue)
190
+ ], 36)
191
+ ], 36)) : N("", !0),
192
+ l.value && o.teleported ? (s(), X(Z, {
193
+ key: 1,
194
+ to: "body"
195
+ }, [
196
+ i("div", {
197
+ tabindex: "0",
198
+ class: "vue-ui-color-picker",
199
+ style: a({
200
+ backgroundColor: o.backgroundColor,
201
+ position: "fixed",
202
+ top: y.value.top + "px",
203
+ left: y.value.left + "px",
204
+ zIndex: 2147483647
205
+ }),
206
+ onMousedown: e[7] || (e[7] = r(() => {
207
+ }, ["stop"])),
208
+ onClick: e[8] || (e[8] = r(() => {
209
+ }, ["stop"])),
210
+ onTouchstart: e[9] || (e[9] = r(() => {
211
+ }, ["stop"]))
212
+ }, [
213
+ (s(!0), v($, null, M(z.value, (n) => (s(), v("button", {
214
+ key: n,
215
+ class: "vue-ui-color-picker-option",
216
+ type: "button",
217
+ style: a({ backgroundColor: n, outline: `1px solid ${o.buttonBorderColor}`, cursor: o.isCursorPointer ? "pointer" : "default" }),
218
+ onClick: () => E(n)
219
+ }, null, 12, se))), 128)),
220
+ i("button", {
221
+ class: "vue-ui-color-picker-option",
222
+ type: "button",
223
+ style: a({ backgroundColor: o.value, outline: `1px solid ${o.buttonBorderColor}`, cursor: o.isCursorPointer ? "cursor" : "default" }),
224
+ onClick: r(P, ["stop"]),
225
+ onMousedown: e[5] || (e[5] = r(() => {
226
+ }, ["stop"])),
227
+ onTouchstart: e[6] || (e[6] = r(() => {
228
+ }, ["stop"]))
229
+ }, [
230
+ i("div", ae, [
231
+ g(F, {
232
+ name: "colorPicker",
233
+ stroke: p.value,
234
+ size: 22
235
+ }, null, 8, ["stroke"])
236
+ ]),
237
+ i("input", {
238
+ ref_key: "colorInput",
239
+ ref: c,
240
+ type: "color",
241
+ value: o.value,
242
+ class: "hidden-input",
243
+ onInput: x
244
+ }, null, 40, de)
245
+ ], 36)
246
+ ], 36)
247
+ ])) : N("", !0)
248
+ ], 40, re)), [
249
+ [_(te), m]
250
+ ]);
251
+ }
252
+ }, be = /* @__PURE__ */ ne(ce, [["__scopeId", "data-v-e3fdd92e"]]);
253
+ export {
254
+ be as C
255
+ };
@@ -1,6 +1,6 @@
1
1
  import { useCssVars as A, unref as t, computed as D, ref as k, onMounted as E, openBlock as o, createElementBlock as l, normalizeClass as C, normalizeStyle as r, withKeys as R, createVNode as B, createCommentVNode as m, createElementVNode as a, toDisplayString as I, Fragment as g, renderList as v, renderSlot as $ } from "vue";
2
- import { _ as K } from "./Shape-CSyWYgXc.js";
3
- import O from "./BaseIcon-CNx8Tzl5.js";
2
+ import { _ as K } from "./Shape-BKRUOeKk.js";
3
+ import O from "./BaseIcon-Cb3zzG6s.js";
4
4
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const T = { class: "vue-ui-data-table" }, j = { style: { display: "flex", "align-items": "center", "justify-content": "flex-end", "padding-right": "3px", gap: "3px" } }, F = { style: { width: "12px", height: "12px" } }, L = {
6
6
  key: 0,
@@ -0,0 +1,101 @@
1
+ import { openBlock as r, createElementBlock as l, normalizeStyle as f, renderSlot as d, Fragment as h, renderList as y, normalizeClass as p, createVNode as b, mergeProps as v, unref as x, createCommentVNode as S } from "vue";
2
+ import { a9 as $ } from "./lib-DBptbyyI.js";
3
+ import { _ as B } from "./Shape-BKRUOeKk.js";
4
+ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const w = ["id"], z = ["role", "tabindex", "onKeydown", "onFocus"], F = ["onClick", "viewBox"], M = {
6
+ __name: "Legend",
7
+ props: {
8
+ legendSet: {
9
+ type: Array,
10
+ default() {
11
+ return [];
12
+ }
13
+ },
14
+ config: {
15
+ type: Object,
16
+ default() {
17
+ return {};
18
+ }
19
+ },
20
+ id: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ clickable: {
25
+ type: Boolean,
26
+ default: !0
27
+ },
28
+ isCursorPointer: {
29
+ type: Boolean,
30
+ default: !1
31
+ }
32
+ },
33
+ emits: ["clickMarker", "focusMarker"],
34
+ setup(t, { emit: m }) {
35
+ const c = t, u = m;
36
+ function s(n, o) {
37
+ c.clickable && u("clickMarker", { legend: n, i: o });
38
+ }
39
+ function k(n, o, e) {
40
+ c.clickable && (n.key === "Enter" || n.key === " ") && (n.preventDefault(), s(o, e));
41
+ }
42
+ function g(n, o, e) {
43
+ n.preventDefault(), u("focusMarker", { legend: o, i: e });
44
+ }
45
+ return (n, o) => (r(), l("div", {
46
+ id: t.id,
47
+ class: "vue-data-ui-legend",
48
+ style: f({
49
+ background: t.config.backgroundColor,
50
+ color: t.config.color,
51
+ paddingBottom: (t.config.paddingBottom ?? 0) + "px",
52
+ paddingTop: (t.config.paddingTop ?? 12) + "px",
53
+ fontWeight: t.config.fontWeight,
54
+ fontSize: `var(--legend-font-size, ${t.config.fontSize ?? 14}px)`
55
+ })
56
+ }, [
57
+ d(n.$slots, "legendTitle", { titleSet: t.legendSet }, void 0, !0),
58
+ d(n.$slots, "legendToggle", {}, void 0, !0),
59
+ (r(!0), l(h, null, y(t.legendSet, (e, i) => (r(), l("div", {
60
+ key: `legend_${i}`,
61
+ class: p({ "vue-data-ui-legend-item": !0, active: t.clickable && t.isCursorPointer }),
62
+ role: t.clickable ? "button" : void 0,
63
+ tabindex: t.clickable ? 0 : void 0,
64
+ onKeydown: (a) => k(a, e, i),
65
+ onFocus: (a) => g(a, e, i)
66
+ }, [
67
+ e.shape ? (r(), l("svg", {
68
+ key: 0,
69
+ onClick: (a) => s(e, i),
70
+ height: "1em",
71
+ width: "1em",
72
+ viewBox: e.shape && e.shape === "star" ? "-10 -10 80 80" : "0 0 60 60",
73
+ style: f(`overflow: visible; opacity:${e.opacity}`),
74
+ "aria-hidden": "true"
75
+ }, [
76
+ b(B, {
77
+ stroke: "none",
78
+ shape: e.shape,
79
+ radius: 30,
80
+ plot: {
81
+ x: 30,
82
+ y: e.shape === "triangle" ? 36 : 30
83
+ },
84
+ fill: e.color
85
+ }, null, 8, ["shape", "plot", "fill"]),
86
+ d(n.$slots, "legend-pattern", v({ ref_for: !0 }, {
87
+ legend: e,
88
+ index: x($)(e.absoluteIndex) ? e.absoluteIndex : i
89
+ }), void 0, !0)
90
+ ], 12, F)) : S("", !0),
91
+ d(n.$slots, "item", {
92
+ legend: e,
93
+ index: i
94
+ }, void 0, !0)
95
+ ], 42, z))), 128))
96
+ ], 12, w));
97
+ }
98
+ }, L = /* @__PURE__ */ C(M, [["__scopeId", "data-v-d9726364"]]);
99
+ export {
100
+ L as default
101
+ };
@@ -1,7 +1,7 @@
1
1
  import { ref as u, computed as ge, onMounted as ze, nextTick as Xe, onBeforeUnmount as Ye, watch as ee, openBlock as g, createElementBlock as y, Fragment as J, normalizeStyle as C, normalizeClass as M, createElementVNode as $, createVNode as P, toDisplayString as ye, unref as xe, withDirectives as we, vModelText as ke, createCommentVNode as R, withModifiers as be, renderList as me } from "vue";
2
- import { j as Ce, x as We, l as Re, X as U } from "./lib-GwPnJSrY.js";
3
- import q from "./BaseIcon-CNx8Tzl5.js";
4
- import { C as Ue } from "./ColorPicker-j0ySewhI.js";
2
+ import { j as Ce, x as We, l as Re, X as U } from "./lib-DBptbyyI.js";
3
+ import q from "./BaseIcon-Cb3zzG6s.js";
4
+ import { C as Ue } from "./ColorPicker-B0mV4xzu.js";
5
5
  import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const Ve = ["disabled"], Ie = ["data-mode", "xmlns", "viewBox"], Ke = ["cx", "cy", "r", "fill"], Ge = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], He = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "marker-end"], Oe = ["d", "stroke", "stroke-width"], Qe = ["x", "y", "fill", "font-size"], je = ["x", "dy"], Je = ["d", "stroke", "stroke-width"], Ze = {
7
7
  __name: "NonSvgPenAndPaper",
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as t, toDisplayString as o, unref as r } from "vue";
2
- const n = "3.15.12", a = { "aria-hidden": "true" }, p = {
2
+ const n = "3.16.1", a = { "aria-hidden": "true" }, p = {
3
3
  __name: "PackageVersion",
4
4
  setup(s) {
5
5
  return (c, i) => (e(), t("desc", a, "Composed with Vue Data UI " + o(r(n)), 1));