vue-data-ui 2.2.89 → 2.2.91

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 (60) hide show
  1. package/dist/data-table-d-VcuH-r.js +1488 -0
  2. package/dist/{index.es-5fba9ad2.js → index.es-Dc9Fd4o6.js} +173 -301
  3. package/dist/legend-DJCYLsl_.js +61 -0
  4. package/dist/{purify.es-00041b4f.js → purify.es-BwOkayRK.js} +9 -18
  5. package/dist/style.css +1 -1
  6. package/dist/themes-lgjsYHsH.js +4967 -0
  7. package/dist/title-BF-9Qcni.js +56 -0
  8. package/dist/tooltip-D85WEOKi.js +94 -0
  9. package/dist/types/vue-data-ui.d.ts +3 -0
  10. package/dist/user-options-DZgCz8UA.js +415 -0
  11. package/dist/vue-data-ui.js +455 -62
  12. package/dist/vue-ui-3d-bar-DW7kGJSz.js +20360 -0
  13. package/dist/vue-ui-age-pyramid-4hcuKpFY.js +781 -0
  14. package/dist/vue-ui-annotator-C83FVvl8.js +2175 -0
  15. package/dist/vue-ui-candlestick-diclGj95.js +807 -0
  16. package/dist/vue-ui-chestnut-ACetHLdG.js +1049 -0
  17. package/dist/vue-ui-cursor-Rx7UNaYT.js +229 -0
  18. package/dist/vue-ui-dashboard-B3PlN0ks.js +231 -0
  19. package/dist/vue-ui-digits-CxMXID42.js +154 -0
  20. package/dist/vue-ui-donut-DMiwVXNd.js +1534 -0
  21. package/dist/vue-ui-dumbbell-B_X1T8TR.js +621 -0
  22. package/dist/vue-ui-flow-B72wzQ6V.js +451 -0
  23. package/dist/vue-ui-galaxy-DXX5yivT.js +482 -0
  24. package/dist/vue-ui-gauge-Cs9PDurH.js +466 -0
  25. package/dist/vue-ui-heatmap-PcoNSLdN.js +581 -0
  26. package/dist/vue-ui-kpi-DchEmPtB.js +55 -0
  27. package/dist/vue-ui-mini-loader-DltJLkqy.js +131 -0
  28. package/dist/vue-ui-molecule-CWvukBzs.js +746 -0
  29. package/dist/vue-ui-mood-radar-DEfdtIi8.js +544 -0
  30. package/dist/vue-ui-nested-donuts-9URpqgXE.js +768 -0
  31. package/dist/vue-ui-onion-C0eowUT6.js +551 -0
  32. package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +647 -0
  33. package/dist/vue-ui-quadrant-_ddVAm9V.js +1174 -0
  34. package/dist/vue-ui-quick-chart-Cio0hDYO.js +1310 -0
  35. package/dist/vue-ui-radar-Dyg38i33.js +853 -0
  36. package/dist/vue-ui-rating-CE1Lmwd2.js +271 -0
  37. package/dist/vue-ui-relation-circle-BMlB3k3d.js +303 -0
  38. package/dist/vue-ui-rings-BuXeijvb.js +507 -0
  39. package/dist/vue-ui-scatter-B1hZfOua.js +870 -0
  40. package/dist/vue-ui-screenshot-0QXgxzGs.js +160 -0
  41. package/dist/vue-ui-smiley-B7kR7exr.js +763 -0
  42. package/dist/vue-ui-spark-trend-BmL2KiYL.js +245 -0
  43. package/dist/vue-ui-sparkgauge-BMzFv14L.js +158 -0
  44. package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +243 -0
  45. package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +244 -0
  46. package/dist/vue-ui-strip-plot-DyN6P0JO.js +614 -0
  47. package/dist/vue-ui-table-DM3zL89q.js +2180 -0
  48. package/dist/vue-ui-table-heatmap-gWx0Nslu.js +237 -0
  49. package/dist/vue-ui-thermometer-Bcqv5kd_.js +384 -0
  50. package/dist/vue-ui-timer-BIFxjujK.js +451 -0
  51. package/dist/vue-ui-tiremarks-zBwHpED_.js +248 -0
  52. package/dist/vue-ui-treemap-BaplVc_z.js +719 -0
  53. package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +734 -0
  54. package/dist/vue-ui-waffle-COOzH7M3.js +635 -0
  55. package/dist/vue-ui-wheel-BEpuVTBk.js +226 -0
  56. package/dist/vue-ui-word-cloud-DNqxAAiX.js +344 -0
  57. package/dist/vue-ui-xy-_mHq-czW.js +2058 -0
  58. package/dist/vue-ui-xy-canvas-DqX8Gee5.js +1003 -0
  59. package/package.json +5 -5
  60. package/dist/index-fb63a0e3.js +0 -58150
