vue-data-ui 3.0.0-next.48 → 3.0.0-next.49

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 (91) hide show
  1. package/dist/{Arrow-D3nEZk4q.js → Arrow-DotTzDzE.js} +1 -1
  2. package/dist/{BaseDraggableDialog-BBwi1IGy.js → BaseDraggableDialog-BPs3KOCk.js} +2 -2
  3. package/dist/{BaseIcon-BGtgi82S.js → BaseIcon-B4lxhw9o.js} +1 -1
  4. package/dist/{ColorPicker-CJ6y-Ab8.js → ColorPicker-2EO8-zhQ.js} +2 -2
  5. package/dist/{DataTable-DbBalCD-.js → DataTable-CVnNcUM4.js} +2 -2
  6. package/dist/{Legend-DM-BhdcB.js → Legend-BlVtnIFw.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-CBSd7d-6.js → NonSvgPenAndPaper-07syJcgZ.js} +3 -3
  8. package/dist/{PackageVersion-VPyaIWwy.js → PackageVersion-Cg4_GtJf.js} +1 -1
  9. package/dist/{PenAndPaper-B5OpT2xv.js → PenAndPaper-Cz9cyN0p.js} +3 -3
  10. package/dist/{Shape-idLNAydx.js → Shape-BV7FCMRW.js} +1 -1
  11. package/dist/{Slicer-hvUrqAwc.js → Slicer-B_KcnJc3.js} +2 -2
  12. package/dist/{SparkTooltip-BI3m0T_i.js → SparkTooltip-BEClvQnh.js} +1 -1
  13. package/dist/{Title-Do0D6df3.js → Title-BFyRC6GM.js} +1 -1
  14. package/dist/{Tooltip-BsEMtsH3.js → Tooltip-CAF7J60u.js} +1 -1
  15. package/dist/{UserOptions-DqFHidPX.js → UserOptions-D3-mjgYs.js} +2 -2
  16. package/dist/{dom-to-png-DtidZQbo.js → dom-to-png-kBhe3ibE.js} +1 -1
  17. package/dist/{img-NbLG7gNz.js → img-C5BY-RpJ.js} +1 -1
  18. package/dist/{index-C6ej-Des.js → index-D6eUCgEP.js} +11 -1
  19. package/dist/{pdf-BCoIogCD.js → pdf-Dj4tVKzE.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +5 -0
  22. package/dist/types/vue-data-ui.d.ts +5 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-BFZebobZ.js → useAutoSizeLabelsInsideViewbox-CnajDz5R.js} +1 -1
  24. package/dist/{useNestedProp-CAffSKg3.js → useNestedProp-BApHoInw.js} +1 -1
  25. package/dist/{usePrinter-eFqrYDjm.js → usePrinter-B_35JREm.js} +2 -2
  26. package/dist/{vue-data-ui-DdWPbjgC.js → vue-data-ui-DbOmFNxn.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BeEwpOrN.js → vue-ui-3d-bar-BWl2wDpv.js} +6 -6
  29. package/dist/{vue-ui-accordion-Dri5xOZg.js → vue-ui-accordion-BZiwwf95.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Gtg3EM7s.js → vue-ui-age-pyramid-C9Uwu6sz.js} +6 -6
  31. package/dist/{vue-ui-annotator-DzJe5FVW.js → vue-ui-annotator-D-S2Pa6d.js} +2 -2
  32. package/dist/{vue-ui-bullet-CbKpSSIy.js → vue-ui-bullet-CmItGyRx.js} +7 -7
  33. package/dist/{vue-ui-candlestick-Do8JViGD.js → vue-ui-candlestick-8-jyu0C7.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-DDixroq4.js → vue-ui-carousel-table-bpuq5ZXs.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BGQ5o44u.js → vue-ui-chestnut-CWdwyp7F.js} +5 -5
  36. package/dist/{vue-ui-chord-BzrdZEJn.js → vue-ui-chord-BGNBeAMc.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-D0O4n3GH.js → vue-ui-circle-pack-CWHbNqER.js} +6 -6
  38. package/dist/{vue-ui-cursor-sK-TUZ3s.js → vue-ui-cursor-DU-sUJqm.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BQVxldca.js → vue-ui-dashboard-DPnqiFZt.js} +62 -62
  40. package/dist/{vue-ui-digits-DKMxVSMt.js → vue-ui-digits-Bk75Ph_N.js} +2 -2
  41. package/dist/{vue-ui-donut-DxpVU_x_.js → vue-ui-donut-DlJ164Ho.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-D7CRCGCB.js → vue-ui-donut-evolution-Bn6tNIhD.js} +8 -8
  43. package/dist/{vue-ui-dumbbell-DHZnwOtV.js → vue-ui-dumbbell-Co0dhIlX.js} +7 -7
  44. package/dist/{vue-ui-flow-EXrdGGTJ.js → vue-ui-flow-C5nPJMht.js} +7 -7
  45. package/dist/{vue-ui-funnel-J6lOcTNQ.js → vue-ui-funnel-oyFttR44.js} +6 -6
  46. package/dist/{vue-ui-galaxy-vizBAlVx.js → vue-ui-galaxy-DQzS2e8f.js} +5 -5
  47. package/dist/{vue-ui-gauge-DYJrydxk.js → vue-ui-gauge-DXaspDjM.js} +7 -7
  48. package/dist/{vue-ui-gizmo-CnMFc2H_.js → vue-ui-gizmo-Ce1BJaCv.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CnRTKFm9.js → vue-ui-heatmap-DyylSc9H.js} +7 -7
  50. package/dist/{vue-ui-history-plot-1SfEx6cE.js → vue-ui-history-plot-n4RiiZru.js} +7 -7
  51. package/dist/{vue-ui-kpi-C4z3NxHx.js → vue-ui-kpi-86f0lpbv.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Bc_uyj6D.js → vue-ui-mini-loader-Bhf43HYu.js} +2 -2
  53. package/dist/{vue-ui-molecule-DKDInMgg.js → vue-ui-molecule-BPiowxmT.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-CVqEc6YO.js → vue-ui-mood-radar-C2XTA7zS.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-65s7IwMu.js → vue-ui-nested-donuts-DLUDg8Gk.js} +9 -9
  56. package/dist/{vue-ui-onion-BjJUisXu.js → vue-ui-onion-CsZcgkcy.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-DLdklB0O.js → vue-ui-parallel-coordinate-plot-lebyjyDa.js} +8 -8
  58. package/dist/{vue-ui-quadrant-ViGM0YPy.js → vue-ui-quadrant-CzBI0nnL.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-D_0ziD6j.js → vue-ui-quick-chart-Crr9LZ1B.js} +6 -6
  60. package/dist/{vue-ui-radar-DYCg95w6.js → vue-ui-radar-7lxwJ59B.js} +7 -7
  61. package/dist/{vue-ui-rating-XD_TiTw8.js → vue-ui-rating-DDb0GWHH.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-hkWH7Rjr.js → vue-ui-relation-circle-Kxkxkh-1.js} +6 -6
  63. package/dist/{vue-ui-ridgeline-CoKkxlCx.js → vue-ui-ridgeline-DYOtEei6.js} +8 -8
  64. package/dist/{vue-ui-rings-qAfIfnPF.js → vue-ui-rings-Cdxl4tbG.js} +8 -8
  65. package/dist/{vue-ui-scatter-t2uN8dPK.js → vue-ui-scatter-CyncadlL.js} +8 -8
  66. package/dist/{vue-ui-skeleton-TtAlvjAj.js → vue-ui-skeleton-BsGAx6EO.js} +3 -3
  67. package/dist/{vue-ui-smiley-BATWmI5L.js → vue-ui-smiley-BSRMXP0_.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BUZstP13.js → vue-ui-spark-trend-8jFykYcD.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-B6dFK-Tp.js → vue-ui-sparkbar-Sn9cp8uT.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-uFlVeRbC.js → vue-ui-sparkgauge-DLVjSoWV.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-ESsxBRTw.js → vue-ui-sparkhistogram-CMtj3d70.js} +4 -4
  72. package/dist/{vue-ui-sparkline-VCKNPag-.js → vue-ui-sparkline-PdA7SxHY.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-71Bz9DGJ.js → vue-ui-sparkstackbar-BJsTLD0S.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DnDJWHZM.js → vue-ui-stackbar-CAeqsmt2.js} +9 -9
  75. package/dist/{vue-ui-strip-plot-Dz6LqM6T.js → vue-ui-strip-plot-DA8EXkjU.js} +7 -7
  76. package/dist/{vue-ui-table-CYcu_oe0.js → vue-ui-table-BPKr_mKl.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-Y53ndTSj.js → vue-ui-table-heatmap-DN2k0MYk.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-aNmaRCKf.js → vue-ui-table-sparkline-5l6bCUhT.js} +4 -4
  79. package/dist/{vue-ui-thermometer-BAxNO5uO.js → vue-ui-thermometer-BOD9V8DL.js} +6 -6
  80. package/dist/{vue-ui-timer-Dj8Oqv3O.js → vue-ui-timer-57aaKsPi.js} +5 -5
  81. package/dist/vue-ui-tiremarks-BU-F4ucd.js +406 -0
  82. package/dist/{vue-ui-treemap-BWh-cJCN.js → vue-ui-treemap-Bn5hZXkA.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-CdZhO6C6.js → vue-ui-vertical-bar-Cnw3jql2.js} +9 -9
  84. package/dist/{vue-ui-waffle-COMsqqNa.js → vue-ui-waffle-BURt826b.js} +8 -8
  85. package/dist/{vue-ui-wheel-Ilqm9s4Q.js → vue-ui-wheel-LgKxBqPV.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-B7BUvab1.js → vue-ui-word-cloud-C4vbIC9H.js} +6 -6
  87. package/dist/{vue-ui-world-DrEbMGph.js → vue-ui-world-BcHGc5CX.js} +6 -6
  88. package/dist/{vue-ui-xy-Cz7D4LMw.js → vue-ui-xy-DMmZMjpX.js} +9 -9
  89. package/dist/{vue-ui-xy-canvas-DFVZdHur.js → vue-ui-xy-canvas-FTVpx_gZ.js} +8 -8
  90. package/package.json +1 -1
  91. package/dist/vue-ui-tiremarks-DXqqNQjW.js +0 -358
