vue-data-ui 2.3.6 → 2.3.8

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 (140) hide show
  1. package/dist/{Arrow-BjDVSrfA.js → Arrow-CS3h3CsG.js} +1 -1
  2. package/dist/{Arrow-BSOdhAJO.cjs → Arrow-DUJvJpMd.cjs} +1 -1
  3. package/dist/{BaseIcon-BoKtpbrI.cjs → BaseIcon-ByV6y3w8.cjs} +1 -1
  4. package/dist/{BaseIcon-vmmfWlyR.js → BaseIcon-CVk_WG9x.js} +4 -3
  5. package/dist/{DataTable-CaB7GIwQ.js → DataTable-B-LJlgjS.js} +2 -2
  6. package/dist/{DataTable-ssrNbONo.cjs → DataTable-C4CMZu2s.cjs} +1 -1
  7. package/dist/{Legend-DHpoRTAE.js → Legend-DVsCAbZS.js} +1 -1
  8. package/dist/{Legend-Dl5IYoxK.cjs → Legend-DWBU0qDC.cjs} +1 -1
  9. package/dist/{Shape-CaF4pvOn.cjs → Shape-CcbBblwI.cjs} +1 -1
  10. package/dist/{Shape-CQT4S7N-.js → Shape-w47nQzLj.js} +1 -1
  11. package/dist/{Slicer-Bdb1BlrC.js → Slicer-2MG0k2PP.js} +1 -1
  12. package/dist/{Slicer-QC8nTm24.cjs → Slicer-CY-QTbH4.cjs} +1 -1
  13. package/dist/{Title-Cj_xubjI.cjs → Title-D6zeMzr0.cjs} +1 -1
  14. package/dist/{Title-BNPZwnkp.js → Title-D_FeWJsx.js} +1 -1
  15. package/dist/{Tooltip-CdJ5hegk.cjs → Tooltip-2d9jRdHk.cjs} +1 -1
  16. package/dist/{Tooltip-ZnJAz6dl.js → Tooltip-BY94WbUk.js} +1 -1
  17. package/dist/{index-BkomIE9L.cjs → index-BQbaKiSm.cjs} +1 -1
  18. package/dist/{index-BMCvLyab.js → index-DLi6mPet.js} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +1 -1
  21. package/dist/types/vue-data-ui.d.ts +1 -1
  22. package/dist/{useNestedProp-BMxXyPbW.cjs → useNestedProp-B6CpIX-3.cjs} +1 -1
  23. package/dist/{useNestedProp-CkP8xhG_.js → useNestedProp-DmMzRJ1O.js} +1 -1
  24. package/dist/{usePrinter-r6uHYEcR.cjs → usePrinter-BANjHBXe.cjs} +1 -1
  25. package/dist/{usePrinter-BuuBz5JR.js → usePrinter-BnaEziDF.js} +1 -1
  26. package/dist/{vue-data-ui-DxeO0iaC.js → vue-data-ui-Br12h04t.js} +55 -55
  27. package/dist/{vue-data-ui-Bc5U1cOP.cjs → vue-data-ui-DWSz421j.cjs} +1 -1
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/{vue-ui-3d-bar-CgB0fLQT.cjs → vue-ui-3d-bar-BFu2IXOP.cjs} +1 -1
  31. package/dist/{vue-ui-3d-bar-32wM0tiX.js → vue-ui-3d-bar-CNpZvjQ1.js} +7 -7
  32. package/dist/{vue-ui-accordion-SXsobrUt.cjs → vue-ui-accordion-CHVCSgY3.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-CLlVxx3Q.js → vue-ui-accordion-DzCdp527.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-D_CY99xF.js → vue-ui-age-pyramid-CCezvPxx.js} +8 -8
  35. package/dist/{vue-ui-age-pyramid-DqiwcOIr.cjs → vue-ui-age-pyramid-DaUZgLYc.cjs} +1 -1
  36. package/dist/{vue-ui-annotator-mntqd3q_.cjs → vue-ui-annotator-CZ3Lk0Ky.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-DvP-IxDm.js → vue-ui-annotator-QPK7ARtK.js} +1 -1
  38. package/dist/{vue-ui-candlestick-C_TvUQvH.cjs → vue-ui-candlestick-CaofVEg_.cjs} +1 -1
  39. package/dist/{vue-ui-candlestick-C-5u3i-1.js → vue-ui-candlestick-kh_Ft3mr.js} +9 -9
  40. package/dist/vue-ui-carousel-table-Cti_GQvV.cjs +1 -0
  41. package/dist/{vue-ui-carousel-table-CAqhsLVx.js → vue-ui-carousel-table-CxTbe6SP.js} +119 -109
  42. package/dist/{vue-ui-chestnut-DylSfYMB.js → vue-ui-chestnut-BypPYKEQ.js} +6 -6
  43. package/dist/{vue-ui-chestnut-DhWlw2MD.cjs → vue-ui-chestnut-joiWg5ii.cjs} +1 -1
  44. package/dist/{vue-ui-cursor-DTYEMgbU.js → vue-ui-cursor-CVwqSrVu.js} +2 -2
  45. package/dist/{vue-ui-cursor-B04HJQVl.cjs → vue-ui-cursor-CaxdcYVa.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-DFIYwP1s.cjs → vue-ui-dashboard-B12glgQZ.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-Bd0-cmSZ.js → vue-ui-dashboard-C7roqJdv.js} +2 -2
  48. package/dist/{vue-ui-digits-Ced5mBJZ.cjs → vue-ui-digits-BeGGrWds.cjs} +1 -1
  49. package/dist/{vue-ui-digits-CW5qNMIk.js → vue-ui-digits-DZBXECIq.js} +2 -2
  50. package/dist/{vue-ui-donut-EeVmrVJs.js → vue-ui-donut-DoMzPJHF.js} +9 -9
  51. package/dist/{vue-ui-donut-DIhhgvWp.cjs → vue-ui-donut-diN8RiYm.cjs} +1 -1
  52. package/dist/{vue-ui-donut-evolution-Ct6KAzs-.cjs → vue-ui-donut-evolution-CTgTqsih.cjs} +1 -1
  53. package/dist/{vue-ui-donut-evolution-BN08Y2hy.js → vue-ui-donut-evolution-CXT7c3_C.js} +9 -9
  54. package/dist/{vue-ui-dumbbell-BMlxS1Nq.js → vue-ui-dumbbell-1StMWJ5B.js} +8 -8
  55. package/dist/{vue-ui-dumbbell-pextarqH.cjs → vue-ui-dumbbell-B6th1M9b.cjs} +1 -1
  56. package/dist/{vue-ui-flow-BXVsbmyb.cjs → vue-ui-flow-Bux2O68S.cjs} +1 -1
  57. package/dist/{vue-ui-flow-CHmkgfyb.js → vue-ui-flow-ynx-run3.js} +7 -7
  58. package/dist/{vue-ui-galaxy-kiVOZOBz.js → vue-ui-galaxy-C7GEYMQB.js} +9 -9
  59. package/dist/{vue-ui-galaxy-D4xyd-J1.cjs → vue-ui-galaxy-D9QnmX0M.cjs} +1 -1
  60. package/dist/{vue-ui-gauge-BcO-z97J.js → vue-ui-gauge-DU8VU1m7.js} +4 -4
  61. package/dist/{vue-ui-gauge-DPFBsbFj.cjs → vue-ui-gauge-DrgKJTGw.cjs} +1 -1
  62. package/dist/vue-ui-heatmap-BIBsrwjz.cjs +1 -0
  63. package/dist/{vue-ui-heatmap-DD-Bzddj.js → vue-ui-heatmap-DUuN0fGR.js} +227 -227
  64. package/dist/{vue-ui-kpi-BS0o7zb9.js → vue-ui-kpi-BoGsykfq.js} +2 -2
  65. package/dist/{vue-ui-kpi-BEgf5yDv.cjs → vue-ui-kpi-CLEQSt4V.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-Bm5EJxtG.cjs → vue-ui-mini-loader-CIPfR_lB.cjs} +1 -1
  67. package/dist/{vue-ui-mini-loader-DJEvG6ju.js → vue-ui-mini-loader-CNCZkUvI.js} +2 -2
  68. package/dist/{vue-ui-molecule-DdwnFEBJ.js → vue-ui-molecule-Brw0qOjw.js} +9 -9
  69. package/dist/{vue-ui-molecule-DzUqcaxd.cjs → vue-ui-molecule-Da19KH5g.cjs} +1 -1
  70. package/dist/{vue-ui-mood-radar-DbB7m4Ku.cjs → vue-ui-mood-radar-BktJHBX_.cjs} +1 -1
  71. package/dist/{vue-ui-mood-radar-B9Gczs_Z.js → vue-ui-mood-radar-hIUOJ8Cd.js} +9 -9
  72. package/dist/{vue-ui-nested-donuts-BSINf8hd.cjs → vue-ui-nested-donuts-2GqE8lhb.cjs} +1 -1
  73. package/dist/{vue-ui-nested-donuts-CVQ1CaXo.js → vue-ui-nested-donuts-DXZXCu5s.js} +9 -9
  74. package/dist/{vue-ui-onion-Ut75t7hB.js → vue-ui-onion-Bx2_3hmi.js} +9 -9
  75. package/dist/{vue-ui-onion-D3-6Tv4u.cjs → vue-ui-onion-DqnFyhwy.cjs} +1 -1
  76. package/dist/{vue-ui-parallel-coordinate-plot-CJGkoIgN.cjs → vue-ui-parallel-coordinate-plot-CIkVq6XI.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-Bjo09ZTX.js → vue-ui-parallel-coordinate-plot-DgjecbC2.js} +10 -10
  78. package/dist/{vue-ui-quadrant-CzCvejGn.cjs → vue-ui-quadrant-DUNTLV5w.cjs} +1 -1
  79. package/dist/{vue-ui-quadrant-Du9PKvlO.js → vue-ui-quadrant-DlSMixki.js} +10 -10
  80. package/dist/{vue-ui-quick-chart-BsxsPbjz.cjs → vue-ui-quick-chart-CpdxM7qN.cjs} +1 -1
  81. package/dist/{vue-ui-quick-chart-u0cPmD3q.js → vue-ui-quick-chart-_ysWkoF7.js} +6 -6
  82. package/dist/{vue-ui-radar-DIpCrj1h.cjs → vue-ui-radar-B8fTGb35.cjs} +1 -1
  83. package/dist/{vue-ui-radar-CBrpuE5r.js → vue-ui-radar-Fh5UQO5Z.js} +10 -10
  84. package/dist/{vue-ui-rating-D8fJC8Yt.cjs → vue-ui-rating-BTbg-bNd.cjs} +1 -1
  85. package/dist/{vue-ui-rating-CaeGGlCw.js → vue-ui-rating-CwV_45UQ.js} +2 -2
  86. package/dist/{vue-ui-relation-circle-5DNf880s.js → vue-ui-relation-circle-B61AGVtF.js} +5 -5
  87. package/dist/{vue-ui-relation-circle-Ky3nPk6S.cjs → vue-ui-relation-circle-BrHBPn8C.cjs} +1 -1
  88. package/dist/{vue-ui-rings-CffZ4T2S.cjs → vue-ui-rings-BSbFTwmB.cjs} +1 -1
  89. package/dist/{vue-ui-rings-IE3IdNRF.js → vue-ui-rings-DwtqKTGk.js} +9 -9
  90. package/dist/{vue-ui-scatter-TsX5dW9l.cjs → vue-ui-scatter-BdphtRDE.cjs} +1 -1
  91. package/dist/{vue-ui-scatter-C4GCZm0V.js → vue-ui-scatter-CFXQQZQr.js} +10 -10
  92. package/dist/{vue-ui-screenshot-Bzpg6yof.cjs → vue-ui-screenshot-ChP1r5WI.cjs} +1 -1
  93. package/dist/{vue-ui-screenshot-Bl3oooKI.js → vue-ui-screenshot-CkI4Gtys.js} +1 -1
  94. package/dist/{vue-ui-skeleton-BisWX1sO.js → vue-ui-skeleton-CmXMTbOC.js} +2 -2
  95. package/dist/{vue-ui-skeleton-JmGp11-u.cjs → vue-ui-skeleton-DIm7kxhc.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-BhSrt9f-.cjs → vue-ui-smiley-BQ1_0eFh.cjs} +1 -1
  97. package/dist/{vue-ui-smiley-Sth2pqG1.js → vue-ui-smiley-BQJ6XX_L.js} +2 -2
  98. package/dist/{vue-ui-spark-trend-C8NSz4l8.cjs → vue-ui-spark-trend-COUBPV4j.cjs} +1 -1
  99. package/dist/{vue-ui-spark-trend-DAqO0TW2.js → vue-ui-spark-trend-Dx4w74bw.js} +4 -4
  100. package/dist/{vue-ui-sparkbar-hL1Q6ObK.cjs → vue-ui-sparkbar-Cdcndp7Q.cjs} +1 -1
  101. package/dist/{vue-ui-sparkbar-B0zX7NU7.js → vue-ui-sparkbar-CxKIVunV.js} +3 -3
  102. package/dist/{vue-ui-sparkgauge-tbVqaLCK.cjs → vue-ui-sparkgauge-Bd2F7zw1.cjs} +1 -1
  103. package/dist/{vue-ui-sparkgauge-CWR8zJnU.js → vue-ui-sparkgauge-BhVgI98W.js} +3 -3
  104. package/dist/{vue-ui-sparkhistogram-Dv-lml4g.cjs → vue-ui-sparkhistogram-B1Txwx4N.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-DxqCtDpw.js → vue-ui-sparkhistogram-CKw6tZnv.js} +4 -4
  106. package/dist/{vue-ui-sparkline-BpL1jn7F.js → vue-ui-sparkline-CSEByr6z.js} +3 -3
  107. package/dist/{vue-ui-sparkline-B6pvaBY_.cjs → vue-ui-sparkline-CrXPLabK.cjs} +1 -1
  108. package/dist/{vue-ui-sparkstackbar-CQ2TEi4p.cjs → vue-ui-sparkstackbar-BfP1wyyg.cjs} +1 -1
  109. package/dist/{vue-ui-sparkstackbar-BzbuBNIV.js → vue-ui-sparkstackbar-CQLWpdxG.js} +3 -3
  110. package/dist/{vue-ui-strip-plot-DCcbD6UE.js → vue-ui-strip-plot-DAJ0qjKU.js} +9 -9
  111. package/dist/{vue-ui-strip-plot-DCC6F4VM.cjs → vue-ui-strip-plot-N-_mlbwb.cjs} +1 -1
  112. package/dist/{vue-ui-table-CFqIWfxl.js → vue-ui-table-DFe98urD.js} +1 -1
  113. package/dist/{vue-ui-table-heatmap-Bz8KYDxr.js → vue-ui-table-heatmap-DUonA4jJ.js} +4 -4
  114. package/dist/{vue-ui-table-heatmap-Bwut-V1D.cjs → vue-ui-table-heatmap-oEi-vxRg.cjs} +1 -1
  115. package/dist/{vue-ui-table-sparkline-z29ND2lq.js → vue-ui-table-sparkline-BIY7GWik.js} +5 -5
  116. package/dist/{vue-ui-table-sparkline-CJBU3y8-.cjs → vue-ui-table-sparkline-DKoH5PeD.cjs} +1 -1
  117. package/dist/{vue-ui-table-CseaFWgX.cjs → vue-ui-table-t1jDOoJW.cjs} +1 -1
  118. package/dist/{vue-ui-thermometer-BNAITzJa.js → vue-ui-thermometer-BiWx3ujG.js} +5 -5
  119. package/dist/{vue-ui-thermometer-DM2IKhqN.cjs → vue-ui-thermometer-ZgNA47Fv.cjs} +1 -1
  120. package/dist/{vue-ui-timer-DV6lQVHU.js → vue-ui-timer-BFKnN8tS.js} +4 -4
  121. package/dist/{vue-ui-timer-DLfXuW8T.cjs → vue-ui-timer-BmThVcD0.cjs} +1 -1
  122. package/dist/{vue-ui-tiremarks-WyQPg7yo.js → vue-ui-tiremarks-BO_X27nw.js} +5 -5
  123. package/dist/{vue-ui-tiremarks-B1bd1jPf.cjs → vue-ui-tiremarks-D9ClW4XX.cjs} +1 -1
  124. package/dist/{vue-ui-treemap-BZGmoDHb.cjs → vue-ui-treemap-BVV-tfRq.cjs} +1 -1
  125. package/dist/{vue-ui-treemap-DKmBhzV-.js → vue-ui-treemap-Crrd_rpP.js} +9 -9
  126. package/dist/{vue-ui-vertical-bar-C-ySfrhJ.js → vue-ui-vertical-bar-CyuImTrh.js} +9 -9
  127. package/dist/{vue-ui-vertical-bar-Bi-0rRN3.cjs → vue-ui-vertical-bar-k9KkT9mN.cjs} +1 -1
  128. package/dist/{vue-ui-waffle-CGRWu-da.js → vue-ui-waffle-CYSDDS3-.js} +9 -9
  129. package/dist/{vue-ui-waffle-VLYkR-YZ.cjs → vue-ui-waffle-DenwQo8B.cjs} +1 -1
  130. package/dist/{vue-ui-wheel-Pj9OPk9f.js → vue-ui-wheel-C8-f39P2.js} +5 -5
  131. package/dist/{vue-ui-wheel-D2q5vy5V.cjs → vue-ui-wheel-Cx7SBWWF.cjs} +1 -1
  132. package/dist/{vue-ui-word-cloud-Ba4BjatU.cjs → vue-ui-word-cloud-CMsakywD.cjs} +1 -1
  133. package/dist/{vue-ui-word-cloud-8Vr-jo1p.js → vue-ui-word-cloud-D9y9Iht6.js} +6 -6
  134. package/dist/{vue-ui-xy-C4QW5Lfl.cjs → vue-ui-xy-BxCALt6U.cjs} +1 -1
  135. package/dist/{vue-ui-xy-qToggEfh.js → vue-ui-xy-Dhpahzod.js} +12 -12
  136. package/dist/{vue-ui-xy-canvas-Be-Da_0x.cjs → vue-ui-xy-canvas-B_Fi2be0.cjs} +1 -1
  137. package/dist/{vue-ui-xy-canvas-DnLWrf0e.js → vue-ui-xy-canvas-COwqkdZB.js} +10 -10
  138. package/package.json +1 -1
  139. package/dist/vue-ui-carousel-table-BCePqkuz.cjs +0 -1
  140. package/dist/vue-ui-heatmap-DBOKYaJz.cjs +0 -1
