vue-data-ui 2.8.0 → 2.8.2-beta.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.
Files changed (177) hide show
  1. package/README.md +4 -0
  2. package/dist/{Arrow-I5AiHXxB.js → Arrow-COsmVQGg.js} +1 -1
  3. package/dist/{Arrow-D6q7wT70.cjs → Arrow-CRkagNj_.cjs} +1 -1
  4. package/dist/{BaseIcon-BNBdVypn.cjs → BaseIcon-B4pcy-8f.cjs} +1 -1
  5. package/dist/{BaseIcon-eOI-TaGA.js → BaseIcon-Dmcf856A.js} +1 -1
  6. package/dist/{ColorPicker-RxZk7X7b.js → ColorPicker-BQSP45oM.js} +3 -3
  7. package/dist/{ColorPicker-B3YPWhmx.cjs → ColorPicker-C9SFkHn3.cjs} +1 -1
  8. package/dist/{DataTable-D6KdvUip.js → DataTable-B1yJapRL.js} +2 -2
  9. package/dist/{DataTable-DbFdIOSA.cjs → DataTable-Bjx5Ccho.cjs} +1 -1
  10. package/dist/{Legend-D2hXVij0.js → Legend--YhaiVet.js} +2 -2
  11. package/dist/{Legend-C-PmQikI.cjs → Legend-BjHoFybL.cjs} +1 -1
  12. package/dist/{PackageVersion-m64FzgEd.js → PackageVersion-BwGV13wg.js} +3 -3
  13. package/dist/PackageVersion-_-duZr_B.cjs +1 -0
  14. package/dist/{PenAndPaper-DQgGlIFz.cjs → PenAndPaper-BLqBmiek.cjs} +1 -1
  15. package/dist/{PenAndPaper-DsrtCBwN.js → PenAndPaper-BwOppffl.js} +3 -3
  16. package/dist/{Shape-B75ciWNR.cjs → Shape-Cbao7HSz.cjs} +1 -1
  17. package/dist/{Shape-B5iAAqd4.js → Shape-Dg-hzjV4.js} +1 -1
  18. package/dist/{Slicer-CbLRKclY.cjs → Slicer-B4Mbf7CA.cjs} +1 -1
  19. package/dist/{Slicer-kYbzIqGE.js → Slicer-XYuzh148.js} +2 -2
  20. package/dist/{Title-BqVhWQj9.cjs → Title-CF40M_nk.cjs} +1 -1
  21. package/dist/{Title-C0CT6jA6.js → Title-D08zl5ev.js} +1 -1
  22. package/dist/{Tooltip-TflEtITP.js → Tooltip-BXmEpCan.js} +1 -1
  23. package/dist/{Tooltip-DG7xNLW-.cjs → Tooltip-CupB-l8u.cjs} +1 -1
  24. package/dist/{dom-to-png-DOvFiyVD.js → dom-to-png-B2070iQl.js} +1 -1
  25. package/dist/{dom-to-png-CpKxlQQV.cjs → dom-to-png-CHSv0xMW.cjs} +1 -1
  26. package/dist/{img-DJuM6hTd.cjs → img-BR_cEhe8.cjs} +1 -1
  27. package/dist/{img-Df4jddw0.js → img-BtO99VMK.js} +1 -1
  28. package/dist/{index-B8vOvwaf.cjs → index-CRA3TjQQ.cjs} +1 -1
  29. package/dist/{index-CHhWsvsT.js → index-DmMaSSqc.js} +1 -1
  30. package/dist/pdf-Bc4mkqYX.js +51 -0
  31. package/dist/pdf-D6x7WEvy.cjs +1 -0
  32. package/dist/style.css +1 -1
  33. package/dist/types/vue-data-ui.d.cts +1 -1
  34. package/dist/types/vue-data-ui.d.ts +1 -1
  35. package/dist/{useNestedProp-BFjDbZR0.js → useNestedProp-B47aFTkT.js} +1 -1
  36. package/dist/{useNestedProp-C4sQAs2T.cjs → useNestedProp-wDhEx7x9.cjs} +1 -1
  37. package/dist/{usePrinter-Bi6GyL7Z.cjs → usePrinter-06EDG1PE.cjs} +1 -1
  38. package/dist/{usePrinter-CAc9dBow.js → usePrinter-1GlKtPCq.js} +3 -3
  39. package/dist/{vue-data-ui-BiqUTQHh.js → vue-data-ui-CDFtEOu4.js} +61 -61
  40. package/dist/{vue-data-ui-BXyPpDlS.cjs → vue-data-ui-Dx4piIh9.cjs} +1 -1
  41. package/dist/vue-data-ui.cjs +1 -1
  42. package/dist/vue-data-ui.js +1 -1
  43. package/dist/{vue-ui-3d-bar-CsfKeMor.cjs → vue-ui-3d-bar-DLMD2SZo.cjs} +1 -1
  44. package/dist/{vue-ui-3d-bar-BukVhbUM.js → vue-ui-3d-bar-DeixcN8U.js} +9 -9
  45. package/dist/{vue-ui-accordion-CBE2Lscz.cjs → vue-ui-accordion-DcFabpGO.cjs} +1 -1
  46. package/dist/{vue-ui-accordion-C7pRXQdw.js → vue-ui-accordion-QdoZquMy.js} +3 -3
  47. package/dist/{vue-ui-age-pyramid-Dax4kNLx.js → vue-ui-age-pyramid-2y2FFtHU.js} +10 -10
  48. package/dist/{vue-ui-age-pyramid-CmhWu1qE.cjs → vue-ui-age-pyramid-B8jim3J5.cjs} +1 -1
  49. package/dist/vue-ui-annotator-CfEp5EPK.cjs +371 -0
  50. package/dist/{vue-ui-annotator-3Q8JcMLX.js → vue-ui-annotator-DGIvKHlF.js} +36 -31
  51. package/dist/{vue-ui-bullet-BnqMZQ7a.js → vue-ui-bullet-DtC5tbBO.js} +8 -8
  52. package/dist/{vue-ui-bullet-Da3iBcaw.cjs → vue-ui-bullet-sk8TiDAx.cjs} +1 -1
  53. package/dist/{vue-ui-candlestick-9FDrczZR.cjs → vue-ui-candlestick-Bp1X8rCI.cjs} +1 -1
  54. package/dist/{vue-ui-candlestick-D0mY94Jp.js → vue-ui-candlestick-aZW1FkBk.js} +11 -11
  55. package/dist/{vue-ui-carousel-table-D82JYyHE.cjs → vue-ui-carousel-table-Cyg9E2_P.cjs} +1 -1
  56. package/dist/{vue-ui-carousel-table--HXY8XEd.js → vue-ui-carousel-table-DEkz5mlG.js} +4 -4
  57. package/dist/{vue-ui-chestnut-ChxHav21.cjs → vue-ui-chestnut-Dc8BR4Fp.cjs} +1 -1
  58. package/dist/{vue-ui-chestnut-DGMEqNF1.js → vue-ui-chestnut-Dt3E_CqF.js} +8 -8
  59. package/dist/{vue-ui-circle-pack-Bto97bX9.cjs → vue-ui-circle-pack-LTgaNsYK.cjs} +1 -1
  60. package/dist/{vue-ui-circle-pack-DDtij6Kr.js → vue-ui-circle-pack-POZYcUlI.js} +9 -9
  61. package/dist/{vue-ui-cursor-DnQjJnVr.cjs → vue-ui-cursor-C3N9zUA7.cjs} +1 -1
  62. package/dist/{vue-ui-cursor-BffyiKnL.js → vue-ui-cursor-DK5VB3D0.js} +2 -2
  63. package/dist/vue-ui-dashboard-BEbiVgOQ.cjs +1 -0
  64. package/dist/vue-ui-dashboard-jqW1Xxpz.js +317 -0
  65. package/dist/{vue-ui-digits-BTZHIHFC.cjs → vue-ui-digits-BXZmcW0S.cjs} +1 -1
  66. package/dist/{vue-ui-digits-CLgeA2NX.js → vue-ui-digits-Bcx-kLHo.js} +2 -2
  67. package/dist/{vue-ui-donut-7BmcLSnQ.cjs → vue-ui-donut-C3CUnPIO.cjs} +1 -1
  68. package/dist/{vue-ui-donut-Bb9t4OWG.js → vue-ui-donut-OvjOLwRW.js} +12 -12
  69. package/dist/{vue-ui-donut-evolution-B3c99AS5.cjs → vue-ui-donut-evolution-Bx8FunVF.cjs} +1 -1
  70. package/dist/{vue-ui-donut-evolution-BzETpvh8.js → vue-ui-donut-evolution-TsbcmiBs.js} +11 -11
  71. package/dist/{vue-ui-dumbbell-CovXfgXM.js → vue-ui-dumbbell-CHcPo7vY.js} +10 -10
  72. package/dist/{vue-ui-dumbbell-q0DWy_nW.cjs → vue-ui-dumbbell-CezLEwpL.cjs} +1 -1
  73. package/dist/{vue-ui-flow-D-S2_qAL.js → vue-ui-flow-BMNYBEJh.js} +9 -9
  74. package/dist/{vue-ui-flow-DOBvmEXN.cjs → vue-ui-flow-C0qwgT75.cjs} +1 -1
  75. package/dist/{vue-ui-funnel-CG030eaF.cjs → vue-ui-funnel-Ct3GgY7y.cjs} +1 -1
  76. package/dist/{vue-ui-funnel-AgQDv8GV.js → vue-ui-funnel-uz_CQDJI.js} +9 -9
  77. package/dist/{vue-ui-galaxy-VTaUhuNb.cjs → vue-ui-galaxy-Cx51n6hM.cjs} +1 -1
  78. package/dist/{vue-ui-galaxy-Eh1iX0hH.js → vue-ui-galaxy-DawYn5OS.js} +11 -11
  79. package/dist/{vue-ui-gauge-Dp49FLkw.cjs → vue-ui-gauge-CACfaNHg.cjs} +1 -1
  80. package/dist/{vue-ui-gauge-BU3D6eVu.js → vue-ui-gauge-CcQP3sPy.js} +7 -7
  81. package/dist/{vue-ui-gizmo-bDjkcGjm.cjs → vue-ui-gizmo-CjsP-8Li.cjs} +1 -1
  82. package/dist/{vue-ui-gizmo-BALGIrUN.js → vue-ui-gizmo-CtfaITb7.js} +3 -3
  83. package/dist/{vue-ui-heatmap-C4-jHxqE.js → vue-ui-heatmap-C9k81DDp.js} +10 -10
  84. package/dist/{vue-ui-heatmap-BSjmR3sS.cjs → vue-ui-heatmap-DrtdWgC5.cjs} +1 -1
  85. package/dist/{vue-ui-history-plot-CRhDY60l.js → vue-ui-history-plot-BWuqP7cL.js} +11 -11
  86. package/dist/{vue-ui-history-plot-JQTLEF-0.cjs → vue-ui-history-plot-Cz4rOch3.cjs} +1 -1
  87. package/dist/{vue-ui-kpi-BKvh1huR.js → vue-ui-kpi-DPwY24JT.js} +3 -3
  88. package/dist/{vue-ui-kpi-CVkh7BAP.cjs → vue-ui-kpi-sHiuWUD6.cjs} +1 -1
  89. package/dist/{vue-ui-mini-loader-DbH7yYMi.js → vue-ui-mini-loader-CWXeBzw9.js} +2 -2
  90. package/dist/{vue-ui-mini-loader-C1LzgA-e.cjs → vue-ui-mini-loader-OuKZN9HN.cjs} +1 -1
  91. package/dist/{vue-ui-molecule-CysKbgkZ.js → vue-ui-molecule-BxWIQrOy.js} +11 -11
  92. package/dist/{vue-ui-molecule-NnAic6UM.cjs → vue-ui-molecule-oHkRoNBr.cjs} +1 -1
  93. package/dist/{vue-ui-mood-radar-DjGSlhy3.js → vue-ui-mood-radar-Cd7HI8bj.js} +11 -11
  94. package/dist/{vue-ui-mood-radar-ByisyMbS.cjs → vue-ui-mood-radar-DCxDtpf3.cjs} +1 -1
  95. package/dist/{vue-ui-nested-donuts-XBgi1vDJ.js → vue-ui-nested-donuts-BoXT5OAw.js} +11 -11
  96. package/dist/{vue-ui-nested-donuts-Bqlr_1UH.cjs → vue-ui-nested-donuts-CXFtb1M0.cjs} +1 -1
  97. package/dist/{vue-ui-onion-D-O_hUCV.cjs → vue-ui-onion-DYgInDb8.cjs} +1 -1
  98. package/dist/{vue-ui-onion-BXMEYteQ.js → vue-ui-onion-Dxss5Mnb.js} +11 -11
  99. package/dist/{vue-ui-parallel-coordinate-plot-Tpk1xRt0.cjs → vue-ui-parallel-coordinate-plot-Bs7704DX.cjs} +1 -1
  100. package/dist/{vue-ui-parallel-coordinate-plot-Bs32LBr4.js → vue-ui-parallel-coordinate-plot-C-K9WUQq.js} +12 -12
  101. package/dist/{vue-ui-quadrant-CxrjcS0W.cjs → vue-ui-quadrant-CgBI3znD.cjs} +1 -1
  102. package/dist/{vue-ui-quadrant-DfG2m9U9.js → vue-ui-quadrant-ol8blyLN.js} +12 -12
  103. package/dist/{vue-ui-quick-chart-xFcZf4ic.js → vue-ui-quick-chart-BoPihMU7.js} +9 -9
  104. package/dist/{vue-ui-quick-chart-BN752LC5.cjs → vue-ui-quick-chart-Ds8vvott.cjs} +1 -1
  105. package/dist/{vue-ui-radar-Dg9fIl6V.js → vue-ui-radar-BYikeYez.js} +12 -12
  106. package/dist/{vue-ui-radar-CpkoNVZF.cjs → vue-ui-radar-Bq9yv1Nz.cjs} +1 -1
  107. package/dist/{vue-ui-rating-CSIg9dgg.cjs → vue-ui-rating-CIgPOsF9.cjs} +1 -1
  108. package/dist/{vue-ui-rating-BOzOOjeP.js → vue-ui-rating-CS87Hplo.js} +2 -2
  109. package/dist/{vue-ui-relation-circle-B8eDBnFj.js → vue-ui-relation-circle-B1_IFEQE.js} +7 -7
  110. package/dist/{vue-ui-relation-circle-BNNRdeuH.cjs → vue-ui-relation-circle-DYB4yUiA.cjs} +1 -1
  111. package/dist/{vue-ui-rings-Cmr5uRZw.js → vue-ui-rings-BnNg87-v.js} +12 -12
  112. package/dist/{vue-ui-rings-DjDW0-Q6.cjs → vue-ui-rings-Doe8Q28H.cjs} +1 -1
  113. package/dist/{vue-ui-scatter-hA9kp5k6.cjs → vue-ui-scatter-CKRjkm-h.cjs} +1 -1
  114. package/dist/{vue-ui-scatter-DGnuVGR2.js → vue-ui-scatter-CXwmuMIU.js} +12 -12
  115. package/dist/{vue-ui-skeleton-Du-JZESo.cjs → vue-ui-skeleton-5g5yLLM4.cjs} +1 -1
  116. package/dist/{vue-ui-skeleton-Bbm-HuYK.js → vue-ui-skeleton-8OZ9rJXh.js} +3 -3
  117. package/dist/{vue-ui-smiley-BRN7oHvx.cjs → vue-ui-smiley-CqN-vQye.cjs} +1 -1
  118. package/dist/{vue-ui-smiley-DgI0gw_a.js → vue-ui-smiley-CzqaH8_8.js} +2 -2
  119. package/dist/{vue-ui-spark-trend-CuGZ7SUB.js → vue-ui-spark-trend-DK6gOZHz.js} +5 -5
  120. package/dist/{vue-ui-spark-trend-BcNN-FO8.cjs → vue-ui-spark-trend-yVxR7PiI.cjs} +1 -1
  121. package/dist/{vue-ui-sparkbar-CsyQT684.js → vue-ui-sparkbar-BKOe_Cee.js} +4 -4
  122. package/dist/{vue-ui-sparkbar-DjoAo8_e.cjs → vue-ui-sparkbar-rR2c2FDd.cjs} +1 -1
  123. package/dist/{vue-ui-sparkgauge-D7iAELw1.cjs → vue-ui-sparkgauge-C7OYH1Fs.cjs} +1 -1
  124. package/dist/{vue-ui-sparkgauge-BCPkzgDv.js → vue-ui-sparkgauge-RN8tIAc9.js} +4 -4
  125. package/dist/{vue-ui-sparkhistogram-Ddkf1jvO.js → vue-ui-sparkhistogram-Zzy9jGiy.js} +5 -5
  126. package/dist/{vue-ui-sparkhistogram-Bf0QfydV.cjs → vue-ui-sparkhistogram-__Vd5tky.cjs} +1 -1
  127. package/dist/{vue-ui-sparkline-CdgHJGYS.cjs → vue-ui-sparkline-DDWOEIzY.cjs} +1 -1
  128. package/dist/{vue-ui-sparkline-DxwDic0p.js → vue-ui-sparkline-liB_Hmaq.js} +4 -4
  129. package/dist/{vue-ui-sparkstackbar-FV9amPXv.cjs → vue-ui-sparkstackbar-BrpeJTzl.cjs} +1 -1
  130. package/dist/{vue-ui-sparkstackbar-oQ5zFbnG.js → vue-ui-sparkstackbar-COJVT609.js} +5 -5
  131. package/dist/{vue-ui-stackbar-DXCUbrDs.js → vue-ui-stackbar-B8f8IS8C.js} +13 -13
  132. package/dist/{vue-ui-stackbar-B2BaQqZp.cjs → vue-ui-stackbar-DtHaJXGD.cjs} +1 -1
  133. package/dist/{vue-ui-strip-plot-8FTALylL.js → vue-ui-strip-plot-CVKQziT5.js} +11 -11
  134. package/dist/{vue-ui-strip-plot-CTTgQkQq.cjs → vue-ui-strip-plot-Dp816JKq.cjs} +1 -1
  135. package/dist/{vue-ui-table-BSZ4-uk3.cjs → vue-ui-table-CwRXfETT.cjs} +1 -1
  136. package/dist/{vue-ui-table-CoQmm6oQ.js → vue-ui-table-D1Kid804.js} +1 -1
  137. package/dist/{vue-ui-table-heatmap-DbrXViRF.js → vue-ui-table-heatmap-COLSO8dn.js} +4 -4
  138. package/dist/{vue-ui-table-heatmap-9co1bgsX.cjs → vue-ui-table-heatmap-Do-ARjlq.cjs} +1 -1
  139. package/dist/{vue-ui-table-sparkline-DmifMZlU.js → vue-ui-table-sparkline-CKETpujG.js} +5 -5
  140. package/dist/{vue-ui-table-sparkline-Bedq8Umj.cjs → vue-ui-table-sparkline-nTd1T2Nq.cjs} +1 -1
  141. package/dist/{vue-ui-thermometer-Dq06rElD.cjs → vue-ui-thermometer-BZyDvYE0.cjs} +1 -1
  142. package/dist/{vue-ui-thermometer-CRPYJ2zm.js → vue-ui-thermometer-DiCuDyU3.js} +7 -7
  143. package/dist/{vue-ui-timer-DxuD_GzY.cjs → vue-ui-timer-CkfRiOdo.cjs} +1 -1
  144. package/dist/{vue-ui-timer-BKBy1ZLE.js → vue-ui-timer-DULQQyad.js} +5 -5
  145. package/dist/{vue-ui-tiremarks-NfgbQpwX.js → vue-ui-tiremarks-CxSfMNfB.js} +7 -7
  146. package/dist/{vue-ui-tiremarks-DNMh2uS8.cjs → vue-ui-tiremarks-D_-IhOIM.cjs} +1 -1
  147. package/dist/{vue-ui-treemap-BPToyCts.cjs → vue-ui-treemap-Bom01mr7.cjs} +1 -1
  148. package/dist/{vue-ui-treemap-BIFpEdcW.js → vue-ui-treemap-uNR6Swq2.js} +12 -12
  149. package/dist/{vue-ui-vertical-bar-CJPzwkOs.js → vue-ui-vertical-bar-B-HEGjmy.js} +12 -12
  150. package/dist/{vue-ui-vertical-bar-DvXKngor.cjs → vue-ui-vertical-bar-BCyVbfNP.cjs} +1 -1
  151. package/dist/{vue-ui-waffle-CjAk1ZgB.cjs → vue-ui-waffle-B6zy86qy.cjs} +1 -1
  152. package/dist/{vue-ui-waffle-W6LYkj3J.js → vue-ui-waffle-CI6IaCpT.js} +12 -12
  153. package/dist/{vue-ui-wheel-BrQpTjAd.js → vue-ui-wheel-B_ZTQj8n.js} +7 -7
  154. package/dist/{vue-ui-wheel-C6CiUQPX.cjs → vue-ui-wheel-DZfrwJOK.cjs} +1 -1
  155. package/dist/{vue-ui-word-cloud-DLZNBF3e.cjs → vue-ui-word-cloud-B7KEJYTm.cjs} +1 -1
  156. package/dist/{vue-ui-word-cloud-BDHwUS2t.js → vue-ui-word-cloud-B8Da_fNw.js} +10 -10
  157. package/dist/{vue-ui-world-CHeMS2oK.js → vue-ui-world-BRaOylAI.js} +14 -14
  158. package/dist/{vue-ui-world-_B_bmsir.cjs → vue-ui-world-B_tKcYOS.cjs} +2 -2
  159. package/dist/{vue-ui-xy-DCqIGXDR.js → vue-ui-xy-CZvUtKRw.js} +16 -16
  160. package/dist/{vue-ui-xy-Bxf4aZvK.cjs → vue-ui-xy-DBRrNTNO.cjs} +2 -2
  161. package/dist/{vue-ui-xy-canvas-DkW65e7N.js → vue-ui-xy-canvas-BZFEUjUp.js} +12 -12
  162. package/dist/{vue-ui-xy-canvas-C-FBIlH7.cjs → vue-ui-xy-canvas-CuKeAw-R.cjs} +1 -1
  163. package/package.json +8 -3
  164. package/dist/PackageVersion-D22bJIIL.cjs +0 -1
  165. package/dist/html2canvas.esm-BA_v9SIU.cjs +0 -22
  166. package/dist/html2canvas.esm-DgdJBc_o.js +0 -4871
  167. package/dist/index.es-BloWY6jv.js +0 -6645
  168. package/dist/index.es-HygMioe_.cjs +0 -18
  169. package/dist/jspdf.es.min-C518mmma.cjs +0 -243
  170. package/dist/jspdf.es.min-t_OLULUR.js +0 -8094
  171. package/dist/pdf-BV7moOjc.js +0 -46
  172. package/dist/pdf-Bihl06mH.cjs +0 -1
  173. package/dist/purify.es-BGDLgQxM.js +0 -519
  174. package/dist/purify.es-DSp9NJ6S.cjs +0 -2
  175. package/dist/vue-ui-annotator-iiL8Nzi5.cjs +0 -371
  176. package/dist/vue-ui-dashboard-B9YwIx1g.cjs +0 -1
  177. package/dist/vue-ui-dashboard-BvzyqjWd.js +0 -248
@@ -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
- };