vue-data-ui 3.7.15 → 3.8.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 (167) hide show
  1. package/README.md +50 -43
  2. package/dist/{Arrow-9T8aUCDR.js → Arrow-pvqmWZAQ.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DZVSjhEw.js → BaseDraggableDialog-BYwNgX3M.js} +2 -2
  4. package/dist/{BaseIcon-Dl4VBlHV.js → BaseIcon-CALhpING.js} +8 -4
  5. package/dist/{ColorPicker-BrMbLQds.js → ColorPicker-B_9b0REv.js} +2 -2
  6. package/dist/{DataTable-Ho3Bf5oq.js → DataTable-Ca1twcf7.js} +2 -2
  7. package/dist/{Legend-DSyOOSJ1.js → Legend-Djkw4FGq.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-MX5IsudW.js → NonSvgPenAndPaper-DCQPVA4M.js} +3 -3
  9. package/dist/{PackageVersion-BAF3mEBQ.js → PackageVersion-B9RA2_BM.js} +1 -1
  10. package/dist/{PenAndPaper-kymjF6_b.js → PenAndPaper-DscVdZ1u.js} +3 -3
  11. package/dist/{Shape-rPzC8L-O.js → Shape-BEGGcaL8.js} +1 -1
  12. package/dist/{Slicer-DScoMPmj.js → Slicer-DaUi0o8i.js} +2 -2
  13. package/dist/{SlicerPreview-B1QUTxTZ.js → SlicerPreview-Bk-h_ANq.js} +2 -2
  14. package/dist/{SparkTooltip-reDvtQYF.js → SparkTooltip-BWdCP-h3.js} +1 -1
  15. package/dist/{Title-Hk29BxeL.js → Title-CgkWUXeV.js} +1 -1
  16. package/dist/{Tooltip-De7i-i20.js → Tooltip-OHx7yHlS.js} +1 -1
  17. package/dist/{UserOptions-DgscxIaa.js → UserOptions-ChRXLqps.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +1 -1
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +1 -1
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +1 -1
  24. package/dist/components/vue-ui-candlestick.js +1 -1
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +1 -1
  27. package/dist/components/vue-ui-chord.js +1 -1
  28. package/dist/components/vue-ui-circle-pack.js +1 -1
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dag.js +5 -0
  31. package/dist/components/vue-ui-dashboard.js +1 -1
  32. package/dist/components/vue-ui-digits.js +1 -1
  33. package/dist/components/vue-ui-donut-evolution.js +1 -1
  34. package/dist/components/vue-ui-donut.js +1 -1
  35. package/dist/components/vue-ui-dumbbell.js +1 -1
  36. package/dist/components/vue-ui-flow.js +1 -1
  37. package/dist/components/vue-ui-funnel.js +1 -1
  38. package/dist/components/vue-ui-galaxy.js +1 -1
  39. package/dist/components/vue-ui-gauge.js +1 -1
  40. package/dist/components/vue-ui-gizmo.js +1 -1
  41. package/dist/components/vue-ui-heatmap.js +1 -1
  42. package/dist/components/vue-ui-history-plot.js +1 -1
  43. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  44. package/dist/components/vue-ui-icon.js +1 -1
  45. package/dist/components/vue-ui-kpi.js +1 -1
  46. package/dist/components/vue-ui-mini-loader.js +1 -1
  47. package/dist/components/vue-ui-molecule.js +1 -1
  48. package/dist/components/vue-ui-mood-radar.js +1 -1
  49. package/dist/components/vue-ui-nested-donuts.js +1 -1
  50. package/dist/components/vue-ui-onion.js +1 -1
  51. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  52. package/dist/components/vue-ui-quadrant.js +1 -1
  53. package/dist/components/vue-ui-quick-chart.js +1 -1
  54. package/dist/components/vue-ui-radar.js +1 -1
  55. package/dist/components/vue-ui-rating.js +1 -1
  56. package/dist/components/vue-ui-relation-circle.js +1 -1
  57. package/dist/components/vue-ui-ridgeline.js +1 -1
  58. package/dist/components/vue-ui-rings.js +1 -1
  59. package/dist/components/vue-ui-scatter.js +1 -1
  60. package/dist/components/vue-ui-skeleton.js +1 -1
  61. package/dist/components/vue-ui-smiley.js +1 -1
  62. package/dist/components/vue-ui-spark-trend.js +1 -1
  63. package/dist/components/vue-ui-sparkbar.js +1 -1
  64. package/dist/components/vue-ui-sparkgauge.js +1 -1
  65. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  66. package/dist/components/vue-ui-sparkline.js +1 -1
  67. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  68. package/dist/components/vue-ui-stackbar.js +1 -1
  69. package/dist/components/vue-ui-stackline.js +1 -1
  70. package/dist/components/vue-ui-strip-plot.js +1 -1
  71. package/dist/components/vue-ui-table-heatmap.js +1 -1
  72. package/dist/components/vue-ui-table-sparkline.js +1 -1
  73. package/dist/components/vue-ui-table.js +1 -1
  74. package/dist/components/vue-ui-thermometer.js +1 -1
  75. package/dist/components/vue-ui-timer.js +1 -1
  76. package/dist/components/vue-ui-tiremarks.js +1 -1
  77. package/dist/components/vue-ui-treemap.js +1 -1
  78. package/dist/components/vue-ui-vertical-bar.js +1 -1
  79. package/dist/components/vue-ui-waffle.js +1 -1
  80. package/dist/components/vue-ui-wheel.js +1 -1
  81. package/dist/components/vue-ui-word-cloud.js +1 -1
  82. package/dist/components/vue-ui-world.js +1 -1
  83. package/dist/components/vue-ui-xy-canvas.js +1 -1
  84. package/dist/components/vue-ui-xy.js +1 -1
  85. package/dist/{dom-to-png-BG68zYm5.js → dom-to-png-VQEAYRVr.js} +1 -1
  86. package/dist/{img-BYzbY8TZ.js → img-CwrkWkkl.js} +1 -1
  87. package/dist/{lib-DUaaQGCv.js → lib-qMPkcvmh.js} +194 -179
  88. package/dist/{pdf--SSvtzbF.js → pdf-BMMrFX8S.js} +1 -1
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +147 -6
  91. package/dist/types/vue-ui-dag.d.ts +16 -0
  92. package/dist/{useAutoSizeLabelsInsideViewbox-DBJqy2aF.js → useAutoSizeLabelsInsideViewbox-CY90KinM.js} +1 -1
  93. package/dist/{useNestedProp-CVGae3Qt.js → useNestedProp-DOOBu_sL.js} +269 -185
  94. package/dist/usePanZoom-DMfuOfaC.js +135 -0
  95. package/dist/{usePrinter-BdVu83IN.js → usePrinter-CjGh4mFJ.js} +2 -2
  96. package/dist/vue-data-ui-BgQPEjgE.js +351 -0
  97. package/dist/vue-data-ui.js +202 -216
  98. package/dist/{vue-ui-3d-bar-Cg4nzpjZ.js → vue-ui-3d-bar-BHcSmBFt.js} +6 -6
  99. package/dist/{vue-ui-accordion-B3SlkXqV.js → vue-ui-accordion-BWfQ8Imt.js} +3 -3
  100. package/dist/{vue-ui-age-pyramid-BGA_e57_.js → vue-ui-age-pyramid-CKtsF5IW.js} +25 -25
  101. package/dist/{vue-ui-annotator-BHmNl_oD.js → vue-ui-annotator-DQmmDTg7.js} +7 -7
  102. package/dist/{vue-ui-bullet-B8Td03RZ.js → vue-ui-bullet-CZKHPSsG.js} +7 -7
  103. package/dist/{vue-ui-candlestick-aRpv_WG-.js → vue-ui-candlestick-DW7yeLnE.js} +39 -39
  104. package/dist/{vue-ui-carousel-table-yjrmp9Q4.js → vue-ui-carousel-table-Bv0TZYW1.js} +4 -4
  105. package/dist/{vue-ui-chestnut-mlal6Cjv.js → vue-ui-chestnut-BUqGBycr.js} +5 -5
  106. package/dist/{vue-ui-chord-Ddbwnzl7.js → vue-ui-chord-Awtzhq_0.js} +8 -8
  107. package/dist/{vue-ui-circle-pack-DUw81Lbf.js → vue-ui-circle-pack-WTa2Mj2O.js} +37 -37
  108. package/dist/vue-ui-cursor-D6_m463R.js +252 -0
  109. package/dist/vue-ui-dag-tle30Ehr.js +2727 -0
  110. package/dist/{vue-ui-dashboard-BzIopzfw.js → vue-ui-dashboard-BLgMwKmT.js} +68 -68
  111. package/dist/vue-ui-digits-DIZ8pi6C.js +200 -0
  112. package/dist/{vue-ui-donut-D-uqv9-W.js → vue-ui-donut-DY8Q-PAg.js} +88 -88
  113. package/dist/{vue-ui-donut-evolution-C25j-w7G.js → vue-ui-donut-evolution-DGnq03PX.js} +85 -85
  114. package/dist/{vue-ui-dumbbell-DaBN6kZz.js → vue-ui-dumbbell-xRMH2Mlv.js} +33 -33
  115. package/dist/{vue-ui-flow-LBrbktKK.js → vue-ui-flow-C0a8rOyT.js} +42 -42
  116. package/dist/{vue-ui-funnel-StsSjaZJ.js → vue-ui-funnel-D6krkF1a.js} +19 -19
  117. package/dist/{vue-ui-galaxy-DATC0Ww1.js → vue-ui-galaxy-BCkJt9OE.js} +59 -59
  118. package/dist/{vue-ui-gauge-BuSVuoeo.js → vue-ui-gauge-BaH-VYAi.js} +25 -25
  119. package/dist/{vue-ui-gizmo-B4Du388h.js → vue-ui-gizmo-BnCONs1t.js} +3 -3
  120. package/dist/{vue-ui-heatmap-C7jHSpqL.js → vue-ui-heatmap-BYoD6XaS.js} +67 -67
  121. package/dist/{vue-ui-history-plot-CMGhB2Zv.js → vue-ui-history-plot-BZBtIBsY.js} +43 -43
  122. package/dist/{vue-ui-horizontal-bar-BlG3kfkk.js → vue-ui-horizontal-bar-DsDDKUa6.js} +69 -69
  123. package/dist/{vue-ui-kpi-CTUnzHcT.js → vue-ui-kpi-Dn750UNZ.js} +3 -3
  124. package/dist/{vue-ui-mini-loader-DYMh6g7y.js → vue-ui-mini-loader-44NP38K0.js} +2 -2
  125. package/dist/{vue-ui-molecule-BNwKqzIg.js → vue-ui-molecule-C994_mOK.js} +53 -53
  126. package/dist/{vue-ui-mood-radar-Bpfe33cj.js → vue-ui-mood-radar-BI2SAtcM.js} +7 -7
  127. package/dist/{vue-ui-nested-donuts-CG6vyTLr.js → vue-ui-nested-donuts-CSF_bA-I.js} +38 -38
  128. package/dist/{vue-ui-onion-BNrW85xB.js → vue-ui-onion-L5ULuI3B.js} +38 -38
  129. package/dist/{vue-ui-parallel-coordinate-plot-prQ8DLgP.js → vue-ui-parallel-coordinate-plot-CYetuoa5.js} +43 -43
  130. package/dist/{vue-ui-quadrant-mFM3WtKm.js → vue-ui-quadrant-Diwm1-e6.js} +8 -8
  131. package/dist/{vue-ui-quick-chart-CmJEoZEj.js → vue-ui-quick-chart-YBj4Iyk6.js} +51 -51
  132. package/dist/{vue-ui-radar-MheG5gvf.js → vue-ui-radar-D76Mi-4u.js} +41 -41
  133. package/dist/{vue-ui-rating-BAfHKHmb.js → vue-ui-rating-CJjSt6-z.js} +2 -2
  134. package/dist/{vue-ui-relation-circle-BPZDXdVc.js → vue-ui-relation-circle-BlYazckd.js} +19 -19
  135. package/dist/{vue-ui-ridgeline-BPDURc5t.js → vue-ui-ridgeline-DW8JqGxN.js} +8 -8
  136. package/dist/{vue-ui-rings-ByeUycTV.js → vue-ui-rings-De3shW_r.js} +37 -37
  137. package/dist/{vue-ui-scatter-HkSLoM2F.js → vue-ui-scatter-oDhPqRJq.js} +8 -8
  138. package/dist/{vue-ui-skeleton-DtciU6S2.js → vue-ui-skeleton-BUIXG_mY.js} +3 -3
  139. package/dist/vue-ui-smiley-Cni8Q56U.js +377 -0
  140. package/dist/{vue-ui-spark-trend-lSw8HYoA.js → vue-ui-spark-trend-D1Zt5np6.js} +16 -16
  141. package/dist/{vue-ui-sparkbar-DZlTPWdS.js → vue-ui-sparkbar-CdmXCSnj.js} +3 -3
  142. package/dist/{vue-ui-sparkgauge-Cwl9Ksz2.js → vue-ui-sparkgauge-Dn2PQhZj.js} +17 -17
  143. package/dist/{vue-ui-sparkhistogram-Bq2DS4V0.js → vue-ui-sparkhistogram-nrkglHJk.js} +4 -4
  144. package/dist/{vue-ui-sparkline-DbkCbelr.js → vue-ui-sparkline-tz8fAf2C.js} +31 -31
  145. package/dist/{vue-ui-sparkstackbar-DWDEh2j6.js → vue-ui-sparkstackbar-BQPSsF5Q.js} +3 -3
  146. package/dist/{vue-ui-stackbar-BhbkdK0G.js → vue-ui-stackbar-DMO3YIQp.js} +9 -9
  147. package/dist/{vue-ui-stackline-DqKYCBDP.js → vue-ui-stackline-BQo4KoIK.js} +55 -55
  148. package/dist/{vue-ui-strip-plot-BUbyj8j8.js → vue-ui-strip-plot-CJpmLgCV.js} +28 -28
  149. package/dist/{vue-ui-table-B1bx46AB.js → vue-ui-table-Cp4ee_1a.js} +5 -5
  150. package/dist/{vue-ui-table-heatmap-kuly5Mc1.js → vue-ui-table-heatmap-1qpMxFyu.js} +5 -5
  151. package/dist/{vue-ui-table-sparkline-B9YLMDpp.js → vue-ui-table-sparkline-wSJjRJc4.js} +4 -4
  152. package/dist/{vue-ui-thermometer-DGM9Cnnw.js → vue-ui-thermometer-DA8pG0Tr.js} +19 -19
  153. package/dist/{vue-ui-timer-C1uo5WJb.js → vue-ui-timer-Bc0J-YWP.js} +12 -12
  154. package/dist/{vue-ui-tiremarks-B-xq7Ivj.js → vue-ui-tiremarks-DqYsca6Q.js} +6 -6
  155. package/dist/{vue-ui-treemap-VI1FYNqD.js → vue-ui-treemap-BQsPzEFA.js} +51 -51
  156. package/dist/{vue-ui-waffle-WdacXwVf.js → vue-ui-waffle-5wkXlR4p.js} +69 -69
  157. package/dist/{vue-ui-wheel-C7yfIwbK.js → vue-ui-wheel-CkZko1RX.js} +6 -6
  158. package/dist/{vue-ui-word-cloud-BlNxODSZ.js → vue-ui-word-cloud-52bv_Ba-.js} +41 -41
  159. package/dist/{vue-ui-world-vfrFZPI1.js → vue-ui-world-oIyf91PY.js} +6 -6
  160. package/dist/{vue-ui-xy-DHN5H4Ln.js → vue-ui-xy-DIEBv1b8.js} +75 -75
  161. package/dist/{vue-ui-xy-canvas-B3oAOFin.js → vue-ui-xy-canvas-pnm8ar87.js} +127 -127
  162. package/package.json +4 -3
  163. package/dist/usePanZoom-DZtyJi5q.js +0 -127
  164. package/dist/vue-data-ui-BcTiYl7u.js +0 -337
  165. package/dist/vue-ui-cursor-CIynd5w9.js +0 -229
  166. package/dist/vue-ui-digits-BDVx5bMH.js +0 -154
  167. package/dist/vue-ui-smiley-B8k0b8-R.js +0 -852
@@ -0,0 +1,377 @@
1
+ import { createElementBlock as i, openBlock as s, withKeys as K, normalizeStyle as r, normalizeClass as T, createCommentVNode as y, createElementVNode as a, toDisplayString as f, renderSlot as $, unref as M, useSlots as H, ref as x, onMounted as B, watch as N, computed as R, Fragment as P, renderList as q, createVNode as J, withCtx as z, createTextVNode as Q } from "vue";
2
+ import { X as V, h as j, a as W, d as Z, o as _, g as ee } from "./lib-qMPkcvmh.js";
3
+ import { u as te, a as le } from "./useNestedProp-DOOBu_sL.js";
4
+ import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const oe = ["xmlns", "stroke"], ne = ["id"], ie = ["stop-color"], se = ["stop-color"], re = ["stroke"], ue = ["xmlns", "viewBox", "stroke"], de = ["id"], ce = ["stop-color"], ye = ["stop-color"], fe = ["viewBox", "stroke"], ve = {
6
+ __name: "BaseSmilingUnit",
7
+ props: {
8
+ config: { type: Object },
9
+ unit: { type: Number },
10
+ currentRating: { type: Number },
11
+ getActiveColor: { type: Function },
12
+ calcShapeFill: { type: Function },
13
+ isReadonly: { type: Boolean },
14
+ hasBreakdown: { type: Boolean },
15
+ hoveredValue: { type: Number }
16
+ },
17
+ emits: ["rate", "mouseenter", "mouseleave"],
18
+ setup(t, { emit: w }) {
19
+ const g = w;
20
+ return (v, o) => (s(), i("div", {
21
+ tabindex: "0",
22
+ class: T({ "vue-ui-smiley-rated": !t.config.readonly && t.currentRating === t.unit }),
23
+ style: r({
24
+ cursor: t.config.readonly ? "default" : "pointer",
25
+ height: t.config.style.itemSize + "px",
26
+ aspectRatio: "1/1",
27
+ position: "relative"
28
+ }),
29
+ onMouseenter: o[0] || (o[0] = (h) => g("mouseenter")),
30
+ onMouseleave: o[1] || (o[1] = (h) => g("mouseleave")),
31
+ onClick: o[2] || (o[2] = (h) => g("rate", t.unit)),
32
+ onKeyup: o[3] || (o[3] = K((h) => g("rate", t.unit), ["enter"]))
33
+ }, [
34
+ t.config.style.tooltip.show && t.hasBreakdown && t.isReadonly ? (s(), i("div", {
35
+ key: 0,
36
+ class: "vue-ui-rating-tooltip",
37
+ style: r({
38
+ border: `1px solid ${t.config.style.tooltip.borderColor}`,
39
+ position: "absolute",
40
+ top: `${t.config.style.tooltip.offsetY - 48}px`,
41
+ left: "50%",
42
+ transform: "translateX(-50%)",
43
+ width: "fit-content",
44
+ textAlign: "center",
45
+ background: t.config.style.tooltip.backgroundColor,
46
+ display: t.hoveredValue === t.unit - 1 ? "block" : "none",
47
+ padding: "2px 12px",
48
+ borderRadius: t.config.style.tooltip.borderRadius + "px",
49
+ boxShadow: t.config.style.tooltip.boxShadow
50
+ })
51
+ }, [
52
+ a("div", {
53
+ style: r({
54
+ width: "100%",
55
+ display: "flex",
56
+ flexDirection: "row",
57
+ gap: "6px",
58
+ position: "relative",
59
+ textAlign: "center",
60
+ color: t.config.style.tooltip.color
61
+ })
62
+ }, [
63
+ a("span", {
64
+ style: r(`font-size:${t.config.style.tooltip.fontSize}px`)
65
+ }, f(t.unit) + ":", 5),
66
+ a("span", {
67
+ style: r(`font-weight:${t.config.style.tooltip.bold ? "bold" : "normal"};font-size:${t.config.style.tooltip.fontSize}px`)
68
+ }, [
69
+ $(v.$slots, "rating", {}, void 0, !0)
70
+ ], 4),
71
+ a("div", {
72
+ style: r(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.config.style.tooltip.borderColor}`)
73
+ }, " ▼ ", 4)
74
+ ], 4)
75
+ ], 4)) : y("", !0),
76
+ t.config.style.icons.filled ? (s(), i("svg", {
77
+ key: 1,
78
+ xmlns: M(V),
79
+ style: { transition: "all 0.1s ease-in-out", position: "absolute", top: "0", left: "0" },
80
+ height: "100%",
81
+ viewBox: "0 0 24 24",
82
+ "stroke-width": "1.5",
83
+ stroke: t.getActiveColor(t.unit - 1),
84
+ fill: "none",
85
+ "stroke-linecap": "round",
86
+ "stroke-linejoin": "round"
87
+ }, [
88
+ a("defs", null, [
89
+ a("radialGradient", {
90
+ id: `vueUiSmiley${t.unit - 1}`
91
+ }, [
92
+ a("stop", {
93
+ offset: "0%",
94
+ "stop-color": M(j)(t.config.style.colors.active[t.unit - 1], 0.05)
95
+ }, null, 8, ie),
96
+ a("stop", {
97
+ offset: "100%",
98
+ "stop-color": t.config.style.colors.active[t.unit - 1]
99
+ }, null, 8, se)
100
+ ], 8, ne)
101
+ ]),
102
+ $(v.$slots, "path-icon-filled", {}, void 0, !0)
103
+ ], 8, oe)) : (s(), i("svg", {
104
+ key: 2,
105
+ style: { position: "absolute", top: "0", left: "0", transition: "all 0.1s ease-in-out" },
106
+ height: "100%",
107
+ viewBox: "0 0 24 24",
108
+ "stroke-width": "1.5",
109
+ stroke: t.getActiveColor(t.unit - 1),
110
+ fill: "none",
111
+ "stroke-linecap": "round",
112
+ "stroke-linejoin": "round"
113
+ }, [
114
+ $(v.$slots, "path-icon", {}, void 0, !0)
115
+ ], 8, re)),
116
+ t.config.style.icons.filled && t.isReadonly ? (s(), i("svg", {
117
+ key: 3,
118
+ xmlns: M(V),
119
+ style: { transition: "all 0.1s ease-in-out", position: "absolute", top: "0", left: "0" },
120
+ height: "100%",
121
+ viewBox: `0 0 ${t.calcShapeFill(t.unit - 1)} 24`,
122
+ "stroke-width": "1.5",
123
+ stroke: t.config.style.colors.activeReadonly[t.unit - 1],
124
+ fill: "none",
125
+ "stroke-linecap": "round",
126
+ "stroke-linejoin": "round"
127
+ }, [
128
+ a("defs", null, [
129
+ a("radialGradient", {
130
+ id: `vueUiSmiley${t.unit - 1}`
131
+ }, [
132
+ a("stop", {
133
+ offset: "0%",
134
+ "stop-color": M(j)(t.config.style.colors.activeReadonly[t.unit - 1], 0.05)
135
+ }, null, 8, ce),
136
+ a("stop", {
137
+ offset: "100%",
138
+ "stop-color": t.config.style.colors.activeReadonly[t.unit - 1]
139
+ }, null, 8, ye)
140
+ ], 8, de)
141
+ ]),
142
+ $(v.$slots, "path-icon-filled-readonly", {}, void 0, !0)
143
+ ], 8, ue)) : y("", !0),
144
+ !t.config.style.icons.filled && t.isReadonly ? (s(), i("svg", {
145
+ key: 4,
146
+ style: { position: "absolute", top: "0", left: "0", transition: "all 0.1s ease-in-out" },
147
+ height: "100%",
148
+ viewBox: `0 0 ${t.calcShapeFill(t.unit - 1)} 24`,
149
+ "stroke-width": "1.5",
150
+ stroke: t.config.style.colors.activeReadonly[t.unit - 1],
151
+ fill: "none",
152
+ "stroke-linecap": "round",
153
+ "stroke-linejoin": "round"
154
+ }, [
155
+ $(v.$slots, "path-icon-readonly", {}, void 0, !0)
156
+ ], 8, fe)) : y("", !0)
157
+ ], 38));
158
+ }
159
+ }, ge = /* @__PURE__ */ ae(ve, [["__scopeId", "data-v-ff349576"]]), me = {
160
+ key: 0,
161
+ class: "vue-ui-rating-title",
162
+ style: { width: "100%" }
163
+ }, he = ["d", "fill"], pe = ["d"], be = ["d", "fill"], $e = ["d"], we = {
164
+ __name: "vue-ui-smiley",
165
+ props: {
166
+ config: {
167
+ type: Object,
168
+ default() {
169
+ return {};
170
+ }
171
+ },
172
+ dataset: {
173
+ type: Object,
174
+ default() {
175
+ return {};
176
+ }
177
+ }
178
+ },
179
+ emits: ["rate"],
180
+ setup(t, { expose: w, emit: g }) {
181
+ const { vue_ui_smiley: v } = te(), o = t, h = H(), U = g, m = x(null);
182
+ B(() => {
183
+ h["chart-background"] && console.warn("VueUiSmiley does not support the #chart-background slot.");
184
+ });
185
+ function S() {
186
+ (!Object.hasOwn(o.dataset, "rating") || _(o.dataset)) && ee({
187
+ componentName: "VueUiSmiley",
188
+ type: "datasetAttribute",
189
+ property: "rating"
190
+ });
191
+ }
192
+ B(S);
193
+ const e = x(I());
194
+ function I() {
195
+ return le({
196
+ userConfig: o.config,
197
+ defaultConfig: v
198
+ });
199
+ }
200
+ N(() => o.config, (l) => {
201
+ e.value = I(), k.value = e.value.readonly, S();
202
+ }, { deep: !0 });
203
+ const F = R(() => {
204
+ const l = o.dataset.rating;
205
+ return l && typeof l == "object" && !Array.isArray(l) ? O(l) : l ?? null;
206
+ }), X = R(() => typeof o.dataset.rating == "object" && !Array.isArray(o.dataset.rating)), d = x(F.value);
207
+ N(
208
+ F,
209
+ (l) => {
210
+ d.value = l;
211
+ }
212
+ );
213
+ const k = x(e.value.readonly), G = [
214
+ {
215
+ key: "smiley_0",
216
+ pathIconFilled: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",
217
+ pathIcon: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 10l.01 0 M15 10l.01 0 M9.5 15.25a3.5 3.5 0 0 1 5 0",
218
+ pathIconFilledReadonly: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",
219
+ pathIconReadonly: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 10l.01 0 M15 10l.01 0 M9.5 15.25a3.5 3.5 0 0 1 5 0"
220
+ },
221
+ {
222
+ key: "smiley_1",
223
+ pathIconFilled: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",
224
+ pathIcon: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 10l.01 0 M15 10l.01 0 M9 15l6 0",
225
+ pathIconFilledReadonly: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",
226
+ pathIconReadonly: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 10l.01 0 M15 10l.01 0 M9 15l6 0"
227
+ },
228
+ {
229
+ key: "smiley_2",
230
+ pathIconFilled: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",
231
+ pathIcon: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 10l.01 0 M15 10l.01 0",
232
+ pathIconFilledReadonly: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",
233
+ pathIconReadonly: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 10l.01 0 M15 10l.01 0"
234
+ },
235
+ {
236
+ key: "smiley_3",
237
+ pathIconFilled: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z",
238
+ pathIcon: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 10l.01 0 M15 10l.01 0 M9.5 15a3.5 3.5 0 0 0 5 0",
239
+ pathIconFilledReadonly: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z",
240
+ pathIconReadonly: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 10l.01 0 M15 10l.01 0 M9.5 15a3.5 3.5 0 0 0 5 0"
241
+ },
242
+ {
243
+ key: "smiley_4",
244
+ pathIconFilled: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z",
245
+ pathIcon: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 9l.01 0 M15 9l.01 0 M8 13a4 4 0 1 0 8 0h-8",
246
+ pathIconFilledReadonly: "M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z",
247
+ pathIconReadonly: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M9 9l.01 0 M15 9l.01 0 M8 13a4 4 0 1 0 8 0h-8"
248
+ }
249
+ ];
250
+ function O(l) {
251
+ if (l == null) return null;
252
+ let n = 0, u = 0;
253
+ for (const c in l) {
254
+ const b = Number(c), A = l[c];
255
+ Number.isFinite(b) && (n += b * A, u += A);
256
+ }
257
+ return u === 0 ? 0 : n / u;
258
+ }
259
+ function Y(l) {
260
+ const n = d.value - l, u = 24;
261
+ switch (!0) {
262
+ case n < 0:
263
+ return 0;
264
+ case n > 1:
265
+ return 1 * u;
266
+ default:
267
+ return n * u;
268
+ }
269
+ }
270
+ function C(l) {
271
+ return e.value.readonly ? e.value.style.colors.inactive[l] : d.value === l + 1 ? e.value.style.icons.useGradient && e.value.style.icons.filled ? `url(#vueUiSmiley${l})` : e.value.style.colors.active[l] : m.value !== null && m.value === l ? e.value.style.icons.useGradient && e.value.style.icons.filled ? `url(#vueUiSmiley${l})` : e.value.style.colors.active[l] : e.value.style.colors.inactive[l];
272
+ }
273
+ const p = R(() => ({ value: l, tooltip: n = !1 }) => W(
274
+ n ? e.value.style.tooltip.formatter : e.value.style.rating.formatter,
275
+ l,
276
+ Z({
277
+ v: l,
278
+ r: n ? e.value.style.tooltip.roundingValue : e.value.style.rating.roundingValue
279
+ }),
280
+ e.value
281
+ ));
282
+ function L(l) {
283
+ k.value || (d.value = l, U("rate", l));
284
+ }
285
+ function D() {
286
+ return d.value;
287
+ }
288
+ function E(l = !0) {
289
+ k.value = l;
290
+ }
291
+ return w({
292
+ getData: D,
293
+ toggleReadonly: E
294
+ }), (l, n) => (s(), i("div", {
295
+ class: "vue-data-ui-component vue-ui-smiley",
296
+ style: r(`background:${e.value.style.backgroundColor};font-family:${e.value.style.fontFamily};width:100%;`),
297
+ onMouseleave: n[1] || (n[1] = (u) => m.value = void 0)
298
+ }, [
299
+ e.value.style.title.text ? (s(), i("div", me, [
300
+ a("div", {
301
+ style: r(`color:${e.value.style.title.color};font-weight:${e.value.style.title.bold ? "bold" : "normal"};text-align:${e.value.style.title.textAlign};margin-bottom:${e.value.style.title.offsetY}px;font-size:${e.value.style.title.fontSize}px`)
302
+ }, f(e.value.style.title.text), 5),
303
+ e.value.style.title.subtitle.text ? (s(), i("div", {
304
+ key: 0,
305
+ style: r(`color:${e.value.style.title.subtitle.color};font-size:${e.value.style.title.subtitle.fontSize}px;text-align:${e.value.style.title.textAlign};margin-bottom:${e.value.style.title.subtitle.offsetY}px;font-weight:${e.value.style.title.subtitle.bold ? "bold" : "normal"}`)
306
+ }, f(e.value.style.title.subtitle.text), 5)) : y("", !0)
307
+ ])) : y("", !0),
308
+ e.value.style.rating.show && e.value.style.rating.position === "top" ? (s(), i("div", {
309
+ key: 1,
310
+ style: r(`width:100%;text-align:center;margin-bottom:${e.value.style.rating.offsetY}px;font-size:${e.value.style.rating.fontSize}px;font-weight:${e.value.style.rating.bold ? "bold" : "normal"};margin-left:${e.value.style.rating.offsetX}px`)
311
+ }, f(p.value({ value: d.value })), 5)) : y("", !0),
312
+ a("div", {
313
+ class: "vue-ui-smiley-wrapper",
314
+ style: r(`overflow:visible;height:${e.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)
315
+ }, [
316
+ e.value.style.rating.show && e.value.style.rating.position === "left" ? (s(), i("div", {
317
+ key: 0,
318
+ style: r(`width:fit-content;text-align:center;margin-bottom:${e.value.style.rating.offsetY}px;font-size:${e.value.style.rating.fontSize}px;font-weight:${e.value.style.rating.bold ? "bold" : "normal"};padding-right:${e.value.style.rating.offsetX}px`)
319
+ }, f(p.value({ value: d.value })), 5)) : y("", !0),
320
+ (s(), i(P, null, q(G, (u, c) => J(ge, {
321
+ key: u.key,
322
+ config: e.value,
323
+ unit: c + 1,
324
+ currentRating: d.value,
325
+ isReadonly: k.value,
326
+ hasBreakdown: X.value,
327
+ hoveredValue: m.value,
328
+ getActiveColor: C,
329
+ calcShapeFill: Y,
330
+ onMouseenter: (b) => m.value = c,
331
+ onMouseleave: n[0] || (n[0] = (b) => m.value = null),
332
+ onRate: (b) => L(c + 1)
333
+ }, {
334
+ rating: z(() => [
335
+ Q(f(p.value({ value: o.dataset.rating[String(c + 1)], tooltip: !0 })), 1)
336
+ ]),
337
+ "path-icon-filled": z(() => [
338
+ a("path", {
339
+ d: u.pathIconFilled,
340
+ "stroke-width": "0",
341
+ fill: C(c)
342
+ }, null, 8, he)
343
+ ]),
344
+ "path-icon": z(() => [
345
+ a("path", {
346
+ d: u.pathIcon
347
+ }, null, 8, pe)
348
+ ]),
349
+ "path-icon-filled-readonly": z(() => [
350
+ a("path", {
351
+ d: u.pathIconFilledReadonly,
352
+ "stroke-width": "0",
353
+ fill: e.value.style.icons.useGradient ? `url(#vueUiSmiley${c})` : e.value.style.colors.activeReadonly[c]
354
+ }, null, 8, be)
355
+ ]),
356
+ "path-icon-readonly": z(() => [
357
+ a("path", {
358
+ d: u.pathIconReadonly
359
+ }, null, 8, $e)
360
+ ]),
361
+ _: 2
362
+ }, 1032, ["config", "unit", "currentRating", "isReadonly", "hasBreakdown", "hoveredValue", "onMouseenter", "onRate"])), 64)),
363
+ e.value.style.rating.show && e.value.style.rating.position === "right" ? (s(), i("div", {
364
+ key: 1,
365
+ style: r(`width:fit-content;text-align:center;margin-bottom:${e.value.style.rating.offsetY}px;font-size:${e.value.style.rating.fontSize}px;font-weight:${e.value.style.rating.bold ? "bold" : "normal"};padding-left:${e.value.style.rating.offsetX}px`)
366
+ }, f(p.value({ value: d.value })), 5)) : y("", !0)
367
+ ], 4),
368
+ e.value.style.rating.show && e.value.style.rating.position === "bottom" ? (s(), i("div", {
369
+ key: 2,
370
+ style: r(`width:100%;text-align:center;margin-top:${e.value.style.rating.offsetY}px;font-size:${e.value.style.rating.fontSize}px;font-weight:${e.value.style.rating.bold ? "bold" : "normal"};margin-left:${e.value.style.rating.offsetX}px`)
371
+ }, f(p.value({ value: d.value })), 5)) : y("", !0)
372
+ ], 36));
373
+ }
374
+ };
375
+ export {
376
+ we as default
377
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineAsyncComponent as _e, ref as c, toRefs as we, computed as u, watch as G, nextTick as K, onMounted as Le, createElementBlock as r, openBlock as s, normalizeStyle as Ae, createCommentVNode as h, createBlock as xe, unref as i, createVNode as $e, createElementVNode as z, renderSlot as Q, toDisplayString as Y } from "vue";
2
- import { c as Te, t as Se, J as ee, o as R, g as Ne, M as w, ah as ze, X as Fe, s as Z, z as te, d as le, a as Be } from "./lib-DUaaQGCv.js";
3
- import { t as Me, u as Ee } from "./useResponsive-DfdjqQps.js";
4
- import { u as De, a as P } from "./useNestedProp-CVGae3Qt.js";
2
+ import { c as Te, t as Se, Q as ee, o as R, g as Ne, T as w, am as ze, X as Fe, s as Z, z as te, d as le, a as Be } from "./lib-qMPkcvmh.js";
3
+ import { t as Ee, u as Me } from "./useResponsive-DfdjqQps.js";
4
+ import { u as De, a as P } from "./useNestedProp-DOOBu_sL.js";
5
5
  import { u as Ie, B as je } from "./BaseScanner-BgWxam9d.js";
6
6
  import { u as Oe } from "./useFitSvgText-2crs6Fv5.js";
7
7
  import { u as Ve } from "./useThemeCheck-DGJ31Vi5.js";
@@ -23,7 +23,7 @@ const ae = { style: { backgroundColor: "#1A1A1A", dataLabel: { color: "#CCCCCC"
23
23
  default: ie,
24
24
  hack: ue,
25
25
  zen: se
26
- }, Symbol.toStringTag, { value: "Module" })), Re = ["id"], Ze = ["xmlns", "viewBox"], Pe = ["width", "height"], Ue = ["id"], We = ["stop-color"], He = ["stop-color"], qe = { key: 1 }, Je = ["d", "fill"], Xe = ["d", "fill"], Ke = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Qe = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Ye = ["d"], et = ["fill", "d"], tt = ["x", "y", "width", "height"], lt = ["x", "y", "fill", "font-size", "font-weight"], at = ["stroke", "cx", "cy", "fill"], nt = ["x", "y", "font-size", "fill", "font-weight"], ot = {
26
+ }, Symbol.toStringTag, { value: "Module" })), Re = ["id"], Ze = ["xmlns", "viewBox"], Pe = ["width", "height"], Ue = ["id"], We = ["stop-color"], He = ["stop-color"], qe = { key: 1 }, Xe = ["d", "fill"], Je = ["d", "fill"], Ke = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Qe = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Ye = ["d"], et = ["fill", "d"], tt = ["x", "y", "width", "height"], lt = ["x", "y", "fill", "font-size", "font-weight"], at = ["stroke", "cx", "cy", "fill"], nt = ["x", "y", "font-size", "fill", "font-weight"], ot = {
27
27
  __name: "vue-ui-spark-trend",
28
28
  props: {
29
29
  config: {
@@ -40,10 +40,10 @@ const ae = { style: { backgroundColor: "#1A1A1A", dataLabel: { color: "#CCCCCC"
40
40
  }
41
41
  },
42
42
  setup(ve) {
43
- const de = _e(() => import("./PackageVersion-BAF3mEBQ.js")), { vue_ui_spark_trend: ce } = De(), { isThemeValid: fe, warnInvalidTheme: he } = Ve(), y = ve, F = c(null), U = c(null), W = c(null), L = c(null), x = c(null), $ = c(!1), p = c(null), A = c(Te()), e = c(E()), { loading: C, FINAL_DATASET: B, manualLoading: M } = Ie({
43
+ const de = _e(() => import("./PackageVersion-B9RA2_BM.js")), { vue_ui_spark_trend: ce } = De(), { isThemeValid: fe, warnInvalidTheme: he } = Ve(), y = ve, F = c(null), U = c(null), W = c(null), L = c(null), x = c(null), $ = c(!1), p = c(null), A = c(Te()), e = c(M()), { loading: C, FINAL_DATASET: B, manualLoading: E } = Ie({
44
44
  ...we(y),
45
45
  FINAL_CONFIG: e,
46
- prepareConfig: E,
46
+ prepareConfig: M,
47
47
  skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233],
48
48
  skeletonConfig: Se({
49
49
  defaultConfig: e.value,
@@ -60,7 +60,7 @@ const ae = { style: { backgroundColor: "#1A1A1A", dataLabel: { color: "#CCCCCC"
60
60
  }
61
61
  })
62
62
  });
63
- function E() {
63
+ function M() {
64
64
  const t = P({
65
65
  userConfig: y.config,
66
66
  defaultConfig: ce
@@ -82,7 +82,7 @@ const ae = { style: { backgroundColor: "#1A1A1A", dataLabel: { color: "#CCCCCC"
82
82
  threshold: e.value.downsample.threshold
83
83
  }));
84
84
  G(() => y.config, (t) => {
85
- e.value = E(), j.value = e.value.style.width, _.value = e.value.style.height, H();
85
+ e.value = M(), j.value = e.value.style.width, _.value = e.value.style.height, H();
86
86
  }, { deep: !0 });
87
87
  function D(t) {
88
88
  return t.map((l) => w(l));
@@ -98,7 +98,7 @@ const ae = { style: { backgroundColor: "#1A1A1A", dataLabel: { color: "#CCCCCC"
98
98
  }, { deep: !0, immediate: !0 }), G(
99
99
  () => JSON.stringify(y.dataset),
100
100
  () => {
101
- p.value && (cancelAnimationFrame(p.value), p.value = null), M.value = R(y.dataset);
101
+ p.value && (cancelAnimationFrame(p.value), p.value = null), E.value = R(y.dataset);
102
102
  const t = g.value;
103
103
  k.value = e.value.style.animation.show ? Array(t.length).fill(null) : t.map((l) => Number.isFinite(l) ? l : null), I(), K(() => N(".vue-ui-sparktrend-progress-label", 6));
104
104
  },
@@ -109,8 +109,8 @@ const ae = { style: { backgroundColor: "#1A1A1A", dataLabel: { color: "#CCCCCC"
109
109
  if (!C.value && e.value.style.animation.show && e.value.style.animation.animationFrames && B.value.length > 1) {
110
110
  let b = function() {
111
111
  $.value = !0;
112
- let J = performance.now(), X = J - o;
113
- X > l ? (o = J - X % l, f < g.value.length ? (k.value.push(g.value[f]), f += 1, p.value = requestAnimationFrame(b)) : (cancelAnimationFrame(p.value), k.value = D(g.value), $.value = !1, N(".vue-ui-sparktrend-progress-label", 6))) : p.value = requestAnimationFrame(b);
112
+ let X = performance.now(), J = X - o;
113
+ J > l ? (o = X - J % l, f < g.value.length ? (k.value.push(g.value[f]), f += 1, p.value = requestAnimationFrame(b)) : (cancelAnimationFrame(p.value), k.value = D(g.value), $.value = !1, N(".vue-ui-sparktrend-progress-label", 6))) : p.value = requestAnimationFrame(b);
114
114
  };
115
115
  k.value = [];
116
116
  let f = 0;
@@ -126,9 +126,9 @@ const ae = { style: { backgroundColor: "#1A1A1A", dataLabel: { color: "#CCCCCC"
126
126
  componentName: "VueUiSparkTrend",
127
127
  type: "dataset",
128
128
  debug: ye.value
129
- }), M.value = !0), R(y.dataset) || (M.value = !1), e.value.responsive) {
130
- const t = Me(() => {
131
- const { width: l, height: o } = Ee({
129
+ }), E.value = !0), R(y.dataset) || (E.value = !1), e.value.responsive) {
130
+ const t = Ee(() => {
131
+ const { width: l, height: o } = Me({
132
132
  chart: F.value,
133
133
  source: W.value
134
134
  });
@@ -255,12 +255,12 @@ const ae = { style: { backgroundColor: "#1A1A1A", dataLabel: { color: "#CCCCCC"
255
255
  d: `M ${a.value[0].x},${n.value.bottom} ${i(te)(a.value)} L ${a.value.at(-1).x},${n.value.bottom} Z`,
256
256
  fill: e.value.style.area.useGradient ? `url(#pill_gradient_${A.value})` : i(Z)(e.value.style.line.useColorTrend ? m.value : e.value.style.line.stroke, e.value.style.area.opacity),
257
257
  stroke: "none"
258
- }, null, 8, Je)) : (s(), r("path", {
258
+ }, null, 8, Xe)) : (s(), r("path", {
259
259
  key: 1,
260
260
  d: `M${be.value}Z`,
261
261
  fill: e.value.style.area.useGradient ? `url(#pill_gradient_${A.value})` : i(Z)(e.value.style.line.useColorTrend ? m.value : e.value.style.line.stroke, e.value.style.area.opacity),
262
262
  stroke: "none"
263
- }, null, 8, Xe))
263
+ }, null, 8, Je))
264
264
  ])) : h("", !0),
265
265
  e.value.style.line.smooth && a.value.length ? (s(), r("path", {
266
266
  key: 2,
@@ -1,6 +1,6 @@
1
1
  import { defineAsyncComponent as ue, useSlots as ie, onMounted as L, ref as b, toRefs as ce, computed as x, watch as N, nextTick as de, createElementBlock as u, openBlock as r, normalizeStyle as v, unref as o, renderSlot as D, createCommentVNode as f, createBlock as ve, normalizeProps as fe, mergeProps as P, createElementVNode as c, toDisplayString as p, Fragment as O, renderList as ge, createVNode as pe } from "vue";
2
- import { c as ye, t as me, i as he, p as A, j as be, o as ke, g as M, k as Ce, l as xe, s as $, a as _, d as w, X as Ae, h as _e } from "./lib-DUaaQGCv.js";
3
- import { u as we, a as F } from "./useNestedProp-CVGae3Qt.js";
2
+ import { c as ye, t as me, i as he, p as A, j as be, o as ke, g as M, k as Ce, l as xe, s as $, a as _, d as w, X as Ae, h as _e } from "./lib-qMPkcvmh.js";
3
+ import { u as we, a as F } from "./useNestedProp-DOOBu_sL.js";
4
4
  import { u as Se, B as De } from "./BaseScanner-BgWxam9d.js";
5
5
  import { u as $e } from "./useThemeCheck-DGJ31Vi5.js";
6
6
  const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A3A3A" }, bar: { gradient: { underlayerColor: "#1A1A1A" } }, labels: { name: { color: "#CCCCCC" } }, title: { color: "#CCCCCC" } } }, V = { style: { backgroundColor: "#FFF8E1", gutter: { backgroundColor: "#ded6ca" }, bar: { gradient: { underlayerColor: "#FFF8E1" } }, labels: { name: { color: "#424242" } }, title: { color: "#424242" } } }, U = { style: { backgroundColor: "#1E1E1E", gutter: { backgroundColor: "#2E2E2E" }, bar: { gradient: { underlayerColor: "#FFF8E1" } }, labels: { name: { color: "#BDBDBD" } }, title: { color: "#BDBDBD" } } }, R = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#333333" }, bar: { gradient: { underlayerColor: "#1A1A1A" } }, labels: { name: { color: "#99CC99" } }, title: { color: "#66CC66" } } }, W = { style: { backgroundColor: "#fbfafa", gutter: { backgroundColor: "#f5f0eb" }, bar: { gradient: { underlayerColor: "#fbfafa" } }, labels: { name: { color: "#8A9892" } } } }, G = { style: { backgroundColor: "#f6f6fb", bar: { gradient: { underlayerColor: "#f6f6fb" } }, labels: { name: { color: "#50606C" } } } }, q = {
@@ -52,7 +52,7 @@ const j = { style: { backgroundColor: "#1A1A1A", gutter: { backgroundColor: "#3A
52
52
  },
53
53
  emits: ["selectDatapoint"],
54
54
  setup(H, { emit: X }) {
55
- const J = ue(() => import("./PackageVersion-BAF3mEBQ.js")), { vue_ui_sparkbar: K } = we(), { isThemeValid: Q, warnInvalidTheme: Y } = $e(), g = H, Z = ie();
55
+ const J = ue(() => import("./PackageVersion-B9RA2_BM.js")), { vue_ui_sparkbar: K } = we(), { isThemeValid: Q, warnInvalidTheme: Y } = $e(), g = H, Z = ie();
56
56
  L(() => {
57
57
  Z["chart-background"] && console.warn("VueUiSparkbar does not support the #chart-background slot.");
58
58
  });
@@ -1,25 +1,25 @@
1
- import { defineAsyncComponent as K, ref as p, toRefs as Q, onMounted as F, computed as n, watch as z, createElementBlock as i, openBlock as r, normalizeStyle as y, createCommentVNode as f, createBlock as W, toDisplayString as k, unref as u, createVNode as Z, createElementVNode as g, renderSlot as M, normalizeClass as ee } from "vue";
2
- import { u as te, a as C } from "./useNestedProp-CVGae3Qt.js";
3
- import { c as ae, t as le, o as oe, g as N, k as se, ai as ne, X as re, a as ue, M as A, d as ie } from "./lib-DUaaQGCv.js";
1
+ import { defineAsyncComponent as K, ref as p, toRefs as Q, onMounted as F, computed as n, watch as z, createElementBlock as i, openBlock as r, normalizeStyle as y, createCommentVNode as f, createBlock as W, toDisplayString as k, unref as u, createVNode as Z, createElementVNode as g, renderSlot as N, normalizeClass as ee } from "vue";
2
+ import { u as te, a as C } from "./useNestedProp-DOOBu_sL.js";
3
+ import { c as ae, t as le, o as oe, g as E, k as se, an as ne, X as re, a as ue, T as A, d as ie } from "./lib-qMPkcvmh.js";
4
4
  import { u as ce, B as ve } from "./BaseScanner-BgWxam9d.js";
5
5
  import { u as de } from "./useThemeCheck-DGJ31Vi5.js";
6
6
  import { u as fe } from "./useChartAccessibility-9icAAmYg.js";
7
- const E = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLabel: { color: "#CCCCCC" }, gutter: { color: "#3A3A3A" } } }, O = { style: { background: "#FFF8E1", title: { color: "#424242" }, dataLabel: { color: "#424242" }, colors: { min: "#F57C00", max: "#D32F2F" }, gutter: { color: "#5D403740" } } }, j = { style: { background: "#1E1E1E", title: { color: "#BDBDBD" }, dataLabel: { color: "#BDBDBD" }, colors: { min: "#F57C00", max: "#D32F2F" }, gutter: { color: "#5D403740" } } }, T = { style: { background: "#1A1A1A", title: { color: "#66CC66" }, dataLabel: { color: "#AACCAA" }, colors: { min: "#334C33", max: "#33CC33" }, track: { color: "#33CC33" }, gutter: { color: "#333333" } } }, I = { style: { background: "#fbfafa", title: { color: "#8A9892" }, dataLabel: { color: "#A0AC94" }, colors: { min: "#C09E85", max: "#B9B99D" }, track: { color: "#B9B99D" }, gutter: { color: "#f5f0eb" } } }, P = { style: { background: "#f6f6fb", title: { color: "#50606C" }, dataLabel: { color: "#61747E" }, colors: { min: "#92B0AB", max: "#4A6A75" }, track: { color: "#4A6A75" }, gutter: { color: "#e1e5e8" } } }, R = {
7
+ const M = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLabel: { color: "#CCCCCC" }, gutter: { color: "#3A3A3A" } } }, O = { style: { background: "#FFF8E1", title: { color: "#424242" }, dataLabel: { color: "#424242" }, colors: { min: "#F57C00", max: "#D32F2F" }, gutter: { color: "#5D403740" } } }, T = { style: { background: "#1E1E1E", title: { color: "#BDBDBD" }, dataLabel: { color: "#BDBDBD" }, colors: { min: "#F57C00", max: "#D32F2F" }, gutter: { color: "#5D403740" } } }, j = { style: { background: "#1A1A1A", title: { color: "#66CC66" }, dataLabel: { color: "#AACCAA" }, colors: { min: "#334C33", max: "#33CC33" }, track: { color: "#33CC33" }, gutter: { color: "#333333" } } }, I = { style: { background: "#fbfafa", title: { color: "#8A9892" }, dataLabel: { color: "#A0AC94" }, colors: { min: "#C09E85", max: "#B9B99D" }, track: { color: "#B9B99D" }, gutter: { color: "#f5f0eb" } } }, P = { style: { background: "#f6f6fb", title: { color: "#50606C" }, dataLabel: { color: "#61747E" }, colors: { min: "#92B0AB", max: "#4A6A75" }, track: { color: "#4A6A75" }, gutter: { color: "#e1e5e8" } } }, R = {
8
8
  default: {},
9
- dark: E,
9
+ dark: M,
10
10
  celebration: O,
11
- celebrationNight: j,
12
- hack: T,
11
+ celebrationNight: T,
12
+ hack: j,
13
13
  zen: I,
14
14
  concrete: P
15
15
  }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16
16
  __proto__: null,
17
17
  celebration: O,
18
- celebrationNight: j,
18
+ celebrationNight: T,
19
19
  concrete: P,
20
- dark: E,
20
+ dark: M,
21
21
  default: R,
22
- hack: T,
22
+ hack: j,
23
23
  zen: I
24
24
  }, Symbol.toStringTag, { value: "Module" })), ge = ["xmlns", "viewBox"], me = ["width", "height"], ye = ["id"], be = ["stop-color"], he = ["stop-color"], pe = ["d", "stroke", "stroke-linecap"], ke = ["d", "stroke", "stroke-linecap", "stroke-dashoffset"], Ce = ["x", "y", "width", "height"], Ae = ["x", "y", "font-size", "fill", "font-weight"], _e = {
25
25
  key: 2,
@@ -42,7 +42,7 @@ const E = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
42
42
  }
43
43
  },
44
44
  setup(U) {
45
- const G = K(() => import("./PackageVersion-BAF3mEBQ.js")), { vue_ui_sparkgauge: V } = te(), { isThemeValid: q, warnInvalidTheme: X } = de(), c = U, _ = p(ae()), e = p(h()), { loading: b, FINAL_DATASET: v } = ce({
45
+ const G = K(() => import("./PackageVersion-B9RA2_BM.js")), { vue_ui_sparkgauge: V } = te(), { isThemeValid: q, warnInvalidTheme: X } = de(), c = U, _ = p(ae()), e = p(h()), { loading: b, FINAL_DATASET: v } = ce({
46
46
  ...Q(c),
47
47
  FINAL_CONFIG: e,
48
48
  prepareConfig: h,
@@ -94,7 +94,7 @@ const E = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
94
94
  });
95
95
  const x = n(() => e.value.debug);
96
96
  function w() {
97
- oe(c.dataset) ? N({
97
+ oe(c.dataset) ? E({
98
98
  componentName: "VueUiSparkgauge",
99
99
  type: "dataset",
100
100
  debug: x.value
@@ -102,7 +102,7 @@ const E = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
102
102
  datasetObject: c.dataset,
103
103
  requiredAttributes: ["value", "min", "max"]
104
104
  }).forEach((t) => {
105
- N({
105
+ E({
106
106
  componentName: "VueUiSparkgauge",
107
107
  type: "datasetAttribute",
108
108
  property: t,
@@ -171,7 +171,7 @@ const E = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
171
171
  pointerEvents: "none"
172
172
  }
173
173
  }, [
174
- M(t.$slots, "chart-background")
174
+ N(t.$slots, "chart-background")
175
175
  ], 8, me)) : f("", !0),
176
176
  g("defs", null, [
177
177
  g("linearGradient", {
@@ -244,17 +244,17 @@ const E = { style: { background: "#1A1A1A", title: { color: "#CCCCCC" }, dataLab
244
244
  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}`)
245
245
  }, k(m.value), 5)) : f("", !0),
246
246
  t.$slots.source ? (r(), i("div", _e, [
247
- M(t.$slots, "source")
247
+ N(t.$slots, "source")
248
248
  ], 512)) : f("", !0),
249
249
  u(b) ? (r(), W(ve, { key: 3 })) : f("", !0)
250
250
  ], 4));
251
251
  }
252
- }, Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
252
+ }, Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
253
253
  __proto__: null,
254
254
  default: xe
255
255
  }, Symbol.toStringTag, { value: "Module" }));
256
256
  export {
257
257
  xe as _,
258
- Me as a,
258
+ Ne as a,
259
259
  ze as v
260
260
  };
@@ -1,12 +1,12 @@
1
1
  import { useCssVars as Le, computed as k, defineAsyncComponent as $e, ref as h, toRefs as Se, onMounted as X, watch as G, nextTick as P, createElementBlock as o, openBlock as a, normalizeStyle as F, createCommentVNode as d, createBlock as q, createElementVNode as f, createTextVNode as ze, toDisplayString as g, unref as r, createVNode as Fe, renderSlot as Y, Fragment as y, renderList as b, normalizeClass as J } from "vue";
2
- import { c as De, t as Be, o as Ee, g as K, k as Me, s as p, a as Q, d as Z, X as Te, h as N } from "./lib-DUaaQGCv.js";
2
+ import { c as De, t as Be, o as Ee, g as K, k as Me, s as p, a as Q, d as Z, X as Te, h as N } from "./lib-qMPkcvmh.js";
3
3
  import { t as Ie, u as Ne } from "./useResponsive-DfdjqQps.js";
4
- import { u as He, a as H } from "./useNestedProp-CVGae3Qt.js";
4
+ import { u as He, a as H } from "./useNestedProp-DOOBu_sL.js";
5
5
  import { u as Oe, B as Ve } from "./BaseScanner-BgWxam9d.js";
6
6
  import { u as We } from "./useFitSvgText-2crs6Fv5.js";
7
7
  import { u as je } from "./useThemeCheck-DGJ31Vi5.js";
8
8
  import { u as Re } from "./useChartAccessibility-9icAAmYg.js";
9
- import { _ as Ue } from "./Shape-rPzC8L-O.js";
9
+ import { _ as Ue } from "./Shape-BEGGcaL8.js";
10
10
  import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CCCCCC" }, valueLabel: { color: "#CCCCCC" }, timeLabel: { color: "#CCCCCC" } }, selector: { stroke: "#5A5A5A" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } }, te = { style: { backgroundColor: "#FFF8E1", bars: { colors: { positive: "#D32F2F", negative: "#F57C00" } }, labels: { value: { color: "#424242" }, valueLabel: { color: "#424242" }, timeLabel: { color: "#757575" } }, selector: { stroke: "#D32F2F" }, title: { color: "#424242", subtitle: { color: "#757575" } } } }, le = { style: { backgroundColor: "#1E1E1E", bars: { colors: { positive: "#D32F2F", negative: "#F57C00" } }, labels: { value: { color: "#BDBDBD" }, valueLabel: { color: "#BDBDBD" }, timeLabel: { color: "#BDBDBD" } }, selector: { stroke: "#D32F2F" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } }, ae = { style: { backgroundColor: "#1A1A1A", bars: { colors: { positive: "#66CC66" } }, labels: { value: { color: "#AACCAA" }, valueLabel: { color: "#99CC99" }, timeLabel: { color: "#99AA99" } }, selector: { stroke: "#00FF00" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } }, oe = { style: { backgroundColor: "#fbfafa", bars: { colors: { positive: "#B9B99D", negative: "#C09E85" } }, labels: { value: { color: "#A0AC94" }, valueLabel: { color: "#A0AC94" }, timeLabel: { color: "#8A9892" } }, selector: { stroke: "#BBC4D3" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } }, se = { style: { backgroundColor: "#f6f6fb", bars: { colors: { positive: "#4A6A75" } }, labels: { value: { color: "#61747E" }, valueLabel: { color: "#8A9892" }, timeLabel: { color: "#50606C" } }, selector: { stroke: "#404C4D" }, title: { color: "#50606C", subtitle: { color: "#718890" } } } }, ie = {
12
12
  default: {},
@@ -46,7 +46,7 @@ const ee = { style: { backgroundColor: "#1A1A1A", labels: { value: { color: "#CC
46
46
  Le((l) => ({
47
47
  v47f58673: Ce.value
48
48
  }));
49
- const ne = $e(() => import("./PackageVersion-BAF3mEBQ.js")), { vue_ui_sparkhistogram: ve } = He(), { isThemeValid: ce, warnInvalidTheme: de } = je(), m = ue, C = h(De()), O = h(null), V = h(null), D = h(null), A = h(null), L = h(null), e = h(M()), { loading: W, FINAL_DATASET: x } = Oe({
49
+ const ne = $e(() => import("./PackageVersion-B9RA2_BM.js")), { vue_ui_sparkhistogram: ve } = He(), { isThemeValid: ce, warnInvalidTheme: de } = je(), m = ue, C = h(De()), O = h(null), V = h(null), D = h(null), A = h(null), L = h(null), e = h(M()), { loading: W, FINAL_DATASET: x } = Oe({
50
50
  ...Se(m),
51
51
  FINAL_CONFIG: e,
52
52
  prepareConfig: M,