vue-data-ui 2.3.91 → 2.3.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.
- package/README.md +3 -2
- package/dist/{Arrow-DpuaFuue.cjs → Arrow-DvOpIAlY.cjs} +1 -1
- package/dist/{Arrow-CHTslrAF.js → Arrow-tI6NQ7Cn.js} +1 -1
- package/dist/{BaseIcon-DfaCNBgc.js → BaseIcon-4CP9SAhe.js} +1 -1
- package/dist/{BaseIcon-JWGtHqTA.cjs → BaseIcon-CNOWc7Xz.cjs} +1 -1
- package/dist/{DataTable-BKc3r3k3.js → DataTable-BUgJSK3f.js} +2 -2
- package/dist/{DataTable-CnkdsvIo.cjs → DataTable-DhUk55WP.cjs} +1 -1
- package/dist/{Legend-WNL92WSx.js → Legend-C2KtRxbi.js} +1 -1
- package/dist/{Legend-BQJV6Xk4.cjs → Legend-WO0bF0ud.cjs} +1 -1
- package/dist/{PackageVersion-LdLhc8hQ.cjs → PackageVersion-B_T5VqI7.cjs} +1 -1
- package/dist/{PackageVersion-D9PU8glB.js → PackageVersion-Cy2QrPIN.js} +1 -1
- package/dist/{Shape-CgW0V2Og.cjs → Shape-CvvlB7a8.cjs} +1 -1
- package/dist/{Shape-DPvoEBm9.js → Shape-ovEGVZTS.js} +1 -1
- package/dist/{Slicer-DE9nFM_c.js → Slicer-C4yPLRzp.js} +2 -2
- package/dist/{Slicer-Dma3nlzi.cjs → Slicer-ChxIxUKY.cjs} +1 -1
- package/dist/{Title-Bg_BK11V.cjs → Title-BRktfjVS.cjs} +1 -1
- package/dist/{Title-CECK1w9L.js → Title-CczWCvrd.js} +1 -1
- package/dist/{Tooltip-Ci3AprCm.js → Tooltip-CLelGHFy.js} +1 -1
- package/dist/{Tooltip-lM1Jzkza.cjs → Tooltip-iisamh_I.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{index-mBy4elhB.js → index-B9ExL-Ae.js} +8 -3
- package/dist/index-CYdWUfPi.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +16 -0
- package/dist/types/vue-data-ui.d.ts +16 -0
- package/dist/{useNestedProp-BrIRtQj1.js → useNestedProp-BI1wvb44.js} +1 -1
- package/dist/{useNestedProp-m8IH8hWW.cjs → useNestedProp-CQjoDc6x.cjs} +1 -1
- package/dist/{usePrinter-B8jr_V3b.cjs → usePrinter-BYx8odJu.cjs} +1 -1
- package/dist/{usePrinter-Ck-yukK2.js → usePrinter-CUStN20z.js} +1 -1
- package/dist/{vue-data-ui-BgaY7Noy.cjs → vue-data-ui-Bn0hx7hG.cjs} +1 -1
- package/dist/{vue-data-ui-BuL-2aYA.js → vue-data-ui-CUhpUmv_.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C9a-AsIX.cjs → vue-ui-3d-bar-BL-ZhuNx.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-Cv-56A3m.js → vue-ui-3d-bar-CxlYseaq.js} +8 -8
- package/dist/{vue-ui-accordion-Bzq1iTL2.cjs → vue-ui-accordion-DzbFctbI.cjs} +1 -1
- package/dist/{vue-ui-accordion-dyF20BlD.js → vue-ui-accordion-SZPrlCJb.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BqsDR6uw.js → vue-ui-age-pyramid-B1IVehHW.js} +9 -9
- package/dist/{vue-ui-age-pyramid-DDPU8QV8.cjs → vue-ui-age-pyramid-vnFYLLSN.cjs} +1 -1
- package/dist/{vue-ui-annotator-B9HxrEVE.cjs → vue-ui-annotator-Cv6XubR6.cjs} +1 -1
- package/dist/{vue-ui-annotator-CkJsRR0r.js → vue-ui-annotator-DGedspml.js} +1 -1
- package/dist/{vue-ui-candlestick-DbbbJa-d.cjs → vue-ui-candlestick-CIJdWFvp.cjs} +1 -1
- package/dist/{vue-ui-candlestick-B8eYA2g0.js → vue-ui-candlestick-DGN9u4Fc.js} +10 -10
- package/dist/{vue-ui-carousel-table-BCiTg3Ok.js → vue-ui-carousel-table-BgDKAsLu.js} +4 -4
- package/dist/{vue-ui-carousel-table-CCWGcKb7.cjs → vue-ui-carousel-table-kawG2Va2.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DI-N69Ad.js → vue-ui-chestnut-CtFOgJmT.js} +7 -7
- package/dist/{vue-ui-chestnut-rsWP_sXY.cjs → vue-ui-chestnut-mz-4OECX.cjs} +1 -1
- package/dist/{vue-ui-cursor-BUzJk1oC.js → vue-ui-cursor-BJ2nafdy.js} +2 -2
- package/dist/{vue-ui-cursor-wY14Z-Vd.cjs → vue-ui-cursor-BVS2YR2w.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CiG3kXLl.js → vue-ui-dashboard-D93KqjL8.js} +2 -2
- package/dist/{vue-ui-dashboard-Cf8TYbAr.cjs → vue-ui-dashboard-wvzwXNCc.cjs} +1 -1
- package/dist/{vue-ui-digits-BBho1-xO.cjs → vue-ui-digits-2e8Z2Ynp.cjs} +1 -1
- package/dist/{vue-ui-digits-DZJI0YuX.js → vue-ui-digits-CTpbhzau.js} +2 -2
- package/dist/{vue-ui-donut-D4WpeX9W.cjs → vue-ui-donut-CJ4HeqiO.cjs} +1 -1
- package/dist/{vue-ui-donut-CBG9ECp8.js → vue-ui-donut-CjkJB0CP.js} +10 -10
- package/dist/{vue-ui-donut-evolution-BtTiBfLb.js → vue-ui-donut-evolution-Cj4VUlYA.js} +10 -10
- package/dist/{vue-ui-donut-evolution-BVnSrr-b.cjs → vue-ui-donut-evolution-DJpu3Zul.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DlEN2c_X.js → vue-ui-dumbbell-B5K8A6JO.js} +9 -9
- package/dist/{vue-ui-dumbbell-BQKiB9yH.cjs → vue-ui-dumbbell-DW9hFZTK.cjs} +1 -1
- package/dist/{vue-ui-flow-DfMNmttZ.cjs → vue-ui-flow-BPZIx63s.cjs} +1 -1
- package/dist/{vue-ui-flow-CXqGztWj.js → vue-ui-flow-D7G8pT5u.js} +8 -8
- package/dist/{vue-ui-galaxy-CGn5nkD5.cjs → vue-ui-galaxy-CJwQngRy.cjs} +1 -1
- package/dist/{vue-ui-galaxy-xI38Kf-S.js → vue-ui-galaxy-zxi6Dh6-.js} +10 -10
- package/dist/{vue-ui-gauge-Bz-OSNOJ.cjs → vue-ui-gauge-BCOp8MfJ.cjs} +1 -1
- package/dist/{vue-ui-gauge-BEludqYn.js → vue-ui-gauge-Dl84wBq2.js} +6 -6
- package/dist/{vue-ui-gizmo-BB28OTr1.js → vue-ui-gizmo-BGeEyNk4.js} +3 -3
- package/dist/{vue-ui-gizmo-CZZB7YgY.cjs → vue-ui-gizmo-PUYvN73T.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BtUvE7rK.cjs → vue-ui-heatmap-9Upu_lU9.cjs} +1 -1
- package/dist/{vue-ui-heatmap-mywZXUV8.js → vue-ui-heatmap-B98p2zoa.js} +9 -9
- package/dist/{vue-ui-kpi-zr721ux9.js → vue-ui-kpi-1_lGwzeP.js} +3 -3
- package/dist/{vue-ui-kpi-CEAGjnkj.cjs → vue-ui-kpi-BjucxBZ5.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-9zyuKIpT.js → vue-ui-mini-loader-B6595FMr.js} +2 -2
- package/dist/{vue-ui-mini-loader-DBFAzGb2.cjs → vue-ui-mini-loader-OY5XrOYB.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bv_ppQig.js → vue-ui-molecule-DaJsYbo1.js} +10 -10
- package/dist/{vue-ui-molecule-DltNL0kV.cjs → vue-ui-molecule-xmP8sBoH.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CQkF2Rp1.cjs → vue-ui-mood-radar-CB1zZjs3.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CIK2Xohn.js → vue-ui-mood-radar-CdGd-5lQ.js} +10 -10
- package/dist/{vue-ui-nested-donuts-vHr23QlH.cjs → vue-ui-nested-donuts-BkKTALZ7.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-f-cMx3iQ.js → vue-ui-nested-donuts-CYmpCetP.js} +10 -10
- package/dist/{vue-ui-onion-CmUXelhy.js → vue-ui-onion-BOi0j3dJ.js} +10 -10
- package/dist/{vue-ui-onion-B6ZrryDW.cjs → vue-ui-onion-BuimOxUF.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs → vue-ui-parallel-coordinate-plot-Bah-cYZ5.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-h9dS2u_k.js → vue-ui-parallel-coordinate-plot-DfRYipb8.js} +11 -11
- package/dist/{vue-ui-quadrant-DNT_0fTL.js → vue-ui-quadrant-39hB1-rW.js} +11 -11
- package/dist/{vue-ui-quadrant-DPPXilUd.cjs → vue-ui-quadrant-CVUZ1p2G.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-T6C0BTyw.js → vue-ui-quick-chart-8aeQmszL.js} +8 -8
- package/dist/{vue-ui-quick-chart-1gG267X0.cjs → vue-ui-quick-chart-DJET2y_F.cjs} +1 -1
- package/dist/{vue-ui-radar-CfCHXIYJ.js → vue-ui-radar-BHV5OcIH.js} +11 -11
- package/dist/{vue-ui-radar-DpzjMFZD.cjs → vue-ui-radar-mk61hrfQ.cjs} +1 -1
- package/dist/{vue-ui-rating-DuRLpMwk.js → vue-ui-rating-D0eIeFuP.js} +2 -2
- package/dist/{vue-ui-rating-DYcT_LS-.cjs → vue-ui-rating-Dt46yKur.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-WmZMKqHL.js → vue-ui-relation-circle-CLWjo7gq.js} +6 -6
- package/dist/{vue-ui-relation-circle-BMrPtD2n.cjs → vue-ui-relation-circle-D8tlElyL.cjs} +1 -1
- package/dist/{vue-ui-rings-Ce0Z_osd.js → vue-ui-rings-BrcZ1Q6y.js} +10 -10
- package/dist/{vue-ui-rings-CkYl3uce.cjs → vue-ui-rings-CjOr2fTq.cjs} +1 -1
- package/dist/{vue-ui-scatter-Cjie2D-t.cjs → vue-ui-scatter-DElf7q_o.cjs} +1 -1
- package/dist/{vue-ui-scatter-DY9EpoGP.js → vue-ui-scatter-wq1Ygozo.js} +11 -11
- package/dist/{vue-ui-screenshot-lQLJHBQ2.js → vue-ui-screenshot-BD6eevS2.js} +1 -1
- package/dist/{vue-ui-screenshot-BCFym6go.cjs → vue-ui-screenshot-WpUmWa8T.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Cf89QIhl.cjs → vue-ui-skeleton-7g5Z7tL8.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DDhwPZd_.js → vue-ui-skeleton-DokgyuHD.js} +3 -3
- package/dist/{vue-ui-smiley-xxMwBT9c.js → vue-ui-smiley-BTzWzbXj.js} +2 -2
- package/dist/{vue-ui-smiley-DMA6fgGr.cjs → vue-ui-smiley-M433_VGc.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Btj_H6fa.cjs → vue-ui-spark-trend-CVY2563q.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CLHTqp94.js → vue-ui-spark-trend-DVYSjWgR.js} +5 -5
- package/dist/{vue-ui-sparkbar-CKrbBVKQ.cjs → vue-ui-sparkbar-B5bm048m.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Btk6snt4.js → vue-ui-sparkbar-CW6U_9yF.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DKJtFTSv.js → vue-ui-sparkgauge-Da2vhyRe.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DfWLtFYS.cjs → vue-ui-sparkgauge-P6vT35bq.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-wHJ-8zVV.cjs → vue-ui-sparkhistogram-BRE4BZ1r.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-JRLlw9EX.js → vue-ui-sparkhistogram-DgyNNNYs.js} +5 -5
- package/dist/{vue-ui-sparkline-tBF9iaNm.js → vue-ui-sparkline-B6F6GG5I.js} +4 -4
- package/dist/{vue-ui-sparkline-DElVaalm.cjs → vue-ui-sparkline-BNzFzh6O.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BS9I8en7.js → vue-ui-sparkstackbar-DAZsawIt.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-tZa2IYHP.cjs → vue-ui-sparkstackbar-uWzUzXeY.cjs} +1 -1
- package/dist/{vue-ui-stackbar-UiX8q4yL.js → vue-ui-stackbar-Dm2aCHhH.js} +11 -11
- package/dist/{vue-ui-stackbar-rOa0atA9.cjs → vue-ui-stackbar-DuvFbd8S.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BOkfg5vB.js → vue-ui-strip-plot-B_j6rXqf.js} +10 -10
- package/dist/{vue-ui-strip-plot-hRy6QRHK.cjs → vue-ui-strip-plot-XYPsVx2s.cjs} +1 -1
- package/dist/{vue-ui-table-B9dc0l0k.cjs → vue-ui-table-BZjBiutU.cjs} +1 -1
- package/dist/{vue-ui-table-Dtfv71zG.js → vue-ui-table-Ba8yWxlH.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BMl-sP5Q.js → vue-ui-table-heatmap-B72rWSp8.js} +4 -4
- package/dist/{vue-ui-table-heatmap-DUQEHohs.cjs → vue-ui-table-heatmap-ChZ4LL-2.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BVnGb-lu.cjs → vue-ui-table-sparkline-D9KYyLun.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BeunspIj.js → vue-ui-table-sparkline-g1tiRXu-.js} +5 -5
- package/dist/{vue-ui-thermometer-Cb9ALBj_.js → vue-ui-thermometer-BUj-EXSI.js} +6 -6
- package/dist/{vue-ui-thermometer-A3Xxn5Ly.cjs → vue-ui-thermometer-Bx9kCvPP.cjs} +1 -1
- package/dist/{vue-ui-timer-2PRDq1w6.js → vue-ui-timer-BMi1tOzP.js} +5 -5
- package/dist/{vue-ui-timer-DltmIdrq.cjs → vue-ui-timer-DgVg5v8D.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Bse3PMGV.js → vue-ui-tiremarks-B8E61MPf.js} +6 -6
- package/dist/{vue-ui-tiremarks-BTlJcW4v.cjs → vue-ui-tiremarks-gGC8LSGo.cjs} +1 -1
- package/dist/{vue-ui-treemap-Cv_mHK8H.cjs → vue-ui-treemap-Cha1rQBU.cjs} +1 -1
- package/dist/{vue-ui-treemap-D8fjVYq0.js → vue-ui-treemap-D5QTDSSq.js} +10 -10
- package/dist/{vue-ui-vertical-bar-BVldPT8k.js → vue-ui-vertical-bar-BL5Issc0.js} +10 -10
- package/dist/{vue-ui-vertical-bar-ZgJq3_CI.cjs → vue-ui-vertical-bar-BSzFwrWa.cjs} +1 -1
- package/dist/{vue-ui-waffle-wikAjwZY.js → vue-ui-waffle-Dh08N5SM.js} +10 -10
- package/dist/{vue-ui-waffle-BpeGEjCl.cjs → vue-ui-waffle-DxTyNZYn.cjs} +1 -1
- package/dist/{vue-ui-wheel-D5qyBs0Y.js → vue-ui-wheel-DpywOj9b.js} +6 -6
- package/dist/{vue-ui-wheel-BlgfdULS.cjs → vue-ui-wheel-DyjcbZnB.cjs} +1 -1
- package/dist/vue-ui-word-cloud-C7cBuLEd.cjs +1 -0
- package/dist/vue-ui-word-cloud-CEtvW8ZU.js +574 -0
- package/dist/{vue-ui-xy-CUjllUSv.js → vue-ui-xy-C1EbGmWi.js} +13 -13
- package/dist/{vue-ui-xy-FHLTc7xG.cjs → vue-ui-xy-WnaajCFT.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BJUnRVuf.cjs → vue-ui-xy-canvas-7YaG0Huj.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BkOlPU8e.js → vue-ui-xy-canvas-nbhxY42M.js} +10 -10
- package/package.json +1 -1
- package/dist/index-BhH89oF0.cjs +0 -4
- package/dist/vue-ui-word-cloud-Bcdl2iE-.js +0 -515
- package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +0 -1
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
import { useCssVars as Ae, computed as p, openBlock as u, createElementBlock as f, createVNode as ee, renderSlot as m, createElementVNode as $, normalizeStyle as te, pushScopeId as We, popScopeId as Re, ref as n, watch as Z, onMounted as Be, onBeforeUnmount as De, createBlock as A, createCommentVNode as z, unref as k, createSlots as Ve, withCtx as h, normalizeProps as W, guardReactiveProps as R, normalizeClass as me, Fragment as Ee, renderList as Ue, toDisplayString as fe, createTextVNode as Ge, nextTick as pe } from "vue";
|
|
2
|
+
import { u as Le, Y as Xe, v as Ye, c as ge, t as je, a as qe, p as L, o as He, e as ye, g as Je, f as Ke, X as Qe, q as Ze, r as et, x as tt } from "./index-B9ExL-Ae.js";
|
|
3
|
+
import { _ as ot } from "./Title-CczWCvrd.js";
|
|
4
|
+
import { u as at, U as lt } from "./usePrinter-CUStN20z.js";
|
|
5
|
+
import { d as st, t as nt, u as rt } from "./useResponsive-NZB-WLRF.js";
|
|
6
|
+
import ut from "./vue-ui-accordion-SZPrlCJb.js";
|
|
7
|
+
import { D as it } from "./DataTable-BUgJSK3f.js";
|
|
8
|
+
import ct from "./BaseIcon-4CP9SAhe.js";
|
|
9
|
+
import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
import { u as be } from "./useNestedProp-BI1wvb44.js";
|
|
11
|
+
import { _ as dt } from "./PackageVersion-Cy2QrPIN.js";
|
|
12
|
+
import { _ as vt } from "./Tooltip-CLelGHFy.js";
|
|
13
|
+
const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2canvas-ignore": "" }, ft = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "reset-wrapper"
|
|
16
|
+
}, pt = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "reset-wrapper"
|
|
19
|
+
}, gt = { class: "mono-slicer" }, yt = /* @__PURE__ */ ht(() => /* @__PURE__ */ $("div", { class: "slider-track" }, null, -1)), bt = ["min", "max", "value"], Ct = {
|
|
20
|
+
__name: "MonoSlicer",
|
|
21
|
+
props: {
|
|
22
|
+
min: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 0
|
|
25
|
+
},
|
|
26
|
+
max: {
|
|
27
|
+
type: Number,
|
|
28
|
+
default: 0
|
|
29
|
+
},
|
|
30
|
+
inputColor: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "#1A1A1A"
|
|
33
|
+
},
|
|
34
|
+
background: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "#FFFFFF"
|
|
37
|
+
},
|
|
38
|
+
borderColor: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "#FFFFFF"
|
|
41
|
+
},
|
|
42
|
+
selectColor: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "#4A4A4A"
|
|
45
|
+
},
|
|
46
|
+
textColor: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "#1A1A1A"
|
|
49
|
+
},
|
|
50
|
+
useResetSlot: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
54
|
+
value: {
|
|
55
|
+
type: Number,
|
|
56
|
+
default: 0
|
|
57
|
+
},
|
|
58
|
+
source: {
|
|
59
|
+
type: Number,
|
|
60
|
+
default: 0
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
emits: ["update:value", "reset"],
|
|
64
|
+
setup(i, { emit: B }) {
|
|
65
|
+
const s = i;
|
|
66
|
+
Ae((w) => ({
|
|
67
|
+
"90ad3208": X.value,
|
|
68
|
+
"4f9eef70": P.value,
|
|
69
|
+
"6e07ae3e": b.value,
|
|
70
|
+
"2fd430a0": i.selectColor,
|
|
71
|
+
"6b8169a4": x.value
|
|
72
|
+
}));
|
|
73
|
+
const X = p(() => s.inputColor), x = p(() => s.background), b = p(() => `${s.selectColor}33`), P = p(() => s.borderColor);
|
|
74
|
+
function I() {
|
|
75
|
+
B("reset");
|
|
76
|
+
}
|
|
77
|
+
const C = p(() => {
|
|
78
|
+
const w = s.max - s.min, g = 0, S = (s.value - s.min) / w * 100;
|
|
79
|
+
return {
|
|
80
|
+
left: `${g}%`,
|
|
81
|
+
width: `${S - g}%`,
|
|
82
|
+
background: s.selectColor
|
|
83
|
+
};
|
|
84
|
+
});
|
|
85
|
+
return (w, g) => (u(), f("div", mt, [
|
|
86
|
+
i.value !== i.source ? (u(), f("div", ft, [
|
|
87
|
+
i.useResetSlot ? m(w.$slots, "reset-action", {
|
|
88
|
+
key: 1,
|
|
89
|
+
reset: I
|
|
90
|
+
}, void 0, !0) : (u(), f("button", {
|
|
91
|
+
key: 0,
|
|
92
|
+
"data-cy-reset": "",
|
|
93
|
+
tabindex: "0",
|
|
94
|
+
role: "button",
|
|
95
|
+
class: "vue-data-ui-refresh-button",
|
|
96
|
+
onClick: I
|
|
97
|
+
}, [
|
|
98
|
+
ee(ct, {
|
|
99
|
+
name: "refresh",
|
|
100
|
+
stroke: i.textColor
|
|
101
|
+
}, null, 8, ["stroke"])
|
|
102
|
+
]))
|
|
103
|
+
])) : (u(), f("div", pt)),
|
|
104
|
+
$("div", gt, [
|
|
105
|
+
yt,
|
|
106
|
+
$("div", {
|
|
107
|
+
class: "range-highlight",
|
|
108
|
+
style: te(C.value)
|
|
109
|
+
}, null, 4),
|
|
110
|
+
$("input", {
|
|
111
|
+
type: "range",
|
|
112
|
+
min: i.min,
|
|
113
|
+
max: i.max,
|
|
114
|
+
value: Number(i.value),
|
|
115
|
+
onInput: g[0] || (g[0] = (S) => B("update:value", Number(S.target.value)))
|
|
116
|
+
}, null, 40, bt)
|
|
117
|
+
])
|
|
118
|
+
]));
|
|
119
|
+
}
|
|
120
|
+
}, wt = /* @__PURE__ */ Ce(Ct, [["__scopeId", "data-v-3fd7d274"]]), kt = ["id"], $t = ["xmlns", "viewBox"], xt = ["transform"], St = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], Tt = {
|
|
121
|
+
key: 3,
|
|
122
|
+
class: "vue-data-ui-watermark"
|
|
123
|
+
}, Ft = ["innerHTML"], _t = {
|
|
124
|
+
__name: "vue-ui-word-cloud",
|
|
125
|
+
props: {
|
|
126
|
+
config: {
|
|
127
|
+
type: Object,
|
|
128
|
+
default() {
|
|
129
|
+
return {};
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
dataset: {
|
|
133
|
+
type: [Array, String],
|
|
134
|
+
default() {
|
|
135
|
+
return [];
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
setup(i, { expose: B }) {
|
|
140
|
+
const s = i, { vue_ui_word_cloud: X } = Le(), x = p({
|
|
141
|
+
get() {
|
|
142
|
+
return !!s.dataset && s.dataset.length;
|
|
143
|
+
},
|
|
144
|
+
set(t) {
|
|
145
|
+
return t;
|
|
146
|
+
}
|
|
147
|
+
}), b = n(typeof s.dataset == "string" ? Xe(s.dataset) : s.dataset.map((t) => ({
|
|
148
|
+
...t,
|
|
149
|
+
value: Ye(t.value)
|
|
150
|
+
}))), P = n(ge()), I = n(0), C = n(null), w = n(null), g = n(0), S = n(0), Y = n(!1), e = p({
|
|
151
|
+
get: () => oe(),
|
|
152
|
+
set: (t) => t
|
|
153
|
+
});
|
|
154
|
+
function oe() {
|
|
155
|
+
const t = be({
|
|
156
|
+
userConfig: s.config,
|
|
157
|
+
defaultConfig: X
|
|
158
|
+
});
|
|
159
|
+
return t.theme ? {
|
|
160
|
+
...be({
|
|
161
|
+
userConfig: je.vue_ui_word_cloud[t.theme] || s.config,
|
|
162
|
+
defaultConfig: t
|
|
163
|
+
}),
|
|
164
|
+
customPalette: qe[t.theme] || L
|
|
165
|
+
} : t;
|
|
166
|
+
}
|
|
167
|
+
Z(() => s.config, (t) => {
|
|
168
|
+
e.value = oe(), le(), g.value += 1, S.value += 1, j();
|
|
169
|
+
}, { deep: !0 });
|
|
170
|
+
const ae = n(null), T = n(0), r = n({
|
|
171
|
+
width: e.value.style.chart.width,
|
|
172
|
+
height: e.value.style.chart.height,
|
|
173
|
+
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
174
|
+
minFontSize: e.value.style.chart.words.minFontSize
|
|
175
|
+
}), we = nt(() => {
|
|
176
|
+
const { width: t, height: a } = rt({
|
|
177
|
+
chart: C.value,
|
|
178
|
+
title: e.value.style.chart.title.text ? w.value : null,
|
|
179
|
+
slicer: e.value.style.chart.zoom.show && ae.value
|
|
180
|
+
});
|
|
181
|
+
r.value.width = t, r.value.height = a, pe(q);
|
|
182
|
+
});
|
|
183
|
+
Z(() => T.value, () => {
|
|
184
|
+
ke();
|
|
185
|
+
});
|
|
186
|
+
const ke = st(() => {
|
|
187
|
+
q();
|
|
188
|
+
}, 10);
|
|
189
|
+
function j() {
|
|
190
|
+
T.value = ie.value;
|
|
191
|
+
}
|
|
192
|
+
const D = n(null);
|
|
193
|
+
Be(() => {
|
|
194
|
+
le(), j();
|
|
195
|
+
});
|
|
196
|
+
function le() {
|
|
197
|
+
He(s.dataset) ? ye({
|
|
198
|
+
componentName: "VueUiWordCloud",
|
|
199
|
+
type: "dataset"
|
|
200
|
+
}) : b.value.forEach((t, a) => {
|
|
201
|
+
Je({
|
|
202
|
+
datasetObject: t,
|
|
203
|
+
requiredAttributes: ["name", "value"]
|
|
204
|
+
}).forEach((o) => {
|
|
205
|
+
x.value = !1, ye({
|
|
206
|
+
componentName: "VueUiWordCloud",
|
|
207
|
+
type: "datasetSerieAttribute",
|
|
208
|
+
property: o,
|
|
209
|
+
index: a
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
}), e.value.responsive && (D.value = new ResizeObserver(we), D.value.observe(C.value.parentNode));
|
|
213
|
+
}
|
|
214
|
+
De(() => {
|
|
215
|
+
D.value && D.value.disconnect();
|
|
216
|
+
});
|
|
217
|
+
const { isPrinting: se, isImaging: ne, generatePdf: re, generateImage: ue } = at({
|
|
218
|
+
elementId: `wordCloud_${P.value}`,
|
|
219
|
+
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
220
|
+
}), d = n({
|
|
221
|
+
showTable: e.value.table.show,
|
|
222
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
223
|
+
});
|
|
224
|
+
function $e(t, a, o = "Arial") {
|
|
225
|
+
const l = document.createElement("canvas").getContext("2d");
|
|
226
|
+
return l.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
|
|
227
|
+
width: l.measureText(t).width + e.value.style.chart.words.proximity,
|
|
228
|
+
height: a
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
function xe(t, a) {
|
|
232
|
+
return t.x < a.x + a.width && t.x + t.width > a.x && t.y < a.y + a.height && t.y + t.height > a.y;
|
|
233
|
+
}
|
|
234
|
+
function Se(t, a, o) {
|
|
235
|
+
const c = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, v = 0, _ = 0;
|
|
236
|
+
return t.forEach((N) => {
|
|
237
|
+
let K = !1;
|
|
238
|
+
for (let G = 0; G < Math.max(a, o) / 2 && !K; G += e.value.style.chart.words.packingWeight)
|
|
239
|
+
for (let Q = 0; Q < 360 && !K; Q += e.value.style.chart.words.packingWeight) {
|
|
240
|
+
const he = Q * Math.PI / 180, ze = v + G * Math.cos(he) - N.width / 2, Pe = _ + G * Math.sin(he) - N.height / 2, y = { ...N, x: ze, y: Pe }, Ie = y.x >= l.x && y.y >= l.y && y.x + y.width <= l.x + l.width && y.y + y.height <= l.y + l.height, Oe = c.some((Me) => xe(y, Me));
|
|
241
|
+
Ie && !Oe && (c.push(y), K = !0);
|
|
242
|
+
}
|
|
243
|
+
}), c;
|
|
244
|
+
}
|
|
245
|
+
const O = n([]);
|
|
246
|
+
Z(() => s.dataset, q, { immediate: !0 });
|
|
247
|
+
const ie = p(() => Math.min(...b.value.map((t) => t.value))), Te = p(() => Math.max(...b.value.map((t) => t.value)));
|
|
248
|
+
function q() {
|
|
249
|
+
const t = [...b.value].filter((l) => l.value >= T.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), c = [...b.value].filter((l) => l.value >= T.value).map((l, v) => {
|
|
250
|
+
const _ = (l.value - o) / (a - o) * (r.value.maxFontSize - r.value.minFontSize) + r.value.minFontSize, N = $e(l.name, _);
|
|
251
|
+
return {
|
|
252
|
+
...l,
|
|
253
|
+
id: ge(),
|
|
254
|
+
fontSize: _,
|
|
255
|
+
width: N.width,
|
|
256
|
+
height: N.height,
|
|
257
|
+
color: e.value.style.chart.words.usePalette ? e.value.customPalette[v] || e.value.customPalette[v % e.value.customPalette.length] || L[v] || L[v % L.length] : e.value.style.chart.words.color
|
|
258
|
+
};
|
|
259
|
+
});
|
|
260
|
+
O.value = Se(c, r.value.width, r.value.height).sort((l, v) => v.fontSize - l.fontSize);
|
|
261
|
+
}
|
|
262
|
+
const V = p(() => {
|
|
263
|
+
const t = O.value.map((o) => ({
|
|
264
|
+
name: o.name,
|
|
265
|
+
color: o.color
|
|
266
|
+
})), a = O.value.map((o) => o.value);
|
|
267
|
+
return { head: t, body: a };
|
|
268
|
+
});
|
|
269
|
+
function ce() {
|
|
270
|
+
pe(() => {
|
|
271
|
+
const t = V.value.head.map((c, l) => [[
|
|
272
|
+
c.name
|
|
273
|
+
], [V.value.body[l]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), o = Ze(a);
|
|
274
|
+
et({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
const E = p(() => {
|
|
278
|
+
const t = [
|
|
279
|
+
e.value.table.columnNames.series,
|
|
280
|
+
e.value.table.columnNames.value
|
|
281
|
+
], a = V.value.head.map((l, v) => {
|
|
282
|
+
const _ = Ke({ p: e.value.table.td.prefix, v: V.value.body[v], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
283
|
+
return [
|
|
284
|
+
{
|
|
285
|
+
color: l.color,
|
|
286
|
+
name: l.name
|
|
287
|
+
},
|
|
288
|
+
_
|
|
289
|
+
];
|
|
290
|
+
}), o = {
|
|
291
|
+
th: {
|
|
292
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
293
|
+
color: e.value.table.th.color,
|
|
294
|
+
outline: e.value.table.th.outline
|
|
295
|
+
},
|
|
296
|
+
td: {
|
|
297
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
298
|
+
color: e.value.table.td.color,
|
|
299
|
+
outline: e.value.table.td.outline
|
|
300
|
+
},
|
|
301
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
302
|
+
};
|
|
303
|
+
return {
|
|
304
|
+
colNames: [
|
|
305
|
+
e.value.table.columnNames.series,
|
|
306
|
+
e.value.table.columnNames.value
|
|
307
|
+
],
|
|
308
|
+
head: t,
|
|
309
|
+
body: a,
|
|
310
|
+
config: o
|
|
311
|
+
};
|
|
312
|
+
}), U = n(!1);
|
|
313
|
+
function Fe(t) {
|
|
314
|
+
U.value = t, I.value += 1;
|
|
315
|
+
}
|
|
316
|
+
function _e() {
|
|
317
|
+
return O.value;
|
|
318
|
+
}
|
|
319
|
+
function de() {
|
|
320
|
+
d.value.showTable = !d.value.showTable;
|
|
321
|
+
}
|
|
322
|
+
function ve() {
|
|
323
|
+
d.value.showTooltip = !d.value.showTooltip;
|
|
324
|
+
}
|
|
325
|
+
B({
|
|
326
|
+
getData: _e,
|
|
327
|
+
generateCsv: ce,
|
|
328
|
+
generatePdf: re,
|
|
329
|
+
generateImage: ue,
|
|
330
|
+
toggleTable: de,
|
|
331
|
+
toggleTooltip: ve
|
|
332
|
+
});
|
|
333
|
+
const F = n(null), M = n(!1), H = n(""), J = n(null);
|
|
334
|
+
function Ne(t) {
|
|
335
|
+
if (!d.value.showTooltip) return;
|
|
336
|
+
F.value = t.id, J.value = { datapoint: t, config: e.value };
|
|
337
|
+
const a = e.value.style.chart.tooltip.customFormat;
|
|
338
|
+
if (M.value = !1, tt(a))
|
|
339
|
+
try {
|
|
340
|
+
const o = a({
|
|
341
|
+
datapoint: t,
|
|
342
|
+
config: e.value
|
|
343
|
+
});
|
|
344
|
+
typeof o == "string" && (H.value = o, M.value = !0);
|
|
345
|
+
} catch {
|
|
346
|
+
console.warn("Custom format cannot be applied."), M.value = !1;
|
|
347
|
+
}
|
|
348
|
+
if (!M.value) {
|
|
349
|
+
let o = `<svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${t.color}"/></svg><span>${t.name}:</span><b>${(t.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}</b>`;
|
|
350
|
+
H.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${o}</div>`;
|
|
351
|
+
}
|
|
352
|
+
Y.value = !0;
|
|
353
|
+
}
|
|
354
|
+
return (t, a) => (u(), f("div", {
|
|
355
|
+
class: "vue-ui-word-cloud",
|
|
356
|
+
ref_key: "wordCloudChart",
|
|
357
|
+
ref: C,
|
|
358
|
+
id: `wordCloud_${P.value}`,
|
|
359
|
+
style: te(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
|
|
360
|
+
}, [
|
|
361
|
+
e.value.style.chart.title.text ? (u(), f("div", {
|
|
362
|
+
key: 0,
|
|
363
|
+
ref_key: "chartTitle",
|
|
364
|
+
ref: w,
|
|
365
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
366
|
+
}, [
|
|
367
|
+
(u(), A(ot, {
|
|
368
|
+
key: `title_${g.value}`,
|
|
369
|
+
config: {
|
|
370
|
+
title: {
|
|
371
|
+
...e.value.style.chart.title
|
|
372
|
+
},
|
|
373
|
+
subtitle: {
|
|
374
|
+
...e.value.style.chart.title.subtitle
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}, null, 8, ["config"]))
|
|
378
|
+
], 512)) : z("", !0),
|
|
379
|
+
e.value.userOptions.show && x.value ? (u(), A(lt, {
|
|
380
|
+
ref: "details",
|
|
381
|
+
key: `user_option_${I.value}`,
|
|
382
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
383
|
+
color: e.value.style.chart.color,
|
|
384
|
+
isPrinting: k(se),
|
|
385
|
+
isImaging: k(ne),
|
|
386
|
+
uid: P.value,
|
|
387
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
388
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
389
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
390
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
391
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
392
|
+
isFullscreen: U.value,
|
|
393
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
394
|
+
chartElement: C.value,
|
|
395
|
+
position: e.value.userOptions.position,
|
|
396
|
+
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
397
|
+
isTooltip: d.value.showTooltip,
|
|
398
|
+
onToggleFullscreen: Fe,
|
|
399
|
+
onGeneratePdf: k(re),
|
|
400
|
+
onGenerateCsv: ce,
|
|
401
|
+
onGenerateImage: k(ue),
|
|
402
|
+
onToggleTable: de,
|
|
403
|
+
onToggleTooltip: ve
|
|
404
|
+
}, Ve({ _: 2 }, [
|
|
405
|
+
t.$slots.optionPdf ? {
|
|
406
|
+
name: "optionPdf",
|
|
407
|
+
fn: h(() => [
|
|
408
|
+
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
409
|
+
]),
|
|
410
|
+
key: "0"
|
|
411
|
+
} : void 0,
|
|
412
|
+
t.$slots.optionCsv ? {
|
|
413
|
+
name: "optionCsv",
|
|
414
|
+
fn: h(() => [
|
|
415
|
+
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
416
|
+
]),
|
|
417
|
+
key: "1"
|
|
418
|
+
} : void 0,
|
|
419
|
+
t.$slots.optionImg ? {
|
|
420
|
+
name: "optionImg",
|
|
421
|
+
fn: h(() => [
|
|
422
|
+
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
423
|
+
]),
|
|
424
|
+
key: "2"
|
|
425
|
+
} : void 0,
|
|
426
|
+
t.$slots.optionTable ? {
|
|
427
|
+
name: "optionTable",
|
|
428
|
+
fn: h(() => [
|
|
429
|
+
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
430
|
+
]),
|
|
431
|
+
key: "3"
|
|
432
|
+
} : void 0,
|
|
433
|
+
t.$slots.optionFullscreen ? {
|
|
434
|
+
name: "optionFullscreen",
|
|
435
|
+
fn: h(({ toggleFullscreen: o, isFullscreen: c }) => [
|
|
436
|
+
m(t.$slots, "optionFullscreen", W(R({ toggleFullscreen: o, isFullscreen: c })), void 0, !0)
|
|
437
|
+
]),
|
|
438
|
+
key: "4"
|
|
439
|
+
} : void 0
|
|
440
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage"])) : z("", !0),
|
|
441
|
+
x.value ? (u(), f("svg", {
|
|
442
|
+
key: 2,
|
|
443
|
+
class: me({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
|
|
444
|
+
xmlns: k(Qe),
|
|
445
|
+
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
446
|
+
style: "overflow:visible;background:transparent;"
|
|
447
|
+
}, [
|
|
448
|
+
ee(dt),
|
|
449
|
+
$("g", {
|
|
450
|
+
transform: `translate(${(r.value.width <= 0 ? 10 : r.value.width) / 2}, ${(r.value.height <= 0 ? 10 : r.value.height) / 2})`
|
|
451
|
+
}, [
|
|
452
|
+
(u(!0), f(Ee, null, Ue(O.value, (o, c) => (u(), f("g", null, [
|
|
453
|
+
(u(), f("text", {
|
|
454
|
+
fill: o.color,
|
|
455
|
+
"font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
|
|
456
|
+
key: c,
|
|
457
|
+
x: o.x,
|
|
458
|
+
y: o.y,
|
|
459
|
+
"font-size": o.fontSize,
|
|
460
|
+
transform: `translate(${o.width / 2}, ${o.height / 2})`,
|
|
461
|
+
class: me({ animated: e.value.useCssAnimation, "word-selected": F.value && F.value === o.id && d.value.showTooltip, "word-not-selected": F.value && F.value !== o.id && d.value.showTooltip }),
|
|
462
|
+
"text-anchor": "middle",
|
|
463
|
+
"dominant-baseline": "middle",
|
|
464
|
+
onMouseover: (l) => Ne(o),
|
|
465
|
+
onMouseleave: a[0] || (a[0] = (l) => {
|
|
466
|
+
F.value = null, Y.value = !1;
|
|
467
|
+
}),
|
|
468
|
+
style: te(`animation-delay:${c * e.value.animationDelayMs}ms !important;`)
|
|
469
|
+
}, fe(o.name), 47, St))
|
|
470
|
+
]))), 256))
|
|
471
|
+
], 8, xt),
|
|
472
|
+
m(t.$slots, "svg", {
|
|
473
|
+
svg: { height: r.value.height, width: r.value.width }
|
|
474
|
+
}, void 0, !0)
|
|
475
|
+
], 10, $t)) : z("", !0),
|
|
476
|
+
t.$slots.watermark ? (u(), f("div", Tt, [
|
|
477
|
+
m(t.$slots, "watermark", W(R({ isPrinting: k(se) || k(ne) })), void 0, !0)
|
|
478
|
+
])) : z("", !0),
|
|
479
|
+
ee(vt, {
|
|
480
|
+
show: d.value.showTooltip && Y.value,
|
|
481
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
482
|
+
color: e.value.style.chart.tooltip.color,
|
|
483
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
484
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
485
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
486
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
487
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
488
|
+
position: e.value.style.chart.tooltip.position,
|
|
489
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
490
|
+
parent: C.value,
|
|
491
|
+
content: H.value,
|
|
492
|
+
isCustom: M.value
|
|
493
|
+
}, {
|
|
494
|
+
"tooltip-before": h(() => [
|
|
495
|
+
m(t.$slots, "tooltip-before", W(R({ ...J.value })), void 0, !0)
|
|
496
|
+
]),
|
|
497
|
+
"tooltip-after": h(() => [
|
|
498
|
+
m(t.$slots, "tooltip-after", W(R({ ...J.value })), void 0, !0)
|
|
499
|
+
]),
|
|
500
|
+
_: 3
|
|
501
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
502
|
+
$("div", {
|
|
503
|
+
ref_key: "chartSlicer",
|
|
504
|
+
ref: ae,
|
|
505
|
+
style: "width:100%;background:transparent",
|
|
506
|
+
"data-html2canvas-ignore": ""
|
|
507
|
+
}, [
|
|
508
|
+
e.value.style.chart.zoom.show ? (u(), A(wt, {
|
|
509
|
+
key: 0,
|
|
510
|
+
value: T.value,
|
|
511
|
+
"onUpdate:value": a[1] || (a[1] = (o) => T.value = o),
|
|
512
|
+
min: ie.value,
|
|
513
|
+
max: Te.value,
|
|
514
|
+
textColor: e.value.style.chart.color,
|
|
515
|
+
inputColor: e.value.style.chart.zoom.color,
|
|
516
|
+
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
517
|
+
useResetSlot: e.value.style.chart.zoom.useResetSlot,
|
|
518
|
+
background: e.value.style.chart.zoom.color,
|
|
519
|
+
borderColor: e.value.style.chart.backgroundColor,
|
|
520
|
+
source: e.value.style.chart.width,
|
|
521
|
+
onReset: j
|
|
522
|
+
}, {
|
|
523
|
+
"reset-action": h(({ reset: o }) => [
|
|
524
|
+
m(t.$slots, "reset-action", W(R({ reset: o })), void 0, !0)
|
|
525
|
+
]),
|
|
526
|
+
_: 3
|
|
527
|
+
}, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : z("", !0)
|
|
528
|
+
], 512),
|
|
529
|
+
x.value ? (u(), A(ut, {
|
|
530
|
+
key: 4,
|
|
531
|
+
hideDetails: "",
|
|
532
|
+
config: {
|
|
533
|
+
open: d.value.showTable,
|
|
534
|
+
maxHeight: 1e4,
|
|
535
|
+
body: {
|
|
536
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
537
|
+
color: e.value.style.chart.color
|
|
538
|
+
},
|
|
539
|
+
head: {
|
|
540
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
541
|
+
color: e.value.style.chart.color
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}, {
|
|
545
|
+
content: h(() => [
|
|
546
|
+
(u(), A(it, {
|
|
547
|
+
key: `table_${S.value}`,
|
|
548
|
+
colNames: E.value.colNames,
|
|
549
|
+
head: E.value.head,
|
|
550
|
+
body: E.value.body,
|
|
551
|
+
config: E.value.config,
|
|
552
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
553
|
+
onClose: a[2] || (a[2] = (o) => d.value.showTable = !1)
|
|
554
|
+
}, {
|
|
555
|
+
th: h(({ th: o }) => [
|
|
556
|
+
$("div", {
|
|
557
|
+
innerHTML: o,
|
|
558
|
+
style: { display: "flex", "align-items": "center" }
|
|
559
|
+
}, null, 8, Ft)
|
|
560
|
+
]),
|
|
561
|
+
td: h(({ td: o }) => [
|
|
562
|
+
Ge(fe(o.name || o), 1)
|
|
563
|
+
]),
|
|
564
|
+
_: 1
|
|
565
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
566
|
+
]),
|
|
567
|
+
_: 1
|
|
568
|
+
}, 8, ["config"])) : z("", !0)
|
|
569
|
+
], 12, kt));
|
|
570
|
+
}
|
|
571
|
+
}, Et = /* @__PURE__ */ Ce(_t, [["__scopeId", "data-v-7f4cd511"]]);
|
|
572
|
+
export {
|
|
573
|
+
Et as default
|
|
574
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { c as J, a as Q, t as K, z as j, p as $, T as q, N as T, f as Z, I as ee, F as te, i as ae, Z as ie, W as re, _ as le, v as se, $ as ne, d as ce, B as oe, b as he, q as de, Q as ue, a0 as ge, r as fe, e as Ne, y as me, L as Ie, x as xe, a1 as be, o as Fe, s as _e, w as ye, E as Ae, A as Le, u as Ce } from "./index-
|
|
2
|
-
import { D as Se } from "./DataTable-
|
|
3
|
-
import { _ as ke } from "./Title-
|
|
4
|
-
import { _ as we, u as Oe } from "./Tooltip-
|
|
5
|
-
import { U as Ge } from "./usePrinter-
|
|
6
|
-
import { _ as ve } from "./Shape-
|
|
7
|
-
import pe from "./BaseIcon-
|
|
8
|
-
import ze from "./vue-ui-table-sparkline-
|
|
9
|
-
import Me from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Pe } from "./Slicer-
|
|
11
|
-
import Te from "./vue-ui-accordion-
|
|
12
|
-
import { u as U } from "./useNestedProp-
|
|
13
|
-
import { _ as Ve } from "./PackageVersion-
|
|
1
|
+
import { c as J, a as Q, t as K, z as j, p as $, T as q, N as T, f as Z, I as ee, F as te, i as ae, Z as ie, W as re, _ as le, v as se, $ as ne, d as ce, B as oe, b as he, q as de, Q as ue, a0 as ge, r as fe, e as Ne, y as me, L as Ie, x as xe, a1 as be, o as Fe, s as _e, w as ye, E as Ae, A as Le, u as Ce } from "./index-B9ExL-Ae.js";
|
|
2
|
+
import { D as Se } from "./DataTable-BUgJSK3f.js";
|
|
3
|
+
import { _ as ke } from "./Title-CczWCvrd.js";
|
|
4
|
+
import { _ as we, u as Oe } from "./Tooltip-CLelGHFy.js";
|
|
5
|
+
import { U as Ge } from "./usePrinter-CUStN20z.js";
|
|
6
|
+
import { _ as ve } from "./Shape-ovEGVZTS.js";
|
|
7
|
+
import pe from "./BaseIcon-4CP9SAhe.js";
|
|
8
|
+
import ze from "./vue-ui-table-sparkline-g1tiRXu-.js";
|
|
9
|
+
import Me from "./vue-ui-skeleton-DokgyuHD.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-C4yPLRzp.js";
|
|
11
|
+
import Te from "./vue-ui-accordion-SZPrlCJb.js";
|
|
12
|
+
import { u as U } from "./useNestedProp-BI1wvb44.js";
|
|
13
|
+
import { _ as Ve } from "./PackageVersion-Cy2QrPIN.js";
|
|
14
14
|
import { resolveComponent as V, openBlock as r, createElementBlock as l, normalizeClass as P, normalizeStyle as A, createBlock as R, createCommentVNode as h, createSlots as Re, withCtx as z, renderSlot as G, normalizeProps as B, guardReactiveProps as Y, createVNode as X, createElementVNode as u, Fragment as m, renderList as I, toDisplayString as S, withDirectives as De, vModelCheckbox as We, createTextVNode as He } from "vue";
|
|
15
15
|
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const Be = J(), Ye = {
|