vue-data-ui 2.2.91 → 2.2.93

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 (58) hide show
  1. package/dist/index-DZlxUin4.js +57288 -0
  2. package/dist/{index.es-Dc9Fd4o6.js → index.es-Cgqo-FBk.js} +1 -1
  3. package/dist/style.css +1 -1
  4. package/dist/vue-data-ui.js +61 -455
  5. package/package.json +1 -1
  6. package/dist/data-table-d-VcuH-r.js +0 -1488
  7. package/dist/legend-DJCYLsl_.js +0 -61
  8. package/dist/themes-lgjsYHsH.js +0 -4967
  9. package/dist/title-BF-9Qcni.js +0 -56
  10. package/dist/tooltip-D85WEOKi.js +0 -94
  11. package/dist/user-options-DZgCz8UA.js +0 -415
  12. package/dist/vue-ui-3d-bar-DW7kGJSz.js +0 -20360
  13. package/dist/vue-ui-age-pyramid-4hcuKpFY.js +0 -781
  14. package/dist/vue-ui-annotator-C83FVvl8.js +0 -2175
  15. package/dist/vue-ui-candlestick-diclGj95.js +0 -807
  16. package/dist/vue-ui-chestnut-ACetHLdG.js +0 -1049
  17. package/dist/vue-ui-cursor-Rx7UNaYT.js +0 -229
  18. package/dist/vue-ui-dashboard-B3PlN0ks.js +0 -231
  19. package/dist/vue-ui-digits-CxMXID42.js +0 -154
  20. package/dist/vue-ui-donut-DMiwVXNd.js +0 -1534
  21. package/dist/vue-ui-dumbbell-B_X1T8TR.js +0 -621
  22. package/dist/vue-ui-flow-B72wzQ6V.js +0 -451
  23. package/dist/vue-ui-galaxy-DXX5yivT.js +0 -482
  24. package/dist/vue-ui-gauge-Cs9PDurH.js +0 -466
  25. package/dist/vue-ui-heatmap-PcoNSLdN.js +0 -581
  26. package/dist/vue-ui-kpi-DchEmPtB.js +0 -55
  27. package/dist/vue-ui-mini-loader-DltJLkqy.js +0 -131
  28. package/dist/vue-ui-molecule-CWvukBzs.js +0 -746
  29. package/dist/vue-ui-mood-radar-DEfdtIi8.js +0 -544
  30. package/dist/vue-ui-nested-donuts-9URpqgXE.js +0 -768
  31. package/dist/vue-ui-onion-C0eowUT6.js +0 -551
  32. package/dist/vue-ui-parallel-coordinate-plot-Bc_pAaPJ.js +0 -647
  33. package/dist/vue-ui-quadrant-_ddVAm9V.js +0 -1174
  34. package/dist/vue-ui-quick-chart-Cio0hDYO.js +0 -1310
  35. package/dist/vue-ui-radar-Dyg38i33.js +0 -853
  36. package/dist/vue-ui-rating-CE1Lmwd2.js +0 -271
  37. package/dist/vue-ui-relation-circle-BMlB3k3d.js +0 -303
  38. package/dist/vue-ui-rings-BuXeijvb.js +0 -507
  39. package/dist/vue-ui-scatter-B1hZfOua.js +0 -870
  40. package/dist/vue-ui-screenshot-0QXgxzGs.js +0 -160
  41. package/dist/vue-ui-smiley-B7kR7exr.js +0 -763
  42. package/dist/vue-ui-spark-trend-BmL2KiYL.js +0 -245
  43. package/dist/vue-ui-sparkgauge-BMzFv14L.js +0 -158
  44. package/dist/vue-ui-sparkhistogram-DWpOXqHm.js +0 -243
  45. package/dist/vue-ui-sparkstackbar-DB9VQXlc.js +0 -244
  46. package/dist/vue-ui-strip-plot-DyN6P0JO.js +0 -614
  47. package/dist/vue-ui-table-DM3zL89q.js +0 -2180
  48. package/dist/vue-ui-table-heatmap-gWx0Nslu.js +0 -237
  49. package/dist/vue-ui-thermometer-Bcqv5kd_.js +0 -384
  50. package/dist/vue-ui-timer-BIFxjujK.js +0 -451
  51. package/dist/vue-ui-tiremarks-zBwHpED_.js +0 -248
  52. package/dist/vue-ui-treemap-BaplVc_z.js +0 -719
  53. package/dist/vue-ui-vertical-bar-CdK6ZJPM.js +0 -734
  54. package/dist/vue-ui-waffle-COOzH7M3.js +0 -635
  55. package/dist/vue-ui-wheel-BEpuVTBk.js +0 -226
  56. package/dist/vue-ui-word-cloud-DNqxAAiX.js +0 -344
  57. package/dist/vue-ui-xy-_mHq-czW.js +0 -2058
  58. package/dist/vue-ui-xy-canvas-DqX8Gee5.js +0 -1003
