vue-data-ui 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +26 -0
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
  73. package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
  79. package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
  80. package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
  82. package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
  83. package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
  86. package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
  88. package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
  89. package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
  90. package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
  91. package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
  92. package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
  94. package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
  95. package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
  96. package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
  97. package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
  100. package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
  103. package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
  104. package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
  105. package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
  106. package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
  107. package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
  111. package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
  112. package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
  113. package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
  119. package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
  120. package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
  121. package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
  123. package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
  126. package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
  127. package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
  128. package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
  129. package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
  130. package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
  131. package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
  132. package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
  133. package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
  134. package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
  135. package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
  136. package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
  140. package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
  141. package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
  142. package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
  143. package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
  144. package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
@@ -1,412 +0,0 @@
1
- import { useCssVars as we, computed as U, defineAsyncComponent as o, ref as r, watch as H, createElementBlock as O, openBlock as g, createElementVNode as V, createBlock as D, createCommentVNode as Y, normalizeStyle as k, Fragment as Q, renderList as Te, normalizeClass as Ce, renderSlot as y, resolveDynamicComponent as Ie, mergeProps as Me, unref as w, createSlots as Oe, withCtx as z, normalizeProps as j, guardReactiveProps as K } from "vue";
2
- import { u as $e, a as Pe } from "./useNestedProp-BjZe1Y85.js";
3
- import { c as Se } from "./lib-C_mNZmhD.js";
4
- import { u as Re } from "./usePrinter-DTzqpYKF.js";
5
- import ze from "./UserOptions-CGnQt6Fd.js";
6
- import { u as Ae } from "./useUserOptionState-BIvW1Kz7.js";
7
- import Xe from "./PenAndPaper-DSvu9dwa.js";
8
- import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const He = ["id"], De = ["onMousedown", "onTouchstart"], Ye = ["onMousedown", "onTouchstart"], We = ["onMousedown", "onTouchstart"], Ne = ["onMousedown", "onTouchstart"], Ee = ["onMousedown", "onTouchstart"], A = 1, Le = {
10
- __name: "vue-ui-dashboard",
11
- props: {
12
- dataset: Array,
13
- config: Object
14
- },
15
- emits: ["change"],
16
- setup(q, { expose: J, emit: Z }) {
17
- we((e) => ({
18
- v26ed75e6: he.value,
19
- v2a0a8e34: fe.value
20
- }));
21
- const ee = {
22
- VueDataUi: o(() => import("./vue-data-ui-DxgRqCAo.js")),
23
- VueUi3dBar: o(() => import("./vue-ui-3d-bar-DmNJp8SY.js")),
24
- VueUiAccordion: o(() => import("./vue-ui-accordion-CZ0thhxa.js")),
25
- VueUiAgePyramid: o(() => import("./vue-ui-age-pyramid-CPAP3sNY.js")),
26
- VueUiAnnotator: o(() => import("./vue-ui-annotator-BylDgUVb.js")),
27
- VueUiCandlestick: o(() => import("./vue-ui-candlestick-DewevWV_.js")),
28
- VueUiChestnut: o(() => import("./vue-ui-chestnut-D9sdFZ4E.js")),
29
- VueUiDigits: o(() => import("./vue-ui-digits-ByNNcWXi.js")),
30
- VueUiDonut: o(() => import("./vue-ui-donut-BRGFcgxS.js")),
31
- VueUiDonutEvolution: o(() => import("./vue-ui-donut-evolution-DJ0C-7jH.js")),
32
- VueUiDumbbell: o(() => import("./vue-ui-dumbbell-iQJ0BUhm.js")),
33
- VueUiFlow: o(() => import("./vue-ui-flow-CTYFoib3.js")),
34
- VueUiGalaxy: o(() => import("./vue-ui-galaxy-BQrxjKZJ.js")),
35
- VueUiGauge: o(() => import("./vue-ui-gauge-Tc-0NI0Y.js")),
36
- VueUiHeatmap: o(() => import("./vue-ui-heatmap-BZimPzsL.js")),
37
- VueUiKpi: o(() => import("./vue-ui-kpi-BGGff8LM.js")),
38
- VueUiMiniLoader: o(() => import("./vue-ui-mini-loader-CSF-7TJL.js")),
39
- VueUiMolecule: o(() => import("./vue-ui-molecule-BALqwB8c.js")),
40
- VueUiMoodRadar: o(() => import("./vue-ui-mood-radar-QJ5nlZby.js")),
41
- VueUiNestedDonuts: o(() => import("./vue-ui-nested-donuts-CmUabkkQ.js")),
42
- VueUiOnion: o(() => import("./vue-ui-onion-DAOCf3f8.js")),
43
- VueUiParallelCoordinatePlot: o(() => import("./vue-ui-parallel-coordinate-plot-D8jTuFjq.js")),
44
- VueUiQuadrant: o(() => import("./vue-ui-quadrant-CO52mSRY.js")),
45
- VueUiQuickChart: o(() => import("./vue-ui-quick-chart-DEaVSldE.js")),
46
- VueUiRadar: o(() => import("./vue-ui-radar-C5V4hhbW.js")),
47
- VueUiRating: o(() => import("./vue-ui-rating-CiMoFM_c.js")),
48
- VueUiRelationCircle: o(() => import("./vue-ui-relation-circle-CbMM0Jka.js")),
49
- VueUiRings: o(() => import("./vue-ui-rings-BpUcyqo7.js")),
50
- VueUiScatter: o(() => import("./vue-ui-scatter--Dxe-hfO.js")),
51
- VueUiSkeleton: o(() => import("./vue-ui-skeleton-BWq-VDzg.js")),
52
- VueUiSmiley: o(() => import("./vue-ui-smiley-sGFRbn31.js")),
53
- VueUiSparkHistogram: o(() => import("./vue-ui-sparkhistogram-Dm7QXrA-.js")),
54
- VueUiSparkStackbar: o(() => import("./vue-ui-sparkstackbar-M53Nt07M.js")),
55
- VueUiSparkTrend: o(() => import("./vue-ui-spark-trend-T4J_YOa_.js")),
56
- VueUiSparkbar: o(() => import("./vue-ui-sparkbar-DnKP55Vu.js")),
57
- VueUiSparkgauge: o(() => import("./vue-ui-sparkgauge-BDQLP-zi.js")),
58
- VueUiSparkline: o(() => import("./vue-ui-sparkline-tXGDLHRy.js")),
59
- VueUiStripPlot: o(() => import("./vue-ui-strip-plot-BX9i3wMn.js")),
60
- VueUiTable: o(() => import("./vue-ui-table-7r02N9R9.js")),
61
- VueUiTableHeatmap: o(() => import("./vue-ui-table-heatmap-BqCEBoUf.js")),
62
- VueUiTableSparkline: o(() => import("./vue-ui-table-sparkline-DZaAh10E.js")),
63
- VueUiThermometer: o(() => import("./vue-ui-thermometer-CFPt3MOv.js")),
64
- VueUiTimer: o(() => import("./vue-ui-timer-Ds-MJoW2.js")),
65
- VueUiTiremarks: o(() => import("./vue-ui-tiremarks-2eIQ6vxu.js")),
66
- VueUiTreemap: o(() => import("./vue-ui-treemap-BEvl8hiw.js")),
67
- VueUiVerticalBar: o(() => import("./vue-ui-vertical-bar-D8dtM8sw.js")),
68
- VueUiHorizontalBar: o(() => import("./vue-ui-vertical-bar-D8dtM8sw.js")),
69
- VueUiWaffle: o(() => import("./vue-ui-waffle-B3q-2SCR.js")),
70
- VueUiWheel: o(() => import("./vue-ui-wheel-BpirIgAG.js")),
71
- VueUiWordCloud: o(() => import("./vue-ui-word-cloud-ChT7uLbN.js")),
72
- VueUiXy: o(() => import("./vue-ui-xy-B68qQ-gX.js")),
73
- VueUiXyCanvas: o(() => import("./vue-ui-xy-canvas-DDngEA1s.js")),
74
- VueUiCarouselTable: o(() => import("./vue-ui-carousel-table-Dv1CDfE5.js")),
75
- VueUiGizmo: o(() => import("./vue-ui-gizmo-P8h-gnLd.js")),
76
- VueUiStackbar: o(() => import("./vue-ui-stackbar-CkBOjryQ.js")),
77
- VueUiBullet: o(() => import("./vue-ui-bullet-Ce6uvCQJ.js")),
78
- VueUiFunnel: o(() => import("./vue-ui-funnel-CG55Xcdy.js")),
79
- VueUiHistoryPlot: o(() => import("./vue-ui-history-plot-BVzbuqYY.js")),
80
- VueUiCirclePack: o(() => import("./vue-ui-circle-pack-Be74QB_0.js")),
81
- VueUiWorld: o(() => import("./vue-ui-world-CdP4g_3_.js")),
82
- VueUiChord: o(() => import("./vue-ui-chord-BG4dxKNA.js")),
83
- VueUiRidgeline: o(() => import("./vue-ui-ridgeline-CXCIRDq6.js"))
84
- }, { vue_ui_dashboard: te } = $e(), oe = r(null), ne = r(null), X = r(null), $ = q, u = U(() => Pe({
85
- userConfig: $.config,
86
- defaultConfig: te
87
- })), _ = r(Se()), p = r(u.value.locked);
88
- function ie() {
89
- p.value = !p.value;
90
- }
91
- H(() => $.config, () => {
92
- p.value = u.value.locked, G.value = !u.value.userOptions.showOnChartHover;
93
- });
94
- function W() {
95
- return $.dataset.map((e, t) => ({
96
- ...e,
97
- index: t
98
- }));
99
- }
100
- const s = r(W());
101
- H(() => $.dataset, () => {
102
- s.value = W();
103
- });
104
- const T = U(
105
- () => s.value.map((e) => ({
106
- ...e,
107
- resolvedComponent: typeof e.component == "string" ? ee[e.component] : e.component
108
- }))
109
- ), v = r(null), l = r(null), h = r({ x: 0, y: 0 }), f = r({ x: 0, y: 0 }), d = r(null), c = r(!1), m = r(null), C = r(!1);
110
- function N(e) {
111
- const t = e.target;
112
- (t.tagName === "INPUT" && t.type === "range" || t.classList.contains("range-handle")) && (C.value = !0);
113
- }
114
- function E(e) {
115
- const t = e.target;
116
- t.tagName === "INPUT" && t.type === "range" && (C.value = !1);
117
- }
118
- const { isPrinting: ue, isImaging: ae, generatePdf: L, generateImage: le } = Re({
119
- elementId: `vue-ui-dashboard_${_.value}`,
120
- fileName: u.value.userOptions.print.filename || "dashboard",
121
- options: {
122
- ...u.value.userOptions.print,
123
- aspectRatio: u.value.style.board.aspectRatio
124
- }
125
- });
126
- function re(e) {
127
- if (!p.value && (c.value = !0, m.value = e, l.value === null)) {
128
- v.value = e, h.value = { x: event.clientX, y: event.clientY };
129
- const t = s.value[e], i = 100 - t.width, n = 100 - t.height;
130
- t.left < 0 && (t.left = 0), t.top < 0 && (t.top = 0), t.left > i && (t.left = i), t.top > n && (t.top = n), 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);
131
- }
132
- }
133
- function P(e, t) {
134
- c.value = !0, m.value = e, l.value = { index: e, direction: t };
135
- const i = s.value[e];
136
- f.value = { x: event.clientX, y: event.clientY, initialWidth: i.width, initialHeight: i.height };
137
- }
138
- function B(e, t, i) {
139
- if (l.value.direction.includes("top")) {
140
- const n = e.height - i / d.value.offsetHeight * 100;
141
- n >= A && (e.top += i / d.value.offsetHeight * 100, e.height = n);
142
- }
143
- if (l.value.direction.includes("bottom")) {
144
- const n = e.height + i / d.value.offsetHeight * 100;
145
- n >= A && (e.height = n);
146
- }
147
- if (l.value.direction.includes("left")) {
148
- const n = e.width - t / d.value.offsetWidth * 100;
149
- n >= A && (e.left += t / d.value.offsetWidth * 100, e.width = n);
150
- }
151
- if (l.value.direction.includes("right")) {
152
- const n = e.width + t / d.value.offsetWidth * 100;
153
- n >= A && (e.width = n);
154
- }
155
- }
156
- function se(e) {
157
- if (!(p.value || C.value)) {
158
- if (c.value = !0, v.value !== null) {
159
- const t = s.value[v.value], i = e.clientX - h.value.x, n = e.clientY - h.value.y, a = t.left + i / d.value.offsetWidth * 100, b = t.top + n / d.value.offsetHeight * 100;
160
- a >= 0 && b >= 0 && a + t.width <= 100 && b + t.height <= 100 && (t.left = a, t.top = b), h.value = { x: e.clientX, y: e.clientY };
161
- }
162
- if (l.value !== null) {
163
- const t = s.value[l.value.index], i = e.clientX - f.value.x, n = e.clientY - f.value.y;
164
- B(t, i, n), f.value = { x: e.clientX, y: e.clientY };
165
- }
166
- }
167
- }
168
- const de = Z;
169
- H(
170
- s,
171
- (e) => {
172
- e && !c.value && de("change", s.value);
173
- },
174
- { deep: !0 }
175
- );
176
- function ce() {
177
- v.value = null, l.value = null, c.value = !1, m.value = null, s.value.forEach((e) => {
178
- 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);
179
- });
180
- }
181
- function pe(e) {
182
- p.value || C.value || (c.value = !0, m.value = e, l.value === null && (v.value = e, h.value = { x: event.touches[0].clientX, y: event.touches[0].clientY }));
183
- }
184
- function S(e, t, i) {
185
- if (c.value = !0, m.value = e, l.value === null) {
186
- l.value = { index: e, direction: t };
187
- const n = s.value[e];
188
- f.value = { x: i.touches[0].clientX, y: i.touches[0].clientY, initialWidth: n.width, initialHeight: n.height };
189
- }
190
- }
191
- function R(e) {
192
- if (c.value = !0, e.preventDefault(), l.value !== null) {
193
- const t = s.value[l.value.index], i = e.touches[0].clientX - f.value.x, n = e.touches[0].clientY - f.value.y;
194
- B(t, i, n), f.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
195
- }
196
- }
197
- function ve(e) {
198
- if (!(p.value || C.value) && (c.value = !0, e.preventDefault(), v.value !== null)) {
199
- const t = s.value[v.value], i = e.touches[0].clientX - h.value.x, n = e.touches[0].clientY - h.value.y, a = t.left + i / d.value.offsetWidth * 100, b = t.top + n / d.value.offsetHeight * 100;
200
- a >= 0 && b >= 0 && a + t.width <= 100 && b + t.height <= 100 && (t.left = a, t.top = b), h.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
201
- }
202
- }
203
- function I() {
204
- c.value = !1, m.value = null, v.value = null, l.value = null, s.value.forEach((e) => {
205
- 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);
206
- });
207
- }
208
- const he = U(() => u.value.style.item.borderColor), fe = U(() => u.value.style.resizeHandles.backgroundColor), me = U(() => u.value.style.board.aspectRatio), ge = U(() => u.value.style.board.backgroundColor), be = U(() => u.value.style.board.border);
209
- function Ue() {
210
- return s.value;
211
- }
212
- const { userOptionsVisible: G, setUserOptionsVisibility: F, keepUserOptionState: Ve } = Ae({ config: u.value }), M = r(!1);
213
- function x() {
214
- M.value = !M.value;
215
- }
216
- function ye() {
217
- F(!0);
218
- }
219
- function ke() {
220
- F(!1);
221
- }
222
- return J({
223
- generatePdf: L,
224
- getItemsPositions: Ue,
225
- toggleLock: ie
226
- }), (e, t) => (g(), O("div", {
227
- id: `vue-ui-dashboard_${_.value}`,
228
- onMousedown: N,
229
- onMouseup: E,
230
- onTouchstart: N,
231
- onTouchend: E,
232
- onMouseenter: ye,
233
- onMouseleave: ke,
234
- ref_key: "dashboardRef",
235
- ref: oe,
236
- style: {
237
- position: "relative"
238
- },
239
- class: "vue-data-ui-component"
240
- }, [
241
- V("div", {
242
- class: "vue-ui-dashboard-container",
243
- ref_key: "dashboardContainer",
244
- ref: d,
245
- style: k(`outline:${be.value}; background:${ge.value}; aspect-ratio:${me.value};${M.value ? "pointer-events:none" : ""}`)
246
- }, [
247
- V("div", {
248
- class: "vue-ui-dashboard-grid-container",
249
- ref: "container",
250
- onMousemove: se,
251
- onMouseup: ce,
252
- onTouchmove: ve,
253
- onTouchend: I,
254
- style: k(`background:${u.value.style.board.backgroundColor}`)
255
- }, [
256
- t[4] || (t[4] = V("div", { class: "vue-ui-dashboard-grid" }, null, -1)),
257
- (g(!0), O(Q, null, Te(T.value, (i, n) => (g(), O("div", {
258
- key: i.id,
259
- class: Ce({ "vue-ui-dashboard-grid-item": !0, "vue-ui-dashboard-grid-item--locked": p.value }),
260
- style: k({
261
- width: `${i.width}%`,
262
- height: `${i.height}%`,
263
- left: `${i.left}%`,
264
- top: `${i.top}%`,
265
- cursor: "move",
266
- boxShadow: m.value === n ? "0 6px 12px -3px rgba(0,0,0,0.3)" : "",
267
- zIndex: m.value === n ? T.value.length + 1 : i.index,
268
- backgroundColor: u.value.style.item.backgroundColor
269
- }),
270
- onMousedown: (a) => re(n),
271
- onTouchstart: (a) => pe(n)
272
- }, [
273
- p.value ? Y("", !0) : (g(), O(Q, { key: 0 }, [
274
- V("div", {
275
- class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",
276
- onMousedown: (a) => P(n, "top-left"),
277
- onTouchstart: (a) => S(n, "top-left", a),
278
- onTouchmove: t[0] || (t[0] = (a) => R(a)),
279
- onTouchend: I
280
- }, null, 40, Ye),
281
- V("div", {
282
- class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",
283
- onMousedown: (a) => P(n, "top-right"),
284
- onTouchstart: (a) => S(n, "top-right", a),
285
- onTouchmove: t[1] || (t[1] = (a) => R(a)),
286
- onTouchend: I
287
- }, null, 40, We),
288
- V("div", {
289
- class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",
290
- onMousedown: (a) => P(n, "bottom-left"),
291
- onTouchstart: (a) => S(n, "bottom-left", a),
292
- onTouchmove: t[2] || (t[2] = (a) => R(a)),
293
- onTouchend: I
294
- }, null, 40, Ne),
295
- V("div", {
296
- class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",
297
- onMousedown: (a) => P(n, "bottom-right"),
298
- onTouchstart: (a) => S(n, "bottom-right", a),
299
- onTouchmove: t[3] || (t[3] = (a) => R(a)),
300
- onTouchend: I
301
- }, null, 40, Ee)
302
- ], 64)),
303
- y(e.$slots, "top", {
304
- item: i,
305
- index: n
306
- }, void 0, !0),
307
- i.resolvedComponent ? (g(), D(Ie(i.resolvedComponent), Me({
308
- key: 1,
309
- ref_for: !0
310
- }, i.props), null, 16)) : y(e.$slots, "content", {
311
- key: 2,
312
- item: i,
313
- index: n,
314
- left: i.left,
315
- top: i.top,
316
- height: i.height,
317
- width: i.width
318
- }, void 0, !0),
319
- y(e.$slots, "bottom", {
320
- item: i,
321
- index: n
322
- }, void 0, !0)
323
- ], 46, De))), 128))
324
- ], 36)
325
- ], 4),
326
- (g(), O("svg", {
327
- style: k({
328
- width: "100%",
329
- height: "100%",
330
- pointerEvents: "none",
331
- position: "absolute",
332
- top: 0,
333
- left: 0,
334
- zIndex: T.value.length + 1
335
- }),
336
- ref_key: "svgRef",
337
- ref: X
338
- }, null, 4)),
339
- u.value.userOptions.buttons.annotator && d.value && X.value ? (g(), D(Xe, {
340
- key: 0,
341
- color: u.value.style.board.color,
342
- backgroundColor: u.value.style.board.backgroundColor,
343
- active: M.value,
344
- svgRef: X.value,
345
- onClose: x,
346
- style: k({
347
- zIndex: T.value.length + 1
348
- })
349
- }, null, 8, ["color", "backgroundColor", "active", "svgRef", "style"])) : Y("", !0),
350
- (u.value.allowPrint || u.value.userOptions.show) && (u.value.userOptions.buttons.pdf || u.value.userOptions.buttons.img) ? (g(), D(ze, {
351
- key: 1,
352
- ref_key: "userOptionsRef",
353
- ref: ne,
354
- backgroundColor: u.value.style.board.backgroundColor,
355
- color: u.value.style.board.color,
356
- isPrinting: w(ue),
357
- isImaging: w(ae),
358
- uid: _.value,
359
- position: u.value.userOptions.position,
360
- hasTooltip: !1,
361
- hasPdf: u.value.userOptions.buttons.pdf,
362
- hasImg: u.value.userOptions.buttons.img,
363
- hasXls: !1,
364
- hasTable: !1,
365
- hasLabel: !1,
366
- hasFullscreen: !1,
367
- chartElement: d.value,
368
- callbacks: u.value.userOptions.callbacks,
369
- hasAnnotator: u.value.userOptions.buttons.annotator,
370
- isAnnotation: M.value,
371
- printScale: u.value.userOptions.print.scale,
372
- titles: { ...u.value.userOptions.buttonTitles },
373
- onGeneratePdf: w(L),
374
- onGenerateImage: w(le),
375
- onToggleAnnotator: x,
376
- style: k({ visibility: w(Ve) ? w(G) ? "visible" : "hidden" : "visible", zIndex: T.value.length + 1 })
377
- }, Oe({ _: 2 }, [
378
- e.$slots.menuIcon ? {
379
- name: "menuIcon",
380
- fn: z(({ isOpen: i, color: n }) => [
381
- y(e.$slots, "menuIcon", j(K({ isOpen: i, color: n })), void 0, !0)
382
- ]),
383
- key: "0"
384
- } : void 0,
385
- e.$slots.optionPdf ? {
386
- name: "optionPdf",
387
- fn: z(() => [
388
- y(e.$slots, "optionPdf", {}, void 0, !0)
389
- ]),
390
- key: "1"
391
- } : void 0,
392
- e.$slots.optionImg ? {
393
- name: "optionImg",
394
- fn: z(() => [
395
- y(e.$slots, "optionImg", {}, void 0, !0)
396
- ]),
397
- key: "2"
398
- } : void 0,
399
- e.$slots.optionAnnotator ? {
400
- name: "optionAnnotator",
401
- fn: z(({ toggleAnnotator: i, isAnnotator: n }) => [
402
- y(e.$slots, "optionAnnotator", j(K({ toggleAnnotator: i, isAnnotator: n })), void 0, !0)
403
- ]),
404
- key: "3"
405
- } : void 0
406
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "position", "hasPdf", "hasImg", "chartElement", "callbacks", "hasAnnotator", "isAnnotation", "printScale", "titles", "onGeneratePdf", "onGenerateImage", "style"])) : Y("", !0)
407
- ], 40, He));
408
- }
409
- }, Je = /* @__PURE__ */ _e(Le, [["__scopeId", "data-v-49b9e7be"]]);
410
- export {
411
- Je as default
412
- };