vue-data-ui 2.3.99 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DwqF2Xky.cjs → Arrow-CbntjQjr.cjs} +1 -1
- package/dist/{Arrow-Dyp57i2e.js → Arrow-NcE21Ngm.js} +1 -1
- package/dist/{BaseIcon-BDeByyf-.cjs → BaseIcon-7IlvRUX2.cjs} +1 -1
- package/dist/{BaseIcon-DHB44s-g.js → BaseIcon-BUTpMnXi.js} +3 -3
- package/dist/{DataTable-CiVu-yQZ.cjs → DataTable-BwH-MU-S.cjs} +1 -1
- package/dist/{DataTable-Dv3mZD4M.js → DataTable-DAgyf9zN.js} +2 -2
- package/dist/{Legend-ComtyeZF.cjs → Legend-CHQgjBuK.cjs} +1 -1
- package/dist/{Legend-iUlykl4S.js → Legend-DBhpIX2x.js} +1 -1
- package/dist/PackageVersion-Djty0wb2.cjs +1 -0
- package/dist/{PackageVersion-DWAqn7t0.js → PackageVersion-wB6dCDZw.js} +1 -1
- package/dist/{Shape-CDqrt_yL.js → Shape-CQVJz33T.js} +1 -1
- package/dist/{Shape-D-cMBFx-.cjs → Shape-DQ0Hh2Gg.cjs} +1 -1
- package/dist/{Slicer-iAp8x_Wq.cjs → Slicer-CiSmaE0_.cjs} +1 -1
- package/dist/{Slicer-CQbVH6fI.js → Slicer-DXw23eOC.js} +2 -2
- package/dist/{Title-Bpx2Ub4Z.cjs → Title-BHmTg9iK.cjs} +1 -1
- package/dist/{Title-CDfZWgra.js → Title-DlVZnHjs.js} +1 -1
- package/dist/{Tooltip-0-aPeOmA.js → Tooltip-CveCRFgK.js} +1 -1
- package/dist/{Tooltip-D-JR_3NK.cjs → Tooltip-DBzXz806.cjs} +1 -1
- package/dist/{index-COTjlcVF.js → index-B0CpCD8z.js} +13 -6
- package/dist/index-Dfhvf8hT.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +6 -0
- package/dist/types/vue-data-ui.d.ts +6 -0
- package/dist/{useNestedProp-CcjyiBlC.js → useNestedProp-DGWP4D-K.js} +1 -1
- package/dist/{useNestedProp-np0rM3ep.cjs → useNestedProp-iuDCMc2p.cjs} +1 -1
- package/dist/{usePrinter-DuYSC89K.cjs → usePrinter-BQQasUin.cjs} +1 -1
- package/dist/{usePrinter-5XpNgqjh.js → usePrinter-Dr30K4cu.js} +1 -1
- package/dist/{vue-data-ui-Bu3V-W6l.js → vue-data-ui-BdSFeW_X.js} +57 -57
- package/dist/{vue-data-ui-D3zaRZjl.cjs → vue-data-ui-BgVPGbxq.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-DmM70v1H.js → vue-ui-3d-bar-C3hYrYTV.js} +8 -8
- package/dist/{vue-ui-3d-bar-C3EecSgn.cjs → vue-ui-3d-bar-DhHuwXZ1.cjs} +1 -1
- package/dist/{vue-ui-accordion-CzKJYxd2.js → vue-ui-accordion-CmENcGVW.js} +3 -3
- package/dist/{vue-ui-accordion-ZppPKpGK.cjs → vue-ui-accordion-Deyo7jw7.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Bkyd3O37.js → vue-ui-age-pyramid-C075Lvfe.js} +9 -9
- package/dist/{vue-ui-age-pyramid-BhmOvXIW.cjs → vue-ui-age-pyramid-DaenyRp2.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bmk4N4Co.js → vue-ui-annotator-Bb6fUz4x.js} +1 -1
- package/dist/{vue-ui-annotator-rwo7Hm5A.cjs → vue-ui-annotator-DslXalSQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-o8m1DAm8.js → vue-ui-candlestick-C4VEOmY_.js} +10 -10
- package/dist/{vue-ui-candlestick-CnYobq1k.cjs → vue-ui-candlestick-CnVzd826.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DLQcAZx4.cjs → vue-ui-carousel-table-Coq4gg_P.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DAck3_R_.js → vue-ui-carousel-table-DZfMMpZ7.js} +4 -4
- package/dist/{vue-ui-chestnut-r6lsB6H0.cjs → vue-ui-chestnut-CLnJ0jmo.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BAQVvxrX.js → vue-ui-chestnut-CUnbj-Zb.js} +7 -7
- package/dist/{vue-ui-cursor-ucua7LYB.cjs → vue-ui-cursor-B9UvQwLp.cjs} +1 -1
- package/dist/{vue-ui-cursor-CYNxiijm.js → vue-ui-cursor-CtuPho-s.js} +2 -2
- package/dist/{vue-ui-dashboard-nnHIe25Y.js → vue-ui-dashboard-8gQ1bGCn.js} +2 -2
- package/dist/{vue-ui-dashboard-DhLCwsFn.cjs → vue-ui-dashboard-KMTRqXzR.cjs} +1 -1
- package/dist/{vue-ui-digits-CEI69I0y.cjs → vue-ui-digits-DSMNN4z_.cjs} +1 -1
- package/dist/{vue-ui-digits-BB3ZlyZ6.js → vue-ui-digits-DuEyX8op.js} +2 -2
- package/dist/{vue-ui-donut-Ba9Qhfte.js → vue-ui-donut-0xdYBc41.js} +362 -336
- package/dist/vue-ui-donut-C4ek9m3R.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-BZaYmvPf.cjs → vue-ui-donut-evolution-B4TkwvNq.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CJHa5S50.js → vue-ui-donut-evolution-DbojarYN.js} +10 -10
- package/dist/{vue-ui-dumbbell-D_reERJf.js → vue-ui-dumbbell-BxhWjCvR.js} +9 -9
- package/dist/{vue-ui-dumbbell-D6Yu9qxX.cjs → vue-ui-dumbbell-Cn3spRSv.cjs} +1 -1
- package/dist/{vue-ui-flow-1HFdth8-.cjs → vue-ui-flow-D00VdtGU.cjs} +1 -1
- package/dist/{vue-ui-flow-sBFdpbtF.js → vue-ui-flow-DreN8go4.js} +8 -8
- package/dist/{vue-ui-galaxy-ccP0yuQ3.js → vue-ui-galaxy-BddgLpP-.js} +10 -10
- package/dist/{vue-ui-galaxy-DO1moKk6.cjs → vue-ui-galaxy-DVN-S67V.cjs} +1 -1
- package/dist/{vue-ui-gauge-CuFpl36r.cjs → vue-ui-gauge-DYZYFzHP.cjs} +1 -1
- package/dist/{vue-ui-gauge-CYjZx4Zz.js → vue-ui-gauge-DoTctAHq.js} +6 -6
- package/dist/{vue-ui-gizmo-C3dyTngy.cjs → vue-ui-gizmo-DRASsqlp.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DNZwsdp9.js → vue-ui-gizmo-hXBWaB0c.js} +3 -3
- package/dist/{vue-ui-heatmap-0qNGXzdN.js → vue-ui-heatmap-B43q8UHu.js} +9 -9
- package/dist/{vue-ui-heatmap-CLjngS-G.cjs → vue-ui-heatmap-ldCySJFf.cjs} +1 -1
- package/dist/{vue-ui-kpi-iclD49Wb.cjs → vue-ui-kpi-BiJnqtGR.cjs} +1 -1
- package/dist/{vue-ui-kpi-BiOt8Z9k.js → vue-ui-kpi-_GVnhxEd.js} +3 -3
- package/dist/{vue-ui-mini-loader-ASe27a1V.cjs → vue-ui-mini-loader-DVZtFcHw.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CBPZAUuP.js → vue-ui-mini-loader-qvtu5jtI.js} +2 -2
- package/dist/{vue-ui-molecule-uCEX5lMP.cjs → vue-ui-molecule-DP9jhODZ.cjs} +1 -1
- package/dist/{vue-ui-molecule-VqY8WZHi.js → vue-ui-molecule-Dpu7Xmu5.js} +10 -10
- package/dist/{vue-ui-mood-radar-RYbB7jdY.cjs → vue-ui-mood-radar-BR0INhYL.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B0cjzFkt.js → vue-ui-mood-radar-iZJ0B1Wf.js} +10 -10
- package/dist/{vue-ui-nested-donuts-DbBSbOjx.js → vue-ui-nested-donuts-CovQfZ81.js} +10 -10
- package/dist/{vue-ui-nested-donuts-Bfu90lZl.cjs → vue-ui-nested-donuts-CwIsGnyH.cjs} +1 -1
- package/dist/{vue-ui-onion-DJLGXvfr.js → vue-ui-onion-CJb2Pg0t.js} +10 -10
- package/dist/{vue-ui-onion-DK7lJvIH.cjs → vue-ui-onion-DjEChSmi.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BaZ5niQk.cjs → vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-B0_1Uh7a.js → vue-ui-parallel-coordinate-plot-CUA_fFC3.js} +11 -11
- package/dist/{vue-ui-quadrant-BCadkOrx.cjs → vue-ui-quadrant-CmdbW8yZ.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CnAk8Np9.js → vue-ui-quadrant-IAIp5IZq.js} +11 -11
- package/dist/{vue-ui-quick-chart-BrgtffFL.js → vue-ui-quick-chart-Bb2RQ6qI.js} +8 -8
- package/dist/{vue-ui-quick-chart--4pkEtK0.cjs → vue-ui-quick-chart-DcEk6Ho7.cjs} +1 -1
- package/dist/{vue-ui-radar-C68BFXPH.cjs → vue-ui-radar-TjgO9_LA.cjs} +1 -1
- package/dist/{vue-ui-radar-CDlE8jus.js → vue-ui-radar-mIQMBRHx.js} +11 -11
- package/dist/vue-ui-rating-BGRWSTGr.cjs +1 -0
- package/dist/vue-ui-rating-DcJb7_bV.js +323 -0
- package/dist/{vue-ui-relation-circle-_5UsoCBf.js → vue-ui-relation-circle-f0fKvSSw.js} +6 -6
- package/dist/{vue-ui-relation-circle-0OvmIoRR.cjs → vue-ui-relation-circle-x4sKnxbi.cjs} +1 -1
- package/dist/{vue-ui-rings-Duu-Dbns.cjs → vue-ui-rings-B3mUyyQ9.cjs} +1 -1
- package/dist/{vue-ui-rings-BHVrR1L1.js → vue-ui-rings-M1PUv5Wu.js} +10 -10
- package/dist/{vue-ui-scatter-azoiHq_a.cjs → vue-ui-scatter-DF_nobsG.cjs} +1 -1
- package/dist/{vue-ui-scatter-CSfeAiML.js → vue-ui-scatter-DiQJtMz1.js} +11 -11
- package/dist/{vue-ui-screenshot-D2-GzcYt.cjs → vue-ui-screenshot-BdnW3WFN.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DhMpdJsm.js → vue-ui-screenshot-QRt5bT48.js} +1 -1
- package/dist/{vue-ui-skeleton-CYgbDsKG.js → vue-ui-skeleton-DEv_1TFa.js} +3 -3
- package/dist/{vue-ui-skeleton-yOWIPVsZ.cjs → vue-ui-skeleton-fqwO2mHD.cjs} +1 -1
- package/dist/{vue-ui-smiley-DDn0IZKJ.js → vue-ui-smiley-BAr3XuJG.js} +405 -320
- package/dist/vue-ui-smiley-D-zRYR9g.cjs +2 -0
- package/dist/{vue-ui-spark-trend-BMdLIhg7.cjs → vue-ui-spark-trend-Br0GTMx_.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DxwmzstI.js → vue-ui-spark-trend-CS6jl2aN.js} +5 -5
- package/dist/{vue-ui-sparkbar-yocSweJn.cjs → vue-ui-sparkbar-N8aFbuJv.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Dk8VLc5p.js → vue-ui-sparkbar-tgfbnVYO.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CdW6FTRw.cjs → vue-ui-sparkgauge--hgbxLQS.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-G7BowYq4.js → vue-ui-sparkgauge-CqH25hj7.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CkkEGb0a.js → vue-ui-sparkhistogram-Cry2PFGH.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-BWulWwCi.cjs → vue-ui-sparkhistogram-vVRA6Z_l.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CaetICAe.cjs → vue-ui-sparkline-BZir7JxD.cjs} +1 -1
- package/dist/{vue-ui-sparkline-LBi6ypp4.js → vue-ui-sparkline-DXwqMlzQ.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DxUkSfRG.js → vue-ui-sparkstackbar-CQjpberv.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CAJaJ3ZQ.cjs → vue-ui-sparkstackbar-Dc6tZvej.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BP1YHhjl.js → vue-ui-stackbar-BF0M1KJf.js} +11 -11
- package/dist/{vue-ui-stackbar-BPyxp0m8.cjs → vue-ui-stackbar-BGmTwxvv.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BYJWkk2_.js → vue-ui-strip-plot-C8dme7tS.js} +10 -10
- package/dist/{vue-ui-strip-plot-BJSzqxzi.cjs → vue-ui-strip-plot-DT9Od_To.cjs} +1 -1
- package/dist/{vue-ui-table-CWHUBpqz.js → vue-ui-table-BvbXppa1.js} +1 -1
- package/dist/{vue-ui-table-C0-NQWi3.cjs → vue-ui-table-DGmUNjR_.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-9oVqDvLC.cjs → vue-ui-table-heatmap-Ch2UwsIw.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-uYQph968.js → vue-ui-table-heatmap-ccoLJyce.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Bv39O2DT.js → vue-ui-table-sparkline-BZ8faxdR.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BHJAP-Uh.cjs → vue-ui-table-sparkline-DT5a8gHs.cjs} +1 -1
- package/dist/{vue-ui-thermometer-JLaF8-hy.js → vue-ui-thermometer-BOs1_H4X.js} +6 -6
- package/dist/{vue-ui-thermometer-CqcNegd7.cjs → vue-ui-thermometer-Biv2CIsy.cjs} +1 -1
- package/dist/{vue-ui-timer-fu2zcs6f.cjs → vue-ui-timer-CNpKGbIg.cjs} +1 -1
- package/dist/{vue-ui-timer-B2ZQBIVg.js → vue-ui-timer-DE_m5wxu.js} +5 -5
- package/dist/{vue-ui-tiremarks-CXuGp82M.js → vue-ui-tiremarks-CTMS_E0z.js} +6 -6
- package/dist/{vue-ui-tiremarks-DzrCVTcA.cjs → vue-ui-tiremarks-YU4wuZl3.cjs} +1 -1
- package/dist/{vue-ui-treemap-CubutXgp.js → vue-ui-treemap-5Dm82baA.js} +10 -10
- package/dist/{vue-ui-treemap-DmEpWWkN.cjs → vue-ui-treemap-C0E1_DGA.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BpyY1mcc.cjs → vue-ui-vertical-bar-CVZHDENz.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Dqd4bZVC.js → vue-ui-vertical-bar-CVZI3v1Y.js} +10 -10
- package/dist/{vue-ui-waffle-D1n_ln-O.js → vue-ui-waffle-Bf4epEaH.js} +10 -10
- package/dist/{vue-ui-waffle-DzbRkTbY.cjs → vue-ui-waffle-DD09_Fdb.cjs} +1 -1
- package/dist/{vue-ui-wheel-BTJ9Ds5T.cjs → vue-ui-wheel-BybAQ0bR.cjs} +1 -1
- package/dist/{vue-ui-wheel-C-BFxhCO.js → vue-ui-wheel-DMvZZCzi.js} +6 -6
- package/dist/{vue-ui-word-cloud-DdbqYmZz.js → vue-ui-word-cloud-B8hdGDYI.js} +9 -9
- package/dist/{vue-ui-word-cloud-BZLUTH8A.cjs → vue-ui-word-cloud-MQ0kgdPw.cjs} +1 -1
- package/dist/{vue-ui-xy-BEB7zD0E.cjs → vue-ui-xy-B4C0WR56.cjs} +1 -1
- package/dist/{vue-ui-xy-CLJaG6lQ.js → vue-ui-xy-D3TaTkPR.js} +13 -13
- package/dist/{vue-ui-xy-canvas-DE1jTXbE.js → vue-ui-xy-canvas-ClETpddw.js} +10 -10
- package/dist/{vue-ui-xy-canvas-CJHNw8ek.cjs → vue-ui-xy-canvas-qbn0PHMN.cjs} +1 -1
- package/package.json +1 -1
- package/dist/PackageVersion-BqVp7cHC.cjs +0 -1
- package/dist/index-DQRLTu78.cjs +0 -9
- package/dist/vue-ui-donut-Cruh6AlQ.cjs +0 -1
- package/dist/vue-ui-rating-DV3d_vAO.cjs +0 -1
- package/dist/vue-ui-rating-DwTC908t.js +0 -271
- package/dist/vue-ui-smiley-BXV9UMjs.cjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),R=require("./pdf-9cRTLjY8.cjs"),q=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),R=require("./pdf-9cRTLjY8.cjs"),q=require("./useNestedProp-iuDCMc2p.cjs"),O=require("./index-Dfhvf8hT.cjs"),j=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=b=>(o.pushScopeId("data-v-57895b3a"),b=b(),o.popScopeId(),b),G={key:0,"data-html2canvas-ignore":"",style:{width:"100%",display:"flex","justify-content":"end"}},U=["disabled"],J=["stroke"],K=o.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-57895b3a></path><path d="M18 16v.01" data-v-57895b3a></path><path d="M6 16v.01" data-v-57895b3a></path><path d="M12 5v.01" data-v-57895b3a></path><path d="M12 12v.01" data-v-57895b3a></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-57895b3a></path>',6),Q=[K],Z={key:1},ee=["id"],te=A(()=>o.createElementVNode("div",{class:"vue-ui-dashboard-grid"},null,-1)),oe=["onMousedown","onTouchstart"],le=["onMousedown","onTouchstart"],ae=["onMousedown","onTouchstart"],ne=["onMousedown","onTouchstart"],ue=["onMousedown","onTouchstart"],M=20,se={__name:"vue-ui-dashboard",props:{dataset:Array,config:Object},emits:["change"],setup(b,{expose:$,emit:B}){const T=b;o.useCssVars(e=>({"417957d3":I.value,"60fae9e7":D.value}));const{vue_ui_dashboard:N}=O.useConfig(),i=o.computed(()=>q.useNestedProp({userConfig:T.config,defaultConfig:N})),z=o.ref(`vue-ui-dashboard-${Math.random()}`),d=o.ref(i.value.locked);function S(){d.value=!d.value}const s=o.ref(T.dataset),h=o.ref(null),u=o.ref(null),v=o.ref({x:0,y:0}),f=o.ref({x:0,y:0}),r=o.ref(null),c=o.ref(!1),p=o.ref(null),y=o.ref(!1);function E(){y.value=!0,R.default({domElement:document.getElementById(`vue-ui-dashboard_${z.value}`),fileName:"vue-ui-dashboard"}).finally(()=>{y.value=!1})}function x(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],a=100-t.width,l=100-t.height;t.left<0&&(t.left=0),t.top<0&&(t.top=0),t.left>a&&(t.left=a),t.top>l&&(t.top=l),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 m(e,t){c.value=!0,p.value=e,u.value={index:e,direction:t};const a=s.value[e];f.value={x:event.clientX,y:event.clientY,initialWidth:a.width,initialHeight:a.height}}function C(e,t,a){if(u.value.direction.includes("top")){const l=e.height-a/r.value.offsetHeight*100;l>=M&&(e.top+=a/r.value.offsetHeight*100,e.height=l)}if(u.value.direction.includes("bottom")){const l=e.height+a/r.value.offsetHeight*100;l>=M&&(e.height=l)}if(u.value.direction.includes("left")){const l=e.width-t/r.value.offsetWidth*100;l>=M&&(e.left+=t/r.value.offsetWidth*100,e.width=l)}if(u.value.direction.includes("right")){const l=e.width+t/r.value.offsetWidth*100;l>=M&&(e.width=l)}}function X(e){if(!d.value){if(c.value=!0,h.value!==null){const t=s.value[h.value],a=e.clientX-v.value.x,l=e.clientY-v.value.y,n=t.left+a/r.value.offsetWidth*100,g=t.top+l/r.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],a=e.clientX-f.value.x,l=e.clientY-f.value.y;C(t,a,l),f.value={x:e.clientX,y:e.clientY}}}}o.watch(s,e=>{e&&!c.value&&B("change",s.value)},{deep:!0});function Y(){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 V(e){d.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,a){if(c.value=!0,p.value=e,u.value===null){u.value={index:e,direction:t};const l=s.value[e];f.value={x:a.touches[0].clientX,y:a.touches[0].clientY,initialWidth:l.width,initialHeight:l.height}}}function _(e){if(c.value=!0,e.preventDefault(),u.value!==null){const t=s.value[u.value.index],a=e.touches[0].clientX-f.value.x,l=e.touches[0].clientY-f.value.y;C(t,a,l),f.value={x:e.touches[0].clientX,y:e.touches[0].clientY}}}function H(e){if(!d.value&&(c.value=!0,e.preventDefault(),h.value!==null)){const t=s.value[h.value],a=e.touches[0].clientX-v.value.x,l=e.touches[0].clientY-v.value.y,n=t.left+a/r.value.offsetWidth*100,g=t.top+l/r.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 I=o.computed(()=>i.value.style.item.borderColor),D=o.computed(()=>i.value.style.resizeHandles.backgroundColor),W=o.computed(()=>i.value.style.board.aspectRatio),L=o.computed(()=>i.value.style.board.backgroundColor),P=o.computed(()=>i.value.style.board.border);function F(){return s.value}return $({generatePdf:E,getItemsPositions:F,toggleLock:S}),(e,t)=>(o.openBlock(),o.createElementBlock("div",null,[i.value.allowPrint?(o.openBlock(),o.createElementBlock("div",G,[o.createElementVNode("button",{class:"vue-ui-dashboard-button",onClick:E,disabled:y.value,style:o.normalizeStyle([{"margin-top":"12px"},`color:${i.value.style.board.color}`])},[y.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:i.value.style.board.color,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Q,8,J)):(o.openBlock(),o.createElementBlock("span",Z,"PDF"))],12,U)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"vue-ui-dashboard-container",ref_key:"dashboardContainer",ref:r,id:`vue-ui-dashboard_${z.value}`,style:o.normalizeStyle(`border:${P.value}; sbackground:${L.value}; aspect-ratio:${W.value}`)},[o.createElementVNode("div",{class:"vue-ui-dashboard-grid-container",ref:"container",onMousemove:X,onMouseup:Y,onTouchmove:H,onTouchend:w,style:o.normalizeStyle(`background:${i.value.style.board.backgroundColor}`)},[te,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(a,l)=>(o.openBlock(),o.createElementBlock("div",{key:a.id,class:o.normalizeClass({"vue-ui-dashboard-grid-item":!0,"vue-ui-dashboard-grid-item--locked":d.value}),style:o.normalizeStyle({width:`${a.width}%`,height:`${a.height}%`,left:`${a.left}%`,top:`${a.top}%`,cursor:"move",boxShadow:p.value===l?"0 6px 12px -3px rgba(0,0,0,0.3)":"",zIndex:p.value===l?"1":"0",backgroundColor:i.value.style.item.backgroundColor}),onMousedown:n=>x(l),onTouchstart:n=>V(l)},[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=>m(l,"top-left"),onTouchstart:n=>k(l,"top-left",n),onTouchmove:t[0]||(t[0]=n=>_(n)),onTouchend:w},null,40,le),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",onMousedown:n=>m(l,"top-right"),onTouchstart:n=>k(l,"top-right",n),onTouchmove:t[1]||(t[1]=n=>_(n)),onTouchend:w},null,40,ae),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",onMousedown:n=>m(l,"bottom-left"),onTouchstart:n=>k(l,"bottom-left",n),onTouchmove:t[2]||(t[2]=n=>_(n)),onTouchend:w},null,40,ne),o.createElementVNode("div",{class:"vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",onMousedown:n=>m(l,"bottom-right"),onTouchstart:n=>k(l,"bottom-right",n),onTouchmove:t[3]||(t[3]=n=>_(n)),onTouchend:w},null,40,ue)],64)),o.renderSlot(e.$slots,"content",{item:a,index:l,left:a.left,top:a.top,height:a.height,width:a.width},void 0,!0)],46,oe))),128))],36)],12,ee)]))}},ie=j._export_sfc(se,[["__scopeId","data-v-57895b3a"]]);exports.default=ie;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-iuDCMc2p.cjs"),L=require("./index-Dfhvf8hT.cjs"),f={key:0},m=["d","fill"],k=["d","fill"],h=["d","fill"],v=["d","fill"],C=["d","fill"],N=["d","fill"],b=["d","fill"],B={key:1},E=["cx","cy","fill"],q={__name:"Digit",props:{quanta:{type:String,default:null},backgroundColor:{type:String,default:"#e1e5e8"},color:{type:String,default:"#000000"},x:{type:Number,default:0},y:{type:Number,default:0}},setup(e){const u=e,$=t.ref({0:"1111110",1:"0110000",2:"1101101",3:"1111001",4:"0110011",5:"1011011",6:"1011111",7:"1110000",8:"1111111",9:"1111011","-":"0000001",X:"0000000"}),l=t.computed(()=>[void 0,null].includes(u.quanta)?$.value.X:$.value[u.quanta]);return(a,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[[void 0,null,"."].includes(e.quanta)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("g",f,[t.createElementVNode("path",{d:`M ${e.x} ${e.y} L ${e.x+2} ${e.y-2} L ${e.x+24} ${e.y-2} L ${e.x+26} ${e.y} L ${e.x+24} ${e.y+2} L ${e.x+2} ${e.y+2}Z`,fill:l.value[0]==1?e.color:e.backgroundColor,stroke:"none"},null,8,m),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+26} L ${e.x+26} ${e.y+4} L ${e.x+28} ${e.y+2} L ${e.x+30} ${e.y+4} L ${e.x+30} ${e.y+26} L ${e.x+28} ${e.y+28} L ${e.x+26} ${e.y+26}`,fill:l.value[1]==1?e.color:e.backgroundColor,stroke:"none"},null,8,k),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+56} L ${e.x+26} ${e.y+34} L ${e.x+28} ${e.y+32} L ${e.x+30} ${e.y+34} L ${e.x+30} ${e.y+56} L ${e.x+28} ${e.y+58} L ${e.x+26} ${e.y+56}`,fill:l.value[2]==1?e.color:e.backgroundColor,stroke:"none"},null,8,h),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+58} L ${e.x} ${e.y+60} L ${e.x+2} ${e.y+62} L ${e.x+24} ${e.y+62} L ${e.x+26} ${e.y+60} L ${e.x+24} ${e.y+58} L ${e.x+2} ${e.y+58}`,fill:l.value[3]==1?e.color:e.backgroundColor,stroke:"none"},null,8,v),t.createElementVNode("path",{d:`M ${e.x} ${e.y+34} L ${e.x-2} ${e.y+32} L ${e.x-4} ${e.y+34} L ${e.x-4} ${e.y+56} L ${e.x-2} ${e.y+58} L ${e.x} ${e.y+56} L ${e.x} ${e.y+34}`,fill:l.value[4]==1?e.color:e.backgroundColor,stroke:"none"},null,8,C),t.createElementVNode("path",{d:`M ${e.x-2} ${e.y+2} L ${e.x} ${e.y+4} L ${e.x} ${e.y+26} L ${e.x-2} ${e.y+28} L ${e.x-4} ${e.y+26} L ${e.x-4} ${e.y+4} L ${e.x-2} ${e.y+2}`,fill:l.value[5]==1?e.color:e.backgroundColor,stroke:"none"},null,8,N),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+28} L ${e.x} ${e.y+30} L ${e.x+2} ${e.y+32} L ${e.x+24} ${e.y+32} L ${e.x+26} ${e.y+30} L ${e.x+24} ${e.y+28} L ${e.x+2} ${e.y+28}`,fill:l.value[6]==1?e.color:e.backgroundColor,stroke:"none"},null,8,b)])),e.quanta=="."?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("circle",{cx:e.x-8,cy:e.y+60,r:3,fill:e.color},null,8,E)])):t.createCommentVNode("",!0)],64))}},M=["xmlns","viewBox"],V={__name:"vue-ui-digits",props:{dataset:{type:Number,default:0},config:{type:Object,default(){return{}}}},setup(e){const u=e,{vue_ui_digits:$}=L.useConfig(),l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),d=[],n={x:10,y:10};let i=0;for(let y=0;y<c.length;y+=1){const o=c[y];d.push({x:n.x+i,y:n.y,quanta:o}),o=="."?i+=2:i+=44}return d}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,d)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:t.unref(L.XMLNS),viewBox:`0 0 ${x.value} 80`,style:t.normalizeStyle(`background:${l.value.backgroundColor};${l.value.height?`height:${l.value.height};`:""}${l.value.width?`width:${l.value.width}`:""}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,n=>(t.openBlock(),t.createBlock(q,{x:n.x,y:n.y,quanta:n.quanta,color:l.value.digits.color,backgroundColor:l.value.digits.skeletonColor},null,8,["x","y","quanta","color","backgroundColor"]))),256))],12,M))}};exports.default=V;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as k, computed as d, openBlock as $, createElementBlock as i, Fragment as o, createElementVNode as l, createCommentVNode as m, unref as v, normalizeStyle as C, renderList as b, createBlock as N } from "vue";
|
|
2
|
-
import { u as q } from "./useNestedProp-
|
|
3
|
-
import { u as M, X as S } from "./index-
|
|
2
|
+
import { u as q } from "./useNestedProp-DGWP4D-K.js";
|
|
3
|
+
import { u as M, X as S } from "./index-B0CpCD8z.js";
|
|
4
4
|
const w = { key: 0 }, B = ["d", "fill"], F = ["d", "fill"], X = ["d", "fill"], E = ["d", "fill"], I = ["d", "fill"], O = ["d", "fill"], A = ["d", "fill"], D = { key: 1 }, G = ["cx", "cy", "fill"], V = {
|
|
5
5
|
__name: "Digit",
|
|
6
6
|
props: {
|