vue-data-ui 2.7.3 → 2.7.4
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/dist/{Arrow-CwCPcRDq.cjs → Arrow-Bslu6In_.cjs} +1 -1
- package/dist/{Arrow-DZ9pNVTr.js → Arrow-Kbu7LT-f.js} +1 -1
- package/dist/{BaseIcon-CdxldTMn.js → BaseIcon-BLhJaEYy.js} +1 -1
- package/dist/{BaseIcon-BQ6ScTsr.cjs → BaseIcon-WIhlX3LN.cjs} +1 -1
- package/dist/{ColorPicker-DF9jbKW-.js → ColorPicker-Dlg-p-yo.js} +3 -3
- package/dist/{ColorPicker-D6mp4NrH.cjs → ColorPicker-mXlj2N11.cjs} +1 -1
- package/dist/{DataTable-BFNGlApm.js → DataTable-DOKlm7k4.js} +2 -2
- package/dist/{DataTable-4qcYZrGF.cjs → DataTable-c3nDhwbO.cjs} +1 -1
- package/dist/{Legend-D8qnv865.cjs → Legend-Bhl2d6oj.cjs} +1 -1
- package/dist/{Legend-B4eIw732.js → Legend-CIjMjfNk.js} +2 -2
- package/dist/{PackageVersion-BZ8-AoE_.js → PackageVersion-BCLALL_i.js} +1 -1
- package/dist/{PackageVersion-sCi6-fwm.cjs → PackageVersion-DFYAej2o.cjs} +1 -1
- package/dist/PenAndPaper-CAqWCUZx.cjs +1 -0
- package/dist/{PenAndPaper--_AE7XzJ.js → PenAndPaper-CZs431Nx.js} +34 -34
- package/dist/{Shape-BQd108EW.js → Shape-D9MuIPm8.js} +1 -1
- package/dist/{Shape-BjIO2Dd_.cjs → Shape-wMij_bxG.cjs} +1 -1
- package/dist/{Slicer-BtX8p8CI.js → Slicer-CqYLlNlU.js} +2 -2
- package/dist/{Slicer-B10GL6W6.cjs → Slicer-Duh-nBCD.cjs} +1 -1
- package/dist/{Title-DWFudmma.cjs → Title-C5w8bVlo.cjs} +1 -1
- package/dist/{Title-ND4kMErl.js → Title-UjBqdYyD.js} +1 -1
- package/dist/{Tooltip-BWe5TPIJ.js → Tooltip-3NNIdJ6N.js} +1 -1
- package/dist/{Tooltip-DPqJ5wwr.cjs → Tooltip-Dbe23pmt.cjs} +1 -1
- package/dist/{dom-to-png-DOe_fDQ9.js → dom-to-png-6NoDv4_U.js} +1 -1
- package/dist/{dom-to-png-DBOO7SYL.cjs → dom-to-png-C-_IolaZ.cjs} +1 -1
- package/dist/{img-K80BXoXO.js → img-BxGd_UqS.js} +1 -1
- package/dist/{img-BTldOAS7.cjs → img-DCkGlbCr.cjs} +1 -1
- package/dist/{index-B_dU_4T8.js → index-D3VntmA9.js} +1 -1
- package/dist/{index-HGCbG8YK.cjs → index-MIJJ8liG.cjs} +1 -1
- package/dist/{pdf-IEdK_h03.cjs → pdf-BGp1xMhT.cjs} +1 -1
- package/dist/{pdf-BKSh5KBc.js → pdf-BpVckOt1.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-7s4Pw7x0.js → useNestedProp-DTlOqz2P.js} +1 -1
- package/dist/{useNestedProp-O_JTsxQj.cjs → useNestedProp-DwR4JSzw.cjs} +1 -1
- package/dist/{usePrinter-CLObTJ4a.js → usePrinter-H3tAjGXs.js} +3 -3
- package/dist/{usePrinter-B2PvJuo8.cjs → usePrinter-U1x-RAEA.cjs} +1 -1
- package/dist/{vue-data-ui-NmIWCiVH.cjs → vue-data-ui-BuY9ggUz.cjs} +1 -1
- package/dist/{vue-data-ui-Dvy8nai9.js → vue-data-ui-DFwVHeO8.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CUG7pspB.cjs → vue-ui-3d-bar-DeTBYGV_.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-Cf-VSMqf.js → vue-ui-3d-bar-NNib9NTc.js} +9 -9
- package/dist/{vue-ui-accordion-C5dj9Voo.js → vue-ui-accordion-DGJQIcdB.js} +3 -3
- package/dist/{vue-ui-accordion-CSuxLH7L.cjs → vue-ui-accordion-cBSqrYy3.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BYHyKvk4.js → vue-ui-age-pyramid-DWG7C-nA.js} +10 -10
- package/dist/{vue-ui-age-pyramid-qT6V3Y8O.cjs → vue-ui-age-pyramid-DfGSS3SE.cjs} +1 -1
- package/dist/{vue-ui-annotator-KzRsqSTn.cjs → vue-ui-annotator-Bpy0V7AA.cjs} +1 -1
- package/dist/{vue-ui-annotator-clyvpxxd.js → vue-ui-annotator-D21j4NL0.js} +2 -2
- package/dist/{vue-ui-bullet-DMuibl8n.cjs → vue-ui-bullet-CrgeKJBE.cjs} +1 -1
- package/dist/{vue-ui-bullet-CJL4NBSU.js → vue-ui-bullet-MrNlqcTX.js} +8 -8
- package/dist/{vue-ui-candlestick-CMsFiP9C.cjs → vue-ui-candlestick-DfEQ057F.cjs} +1 -1
- package/dist/{vue-ui-candlestick-1jHdWerO.js → vue-ui-candlestick-Dgwjzuq0.js} +11 -11
- package/dist/{vue-ui-carousel-table-CtGRQBIN.cjs → vue-ui-carousel-table-B9AHiJLA.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BCVjpGff.js → vue-ui-carousel-table-TOSDOJ0J.js} +4 -4
- package/dist/{vue-ui-chestnut-CEQFlk-j.cjs → vue-ui-chestnut-BQwGKI2l.cjs} +1 -1
- package/dist/{vue-ui-chestnut-YX5q5qpY.js → vue-ui-chestnut-DAlxKIqD.js} +8 -8
- package/dist/{vue-ui-circle-pack-cXdePcYh.cjs → vue-ui-circle-pack-B9HW-E4V.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-DFhj3arJ.js → vue-ui-circle-pack-BjD7UG4l.js} +9 -9
- package/dist/{vue-ui-cursor-DGtZLxpF.cjs → vue-ui-cursor-Bv_hn_5f.cjs} +1 -1
- package/dist/{vue-ui-cursor-DwDTg8Za.js → vue-ui-cursor-CS0L4MjH.js} +2 -2
- package/dist/{vue-ui-dashboard-DQ4-1OKY.js → vue-ui-dashboard-Cu4QabFb.js} +3 -3
- package/dist/{vue-ui-dashboard-etx_lWpJ.cjs → vue-ui-dashboard-DGJjS8TM.cjs} +1 -1
- package/dist/{vue-ui-digits-lRbvyU_i.cjs → vue-ui-digits-BusMzORo.cjs} +1 -1
- package/dist/{vue-ui-digits-Crcwygqg.js → vue-ui-digits-CrqD5QXP.js} +2 -2
- package/dist/{vue-ui-donut-C2h_qoIM.js → vue-ui-donut-CbDkvk9s.js} +12 -12
- package/dist/{vue-ui-donut-evolution-DbzqkGBx.js → vue-ui-donut-evolution-DKD_efmP.js} +11 -11
- package/dist/{vue-ui-donut-evolution-Dbg5HueS.cjs → vue-ui-donut-evolution-Dul--Pi_.cjs} +1 -1
- package/dist/{vue-ui-donut-DQeJn_KK.cjs → vue-ui-donut-vqs5auMD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BVuQjSso.js → vue-ui-dumbbell-BGN-Rshy.js} +10 -10
- package/dist/{vue-ui-dumbbell-BaYSfxY1.cjs → vue-ui-dumbbell-CB6lYwMc.cjs} +1 -1
- package/dist/{vue-ui-flow-B8NKKaa2.cjs → vue-ui-flow-CDPkL02l.cjs} +1 -1
- package/dist/{vue-ui-flow-2FOH_Mxn.js → vue-ui-flow-g93Xo1mO.js} +9 -9
- package/dist/{vue-ui-funnel-Cgm1VcJC.cjs → vue-ui-funnel-D1PhFKgP.cjs} +1 -1
- package/dist/{vue-ui-funnel-CYt4xsc4.js → vue-ui-funnel-r_WI2IRS.js} +9 -9
- package/dist/{vue-ui-galaxy-CmmTED3N.js → vue-ui-galaxy-B4JnwjLW.js} +11 -11
- package/dist/{vue-ui-galaxy-D8oPaBdc.cjs → vue-ui-galaxy-DSXcoM3k.cjs} +1 -1
- package/dist/{vue-ui-gauge-vlhW2o0y.js → vue-ui-gauge-BPz7mbOb.js} +7 -7
- package/dist/{vue-ui-gauge-Ushp2qER.cjs → vue-ui-gauge-Ct1Knstr.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DtWADzHM.js → vue-ui-gizmo-BbUqDkQz.js} +3 -3
- package/dist/{vue-ui-gizmo-B16t4cjE.cjs → vue-ui-gizmo-tet3qRDX.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BcNWrSYu.js → vue-ui-heatmap-BbmFxESu.js} +10 -10
- package/dist/{vue-ui-heatmap-PVrUXZ6f.cjs → vue-ui-heatmap-RHN_eSK2.cjs} +1 -1
- package/dist/{vue-ui-history-plot-D9hGmpzL.cjs → vue-ui-history-plot-B8_Kig_-.cjs} +1 -1
- package/dist/{vue-ui-history-plot-aqwCckl3.js → vue-ui-history-plot-CJFtY1Rm.js} +11 -11
- package/dist/{vue-ui-kpi-zRnAot1s.cjs → vue-ui-kpi-C0IWPkaZ.cjs} +1 -1
- package/dist/{vue-ui-kpi-fIEea6oo.js → vue-ui-kpi-CQo8VsEv.js} +3 -3
- package/dist/{vue-ui-mini-loader-CnequKa7.js → vue-ui-mini-loader-8wZYNxLC.js} +2 -2
- package/dist/{vue-ui-mini-loader-0TKahM6o.cjs → vue-ui-mini-loader-DoOFKxep.cjs} +1 -1
- package/dist/{vue-ui-molecule-bHqvHzsr.js → vue-ui-molecule-DHb8Roml.js} +11 -11
- package/dist/{vue-ui-molecule-C7qRnQk-.cjs → vue-ui-molecule-HnReqNMq.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BGHGOC3W.cjs → vue-ui-mood-radar-BjmCUY0q.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BLLnwnLw.js → vue-ui-mood-radar-CdBmESCg.js} +11 -11
- package/dist/{vue-ui-nested-donuts-C5mqI9Vf.js → vue-ui-nested-donuts-CO7sSeR-.js} +11 -11
- package/dist/{vue-ui-nested-donuts-r9LWv_9T.cjs → vue-ui-nested-donuts-SBaCzHQP.cjs} +1 -1
- package/dist/{vue-ui-onion-CKJJIQO8.cjs → vue-ui-onion-BehdICTa.cjs} +1 -1
- package/dist/{vue-ui-onion-DGU0vHXZ.js → vue-ui-onion-Ci15BQ0y.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-B4tVo343.js → vue-ui-parallel-coordinate-plot-BJbrb-Mp.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CTF--y5O.cjs → vue-ui-parallel-coordinate-plot-BLLONfts.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CDZspHBg.js → vue-ui-quadrant-BZTZY3LG.js} +12 -12
- package/dist/{vue-ui-quadrant-De8bmwz_.cjs → vue-ui-quadrant-ntmlYIVx.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-baWAo-Ln.js → vue-ui-quick-chart-B2OUF1Pk.js} +9 -9
- package/dist/{vue-ui-quick-chart-Bi7Vdl9I.cjs → vue-ui-quick-chart-BCdm0tx2.cjs} +1 -1
- package/dist/{vue-ui-radar-DAxiwdD4.cjs → vue-ui-radar-CUoLdojY.cjs} +1 -1
- package/dist/{vue-ui-radar-CG8tGSHg.js → vue-ui-radar-D8DHrSPP.js} +12 -12
- package/dist/{vue-ui-rating-Bm6BESO1.cjs → vue-ui-rating-BWlmz08s.cjs} +1 -1
- package/dist/{vue-ui-rating-CcMWLaSP.js → vue-ui-rating-D4H6cT0d.js} +2 -2
- package/dist/{vue-ui-relation-circle-D4vD3HD_.js → vue-ui-relation-circle-CWvX8cvJ.js} +7 -7
- package/dist/{vue-ui-relation-circle-rM2pEsYK.cjs → vue-ui-relation-circle-DighSxmd.cjs} +1 -1
- package/dist/{vue-ui-rings-Mt51bBc5.cjs → vue-ui-rings-CPIzjzdm.cjs} +1 -1
- package/dist/{vue-ui-rings-R91Q3vZF.js → vue-ui-rings-Dq5YT7h-.js} +12 -12
- package/dist/{vue-ui-scatter-BKY7zeC_.js → vue-ui-scatter-BMuJyp6q.js} +12 -12
- package/dist/{vue-ui-scatter-COs46vAF.cjs → vue-ui-scatter-BSgMQLjw.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BBWwBSGZ.cjs → vue-ui-skeleton-DOE444ST.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CTZKsfWs.js → vue-ui-skeleton-pHcbvN3-.js} +3 -3
- package/dist/{vue-ui-smiley-3XabGcpa.js → vue-ui-smiley-BsPExuQ7.js} +2 -2
- package/dist/{vue-ui-smiley-CZ2XNWEt.cjs → vue-ui-smiley-bHv8hVve.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CZnUiwhV.cjs → vue-ui-spark-trend-S0FbKqDW.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Dd_5kNG9.js → vue-ui-spark-trend-eJ5IZSRQ.js} +5 -5
- package/dist/{vue-ui-sparkbar-CZJ8RFMM.cjs → vue-ui-sparkbar-B1pwFeeg.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DT_G3f_6.js → vue-ui-sparkbar-B9E03kBf.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Cra2_GdA.cjs → vue-ui-sparkgauge-BpAFpJN9.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CoGcwj8-.js → vue-ui-sparkgauge-CbtRwF8H.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-ClJhce64.cjs → vue-ui-sparkhistogram-4gAnz36n.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-ZI-zkp6j.js → vue-ui-sparkhistogram-BJfFPQ-X.js} +5 -5
- package/dist/{vue-ui-sparkline-Cehnojts.cjs → vue-ui-sparkline-CJ8rlJiI.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C4HvM0A7.js → vue-ui-sparkline-CLz-PMi0.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DbXifSgX.js → vue-ui-sparkstackbar-C5ZzOhRM.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-B6su4lbU.cjs → vue-ui-sparkstackbar-ja3t34Mt.cjs} +1 -1
- package/dist/{vue-ui-stackbar-bBQdWmxo.js → vue-ui-stackbar-BnuJOk6L.js} +13 -13
- package/dist/{vue-ui-stackbar-Dxjx916g.cjs → vue-ui-stackbar-DSWEq3Pa.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BaAUPB0O.js → vue-ui-strip-plot-Cbr3Dkmd.js} +11 -11
- package/dist/{vue-ui-strip-plot-D3Mc4jJS.cjs → vue-ui-strip-plot-CyiaXAxw.cjs} +1 -1
- package/dist/{vue-ui-table-CO12Arh5.cjs → vue-ui-table-CPJeRMDV.cjs} +1 -1
- package/dist/{vue-ui-table-DyjampQ2.js → vue-ui-table-Cr6jEi4z.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BrXBITN7.cjs → vue-ui-table-heatmap-BfKruH6W.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DC3LbLR1.js → vue-ui-table-heatmap-C0J52xWN.js} +4 -4
- package/dist/{vue-ui-table-sparkline-MCUi0UPR.js → vue-ui-table-sparkline-C9PHXjbW.js} +5 -5
- package/dist/{vue-ui-table-sparkline-C-L8YXVO.cjs → vue-ui-table-sparkline-CGUs_6Ij.cjs} +1 -1
- package/dist/{vue-ui-thermometer-0Jw0Kc3K.js → vue-ui-thermometer-Cs8Xt7tQ.js} +7 -7
- package/dist/{vue-ui-thermometer-BbAmbpxI.cjs → vue-ui-thermometer-DWC--OtD.cjs} +1 -1
- package/dist/{vue-ui-timer-CgcO44Ga.cjs → vue-ui-timer-DD0VvMEs.cjs} +1 -1
- package/dist/{vue-ui-timer-D43Y73z-.js → vue-ui-timer-DDZHmPLV.js} +5 -5
- package/dist/{vue-ui-tiremarks-B7GobiRR.cjs → vue-ui-tiremarks-B_koqVkj.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-C2z7LZOy.js → vue-ui-tiremarks-DHAdNbAA.js} +7 -7
- package/dist/{vue-ui-treemap-YuZUqTkv.cjs → vue-ui-treemap-C_yhbpyF.cjs} +1 -1
- package/dist/{vue-ui-treemap-t2jSZWbw.js → vue-ui-treemap-CfH-P5Oh.js} +12 -12
- package/dist/{vue-ui-vertical-bar-RH9oo9ao.cjs → vue-ui-vertical-bar-BRplGFjj.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CXbzdSDN.js → vue-ui-vertical-bar-oBdc4YQS.js} +12 -12
- package/dist/{vue-ui-waffle-C6PA3aJK.cjs → vue-ui-waffle-Bg5T7RVn.cjs} +1 -1
- package/dist/{vue-ui-waffle-Z9KsaCxx.js → vue-ui-waffle-DZ2zIujl.js} +12 -12
- package/dist/{vue-ui-wheel-BbBHPjUa.js → vue-ui-wheel-BerXCO4A.js} +7 -7
- package/dist/{vue-ui-wheel-BmWfP7V3.cjs → vue-ui-wheel-Bj3Z92nh.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DysEgxAX.cjs → vue-ui-word-cloud-BWQ1ogz9.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CUi3fEZc.js → vue-ui-word-cloud-U5KISxTe.js} +10 -10
- package/dist/{vue-ui-xy-B7Q6HDzu.cjs → vue-ui-xy-C078AHoi.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DfhloBZx.js → vue-ui-xy-canvas-BpblELcE.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DZB78JsG.cjs → vue-ui-xy-canvas-C76OoGNJ.cjs} +2 -2
- package/dist/{vue-ui-xy-BWN8izeD.js → vue-ui-xy-y9zEQYMK.js} +16 -16
- package/package.json +1 -1
- package/dist/PenAndPaper-DXiYR_ED.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as c, computed as ge, watch as X, nextTick as le, onMounted as pe, onBeforeUnmount as me, createElementBlock as Y, createCommentVNode as q, openBlock as z, createElementVNode as k, withDirectives as ae, normalizeStyle as b, createVNode as R, normalizeClass as G, toDisplayString as he, unref as Ae, vModelText as oe } from "vue";
|
|
2
|
-
import T from "./BaseIcon-
|
|
3
|
-
import { C as we } from "./ColorPicker-
|
|
4
|
-
import { l as xe, f as be } from "./index-
|
|
2
|
+
import T from "./BaseIcon-BLhJaEYy.js";
|
|
3
|
+
import { C as we } from "./ColorPicker-Dlg-p-yo.js";
|
|
4
|
+
import { l as xe, f as be } from "./index-D3VntmA9.js";
|
|
5
5
|
const ye = {
|
|
6
6
|
key: 0,
|
|
7
7
|
"data-dom-to-png-ignore": "",
|
|
@@ -35,7 +35,7 @@ const ye = {
|
|
|
35
35
|
},
|
|
36
36
|
emits: ["close"],
|
|
37
37
|
setup(d, { emit: se }) {
|
|
38
|
-
const s = d,
|
|
38
|
+
const s = d, re = se, x = c([]), E = c([]), S = c(s.color), $ = c(2), M = c(!1), P = c(""), o = c(null), h = c(null), F = c(null), A = c("draw"), Q = c(!1), f = c(null), H = c({ x: 0, y: 0 }), N = c([""]), D = c({ row: 0, col: 0 }), L = c(16), W = c("url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVh2YQcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnAtB020wn4lIuvyqFXhGGiAhCiMnMMpKZxSx8x9c9Any9i/Es/3N/jgG1YDEgIBHPMcO0iTeIZzZtg/M+scjKskp8Tjxu0gWJH7muePzGueSywDNFM5ueJxaJpVIXK13MyqZGPE0cVTWd8oWcxyrnLc5atc7a9+QvDBf0lQzXaY4ggSUkkYIEBXVUUIWNGK06KRbStB/38Q+7/hS5FHJVwMixgBo0yK4f/A9+d2sVpya9pHAc6H1xnI9RILQLtBqO833sOK0TIPgMXOkdf60JzH6S3uho0SNgcBu4uO5oyh5wuQMMPRmyKbtSkKZQLALvZ/RNeSByC/Sveb2193H6AGSpq+Ub4OAQGCtR9rrPu/u6e/v3TLu/H5C7crM1WjgWAAAABmJLR0QAqwB5AHWF+8OUAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gwUExIUagzGcQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABfSURBVBjTldAxDoNQDIPhL0+q1L33P1AvAhN7xfK6WAgoLfSfrNiykpQtE+7RLzx2vgF9D3o8lWDmn1QVVMP0LZQGmNtqp1/cmou0XHdG/+sYeGZwFBqPCub8rkcvvAGvsi1VYarR8wAAAABJRU5ErkJggg==') 5 5, auto");
|
|
39
39
|
function O(l) {
|
|
40
40
|
if (!o.value || A.value !== "text" || Q.value) return;
|
|
41
41
|
const { x: e, y: n } = V(l);
|
|
@@ -43,20 +43,20 @@ const ye = {
|
|
|
43
43
|
const t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
44
44
|
t.setAttribute("x", e), t.setAttribute("y", n), t.setAttribute("fill", S.value), t.setAttribute("font-size", L.value * s.scale), t.setAttribute("font-family", "sans-serif"), t.setAttribute("class", "vue-data-ui-doodle"), t.setAttribute("dominant-baseline", "hanging"), t.setAttribute("pointer-events", "all");
|
|
45
45
|
const a = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
46
|
-
a.setAttribute("x", e), a.setAttribute("dy", "0"), a.textContent = "", t.appendChild(a), o.value.appendChild(t), f.value = t, Q.value = !0, window.addEventListener("keydown", j), window.addEventListener("mousedown", _, !0), J(), Z();
|
|
46
|
+
a.setAttribute("x", e), a.setAttribute("dy", "0"), a.textContent = "", t.appendChild(a), t.style.pointerEvents = "none", o.value.appendChild(t), f.value = t, Q.value = !0, window.addEventListener("keydown", j), window.addEventListener("mousedown", _, !0), J(), Z();
|
|
47
47
|
}
|
|
48
48
|
function j(l) {
|
|
49
49
|
if (!Q.value) return;
|
|
50
50
|
let { row: e, col: n } = D.value, t = N.value.slice(), a = !1;
|
|
51
51
|
if (l.key === "Enter") {
|
|
52
|
-
const
|
|
53
|
-
t.splice(e, 1,
|
|
52
|
+
const r = t[e], u = r.slice(0, n), v = r.slice(n);
|
|
53
|
+
t.splice(e, 1, u, v), e += 1, n = 0, a = !0, l.preventDefault();
|
|
54
54
|
} else if (l.key === "Backspace") {
|
|
55
55
|
if (n > 0)
|
|
56
56
|
t[e] = t[e].slice(0, n - 1) + t[e].slice(n), n -= 1, a = !0;
|
|
57
57
|
else if (e > 0) {
|
|
58
|
-
const
|
|
59
|
-
t[e - 1] += t[e], t.splice(e, 1), e -= 1, n =
|
|
58
|
+
const r = t[e - 1].length;
|
|
59
|
+
t[e - 1] += t[e], t.splice(e, 1), e -= 1, n = r, a = !0;
|
|
60
60
|
}
|
|
61
61
|
l.preventDefault();
|
|
62
62
|
} else if (l.key === "Delete")
|
|
@@ -90,17 +90,17 @@ const ye = {
|
|
|
90
90
|
l && o.value.removeChild(l);
|
|
91
91
|
const e = f.value;
|
|
92
92
|
if (!e) return;
|
|
93
|
-
const { x: n, y: t } = H.value, { row: a, col:
|
|
93
|
+
const { x: n, y: t } = H.value, { row: a, col: r } = D.value, u = L.value * s.scale, v = e.childNodes[a];
|
|
94
94
|
if (!v) return;
|
|
95
|
-
let g = v.textContent.slice(0,
|
|
95
|
+
let g = v.textContent.slice(0, r);
|
|
96
96
|
g.endsWith(" ") && (g += " ");
|
|
97
97
|
const i = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
98
|
-
i.setAttribute("x", n), i.setAttribute("y", t), i.setAttribute("font-size",
|
|
98
|
+
i.setAttribute("x", n), i.setAttribute("y", t), i.setAttribute("font-size", u), i.setAttribute("font-family", "sans-serif"), i.textContent = g || "", o.value.appendChild(i);
|
|
99
99
|
const p = i.getBBox();
|
|
100
100
|
o.value.removeChild(i);
|
|
101
|
-
let m = t + a *
|
|
101
|
+
let m = t + a * u * 1.2, C = n + p.width;
|
|
102
102
|
const w = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
103
|
-
w.setAttribute("x", C), w.setAttribute("y", m), w.setAttribute("width", 2), w.setAttribute("height",
|
|
103
|
+
w.setAttribute("x", C), w.setAttribute("y", m), w.setAttribute("width", 2), w.setAttribute("height", u), w.setAttribute("fill", S.value), w.setAttribute("class", "vue-data-ui-svg-caret"), o.value.appendChild(w);
|
|
104
104
|
}
|
|
105
105
|
function _(l) {
|
|
106
106
|
if (f.value && !f.value.contains(l.target)) {
|
|
@@ -116,8 +116,8 @@ const ye = {
|
|
|
116
116
|
const n = (a = f.value) == null ? void 0 : a.children;
|
|
117
117
|
let t = !1;
|
|
118
118
|
if (n && n.length === 1) {
|
|
119
|
-
const
|
|
120
|
-
t = !
|
|
119
|
+
const r = n[0].textContent;
|
|
120
|
+
t = !r || r === "";
|
|
121
121
|
}
|
|
122
122
|
l || t ? f.value && o.value.contains(f.value) && o.value.removeChild(f.value) : f.value && o.value.contains(f.value) && x.value.push(f.value), Q.value = !1, f.value = null, N.value = [""], D.value = { row: 0, col: 0 };
|
|
123
123
|
}
|
|
@@ -139,7 +139,7 @@ const ye = {
|
|
|
139
139
|
const t = (a = e.getScreenCTM()) == null ? void 0 : a.inverse();
|
|
140
140
|
return t ? n.matrixTransform(t) : { x: 0, y: 0 };
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function ue(l) {
|
|
143
143
|
const e = l.trim().split(/\s+/);
|
|
144
144
|
if (e.length < 4)
|
|
145
145
|
return l;
|
|
@@ -151,37 +151,37 @@ const ye = {
|
|
|
151
151
|
const g = t[v - 2], i = t[v - 1], p = t[v], m = t[v + 1], C = (g + p) / 2, w = (i + m) / 2;
|
|
152
152
|
a.push(`Q ${g} ${i} ${C} ${w}`);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
return a.push(`L ${
|
|
154
|
+
const r = t[t.length - 2], u = t[t.length - 1];
|
|
155
|
+
return a.push(`L ${r} ${u}`), a.join(" ");
|
|
156
156
|
}
|
|
157
157
|
function ie(l, e = 1) {
|
|
158
158
|
const n = [...l];
|
|
159
159
|
for (let t = 2; t < l.length - 2; t += 2) {
|
|
160
|
-
const a = l[t],
|
|
161
|
-
n[t] = a + e * ((
|
|
160
|
+
const a = l[t], r = l[t + 1], u = l[t - 2], v = l[t - 1], g = l[t + 2], i = l[t + 3];
|
|
161
|
+
n[t] = a + e * ((u + g) / 2 - a), n[t + 1] = r + e * ((v + i) / 2 - r);
|
|
162
162
|
}
|
|
163
163
|
return n;
|
|
164
164
|
}
|
|
165
165
|
function ve(l) {
|
|
166
166
|
const e = l.trim().split(/\s+/);
|
|
167
|
-
let n = "", t = "", a = null,
|
|
168
|
-
for (let
|
|
169
|
-
const v = e[
|
|
167
|
+
let n = "", t = "", a = null, r = null;
|
|
168
|
+
for (let u = 0; u < e.length; u += 1) {
|
|
169
|
+
const v = e[u];
|
|
170
170
|
if (isNaN(v)) {
|
|
171
171
|
if (t = v, t === "M" || t === "L")
|
|
172
|
-
a = parseFloat(e[++
|
|
172
|
+
a = parseFloat(e[++u]), r = parseFloat(e[++u]), n += `${t}${a} ${r}`;
|
|
173
173
|
else if (t === "Q") {
|
|
174
|
-
const g = parseFloat(e[++
|
|
175
|
-
g === a && i ===
|
|
174
|
+
const g = parseFloat(e[++u]), i = parseFloat(e[++u]), p = parseFloat(e[++u]), m = parseFloat(e[++u]);
|
|
175
|
+
g === a && i === r ? n += `t${p - a} ${m - r}` : n += `q${g - a} ${i - r} ${p - a} ${m - r}`, a = p, r = m;
|
|
176
176
|
}
|
|
177
177
|
} else {
|
|
178
|
-
const g = parseFloat(v), i = parseFloat(e[++
|
|
178
|
+
const g = parseFloat(v), i = parseFloat(e[++u]);
|
|
179
179
|
if (t === "L") {
|
|
180
|
-
const p = g - a, m = i -
|
|
181
|
-
p === 0 ? n += `v${m}` : m === 0 ? n += `h${p}` : n += `l${p} ${m}`, a = g,
|
|
180
|
+
const p = g - a, m = i - r;
|
|
181
|
+
p === 0 ? n += `v${m}` : m === 0 ? n += `h${p}` : n += `l${p} ${m}`, a = g, r = i;
|
|
182
182
|
} else if (t === "Q") {
|
|
183
|
-
const p = g, m = i, C = parseFloat(e[++
|
|
184
|
-
p === a && m ===
|
|
183
|
+
const p = g, m = i, C = parseFloat(e[++u]), w = parseFloat(e[++u]);
|
|
184
|
+
p === a && m === r ? n += `t${C - a} ${w - r}` : n += `q${p - a} ${m - r} ${C - a} ${w - r}`, a = C, r = w;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -206,7 +206,7 @@ const ye = {
|
|
|
206
206
|
t.setAttribute("cx", e), t.setAttribute("cy", n), t.setAttribute("r", $.value * s.scale / 2), t.setAttribute("fill", S.value), t.setAttribute("class", "vue-data-ui-doodle"), o.value.appendChild(t), x.value.push(t);
|
|
207
207
|
} else {
|
|
208
208
|
const t = h.value;
|
|
209
|
-
t.setAttribute("d", ve(
|
|
209
|
+
t.setAttribute("d", ve(ue(P.value))), x.value.push(t);
|
|
210
210
|
}
|
|
211
211
|
E.value = [], h.value = "";
|
|
212
212
|
}
|
|
@@ -251,7 +251,7 @@ const ye = {
|
|
|
251
251
|
}), (l, e) => d.active ? (z(), Y("div", ye, [
|
|
252
252
|
k("button", {
|
|
253
253
|
class: "vue-ui-pen-and-paper-action",
|
|
254
|
-
onClick: e[0] || (e[0] = (n) =>
|
|
254
|
+
onClick: e[0] || (e[0] = (n) => re("close")),
|
|
255
255
|
style: b({
|
|
256
256
|
backgroundColor: d.backgroundColor,
|
|
257
257
|
border: `1px solid ${y.value}`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as u, createElementBlock as r, openBlock as l, createCommentVNode as a } from "vue";
|
|
2
|
-
import { Y as c, Q as f } from "./index-
|
|
2
|
+
import { Y as c, Q as f } from "./index-D3VntmA9.js";
|
|
3
3
|
const y = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], g = ["d", "fill", "stroke", "stroke-width"], x = ["points", "fill", "stroke", "stroke-width"], h = {
|
|
4
4
|
__name: "Shape",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("vue"),a=require("./index-
|
|
1
|
+
"use strict";const o=require("vue"),a=require("./index-MIJJ8liG.cjs"),c=["cx","cy","r","fill","stroke","stroke-width"],v=["d","fill","stroke","stroke-width"],p=["points","fill","stroke","stroke-width"],y={__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:d}){const e=n,i=d;function m(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 r=o.computed(()=>m(e.shape)),s=o.computed(()=>e.shape!=="star"?null:a.createStar({plot:{x:e.plot.x,y:e.plot.y},radius:e.radius*(e.isSelected?e.zoom:1)})),k=o.computed(()=>a.createPolygonPath({plot:{x:e.plot.x,y:e.plot.y},radius:e.radius*(e.isSelected?e.zoom:1),sides:r.value.points,rotation:r.value.rotation}).path);return(u,t)=>(o.openBlock(),o.createElementBlock("g",null,[r.value&&r.value.points===1?(o.openBlock(),o.createElementBlock("circle",{key:0,class:"vdui-shape-circle",cx:n.plot.x,cy:n.plot.y,r:e.radius*(e.isSelected?e.zoom:1),fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:t[0]||(t[0]=l=>i("mouseover")),onMouseout:t[1]||(t[1]=l=>i("mouseout")),onClick:t[2]||(t[2]=l=>i("click"))},null,40,c)):o.createCommentVNode("",!0),r.value&&r.value.points>=n.limit?(o.openBlock(),o.createElementBlock("path",{key:1,class:"vdui-shape-polygon",d:k.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:t[3]||(t[3]=l=>i("mouseover")),onMouseout:t[4]||(t[4]=l=>i("mouseout")),onClick:t[5]||(t[5]=l=>i("click"))},null,40,v)):o.createCommentVNode("",!0),s.value?(o.openBlock(),o.createElementBlock("polygon",{key:2,class:"vdui-shape-star",points:s.value,fill:n.color,stroke:n.stroke,"stroke-width":n.strokeWidth,onMouseover:t[6]||(t[6]=l=>i("mouseover")),onMouseout:t[7]||(t[7]=l=>i("mouseout")),onClick:t[8]||(t[8]=l=>i("click"))},null,40,p)):o.createCommentVNode("",!0)]))}};exports._sfc_main=y;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as Ie, computed as s, ref as u, watch as R, onMounted as Pe, onBeforeUnmount as ze, onUpdated as Ae, nextTick as ue, createElementBlock as v, openBlock as m, createElementVNode as d, createCommentVNode as x, renderSlot as Fe, normalizeStyle as $, createVNode as He, withDirectives as oe, unref as Z, Fragment as re, renderList as se, normalizeClass as L, vModelText as de, toDisplayString as ve } from "vue";
|
|
2
|
-
import Ve from "./BaseIcon-
|
|
2
|
+
import Ve from "./BaseIcon-BLhJaEYy.js";
|
|
3
3
|
import { t as We, u as Xe } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { c as Ue, T as me, S as ce, X as Oe, G as he } from "./index-
|
|
4
|
+
import { c as Ue, T as me, S as ce, X as Oe, G as he } from "./index-D3VntmA9.js";
|
|
5
5
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const Ge = {
|
|
7
7
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),xe=require("./BaseIcon-BQ6ScTsr.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),f=require("./index-HGCbG8YK.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},ke={key:0,style:{width:"100%",position:"relative"}},we={key:0,class:"minimap",style:{width:"100%"}},Se=["xmlns","viewBox"],Ne=["id"],Ce=["stop-color"],Ee=["d","stroke"],Be=["x","width","height","fill","rx"],Me=["d","fill"],$e=["x","width","height","rx","fill"],Re=["x","width","height","fill","rx"],Le=["d","fill"],Ve=["d","stroke"],ze=["cx","cy","stroke","fill"],De=["cx","cy","stroke","fill"],Te=["x1","x2","y2","stroke"],Pe=["x","height","width","onMouseenter"],Ie=["min","max"],Fe=["min","max"],Ae={__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"},refreshStartPoint:{type:Number,default:0},refreshEndPoint:{type:Number,default:null},enableRangeHandles:{type:Boolean,default:!1},enableSelectionDrag:{type:Boolean,default:!0},verticalHandles:{type:Boolean,default:!1}},emits:["update:start","update:end","reset","trapMouse"],setup(n,{expose:_,emit:ee}){e.useCssVars(t=>({"05c06dde":le.value,d5d55cf6:p.value,"1783e736":ne.value,"754a92b5":n.selectColor,"6a46ca7a":ae.value}));const l=n,c=e.ref(null),u=e.ref(l.min),r=e.ref(l.max),k=e.computed(()=>!!l.minimap.length),C=e.ref(f.createUid()),te=e.computed(()=>l.refreshEndPoint===null?l.max:l.refreshEndPoint),h=ee,g=e.computed(()=>{const t=l.max-l.min,a=(u.value-l.min)/t*100,o=(r.value-l.min)/t*100;return{left:`${a}%`,width:`${o-a}%`,background:l.selectColor,tooltipLeft:`calc(${a}% - ${F.value?0:P.value/2}px)`,tooltipRight:`calc(${o}% - ${A.value?N.value:N.value/2}px)`,arrowLeft:!F.value,arrowRight:!A.value}}),F=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((u.value-l.min)/(l.max-l.min))-P.value/2<0:!1),A=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((r.value-l.min)/(l.max-l.min))+N.value/2>c.value.getBoundingClientRect().width:!1),le=e.computed(()=>l.inputColor),ae=e.computed(()=>l.background),ne=e.computed(()=>`${l.selectColor}33`),p=e.computed(()=>l.borderColor),H=e.computed(()=>{let t=[];for(let a=0;a<l.minimap.length;a+=1)t.push(a);return t});function W(){h("reset")}function oe(){Number(u.value)>Number(r.value)-1&&(u.value=Number(r.value)-1),h("update:start",Number(u.value))}function ie(){Number(r.value)<Number(u.value)+1&&(r.value=Number(u.value)+1),h("update:end",Number(r.value))}e.watch(()=>l.min,t=>{Number(u.value)<Number(t)&&(u.value=Number(t)),Number(r.value)<Number(t)&&(r.value=Number(t))}),e.watch(()=>l.max,t=>{Number(u.value)>Number(t)&&(u.value=Number(t)),Number(r.value)>Number(t)&&(r.value=Number(t))});const E=e.ref(null),i=e.ref({width:1,height:1}),S=e.ref(null);e.onMounted(()=>{if(k.value){const t=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:E.value});i.value.width=a,i.value.height=o-47});S.value=new ResizeObserver(t),S.value.observe(E.value)}}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const s=e.computed(()=>l.minimap.length?i.value.width/l.minimap.length:0),m=e.computed(()=>{if(!l.minimap.length)return[];const t=Math.max(...l.minimap),a=Math.min(...l.minimap)-10,o=t-(a>0?0:a),d=l.minimap.map((he,ge)=>{const pe=he-a;return{x:i.value.width/l.minimap.length*ge+s.value/2,y:i.value.height-pe/o*(i.value.height*.9)}}),x=l.smoothMinimap?f.createSmoothPath(d):f.createStraightPath(d),I=[...d].slice(l.valueStart,l.valueEnd),fe=l.smoothMinimap?f.createSmoothPath(I):f.createStraightPath(I);return{fullSet:x,selectionSet:fe,sliced:I,firstPlot:d[l.valueStart],lastPlot:d[l.valueEnd-1]}}),v=e.computed(()=>({x:s.value*u.value+s.value/2,width:i.value.width*((r.value-u.value)/l.max)-s.value})),w=e.ref(l.minimapSelectedIndex);e.watch(()=>l.minimapSelectedIndex,t=>{w.value=t+l.valueStart},{immediate:!0});function ue(t){w.value=t,t>=l.valueStart&&t<l.valueEnd&&h("trapMouse",t-l.valueStart)}const re=e.ref(0),B=e.ref(null),M=e.ref(null);function $(t){u.value=t,B.value&&(B.value.value=t),h("update:start",Number(u.value))}function R(t){r.value=t,M.value&&(M.value.value=t),h("update:end",Number(r.value))}const L=e.computed(()=>l.valueEnd-l.valueStart),V=e.ref(!1);let z=e.ref(null);const se=e.computed(()=>c.value?(c.value.getBoundingClientRect().width-48)/(l.max-l.min):20),de=e.computed(()=>(c.value.getBoundingClientRect().width-48)/(l.max-l.min)*L.value),ce=e.ref(2.5),X=e.computed(()=>{const t=c.value.getBoundingClientRect().width-48;return Math.ceil((l.max-l.min)/((t-de.value)/ce.value))}),q=t=>{if(b.value=!0,!l.enableSelectionDrag)return;const a=t.type==="touchstart";if((a?t.targetTouches[0].target:t.target).classList.contains("range-handle"))return;V.value=!0,z.value=a?t.targetTouches[0].clientX:t.clientX;const d=a?me:U,x=a?ve:Z;window.addEventListener(a?"touchmove":"mousemove",d,{passive:!1}),window.addEventListener(a?"touchend":"mouseup",x)};function U(t){O(t.clientX)}function me(t){c.value.contains(t.target)&&(t.target.classList.contains("range-handle")||(t.preventDefault(),O(t.targetTouches[0].clientX)))}function O(t){if(!V.value)return;const a=t-z.value;if(Math.abs(a)>se.value){if(a>0){if(Number(r.value)+1<=l.max){const o=Math.min(l.max,Number(r.value)+X.value);R(o),$(o-L.value)}}else if(Number(u.value)-1>=l.min){const o=Math.max(0,Number(u.value)-X.value);$(o),R(o+L.value)}z.value=t}}function Z(){j("mousemove","mouseup")}function ve(){j("touchmove","touchend")}function j(t,a){V.value=!1,window.removeEventListener(t,U),window.removeEventListener(a,Z)}const y=e.ref(!1),D=e.ref(null),T=e.ref(null),P=e.ref(1),N=e.ref(1),b=e.ref(!1);function G(){D.value&&(P.value=D.value.getBoundingClientRect().width)}function J(){T.value&&(N.value=T.value.getBoundingClientRect().width)}const K=e.ref(0);function Q(t){K.value=t==="start"?1:0}return e.onUpdated(()=>{G(),J()}),e.watch(()=>l.labelLeft,()=>{e.nextTick(G)},{deep:!0}),e.watch(()=>l.labelRight,()=>{e.nextTick(J)},{deep:!0}),_({setStartValue:$,setEndValue:R}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:c,onMousedown:q,onTouchstart:q,onTouchend:a[11]||(a[11]=o=>b.value=!1)},[e.createElementVNode("div",be,[n.valueStart!==n.refreshStartPoint||n.valueEnd!==te.value?(e.openBlock(),e.createElementBlock("div",ke,[n.useResetSlot?e.renderSlot(t.$slots,"reset-action",{key:1,reset:W},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:k.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:W},[e.createVNode(xe.default,{name:"refresh",stroke:n.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:E,style:{"z-index":"0"},onMouseenter:a[9]||(a[9]=o=>b.value=!0),onMouseleave:a[10]||(a[10]=o=>b.value=!1)},[k.value?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(f.XMLNS),viewBox:`0 0 ${i.value.width<0?0:i.value.width} ${i.value.height<0?0:i.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:C.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${n.minimapLineColor}50`},null,8,Ce),a[12]||(a[12]=e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1))],8,Ne)]),e.createElementVNode("path",{d:`M${m.value.fullSet}`,stroke:`${n.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,Ee),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:p.value,rx:n.minimapSelectionRadius,stroke:"none"},null,8,Be),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(i.value.height,0)} ${m.value.fullSet} L${i.value.width-s.value/2},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Me),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,rx:n.minimapSelectionRadius,fill:p.value},null,8,$e),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:n.minimapSelectedColor,rx:n.minimapSelectionRadius,style:e.normalizeStyle({opacity:n.minimapSelectedColorOpacity})},null,12,Re),e.createElementVNode("path",{d:`M${m.value.sliced[0].x},${Math.max(i.value.height,0)} ${m.value.selectionSet} L${m.value.sliced.at(-1).x},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Le),e.createElementVNode("path",{d:`M ${m.value.selectionSet}`,stroke:`${n.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ve),e.createElementVNode("circle",{cx:m.value.firstPlot.x,cy:m.value.firstPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,ze),e.createElementVNode("circle",{cx:m.value.lastPlot.x,cy:m.value.lastPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,De),w.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("g",null,[w.value===o&&o>=n.valueStart&&o<n.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:Math.max(i.value.height,0),stroke:n.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,Te)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:Math.max(i.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:e.normalizeStyle([{"pointer-events":"all !important"},{cursor:o>=n.valueStart&&o<n.valueEnd&&n.enableSelectionDrag?y.value?"grabbing":"grab":"default"}]),onMousedown:a[0]||(a[0]=x=>y.value=!0),onMouseup:a[1]||(a[1]=x=>y.value=!1),onMouseenter:x=>ue(o),onMouseleave:a[2]||(a[2]=x=>{w.value=null,h("trapMouse",null)})},null,44,Pe))),256))],8,Se))])):e.createCommentVNode("",!0),a[13]||(a[13]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass({"range-highlight":!0,move:n.enableSelectionDrag}),onMousedown:a[3]||(a[3]=o=>y.value=!0),onMouseup:a[4]||(a[4]=o=>y.value=!1),style:e.normalizeStyle({...g.value,cursor:y.value?"grabbing":"grab"})},null,38),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:B,key:`range-min${re.value}`,type:"range",class:e.normalizeClass({"range-left":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[5]||(a[5]=o=>u.value=o),onInput:oe,onMouseenter:a[6]||(a[6]=o=>Q("start"))},null,42,Ie)),[[e.vModelText,u.value]]):e.createCommentVNode("",!0),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"rangeEnd",ref:M,type:"range",class:e.normalizeClass({"range-right":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[7]||(a[7]=o=>r.value=o),onInput:ie,onMouseenter:a[8]||(a[8]=o=>Q("end"))},null,42,Fe)),[[e.vModelText,r.value]]):e.createCommentVNode("",!0),n.labelLeft?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"tooltipLeft",ref:D,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowLeft&&!n.verticalHandles,"range-tooltip-arrow-left":!g.value.arrowLeft&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipLeft,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:`${K.value+4}`})},e.toDisplayString(n.labelLeft),7)):e.createCommentVNode("",!0),n.labelRight?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"tooltipRight",ref:T,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowRight&&!n.verticalHandles,"range-tooltip-arrow-right":!g.value.arrowRight&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipRight,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:"4"})},e.toDisplayString(n.labelRight),7)):e.createCommentVNode("",!0)],544)],544))}},He=ye._export_sfc(Ae,[["__scopeId","data-v-8948b724"]]);exports.Slicer=He;
|
|
1
|
+
"use strict";const e=require("vue"),xe=require("./BaseIcon-WIhlX3LN.cjs"),Y=require("./useResponsive-DQmBAoBf.cjs"),f=require("./index-MIJJ8liG.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),be={class:"vue-data-ui-slicer-labels",style:{position:"relative","z-index":"1","pointer-events":"none"}},ke={key:0,style:{width:"100%",position:"relative"}},we={key:0,class:"minimap",style:{width:"100%"}},Se=["xmlns","viewBox"],Ne=["id"],Ce=["stop-color"],Ee=["d","stroke"],Be=["x","width","height","fill","rx"],Me=["d","fill"],$e=["x","width","height","rx","fill"],Re=["x","width","height","fill","rx"],Le=["d","fill"],Ve=["d","stroke"],ze=["cx","cy","stroke","fill"],De=["cx","cy","stroke","fill"],Te=["x1","x2","y2","stroke"],Pe=["x","height","width","onMouseenter"],Ie=["min","max"],Fe=["min","max"],Ae={__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"},refreshStartPoint:{type:Number,default:0},refreshEndPoint:{type:Number,default:null},enableRangeHandles:{type:Boolean,default:!1},enableSelectionDrag:{type:Boolean,default:!0},verticalHandles:{type:Boolean,default:!1}},emits:["update:start","update:end","reset","trapMouse"],setup(n,{expose:_,emit:ee}){e.useCssVars(t=>({"05c06dde":le.value,d5d55cf6:p.value,"1783e736":ne.value,"754a92b5":n.selectColor,"6a46ca7a":ae.value}));const l=n,c=e.ref(null),u=e.ref(l.min),r=e.ref(l.max),k=e.computed(()=>!!l.minimap.length),C=e.ref(f.createUid()),te=e.computed(()=>l.refreshEndPoint===null?l.max:l.refreshEndPoint),h=ee,g=e.computed(()=>{const t=l.max-l.min,a=(u.value-l.min)/t*100,o=(r.value-l.min)/t*100;return{left:`${a}%`,width:`${o-a}%`,background:l.selectColor,tooltipLeft:`calc(${a}% - ${F.value?0:P.value/2}px)`,tooltipRight:`calc(${o}% - ${A.value?N.value:N.value/2}px)`,arrowLeft:!F.value,arrowRight:!A.value}}),F=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((u.value-l.min)/(l.max-l.min))-P.value/2<0:!1),A=e.computed(()=>c.value?c.value.getBoundingClientRect().width*((r.value-l.min)/(l.max-l.min))+N.value/2>c.value.getBoundingClientRect().width:!1),le=e.computed(()=>l.inputColor),ae=e.computed(()=>l.background),ne=e.computed(()=>`${l.selectColor}33`),p=e.computed(()=>l.borderColor),H=e.computed(()=>{let t=[];for(let a=0;a<l.minimap.length;a+=1)t.push(a);return t});function W(){h("reset")}function oe(){Number(u.value)>Number(r.value)-1&&(u.value=Number(r.value)-1),h("update:start",Number(u.value))}function ie(){Number(r.value)<Number(u.value)+1&&(r.value=Number(u.value)+1),h("update:end",Number(r.value))}e.watch(()=>l.min,t=>{Number(u.value)<Number(t)&&(u.value=Number(t)),Number(r.value)<Number(t)&&(r.value=Number(t))}),e.watch(()=>l.max,t=>{Number(u.value)>Number(t)&&(u.value=Number(t)),Number(r.value)>Number(t)&&(r.value=Number(t))});const E=e.ref(null),i=e.ref({width:1,height:1}),S=e.ref(null);e.onMounted(()=>{if(k.value){const t=Y.throttle(()=>{const{width:a,height:o}=Y.useResponsive({chart:E.value});i.value.width=a,i.value.height=o-47});S.value=new ResizeObserver(t),S.value.observe(E.value)}}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});const s=e.computed(()=>l.minimap.length?i.value.width/l.minimap.length:0),m=e.computed(()=>{if(!l.minimap.length)return[];const t=Math.max(...l.minimap),a=Math.min(...l.minimap)-10,o=t-(a>0?0:a),d=l.minimap.map((he,ge)=>{const pe=he-a;return{x:i.value.width/l.minimap.length*ge+s.value/2,y:i.value.height-pe/o*(i.value.height*.9)}}),x=l.smoothMinimap?f.createSmoothPath(d):f.createStraightPath(d),I=[...d].slice(l.valueStart,l.valueEnd),fe=l.smoothMinimap?f.createSmoothPath(I):f.createStraightPath(I);return{fullSet:x,selectionSet:fe,sliced:I,firstPlot:d[l.valueStart],lastPlot:d[l.valueEnd-1]}}),v=e.computed(()=>({x:s.value*u.value+s.value/2,width:i.value.width*((r.value-u.value)/l.max)-s.value})),w=e.ref(l.minimapSelectedIndex);e.watch(()=>l.minimapSelectedIndex,t=>{w.value=t+l.valueStart},{immediate:!0});function ue(t){w.value=t,t>=l.valueStart&&t<l.valueEnd&&h("trapMouse",t-l.valueStart)}const re=e.ref(0),B=e.ref(null),M=e.ref(null);function $(t){u.value=t,B.value&&(B.value.value=t),h("update:start",Number(u.value))}function R(t){r.value=t,M.value&&(M.value.value=t),h("update:end",Number(r.value))}const L=e.computed(()=>l.valueEnd-l.valueStart),V=e.ref(!1);let z=e.ref(null);const se=e.computed(()=>c.value?(c.value.getBoundingClientRect().width-48)/(l.max-l.min):20),de=e.computed(()=>(c.value.getBoundingClientRect().width-48)/(l.max-l.min)*L.value),ce=e.ref(2.5),X=e.computed(()=>{const t=c.value.getBoundingClientRect().width-48;return Math.ceil((l.max-l.min)/((t-de.value)/ce.value))}),q=t=>{if(b.value=!0,!l.enableSelectionDrag)return;const a=t.type==="touchstart";if((a?t.targetTouches[0].target:t.target).classList.contains("range-handle"))return;V.value=!0,z.value=a?t.targetTouches[0].clientX:t.clientX;const d=a?me:U,x=a?ve:Z;window.addEventListener(a?"touchmove":"mousemove",d,{passive:!1}),window.addEventListener(a?"touchend":"mouseup",x)};function U(t){O(t.clientX)}function me(t){c.value.contains(t.target)&&(t.target.classList.contains("range-handle")||(t.preventDefault(),O(t.targetTouches[0].clientX)))}function O(t){if(!V.value)return;const a=t-z.value;if(Math.abs(a)>se.value){if(a>0){if(Number(r.value)+1<=l.max){const o=Math.min(l.max,Number(r.value)+X.value);R(o),$(o-L.value)}}else if(Number(u.value)-1>=l.min){const o=Math.max(0,Number(u.value)-X.value);$(o),R(o+L.value)}z.value=t}}function Z(){j("mousemove","mouseup")}function ve(){j("touchmove","touchend")}function j(t,a){V.value=!1,window.removeEventListener(t,U),window.removeEventListener(a,Z)}const y=e.ref(!1),D=e.ref(null),T=e.ref(null),P=e.ref(1),N=e.ref(1),b=e.ref(!1);function G(){D.value&&(P.value=D.value.getBoundingClientRect().width)}function J(){T.value&&(N.value=T.value.getBoundingClientRect().width)}const K=e.ref(0);function Q(t){K.value=t==="start"?1:0}return e.onUpdated(()=>{G(),J()}),e.watch(()=>l.labelLeft,()=>{e.nextTick(G)},{deep:!0}),e.watch(()=>l.labelRight,()=>{e.nextTick(J)},{deep:!0}),_({setStartValue:$,setEndValue:R}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{"data-dom-to-png-ignore":"",style:{padding:"0 24px"},class:"vue-data-ui-zoom",ref_key:"zoomWrapper",ref:c,onMousedown:q,onTouchstart:q,onTouchend:a[11]||(a[11]=o=>b.value=!1)},[e.createElementVNode("div",be,[n.valueStart!==n.refreshStartPoint||n.valueEnd!==te.value?(e.openBlock(),e.createElementBlock("div",ke,[n.useResetSlot?e.renderSlot(t.$slots,"reset-action",{key:1,reset:W},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",style:e.normalizeStyle({top:k.value?"36px":"-16px",pointerEvents:"all !important"}),onClick:W},[e.createVNode(xe.default,{name:"refresh",stroke:n.textColor},null,8,["stroke"])],4))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"double-range-slider",ref_key:"minimapWrapper",ref:E,style:{"z-index":"0"},onMouseenter:a[9]||(a[9]=o=>b.value=!0),onMouseleave:a[10]||(a[10]=o=>b.value=!1)},[k.value?(e.openBlock(),e.createElementBlock("div",we,[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(f.XMLNS),viewBox:`0 0 ${i.value.width<0?0:i.value.width} ${i.value.height<0?0:i.value.height}`},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:C.value,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${n.minimapLineColor}50`},null,8,Ce),a[12]||(a[12]=e.createElementVNode("stop",{offset:"100%","stop-color":"transparent"},null,-1))],8,Ne)]),e.createElementVNode("path",{d:`M${m.value.fullSet}`,stroke:`${n.minimapLineColor}`,fill:"none","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",style:{opacity:"1"}},null,8,Ee),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:p.value,rx:n.minimapSelectionRadius,stroke:"none"},null,8,Be),e.createElementVNode("path",{d:`M${s.value/2},${Math.max(i.value.height,0)} ${m.value.fullSet} L${i.value.width-s.value/2},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Me),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,rx:n.minimapSelectionRadius,fill:p.value},null,8,$e),e.createElementVNode("rect",{x:v.value.x,width:v.value.width<0?0:v.value.width,height:Math.max(i.value.height,0),y:0,fill:n.minimapSelectedColor,rx:n.minimapSelectionRadius,style:e.normalizeStyle({opacity:n.minimapSelectedColorOpacity})},null,12,Re),e.createElementVNode("path",{d:`M${m.value.sliced[0].x},${Math.max(i.value.height,0)} ${m.value.selectionSet} L${m.value.sliced.at(-1).x},${Math.max(i.value.height,0)}Z`,fill:`url(#${C.value})`,stroke:"none",style:{opacity:"1"}},null,8,Le),e.createElementVNode("path",{d:`M ${m.value.selectionSet}`,stroke:`${n.minimapLineColor}`,fill:"transparent","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Ve),e.createElementVNode("circle",{cx:m.value.firstPlot.x,cy:m.value.firstPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,ze),e.createElementVNode("circle",{cx:m.value.lastPlot.x,cy:m.value.lastPlot.y,"stroke-width":"0.5",stroke:p.value,r:"3",fill:n.minimapLineColor},null,8,De),w.value!==null?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("g",null,[w.value===o&&o>=n.valueStart&&o<n.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:Math.max(i.value.height,0),stroke:n.minimapIndicatorColor,"stroke-linecap":"round","stroke-dasharray":"2","stroke-width":"1"},null,8,Te)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,(o,d)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value*d,y:0,height:Math.max(i.value.height,0),width:s.value<0?0:s.value,fill:"transparent",style:e.normalizeStyle([{"pointer-events":"all !important"},{cursor:o>=n.valueStart&&o<n.valueEnd&&n.enableSelectionDrag?y.value?"grabbing":"grab":"default"}]),onMousedown:a[0]||(a[0]=x=>y.value=!0),onMouseup:a[1]||(a[1]=x=>y.value=!1),onMouseenter:x=>ue(o),onMouseleave:a[2]||(a[2]=x=>{w.value=null,h("trapMouse",null)})},null,44,Pe))),256))],8,Se))])):e.createCommentVNode("",!0),a[13]||(a[13]=e.createElementVNode("div",{class:"slider-track"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass({"range-highlight":!0,move:n.enableSelectionDrag}),onMousedown:a[3]||(a[3]=o=>y.value=!0),onMouseup:a[4]||(a[4]=o=>y.value=!1),style:e.normalizeStyle({...g.value,cursor:y.value?"grabbing":"grab"})},null,38),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{ref_key:"rangeStart",ref:B,key:`range-min${re.value}`,type:"range",class:e.normalizeClass({"range-left":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[5]||(a[5]=o=>u.value=o),onInput:oe,onMouseenter:a[6]||(a[6]=o=>Q("start"))},null,42,Ie)),[[e.vModelText,u.value]]):e.createCommentVNode("",!0),n.enableRangeHandles?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,ref_key:"rangeEnd",ref:M,type:"range",class:e.normalizeClass({"range-right":!0,"range-handle":!0,"range-minimap":k.value&&n.verticalHandles}),min:n.min,max:n.max,"onUpdate:modelValue":a[7]||(a[7]=o=>r.value=o),onInput:ie,onMouseenter:a[8]||(a[8]=o=>Q("end"))},null,42,Fe)),[[e.vModelText,r.value]]):e.createCommentVNode("",!0),n.labelLeft?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"tooltipLeft",ref:D,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowLeft&&!n.verticalHandles,"range-tooltip-arrow-left":!g.value.arrowLeft&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipLeft,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:`${K.value+4}`})},e.toDisplayString(n.labelLeft),7)):e.createCommentVNode("",!0),n.labelRight?(e.openBlock(),e.createElementBlock("div",{key:4,ref_key:"tooltipRight",ref:T,class:e.normalizeClass({"range-tooltip":!0,"range-tooltip-visible":b.value,"range-tooltip-arrow":g.value.arrowRight&&!n.verticalHandles,"range-tooltip-arrow-right":!g.value.arrowRight&&!n.verticalHandles}),style:e.normalizeStyle({left:g.value.tooltipRight,color:e.unref(f.adaptColorToBackground)(n.selectColor),backgroundColor:n.selectColor,border:`1px solid ${p.value}`,zIndex:"4"})},e.toDisplayString(n.labelRight),7)):e.createCommentVNode("",!0)],544)],544))}},He=ye._export_sfc(Ae,[["__scopeId","data-v-8948b724"]]);exports.Slicer=He;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./useNestedProp-
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./useNestedProp-DwR4JSzw.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",{class:"atom-title",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,class:"atom-subtitle",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,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as l, openBlock as n, Fragment as f, createElementVNode as p, createCommentVNode as o, normalizeStyle as d, unref as e, toDisplayString as g, renderSlot as r } from "vue";
|
|
2
|
-
import { u as c } from "./useNestedProp-
|
|
2
|
+
import { u as c } from "./useNestedProp-DTlOqz2P.js";
|
|
3
3
|
const x = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as a, onMounted as b, onUnmounted as h, computed as p, createBlock as g, openBlock as v, Teleport as x, createElementBlock as S, createCommentVNode as k, normalizeStyle as $, normalizeClass as C, renderSlot as c, createElementVNode as B } from "vue";
|
|
2
|
-
import { s as F } from "./index-
|
|
2
|
+
import { s as F } from "./index-D3VntmA9.js";
|
|
3
3
|
function w({ tooltip: e, chart: o, clientPosition: t, positionPreference: r = "center", defaultOffsetY: u = 24, blockShiftY: s = !1 }) {
|
|
4
4
|
const l = a(0), f = a(u);
|
|
5
5
|
if (e && o) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),p=require("./index-
|
|
1
|
+
"use strict";const t=require("vue"),p=require("./index-MIJJ8liG.cjs");function y({tooltip:e,chart:l,clientPosition:o,positionPreference:u="center",defaultOffsetY:a=24,blockShiftY:f=!1}){const n=t.ref(0),s=t.ref(a);if(e&&l){const{width:r,height:c}=e.getBoundingClientRect(),{right:i,left:d,bottom:v}=l.getBoundingClientRect();u==="center"&&(o.x+r/2>i?n.value=-r+(i-o.x):o.x-r/2<d?n.value=-r+(r-(o.x-d)):n.value=-r/2),u==="right"&&(o.x+r>i?n.value=-r+(i-o.x):n.value=0),u==="left"&&(o.x<d+r?n.value=-r+(r-(o.x-d)):n.value=-r),o.y+c>v&&!f&&(s.value=-c-a)}return{top:o.y+s.value,left:o.x+n.value}}function b(e,l,o){t.onMounted(()=>e.addEventListener(l,o)),t.onUnmounted(()=>e.removeEventListener(l,o))}function m(){const e=t.ref(0),l=t.ref(0);return b(window,"mousemove",o=>{e.value=o.clientX,l.value=o.clientY}),{x:e,y:l}}const h=["aria-hidden"],g=["innerHTML"],x={__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},blockShiftY:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1}},setup(e){const l=e,o=t.ref(null),u=t.ref(m(l.parent)),a=t.computed(()=>y({tooltip:o.value,chart:l.parent,clientPosition:u.value,positionPreference:l.position,defaultOffsetY:l.offsetY,blockShiftY:l.blockShiftY})),f=t.computed(()=>p.setOpacity(l.backgroundColor,l.backgroundOpacity));return(n,s)=>(t.openBlock(),t.createBlock(t.Teleport,{to:e.isFullscreen?e.parent:"body"},[e.show?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"tooltip",ref:o,role:"tooltip","aria-hidden":!e.show,"aria-live":"polite",class:t.normalizeClass({"vue-data-ui-custom-tooltip":e.isCustom,"vue-data-ui-tooltip":!e.isCustom}),style:t.normalizeStyle(`pointer-events:none;top:${a.value.top}px;left:${a.value.left}px;${e.isCustom?"":`background:${f.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};z-index:2147483647;`)},[t.renderSlot(n.$slots,"tooltip-before"),t.renderSlot(n.$slots,"default"),t.createElementVNode("div",{innerHTML:e.content},null,8,g),t.renderSlot(n.$slots,"tooltip-after")],14,h)):t.createCommentVNode("",!0)],8,["to"]))}};exports._sfc_main=x;exports.useMouse=m;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";const x=require("./index-
|
|
1
|
+
"use strict";const x=require("./index-MIJJ8liG.cjs");async function A(n){const i=n.querySelectorAll("img"),o=Array.from(i).map(t=>new Promise(s=>{if(!t.src||t.src.startsWith("data:"))return s();if(t.complete&&t.naturalWidth!==0){try{const e=document.createElement("canvas");e.width=t.naturalWidth,e.height=t.naturalHeight,e.getContext("2d").drawImage(t,0,0),t.src=e.toDataURL()}catch{}return s()}const a=new window.Image;a.crossOrigin="anonymous",a.onload=function(){try{const e=document.createElement("canvas");e.width=a.naturalWidth,e.height=a.naturalHeight,e.getContext("2d").drawImage(a,0,0),t.src=e.toDataURL()}catch{}s()},a.onerror=function(){s()},a.src=t.src}));await Promise.all(o)}function T(n){n.querySelectorAll("[data-dom-to-png-ignore]").forEach(o=>{o.remove()})}function v(n,i,o){const t=window.getComputedStyle(i),s=i.getBoundingClientRect(),a=t.display.includes("flex");let e={},c=n.getAttribute("style");typeof c!="string"&&(c=""),c.split(";").forEach(r=>{if(typeof r=="string"&&r.trim()){const[d,m]=r.split(":");d&&m!==void 0&&(e[d.trim()]=m.trim())}});for(let r=0;r<t.length;r+=1){const d=t[r],m=t.getPropertyValue(d);e[d]=m}e.color=t.color,e["background-color"]=t.backgroundColor;let l=t.fontFamily||o||"";(!l||l.trim()===""||l==="inherit"||l==="initial"||l.toLowerCase().startsWith("system-ui")||l.toLowerCase()==="sans-serif"||l.toLowerCase()==="serif"||l.toLowerCase()==="monospace")&&(l="Helvetica, Arial, sans-serif"),e["font-family"]=l,e["font-size"]=t.fontSize,e["font-weight"]=t.fontWeight,(a||t.display.includes("grid")||["inline-block","absolute","fixed"].includes(t.position))&&(s.width>0&&(e.width=s.width+"px"),s.height>0&&(e.height=s.height+"px")),a&&t.flexWrap==="nowrap"&&(e["white-space"]="nowrap"),["box-sizing","padding","margin","border"].forEach(r=>{e[r]=t.getPropertyValue(r)}),e.overflow="visible",e["overflow-x"]="visible",e["overflow-y"]="visible";let u="";for(const r in e)u+=`${r}:${e[r]};`;n.setAttribute("style",u);const g=n.children||[],y=i.children||[];for(let r=0;r<g.length;r++)g[r].nodeType===1&&y[r]&&v(g[r],y[r],l)}function I(n,i){n.querySelectorAll("text").forEach(t=>{t.setAttribute("font-family",i),t.style.fontFamily=i})}function E(n){const i=new TextEncoder().encode(n);let o="";return i.forEach(t=>o+=String.fromCharCode(t)),btoa(o)}function $(n,i,o){let s=new XMLSerializer().serializeToString(n);s.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/)||(s=s.replace(/^<svg/,'<svg xmlns="http://www.w3.org/2000/svg"'));const a=window.btoa(unescape(encodeURIComponent(s))),e=new window.Image;return e.src=`data:image/svg+xml;base64,${a}`,new Promise((c,l)=>{e.onload=function(){const u=document.createElement("canvas");u.width=i,u.height=o,u.getContext("2d").drawImage(e,0,0,i,o),c(u.toDataURL("image/png",1))},e.onerror=u=>l(u)})}function O(n){if(n.nodeType!==1)return;const i=window.getComputedStyle(n);let o="";for(let t=0;t<i.length;t++){const s=i[t];o+=`${s}:${i.getPropertyValue(s)};`}n.setAttribute("style",o);for(let t=0;t<n.children.length;t++)O(n.children[t])}function M(){const n=[];for(const i of document.styleSheets)try{const o=i.cssRules;if(!o)continue;for(const t of o)(typeof CSSFontFaceRule<"u"&&t instanceof CSSFontFaceRule||t.cssText.trim().startsWith("@font-face"))&&n.push(t.cssText)}catch{continue}return n}function W(n){const i=M();if(!i.length)return;const o=document.createElement("style");o.setAttribute("type","text/css"),o.textContent=i.join(`
|
|
2
2
|
`);const t=n.querySelector("defs")||document.createElementNS(x.XMLNS,"defs");t.appendChild(o),n.querySelector("defs")||n.insertBefore(t,n.firstChild)}function P(n,i){const o=n.querySelectorAll("foreignObject"),t=i.querySelectorAll("foreignObject");o.forEach((s,a)=>{const e=t[a];if(!e)return;function c(l,u){if(!l||!u)return;if(l.nodeType===1&&u.nodeType===1){const r=window.getComputedStyle(u);let d="";for(let m=0;m<r.length;m++){const C=r[m];d+=`${C}:${r.getPropertyValue(C)};`}l.setAttribute("style",d)}const g=l.children||[],y=u.children||[];for(let r=0;r<g.length;r++)c(g[r],y[r])}c(s,e)})}function z(n){n.querySelectorAll("foreignObject").forEach(o=>{let t="";const s=Array.from(o.querySelectorAll("*"));if(s.length!==0){for(const a of document.styleSheets){let e;try{e=a.cssRules}catch{continue}if(e){for(const c of e)if(!(typeof CSSStyleRule<"u"&&!(c instanceof CSSStyleRule)))try{s.some(l=>l.matches(c.selectorText))&&(t+=c.cssText+`
|
|
3
3
|
`)}catch{continue}}}if(t){const a=document.createElement("style");a.textContent=t,o.insertBefore(a,o.firstChild)}}})}function H(n){n.querySelectorAll("foreignObject").forEach(o=>{const t=o.firstElementChild;t&&t.tagName.toLowerCase()!=="svg"&&t.setAttribute("xmlns","http://www.w3.org/1999/xhtml")})}function D(n,i){const o=n.querySelectorAll("foreignObject"),t=i.querySelectorAll("foreignObject");o.forEach((s,a)=>{const e=t[a];if(!s||!e)return;const c=s.firstElementChild,l=e.firstElementChild;c&&l&&R(c,l)})}function R(n,i){if(n.nodeType!==1||!i)return;v(n,i);const o=n.children||[],t=i.children||[];for(let s=0;s<o.length;s++)R(o[s],t[s])}function F(n,i){const o=Array.from(i.querySelectorAll("img"));n.querySelectorAll("img").forEach(t=>{const s=t.getAttribute("src"),a=o.find(e=>e.getAttribute("src")===s);if(a){const e=window.getComputedStyle(a);let c="";for(let l=0;l<e.length;l++){const u=e[l];c+=`${u}:${e.getPropertyValue(u)};`}t.setAttribute("style",c)}})}async function U({container:n,scale:i=2}){if(!n)throw new Error("No container provided");await document.fonts.ready;let o=window.getComputedStyle(n).fontFamily||"Helvetica";o.toLowerCase().includes("helvetica")||(o+=", Helvetica");const t=n.cloneNode(!0),s=t.querySelectorAll("canvas"),a=n.querySelectorAll("canvas");for(let p=0;p<a.length;p+=1){const f=a[p],h=s[p];if(f&&h){const w=document.createElement("img");w.src=f.toDataURL("image/png"),w.width=f.width,w.height=f.height,w.style.width=f.style.width||f.width+"px",w.style.height=f.style.height||f.height+"px",h.replaceWith(w)}}const e=n.querySelector("svg[aria-label]"),c=t.querySelector("svg[aria-label]");if(e&&c){H(c),z(c),P(c,e),D(c,e),O(c),I(c,o),F(c,e),await A(c);const p=e.getBoundingClientRect(),f=p.width,h=p.height,w=Math.round(f*i),q=Math.round(h*i),L=await $(c,w,q),S=document.createElement("img");S.src=L,S.width=f,S.height=h,S.style.width=f+"px",S.style.height=h+"px",c.parentNode.replaceChild(S,c)}v(t,n,o),F(t,n),T(t),await A(t);const{width:l,height:u}=n.getBoundingClientRect(),g=Math.round(Math.max(t.scrollWidth,l)*i),y=Math.round(Math.max(t.scrollHeight,u)*1.01*i),r=document.createElementNS(x.XMLNS,"svg");r.setAttribute("viewBox",`0 0 ${g} ${y}`),r.setAttribute("width",g),r.setAttribute("height",y),r.setAttribute("style",`font-family:${o};`);const d=document.createElementNS(x.XMLNS,"foreignObject");d.setAttribute("x",0),d.setAttribute("y",0),d.setAttribute("width",g),d.setAttribute("height",y),d.setAttribute("style",`font-family:${o};`),t.style.transform=`scale(${i})`,t.style.transformOrigin="top left",t.style.width=l+"px",t.style.height=u+"px",t.style.background=window.getComputedStyle(n).backgroundColor,d.appendChild(t),W(r),r.appendChild(d);const C=new XMLSerializer().serializeToString(r),j=E(C),b=new window.Image;return b.crossOrigin="anonymous",b.src=`data:image/svg+xml;base64,${j}`,new Promise((p,f)=>{b.onload=function(){try{const h=document.createElement("canvas");h.width=g,h.height=y,h.getContext("2d").drawImage(b,0,0,g,y),p(h.toDataURL("image/png",1))}catch(h){f("Failed to draw SVG on canvas: "+h)}},b.onerror=function(){f("Failed to load SVG image for conversion")}})}exports.domToPng=U;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./dom-to-png-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./dom-to-png-C-_IolaZ.cjs");async function d({domElement:r,fileName:n,format:t="png",scale:c=2}){if(!r)return Promise.reject("No element provided");if(t==="svg"){const o=converter.convertToImg({container:r,scale:c});if(!o)return Promise.reject("Could not create SVG image");const e=document.createElement("a");return e.href=o.src,e.download=`${n}.svg`,document.body.appendChild(e),e.click(),document.body.removeChild(e),Promise.resolve()}try{const o=await i.domToPng({container:r,scale:c}),e=document.createElement("a");e.href=o,e.download=`${n}.${t}`,document.body.appendChild(e),e.click(),document.body.removeChild(e)}catch(o){throw console.error("Error generating image:",o),o}}exports.default=d;
|
|
@@ -6638,7 +6638,7 @@ function Ne(o, l) {
|
|
|
6638
6638
|
const r = O(o);
|
|
6639
6639
|
return ft(r, l);
|
|
6640
6640
|
}
|
|
6641
|
-
const Pe = C(() => import("./Arrow-
|
|
6641
|
+
const Pe = C(() => import("./Arrow-Kbu7LT-f.js")), Te = C(() => import("./vue-data-ui-DFwVHeO8.js")), Me = C(() => import("./vue-ui-3d-bar-NNib9NTc.js")), Ve = C(() => import("./vue-ui-accordion-DGJQIcdB.js")), Ie = C(() => import("./vue-ui-age-pyramid-DWG7C-nA.js")), We = C(() => import("./vue-ui-annotator-D21j4NL0.js")), $e = C(() => import("./vue-ui-candlestick-Dgwjzuq0.js")), Ue = C(() => import("./vue-ui-chestnut-DAlxKIqD.js")), Ye = C(() => import("./vue-ui-cursor-CS0L4MjH.js")), Ge = C(() => import("./vue-ui-dashboard-Cu4QabFb.js")), He = C(() => import("./vue-ui-digits-CrqD5QXP.js")), Xe = C(() => import("./vue-ui-donut-CbDkvk9s.js")), Ke = C(() => import("./vue-ui-donut-evolution-DKD_efmP.js")), je = C(() => import("./vue-ui-dumbbell-BGN-Rshy.js")), qe = C(() => import("./vue-ui-flow-g93Xo1mO.js")), Qe = C(() => import("./vue-ui-galaxy-B4JnwjLW.js")), Ze = C(() => import("./vue-ui-gauge-BPz7mbOb.js")), Je = C(() => import("./vue-ui-heatmap-BbmFxESu.js")), ol = C(() => import("./BaseIcon-BLhJaEYy.js")), rl = C(() => import("./vue-ui-kpi-CQo8VsEv.js")), tl = C(() => import("./vue-ui-mini-loader-8wZYNxLC.js")), el = C(() => import("./vue-ui-molecule-DHb8Roml.js")), ll = C(() => import("./vue-ui-mood-radar-CdBmESCg.js")), al = C(() => import("./vue-ui-nested-donuts-CO7sSeR-.js")), cl = C(() => import("./vue-ui-onion-Ci15BQ0y.js")), nl = C(() => import("./vue-ui-parallel-coordinate-plot-BJbrb-Mp.js")), sl = C(() => import("./vue-ui-quadrant-BZTZY3LG.js")), il = C(() => import("./vue-ui-quick-chart-B2OUF1Pk.js")), ul = C(() => import("./vue-ui-radar-D8DHrSPP.js")), dl = C(() => import("./vue-ui-rating-D4H6cT0d.js")), bl = C(() => import("./vue-ui-relation-circle-CWvX8cvJ.js")), fl = C(() => import("./vue-ui-rings-Dq5YT7h-.js")), gl = C(() => import("./vue-ui-scatter-BMuJyp6q.js")), Al = C(() => import("./vue-ui-skeleton-pHcbvN3-.js")), Cl = C(() => import("./vue-ui-smiley-BsPExuQ7.js")), hl = C(() => import("./vue-ui-sparkhistogram-BJfFPQ-X.js")), Fl = C(() => import("./vue-ui-sparkstackbar-C5ZzOhRM.js")), kl = C(() => import("./vue-ui-spark-trend-eJ5IZSRQ.js")), El = C(() => import("./vue-ui-sparkbar-B9E03kBf.js")), pl = C(() => import("./vue-ui-sparkgauge-CbtRwF8H.js")), Dl = C(() => import("./vue-ui-sparkline-CLz-PMi0.js")), Bl = C(() => import("./vue-ui-strip-plot-Cbr3Dkmd.js")), yl = C(() => import("./vue-ui-table-Cr6jEi4z.js")), ml = C(() => import("./vue-ui-table-heatmap-C0J52xWN.js")), xl = C(() => import("./vue-ui-table-sparkline-C9PHXjbW.js")), wl = C(() => import("./vue-ui-thermometer-Cs8Xt7tQ.js")), Ll = C(() => import("./vue-ui-timer-DDZHmPLV.js")), Sl = C(() => import("./vue-ui-tiremarks-DHAdNbAA.js")), vl = C(() => import("./vue-ui-treemap-CfH-P5Oh.js")), _l = C(() => import("./vue-ui-vertical-bar-oBdc4YQS.js")), zl = C(() => import("./vue-ui-waffle-DZ2zIujl.js")), Rl = C(() => import("./vue-ui-wheel-BerXCO4A.js")), Ol = C(() => import("./vue-ui-word-cloud-U5KISxTe.js")), Nl = C(() => import("./vue-ui-xy-y9zEQYMK.js")), Pl = C(() => import("./vue-ui-xy-canvas-BpblELcE.js")), Tl = C(() => import("./vue-ui-carousel-table-TOSDOJ0J.js")), Ml = C(() => import("./vue-ui-gizmo-BbUqDkQz.js")), Vl = C(() => import("./vue-ui-stackbar-BnuJOk6L.js")), Il = C(() => import("./vue-ui-bullet-MrNlqcTX.js")), Wl = C(() => import("./vue-ui-funnel-r_WI2IRS.js")), $l = C(() => import("./vue-ui-history-plot-CJFtY1Rm.js")), Ul = C(() => import("./vue-ui-pattern-DsYgSZWn.js")), Yl = C(() => import("./vue-ui-circle-pack-BjD7UG4l.js"));
|
|
6642
6642
|
export {
|
|
6643
6643
|
De as $,
|
|
6644
6644
|
st as A,
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
L ${B} ${g}
|
|
7
7
|
A ${i} ${i} 0 0 1 ${F} ${D}
|
|
8
8
|
Z
|
|
9
|
-
`.trim(),middlePoint:{x:k,y}}})}function Ft({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const s=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(s,c);let i=0,d=0;for(const f of u)i+=f.x,d+=f.y;i/=u.length,d/=u.length;let b=-1,t=n;for(let f=s;f<c;f+=1){const A=Math.abs((o[n].x-i)*(o[f].y-o[n].y)-(o[n].x-o[f].x)*(d-o[n].y));A>b&&(b=A,t=f)}e.push(o[t]),n=t}return e.push(o[o.length-1]),e}function Et({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const s=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(s,c),i=u.reduce((t,f)=>t+f,0)/u.length;let d=-1,b=n;for(let t=s;t<c;t+=1){const f=Math.abs((o[n]-i)*(t-n));f>d&&(d=f,b=t)}e.push(o[b]),n=b}return e.push(o[o.length-1]),e}function pt({data:o,threshold:l,key:e="value"}){if(l>=o.length||l<3)return o;const a=[],n=(o.length-2)/(l-2);let r=0;a.push(o[r]);for(let s=0;s<l-2;s+=1){const c=Math.floor((s+1)*n)+1,u=Math.min(Math.floor((s+2)*n)+1,o.length),i=o.slice(c,u),d=i.reduce((f,A)=>f+A[e],0)/i.length;let b=-1,t=r;for(let f=c;f<u;f+=1){const A=Math.abs((o[r][e]-d)*(f-r));A>b&&(b=A,t=f)}a.push(o[t]),r=t}return a.push(o[o.length-1]),a}function Dt({radius:o,centerX:l,centerY:e,percentage:a}){a=Math.max(0,Math.min(1,a));const n=a*Math.PI,r=l-o,s=e,c=l-o*Math.cos(n),u=e-o*Math.sin(n);return`M ${l},${e} L ${r},${s} A ${o},${o} 0 0 1 ${c},${u} Z`.trim()}function Bt({svgElement:o,x:l,y:e,offsetY:a=0,element:n}){if(!o||!n)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const s=r.matrixTransform(o.getScreenCTM()),c=o.getBoundingClientRect(),u=n.getBoundingClientRect();let i=0,d=0;return s.x-u.width/2<c.left?i=0:s.x+u.width>c.right?i=-u.width:i=-u.width/2,s.y-a-u.height<c.top?d=a:d=-u.height-a,{top:s.y+d,left:s.x+i}}function yt({svgElement:o,x:l,y:e,element:a,position:n}){if(!o||!a)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const s=r.matrixTransform(o.getScreenCTM()),{height:c,width:u}=a.getBoundingClientRect();let i=n==="right"?0:-u,d=-(c/2);return{top:s.y+d,left:s.x+i}}function V(o){if(o===null||typeof o!="object")return o;if(o instanceof Date)return new Date(o.getTime());if(o instanceof RegExp)return new RegExp(o.source,o.flags);if(o instanceof Map){const e=new Map;for(const[a,n]of o.entries())e.set(a,V(n));return e}if(o instanceof Set){const e=new Set;for(const a of o.values())e.add(V(a));return e}if(Array.isArray(o))return o.map(e=>V(e));const l={};for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&(l[e]=V(o[e]));return l}function so(o){const l=[];let e=[];for(const a of o)!a||a.value==null||Number.isNaN(a.x)||Number.isNaN(a.y)?(e.length&&l.push(e),e=[]):e.push(a);return e.length&&l.push(e),l}function mt(o,l){if(!o[0])return[-10,-10,"",-10,-10].toString();const e=so(o);return e.length?e.map(a=>{const n={x:a[0].x,y:l},r={x:a.at(-1).x,y:l},s=[];return a.forEach(c=>{s.push(`${c.x},${c.y} `)}),[n.x,n.y,...s,r.x,r.y].toString()}).join(";"):""}function xt(o,l){const e=o.filter(s=>!!s);if(!e[0])return[-10,-10,"",-10,-10].toString();const a={x:e[0].x,y:l},n={x:e.at(-1).x,y:l},r=[];return e.forEach(s=>{r.push(`${s.x},${s.y} `)}),[a.x,a.y,...r,n.x,n.y].toString()}function wt(o,l){if(!o[0])return[-10,-10,"",-10,-10].toString();const e=so(o);return e.length?e.map(a=>{const n={x:a[0].x,y:l},r={x:a.at(-1).x,y:l},s=[];return a.forEach(c=>{s.push(`${c.x},${c.y} `)}),[n.x,n.y,...s,r.x,r.y].toString()}).join(";"):""}function vt(o){const l=[];let e=[];for(const a of o)a.value==null||Number.isNaN(a.x)||Number.isNaN(a.y)?(e.length>1&&l.push(e),e=[]):e.push(a);return e.length>1&&l.push(e),l}function Lt(o){let l="",e=!1;for(let a=0;a<o.length;a++){const n=o[a];if(n.value==null||Number.isNaN(n.x)||Number.isNaN(n.y)){e=!1;continue}e?l+=`L${h(n.x)},${h(n.y)} `:(l+=`${a===0?"":"M"}${h(n.x)},${h(n.y)} `,e=!0)}return l.trim()}function St(o){const l=vt(o);if(!l.length)return"";let e="";for(const[a,n]of l.entries()){if(n.length<2)continue;const r=n.length-1,s=[],c=[],u=[],i=[];for(let d=0;d<r;d+=1)s[d]=n[d+1].x-n[d].x,c[d]=n[d+1].y-n[d].y,u[d]=c[d]/s[d];i[0]=u[0],i[r]=u[r-1];for(let d=1;d<r;d+=1)if(u[d-1]*u[d]<=0)i[d]=0;else{const b=2*u[d-1]*u[d]/(u[d-1]+u[d]);i[d]=b}e+=`${a===0?"":"M"}${h(n[0].x)},${h(n[0].y)} `;for(let d=0;d<r;d+=1){const b=n[d].x,t=n[d].y,f=n[d+1].x,A=n[d+1].y,p=i[d],B=i[d+1],g=b+(f-b)/3,F=t+p*(f-b)/3,D=f-(f-b)/3,k=A-B*(f-b)/3;e+=`C${h(g)},${h(F)} ${h(D)},${h(k)} ${h(f)},${h(A)} `}}return e.trim()}function _t(o,l,e=!1){function a(r){const s=[];let c=[];for(const u of r)!u||u.value==null||Number.isNaN(u.x)||Number.isNaN(u.y)?(c.length>1&&s.push(c),c=[]):c.push(u);return c.length>1&&s.push(c),s}return(e?a(o):[o]).map(r=>{if(r.length<2)return"";const s=r.length-1,c=[],u=[],i=[],d=[];for(let t=0;t<s;t+=1)c[t]=r[t+1].x-r[t].x,u[t]=r[t+1].y-r[t].y,i[t]=u[t]/c[t];d[0]=i[0],d[s]=i[s-1];for(let t=1;t<s;t+=1)if(i[t-1]*i[t]<=0)d[t]=0;else{const f=2*i[t-1]*i[t]/(i[t-1]+i[t]);d[t]=f}let b=`M${r[0].x},${l}`;b+=` L${r[0].x},${r[0].y}`;for(let t=0;t<s;t+=1){const f=r[t].x,A=r[t].y,p=r[t+1].x,B=r[t+1].y,g=d[t],F=d[t+1],D=f+(p-f)/3,k=A+g*(p-f)/3,y=p-(p-f)/3,E=B-F*(p-f)/3;b+=` C${D},${k} ${y},${E} ${p},${B}`}return b+=` L${r[s].x},${l} Z`,b}).filter(Boolean)}function Pt(o,l){const e=R(o);return no(e,l)}function zt(o,l){const e=R(o);return co(e,l)}function Rt(o,l){const e=R(o);return lo(e,l)}const Ot=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./Arrow-CwCPcRDq.cjs"))),Tt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-data-ui-NmIWCiVH.cjs"))),Vt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-CUG7pspB.cjs"))),Nt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-CSuxLH7L.cjs"))),Mt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-qT6V3Y8O.cjs"))),Ut=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-KzRsqSTn.cjs"))),It=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-CMsFiP9C.cjs"))),Wt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-CEQFlk-j.cjs"))),$t=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-DGtZLxpF.cjs"))),Gt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-etx_lWpJ.cjs"))),Yt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-lRbvyU_i.cjs"))),Ht=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-DQeJn_KK.cjs"))),Xt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-Dbg5HueS.cjs"))),qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-BaYSfxY1.cjs"))),Kt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-B8NKKaa2.cjs"))),jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-D8oPaBdc.cjs"))),Qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-Ushp2qER.cjs"))),Zt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-PVrUXZ6f.cjs"))),Jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BaseIcon-BQ6ScTsr.cjs"))),ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-zRnAot1s.cjs"))),el=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-0TKahM6o.cjs"))),rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-C7qRnQk-.cjs"))),tl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-BGHGOC3W.cjs"))),ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-r9LWv_9T.cjs"))),al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-CKJJIQO8.cjs"))),nl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-CTF--y5O.cjs"))),cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-De8bmwz_.cjs"))),sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-Bi7Vdl9I.cjs"))),il=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-DAxiwdD4.cjs"))),ul=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-Bm6BESO1.cjs"))),dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-rM2pEsYK.cjs"))),bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-Mt51bBc5.cjs"))),fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-COs46vAF.cjs"))),Al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-BBWwBSGZ.cjs"))),gl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-CZ2XNWEt.cjs"))),Cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-ClJhce64.cjs"))),hl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-B6su4lbU.cjs"))),kl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-CZnUiwhV.cjs"))),Fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-CZJ8RFMM.cjs"))),El=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-Cra2_GdA.cjs"))),pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-Cehnojts.cjs"))),Dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-D3Mc4jJS.cjs"))),Bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-CO12Arh5.cjs"))),yl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-BrXBITN7.cjs"))),ml=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-C-L8YXVO.cjs"))),xl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-BbAmbpxI.cjs"))),wl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-CgcO44Ga.cjs"))),vl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-B7GobiRR.cjs"))),Ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-YuZUqTkv.cjs"))),Sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-RH9oo9ao.cjs"))),_l=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-C6PA3aJK.cjs"))),Pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-BmWfP7V3.cjs"))),zl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-DysEgxAX.cjs"))),Rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-B7Q6HDzu.cjs"))),Ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-DZB78JsG.cjs"))),Tl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-CtGRQBIN.cjs"))),Vl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-B16t4cjE.cjs"))),Nl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-Dxjx916g.cjs"))),Ml=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-DMuibl8n.cjs"))),Ul=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-Cgm1VcJC.cjs"))),Il=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-D9hGmpzL.cjs"))),Wl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-pattern-CT3p_iOg.cjs"))),$l=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-cXdePcYh.cjs")));exports.Arrow=Ot;exports.VueDataUi=Tt;exports.VueUi3dBar=Vt;exports.VueUiAccordion=Nt;exports.VueUiAgePyramid=Mt;exports.VueUiAnnotator=Ut;exports.VueUiBullet=Ml;exports.VueUiCandlestick=It;exports.VueUiCarouselTable=Tl;exports.VueUiChestnut=Wt;exports.VueUiCirclePack=$l;exports.VueUiCursor=$t;exports.VueUiDashboard=Gt;exports.VueUiDigits=Yt;exports.VueUiDonut=Ht;exports.VueUiDonutEvolution=Xt;exports.VueUiDumbbell=qt;exports.VueUiFlow=Kt;exports.VueUiFunnel=Ul;exports.VueUiGalaxy=jt;exports.VueUiGauge=Qt;exports.VueUiGizmo=Vl;exports.VueUiHeatmap=Zt;exports.VueUiHistoryPlot=Il;exports.VueUiIcon=Jt;exports.VueUiKpi=ol;exports.VueUiMiniLoader=el;exports.VueUiMolecule=rl;exports.VueUiMoodRadar=tl;exports.VueUiNestedDonuts=ll;exports.VueUiOnion=al;exports.VueUiParallelCoordinatePlot=nl;exports.VueUiPattern=Wl;exports.VueUiQuadrant=cl;exports.VueUiQuickChart=sl;exports.VueUiRadar=il;exports.VueUiRating=ul;exports.VueUiRelationCircle=dl;exports.VueUiRings=bl;exports.VueUiScatter=fl;exports.VueUiSkeleton=Al;exports.VueUiSmiley=gl;exports.VueUiSparkHistogram=Cl;exports.VueUiSparkStackbar=hl;exports.VueUiSparkTrend=kl;exports.VueUiSparkbar=Fl;exports.VueUiSparkgauge=El;exports.VueUiSparkline=pl;exports.VueUiStackbar=Nl;exports.VueUiStripPlot=Dl;exports.VueUiTable=Bl;exports.VueUiTableHeatmap=yl;exports.VueUiTableSparkline=ml;exports.VueUiThermometer=xl;exports.VueUiTimer=wl;exports.VueUiTiremarks=vl;exports.VueUiTreemap=Ll;exports.VueUiVerticalBar=Sl;exports.VueUiWaffle=_l;exports.VueUiWheel=Pl;exports.VueUiWordCloud=zl;exports.VueUiXy=Rl;exports.VueUiXyCanvas=Ol;exports.XMLNS=lt;exports.abbreviate=Kr;exports.adaptColorToBackground=vr;exports.applyDataLabel=At;exports.assignStackRatios=it;exports.calcLinearProgression=Lr;exports.calcMarkerOffsetX=O;exports.calcMarkerOffsetY=T;exports.calcMedian=_r;exports.calcNutArrowPath=Nr;exports.calcTrend=at;exports.calculateNiceScale=Yr;exports.calculateNiceScaleWithExactExtremes=Hr;exports.canShowValue=Ur;exports.checkNaN=h;exports.closestDecimal=Mr;exports.convertColorToHex=R;exports.convertConfigColors=ao;exports.convertCustomPalette=ct;exports.createAreaWithCuts=mt;exports.createCsvContent=Gr;exports.createHalfCircleArc=Dt;exports.createIndividualArea=xt;exports.createIndividualAreaWithCuts=wt;exports.createPolarAreas=kt;exports.createPolygonPath=yr;exports.createSmoothAreaSegments=_t;exports.createSmoothPath=zr;exports.createSmoothPathVertical=Rr;exports.createSmoothPathWithCuts=St;exports.createSpiralPath=et;exports.createStar=xr;exports.createStraightPath=Pr;exports.createStraightPathWithCuts=Lt;exports.createTSpans=nt;exports.createUid=Or;exports.createWordCloudDatasetFromPlainText=st;exports.darkenColor=zt;exports.darkenHexColor=co;exports.dataLabel=qr;exports.deepClone=V;exports.downloadCsv=$r;exports.error=Jr;exports.forceValidValue=Er;exports.functionReturnsString=Qr;exports.getMissingDatasetAttributes=rt;exports.getPalette=pr;exports.getPathLengthFromCoordinates=ut;exports.getThemeConfig=cr;exports.getVueDataUiConfig=ge;exports.giftWrap=wr;exports.hasDeepProperty=gt;exports.interpolateColorHex=Xr;exports.isFunction=jr;exports.isSafeValue=Fr;exports.isValidUserValue=I;exports.largestTriangleThreeBuckets=Ft;exports.largestTriangleThreeBucketsArray=Et;exports.largestTriangleThreeBucketsArrayObjects=pt;exports.lightenColor=Pt;exports.lightenHexColor=no;exports.makeDonut=gr;exports.makePath=Wr;exports.objectIsEmpty=Zr;exports.offsetFromCenterPoint=Tr;exports.opacity=U;exports.palette=to;exports.placeHTMLElementAtSVGCoordinates=Bt;exports.placeXYTag=yt;exports.sanitizeArray=Ct;exports.setOpacity=ht;exports.shiftColorHue=Rt;exports.shiftHue=lo;exports.sumByAttribute=Ir;exports.sumSeries=bt;exports.themePalettes=P;exports.themes=eo;exports.translateSize=dt;exports.treeShake=ro;exports.useConfig=oo;
|
|
9
|
+
`.trim(),middlePoint:{x:k,y}}})}function Ft({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const s=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(s,c);let i=0,d=0;for(const f of u)i+=f.x,d+=f.y;i/=u.length,d/=u.length;let b=-1,t=n;for(let f=s;f<c;f+=1){const A=Math.abs((o[n].x-i)*(o[f].y-o[n].y)-(o[n].x-o[f].x)*(d-o[n].y));A>b&&(b=A,t=f)}e.push(o[t]),n=t}return e.push(o[o.length-1]),e}function Et({data:o,threshold:l}){if(l>=o.length||l<3)return o;const e=[],a=(o.length-2)/(l-2);let n=0;e.push(o[n]);for(let r=0;r<l-2;r+=1){const s=Math.floor((r+1)*a)+1,c=Math.min(Math.floor((r+2)*a)+1,o.length),u=o.slice(s,c),i=u.reduce((t,f)=>t+f,0)/u.length;let d=-1,b=n;for(let t=s;t<c;t+=1){const f=Math.abs((o[n]-i)*(t-n));f>d&&(d=f,b=t)}e.push(o[b]),n=b}return e.push(o[o.length-1]),e}function pt({data:o,threshold:l,key:e="value"}){if(l>=o.length||l<3)return o;const a=[],n=(o.length-2)/(l-2);let r=0;a.push(o[r]);for(let s=0;s<l-2;s+=1){const c=Math.floor((s+1)*n)+1,u=Math.min(Math.floor((s+2)*n)+1,o.length),i=o.slice(c,u),d=i.reduce((f,A)=>f+A[e],0)/i.length;let b=-1,t=r;for(let f=c;f<u;f+=1){const A=Math.abs((o[r][e]-d)*(f-r));A>b&&(b=A,t=f)}a.push(o[t]),r=t}return a.push(o[o.length-1]),a}function Dt({radius:o,centerX:l,centerY:e,percentage:a}){a=Math.max(0,Math.min(1,a));const n=a*Math.PI,r=l-o,s=e,c=l-o*Math.cos(n),u=e-o*Math.sin(n);return`M ${l},${e} L ${r},${s} A ${o},${o} 0 0 1 ${c},${u} Z`.trim()}function Bt({svgElement:o,x:l,y:e,offsetY:a=0,element:n}){if(!o||!n)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const s=r.matrixTransform(o.getScreenCTM()),c=o.getBoundingClientRect(),u=n.getBoundingClientRect();let i=0,d=0;return s.x-u.width/2<c.left?i=0:s.x+u.width>c.right?i=-u.width:i=-u.width/2,s.y-a-u.height<c.top?d=a:d=-u.height-a,{top:s.y+d,left:s.x+i}}function yt({svgElement:o,x:l,y:e,element:a,position:n}){if(!o||!a)return{top:0,left:0};const r=o.createSVGPoint();r.x=l,r.y=e;const s=r.matrixTransform(o.getScreenCTM()),{height:c,width:u}=a.getBoundingClientRect();let i=n==="right"?0:-u,d=-(c/2);return{top:s.y+d,left:s.x+i}}function V(o){if(o===null||typeof o!="object")return o;if(o instanceof Date)return new Date(o.getTime());if(o instanceof RegExp)return new RegExp(o.source,o.flags);if(o instanceof Map){const e=new Map;for(const[a,n]of o.entries())e.set(a,V(n));return e}if(o instanceof Set){const e=new Set;for(const a of o.values())e.add(V(a));return e}if(Array.isArray(o))return o.map(e=>V(e));const l={};for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&(l[e]=V(o[e]));return l}function so(o){const l=[];let e=[];for(const a of o)!a||a.value==null||Number.isNaN(a.x)||Number.isNaN(a.y)?(e.length&&l.push(e),e=[]):e.push(a);return e.length&&l.push(e),l}function mt(o,l){if(!o[0])return[-10,-10,"",-10,-10].toString();const e=so(o);return e.length?e.map(a=>{const n={x:a[0].x,y:l},r={x:a.at(-1).x,y:l},s=[];return a.forEach(c=>{s.push(`${c.x},${c.y} `)}),[n.x,n.y,...s,r.x,r.y].toString()}).join(";"):""}function xt(o,l){const e=o.filter(s=>!!s);if(!e[0])return[-10,-10,"",-10,-10].toString();const a={x:e[0].x,y:l},n={x:e.at(-1).x,y:l},r=[];return e.forEach(s=>{r.push(`${s.x},${s.y} `)}),[a.x,a.y,...r,n.x,n.y].toString()}function wt(o,l){if(!o[0])return[-10,-10,"",-10,-10].toString();const e=so(o);return e.length?e.map(a=>{const n={x:a[0].x,y:l},r={x:a.at(-1).x,y:l},s=[];return a.forEach(c=>{s.push(`${c.x},${c.y} `)}),[n.x,n.y,...s,r.x,r.y].toString()}).join(";"):""}function vt(o){const l=[];let e=[];for(const a of o)a.value==null||Number.isNaN(a.x)||Number.isNaN(a.y)?(e.length>1&&l.push(e),e=[]):e.push(a);return e.length>1&&l.push(e),l}function Lt(o){let l="",e=!1;for(let a=0;a<o.length;a++){const n=o[a];if(n.value==null||Number.isNaN(n.x)||Number.isNaN(n.y)){e=!1;continue}e?l+=`L${h(n.x)},${h(n.y)} `:(l+=`${a===0?"":"M"}${h(n.x)},${h(n.y)} `,e=!0)}return l.trim()}function St(o){const l=vt(o);if(!l.length)return"";let e="";for(const[a,n]of l.entries()){if(n.length<2)continue;const r=n.length-1,s=[],c=[],u=[],i=[];for(let d=0;d<r;d+=1)s[d]=n[d+1].x-n[d].x,c[d]=n[d+1].y-n[d].y,u[d]=c[d]/s[d];i[0]=u[0],i[r]=u[r-1];for(let d=1;d<r;d+=1)if(u[d-1]*u[d]<=0)i[d]=0;else{const b=2*u[d-1]*u[d]/(u[d-1]+u[d]);i[d]=b}e+=`${a===0?"":"M"}${h(n[0].x)},${h(n[0].y)} `;for(let d=0;d<r;d+=1){const b=n[d].x,t=n[d].y,f=n[d+1].x,A=n[d+1].y,p=i[d],B=i[d+1],g=b+(f-b)/3,F=t+p*(f-b)/3,D=f-(f-b)/3,k=A-B*(f-b)/3;e+=`C${h(g)},${h(F)} ${h(D)},${h(k)} ${h(f)},${h(A)} `}}return e.trim()}function _t(o,l,e=!1){function a(r){const s=[];let c=[];for(const u of r)!u||u.value==null||Number.isNaN(u.x)||Number.isNaN(u.y)?(c.length>1&&s.push(c),c=[]):c.push(u);return c.length>1&&s.push(c),s}return(e?a(o):[o]).map(r=>{if(r.length<2)return"";const s=r.length-1,c=[],u=[],i=[],d=[];for(let t=0;t<s;t+=1)c[t]=r[t+1].x-r[t].x,u[t]=r[t+1].y-r[t].y,i[t]=u[t]/c[t];d[0]=i[0],d[s]=i[s-1];for(let t=1;t<s;t+=1)if(i[t-1]*i[t]<=0)d[t]=0;else{const f=2*i[t-1]*i[t]/(i[t-1]+i[t]);d[t]=f}let b=`M${r[0].x},${l}`;b+=` L${r[0].x},${r[0].y}`;for(let t=0;t<s;t+=1){const f=r[t].x,A=r[t].y,p=r[t+1].x,B=r[t+1].y,g=d[t],F=d[t+1],D=f+(p-f)/3,k=A+g*(p-f)/3,y=p-(p-f)/3,E=B-F*(p-f)/3;b+=` C${D},${k} ${y},${E} ${p},${B}`}return b+=` L${r[s].x},${l} Z`,b}).filter(Boolean)}function Pt(o,l){const e=R(o);return no(e,l)}function zt(o,l){const e=R(o);return co(e,l)}function Rt(o,l){const e=R(o);return lo(e,l)}const Ot=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./Arrow-Bslu6In_.cjs"))),Tt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-data-ui-BuY9ggUz.cjs"))),Vt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-DeTBYGV_.cjs"))),Nt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-cBSqrYy3.cjs"))),Mt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-DfGSS3SE.cjs"))),Ut=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-Bpy0V7AA.cjs"))),It=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-DfEQ057F.cjs"))),Wt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-BQwGKI2l.cjs"))),$t=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-Bv_hn_5f.cjs"))),Gt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-DGJjS8TM.cjs"))),Yt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-BusMzORo.cjs"))),Ht=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-vqs5auMD.cjs"))),Xt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-Dul--Pi_.cjs"))),qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-CB6lYwMc.cjs"))),Kt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-CDPkL02l.cjs"))),jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-DSXcoM3k.cjs"))),Qt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-Ct1Knstr.cjs"))),Zt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-RHN_eSK2.cjs"))),Jt=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./BaseIcon-WIhlX3LN.cjs"))),ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-C0IWPkaZ.cjs"))),el=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-DoOFKxep.cjs"))),rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-HnReqNMq.cjs"))),tl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-BjmCUY0q.cjs"))),ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-SBaCzHQP.cjs"))),al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-BehdICTa.cjs"))),nl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-BLLONfts.cjs"))),cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-ntmlYIVx.cjs"))),sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-BCdm0tx2.cjs"))),il=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-CUoLdojY.cjs"))),ul=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-BWlmz08s.cjs"))),dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-DighSxmd.cjs"))),bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-CPIzjzdm.cjs"))),fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-BSgMQLjw.cjs"))),Al=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-DOE444ST.cjs"))),gl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-bHv8hVve.cjs"))),Cl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-4gAnz36n.cjs"))),hl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-ja3t34Mt.cjs"))),kl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-S0FbKqDW.cjs"))),Fl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-B1pwFeeg.cjs"))),El=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-BpAFpJN9.cjs"))),pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-CJ8rlJiI.cjs"))),Dl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-CyiaXAxw.cjs"))),Bl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-CPJeRMDV.cjs"))),yl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-BfKruH6W.cjs"))),ml=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-CGUs_6Ij.cjs"))),xl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-DWC--OtD.cjs"))),wl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-DD0VvMEs.cjs"))),vl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-B_koqVkj.cjs"))),Ll=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-C_yhbpyF.cjs"))),Sl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-BRplGFjj.cjs"))),_l=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-Bg5T7RVn.cjs"))),Pl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-Bj3Z92nh.cjs"))),zl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-BWQ1ogz9.cjs"))),Rl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-C078AHoi.cjs"))),Ol=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-C76OoGNJ.cjs"))),Tl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-B9AHiJLA.cjs"))),Vl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-tet3qRDX.cjs"))),Nl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-DSWEq3Pa.cjs"))),Ml=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-CrgeKJBE.cjs"))),Ul=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-D1PhFKgP.cjs"))),Il=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-B8_Kig_-.cjs"))),Wl=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-pattern-CT3p_iOg.cjs"))),$l=C.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-B9HW-E4V.cjs")));exports.Arrow=Ot;exports.VueDataUi=Tt;exports.VueUi3dBar=Vt;exports.VueUiAccordion=Nt;exports.VueUiAgePyramid=Mt;exports.VueUiAnnotator=Ut;exports.VueUiBullet=Ml;exports.VueUiCandlestick=It;exports.VueUiCarouselTable=Tl;exports.VueUiChestnut=Wt;exports.VueUiCirclePack=$l;exports.VueUiCursor=$t;exports.VueUiDashboard=Gt;exports.VueUiDigits=Yt;exports.VueUiDonut=Ht;exports.VueUiDonutEvolution=Xt;exports.VueUiDumbbell=qt;exports.VueUiFlow=Kt;exports.VueUiFunnel=Ul;exports.VueUiGalaxy=jt;exports.VueUiGauge=Qt;exports.VueUiGizmo=Vl;exports.VueUiHeatmap=Zt;exports.VueUiHistoryPlot=Il;exports.VueUiIcon=Jt;exports.VueUiKpi=ol;exports.VueUiMiniLoader=el;exports.VueUiMolecule=rl;exports.VueUiMoodRadar=tl;exports.VueUiNestedDonuts=ll;exports.VueUiOnion=al;exports.VueUiParallelCoordinatePlot=nl;exports.VueUiPattern=Wl;exports.VueUiQuadrant=cl;exports.VueUiQuickChart=sl;exports.VueUiRadar=il;exports.VueUiRating=ul;exports.VueUiRelationCircle=dl;exports.VueUiRings=bl;exports.VueUiScatter=fl;exports.VueUiSkeleton=Al;exports.VueUiSmiley=gl;exports.VueUiSparkHistogram=Cl;exports.VueUiSparkStackbar=hl;exports.VueUiSparkTrend=kl;exports.VueUiSparkbar=Fl;exports.VueUiSparkgauge=El;exports.VueUiSparkline=pl;exports.VueUiStackbar=Nl;exports.VueUiStripPlot=Dl;exports.VueUiTable=Bl;exports.VueUiTableHeatmap=yl;exports.VueUiTableSparkline=ml;exports.VueUiThermometer=xl;exports.VueUiTimer=wl;exports.VueUiTiremarks=vl;exports.VueUiTreemap=Ll;exports.VueUiVerticalBar=Sl;exports.VueUiWaffle=_l;exports.VueUiWheel=Pl;exports.VueUiWordCloud=zl;exports.VueUiXy=Rl;exports.VueUiXyCanvas=Ol;exports.XMLNS=lt;exports.abbreviate=Kr;exports.adaptColorToBackground=vr;exports.applyDataLabel=At;exports.assignStackRatios=it;exports.calcLinearProgression=Lr;exports.calcMarkerOffsetX=O;exports.calcMarkerOffsetY=T;exports.calcMedian=_r;exports.calcNutArrowPath=Nr;exports.calcTrend=at;exports.calculateNiceScale=Yr;exports.calculateNiceScaleWithExactExtremes=Hr;exports.canShowValue=Ur;exports.checkNaN=h;exports.closestDecimal=Mr;exports.convertColorToHex=R;exports.convertConfigColors=ao;exports.convertCustomPalette=ct;exports.createAreaWithCuts=mt;exports.createCsvContent=Gr;exports.createHalfCircleArc=Dt;exports.createIndividualArea=xt;exports.createIndividualAreaWithCuts=wt;exports.createPolarAreas=kt;exports.createPolygonPath=yr;exports.createSmoothAreaSegments=_t;exports.createSmoothPath=zr;exports.createSmoothPathVertical=Rr;exports.createSmoothPathWithCuts=St;exports.createSpiralPath=et;exports.createStar=xr;exports.createStraightPath=Pr;exports.createStraightPathWithCuts=Lt;exports.createTSpans=nt;exports.createUid=Or;exports.createWordCloudDatasetFromPlainText=st;exports.darkenColor=zt;exports.darkenHexColor=co;exports.dataLabel=qr;exports.deepClone=V;exports.downloadCsv=$r;exports.error=Jr;exports.forceValidValue=Er;exports.functionReturnsString=Qr;exports.getMissingDatasetAttributes=rt;exports.getPalette=pr;exports.getPathLengthFromCoordinates=ut;exports.getThemeConfig=cr;exports.getVueDataUiConfig=ge;exports.giftWrap=wr;exports.hasDeepProperty=gt;exports.interpolateColorHex=Xr;exports.isFunction=jr;exports.isSafeValue=Fr;exports.isValidUserValue=I;exports.largestTriangleThreeBuckets=Ft;exports.largestTriangleThreeBucketsArray=Et;exports.largestTriangleThreeBucketsArrayObjects=pt;exports.lightenColor=Pt;exports.lightenHexColor=no;exports.makeDonut=gr;exports.makePath=Wr;exports.objectIsEmpty=Zr;exports.offsetFromCenterPoint=Tr;exports.opacity=U;exports.palette=to;exports.placeHTMLElementAtSVGCoordinates=Bt;exports.placeXYTag=yt;exports.sanitizeArray=Ct;exports.setOpacity=ht;exports.shiftColorHue=Rt;exports.shiftHue=lo;exports.sumByAttribute=Ir;exports.sumSeries=bt;exports.themePalettes=P;exports.themes=eo;exports.translateSize=dt;exports.treeShake=ro;exports.useConfig=oo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./jspdf.es.min-C518mmma.cjs"),p=require("./dom-to-png-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./jspdf.es.min-C518mmma.cjs"),p=require("./dom-to-png-C-_IolaZ.cjs");async function P({domElement:d,fileName:l,scale:m=2,options:H={}}){if(!d)return Promise.reject("No domElement provided");const t={width:595.28,height:841.89},a=await p.domToPng({container:d,scale:m});return await new Promise((f,u)=>{const e=new window.Image;e.onload=function(){const i=e.naturalWidth,r=e.naturalHeight;let g=t.width,s=t.width/i*r;const o=new w.E("","pt","a4");let c=0,n=r;const h=i/t.width*t.height;if(n<h)o.addImage(a,"PNG",0,0,g,s,"","FAST");else for(;n>0;)o.addImage(a,"PNG",0,c,g,s,"","FAST"),n-=h,c-=t.height,n>0&&o.addPage();o.save(`${l}.pdf`),f()},e.onerror=i=>u("Failed to load image for PDF: "+i),e.src=a})}exports.default=P;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as p } from "./jspdf.es.min-t_OLULUR.js";
|
|
2
|
-
import { d as u } from "./dom-to-png-
|
|
2
|
+
import { d as u } from "./dom-to-png-6NoDv4_U.js";
|
|
3
3
|
async function I({ domElement: d, fileName: m, scale: f = 2, options: P = {} }) {
|
|
4
4
|
if (!d) return Promise.reject("No domElement provided");
|
|
5
5
|
const t = {
|