vue-data-ui 3.0.22 → 3.1.0

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 (109) hide show
  1. package/dist/{Arrow-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
  3. package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
  6. package/dist/DataTable-DJjA2_wf.js +140 -0
  7. package/dist/Legend-2-dC7DVb.js +72 -0
  8. package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
  9. package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
  10. package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
  11. package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
  12. package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
  13. package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
  14. package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
  15. package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
  16. package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
  17. package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
  18. package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
  19. package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
  20. package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
  25. package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
  26. package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
  27. package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
  28. package/dist/vue-data-ui.js +1 -1
  29. package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
  30. package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
  32. package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
  33. package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
  34. package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
  35. package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
  36. package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
  37. package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
  38. package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
  39. package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
  40. package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
  41. package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
  42. package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
  43. package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
  44. package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
  45. package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
  46. package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
  47. package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
  48. package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
  49. package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
  50. package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
  51. package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
  52. package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
  54. package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
  55. package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
  56. package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
  57. package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
  58. package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
  59. package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
  60. package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
  61. package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
  62. package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
  64. package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
  65. package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
  66. package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
  67. package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
  68. package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
  70. package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
  71. package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
  72. package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
  73. package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
  74. package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
  75. package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
  76. package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
  77. package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
  79. package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
  80. package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
  81. package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
  82. package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
  83. package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
  84. package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
  85. package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
  86. package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
  87. package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
  88. package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
  89. package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
  90. package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
  91. package/package.json +1 -1
  92. package/dist/DataTable-Y5T9UxMO.js +0 -133
  93. package/dist/Legend-DkU3at-b.js +0 -72
  94. package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
  95. package/dist/vue-ui-chord-0wf798ls.js +0 -1049
  96. package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
  97. package/dist/vue-ui-flow-K7UBguES.js +0 -852
  98. package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
  99. package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
  100. package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
  101. package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
  102. package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
  103. package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
  104. package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
  105. package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
  106. package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
  107. package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
  108. package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
  109. package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
@@ -1,5 +1,5 @@
1
1
  import { computed as u, createElementBlock as k, openBlock as m, createElementVNode as t, unref as o } from "vue";
2
- import { c as n } from "./index-BHb_mcWF.js";
2
+ import { c as n } from "./index-CDQbCd41.js";
3
3
  const s = { class: "vue-ui-element-arrow" }, f = ["id", "viewBox", "refX", "refY", "markerWidth", "markerHeight"], c = ["d", "fill"], h = ["id", "viewBox", "refX", "refY", "markerWidth", "markerHeight"], y = ["d", "fill"], v = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap", "stroke-dasharray", "marker-end", "marker-start"], z = {
4
4
  __name: "Arrow",
5
5
  props: {
@@ -1,8 +1,8 @@
1
- import { useCssVars as O, ref as S, reactive as T, computed as P, onUnmounted as $, createBlock as R, openBlock as v, Teleport as N, createElementBlock as E, createCommentVNode as V, withModifiers as s, normalizeStyle as y, createElementVNode as o, unref as I, renderSlot as M, createVNode as F, normalizeClass as j, nextTick as U } from "vue";
2
- import q from "./BaseIcon-B717hnWR.js";
3
- import { X as A } from "./index-BHb_mcWF.js";
4
- import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const J = ["xmlns"], K = { class: "modal-title" }, Q = {
1
+ import { ref as L, reactive as P, computed as N, onMounted as R, onUnmounted as F, createBlock as I, openBlock as z, Teleport as V, createElementBlock as B, createCommentVNode as j, withModifiers as s, normalizeStyle as D, createElementVNode as o, unref as K, renderSlot as S, createVNode as U, normalizeClass as q, nextTick as A } from "vue";
2
+ import G from "./BaseIcon-DHtro8us.js";
3
+ import { X as J } from "./index-CDQbCd41.js";
4
+ import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const Z = ["xmlns"], _ = { class: "modal-title" }, ee = { class: "draggable-dialog-actions" }, te = {
6
6
  __name: "BaseDraggableDialog",
7
7
  props: {
8
8
  backgroundColor: { type: String },
@@ -11,17 +11,19 @@ const J = ["xmlns"], K = { class: "modal-title" }, Q = {
11
11
  headerColor: { type: String },
12
12
  fullscreenParent: { type: HTMLElement },
13
13
  isFullscreen: { type: Boolean, default: !1 },
14
- withPadding: { type: Boolean, default: !1 }
14
+ withPadding: { type: Boolean, default: !1 },
15
+ forcedWidth: { type: Number, default: 400 }
15
16
  },
16
17
  emits: ["close"],
17
- setup(r, { expose: k, emit: b }) {
18
- O((t) => ({
19
- 50624752: r.color
20
- }));
21
- const B = r, C = b, p = S(!1), g = S(!1), e = T({
18
+ setup(r, { expose: W, emit: X }) {
19
+ const p = r, C = X, v = L(!1), x = L(!1), y = L(0);
20
+ function g() {
21
+ y.value += 1;
22
+ }
23
+ const e = P({
22
24
  left: window.innerWidth / 2 - 200,
23
25
  top: window.innerHeight / 2 - 120,
24
- width: 400,
26
+ width: p.forcedWidth,
25
27
  height: 400,
26
28
  dragging: !1,
27
29
  resizing: !1,
@@ -32,16 +34,16 @@ const J = ["xmlns"], K = { class: "modal-title" }, Q = {
32
34
  resizeStartW: 0,
33
35
  resizeStartH: 0
34
36
  });
35
- function D() {
36
- p.value = !0, U(() => {
37
- g.value || (e.left = Math.max(0, window.innerWidth / 2 - e.width / 2), e.top = Math.max(0, window.innerHeight / 2 - e.height / 2), g.value = !0);
37
+ function H() {
38
+ v.value = !0, A(() => {
39
+ x.value || (e.left = Math.max(0, window.innerWidth / 2 - e.width / 2), e.top = Math.max(0, window.innerHeight / 2 - e.height / 2), x.value = !0);
38
40
  });
39
41
  }
40
42
  function w() {
41
- p.value = !1, C("close");
43
+ v.value = !1, C("close");
42
44
  }
43
- k({ open: D, close: w });
44
- const X = P(() => ({
45
+ W({ open: H, close: w });
46
+ const Y = N(() => ({
45
47
  position: "fixed",
46
48
  left: `${e.left}px`,
47
49
  top: `${e.top}px`,
@@ -49,17 +51,18 @@ const J = ["xmlns"], K = { class: "modal-title" }, Q = {
49
51
  height: `${e.height}px`,
50
52
  padding: 0,
51
53
  border: "none",
52
- background: B.backgroundColor,
54
+ background: p.backgroundColor,
53
55
  boxShadow: "0 4px 24px rgba(0,0,0,0.15)",
54
56
  zIndex: 9999,
55
57
  overflow: "visible",
56
- borderRadius: "2px"
58
+ borderRadius: "2px",
59
+ "--dlg-color": p.color
57
60
  }));
58
61
  function d(t) {
59
62
  return t.touches && t.touches.length ? { x: t.touches[0].clientX, y: t.touches[0].clientY } : { x: t.clientX, y: t.clientY };
60
63
  }
61
- function x(t) {
62
- t.preventDefault?.(), e.dragging = !0;
64
+ function E(t) {
65
+ t.preventDefault?.(), g(), e.dragging = !0;
63
66
  const n = d(t);
64
67
  e.dragOffsetX = n.x - e.left, e.dragOffsetY = n.y - e.top, document.addEventListener("mousemove", m), document.addEventListener("mouseup", l), document.addEventListener("touchmove", m, { passive: !1 }), document.addEventListener("touchend", l);
65
68
  }
@@ -73,8 +76,8 @@ const J = ["xmlns"], K = { class: "modal-title" }, Q = {
73
76
  function l() {
74
77
  e.dragging = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", l), document.removeEventListener("touchmove", m), document.removeEventListener("touchend", l);
75
78
  }
76
- function z(t) {
77
- t.preventDefault?.(), e.resizing = !0;
79
+ function M(t) {
80
+ t.preventDefault?.(), g(), e.resizing = !0;
78
81
  const n = d(t);
79
82
  e.pointerStartX = n.x, e.pointerStartY = n.y, e.resizeStartW = e.width, e.resizeStartH = e.height, document.addEventListener("mousemove", h), document.addEventListener("mouseup", u), document.addEventListener("touchmove", h, { passive: !1 }), document.addEventListener("touchend", u);
80
83
  }
@@ -88,8 +91,8 @@ const J = ["xmlns"], K = { class: "modal-title" }, Q = {
88
91
  function u() {
89
92
  e.resizing = !1, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", u), document.removeEventListener("touchmove", h), document.removeEventListener("touchend", u);
90
93
  }
91
- function L(t) {
92
- t.preventDefault?.(), e.resizing = !0;
94
+ function k(t) {
95
+ t.preventDefault?.(), g(), e.resizing = !0;
93
96
  const n = d(t);
94
97
  e.pointerStartX = n.x, e.pointerStartY = n.y, e.resizeStartW = e.width, e.resizeStartH = e.height, e.resizeStartLeft = e.left, e.resizeStartTop = e.top, document.addEventListener("mousemove", f), document.addEventListener("mouseup", c), document.addEventListener("touchmove", f, { passive: !1 }), document.addEventListener("touchend", c);
95
98
  }
@@ -101,38 +104,45 @@ const J = ["xmlns"], K = { class: "modal-title" }, Q = {
101
104
  Math.max(0, e.resizeStartLeft + a),
102
105
  e.resizeStartLeft + e.resizeStartW - 240
103
106
  // min width
104
- ), H = e.resizeStartW - (i - e.resizeStartLeft), W = n.y - e.pointerStartY, Y = Math.max(400, e.resizeStartH + W);
105
- e.left = i, e.width = H, e.height = Y;
107
+ ), T = e.resizeStartW - (i - e.resizeStartLeft), O = n.y - e.pointerStartY, $ = Math.max(400, e.resizeStartH + O);
108
+ e.left = i, e.width = T, e.height = $;
106
109
  }
107
110
  function c() {
108
111
  e.resizing = !1, document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", c), document.removeEventListener("touchmove", f), document.removeEventListener("touchend", c);
109
112
  }
110
- return $(() => {
111
- l(), u(), c();
112
- }), (t, n) => (v(), R(N, {
113
- to: r.isFullscreen ? r.fullscreenParent : "body"
113
+ R(() => {
114
+ document.addEventListener("keydown", b);
115
+ });
116
+ function b(t) {
117
+ t.key && t.key === "Escape" && w();
118
+ }
119
+ return F(() => {
120
+ l(), u(), c(), document.removeEventListener("keydown", b);
121
+ }), (t, n) => (z(), I(V, {
122
+ to: r.isFullscreen ? r.fullscreenParent : "body",
123
+ key: y.value
114
124
  }, [
115
- p.value ? (v(), E("div", {
125
+ v.value ? (z(), B("div", {
116
126
  key: 0,
117
127
  class: "modal vue-ui-draggable-dialog",
118
- style: y(X.value),
128
+ style: D(Y.value),
119
129
  onClick: n[0] || (n[0] = s(() => {
120
130
  }, ["stop"]))
121
131
  }, [
122
132
  o("div", {
123
133
  class: "modal-header",
124
- style: y({
134
+ style: D({
125
135
  backgroundColor: r.headerBg,
126
136
  color: r.headerColor
127
137
  })
128
138
  }, [
129
139
  o("span", {
130
140
  class: "drag-handle",
131
- onMousedown: s(x, ["stop", "prevent"]),
132
- onTouchstart: s(x, ["stop", "prevent"])
141
+ onMousedown: s(E, ["stop", "prevent"]),
142
+ onTouchstart: s(E, ["stop", "prevent"])
133
143
  }, [
134
- (v(), E("svg", {
135
- xmlns: I(A),
144
+ (z(), B("svg", {
145
+ xmlns: K(J),
136
146
  width: "20",
137
147
  height: "20",
138
148
  viewBox: "0 0 24 24",
@@ -148,40 +158,43 @@ const J = ["xmlns"], K = { class: "modal-title" }, Q = {
148
158
  o("path", { d: "M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
149
159
  o("path", { d: "M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
150
160
  o("path", { d: "M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
151
- ])], 8, J))
161
+ ])], 8, Z))
152
162
  ], 32),
153
- o("span", K, [
154
- M(t.$slots, "title", {}, void 0, !0)
163
+ o("span", _, [
164
+ S(t.$slots, "title", {}, void 0, !0)
155
165
  ]),
156
- o("button", {
157
- class: "close",
158
- onClick: w
159
- }, [
160
- F(q, {
161
- name: "close",
162
- stroke: r.headerColor
163
- }, null, 8, ["stroke"])
166
+ o("div", ee, [
167
+ S(t.$slots, "actions", {}, void 0, !0),
168
+ o("button", {
169
+ class: "close",
170
+ onClick: w
171
+ }, [
172
+ U(G, {
173
+ name: "close",
174
+ stroke: r.headerColor
175
+ }, null, 8, ["stroke"])
176
+ ])
164
177
  ])
165
178
  ], 4),
166
179
  o("div", {
167
- class: j({ "modal-body": !r.withPadding, "modal-body-pad": r.withPadding })
180
+ class: q({ "modal-body": !r.withPadding, "modal-body-pad": r.withPadding })
168
181
  }, [
169
- M(t.$slots, "default", {}, void 0, !0)
182
+ S(t.$slots, "content", {}, void 0, !0)
170
183
  ], 2),
171
184
  o("div", {
172
185
  class: "resize-handle",
173
- onMousedown: s(z, ["stop", "prevent"]),
174
- onTouchstart: s(z, ["stop", "prevent"])
186
+ onMousedown: s(M, ["stop", "prevent"]),
187
+ onTouchstart: s(M, ["stop", "prevent"])
175
188
  }, null, 32),
176
189
  o("div", {
177
190
  class: "resize-handle resize-handle-left",
178
- onMousedown: s(L, ["stop", "prevent"]),
179
- onTouchstart: s(L, ["stop", "prevent"])
191
+ onMousedown: s(k, ["stop", "prevent"]),
192
+ onTouchstart: s(k, ["stop", "prevent"])
180
193
  }, null, 32)
181
- ], 4)) : V("", !0)
194
+ ], 4)) : j("", !0)
182
195
  ], 8, ["to"]));
183
196
  }
184
- }, ne = /* @__PURE__ */ G(Q, [["__scopeId", "data-v-da7d4d51"]]);
197
+ }, ae = /* @__PURE__ */ Q(te, [["__scopeId", "data-v-1be15e28"]]);
185
198
  export {
186
- ne as default
199
+ ae as default
187
200
  };
@@ -1,5 +1,5 @@
1
1
  import { computed as e, createElementBlock as n, openBlock as i, normalizeClass as k, unref as L } from "vue";
2
- import { X as l } from "./index-BHb_mcWF.js";
2
+ import { X as l } from "./index-CDQbCd41.js";
3
3
  import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const M = ["xmlns", "viewBox", "height", "width", "innerHTML"], h = {
5
5
  __name: "BaseIcon",
@@ -1,11 +1,6 @@
1
- import { createElementBlock as v, openBlock as g, ref as d, computed as h, unref as c, watchEffect as A } from "vue";
1
+ import { ref as d, computed as v, unref as c, watchEffect as g, createElementBlock as h, openBlock as A } from "vue";
2
2
  import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- const B = {}, E = { class: "vue-data-ui-scanner" };
4
- function L(o, e) {
5
- return g(), v("div", E);
6
- }
7
- const S = /* @__PURE__ */ y(B, [["render", L], ["__scopeId", "data-v-d6376e44"]]);
8
- function T({
3
+ function S({
9
4
  config: o,
10
5
  dataset: e,
11
6
  skeletonDataset: r,
@@ -15,15 +10,20 @@ function T({
15
10
  callback: t = null,
16
11
  dsIsNumber: _ = !1
17
12
  }) {
18
- const u = d(!1), a = h(() => {
13
+ const u = d(!1), a = v(() => {
19
14
  const m = c(o)?.loading ?? !1, n = c(e), p = _ ? [null, void 0].includes(n) : n == null || Array.isArray(n) && n.length === 0 || Object.keys(n).length === 0;
20
15
  return u.value || m || p;
21
16
  }), l = d(c(e));
22
- return A(() => {
17
+ return g(() => {
23
18
  l.value = a.value ? r : c(e), i.value = a.value ? s : f(), t && t();
24
19
  }), { loading: a, FINAL_DATASET: l, manualLoading: u, skeletonDataset: r, skeletonConfig: s };
25
20
  }
21
+ const B = {}, E = { class: "vue-data-ui-scanner" };
22
+ function L(o, e) {
23
+ return A(), h("div", E);
24
+ }
25
+ const T = /* @__PURE__ */ y(B, [["render", L], ["__scopeId", "data-v-d6376e44"]]);
26
26
  export {
27
- S as B,
28
- T as u
27
+ T as B,
28
+ S as u
29
29
  };
@@ -1,6 +1,6 @@
1
1
  import { ref as l, computed as k, watch as I, withDirectives as P, createElementBlock as r, openBlock as n, withKeys as S, createElementVNode as u, createCommentVNode as z, normalizeStyle as a, createVNode as F, Fragment as E, renderList as N, unref as O } from "vue";
2
- import C from "./BaseIcon-B717hnWR.js";
3
- import { F as V } from "./index-BHb_mcWF.js";
2
+ import C from "./BaseIcon-DHtro8us.js";
3
+ import { F as V } from "./index-CDQbCd41.js";
4
4
  import { v as D } from "./vClickOutside-C6WiFswA.js";
5
5
  import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const $ = ["onClick"], L = { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -46%)" } }, T = ["value"], j = {
@@ -0,0 +1,140 @@
1
+ import { useCssVars as A, unref as e, computed as D, ref as k, onMounted as E, createElementBlock as o, openBlock as l, normalizeClass as C, normalizeStyle as r, createCommentVNode as m, createElementVNode as a, withKeys as R, createVNode as B, toDisplayString as I, Fragment as g, renderList as p, renderSlot as N } from "vue";
2
+ import { _ as K } from "./Shape-Dj2Hl33H.js";
3
+ import O from "./BaseIcon-DHtro8us.js";
4
+ import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const j = { class: "vue-ui-data-table" }, F = { style: { display: "flex", "align-items": "center", "justify-content": "flex-end", "padding-right": "3px", gap: "3px" } }, L = { style: { width: "12px", height: "12px" } }, M = {
6
+ key: 0,
7
+ height: "12",
8
+ width: "12",
9
+ viewBox: "0 0 20 20",
10
+ style: { background: "none" }
11
+ }, q = ["fill"], G = ["data-cell"], H = {
12
+ dir: "auto",
13
+ style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" }
14
+ }, J = {
15
+ key: 0,
16
+ height: "12",
17
+ width: "12",
18
+ viewBox: "0 0 20 20",
19
+ style: { background: "none", overflow: "visible" }
20
+ }, P = {
21
+ __name: "DataTable",
22
+ props: {
23
+ colNames: {
24
+ type: Array,
25
+ default() {
26
+ return [];
27
+ }
28
+ },
29
+ head: Array,
30
+ body: Array,
31
+ title: String,
32
+ config: Object,
33
+ withCloseButton: { type: Boolean, default: !0 }
34
+ },
35
+ emits: ["close"],
36
+ setup(t, { emit: $ }) {
37
+ A((s) => ({
38
+ "06f59ff2": e(_)
39
+ }));
40
+ const h = t, { backgroundColor: f, color: b, outline: v } = h.config.th, { backgroundColor: z, color: S, outline: _ } = h.config.td, V = D(() => h.config.breakpoint), y = k(null), w = k(!1);
41
+ E(() => {
42
+ const s = new ResizeObserver((i) => {
43
+ i.forEach((n) => {
44
+ w.value = n.contentRect.width < V.value;
45
+ });
46
+ });
47
+ y.value && s.observe(y.value);
48
+ });
49
+ const x = $;
50
+ return (s, i) => (l(), o("div", {
51
+ ref_key: "tableContainer",
52
+ ref: y,
53
+ style: r(`width: 100%; container-type: inline-size; position:relative;${t.withCloseButton ? "padding-top: 36px;" : ""}overflow:auto`),
54
+ class: C({
55
+ "atom-data-table": !0,
56
+ "vue-ui-responsive": w.value
57
+ })
58
+ }, [
59
+ t.withCloseButton ? (l(), o("div", {
60
+ key: 0,
61
+ "data-dom-to-png-ignore": "",
62
+ role: "button",
63
+ tabindex: "0",
64
+ style: r(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e(f)};`),
65
+ onClick: i[0] || (i[0] = (n) => x("close")),
66
+ onKeypress: i[1] || (i[1] = R((n) => x("close"), ["enter"]))
67
+ }, [
68
+ B(O, {
69
+ name: "close",
70
+ stroke: e(b),
71
+ "stroke-width": 2
72
+ }, null, 8, ["stroke"])
73
+ ], 36)) : m("", !0),
74
+ a("table", j, [
75
+ a("caption", {
76
+ style: r({ backgroundColor: e(f), color: e(b), outline: e(v) }),
77
+ class: "vue-ui-data-table__caption"
78
+ }, I(t.title), 5),
79
+ a("thead", null, [
80
+ a("tr", {
81
+ role: "row",
82
+ style: r([{ "font-variant-numeric": "tabular-nums" }, { backgroundColor: e(f), color: e(b) }]),
83
+ class: "vue-ui-data-table__thead-row"
84
+ }, [
85
+ (l(!0), o(g, null, p(t.head, (n, c) => (l(), o("th", {
86
+ role: "cell",
87
+ style: r({
88
+ outline: e(v)
89
+ }),
90
+ key: `th_${c}`
91
+ }, [
92
+ a("div", F, [
93
+ a("div", L, [
94
+ n.color ? (l(), o("svg", M, [
95
+ a("circle", {
96
+ cx: "10",
97
+ cy: "10",
98
+ r: "10",
99
+ fill: n.color
100
+ }, null, 8, q)
101
+ ])) : m("", !0)
102
+ ]),
103
+ N(s.$slots, "th", { th: n }, void 0, !0)
104
+ ])
105
+ ], 4))), 128))
106
+ ], 4)
107
+ ]),
108
+ a("tbody", null, [
109
+ (l(!0), o(g, null, p(t.body, (n, c) => (l(), o("tr", {
110
+ role: "row",
111
+ style: r([{ "font-variant-numeric": "tabular-nums" }, { backgroundColor: e(z), color: e(S) }]),
112
+ class: C({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": c % 2 === 0, "vue-ui-data-table__tbody__row-odd": c % 2 !== 0 })
113
+ }, [
114
+ (l(!0), o(g, null, p(n, (d, u) => (l(), o("td", {
115
+ role: "cell",
116
+ "data-cell": (t.colNames[u] && t.colNames[u].name ? t.colNames[u].name : "") || t.colNames[u] || "",
117
+ style: r({ outline: e(_) }),
118
+ class: "vue-ui-data-table__tbody__td"
119
+ }, [
120
+ a("div", H, [
121
+ d.color ? (l(), o("svg", J, [
122
+ B(K, {
123
+ plot: { x: 10, y: 10 },
124
+ color: d.color,
125
+ radius: 9,
126
+ shape: t.config.shape || d.shape || "circle"
127
+ }, null, 8, ["color", "shape"])
128
+ ])) : m("", !0),
129
+ N(s.$slots, "td", { td: d }, void 0, !0)
130
+ ])
131
+ ], 12, G))), 256))
132
+ ], 6))), 256))
133
+ ])
134
+ ])
135
+ ], 6));
136
+ }
137
+ }, Y = /* @__PURE__ */ T(P, [["__scopeId", "data-v-c1adf71f"]]);
138
+ export {
139
+ Y as default
140
+ };
@@ -0,0 +1,72 @@
1
+ import { createElementBlock as n, openBlock as a, normalizeStyle as c, renderSlot as r, Fragment as u, renderList as m, normalizeClass as g, createCommentVNode as h, createVNode as k, mergeProps as p, unref as y } from "vue";
2
+ import { a2 as $ } from "./index-CDQbCd41.js";
3
+ import { _ as v } from "./Shape-Dj2Hl33H.js";
4
+ import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const S = ["id"], b = ["onClick", "height", "width", "viewBox"], w = {
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
+ },
29
+ emits: ["clickMarker"],
30
+ setup(e, { emit: d }) {
31
+ const s = d;
32
+ function f(i, l) {
33
+ s("clickMarker", { legend: i, i: l });
34
+ }
35
+ return (i, l) => (a(), n("div", {
36
+ id: e.id,
37
+ class: "vue-data-ui-legend",
38
+ style: c(`background:${e.config.backgroundColor};font-size:${e.config.fontSize}px;color:${e.config.color};padding-bottom:${e.config.paddingBottom}px;padding-top:${e.config.paddingTop || 12}px;font-weight:${e.config.fontWeight}`)
39
+ }, [
40
+ r(i.$slots, "legendTitle", { titleSet: e.legendSet }, void 0, !0),
41
+ (a(!0), n(u, null, m(e.legendSet, (t, o) => (a(), n("div", {
42
+ key: `legend_${o}`,
43
+ class: g({ "vue-data-ui-legend-item": !0, active: e.clickable })
44
+ }, [
45
+ t.shape ? (a(), n("svg", {
46
+ key: 0,
47
+ onClick: (z) => f(t, o),
48
+ height: e.config.fontSize,
49
+ width: e.config.fontSize,
50
+ viewBox: t.shape && t.shape === "star" ? "-10 -10 80 80" : "0 0 60 60",
51
+ style: c(`overflow: visible;opacity:${t.opacity}`)
52
+ }, [
53
+ k(v, {
54
+ shape: t.shape,
55
+ radius: 30,
56
+ stroke: "none",
57
+ plot: { x: 30, y: t.shape === "triangle" ? 36 : 30 },
58
+ fill: t.color
59
+ }, null, 8, ["shape", "plot", "fill"]),
60
+ r(i.$slots, "legend-pattern", p({ ref_for: !0 }, { legend: t, index: y($)(t.absoluteIndex) ? t.absoluteIndex : o }), void 0, !0)
61
+ ], 12, b)) : h("", !0),
62
+ r(i.$slots, "item", {
63
+ legend: t,
64
+ index: o
65
+ }, void 0, !0)
66
+ ], 2))), 128))
67
+ ], 12, S));
68
+ }
69
+ }, L = /* @__PURE__ */ x(w, [["__scopeId", "data-v-f102edfc"]]);
70
+ export {
71
+ L as default
72
+ };
@@ -1,7 +1,7 @@
1
1
  import { ref as i, computed as we, onMounted as ke, nextTick as be, onBeforeUnmount as Ce, watch as oe, createElementBlock as x, openBlock as y, Fragment as q, createCommentVNode as Y, normalizeStyle as b, normalizeClass as D, createElementVNode as C, withDirectives as ae, createVNode as M, toDisplayString as re, unref as se, vModelText as ue, withModifiers as ie, renderList as ce } from "vue";
2
- import { l as $e, i as Se, X as Ae } from "./index-BHb_mcWF.js";
3
- import R from "./BaseIcon-B717hnWR.js";
4
- import { C as Ee } from "./ColorPicker-CH5_RNaK.js";
2
+ import { l as $e, i as Se, X as Ae } from "./index-CDQbCd41.js";
3
+ import R from "./BaseIcon-DHtro8us.js";
4
+ import { C as Ee } from "./ColorPicker-CpWzNn4r.js";
5
5
  import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const Te = {
7
7
  class: /* @__PURE__ */ D({
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as t, toDisplayString as o, unref as r } from "vue";
2
- const n = "3.0.22", a = { "aria-hidden": "true" }, p = {
2
+ const n = "3.1.0", a = { "aria-hidden": "true" }, p = {
3
3
  __name: "PackageVersion",
4
4
  setup(s) {
5
5
  return (c, i) => (t(), e("desc", a, "Composed with Vue Data UI " + o(r(n)), 1));
@@ -1,7 +1,7 @@
1
1
  import { ref as c, computed as ge, watch as X, nextTick as le, onMounted as pe, onBeforeUnmount as me, createElementBlock as Y, createCommentVNode as q, openBlock as z, normalizeStyle as x, createElementVNode as C, withDirectives as ae, createVNode as $, normalizeClass as G, toDisplayString as Ae, unref as he, vModelText as oe } from "vue";
2
- import T from "./BaseIcon-B717hnWR.js";
3
- import { C as we } from "./ColorPicker-CH5_RNaK.js";
4
- import { l as be, i as xe } from "./index-BHb_mcWF.js";
2
+ import T from "./BaseIcon-DHtro8us.js";
3
+ import { C as we } from "./ColorPicker-CpWzNn4r.js";
4
+ import { l as be, i as xe } from "./index-CDQbCd41.js";
5
5
  const ye = {
6
6
  class: "vue-ui-pen-and-paper-action",
7
7
  style: { padding: "0 !important" }
@@ -1,5 +1,5 @@
1
1
  import { computed as u, createElementBlock as r, openBlock as l, createCommentVNode as a, normalizeStyle as d } from "vue";
2
- import { _ as f, R as p } from "./index-BHb_mcWF.js";
2
+ import { _ as f, R as p } from "./index-CDQbCd41.js";
3
3
  const g = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], S = ["d", "fill", "stroke", "stroke-width"], x = ["points", "fill", "stroke", "stroke-width"], w = {
4
4
  __name: "Shape",
5
5
  props: {
@@ -1,7 +1,7 @@
1
1
  import { useCssVars as Oe, computed as v, ref as i, onMounted as he, onBeforeUnmount as te, watch as T, nextTick as le, onUpdated as Ze, createElementBlock as c, openBlock as m, createElementVNode as d, createCommentVNode as w, renderSlot as je, normalizeStyle as M, createVNode as Ge, withDirectives as ge, unref as U, Fragment as be, renderList as xe, normalizeClass as B, vModelText as ye, toDisplayString as ae } from "vue";
2
- import qe from "./BaseIcon-B717hnWR.js";
2
+ import qe from "./BaseIcon-DHtro8us.js";
3
3
  import { t as we, u as Je } from "./useResponsive-DfdjqQps.js";
4
- import { c as Ke, V as pe, U as Se, X as Qe, F as ne } from "./index-BHb_mcWF.js";
4
+ import { c as Ke, V as pe, U as Se, X as Qe, F as ne } from "./index-CDQbCd41.js";
5
5
  import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const _e = {
7
7
  class: "vue-data-ui-slicer-labels",
@@ -1,5 +1,5 @@
1
1
  import { toRef as c, ref as a, computed as v, onMounted as m, watch as y, createElementBlock as b, openBlock as g, normalizeStyle as x, renderSlot as k, nextTick as S } from "vue";
2
- import { s as _, aq as i } from "./index-BHb_mcWF.js";
2
+ import { s as _, aq as i } from "./index-CDQbCd41.js";
3
3
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const R = {
5
5
  __name: "SparkTooltip",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as l, openBlock as n, Fragment as f, createElementVNode as p, createCommentVNode as o, normalizeStyle as d, unref as e, toDisplayString as g, renderSlot as r } from "vue";
2
- import { u as c } from "./useNestedProp-aC9S6EFJ.js";
2
+ import { u as c } from "./useNestedProp-BPEHGiYX.js";
3
3
  const x = {
4
4
  __name: "Title",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { ref as d, onMounted as k, onUnmounted as g, watch as p, nextTick as F, computed as x, createBlock as S, openBlock as h, Teleport as $, createElementBlock as B, createCommentVNode as C, normalizeStyle as w, normalizeClass as N, renderSlot as m, createElementVNode as Y } from "vue";
2
- import { s as z } from "./index-BHb_mcWF.js";
2
+ import { s as z } from "./index-CDQbCd41.js";
3
3
  function M({ tooltip: e, chart: a, clientPosition: t, positionPreference: s = "center", defaultOffsetY: c = 24, blockShiftY: u = !1 }) {
4
4
  const o = d(0), i = d(c);
5
5
  if (e && a) {
@@ -1,7 +1,7 @@
1
1
  import { ref as m, computed as w, onMounted as Q, onBeforeUnmount as Y, withDirectives as Z, createElementBlock as s, openBlock as o, normalizeStyle as v, createElementVNode as X, withKeys as p, withModifiers as _, renderSlot as d, normalizeProps as S, guardReactiveProps as ee, createVNode as te, normalizeClass as k, createCommentVNode as a, Fragment as $, createBlock as f, toDisplayString as c, mergeProps as T, unref as oe } from "vue";
2
2
  import { v as ne } from "./vClickOutside-C6WiFswA.js";
3
- import r from "./BaseIcon-B717hnWR.js";
4
- import z from "./img-DsVqerdt.js";
3
+ import r from "./BaseIcon-DHtro8us.js";
4
+ import z from "./img-JOqdlnUs.js";
5
5
  import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const ie = ["title"], se = ["data-open"], ae = {
7
7
  __name: "UserOptions",
@@ -1,4 +1,4 @@
1
- import { X as x } from "./index-BHb_mcWF.js";
1
+ import { X as x } from "./index-CDQbCd41.js";
2
2
  async function F(n) {
3
3
  const i = n.querySelectorAll("img"), s = Array.from(i).map((t) => new Promise((o) => {
4
4
  if (!t.src || t.src.startsWith("data:")) return o();
@@ -1,4 +1,4 @@
1
- import { d as n } from "./dom-to-png-DwUGURhV.js";
1
+ import { d as n } from "./dom-to-png-BhciAKaM.js";
2
2
  async function u({ domElement: t, fileName: c, format: f = "png", scale: i = 2, base64: a = !1, img: g = !1 }) {
3
3
  if (!t) return Promise.reject("No element provided");
4
4
  const h = typeof navigator < "u" && /^((?!chrome|android).)*safari/i.test(navigator.userAgent);