@@ -1,10 +1,10 @@
1
- import { useCssVars as de, ref as o, onMounted as N, computed as k, watch as ve, openBlock as l, createElementBlock as u, createElementVNode as O, normalizeStyle as v, unref as g, normalizeClass as pe, createTextVNode as S, toDisplayString as U, renderSlot as p, Fragment as E, renderList as H, normalizeProps as L, guardReactiveProps as V, createCommentVNode as P, createBlock as te, createSlots as ce, withCtx as x, nextTick as he } from "vue";
2
- import { u as be, c as ge, o as G, e as M, r as fe, n as me, q as ye } from "./index-BMCvLyab.js";
3
- import { u as Ce } from "./useNestedProp-CkP8xhG_.js";
4
- import { u as $e, U as ke } from "./usePrinter-BuuBz5JR.js";
5
- import xe from "./vue-ui-skeleton-BisWX1sO.js";
6
- import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"], ze = {
1
+ import { useCssVars as ce, ref as o, onMounted as S, computed as T, watch as he, openBlock as i, createElementBlock as u, createElementVNode as O, normalizeStyle as v, unref as f, normalizeClass as be, createTextVNode as U, toDisplayString as E, renderSlot as p, Fragment as H, renderList as L, normalizeProps as V, guardReactiveProps as G, createCommentVNode as P, createBlock as oe, createSlots as fe, withCtx as w, nextTick as ge } from "vue";
2
+ import { u as me, c as ye, o as D, e as M, r as Ce, n as $e, q as ke } from "./index-DLi6mPet.js";
3
+ import { u as xe } from "./useNestedProp-DmMzRJ1O.js";
4
+ import { u as Ae, U as Te } from "./usePrinter-BnaEziDF.js";
5
+ import we from "./vue-ui-skeleton-CmXMTbOC.js";
6
+ import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ const Fe = ["id"], ze = ["height"], Oe = { key: 0 }, Pe = ["data-cell", "height"], Re = {
8
8
  __name: "vue-ui-carousel-table",
9
9
  props: {
10
10
  config: {
@@ -20,123 +20,133 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
20
20
  }
21
21
  }
22
22
  },
