vue-data-ui 2.3.3 → 2.3.5

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.
Files changed (154) hide show
  1. package/README.md +19 -15
  2. package/dist/Arrow-BSOdhAJO.cjs +1 -0
  3. package/dist/Arrow-BjDVSrfA.js +101 -0
  4. package/dist/BaseIcon-BoKtpbrI.cjs +1 -0
  5. package/dist/BaseIcon-vmmfWlyR.js +174 -0
  6. package/dist/DataTable-CaB7GIwQ.js +127 -0
  7. package/dist/DataTable-ssrNbONo.cjs +1 -0
  8. package/dist/Legend-DHpoRTAE.js +62 -0
  9. package/dist/Legend-Dl5IYoxK.cjs +1 -0
  10. package/dist/Shape-CQT4S7N-.js +107 -0
  11. package/dist/Shape-CaF4pvOn.cjs +1 -0
  12. package/dist/Slicer-Bdb1BlrC.js +156 -0
  13. package/dist/Slicer-QC8nTm24.cjs +1 -0
  14. package/dist/Title-BNPZwnkp.js +46 -0
  15. package/dist/Title-Cj_xubjI.cjs +1 -0
  16. package/dist/Tooltip-CdJ5hegk.cjs +1 -0
  17. package/dist/Tooltip-ZnJAz6dl.js +94 -0
  18. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  19. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  20. package/dist/documentation/installation.md +14 -13
  21. package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
  22. package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
  23. package/dist/index-BMCvLyab.js +10369 -0
  24. package/dist/index-BkomIE9L.cjs +4 -0
  25. package/dist/{index.es-ypwniJN8.js → index.es-YufTdp0y.js} +1 -1
  26. package/dist/{index.es-Dnua3tHc.cjs → index.es-uyeSCnWE.cjs} +1 -1
  27. package/dist/jspdf.es.min-C660YX78.js +8038 -0
  28. package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
  29. package/dist/pdf-97UbtKC2.js +44 -0
  30. package/dist/pdf-Cz3729tZ.cjs +1 -0
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +105 -5
  33. package/dist/types/vue-data-ui.d.ts +105 -5
  34. package/dist/useNestedProp-BMxXyPbW.cjs +1 -0
  35. package/dist/useNestedProp-CkP8xhG_.js +13 -0
  36. package/dist/usePrinter-BuuBz5JR.js +513 -0
  37. package/dist/usePrinter-r6uHYEcR.cjs +1 -0
  38. package/dist/useResponsive-B3TrDDIG.cjs +1 -0
  39. package/dist/useResponsive-NZB-WLRF.js +187 -0
  40. package/dist/vue-data-ui-Bc5U1cOP.cjs +9 -0
  41. package/dist/vue-data-ui-DxeO0iaC.js +254 -0
  42. package/dist/vue-data-ui.cjs +1 -1
  43. package/dist/vue-data-ui.js +61 -59
  44. package/dist/vue-ui-3d-bar-32wM0tiX.js +1085 -0
  45. package/dist/vue-ui-3d-bar-CgB0fLQT.cjs +19 -0
  46. package/dist/vue-ui-accordion-CLlVxx3Q.js +77 -0
  47. package/dist/vue-ui-accordion-SXsobrUt.cjs +1 -0
  48. package/dist/vue-ui-age-pyramid-D_CY99xF.js +596 -0
  49. package/dist/vue-ui-age-pyramid-DqiwcOIr.cjs +1 -0
  50. package/dist/vue-ui-annotator-DvP-IxDm.js +2177 -0
  51. package/dist/vue-ui-annotator-mntqd3q_.cjs +371 -0
  52. package/dist/vue-ui-candlestick-C-5u3i-1.js +657 -0
  53. package/dist/vue-ui-candlestick-C_TvUQvH.cjs +2 -0
  54. package/dist/vue-ui-carousel-table-BCePqkuz.cjs +1 -0
  55. package/dist/vue-ui-carousel-table-CAqhsLVx.js +304 -0
  56. package/dist/vue-ui-chestnut-DhWlw2MD.cjs +6 -0
  57. package/dist/vue-ui-chestnut-DylSfYMB.js +1051 -0
  58. package/dist/vue-ui-cursor-B04HJQVl.cjs +1 -0
  59. package/dist/vue-ui-cursor-DTYEMgbU.js +229 -0
  60. package/dist/vue-ui-dashboard-Bd0-cmSZ.js +232 -0
  61. package/dist/vue-ui-dashboard-DFIYwP1s.cjs +1 -0
  62. package/dist/vue-ui-digits-CW5qNMIk.js +153 -0
  63. package/dist/vue-ui-digits-Ced5mBJZ.cjs +1 -0
  64. package/dist/vue-ui-donut-DIhhgvWp.cjs +1 -0
  65. package/dist/vue-ui-donut-EeVmrVJs.js +743 -0
  66. package/dist/vue-ui-donut-evolution-BN08Y2hy.js +799 -0
  67. package/dist/vue-ui-donut-evolution-Ct6KAzs-.cjs +1 -0
  68. package/dist/vue-ui-dumbbell-BMlxS1Nq.js +624 -0
  69. package/dist/vue-ui-dumbbell-pextarqH.cjs +9 -0
  70. package/dist/vue-ui-flow-BXVsbmyb.cjs +1 -0
  71. package/dist/vue-ui-flow-CHmkgfyb.js +454 -0
  72. package/dist/vue-ui-galaxy-D4xyd-J1.cjs +1 -0
  73. package/dist/vue-ui-galaxy-kiVOZOBz.js +485 -0
  74. package/dist/vue-ui-gauge-BcO-z97J.js +466 -0
  75. package/dist/vue-ui-gauge-DPFBsbFj.cjs +1 -0
  76. package/dist/vue-ui-heatmap-DBOKYaJz.cjs +1 -0
  77. package/dist/vue-ui-heatmap-DD-Bzddj.js +598 -0
  78. package/dist/vue-ui-kpi-BEgf5yDv.cjs +1 -0
  79. package/dist/vue-ui-kpi-BS0o7zb9.js +54 -0
  80. package/dist/vue-ui-mini-loader-Bm5EJxtG.cjs +1 -0
  81. package/dist/vue-ui-mini-loader-DJEvG6ju.js +131 -0
  82. package/dist/vue-ui-molecule-DdwnFEBJ.js +750 -0
  83. package/dist/vue-ui-molecule-DzUqcaxd.cjs +1 -0
  84. package/dist/vue-ui-mood-radar-B9Gczs_Z.js +548 -0
  85. package/dist/vue-ui-mood-radar-DbB7m4Ku.cjs +1 -0
  86. package/dist/vue-ui-nested-donuts-BSINf8hd.cjs +16 -0
  87. package/dist/vue-ui-nested-donuts-CVQ1CaXo.js +771 -0
  88. package/dist/vue-ui-onion-D3-6Tv4u.cjs +1 -0
  89. package/dist/vue-ui-onion-Ut75t7hB.js +554 -0
  90. package/dist/vue-ui-parallel-coordinate-plot-Bjo09ZTX.js +651 -0
  91. package/dist/vue-ui-parallel-coordinate-plot-CJGkoIgN.cjs +8 -0
  92. package/dist/vue-ui-quadrant-CzCvejGn.cjs +1 -0
  93. package/dist/vue-ui-quadrant-Du9PKvlO.js +1178 -0
  94. package/dist/vue-ui-quick-chart-BsxsPbjz.cjs +13 -0
  95. package/dist/vue-ui-quick-chart-u0cPmD3q.js +1310 -0
  96. package/dist/vue-ui-radar-CBrpuE5r.js +614 -0
  97. package/dist/vue-ui-radar-DIpCrj1h.cjs +1 -0
  98. package/dist/vue-ui-rating-CaeGGlCw.js +271 -0
  99. package/dist/vue-ui-rating-D8fJC8Yt.cjs +1 -0
  100. package/dist/vue-ui-relation-circle-5DNf880s.js +304 -0
  101. package/dist/vue-ui-relation-circle-Ky3nPk6S.cjs +1 -0
  102. package/dist/vue-ui-rings-CffZ4T2S.cjs +1 -0
  103. package/dist/vue-ui-rings-IE3IdNRF.js +510 -0
  104. package/dist/vue-ui-scatter-C4GCZm0V.js +874 -0
  105. package/dist/vue-ui-scatter-TsX5dW9l.cjs +1 -0
  106. package/dist/vue-ui-screenshot-Bl3oooKI.js +160 -0
  107. package/dist/vue-ui-screenshot-Bzpg6yof.cjs +3 -0
  108. package/dist/vue-ui-skeleton-BisWX1sO.js +2064 -0
  109. package/dist/vue-ui-skeleton-JmGp11-u.cjs +41 -0
  110. package/dist/vue-ui-smiley-BhSrt9f-.cjs +2 -0
  111. package/dist/vue-ui-smiley-Sth2pqG1.js +763 -0
  112. package/dist/vue-ui-spark-trend-C8NSz4l8.cjs +1 -0
  113. package/dist/vue-ui-spark-trend-DAqO0TW2.js +246 -0
  114. package/dist/vue-ui-sparkbar-B0zX7NU7.js +242 -0
  115. package/dist/vue-ui-sparkbar-hL1Q6ObK.cjs +1 -0
  116. package/dist/vue-ui-sparkgauge-CWR8zJnU.js +157 -0
  117. package/dist/vue-ui-sparkgauge-tbVqaLCK.cjs +1 -0
  118. package/dist/vue-ui-sparkhistogram-Dv-lml4g.cjs +1 -0
  119. package/dist/vue-ui-sparkhistogram-DxqCtDpw.js +244 -0
  120. package/dist/vue-ui-sparkline-B6pvaBY_.cjs +1 -0
  121. package/dist/vue-ui-sparkline-BpL1jn7F.js +333 -0
  122. package/dist/vue-ui-sparkstackbar-BzbuBNIV.js +244 -0
  123. package/dist/vue-ui-sparkstackbar-CQ2TEi4p.cjs +1 -0
  124. package/dist/vue-ui-strip-plot-DCC6F4VM.cjs +1 -0
  125. package/dist/vue-ui-strip-plot-DCcbD6UE.js +618 -0
  126. package/dist/vue-ui-table-CFqIWfxl.js +1430 -0
  127. package/dist/vue-ui-table-CseaFWgX.cjs +14 -0
  128. package/dist/vue-ui-table-heatmap-Bwut-V1D.cjs +1 -0
  129. package/dist/vue-ui-table-heatmap-Bz8KYDxr.js +237 -0
  130. package/dist/vue-ui-table-sparkline-CJBU3y8-.cjs +1 -0
  131. package/dist/vue-ui-table-sparkline-z29ND2lq.js +420 -0
  132. package/dist/vue-ui-thermometer-BNAITzJa.js +385 -0
  133. package/dist/vue-ui-thermometer-DM2IKhqN.cjs +1 -0
  134. package/dist/vue-ui-timer-DLfXuW8T.cjs +64 -0
  135. package/dist/vue-ui-timer-DV6lQVHU.js +453 -0
  136. package/dist/vue-ui-tiremarks-B1bd1jPf.cjs +1 -0
  137. package/dist/vue-ui-tiremarks-WyQPg7yo.js +249 -0
  138. package/dist/vue-ui-treemap-BZGmoDHb.cjs +1 -0
  139. package/dist/vue-ui-treemap-DKmBhzV-.js +722 -0
  140. package/dist/vue-ui-vertical-bar-Bi-0rRN3.cjs +4 -0
  141. package/dist/vue-ui-vertical-bar-C-ySfrhJ.js +737 -0
  142. package/dist/vue-ui-waffle-CGRWu-da.js +638 -0
  143. package/dist/vue-ui-waffle-VLYkR-YZ.cjs +1 -0
  144. package/dist/vue-ui-wheel-D2q5vy5V.cjs +1 -0
  145. package/dist/vue-ui-wheel-Pj9OPk9f.js +227 -0
  146. package/dist/vue-ui-word-cloud-8Vr-jo1p.js +346 -0
  147. package/dist/vue-ui-word-cloud-Ba4BjatU.cjs +1 -0
  148. package/dist/vue-ui-xy-C4QW5Lfl.cjs +3 -0
  149. package/dist/vue-ui-xy-canvas-Be-Da_0x.cjs +9 -0
  150. package/dist/vue-ui-xy-canvas-DnLWrf0e.js +1006 -0
  151. package/dist/vue-ui-xy-qToggEfh.js +2064 -0
  152. package/package.json +1 -1
  153. package/dist/index-BcMihqI4.cjs +0 -843
  154. package/dist/index-C7FeCQ7K.js +0 -57303
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),_=require("./useNestedProp-BMxXyPbW.cjs"),i=require("./index-BkomIE9L.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=l=>(t.pushScopeId("data-v-fe8d65eb"),l=l(),t.popScopeId(),l),p=["xmlns","height","width"],x={id:"follower",fy:"30%",fx:"30%"},E=["stop-color","stop-opacity"],N=m(()=>t.createElementVNode("stop",{offset:"95%","stop-color":"transparent"},null,-1)),g=["r","fill","stroke","stroke-width","stroke-dasharray"],V=["r","fill"],S={key:2,class:"wave"},w=["id"],b=["id"],B=m(()=>t.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),R=["filter","stroke"],F={key:3,class:"crosshair"},z=["x1","stroke","stroke-width","stroke-dasharray"],I=["x1","stroke","stroke-width","stroke-dasharray"],L=["y1","stroke","stroke-width","stroke-dasharray"],O=["y1","stroke","stroke-width","stroke-dasharray"],T=["cy","r","fill"],D=["cy","r","fill"],$=["cx","r","fill"],W=["cx","r","fill"],G={key:5,class:"coordinates"},P=["x","y","font-size","fill"],q=["transform"],A=["font-size","fill"],M={__name:"vue-ui-cursor",props:{config:{type:Object,default:{}}},setup(l){const k=l,{vue_ui_cursor:y}=i.useConfig(),c=t.ref(i.createUid()),e=t.computed(()=>_.useNestedProp({userConfig:k.config,defaultConfig:y})),o=t.ref({x:-100,y:-100});function u({clientX:r,clientY:h,...j}){o.value.x=r-e.value.centerCircleRadius,o.value.y=h-e.value.centerCircleRadius}function d(r){o.value.x=r.targetTouches[0].clientX-e.value.centerCircleRadius,o.value.y=r.targetTouches[0].clientY-e.value.centerCircleRadius}const v=t.ref(!0);function a(r){v.value=r}const s=t.ref(!1),n=t.ref(null);function f(){s.value=!1,n.value&&clearTimeout(n.value),t.nextTick(()=>{s.value=!0,n.value=setTimeout(()=>{s.value=!1},1e3)})}return t.onMounted(()=>{const r=e.value.parentId?document.getElementById(e.value.parentId):document.getElementsByTagName("div")[0];r.addEventListener("mousemove",u),r.addEventListener("touchmove",d),r.addEventListener("mouseleave",()=>a(!1)),r.addEventListener("mouseenter",()=>a(!0)),r.addEventListener("click",f)}),t.onBeforeUnmount(()=>{const r=e.value.parentId?document.getElementById(e.value.parentId):document.getElementsByTagName("div")[0];r.removeEventListener("mousemove",u),r.removeEventListener("touchmove",d),r.removeEventListener("mouseleave",()=>a(!1)),r.removeEventListener("mouseenter",()=>a(!0)),r.removeEventListener("click",f)}),t.computed(()=>e.value.centerCircleRadius/2.5),(r,h)=>v.value?(t.openBlock(),t.createElementBlock("svg",{key:0,"data-html2canvas-ignore":"",xmlns:t.unref(i.XMLNS),style:t.normalizeStyle(`z-index: 2147483647; overflow: visible; pointer-events: none;background: transparent; position:fixed; top:${o.value.y}px; left:${o.value.x}px;`),viewBox:"0 0 100 100",height:e.value.centerCircleRadius*2,width:e.value.centerCircleRadius*2},[t.createElementVNode("defs",null,[t.createElementVNode("radialGradient",x,[t.createElementVNode("stop",{offset:"10%","stop-color":e.value.bubbleEffectColor,"stop-opacity":e.value.bubbleEffectOpacity},null,8,E),N])]),e.value.showCenterCircle?(t.openBlock(),t.createElementBlock("circle",{key:0,cx:50,cy:50,r:e.value.centerCircleRadius,fill:e.value.centerCircleColor+t.unref(i.opacity)[e.value.centerCircleOpacity*100],stroke:e.value.centerCircleStroke,"stroke-width":e.value.centerCircleStrokeWidth,"stroke-dasharray":e.value.centerCircleDasharray},null,8,g)):t.createCommentVNode("",!0),e.value.bubbleEffect?(t.openBlock(),t.createElementBlock("circle",{key:1,cx:50,cy:50,r:e.value.centerCircleRadius,fill:"url(#follower)",stroke:"none"},null,8,V)):t.createCommentVNode("",!0),e.value.useWaveOnClick?(t.openBlock(),t.createElementBlock("g",S,[t.createElementVNode("defs",null,[t.createElementVNode("filter",{id:`blur_${c.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[t.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:4,id:`blur_std_${c.value}`},null,8,b),B],8,w)]),s.value?(t.openBlock(),t.createElementBlock("circle",{key:0,class:t.normalizeClass({"circle-wave":s.value}),cx:50,cy:50,r:50,filter:`url(#blur_${c.value})`,stroke:e.value.centerCircleStroke,fill:"none","stroke-width":"3"},null,10,R)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.value.showCrosshair?(t.openBlock(),t.createElementBlock("g",F,[t.createElementVNode("line",{x1:-e.value.centerCircleRadius+50,x2:-5e3,y1:50,y2:50,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,z),t.createElementVNode("line",{x1:50+e.value.centerCircleRadius,x2:5e3,y1:50,y2:50,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,I),t.createElementVNode("line",{x1:50,x2:50,y1:-e.value.centerCircleRadius+50,y2:-5e3,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,L),t.createElementVNode("line",{x1:50,x2:50,y1:e.value.centerCircleRadius+50,y2:5e3,stroke:e.value.crosshairStroke,"stroke-width":e.value.crosshairStrokeWidth,"stroke-dasharray":e.value.crosshairDasharray,"stroke-linecap":"round"},null,8,O)])):t.createCommentVNode("",!0),e.value.showIntersectCircles?(t.openBlock(),t.createElementBlock("g",{key:4,class:t.normalizeClass({"rotating-circles":e.value.isLoading})},[t.createElementVNode("circle",{cx:50,cy:e.value.centerCircleRadius+50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,T),t.createElementVNode("circle",{cx:50,cy:-e.value.centerCircleRadius+50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,D),t.createElementVNode("circle",{cx:-e.value.centerCircleRadius+50,cy:50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,$),t.createElementVNode("circle",{cx:e.value.centerCircleRadius+50,cy:50,r:e.value.intersectCirclesRadius,fill:e.value.intersectCirclesFill},null,8,W)],2)):t.createCommentVNode("",!0),e.value.showCoordinates?(t.openBlock(),t.createElementBlock("g",G,[t.createElementVNode("text",{"text-anchor":"end",x:-e.value.centerCircleRadius+50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset,y:50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset,"font-size":e.value.coordinatesFontSize,fill:e.value.coordinatesColor,style:{"font-variant-numeric":"tabular-nums"},"font-family":"Arial"},t.toDisplayString(o.value.x.toFixed(0)),9,P),t.createElementVNode("g",{transform:`translate(${50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset}, ${-e.value.centerCircleRadius+50-e.value.coordinatesFontSize/2+e.value.coordinatesOffset})`},[t.createElementVNode("text",{"text-anchor":"start","font-size":e.value.coordinatesFontSize,fill:e.value.coordinatesColor,style:{"font-variant-numeric":"tabular-nums"},transform:"rotate(-90)","font-family":"Arial"},t.toDisplayString(o.value.y.toFixed(0)),9,A)],8,q)])):t.createCommentVNode("",!0)],12,p)):t.createCommentVNode("",!0)}},U=C._export_sfc(M,[["__scopeId","data-v-fe8d65eb"]]);exports.default=U;
@@ -0,0 +1,229 @@
1
+ import { ref as n, computed as m, onMounted as R, onBeforeUnmount as b, openBlock as o, createElementBlock as l, unref as C, normalizeStyle as E, createElementVNode as r, createCommentVNode as i, normalizeClass as p, toDisplayString as x, nextTick as F, pushScopeId as I, popScopeId as L } from "vue";
2
+ import { u as z } from "./useNestedProp-CkP8xhG_.js";
3
+ import { u as O, c as B, X as N, r as T } from "./index-BMCvLyab.js";
4
+ import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const g = (a) => (I("data-v-fe8d65eb"), a = a(), L(), a), $ = ["xmlns", "height", "width"], W = {
6
+ id: "follower",
7
+ fy: "30%",
8
+ fx: "30%"
9
+ }, G = ["stop-color", "stop-opacity"], A = /* @__PURE__ */ g(() => /* @__PURE__ */ r("stop", {
10
+ offset: "95%",
11
+ "stop-color": "transparent"
12
+ }, null, -1)), U = ["r", "fill", "stroke", "stroke-width", "stroke-dasharray"], V = ["r", "fill"], M = {
13
+ key: 2,
14
+ class: "wave"
15
+ }, P = ["id"], X = ["id"], j = /* @__PURE__ */ g(() => /* @__PURE__ */ r("feColorMatrix", {
16
+ type: "saturate",
17
+ values: "0"
18
+ }, null, -1)), Y = ["filter", "stroke"], q = {
19
+ key: 3,
20
+ class: "crosshair"
21
+ }, H = ["x1", "stroke", "stroke-width", "stroke-dasharray"], J = ["x1", "stroke", "stroke-width", "stroke-dasharray"], K = ["y1", "stroke", "stroke-width", "stroke-dasharray"], Q = ["y1", "stroke", "stroke-width", "stroke-dasharray"], Z = ["cy", "r", "fill"], ee = ["cy", "r", "fill"], te = ["cx", "r", "fill"], re = ["cx", "r", "fill"], se = {
22
+ key: 5,
23
+ class: "coordinates"
24
+ }, oe = ["x", "y", "font-size", "fill"], le = ["transform"], ie = ["font-size", "fill"], ae = {
25
+ __name: "vue-ui-cursor",
26
+ props: {
27
+ config: {
28
+ type: Object,
29
+ default: {}
30
+ }
31
+ },
32
+ setup(a) {
33
+ const w = a, { vue_ui_cursor: S } = O(), d = n(B()), e = m(() => z({
34
+ userConfig: w.config,
35
+ defaultConfig: S
36
+ })), s = n({
37
+ x: -100,
38
+ y: -100
39
+ });
40
+ function h({ clientX: t, clientY: k, ...ce }) {
41
+ s.value.x = t - e.value.centerCircleRadius, s.value.y = k - e.value.centerCircleRadius;
42
+ }
43
+ function f(t) {
44
+ s.value.x = t.targetTouches[0].clientX - e.value.centerCircleRadius, s.value.y = t.targetTouches[0].clientY - e.value.centerCircleRadius;
45
+ }
46
+ const y = n(!0);
47
+ function u(t) {
48
+ y.value = t;
49
+ }
50
+ const c = n(!1), v = n(null);
51
+ function _() {
52
+ c.value = !1, v.value && clearTimeout(v.value), F(() => {
53
+ c.value = !0, v.value = setTimeout(() => {
54
+ c.value = !1;
55
+ }, 1e3);
56
+ });
57
+ }
58
+ return R(() => {
59
+ const t = e.value.parentId ? document.getElementById(e.value.parentId) : document.getElementsByTagName("div")[0];
60
+ t.addEventListener("mousemove", h), t.addEventListener("touchmove", f), t.addEventListener("mouseleave", () => u(!1)), t.addEventListener("mouseenter", () => u(!0)), t.addEventListener("click", _);
61
+ }), b(() => {
62
+ const t = e.value.parentId ? document.getElementById(e.value.parentId) : document.getElementsByTagName("div")[0];
63
+ t.removeEventListener("mousemove", h), t.removeEventListener("touchmove", f), t.removeEventListener("mouseleave", () => u(!1)), t.removeEventListener("mouseenter", () => u(!0)), t.removeEventListener("click", _);
64
+ }), m(() => e.value.centerCircleRadius / 2.5), (t, k) => y.value ? (o(), l("svg", {
65
+ key: 0,
66
+ "data-html2canvas-ignore": "",
67
+ xmlns: C(N),
68
+ style: E(`z-index: 2147483647; overflow: visible; pointer-events: none;background: transparent; position:fixed; top:${s.value.y}px; left:${s.value.x}px;`),
69
+ viewBox: "0 0 100 100",
70
+ height: e.value.centerCircleRadius * 2,
71
+ width: e.value.centerCircleRadius * 2
72
+ }, [
73
+ r("defs", null, [
74
+ r("radialGradient", W, [
75
+ r("stop", {
76
+ offset: "10%",
77
+ "stop-color": e.value.bubbleEffectColor,
78
+ "stop-opacity": e.value.bubbleEffectOpacity
79
+ }, null, 8, G),
80
+ A
81
+ ])
82
+ ]),
83
+ e.value.showCenterCircle ? (o(), l("circle", {
84
+ key: 0,
85
+ cx: 50,
86
+ cy: 50,
87
+ r: e.value.centerCircleRadius,
88
+ fill: e.value.centerCircleColor + C(T)[e.value.centerCircleOpacity * 100],
89
+ stroke: e.value.centerCircleStroke,
90
+ "stroke-width": e.value.centerCircleStrokeWidth,
91
+ "stroke-dasharray": e.value.centerCircleDasharray
92
+ }, null, 8, U)) : i("", !0),
93
+ e.value.bubbleEffect ? (o(), l("circle", {
94
+ key: 1,
95
+ cx: 50,
96
+ cy: 50,
97
+ r: e.value.centerCircleRadius,
98
+ fill: "url(#follower)",
99
+ stroke: "none"
100
+ }, null, 8, V)) : i("", !0),
101
+ e.value.useWaveOnClick ? (o(), l("g", M, [
102
+ r("defs", null, [
103
+ r("filter", {
104
+ id: `blur_${d.value}`,
105
+ x: "-50%",
106
+ y: "-50%",
107
+ width: "200%",
108
+ height: "200%"
109
+ }, [
110
+ r("feGaussianBlur", {
111
+ in: "SourceGraphic",
112
+ stdDeviation: 4,
113
+ id: `blur_std_${d.value}`
114
+ }, null, 8, X),
115
+ j
116
+ ], 8, P)
117
+ ]),
118
+ c.value ? (o(), l("circle", {
119
+ key: 0,
120
+ class: p({ "circle-wave": c.value }),
121
+ cx: 50,
122
+ cy: 50,
123
+ r: 50,
124
+ filter: `url(#blur_${d.value})`,
125
+ stroke: e.value.centerCircleStroke,
126
+ fill: "none",
127
+ "stroke-width": "3"
128
+ }, null, 10, Y)) : i("", !0)
129
+ ])) : i("", !0),
130
+ e.value.showCrosshair ? (o(), l("g", q, [
131
+ r("line", {
132
+ x1: -e.value.centerCircleRadius + 50,
133
+ x2: -5e3,
134
+ y1: 50,
135
+ y2: 50,
136
+ stroke: e.value.crosshairStroke,
137
+ "stroke-width": e.value.crosshairStrokeWidth,
138
+ "stroke-dasharray": e.value.crosshairDasharray,
139
+ "stroke-linecap": "round"
140
+ }, null, 8, H),
141
+ r("line", {
142
+ x1: 50 + e.value.centerCircleRadius,
143
+ x2: 5e3,
144
+ y1: 50,
145
+ y2: 50,
146
+ stroke: e.value.crosshairStroke,
147
+ "stroke-width": e.value.crosshairStrokeWidth,
148
+ "stroke-dasharray": e.value.crosshairDasharray,
149
+ "stroke-linecap": "round"
150
+ }, null, 8, J),
151
+ r("line", {
152
+ x1: 50,
153
+ x2: 50,
154
+ y1: -e.value.centerCircleRadius + 50,
155
+ y2: -5e3,
156
+ stroke: e.value.crosshairStroke,
157
+ "stroke-width": e.value.crosshairStrokeWidth,
158
+ "stroke-dasharray": e.value.crosshairDasharray,
159
+ "stroke-linecap": "round"
160
+ }, null, 8, K),
161
+ r("line", {
162
+ x1: 50,
163
+ x2: 50,
164
+ y1: e.value.centerCircleRadius + 50,
165
+ y2: 5e3,
166
+ stroke: e.value.crosshairStroke,
167
+ "stroke-width": e.value.crosshairStrokeWidth,
168
+ "stroke-dasharray": e.value.crosshairDasharray,
169
+ "stroke-linecap": "round"
170
+ }, null, 8, Q)
171
+ ])) : i("", !0),
172
+ e.value.showIntersectCircles ? (o(), l("g", {
173
+ key: 4,
174
+ class: p({ "rotating-circles": e.value.isLoading })
175
+ }, [
176
+ r("circle", {
177
+ cx: 50,
178
+ cy: e.value.centerCircleRadius + 50,
179
+ r: e.value.intersectCirclesRadius,
180
+ fill: e.value.intersectCirclesFill
181
+ }, null, 8, Z),
182
+ r("circle", {
183
+ cx: 50,
184
+ cy: -e.value.centerCircleRadius + 50,
185
+ r: e.value.intersectCirclesRadius,
186
+ fill: e.value.intersectCirclesFill
187
+ }, null, 8, ee),
188
+ r("circle", {
189
+ cx: -e.value.centerCircleRadius + 50,
190
+ cy: 50,
191
+ r: e.value.intersectCirclesRadius,
192
+ fill: e.value.intersectCirclesFill
193
+ }, null, 8, te),
194
+ r("circle", {
195
+ cx: e.value.centerCircleRadius + 50,
196
+ cy: 50,
197
+ r: e.value.intersectCirclesRadius,
198
+ fill: e.value.intersectCirclesFill
199
+ }, null, 8, re)
200
+ ], 2)) : i("", !0),
201
+ e.value.showCoordinates ? (o(), l("g", se, [
202
+ r("text", {
203
+ "text-anchor": "end",
204
+ x: -e.value.centerCircleRadius + 50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset,
205
+ y: 50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset,
206
+ "font-size": e.value.coordinatesFontSize,
207
+ fill: e.value.coordinatesColor,
208
+ style: { "font-variant-numeric": "tabular-nums" },
209
+ "font-family": "Arial"
210
+ }, x(s.value.x.toFixed(0)), 9, oe),
211
+ r("g", {
212
+ transform: `translate(${50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset}, ${-e.value.centerCircleRadius + 50 - e.value.coordinatesFontSize / 2 + e.value.coordinatesOffset})`
213
+ }, [
214
+ r("text", {
215
+ "text-anchor": "start",
216
+ "font-size": e.value.coordinatesFontSize,
217
+ fill: e.value.coordinatesColor,
218
+ style: { "font-variant-numeric": "tabular-nums" },
219
+ transform: "rotate(-90)",
220
+ "font-family": "Arial"
221
+ }, x(s.value.y.toFixed(0)), 9, ie)
222
+ ], 8, le)
223
+ ])) : i("", !0)
224
+ ], 12, $)) : i("", !0);
225
+ }
226
+ }, he = /* @__PURE__ */ D(ae, [["__scopeId", "data-v-fe8d65eb"]]);
227
+ export {
228
+ he as default
229
+ };
@@ -0,0 +1,232 @@
1
+ import { useCssVars as J, computed as _, ref as r, watch as K, openBlock as w, createElementBlock as y, createElementVNode as g, normalizeStyle as z, createCommentVNode as I, Fragment as D, renderList as Q, normalizeClass as Z, renderSlot as ee, pushScopeId as te, popScopeId as oe, createStaticVNode as ae } from "vue";
2
+ import { p as le } from "./pdf-97UbtKC2.js";
3
+ import { u as ue } from "./useNestedProp-CkP8xhG_.js";
4
+ import { u as ne } from "./index-BMCvLyab.js";
5
+ import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const ie = (M) => (te("data-v-57895b3a"), M = M(), oe(), M), re = {
7
+ key: 0,
8
+ "data-html2canvas-ignore": "",
9
+ style: { width: "100%", display: "flex", "justify-content": "end" }
10
+ }, de = ["disabled"], ce = ["stroke"], he = /* @__PURE__ */ ae('<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), ve = [
11
+ he
12
+ ], fe = { key: 1 }, pe = ["id"], ge = /* @__PURE__ */ ie(() => /* @__PURE__ */ g("div", { class: "vue-ui-dashboard-grid" }, null, -1)), be = ["onMousedown", "onTouchstart"], we = ["onMousedown", "onTouchstart"], ye = ["onMousedown", "onTouchstart"], _e = ["onMousedown", "onTouchstart"], Me = ["onMousedown", "onTouchstart"], x = 20, me = {
13
+ __name: "vue-ui-dashboard",
14
+ props: {
15
+ dataset: Array,
16
+ config: Object
17
+ },
18
+ emits: ["change"],
19
+ setup(M, { expose: W, emit: E }) {
20
+ const X = M;
21
+ J((e) => ({
22
+ "417957d3": V.value,
23
+ "60fae9e7": j.value
24
+ }));
25
+ const { vue_ui_dashboard: L } = ne(), s = _(() => ue({
26
+ userConfig: X.config,
27
+ defaultConfig: L
28
+ })), Y = r(`vue-ui-dashboard-${Math.random()}`), c = r(s.value.locked);
29
+ function N() {
30
+ c.value = !c.value;
31
+ }
32
+ const n = r(X.dataset), h = r(null), u = r(null), v = r({ x: 0, y: 0 }), f = r({ x: 0, y: 0 }), i = r(null), d = r(!1), p = r(null), T = r(!1);
33
+ function S() {
34
+ T.value = !0, le({
35
+ domElement: document.getElementById(`vue-ui-dashboard_${Y.value}`),
36
+ fileName: "vue-ui-dashboard"
37
+ }).finally(() => {
38
+ T.value = !1;
39
+ });
40
+ }
41
+ function R(e) {
42
+ if (!c.value && (d.value = !0, p.value = e, u.value === null)) {
43
+ h.value = e, v.value = { x: event.clientX, y: event.clientY };
44
+ const t = n.value[e], a = 100 - t.width, o = 100 - t.height;
45
+ 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);
46
+ }
47
+ }
48
+ function k(e, t) {
49
+ d.value = !0, p.value = e, u.value = { index: e, direction: t };
50
+ const a = n.value[e];
51
+ f.value = { x: event.clientX, y: event.clientY, initialWidth: a.width, initialHeight: a.height };
52
+ }
53
+ function H(e, t, a) {
54
+ if (u.value.direction.includes("top")) {
55
+ const o = e.height - a / i.value.offsetHeight * 100;
56
+ o >= x && (e.top += a / i.value.offsetHeight * 100, e.height = o);
57
+ }
58
+ if (u.value.direction.includes("bottom")) {
59
+ const o = e.height + a / i.value.offsetHeight * 100;
60
+ o >= x && (e.height = o);
61
+ }
62
+ if (u.value.direction.includes("left")) {
63
+ const o = e.width - t / i.value.offsetWidth * 100;
64
+ o >= x && (e.left += t / i.value.offsetWidth * 100, e.width = o);
65
+ }
66
+ if (u.value.direction.includes("right")) {
67
+ const o = e.width + t / i.value.offsetWidth * 100;
68
+ o >= x && (e.width = o);
69
+ }
70
+ }
71
+ function B(e) {
72
+ if (!c.value) {
73
+ if (d.value = !0, h.value !== null) {
74
+ const t = n.value[h.value], a = e.clientX - v.value.x, o = e.clientY - v.value.y, l = t.left + a / i.value.offsetWidth * 100, b = t.top + o / i.value.offsetHeight * 100;
75
+ 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 };
76
+ }
77
+ if (u.value !== null) {
78
+ const t = n.value[u.value.index], a = e.clientX - f.value.x, o = e.clientY - f.value.y;
79
+ H(t, a, o), f.value = { x: e.clientX, y: e.clientY };
80
+ }
81
+ }
82
+ }
83
+ K(
84
+ n,
85
+ (e) => {
86
+ e && !d.value && E("change", n.value);
87
+ },
88
+ { deep: !0 }
89
+ );
90
+ function F() {
91
+ h.value = null, u.value = null, d.value = !1, p.value = null, n.value.forEach((e) => {
92
+ 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);
93
+ });
94
+ }
95
+ function P(e) {
96
+ c.value || (d.value = !0, p.value = e, u.value === null && (h.value = e, v.value = { x: event.touches[0].clientX, y: event.touches[0].clientY }));
97
+ }
98
+ function C(e, t, a) {
99
+ if (d.value = !0, p.value = e, u.value === null) {
100
+ u.value = { index: e, direction: t };
101
+ const o = n.value[e];
102
+ f.value = { x: a.touches[0].clientX, y: a.touches[0].clientY, initialWidth: o.width, initialHeight: o.height };
103
+ }
104
+ }
105
+ function $(e) {
106
+ if (d.value = !0, e.preventDefault(), u.value !== null) {
107
+ const t = n.value[u.value.index], a = e.touches[0].clientX - f.value.x, o = e.touches[0].clientY - f.value.y;
108
+ H(t, a, o), f.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
109
+ }
110
+ }
111
+ function O(e) {
112
+ if (!c.value && (d.value = !0, e.preventDefault(), h.value !== null)) {
113
+ const t = n.value[h.value], a = e.touches[0].clientX - v.value.x, o = e.touches[0].clientY - v.value.y, l = t.left + a / i.value.offsetWidth * 100, b = t.top + o / i.value.offsetHeight * 100;
114
+ 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 };
115
+ }
116
+ }
117
+ function m() {
118
+ d.value = !1, p.value = null, h.value = null, u.value = null, n.value.forEach((e) => {
119
+ 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);
120
+ });
121
+ }
122
+ const V = _(() => s.value.style.item.borderColor), j = _(() => s.value.style.resizeHandles.backgroundColor), A = _(() => s.value.style.board.aspectRatio), G = _(() => s.value.style.board.backgroundColor), U = _(() => s.value.style.board.border);
123
+ function q() {
124
+ return n.value;
125
+ }
126
+ return W({
127
+ generatePdf: S,
128
+ getItemsPositions: q,
129
+ toggleLock: N
130
+ }), (e, t) => (w(), y("div", null, [
131
+ s.value.allowPrint ? (w(), y("div", re, [
132
+ g("button", {
133
+ class: "vue-ui-dashboard-button",
134
+ onClick: S,
135
+ disabled: T.value,
136
+ style: z([{ "margin-top": "12px" }, `color:${s.value.style.board.color}`])
137
+ }, [
138
+ T.value ? (w(), y("svg", {
139
+ key: 0,
140
+ class: "vue-ui-dashboard-print-icon",
141
+ xmlns: "http://www.w3.org/2000/svg",
142
+ width: "20",
143
+ height: "20",
144
+ viewBox: "0 0 24 24",
145
+ "stroke-width": "1.5",
146
+ stroke: s.value.style.board.color,
147
+ fill: "none",
148
+ "stroke-linecap": "round",
149
+ "stroke-linejoin": "round"
150
+ }, ve, 8, ce)) : (w(), y("span", fe, "PDF"))
151
+ ], 12, de)
152
+ ])) : I("", !0),
153
+ g("div", {
154
+ class: "vue-ui-dashboard-container",
155
+ ref_key: "dashboardContainer",
156
+ ref: i,
157
+ id: `vue-ui-dashboard_${Y.value}`,
158
+ style: z(`border:${U.value}; sbackground:${G.value}; aspect-ratio:${A.value}`)
159
+ }, [
160
+ g("div", {
161
+ class: "vue-ui-dashboard-grid-container",
162
+ ref: "container",
163
+ onMousemove: B,
164
+ onMouseup: F,
165
+ onTouchmove: O,
166
+ onTouchend: m,
167
+ style: z(`background:${s.value.style.board.backgroundColor}`)
168
+ }, [
169
+ ge,
170
+ (w(!0), y(D, null, Q(n.value, (a, o) => (w(), y("div", {
171
+ key: a.id,
172
+ class: Z({ "vue-ui-dashboard-grid-item": !0, "vue-ui-dashboard-grid-item--locked": c.value }),
173
+ style: z({
174
+ width: `${a.width}%`,
175
+ height: `${a.height}%`,
176
+ left: `${a.left}%`,
177
+ top: `${a.top}%`,
178
+ cursor: "move",
179
+ boxShadow: p.value === o ? "0 6px 12px -3px rgba(0,0,0,0.3)" : "",
180
+ zIndex: p.value === o ? "1" : "0",
181
+ backgroundColor: s.value.style.item.backgroundColor
182
+ }),
183
+ onMousedown: (l) => R(o),
184
+ onTouchstart: (l) => P(o)
185
+ }, [
186
+ c.value ? I("", !0) : (w(), y(D, { key: 0 }, [
187
+ g("div", {
188
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",
189
+ onMousedown: (l) => k(o, "top-left"),
190
+ onTouchstart: (l) => C(o, "top-left", l),
191
+ onTouchmove: t[0] || (t[0] = (l) => $(l)),
192
+ onTouchend: m
193
+ }, null, 40, we),
194
+ g("div", {
195
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",
196
+ onMousedown: (l) => k(o, "top-right"),
197
+ onTouchstart: (l) => C(o, "top-right", l),
198
+ onTouchmove: t[1] || (t[1] = (l) => $(l)),
199
+ onTouchend: m
200
+ }, null, 40, ye),
201
+ g("div", {
202
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",
203
+ onMousedown: (l) => k(o, "bottom-left"),
204
+ onTouchstart: (l) => C(o, "bottom-left", l),
205
+ onTouchmove: t[2] || (t[2] = (l) => $(l)),
206
+ onTouchend: m
207
+ }, null, 40, _e),
208
+ g("div", {
209
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",
210
+ onMousedown: (l) => k(o, "bottom-right"),
211
+ onTouchstart: (l) => C(o, "bottom-right", l),
212
+ onTouchmove: t[3] || (t[3] = (l) => $(l)),
213
+ onTouchend: m
214
+ }, null, 40, Me)
215
+ ], 64)),
216
+ ee(e.$slots, "content", {
217
+ item: a,
218
+ index: o,
219
+ left: a.left,
220
+ top: a.top,
221
+ height: a.height,
222
+ width: a.width
223
+ }, void 0, !0)
224
+ ], 46, be))), 128))
225
+ ], 36)
226
+ ], 12, pe)
227
+ ]));
228
+ }
229
+ }, xe = /* @__PURE__ */ se(me, [["__scopeId", "data-v-57895b3a"]]);
230
+ export {
231
+ xe as default
232
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),R=require("./pdf-Cz3729tZ.cjs"),q=require("./useNestedProp-BMxXyPbW.cjs"),O=require("./index-BkomIE9L.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.pdf({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;
@@ -0,0 +1,153 @@
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-CkP8xhG_.js";
3
+ import { u as M, X as S } from "./index-BMCvLyab.js";
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
+ __name: "Digit",
6
+ props: {
7
+ quanta: {
8
+ type: String,
9
+ default: null
10
+ },
11
+ backgroundColor: {
12
+ type: String,
13
+ default: "#e1e5e8"
14
+ },
15
+ color: {
16
+ type: String,
17
+ default: "#000000"
18
+ },
19
+ // coordinates from top left of a
20
+ x: {
21
+ type: Number,
22
+ default: 0
23
+ },
24
+ y: {
25
+ type: Number,
26
+ default: 0
27
+ }
28
+ },
29
+ setup(e) {
30
+ const u = e, c = k({
31
+ /**
32
+ * clockwise from top (last: g)
33
+ * a
34
+ * ----
35
+ * f | | b
36
+ * ----
37
+ * e | g | c
38
+ * ----
39
+ * d
40
+ */
41
+ 0: "1111110",
42
+ 1: "0110000",
43
+ 2: "1101101",
44
+ 3: "1111001",
45
+ 4: "0110011",
46
+ 5: "1011011",
47
+ 6: "1011111",
48
+ 7: "1110000",
49
+ 8: "1111111",
50
+ 9: "1111011",
51
+ "-": "0000001",
52
+ X: "0000000"
53
+ }), t = d(() => [void 0, null].includes(u.quanta) ? c.value.X : c.value[u.quanta]);
54
+ return (y, g) => ($(), i(o, null, [
55
+ [void 0, null, "."].includes(e.quanta) ? m("", !0) : ($(), i("g", w, [
56
+ l("path", {
57
+ 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`,
58
+ fill: t.value[0] == 1 ? e.color : e.backgroundColor,
59
+ stroke: "none"
60
+ }, null, 8, B),
61
+ l("path", {
62
+ 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}`,
63
+ fill: t.value[1] == 1 ? e.color : e.backgroundColor,
64
+ stroke: "none"
65
+ }, null, 8, F),
66
+ l("path", {
67
+ 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}`,
68
+ fill: t.value[2] == 1 ? e.color : e.backgroundColor,
69
+ stroke: "none"
70
+ }, null, 8, X),
71
+ l("path", {
72
+ 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}`,
73
+ fill: t.value[3] == 1 ? e.color : e.backgroundColor,
74
+ stroke: "none"
75
+ }, null, 8, E),
76
+ l("path", {
77
+ 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}`,
78
+ fill: t.value[4] == 1 ? e.color : e.backgroundColor,
79
+ stroke: "none"
80
+ }, null, 8, I),
81
+ l("path", {
82
+ 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}`,
83
+ fill: t.value[5] == 1 ? e.color : e.backgroundColor,
84
+ stroke: "none"
85
+ }, null, 8, O),
86
+ l("path", {
87
+ 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}`,
88
+ fill: t.value[6] == 1 ? e.color : e.backgroundColor,
89
+ stroke: "none"
90
+ }, null, 8, A)
91
+ ])),
92
+ e.quanta == "." ? ($(), i("g", D, [
93
+ l("circle", {
94
+ cx: e.x - 8,
95
+ cy: e.y + 60,
96
+ r: 3,
97
+ fill: e.color
98
+ }, null, 8, G)
99
+ ])) : m("", !0)
100
+ ], 64));
101
+ }
102
+ }, j = ["xmlns", "viewBox"], U = {
103
+ __name: "vue-ui-digits",
104
+ props: {
105
+ dataset: {
106
+ type: Number,
107
+ default: 0
108
+ },
109
+ config: {
110
+ type: Object,
111
+ default() {
112
+ return {};
113
+ }
114
+ }
115
+ },
116
+ setup(e) {
117
+ const u = e, { vue_ui_digits: c } = M(), t = d(() => q({
118
+ userConfig: u.config,
119
+ defaultConfig: c
120
+ })), y = d(() => {
121
+ const a = (u.dataset || 0).toString().split(""), x = [], n = {
122
+ x: 10,
123
+ y: 10
124
+ };
125
+ let L = 0;
126
+ for (let f = 0; f < a.length; f += 1) {
127
+ const h = a[f];
128
+ x.push({
129
+ x: n.x + L,
130
+ y: n.y,
131
+ quanta: h
132
+ }), h == "." ? L += 2 : L += 44;
133
+ }
134
+ return x;
135
+ }), g = d(() => Math.max(...y.value.map((a) => a.x)) + 36);
136
+ return (a, x) => ($(), i("svg", {
137
+ xmlns: v(S),
138
+ viewBox: `0 0 ${g.value} 80`,
139
+ style: C(`background:${t.value.backgroundColor};${t.value.height ? `height:${t.value.height};` : ""}${t.value.width ? `width:${t.value.width}` : ""}`)
140
+ }, [
141
+ ($(!0), i(o, null, b(y.value, (n) => ($(), N(V, {
142
+ x: n.x,
143
+ y: n.y,
144
+ quanta: n.quanta,
145
+ color: t.value.digits.color,
146
+ backgroundColor: t.value.digits.skeletonColor
147
+ }, null, 8, ["x", "y", "quanta", "color", "backgroundColor"]))), 256))
148
+ ], 12, j));
149
+ }
150
+ };
151
+ export {
152
+ U as default
153
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-BMxXyPbW.cjs"),L=require("./index-BkomIE9L.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;