@@ -1,16 +1,16 @@
1
1
  import { useCssVars as qa, computed as k, ref as p, onMounted as $t, onBeforeUnmount as rt, watch as nl, nextTick as Zl, onUpdated as Za, createElementBlock as s, openBlock as u, createElementVNode as x, createCommentVNode as h, renderSlot as K, normalizeStyle as $, createVNode as ql, withDirectives as Vt, unref as v, Fragment as g, renderList as L, normalizeClass as Re, vModelText as ma, toDisplayString as ae, defineAsyncComponent as wl, useSlots as Ja, getCurrentInstance as Ka, toRefs as Qa, watchEffect as ja, createBlock as Qe, createSlots as eo, withCtx as pe, normalizeProps as hl, guardReactiveProps as Sl, mergeProps as pt, vModelCheckbox as lo, createTextVNode as to } from "vue";
2
- import { c as St, W as _t, V as Lt, X as ao, F as el, u as oo, e as Pt, v as uo, a5 as il, b as io, D as nt, ac as Pl, d as so, p as no, ad as yt, aa as Y, ae as ro, w as V, af as xa, ag as ba, ah as co, ai as pa, aj as ya, i as we, y as vo, z as ho, $ as ka, R as sl, f as De, x as Hl, s as je, a8 as ee, L as fo, ak as kt, I as go, al as $l, C as Xe, t as mo, a as xo, o as wa, q as bo, r as po, E as Ul } from "./index-C6ej-Des.js";
2
+ import { c as St, W as _t, V as Lt, X as ao, F as el, u as oo, e as Pt, v as uo, a5 as il, b as io, D as nt, ac as Pl, d as so, p as no, ad as yt, aa as Y, ae as ro, w as V, af as xa, ag as ba, ah as co, ai as pa, aj as ya, i as we, y as vo, z as ho, $ as ka, R as sl, f as De, x as Hl, s as je, a8 as ee, L as fo, ak as kt, I as go, al as $l, C as Xe, t as mo, a as xo, o as wa, q as bo, r as po, E as Ul } from "./index-D6eUCgEP.js";
3
3
  import { t as Et, u as yo } from "./useResponsive-DfdjqQps.js";