23
- setup(r, { expose: ae }) {
23
+ setup(r, { expose: ne }) {
24
24
  const a = r;
25
- de((t) => ({
26
- "964550cc": t.tdo
25
+ ce((t) => ({
26
+ "3b9147fd": t.tdo
27
27
  }));
28
- const { vue_ui_carousel_table: oe } = be(), R = o(ge()), q = o(!1), f = o(!!a.dataset);
29
- N(() => {
30
- G(a.dataset) ? M({
28
+ const { vue_ui_carousel_table: le } = me(), R = o(ye()), q = o(!1), g = o(!!a.dataset);
29
+ S(() => {
30
+ D(a.dataset) ? M({
31
31
  componentName: "VueUiCarouselTable",
32
32
  type: "dataset"
33
- }) : ((!a.dataset.head || G(a.dataset.head)) && (M({
33
+ }) : ((!a.dataset.head || D(a.dataset.head)) && (M({
34
34
  componentName: "VueUiCarouselTable",
35
35
  type: "datasetAttribute",
36
36
  property: "head"
37
- }), f.value = !1), (!a.dataset.body || G(a.dataset.body)) && (M({
37
+ }), g.value = !1), (!a.dataset.body || D(a.dataset.body)) && (M({
38
38
  componentName: "VueUiCarouselTable",
39
39
  type: "datasetAttribute",
40
40
  property: "body"
41
- }), f.value = !1));
41
+ }), g.value = !1));
42
42
  });
43
- const e = k(() => Ce({
43
+ const e = T(() => xe({
44
44
  userConfig: a.config,
45
- defaultConfig: oe
46
- })), { isPrinting: D, isImaging: X, generatePdf: ne, generateImage: _ } = $e({
45
+ defaultConfig: le
46
+ })), { isPrinting: X, isImaging: j, generatePdf: ie, generateImage: J } = Ae({
47
47
  elementId: `carousel-table_${R.value}`,
48
48
  fileName: e.value.caption.text || "vue-ui-carousel-table"
49
49
  }), d = o({
50
50
  showAnimation: e.value.animation.use
51
- }), w = o(null), j = o(null), m = o(null), y = o(null), A = o(0), B = o(0), c = o(!1), J = k(() => a.dataset.body ? e.value.tbody.tr.visible <= a.dataset.body.length ? e.value.tbody.tr.visible : a.dataset.body.length : 0), le = k(() => (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2) * J.value + A.value + B.value), ie = k(() => !a.dataset || !a.dataset.body || !a.dataset.head ? 0 : (a.dataset.body.length * (c.value ? a.dataset.head.length : 1) - J.value) * (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2)), I = o(0), C = o(null), $ = o(0), b = o(!1), K = o(0);
52
- N(() => {
53
- m.value && (A.value = m.value.getBoundingClientRect().height), y.value && (B.value = y.value.getBoundingClientRect().height), d.value.showAnimation && Q();
51
+ }), m = o(null), K = o(null), y = o(null), C = o(null), I = o(0), B = o(0), c = o(!1), Q = T(() => a.dataset.body ? e.value.tbody.tr.visible <= a.dataset.body.length ? e.value.tbody.tr.visible : a.dataset.body.length : 0), se = T(() => (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2) * Q.value + I.value + B.value), ue = T(() => !a.dataset || !a.dataset.body || !a.dataset.head ? 0 : (a.dataset.body.length * (c.value ? a.dataset.head.length : 1) - Q.value) * (e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size * 2)), F = o(0), $ = o(null), k = o(0), b = o(!1), W = o(0);
52
+ S(() => {
53
+ y.value && (I.value = y.value.getBoundingClientRect().height), C.value && (B.value = C.value.getBoundingClientRect().height), d.value.showAnimation && Y();
54
54
  });
55
- function se(t) {
56
- q.value = t, K.value += 1;
55
+ function re(t) {
56
+ q.value = t, W.value += 1;
57
57
  }
58
- function Q() {
59
- !C.value && !b.value && (C.value = requestAnimationFrame(W));
58
+ function Y() {
59
+ !$.value && !b.value && ($.value = requestAnimationFrame(Z));
60
60
  }
61
- function W(t) {
61
+ function Z(t) {
62
62
  if (b.value) return;
63
- $.value || ($.value = t), t - $.value >= e.value.animation.speedMs && (I.value += e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size, I.value > ie.value && (I.value = 0), w.value.scrollTo({
64
- top: I.value,
63
+ k.value || (k.value = t), t - k.value >= e.value.animation.speedMs && (F.value += e.value.tbody.tr.height + e.value.tbody.tr.td.padding.top + e.value.tbody.tr.td.padding.bottom + e.value.tbody.tr.border.size, F.value > ue.value && (F.value = 0), m.value && m.value.scrollTo({
64
+ top: F.value,
65
65
  behavior: "smooth"
66
- }), $.value = t), C.value = requestAnimationFrame(W);
66
+ }), k.value = t), $.value = requestAnimationFrame(Z);
67
+ }
68
+ function x() {
69
+ b.value = !0, cancelAnimationFrame($.value), $.value = null;
70
+ }
71
+ function A() {
72
+ !b.value || !d.value.showAnimation || (b.value = !1, k.value = 0, Y());
67
73
  }
68
- function F() {
69
- b.value = !0, cancelAnimationFrame(C.value), C.value = null;
74
+ function de() {
75
+ e.value.animation.pauseOnHover && x();
70
76
  }
71
- function T() {
72
- !b.value || !d.value.showAnimation || (b.value = !1, $.value = 0, Q());
77
+ const N = o(null);
78
+ function ve() {
79
+ x(), clearTimeout(N.value);
73
80
  }
74
- function ue() {
75
- e.value.animation.pauseOnHover && F();
81
+ function _() {
82
+ clearTimeout(N.value), N.value = setTimeout(A, 1e3);
76
83
  }
77
- ve(
84
+ he(
78
85
  () => e.value.animation.use,
79
86
  (t) => {
80
- t ? (d.value.showAnimation = !0, T()) : (d.value.showAnimation = !1, F());
87
+ t ? (d.value.showAnimation = !0, A()) : (d.value.showAnimation = !1, x());
81
88
  }
82
89
  );
83
- const re = k(() => e.value.responsiveBreakpoint);
84
- N(() => {
85
- const t = new ResizeObserver((s) => {
86
- s.forEach((n) => {
87
- c.value = n.contentRect.width < re.value;
88
- }), A.value = m.value ? m.value.getBoundingClientRect().height : 0, B.value = y.value ? y.value.getBoundingClientRect().height : 0;
90
+ const pe = T(() => e.value.responsiveBreakpoint);
91
+ S(() => {
92
+ const t = new ResizeObserver((n) => {
93
+ n.forEach((l) => {
94
+ c.value = l.contentRect.width < pe.value;
95
+ }), I.value = y.value ? y.value.getBoundingClientRect().height : 0, B.value = C.value ? C.value.getBoundingClientRect().height : 0;
89
96
  });
90
- w.value && t.observe(w.value);
97
+ m.value && t.observe(m.value);
91
98
  });
92
- function Y() {
93
- ne();
99
+ function ee() {
100
+ ie();
94
101
  }
95
- function Z() {
96
- d.value.showAnimation = !d.value.showAnimation, d.value.showAnimation ? T() : F();
102
+ function te() {
103
+ d.value.showAnimation = !d.value.showAnimation, d.value.showAnimation ? A() : x();
97
104
  }
98
- function ee() {
99
- he(() => {
100
- const t = a.dataset.head.map((i, h) => [
105
+ function ae() {
106
+ ge(() => {
107
+ const t = a.dataset.head.map((s, h) => [
101
108
  [a.dataset.body[h]]
102
- ]), s = [
109
+ ]), n = [
103
110
  [e.value.caption.text],
104
- [a.dataset.head.map((i) => [i])]
105
- ].concat(t), n = me(s);
106
- ye({
107
- csvContent: n,
111
+ [a.dataset.head.map((s) => [s])]
112
+ ].concat(t), l = $e(n);
113
+ ke({
114
+ csvContent: l,
108
115
  title: e.value.caption.text || "vue-ui-carousel-table"
109
116
  });
110
117
  });
111
118
  }
112
- return ae({
113
- pauseAnimation: F,
114
- resumeAnimation: T,
115
- toggleAnimation: Z,
116
- generateCsv: ee,
117
- generatePdf: Y,
118
- generateImage: _
119
- }), (t, s) => (l(), u("div", {
119
+ return ne({
120
+ pauseAnimation: x,
121
+ resumeAnimation: A,
122
+ toggleAnimation: te,
123
+ generateCsv: ae,
124
+ generatePdf: ee,
125
+ generateImage: J
126
+ }), (t, n) => (i(), u("div", {
120
127
  style: { position: "relative", overflow: "visible" },
121
128
  ref_key: "chartContainer",
122
- ref: j
129
+ ref: K
123
130
  }, [
124
131
  O("div", {
125
132
  ref_key: "tableContainer",
126
- ref: w,
133
+ ref: m,
127
134
  id: `carousel-table_${R.value}`,
128
135
  style: v({
129
- height: g(D) || g(X) ? "auto" : `${le.value}px`,
136
+ height: f(X) || f(j) ? "auto" : `${se.value}px`,
130
137
  containerType: "inline-size",
131
138
  position: "relative",
132
139
  overflow: "auto",
133
140
  fontFamily: e.value.fontFamily
134
141
  }),
135
- class: pe({ "vue-ui-responsive": c.value, "is-playing": !b.value }),
136
- onMouseenter: s[0] || (s[0] = (n) => ue()),
137
- onMouseleave: s[1] || (s[1] = (n) => T())
142
+ class: be({ "vue-ui-responsive": c.value, "is-playing": !b.value }),
143
+ onMouseenter: n[0] || (n[0] = (l) => de()),
144
+ onMouseleave: n[1] || (n[1] = (l) => A()),
145
+ onTouchstart: n[2] || (n[2] = (l) => ve()),
146
+ onTouchend: n[3] || (n[3] = (l) => _()),
147
+ onTouchcancel: n[4] || (n[4] = (l) => _())
138
148
  }, [
139
- f.value ? (l(), u("table", {
149
+ g.value ? (i(), u("table", {
140
150
  key: 0,
141
151
  class: "vue-data-ui-carousel-table",
142
152
  style: v({
@@ -148,7 +158,7 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
148
158
  }, [
149
159
  O("caption", {
150
160
  ref_key: "caption",
151
- ref: m,
161
+ ref: y,
152
162
  class: "vue-data-ui-carousel-table-caption",
153
163
  style: v({
154
164
  ...e.value.caption.style,
@@ -164,15 +174,15 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
164
174
  minHeight: "36px"
165
175
  })
166
176
  }, [
167
- S(U(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
177
+ U(E(e.value.caption.text && !t.$slots.caption ? e.value.caption.text : "") + " ", 1),
168
178
  p(t.$slots, "caption", {}, void 0, !0)
169
179
  ], 4),
170
180
  O("thead", {
171
- style: v({ ...e.value.thead.style, position: "sticky", top: `${A.value}px`, zIndex: 1 })
181
+ style: v({ ...e.value.thead.style, position: "sticky", top: `${I.value}px`, zIndex: 1 })
172
182
  }, [
173
183
  O("tr", {
174
184
  ref_key: "tableRow",
175
- ref: y,
185
+ ref: C,
176
186
  role: "row",
177
187
  style: v({
178
188
  ...e.value.thead.tr.style,
@@ -181,9 +191,9 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
181
191
  }),
182
192
  height: `${e.value.thead.tr.height}px`
183
193
  }, [
184
- (l(!0), u(E, null, H(r.dataset.head, (n, i) => (l(), u("th", {
194
+ (i(!0), u(H, null, L(r.dataset.head, (l, s) => (i(), u("th", {
185
195
  role: "cell",
186
- key: `th_${i}`,
196
+ key: `th_${s}`,
187
197
  style: v({
188
198
  ...e.value.thead.tr.th.style,
189
199
  border: e.value.thead.tr.th.border.size ? `${e.value.thead.tr.th.border.size}px solid ${e.value.thead.tr.th.border.color}` : "none",
@@ -193,25 +203,25 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
193
203
  paddingLeft: e.value.thead.tr.th.padding.left + "px"
194
204
  })
195
205
  }, [
196
- S(U(t.$slots.th ? "" : n) + " ", 1),
197
- p(t.$slots, "th", L(V({ th: n, colIndex: i })), void 0, !0)
206
+ U(E(t.$slots.th ? "" : l) + " ", 1),
207
+ p(t.$slots, "th", V(G({ th: l, colIndex: s })), void 0, !0)
198
208
  ], 4))), 128))
199
- ], 12, Ie)
209
+ ], 12, ze)
200
210
  ], 4),
201
- r.dataset.body && r.dataset.head ? (l(), u("tbody", Fe, [
202
- (l(!0), u(E, null, H(r.dataset.body, (n, i) => (l(), u("tr", {
211
+ r.dataset.body && r.dataset.head ? (i(), u("tbody", Oe, [
212
+ (i(!0), u(H, null, L(r.dataset.body, (l, s) => (i(), u("tr", {
203
213
  style: v({
204
214
  ...e.value.tbody.tr.style,
205
215
  border: `${e.value.tbody.tr.border.size}px solid ${e.value.tbody.tr.border.color}`
206
216
  })
207
217
  }, [
208
- (l(!0), u(E, null, H(n, (h, z) => (l(), u("td", {
218
+ (i(!0), u(H, null, L(l, (h, z) => (i(), u("td", {
209
219
  role: "cell",
210
220
  "data-cell": c.value && r.dataset.head[z].length > 50 ? r.dataset.head[z].slice(0, 50) + "..." : r.dataset.head[z] || "",
211
221
  style: v({
212
222
  ...e.value.tbody.tr.td.style,
213
223
  border: `${e.value.tbody.tr.td.border.size}px solid ${e.value.tbody.tr.td.border.color}`,
214
- backgroundColor: e.value.tbody.tr.td.style.backgroundColor + g(fe)[i % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100],
224
+ backgroundColor: e.value.tbody.tr.td.style.backgroundColor + f(Ce)[s % 2 === 0 && e.value.tbody.tr.td.alternateColor ? e.value.tbody.tr.td.alternateOpacity * 100 : 100],
215
225
  paddingTop: e.value.tbody.tr.td.padding.top + "px",
216
226
  paddingRight: e.value.tbody.tr.td.padding.right + "px",
217
227
  paddingBottom: e.value.tbody.tr.td.padding.bottom + "px",
@@ -219,26 +229,26 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
219
229
  }),
220
230
  height: `${e.value.tbody.tr.height}px`
221
231
  }, [
222
- S(U(t.$slots.td ? "" : c.value && typeof h == "string" ? h.slice(0, 30) + "..." : h) + " ", 1),
223
- p(t.$slots, "td", L(V({ td: h, rowIndex: i, colIndex: z })), void 0, !0)
224
- ], 12, Te))), 256))
232
+ U(E(t.$slots.td ? "" : c.value && typeof h == "string" ? h.slice(0, 30) + "..." : h) + " ", 1),
233
+ p(t.$slots, "td", V(G({ td: h, rowIndex: s, colIndex: z })), void 0, !0)
234
+ ], 12, Pe))), 256))
225
235
  ], 4))), 256))
226
236
  ])) : P("", !0)
227
237
  ], 4)) : P("", !0)
228
- ], 46, Ae),
229
- f.value ? P("", !0) : (l(), te(xe, {
238
+ ], 46, Fe),
239
+ g.value ? P("", !0) : (i(), oe(we, {
230
240
  key: 0,
231
241
  config: {
232
242
  type: "table"
233
243
  }
234
244
  })),
235
- e.value.userOptions.show && f.value ? (l(), te(ke, {
245
+ e.value.userOptions.show && g.value ? (i(), oe(Te, {
236
246
  ref: "details",
237
- key: `user_option_${K.value}`,
247
+ key: `user_option_${W.value}`,
238
248
  backgroundColor: e.value.style.backgroundColor,
239
249
  color: e.value.style.color,
240
- isPrinting: g(D),
241
- isImaging: g(X),
250
+ isPrinting: f(X),
251
+ isImaging: f(j),
242
252
  uid: R.value,
243
253
  hasTooltip: !1,
244
254
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -250,55 +260,55 @@ const Ae = ["id"], Ie = ["height"], Fe = { key: 0 }, Te = ["data-cell", "height"
250
260
  isAnimation: !d.value.showAnimation,
251
261
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
252
262
  isFullscreen: q.value,
253
- chartElement: j.value,
263
+ chartElement: K.value,
254
264
  titles: { ...e.value.userOptions.buttonTitles },
255
265
  zIndex: 3,
256
266
  noOffset: "",
257
- onGeneratePdf: Y,
258
- onGenerateCsv: ee,
259
- onGenerateImage: g(_),
260
- onToggleAnimation: Z,
261
- onToggleFullscreen: se
262
- }, ce({ _: 2 }, [
267
+ onGeneratePdf: ee,
268
+ onGenerateCsv: ae,
269
+ onGenerateImage: f(J),
270
+ onToggleAnimation: te,
271
+ onToggleFullscreen: re
272
+ }, fe({ _: 2 }, [
263
273
  t.$slots.optionPdf ? {
264
274
  name: "optionPdf",
265
- fn: x(() => [
275
+ fn: w(() => [
266
276
  p(t.$slots, "optionPdf", {}, void 0, !0)
267
277
  ]),
268
278
  key: "0"
269
279
  } : void 0,
270
280
  t.$slots.optionCsv ? {
271
281
  name: "optionCsv",
272
- fn: x(() => [
282
+ fn: w(() => [
273
283
  p(t.$slots, "optionCsv", {}, void 0, !0)
274
284
  ]),
275
285
  key: "1"
276
286
  } : void 0,
277
287
  t.$slots.optionImg ? {
278
288
  name: "optionImg",
279
- fn: x(() => [
289
+ fn: w(() => [
280
290
  p(t.$slots, "optionImg", {}, void 0, !0)
281
291
  ]),
282
292
  key: "2"
283
293
  } : void 0,
284
294
  t.$slots.optionAnimation ? {
285
295
  name: "optionAnimation",
286
- fn: x(() => [
296
+ fn: w(() => [
287
297
  p(t.$slots, "optionAnimation", {}, void 0, !0)
288
298
  ]),
289
299
  key: "3"
290
300
  } : void 0,
291
301
  t.$slots.optionFullscreen ? {
292
302
  name: "optionFullscreen",
293
- fn: x(({ toggleFullscreen: n, isFullscreen: i }) => [
294
- p(t.$slots, "optionFullscreen", L(V({ toggleFullscreen: n, isFullscreen: i })), void 0, !0)
303
+ fn: w(({ toggleFullscreen: l, isFullscreen: s }) => [
304
+ p(t.$slots, "optionFullscreen", V(G({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
295
305
  ]),
296
306
  key: "4"
297
307
  } : void 0
298
308
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasAnimation", "isAnimation", "hasFullscreen", "isFullscreen", "chartElement", "titles", "onGenerateImage"])) : P("", !0)
299
309
  ], 512));
300
310
  }
301
- }, Ue = /* @__PURE__ */ we(ze, [["__scopeId", "data-v-8529d087"]]);
311
+ }, Le = /* @__PURE__ */ Ie(Re, [["__scopeId", "data-v-c5df50fc"]]);
302
312
  export {
303
- Ue as default
313
+ Le as default
304
314
  };
@@ -1,10 +1,10 @@
1
1
  import { useCssVars as Pe, computed as $, ref as z, onMounted as Ve, openBlock as a, createElementBlock as o, normalizeClass as m, normalizeStyle as h, createBlock as Q, unref as y, createSlots as Re, withCtx as E, renderSlot as X, normalizeProps as Be, guardReactiveProps as Me, createCommentVNode as b, toDisplayString as n, createElementVNode as s, Fragment as p, renderList as _, createTextVNode as Y, withKeys as je, createVNode as Xe, nextTick as ve } from "vue";
2
- import { u as Oe, c as Ge, t as Ee, a as Ae, p as I, b as Ue, g as Z, e as H, d as ee, o as De, X as Ye, s as ye, r as F, C as he, m as fe, i as qe, j as L, k as q, n as He, q as We } from "./index-BMCvLyab.js";
3
- import { u as Ke, U as Je } from "./usePrinter-BuuBz5JR.js";
4
- import Qe from "./vue-ui-skeleton-BisWX1sO.js";
5
- import Ze from "./BaseIcon-vmmfWlyR.js";
6
- import et from "./vue-ui-accordion-CLlVxx3Q.js";
7
- import { u as be } from "./useNestedProp-CkP8xhG_.js";
2
+ import { u as Oe, c as Ge, t as Ee, a as Ae, p as I, b as Ue, g as Z, e as H, d as ee, o as De, X as Ye, s as ye, r as F, C as he, m as fe, i as qe, j as L, k as q, n as He, q as We } from "./index-DLi6mPet.js";
3
+ import { u as Ke, U as Je } from "./usePrinter-BnaEziDF.js";
4
+ import Qe from "./vue-ui-skeleton-CmXMTbOC.js";
5
+ import Ze from "./BaseIcon-CVk_WG9x.js";
6
+ import et from "./vue-ui-accordion-DzCdp527.js";
7
+ import { u as be } from "./useNestedProp-DmMzRJ1O.js";
8
8
  import { _ as tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "font-weight", "font-size", "x", "y"], ut = ["fill", "font-weight", "font-size", "x", "y"], nt = ["id"], rt = ["stop-color"], it = ["stop-color"], ct = ["id"], dt = ["stop-color"], vt = ["stop-color"], yt = ["id"], ht = ["stop-color"], ft = ["stop-color"], bt = ["stop-color"], pt = ["id"], _t = ["stop-color"], gt = ["stop-color"], xt = ["stop-color"], mt = ["id"], kt = ["stop-color"], wt = ["stop-color"], $t = ["stop-color"], Ct = { key: 1 }, zt = ["x", "y", "font-size", "font-weight", "fill"], Tt = ["x", "y", "font-size", "font-weight", "fill"], Ft = ["d", "stroke"], Nt = ["cx", "cy", "r", "fill"], St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], It = { key: 2 }, Lt = ["x", "y", "font-size", "fill", "onClick"], Pt = { key: 0 }, Vt = ["x", "y", "fill", "font-size", "font-weight"], Rt = ["x", "y", "height", "width", "fill", "rx", "onClick"], Bt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], Mt = { key: 3 }, jt = ["x", "y", "fill", "font-size", "onClick"], Xt = ["d", "stroke"], Ot = ["cx", "cy", "fill", "onClick"], Gt = ["fill", "cx", "cy", "r", "onClick"], Et = { key: 4 }, At = ["x", "y", "font-size", "font-weight", "fill"], Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["y", "height", "width"], Yt = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, qt = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Ht = {
10
10
  viewBox: "0 0 20 20",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BkomIE9L.cjs"),U=require("./usePrinter-r6uHYEcR.cjs"),ce=require("./vue-ui-skeleton-JmGp11-u.cjs"),ie=require("./BaseIcon-BoKtpbrI.cjs"),de=require("./vue-ui-accordion-SXsobrUt.cjs"),q=require("./useNestedProp-BMxXyPbW.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ve=["id"],he=["xmlns","viewBox"],pe={key:0},fe=["fill","font-weight","font-size","x","y"],me=["fill","font-weight","font-size","x","y"],ge=["id"],be=["stop-color"],ke=["stop-color"],xe=["id"],_e=["stop-color"],Be=["stop-color"],Ee=["id"],Se=["stop-color"],Ne=["stop-color"],ze=["stop-color"],Ce=["id"],we=["stop-color"],Ve=["stop-color"],$e=["stop-color"],Te=["id"],Fe=["stop-color"],De=["stop-color"],Le=["stop-color"],Me={key:1},Ie=["x","y","font-size","font-weight","fill"],Pe=["x","y","font-size","font-weight","fill"],Oe=["d","stroke"],Re=["cx","cy","r","fill"],Xe=["cx","cy","r","fill","stroke","stroke-width","onClick"],je={key:2},Ae=["x","y","font-size","fill","onClick"],Ge={key:0},Ue=["x","y","fill","font-size","font-weight"],qe=["x","y","height","width","fill","rx","onClick"],Ye=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],He={key:3},We=["x","y","fill","font-size","onClick"],Ke=["d","stroke"],Je=["cx","cy","fill","onClick"],Qe=["fill","cx","cy","r","onClick"],Ze={key:4},et=["x","y","font-size","font-weight","fill"],tt=["x1","x2","y1","y2","stroke","stroke-width"],lt=["y","height","width"],at={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},ot={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},nt={viewBox:"0 0 20 20",height:"16",width:"16"},rt=["fill"],st={key:6},ut=["y","height","width"],ct={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},it={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},dt={viewBox:"0 0 20 20",height:"16",width:"16"},yt=["fill"],vt=["d","stroke"],ht=["cx","cy","fill"],pt=["cx","cy","fill"],ft=["d","stroke"],mt=["cx","cy","fill"],gt=["cx","cy","fill"],bt=["x","y","fill","font-size","font-weight"],kt=["x","y","fill","font-size","font-weight"],xt=["x","text-anchor","y","fill","font-size"],_t=["x","text-anchor","y","fill","font-size"],Bt=["x","text-anchor","y","fill","font-size"],Et=["x","text-anchor","y","fill","font-size"],St=["x","text-anchor","y","fill","font-size"],Nt=["x","y","font-size","fill"],zt=["x","y","font-size","fill"],Ct=["x","y","font-size","fill"],wt={style:{"padding-top":"36px",position:"relative"}},Vt={class:"vue-ui-data-table"},$t={key:0},Tt=["data-cell"],Ft={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Dt={key:0},Lt={key:1},Mt=["data-cell"],It={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Pt={key:0},Ot={key:1},Rt=["data-cell"],Xt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},jt={key:0},At={key:1},Gt=["data-cell"],Ut={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},qt={key:0},Yt={key:1},Ht=["data-cell"],Wt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Kt={key:0},Jt={key:1},Qt=["data-cell"],Zt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},el={key:0},tl={key:1},ll=["data-cell"],al={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ol={key:0},nl={key:1},rl=["data-cell"],sl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ul=["data-cell"],cl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},il=["data-cell"],dl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},yl=["data-cell"],vl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},hl=["data-cell"],pl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},fl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(Y,{expose:H,emit:N}){const k=Y;e.useCssVars(a=>({a08a8b28:a.tdo}));const{vue_ui_chestnut:W}=n.useConfig(),C=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(n.createUid()),D=e.ref(null),K=e.ref(null),L=e.ref(0),t=e.computed(()=>{const a=q.useNestedProp({userConfig:k.config,defaultConfig:W});return a.theme?{...q.useNestedProp({userConfig:n.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}),{isPrinting:J,isImaging:Q,generatePdf:M,generateImage:I}=U.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),$=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),w=e.ref({showTable:t.value.table.show}),P=e.ref(null),O=e.ref(!1),Z=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),f=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),x=e.computed(()=>C.value?k.dataset.flatMap(a=>a.branches.map(s=>s.value)).reduce((a,s)=>a+s):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{n.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{n.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,o)=>{n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{n.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${o}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{n.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{n.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${o} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=a.branches.map(o=>o.value).reduce((o,d)=>o+d);return{...a,color:n.convertColorToHex(a.color)||$.value[s]||n.palette[s]||n.palette[s%n.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:a.branches.map((o,d)=>({...o,rootName:a.name,rootIndex:s,color:n.convertColorToHex(a.color)||$.value[s]||n.palette[s]||n.palette[s%n.palette.length],value:o.value>=0?o.value:0,id:o.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:o.value/l,type:"branch",breakdown:o.breakdown.map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/x.value,branchName:o.name,branchValue:o.value,branchToTotal:o.value/x.value,branchToRoot:o.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/x.value,nutToRoot:i.value/l,nutToBranch:i.value/o.value},...i,type:"nut",branchName:o.name,rootName:a.name,branchTotal:o.value>=0?o.value:0,proportionToBranch:i.value/o.value,proportionToRoot:i.value/l,proportionToTree:i.value/x.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:n.convertColorToHex(i.color)||$.value[y]||n.palette[y]||n.palette[y%n.palette.length],value:i.value>=0?i.value:0}))}))}})));function ee(){return m.value}const te=e.computed(()=>m.value.flatMap(a=>a.branches).length),le=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ae=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),R=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=f.value.height/m.value.length/2,o=a.total/le.value*(l>64?64:l);return{...a,x:f.value.seedX,y:f.value.top+f.value.height/m.value.length*(s+1)-(f.value.height/m.value.length/2+r.value.gap/2),r:o<r.value.branchSize/2?r.value.branchSize/2:o}})),oe=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),ne=e.computed(()=>B.value.flatMap(a=>a.branches)),_=e.computed(()=>ne.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+f.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:R.value,x2:384*a.value/ae.value*oe.value+R.value})));function T(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const c=e.ref(null),E=e.ref(null),v=e.ref(null),g=e.ref(null);function p(){c.value=null,v.value=null,g.value=null}function b(a){return g.value?g.value===null?!0:a.type==="root"?a.id===g.value.id:a.rootIndex===g.value.rootIndex:c.value===null&&v.value===null?!0:a.type==="nut"?c.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||c.value&&c.value.rootIndex===a.rootIndex:!1}function X(a){p(),e.nextTick(()=>{c.value=a,v.value=a,E.value=n.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),N("selectNut",a.breakdown)})}function S(){c.value=null,E.value=null,N("selectNut",null)}function F(a){v.value&&v.value.id===a.id?(v.value=null,p(),N("selectBranch",null)):(p(),v.value=a,N("selectBranch",a))}function j(a){g.value&&g.value.id===a.id?(p(),N("selectRoot",null)):(p(),g.value=a,N("selectRoot",a))}function re(){return f.value.bottom-(c.value.y1+180)<0?0:f.value.bottom}function z(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function se(){new ResizeObserver(s=>{s.forEach(l=>{O.value=l.contentRect.width<Z.value})}).observe(P.value)}e.onMounted(()=>{n.objectIsEmpty(k.dataset)&&n.error({componentName:"VueUiChestnut",type:"dataset"});const a=te.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,se()});const u=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,o)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,gl)=>y.table)));return{head:a,body:s}});function A(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",x.value],[""]],s=u.value.head,l=u.value.body.map((i,y)=>[u.value.body[y-1]&&u.value.body[y-1].rootName===i.rootName?"":i.rootName,u.value.body[y-1]&&u.value.body[y-1].rootName===i.rootName?"":i.rootValue,u.value.body[y-1]&&u.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,u.value.body[y-1]&&u.value.body[y-1].branchName===i.branchName?"":i.branchName,u.value.body[y-1]&&u.value.body[y-1].branchName===i.branchName?"":i.branchValue,u.value.body[y-1]&&u.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,u.value.body[y-1]&&u.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),o=a.concat([s]).concat(l),d=n.createCsvContent(o);n.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function ue(a){V.value=a,L.value+=1}function G(){w.value.showTable=!w.value.showTable}return H({getData:ee,generatePdf:M,generateCsv:A,generateImage:I,toggleTable:G}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:D,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;padding-top:36px;background:${t.value.style.chart.backgroundColor}`)},[t.value.userOptions.show&&C.value?(e.openBlock(),e.createBlock(U.UserOptions,{ref_key:"details",ref:K,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(Q),isPrinting:e.unref(J),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:D.value,onToggleFullscreen:ue,onGeneratePdf:e.unref(M),onGenerateCsv:A,onGenerateImage:e.unref(I),onToggleTable:G},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value.height>0&&C.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",pe,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.text),9,fe)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,me)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,o)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(n.shiftHue)(l.color,.05)}${e.unref(n.opacity)[100-t.value.style.chart.layout.roots.gradientIntensity]}`},null,8,be),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,ke)],8,ge))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(n.shiftHue)(l.color,.02)}${e.unref(n.opacity)[100-t.value.style.chart.layout.branches.gradientIntensity]}`},null,8,Be)],8,xe))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`#FFFFFF${e.unref(n.opacity)[0]}`},null,8,Se),e.createElementVNode("stop",{offset:"80%","stop-color":`#FFFFFF${e.unref(n.opacity)[t.value.style.chart.layout.nuts.selected.gradientIntensity]}`},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":`#FFFFFF${e.unref(n.opacity)[0]}`},null,8,ze)],8,Ee),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`#FFFFFF${e.unref(n.opacity)[0]}`},null,8,we),e.createElementVNode("stop",{offset:"80%","stop-color":`#FFFFFF${e.unref(n.opacity)[t.value.style.chart.layout.nuts.gradientIntensity]}`},null,8,Ve),e.createElementVNode("stop",{offset:"100%","stop-color":`#FFFFFF${e.unref(n.opacity)[0]}`},null,8,$e)],8,Ce),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.value.style.chart.backgroundColor}${e.unref(n.opacity)[100]}`},null,8,Fe),e.createElementVNode("stop",{offset:"80%","stop-color":`${t.value.style.chart.backgroundColor}${e.unref(n.opacity)[60]}`},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.value.style.chart.backgroundColor}${e.unref(n.opacity)[0]}`},null,8,Le)],8,Te)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",Me,[e.createElementVNode("text",{x:f.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,Ie),e.createElementVNode("text",{x:f.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.prefix)+" "+e.toDisplayString(x.value.toFixed(t.value.style.chart.layout.grandTotal.roundingValue))+" "+e.toDisplayString(t.value.style.chart.layout.grandTotal.suffix),9,Pe)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(o,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BQbaKiSm.cjs"),U=require("./usePrinter-BANjHBXe.cjs"),ce=require("./vue-ui-skeleton-DIm7kxhc.cjs"),ie=require("./BaseIcon-ByV6y3w8.cjs"),de=require("./vue-ui-accordion-CHVCSgY3.cjs"),q=require("./useNestedProp-B6CpIX-3.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ve=["id"],he=["xmlns","viewBox"],pe={key:0},fe=["fill","font-weight","font-size","x","y"],me=["fill","font-weight","font-size","x","y"],ge=["id"],be=["stop-color"],ke=["stop-color"],xe=["id"],_e=["stop-color"],Be=["stop-color"],Ee=["id"],Se=["stop-color"],Ne=["stop-color"],ze=["stop-color"],Ce=["id"],we=["stop-color"],Ve=["stop-color"],$e=["stop-color"],Te=["id"],Fe=["stop-color"],De=["stop-color"],Le=["stop-color"],Me={key:1},Ie=["x","y","font-size","font-weight","fill"],Pe=["x","y","font-size","font-weight","fill"],Oe=["d","stroke"],Re=["cx","cy","r","fill"],Xe=["cx","cy","r","fill","stroke","stroke-width","onClick"],je={key:2},Ae=["x","y","font-size","fill","onClick"],Ge={key:0},Ue=["x","y","fill","font-size","font-weight"],qe=["x","y","height","width","fill","rx","onClick"],Ye=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],He={key:3},We=["x","y","fill","font-size","onClick"],Ke=["d","stroke"],Je=["cx","cy","fill","onClick"],Qe=["fill","cx","cy","r","onClick"],Ze={key:4},et=["x","y","font-size","font-weight","fill"],tt=["x1","x2","y1","y2","stroke","stroke-width"],lt=["y","height","width"],at={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},ot={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},nt={viewBox:"0 0 20 20",height:"16",width:"16"},rt=["fill"],st={key:6},ut=["y","height","width"],ct={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},it={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},dt={viewBox:"0 0 20 20",height:"16",width:"16"},yt=["fill"],vt=["d","stroke"],ht=["cx","cy","fill"],pt=["cx","cy","fill"],ft=["d","stroke"],mt=["cx","cy","fill"],gt=["cx","cy","fill"],bt=["x","y","fill","font-size","font-weight"],kt=["x","y","fill","font-size","font-weight"],xt=["x","text-anchor","y","fill","font-size"],_t=["x","text-anchor","y","fill","font-size"],Bt=["x","text-anchor","y","fill","font-size"],Et=["x","text-anchor","y","fill","font-size"],St=["x","text-anchor","y","fill","font-size"],Nt=["x","y","font-size","fill"],zt=["x","y","font-size","fill"],Ct=["x","y","font-size","fill"],wt={style:{"padding-top":"36px",position:"relative"}},Vt={class:"vue-ui-data-table"},$t={key:0},Tt=["data-cell"],Ft={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Dt={key:0},Lt={key:1},Mt=["data-cell"],It={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Pt={key:0},Ot={key:1},Rt=["data-cell"],Xt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},jt={key:0},At={key:1},Gt=["data-cell"],Ut={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},qt={key:0},Yt={key:1},Ht=["data-cell"],Wt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Kt={key:0},Jt={key:1},Qt=["data-cell"],Zt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},el={key:0},tl={key:1},ll=["data-cell"],al={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ol={key:0},nl={key:1},rl=["data-cell"],sl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ul=["data-cell"],cl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},il=["data-cell"],dl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},yl=["data-cell"],vl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},hl=["data-cell"],pl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},fl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(Y,{expose:H,emit:N}){const k=Y;e.useCssVars(a=>({a08a8b28:a.tdo}));const{vue_ui_chestnut:W}=n.useConfig(),C=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(n.createUid()),D=e.ref(null),K=e.ref(null),L=e.ref(0),t=e.computed(()=>{const a=q.useNestedProp({userConfig:k.config,defaultConfig:W});return a.theme?{...q.useNestedProp({userConfig:n.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}),{isPrinting:J,isImaging:Q,generatePdf:M,generateImage:I}=U.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),$=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),w=e.ref({showTable:t.value.table.show}),P=e.ref(null),O=e.ref(!1),Z=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),f=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),x=e.computed(()=>C.value?k.dataset.flatMap(a=>a.branches.map(s=>s.value)).reduce((a,s)=>a+s):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{n.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{n.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,o)=>{n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{n.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${o}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{n.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{n.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${o} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=a.branches.map(o=>o.value).reduce((o,d)=>o+d);return{...a,color:n.convertColorToHex(a.color)||$.value[s]||n.palette[s]||n.palette[s%n.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:a.branches.map((o,d)=>({...o,rootName:a.name,rootIndex:s,color:n.convertColorToHex(a.color)||$.value[s]||n.palette[s]||n.palette[s%n.palette.length],value:o.value>=0?o.value:0,id:o.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:o.value/l,type:"branch",breakdown:o.breakdown.map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/x.value,branchName:o.name,branchValue:o.value,branchToTotal:o.value/x.value,branchToRoot:o.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/x.value,nutToRoot:i.value/l,nutToBranch:i.value/o.value},...i,type:"nut",branchName:o.name,rootName:a.name,branchTotal:o.value>=0?o.value:0,proportionToBranch:i.value/o.value,proportionToRoot:i.value/l,proportionToTree:i.value/x.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:n.convertColorToHex(i.color)||$.value[y]||n.palette[y]||n.palette[y%n.palette.length],value:i.value>=0?i.value:0}))}))}})));function ee(){return m.value}const te=e.computed(()=>m.value.flatMap(a=>a.branches).length),le=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ae=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),R=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=f.value.height/m.value.length/2,o=a.total/le.value*(l>64?64:l);return{...a,x:f.value.seedX,y:f.value.top+f.value.height/m.value.length*(s+1)-(f.value.height/m.value.length/2+r.value.gap/2),r:o<r.value.branchSize/2?r.value.branchSize/2:o}})),oe=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),ne=e.computed(()=>B.value.flatMap(a=>a.branches)),_=e.computed(()=>ne.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+f.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:R.value,x2:384*a.value/ae.value*oe.value+R.value})));function T(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const c=e.ref(null),E=e.ref(null),v=e.ref(null),g=e.ref(null);function p(){c.value=null,v.value=null,g.value=null}function b(a){return g.value?g.value===null?!0:a.type==="root"?a.id===g.value.id:a.rootIndex===g.value.rootIndex:c.value===null&&v.value===null?!0:a.type==="nut"?c.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||c.value&&c.value.rootIndex===a.rootIndex:!1}function X(a){p(),e.nextTick(()=>{c.value=a,v.value=a,E.value=n.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),N("selectNut",a.breakdown)})}function S(){c.value=null,E.value=null,N("selectNut",null)}function F(a){v.value&&v.value.id===a.id?(v.value=null,p(),N("selectBranch",null)):(p(),v.value=a,N("selectBranch",a))}function j(a){g.value&&g.value.id===a.id?(p(),N("selectRoot",null)):(p(),g.value=a,N("selectRoot",a))}function re(){return f.value.bottom-(c.value.y1+180)<0?0:f.value.bottom}function z(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function se(){new ResizeObserver(s=>{s.forEach(l=>{O.value=l.contentRect.width<Z.value})}).observe(P.value)}e.onMounted(()=>{n.objectIsEmpty(k.dataset)&&n.error({componentName:"VueUiChestnut",type:"dataset"});const a=te.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,se()});const u=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,o)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,gl)=>y.table)));return{head:a,body:s}});function A(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",x.value],[""]],s=u.value.head,l=u.value.body.map((i,y)=>[u.value.body[y-1]&&u.value.body[y-1].rootName===i.rootName?"":i.rootName,u.value.body[y-1]&&u.value.body[y-1].rootName===i.rootName?"":i.rootValue,u.value.body[y-1]&&u.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,u.value.body[y-1]&&u.value.body[y-1].branchName===i.branchName?"":i.branchName,u.value.body[y-1]&&u.value.body[y-1].branchName===i.branchName?"":i.branchValue,u.value.body[y-1]&&u.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,u.value.body[y-1]&&u.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),o=a.concat([s]).concat(l),d=n.createCsvContent(o);n.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function ue(a){V.value=a,L.value+=1}function G(){w.value.showTable=!w.value.showTable}return H({getData:ee,generatePdf:M,generateCsv:A,generateImage:I,toggleTable:G}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:D,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;padding-top:36px;background:${t.value.style.chart.backgroundColor}`)},[t.value.userOptions.show&&C.value?(e.openBlock(),e.createBlock(U.UserOptions,{ref_key:"details",ref:K,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(Q),isPrinting:e.unref(J),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:D.value,onToggleFullscreen:ue,onGeneratePdf:e.unref(M),onGenerateCsv:A,onGenerateImage:e.unref(I),onToggleTable:G},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),r.value.height>0&&C.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",pe,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.text),9,fe)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,me)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,o)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(n.shiftHue)(l.color,.05)}${e.unref(n.opacity)[100-t.value.style.chart.layout.roots.gradientIntensity]}`},null,8,be),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,ke)],8,ge))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(n.shiftHue)(l.color,.02)}${e.unref(n.opacity)[100-t.value.style.chart.layout.branches.gradientIntensity]}`},null,8,Be)],8,xe))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`#FFFFFF${e.unref(n.opacity)[0]}`},null,8,Se),e.createElementVNode("stop",{offset:"80%","stop-color":`#FFFFFF${e.unref(n.opacity)[t.value.style.chart.layout.nuts.selected.gradientIntensity]}`},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":`#FFFFFF${e.unref(n.opacity)[0]}`},null,8,ze)],8,Ee),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`#FFFFFF${e.unref(n.opacity)[0]}`},null,8,we),e.createElementVNode("stop",{offset:"80%","stop-color":`#FFFFFF${e.unref(n.opacity)[t.value.style.chart.layout.nuts.gradientIntensity]}`},null,8,Ve),e.createElementVNode("stop",{offset:"100%","stop-color":`#FFFFFF${e.unref(n.opacity)[0]}`},null,8,$e)],8,Ce),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${t.value.style.chart.backgroundColor}${e.unref(n.opacity)[100]}`},null,8,Fe),e.createElementVNode("stop",{offset:"80%","stop-color":`${t.value.style.chart.backgroundColor}${e.unref(n.opacity)[60]}`},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.value.style.chart.backgroundColor}${e.unref(n.opacity)[0]}`},null,8,Le)],8,Te)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",Me,[e.createElementVNode("text",{x:f.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,Ie),e.createElementVNode("text",{x:f.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.prefix)+" "+e.toDisplayString(x.value.toFixed(t.value.style.chart.layout.grandTotal.roundingValue))+" "+e.toDisplayString(t.value.style.chart.layout.grandTotal.suffix),9,Pe)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(o,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
2
2
  ${l.x1},${l.y1+d}
3
3
  C${l.x1-20},${l.y1+d}
4
4
  ${l.x1-80},${l.y1+d}
@@ -1,6 +1,6 @@
1
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";
2
+ import { u as z } from "./useNestedProp-DmMzRJ1O.js";
3
+ import { u as O, c as B, X as N, r as T } from "./index-DLi6mPet.js";
4
4
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const g = (a) => (I("data-v-fe8d65eb"), a = a(), L(), a), $ = ["xmlns", "height", "width"], W = {
6
6
  id: "follower",
@@ -1 +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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),_=require("./useNestedProp-B6CpIX-3.cjs"),i=require("./index-BQbaKiSm.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;