vue-data-ui 2.12.6 → 2.12.7-beta.0

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 (109) hide show
  1. package/dist/{Arrow-Bd9ZVBnX.js → Arrow-CmqjRRUl.js} +1 -1
  2. package/dist/BaseDraggableDialog-BMlyvt7E.js +180 -0
  3. package/dist/{BaseIcon-CNbwMh_-.js → BaseIcon-CZdMutjs.js} +1 -1
  4. package/dist/{ColorPicker-B_FoQwtO.js → ColorPicker-DvVKgyAl.js} +23 -24
  5. package/dist/{DataTable-Rajdtaf6.js → DataTable-Cv9CIz-a.js} +11 -11
  6. package/dist/{Legend-BxtDQCIv.js → Legend-DFunFf8i.js} +8 -8
  7. package/dist/NonSvgPenAndPaper-pVuHj6_A.js +467 -0
  8. package/dist/PackageVersion-CLY-udAA.js +10 -0
  9. package/dist/{PenAndPaper-BkP3J-Ft.js → PenAndPaper-B9na2mbr.js} +8 -10
  10. package/dist/RecursiveCircles-Dn3TGoL6.js +96 -0
  11. package/dist/RecursiveLabels-NTMB9w5C.js +49 -0
  12. package/dist/RecursiveLinks-ld_gDZH4.js +64 -0
  13. package/dist/{Shape-C69a0f29.js → Shape-D3w9qas1.js} +2 -2
  14. package/dist/{Slicer-7qFdY-bT.js → Slicer-ncY8krrM.js} +2 -2
  15. package/dist/SparkTooltip-CwThutH2.js +68 -0
  16. package/dist/{Title-CzaCeCOm.js → Title-B5qqUI3M.js} +2 -2
  17. package/dist/Tooltip-C9rxJ-Ru.js +149 -0
  18. package/dist/{usePrinter-C5bLp34h.js → UserOptions-Ddy6CuLC.js} +172 -231
  19. package/dist/{dom-to-png-Bm0D0yPL.js → dom-to-png-DDlooC9r.js} +1 -1
  20. package/dist/{img-BN9AzqUr.js → img-m9g7lR5d.js} +1 -1
  21. package/dist/{index-BFzQMJda.js → index-BiHmNd1-.js} +21 -21
  22. package/dist/{pdf-uTbs813M.js → pdf-BqM953uL.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/useChartAccessibility-9icAAmYg.js +12 -0
  25. package/dist/useMouse-AicQS8Vf.js +13 -0
  26. package/dist/{useNestedProp-v7KPpwuP.js → useNestedProp-tRqS0ZAM.js} +1 -1
  27. package/dist/{usePanZoom-CUkkqW81.js → usePanZoom-BQMvRXEQ.js} +16 -17
  28. package/dist/usePrinter-CRCbl1WG.js +53 -0
  29. package/dist/vClickOutside-C6WiFswA.js +13 -0
  30. package/dist/{vue-data-ui-D1k8FeRp.js → vue-data-ui-D9uTDt73.js} +63 -63
  31. package/dist/vue-data-ui.js +19 -19
  32. package/dist/{vue-ui-3d-bar-DoklA4DT.js → vue-ui-3d-bar-rtuSc8FS.js} +397 -402
  33. package/dist/{vue-ui-accordion-BUz4JIIX.js → vue-ui-accordion-CmCs2yR2.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-4kyBq-Dy.js → vue-ui-age-pyramid-BrzMSiyu.js} +215 -218
  35. package/dist/{vue-ui-annotator-Bq1ZeFfb.js → vue-ui-annotator-CYxmTpf6.js} +2 -2
  36. package/dist/{vue-ui-bullet-DU10avvA.js → vue-ui-bullet-D25qNQfb.js} +137 -140
  37. package/dist/{vue-ui-candlestick-BI1t3flz.js → vue-ui-candlestick-BuerNa-r.js} +265 -271
  38. package/dist/{vue-ui-carousel-table-VowLf_oc.js → vue-ui-carousel-table-aN0HLsOO.js} +137 -137
  39. package/dist/{vue-ui-chestnut-BHjV3d94.js → vue-ui-chestnut-oUj2ocsZ.js} +397 -400
  40. package/dist/{vue-ui-chord-CPr7r-2_.js → vue-ui-chord-C4evlXYB.js} +356 -365
  41. package/dist/vue-ui-circle-pack-CWrNiKTY.js +656 -0
  42. package/dist/{vue-ui-cursor-C9teAbVI.js → vue-ui-cursor-DgpSttlt.js} +2 -2
  43. package/dist/{vue-ui-dashboard-CwDYB8tP.js → vue-ui-dashboard-BN2ha1Eh.js} +62 -62
  44. package/dist/{vue-ui-digits-CHmkL0hn.js → vue-ui-digits-BhjAxXgm.js} +2 -2
  45. package/dist/vue-ui-donut-D3_z61HI.js +1291 -0
  46. package/dist/vue-ui-donut-evolution-oKtmZPx4.js +864 -0
  47. package/dist/{vue-ui-dumbbell-DTKLLd1N.js → vue-ui-dumbbell-C8Lokx-F.js} +265 -270
  48. package/dist/{vue-ui-flow-BLBhsU2n.js → vue-ui-flow-BVRkH0PS.js} +291 -300
  49. package/dist/{vue-ui-funnel-CIrWdeBk.js → vue-ui-funnel-DFxcmAB5.js} +216 -219
  50. package/dist/{vue-ui-galaxy-ByhKyIV4.js → vue-ui-galaxy-CGE0hlBC.js} +227 -235
  51. package/dist/{vue-ui-gauge-BbfBMpng.js → vue-ui-gauge-B48eMvOR.js} +240 -243
  52. package/dist/{vue-ui-gizmo-BM-_QfHM.js → vue-ui-gizmo-zTKNpjvv.js} +57 -58
  53. package/dist/{vue-ui-heatmap-BA4z4hsw.js → vue-ui-heatmap-UNfTt8SM.js} +239 -242
  54. package/dist/{vue-ui-history-plot-8vM_IUy8.js → vue-ui-history-plot-CbCWmvtg.js} +257 -262
  55. package/dist/{vue-ui-kpi-D57QLK6A.js → vue-ui-kpi-Drf_lrlh.js} +29 -30
  56. package/dist/{vue-ui-mini-loader-CR4c-xJQ.js → vue-ui-mini-loader-DU3G6BVs.js} +2 -2
  57. package/dist/vue-ui-molecule-B5MOXYEA.js +580 -0
  58. package/dist/{vue-ui-mood-radar-Brc9cxoD.js → vue-ui-mood-radar-CC_CVLvn.js} +180 -186
  59. package/dist/{vue-ui-nested-donuts-W3Z5F--L.js → vue-ui-nested-donuts-D_H962kk.js} +366 -374
  60. package/dist/{vue-ui-onion-BNBlGNlF.js → vue-ui-onion-P8k6T724.js} +252 -258
  61. package/dist/{vue-ui-parallel-coordinate-plot-B5G3jyvg.js → vue-ui-parallel-coordinate-plot-B5Los0vX.js} +296 -303
  62. package/dist/{vue-ui-quadrant-CUy9mVIA.js → vue-ui-quadrant-B3wzCTxK.js} +402 -409
  63. package/dist/{vue-ui-quick-chart-D4_8mRXU.js → vue-ui-quick-chart-oucj6hXk.js} +611 -616
  64. package/dist/{vue-ui-radar-BUk56jGL.js → vue-ui-radar-Cjqlyu6d.js} +270 -277
  65. package/dist/{vue-ui-rating-B9TQl5KP.js → vue-ui-rating-gryk_h_6.js} +2 -2
  66. package/dist/vue-ui-relation-circle-ielvWC-1.js +525 -0
  67. package/dist/{vue-ui-ridgeline-Cl06bGom.js → vue-ui-ridgeline-Dydqo68b.js} +321 -326
  68. package/dist/{vue-ui-rings-B6bpFlFp.js → vue-ui-rings-BRBXektJ.js} +262 -269
  69. package/dist/{vue-ui-scatter--WUuVw5G.js → vue-ui-scatter-Df-BM7Ts.js} +372 -379
  70. package/dist/{vue-ui-skeleton-B_YI7Yuc.js → vue-ui-skeleton-CbYQYRvD.js} +19 -19
  71. package/dist/{vue-ui-smiley-Bbam2fDz.js → vue-ui-smiley-BfHaQMaW.js} +2 -2
  72. package/dist/{vue-ui-spark-trend-DavXuwGt.js → vue-ui-spark-trend-z3fUChs_.js} +114 -117
  73. package/dist/{vue-ui-sparkbar-9N1FU9-J.js → vue-ui-sparkbar-ChtFIugH.js} +104 -106
  74. package/dist/{vue-ui-sparkgauge-_9ntq4EK.js → vue-ui-sparkgauge-DtpODCww.js} +72 -74
  75. package/dist/{vue-ui-sparkhistogram-BEzOV4HV.js → vue-ui-sparkhistogram-C3XnYiXI.js} +83 -86
  76. package/dist/vue-ui-sparkline-CoL8jiX8.js +459 -0
  77. package/dist/{vue-ui-sparkstackbar-BSWcs3v0.js → vue-ui-sparkstackbar-CYk3mZJH.js} +102 -105
  78. package/dist/{vue-ui-stackbar-gG5BLlAr.js → vue-ui-stackbar-D9LGbuG5.js} +433 -437
  79. package/dist/{vue-ui-strip-plot-BJouRmxh.js → vue-ui-strip-plot-C5r1Ee2R.js} +245 -252
  80. package/dist/{vue-ui-table-D9Ry8s4N.js → vue-ui-table-DBaT_TfA.js} +3 -3
  81. package/dist/{vue-ui-table-heatmap-Bizzpi31.js → vue-ui-table-heatmap-CYW4YfKN.js} +93 -94
  82. package/dist/{vue-ui-table-sparkline-Dg54Ovs2.js → vue-ui-table-sparkline-Di0MYR4p.js} +212 -212
  83. package/dist/{vue-ui-thermometer-6MSdF_Gm.js → vue-ui-thermometer-BF1btHY2.js} +154 -157
  84. package/dist/{vue-ui-timer-ByaKokk8.js → vue-ui-timer-D9FfRWN5.js} +180 -181
  85. package/dist/vue-ui-tiremarks-CQ0lk8fJ.js +341 -0
  86. package/dist/vue-ui-treemap-1Lx7YRtc.js +947 -0
  87. package/dist/{vue-ui-vertical-bar-CE4oBwBv.js → vue-ui-vertical-bar-DdVVQ1ED.js} +397 -403
  88. package/dist/{vue-ui-waffle-DNEEnY_G.js → vue-ui-waffle-BhnuPiRD.js} +317 -324
  89. package/dist/vue-ui-wheel-BIjJ0fg8.js +335 -0
  90. package/dist/vue-ui-word-cloud-3-r8HwO_.js +642 -0
  91. package/dist/{vue-ui-world-Brhq17TE.js → vue-ui-world-CPIGEswq.js} +430 -442
  92. package/dist/{vue-ui-xy-K2G7QQxG.js → vue-ui-xy-9e_epIN4.js} +845 -846
  93. package/dist/vue-ui-xy-canvas-DcGgQ7s4.js +1206 -0
  94. package/package.json +6 -6
  95. package/dist/BaseDraggableDialog-Bzwlfmy1.js +0 -186
  96. package/dist/PackageVersion-BjrblLPQ.js +0 -10
  97. package/dist/Tooltip-CWmRmhJr.js +0 -158
  98. package/dist/useChartAccessibility-BWojgys7.js +0 -13
  99. package/dist/vue-ui-circle-pack-D_jYpsuD.js +0 -659
  100. package/dist/vue-ui-donut-WRUDvvZa.js +0 -1292
  101. package/dist/vue-ui-donut-evolution-BQxV5D_L.js +0 -871
  102. package/dist/vue-ui-molecule-Bq69N7rC.js +0 -782
  103. package/dist/vue-ui-relation-circle-T6aTibIU.js +0 -528
  104. package/dist/vue-ui-sparkline-D__GCUAz.js +0 -519
  105. package/dist/vue-ui-tiremarks-Z8pjUT1g.js +0 -344
  106. package/dist/vue-ui-treemap-pRJ3be5l.js +0 -956
  107. package/dist/vue-ui-wheel-DWPYZxdT.js +0 -338
  108. package/dist/vue-ui-word-cloud-DAR7R8F8.js +0 -648
  109. package/dist/vue-ui-xy-canvas-ml44sPHS.js +0 -1673
@@ -1,13 +1,11 @@
1
- import { useSlots as J, onMounted as L, computed as g, ref as k, watch as O, nextTick as K, createElementBlock as c, openBlock as r, normalizeStyle as f, unref as s, renderSlot as C, createCommentVNode as v, createBlock as Q, normalizeProps as R, mergeProps as P, createElementVNode as d, toDisplayString as p, Fragment as T, renderList as Y, createVNode as Z } from "vue";
2
- import { u as ee, c as te, t as le, p as x, a as ae, b as oe, o as se, e as V, g as ue, d as re, s as $, i as b, f as w, X as ne, w as ie } from "./index-BFzQMJda.js";
3
- import { u as E } from "./useNestedProp-v7KPpwuP.js";
4
- import ce from "./vue-ui-skeleton-B_YI7Yuc.js";
5
- import { _ as ve } from "./PackageVersion-BjrblLPQ.js";
6
- const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"], me = ["stop-color"], ge = ["stop-color"], he = ["height", "width", "fill", "rx"], ke = ["height", "width", "fill", "rx"], xe = ["height", "width", "fill", "rx"], be = {
1
+ import { defineAsyncComponent as V, useSlots as R, onMounted as z, computed as g, ref as k, watch as L, nextTick as Y, createElementBlock as c, openBlock as u, normalizeStyle as p, unref as o, renderSlot as _, createCommentVNode as v, createBlock as Z, normalizeProps as ee, mergeProps as O, createElementVNode as d, toDisplayString as f, Fragment as T, renderList as te, createVNode as le } from "vue";
2
+ import { u as ae, c as oe, t as se, p as x, a as ne, b as ue, o as re, e as E, g as ie, d as ce, s as $, i as b, f as w, X as ve, w as de } from "./index-BiHmNd1-.js";
3
+ import { u as B } from "./useNestedProp-tRqS0ZAM.js";
4
+ const pe = ["onClick"], fe = { key: 1 }, ye = ["xmlns", "viewBox"], me = ["id"], ge = ["stop-color"], he = ["stop-color"], ke = ["height", "width", "fill", "rx"], xe = ["height", "width", "fill", "rx"], be = ["height", "width", "fill", "rx"], we = {
7
5
  key: 2,
8
6
  ref: "source",
9
7
  dir: "auto"
10
- }, Ae = {
8
+ }, Se = {
11
9
  __name: "vue-ui-sparkbar",
12
10
  props: {
13
11
  config: {
@@ -31,112 +29,112 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
31
29
  }
32
30
  },
33
31
  emits: ["selectDatapoint"],
34
- setup(_, { emit: B }) {
35
- const { vue_ui_sparkbar: M } = ee(), a = _, U = J();
36
- L(() => {
37
- U["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
32
+ setup(C, { emit: M }) {
33
+ const U = V(() => import("./PackageVersion-CLY-udAA.js")), j = V(() => import("./vue-ui-skeleton-CbYQYRvD.js")), { vue_ui_sparkbar: G } = ae(), a = C, W = R();
34
+ z(() => {
35
+ W["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
38
36
  });
39
- const S = g(() => !!a.dataset && a.dataset.length), A = k(te()), e = g({
37
+ const S = g(() => !!a.dataset && a.dataset.length), A = k(oe()), e = g({
40
38
  get: () => N(),
41
39
  set: (t) => t
42
40
  });
43
41
  function N() {
44
- const t = E({
42
+ const t = B({
45
43
  userConfig: a.config,
46
- defaultConfig: M
44
+ defaultConfig: G
47
45
  });
48
46
  return t.theme ? {
49
- ...E({
50
- userConfig: ae.vue_ui_sparkbar[t.theme] || a.config,
47
+ ...B({
48
+ userConfig: ne.vue_ui_sparkbar[t.theme] || a.config,
51
49
  defaultConfig: t
52
50
  }),
53
- customPalette: le[t.theme] || x
51
+ customPalette: se[t.theme] || x
54
52
  } : t;
55
53
  }
56
- O(() => a.config, (t) => {
54
+ L(() => a.config, (t) => {
57
55
  e.value = N();
58
56
  }, { deep: !0 });
59
- const j = g(() => oe(e.value.customPalette)), y = k(a.dataset.map((t) => ({
57
+ const q = g(() => ue(e.value.customPalette)), y = k(a.dataset.map((t) => ({
60
58
  ...t,
61
59
  value: e.value.style.animation.show ? 0 : t.value || 0,
62
60
  formatter: t.formatter || null
63
61
  }))), D = k(null);
64
- L(async () => {
65
- se(a.dataset) && V({
62
+ z(async () => {
63
+ re(a.dataset) && E({
66
64
  componentName: "VueUiSparkbar",
67
65
  type: "dataset"
68
66
  }), F();
69
67
  });
70
68
  function F() {
71
69
  if (e.value.style.animation.show) {
72
- let z = function() {
73
- i += l / t, i < l ? (y.value = y.value.map((u, h) => ({
74
- ...u,
75
- value: u.value += o[h]
76
- })), D.value = requestAnimationFrame(z)) : y.value = a.dataset.map((u) => ({
77
- ...u,
78
- value: u.value || 0,
79
- formatter: u.formatter || null
70
+ let P = function() {
71
+ i += l / t, i < l ? (y.value = y.value.map((n, h) => ({
72
+ ...n,
73
+ value: n.value += s[h]
74
+ })), D.value = requestAnimationFrame(P)) : y.value = a.dataset.map((n) => ({
75
+ ...n,
76
+ value: n.value || 0,
77
+ formatter: n.formatter || null
80
78
  }));
81
79
  };
82
- const t = e.value.style.animation.animationFrames, o = a.dataset.map((u, h) => u.value / t), l = a.dataset.map((u) => u.value || 0).reduce((u, h) => u + h, 0);
80
+ const t = e.value.style.animation.animationFrames, s = a.dataset.map((n, h) => n.value / t), l = a.dataset.map((n) => n.value || 0).reduce((n, h) => n + h, 0);
83
81
  let i = 0;
84
- z();
82
+ P();
85
83
  }
86
84
  }
87
- O(() => a.dataset, async (t) => {
88
- cancelAnimationFrame(D.value), y.value = a.dataset.map((o) => ({
89
- ...o,
90
- value: e.value.style.animation.show ? 0 : o.value || 0,
91
- formatter: o.formatter || null
92
- })), K(F);
85
+ L(() => a.dataset, async (t) => {
86
+ cancelAnimationFrame(D.value), y.value = a.dataset.map((s) => ({
87
+ ...s,
88
+ value: e.value.style.animation.show ? 0 : s.value || 0,
89
+ formatter: s.formatter || null
90
+ })), Y(F);
93
91
  }, { deep: !0 });
94
- const n = k({
92
+ const r = k({
95
93
  width: 500,
96
94
  height: 16
97
- }), G = g(() => Math.max(...a.dataset.map((t) => t.value))), W = g(() => (a.dataset.forEach((t, o) => {
98
- ue({
95
+ }), H = g(() => Math.max(...a.dataset.map((t) => t.value))), X = g(() => (a.dataset.forEach((t, s) => {
96
+ ie({
99
97
  datasetObject: t,
100
98
  requiredAttributes: ["name", "value"]
101
99
  }).forEach((l) => {
102
- V({
100
+ E({
103
101
  componentName: "VueUiSparkbar",
104
102
  type: "datasetSerieAttribute",
105
103
  property: l,
106
- index: o
104
+ index: s
107
105
  });
108
106
  });
109
- }), y.value.map((t, o) => ({
107
+ }), y.value.map((t, s) => ({
110
108
  ...t,
111
109
  value: t.value || 0,
112
- color: re(t.color) || j.value[o] || x[o] || x[o % x.length]
110
+ color: ce(t.color) || q.value[s] || x[s] || x[s % x.length]
113
111
  }))));
114
- function q(t) {
115
- return t / G.value;
112
+ function J(t) {
113
+ return t / H.value;
116
114
  }
117
115
  function I(t) {
118
- return e.value.style.layout.independant ? t.target ? t.value / t.target : e.value.style.layout.percentage ? t.value > 100 ? 1 : t.value / 100 : e.value.style.layout.target === 0 ? 1 : t.value / e.value.style.layout.target : q(t.value);
116
+ return e.value.style.layout.independant ? t.target ? t.value / t.target : e.value.style.layout.percentage ? t.value > 100 ? 1 : t.value / 100 : e.value.style.layout.target === 0 ? 1 : t.value / e.value.style.layout.target : J(t.value);
119
117
  }
120
118
  function m(t) {
121
119
  return e.value.style.layout.independant && t.target || e.value.style.layout.target;
122
120
  }
123
- const H = B;
124
- function X(t, o) {
125
- H("selectDatapoint", { datapoint: t, index: o });
121
+ const K = M;
122
+ function Q(t, s) {
123
+ K("selectDatapoint", { datapoint: t, index: s });
126
124
  }
127
- return (t, o) => (r(), c("div", {
125
+ return (t, s) => (u(), c("div", {
128
126
  class: "vue-ui-sparkbar",
129
- style: f({
127
+ style: p({
130
128
  width: "100%",
131
129
  fontFamily: e.value.style.fontFamily,
132
- background: a.backgroundOpacity !== null ? s($)(e.value.style.backgroundColor, a.backgroundOpacity) : e.value.style.backgroundColor
130
+ background: a.backgroundOpacity !== null ? o($)(e.value.style.backgroundColor, a.backgroundOpacity) : e.value.style.backgroundColor
133
131
  })
134
132
  }, [
135
- t.$slots.title ? C(t.$slots, "title", R(P({ key: 0 }, { title: { ...t.title, title: e.value.style.title.text, subtitle: e.value.style.title.subtitle.text } }))) : v("", !0),
136
- !t.$slots.title && e.value.style.title.text ? (r(), c("div", {
133
+ t.$slots.title ? _(t.$slots, "title", ee(O({ key: 0 }, { title: { ...t.title, title: e.value.style.title.text, subtitle: e.value.style.title.subtitle.text } }))) : v("", !0),
134
+ !t.$slots.title && e.value.style.title.text ? (u(), c("div", {
137
135
  key: 1,
138
136
  class: "vue-ui-sparkbar-title-container",
139
- style: f({
137
+ style: p({
140
138
  background: e.value.style.title.backgroundColor,
141
139
  margin: e.value.style.title.margin,
142
140
  textAlign: e.value.style.title.textAlign
@@ -144,35 +142,35 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
144
142
  }, [
145
143
  d("div", {
146
144
  class: "vue-ui-sparkbar-title",
147
- style: f({
145
+ style: p({
148
146
  fontSize: e.value.style.title.fontSize + "px",
149
147
  color: e.value.style.title.color,
150
148
  fontWeight: e.value.style.title.bold ? "bold" : "normal"
151
149
  })
152
- }, p(e.value.style.title.text), 5),
153
- e.value.style.title.subtitle.text ? (r(), c("div", {
150
+ }, f(e.value.style.title.text), 5),
151
+ e.value.style.title.subtitle.text ? (u(), c("div", {
154
152
  key: 0,
155
153
  class: "vue-ui-sparkbar-subtitle",
156
- style: f({
154
+ style: p({
157
155
  fontSize: e.value.style.title.subtitle.fontSize + "px",
158
156
  color: e.value.style.title.subtitle.color,
159
157
  fontWeight: e.value.style.title.subtitle.bold ? "bold" : "normal"
160
158
  })
161
- }, p(e.value.style.title.subtitle.text), 5)) : v("", !0)
159
+ }, f(e.value.style.title.subtitle.text), 5)) : v("", !0)
162
160
  ], 4)) : v("", !0),
163
- (r(!0), c(T, null, Y(W.value, (l, i) => (r(), c(T, null, [
164
- S.value ? (r(), c("div", {
161
+ (u(!0), c(T, null, te(X.value, (l, i) => (u(), c(T, null, [
162
+ S.value ? (u(), c("div", {
165
163
  key: 0,
166
- style: f(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${_.dataset.length > 0 && i !== _.dataset.length - 1 ? "margin-bottom:6px" : ""}`),
167
- onClick: () => X(l, i)
164
+ style: p(`display:flex !important;${["left", "right"].includes(e.value.style.labels.name.position) ? `flex-direction: ${e.value.style.labels.name.position === "right" ? "row-reverse" : "row"} !important` : "flex-direction:column !important"};gap:${e.value.style.gap}px !important;align-items:center;${C.dataset.length > 0 && i !== C.dataset.length - 1 ? "margin-bottom:6px" : ""}`),
165
+ onClick: () => Q(l, i)
168
166
  }, [
169
- C(t.$slots, "data-label", P({ ref_for: !0 }, { bar: {
167
+ _(t.$slots, "data-label", O({ ref_for: !0 }, { bar: {
170
168
  ...l,
171
169
  target: m(l),
172
- valueLabel: s(b)(
170
+ valueLabel: o(b)(
173
171
  l.formatter,
174
172
  l.value,
175
- s(w)({
173
+ o(w)({
176
174
  p: l.prefix || "",
177
175
  v: l.value,
178
176
  s: l.suffix || "",
@@ -180,10 +178,10 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
180
178
  }),
181
179
  { datapoint: l, seriesIndex: i }
182
180
  ),
183
- targetLabel: s(b)(
181
+ targetLabel: o(b)(
184
182
  l.formatter,
185
183
  m(l),
186
- s(w)({
184
+ o(w)({
187
185
  p: l.prefix || "",
188
186
  v: m(l),
189
187
  s: l.suffix || "",
@@ -192,9 +190,9 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
192
190
  { datapoint: l, seriesIndex: i }
193
191
  )
194
192
  } })),
195
- t.$slots["data-label"] ? v("", !0) : (r(), c("div", {
193
+ t.$slots["data-label"] ? v("", !0) : (u(), c("div", {
196
194
  key: 0,
197
- style: f({
195
+ style: p({
198
196
  width: e.value.style.labels.name.width,
199
197
  color: e.value.style.labels.name.color,
200
198
  fontSize: e.value.style.labels.fontSize + "px",
@@ -202,14 +200,14 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
202
200
  textAlign: ["left", "right"].includes(e.value.style.labels.name.position) || ["top", "top-left"].includes(e.value.style.labels.name.position) ? "left" : e.value.style.labels.name.position === "top-center" ? "center" : "right"
203
201
  })
204
202
  }, [
205
- d("span", null, p(l.name), 1),
206
- e.value.style.labels.value.show ? (r(), c("span", {
203
+ d("span", null, f(l.name), 1),
204
+ e.value.style.labels.value.show ? (u(), c("span", {
207
205
  key: 0,
208
- style: f(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`)
209
- }, ": " + p(s(b)(
206
+ style: p(`font-weight:${e.value.style.labels.value.bold ? "bold" : "normal"}`)
207
+ }, ": " + f(o(b)(
210
208
  l.formatter,
211
209
  l.value,
212
- s(w)({
210
+ o(w)({
213
211
  p: l.prefix || "",
214
212
  v: l.value,
215
213
  s: l.suffix || "",
@@ -217,10 +215,10 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
217
215
  }),
218
216
  { datapoint: l, seriesIndex: i }
219
217
  )), 5)) : v("", !0),
220
- e.value.style.layout.showTargetValue ? (r(), c("span", fe, p(" " + e.value.style.layout.targetValueText) + " " + p(s(b)(
218
+ e.value.style.layout.showTargetValue ? (u(), c("span", fe, f(" " + e.value.style.layout.targetValueText) + " " + f(o(b)(
221
219
  l.formatter,
222
220
  m(l),
223
- s(w)({
221
+ o(w)({
224
222
  p: l.prefix || "",
225
223
  v: m(l),
226
224
  s: l.suffix || "",
@@ -229,12 +227,12 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
229
227
  { datapoint: l, seriesIndex: i }
230
228
  )), 1)) : v("", !0)
231
229
  ], 4)),
232
- (r(), c("svg", {
233
- xmlns: s(ne),
234
- viewBox: `0 0 ${n.value.width} ${n.value.height}`,
230
+ (u(), c("svg", {
231
+ xmlns: o(ve),
232
+ viewBox: `0 0 ${r.value.width} ${r.value.height}`,
235
233
  width: "100%"
236
234
  }, [
237
- Z(ve),
235
+ le(o(U)),
238
236
  d("defs", null, [
239
237
  d("linearGradient", {
240
238
  x1: "0%",
@@ -245,45 +243,45 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
245
243
  }, [
246
244
  d("stop", {
247
245
  offset: "0%",
248
- "stop-color": s($)(s(ie)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
249
- }, null, 8, me),
246
+ "stop-color": o($)(o(de)(l.color, 0.03), 100 - e.value.style.bar.gradient.intensity)
247
+ }, null, 8, ge),
250
248
  d("stop", {
251
249
  offset: "100%",
252
250
  "stop-color": l.color
253
- }, null, 8, ge)
254
- ], 8, ye)
251
+ }, null, 8, he)
252
+ ], 8, me)
255
253
  ]),
256
254
  d("rect", {
257
- height: n.value.height,
258
- width: n.value.width,
255
+ height: r.value.height,
256
+ width: r.value.width,
259
257
  x: 0,
260
258
  y: 0,
261
- fill: s($)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
262
- rx: n.value.height / 2
263
- }, null, 8, he),
259
+ fill: o($)(e.value.style.gutter.backgroundColor, e.value.style.gutter.opacity),
260
+ rx: r.value.height / 2
261
+ }, null, 8, ke),
264
262
  d("rect", {
265
- height: n.value.height,
266
- width: n.value.width * I(l),
263
+ height: r.value.height,
264
+ width: r.value.width * I(l),
267
265
  x: 0,
268
266
  y: 0,
269
267
  fill: e.value.style.bar.gradient.underlayerColor,
270
- rx: n.value.height / 2
271
- }, null, 8, ke),
268
+ rx: r.value.height / 2
269
+ }, null, 8, xe),
272
270
  d("rect", {
273
- height: n.value.height,
274
- width: n.value.width * I(l),
271
+ height: r.value.height,
272
+ width: r.value.width * I(l),
275
273
  x: 0,
276
274
  y: 0,
277
275
  fill: e.value.style.bar.gradient.show ? `url(#sparkbar_gradient_${i}_${A.value})` : l.color,
278
- rx: n.value.height / 2
279
- }, null, 8, xe)
280
- ], 8, pe))
281
- ], 12, de)) : v("", !0)
276
+ rx: r.value.height / 2
277
+ }, null, 8, be)
278
+ ], 8, ye))
279
+ ], 12, pe)) : v("", !0)
282
280
  ], 64))), 256)),
283
- t.$slots.source ? (r(), c("div", be, [
284
- C(t.$slots, "source")
281
+ t.$slots.source ? (u(), c("div", we, [
282
+ _(t.$slots, "source")
285
283
  ], 512)) : v("", !0),
286
- S.value ? v("", !0) : (r(), Q(ce, {
284
+ S.value ? v("", !0) : (u(), Z(o(j), {
287
285
  key: 3,
288
286
  config: {
289
287
  type: "sparkbar",
@@ -299,5 +297,5 @@ const de = ["onClick"], fe = { key: 1 }, pe = ["xmlns", "viewBox"], ye = ["id"],
299
297
  }
300
298
  };
301
299
  export {
302
- Ae as default
300
+ Se as default
303
301
  };
@@ -1,14 +1,12 @@
1
- import { computed as s, onMounted as A, ref as N, watch as M, createElementBlock as n, openBlock as i, normalizeStyle as m, createCommentVNode as r, createBlock as G, toDisplayString as y, unref as c, createVNode as I, createElementVNode as d, renderSlot as S, normalizeClass as R } from "vue";
2
- import { u as U, o as q, e as z, g as P, c as T, a as X, O as H, X as V, i as Y, v as g, f as J } from "./index-BFzQMJda.js";
3
- import { u as O } from "./useNestedProp-v7KPpwuP.js";
4
- import K from "./vue-ui-skeleton-B_YI7Yuc.js";
5
- import { _ as Q } from "./PackageVersion-BjrblLPQ.js";
6
- import { u as W } from "./useChartAccessibility-BWojgys7.js";
7
- const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["stop-color"], le = ["stop-color"], oe = ["d", "stroke", "stroke-linecap"], se = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], ue = ["x", "y", "font-size", "fill", "font-weight"], ie = {
1
+ import { defineAsyncComponent as A, computed as s, onMounted as N, ref as M, watch as S, createElementBlock as r, openBlock as n, normalizeStyle as y, createCommentVNode as v, createBlock as U, toDisplayString as g, unref as i, createVNode as P, createElementVNode as d, renderSlot as z, normalizeClass as q } from "vue";
2
+ import { u as O } from "./useNestedProp-tRqS0ZAM.js";
3
+ import { u as T, o as V, e as j, g as X, c as H, a as Y, O as J, X as K, i as Q, v as m, f as W } from "./index-BiHmNd1-.js";
4
+ import { u as Z } from "./useChartAccessibility-9icAAmYg.js";
5
+ const ee = ["xmlns", "viewBox"], te = ["width", "height"], ae = ["id"], le = ["stop-color"], oe = ["stop-color"], se = ["d", "stroke", "stroke-linecap"], ue = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], ne = ["x", "y", "font-size", "fill", "font-weight"], ie = {
8
6
  key: 4,
9
7
  ref: "source",
10
8
  dir: "auto"
11
- }, me = {
9
+ }, fe = {
12
10
  __name: "vue-ui-sparkgauge",
13
11
  props: {
14
12
  config: {
@@ -24,90 +22,90 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
24
22
  }
25
23
  }
26
24
  },
27
- setup(j) {
28
- const { vue_ui_sparkgauge: E } = U(), a = j, p = s(() => !!a.dataset && Object.keys(a.dataset).length);
29
- A(() => {
25
+ setup(E) {
26
+ const F = A(() => import("./PackageVersion-CLY-udAA.js")), B = A(() => import("./vue-ui-skeleton-CbYQYRvD.js")), { vue_ui_sparkgauge: D } = T(), a = E, p = s(() => !!a.dataset && Object.keys(a.dataset).length);
27
+ N(() => {
30
28
  h();
31
29
  });
32
30
  function h() {
33
- q(a.dataset) ? z({
31
+ V(a.dataset) ? j({
34
32
  componentName: "VueUiSparkgauge",
35
33
  type: "dataset"
36
- }) : P({
34
+ }) : X({
37
35
  datasetObject: a.dataset,
38
36
  requiredAttributes: ["value", "min", "max"]
39
37
  }).forEach((t) => {
40
- z({
38
+ j({
41
39
  componentName: "VueUiSparkgauge",
42
40
  type: "datasetAttribute",
43
41
  property: t
44
42
  });
45
43
  });
46
44
  }
47
- const b = N(T()), e = s({
48
- get: () => k(),
45
+ const k = M(H()), e = s({
46
+ get: () => b(),
49
47
  set: (t) => t
50
- }), { svgRef: F } = W({ config: { text: a.dataset.title } });
51
- function k() {
48
+ }), { svgRef: G } = Z({ config: { text: a.dataset.title } });
49
+ function b() {
52
50
  const t = O({
53
51
  userConfig: a.config,
54
- defaultConfig: E
52
+ defaultConfig: D
55
53
  });
56
54
  return t.theme ? {
57
55
  ...O({
58
- userConfig: X.vue_ui_sparkgauge[t.theme] || a.config,
56
+ userConfig: Y.vue_ui_sparkgauge[t.theme] || a.config,
59
57
  defaultConfig: t
60
58
  })
61
59
  } : t;
62
60
  }
63
- M(() => a.config, (t) => {
64
- e.value = k(), h();
61
+ S(() => a.config, (t) => {
62
+ e.value = b(), h();
65
63
  }, { deep: !0 });
66
64
  const u = s(() => ({
67
65
  height: e.value.style.height,
68
66
  width: 128,
69
67
  base: e.value.style.basePosition
70
68
  })), o = s(() => {
71
- const t = a.dataset.min ?? 0, v = a.dataset.max ?? 0, D = v - t;
69
+ const t = a.dataset.min ?? 0, c = a.dataset.max ?? 0, R = c - t;
72
70
  return {
73
71
  min: t,
74
- max: v,
75
- diff: D
72
+ max: c,
73
+ diff: R
76
74
  };
77
- }), l = N(e.value.style.animation.show ? o.value.min : a.dataset.value);
78
- M(() => a.dataset.value, () => {
79
- x(a.dataset.value || 0);
75
+ }), l = M(e.value.style.animation.show ? o.value.min : a.dataset.value);
76
+ S(() => a.dataset.value, () => {
77
+ C(a.dataset.value || 0);
80
78
  });
81
- const _ = s(() => l.value > o.value.max ? o.value.max : l.value < o.value.min ? o.value.min : l.value), $ = s(() => o.value.diff / e.value.style.animation.speedMs);
82
- A(() => {
83
- x(a.dataset.value || 0);
79
+ const _ = s(() => l.value > o.value.max ? o.value.max : l.value < o.value.min ? o.value.min : l.value), x = s(() => o.value.diff / e.value.style.animation.speedMs);
80
+ N(() => {
81
+ C(a.dataset.value || 0);
84
82
  });
85
- function x(t) {
86
- function v() {
87
- l.value < t ? l.value = Math.min(l.value + $.value, t) : l.value > t && (l.value = Math.max(l.value - $.value, t)), l.value !== t && requestAnimationFrame(v);
83
+ function C(t) {
84
+ function c() {
85
+ l.value < t ? l.value = Math.min(l.value + x.value, t) : l.value > t && (l.value = Math.max(l.value - x.value, t)), l.value !== t && requestAnimationFrame(c);
88
86
  }
89
- v();
87
+ c();
90
88
  }
91
- const f = s(() => a.dataset.title ?? ""), C = s(() => l.value >= 0 ? (_.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(_.value)) / o.value.diff), w = s(() => H(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, l.value)), L = s(() => e.value.style.dataLabel.autoColor ? w.value : e.value.style.dataLabel.color), B = s(() => e.value.style.track.autoColor ? w.value : e.value.style.track.color);
92
- return (t, v) => (i(), n("div", {
89
+ const f = s(() => a.dataset.title ?? ""), $ = s(() => l.value >= 0 ? (_.value - o.value.min) / o.value.diff : (Math.abs(o.value.min) - Math.abs(_.value)) / o.value.diff), w = s(() => J(e.value.style.colors.min, e.value.style.colors.max, o.value.min, o.value.max, l.value)), L = s(() => e.value.style.dataLabel.autoColor ? w.value : e.value.style.dataLabel.color), I = s(() => e.value.style.track.autoColor ? w.value : e.value.style.track.color);
90
+ return (t, c) => (n(), r("div", {
93
91
  class: "vue-ui-sparkgauge",
94
- style: m(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
92
+ style: y(`font-family:${e.value.style.fontFamily};width: 100%; background:${e.value.style.background}`)
95
93
  }, [
96
- e.value.style.title.show && f.value && e.value.style.title.position === "top" ? (i(), n("div", {
94
+ e.value.style.title.show && f.value && e.value.style.title.position === "top" ? (n(), r("div", {
97
95
  key: 0,
98
96
  class: "vue-data-ui-sparkgauge-label",
99
- style: m(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
100
- }, y(f.value), 5)) : r("", !0),
101
- p.value ? (i(), n("svg", {
97
+ style: y(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
98
+ }, g(f.value), 5)) : v("", !0),
99
+ p.value ? (n(), r("svg", {
102
100
  key: 1,
103
101
  ref_key: "svgRef",
104
- ref: F,
105
- xmlns: c(V),
102
+ ref: G,
103
+ xmlns: i(K),
106
104
  viewBox: `0 0 ${u.value.width} ${u.value.height}`,
107
105
  style: "overflow: visible; background:transparent; width:100%;"
108
106
  }, [
109
- I(Q),
110
- t.$slots["chart-background"] ? (i(), n("foreignObject", {
107
+ P(i(F)),
108
+ t.$slots["chart-background"] ? (n(), r("foreignObject", {
111
109
  key: 0,
112
110
  x: 0,
113
111
  y: 0,
@@ -117,11 +115,11 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
117
115
  pointerEvents: "none"
118
116
  }
119
117
  }, [
120
- S(t.$slots, "chart-background")
121
- ], 8, ee)) : r("", !0),
118
+ z(t.$slots, "chart-background")
119
+ ], 8, te)) : v("", !0),
122
120
  d("defs", null, [
123
121
  d("linearGradient", {
124
- id: `gradient_${b.value}`,
122
+ id: `gradient_${k.value}`,
125
123
  x1: "-10%",
126
124
  y1: "100%",
127
125
  x2: "110%",
@@ -130,12 +128,12 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
130
128
  d("stop", {
131
129
  offset: "0%",
132
130
  "stop-color": e.value.style.colors.min
133
- }, null, 8, ae),
131
+ }, null, 8, le),
134
132
  d("stop", {
135
133
  offset: "100%",
136
134
  "stop-color": e.value.style.colors.max
137
- }, null, 8, le)
138
- ], 8, te)
135
+ }, null, 8, oe)
136
+ ], 8, ae)
139
137
  ]),
140
138
  d("path", {
141
139
  d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
@@ -143,19 +141,19 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
143
141
  "stroke-width": 8,
144
142
  "stroke-linecap": e.value.style.gutter.strokeLinecap,
145
143
  fill: "none"
146
- }, null, 8, oe),
147
- C.value !== 0 ? (i(), n("path", {
144
+ }, null, 8, se),
145
+ $.value !== 0 ? (n(), r("path", {
148
146
  key: 1,
149
147
  d: `M10 ${u.value.base} A 1 1 0 1 1 118 ${u.value.base}`,
150
- stroke: e.value.style.colors.showGradient ? `url(#gradient_${b.value})` : B.value,
148
+ stroke: e.value.style.colors.showGradient ? `url(#gradient_${k.value})` : I.value,
151
149
  "stroke-width": 8,
152
150
  "stroke-linecap": e.value.style.track.strokeLinecap,
153
151
  fill: "none",
154
152
  "stroke-dasharray": 169.5,
155
- "stroke-dashoffset": 169.5 - 169.5 * C.value,
156
- class: R({ "vue-ui-sparkgauge-track": e.value.style.animation.show }),
157
- style: m(e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : "")
158
- }, null, 14, se)) : r("", !0),
153
+ "stroke-dashoffset": 169.5 - 169.5 * $.value,
154
+ class: q({ "vue-ui-sparkgauge-track": e.value.style.animation.show }),
155
+ style: y(e.value.style.animation.show ? `animation: vue-ui-sparkgauge-animation ${e.value.style.animation.speedMs}ms ease-in;` : "")
156
+ }, null, 14, ue)) : v("", !0),
159
157
  d("text", {
160
158
  "text-anchor": "middle",
161
159
  x: u.value.width / 2,
@@ -163,19 +161,19 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
163
161
  "font-size": e.value.style.dataLabel.fontSize,
164
162
  fill: L.value,
165
163
  "font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
166
- }, y(c(Y)(
164
+ }, g(i(Q)(
167
165
  e.value.style.dataLabel.formatter,
168
- c(g)(l.value),
169
- c(J)({
166
+ i(m)(l.value),
167
+ i(W)({
170
168
  p: e.value.style.dataLabel.prefix,
171
- v: c(g)(l.value),
169
+ v: i(m)(l.value),
172
170
  s: e.value.style.dataLabel.suffix,
173
171
  r: e.value.style.dataLabel.rounding
174
172
  }),
175
- { datapoint: c(g)(l.value), color: L.value }
176
- )), 9, ue)
177
- ], 8, Z)) : r("", !0),
178
- p.value ? r("", !0) : (i(), G(K, {
173
+ { datapoint: i(m)(l.value), color: L.value }
174
+ )), 9, ne)
175
+ ], 8, ee)) : v("", !0),
176
+ p.value ? v("", !0) : (n(), U(i(B), {
179
177
  key: 2,
180
178
  config: {
181
179
  type: "gauge",
@@ -187,17 +185,17 @@ const Z = ["xmlns", "viewBox"], ee = ["width", "height"], te = ["id"], ae = ["st
187
185
  }
188
186
  }
189
187
  }, null, 8, ["config"])),
190
- e.value.style.title.show && f.value && e.value.style.title.position === "bottom" ? (i(), n("div", {
188
+ e.value.style.title.show && f.value && e.value.style.title.position === "bottom" ? (n(), r("div", {
191
189
  key: 3,
192
190
  class: "vue-data-ui-sparkgauge-label",
193
- style: m(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
194
- }, y(f.value), 5)) : r("", !0),
195
- t.$slots.source ? (i(), n("div", ie, [
196
- S(t.$slots, "source")
197
- ], 512)) : r("", !0)
191
+ style: y(`font-size:${e.value.style.title.fontSize}px;text-align:${e.value.style.title.textAlign};font-weight:${e.value.style.title.bold ? "bold" : "normal"};font-weight:${e.value.style.title.bold ? "bold" : "normal"};color:${e.value.style.title.color}`)
192
+ }, g(f.value), 5)) : v("", !0),
193
+ t.$slots.source ? (n(), r("div", ie, [
194
+ z(t.$slots, "source")
195
+ ], 512)) : v("", !0)
198
196
  ], 4));
199
197
  }
200
198
  };
201
199
  export {
202
- me as default
200
+ fe as default
203
201
  };