vue-data-ui 2.12.5 → 2.12.7-beta.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.
- package/README.md +56 -1
- package/dist/{Arrow-CD7YT-M0.js → Arrow-CmqjRRUl.js} +1 -1
- package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
- package/dist/{BaseIcon-CgSWwnK7.js → BaseIcon-CZdMutjs.js} +1 -1
- package/dist/{ColorPicker-w8R8Tqdv.js → ColorPicker-DvVKgyAl.js} +23 -24
- package/dist/{DataTable-CicthvOV.js → DataTable-Cv9CIz-a.js} +11 -11
- package/dist/{Legend-0UY0Mmli.js → Legend-DFunFf8i.js} +8 -8
- package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
- package/dist/PackageVersion-CLY-udAA.js +10 -0
- package/dist/{PenAndPaper-DLsvRwoD.js → PenAndPaper-B9na2mbr.js} +8 -10
- package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
- package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
- package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
- package/dist/{Shape-DICeBEtN.js → Shape-D3w9qas1.js} +2 -2
- package/dist/{Slicer-D1nsbsWE.js → Slicer-ncY8krrM.js} +2 -2
- package/dist/SparkTooltip-CwThutH2.js +68 -0
- package/dist/{Title-xO1jFsSw.js → Title-B5qqUI3M.js} +2 -2
- package/dist/Tooltip-C9rxJ-Ru.js +149 -0
- package/dist/{usePrinter-CcgJXHIK.js → UserOptions-Ddy6CuLC.js} +172 -231
- package/dist/{dom-to-png-CS4NRYd_.js → dom-to-png-DDlooC9r.js} +1 -1
- package/dist/{img-CsXjm5I4.js → img-m9g7lR5d.js} +1 -1
- package/dist/{index-vjCxtaM0.js → index-BiHmNd1-.js} +153 -118
- package/dist/{pdf-DHexTTpK.js → pdf-BqM953uL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +96 -2
- package/dist/types/vue-data-ui.d.ts +96 -2
- package/dist/useChartAccessibility-9icAAmYg.js +12 -0
- package/dist/useMouse-AicQS8Vf.js +13 -0
- package/dist/{useNestedProp-Du1hnYFA.js → useNestedProp-tRqS0ZAM.js} +1 -1
- package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
- package/dist/usePrinter-CRCbl1WG.js +53 -0
- package/dist/vClickOutside-C6WiFswA.js +13 -0
- package/dist/{vue-data-ui-BOrA3Tc9.js → vue-data-ui-D9uTDt73.js} +63 -63
- package/dist/vue-data-ui.js +42 -40
- package/dist/{vue-ui-3d-bar-Z8yAd4bw.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
- package/dist/{vue-ui-accordion-CAN430Oy.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C6PZU9Ez.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
- package/dist/{vue-ui-annotator-CqoDLx3t.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
- package/dist/{vue-ui-bullet-DZC3aY3d.js → vue-ui-bullet-D25qNQfb.js} +137 -140
- package/dist/{vue-ui-candlestick-B5mq_lgW.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
- package/dist/{vue-ui-carousel-table-CBwerU49.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
- package/dist/{vue-ui-chestnut-COyOAY28.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
- package/dist/{vue-ui-chord-Cw0F_jHM.js → vue-ui-chord-C4evlXYB.js} +356 -365
- package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
- package/dist/{vue-ui-cursor-CWXqmlVy.js → vue-ui-cursor-DgpSttlt.js} +2 -2
- package/dist/{vue-ui-dashboard-Ba2tF4md.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
- package/dist/{vue-ui-digits-BV7yyUdY.js → vue-ui-digits-BhjAxXgm.js} +2 -2
- package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
- package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
- package/dist/{vue-ui-dumbbell-SDCcLJIc.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
- package/dist/{vue-ui-flow-CrqGSDNK.js → vue-ui-flow-BVRkH0PS.js} +291 -300
- package/dist/{vue-ui-funnel-CcDOoxp8.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
- package/dist/{vue-ui-galaxy-jlDp0DRJ.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
- package/dist/{vue-ui-gauge-8t8rWb1C.js → vue-ui-gauge-B48eMvOR.js} +240 -243
- package/dist/{vue-ui-gizmo-CFwdrMYP.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
- package/dist/{vue-ui-heatmap-BT-mIeZp.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
- package/dist/{vue-ui-history-plot-crLloc7J.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
- package/dist/{vue-ui-kpi-96v4ZIYo.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
- package/dist/{vue-ui-mini-loader-rBHBxNIT.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
- package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
- package/dist/{vue-ui-mood-radar-DrVSXIY4.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
- package/dist/{vue-ui-nested-donuts-C9Ah9lgv.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
- package/dist/{vue-ui-onion-DwNPyn4X.js → vue-ui-onion-P8k6T724.js} +252 -258
- package/dist/{vue-ui-parallel-coordinate-plot-tSuK6xWu.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
- package/dist/{vue-ui-quadrant-C0Kaoo7K.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
- package/dist/{vue-ui-quick-chart-xMh_Ygct.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
- package/dist/{vue-ui-radar-C1jSDQt_.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
- package/dist/{vue-ui-rating-6Kb7hsKF.js → vue-ui-rating-gryk_h_6.js} +2 -2
- package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
- package/dist/{vue-ui-ridgeline-BBvPVQjC.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
- package/dist/{vue-ui-rings-B92cXv7f.js → vue-ui-rings-BRBXektJ.js} +262 -269
- package/dist/{vue-ui-scatter-Bt1aty87.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
- package/dist/{vue-ui-skeleton-DfOIDTJM.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
- package/dist/{vue-ui-smiley-sVgBnkbx.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
- package/dist/{vue-ui-spark-trend-D6uzJ4Qd.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
- package/dist/{vue-ui-sparkbar-D4c2EE7J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
- package/dist/{vue-ui-sparkgauge-DaQ6iz98.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
- package/dist/{vue-ui-sparkhistogram-D_YnmM2T.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
- package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
- package/dist/{vue-ui-sparkstackbar-DecnmqgJ.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
- package/dist/{vue-ui-stackbar-D1eNs1j_.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
- package/dist/{vue-ui-strip-plot-iPZ8Hhmr.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
- package/dist/{vue-ui-table-BFjE28sw.js → vue-ui-table-DBaT_TfA.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DipFDu39.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
- package/dist/{vue-ui-table-sparkline-CGAecOZh.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
- package/dist/{vue-ui-thermometer-Cx_yr-hs.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
- package/dist/{vue-ui-timer-ClVmS8MH.js → vue-ui-timer-D9FfRWN5.js} +180 -181
- package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
- package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
- package/dist/{vue-ui-vertical-bar-BHYCnFEN.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
- package/dist/{vue-ui-waffle-DEPUbrOt.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
- package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
- package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
- package/dist/{vue-ui-world-DStJ5i0i.js → vue-ui-world-CPIGEswq.js} +430 -442
- package/dist/{vue-ui-xy-CEop49z6.js → vue-ui-xy-9e_epIN4.js} +845 -846
- package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
- package/package.json +6 -6
- package/dist/BaseDraggableDialog-BjFEob7i.js +0 -186
- package/dist/PackageVersion-Cw2caN1c.js +0 -10
- package/dist/Tooltip-LKe8L-Mg.js +0 -158
- package/dist/useChartAccessibility-BWojgys7.js +0 -13
- package/dist/vue-ui-circle-pack-BtpaZLYs.js +0 -659
- package/dist/vue-ui-donut-CRdQFQgA.js +0 -1292
- package/dist/vue-ui-donut-evolution-De3-5OgR.js +0 -871
- package/dist/vue-ui-molecule-DSr_bHGG.js +0 -782
- package/dist/vue-ui-relation-circle-fh0Hl9m0.js +0 -528
- package/dist/vue-ui-sparkline-C2HuTMDz.js +0 -519
- package/dist/vue-ui-tiremarks-4Sa3RCSv.js +0 -344
- package/dist/vue-ui-treemap-CD5pPg7v.js +0 -956
- package/dist/vue-ui-wheel-qU0bgJsi.js +0 -338
- package/dist/vue-ui-word-cloud-z2ZguOdy.js +0 -648
- package/dist/vue-ui-xy-canvas-DV0BVdZb.js +0 -1673
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
<br>
|
|
4
4
|
<a href="https://vue-data-ui.graphieros.com/"><img width="100%" src="https://github.com/user-attachments/assets/0474eb0e-0918-43e1-9756-30a5a8052d82"></a>
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
</p>
|
|
8
7
|
|
|
9
8
|
# vue-data-ui
|
|
@@ -895,6 +894,8 @@ import {
|
|
|
895
894
|
lightenColor,
|
|
896
895
|
shiftColorHue,
|
|
897
896
|
createTSpans,
|
|
897
|
+
getCumulativeAverage,
|
|
898
|
+
getCumulativeMedian,
|
|
898
899
|
} from "vue-data-ui";
|
|
899
900
|
```
|
|
900
901
|
|
|
@@ -966,6 +967,60 @@ const textContent = createTSpans({
|
|
|
966
967
|
/>
|
|
967
968
|
```
|
|
968
969
|
|
|
970
|
+
### getCumulativeAverage
|
|
971
|
+
|
|
972
|
+
```js
|
|
973
|
+
import { getCumulativeAverage } from "vue-data-ui";
|
|
974
|
+
|
|
975
|
+
// simple usage
|
|
976
|
+
const arr = [0, 1, 2, 3, 4];
|
|
977
|
+
const cumulativeAvg = getCumulativeAverage({ values: arr });
|
|
978
|
+
|
|
979
|
+
// Ignore invalid values entirely
|
|
980
|
+
const arrWithInvalid = [1, null, 2, Infinity, NaN, undefined];
|
|
981
|
+
const cumulativeAvgNoInvalid = getCumulativeAverage({
|
|
982
|
+
values: arrWithInvalid,
|
|
983
|
+
config: {
|
|
984
|
+
keepInvalid: false,
|
|
985
|
+
},
|
|
986
|
+
});
|
|
987
|
+
|
|
988
|
+
// Convert invalid values to zero
|
|
989
|
+
const cumulativeAvgZeroed = getCumulativeAverage({
|
|
990
|
+
values: arrWithInvalid,
|
|
991
|
+
config: {
|
|
992
|
+
convertInvalidToZero: true,
|
|
993
|
+
},
|
|
994
|
+
});
|
|
995
|
+
```
|
|
996
|
+
|
|
997
|
+
### getCumulativeMedian
|
|
998
|
+
|
|
999
|
+
```js
|
|
1000
|
+
import { getCumulativeMedian } from "vue-data-ui";
|
|
1001
|
+
|
|
1002
|
+
// simple usage
|
|
1003
|
+
const arr = [0, 1, 2, 3, 4];
|
|
1004
|
+
const cumulativeMed = getCumulativeMedian({ values: arr });
|
|
1005
|
+
|
|
1006
|
+
// Ignore invalid values entirely
|
|
1007
|
+
const arrWithInvalid = [1, null, 2, Infinity, NaN, undefined];
|
|
1008
|
+
const cumulativeMedNoInvalid = getCumulativeMedian({
|
|
1009
|
+
values: arrWithInvalid,
|
|
1010
|
+
config: {
|
|
1011
|
+
keepInvalid: false,
|
|
1012
|
+
},
|
|
1013
|
+
});
|
|
1014
|
+
|
|
1015
|
+
// Convert invalid values to zero
|
|
1016
|
+
const cumulativeMedZeroed = getCumulativeMedian({
|
|
1017
|
+
values: arrWithInvalid,
|
|
1018
|
+
config: {
|
|
1019
|
+
convertInvalidToZero: true,
|
|
1020
|
+
},
|
|
1021
|
+
});
|
|
1022
|
+
```
|
|
1023
|
+
|
|
969
1024
|
## PDF generation
|
|
970
1025
|
|
|
971
1026
|
This package requires jspdf as a peer dependency. Please install it in your project if you intend on using the PDF printing feature.
|
|
@@ -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-
|
|
2
|
+
import { c as n } from "./index-BiHmNd1-.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: {
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { useCssVars as O, ref as L, reactive as T, computed as $, onUnmounted as R, createBlock as N, openBlock as v, Teleport as V, createElementBlock as E, createCommentVNode as _, withModifiers as s, normalizeStyle as M, createElementVNode as o, unref as I, renderSlot as y, createVNode as j, nextTick as P } from "vue";
|
|
2
|
+
import U from "./BaseIcon-CZdMutjs.js";
|
|
3
|
+
import { X as q } from "./index-BiHmNd1-.js";
|
|
4
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const F = ["xmlns"], G = { class: "modal-title" }, J = { class: "modal-body" }, K = {
|
|
6
|
+
__name: "BaseDraggableDialog",
|
|
7
|
+
props: {
|
|
8
|
+
backgroundColor: { type: String },
|
|
9
|
+
color: { type: String },
|
|
10
|
+
headerBg: { type: String },
|
|
11
|
+
headerColor: { type: String }
|
|
12
|
+
},
|
|
13
|
+
emits: ["close"],
|
|
14
|
+
setup(d, { expose: k, emit: b }) {
|
|
15
|
+
O((t) => ({
|
|
16
|
+
b93256ca: d.color
|
|
17
|
+
}));
|
|
18
|
+
const D = d, X = b, f = L(!1), g = L(!1), e = T({
|
|
19
|
+
left: window.innerWidth / 2 - 200,
|
|
20
|
+
top: window.innerHeight / 2 - 120,
|
|
21
|
+
width: 400,
|
|
22
|
+
height: 400,
|
|
23
|
+
dragging: !1,
|
|
24
|
+
resizing: !1,
|
|
25
|
+
dragOffsetX: 0,
|
|
26
|
+
dragOffsetY: 0,
|
|
27
|
+
pointerStartX: 0,
|
|
28
|
+
pointerStartY: 0,
|
|
29
|
+
resizeStartW: 0,
|
|
30
|
+
resizeStartH: 0
|
|
31
|
+
});
|
|
32
|
+
function C() {
|
|
33
|
+
f.value = !0, P(() => {
|
|
34
|
+
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);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function w() {
|
|
38
|
+
f.value = !1, X("close");
|
|
39
|
+
}
|
|
40
|
+
k({ open: C, close: w });
|
|
41
|
+
const B = $(() => ({
|
|
42
|
+
position: "fixed",
|
|
43
|
+
left: `${e.left}px`,
|
|
44
|
+
top: `${e.top}px`,
|
|
45
|
+
width: `${e.width}px`,
|
|
46
|
+
height: `${e.height}px`,
|
|
47
|
+
padding: 0,
|
|
48
|
+
border: "none",
|
|
49
|
+
background: D.backgroundColor,
|
|
50
|
+
boxShadow: "0 4px 24px rgba(0,0,0,0.15)",
|
|
51
|
+
zIndex: 9999,
|
|
52
|
+
overflow: "visible",
|
|
53
|
+
borderRadius: "2px"
|
|
54
|
+
}));
|
|
55
|
+
function a(t) {
|
|
56
|
+
return t.touches && t.touches.length ? { x: t.touches[0].clientX, y: t.touches[0].clientY } : { x: t.clientX, y: t.clientY };
|
|
57
|
+
}
|
|
58
|
+
function x(t) {
|
|
59
|
+
t.preventDefault?.(), e.dragging = !0;
|
|
60
|
+
const n = a(t);
|
|
61
|
+
e.dragOffsetX = n.x - e.left, e.dragOffsetY = n.y - e.top, document.addEventListener("mousemove", m), document.addEventListener("mouseup", u), document.addEventListener("touchmove", m, { passive: !1 }), document.addEventListener("touchend", u);
|
|
62
|
+
}
|
|
63
|
+
function m(t) {
|
|
64
|
+
if (!e.dragging) return;
|
|
65
|
+
t.preventDefault?.();
|
|
66
|
+
const n = a(t);
|
|
67
|
+
let i = n.x - e.dragOffsetX, r = n.y - e.dragOffsetY;
|
|
68
|
+
i = Math.max(0, Math.min(i, window.innerWidth - e.width)), r = Math.max(0, Math.min(r, window.innerHeight - e.height)), e.left = i, e.top = r;
|
|
69
|
+
}
|
|
70
|
+
function u() {
|
|
71
|
+
e.dragging = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", u), document.removeEventListener("touchmove", m), document.removeEventListener("touchend", u);
|
|
72
|
+
}
|
|
73
|
+
function S(t) {
|
|
74
|
+
t.preventDefault?.(), e.resizing = !0;
|
|
75
|
+
const n = a(t);
|
|
76
|
+
e.pointerStartX = n.x, e.pointerStartY = n.y, e.resizeStartW = e.width, e.resizeStartH = e.height, document.addEventListener("mousemove", h), document.addEventListener("mouseup", l), document.addEventListener("touchmove", h, { passive: !1 }), document.addEventListener("touchend", l);
|
|
77
|
+
}
|
|
78
|
+
function h(t) {
|
|
79
|
+
if (!e.resizing) return;
|
|
80
|
+
t.preventDefault?.();
|
|
81
|
+
const n = a(t);
|
|
82
|
+
let i = n.x - e.pointerStartX, r = n.y - e.pointerStartY;
|
|
83
|
+
e.width = Math.max(240, e.resizeStartW + i), e.height = Math.max(400, e.resizeStartH + r);
|
|
84
|
+
}
|
|
85
|
+
function l() {
|
|
86
|
+
e.resizing = !1, document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", l), document.removeEventListener("touchmove", h), document.removeEventListener("touchend", l);
|
|
87
|
+
}
|
|
88
|
+
function z(t) {
|
|
89
|
+
t.preventDefault?.(), e.resizing = !0;
|
|
90
|
+
const n = a(t);
|
|
91
|
+
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", p), document.addEventListener("mouseup", c), document.addEventListener("touchmove", p, { passive: !1 }), document.addEventListener("touchend", c);
|
|
92
|
+
}
|
|
93
|
+
function p(t) {
|
|
94
|
+
if (!e.resizing) return;
|
|
95
|
+
t.preventDefault?.();
|
|
96
|
+
const n = a(t);
|
|
97
|
+
let i = n.x - e.pointerStartX, r = Math.min(
|
|
98
|
+
Math.max(0, e.resizeStartLeft + i),
|
|
99
|
+
e.resizeStartLeft + e.resizeStartW - 240
|
|
100
|
+
// min width
|
|
101
|
+
), W = e.resizeStartW - (r - e.resizeStartLeft), Y = n.y - e.pointerStartY, H = Math.max(400, e.resizeStartH + Y);
|
|
102
|
+
e.left = r, e.width = W, e.height = H;
|
|
103
|
+
}
|
|
104
|
+
function c() {
|
|
105
|
+
e.resizing = !1, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", c), document.removeEventListener("touchmove", p), document.removeEventListener("touchend", c);
|
|
106
|
+
}
|
|
107
|
+
return R(() => {
|
|
108
|
+
u(), l(), c();
|
|
109
|
+
}), (t, n) => (v(), N(V, { to: "body" }, [
|
|
110
|
+
f.value ? (v(), E("div", {
|
|
111
|
+
key: 0,
|
|
112
|
+
class: "modal vue-ui-draggable-dialog",
|
|
113
|
+
style: M(B.value),
|
|
114
|
+
onClick: n[0] || (n[0] = s(() => {
|
|
115
|
+
}, ["stop"]))
|
|
116
|
+
}, [
|
|
117
|
+
o("div", {
|
|
118
|
+
class: "modal-header",
|
|
119
|
+
style: M({
|
|
120
|
+
backgroundColor: d.headerBg,
|
|
121
|
+
color: d.headerColor
|
|
122
|
+
})
|
|
123
|
+
}, [
|
|
124
|
+
o("span", {
|
|
125
|
+
class: "drag-handle",
|
|
126
|
+
onMousedown: s(x, ["stop", "prevent"]),
|
|
127
|
+
onTouchstart: s(x, ["stop", "prevent"])
|
|
128
|
+
}, [
|
|
129
|
+
(v(), E("svg", {
|
|
130
|
+
xmlns: I(q),
|
|
131
|
+
width: "20",
|
|
132
|
+
height: "20",
|
|
133
|
+
viewBox: "0 0 24 24",
|
|
134
|
+
fill: "none",
|
|
135
|
+
stroke: "currentColor",
|
|
136
|
+
"stroke-width": "1",
|
|
137
|
+
"stroke-linecap": "round",
|
|
138
|
+
"stroke-linejoin": "round"
|
|
139
|
+
}, n[1] || (n[1] = [
|
|
140
|
+
o("path", { d: "M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
141
|
+
o("path", { d: "M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
142
|
+
o("path", { d: "M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
143
|
+
o("path", { d: "M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
144
|
+
o("path", { d: "M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
145
|
+
o("path", { d: "M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
|
|
146
|
+
]), 8, F))
|
|
147
|
+
], 32),
|
|
148
|
+
o("span", G, [
|
|
149
|
+
y(t.$slots, "title", {}, void 0, !0)
|
|
150
|
+
]),
|
|
151
|
+
o("button", {
|
|
152
|
+
class: "close",
|
|
153
|
+
onClick: w
|
|
154
|
+
}, [
|
|
155
|
+
j(U, {
|
|
156
|
+
name: "close",
|
|
157
|
+
stroke: d.headerColor
|
|
158
|
+
}, null, 8, ["stroke"])
|
|
159
|
+
])
|
|
160
|
+
], 4),
|
|
161
|
+
o("div", J, [
|
|
162
|
+
y(t.$slots, "default", {}, void 0, !0)
|
|
163
|
+
]),
|
|
164
|
+
o("div", {
|
|
165
|
+
class: "resize-handle",
|
|
166
|
+
onMousedown: s(S, ["stop", "prevent"]),
|
|
167
|
+
onTouchstart: s(S, ["stop", "prevent"])
|
|
168
|
+
}, null, 32),
|
|
169
|
+
o("div", {
|
|
170
|
+
class: "resize-handle resize-handle-left",
|
|
171
|
+
onMousedown: s(z, ["stop", "prevent"]),
|
|
172
|
+
onTouchstart: s(z, ["stop", "prevent"])
|
|
173
|
+
}, null, 32)
|
|
174
|
+
], 4)) : _("", !0)
|
|
175
|
+
]));
|
|
176
|
+
}
|
|
177
|
+
}, ne = /* @__PURE__ */ A(K, [["__scopeId", "data-v-1344ad9f"]]);
|
|
178
|
+
export {
|
|
179
|
+
ne as default
|
|
180
|
+
};
|
|
@@ -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-
|
|
2
|
+
import { X as l } from "./index-BiHmNd1-.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,7 +1,7 @@
|
|
|
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-
|
|
3
|
-
import { G as V } from "./index-
|
|
4
|
-
import { v as D } from "./
|
|
2
|
+
import C from "./BaseIcon-CZdMutjs.js";
|
|
3
|
+
import { G as V } from "./index-BiHmNd1-.js";
|
|
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"], G = { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -46%)" } }, L = ["value"], T = {
|
|
7
7
|
__name: "ColorPicker",
|
|
@@ -24,36 +24,35 @@ const $ = ["onClick"], G = { style: { position: "absolute", top: "50%", left: "5
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:value"],
|
|
27
|
-
setup(
|
|
28
|
-
const c =
|
|
27
|
+
setup(e, { emit: m }) {
|
|
28
|
+
const c = e, s = m, g = l(null), y = k(() => ({
|
|
29
29
|
backgroundColor: c.value,
|
|
30
30
|
width: "100%",
|
|
31
31
|
height: "100%",
|
|
32
32
|
cursor: "pointer"
|
|
33
|
-
})), i = l(null),
|
|
34
|
-
|
|
35
|
-
(e = i.value) == null || e.click();
|
|
33
|
+
})), i = l(null), o = l(!1), b = () => {
|
|
34
|
+
i.value?.click();
|
|
36
35
|
};
|
|
37
|
-
function h(
|
|
38
|
-
s("update:value",
|
|
36
|
+
function h(t) {
|
|
37
|
+
s("update:value", t), o.value = !1;
|
|
39
38
|
}
|
|
40
39
|
function _() {
|
|
41
|
-
|
|
40
|
+
o.value = !1;
|
|
42
41
|
}
|
|
43
42
|
function d() {
|
|
44
|
-
|
|
43
|
+
o.value && _();
|
|
45
44
|
}
|
|
46
|
-
const x = (
|
|
47
|
-
const v =
|
|
45
|
+
const x = (t) => {
|
|
46
|
+
const v = t.target.value;
|
|
48
47
|
s("update:value", v);
|
|
49
48
|
}, p = k(() => V(c.value));
|
|
50
49
|
async function w() {
|
|
51
|
-
|
|
50
|
+
o.value = !o.value;
|
|
52
51
|
}
|
|
53
52
|
I(
|
|
54
53
|
() => c.value,
|
|
55
|
-
(
|
|
56
|
-
i.value.value =
|
|
54
|
+
(t) => {
|
|
55
|
+
i.value.value = t;
|
|
57
56
|
}
|
|
58
57
|
);
|
|
59
58
|
const B = l([
|
|
@@ -67,7 +66,7 @@ const $ = ["onClick"], G = { style: { position: "absolute", top: "50%", left: "5
|
|
|
67
66
|
"#FF1493",
|
|
68
67
|
"#00CED1"
|
|
69
68
|
]);
|
|
70
|
-
return (
|
|
69
|
+
return (t, v) => P((n(), r("div", {
|
|
71
70
|
onKeydown: S(d, ["esc"]),
|
|
72
71
|
style: { height: "100%", width: "100%", position: "relative" }
|
|
73
72
|
}, [
|
|
@@ -82,14 +81,14 @@ const $ = ["onClick"], G = { style: { position: "absolute", top: "50%", left: "5
|
|
|
82
81
|
size: 22
|
|
83
82
|
}, null, 8, ["stroke"])
|
|
84
83
|
], 4),
|
|
85
|
-
|
|
84
|
+
o.value ? (n(), r("div", {
|
|
86
85
|
key: 0,
|
|
87
86
|
ref_key: "picker",
|
|
88
87
|
ref: g,
|
|
89
88
|
tabindex: "0",
|
|
90
89
|
class: "vue-ui-color-picker",
|
|
91
90
|
style: a({
|
|
92
|
-
backgroundColor:
|
|
91
|
+
backgroundColor: e.backgroundColor
|
|
93
92
|
})
|
|
94
93
|
}, [
|
|
95
94
|
(n(!0), r(E, null, N(B.value, (f) => (n(), r("button", {
|
|
@@ -97,7 +96,7 @@ const $ = ["onClick"], G = { style: { position: "absolute", top: "50%", left: "5
|
|
|
97
96
|
class: "vue-ui-color-picker-option",
|
|
98
97
|
style: a({
|
|
99
98
|
backgroundColor: f,
|
|
100
|
-
outline: `1px solid ${
|
|
99
|
+
outline: `1px solid ${e.buttonBorderColor}`
|
|
101
100
|
}),
|
|
102
101
|
onClick: () => h(f)
|
|
103
102
|
}, null, 12, $))), 256)),
|
|
@@ -105,8 +104,8 @@ const $ = ["onClick"], G = { style: { position: "absolute", top: "50%", left: "5
|
|
|
105
104
|
class: "vue-ui-color-picker-option",
|
|
106
105
|
onClick: b,
|
|
107
106
|
style: a({
|
|
108
|
-
backgroundColor:
|
|
109
|
-
outline: `1px solid ${
|
|
107
|
+
backgroundColor: e.value,
|
|
108
|
+
outline: `1px solid ${e.buttonBorderColor}`
|
|
110
109
|
})
|
|
111
110
|
}, [
|
|
112
111
|
u("div", G, [
|
|
@@ -120,7 +119,7 @@ const $ = ["onClick"], G = { style: { position: "absolute", top: "50%", left: "5
|
|
|
120
119
|
ref_key: "colorInput",
|
|
121
120
|
ref: i,
|
|
122
121
|
type: "color",
|
|
123
|
-
value:
|
|
122
|
+
value: e.value,
|
|
124
123
|
class: "hidden-input",
|
|
125
124
|
onInput: x
|
|
126
125
|
}, null, 40, L)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import
|
|
3
|
-
import O from "./BaseIcon-
|
|
1
|
+
import { useCssVars as A, unref as e, computed as D, ref as w, onMounted as E, createElementBlock as n, openBlock as a, normalizeClass as k, createElementVNode as t, withKeys as R, normalizeStyle as i, createVNode as C, toDisplayString as I, Fragment as f, renderList as m, renderSlot as N, createCommentVNode as $ } from "vue";
|
|
2
|
+
import K from "./Shape-D3w9qas1.js";
|
|
3
|
+
import O from "./BaseIcon-CZdMutjs.js";
|
|
4
4
|
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
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
6
|
key: 0,
|
|
@@ -33,14 +33,14 @@ const j = { class: "vue-ui-data-table" }, F = { style: { display: "flex", "align
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["close"],
|
|
35
35
|
setup(o, { emit: B }) {
|
|
36
|
-
|
|
36
|
+
A((s) => ({
|
|
37
37
|
"2908e47d": e(v)
|
|
38
38
|
}));
|
|
39
|
-
const b = o, { backgroundColor: h, color: p, outline: g } = b.config.th, { backgroundColor: z, color:
|
|
39
|
+
const b = o, { backgroundColor: h, color: p, outline: g } = b.config.th, { backgroundColor: z, color: S, outline: v } = b.config.td, V = D(() => b.config.breakpoint), y = w(null), _ = w(!1);
|
|
40
40
|
E(() => {
|
|
41
41
|
const s = new ResizeObserver((r) => {
|
|
42
42
|
r.forEach((l) => {
|
|
43
|
-
_.value = l.contentRect.width <
|
|
43
|
+
_.value = l.contentRect.width < V.value;
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
y.value && s.observe(y.value);
|
|
@@ -77,7 +77,7 @@ const j = { class: "vue-ui-data-table" }, F = { style: { display: "flex", "align
|
|
|
77
77
|
style: i([{ "font-variant-numeric": "tabular-nums" }, { backgroundColor: e(h), color: e(p) }]),
|
|
78
78
|
class: "vue-ui-data-table__thead-row"
|
|
79
79
|
}, [
|
|
80
|
-
(a(!0), n(
|
|
80
|
+
(a(!0), n(f, null, m(o.head, (l, c) => (a(), n("th", {
|
|
81
81
|
role: "cell",
|
|
82
82
|
style: i({ outline: e(g) }),
|
|
83
83
|
key: `th_${c}`
|
|
@@ -99,12 +99,12 @@ const j = { class: "vue-ui-data-table" }, F = { style: { display: "flex", "align
|
|
|
99
99
|
], 4)
|
|
100
100
|
]),
|
|
101
101
|
t("tbody", null, [
|
|
102
|
-
(a(!0), n(
|
|
102
|
+
(a(!0), n(f, null, m(o.body, (l, c) => (a(), n("tr", {
|
|
103
103
|
role: "row",
|
|
104
|
-
style: i([{ "font-variant-numeric": "tabular-nums" }, { backgroundColor: e(z), color: e(
|
|
104
|
+
style: i([{ "font-variant-numeric": "tabular-nums" }, { backgroundColor: e(z), color: e(S) }]),
|
|
105
105
|
class: k({ "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 })
|
|
106
106
|
}, [
|
|
107
|
-
(a(!0), n(
|
|
107
|
+
(a(!0), n(f, null, m(l, (d, u) => (a(), n("td", {
|
|
108
108
|
role: "cell",
|
|
109
109
|
"data-cell": (o.colNames[u] && o.colNames[u].name ? o.colNames[u].name : "") || o.colNames[u] || "",
|
|
110
110
|
style: i({ outline: e(v) }),
|
|
@@ -129,5 +129,5 @@ const j = { class: "vue-ui-data-table" }, F = { style: { display: "flex", "align
|
|
|
129
129
|
}
|
|
130
130
|
}, Y = /* @__PURE__ */ T(P, [["__scopeId", "data-v-4afbd65f"]]);
|
|
131
131
|
export {
|
|
132
|
-
Y as
|
|
132
|
+
Y as default
|
|
133
133
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createElementBlock as n, openBlock as o, normalizeStyle as d, renderSlot as l, Fragment as
|
|
2
|
-
import { $ as p } from "./index-
|
|
3
|
-
import
|
|
1
|
+
import { createElementBlock as n, openBlock as o, normalizeStyle as d, renderSlot as l, Fragment as s, renderList as g, normalizeClass as m, createCommentVNode as h, createVNode as k, mergeProps as $, unref as y } from "vue";
|
|
2
|
+
import { $ as p } from "./index-BiHmNd1-.js";
|
|
3
|
+
import v from "./Shape-D3w9qas1.js";
|
|
4
4
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const S = ["id"], x = ["onClick", "height", "width"], z = {
|
|
6
6
|
__name: "Legend",
|
|
@@ -29,7 +29,7 @@ const S = ["id"], x = ["onClick", "height", "width"], z = {
|
|
|
29
29
|
emits: ["clickMarker"],
|
|
30
30
|
setup(e, { emit: c }) {
|
|
31
31
|
const f = c;
|
|
32
|
-
function
|
|
32
|
+
function u(i, r) {
|
|
33
33
|
f("clickMarker", { legend: i, i: r });
|
|
34
34
|
}
|
|
35
35
|
return (i, r) => (o(), n("div", {
|
|
@@ -38,12 +38,12 @@ const S = ["id"], x = ["onClick", "height", "width"], z = {
|
|
|
38
38
|
style: d(`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
39
|
}, [
|
|
40
40
|
l(i.$slots, "legendTitle", { titleSet: e.legendSet }, void 0, !0),
|
|
41
|
-
(o(!0), n(
|
|
41
|
+
(o(!0), n(s, null, g(e.legendSet, (t, a) => (o(), n("div", {
|
|
42
42
|
class: m({ "vue-data-ui-legend-item": !0, active: e.clickable })
|
|
43
43
|
}, [
|
|
44
44
|
t.shape ? (o(), n("svg", {
|
|
45
45
|
key: 0,
|
|
46
|
-
onClick: (C) =>
|
|
46
|
+
onClick: (C) => u(t, a),
|
|
47
47
|
height: e.config.fontSize,
|
|
48
48
|
width: e.config.fontSize,
|
|
49
49
|
viewBox: "0 0 60 60",
|
|
@@ -65,7 +65,7 @@ const S = ["id"], x = ["onClick", "height", "width"], z = {
|
|
|
65
65
|
], 2))), 256))
|
|
66
66
|
], 12, S));
|
|
67
67
|
}
|
|
68
|
-
},
|
|
68
|
+
}, L = /* @__PURE__ */ b(z, [["__scopeId", "data-v-f1db6c9f"]]);
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
L as default
|
|
71
71
|
};
|