@@ -1,248 +0,0 @@
1
- import { computed as v, ref as f, watch as Q, onMounted as W, openBlock as n, createElementBlock as h, normalizeClass as O, normalizeStyle as S, createVNode as Z, createCommentVNode as $, createBlock as L, unref as k, createSlots as ee, withCtx as A, renderSlot as I, normalizeProps as te, guardReactiveProps as ae, Fragment as T, renderList as V, toDisplayString as le } from "vue";
2
- import { u as X, _ as oe } from "./title-BF-9Qcni.js";
3
- import { t as re } from "./themes-lgjsYHsH.js";
4
- import { U as se } from "./user-options-DZgCz8UA.js";
5
- import { _ as ne, e as ue, i as ie, j as ce, x as M, X as ve } from "./data-table-d-VcuH-r.js";
6
- import { u as he, a as de, S as ge } from "./vue-ui-3d-bar-DW7kGJSz.js";
7
- const ye = ["id"], me = ["xmlns", "viewBox"], fe = { key: 0 }, pe = ["d", "stroke-width", "stroke"], ke = { key: 1 }, be = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], _e = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ce = {
8
- __name: "vue-ui-tiremarks",
9
- props: {
10
- config: {
11
- type: Object,
12
- default() {
13
- return {};
14
- }
15
- },
16
- dataset: {
17
- type: Object,
18
- default() {
19
- return {};
20
- }
21
- }
22
- },
23
- setup(D, { expose: H }) {
24
- const u = D, { vue_ui_tiremarks: R } = he(), F = v(() => !!u.dataset && Object.keys(u.dataset).length), z = f(ue()), N = f(null), G = f(0), e = v(() => {
25
- const t = X({
26
- userConfig: u.config,
27
- defaultConfig: R
28
- });
29
- return t.theme ? {
30
- ...X({
31
- userConfig: re.vue_ui_tiremarks[t.theme] || u.config,
32
- defaultConfig: t
33
- })
34
- } : t;
35
- }), { isPrinting: Y, isImaging: q, generatePdf: j, generateImage: U } = de({
36
- elementId: z.value,
37
- fileName: e.value.style.chart.title.text || "vue-ui-tiremarks"
38
- }), c = f(e.value.style.chart.animation.use ? 0 : u.dataset.percentage);
39
- Q(() => u.dataset.percentage, () => {
40
- c.value = f(e.value.style.chart.animation.use ? 0 : u.dataset.percentage), B();
41
- }), W(() => {
42
- ie(u.dataset) && ce({
43
- componentName: "VueUiTiremarks",
44
- type: "dataset"
45
- }), B();
46
- });
47
- function B() {
48
- let t = 0, s = e.value.style.chart.animation.speed, a = 5e-3 * e.value.style.chart.animation.acceleration;
49
- function o() {
50
- c.value += s + t, t += a, c.value < u.dataset.percentage ? requestAnimationFrame(o) : c.value = u.dataset.percentage;
51
- }
52
- e.value.style.chart.animation.use && (c.value = 0, o());
53
- }
54
- const p = v(() => e.value.style.chart.layout.display === "vertical"), r = v(() => {
55
- const t = {
56
- top: 48,
57
- left: 64,
58
- right: 64,
59
- bottom: 48
60
- };
61
- return p.value ? {
62
- top: e.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
63
- left: 3,
64
- right: 3,
65
- bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
66
- } : {
67
- top: 0,
68
- bottom: 0,
69
- left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
70
- right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
71
- };
72
- }), w = v(() => Object.values(r.value).reduce((t, s) => t + s, 0)), l = v(() => ({
73
- height: p.value ? 312 : 56,
74
- width: p.value ? 56 : 312
75
- })), J = f(100);
76
- v(() => u.dataset.percentage / J.value);
77
- const i = v(() => p.value ? {
78
- mark: (l.value.height - w.value) / 100 * 0.5,
79
- space: (l.value.height - w.value) / 100 * 0.5
80
- } : {
81
- mark: (l.value.width - w.value) / 100 * 0.5,
82
- space: (l.value.width - w.value) / 100 * 0.5
83
- }), E = v(() => {
84
- const t = [];
85
- for (let a = 0; a < 100; a += 1) {
86
- const o = e.value.style.chart.layout.ticks.gradient.show ? M(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
87
- if (p.value) {
88
- const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - r.value.left - r.value.right) / 100 / 3 : 0, d = r.value.left + 4 + _, g = l.value.width - r.value.right - 4 - _, y = l.value.height - r.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, m = l.value.height - r.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, C = (g - d) / e.value.style.chart.layout.curveAngleX, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
89
- t.push({
90
- x1: d,
91
- x2: g,
92
- y1: y,
93
- y2: m,
94
- curve: `M ${d} ${y} C ${d + C} ${y - x}, ${g - C} ${m - x}, ${g} ${m}`,
95
- color: o
96
- });
97
- } else {
98
- const _ = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - r.value.top - r.value.bottom) / 100 / 3 : 0, d = r.value.left + a * i.value.mark + a * i.value.space - i.value.mark, g = d, y = r.value.top + 4 + _, m = l.value.height - r.value.bottom - 4 - _, C = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), x = (m - y) / e.value.style.chart.layout.curveAngleX;
99
- t.push({
100
- x1: d,
101
- x2: g,
102
- y1: y,
103
- y2: m,
104
- curve: `M ${d} ${y} C ${d + C} ${y + x}, ${g + C} ${m - x}, ${g} ${m}`,
105
- color: o
106
- });
107
- }
108
- }
109
- return t;
110
- }), b = v(() => {
111
- let t, s, a;
112
- const o = e.value.style.chart.percentage.fontSize / 3;
113
- return p.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, s = r.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, s = l.value.height - r.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, s = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - r.value.right + 8, s = l.value.height / 2 + o, a = "start"), {
114
- x: t,
115
- y: s,
116
- textAnchor: a,
117
- bold: e.value.style.chart.percentage.bold,
118
- fontSize: e.value.style.chart.percentage.fontSize,
119
- fill: e.value.style.chart.percentage.color
120
- };
121
- }), P = f(!1);
122
- function K(t) {
123
- P.value = t, G.value += 1;
124
- }
125
- return H({
126
- generatePdf: j,
127
- generateImage: U
128
- }), (t, s) => (n(), h("div", {
129
- ref_key: "tiremarksChart",
130
- ref: N,
131
- class: O(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
132
- style: S(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
133
- id: z.value
134
- }, [
135
- e.value.style.chart.title.text ? (n(), h("div", {
136
- key: 0,
137
- style: S(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
138
- }, [
139
- Z(oe, {
140
- config: {
141
- title: {
142
- cy: "wheel-title",
143
- ...e.value.style.chart.title
144
- },
145
- subtitle: {
146
- cy: "wheel-subtitle",
147
- ...e.value.style.chart.title.subtitle
148
- }
149
- }
150
- }, null, 8, ["config"])
151
- ], 4)) : $("", !0),
152
- e.value.userOptions.show && F.value ? (n(), L(se, {
153
- ref: "details",
154
- key: `user_options_${G.value}`,
155
- backgroundColor: e.value.style.chart.backgroundColor,
156
- color: e.value.style.chart.color,
157
- isPrinting: k(Y),
158
- isImaging: k(q),
159
- uid: z.value,
160
- hasPdf: e.value.userOptions.buttons.pdf,
161
- hasImg: e.value.userOptions.buttons.img,
162
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
163
- hasXls: !1,
164
- isFullscreen: P.value,
165
- titles: { ...e.value.userOptions.buttonTitles },
166
- chartElement: N.value,
167
- onToggleFullscreen: K,
168
- onGeneratePdf: k(j),
169
- onGenerateImage: k(U)
170
- }, ee({ _: 2 }, [
171
- t.$slots.optionPdf ? {
172
- name: "optionPdf",
173
- fn: A(() => [
174
- I(t.$slots, "optionPdf", {}, void 0, !0)
175
- ]),
176
- key: "0"
177
- } : void 0,
178
- t.$slots.optionImg ? {
179
- name: "optionImg",
180
- fn: A(() => [
181
- I(t.$slots, "optionImg", {}, void 0, !0)
182
- ]),
183
- key: "1"
184
- } : void 0,
185
- t.$slots.optionFullscreen ? {
186
- name: "optionFullscreen",
187
- fn: A(({ toggleFullscreen: a, isFullscreen: o }) => [
188
- I(t.$slots, "optionFullscreen", te(ae({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
189
- ]),
190
- key: "2"
191
- } : void 0
192
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : $("", !0),
193
- F.value ? (n(), h("svg", {
194
- key: 2,
195
- xmlns: k(ve),
196
- class: O({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
197
- viewBox: `0 0 ${l.value.width} ${l.value.height}`,
198
- style: S(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
199
- }, [
200
- e.value.style.chart.layout.curved ? (n(), h("g", fe, [
201
- (n(!0), h(T, null, V(E.value, (a, o) => (n(), h("path", {
202
- d: a.curve,
203
- "stroke-width": i.value.mark,
204
- stroke: c.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
205
- "stroke-linecap": "round",
206
- fill: "none",
207
- class: O({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= c.value })
208
- }, null, 10, pe))), 256))
209
- ])) : (n(), h("g", ke, [
210
- (n(!0), h(T, null, V(E.value, (a, o) => (n(), h("line", {
211
- x1: a.x1,
212
- y1: a.y1,
213
- x2: a.x2,
214
- y2: a.y2,
215
- "stroke-width": i.value.mark,
216
- stroke: c.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
217
- "stroke-linecap": "round"
218
- }, null, 8, be))), 256))
219
- ])),
220
- e.value.style.chart.percentage.show ? (n(), h("text", {
221
- key: 2,
222
- x: b.value.x,
223
- y: b.value.y,
224
- "font-size": b.value.fontSize,
225
- fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? k(M)(e.value.style.chart.layout.activeColor, c.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
226
- "font-weight": b.value.bold ? "bold" : "normal",
227
- "text-anchor": b.value.textAnchor
228
- }, le(c.value.toFixed(e.value.style.chart.percentage.rounding) + "%"), 9, _e)) : $("", !0),
229
- I(t.$slots, "svg", { svg: l.value }, void 0, !0)
230
- ], 14, me)) : $("", !0),
231
- F.value ? $("", !0) : (n(), L(ge, {
232
- key: 3,
233
- config: {
234
- type: "tiremarks",
235
- style: {
236
- backgroundColor: e.value.style.chart.backgroundColor,
237
- tiremarks: {
238
- color: "#CCCCCC"
239
- }
240
- }
241
- }
242
- }, null, 8, ["config"]))
243
- ], 14, ye));
244
- }
245
- }, ze = /* @__PURE__ */ ne(Ce, [["__scopeId", "data-v-1bbd1baf"]]);
246
- export {
247
- ze as default
248
- };