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

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-BMGju2_w.js → Arrow-DCvGxyy8.js} +1 -1
  2. package/dist/{BaseDraggableDialog-ttBbgyGA.js → BaseDraggableDialog-D3_nuD-L.js} +2 -2
  3. package/dist/{BaseIcon-DBAQZ9vX.js → BaseIcon-DS7JPu4C.js} +1 -1
  4. package/dist/{ColorPicker-BzrG0PPC.js → ColorPicker-BhhptCXG.js} +2 -2
  5. package/dist/{DataTable-CdD7tKpP.js → DataTable-BgDT80Ts.js} +2 -2
  6. package/dist/{Legend-BwFrIr1T.js → Legend-Qj7Y95Ag.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-7fQv8_3z.js → NonSvgPenAndPaper-B744FsgV.js} +3 -3
  8. package/dist/{PackageVersion-DQcP7Cwd.js → PackageVersion-BIrL3taE.js} +1 -1
  9. package/dist/{PenAndPaper-Bf9A4qL1.js → PenAndPaper-CGyRnyF7.js} +3 -3
  10. package/dist/{Shape-DOpTDQGX.js → Shape-C4x_rgi6.js} +1 -1
  11. package/dist/{Slicer-CU5E8-Ee.js → Slicer-Dj4S2hJi.js} +2 -2
  12. package/dist/{SparkTooltip-DlMDmeF6.js → SparkTooltip-DhF5i35E.js} +1 -1
  13. package/dist/{Title-3ACEciQv.js → Title-k4QgmSIv.js} +1 -1
  14. package/dist/{Tooltip-D4AvFVyr.js → Tooltip-bNI5fnsQ.js} +1 -1
  15. package/dist/{UserOptions-oB62jZT7.js → UserOptions-DLoccAqI.js} +2 -2
  16. package/dist/{dom-to-png-DYbPVI5z.js → dom-to-png-BqfMQcsl.js} +1 -1
  17. package/dist/{img-Ck7tqm17.js → img-3dhgTl6e.js} +1 -1
  18. package/dist/{index-DJKz3EWJ.js → index-WItD8fls.js} +27 -11
  19. package/dist/{pdf-p5i09caM.js → pdf-Cx4Jim4C.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +11 -1
  22. package/dist/types/vue-data-ui.d.ts +11 -1
  23. package/dist/{useAutoSizeLabelsInsideViewbox-Cz_aX3xn.js → useAutoSizeLabelsInsideViewbox-tevkHMvX.js} +5 -5
  24. package/dist/{useNestedProp-DoTKbeYP.js → useNestedProp-DP91lffT.js} +1 -1
  25. package/dist/{usePrinter-Iy7FxhyL.js → usePrinter-FH6Yncdh.js} +2 -2
  26. package/dist/{vue-data-ui-qsd4viNh.js → vue-data-ui-CKUO_2-m.js} +64 -64
  27. package/dist/vue-data-ui.js +5 -5
  28. package/dist/{vue-ui-3d-bar-B4Yzjkm9.js → vue-ui-3d-bar-B_eMzPJR.js} +6 -6
  29. package/dist/{vue-ui-accordion-C0GWT8Ql.js → vue-ui-accordion-D9Co_5os.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-CpM6j4zn.js → vue-ui-age-pyramid-Dw3dcfPb.js} +6 -6
  31. package/dist/{vue-ui-annotator-BiMqF0-h.js → vue-ui-annotator-JVk8QrB5.js} +2 -2
  32. package/dist/{vue-ui-bullet-Ceut2XIO.js → vue-ui-bullet-tV_NHVBu.js} +7 -7
  33. package/dist/{vue-ui-candlestick-BuTIRR3U.js → vue-ui-candlestick-Ba0SWLiU.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-Ci_1ZoKD.js → vue-ui-carousel-table-DjsLBSdt.js} +4 -4
  35. package/dist/{vue-ui-chestnut-Cuf0fg9v.js → vue-ui-chestnut-D9zkzK8S.js} +5 -5
  36. package/dist/{vue-ui-chord-BVRIWOiZ.js → vue-ui-chord-B-J0QVzk.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-BR5cI0BK.js → vue-ui-circle-pack-BZHauTwv.js} +6 -6
  38. package/dist/{vue-ui-cursor-DoIpdlLl.js → vue-ui-cursor-DmhRqAI1.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BjBuMTeM.js → vue-ui-dashboard-Dh4TYgVP.js} +62 -62
  40. package/dist/{vue-ui-digits-C_JqOPx0.js → vue-ui-digits-B23zwtJD.js} +2 -2
  41. package/dist/{vue-ui-donut-DXUQ0UP0.js → vue-ui-donut-5vgs0mUF.js} +34 -34
  42. package/dist/{vue-ui-donut-evolution-BR6Xdy54.js → vue-ui-donut-evolution-exshwre9.js} +8 -8
  43. package/dist/{vue-ui-dumbbell-_JfspQwX.js → vue-ui-dumbbell-JhhxDg6I.js} +7 -7
  44. package/dist/{vue-ui-flow-BEnIvnRQ.js → vue-ui-flow-GX-WLeuQ.js} +7 -7
  45. package/dist/{vue-ui-funnel-CyuziHMi.js → vue-ui-funnel-CaimnUfB.js} +6 -6
  46. package/dist/{vue-ui-galaxy-DcWvmZ6n.js → vue-ui-galaxy-idDtDYDK.js} +5 -5
  47. package/dist/{vue-ui-gauge-oN1N7b28.js → vue-ui-gauge-Cwss_7-1.js} +7 -7
  48. package/dist/{vue-ui-gizmo-Mqwbrfln.js → vue-ui-gizmo-CkkJ4h9s.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Dhjk-00-.js → vue-ui-heatmap-CXPMj29O.js} +7 -7
  50. package/dist/{vue-ui-history-plot-BSJQ35vE.js → vue-ui-history-plot-L1GCy2eJ.js} +7 -7
  51. package/dist/{vue-ui-kpi-D0rfVSKA.js → vue-ui-kpi-CjjAOZDx.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-Jp6LdxDx.js → vue-ui-mini-loader-BPBBfyiS.js} +2 -2
  53. package/dist/{vue-ui-molecule-CSXuV9bG.js → vue-ui-molecule-BEW8H_qD.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-im8oGB8C.js → vue-ui-mood-radar-K4n-AQcn.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-DnLmjykV.js → vue-ui-nested-donuts-Bb3MRhoJ.js} +9 -9
  56. package/dist/{vue-ui-onion-Bk4zJ_9o.js → vue-ui-onion-CqogsNUq.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-C2595LWs.js → vue-ui-parallel-coordinate-plot-KEkk6DLV.js} +27 -27
  58. package/dist/{vue-ui-quadrant-BmJdsTsT.js → vue-ui-quadrant-gCQ9X1d1.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-D9TOJnI3.js → vue-ui-quick-chart-CjCNsptY.js} +6 -6
  60. package/dist/{vue-ui-radar-DTm1lF8I.js → vue-ui-radar-Ct5QawTb.js} +7 -7
  61. package/dist/{vue-ui-rating-BdMFk64J.js → vue-ui-rating-C2tRPpqi.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CPJ8D3Kg.js → vue-ui-relation-circle-Bc3AzTpb.js} +6 -6
  63. package/dist/{vue-ui-ridgeline-C4mCCqFj.js → vue-ui-ridgeline-BR3szAlR.js} +8 -8
  64. package/dist/{vue-ui-rings-CAXGp0RS.js → vue-ui-rings-CA_IGXZL.js} +8 -8
  65. package/dist/{vue-ui-scatter-DgFXq8bL.js → vue-ui-scatter-CQDBGZg0.js} +41 -41
  66. package/dist/{vue-ui-skeleton-B-rmcfy0.js → vue-ui-skeleton-igJfL5fs.js} +3 -3
  67. package/dist/{vue-ui-smiley-r_P2OEcO.js → vue-ui-smiley-CkGwUGdF.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DQDvNfRA.js → vue-ui-spark-trend-DAJgwsCH.js} +6 -6
  69. package/dist/{vue-ui-sparkbar-68lw7dCX.js → vue-ui-sparkbar-fpx-zSUM.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-BymOwBcd.js → vue-ui-sparkgauge-BnNPSMpN.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-q1Yk5jCv.js → vue-ui-sparkhistogram-IWwfhNJm.js} +4 -4
  72. package/dist/{vue-ui-sparkline-D8DYc1V7.js → vue-ui-sparkline-9JAj9Jya.js} +20 -20
  73. package/dist/{vue-ui-sparkstackbar-DOGkUFjJ.js → vue-ui-sparkstackbar-BGZosNNg.js} +3 -3
  74. package/dist/{vue-ui-stackbar-7Xj5uhuM.js → vue-ui-stackbar-CyQZQpGr.js} +9 -9
  75. package/dist/{vue-ui-strip-plot-CAnsn0VI.js → vue-ui-strip-plot-CJr2qOm8.js} +7 -7
  76. package/dist/{vue-ui-table-heatmap-BZVJgTWg.js → vue-ui-table-heatmap-S9Jnz8kT.js} +5 -5
  77. package/dist/{vue-ui-table-D3CUOPTQ.js → vue-ui-table-rbIrbFT2.js} +3 -3
  78. package/dist/{vue-ui-table-sparkline-Du1BvydE.js → vue-ui-table-sparkline-BNwOXfCN.js} +4 -4
  79. package/dist/vue-ui-thermometer-DdoZ4nMw.js +541 -0
  80. package/dist/{vue-ui-timer-DacMmmiu.js → vue-ui-timer-DQkpHKYn.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BtYB3Ynv.js → vue-ui-tiremarks-Bdys8ZwH.js} +90 -90
  82. package/dist/{vue-ui-treemap-ZpdTWlqY.js → vue-ui-treemap-BBeNdVUy.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-BTk4W7w-.js → vue-ui-vertical-bar-DnmdYB50.js} +9 -9
  84. package/dist/{vue-ui-waffle-Fa9tb_rV.js → vue-ui-waffle-qZfdtYHb.js} +8 -8
  85. package/dist/{vue-ui-wheel-4Z4eLQhc.js → vue-ui-wheel-whcrDoZZ.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-DoaJFhqN.js → vue-ui-word-cloud-DNnEzqxj.js} +6 -6
  87. package/dist/{vue-ui-world-Dz9YUEEG.js → vue-ui-world-DsyBCRAy.js} +6 -6
  88. package/dist/{vue-ui-xy-D5RVw5D0.js → vue-ui-xy-CKmn0Rj4.js} +9 -9
  89. package/dist/{vue-ui-xy-canvas-DzDX5ysJ.js → vue-ui-xy-canvas-BAKpy9mx.js} +8 -8
  90. package/package.json +1 -1
  91. package/dist/vue-ui-thermometer-CcRtjSqY.js +0 -495
@@ -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-DJKz3EWJ.js";
2
+ import { c as _t, V as Mt, U 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-WItD8fls.js";
3
3
  import { t as Ft, u as wo } from "./useResponsive-DfdjqQps.js";
4
- import { u as So } from "./usePrinter-Iy7FxhyL.js";
4
+ import { u as So } from "./usePrinter-FH6Yncdh.js";
5
5
  import { u as $o, B as _o } from "./BaseScanner-DIK2NTdp.js";
6
- import { u as Et } from "./useNestedProp-DoTKbeYP.js";
6
+ import { u as Et } from "./useNestedProp-DP91lffT.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-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";
9
+ import Mo from "./img-3dhgTl6e.js";
10
+ import Ao from "./Title-k4QgmSIv.js";
11
+ import { S as Co } from "./Slicer-Dj4S2hJi.js";
12
+ import { _ as $t } from "./Shape-C4x_rgi6.js";
13
+ import zo from "./BaseIcon-DS7JPu4C.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-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(() => ({
712
+ const d = C, Pe = yl(() => import("./DataTable-BgDT80Ts.js")), ie = yl(() => import("./Tooltip-bNI5fnsQ.js")), re = yl(() => import("./UserOptions-DLoccAqI.js")), Sl = yl(() => import("./BaseIcon-DS7JPu4C.js")), Zl = yl(() => import("./vue-ui-table-sparkline-BNwOXfCN.js")), Pl = yl(() => import("./vue-ui-accordion-D9Co_5os.js")), $l = yl(() => import("./PackageVersion-BIrL3taE.js")), _l = yl(() => import("./PenAndPaper-CGyRnyF7.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({
@@ -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-DJKz3EWJ.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-WItD8fls.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-DoTKbeYP.js";
5
- import { u as gl } from "./usePrinter-Iy7FxhyL.js";
4
+ import { u as ha } from "./useNestedProp-DP91lffT.js";
5
+ import { u as gl } from "./usePrinter-FH6Yncdh.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-BwFrIr1T.js";
9
- import xl from "./Title-3ACEciQv.js";
10
- import { S as Ll } from "./Slicer-CU5E8-Ee.js";
8
+ import bl from "./Legend-Qj7Y95Ag.js";
9
+ import xl from "./Title-k4QgmSIv.js";
10
+ import { S as Ll } from "./Slicer-Dj4S2hJi.js";
11
11
  import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
12
- import Cl from "./img-Ck7tqm17.js";
12
+ import Cl from "./img-3dhgTl6e.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-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();
35
+ const ga = K(() => import("./vue-ui-accordion-D9Co_5os.js")), pa = K(() => import("./DataTable-BgDT80Ts.js")), ma = K(() => import("./NonSvgPenAndPaper-B744FsgV.js")), ba = K(() => import("./vue-ui-skeleton-igJfL5fs.js")), xa = K(() => import("./Tooltip-bNI5fnsQ.js")), La = K(() => import("./UserOptions-DLoccAqI.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.51",
4
+ "version": "3.0.0-next.52",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,495 +0,0 @@
1
- import { useCssVars as $e, computed as d, defineAsyncComponent as A, onMounted as Pe, ref as p, watch as Fe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as oe, normalizeClass as S, createBlock as M, createCommentVNode as c, createSlots as Oe, withCtx as C, renderSlot as f, normalizeProps as U, guardReactiveProps as Y, createVNode as Ie, createElementVNode as v, Fragment as N, renderList as ae, toDisplayString as Ae } from "vue";
2
- import { u as Se, o as Me, e as le, g as Ue, c as Ye, t as Ne, p as $, a as Te, b as Ve, w as g, d as T, X as qe, s as Le, i as Ee, f as Ge } from "./index-DJKz3EWJ.js";
3
- import { u as re } from "./useNestedProp-DoTKbeYP.js";
4
- import { u as We } from "./usePrinter-Iy7FxhyL.js";
5
- import { u as Be } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as Re } from "./useChartAccessibility-9icAAmYg.js";
7
- import je from "./Title-3ACEciQv.js";
8
- import ze from "./img-Ck7tqm17.js";
9
- import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const He = ["id"], Xe = {
11
- key: 1,
12
- ref: "noTitle",
13
- class: "vue-data-ui-no-title-space",
14
- style: "height:36px; width: 100%;background:transparent"
15
- }, Je = {
16
- key: 2,
17
- style: "width:100%"
18
- }, Ke = ["xmlns", "viewBox"], Qe = ["width", "height"], Ze = {
19
- id: "vueUiPill",
20
- clipPathUnits: "objectBoundingBox"
21
- }, et = ["fill"], tt = ["id"], st = ["stop-color"], ot = ["stop-color"], at = ["stop-color"], lt = { "clip-path": "url(#vueUiPill)" }, rt = ["x", "y", "height", "width"], nt = ["x", "y", "height", "width", "fill"], ut = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ct = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ht = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], dt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], vt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], yt = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], ft = ["x1", "x2", "y1", "y2", "stroke-width", "stroke"], gt = ["x", "y", "height", "width"], pt = ["y", "x", "fill", "font-size", "font-weight"], mt = {
22
- key: 5,
23
- class: "vue-data-ui-watermark"
24
- }, kt = {
25
- key: 6,
26
- ref: "source",
27
- dir: "auto"
28
- }, bt = {
29
- __name: "vue-ui-thermometer",
30
- props: {
31
- dataset: {
32
- type: Object,
33
- default() {
34
- return {};
35
- }
36
- },
37
- config: {
38
- type: Object,
39
- default() {
40
- return {};
41
- }
42
- }
43
- },
44
- setup(P, { expose: ne }) {
45
- $e((s) => ({
46
- "7efc96cd": me.value,
47
- "4d37cb61": pe.value,
48
- "295a76e4": ge.value
49
- }));
50
- const ue = A(() => import("./PackageVersion-DQcP7Cwd.js")), ie = A(() => import("./PenAndPaper-Bf9A4qL1.js")), ce = A(() => import("./vue-ui-skeleton-B-rmcfy0.js")), he = A(() => import("./UserOptions-oB62jZT7.js")), { vue_ui_thermometer: de } = Se(), r = P, V = d(() => !!r.dataset && Object.keys(r.dataset).length);
51
- Pe(() => {
52
- B();
53
- });
54
- function B() {
55
- Me(r.dataset) ? le({
56
- componentName: "VueUiThermometer",
57
- type: "dataset"
58
- }) : Ue({
59
- datasetObject: r.dataset,
60
- requiredAttributes: ["value", "from", "to"]
61
- }).forEach((s) => {
62
- le({
63
- componentName: "VueUiThermometer",
64
- type: "datasetAttribute",
65
- property: s
66
- });
67
- });
68
- }
69
- const m = p(Ye()), k = p(null), R = p(0), j = p(0), e = d({
70
- get: () => X(),
71
- set: (s) => s
72
- }), { userOptionsVisible: q, setUserOptionsVisibility: z, keepUserOptionState: D } = Be({ config: e.value }), { svgRef: H } = Re({ config: e.value.style.title });
73
- function X() {
74
- const s = re({
75
- userConfig: r.config,
76
- defaultConfig: de
77
- });
78
- return s.theme ? {
79
- ...re({
80
- userConfig: Te.vue_ui_thermometer[s.theme] || r.config,
81
- defaultConfig: s
82
- }),
83
- customPalette: Ne[s.theme] || $
84
- } : s;
85
- }
86
- Fe(() => r.config, (s) => {
87
- e.value = X(), q.value = !e.value.userOptions.showOnChartHover, B(), j.value += 1;
88
- }, { deep: !0 });
89
- const { isPrinting: J, isImaging: K, generatePdf: Q, generateImage: Z } = We({
90
- elementId: `thermometer__${m.value}`,
91
- fileName: e.value.style.title.text || "vue-ui-thermometer",
92
- options: e.value.userOptions.print
93
- }), ve = d(() => e.value.userOptions.show && !e.value.style.title.text), F = d(() => Ve(e.value.customPalette)), ye = d(() => e.value.style.chart.thermometer.width), y = d(() => r.dataset.steps || 10), h = p({
94
- top: e.value.style.chart.padding.top,
95
- left: e.value.style.chart.padding.left,
96
- right: e.value.style.chart.padding.right,
97
- bottom: e.value.style.chart.padding.bottom
98
- });
99
- function O(s, a, t) {
100
- const n = [], x = ee(s), w = ee(a);
101
- for (let _ = 0; _ < t; _++) {
102
- const xe = L(x.red, w.red, _, t), we = L(x.green, w.green, _, t), _e = L(x.blue, w.blue, _, t), Ce = `#${E(xe)}${E(we)}${E(_e)}`;
103
- n.push(Ce);
104
- }
105
- return n;
106
- }
107
- function ee(s) {
108
- const a = s.slice(1);
109
- return {
110
- red: parseInt(a.slice(0, 2), 16),
111
- green: parseInt(a.slice(2, 4), 16),
112
- blue: parseInt(a.slice(4, 6), 16)
113
- };
114
- }
115
- function L(s, a, t, n) {
116
- return Math.round(s + (a - s) * t / n);
117
- }
118
- function E(s) {
119
- return s.toString(16).padStart(2, "0");
120
- }
121
- const o = d(() => {
122
- const s = ye.value + h.value.left + h.value.right, a = e.value.style.chart.height;
123
- return {
124
- width: s,
125
- left: h.value.left,
126
- right: s - h.value.right,
127
- top: h.value.top,
128
- bottom: a - h.value.bottom,
129
- height: a
130
- };
131
- }), fe = d(() => o.value), G = d(() => {
132
- const s = g(r.dataset.from) < 0 ? Math.abs(g(r.dataset.from)) : g(r.dataset.from), a = g(r.dataset.to) < 0 ? Math.abs(g(r.dataset.to)) : g(r.dataset.to);
133
- let t = 0;
134
- return g(r.dataset.to) > 0 ? t = s + a : s > a ? t = s - a : t = a - s, (1 - (Math.abs(g(r.dataset.from)) + g(r.dataset.value)) / t) * (o.value.height - h.value.top - h.value.bottom);
135
- }), ge = d(() => `${G.value}px`), pe = d(() => `${o.value.height - e.value.style.chart.padding.bottom - h.value.top}px`), me = d(() => `${e.value.style.chart.animation.speedMs}ms`), ke = d(() => {
136
- if (r.dataset.colors) {
137
- if (!r.dataset.colors.from)
138
- return O(F.value[0] || $[0], T(r.dataset.colors.to), y.value || 10);
139
- if (!r.dataset.colors.to)
140
- return O(T(r.dataset.colors.from), F.value[1] || $[1], y.value || 10);
141
- } else
142
- return O(F.value[1] || $[1], F.value[0] || $[0], y.value || 10);
143
- return O(T(r.dataset.colors.from), T(r.dataset.colors.to), y.value || 10);
144
- }), te = d(() => {
145
- const s = [];
146
- let a = 0;
147
- const t = o.value.height - h.value.top - h.value.bottom;
148
- for (let n = 0; n < t - 1; n += t / y.value)
149
- s.push({
150
- x: o.value.left,
151
- y: o.value.top + n,
152
- qYLess: o.value.top + n + t / y.value / 4,
153
- halfY: o.value.top + n + t / y.value / 2,
154
- qYMore: o.value.top + n + t / y.value / 4 * 3,
155
- color: ke.value[a],
156
- height: t / y.value
157
- }), a += 1;
158
- return s;
159
- }), b = p(!1);
160
- function se(s) {
161
- b.value = s, R.value += 1;
162
- }
163
- const I = p(!1);
164
- function W() {
165
- I.value = !I.value;
166
- }
167
- async function be({ scale: s = 2 } = {}) {
168
- if (!k.value) return;
169
- const { width: a, height: t } = k.value.getBoundingClientRect(), n = a / t, { imageUri: x, base64: w } = await ze({ domElement: k.value, base64: !0, img: !0, scale: s });
170
- return {
171
- imageUri: x,
172
- base64: w,
173
- title: e.value.style.title.text,
174
- width: a,
175
- height: t,
176
- aspectRatio: n
177
- };
178
- }
179
- return ne({
180
- getImage: be,
181
- generatePdf: Q,
182
- generateImage: Z,
183
- toggleAnnotator: W,
184
- toggleFullscreen: se
185
- }), (s, a) => (l(), u("div", {
186
- ref_key: "thermoChart",
187
- ref: k,
188
- class: S(`vue-ui-thermometer ${b.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
189
- style: oe(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
190
- id: `thermometer__${m.value}`,
191
- onMouseenter: a[0] || (a[0] = () => i(z)(!0)),
192
- onMouseleave: a[1] || (a[1] = () => i(z)(!1))
193
- }, [
194
- e.value.userOptions.buttons.annotator ? (l(), M(i(ie), {
195
- key: 0,
196
- svgRef: i(H),
197
- backgroundColor: e.value.style.chart.backgroundColor,
198
- color: e.value.style.chart.color,
199
- active: I.value,
200
- onClose: W
201
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
202
- ve.value ? (l(), u("div", Xe, null, 512)) : c("", !0),
203
- e.value.style.title.text ? (l(), u("div", Je, [
204
- (l(), M(je, {
205
- key: `title_${j.value}`,
206
- config: {
207
- title: {
208
- cy: "thermometer-div-title",
209
- ...e.value.style.title
210
- },
211
- subtitle: {
212
- cy: "thermometer-div-subtitle",
213
- ...e.value.style.title.subtitle
214
- }
215
- }
216
- }, null, 8, ["config"]))
217
- ])) : c("", !0),
218
- e.value.userOptions.show && V.value && (i(D) || i(q)) ? (l(), M(i(he), {
219
- ref: "details",
220
- key: `user_options_${R.value}`,
221
- backgroundColor: e.value.style.chart.backgroundColor,
222
- color: e.value.style.chart.color,
223
- isImaging: i(K),
224
- isPrinting: i(J),
225
- uid: m.value,
226
- hasPdf: e.value.userOptions.buttons.pdf,
227
- hasImg: e.value.userOptions.buttons.img,
228
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
229
- hasXls: !1,
230
- isFullscreen: b.value,
231
- titles: { ...e.value.userOptions.buttonTitles },
232
- chartElement: k.value,
233
- position: e.value.userOptions.position,
234
- hasAnnotator: e.value.userOptions.buttons.annotator,
235
- isAnnotation: I.value,
236
- callbacks: e.value.userOptions.callbacks,
237
- printScale: e.value.userOptions.print.scale,
238
- onToggleFullscreen: se,
239
- onGeneratePdf: i(Q),
240
- onGenerateImage: i(Z),
241
- onToggleAnnotator: W,
242
- style: oe({
243
- visibility: i(D) ? i(q) ? "visible" : "hidden" : "visible"
244
- })
245
- }, Oe({ _: 2 }, [
246
- s.$slots.menuIcon ? {
247
- name: "menuIcon",
248
- fn: C(({ isOpen: t, color: n }) => [
249
- f(s.$slots, "menuIcon", U(Y({ isOpen: t, color: n })), void 0, !0)
250
- ]),
251
- key: "0"
252
- } : void 0,
253
- s.$slots.optionPdf ? {
254
- name: "optionPdf",
255
- fn: C(() => [
256
- f(s.$slots, "optionPdf", {}, void 0, !0)
257
- ]),
258
- key: "1"
259
- } : void 0,
260
- s.$slots.optionImg ? {
261
- name: "optionImg",
262
- fn: C(() => [
263
- f(s.$slots, "optionImg", {}, void 0, !0)
264
- ]),
265
- key: "2"
266
- } : void 0,
267
- s.$slots.optionFullscreen ? {
268
- name: "optionFullscreen",
269
- fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [
270
- f(s.$slots, "optionFullscreen", U(Y({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
271
- ]),
272
- key: "3"
273
- } : void 0,
274
- s.$slots.optionAnnotator ? {
275
- name: "optionAnnotator",
276
- fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [
277
- f(s.$slots, "optionAnnotator", U(Y({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
278
- ]),
279
- key: "4"
280
- } : void 0
281
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
282
- V.value ? (l(), u("svg", {
283
- key: 4,
284
- ref_key: "svgRef",
285
- ref: H,
286
- xmlns: i(qe),
287
- class: S({ "vue-data-ui-fullscreen--on": b.value, "vue-data-ui-fulscreen--off": !b.value }),
288
- width: "100%",
289
- viewBox: `0 0 ${o.value.width} ${o.value.height}`,
290
- style: "background:transparent"
291
- }, [
292
- Ie(i(ue)),
293
- s.$slots["chart-background"] ? (l(), u("foreignObject", {
294
- key: 0,
295
- x: 0,
296
- y: 0,
297
- width: o.value.width,
298
- height: o.value.height,
299
- style: {
300
- pointerEvents: "none"
301
- }
302
- }, [
303
- f(s.$slots, "chart-background", {}, void 0, !0)
304
- ], 8, Qe)) : c("", !0),
305
- v("defs", null, [
306
- v("clipPath", Ze, [
307
- v("rect", {
308
- x: "0",
309
- y: "0",
310
- width: "1",
311
- height: "1",
312
- rx: "0.5",
313
- ry: "0.07",
314
- fill: e.value.style.chart.backgroundColor
315
- }, null, 8, et)
316
- ]),
317
- (l(!0), u(N, null, ae(te.value, (t, n) => (l(), u("linearGradient", {
318
- id: `vueUiThermometerGradient_${n}_${m.value}`,
319
- x1: "0%",
320
- y1: "0%",
321
- x2: "100%",
322
- y2: "0%"
323
- }, [
324
- v("stop", {
325
- offset: "0%",
326
- "stop-color": t.color
327
- }, null, 8, st),
328
- v("stop", {
329
- offset: "50%",
330
- "stop-color": i(Le)(t.color, 100 - e.value.style.chart.graduations.gradient.intensity)
331
- }, null, 8, ot),
332
- v("stop", {
333
- offset: "100%",
334
- "stop-color": t.color
335
- }, null, 8, at)
336
- ], 8, tt))), 256))
337
- ]),
338
- v("g", lt, [
339
- v("rect", {
340
- x: o.value.left,
341
- y: o.value.top,
342
- height: o.value.height - h.value.top - h.value.bottom,
343
- width: o.value.width - h.value.left - h.value.right,
344
- fill: "#FFFFFF"
345
- }, null, 8, rt),
346
- (l(!0), u(N, null, ae(te.value, (t, n) => (l(), u("g", {
347
- key: `graduation_${n}`
348
- }, [
349
- v("rect", {
350
- x: t.x,
351
- y: t.y,
352
- height: t.height,
353
- width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
354
- fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${m.value})` : t.color,
355
- "shape-rendering": "crispEdges"
356
- }, null, 8, nt),
357
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
358
- key: 0,
359
- x1: t.x,
360
- x2: t.x + 10,
361
- y1: t.y,
362
- y2: t.y,
363
- "stroke-width": e.value.style.chart.graduations.strokeWidth,
364
- stroke: e.value.style.chart.graduations.stroke,
365
- "stroke-linecap": "round"
366
- }, null, 8, ut)) : c("", !0),
367
- e.value.style.chart.graduations.showIntermediate ? (l(), u(N, { key: 1 }, [
368
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
369
- key: 0,
370
- x1: t.x,
371
- x2: t.x + 5,
372
- y1: t.halfY,
373
- y2: t.halfY,
374
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
375
- stroke: e.value.style.chart.graduations.stroke,
376
- "stroke-linecap": "round"
377
- }, null, 8, it)) : c("", !0),
378
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
379
- key: 1,
380
- x1: t.x,
381
- x2: t.x + 2.5,
382
- y1: t.qYLess,
383
- y2: t.qYLess,
384
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
385
- stroke: e.value.style.chart.graduations.stroke,
386
- "stroke-linecap": "round"
387
- }, null, 8, ct)) : c("", !0),
388
- e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
389
- key: 2,
390
- x1: t.x,
391
- x2: t.x + 2.5,
392
- y1: t.qYMore,
393
- y2: t.qYMore,
394
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
395
- stroke: e.value.style.chart.graduations.stroke,
396
- "stroke-linecap": "round"
397
- }, null, 8, ht)) : c("", !0)
398
- ], 64)) : c("", !0),
399
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
400
- key: 2,
401
- x1: o.value.right,
402
- x2: o.value.right - 10,
403
- y1: t.y,
404
- y2: t.y,
405
- "stroke-width": e.value.style.chart.graduations.strokeWidth,
406
- stroke: e.value.style.chart.graduations.stroke,
407
- "stroke-linecap": "round"
408
- }, null, 8, dt)) : c("", !0),
409
- e.value.style.chart.graduations.showIntermediate ? (l(), u(N, { key: 3 }, [
410
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
411
- key: 0,
412
- x1: o.value.right,
413
- x2: o.value.right - 5,
414
- y1: t.halfY,
415
- y2: t.halfY,
416
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
417
- stroke: e.value.style.chart.graduations.stroke,
418
- "stroke-linecap": "round"
419
- }, null, 8, vt)) : c("", !0),
420
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
421
- key: 1,
422
- x1: o.value.right,
423
- x2: o.value.right - 2.5,
424
- y1: t.qYLess,
425
- y2: t.qYLess,
426
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
427
- stroke: e.value.style.chart.graduations.stroke,
428
- "stroke-linecap": "round"
429
- }, null, 8, yt)) : c("", !0),
430
- e.value.style.chart.graduations.show && ["both", "right"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
431
- key: 2,
432
- x1: o.value.right,
433
- x2: o.value.right - 2.5,
434
- y1: t.qYMore,
435
- y2: t.qYMore,
436
- "stroke-width": e.value.style.chart.graduations.strokeWidth / 2,
437
- stroke: e.value.style.chart.graduations.stroke,
438
- "stroke-linecap": "round"
439
- }, null, 8, ft)) : c("", !0)
440
- ], 64)) : c("", !0)
441
- ]))), 128)),
442
- v("rect", {
443
- class: S({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
444
- x: o.value.left,
445
- y: o.value.top,
446
- height: G.value,
447
- width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
448
- fill: "#FFFFFF66"
449
- }, null, 10, gt)
450
- ]),
451
- v("text", {
452
- class: S({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
453
- y: G.value + o.value.top + e.value.style.chart.label.fontSize / 3,
454
- x: o.value.left - 10,
455
- "text-anchor": "end",
456
- fill: e.value.style.chart.label.color,
457
- "font-size": e.value.style.chart.label.fontSize,
458
- "font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
459
- }, Ae(i(Ee)(
460
- e.value.style.chart.label.formatter,
461
- P.dataset.value,
462
- i(Ge)({
463
- p: e.value.style.chart.label.prefix,
464
- v: P.dataset.value,
465
- s: e.value.style.chart.label.suffix,
466
- r: e.value.style.chart.label.rounding
467
- }),
468
- { datapoint: P.dataset }
469
- )), 11, pt),
470
- f(s.$slots, "svg", { svg: fe.value }, void 0, !0)
471
- ], 10, Ke)) : c("", !0),
472
- s.$slots.watermark ? (l(), u("div", mt, [
473
- f(s.$slots, "watermark", U(Y({ isPrinting: i(J) || i(K) })), void 0, !0)
474
- ])) : c("", !0),
475
- s.$slots.source ? (l(), u("div", kt, [
476
- f(s.$slots, "source", {}, void 0, !0)
477
- ], 512)) : c("", !0),
478
- V.value ? c("", !0) : (l(), M(i(ce), {
479
- key: 7,
480
- config: {
481
- type: "thermometer",
482
- style: {
483
- backgroundColor: e.value.style.chart.backgroundColor,
484
- thermometer: {
485
- color: "#CCCCCC"
486
- }
487
- }
488
- }
489
- }, null, 8, ["config"]))
490
- ], 46, He));
491
- }
492
- }, At = /* @__PURE__ */ De(bt, [["__scopeId", "data-v-8985051a"]]);
493
- export {
494
- At as default
495
- };