vue-data-ui 3.0.0-next.50 → 3.0.0-next.51

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-Z9jhaVP0.js → Arrow-BMGju2_w.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CXFM6lrb.js → BaseDraggableDialog-ttBbgyGA.js} +2 -2
  3. package/dist/{BaseIcon-D3lVmh4q.js → BaseIcon-DBAQZ9vX.js} +1 -1
  4. package/dist/{ColorPicker-CZydWpxG.js → ColorPicker-BzrG0PPC.js} +2 -2
  5. package/dist/{DataTable-DBPMgoC3.js → DataTable-CdD7tKpP.js} +2 -2
  6. package/dist/{Legend-Dj4hW4ih.js → Legend-BwFrIr1T.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-JPMlKVW3.js → NonSvgPenAndPaper-7fQv8_3z.js} +3 -3
  8. package/dist/{PackageVersion-_JpUHIQF.js → PackageVersion-DQcP7Cwd.js} +1 -1
  9. package/dist/{PenAndPaper-CiXy6ifX.js → PenAndPaper-Bf9A4qL1.js} +3 -3
  10. package/dist/{Shape-BLUp5WPA.js → Shape-DOpTDQGX.js} +1 -1
  11. package/dist/{Slicer-QbudvRet.js → Slicer-CU5E8-Ee.js} +2 -2
  12. package/dist/{SparkTooltip-Nh3_vlzT.js → SparkTooltip-DlMDmeF6.js} +1 -1
  13. package/dist/{Title-CxOYqn0J.js → Title-3ACEciQv.js} +1 -1
  14. package/dist/{Tooltip-CzRs24i2.js → Tooltip-D4AvFVyr.js} +1 -1
  15. package/dist/{UserOptions-RZkXTOCa.js → UserOptions-oB62jZT7.js} +2 -2
  16. package/dist/{dom-to-png-CV2fR0EQ.js → dom-to-png-DYbPVI5z.js} +1 -1
  17. package/dist/{img-B7ogJ4e0.js → img-Ck7tqm17.js} +1 -1
  18. package/dist/{index-CJ_8wwwn.js → index-DJKz3EWJ.js} +5 -1
  19. package/dist/{pdf-set5F9CM.js → pdf-p5i09caM.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +2 -0
  22. package/dist/types/vue-data-ui.d.ts +2 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CyuM0n69.js → useAutoSizeLabelsInsideViewbox-Cz_aX3xn.js} +1 -1
  24. package/dist/{useNestedProp-Co3NIfJz.js → useNestedProp-DoTKbeYP.js} +1 -1
  25. package/dist/{usePrinter-Djgu-cC0.js → usePrinter-Iy7FxhyL.js} +2 -2
  26. package/dist/{vue-data-ui-HYXpyDKV.js → vue-data-ui-qsd4viNh.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CT_YtMoO.js → vue-ui-3d-bar-B4Yzjkm9.js} +6 -6
  29. package/dist/{vue-ui-accordion-3yBUN0ar.js → vue-ui-accordion-C0GWT8Ql.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-FUsbvtyA.js → vue-ui-age-pyramid-CpM6j4zn.js} +6 -6
  31. package/dist/{vue-ui-annotator-C4Z-9ldl.js → vue-ui-annotator-BiMqF0-h.js} +2 -2
  32. package/dist/{vue-ui-bullet-B1ALDthr.js → vue-ui-bullet-Ceut2XIO.js} +7 -7
  33. package/dist/{vue-ui-candlestick-BuD3f7_o.js → vue-ui-candlestick-BuTIRR3U.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-Dm_FdAF0.js → vue-ui-carousel-table-Ci_1ZoKD.js} +4 -4
  35. package/dist/{vue-ui-chestnut-WTwQvrY9.js → vue-ui-chestnut-Cuf0fg9v.js} +5 -5
  36. package/dist/{vue-ui-chord-CPVmSnYG.js → vue-ui-chord-BVRIWOiZ.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-Bc8bJtl0.js → vue-ui-circle-pack-BR5cI0BK.js} +6 -6
  38. package/dist/{vue-ui-cursor-DfZVsgB6.js → vue-ui-cursor-DoIpdlLl.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BP5AhItc.js → vue-ui-dashboard-BjBuMTeM.js} +62 -62
  40. package/dist/{vue-ui-digits-FvXrM2xK.js → vue-ui-digits-C_JqOPx0.js} +2 -2
  41. package/dist/{vue-ui-donut-3JmvHI0A.js → vue-ui-donut-DXUQ0UP0.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-DiBD970y.js → vue-ui-donut-evolution-BR6Xdy54.js} +8 -8
  43. package/dist/{vue-ui-dumbbell-BiD393o3.js → vue-ui-dumbbell-_JfspQwX.js} +7 -7
  44. package/dist/{vue-ui-flow-DbdQR23z.js → vue-ui-flow-BEnIvnRQ.js} +7 -7
  45. package/dist/{vue-ui-funnel-DByaDRM7.js → vue-ui-funnel-CyuziHMi.js} +6 -6
  46. package/dist/{vue-ui-galaxy-C4Al6xQj.js → vue-ui-galaxy-DcWvmZ6n.js} +5 -5
  47. package/dist/{vue-ui-gauge-DjUtEfNU.js → vue-ui-gauge-oN1N7b28.js} +7 -7
  48. package/dist/{vue-ui-gizmo-CzrxRz6L.js → vue-ui-gizmo-Mqwbrfln.js} +3 -3
  49. package/dist/{vue-ui-heatmap-HVYUxTOT.js → vue-ui-heatmap-Dhjk-00-.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DXSpSL4A.js → vue-ui-history-plot-BSJQ35vE.js} +7 -7
  51. package/dist/{vue-ui-kpi-DU8bOzeM.js → vue-ui-kpi-D0rfVSKA.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-E4KhKAQz.js → vue-ui-mini-loader-Jp6LdxDx.js} +2 -2
  53. package/dist/{vue-ui-molecule-DrFrNbBj.js → vue-ui-molecule-CSXuV9bG.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Cf_2QCYC.js → vue-ui-mood-radar-im8oGB8C.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-BnA1KtIt.js → vue-ui-nested-donuts-DnLmjykV.js} +9 -9
  56. package/dist/{vue-ui-onion-B84CPvyH.js → vue-ui-onion-Bk4zJ_9o.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-D4Ct2cvP.js → vue-ui-parallel-coordinate-plot-C2595LWs.js} +8 -8
  58. package/dist/{vue-ui-quadrant-8ksd3FSu.js → vue-ui-quadrant-BmJdsTsT.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-BY8Kd1LO.js → vue-ui-quick-chart-D9TOJnI3.js} +6 -6
  60. package/dist/{vue-ui-radar-BUQaHh0L.js → vue-ui-radar-DTm1lF8I.js} +7 -7
  61. package/dist/{vue-ui-rating-Cn1_Hn2b.js → vue-ui-rating-BdMFk64J.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-DPKDfjYx.js → vue-ui-relation-circle-CPJ8D3Kg.js} +6 -6
  63. package/dist/{vue-ui-ridgeline-zvRHpo_N.js → vue-ui-ridgeline-C4mCCqFj.js} +8 -8
  64. package/dist/{vue-ui-rings-Tw1dHWHH.js → vue-ui-rings-CAXGp0RS.js} +8 -8
  65. package/dist/{vue-ui-scatter-8LZZMVhD.js → vue-ui-scatter-DgFXq8bL.js} +8 -8
  66. package/dist/{vue-ui-skeleton-DVxUvega.js → vue-ui-skeleton-B-rmcfy0.js} +3 -3
  67. package/dist/{vue-ui-smiley-DJTTUjT_.js → vue-ui-smiley-r_P2OEcO.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-Dsku4oGR.js → vue-ui-spark-trend-DQDvNfRA.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-Br_fLEOr.js → vue-ui-sparkbar-68lw7dCX.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DSBJsCu3.js → vue-ui-sparkgauge-BymOwBcd.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-BX6SXzWN.js → vue-ui-sparkhistogram-q1Yk5jCv.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DgVH0bCY.js → vue-ui-sparkline-D8DYc1V7.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-D-KbMYmo.js → vue-ui-sparkstackbar-DOGkUFjJ.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DWOm3J6d.js → vue-ui-stackbar-7Xj5uhuM.js} +9 -9
  75. package/dist/{vue-ui-strip-plot-Bi4PWqJG.js → vue-ui-strip-plot-CAnsn0VI.js} +7 -7
  76. package/dist/{vue-ui-table-Ac5mvoTX.js → vue-ui-table-D3CUOPTQ.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DtN-NEea.js → vue-ui-table-heatmap-BZVJgTWg.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-Dm9VtfGM.js → vue-ui-table-sparkline-Du1BvydE.js} +4 -4
  79. package/dist/{vue-ui-thermometer-CKzsQxea.js → vue-ui-thermometer-CcRtjSqY.js} +6 -6
  80. package/dist/{vue-ui-timer-CRuQHU_f.js → vue-ui-timer-DacMmmiu.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-0mS5yMkd.js → vue-ui-tiremarks-BtYB3Ynv.js} +7 -7
  82. package/dist/{vue-ui-treemap-BkU919fN.js → vue-ui-treemap-ZpdTWlqY.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-ByPC7JmK.js → vue-ui-vertical-bar-BTk4W7w-.js} +9 -9
  84. package/dist/{vue-ui-waffle-GWXnMKeQ.js → vue-ui-waffle-Fa9tb_rV.js} +8 -8
  85. package/dist/vue-ui-wheel-4Z4eLQhc.js +379 -0
  86. package/dist/{vue-ui-word-cloud-Cc5c_8Z1.js → vue-ui-word-cloud-DoaJFhqN.js} +6 -6
  87. package/dist/{vue-ui-world-B1zbPwk3.js → vue-ui-world-Dz9YUEEG.js} +6 -6
  88. package/dist/{vue-ui-xy-D7Sx_bPF.js → vue-ui-xy-D5RVw5D0.js} +11 -11
  89. package/dist/{vue-ui-xy-canvas-sA_OEIMw.js → vue-ui-xy-canvas-DzDX5ysJ.js} +8 -8
  90. package/package.json +1 -1
  91. package/dist/vue-ui-wheel-PP-IY2XR.js +0 -352