4
- import { u as ko } from "./usePrinter-eFqrYDjm.js";
4
+ import { u as ko } from "./usePrinter-B_35JREm.js";
5
5
  import { u as wo, B as So } from "./BaseScanner-DIK2NTdp.js";
6
- import { u as Ht } from "./useNestedProp-CAffSKg3.js";
6
+ import { u as Ht } from "./useNestedProp-BApHoInw.js";
7
7
  import { u as Sa } from "./useTimeLabels-DkzmKfZn.js";
8
8
  import { u as $o } from "./useTimeLabelCollider-CIsgDrl9.js";
9
- import _o from "./img-NbLG7gNz.js";
10
- import Lo from "./Title-Do0D6df3.js";
11
- import { S as Mo } from "./Slicer-hvUrqAwc.js";
12
- import { _ as wt } from "./Shape-idLNAydx.js";
13
- import Ao from "./BaseIcon-BGtgi82S.js";
9
+ import _o from "./img-C5BY-RpJ.js";
10
+ import Lo from "./Title-BFyRC6GM.js";
11
+ import { S as Mo } from "./Slicer-B_KcnJc3.js";
12
+ import { _ as wt } from "./Shape-BV7FCMRW.js";
13
+ import Ao from "./BaseIcon-B4lxhw9o.js";
14
14
  import { _ as $a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const Co = {
16
16
  class: "vue-data-ui-slicer-labels",
@@ -709,7 +709,7 @@ const Co = {
709
709
  },
710
710
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
711
711
  setup(C, { expose: Mt, emit: At }) {
712
- const d = C, Pe = wl(() => import("./DataTable-DbBalCD-.js")), ie = wl(() => import("./Tooltip-BsEMtsH3.js")), re = wl(() => import("./UserOptions-DqFHidPX.js")), _l = wl(() => import("./BaseIcon-BGtgi82S.js")), Jl = wl(() => import("./vue-ui-table-sparkline-aNmaRCKf.js")), Vl = wl(() => import("./vue-ui-accordion-Dri5xOZg.js")), Ll = wl(() => import("./PackageVersion-VPyaIWwy.js")), Ml = wl(() => import("./PenAndPaper-B5OpT2xv.js")), fl = At, Kl = Ja(), Ql = Ka(), { vue_ui_xy: jl } = oo(), fe = p(null), ye = p(null), ze = p(null), ll = p(null), Al = p(null), Cl = p(null), Ct = p(null), He = p(null), El = p(null), rl = p(null), zl = p(null), D = p(null), tl = p(null), ge = p(0), M = p(null), Ve = p(!0), se = p(600), ne = p(1e3), Bl = p("0 0 1000 600"), Il = p({ x: 0, y: 0 }), Ge = p({ line: "line", bar: "bar", plot: "plot" }), gl = p(!1), cl = p(!1), Fl = p(!1), Ie = p(null), oe = p([]), Q = p(St()), ct = p(0), vt = p(0), et = p(0), Me = p(!0), Ee = p(0), O = p(null), Ue = p(!1), Wl = p(!0), Yl = p(!0), Se = p(null), Be = p({}), Dl = p(null), S = p(null), dt = k(() => ({
712
+ const d = C, Pe = wl(() => import("./DataTable-CVnNcUM4.js")), ie = wl(() => import("./Tooltip-CAF7J60u.js")), re = wl(() => import("./UserOptions-D3-mjgYs.js")), _l = wl(() => import("./BaseIcon-B4lxhw9o.js")), Jl = wl(() => import("./vue-ui-table-sparkline-5l6bCUhT.js")), Vl = wl(() => import("./vue-ui-accordion-BZiwwf95.js")), Ll = wl(() => import("./PackageVersion-Cg4_GtJf.js")), Ml = wl(() => import("./PenAndPaper-Cz9cyN0p.js")), fl = At, Kl = Ja(), Ql = Ka(), { vue_ui_xy: jl } = oo(), fe = p(null), ye = p(null), ze = p(null), ll = p(null), Al = p(null), Cl = p(null), Ct = p(null), He = p(null), El = p(null), rl = p(null), zl = p(null), D = p(null), tl = p(null), ge = p(0), M = p(null), Ve = p(!0), se = p(600), ne = p(1e3), Bl = p("0 0 1000 600"), Il = p({ x: 0, y: 0 }), Ge = p({ line: "line", bar: "bar", plot: "plot" }), gl = p(!1), cl = p(!1), Fl = p(!1), Ie = p(null), oe = p([]), Q = p(St()), ct = p(0), vt = p(0), et = p(0), Me = p(!0), Ee = p(0), O = p(null), Ue = p(!1), Wl = p(!0), Yl = p(!0), Se = p(null), Be = p({}), Dl = p(null), S = p(null), dt = k(() => ({
713
713
  height: se.value,
714
714
  width: ne.value
715
715
  })), ml = d.config.downsample && d.config.downsample.threshold ? d.config.downsample.threshold : 500, f = p({
@@ -1,15 +1,15 @@
1
1
  import { defineAsyncComponent as K, ref as d, computed as L, useSlots as Va, onMounted as ua, watch as D, nextTick as sa, shallowRef as ze, onBeforeUnmount as Ga, createElementBlock as se, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as X, createBlock as N, createElementVNode as ne, createSlots as ja, withCtx as x, renderSlot as k, normalizeProps as B, guardReactiveProps as _, createVNode as qa, toDisplayString as na, createTextVNode as Ja } from "vue";
2
- import { u as Ka, c as Qa, t as el, p as V, a as al, C as ge, b as ll, D as $e, i as ee, f as ae, d as ia, a5 as tl, G as ol, ae as rl, o as ul, e as sl, y as va, q as nl, r as il, z as vl, s as ie, l as cl } from "./index-C6ej-Des.js";
2
+ import { u as Ka, c as Qa, t as el, p as V, a as al, C as ge, b as ll, D as $e, i as ee, f as ae, d as ia, a5 as tl, G as ol, ae as rl, o as ul, e as sl, y as va, q as nl, r as il, z as vl, s as ie, l as cl } from "./index-D6eUCgEP.js";
3
3
  import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Ie, b as R, p as da } from "./useResponsive-DfdjqQps.js";
4
- import { u as ha } from "./useNestedProp-CAffSKg3.js";
5
- import { u as gl } from "./usePrinter-eFqrYDjm.js";
4
+ import { u as ha } from "./useNestedProp-BApHoInw.js";
5
+ import { u as gl } from "./usePrinter-B_35JREm.js";
6
6
  import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
8
- import bl from "./Legend-DM-BhdcB.js";
9
- import xl from "./Title-Do0D6df3.js";
10
- import { S as Ll } from "./Slicer-hvUrqAwc.js";
8
+ import bl from "./Legend-BlVtnIFw.js";
9
+ import xl from "./Title-BFyRC6GM.js";
10
+ import { S as Ll } from "./Slicer-B_KcnJc3.js";
11
11
  import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
12
- import Cl from "./img-NbLG7gNz.js";
12
+ import Cl from "./img-C5BY-RpJ.js";
13
13
  import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const Sl = ["id"], zl = ["onClick"], $l = {
15
15
  key: 2,
@@ -32,7 +32,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
32
32
  },
33
33
  emits: ["selectLegend"],
34
34
  setup(Me, { expose: ya, emit: fa }) {
35
- const ga = K(() => import("./vue-ui-accordion-Dri5xOZg.js")), pa = K(() => import("./DataTable-DbBalCD-.js")), ma = K(() => import("./NonSvgPenAndPaper-CBSd7d-6.js")), ba = K(() => import("./vue-ui-skeleton-TtAlvjAj.js")), xa = K(() => import("./Tooltip-BsEMtsH3.js")), La = K(() => import("./UserOptions-DqFHidPX.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), F = d(1), ve = d(!1), c = d(null), ce = d(""), Te = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), me = d(null), Oe = d(0), Re = d(0), de = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), ke = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
35
+ const ga = K(() => import("./vue-ui-accordion-BZiwwf95.js")), pa = K(() => import("./DataTable-CVnNcUM4.js")), ma = K(() => import("./NonSvgPenAndPaper-07syJcgZ.js")), ba = K(() => import("./vue-ui-skeleton-BsGAx6EO.js")), xa = K(() => import("./Tooltip-CAF7J60u.js")), La = K(() => import("./UserOptions-D3-mjgYs.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), F = d(1), ve = d(!1), c = d(null), ce = d(""), Te = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), me = d(null), Oe = d(0), Re = d(0), de = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), ke = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
36
36
  ua(() => {
37
37
  wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
38
38
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.0.0-next.48",
4
+ "version": "3.0.0-next.49",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,358 +0,0 @@
1
- import { defineAsyncComponent as S, computed as d, ref as b, watch as te, onMounted as pe, createElementBlock as c, openBlock as r, unref as s, normalizeStyle as G, normalizeClass as L, createBlock as z, createCommentVNode as f, createSlots as ye, withCtx as P, renderSlot as p, normalizeProps as N, guardReactiveProps as M, createVNode as me, Fragment as ae, renderList as oe, toDisplayString as ke } from "vue";
2
- import { u as le } from "./useNestedProp-CAffSKg3.js";
3
- import { u as be, c as Ce, a as _e, w as we, o as $e, e as xe, x as se, X as Oe, i as Pe, f as Ae } from "./index-C6ej-Des.js";
4
- import { u as Ie } from "./usePrinter-eFqrYDjm.js";
5
- import { u as Fe } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as Se } from "./useChartAccessibility-9icAAmYg.js";
7
- import ze from "./Title-Do0D6df3.js";
8
- import Ne from "./img-NbLG7gNz.js";
9
- import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const Te = ["id"], Ue = {
11
- key: 2,
12
- style: "width:100%;background:transparent;padding-bottom:12px"
13
- }, Re = ["xmlns", "viewBox"], Ee = ["width", "height"], Ge = { key: 1 }, Le = ["d", "stroke-width", "stroke"], je = { key: 2 }, Be = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Xe = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], De = {
14
- key: 5,
15
- class: "vue-data-ui-watermark"
16
- }, He = {
17
- key: 6,
18
- ref: "source",
19
- dir: "auto"
20
- }, Ve = {
21
- __name: "vue-ui-tiremarks",
22
- props: {
23
- config: {
24
- type: Object,
25
- default() {
26
- return {};
27
- }
28
- },
29
- dataset: {
30
- type: Object,
31
- default() {
32
- return {};
33
- }
34
- }
35
- },
36
- setup(ne, { expose: re }) {
37
- const ue = S(() => import("./PenAndPaper-B5OpT2xv.js")), ie = S(() => import("./vue-ui-skeleton-TtAlvjAj.js")), ce = S(() => import("./UserOptions-DqFHidPX.js")), ve = S(() => import("./PackageVersion-VPyaIWwy.js")), { vue_ui_tiremarks: he } = be(), g = ne, T = d(() => !!g.dataset && Object.keys(g.dataset).length), U = b(Ce()), w = b(null), de = b(null), j = b(0), B = b(0), e = d({
38
- get: () => V(),
39
- set: (t) => t
40
- }), { userOptionsVisible: R, setUserOptionsVisibility: X, keepUserOptionState: D } = Fe({ config: e.value }), { svgRef: H } = Se({ config: e.value.style.chart.title });
41
- function V() {
42
- const t = le({
43
- userConfig: g.config,
44
- defaultConfig: he
45
- });
46
- return t.theme ? {
47
- ...le({
48
- userConfig: _e.vue_ui_tiremarks[t.theme] || g.config,
49
- defaultConfig: t
50
- })
51
- } : t;
52
- }
53
- te(() => g.config, (t) => {
54
- e.value = V(), R.value = !e.value.userOptions.showOnChartHover, W(), B.value += 1;
55
- }, { deep: !0 });
56
- const { isPrinting: Y, isImaging: q, generatePdf: J, generateImage: K } = Ie({
57
- elementId: U.value,
58
- fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
59
- options: e.value.userOptions.print
60
- }), fe = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : we(g.dataset.percentage));
61
- te(() => g.dataset, (t) => {
62
- e.value.style.chart.animation.use ? Q(t.percentage) : u.value = t.percentage || 0;
63
- }, { deep: !0 }), pe(() => {
64
- W();
65
- });
66
- function Q(t) {
67
- let n = e.value.style.chart.animation.speed;
68
- const a = Math.abs(t - u.value) / (n * 120);
69
- function o() {
70
- u.value < t ? u.value = Math.min(u.value + a, t) : u.value > t && (u.value = Math.max(u.value - a, t)), u.value !== t && requestAnimationFrame(o);
71
- }
72
- o();
73
- }
74
- function W() {
75
- $e(g.dataset) && xe({
76
- componentName: "VueUiTiremarks",
77
- type: "dataset"
78
- }), Q(g.dataset.percentage || 0);
79
- }
80
- const _ = d(() => e.value.style.chart.layout.display === "vertical"), i = d(() => {
81
- const t = {
82
- top: 48,
83
- left: 64,
84
- right: 64,
85
- bottom: 48
86
- };
87
- return _.value ? {
88
- top: e.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
89
- left: 3,
90
- right: 3,
91
- bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
92
- } : {
93
- top: 0,
94
- bottom: 0,
95
- left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
96
- right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
97
- };
98
- }), A = d(() => Object.values(i.value).reduce((t, n) => t + n, 0)), l = d(() => ({
99
- height: _.value ? 312 : 56,
100
- width: _.value ? 56 : 312
101
- })), v = d(() => _.value ? {
102
- mark: (l.value.height - A.value) / 100 * 0.5,
103
- space: (l.value.height - A.value) / 100 * 0.5
104
- } : {
105
- mark: (l.value.width - A.value) / 100 * 0.5,
106
- space: (l.value.width - A.value) / 100 * 0.5
107
- }), Z = d(() => {
108
- const t = [];
109
- for (let a = 0; a < 100; a += 1) {
110
- const o = e.value.style.chart.layout.ticks.gradient.show ? se(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
111
- if (_.value) {
112
- const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - i.value.left - i.value.right) / 100 / 3 : 0, h = i.value.left + 4 + C, y = l.value.width - i.value.right - 4 - C, m = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = l.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, x = (y - h) / e.value.style.chart.layout.curveAngleX, O = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
113
- t.push({
114
- x1: h,
115
- x2: y,
116
- y1: m,
117
- y2: k,
118
- curve: `M ${h} ${m} C ${h + x} ${m - O}, ${y - x} ${k - O}, ${y} ${k}`,
119
- color: o
120
- });
121
- } else {
122
- const C = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, h = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = h, m = i.value.top + 4 + C, k = l.value.height - i.value.bottom - 4 - C, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), O = (k - m) / e.value.style.chart.layout.curveAngleX;
123
- t.push({
124
- x1: h,
125
- x2: y,
126
- y1: m,
127
- y2: k,
128
- curve: `M ${h} ${m} C ${h + x} ${m + O}, ${y + x} ${k - O}, ${y} ${k}`,
129
- color: o
130
- });
131
- }
132
- }
133
- return t;
134
- }), $ = d(() => {
135
- let t, n, a;
136
- const o = e.value.style.chart.percentage.fontSize / 3;
137
- return _.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, n = i.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, n = l.value.height - i.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, n = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - i.value.right + 8, n = l.value.height / 2 + o, a = "start"), {
138
- x: t,
139
- y: n,
140
- textAnchor: a,
141
- bold: e.value.style.chart.percentage.bold,
142
- fontSize: e.value.style.chart.percentage.fontSize,
143
- fill: e.value.style.chart.percentage.color
144
- };
145
- }), I = b(!1);
146
- function ee(t) {
147
- I.value = t, j.value += 1;
148
- }
149
- const F = b(!1);
150
- function E() {
151
- F.value = !F.value;
152
- }
153
- async function ge({ scale: t = 2 } = {}) {
154
- if (!w.value) return;
155
- const { width: n, height: a } = w.value.getBoundingClientRect(), o = n / a, { imageUri: C, base64: h } = await Ne({ domElement: w.value, base64: !0, img: !0, scale: t });
156
- return {
157
- imageUri: C,
158
- base64: h,
159
- title: e.value.style.chart.title.text,
160
- width: n,
161
- height: a,
162
- aspectRatio: o
163
- };
164
- }
165
- return re({
166
- getImage: ge,
167
- generatePdf: J,
168
- generateImage: K,
169
- toggleAnnotator: E,
170
- toggleFullscreen: ee
171
- }), (t, n) => (r(), c("div", {
172
- ref_key: "tiremarksChart",
173
- ref: w,
174
- class: L(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
175
- style: G(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
176
- id: U.value,
177
- onMouseenter: n[0] || (n[0] = () => s(X)(!0)),
178
- onMouseleave: n[1] || (n[1] = () => s(X)(!1))
179
- }, [
180
- e.value.userOptions.buttons.annotator ? (r(), z(s(ue), {
181
- key: 0,
182
- svgRef: s(H),
183
- backgroundColor: e.value.style.chart.backgroundColor,
184
- color: e.value.style.chart.color,
185
- active: F.value,
186
- onClose: E
187
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
188
- fe.value ? (r(), c("div", {
189
- key: 1,
190
- ref_key: "noTitle",
191
- ref: de,
192
- class: "vue-data-ui-no-title-space",
193
- style: "height:36px; width: 100%;background:transparent"
194
- }, null, 512)) : f("", !0),
195
- e.value.style.chart.title.text ? (r(), c("div", Ue, [
196
- (r(), z(ze, {
197
- key: `title_${B.value}`,
198
- config: {
199
- title: {
200
- cy: "wheel-title",
201
- ...e.value.style.chart.title
202
- },
203
- subtitle: {
204
- cy: "wheel-subtitle",
205
- ...e.value.style.chart.title.subtitle
206
- }
207
- }
208
- }, null, 8, ["config"]))
209
- ])) : f("", !0),
210
- e.value.userOptions.show && T.value && (s(D) || s(R)) ? (r(), z(s(ce), {
211
- ref: "details",
212
- key: `user_options_${j.value}`,
213
- backgroundColor: e.value.style.chart.backgroundColor,
214
- color: e.value.style.chart.color,
215
- isPrinting: s(Y),
216
- isImaging: s(q),
217
- uid: U.value,
218
- hasPdf: e.value.userOptions.buttons.pdf,
219
- hasImg: e.value.userOptions.buttons.img,
220
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
221
- hasXls: !1,
222
- isFullscreen: I.value,
223
- titles: { ...e.value.userOptions.buttonTitles },
224
- chartElement: w.value,
225
- position: e.value.userOptions.position,
226
- hasAnnotator: e.value.userOptions.buttons.annotator,
227
- isAnnotation: F.value,
228
- callbacks: e.value.userOptions.callbacks,
229
- printScale: e.value.userOptions.print.scale,
230
- onToggleFullscreen: ee,
231
- onGeneratePdf: s(J),
232
- onGenerateImage: s(K),
233
- onToggleAnnotator: E,
234
- style: G({
235
- visibility: s(D) ? s(R) ? "visible" : "hidden" : "visible"
236
- })
237
- }, ye({ _: 2 }, [
238
- t.$slots.menuIcon ? {
239
- name: "menuIcon",
240
- fn: P(({ isOpen: a, color: o }) => [
241
- p(t.$slots, "menuIcon", N(M({ isOpen: a, color: o })), void 0, !0)
242
- ]),
243
- key: "0"
244
- } : void 0,
245
- t.$slots.optionPdf ? {
246
- name: "optionPdf",
247
- fn: P(() => [
248
- p(t.$slots, "optionPdf", {}, void 0, !0)
249
- ]),
250
- key: "1"
251
- } : void 0,
252
- t.$slots.optionImg ? {
253
- name: "optionImg",
254
- fn: P(() => [
255
- p(t.$slots, "optionImg", {}, void 0, !0)
256
- ]),
257
- key: "2"
258
- } : void 0,
259
- t.$slots.optionFullscreen ? {
260
- name: "optionFullscreen",
261
- fn: P(({ toggleFullscreen: a, isFullscreen: o }) => [
262
- p(t.$slots, "optionFullscreen", N(M({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
263
- ]),
264
- key: "3"
265
- } : void 0,
266
- t.$slots.optionAnnotator ? {
267
- name: "optionAnnotator",
268
- fn: P(({ toggleAnnotator: a, isAnnotator: o }) => [
269
- p(t.$slots, "optionAnnotator", N(M({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
270
- ]),
271
- key: "4"
272
- } : void 0
273
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
274
- T.value ? (r(), c("svg", {
275
- key: 4,
276
- ref_key: "svgRef",
277
- ref: H,
278
- xmlns: s(Oe),
279
- class: L({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
280
- viewBox: `0 0 ${l.value.width} ${l.value.height}`,
281
- style: G(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
282
- }, [
283
- me(s(ve)),
284
- t.$slots["chart-background"] ? (r(), c("foreignObject", {
285
- key: 0,
286
- x: 0,
287
- y: 0,
288
- width: l.value.width,
289
- height: l.value.height,
290
- style: {
291
- pointerEvents: "none"
292
- }
293
- }, [
294
- p(t.$slots, "chart-background", {}, void 0, !0)
295
- ], 8, Ee)) : f("", !0),
296
- e.value.style.chart.layout.curved ? (r(), c("g", Ge, [
297
- (r(!0), c(ae, null, oe(Z.value, (a, o) => (r(), c("path", {
298
- d: a.curve,
299
- "stroke-width": v.value.mark,
300
- stroke: u.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
301
- "stroke-linecap": "round",
302
- fill: "none",
303
- class: L({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= u.value })
304
- }, null, 10, Le))), 256))
305
- ])) : (r(), c("g", je, [
306
- (r(!0), c(ae, null, oe(Z.value, (a, o) => (r(), c("line", {
307
- x1: a.x1,
308
- y1: a.y1,
309
- x2: a.x2,
310
- y2: a.y2,
311
- "stroke-width": v.value.mark,
312
- stroke: u.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
313
- "stroke-linecap": "round"
314
- }, null, 8, Be))), 256))
315
- ])),
316
- e.value.style.chart.percentage.show ? (r(), c("text", {
317
- key: 3,
318
- x: $.value.x,
319
- y: $.value.y,
320
- "font-size": $.value.fontSize,
321
- fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? s(se)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
322
- "font-weight": $.value.bold ? "bold" : "normal",
323
- "text-anchor": $.value.textAnchor
324
- }, ke(s(Pe)(
325
- e.value.style.chart.percentage.formatter,
326
- u.value,
327
- s(Ae)({
328
- v: u.value,
329
- s: "%",
330
- r: e.value.style.chart.percentage.rounding
331
- })
332
- )), 9, Xe)) : f("", !0),
333
- p(t.$slots, "svg", { svg: l.value }, void 0, !0)
334
- ], 14, Re)) : f("", !0),
335
- t.$slots.watermark ? (r(), c("div", De, [
336
- p(t.$slots, "watermark", N(M({ isPrinting: s(Y) || s(q) })), void 0, !0)
337
- ])) : f("", !0),
338
- t.$slots.source ? (r(), c("div", He, [
339
- p(t.$slots, "source", {}, void 0, !0)
340
- ], 512)) : f("", !0),
341
- T.value ? f("", !0) : (r(), z(s(ie), {
342
- key: 7,
343
- config: {
344
- type: "tiremarks",
345
- style: {
346
- backgroundColor: e.value.style.chart.backgroundColor,
347
- tiremarks: {
348
- color: "#CCCCCC"
349
- }
350
- }
351
- }
352
- }, null, 8, ["config"]))
353
- ], 46, Te));
354
- }
355
- }, at = /* @__PURE__ */ Me(Ve, [["__scopeId", "data-v-f25a17b8"]]);
356
- export {
357
- at as default
358
- };