vue-data-ui 2.4.1 → 2.4.2
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 +44 -44
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-BIs_9yK8.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-rRli6Sfv.js} +7 -4
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DXLiSLHd.js → Legend-CYF2gpXG.js} +1 -1
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-YZ7Hz3o1.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DYNLqCCT.js → Title-5VmBwT4i.js} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-Co5jI5ed.cjs} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-DnVHQ2xI.js} +880 -842
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +18 -16
- package/dist/types/vue-data-ui.d.ts +18 -16
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-C0GDDSW9.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-D9o6Rcgu.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BcYrYXhG.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-CGV1dEUD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-BfoEoJEy.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-DB2DeXti.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CJepIY2u.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B7B36LLT.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BcqmwDAb.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DT3aKNeV.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Chvdf2Gi.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUUYQ5dH.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CieqHVD5.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { computed as P, ref as s, watch as z, openBlock as i, createElementBlock as d, normalizeStyle as y, createElementVNode as v, createVNode as h, onMounted as V, nextTick as U, onBeforeUnmount as Y, Fragment as T, normalizeClass as g, createCommentVNode as R, unref as A, withModifiers as _, renderList as H } from "vue";
|
|
2
|
+
import { F as O, l as j, X as q } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import w from "./BaseIcon-rRli6Sfv.js";
|
|
4
|
+
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const G = ["value"], J = { class: "icon" }, K = {
|
|
6
|
+
__name: "ColorPicker",
|
|
7
|
+
props: {
|
|
8
|
+
value: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: "#ffffff"
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "50px"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:value"],
|
|
18
|
+
setup(n, { emit: B }) {
|
|
19
|
+
const a = n, l = P(() => ({
|
|
20
|
+
backgroundColor: a.value,
|
|
21
|
+
width: "100%",
|
|
22
|
+
height: "100%",
|
|
23
|
+
cursor: "pointer"
|
|
24
|
+
})), u = s(null), x = () => {
|
|
25
|
+
var r;
|
|
26
|
+
(r = u.value) == null || r.click();
|
|
27
|
+
}, p = (r) => {
|
|
28
|
+
const c = r.target.value;
|
|
29
|
+
B("update:value", c);
|
|
30
|
+
}, f = P(() => O(a.value));
|
|
31
|
+
return z(
|
|
32
|
+
() => a.value,
|
|
33
|
+
(r) => {
|
|
34
|
+
u.value.value = r;
|
|
35
|
+
}
|
|
36
|
+
), (r, c) => (i(), d("div", {
|
|
37
|
+
style: y(l.value),
|
|
38
|
+
class: "color-picker-wrapper",
|
|
39
|
+
onClick: x
|
|
40
|
+
}, [
|
|
41
|
+
v("input", {
|
|
42
|
+
ref_key: "colorInput",
|
|
43
|
+
ref: u,
|
|
44
|
+
type: "color",
|
|
45
|
+
value: n.value,
|
|
46
|
+
class: "hidden-input",
|
|
47
|
+
onInput: p
|
|
48
|
+
}, null, 40, G),
|
|
49
|
+
v("div", J, [
|
|
50
|
+
h(w, {
|
|
51
|
+
name: "palette",
|
|
52
|
+
stroke: f.value,
|
|
53
|
+
size: 22
|
|
54
|
+
}, null, 8, ["stroke"])
|
|
55
|
+
])
|
|
56
|
+
], 4));
|
|
57
|
+
}
|
|
58
|
+
}, Q = /* @__PURE__ */ D(K, [["__scopeId", "data-v-d3f01240"]]), W = {
|
|
59
|
+
class: /* @__PURE__ */ g({
|
|
60
|
+
"vue-ui-pen-and-paper-action": !0
|
|
61
|
+
}),
|
|
62
|
+
style: { padding: "0 !important" }
|
|
63
|
+
}, Z = ["disabled"], ee = ["xmlns", "viewBox", "onTouchstart", "onTouchmove"], te = ["d", "stroke"], oe = ["d", "stroke"], ne = {
|
|
64
|
+
__name: "PenAndPaper",
|
|
65
|
+
props: {
|
|
66
|
+
parent: {
|
|
67
|
+
type: HTMLElement
|
|
68
|
+
},
|
|
69
|
+
backgroundColor: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: "#FFFFFF"
|
|
72
|
+
},
|
|
73
|
+
color: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: "#2D353C"
|
|
76
|
+
},
|
|
77
|
+
active: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !1
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
emits: ["close"],
|
|
83
|
+
setup(n, { emit: B }) {
|
|
84
|
+
const a = n, l = s([]), u = s([]), x = s("0 0 0 0"), p = s(a.color), f = P(() => j(a.color, 0.6));
|
|
85
|
+
function r({ width: e, height: t }) {
|
|
86
|
+
x.value = `0 0 ${e} ${t}`;
|
|
87
|
+
}
|
|
88
|
+
const c = s(null);
|
|
89
|
+
V(() => {
|
|
90
|
+
U(() => {
|
|
91
|
+
if (a.parent) {
|
|
92
|
+
c.value = new ResizeObserver((o) => {
|
|
93
|
+
for (const b of o) {
|
|
94
|
+
const { width: L, height: N } = b.contentRect;
|
|
95
|
+
r({ width: L, height: N });
|
|
96
|
+
}
|
|
97
|
+
}), c.value.observe(a.parent);
|
|
98
|
+
const { width: e, height: t } = a.parent.getBoundingClientRect();
|
|
99
|
+
r({ width: e, height: t });
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}), Y(() => {
|
|
103
|
+
c.value && c.value.disconnect();
|
|
104
|
+
}), z(
|
|
105
|
+
() => a.parent,
|
|
106
|
+
(e) => {
|
|
107
|
+
if (!e) return;
|
|
108
|
+
const { width: t, height: o } = a.parent.getBoundingClientRect();
|
|
109
|
+
r({ width: t, height: o });
|
|
110
|
+
},
|
|
111
|
+
{ immediate: !0 }
|
|
112
|
+
);
|
|
113
|
+
const k = s(!1), m = s(""), C = s(null);
|
|
114
|
+
function M(e) {
|
|
115
|
+
if (!C.value) return;
|
|
116
|
+
k.value = !0;
|
|
117
|
+
const { x: t, y: o } = S(e);
|
|
118
|
+
m.value = `M ${t} ${o}`;
|
|
119
|
+
}
|
|
120
|
+
function F(e) {
|
|
121
|
+
if (!k.value || !C.value) return;
|
|
122
|
+
const { x: t, y: o } = S(e);
|
|
123
|
+
m.value += ` ${t} ${o}`;
|
|
124
|
+
}
|
|
125
|
+
function $() {
|
|
126
|
+
k.value && (l.value.push(m.value), u.value = [], m.value = ""), k.value = !1;
|
|
127
|
+
}
|
|
128
|
+
function S(e) {
|
|
129
|
+
if (!C.value) return { x: 0, y: 0 };
|
|
130
|
+
const t = C.value.getBoundingClientRect();
|
|
131
|
+
let o, b;
|
|
132
|
+
return e.touches && e.touches.length ? (o = e.touches[0].clientX, b = e.touches[0].clientY) : (o = e.clientX, b = e.clientY), {
|
|
133
|
+
x: o - t.left,
|
|
134
|
+
y: b - t.top
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
s(!1);
|
|
138
|
+
function I() {
|
|
139
|
+
if (l.value.length > 0) {
|
|
140
|
+
const e = l.value.pop();
|
|
141
|
+
u.value.push(e);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
function X() {
|
|
145
|
+
if (u.value.length > 0) {
|
|
146
|
+
const e = u.value.pop();
|
|
147
|
+
l.value.push(e);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
function E() {
|
|
151
|
+
l.value = [], u.value = [];
|
|
152
|
+
}
|
|
153
|
+
return (e, t) => (i(), d(T, null, [
|
|
154
|
+
n.active ? (i(), d("div", {
|
|
155
|
+
key: 0,
|
|
156
|
+
"data-html2canvas-ignore": "",
|
|
157
|
+
class: g({
|
|
158
|
+
"vue-ui-pen-and-paper-actions": !0,
|
|
159
|
+
visible: n.active
|
|
160
|
+
})
|
|
161
|
+
}, [
|
|
162
|
+
v("button", {
|
|
163
|
+
class: "vue-ui-pen-and-paper-action",
|
|
164
|
+
style: y({
|
|
165
|
+
backgroundColor: n.backgroundColor,
|
|
166
|
+
border: `1px solid ${f.value}`
|
|
167
|
+
}),
|
|
168
|
+
onClick: t[0] || (t[0] = (o) => B("close"))
|
|
169
|
+
}, [
|
|
170
|
+
h(w, {
|
|
171
|
+
name: "close",
|
|
172
|
+
stroke: n.color
|
|
173
|
+
}, null, 8, ["stroke"])
|
|
174
|
+
], 4),
|
|
175
|
+
v("button", W, [
|
|
176
|
+
h(Q, {
|
|
177
|
+
value: p.value,
|
|
178
|
+
"onUpdate:value": t[1] || (t[1] = (o) => p.value = o)
|
|
179
|
+
}, null, 8, ["value"])
|
|
180
|
+
]),
|
|
181
|
+
v("button", {
|
|
182
|
+
class: g({
|
|
183
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
184
|
+
"vue-ui-pen-and-paper-action-disabled": !l.value.length
|
|
185
|
+
}),
|
|
186
|
+
disabled: !l.value.length,
|
|
187
|
+
style: y({
|
|
188
|
+
backgroundColor: n.backgroundColor,
|
|
189
|
+
border: `1px solid ${f.value}`
|
|
190
|
+
}),
|
|
191
|
+
onClick: I
|
|
192
|
+
}, [
|
|
193
|
+
h(w, {
|
|
194
|
+
name: "restart",
|
|
195
|
+
stroke: n.color
|
|
196
|
+
}, null, 8, ["stroke"])
|
|
197
|
+
], 14, Z),
|
|
198
|
+
v("button", {
|
|
199
|
+
class: g({
|
|
200
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
201
|
+
"vue-ui-pen-and-paper-action-disabled": !u.value.length
|
|
202
|
+
}),
|
|
203
|
+
style: y({
|
|
204
|
+
backgroundColor: n.backgroundColor,
|
|
205
|
+
border: `1px solid ${f.value}`
|
|
206
|
+
}),
|
|
207
|
+
onClick: X
|
|
208
|
+
}, [
|
|
209
|
+
h(w, {
|
|
210
|
+
name: "restart",
|
|
211
|
+
stroke: n.color,
|
|
212
|
+
style: { transform: "scaleX(-1)" }
|
|
213
|
+
}, null, 8, ["stroke"])
|
|
214
|
+
], 6),
|
|
215
|
+
v("button", {
|
|
216
|
+
class: g([{
|
|
217
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
218
|
+
"vue-ui-pen-and-paper-action-disabled": !l.value.length
|
|
219
|
+
}, "vue-ui-pen-and-paper-action"]),
|
|
220
|
+
style: y({
|
|
221
|
+
backgroundColor: n.backgroundColor,
|
|
222
|
+
border: `1px solid ${f.value}`
|
|
223
|
+
}),
|
|
224
|
+
onClick: E
|
|
225
|
+
}, [
|
|
226
|
+
h(w, {
|
|
227
|
+
name: "trash",
|
|
228
|
+
stroke: n.color
|
|
229
|
+
}, null, 8, ["stroke"])
|
|
230
|
+
], 6)
|
|
231
|
+
], 2)) : R("", !0),
|
|
232
|
+
(i(), d("svg", {
|
|
233
|
+
ref_key: "svgElement",
|
|
234
|
+
ref: C,
|
|
235
|
+
xmlns: A(q),
|
|
236
|
+
viewBox: x.value,
|
|
237
|
+
class: g({
|
|
238
|
+
"vue-ui-pen-and-paper": !0,
|
|
239
|
+
inactive: !n.active
|
|
240
|
+
}),
|
|
241
|
+
onMousedown: M,
|
|
242
|
+
onMousemove: F,
|
|
243
|
+
onMouseup: $,
|
|
244
|
+
onMouseleave: $,
|
|
245
|
+
onTouchstart: _(M, ["prevent"]),
|
|
246
|
+
onTouchmove: _(F, ["prevent"]),
|
|
247
|
+
onTouchend: $
|
|
248
|
+
}, [
|
|
249
|
+
(i(!0), d(T, null, H(l.value, (o) => (i(), d("path", {
|
|
250
|
+
class: "vue-ui-pen-and-paper-path",
|
|
251
|
+
key: o,
|
|
252
|
+
d: o,
|
|
253
|
+
stroke: p.value,
|
|
254
|
+
fill: "none"
|
|
255
|
+
}, null, 8, te))), 128)),
|
|
256
|
+
k.value ? (i(), d("path", {
|
|
257
|
+
key: 0,
|
|
258
|
+
class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
|
|
259
|
+
d: m.value,
|
|
260
|
+
stroke: p.value,
|
|
261
|
+
fill: "none"
|
|
262
|
+
}, null, 8, oe)) : R("", !0)
|
|
263
|
+
], 42, ee))
|
|
264
|
+
], 64));
|
|
265
|
+
}
|
|
266
|
+
}, se = /* @__PURE__ */ D(ne, [["__scopeId", "data-v-634187a1"]]);
|
|
267
|
+
export {
|
|
268
|
+
se as P
|
|
269
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as u, openBlock as l, createElementBlock as i, createCommentVNode as a } from "vue";
|
|
2
|
-
import { U as p, O as f } from "./index-
|
|
2
|
+
import { U as p, O as f } from "./index-DnVHQ2xI.js";
|
|
3
3
|
const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], c = ["d", "fill", "stroke", "stroke-width"], g = ["points", "fill", "stroke", "stroke-width"], $ = {
|
|
4
4
|
__name: "Shape",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./index-FfZRtJ6A.cjs"),c=["cx","cy","r","fill","stroke","stroke-width"],m=["d","fill","stroke","stroke-width"],v=["points","fill","stroke","stroke-width"],p={__name:"Shape",props:{color:String,isSelected:{type:Boolean,default:!1},limit:{type:Number,default:3},plot:Object,radius:Number,shape:String,stroke:String,strokeWidth:Number,zoom:{type:Number,default:1.3}},emits:["mouseover","mouseout","click"],setup(n,{emit:r}){const t=n;function d(u){return{circle:{points:1,rotation:0},line:{points:2,rotation:0},triangle:{points:3,rotation:.52},square:{points:4,rotation:.783},diamond:{points:4,rotation:0},pentagon:{points:5,rotation:.95},hexagon:{points:6,rotation:0}}[u]}const s=e.computed(()=>d(t.shape)),i=e.computed(()=>t.shape!=="star"?null:a.createStar({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1)})),k=e.computed(()=>a.createPolygonPath({plot:{x:t.plot.x,y:t.plot.y},radius:t.radius*(t.isSelected?t.zoom:1),sides:s.value.points,rotation:s.value.rotation}).path);return(u,o)=>(e.openBlock(),e.createElementBlock("g",null,[s.value&&s.value.points===1?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:n.plot.x,cy:n.plot.y,r:t.radius*(t.isSelected?t.zoom:1),fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[0]||(o[0]=l=>r("mouseover")),onMouseout:o[1]||(o[1]=l=>r("mouseout")),onClick:o[2]||(o[2]=l=>r("click"))},null,40,c)):e.createCommentVNode("",!0),s.value&&s.value.points>=n.limit?(e.openBlock(),e.createElementBlock("path",{key:1,d:k.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[3]||(o[3]=l=>r("mouseover")),onMouseout:o[4]||(o[4]=l=>r("mouseout")),onClick:o[5]||(o[5]=l=>r("click"))},null,40,m)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("polygon",{key:2,points:i.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:o[6]||(o[6]=l=>r("mouseover")),onMouseout:o[7]||(o[7]=l=>r("mouseout")),onClick:o[8]||(o[8]=l=>r("click"))},null,40,v)):e.createCommentVNode("",!0)]))}};exports._sfc_main=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),_=require("./BaseIcon-
|
|
1
|
+
"use strict";const e=require("vue"),_=require("./BaseIcon-BGExhz6v.cjs"),C=require("./useResponsive-B3TrDDIG.cjs"),v=require("./index-FfZRtJ6A.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=a=>(e.pushScopeId("data-v-54291cff"),a=a(),e.popScopeId(),a),T={"data-html2canvas-ignore":"",style:{padding:"0 24px"}},U={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},W={key:0,style:{width:"100%",position:"relative"}},j={key:0,class:"minimap",style:{width:"100%"}},X=["xmlns","viewBox"],Z=["id"],G=["stop-color"],H=w(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1)),J=["d","stroke"],K=["x","width","height","fill","rx"],Q=["d","fill"],Y=["x","width","height","fill"],ee=["x","width","height","fill"],te=["d","fill"],le=["d","stroke"],ae=["cx","cy","stroke","fill"],ne=["cx","cy","stroke","fill"],oe=["x1","x2","y2","stroke"],ie=["x","height","width","onMouseenter"],re=w(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),ue=["min","max"],se=["min","max"],ce={__name:"Slicer",props:{background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:Number,default:14},labelLeft:{type:String,default:""},labelRight:{type:String,default:""},textColor:{type:String,default:"#1A1A1A"},inputColor:{type:String,default:"#1A1A1A"},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:"#4A4A4A"},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:"#1f77b4"},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:"#2D353C"},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:"#2D353C"}},emits:["update:start","update:end","reset","trapMouse"],setup(a,{emit:h}){const t=a;e.useCssVars(l=>({e0176a96:$.value,"27e9d329":f.value,"22b19dda":z.value,"081f1459":a.selectColor,"12e0ab32":B.value}));const r=e.ref(t.min),u=e.ref(t.max),p=e.computed(()=>!!t.minimap.length),g=e.ref(v.createUid()),V=e.computed(()=>{const l=t.max-t.min,o=(r.value-t.min)/l*100,i=(u.value-t.min)/l*100;return{left:`${o}%`,width:`${i-o}%`,background:t.selectColor}}),$=e.computed(()=>t.inputColor),B=e.computed(()=>t.background),z=e.computed(()=>`${t.selectColor}33`),f=e.computed(()=>t.borderColor),k=e.computed(()=>{let l=[];for(let o=0;o<t.minimap.length;o+=1)l.push(o);return l});function N(){h("reset")}function L(){Number(r.value)>Number(u.value)-1&&(r.value=Number(u.value)-1),h("update:start",Number(r.value))}function M(){Number(u.value)<Number(r.value)+1&&(u.value=Number(r.value)+1),h("update:end",Number(u.value))}e.watch(()=>t.min,l=>{Number(r.value)<Number(l)&&(r.value=Number(l)),Number(u.value)<Number(l)&&(u.value=Number(l))}),e.watch(()=>t.max,l=>{Number(r.value)>Number(l)&&(r.value=Number(l)),Number(u.value)>Number(l)&&(u.value=Number(l))});const x=e.ref(null),n=e.ref({width:1,height:1}),E=e.ref(null);e.onMounted(()=>{if(p.value){const l=C.throttle(()=>{const{width:o,height:i}=C.useResponsive({chart:x.value});n.value.width=o,n.value.height=i-47});E.value=new ResizeObserver(l),E.value.observe(x.value)}});const s=e.computed(()=>t.minimap.length?n.value.width/t.minimap.length:0),c=e.computed(()=>{if(!t.minimap.length)return[];const l=Math.max(...t.minimap),o=Math.min(...t.minimap)-10,i=l-(o>0?0:o),d=t.minimap.map((A,q)=>{const D=A-o;return{x:n.value.width/t.minimap.length*q+s.value/2,y:n.value.height-D/i*(n.value.height*.9)}}),S=t.smoothMinimap?v.createSmoothPath(d):v.createStraightPath(d),b=[...d].slice(t.valueStart,t.valueEnd),R=t.smoothMinimap?v.createSmoothPath(b):v.createStraightPath(b);return{fullSet:S,selectionSet:R,sliced:b,firstPlot:d[t.valueStart],lastPlot:d[t.valueEnd-1]}}),m=e.computed(()=>({x:s.value*r.value+s.value/2,width:n.value.width*((u.value-r.value)/t.max)-s.value})),F=e.computed(()=>({left:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",pointerEvents:"none"})),I=e.computed(()=>({right:0,color:t.textColor,fontSize:`${t.fontSize}px`,top:p.value?"28px":"-28px",direction:"rtl",pointerEvents:"none"})),y=e.ref(t.minimapSelectedIndex);e.watch(()=>t.minimapSelectedIndex,l=>{y.value=l+t.valueStart},{immediate:!0});function P(l){y.value=l,l>=t.valueStart&&l<t.valueEnd&&h("trapMouse",l-t.valueStart)}return(l,o)=>(e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",U,[a.valueStart>0||a.valueEnd<a.max?(e.openBlock(),e.createElementBlock("div",W,[a.useResetSlot?e.renderSlot(l.$slots,"reset-action",{key:1,reset:N},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:p.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:N},[e.createVNode(_.default,{name:"refresh",stroke:a.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:x,style:{"z-index":"0"}},[p.value?(e.openBlock(),e.createElementBlock("div",j,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(v.XMLNS),viewBox:`0 0 ${n.value.width<0?0:n.value.width} ${n.value.height<0?0:n.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:g.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${a.minimapLineColor}50`},null,8,G),H],8,Z)]),e.createElementVNode("path",{d:`M${c.value.fullSet}`,stroke:`${a.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,J),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:f.value,rx:a.minimapSelectionRadius,stroke:"none"},null,8,K),e.createElementVNode("path",{d:`M${s.value/2},${n.value.height} ${c.value.fullSet} L${n.value.width-s.value/2},${n.value.height}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,Q),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:f.value},null,8,Y),e.createElementVNode("rect",{x:m.value.x,width:m.value.width<0?0:m.value.width,height:n.value.height,y:0,fill:a.minimapSelectedColor,style:e.normalizeStyle({opacity:a.minimapSelectedColorOpacity})},null,12,ee),e.createElementVNode("path",{d:`M${c.value.sliced[0].x},${n.value.height} ${c.value.selectionSet} L${c.value.sliced.at(-1).x},${n.value.height}Z`,fill:`url(#${g.value})`,stroke:"none",style:{opacity:"1"}},null,8,te),e.createElementVNode("path",{d:`M ${c.value.selectionSet}`,stroke:`${a.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,le),e.createElementVNode("circle",{cx:c.value.firstPlot.x,cy:c.value.firstPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:a.minimapLineColor},null,8,ae),e.createElementVNode("circle",{cx:c.value.lastPlot.x,cy:c.value.lastPlot.y,"stroke-width":"0.5",stroke:f.value,r:"3",fill:a.minimapLineColor},null,8,ne),y.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(k.value,(i,d)=>(e.openBlock(),e.createElementBlock("g",null,[y.value===i&&i>=a.valueStart&&i<a.valueEnd?(e.openBlock(),e.createElementBlock("line",{key:0,x1:s.value*d+s.value/2,x2:s.value*d+s.value/2,y1:0,y2:n.value.height,stroke:a.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,oe)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(i,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:n.value.height,width:s.value,fill:"transparent",style:{"pointer-events":"all !important"},onMouseenter:S=>P(i),onMouseleave:o[0]||(o[0]=S=>{y.value=null,h("trapMouse",null)})},null,40,ie))),256))],8,X))])):e.createCommentVNode("",!0),re,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(V.value)},null,4),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-left",min:a.min,max:a.max,"onUpdate:modelValue":o[1]||(o[1]=i=>r.value=i),onInput:L},null,40,ue),[[e.vModelText,r.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-left",style:e.normalizeStyle(F.value)},e.toDisplayString(a.labelLeft),5),e.withDirectives(e.createElementVNode("input",{type:"range",class:"range-right",min:a.min,max:a.max,"onUpdate:modelValue":o[2]||(o[2]=i=>u.value=i),onInput:M},null,40,se),[[e.vModelText,u.value]]),e.createElementVNode("div",{class:"thumb-label thumb-label-right",style:e.normalizeStyle(I.value)},e.toDisplayString(a.labelRight),5)],512)]))}},de=O._export_sfc(ce,[["__scopeId","data-v-54291cff"]]);exports.Slicer=de;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as K, ref as f, computed as d, watch as L, onMounted as Y, openBlock as v, createElementBlock as h, createElementVNode as i, normalizeStyle as S, createVNode as ee, renderSlot as te, createCommentVNode as k, unref as le, Fragment as z, renderList as E, withDirectives as P, vModelText as R, toDisplayString as A, pushScopeId as ae, popScopeId as ie } from "vue";
|
|
2
|
-
import ne from "./BaseIcon-
|
|
2
|
+
import ne from "./BaseIcon-rRli6Sfv.js";
|
|
3
3
|
import { t as oe, u as ue } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { c as re, R as V, Q as B, X as se } from "./index-
|
|
4
|
+
import { c as re, R as V, Q as B, X as se } from "./index-DnVHQ2xI.js";
|
|
5
5
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const O = (l) => (ae("data-v-54291cff"), l = l(), ie(), l), me = {
|
|
7
7
|
"data-html2canvas-ignore": "",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as l, createElementBlock as n, Fragment as f, createElementVNode as p, normalizeStyle as d, unref as e, toDisplayString as g, createCommentVNode as o, renderSlot as r } from "vue";
|
|
2
|
-
import { u as c } from "./useNestedProp-
|
|
2
|
+
import { u as c } from "./useNestedProp-Cox0K0Y5.js";
|
|
3
3
|
const x = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./useNestedProp-
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./useNestedProp-q7byAAIJ.cjs"),o={__name:"Title",props:{config:{type:Object,default(){return{}}},lineHeight:{type:[String,Boolean],default:!1}},setup(i){const n=i,t=r.useNestedProp({userConfig:n.config,defaultConfig:{title:{cy:"",text:"",color:"",fontSize:20,bold:!0,textAlign:"center",paddingLeft:0,paddingRight:0},subtitle:{cy:"",text:"",color:"",fontSize:14,bold:!1}}});return(l,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).title.color};font-size:${e.unref(t).title.fontSize}px;font-weight:${e.unref(t).title.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).title.text),5),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},e.toDisplayString(e.unref(t).subtitle.text),5)):e.createCommentVNode("",!0),e.unref(t).subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width: calc(100% - ${e.unref(t).title.paddingLeft+e.unref(t).title.paddingRight}px); text-align:${e.unref(t).title.textAlign};color:${e.unref(t).subtitle.color};font-size:${e.unref(t).subtitle.fontSize}px;font-weight:${e.unref(t).subtitle.bold?"bold":""};padding-left:${e.unref(t).title.paddingLeft}px;padding-right:${e.unref(t).title.paddingRight}px;${i.lineHeight?`line-height:${i.lineHeight}`:""}`)},[e.renderSlot(l.$slots,"default")],4)):e.createCommentVNode("",!0)],64))}};exports._sfc_main=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),v=require("./index-
|
|
1
|
+
"use strict";const o=require("vue"),v=require("./index-FfZRtJ6A.cjs");function p({tooltip:e,chart:r,clientPosition:t,positionPreference:a="center",defaultOffsetY:d=24}){const u=o.ref(0),l=o.ref(d);if(e&&r){const{width:n,height:f}=e.getBoundingClientRect(),{right:i,left:s,bottom:m}=r.getBoundingClientRect();a==="center"&&(t.x+n/2>i?u.value=-n+(i-t.x):t.x-n/2<s?u.value=-n+(n-(t.x-s)):u.value=-n/2),a==="right"&&(t.x+n>i?u.value=-n+(i-t.x):u.value=0),a==="left"&&(t.x<s+n?u.value=-n+(n-(t.x-s)):u.value=-n),t.y+f>m&&(l.value=-f-d)}return{top:t.y+l.value,left:t.x+u.value}}function y(e,r,t){o.onMounted(()=>e.addEventListener(r,t)),o.onUnmounted(()=>e.removeEventListener(r,t))}function c(){const e=o.ref(0),r=o.ref(0);return y(window,"mousemove",t=>{e.value=t.clientX,r.value=t.clientY}),{x:e,y:r}}const b=["innerHTML"],g={__name:"Tooltip",props:{backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#000000"},content:String,maxWidth:{type:String,default:"300px"},parent:{type:Object},show:{type:Boolean,default:!1},isCustom:{type:Boolean,default:!1},fontSize:{type:[Number,String],default:14},borderRadius:{type:Number,default:4},borderColor:{type:String,default:"#e1e5e8"},borderWidth:{type:Number,default:1},backgroundOpacity:{type:Number,default:100},position:{type:String,default:"center"},offsetY:{type:Number,default:24}},setup(e){const r=e,t=o.ref(null),a=o.ref(c()),d=o.computed(()=>p({tooltip:t.value,chart:r.parent,clientPosition:a.value,positionPreference:r.position,defaultOffsetY:r.offsetY})),u=o.computed(()=>v.setOpacity(r.backgroundColor,r.backgroundOpacity));return(l,n)=>e.show?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"tooltip",ref:t,class:o.normalizeClass({"vue-data-ui-custom-tooltip":e.isCustom,"vue-data-ui-tooltip":!e.isCustom}),style:o.normalizeStyle(`pointer-events:none;top:${d.value.top}px;left:${d.value.left}px;${e.isCustom?"":`background:${u.value};color:${e.color};max-width:${e.maxWidth};font-size:${e.fontSize}px`};border-radius:${e.borderRadius}px;border:${e.borderWidth}px solid ${e.borderColor};`)},[o.renderSlot(l.$slots,"tooltip-before"),o.renderSlot(l.$slots,"default"),o.createElementVNode("div",{innerHTML:e.content},null,8,b),o.renderSlot(l.$slots,"tooltip-after")],6)):o.createCommentVNode("",!0)}};exports._sfc_main=g;exports.useMouse=c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, onMounted as v, onUnmounted as y, computed as m, openBlock as b, createElementBlock as g, normalizeClass as x, normalizeStyle as h, renderSlot as f, createElementVNode as $, createCommentVNode as C } from "vue";
|
|
2
|
-
import { s as S } from "./index-
|
|
2
|
+
import { s as S } from "./index-DnVHQ2xI.js";
|
|
3
3
|
function k({ tooltip: e, chart: o, clientPosition: t, positionPreference: a = "center", defaultOffsetY: i = 24 }) {
|
|
4
4
|
const u = l(0), r = l(i);
|
|
5
5
|
if (e && o) {
|