@@ -1,16 +1,16 @@
1
1
  import { useCssVars as Ja, computed as y, ref as p, onMounted as Lt, onBeforeUnmount as nt, watch as sl, nextTick as ql, onUpdated as Ka, createElementBlock as s, openBlock as u, createElementVNode as m, createCommentVNode as h, renderSlot as K, normalizeStyle as $, createVNode as Ul, withDirectives as Bt, unref as v, Fragment as f, renderList as L, normalizeClass as Re, vModelText as ba, toDisplayString as ae, defineAsyncComponent as yl, useSlots as Qa, getCurrentInstance as ja, toRefs as eo, watchEffect as lo, createBlock as Ke, createSlots as to, withCtx as pe, normalizeProps as vl, guardReactiveProps as kl, mergeProps as kt, vModelCheckbox as ao, createTextVNode as oo } from "vue";
2
- import { c as _t, W as Mt, V as At, X as uo, F as je, u as io, e as Vt, v as so, a5 as ul, b as no, D as st, ac as Nl, d as ro, p as co, ad as wt, aa as Y, ae as vo, w as V, af as pa, ag as ya, ah as ho, ai as ka, aj as wa, i as we, y as fo, z as go, $ as Sa, R as il, f as De, x as Rl, s as Qe, a8 as ee, L as mo, ak as St, I as xo, al as wl, C as Xe, t as bo, a as po, o as $a, q as yo, r as ko, E as Gl } from "./index-CJ_8wwwn.js";
2
+ import { c as _t, W as Mt, V as At, X as uo, F as je, u as io, e as Vt, v as so, a5 as ul, b as no, D as st, ac as Nl, d as ro, p as co, ad as wt, aa as Y, ae as vo, w as V, af as pa, ag as ya, ah as ho, ai as ka, aj as wa, i as we, y as fo, z as go, $ as Sa, R as il, f as De, x as Rl, s as Qe, a8 as ee, L as mo, ak as St, I as xo, al as wl, C as Xe, t as bo, a as po, o as $a, q as yo, r as ko, E as Gl } from "./index-DJKz3EWJ.js";
3
3
  import { t as Ft, u as wo } from "./useResponsive-DfdjqQps.js";
