vue-data-ui 2.7.7-beta.2 → 2.8.1
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-I5AiHXxB.js → Arrow-dZEf3SsT.js} +1 -1
- package/dist/{Arrow-D6q7wT70.cjs → Arrow-vOXpy5M-.cjs} +1 -1
- package/dist/{BaseIcon-BNBdVypn.cjs → BaseIcon-C2o75ceK.cjs} +1 -1
- package/dist/{BaseIcon-eOI-TaGA.js → BaseIcon-DZrvtZc3.js} +1 -1
- package/dist/{ColorPicker-RxZk7X7b.js → ColorPicker-CNr7vlRS.js} +3 -3
- package/dist/{ColorPicker-B3YPWhmx.cjs → ColorPicker-Dm8-2J-c.cjs} +1 -1
- package/dist/{DataTable-D6KdvUip.js → DataTable-D47NI3mY.js} +2 -2
- package/dist/{DataTable-DbFdIOSA.cjs → DataTable-DEFs-EaT.cjs} +1 -1
- package/dist/{Legend-C-PmQikI.cjs → Legend-BrWxrvx1.cjs} +1 -1
- package/dist/{Legend-D2hXVij0.js → Legend-CdT35-yb.js} +2 -2
- package/dist/PackageVersion-CX5-lR_7.cjs +1 -0
- package/dist/{PackageVersion-m64FzgEd.js → PackageVersion-D0X33ZDw.js} +3 -3
- package/dist/{PenAndPaper-DsrtCBwN.js → PenAndPaper-DOg71Z7q.js} +3 -3
- package/dist/{PenAndPaper-DQgGlIFz.cjs → PenAndPaper-mo5_icjt.cjs} +1 -1
- package/dist/{Shape-B5iAAqd4.js → Shape-BalEJckG.js} +1 -1
- package/dist/{Shape-B75ciWNR.cjs → Shape-DNTuLHYt.cjs} +1 -1
- package/dist/{Slicer-kYbzIqGE.js → Slicer-CB_l-Wls.js} +2 -2
- package/dist/{Slicer-CbLRKclY.cjs → Slicer-DKf0nwex.cjs} +1 -1
- package/dist/{Title-C0CT6jA6.js → Title-lqF_rq6c.js} +1 -1
- package/dist/{Title-BqVhWQj9.cjs → Title-s-4wtmyf.cjs} +1 -1
- package/dist/{Tooltip-DG7xNLW-.cjs → Tooltip-Br3lB3d1.cjs} +1 -1
- package/dist/{Tooltip-TflEtITP.js → Tooltip-DKFyA3ub.js} +1 -1
- package/dist/{dom-to-png-CpKxlQQV.cjs → dom-to-png-CgxmOicm.cjs} +1 -1
- package/dist/{dom-to-png-DOvFiyVD.js → dom-to-png-CjE9FVEC.js} +1 -1
- package/dist/{img-Df4jddw0.js → img-BN_XjXTk.js} +1 -1
- package/dist/{img-DJuM6hTd.cjs → img-DLXHtEji.cjs} +1 -1
- package/dist/{index-CHhWsvsT.js → index-BFQVpLxg.js} +1 -1
- package/dist/{index-B8vOvwaf.cjs → index-C2dCPlLw.cjs} +1 -1
- package/dist/{pdf-BV7moOjc.js → pdf-BFhwCcHB.js} +1 -1
- package/dist/{pdf-Bihl06mH.cjs → pdf-C_8oLgu7.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BFjDbZR0.js → useNestedProp-CQx8H1CV.js} +1 -1
- package/dist/{useNestedProp-C4sQAs2T.cjs → useNestedProp-Coe_9w4h.cjs} +1 -1
- package/dist/{usePrinter-Bi6GyL7Z.cjs → usePrinter-B7OpKMf9.cjs} +1 -1
- package/dist/{usePrinter-CAc9dBow.js → usePrinter-DKrOpSvE.js} +3 -3
- package/dist/{vue-data-ui-BiqUTQHh.js → vue-data-ui-C89e8X6S.js} +61 -61
- package/dist/{vue-data-ui-BXyPpDlS.cjs → vue-data-ui-DCeVvr5x.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BukVhbUM.js → vue-ui-3d-bar-CwIBC5RB.js} +9 -9
- package/dist/{vue-ui-3d-bar-CsfKeMor.cjs → vue-ui-3d-bar-Dr21Q9Ah.cjs} +1 -1
- package/dist/{vue-ui-accordion-C7pRXQdw.js → vue-ui-accordion-8x_k6qEe.js} +3 -3
- package/dist/{vue-ui-accordion-CBE2Lscz.cjs → vue-ui-accordion-CEJghMx7.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Dax4kNLx.js → vue-ui-age-pyramid-CK58dJZD.js} +10 -10
- package/dist/{vue-ui-age-pyramid-CmhWu1qE.cjs → vue-ui-age-pyramid-CTipzKSo.cjs} +1 -1
- package/dist/{vue-ui-annotator-iiL8Nzi5.cjs → vue-ui-annotator-DbciFqaW.cjs} +1 -1
- package/dist/{vue-ui-annotator-3Q8JcMLX.js → vue-ui-annotator-_s2si5zW.js} +2 -2
- package/dist/{vue-ui-bullet-BnqMZQ7a.js → vue-ui-bullet-BNnj4D8l.js} +8 -8
- package/dist/{vue-ui-bullet-Da3iBcaw.cjs → vue-ui-bullet-Bl-8zrm9.cjs} +1 -1
- package/dist/{vue-ui-candlestick-9FDrczZR.cjs → vue-ui-candlestick-BNG2KkuK.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D0mY94Jp.js → vue-ui-candlestick-BVk7pmj6.js} +11 -11
- package/dist/{vue-ui-carousel-table--HXY8XEd.js → vue-ui-carousel-table-CC9kZ_bu.js} +4 -4
- package/dist/{vue-ui-carousel-table-D82JYyHE.cjs → vue-ui-carousel-table-UzYywKWA.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DGMEqNF1.js → vue-ui-chestnut-BhZBuz2y.js} +8 -8
- package/dist/{vue-ui-chestnut-ChxHav21.cjs → vue-ui-chestnut-CcMmDECP.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-DDtij6Kr.js → vue-ui-circle-pack-C_vYTThy.js} +9 -9
- package/dist/{vue-ui-circle-pack-Bto97bX9.cjs → vue-ui-circle-pack-CdUy3_pV.cjs} +1 -1
- package/dist/{vue-ui-cursor-DnQjJnVr.cjs → vue-ui-cursor-CdUNnycj.cjs} +1 -1
- package/dist/{vue-ui-cursor-BffyiKnL.js → vue-ui-cursor-DHrWj61J.js} +2 -2
- package/dist/vue-ui-dashboard-C9JgMUfr.cjs +1 -0
- package/dist/vue-ui-dashboard-DJWoi76j.js +317 -0
- package/dist/{vue-ui-digits-CLgeA2NX.js → vue-ui-digits-D05LGBT4.js} +2 -2
- package/dist/{vue-ui-digits-BTZHIHFC.cjs → vue-ui-digits-D1Y6qbSL.cjs} +1 -1
- package/dist/{vue-ui-donut-7BmcLSnQ.cjs → vue-ui-donut-DoBw4yHW.cjs} +1 -1
- package/dist/{vue-ui-donut-Bb9t4OWG.js → vue-ui-donut-FXqedwJq.js} +12 -12
- package/dist/{vue-ui-donut-evolution-B3c99AS5.cjs → vue-ui-donut-evolution-Ddbh30nH.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BzETpvh8.js → vue-ui-donut-evolution-dhz5D6f0.js} +11 -11
- package/dist/{vue-ui-dumbbell-q0DWy_nW.cjs → vue-ui-dumbbell-M0hlbBdb.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CovXfgXM.js → vue-ui-dumbbell-_GSk9lKx.js} +10 -10
- package/dist/{vue-ui-flow-D-S2_qAL.js → vue-ui-flow-Bu0ZfKlT.js} +9 -9
- package/dist/{vue-ui-flow-DOBvmEXN.cjs → vue-ui-flow-DEmCo5dS.cjs} +1 -1
- package/dist/{vue-ui-funnel-AgQDv8GV.js → vue-ui-funnel-BXWS_Gxs.js} +9 -9
- package/dist/{vue-ui-funnel-CG030eaF.cjs → vue-ui-funnel-BiFo1Gxp.cjs} +1 -1
- package/dist/{vue-ui-galaxy-VTaUhuNb.cjs → vue-ui-galaxy-B02Ek0C1.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Eh1iX0hH.js → vue-ui-galaxy-DCbMRL-h.js} +11 -11
- package/dist/{vue-ui-gauge-Dp49FLkw.cjs → vue-ui-gauge-BgRhJVQ9.cjs} +1 -1
- package/dist/{vue-ui-gauge-BU3D6eVu.js → vue-ui-gauge-BxFg6VGp.js} +7 -7
- package/dist/{vue-ui-gizmo-BALGIrUN.js → vue-ui-gizmo-BxUeMXnL.js} +3 -3
- package/dist/{vue-ui-gizmo-bDjkcGjm.cjs → vue-ui-gizmo-DtjIhGeD.cjs} +1 -1
- package/dist/{vue-ui-heatmap-C4-jHxqE.js → vue-ui-heatmap-BFKdhq63.js} +10 -10
- package/dist/{vue-ui-heatmap-BSjmR3sS.cjs → vue-ui-heatmap-I7vcpM9m.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CRhDY60l.js → vue-ui-history-plot-BBJAQx9-.js} +11 -11
- package/dist/{vue-ui-history-plot-JQTLEF-0.cjs → vue-ui-history-plot-HIqRsts_.cjs} +1 -1
- package/dist/{vue-ui-kpi-CVkh7BAP.cjs → vue-ui-kpi-BqK8aYMH.cjs} +1 -1
- package/dist/{vue-ui-kpi-BKvh1huR.js → vue-ui-kpi-D2Tbgo49.js} +3 -3
- package/dist/{vue-ui-mini-loader-C1LzgA-e.cjs → vue-ui-mini-loader-A8sYrPHv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DbH7yYMi.js → vue-ui-mini-loader-Cw5ZfJY5.js} +2 -2
- package/dist/{vue-ui-molecule-NnAic6UM.cjs → vue-ui-molecule-BCiiaeC8.cjs} +1 -1
- package/dist/{vue-ui-molecule-CysKbgkZ.js → vue-ui-molecule-DFCX-pko.js} +11 -11
- package/dist/{vue-ui-mood-radar-ByisyMbS.cjs → vue-ui-mood-radar-A7_fZ0Ik.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DjGSlhy3.js → vue-ui-mood-radar-CSiS_gDF.js} +11 -11
- package/dist/{vue-ui-nested-donuts-XBgi1vDJ.js → vue-ui-nested-donuts-DvNUb57t.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Bqlr_1UH.cjs → vue-ui-nested-donuts-FR-70vLE.cjs} +1 -1
- package/dist/{vue-ui-onion-D-O_hUCV.cjs → vue-ui-onion-DFUj5YN5.cjs} +1 -1
- package/dist/{vue-ui-onion-BXMEYteQ.js → vue-ui-onion-nl6W4uCt.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-Bs32LBr4.js → vue-ui-parallel-coordinate-plot-BruWJBpM.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-Tpk1xRt0.cjs → vue-ui-parallel-coordinate-plot-D32i3E9L.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DfG2m9U9.js → vue-ui-quadrant-BdUpiOdu.js} +12 -12
- package/dist/{vue-ui-quadrant-CxrjcS0W.cjs → vue-ui-quadrant-Dn47DcoY.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BN752LC5.cjs → vue-ui-quick-chart-BXlOYyGL.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-xFcZf4ic.js → vue-ui-quick-chart-CnerC9Qg.js} +9 -9
- package/dist/{vue-ui-radar-Dg9fIl6V.js → vue-ui-radar-BKx6YrLy.js} +12 -12
- package/dist/{vue-ui-radar-CpkoNVZF.cjs → vue-ui-radar-D9OrsteR.cjs} +1 -1
- package/dist/{vue-ui-rating-BOzOOjeP.js → vue-ui-rating-CM9uw6x8.js} +2 -2
- package/dist/{vue-ui-rating-CSIg9dgg.cjs → vue-ui-rating-Dc2Jqf26.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-B8eDBnFj.js → vue-ui-relation-circle-6hpdGJz9.js} +7 -7
- package/dist/{vue-ui-relation-circle-BNNRdeuH.cjs → vue-ui-relation-circle-BXGepa63.cjs} +1 -1
- package/dist/{vue-ui-rings-Cmr5uRZw.js → vue-ui-rings-Cw66fFjF.js} +12 -12
- package/dist/{vue-ui-rings-DjDW0-Q6.cjs → vue-ui-rings-CxZFQwbk.cjs} +1 -1
- package/dist/{vue-ui-scatter-DGnuVGR2.js → vue-ui-scatter-Br9lsehL.js} +12 -12
- package/dist/{vue-ui-scatter-hA9kp5k6.cjs → vue-ui-scatter-CerEf0ET.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Bbm-HuYK.js → vue-ui-skeleton-CHzvVaNP.js} +3 -3
- package/dist/{vue-ui-skeleton-Du-JZESo.cjs → vue-ui-skeleton-CfkVGDBV.cjs} +1 -1
- package/dist/{vue-ui-smiley-BRN7oHvx.cjs → vue-ui-smiley-CR5jHHYg.cjs} +1 -1
- package/dist/{vue-ui-smiley-DgI0gw_a.js → vue-ui-smiley-CeqcgusF.js} +2 -2
- package/dist/{vue-ui-spark-trend-CuGZ7SUB.js → vue-ui-spark-trend-CBGbYnep.js} +5 -5
- package/dist/{vue-ui-spark-trend-BcNN-FO8.cjs → vue-ui-spark-trend-tHT09aPz.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CsyQT684.js → vue-ui-sparkbar-1x0LFHXg.js} +4 -4
- package/dist/{vue-ui-sparkbar-DjoAo8_e.cjs → vue-ui-sparkbar-BKHS0kdd.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BCPkzgDv.js → vue-ui-sparkgauge-CmsgH4VP.js} +4 -4
- package/dist/{vue-ui-sparkgauge-D7iAELw1.cjs → vue-ui-sparkgauge-D07IvlSw.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Ddkf1jvO.js → vue-ui-sparkhistogram-D8L5KGav.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-Bf0QfydV.cjs → vue-ui-sparkhistogram-DiYgahNx.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CdgHJGYS.cjs → vue-ui-sparkline-B151zYqx.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DxwDic0p.js → vue-ui-sparkline-DNnFy0nI.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-FV9amPXv.cjs → vue-ui-sparkstackbar-D-r0Eync.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-oQ5zFbnG.js → vue-ui-sparkstackbar-Dm9r7g1y.js} +5 -5
- package/dist/{vue-ui-stackbar-DXCUbrDs.js → vue-ui-stackbar-5NB574Dp.js} +13 -13
- package/dist/{vue-ui-stackbar-B2BaQqZp.cjs → vue-ui-stackbar-Df9HHJgh.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CTTgQkQq.cjs → vue-ui-strip-plot-i_HCH7Xj.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-8FTALylL.js → vue-ui-strip-plot-xXdnVANk.js} +11 -11
- package/dist/{vue-ui-table-BSZ4-uk3.cjs → vue-ui-table-BArM6fjG.cjs} +1 -1
- package/dist/{vue-ui-table-CoQmm6oQ.js → vue-ui-table-CEkrP2zd.js} +1 -1
- package/dist/{vue-ui-table-heatmap-9co1bgsX.cjs → vue-ui-table-heatmap-6iDYkY0u.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DbrXViRF.js → vue-ui-table-heatmap-CZ3gb7v6.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DmifMZlU.js → vue-ui-table-sparkline-CpCwGOlM.js} +5 -5
- package/dist/{vue-ui-table-sparkline-Bedq8Umj.cjs → vue-ui-table-sparkline-D2ANgidl.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CRPYJ2zm.js → vue-ui-thermometer-7V4dPxGU.js} +7 -7
- package/dist/{vue-ui-thermometer-Dq06rElD.cjs → vue-ui-thermometer-Bjk-5s8s.cjs} +1 -1
- package/dist/{vue-ui-timer-BKBy1ZLE.js → vue-ui-timer-Bit954QR.js} +5 -5
- package/dist/{vue-ui-timer-DxuD_GzY.cjs → vue-ui-timer-D9i8dmxX.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-NfgbQpwX.js → vue-ui-tiremarks-CgfFmdz9.js} +7 -7
- package/dist/{vue-ui-tiremarks-DNMh2uS8.cjs → vue-ui-tiremarks-H9vo6N1q.cjs} +1 -1
- package/dist/{vue-ui-treemap-BIFpEdcW.js → vue-ui-treemap-BgBGHQwK.js} +12 -12
- package/dist/{vue-ui-treemap-BPToyCts.cjs → vue-ui-treemap-C5oTJc6m.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DvXKngor.cjs → vue-ui-vertical-bar-B6qA1hNj.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CJPzwkOs.js → vue-ui-vertical-bar-DocNPjHZ.js} +12 -12
- package/dist/{vue-ui-waffle-W6LYkj3J.js → vue-ui-waffle-BBLFjjPk.js} +12 -12
- package/dist/{vue-ui-waffle-CjAk1ZgB.cjs → vue-ui-waffle-PuO6qyse.cjs} +1 -1
- package/dist/{vue-ui-wheel-C6CiUQPX.cjs → vue-ui-wheel-BX_pPLwM.cjs} +1 -1
- package/dist/{vue-ui-wheel-BrQpTjAd.js → vue-ui-wheel-BwcIurMc.js} +7 -7
- package/dist/{vue-ui-word-cloud-BDHwUS2t.js → vue-ui-word-cloud-CAjlNbxw.js} +10 -10
- package/dist/{vue-ui-word-cloud-DLZNBF3e.cjs → vue-ui-word-cloud-DGt-qnLp.cjs} +1 -1
- package/dist/{vue-ui-world-_B_bmsir.cjs → vue-ui-world-DGGJD8ge.cjs} +2 -2
- package/dist/{vue-ui-world-CHeMS2oK.js → vue-ui-world-oVo3n7m5.js} +14 -14
- package/dist/{vue-ui-xy-DCqIGXDR.js → vue-ui-xy-B618psvc.js} +16 -16
- package/dist/{vue-ui-xy-Bxf4aZvK.cjs → vue-ui-xy-BLTdcmpY.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DkW65e7N.js → vue-ui-xy-canvas-DdMMZtbJ.js} +12 -12
- package/dist/{vue-ui-xy-canvas-C-FBIlH7.cjs → vue-ui-xy-canvas-DumADhZZ.cjs} +1 -1
- package/package.json +1 -1
- package/dist/PackageVersion-D22bJIIL.cjs +0 -1
- package/dist/vue-ui-dashboard-B9YwIx1g.cjs +0 -1
- package/dist/vue-ui-dashboard-BvzyqjWd.js +0 -248
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ref as c, computed as R, onMounted as ot, nextTick as Oe, onBeforeUnmount as $t, watch as _, createElementBlock as M, openBlock as w, Fragment as je, createCommentVNode as Z, normalizeStyle as N, normalizeClass as ve, createElementVNode as W, withDirectives as gt, createVNode as me, toDisplayString as Qe, unref as D, vModelText as pt, withModifiers as mt, renderList as bt, useSlots as Gt, createBlock as ie, createSlots as Zt, withCtx as A, renderSlot as P, normalizeProps as ye, guardReactiveProps as ge, createTextVNode as qt } from "vue";
|
|
2
|
-
import { l as St, f as be, X as jt, u as Kt, c as Qt, t as _t, p as pe, a as Jt, C as Ke, b as el, D as lt, i as Le, d as xt, $ as tl, J as ll, ai as al, o as ol, e as nl, x as kt, q as rl, r as ul, y as sl, s as Re } from "./index-
|
|
2
|
+
import { l as St, f as be, X as jt, u as Kt, c as Qt, t as _t, p as pe, a as Jt, C as Ke, b as el, D as lt, i as Le, d as xt, $ as tl, J as ll, ai as al, o as ol, e as nl, x as kt, q as rl, r as ul, y as sl, s as Re } from "./index-BFQVpLxg.js";
|
|
3
3
|
import { d as il, t as vl, u as cl, c as dl, a as Lt, l as F, r as at, b as ne, p as wt } from "./useResponsive-Cw4oZ8sQ.js";
|
|
4
|
-
import { _ as hl } from "./Tooltip-
|
|
5
|
-
import { L as fl } from "./Legend-
|
|
6
|
-
import { _ as yl } from "./Title-
|
|
7
|
-
import { S as gl } from "./Slicer-
|
|
8
|
-
import { u as pl, U as ml } from "./usePrinter-
|
|
9
|
-
import bl from "./vue-ui-accordion-
|
|
10
|
-
import { D as xl } from "./DataTable-
|
|
11
|
-
import kl from "./vue-ui-skeleton-
|
|
12
|
-
import { u as Ct } from "./useNestedProp-
|
|
4
|
+
import { _ as hl } from "./Tooltip-DKFyA3ub.js";
|
|
5
|
+
import { L as fl } from "./Legend-CdT35-yb.js";
|
|
6
|
+
import { _ as yl } from "./Title-lqF_rq6c.js";
|
|
7
|
+
import { S as gl } from "./Slicer-CB_l-Wls.js";
|
|
8
|
+
import { u as pl, U as ml } from "./usePrinter-DKrOpSvE.js";
|
|
9
|
+
import bl from "./vue-ui-accordion-8x_k6qEe.js";
|
|
10
|
+
import { D as xl } from "./DataTable-D47NI3mY.js";
|
|
11
|
+
import kl from "./vue-ui-skeleton-CHzvVaNP.js";
|
|
12
|
+
import { u as Ct } from "./useNestedProp-CQx8H1CV.js";
|
|
13
13
|
import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { u as wl } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
-
import De from "./BaseIcon-
|
|
16
|
-
import { C as Cl } from "./ColorPicker-
|
|
15
|
+
import De from "./BaseIcon-DZrvtZc3.js";
|
|
16
|
+
import { C as Cl } from "./ColorPicker-CNr7vlRS.js";
|
|
17
17
|
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
const $l = {
|
|
19
19
|
class: /* @__PURE__ */ ve({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),d=require("./index-B8vOvwaf.cjs"),x=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-DG7xNLW-.cjs"),dt=require("./Legend-C-PmQikI.cjs"),ht=require("./Title-BqVhWQj9.cjs"),ft=require("./Slicer-CbLRKclY.cjs"),Ue=require("./usePrinter-Bi6GyL7Z.cjs"),yt=require("./vue-ui-accordion-CBE2Lscz.cjs"),pt=require("./DataTable-DbFdIOSA.cjs"),gt=require("./vue-ui-skeleton-Du-JZESo.cjs"),qe=require("./useNestedProp-C4sQAs2T.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),ge=require("./BaseIcon-BNBdVypn.cjs"),xt=require("./ColorPicker-B3YPWhmx.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Ct=["disabled"],Lt=["data-mode","xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],zt=["x","y","fill","font-size"],$t=["x","dy"],Tt=["d","stroke","stroke-width"],Et={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup(z,{emit:Ee}){const U=z,Be=Ee,L=t.ref([]),V=t.ref([]),K=t.ref("0 0 0 0"),D=t.ref(U.color),y=t.ref(1),m=t.ref("draw"),w=t.ref(null),q=t.ref(!1),h=t.ref(null),Y=t.ref({x:0,y:0}),X=t.ref([""]),E=t.ref({row:0,col:0}),P=t.ref(16);let W=1;function G(){return W++}function ne(i){var a;const r=R.value;if(!r)return{x:0,y:0};const o=r.createSVGPoint();let u=i.clientX,v=i.clientY;i.touches&&i.touches.length&&(u=i.touches[0].clientX,v=i.touches[0].clientY),o.x=u,o.y=v;const f=(a=r.getScreenCTM())==null?void 0:a.inverse();return f?o.matrixTransform(f):{x:0,y:0}}function re(i){if(!w.value||m.value!=="text"||q.value)return;const{x:r,y:o}=ne(i);Y.value={x:r,y:o},X.value=[""],E.value={row:0,col:0};const u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("x",r),u.setAttribute("y",o),u.setAttribute("fill",D.value),u.setAttribute("font-size",P.value),u.setAttribute("font-family","sans-serif"),u.setAttribute("class","vue-data-ui-doodle"),u.setAttribute("dominant-baseline","hanging"),u.setAttribute("pointer-events","all");const v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttribute("x",r),v.setAttribute("dy","0"),v.textContent="",u.appendChild(v),u.style.pointerEvents="none",u.style.userSelect="none",w.value.appendChild(u),h.value=u,q.value=!0,window.addEventListener("keydown",ue),window.addEventListener("mousedown",ie,!0),J(),se()}function ue(i){if(!q.value)return;let{row:r,col:o}=E.value,u=X.value.slice(),v=!1;if(i.key==="Enter"){const f=u[r],a=f.slice(0,o),T=f.slice(o);u.splice(r,1,a,T),r+=1,o=0,v=!0,i.preventDefault()}else if(i.key==="Backspace"){if(o>0)u[r]=u[r].slice(0,o-1)+u[r].slice(o),o-=1,v=!0;else if(r>0){const f=u[r-1].length;u[r-1]+=u[r],u.splice(r,1),r-=1,o=f,v=!0}i.preventDefault()}else if(i.key==="Delete")o<u[r].length?(u[r]=u[r].slice(0,o)+u[r].slice(o+1),v=!0):r<u.length-1&&(u[r]+=u[r+1],u.splice(r+1,1),v=!0),i.preventDefault();else if(i.key==="ArrowLeft")o>0?o-=1:r>0&&(r-=1,o=u[r].length),v=!0,i.preventDefault();else if(i.key==="ArrowRight")o<u[r].length?o+=1:r<u.length-1&&(r+=1,o=0),v=!0,i.preventDefault();else if(i.key==="ArrowUp")r>0&&(r-=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key==="ArrowDown")r<u.length-1&&(r+=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key.length===1&&!i.ctrlKey&&!i.metaKey&&!i.altKey)u[r]=u[r].slice(0,o)+i.key+u[r].slice(o),o+=1,v=!0,i.preventDefault();else if(i.key==="Escape"){ce(!0);return}else i.key==="Tab"&&i.preventDefault();v&&(X.value=u,E.value={row:r,col:o},J(),se())}function J(){const i=h.value,{x:r,y:o}=Y.value;for(;i.firstChild;)i.removeChild(i.firstChild);X.value.forEach((u,v)=>{const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttribute("x",r),f.setAttribute("dy",v===0?"0":`${P.value*1.2}`),f.textContent=u.length?u:"",i.appendChild(f)})}function se(){const i=w.value.querySelector(".vue-data-ui-svg-caret");i&&w.value.removeChild(i);const r=h.value;if(!r)return;const{x:o,y:u}=Y.value,{row:v,col:f}=E.value,a=P.value,T=r.childNodes[v];if(!T)return;let B=T.textContent.slice(0,f);B.endsWith(" ")&&(B+=" ");const p=document.createElementNS("http://www.w3.org/2000/svg","text");p.setAttribute("x",o),p.setAttribute("y",u),p.setAttribute("font-size",a),p.setAttribute("font-family","sans-serif"),p.textContent=B||"",w.value.appendChild(p);const M=p.getBBox();w.value.removeChild(p);let $=u+v*a*1.2,g=o+M.width;const c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("x",g),c.setAttribute("y",$),c.setAttribute("width",1),c.setAttribute("height",a),c.setAttribute("fill",D.value),c.setAttribute("class","vue-data-ui-svg-caret"),w.value.appendChild(c)}function ie(i){if(h.value&&!h.value.contains(i.target)){const r=h.value.children;r.length===1&&(r[0].textContent===""||r[0].textContent==="")&&h.value.remove(),ce(!1)}}function ce(i=!1){var u;window.removeEventListener("keydown",ue),window.removeEventListener("mousedown",ie,!0);const r=(u=w.value)==null?void 0:u.querySelector(".vue-data-ui-svg-caret");r&&w.value.removeChild(r);const o=X.value.every(v=>!v||v==="");i||o||L.value.push({id:G(),type:"text",x:Y.value.x,y:Y.value.y,color:D.value,fontSize:P.value,lines:X.value.map(v=>v)}),h.value&&w.value&&w.value.contains(h.value)&&w.value.removeChild(h.value),q.value=!1,h.value=null,X.value=[""],E.value={row:0,col:0}}const H=t.computed(()=>d.lightenHexColor(U.color,.6));function ee({width:i,height:r}){K.value=`0 0 ${i} ${r}`}const _=t.ref(null);t.onMounted(()=>{t.nextTick(()=>{if(U.parent){_.value=new ResizeObserver(o=>{for(const u of o){const{width:v,height:f}=u.contentRect;ee({width:v,height:f})}}),_.value.observe(U.parent);const{width:i,height:r}=U.parent.getBoundingClientRect();ee({width:i,height:r})}}),w.value=R.value.querySelector("g")}),t.onBeforeUnmount(()=>{_.value&&_.value.disconnect()}),t.watch(()=>U.parent,i=>{if(!i)return;const{width:r,height:o}=U.parent.getBoundingClientRect();ee({width:r,height:o})},{immediate:!0}),t.watch(m,i=>{var r,o;i==="text"?(r=R.value)==null||r.addEventListener("mousedown",re):(o=R.value)==null||o.removeEventListener("mousedown",re)});const Z=t.ref(!1),N=t.ref(""),R=t.ref(null);function me(i){if(m.value!=="draw"||!R.value)return;Z.value=!0;const{x:r,y:o}=F(i);N.value=`M ${r} ${o}`}function be(i){if(!Z.value||!R.value)return;const{x:r,y:o}=F(i);N.value+=` ${r} ${o}`}function l(i){const r=i.trim().split(/\s+/);if(r.length<4)return i;const o=r.slice(1).map(Number);if(o.length%2!==0)return i;const u=ve(o),v=[`M ${u[0]} ${u[1]}`];for(let T=2;T<u.length-2;T+=2){const B=u[T-2],p=u[T-1],M=u[T],$=u[T+1],g=(B+M)/2,c=(p+$)/2;v.push(`Q ${B} ${p} ${g} ${c}`)}const f=u[u.length-2],a=u[u.length-1];return v.push(`L ${f} ${a}`),v.join(" ")}function ve(i,r=1){const o=[...i];for(let u=2;u<i.length-2;u+=2){const v=i[u],f=i[u+1],a=i[u-2],T=i[u-1],B=i[u+2],p=i[u+3];o[u]=v+r*((a+B)/2-v),o[u+1]=f+r*((T+p)/2-f)}return o}function xe(i){const r=i.trim().split(/\s+/);let o="",u="",v=null,f=null;for(let a=0;a<r.length;a+=1){const T=r[a];if(isNaN(T)){if(u=T,u==="M"||u==="L")v=parseFloat(r[++a]),f=parseFloat(r[++a]),o+=`${u}${v} ${f}`;else if(u==="Q"){const B=parseFloat(r[++a]),p=parseFloat(r[++a]),M=parseFloat(r[++a]),$=parseFloat(r[++a]);B===v&&p===f?o+=`t${M-v} ${$-f}`:o+=`q${B-v} ${p-f} ${M-v} ${$-f}`,v=M,f=$}}else{const B=parseFloat(T),p=parseFloat(r[++a]);if(u==="L"){const M=B-v,$=p-f;M===0?o+=`v${$}`:$===0?o+=`h${M}`:o+=`l${M} ${$}`,v=B,f=p}else if(u==="Q"){const M=B,$=p,g=parseFloat(r[++a]),c=parseFloat(r[++a]);M===v&&$===f?o+=`t${g-v} ${c-f}`:o+=`q${M-v} ${$-f} ${g-v} ${c-f}`,v=g,f=c}}}return o}function ae(){Z.value&&(L.value.push({id:G(),strokeWidth:y.value,path:xe(l(N.value)),color:D.value}),V.value=[],N.value=""),Z.value=!1}function F(i){if(!R.value)return{x:0,y:0};const r=R.value.getBoundingClientRect();let o,u;return i.touches&&i.touches.length?(o=i.touches[0].clientX,u=i.touches[0].clientY):(o=i.clientX,u=i.clientY),{x:o-r.left,y:u-r.top}}function ke(){if(L.value.length>0){const i=L.value.pop();V.value.push(i)}}function Ce(){if(V.value.length>0){const i=V.value.pop();L.value.push(i)}}function Le(){L.value=[],V.value=[]}const de=t.ref(null);return(i,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[z.active?(t.openBlock(),t.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:t.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:z.active}),style:t.normalizeStyle({backgroundColor:z.backgroundColor})},[t.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:r[0]||(r[0]=o=>Be("close"))},[t.createVNode(ge.default,{name:"close",stroke:z.color},null,8,["stroke"])],4),t.createElementVNode("button",kt,[t.createVNode(xt.ColorPicker,{value:D.value,"onUpdate:value":r[1]||(r[1]=o=>D.value=o),backgroundColor:z.backgroundColor,buttonBorderColor:H.value},null,8,["value","backgroundColor","buttonBorderColor"])]),t.createElementVNode("button",{class:t.normalizeClass(["vue-ui-pen-and-paper-action",{"vue-ui-pen-and-paper-action-active":m.value==="text"}]),onClick:r[2]||(r[2]=o=>m.value=m.value==="text"?"draw":"text"),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`})},[t.createVNode(ge.default,{name:m.value==="draw"?"annotator":"text",stroke:z.color},null,8,["name","stroke"]),t.createElementVNode("div",{style:t.normalizeStyle({position:"absolute",bottom:"-20px",color:H.value,width:"100%",textAlign:"center",fontSize:"12px"})},t.toDisplayString(t.unref(d.dataLabel)({v:m.value==="draw"?y.value:P.value,s:"px",r:1})),5)],6),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length}),disabled:!L.value.length,style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`,marginTop:"20px"}),onClick:ke},[t.createVNode(ge.default,{name:"restart",stroke:z.color},null,8,["stroke"])],14,Ct),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!V.value.length}),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Ce},[t.createVNode(ge.default,{name:"restart",stroke:z.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),t.createElementVNode("button",{class:t.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length},"vue-ui-pen-and-paper-action"]),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Le},[t.createVNode(ge.default,{name:"trash",stroke:z.color},null,8,["stroke"])],6),m.value==="draw"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":r[3]||(r[3]=o=>y.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,y.value]]):t.createCommentVNode("",!0),m.value==="text"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:3,max:48,step:.1,"onUpdate:modelValue":r[4]||(r[4]=o=>P.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,P.value]]):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),(t.openBlock(),t.createElementBlock("svg",{"data-mode":m.value,ref_key:"svgElement",ref:R,xmlns:t.unref(d.XMLNS),viewBox:K.value,class:t.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!z.active}),onMousedown:me,onMousemove:be,onMouseup:ae,onMouseleave:ae,onTouchstart:t.withModifiers(me,["prevent"]),onTouchmove:t.withModifiers(be,["prevent"]),onTouchend:ae},[t.createElementVNode("g",{ref_key:"G",ref:w},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.id},[o.path&&o.path.replace("M","").split(" ").length===2?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:o.path.replace("M","").split(" ")[0],cy:o.path.replace("M","").split(" ")[1],r:o.strokeWidth/2,fill:o.color},null,8,wt)):o.path?(t.openBlock(),t.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:o.path,stroke:o.color,"stroke-width":o.strokeWidth,fill:"none"},null,8,St)):o.type==="text"?(t.openBlock(),t.createElementBlock("text",{key:2,x:o.x,y:o.y,fill:o.color,"font-size":o.fontSize,"font-family":"sans-serif","dominant-baseline":"hanging",class:"vue-ui-pen-and-paper-text"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.lines,(u,v)=>(t.openBlock(),t.createElementBlock("tspan",{key:v,x:o.x,dy:v===0?"0":o.fontSize*1.2},t.toDisplayString(u.length?u:""),9,$t))),128))],8,zt)):t.createCommentVNode("",!0)],64))),128))],512),Z.value?(t.openBlock(),t.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:l(N.value),stroke:D.value,"stroke-width":y.value*1.1,fill:"none"},null,8,Tt)):t.createCommentVNode("",!0)],42,Lt))],64))}},Bt=We._export_sfc(Et,[["__scopeId","data-v-14478ba4"]]),Mt=["id"],Nt=["onClick"],Pt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],At={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(z,{expose:Ee,emit:U}){const{vue_ui_xy_canvas:Be}=d.useConfig(),L=z,V=t.ref(d.createUid()),K=t.ref(null),D=t.ref(null),y=t.ref(null),m=t.ref(1),w=t.ref(1),q=t.ref(!1),h=t.ref(null),Y=t.ref(""),X=t.ref(null),E=t.ref([]),P=t.ref(1),W=t.ref(!0),G=t.ref(!0),ne=t.ref(null),re=t.ref(0),ue=t.ref(0),J=t.ref(!1),se=t.ref(null),ie=t.ref(null),ce=t.ref(null),H=t.ref(null),ee=t.ref(0),_=t.ref(0),Z=t.ref(0),N=t.ref(null),R=t.computed(()=>!!L.dataset&&L.dataset.length),me=U,be=t.useSlots();t.onMounted(()=>{be["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const l=t.computed({get:()=>ke(),set:e=>e}),{userOptionsVisible:ve,setUserOptionsVisibility:xe,keepUserOptionState:ae}=mt.useUserOptionState({config:l.value}),{svgRef:F}=bt.useChartAccessibility({config:l.value.style.chart.title});function ke(){const e=qe.useNestedProp({userConfig:L.config,defaultConfig:Be});let n={};return e.theme?n={...qe.useNestedProp({userConfig:d.themes.vue_ui_xy_canvas[e.theme]||L.config,defaultConfig:e}),customPalette:d.themePalettes[e.theme]||d.palette}:n=e,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.min")?n.style.chart.scale.min=L.config.style.chart.scale.min:n.style.chart.scale.min=null,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.max")?n.style.chart.scale.max=L.config.style.chart.scale.max:n.style.chart.scale.max=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.startIndex")?n.style.chart.zoom.startIndex=L.config.style.chart.zoom.startIndex:n.style.chart.zoom.startIndex=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.endIndex")?n.style.chart.zoom.endIndex=L.config.style.chart.zoom.endIndex:n.style.chart.zoom.endIndex=null,n}t.watch(()=>L.config,e=>{l.value=ke(),ve.value=!l.value.userOptions.showOnChartHover,Me(),ee.value+=1,_.value+=1,Z.value+=1,o.value.showTable=l.value.table.show,o.value.showDataLabels=l.value.style.chart.dataLabels.show,o.value.stacked=l.value.style.chart.stacked,o.value.showTooltip=l.value.style.chart.tooltip.show},{deep:!0}),t.watch(()=>L.dataset,()=>{Me(),ee.value+=1,_.value+=1,Z.value+=1},{deep:!0});const Ce=t.ref(l.value.style.chart.aspectRatio),{isPrinting:Le,isImaging:de,generatePdf:i,generateImage:r}=Ue.usePrinter({elementId:`xy_canvas_${V.value}`,fileName:l.value.style.chart.title.text||"vue-ui-xy-canvas",options:l.value.userOptions.print}),o=t.ref({showTable:l.value.table.show,showDataLabels:l.value.style.chart.dataLabels.show,stacked:l.value.style.chart.stacked,showTooltip:l.value.style.chart.tooltip.show});function u(e){J.value=e,ue.value+=1}const v=t.computed(()=>d.convertCustomPalette(l.value.customPalette)),f=t.computed(()=>$.value?Math.max(...$.value.filter((e,n)=>!E.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=t.computed(()=>{const e=m.value-m.value*(l.value.style.chart.paddingProportions.left+l.value.style.chart.paddingProportions.right);return{canvasWidth:m.value,canvasHeight:w.value,left:m.value*l.value.style.chart.paddingProportions.left,top:w.value*l.value.style.chart.paddingProportions.top,right:m.value-m.value*l.value.style.chart.paddingProportions.right,bottom:w.value-w.value*l.value.style.chart.paddingProportions.bottom,width:e,height:w.value-w.value*(l.value.style.chart.paddingProportions.top+l.value.style.chart.paddingProportions.bottom),slot:e/(c.value.end-c.value.start)}});function T(e,n){return e/n}function B({hasAutoScale:e,series:n,min:s,max:b,scale:C,yOffset:A,individualHeight:k,stackIndex:S=null}){return n.map((te,O)=>{const Q=C.min<0?Math.abs(C.min):0,le=T(te+Q,Q+C.max);let ye,pe;e&&(ye=C.min,pe=T(te-ye,C.max-ye));let j=0;return S===null?j=a.value.bottom-a.value.height*(e?pe:le):j=a.value.bottom-A-k*(e?pe:le),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:j,value:te}})}const p=t.computed(()=>{const e=l.value.style.chart.scale.min!==null?l.value.style.chart.scale.min:Math.min(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),n=l.value.style.chart.scale.max!==null?l.value.style.chart.scale.max:Math.max(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),s=d.calculateNiceScale(e<0?e:0,n===e?e+1<0?0:e+1:n<0?0:n,l.value.style.chart.scale.ticks),b=s.min<0?Math.abs(s.min):0,C=a.value.bottom-a.value.height*(b/(s.max+b)),A=s.ticks.map(k=>({y:a.value.bottom-a.value.height*((k+b)/(s.max+b)),x:a.value.left-8,value:k}));return{absoluteMin:b,max:n,min:e,scale:s,yLabels:A,zero:C}}),M=t.computed(()=>g.value.map(e=>`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),d=require("./index-C2dCPlLw.cjs"),x=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-Br3lB3d1.cjs"),dt=require("./Legend-BrWxrvx1.cjs"),ht=require("./Title-s-4wtmyf.cjs"),ft=require("./Slicer-DKf0nwex.cjs"),Ue=require("./usePrinter-B7OpKMf9.cjs"),yt=require("./vue-ui-accordion-CEJghMx7.cjs"),pt=require("./DataTable-DEFs-EaT.cjs"),gt=require("./vue-ui-skeleton-CfkVGDBV.cjs"),qe=require("./useNestedProp-Coe_9w4h.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),ge=require("./BaseIcon-C2o75ceK.cjs"),xt=require("./ColorPicker-Dm8-2J-c.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Ct=["disabled"],Lt=["data-mode","xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],zt=["x","y","fill","font-size"],$t=["x","dy"],Tt=["d","stroke","stroke-width"],Et={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup(z,{emit:Ee}){const U=z,Be=Ee,L=t.ref([]),V=t.ref([]),K=t.ref("0 0 0 0"),D=t.ref(U.color),y=t.ref(1),m=t.ref("draw"),w=t.ref(null),q=t.ref(!1),h=t.ref(null),Y=t.ref({x:0,y:0}),X=t.ref([""]),E=t.ref({row:0,col:0}),P=t.ref(16);let W=1;function G(){return W++}function ne(i){var a;const r=R.value;if(!r)return{x:0,y:0};const o=r.createSVGPoint();let u=i.clientX,v=i.clientY;i.touches&&i.touches.length&&(u=i.touches[0].clientX,v=i.touches[0].clientY),o.x=u,o.y=v;const f=(a=r.getScreenCTM())==null?void 0:a.inverse();return f?o.matrixTransform(f):{x:0,y:0}}function re(i){if(!w.value||m.value!=="text"||q.value)return;const{x:r,y:o}=ne(i);Y.value={x:r,y:o},X.value=[""],E.value={row:0,col:0};const u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("x",r),u.setAttribute("y",o),u.setAttribute("fill",D.value),u.setAttribute("font-size",P.value),u.setAttribute("font-family","sans-serif"),u.setAttribute("class","vue-data-ui-doodle"),u.setAttribute("dominant-baseline","hanging"),u.setAttribute("pointer-events","all");const v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttribute("x",r),v.setAttribute("dy","0"),v.textContent="",u.appendChild(v),u.style.pointerEvents="none",u.style.userSelect="none",w.value.appendChild(u),h.value=u,q.value=!0,window.addEventListener("keydown",ue),window.addEventListener("mousedown",ie,!0),J(),se()}function ue(i){if(!q.value)return;let{row:r,col:o}=E.value,u=X.value.slice(),v=!1;if(i.key==="Enter"){const f=u[r],a=f.slice(0,o),T=f.slice(o);u.splice(r,1,a,T),r+=1,o=0,v=!0,i.preventDefault()}else if(i.key==="Backspace"){if(o>0)u[r]=u[r].slice(0,o-1)+u[r].slice(o),o-=1,v=!0;else if(r>0){const f=u[r-1].length;u[r-1]+=u[r],u.splice(r,1),r-=1,o=f,v=!0}i.preventDefault()}else if(i.key==="Delete")o<u[r].length?(u[r]=u[r].slice(0,o)+u[r].slice(o+1),v=!0):r<u.length-1&&(u[r]+=u[r+1],u.splice(r+1,1),v=!0),i.preventDefault();else if(i.key==="ArrowLeft")o>0?o-=1:r>0&&(r-=1,o=u[r].length),v=!0,i.preventDefault();else if(i.key==="ArrowRight")o<u[r].length?o+=1:r<u.length-1&&(r+=1,o=0),v=!0,i.preventDefault();else if(i.key==="ArrowUp")r>0&&(r-=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key==="ArrowDown")r<u.length-1&&(r+=1,o=Math.min(o,u[r].length),v=!0),i.preventDefault();else if(i.key.length===1&&!i.ctrlKey&&!i.metaKey&&!i.altKey)u[r]=u[r].slice(0,o)+i.key+u[r].slice(o),o+=1,v=!0,i.preventDefault();else if(i.key==="Escape"){ce(!0);return}else i.key==="Tab"&&i.preventDefault();v&&(X.value=u,E.value={row:r,col:o},J(),se())}function J(){const i=h.value,{x:r,y:o}=Y.value;for(;i.firstChild;)i.removeChild(i.firstChild);X.value.forEach((u,v)=>{const f=document.createElementNS("http://www.w3.org/2000/svg","tspan");f.setAttribute("x",r),f.setAttribute("dy",v===0?"0":`${P.value*1.2}`),f.textContent=u.length?u:"",i.appendChild(f)})}function se(){const i=w.value.querySelector(".vue-data-ui-svg-caret");i&&w.value.removeChild(i);const r=h.value;if(!r)return;const{x:o,y:u}=Y.value,{row:v,col:f}=E.value,a=P.value,T=r.childNodes[v];if(!T)return;let B=T.textContent.slice(0,f);B.endsWith(" ")&&(B+=" ");const p=document.createElementNS("http://www.w3.org/2000/svg","text");p.setAttribute("x",o),p.setAttribute("y",u),p.setAttribute("font-size",a),p.setAttribute("font-family","sans-serif"),p.textContent=B||"",w.value.appendChild(p);const M=p.getBBox();w.value.removeChild(p);let $=u+v*a*1.2,g=o+M.width;const c=document.createElementNS("http://www.w3.org/2000/svg","rect");c.setAttribute("x",g),c.setAttribute("y",$),c.setAttribute("width",1),c.setAttribute("height",a),c.setAttribute("fill",D.value),c.setAttribute("class","vue-data-ui-svg-caret"),w.value.appendChild(c)}function ie(i){if(h.value&&!h.value.contains(i.target)){const r=h.value.children;r.length===1&&(r[0].textContent===""||r[0].textContent==="")&&h.value.remove(),ce(!1)}}function ce(i=!1){var u;window.removeEventListener("keydown",ue),window.removeEventListener("mousedown",ie,!0);const r=(u=w.value)==null?void 0:u.querySelector(".vue-data-ui-svg-caret");r&&w.value.removeChild(r);const o=X.value.every(v=>!v||v==="");i||o||L.value.push({id:G(),type:"text",x:Y.value.x,y:Y.value.y,color:D.value,fontSize:P.value,lines:X.value.map(v=>v)}),h.value&&w.value&&w.value.contains(h.value)&&w.value.removeChild(h.value),q.value=!1,h.value=null,X.value=[""],E.value={row:0,col:0}}const H=t.computed(()=>d.lightenHexColor(U.color,.6));function ee({width:i,height:r}){K.value=`0 0 ${i} ${r}`}const _=t.ref(null);t.onMounted(()=>{t.nextTick(()=>{if(U.parent){_.value=new ResizeObserver(o=>{for(const u of o){const{width:v,height:f}=u.contentRect;ee({width:v,height:f})}}),_.value.observe(U.parent);const{width:i,height:r}=U.parent.getBoundingClientRect();ee({width:i,height:r})}}),w.value=R.value.querySelector("g")}),t.onBeforeUnmount(()=>{_.value&&_.value.disconnect()}),t.watch(()=>U.parent,i=>{if(!i)return;const{width:r,height:o}=U.parent.getBoundingClientRect();ee({width:r,height:o})},{immediate:!0}),t.watch(m,i=>{var r,o;i==="text"?(r=R.value)==null||r.addEventListener("mousedown",re):(o=R.value)==null||o.removeEventListener("mousedown",re)});const Z=t.ref(!1),N=t.ref(""),R=t.ref(null);function me(i){if(m.value!=="draw"||!R.value)return;Z.value=!0;const{x:r,y:o}=F(i);N.value=`M ${r} ${o}`}function be(i){if(!Z.value||!R.value)return;const{x:r,y:o}=F(i);N.value+=` ${r} ${o}`}function l(i){const r=i.trim().split(/\s+/);if(r.length<4)return i;const o=r.slice(1).map(Number);if(o.length%2!==0)return i;const u=ve(o),v=[`M ${u[0]} ${u[1]}`];for(let T=2;T<u.length-2;T+=2){const B=u[T-2],p=u[T-1],M=u[T],$=u[T+1],g=(B+M)/2,c=(p+$)/2;v.push(`Q ${B} ${p} ${g} ${c}`)}const f=u[u.length-2],a=u[u.length-1];return v.push(`L ${f} ${a}`),v.join(" ")}function ve(i,r=1){const o=[...i];for(let u=2;u<i.length-2;u+=2){const v=i[u],f=i[u+1],a=i[u-2],T=i[u-1],B=i[u+2],p=i[u+3];o[u]=v+r*((a+B)/2-v),o[u+1]=f+r*((T+p)/2-f)}return o}function xe(i){const r=i.trim().split(/\s+/);let o="",u="",v=null,f=null;for(let a=0;a<r.length;a+=1){const T=r[a];if(isNaN(T)){if(u=T,u==="M"||u==="L")v=parseFloat(r[++a]),f=parseFloat(r[++a]),o+=`${u}${v} ${f}`;else if(u==="Q"){const B=parseFloat(r[++a]),p=parseFloat(r[++a]),M=parseFloat(r[++a]),$=parseFloat(r[++a]);B===v&&p===f?o+=`t${M-v} ${$-f}`:o+=`q${B-v} ${p-f} ${M-v} ${$-f}`,v=M,f=$}}else{const B=parseFloat(T),p=parseFloat(r[++a]);if(u==="L"){const M=B-v,$=p-f;M===0?o+=`v${$}`:$===0?o+=`h${M}`:o+=`l${M} ${$}`,v=B,f=p}else if(u==="Q"){const M=B,$=p,g=parseFloat(r[++a]),c=parseFloat(r[++a]);M===v&&$===f?o+=`t${g-v} ${c-f}`:o+=`q${M-v} ${$-f} ${g-v} ${c-f}`,v=g,f=c}}}return o}function ae(){Z.value&&(L.value.push({id:G(),strokeWidth:y.value,path:xe(l(N.value)),color:D.value}),V.value=[],N.value=""),Z.value=!1}function F(i){if(!R.value)return{x:0,y:0};const r=R.value.getBoundingClientRect();let o,u;return i.touches&&i.touches.length?(o=i.touches[0].clientX,u=i.touches[0].clientY):(o=i.clientX,u=i.clientY),{x:o-r.left,y:u-r.top}}function ke(){if(L.value.length>0){const i=L.value.pop();V.value.push(i)}}function Ce(){if(V.value.length>0){const i=V.value.pop();L.value.push(i)}}function Le(){L.value=[],V.value=[]}const de=t.ref(null);return(i,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[z.active?(t.openBlock(),t.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:t.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:z.active}),style:t.normalizeStyle({backgroundColor:z.backgroundColor})},[t.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:r[0]||(r[0]=o=>Be("close"))},[t.createVNode(ge.default,{name:"close",stroke:z.color},null,8,["stroke"])],4),t.createElementVNode("button",kt,[t.createVNode(xt.ColorPicker,{value:D.value,"onUpdate:value":r[1]||(r[1]=o=>D.value=o),backgroundColor:z.backgroundColor,buttonBorderColor:H.value},null,8,["value","backgroundColor","buttonBorderColor"])]),t.createElementVNode("button",{class:t.normalizeClass(["vue-ui-pen-and-paper-action",{"vue-ui-pen-and-paper-action-active":m.value==="text"}]),onClick:r[2]||(r[2]=o=>m.value=m.value==="text"?"draw":"text"),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`})},[t.createVNode(ge.default,{name:m.value==="draw"?"annotator":"text",stroke:z.color},null,8,["name","stroke"]),t.createElementVNode("div",{style:t.normalizeStyle({position:"absolute",bottom:"-20px",color:H.value,width:"100%",textAlign:"center",fontSize:"12px"})},t.toDisplayString(t.unref(d.dataLabel)({v:m.value==="draw"?y.value:P.value,s:"px",r:1})),5)],6),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length}),disabled:!L.value.length,style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`,marginTop:"20px"}),onClick:ke},[t.createVNode(ge.default,{name:"restart",stroke:z.color},null,8,["stroke"])],14,Ct),t.createElementVNode("button",{class:t.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!V.value.length}),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Ce},[t.createVNode(ge.default,{name:"restart",stroke:z.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),t.createElementVNode("button",{class:t.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!L.value.length},"vue-ui-pen-and-paper-action"]),style:t.normalizeStyle({backgroundColor:z.backgroundColor,border:`1px solid ${H.value}`}),onClick:Le},[t.createVNode(ge.default,{name:"trash",stroke:z.color},null,8,["stroke"])],6),m.value==="draw"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:0,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":r[3]||(r[3]=o=>y.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,y.value]]):t.createCommentVNode("",!0),m.value==="text"?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,ref_key:"range",ref:de,type:"range",class:"vertical-range",min:3,max:48,step:.1,"onUpdate:modelValue":r[4]||(r[4]=o=>P.value=o),style:t.normalizeStyle({accentColor:z.color})},null,4)),[[t.vModelText,P.value]]):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),(t.openBlock(),t.createElementBlock("svg",{"data-mode":m.value,ref_key:"svgElement",ref:R,xmlns:t.unref(d.XMLNS),viewBox:K.value,class:t.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!z.active}),onMousedown:me,onMousemove:be,onMouseup:ae,onMouseleave:ae,onTouchstart:t.withModifiers(me,["prevent"]),onTouchmove:t.withModifiers(be,["prevent"]),onTouchend:ae},[t.createElementVNode("g",{ref_key:"G",ref:w},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,o=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o.id},[o.path&&o.path.replace("M","").split(" ").length===2?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:o.path.replace("M","").split(" ")[0],cy:o.path.replace("M","").split(" ")[1],r:o.strokeWidth/2,fill:o.color},null,8,wt)):o.path?(t.openBlock(),t.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:o.path,stroke:o.color,"stroke-width":o.strokeWidth,fill:"none"},null,8,St)):o.type==="text"?(t.openBlock(),t.createElementBlock("text",{key:2,x:o.x,y:o.y,fill:o.color,"font-size":o.fontSize,"font-family":"sans-serif","dominant-baseline":"hanging",class:"vue-ui-pen-and-paper-text"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.lines,(u,v)=>(t.openBlock(),t.createElementBlock("tspan",{key:v,x:o.x,dy:v===0?"0":o.fontSize*1.2},t.toDisplayString(u.length?u:""),9,$t))),128))],8,zt)):t.createCommentVNode("",!0)],64))),128))],512),Z.value?(t.openBlock(),t.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:l(N.value),stroke:D.value,"stroke-width":y.value*1.1,fill:"none"},null,8,Tt)):t.createCommentVNode("",!0)],42,Lt))],64))}},Bt=We._export_sfc(Et,[["__scopeId","data-v-14478ba4"]]),Mt=["id"],Nt=["onClick"],Pt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],At={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(z,{expose:Ee,emit:U}){const{vue_ui_xy_canvas:Be}=d.useConfig(),L=z,V=t.ref(d.createUid()),K=t.ref(null),D=t.ref(null),y=t.ref(null),m=t.ref(1),w=t.ref(1),q=t.ref(!1),h=t.ref(null),Y=t.ref(""),X=t.ref(null),E=t.ref([]),P=t.ref(1),W=t.ref(!0),G=t.ref(!0),ne=t.ref(null),re=t.ref(0),ue=t.ref(0),J=t.ref(!1),se=t.ref(null),ie=t.ref(null),ce=t.ref(null),H=t.ref(null),ee=t.ref(0),_=t.ref(0),Z=t.ref(0),N=t.ref(null),R=t.computed(()=>!!L.dataset&&L.dataset.length),me=U,be=t.useSlots();t.onMounted(()=>{be["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const l=t.computed({get:()=>ke(),set:e=>e}),{userOptionsVisible:ve,setUserOptionsVisibility:xe,keepUserOptionState:ae}=mt.useUserOptionState({config:l.value}),{svgRef:F}=bt.useChartAccessibility({config:l.value.style.chart.title});function ke(){const e=qe.useNestedProp({userConfig:L.config,defaultConfig:Be});let n={};return e.theme?n={...qe.useNestedProp({userConfig:d.themes.vue_ui_xy_canvas[e.theme]||L.config,defaultConfig:e}),customPalette:d.themePalettes[e.theme]||d.palette}:n=e,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.min")?n.style.chart.scale.min=L.config.style.chart.scale.min:n.style.chart.scale.min=null,L.config&&d.hasDeepProperty(L.config,"style.chart.scale.max")?n.style.chart.scale.max=L.config.style.chart.scale.max:n.style.chart.scale.max=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.startIndex")?n.style.chart.zoom.startIndex=L.config.style.chart.zoom.startIndex:n.style.chart.zoom.startIndex=null,L.config&&d.hasDeepProperty(L.config,"style.chart.zoom.endIndex")?n.style.chart.zoom.endIndex=L.config.style.chart.zoom.endIndex:n.style.chart.zoom.endIndex=null,n}t.watch(()=>L.config,e=>{l.value=ke(),ve.value=!l.value.userOptions.showOnChartHover,Me(),ee.value+=1,_.value+=1,Z.value+=1,o.value.showTable=l.value.table.show,o.value.showDataLabels=l.value.style.chart.dataLabels.show,o.value.stacked=l.value.style.chart.stacked,o.value.showTooltip=l.value.style.chart.tooltip.show},{deep:!0}),t.watch(()=>L.dataset,()=>{Me(),ee.value+=1,_.value+=1,Z.value+=1},{deep:!0});const Ce=t.ref(l.value.style.chart.aspectRatio),{isPrinting:Le,isImaging:de,generatePdf:i,generateImage:r}=Ue.usePrinter({elementId:`xy_canvas_${V.value}`,fileName:l.value.style.chart.title.text||"vue-ui-xy-canvas",options:l.value.userOptions.print}),o=t.ref({showTable:l.value.table.show,showDataLabels:l.value.style.chart.dataLabels.show,stacked:l.value.style.chart.stacked,showTooltip:l.value.style.chart.tooltip.show});function u(e){J.value=e,ue.value+=1}const v=t.computed(()=>d.convertCustomPalette(l.value.customPalette)),f=t.computed(()=>$.value?Math.max(...$.value.filter((e,n)=>!E.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=t.computed(()=>{const e=m.value-m.value*(l.value.style.chart.paddingProportions.left+l.value.style.chart.paddingProportions.right);return{canvasWidth:m.value,canvasHeight:w.value,left:m.value*l.value.style.chart.paddingProportions.left,top:w.value*l.value.style.chart.paddingProportions.top,right:m.value-m.value*l.value.style.chart.paddingProportions.right,bottom:w.value-w.value*l.value.style.chart.paddingProportions.bottom,width:e,height:w.value-w.value*(l.value.style.chart.paddingProportions.top+l.value.style.chart.paddingProportions.bottom),slot:e/(c.value.end-c.value.start)}});function T(e,n){return e/n}function B({hasAutoScale:e,series:n,min:s,max:b,scale:C,yOffset:A,individualHeight:k,stackIndex:S=null}){return n.map((te,O)=>{const Q=C.min<0?Math.abs(C.min):0,le=T(te+Q,Q+C.max);let ye,pe;e&&(ye=C.min,pe=T(te-ye,C.max-ye));let j=0;return S===null?j=a.value.bottom-a.value.height*(e?pe:le):j=a.value.bottom-A-k*(e?pe:le),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:j,value:te}})}const p=t.computed(()=>{const e=l.value.style.chart.scale.min!==null?l.value.style.chart.scale.min:Math.min(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),n=l.value.style.chart.scale.max!==null?l.value.style.chart.scale.max:Math.max(...$.value.filter((k,S)=>!E.value.includes(k.absoluteIndex)).flatMap(k=>k.series.slice(c.value.start,c.value.end))),s=d.calculateNiceScale(e<0?e:0,n===e?e+1<0?0:e+1:n<0?0:n,l.value.style.chart.scale.ticks),b=s.min<0?Math.abs(s.min):0,C=a.value.bottom-a.value.height*(b/(s.max+b)),A=s.ticks.map(k=>({y:a.value.bottom-a.value.height*((k+b)/(s.max+b)),x:a.value.left-8,value:k}));return{absoluteMin:b,max:n,min:e,scale:s,yLabels:A,zero:C}}),M=t.computed(()=>g.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t="2.7.7-beta.1",n={"aria-hidden":"true"},s={__name:"PackageVersion",setup(c){return(r,o)=>(e.openBlock(),e.createElementBlock("desc",n,"Composed with Vue Data UI "+e.toDisplayString(e.unref(t)),1))}};exports._sfc_main=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),A=require("./pdf-Bihl06mH.cjs"),G=require("./useNestedProp-C4sQAs2T.cjs"),$=require("./index-B8vOvwaf.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K={key:0,"data-dom-to-png-ignore":"",style:{width:"100%",display:"flex","justify-content":"end"}},Q=["disabled"],Z=["stroke"],ee={key:1},te=["id"],oe=["onMousedown","onTouchstart"],ae=["onMousedown","onTouchstart"],le=["onMousedown","onTouchstart"],ne=["onMousedown","onTouchstart"],ue=["onMousedown","onTouchstart"],M=20,se={__name:"vue-ui-dashboard",props:{dataset:Array,config:Object},emits:["change"],setup(x,{expose:S,emit:X}){o.useCssVars(e=>({"2f859c13":F.value,"34772da7":R.value}));const{vue_ui_dashboard:Y}=$.useConfig(),_=x,r=o.computed(()=>G.useNestedProp({userConfig:_.config,defaultConfig:Y})),E=o.ref($.createUid()),d=o.ref(r.value.locked);function V(){d.value=!d.value}const s=o.ref(_.dataset.map((e,t)=>({...e,index:t}))),h=o.ref(null),u=o.ref(null),v=o.ref({x:0,y:0}),f=o.ref({x:0,y:0}),i=o.ref(null),c=o.ref(!1),p=o.ref(null),m=o.ref(!1),b=o.ref(!1);function z(e){const t=e.target;(t.tagName==="INPUT"&&t.type==="range"||t.classList.contains("range-handle"))&&(b.value=!0)}function N(e){const t=e.target;t.tagName==="INPUT"&&t.type==="range"&&(b.value=!1)}function C(){m.value=!0,A.default({domElement:document.getElementById(`vue-ui-dashboard_${E.value}`),fileName:"vue-ui-dashboard"}).finally(()=>{m.value=!1})}function H(e){if(!d.value&&(c.value=!0,p.value=e,u.value===null)){h.value=e,v.value={x:event.clientX,y:event.clientY};const t=s.value[e],l=100-t.width,a=100-t.height;t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left>l&&(t.left=l),t.top>a&&(t.top=a),t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left+t.width>100&&(t.left=100-t.width),t.top+t.height>100&&(t.top=100-t.height)}}function y(e,t){c.value=!0,p.value=e,u.value={index:e,direction:t};const l=s.value[e];f.value={x:event.clientX,y:event.clientY,initialWidth:l.width,initialHeight:l.height}}function B(e,t,l){if(u.value.direction.includes("top")){const a=e.height-l/i.value.offsetHeight*100;a>=M&&(e.top+=l/i.value.offsetHeight*100,e.height=a)}if(u.value.direction.includes("bottom")){const a=e.height+l/i.value.offsetHeight*100;a>=M&&(e.height=a)}if(u.value.direction.includes("left")){const a=e.width-t/i.value.offsetWidth*100;a>=M&&(e.left+=t/i.value.offsetWidth*100,e.width=a)}if(u.value.direction.includes("right")){const a=e.width+t/i.value.offsetWidth*100;a>=M&&(e.width=a)}}function I(e){if(!(d.value||b.value)){if(c.value=!0,h.value!==null){const t=s.value[h.value],l=e.clientX-v.value.x,a=e.clientY-v.value.y,n=t.left+l/i.value.offsetWidth*100,g=t.top+a/i.value.offsetHeight*100;n>=0&&g>=0&&n+t.width<=100&&g+t.height<=100&&(t.left=n,t.top=g),v.value={x:e.clientX,y:e.clientY}}if(u.value!==null){const t=s.value[u.value.index],l=e.clientX-f.value.x,a=e.clientY-f.value.y;B(t,l,a),f.value={x:e.clientX,y:e.clientY}}}}const P=X;o.watch(s,e=>{e&&!c.value&&P("change",s.value)},{deep:!0});function D(){h.value=null,u.value=null,c.value=!1,p.value=null,s.value.forEach(e=>{e.left=Math.round(e.left/100*100),e.top=Math.round(e.top/100*100),e.width=Math.round(e.width/100*100),e.height=Math.round(e.height/100*100)})}function L(e){d.value||b.value||(c.value=!0,p.value=e,u.value===null&&(h.value=e,v.value={x:event.touches[0].clientX,y:event.touches[0].clientY}))}function k(e,t,l){if(c.value=!0,p.value=e,u.value===null){u.value={index:e,direction:t};const a=s.value[e];f.value={x:l.touches[0].clientX,y:l.touches[0].clientY,initialWidth:a.width,initialHeight:a.height}}}function T(e){if(c.value=!0,e.preventDefault(),u.value!==null){const t=s.value[u.value.index],l=e.touches[0].clientX-f.value.x,a=e.touches[0].clientY-f.value.y;B(t,l,a),f.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function W(e){if(!(d.value||b.value)&&(c.value=!0,e.preventDefault(),h.value!==null)){const t=s.value[h.value],l=e.touches[0].clientX-v.value.x,a=e.touches[0].clientY-v.value.y,n=t.left+l/i.value.offsetWidth*100,g=t.top+a/i.value.offsetHeight*100;n>=0&&g>=0&&n+t.width<=100&&g+t.height<=100&&(t.left=n,t.top=g),v.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function w(){c.value=!1,p.value=null,h.value=null,u.value=null,s.value.forEach(e=>{e.left=Math.round(e.left/100*100),e.top=Math.round(e.top/100*100),e.width=Math.round(e.width/100*100),e.height=Math.round(e.height/100*100)})}const F=o.computed(()=>r.value.style.item.borderColor),R=o.computed(()=>r.value.style.resizeHandles.backgroundColor),q=o.computed(()=>r.value.style.board.aspectRatio),O=o.computed(()=>r.value.style.board.backgroundColor),U=o.computed(()=>r.value.style.board.border);function j(){return s.value}return S({generatePdf:C,getItemsPositions:j,toggleLock:V}),(e,t)=>(o.openBlock(),o.createElementBlock("div",{onMousedown:z,onMouseup:N,onTouchstart:z,onTouchend:N},[r.value.allowPrint?(o.openBlock(),o.createElementBlock("div",K,[o.createElementVNode("button",{class:"vue-ui-dashboard-button",onClick:C,disabled:m.value,style:o.normalizeStyle([{"margin-top":"12px"},`color:${r.value.style.board.color}`])},[m.value?(o.openBlock(),o.createElementBlock("svg",{key:0,class:"vue-ui-dashboard-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:r.value.style.board.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},t[4]||(t[4]=[o.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-4f47ba9c></path><path d="M18 16v.01" data-v-4f47ba9c></path><path d="M6 16v.01" data-v-4f47ba9c></path><path d="M12 5v.01" data-v-4f47ba9c></path><path d="M12 12v.01" data-v-4f47ba9c></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-4f47ba9c></path>',6)]),8,Z)):(o.openBlock(),o.createElementBlock("span",ee,"PDF"))],12,Q)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"vue-ui-dashboard-container",ref_key:"dashboardContainer",ref:i,id:`vue-ui-dashboard_${E.value}`,style:o.normalizeStyle(`border:${U.value}; sbackground:${O.value}; aspect-ratio:${q.value}`)},[o.createElementVNode("div",{class:"vue-ui-dashboard-grid-container",ref:"container",onMousemove:I,onMouseup:D,onTouchmove:W,onTouchend:w,style:o.normalizeStyle(`background:${r.value.style.board.backgroundColor}`)},[t[5]||(t[5]=o.createElementVNode("div",{class:"vue-ui-dashboard-grid"},null,-1)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(l,a)=>(o.openBlock(),o.createElementBlock("div",{key:l.id,class:o.normalizeClass({"vue-ui-dashboard-grid-item":!0,"vue-ui-dashboard-grid-item--locked":d.value}),style:o.normalizeStyle({width:`${l.width}%`,height:`${l.height}%`,left:`${l.left}%`,top:`${l.top}%`,cursor:"move",boxShadow:p.value===a?"0 6px 12px -3px rgba(0,0,0,0.3)":"",zIndex:p.value===a?s.value.length+1:l.index,backgroundColor:r.value.style.item.backgroundColor}),onMousedown:n=>H(a),onTouchstart:n=>L(a)},[d.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",onMousedown:n=>y(a,"top-left"),onTouchstart:n=>k(a,"top-left",n),onTouchmove:t[0]||(t[0]=n=>T(n)),onTouchend:w},null,40,ae),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",onMousedown:n=>y(a,"top-right"),onTouchstart:n=>k(a,"top-right",n),onTouchmove:t[1]||(t[1]=n=>T(n)),onTouchend:w},null,40,le),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",onMousedown:n=>y(a,"bottom-left"),onTouchstart:n=>k(a,"bottom-left",n),onTouchmove:t[2]||(t[2]=n=>T(n)),onTouchend:w},null,40,ne),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",onMousedown:n=>y(a,"bottom-right"),onTouchstart:n=>k(a,"bottom-right",n),onTouchmove:t[3]||(t[3]=n=>T(n)),onTouchend:w},null,40,ue)],64)),o.renderSlot(e.$slots,"content",{item:l,index:a,left:l.left,top:l.top,height:l.height,width:l.width},void 0,!0)],46,oe))),128))],36)],12,te)],32))}},re=J._export_sfc(se,[["__scopeId","data-v-4f47ba9c"]]);exports.default=re;
|
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
import { useCssVars as ee, computed as T, ref as s, watch as te, createElementBlock as w, openBlock as y, createCommentVNode as E, createElementVNode as p, normalizeStyle as $, createStaticVNode as oe, Fragment as L, renderList as ae, normalizeClass as le, renderSlot as ne } from "vue";
|
|
2
|
-
import ue from "./pdf-BV7moOjc.js";
|
|
3
|
-
import { u as se } from "./useNestedProp-BFjDbZR0.js";
|
|
4
|
-
import { u as ie, c as re } from "./index-CHhWsvsT.js";
|
|
5
|
-
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const ce = {
|
|
7
|
-
key: 0,
|
|
8
|
-
"data-dom-to-png-ignore": "",
|
|
9
|
-
style: { width: "100%", display: "flex", "justify-content": "end" }
|
|
10
|
-
}, he = ["disabled"], ve = ["stroke"], fe = { key: 1 }, ge = ["id"], pe = ["onMousedown", "onTouchstart"], be = ["onMousedown", "onTouchstart"], we = ["onMousedown", "onTouchstart"], ye = ["onMousedown", "onTouchstart"], Te = ["onMousedown", "onTouchstart"], x = 20, me = {
|
|
11
|
-
__name: "vue-ui-dashboard",
|
|
12
|
-
props: {
|
|
13
|
-
dataset: Array,
|
|
14
|
-
config: Object
|
|
15
|
-
},
|
|
16
|
-
emits: ["change"],
|
|
17
|
-
setup(P, { expose: S, emit: W }) {
|
|
18
|
-
ee((e) => ({
|
|
19
|
-
"2f859c13": G.value,
|
|
20
|
-
"34772da7": q.value
|
|
21
|
-
}));
|
|
22
|
-
const { vue_ui_dashboard: R } = ie(), X = P, i = T(() => se({
|
|
23
|
-
userConfig: X.config,
|
|
24
|
-
defaultConfig: R
|
|
25
|
-
})), Y = s(re()), c = s(i.value.locked);
|
|
26
|
-
function B() {
|
|
27
|
-
c.value = !c.value;
|
|
28
|
-
}
|
|
29
|
-
const u = s(X.dataset.map((e, t) => ({
|
|
30
|
-
...e,
|
|
31
|
-
index: t
|
|
32
|
-
}))), h = s(null), n = s(null), v = s({ x: 0, y: 0 }), f = s({ x: 0, y: 0 }), r = s(null), d = s(!1), g = s(null), k = s(!1), m = s(!1);
|
|
33
|
-
function I(e) {
|
|
34
|
-
const t = e.target;
|
|
35
|
-
(t.tagName === "INPUT" && t.type === "range" || t.classList.contains("range-handle")) && (m.value = !0);
|
|
36
|
-
}
|
|
37
|
-
function N(e) {
|
|
38
|
-
const t = e.target;
|
|
39
|
-
t.tagName === "INPUT" && t.type === "range" && (m.value = !1);
|
|
40
|
-
}
|
|
41
|
-
function H() {
|
|
42
|
-
k.value = !0, ue({
|
|
43
|
-
domElement: document.getElementById(`vue-ui-dashboard_${Y.value}`),
|
|
44
|
-
fileName: "vue-ui-dashboard"
|
|
45
|
-
}).finally(() => {
|
|
46
|
-
k.value = !1;
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function F(e) {
|
|
50
|
-
if (!c.value && (d.value = !0, g.value = e, n.value === null)) {
|
|
51
|
-
h.value = e, v.value = { x: event.clientX, y: event.clientY };
|
|
52
|
-
const t = u.value[e], a = 100 - t.width, o = 100 - t.height;
|
|
53
|
-
t.left < 0 && (t.left = 0), t.top < 0 && (t.top = 0), t.left > a && (t.left = a), t.top > o && (t.top = o), t.left < 0 && (t.left = 0), t.top < 0 && (t.top = 0), t.left + t.width > 100 && (t.left = 100 - t.width), t.top + t.height > 100 && (t.top = 100 - t.height);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function _(e, t) {
|
|
57
|
-
d.value = !0, g.value = e, n.value = { index: e, direction: t };
|
|
58
|
-
const a = u.value[e];
|
|
59
|
-
f.value = { x: event.clientX, y: event.clientY, initialWidth: a.width, initialHeight: a.height };
|
|
60
|
-
}
|
|
61
|
-
function D(e, t, a) {
|
|
62
|
-
if (n.value.direction.includes("top")) {
|
|
63
|
-
const o = e.height - a / r.value.offsetHeight * 100;
|
|
64
|
-
o >= x && (e.top += a / r.value.offsetHeight * 100, e.height = o);
|
|
65
|
-
}
|
|
66
|
-
if (n.value.direction.includes("bottom")) {
|
|
67
|
-
const o = e.height + a / r.value.offsetHeight * 100;
|
|
68
|
-
o >= x && (e.height = o);
|
|
69
|
-
}
|
|
70
|
-
if (n.value.direction.includes("left")) {
|
|
71
|
-
const o = e.width - t / r.value.offsetWidth * 100;
|
|
72
|
-
o >= x && (e.left += t / r.value.offsetWidth * 100, e.width = o);
|
|
73
|
-
}
|
|
74
|
-
if (n.value.direction.includes("right")) {
|
|
75
|
-
const o = e.width + t / r.value.offsetWidth * 100;
|
|
76
|
-
o >= x && (e.width = o);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function U(e) {
|
|
80
|
-
if (!(c.value || m.value)) {
|
|
81
|
-
if (d.value = !0, h.value !== null) {
|
|
82
|
-
const t = u.value[h.value], a = e.clientX - v.value.x, o = e.clientY - v.value.y, l = t.left + a / r.value.offsetWidth * 100, b = t.top + o / r.value.offsetHeight * 100;
|
|
83
|
-
l >= 0 && b >= 0 && l + t.width <= 100 && b + t.height <= 100 && (t.left = l, t.top = b), v.value = { x: e.clientX, y: e.clientY };
|
|
84
|
-
}
|
|
85
|
-
if (n.value !== null) {
|
|
86
|
-
const t = u.value[n.value.index], a = e.clientX - f.value.x, o = e.clientY - f.value.y;
|
|
87
|
-
D(t, a, o), f.value = { x: e.clientX, y: e.clientY };
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
const O = W;
|
|
92
|
-
te(
|
|
93
|
-
u,
|
|
94
|
-
(e) => {
|
|
95
|
-
e && !d.value && O("change", u.value);
|
|
96
|
-
},
|
|
97
|
-
{ deep: !0 }
|
|
98
|
-
);
|
|
99
|
-
function V() {
|
|
100
|
-
h.value = null, n.value = null, d.value = !1, g.value = null, u.value.forEach((e) => {
|
|
101
|
-
e.left = Math.round(e.left / 100 * 100), e.top = Math.round(e.top / 100 * 100), e.width = Math.round(e.width / 100 * 100), e.height = Math.round(e.height / 100 * 100);
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
function j(e) {
|
|
105
|
-
c.value || m.value || (d.value = !0, g.value = e, n.value === null && (h.value = e, v.value = { x: event.touches[0].clientX, y: event.touches[0].clientY }));
|
|
106
|
-
}
|
|
107
|
-
function C(e, t, a) {
|
|
108
|
-
if (d.value = !0, g.value = e, n.value === null) {
|
|
109
|
-
n.value = { index: e, direction: t };
|
|
110
|
-
const o = u.value[e];
|
|
111
|
-
f.value = { x: a.touches[0].clientX, y: a.touches[0].clientY, initialWidth: o.width, initialHeight: o.height };
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
function z(e) {
|
|
115
|
-
if (d.value = !0, e.preventDefault(), n.value !== null) {
|
|
116
|
-
const t = u.value[n.value.index], a = e.touches[0].clientX - f.value.x, o = e.touches[0].clientY - f.value.y;
|
|
117
|
-
D(t, a, o), f.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
function A(e) {
|
|
121
|
-
if (!(c.value || m.value) && (d.value = !0, e.preventDefault(), h.value !== null)) {
|
|
122
|
-
const t = u.value[h.value], a = e.touches[0].clientX - v.value.x, o = e.touches[0].clientY - v.value.y, l = t.left + a / r.value.offsetWidth * 100, b = t.top + o / r.value.offsetHeight * 100;
|
|
123
|
-
l >= 0 && b >= 0 && l + t.width <= 100 && b + t.height <= 100 && (t.left = l, t.top = b), v.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
function M() {
|
|
127
|
-
d.value = !1, g.value = null, h.value = null, n.value = null, u.value.forEach((e) => {
|
|
128
|
-
e.left = Math.round(e.left / 100 * 100), e.top = Math.round(e.top / 100 * 100), e.width = Math.round(e.width / 100 * 100), e.height = Math.round(e.height / 100 * 100);
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
const G = T(() => i.value.style.item.borderColor), q = T(() => i.value.style.resizeHandles.backgroundColor), J = T(() => i.value.style.board.aspectRatio), K = T(() => i.value.style.board.backgroundColor), Q = T(() => i.value.style.board.border);
|
|
132
|
-
function Z() {
|
|
133
|
-
return u.value;
|
|
134
|
-
}
|
|
135
|
-
return S({
|
|
136
|
-
generatePdf: H,
|
|
137
|
-
getItemsPositions: Z,
|
|
138
|
-
toggleLock: B
|
|
139
|
-
}), (e, t) => (y(), w("div", {
|
|
140
|
-
onMousedown: I,
|
|
141
|
-
onMouseup: N,
|
|
142
|
-
onTouchstart: I,
|
|
143
|
-
onTouchend: N
|
|
144
|
-
}, [
|
|
145
|
-
i.value.allowPrint ? (y(), w("div", ce, [
|
|
146
|
-
p("button", {
|
|
147
|
-
class: "vue-ui-dashboard-button",
|
|
148
|
-
onClick: H,
|
|
149
|
-
disabled: k.value,
|
|
150
|
-
style: $([{ "margin-top": "12px" }, `color:${i.value.style.board.color}`])
|
|
151
|
-
}, [
|
|
152
|
-
k.value ? (y(), w("svg", {
|
|
153
|
-
key: 0,
|
|
154
|
-
class: "vue-ui-dashboard-print-icon",
|
|
155
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
156
|
-
width: "20",
|
|
157
|
-
height: "20",
|
|
158
|
-
viewBox: "0 0 24 24",
|
|
159
|
-
"stroke-width": "1.5",
|
|
160
|
-
stroke: i.value.style.board.color,
|
|
161
|
-
fill: "none",
|
|
162
|
-
"stroke-linecap": "round",
|
|
163
|
-
"stroke-linejoin": "round"
|
|
164
|
-
}, t[4] || (t[4] = [
|
|
165
|
-
oe('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-4f47ba9c></path><path d="M18 16v.01" data-v-4f47ba9c></path><path d="M6 16v.01" data-v-4f47ba9c></path><path d="M12 5v.01" data-v-4f47ba9c></path><path d="M12 12v.01" data-v-4f47ba9c></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-4f47ba9c></path>', 6)
|
|
166
|
-
]), 8, ve)) : (y(), w("span", fe, "PDF"))
|
|
167
|
-
], 12, he)
|
|
168
|
-
])) : E("", !0),
|
|
169
|
-
p("div", {
|
|
170
|
-
class: "vue-ui-dashboard-container",
|
|
171
|
-
ref_key: "dashboardContainer",
|
|
172
|
-
ref: r,
|
|
173
|
-
id: `vue-ui-dashboard_${Y.value}`,
|
|
174
|
-
style: $(`border:${Q.value}; sbackground:${K.value}; aspect-ratio:${J.value}`)
|
|
175
|
-
}, [
|
|
176
|
-
p("div", {
|
|
177
|
-
class: "vue-ui-dashboard-grid-container",
|
|
178
|
-
ref: "container",
|
|
179
|
-
onMousemove: U,
|
|
180
|
-
onMouseup: V,
|
|
181
|
-
onTouchmove: A,
|
|
182
|
-
onTouchend: M,
|
|
183
|
-
style: $(`background:${i.value.style.board.backgroundColor}`)
|
|
184
|
-
}, [
|
|
185
|
-
t[5] || (t[5] = p("div", { class: "vue-ui-dashboard-grid" }, null, -1)),
|
|
186
|
-
(y(!0), w(L, null, ae(u.value, (a, o) => (y(), w("div", {
|
|
187
|
-
key: a.id,
|
|
188
|
-
class: le({ "vue-ui-dashboard-grid-item": !0, "vue-ui-dashboard-grid-item--locked": c.value }),
|
|
189
|
-
style: $({
|
|
190
|
-
width: `${a.width}%`,
|
|
191
|
-
height: `${a.height}%`,
|
|
192
|
-
left: `${a.left}%`,
|
|
193
|
-
top: `${a.top}%`,
|
|
194
|
-
cursor: "move",
|
|
195
|
-
boxShadow: g.value === o ? "0 6px 12px -3px rgba(0,0,0,0.3)" : "",
|
|
196
|
-
zIndex: g.value === o ? u.value.length + 1 : a.index,
|
|
197
|
-
backgroundColor: i.value.style.item.backgroundColor
|
|
198
|
-
}),
|
|
199
|
-
onMousedown: (l) => F(o),
|
|
200
|
-
onTouchstart: (l) => j(o)
|
|
201
|
-
}, [
|
|
202
|
-
c.value ? E("", !0) : (y(), w(L, { key: 0 }, [
|
|
203
|
-
p("div", {
|
|
204
|
-
class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",
|
|
205
|
-
onMousedown: (l) => _(o, "top-left"),
|
|
206
|
-
onTouchstart: (l) => C(o, "top-left", l),
|
|
207
|
-
onTouchmove: t[0] || (t[0] = (l) => z(l)),
|
|
208
|
-
onTouchend: M
|
|
209
|
-
}, null, 40, be),
|
|
210
|
-
p("div", {
|
|
211
|
-
class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",
|
|
212
|
-
onMousedown: (l) => _(o, "top-right"),
|
|
213
|
-
onTouchstart: (l) => C(o, "top-right", l),
|
|
214
|
-
onTouchmove: t[1] || (t[1] = (l) => z(l)),
|
|
215
|
-
onTouchend: M
|
|
216
|
-
}, null, 40, we),
|
|
217
|
-
p("div", {
|
|
218
|
-
class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",
|
|
219
|
-
onMousedown: (l) => _(o, "bottom-left"),
|
|
220
|
-
onTouchstart: (l) => C(o, "bottom-left", l),
|
|
221
|
-
onTouchmove: t[2] || (t[2] = (l) => z(l)),
|
|
222
|
-
onTouchend: M
|
|
223
|
-
}, null, 40, ye),
|
|
224
|
-
p("div", {
|
|
225
|
-
class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",
|
|
226
|
-
onMousedown: (l) => _(o, "bottom-right"),
|
|
227
|
-
onTouchstart: (l) => C(o, "bottom-right", l),
|
|
228
|
-
onTouchmove: t[3] || (t[3] = (l) => z(l)),
|
|
229
|
-
onTouchend: M
|
|
230
|
-
}, null, 40, Te)
|
|
231
|
-
], 64)),
|
|
232
|
-
ne(e.$slots, "content", {
|
|
233
|
-
item: a,
|
|
234
|
-
index: o,
|
|
235
|
-
left: a.left,
|
|
236
|
-
top: a.top,
|
|
237
|
-
height: a.height,
|
|
238
|
-
width: a.width
|
|
239
|
-
}, void 0, !0)
|
|
240
|
-
], 46, pe))), 128))
|
|
241
|
-
], 36)
|
|
242
|
-
], 12, ge)
|
|
243
|
-
], 32));
|
|
244
|
-
}
|
|
245
|
-
}, $e = /* @__PURE__ */ de(me, [["__scopeId", "data-v-4f47ba9c"]]);
|
|
246
|
-
export {
|
|
247
|
-
$e as default
|
|
248
|
-
};
|