@@ -0,0 +1,229 @@
1
+ import { ref as c, computed as m, onMounted as R, onBeforeUnmount as b, openBlock as o, createElementBlock as l, unref as C, normalizeStyle as E, createElementVNode as r, createCommentVNode as i, normalizeClass as p, toDisplayString as x, nextTick as F, pushScopeId as I, popScopeId as L } from "vue";
2
+ import { u as z } from "./title-BF-9Qcni.js";
3
+ import { _ as O, e as B, X as N, o as T } from "./data-table-d-VcuH-r.js";
4
+ import { u as D } from "./vue-ui-3d-bar-DW7kGJSz.js";
5
+ const g = (a) => (I("data-v-fe8d65eb"), a = a(), L(), a), $ = ["xmlns", "height", "width"], W = {
6
+ id: "follower",
7
+ fy: "30%",
8
+ fx: "30%"
9
+ }, G = ["stop-color", "stop-opacity"], A = /* @__PURE__ */ g(() => /* @__PURE__ */ r("stop", {
10
+ offset: "95%",
11
+ "stop-color": "transparent"
12
+ }, null, -1)), U = ["r", "fill", "stroke", "stroke-width", "stroke-dasharray"], V = ["r", "fill"], M = {
13
+ key: 2,
14
+ class: "wave"
15
+ }, P = ["id"], X = ["id"], j = /* @__PURE__ */ g(() => /* @__PURE__ */ r("feColorMatrix", {
16
+ type: "saturate",
17
+ values: "0"
18
+ }, null, -1)), Y = ["filter", "stroke"], q = {
19
+ key: 3,
20
+ class: "crosshair"
21
+ }, H = ["x1", "stroke", "stroke-width", "stroke-dasharray"], J = ["x1", "stroke", "stroke-width", "stroke-dasharray"], K = ["y1", "stroke", "stroke-width", "stroke-dasharray"], Q = ["y1", "stroke", "stroke-width", "stroke-dasharray"], Z = ["cy", "r", "fill"], ee = ["cy", "r", "fill"], te = ["cx", "r", "fill"], re = ["cx", "r", "fill"], se = {
22
+ key: 5,
23
+ class: "coordinates"
24
+ }, oe = ["x", "y", "font-size", "fill"], le = ["transform"], ie = ["font-size", "fill"], ae = {
25
+ __name: "vue-ui-cursor",
26
+ props: {
27
+ config: {
28
+ type: Object,
29
+ default: {}
30
+ }
31
+ },
32
+ setup(a) {
33
+ const w = a, { vue_ui_cursor: S } = D(), d = c(B()), e = m(() => z({
34
+ userConfig: w.config,
35
+ defaultConfig: S
36
+ })), s = c({
37
+ x: -100,
38
+ y: -100
39
+ });
40
+ function h({ clientX: t, clientY: k, ...ne }) {
41
+ s.value.x = t - e.value.centerCircleRadius, s.value.y = k - e.value.centerCircleRadius;
42
+ }
43
+ function f(t) {
44
+ s.value.x = t.targetTouches[0].clientX - e.value.centerCircleRadius, s.value.y = t.targetTouches[0].clientY - e.value.centerCircleRadius;
45
+ }
46
+ const y = c(!0);
47
+ function u(t) {
48
+ y.value = t;
49
+ }
50
+ const n = c(!1), v = c(null);
51
+ function _() {
52
+ n.value = !1, v.value && clearTimeout(v.value), F(() => {
53
+ n.value = !0, v.value = setTimeout(() => {
54
+ n.value = !1;
55
+ }, 1e3);
56
+ });
57
+ }
58
+ return R(() => {
59
+ const t = e.value.parentId ? document.getElementById(e.value.parentId) : document.getElementsByTagName("div")[0];
60
+ t.addEventListener("mousemove", h), t.addEventListener("touchmove", f), t.addEventListener("mouseleave", () => u(!1)), t.addEventListener("mouseenter", () => u(!0)), t.addEventListener("click", _);
61
+ }), b(() => {
62
+ const t = e.value.parentId ? document.getElementById(e.value.parentId) : document.getElementsByTagName("div")[0];
63
+ t.removeEventListener("mousemove", h), t.removeEventListener("touchmove", f), t.removeEventListener("mouseleave", () => u(!1)), t.removeEventListener("mouseenter", () => u(!0)), t.removeEventListener("click", _);
64
+ }), m(() => e.value.centerCircleRadius / 2.5), (t, k) => y.value ? (o(), l("svg", {
65
+ key: 0,
66
+ "data-html2canvas-ignore": "",
67
+ xmlns: C(N),
68
+ style: E(`z-index: 2147483647; overflow: visible; pointer-events: none;background: transparent; position:fixed; top:${s.value.y}px; left:${s.value.x}px;`),
69
+ viewBox: "0 0 100 100",
70
+ height: e.value.centerCircleRadius * 2,
71
+ width: e.value.centerCircleRadius * 2
72
+ }, [
73
+ r("defs", null, [
74
+ r("radialGradient", W, [
75
+ r("stop", {
76
+ offset: "10%",
77
+ "stop-color": e.value.bubbleEffectColor,
78
+ "stop-opacity": e.value.bubbleEffectOpacity
79
+ }, null, 8, G),
80
+ A
81
+ ])
82
+ ]),
83
+ e.value.showCenterCircle ? (o(), l("circle", {
84
+ key: 0,
85
+ cx: 50,
86
+ cy: 50,
87
+ r: e.value.centerCircleRadius,
88
+ fill: e.value.centerCircleColor + C(T)[e.value.centerCircleOpacity * 100],
89
+ stroke: e.value.centerCircleStroke,
90
+ "stroke-width": e.value.centerCircleStrokeWidth,
91
+ "stroke-dasharray": e.value.centerCircleDasharray
92
+ }, null, 8, U)) : i("", !0),
93
+ e.value.bubbleEffect ? (o(), l("circle", {
94
+ key: 1,
95
+ cx: 50,
96
+ cy: 50,
97
+ r: e.value.centerCircleRadius,
98
+ fill: "url(#follower)",
99
+ stroke: "none"
100
+ }, null, 8, V)) : i("", !0),
101
+ e.value.useWaveOnClick ? (o(), l("g", M, [
102
+ r("defs", null, [
103
+ r("filter", {
104
+ id: `blur_${d.value}`,
105
+ x: "-50%",
106
+ y: "-50%",
107
+ width: "200%",
108
+ height: "200%"
109
+ }, [
110
+ r("feGaussianBlur", {
111
+ in: "SourceGraphic",
112
+ stdDeviation: 4,
113
+ id: `blur_std_${d.value}`
114
+ }, null, 8, X),
115
+ j
116
+ ], 8, P)
117
+ ]),
118
+ n.value ? (o(), l("circle", {
119
+ key: 0,
120
+ class: p({ "circle-wave": n.value }),
121
+ cx: 50,
122
+ cy: 50,
123
+ r: 50,
124
+ filter: `url(#blur_${d.value})`,
125
+ stroke: e.value.centerCircleStroke,
126
+ fill: "none",
127
+ "stroke-width": "3"
128
+ }, null, 10, Y)) : i("", !0)
129
+ ])) : i("", !0),
130
+ e.value.showCrosshair ? (o(), l("g", q, [
131
+ r("line", {
132
+ x1: -e.value.centerCircleRadius + 50,
133
+ x2: -5e3,
134
+ y1: 50,
135
+ y2: 50,
136
+ stroke: e.value.crosshairStroke,
137
+ "stroke-width": e.value.crosshairStrokeWidth,
138
+ "stroke-dasharray": e.value.crosshairDasharray,
139
+ "stroke-linecap": "round"
140
+ }, null, 8, H),
141
+ r("line", {
142
+ x1: 50 + e.value.centerCircleRadius,
143
+ x2: 5e3,
144
+ y1: 50,
145
+ y2: 50,
146
+ stroke: e.value.crosshairStroke,
147
+ "stroke-width": e.value.crosshairStrokeWidth,
148
+ "stroke-dasharray": e.value.crosshairDasharray,
149
+ "stroke-linecap": "round"
150
+ }, null, 8, J),
151
+ r("line", {
152
+ x1: 50,
153
+ x2: 50,
154
+ y1: -e.value.centerCircleRadius + 50,
155
+ y2: -5e3,
156
+ stroke: e.value.crosshairStroke,
157
+ "stroke-width": e.value.crosshairStrokeWidth,
158
+ "stroke-dasharray": e.value.crosshairDasharray,
159
+ "stroke-linecap": "round"
160
+ }, null, 8, K),
161
+ r("line", {
162
+ x1: 50,
163
+ x2: 50,
164
+ y1: e.value.centerCircleRadius + 50,
165
+ y2: 5e3,
166
+ stroke: e.value.crosshairStroke,
167
+ "stroke-width": e.value.crosshairStrokeWidth,
168
+ "stroke-dasharray": e.value.crosshairDasharray,
169
+ "stroke-linecap": "round"
170
+ }, null, 8, Q)
171
+ ])) : i("", !0),
172
+ e.value.showIntersectCircles ? (o(), l("g", {
173
+ key: 4,
174
+ class: p({ "rotating-circles": e.value.isLoading })
175
+ }, [
176
+ r("circle", {
177
+ cx: 50,
178
+ cy: e.value.centerCircleRadius + 50,
179
+ r: e.value.intersectCirclesRadius,
180
+ fill: e.value.intersectCirclesFill
181
+ }, null, 8, Z),
182
+ r("circle", {
183
+ cx: 50,
184
+ cy: -e.value.centerCircleRadius + 50,
185
+ r: e.value.intersectCirclesRadius,
186
+ fill: e.value.intersectCirclesFill
187
+ }, null, 8, ee),
188
+ r("circle", {
189
+ cx: -e.value.centerCircleRadius + 50,
190
+ cy: 50,
191
+ r: e.value.intersectCirclesRadius,
192
+ fill: e.value.intersectCirclesFill
193
+ }, null, 8, te),
194
+ r("circle", {
195
+ cx: e.value.centerCircleRadius + 50,
196
+ cy: 50,
197
+ r: e.value.intersectCirclesRadius,
198
+ fill: e.value.intersectCirclesFill
199
+ }, null, 8, re)
200
+ ], 2)) : i("", !0),
201
+ e.value.showCoordinates ? (o(), l("g", se, [
202
+ r("text", {
203
+ "text-anchor": "end",
204
+ x: -e.value.centerCircleRadius + 50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset,
205
+ y: 50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset,
206
+ "font-size": e.value.coordinatesFontSize,
207
+ fill: e.value.coordinatesColor,
208
+ style: { "font-variant-numeric": "tabular-nums" },
209
+ "font-family": "Arial"
210
+ }, x(s.value.x.toFixed(0)), 9, oe),
211
+ r("g", {
212
+ transform: `translate(${50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset}, ${-e.value.centerCircleRadius + 50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset})`
213
+ }, [
214
+ r("text", {
215
+ "text-anchor": "start",
216
+ "font-size": e.value.coordinatesFontSize,
217
+ fill: e.value.coordinatesColor,
218
+ style: { "font-variant-numeric": "tabular-nums" },
219
+ transform: "rotate(-90)",
220
+ "font-family": "Arial"
221
+ }, x(s.value.y.toFixed(0)), 9, ie)
222
+ ], 8, le)
223
+ ])) : i("", !0)
224
+ ], 12, $)) : i("", !0);
225
+ }
226
+ }, he = /* @__PURE__ */ O(ae, [["__scopeId", "data-v-fe8d65eb"]]);
227
+ export {
228
+ he as default
229
+ };
@@ -0,0 +1,231 @@
1
+ import { useCssVars as J, computed as _, ref as r, watch as K, openBlock as w, createElementBlock as y, createElementVNode as g, normalizeStyle as z, createCommentVNode as I, Fragment as D, renderList as Q, normalizeClass as Z, renderSlot as ee, pushScopeId as te, popScopeId as oe, createStaticVNode as ae } from "vue";
2
+ import { u as le, p as ue } from "./vue-ui-3d-bar-DW7kGJSz.js";
3
+ import { u as ne } from "./title-BF-9Qcni.js";
4
+ import { _ as se } from "./data-table-d-VcuH-r.js";
5
+ const ie = (M) => (te("data-v-57895b3a"), M = M(), oe(), M), re = {
6
+ key: 0,
7
+ "data-html2canvas-ignore": "",
8
+ style: { width: "100%", display: "flex", "justify-content": "end" }
9
+ }, de = ["disabled"], ce = ["stroke"], he = /* @__PURE__ */ ae('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-57895b3a></path><path d="M18 16v.01" data-v-57895b3a></path><path d="M6 16v.01" data-v-57895b3a></path><path d="M12 5v.01" data-v-57895b3a></path><path d="M12 12v.01" data-v-57895b3a></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-57895b3a></path>', 6), ve = [
10
+ he
11
+ ], fe = { key: 1 }, pe = ["id"], ge = /* @__PURE__ */ ie(() => /* @__PURE__ */ g("div", { class: "vue-ui-dashboard-grid" }, null, -1)), be = ["onMousedown", "onTouchstart"], we = ["onMousedown", "onTouchstart"], ye = ["onMousedown", "onTouchstart"], _e = ["onMousedown", "onTouchstart"], Me = ["onMousedown", "onTouchstart"], x = 20, Te = {
12
+ __name: "vue-ui-dashboard",
13
+ props: {
14
+ dataset: Array,
15
+ config: Object
16
+ },
17
+ emits: ["change"],
18
+ setup(M, { expose: W, emit: E }) {
19
+ const X = M;
20
+ J((e) => ({
21
+ "417957d3": V.value,
22
+ "60fae9e7": j.value
23
+ }));
24
+ const { vue_ui_dashboard: L } = le(), s = _(() => ne({
25
+ userConfig: X.config,
26
+ defaultConfig: L
27
+ })), Y = r(`vue-ui-dashboard-${Math.random()}`), c = r(s.value.locked);
28
+ function N() {
29
+ c.value = !c.value;
30
+ }
31
+ const n = r(X.dataset), h = r(null), u = r(null), v = r({ x: 0, y: 0 }), f = r({ x: 0, y: 0 }), i = r(null), d = r(!1), p = r(null), k = r(!1);
32
+ function S() {
33
+ k.value = !0, ue({
34
+ domElement: document.getElementById(`vue-ui-dashboard_${Y.value}`),
35
+ fileName: "vue-ui-dashboard"
36
+ }).finally(() => {
37
+ k.value = !1;
38
+ });
39
+ }
40
+ function R(e) {
41
+ if (!c.value && (d.value = !0, p.value = e, u.value === null)) {
42
+ h.value = e, v.value = { x: event.clientX, y: event.clientY };
43
+ const t = n.value[e], a = 100 - t.width, o = 100 - t.height;
44
+ t.left < 0 && (t.left = 0), t.top < 0 && (t.top = 0), t.left > a && (t.left = a), t.top > o && (t.top = o), t.left < 0 && (t.left = 0), t.top < 0 && (t.top = 0), t.left + t.width > 100 && (t.left = 100 - t.width), t.top + t.height > 100 && (t.top = 100 - t.height);
45
+ }
46
+ }
47
+ function m(e, t) {
48
+ d.value = !0, p.value = e, u.value = { index: e, direction: t };
49
+ const a = n.value[e];
50
+ f.value = { x: event.clientX, y: event.clientY, initialWidth: a.width, initialHeight: a.height };
51
+ }
52
+ function H(e, t, a) {
53
+ if (u.value.direction.includes("top")) {
54
+ const o = e.height - a / i.value.offsetHeight * 100;
55
+ o >= x && (e.top += a / i.value.offsetHeight * 100, e.height = o);
56
+ }
57
+ if (u.value.direction.includes("bottom")) {
58
+ const o = e.height + a / i.value.offsetHeight * 100;
59
+ o >= x && (e.height = o);
60
+ }
61
+ if (u.value.direction.includes("left")) {
62
+ const o = e.width - t / i.value.offsetWidth * 100;
63
+ o >= x && (e.left += t / i.value.offsetWidth * 100, e.width = o);
64
+ }
65
+ if (u.value.direction.includes("right")) {
66
+ const o = e.width + t / i.value.offsetWidth * 100;
67
+ o >= x && (e.width = o);
68
+ }
69
+ }
70
+ function B(e) {
71
+ if (!c.value) {
72
+ if (d.value = !0, h.value !== null) {
73
+ const t = n.value[h.value], a = e.clientX - v.value.x, o = e.clientY - v.value.y, l = t.left + a / i.value.offsetWidth * 100, b = t.top + o / i.value.offsetHeight * 100;
74
+ l >= 0 && b >= 0 && l + t.width <= 100 && b + t.height <= 100 && (t.left = l, t.top = b), v.value = { x: e.clientX, y: e.clientY };
75
+ }
76
+ if (u.value !== null) {
77
+ const t = n.value[u.value.index], a = e.clientX - f.value.x, o = e.clientY - f.value.y;
78
+ H(t, a, o), f.value = { x: e.clientX, y: e.clientY };
79
+ }
80
+ }
81
+ }
82
+ K(
83
+ n,
84
+ (e) => {
85
+ e && !d.value && E("change", n.value);
86
+ },
87
+ { deep: !0 }
88
+ );
89
+ function F() {
90
+ h.value = null, u.value = null, d.value = !1, p.value = null, n.value.forEach((e) => {
91
+ e.left = Math.round(e.left / 100 * 100), e.top = Math.round(e.top / 100 * 100), e.width = Math.round(e.width / 100 * 100), e.height = Math.round(e.height / 100 * 100);
92
+ });
93
+ }
94
+ function P(e) {
95
+ c.value || (d.value = !0, p.value = e, u.value === null && (h.value = e, v.value = { x: event.touches[0].clientX, y: event.touches[0].clientY }));
96
+ }
97
+ function C(e, t, a) {
98
+ if (d.value = !0, p.value = e, u.value === null) {
99
+ u.value = { index: e, direction: t };
100
+ const o = n.value[e];
101
+ f.value = { x: a.touches[0].clientX, y: a.touches[0].clientY, initialWidth: o.width, initialHeight: o.height };
102
+ }
103
+ }
104
+ function $(e) {
105
+ if (d.value = !0, e.preventDefault(), u.value !== null) {
106
+ const t = n.value[u.value.index], a = e.touches[0].clientX - f.value.x, o = e.touches[0].clientY - f.value.y;
107
+ H(t, a, o), f.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
108
+ }
109
+ }
110
+ function O(e) {
111
+ if (!c.value && (d.value = !0, e.preventDefault(), h.value !== null)) {
112
+ const t = n.value[h.value], a = e.touches[0].clientX - v.value.x, o = e.touches[0].clientY - v.value.y, l = t.left + a / i.value.offsetWidth * 100, b = t.top + o / i.value.offsetHeight * 100;
113
+ l >= 0 && b >= 0 && l + t.width <= 100 && b + t.height <= 100 && (t.left = l, t.top = b), v.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
114
+ }
115
+ }
116
+ function T() {
117
+ d.value = !1, p.value = null, h.value = null, u.value = null, n.value.forEach((e) => {
118
+ e.left = Math.round(e.left / 100 * 100), e.top = Math.round(e.top / 100 * 100), e.width = Math.round(e.width / 100 * 100), e.height = Math.round(e.height / 100 * 100);
119
+ });
120
+ }
121
+ const V = _(() => s.value.style.item.borderColor), j = _(() => s.value.style.resizeHandles.backgroundColor), A = _(() => s.value.style.board.aspectRatio), G = _(() => s.value.style.board.backgroundColor), U = _(() => s.value.style.board.border);
122
+ function q() {
123
+ return n.value;
124
+ }
125
+ return W({
126
+ generatePdf: S,
127
+ getItemsPositions: q,
128
+ toggleLock: N
129
+ }), (e, t) => (w(), y("div", null, [
130
+ s.value.allowPrint ? (w(), y("div", re, [
131
+ g("button", {
132
+ class: "vue-ui-dashboard-button",
133
+ onClick: S,
134
+ disabled: k.value,
135
+ style: z([{ "margin-top": "12px" }, `color:${s.value.style.board.color}`])
136
+ }, [
137
+ k.value ? (w(), y("svg", {
138
+ key: 0,
139
+ class: "vue-ui-dashboard-print-icon",
140
+ xmlns: "http://www.w3.org/2000/svg",
141
+ width: "20",
142
+ height: "20",
143
+ viewBox: "0 0 24 24",
144
+ "stroke-width": "1.5",
145
+ stroke: s.value.style.board.color,
146
+ fill: "none",
147
+ "stroke-linecap": "round",
148
+ "stroke-linejoin": "round"
149
+ }, ve, 8, ce)) : (w(), y("span", fe, "PDF"))
150
+ ], 12, de)
151
+ ])) : I("", !0),
152
+ g("div", {
153
+ class: "vue-ui-dashboard-container",
154
+ ref_key: "dashboardContainer",
155
+ ref: i,
156
+ id: `vue-ui-dashboard_${Y.value}`,
157
+ style: z(`border:${U.value}; sbackground:${G.value}; aspect-ratio:${A.value}`)
158
+ }, [
159
+ g("div", {
160
+ class: "vue-ui-dashboard-grid-container",
161
+ ref: "container",
162
+ onMousemove: B,
163
+ onMouseup: F,
164
+ onTouchmove: O,
165
+ onTouchend: T,
166
+ style: z(`background:${s.value.style.board.backgroundColor}`)
167
+ }, [
168
+ ge,
169
+ (w(!0), y(D, null, Q(n.value, (a, o) => (w(), y("div", {
170
+ key: a.id,
171
+ class: Z({ "vue-ui-dashboard-grid-item": !0, "vue-ui-dashboard-grid-item--locked": c.value }),
172
+ style: z({
173
+ width: `${a.width}%`,
174
+ height: `${a.height}%`,
175
+ left: `${a.left}%`,
176
+ top: `${a.top}%`,
177
+ cursor: "move",
178
+ boxShadow: p.value === o ? "0 6px 12px -3px rgba(0,0,0,0.3)" : "",
179
+ zIndex: p.value === o ? "1" : "0",
180
+ backgroundColor: s.value.style.item.backgroundColor
181
+ }),
182
+ onMousedown: (l) => R(o),
183
+ onTouchstart: (l) => P(o)
184
+ }, [
185
+ c.value ? I("", !0) : (w(), y(D, { key: 0 }, [
186
+ g("div", {
187
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",
188
+ onMousedown: (l) => m(o, "top-left"),
189
+ onTouchstart: (l) => C(o, "top-left", l),
190
+ onTouchmove: t[0] || (t[0] = (l) => $(l)),
191
+ onTouchend: T
192
+ }, null, 40, we),
193
+ g("div", {
194
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",
195
+ onMousedown: (l) => m(o, "top-right"),
196
+ onTouchstart: (l) => C(o, "top-right", l),
197
+ onTouchmove: t[1] || (t[1] = (l) => $(l)),
198
+ onTouchend: T
199
+ }, null, 40, ye),
200
+ g("div", {
201
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",
202
+ onMousedown: (l) => m(o, "bottom-left"),
203
+ onTouchstart: (l) => C(o, "bottom-left", l),
204
+ onTouchmove: t[2] || (t[2] = (l) => $(l)),
205
+ onTouchend: T
206
+ }, null, 40, _e),
207
+ g("div", {
208
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",
209
+ onMousedown: (l) => m(o, "bottom-right"),
210
+ onTouchstart: (l) => C(o, "bottom-right", l),
211
+ onTouchmove: t[3] || (t[3] = (l) => $(l)),
212
+ onTouchend: T
213
+ }, null, 40, Me)
214
+ ], 64)),
215
+ ee(e.$slots, "content", {
216
+ item: a,
217
+ index: o,
218
+ left: a.left,
219
+ top: a.top,
220
+ height: a.height,
221
+ width: a.width
222
+ }, void 0, !0)
223
+ ], 46, be))), 128))
224
+ ], 36)
225
+ ], 12, pe)
226
+ ]));
227
+ }
228
+ }, ze = /* @__PURE__ */ se(Te, [["__scopeId", "data-v-57895b3a"]]);
229
+ export {
230
+ ze as default
231
+ };
@@ -0,0 +1,154 @@
1
+ import { ref as k, computed as d, openBlock as $, createElementBlock as i, Fragment as o, createElementVNode as l, createCommentVNode as m, unref as v, normalizeStyle as C, renderList as b, createBlock as N } from "vue";
2
+ import { u as q } from "./title-BF-9Qcni.js";
3
+ import { X as M } from "./data-table-d-VcuH-r.js";
4
+ import { u as S } from "./vue-ui-3d-bar-DW7kGJSz.js";
5
+ const w = { key: 0 }, B = ["d", "fill"], F = ["d", "fill"], X = ["d", "fill"], E = ["d", "fill"], I = ["d", "fill"], O = ["d", "fill"], A = ["d", "fill"], D = { key: 1 }, G = ["cx", "cy", "fill"], V = {
6
+ __name: "Digit",
7
+ props: {
8
+ quanta: {
9
+ type: String,
10
+ default: null
11
+ },
12
+ backgroundColor: {
13
+ type: String,
14
+ default: "#e1e5e8"
15
+ },
16
+ color: {
17
+ type: String,
18
+ default: "#000000"
19
+ },
20
+ // coordinates from top left of a
21
+ x: {
22
+ type: Number,
23
+ default: 0
24
+ },
25
+ y: {
26
+ type: Number,
27
+ default: 0
28
+ }
29
+ },
30
+ setup(e) {
31
+ const u = e, c = k({
32
+ /**
33
+ * clockwise from top (last: g)
34
+ * a
35
+ * ----
36
+ * f | | b
37
+ * ----
38
+ * e | g | c
39
+ * ----
40
+ * d
41
+ */
42
+ 0: "1111110",
43
+ 1: "0110000",
44
+ 2: "1101101",
45
+ 3: "1111001",
46
+ 4: "0110011",
47
+ 5: "1011011",
48
+ 6: "1011111",
49
+ 7: "1110000",
50
+ 8: "1111111",
51
+ 9: "1111011",
52
+ "-": "0000001",
53
+ X: "0000000"
54
+ }), t = d(() => [void 0, null].includes(u.quanta) ? c.value.X : c.value[u.quanta]);
55
+ return (y, g) => ($(), i(o, null, [
56
+ [void 0, null, "."].includes(e.quanta) ? m("", !0) : ($(), i("g", w, [
57
+ l("path", {
58
+ d: `M ${e.x} ${e.y} L ${e.x + 2} ${e.y - 2} L ${e.x + 24} ${e.y - 2} L ${e.x + 26} ${e.y} L ${e.x + 24} ${e.y + 2} L ${e.x + 2} ${e.y + 2}Z`,
59
+ fill: t.value[0] == 1 ? e.color : e.backgroundColor,
60
+ stroke: "none"
61
+ }, null, 8, B),
62
+ l("path", {
63
+ d: `M ${e.x + 26} ${e.y + 26} L ${e.x + 26} ${e.y + 4} L ${e.x + 28} ${e.y + 2} L ${e.x + 30} ${e.y + 4} L ${e.x + 30} ${e.y + 26} L ${e.x + 28} ${e.y + 28} L ${e.x + 26} ${e.y + 26}`,
64
+ fill: t.value[1] == 1 ? e.color : e.backgroundColor,
65
+ stroke: "none"
66
+ }, null, 8, F),
67
+ l("path", {
68
+ d: `M ${e.x + 26} ${e.y + 56} L ${e.x + 26} ${e.y + 34} L ${e.x + 28} ${e.y + 32} L ${e.x + 30} ${e.y + 34} L ${e.x + 30} ${e.y + 56} L ${e.x + 28} ${e.y + 58} L ${e.x + 26} ${e.y + 56}`,
69
+ fill: t.value[2] == 1 ? e.color : e.backgroundColor,
70
+ stroke: "none"
71
+ }, null, 8, X),
72
+ l("path", {
73
+ d: `M ${e.x + 2} ${e.y + 58} L ${e.x} ${e.y + 60} L ${e.x + 2} ${e.y + 62} L ${e.x + 24} ${e.y + 62} L ${e.x + 26} ${e.y + 60} L ${e.x + 24} ${e.y + 58} L ${e.x + 2} ${e.y + 58}`,
74
+ fill: t.value[3] == 1 ? e.color : e.backgroundColor,
75
+ stroke: "none"
76
+ }, null, 8, E),
77
+ l("path", {
78
+ d: `M ${e.x} ${e.y + 34} L ${e.x - 2} ${e.y + 32} L ${e.x - 4} ${e.y + 34} L ${e.x - 4} ${e.y + 56} L ${e.x - 2} ${e.y + 58} L ${e.x} ${e.y + 56} L ${e.x} ${e.y + 34}`,
79
+ fill: t.value[4] == 1 ? e.color : e.backgroundColor,
80
+ stroke: "none"
81
+ }, null, 8, I),
82
+ l("path", {
83
+ d: `M ${e.x - 2} ${e.y + 2} L ${e.x} ${e.y + 4} L ${e.x} ${e.y + 26} L ${e.x - 2} ${e.y + 28} L ${e.x - 4} ${e.y + 26} L ${e.x - 4} ${e.y + 4} L ${e.x - 2} ${e.y + 2}`,
84
+ fill: t.value[5] == 1 ? e.color : e.backgroundColor,
85
+ stroke: "none"
86
+ }, null, 8, O),
87
+ l("path", {
88
+ d: `M ${e.x + 2} ${e.y + 28} L ${e.x} ${e.y + 30} L ${e.x + 2} ${e.y + 32} L ${e.x + 24} ${e.y + 32} L ${e.x + 26} ${e.y + 30} L ${e.x + 24} ${e.y + 28} L ${e.x + 2} ${e.y + 28}`,
89
+ fill: t.value[6] == 1 ? e.color : e.backgroundColor,
90
+ stroke: "none"
91
+ }, null, 8, A)
92
+ ])),
93
+ e.quanta == "." ? ($(), i("g", D, [
94
+ l("circle", {
95
+ cx: e.x - 8,
96
+ cy: e.y + 60,
97
+ r: 3,
98
+ fill: e.color
99
+ }, null, 8, G)
100
+ ])) : m("", !0)
101
+ ], 64));
102
+ }
103
+ }, j = ["xmlns", "viewBox"], W = {
104
+ __name: "vue-ui-digits",
105
+ props: {
106
+ dataset: {
107
+ type: Number,
108
+ default: 0
109
+ },
110
+ config: {
111
+ type: Object,
112
+ default() {
113
+ return {};
114
+ }
115
+ }
116
+ },
117
+ setup(e) {
118
+ const u = e, { vue_ui_digits: c } = S(), t = d(() => q({
119
+ userConfig: u.config,
120
+ defaultConfig: c
121
+ })), y = d(() => {
122
+ const a = (u.dataset || 0).toString().split(""), x = [], n = {
123
+ x: 10,
124
+ y: 10
125
+ };
126
+ let L = 0;
127
+ for (let f = 0; f < a.length; f += 1) {
128
+ const h = a[f];
129
+ x.push({
130
+ x: n.x + L,
131
+ y: n.y,
132
+ quanta: h
133
+ }), h == "." ? L += 2 : L += 44;
134
+ }
135
+ return x;
136
+ }), g = d(() => Math.max(...y.value.map((a) => a.x)) + 36);
137
+ return (a, x) => ($(), i("svg", {
138
+ xmlns: v(M),
139
+ viewBox: `0 0 ${g.value} 80`,
140
+ style: C(`background:${t.value.backgroundColor};${t.value.height ? `height:${t.value.height};` : ""}${t.value.width ? `width:${t.value.width}` : ""}`)
141
+ }, [
142
+ ($(!0), i(o, null, b(y.value, (n) => ($(), N(V, {
143
+ x: n.x,
144
+ y: n.y,
145
+ quanta: n.quanta,
146
+ color: t.value.digits.color,
147
+ backgroundColor: t.value.digits.skeletonColor
148
+ }, null, 8, ["x", "y", "quanta", "color", "backgroundColor"]))), 256))
149
+ ], 12, j));
150
+ }
151
+ };
152
+ export {
153
+ W as default
154
+ };