4
- import { u as So } from "./usePrinter-Djgu-cC0.js";
4
+ import { u as So } from "./usePrinter-Iy7FxhyL.js";
5
5
  import { u as $o, B as _o } from "./BaseScanner-DIK2NTdp.js";
6
- import { u as Et } from "./useNestedProp-Co3NIfJz.js";
6
+ import { u as Et } from "./useNestedProp-DoTKbeYP.js";
7
7
  import { u as _a } from "./useTimeLabels-DkzmKfZn.js";
8
8
  import { u as Lo } from "./useTimeLabelCollider-CIsgDrl9.js";
9
- import Mo from "./img-B7ogJ4e0.js";
10
- import Ao from "./Title-CxOYqn0J.js";
11
- import { S as Co } from "./Slicer-QbudvRet.js";
12
- import { _ as $t } from "./Shape-BLUp5WPA.js";
13
- import zo from "./BaseIcon-D3lVmh4q.js";
9
+ import Mo from "./img-Ck7tqm17.js";
10
+ import Ao from "./Title-3ACEciQv.js";
11
+ import { S as Co } from "./Slicer-CU5E8-Ee.js";
12
+ import { _ as $t } from "./Shape-DOpTDQGX.js";
13
+ import zo from "./BaseIcon-DBAQZ9vX.js";
14
14
  import { _ as La } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const To = {
16
16
  class: "vue-data-ui-slicer-labels",
@@ -709,7 +709,7 @@ const To = {
709
709
  },
710
710
  emits: ["selectTimeLabel", "selectX", "selectLegend"],
711
711
  setup(C, { expose: Ct, emit: zt }) {
712
- const d = C, Pe = yl(() => import("./DataTable-DBPMgoC3.js")), ie = yl(() => import("./Tooltip-CzRs24i2.js")), re = yl(() => import("./UserOptions-RZkXTOCa.js")), Sl = yl(() => import("./BaseIcon-D3lVmh4q.js")), Zl = yl(() => import("./vue-ui-table-sparkline-Dm9VtfGM.js")), Pl = yl(() => import("./vue-ui-accordion-3yBUN0ar.js")), $l = yl(() => import("./PackageVersion-_JpUHIQF.js")), _l = yl(() => import("./PenAndPaper-CiXy6ifX.js")), dl = zt, Jl = Qa(), Kl = ja(), { vue_ui_xy: Ql } = io(), fe = p(null), ye = p(null), ze = p(null), el = p(null), Ll = p(null), Ml = p(null), Tt = p(null), He = p(null), Hl = p(null), nl = p(null), Al = p(null), D = p(null), ll = p(null), ge = p(0), M = p(null), Ve = p(!0), se = p(600), ne = p(1e3), Vl = p("0 0 1000 600"), Cl = p({ x: 0, y: 0 }), Ge = p({ line: "line", bar: "bar", plot: "plot" }), hl = p(!1), rl = p(!1), El = p(!1), Te = p(null), oe = p([]), Q = p(_t()), rt = p(0), ct = p(0), jl = p(0), Me = p(!0), Ee = p(0), O = p(null), Ue = p(!1), Bl = p(!0), Fl = p(!0), Se = p(null), Be = p({}), Wl = p(null), S = p(null), vt = y(() => ({
712
+ const d = C, Pe = yl(() => import("./DataTable-CdD7tKpP.js")), ie = yl(() => import("./Tooltip-D4AvFVyr.js")), re = yl(() => import("./UserOptions-oB62jZT7.js")), Sl = yl(() => import("./BaseIcon-DBAQZ9vX.js")), Zl = yl(() => import("./vue-ui-table-sparkline-Du1BvydE.js")), Pl = yl(() => import("./vue-ui-accordion-C0GWT8Ql.js")), $l = yl(() => import("./PackageVersion-DQcP7Cwd.js")), _l = yl(() => import("./PenAndPaper-Bf9A4qL1.js")), dl = zt, Jl = Qa(), Kl = ja(), { vue_ui_xy: Ql } = io(), fe = p(null), ye = p(null), ze = p(null), el = p(null), Ll = p(null), Ml = p(null), Tt = p(null), He = p(null), Hl = p(null), nl = p(null), Al = p(null), D = p(null), ll = p(null), ge = p(0), M = p(null), Ve = p(!0), se = p(600), ne = p(1e3), Vl = p("0 0 1000 600"), Cl = p({ x: 0, y: 0 }), Ge = p({ line: "line", bar: "bar", plot: "plot" }), hl = p(!1), rl = p(!1), El = p(!1), Te = p(null), oe = p([]), Q = p(_t()), rt = p(0), ct = p(0), jl = p(0), Me = p(!0), Ee = p(0), O = p(null), Ue = p(!1), Bl = p(!0), Fl = p(!0), Se = p(null), Be = p({}), Wl = p(null), S = p(null), vt = y(() => ({
713
713
  height: se.value,
714
714
  width: ne.value
715
715
  })), fl = d.config.downsample && d.config.downsample.threshold ? d.config.downsample.threshold : 500, b = p({
@@ -1244,7 +1244,7 @@ const To = {
1244
1244
  }), Ua = y(() => {
1245
1245
  const t = cl.value.filter((c) => c.type === "bar").filter((c) => !oe.value.includes(c.id)).length;
1246
1246
  return r.value.width / _.value / t - xt.value * t;
1247
- }), xt = y(() => ue.value.line * e.value.bar.periodGap), bt = y(() => Math.max(1e-5, Dl() - (b.value.useIndividualScale && b.value.isStacked ? 0 : xt.value))), pt = y(() => bt.value * e.value.bar.innerGap), ua = y(() => {
1247
+ }), xt = y(() => ue.value.line * e.value.bar.periodGap), bt = y(() => Math.max(1e-5, Dl() - (b.value.useIndividualScale && b.value.isStacked ? 0 : xt.value))), pt = y(() => bt.value * Math.min(Math.abs(e.value.bar.innerGap), 0.95)), ua = y(() => {
1248
1248
  if (!e.value.chart.zoom.minimap.show) return [];
1249
1249
  const t = Da.value.filter((a) => !oe.value.includes(a.id)), c = Math.max(...t.map((a) => a.series.length)), l = [];
1250
1250
  for (let a = 0; a < c; a += 1)
@@ -3754,7 +3754,7 @@ const To = {
3754
3754
  v(xe) ? (u(), Ke(_o, { key: 11 })) : h("", !0)
3755
3755
  ], 46, Qo));
3756
3756
  }
3757
- }, Ds = /* @__PURE__ */ La(Cs, [["__scopeId", "data-v-95dc1cf2"]]);
3757
+ }, Ds = /* @__PURE__ */ La(Cs, [["__scopeId", "data-v-55fc9962"]]);
3758
3758
  export {
3759
3759
  Ds as default
3760
3760
  };
@@ -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-CJ_8wwwn.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-DJKz3EWJ.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-Co3NIfJz.js";
5
- import { u as gl } from "./usePrinter-Djgu-cC0.js";
4
+ import { u as ha } from "./useNestedProp-DoTKbeYP.js";
5
+ import { u as gl } from "./usePrinter-Iy7FxhyL.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-Dj4hW4ih.js";
9
- import xl from "./Title-CxOYqn0J.js";
10
- import { S as Ll } from "./Slicer-QbudvRet.js";
8
+ import bl from "./Legend-BwFrIr1T.js";
9
+ import xl from "./Title-3ACEciQv.js";
10
+ import { S as Ll } from "./Slicer-CU5E8-Ee.js";
11
11
  import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
12
- import Cl from "./img-B7ogJ4e0.js";
12
+ import Cl from "./img-Ck7tqm17.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-3yBUN0ar.js")), pa = K(() => import("./DataTable-DBPMgoC3.js")), ma = K(() => import("./NonSvgPenAndPaper-JPMlKVW3.js")), ba = K(() => import("./vue-ui-skeleton-DVxUvega.js")), xa = K(() => import("./Tooltip-CzRs24i2.js")), La = K(() => import("./UserOptions-RZkXTOCa.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-C0GWT8Ql.js")), pa = K(() => import("./DataTable-CdD7tKpP.js")), ma = K(() => import("./NonSvgPenAndPaper-7fQv8_3z.js")), ba = K(() => import("./vue-ui-skeleton-B-rmcfy0.js")), xa = K(() => import("./Tooltip-D4AvFVyr.js")), La = K(() => import("./UserOptions-oB62jZT7.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.50",
4
+ "version": "3.0.0-next.51",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,352 +0,0 @@
1
- import { defineAsyncComponent as $, computed as p, ref as c, watch as te, shallowRef as ae, onMounted as we, onBeforeUnmount as be, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as N, createBlock as I, createCommentVNode as h, createSlots as Ce, withCtx as w, renderSlot as y, normalizeProps as _, guardReactiveProps as x, normalizeClass as R, createVNode as Oe, Fragment as le, renderList as ne, toDisplayString as $e } from "vue";
2
- import { u as Ie, c as _e, a as xe, o as Ae, e as Pe, x as oe, m as Fe, X as Se, i as ze, w as se, f as Me } from "./index-CJ_8wwwn.js";
3
- import { t as Te, u as Ne } from "./useResponsive-DfdjqQps.js";
4
- import { u as ue } from "./useNestedProp-Co3NIfJz.js";
5
- import { u as Re } from "./usePrinter-Djgu-cC0.js";
6
- import { u as Ue } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Ee } from "./useChartAccessibility-9icAAmYg.js";
8
- import Xe from "./Title-CxOYqn0J.js";
9
- import Be from "./img-B7ogJ4e0.js";
10
- import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Ge = ["id"], je = ["xmlns", "viewBox"], De = ["width", "height"], Ye = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], He = ["d", "fill"], We = ["cx", "cy", "r", "stroke", "stroke-width"], qe = ["x", "y", "font-size", "fill", "font-weight"], Ve = {
12
- key: 5,
13
- class: "vue-data-ui-watermark"
14
- }, Je = {
15
- __name: "vue-ui-wheel",
16
- props: {
17
- config: {
18
- type: Object,
19
- default() {
20
- return {};
21
- }
22
- },
23
- dataset: {
24
- type: Object,
25
- default() {
26
- return {};
27
- }
28
- }
29
- },
30
- setup(re, { expose: ie }) {
31
- const ce = $(() => import("./PenAndPaper-CiXy6ifX.js")), ve = $(() => import("./vue-ui-skeleton-DVxUvega.js")), he = $(() => import("./UserOptions-RZkXTOCa.js")), de = $(() => import("./PackageVersion-_JpUHIQF.js")), { vue_ui_wheel: ye } = Ie(), d = re, A = p(() => !!d.dataset && Object.keys(d.dataset).length), P = c(_e()), fe = c(null), U = c(0), g = c(null), E = c(null), X = c(null), B = c(null), L = c(0), e = p({
32
- get: () => Y(),
33
- set: (t) => t
34
- }), { userOptionsVisible: F, setUserOptionsVisibility: G, keepUserOptionState: j } = Ue({ config: e.value }), { svgRef: D } = Ee({ config: e.value.style.chart.title });
35
- function Y() {
36
- const t = ue({
37
- userConfig: d.config,
38
- defaultConfig: ye
39
- });
40
- return t.theme ? {
41
- ...ue({
42
- userConfig: xe.vue_ui_wheel[t.theme] || d.config,
43
- defaultConfig: t
44
- })
45
- } : t;
46
- }
47
- te(() => d.config, (t) => {
48
- e.value = Y(), F.value = !e.value.userOptions.showOnChartHover, K(), L.value += 1;
49
- }, { deep: !0 });
50
- const { isPrinting: H, isImaging: W, generatePdf: q, generateImage: V } = Re({
51
- elementId: P.value,
52
- fileName: e.value.style.chart.title.text || "vue-ui-wheel",
53
- options: e.value.userOptions.print
54
- }), pe = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), o = c({
55
- size: 360,
56
- height: 360,
57
- width: 360
58
- }), S = c(e.value.style.chart.layout.percentage.fontSize), r = p(() => ({
59
- radius: Math.min(o.value.width, o.value.height) * 0.9 / 2,
60
- centerX: o.value.width / 2,
61
- centerY: o.value.height / 2
62
- }));
63
- function J(t, n = 1) {
64
- return {
65
- x: r.value.centerX + r.value.radius * Math.cos(29.85 + t * Math.PI / 180) * n,
66
- y: r.value.centerY + r.value.radius * Math.sin(29.85 + t * Math.PI / 180) * n
67
- };
68
- }
69
- const i = c(e.value.style.chart.animation.use ? 0 : d.dataset.percentage || 0);
70
- te(() => d.dataset, (t) => {
71
- e.value.style.chart.animation.use ? Q(t.percentage) : i.value = t.percentage || 0;
72
- }, { deep: !0 });
73
- const f = ae(null), m = ae(null);
74
- we(() => {
75
- K();
76
- });
77
- function K() {
78
- if (Ae(d.dataset) && Pe({
79
- componentName: "VueUiWheel",
80
- type: "dataset"
81
- }), Q(d.dataset.percentage || 0), e.value.responsive) {
82
- const t = Te(() => {
83
- const { width: n, height: a } = Ne({
84
- chart: g.value,
85
- title: e.value.style.chart.title.text ? E.value : null,
86
- source: X.value,
87
- noTitle: B.value
88
- });
89
- requestAnimationFrame(() => {
90
- o.value.width = n, o.value.height = a, S.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(n, a);
91
- });
92
- });
93
- f.value && (m.value && f.value.unobserve(m.value), f.value.disconnect()), f.value = new ResizeObserver(t), m.value = g.value.parentNode, f.value.observe(m.value);
94
- }
95
- }
96
- be(() => {
97
- f.value && (m.value && f.value.unobserve(m.value), f.value.disconnect());
98
- });
99
- function Q(t) {
100
- let n = e.value.style.chart.animation.speed;
101
- const a = Math.abs(t - i.value) / (n * 120);
102
- function u() {
103
- i.value < t ? i.value = Math.min(i.value + a, t) : i.value > t && (i.value = Math.max(i.value - a, t)), i.value !== t && requestAnimationFrame(u);
104
- }
105
- u();
106
- }
107
- const k = p(() => Math.max(100, e.value.style.chart.layout.wheel.ticks.quantity)), b = p(() => 100 / k.value), Z = p(() => {
108
- const t = [];
109
- for (let n = 0; n < k.value; n += 1) {
110
- const a = i.value > n * b.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: u, y: M } = J(o.value.size / k.value * n), { x: T, y: ke } = J(o.value.size / k.value * n, e.value.style.chart.layout.wheel.ticks.sizeRatio);
111
- t.push({
112
- x1: u,
113
- y1: M,
114
- x2: T,
115
- y2: ke,
116
- color: e.value.style.chart.layout.wheel.ticks.gradient.show ? oe(a, n * b.value / k.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
117
- });
118
- }
119
- return t;
120
- }), ge = p(() => Fe({ series: Z.value.map((t) => ({
121
- name: "",
122
- value: 1,
123
- color: t.color
124
- })) }, r.value.centerX, r.value.centerY, r.value.radius, r.value.radius, 1.99999, 2, 1, 360, 105.25, r.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), C = c(!1);
125
- function ee(t) {
126
- C.value = t, U.value += 1;
127
- }
128
- const O = c(!1);
129
- function z() {
130
- O.value = !O.value;
131
- }
132
- async function me({ scale: t = 2 } = {}) {
133
- if (!g.value) return;
134
- const { width: n, height: a } = g.value.getBoundingClientRect(), u = n / a, { imageUri: M, base64: T } = await Be({ domElement: g.value, base64: !0, img: !0, scale: t });
135
- return {
136
- imageUri: M,
137
- base64: T,
138
- title: e.value.style.chart.title.text,
139
- width: n,
140
- height: a,
141
- aspectRatio: u
142
- };
143
- }
144
- return ie({
145
- getImage: me,
146
- generatePdf: q,
147
- generateImage: V,
148
- toggleAnnotator: z,
149
- toggleFullscreen: ee
150
- }), (t, n) => (s(), v("div", {
151
- class: "vue-ui-wheel",
152
- ref_key: "wheelChart",
153
- ref: g,
154
- id: P.value,
155
- style: N(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
156
- onMouseenter: n[0] || (n[0] = () => l(G)(!0)),
157
- onMouseleave: n[1] || (n[1] = () => l(G)(!1))
158
- }, [
159
- e.value.userOptions.buttons.annotator ? (s(), I(l(ce), {
160
- key: 0,
161
- svgRef: l(D),
162
- backgroundColor: e.value.style.chart.backgroundColor,
163
- color: e.value.style.chart.color,
164
- active: O.value,
165
- onClose: z
166
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
167
- pe.value ? (s(), v("div", {
168
- key: 1,
169
- ref_key: "noTitle",
170
- ref: B,
171
- class: "vue-data-ui-no-title-space",
172
- style: "height:36px; width: 100%;background:transparent"
173
- }, null, 512)) : h("", !0),
174
- e.value.style.chart.title.text ? (s(), v("div", {
175
- key: 2,
176
- ref_key: "chartTitle",
177
- ref: E,
178
- style: "width:100%;background:transparent;padding-bottom:12px"
179
- }, [
180
- (s(), I(Xe, {
181
- key: `title_${L.value}`,
182
- config: {
183
- title: {
184
- cy: "wheel-title",
185
- ...e.value.style.chart.title
186
- },
187
- subtitle: {
188
- cy: "wheel-subtitle",
189
- ...e.value.style.chart.title.subtitle
190
- }
191
- }
192
- }, null, 8, ["config"]))
193
- ], 512)) : h("", !0),
194
- e.value.userOptions.show && A.value && (l(j) || l(F)) ? (s(), I(l(he), {
195
- ref_key: "details",
196
- ref: fe,
197
- key: `user_options_${U.value}`,
198
- backgroundColor: e.value.style.chart.backgroundColor,
199
- color: e.value.style.chart.color,
200
- isPrinting: l(H),
201
- isImaging: l(W),
202
- uid: P.value,
203
- hasPdf: e.value.userOptions.buttons.pdf,
204
- hasImg: e.value.userOptions.buttons.img,
205
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
206
- hasXls: !1,
207
- isFullscreen: C.value,
208
- position: e.value.userOptions.position,
209
- titles: { ...e.value.userOptions.buttonTitles },
210
- hasAnnotator: e.value.userOptions.buttons.annotator,
211
- isAnnotation: O.value,
212
- chartElement: g.value,
213
- callbacks: e.value.userOptions.callbacks,
214
- printScale: e.value.userOptions.print.scale,
215
- onToggleFullscreen: ee,
216
- onGeneratePdf: l(q),
217
- onGenerateImage: l(V),
218
- onToggleAnnotator: z,
219
- style: N({
220
- visibility: l(j) ? l(F) ? "visible" : "hidden" : "visible"
221
- })
222
- }, Ce({ _: 2 }, [
223
- t.$slots.menuIcon ? {
224
- name: "menuIcon",
225
- fn: w(({ isOpen: a, color: u }) => [
226
- y(t.$slots, "menuIcon", _(x({ isOpen: a, color: u })), void 0, !0)
227
- ]),
228
- key: "0"
229
- } : void 0,
230
- t.$slots.optionPdf ? {
231
- name: "optionPdf",
232
- fn: w(() => [
233
- y(t.$slots, "optionPdf", {}, void 0, !0)
234
- ]),
235
- key: "1"
236
- } : void 0,
237
- t.$slots.optionImg ? {
238
- name: "optionImg",
239
- fn: w(() => [
240
- y(t.$slots, "optionImg", {}, void 0, !0)
241
- ]),
242
- key: "2"
243
- } : void 0,
244
- t.$slots.optionFullscreen ? {
245
- name: "optionFullscreen",
246
- fn: w(({ toggleFullscreen: a, isFullscreen: u }) => [
247
- y(t.$slots, "optionFullscreen", _(x({ toggleFullscreen: a, isFullscreen: u })), void 0, !0)
248
- ]),
249
- key: "3"
250
- } : void 0,
251
- t.$slots.optionAnnotator ? {
252
- name: "optionAnnotator",
253
- fn: w(({ toggleAnnotator: a, isAnnotator: u }) => [
254
- y(t.$slots, "optionAnnotator", _(x({ toggleAnnotator: a, isAnnotator: u })), void 0, !0)
255
- ]),
256
- key: "4"
257
- } : void 0
258
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
259
- A.value ? (s(), v("svg", {
260
- key: 4,
261
- ref_key: "svgRef",
262
- ref: D,
263
- xmlns: l(Se),
264
- class: R({ "vue-data-ui-fullscreen--on": C.value, "vue-data-ui-fulscreen--off": !C.value }),
265
- viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
266
- style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
267
- }, [
268
- Oe(l(de)),
269
- t.$slots["chart-background"] ? (s(), v("foreignObject", {
270
- key: 0,
271
- x: 0,
272
- y: 0,
273
- width: o.value.width <= 0 ? 10 : o.value.width,
274
- height: o.value.height <= 0 ? 10 : o.value.height,
275
- style: {
276
- pointerEvents: "none"
277
- }
278
- }, [
279
- y(t.$slots, "chart-background", {}, void 0, !0)
280
- ], 8, De)) : h("", !0),
281
- e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), v(le, { key: 1 }, ne(Z.value, (a, u) => (s(), v("line", {
282
- x1: a.x1,
283
- x2: a.x2,
284
- y1: a.y1,
285
- y2: a.y2,
286
- stroke: a.color,
287
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(o.value.width, o.value.height),
288
- "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
289
- class: R({ "vue-ui-tick-animated": e.value.style.chart.animation.use && u * b.value <= i.value })
290
- }, null, 10, Ye))), 256)) : (s(!0), v(le, { key: 2 }, ne(ge.value, (a, u) => (s(), v("path", {
291
- d: a.arcSlice,
292
- fill: a.color,
293
- class: R({ "vue-ui-tick-animated": e.value.style.chart.animation.use && u * b.value <= i.value })
294
- }, null, 10, He))), 256)),
295
- e.value.style.chart.layout.innerCircle.show ? (s(), v("circle", {
296
- key: 3,
297
- cx: r.value.centerX,
298
- cy: r.value.centerY,
299
- r: r.value.radius * 0.8 <= 0 ? 1e-4 : r.value.radius * 0.8,
300
- stroke: e.value.style.chart.layout.innerCircle.stroke,
301
- "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
302
- fill: "none"
303
- }, null, 8, We)) : h("", !0),
304
- e.value.style.chart.layout.percentage.show ? (s(), v("text", {
305
- key: 4,
306
- x: r.value.centerX,
307
- y: r.value.centerY + S.value / 3,
308
- "font-size": S.value,
309
- fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? l(oe)(e.value.style.chart.layout.wheel.ticks.activeColor, i.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
310
- "text-anchor": "middle",
311
- "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
312
- style: { "font-variant-numeric": "tabluar-nums" }
313
- }, $e(l(ze)(
314
- e.value.style.chart.layout.percentage.formatter,
315
- l(se)(i.value),
316
- l(Me)({
317
- v: l(se)(i.value),
318
- s: "%",
319
- r: e.value.style.chart.layout.percentage.rounding
320
- })
321
- )), 9, qe)) : h("", !0),
322
- y(t.$slots, "svg", { svg: o.value }, void 0, !0)
323
- ], 14, je)) : h("", !0),
324
- t.$slots.watermark ? (s(), v("div", Ve, [
325
- y(t.$slots, "watermark", _(x({ isPrinting: l(H) || l(W) })), void 0, !0)
326
- ])) : h("", !0),
327
- t.$slots.source ? (s(), v("div", {
328
- key: 6,
329
- ref_key: "source",
330
- ref: X,
331
- dir: "auto"
332
- }, [
333
- y(t.$slots, "source", {}, void 0, !0)
334
- ], 512)) : h("", !0),
335
- A.value ? h("", !0) : (s(), I(l(ve), {
336
- key: 7,
337
- config: {
338
- type: "wheel",
339
- style: {
340
- backgroundColor: e.value.style.chart.backgroundColor,
341
- wheel: {
342
- color: "#CCCCCC"
343
- }
344
- }
345
- }
346
- }, null, 8, ["config"]))
347
- ], 44, Ge));
348
- }
349
- }, ut = /* @__PURE__ */ Le(Je, [["__scopeId", "data-v-e7d09662"]]);
350
- export {
351
- ut as default
352
- };