vue-data-ui 2.3.85 → 2.3.86
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/dist/{Arrow-JwDgP3de.js → Arrow-CJ7hmWgf.js} +1 -1
- package/dist/{Arrow-CLOh6oi7.cjs → Arrow-CebZn6E4.cjs} +1 -1
- package/dist/{BaseIcon-BysUnfCR.js → BaseIcon-B9istAKo.js} +1 -1
- package/dist/{BaseIcon-BBQHz_Sf.cjs → BaseIcon-DnG75_Ol.cjs} +1 -1
- package/dist/{DataTable-pVXaNplZ.cjs → DataTable-BA_BCbHC.cjs} +1 -1
- package/dist/{DataTable-MkG5Dqrn.js → DataTable-tSDSY14n.js} +2 -2
- package/dist/{Legend-k2mcTp7z.cjs → Legend-BOY57qwA.cjs} +1 -1
- package/dist/{Legend-KW7sTwN3.js → Legend-D3hovFqM.js} +1 -1
- package/dist/{Shape-COoEWeGM.cjs → Shape-D6jrLLku.cjs} +1 -1
- package/dist/{Shape-BFiZBf3X.js → Shape-XiTBfhJM.js} +1 -1
- package/dist/{Slicer-CALc-Q4W.js → Slicer-BMvzmCKt.js} +2 -2
- package/dist/{Slicer-DCyxUSsn.cjs → Slicer-sZ-DArc4.cjs} +1 -1
- package/dist/{Title-BaKZYHEx.cjs → Title-Ahj4TYHa.cjs} +1 -1
- package/dist/{Title-ISDbzCH8.js → Title-DJ2FNrSN.js} +1 -1
- package/dist/{Tooltip-BHmMXOej.js → Tooltip-CQpXRqRC.js} +1 -1
- package/dist/{Tooltip-okAYzo5Y.cjs → Tooltip-XhevgJmm.cjs} +1 -1
- package/dist/index-CVgBMJU6.cjs +4 -0
- package/dist/{index-BiuHBtkZ.js → index-D2epy0rJ.js} +4 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +3 -0
- package/dist/types/vue-data-ui.d.ts +3 -0
- package/dist/{useNestedProp-B9yDavuy.cjs → useNestedProp-B-NmF2LO.cjs} +1 -1
- package/dist/{useNestedProp-Ck5_RzLu.js → useNestedProp-C_ZrJBd9.js} +1 -1
- package/dist/usePrinter-B6qtXaHk.js +527 -0
- package/dist/usePrinter-DN-6Hoh5.cjs +1 -0
- package/dist/{vue-data-ui-CVYCyzY-.cjs → vue-data-ui-DlNasA0G.cjs} +1 -1
- package/dist/{vue-data-ui-CAl2KJv9.js → vue-data-ui-vegY0BJm.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-CqRRjlUU.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CploAEkY.js → vue-ui-3d-bar-D-0SSMOt.js} +11 -10
- package/dist/{vue-ui-accordion-btKAUUTu.cjs → vue-ui-accordion-BaV9R6cy.cjs} +1 -1
- package/dist/{vue-ui-accordion-D2fhyKpk.js → vue-ui-accordion-DzTB2FL0.js} +3 -3
- package/dist/vue-ui-age-pyramid-Bx4BuL3K.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-DkaM5MrK.js → vue-ui-age-pyramid-_eo2DGen.js} +25 -24
- package/dist/{vue-ui-annotator-38FBI0Pn.js → vue-ui-annotator-8j2dJ0CU.js} +1 -1
- package/dist/{vue-ui-annotator-BMYk78DR.cjs → vue-ui-annotator-CDZtr6tp.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CKsjq0Uw.js → vue-ui-candlestick-CsF7OSvJ.js} +12 -11
- package/dist/vue-ui-candlestick-NypxP0Uu.cjs +2 -0
- package/dist/{vue-ui-carousel-table-DjGaEuM7.js → vue-ui-carousel-table-CMHd2i-6.js} +7 -7
- package/dist/{vue-ui-carousel-table-Cx72LlTd.cjs → vue-ui-carousel-table-CV0eVeRd.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DAiBfoPN.cjs → vue-ui-chestnut-B9miwyAN.cjs} +2 -2
- package/dist/{vue-ui-chestnut-TLyh4dIZ.js → vue-ui-chestnut-CVftKftk.js} +10 -9
- package/dist/{vue-ui-cursor-BunDuWpK.cjs → vue-ui-cursor-Bsrt107X.cjs} +1 -1
- package/dist/{vue-ui-cursor-B1xa5yua.js → vue-ui-cursor-wujy8n_T.js} +2 -2
- package/dist/{vue-ui-dashboard-CMZ736DL.cjs → vue-ui-dashboard-BCN0BhjL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DdcubzWu.js → vue-ui-dashboard-Cvy0gI52.js} +2 -2
- package/dist/{vue-ui-digits-z5g__gqs.cjs → vue-ui-digits-CnHgzHPI.cjs} +1 -1
- package/dist/{vue-ui-digits-BUpjWWnD.js → vue-ui-digits-J-WrKKHg.js} +2 -2
- package/dist/{vue-ui-donut-ZLpfm-XT.js → vue-ui-donut-BOhWcHY_.js} +34 -33
- package/dist/vue-ui-donut-CZ1iKZq6.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Bn4asQO3.js → vue-ui-donut-evolution-CSSYuoti.js} +12 -11
- package/dist/vue-ui-donut-evolution-DuY2883r.cjs +1 -0
- package/dist/{vue-ui-dumbbell-D2R9tJ99.js → vue-ui-dumbbell-Cm0Rp_6W.js} +11 -10
- package/dist/{vue-ui-dumbbell-CY6X8J1K.cjs → vue-ui-dumbbell-i9QcsSVO.cjs} +2 -2
- package/dist/{vue-ui-flow-Dd5uPNTQ.js → vue-ui-flow-0m7a1NP7.js} +10 -9
- package/dist/vue-ui-flow-DXCBGdQT.cjs +1 -0
- package/dist/vue-ui-galaxy-D6GyjAnX.cjs +1 -0
- package/dist/{vue-ui-galaxy-B7CoWLhj.js → vue-ui-galaxy-DCHEdZAl.js} +12 -11
- package/dist/{vue-ui-gauge-CGh_m922.js → vue-ui-gauge-HcM2JJpg.js} +29 -28
- package/dist/vue-ui-gauge-wbHQGQro.cjs +1 -0
- package/dist/{vue-ui-gizmo-D5Kn7w7L.cjs → vue-ui-gizmo-B-zMyi1m.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BY3hnKSH.js → vue-ui-gizmo-Bfo_nUnZ.js} +2 -2
- package/dist/{vue-ui-heatmap-yYN0u0I6.js → vue-ui-heatmap-CxIHmv0t.js} +41 -40
- package/dist/vue-ui-heatmap-Du2vI5Ae.cjs +1 -0
- package/dist/{vue-ui-kpi-Q20yM3IP.cjs → vue-ui-kpi-BOe7-M9V.cjs} +1 -1
- package/dist/{vue-ui-kpi-B4zr_geL.js → vue-ui-kpi-DibULfkp.js} +3 -3
- package/dist/{vue-ui-mini-loader-GFSZofpE.cjs → vue-ui-mini-loader-Bv7l-Kx3.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-GImbaGsN.js → vue-ui-mini-loader-qFRhERid.js} +2 -2
- package/dist/{vue-ui-molecule-DmrB3kgA.js → vue-ui-molecule-4cIGPnWg.js} +290 -286
- package/dist/vue-ui-molecule-eOj3ZjvT.cjs +1 -0
- package/dist/{vue-ui-mood-radar-sEkQtzI2.js → vue-ui-mood-radar-BTe21WKk.js} +79 -78
- package/dist/vue-ui-mood-radar-tUFqqekd.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-DvpZLcYd.js → vue-ui-nested-donuts-BVzabOga.js} +35 -34
- package/dist/vue-ui-nested-donuts-BigBLrFR.cjs +17 -0
- package/dist/{vue-ui-onion-DQMLPe3M.js → vue-ui-onion-C3TAKqro.js} +12 -11
- package/dist/vue-ui-onion-_ZC3vbIS.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BBuPdl2K.cjs → vue-ui-parallel-coordinate-plot-BiXGkfj7.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DN2LPNyS.js → vue-ui-parallel-coordinate-plot-CKoCQXqj.js} +13 -12
- package/dist/vue-ui-quadrant-B67wGTic.cjs +1 -0
- package/dist/{vue-ui-quadrant-D2GpeXI6.js → vue-ui-quadrant-CKnyfJoi.js} +13 -12
- package/dist/vue-ui-quick-chart-DEjdx0AB.cjs +15 -0
- package/dist/{vue-ui-quick-chart-C5K9DfUV.js → vue-ui-quick-chart-DZDYYnsI.js} +60 -59
- package/dist/vue-ui-radar-Cm_QkYGb.cjs +1 -0
- package/dist/{vue-ui-radar-B9TZPujK.js → vue-ui-radar-v9yayJxu.js} +13 -12
- package/dist/{vue-ui-rating-B0pNsmGB.js → vue-ui-rating-Cc_N7qbe.js} +2 -2
- package/dist/{vue-ui-rating-DpxzUDQq.cjs → vue-ui-rating-DV4cCZbB.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DSnlpLHt.js → vue-ui-relation-circle-Clqo4kkb.js} +46 -45
- package/dist/{vue-ui-relation-circle-D3B-lpdM.cjs → vue-ui-relation-circle-DcpIVbI6.cjs} +1 -1
- package/dist/{vue-ui-rings-BuvFDBXg.js → vue-ui-rings-D27xNq9q.js} +12 -11
- package/dist/{vue-ui-rings-cmeFVitd.cjs → vue-ui-rings-DTn3t8Ku.cjs} +2 -2
- package/dist/{vue-ui-scatter-D_chvOSJ.js → vue-ui-scatter-C07Mon-6.js} +13 -12
- package/dist/vue-ui-scatter-CXbrqLFm.cjs +1 -0
- package/dist/{vue-ui-screenshot-DSHeHshf.js → vue-ui-screenshot-CsxqbqlJ.js} +1 -1
- package/dist/{vue-ui-screenshot-CwrXLMru.cjs → vue-ui-screenshot-D8TAvQYN.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Du4zw-c1.js → vue-ui-skeleton-BLiYyX95.js} +2 -2
- package/dist/{vue-ui-skeleton-DJhwv2oY.cjs → vue-ui-skeleton-Br1K3exH.cjs} +1 -1
- package/dist/{vue-ui-smiley-BtQLJ7rA.js → vue-ui-smiley-BUHatT3Z.js} +2 -2
- package/dist/{vue-ui-smiley-BNkk6suC.cjs → vue-ui-smiley-CR_TkSYT.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DFIjxBTY.cjs → vue-ui-spark-trend-CnUz6s1m.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BgA79g7a.js → vue-ui-spark-trend-GY2CfYRt.js} +4 -4
- package/dist/{vue-ui-sparkbar-BlwQfhlY.cjs → vue-ui-sparkbar-DaFwUA6Z.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DQAWZReF.js → vue-ui-sparkbar-tdgek1gv.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CCApU38s.js → vue-ui-sparkgauge-1zu5KmTA.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BCRSQDpt.cjs → vue-ui-sparkgauge-D8P01Hem.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-PKTt4EmH.js → vue-ui-sparkhistogram-b68QStxA.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CTxG1Vtn.cjs → vue-ui-sparkhistogram-mg6yuwLH.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BUaixngQ.cjs → vue-ui-sparkline-CAqav9Gn.cjs} +1 -1
- package/dist/{vue-ui-sparkline-EESAiZyt.js → vue-ui-sparkline-CMmtp8MK.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-TnLNixdf.js → vue-ui-sparkstackbar-Cz8tOM3m.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-iQnc0zcO.cjs → vue-ui-sparkstackbar-DOrquZvw.cjs} +1 -1
- package/dist/vue-ui-stackbar-DUa5F_Zl.cjs +6 -0
- package/dist/{vue-ui-stackbar-Ci04sup3.js → vue-ui-stackbar-DeQkP1dj.js} +13 -12
- package/dist/vue-ui-strip-plot-KNL9ToYG.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DbvW0BuF.js → vue-ui-strip-plot-vqOCzdFV.js} +12 -11
- package/dist/{vue-ui-table-328De4vk.cjs → vue-ui-table-BCdHNku5.cjs} +1 -1
- package/dist/{vue-ui-table-CamkBCdL.js → vue-ui-table-DDdVqdHt.js} +1 -1
- package/dist/vue-ui-table-heatmap-BJDnZMZN.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-D-YdrvGV.js → vue-ui-table-heatmap-DQg_jtYq.js} +27 -26
- package/dist/{vue-ui-table-sparkline-Dg2RKv6f.js → vue-ui-table-sparkline-Bg-VFq7X.js} +25 -24
- package/dist/{vue-ui-table-sparkline-Cmg7wnQ0.cjs → vue-ui-table-sparkline-D8DJxb5J.cjs} +1 -1
- package/dist/{vue-ui-thermometer-jWHbZTc2.js → vue-ui-thermometer-CajBbbYc.js} +51 -50
- package/dist/vue-ui-thermometer-eYM8DX7u.cjs +1 -0
- package/dist/{vue-ui-timer-BPepr5eV.js → vue-ui-timer-D3VRVK-8.js} +4 -4
- package/dist/{vue-ui-timer-B_FyRAU7.cjs → vue-ui-timer-RclP4Tql.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DW8Q2IBl.js → vue-ui-tiremarks-BT0k_3xi.js} +48 -47
- package/dist/{vue-ui-tiremarks-CaJWlyz8.cjs → vue-ui-tiremarks-Bc8bBBAw.cjs} +1 -1
- package/dist/{vue-ui-treemap-B9GpvA0k.cjs → vue-ui-treemap-BjWDt2b2.cjs} +1 -1
- package/dist/{vue-ui-treemap-CWu43qLo.js → vue-ui-treemap-DMhe3zCm.js} +13 -12
- package/dist/vue-ui-vertical-bar-DWzafNBH.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CndASePh.js → vue-ui-vertical-bar-hH9R9V-K.js} +13 -12
- package/dist/{vue-ui-waffle-c9ycdoKz.cjs → vue-ui-waffle-BvYE9hAY.cjs} +1 -1
- package/dist/{vue-ui-waffle-CdyqwJwN.js → vue-ui-waffle-DnNd6Iba.js} +46 -45
- package/dist/{vue-ui-wheel-Byq_BLhl.js → vue-ui-wheel-Bx9_m-7W.js} +34 -33
- package/dist/vue-ui-wheel-CVBmY6h7.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BVOcsuMP.cjs → vue-ui-word-cloud-3R-mYkIW.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-BRxN5uFD.js → vue-ui-word-cloud-DUk0Xt8q.js} +10 -9
- package/dist/{vue-ui-xy-DgEdZz0O.js → vue-ui-xy-FtaqoNK8.js} +161 -160
- package/dist/{vue-ui-xy-canvas-BI7jUOTn.js → vue-ui-xy-canvas-Bp4PTl_E.js} +54 -53
- package/dist/{vue-ui-xy-canvas-Td0WNYN0.cjs → vue-ui-xy-canvas-Ctw_3PzN.cjs} +2 -2
- package/dist/vue-ui-xy-rX-aml0b.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-D-vy9N1v.cjs +0 -4
- package/dist/usePrinter-Do8KiK5h.js +0 -513
- package/dist/usePrinter-P4nLcXX-.cjs +0 -1
- package/dist/vue-ui-3d-bar-DlUqKETN.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CvSoQ1op.cjs +0 -1
- package/dist/vue-ui-candlestick-BJulnyV3.cjs +0 -2
- package/dist/vue-ui-donut-TY2Z9Ljx.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BEm2dOxe.cjs +0 -1
- package/dist/vue-ui-flow-DswsuPwy.cjs +0 -1
- package/dist/vue-ui-galaxy-Dxy6jzus.cjs +0 -1
- package/dist/vue-ui-gauge-CWd_ol6u.cjs +0 -1
- package/dist/vue-ui-heatmap-AUm42a1v.cjs +0 -1
- package/dist/vue-ui-molecule-C9FcDH4x.cjs +0 -1
- package/dist/vue-ui-mood-radar-CRwStVTV.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BcOgxtZV.cjs +0 -17
- package/dist/vue-ui-onion-C9v9YjdJ.cjs +0 -5
- package/dist/vue-ui-quadrant-ulY-rCMI.cjs +0 -1
- package/dist/vue-ui-quick-chart-DFj17h6h.cjs +0 -15
- package/dist/vue-ui-radar-KA287Tp-.cjs +0 -1
- package/dist/vue-ui-scatter-BWPqoSUN.cjs +0 -1
- package/dist/vue-ui-stackbar-Rrcyg4CC.cjs +0 -6
- package/dist/vue-ui-strip-plot-CowHumiU.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CCHre3Gt.cjs +0 -1
- package/dist/vue-ui-thermometer-BDeKErC9.cjs +0 -1
- package/dist/vue-ui-vertical-bar-a_41JdIn.cjs +0 -4
- package/dist/vue-ui-wheel-B3BMfKmd.cjs +0 -1
- package/dist/vue-ui-xy-CsS5ny0q.cjs +0 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { computed as d, ref as c, watch as Te, onMounted as Ee, onBeforeUnmount as We, openBlock as s, createElementBlock as i, normalizeClass as Se, normalizeStyle as Q, createBlock as V, createCommentVNode as f, unref as h, createSlots as qe, withCtx as b, renderSlot as w, normalizeProps as q, guardReactiveProps as H, createElementVNode as k, Fragment as T, renderList as M, toDisplayString as S, createTextVNode as Le, createVNode as He, nextTick as Xe, pushScopeId as Ye, popScopeId as Je } from "vue";
|
|
2
|
-
import { u as Ke, c as Qe, t as Ze, a as et, p as B, o as tt, e as oe, g as lt, b as at, i as D, f as x, X as ot, s as ut, w as st, F as rt, I as nt, d as it, x as ct, y as vt, q as dt, r as ht } from "./index-
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as ft } from "./Title-
|
|
5
|
-
import { u as gt, U as mt } from "./usePrinter-
|
|
6
|
-
import { _ as bt } from "./Tooltip-
|
|
7
|
-
import { D as wt } from "./DataTable-
|
|
8
|
-
import { L as kt } from "./Legend-
|
|
9
|
-
import xt from "./vue-ui-skeleton-
|
|
10
|
-
import Ct from "./vue-ui-accordion-
|
|
11
|
-
import { u as Pe } from "./useNestedProp-
|
|
2
|
+
import { u as Ke, c as Qe, t as Ze, a as et, p as B, o as tt, e as oe, g as lt, b as at, i as D, f as x, X as ot, s as ut, w as st, F as rt, I as nt, d as it, x as ct, y as vt, q as dt, r as ht } from "./index-D2epy0rJ.js";
|
|
3
|
+
import { t as pt, u as yt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as ft } from "./Title-DJ2FNrSN.js";
|
|
5
|
+
import { u as gt, U as mt } from "./usePrinter-B6qtXaHk.js";
|
|
6
|
+
import { _ as bt } from "./Tooltip-CQpXRqRC.js";
|
|
7
|
+
import { D as wt } from "./DataTable-tSDSY14n.js";
|
|
8
|
+
import { L as kt } from "./Legend-D3hovFqM.js";
|
|
9
|
+
import xt from "./vue-ui-skeleton-BLiYyX95.js";
|
|
10
|
+
import Ct from "./vue-ui-accordion-DzTB2FL0.js";
|
|
11
|
+
import { u as Pe } from "./useNestedProp-C_ZrJBd9.js";
|
|
12
12
|
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const ze = (G) => (Ye("data-v-
|
|
13
|
+
const ze = (G) => (Ye("data-v-a80f56d0"), G = G(), Je(), G), $t = ["id"], It = ["xmlns", "viewBox"], Tt = ["id"], St = ["stop-color"], Lt = ["stop-color"], Pt = ["id"], zt = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("feGaussianBlur", {
|
|
14
14
|
in: "SourceGraphic",
|
|
15
15
|
stdDeviation: 2
|
|
16
16
|
}, null, -1)), Ft = /* @__PURE__ */ ze(() => /* @__PURE__ */ k("feColorMatrix", {
|
|
@@ -78,8 +78,8 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
}), e.value.responsive) {
|
|
81
|
-
const t =
|
|
82
|
-
const { width: o, height: l } =
|
|
81
|
+
const t = pt(() => {
|
|
82
|
+
const { width: o, height: l } = yt({
|
|
83
83
|
chart: R.value,
|
|
84
84
|
title: e.value.style.chart.title.text ? se.value : null,
|
|
85
85
|
legend: e.value.style.chart.legend.show ? re.value : null
|
|
@@ -94,7 +94,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
94
94
|
}), We(() => {
|
|
95
95
|
Y.value && Y.value.disconnect();
|
|
96
96
|
});
|
|
97
|
-
const { isPrinting: he, isImaging:
|
|
97
|
+
const { isPrinting: he, isImaging: pe, generatePdf: ye, generateImage: fe } = gt({
|
|
98
98
|
elementId: `vue-ui-waffle_${L.value}`,
|
|
99
99
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle"
|
|
100
100
|
}), ge = d(() => at(e.value.customPalette)), I = c({
|
|
@@ -111,10 +111,10 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
111
111
|
}), z = d(() => (C.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), F = d(() => (C.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), U = d(() => C.value.width / e.value.style.chart.layout.grid.size), J = d(() => C.value.height / e.value.style.chart.layout.grid.size);
|
|
112
112
|
function me(t) {
|
|
113
113
|
const o = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((m, ae) => m + ae, 0), a = t.map((m) => m / l * o), u = a.map(Math.floor), n = a.map((m) => m % 1);
|
|
114
|
-
let
|
|
115
|
-
for (;
|
|
114
|
+
let y = o - u.reduce((m, ae) => m + ae, 0);
|
|
115
|
+
for (; y > 0; ) {
|
|
116
116
|
let m = n.indexOf(Math.max(...n));
|
|
117
|
-
u[m] += 1, n[m] = 0,
|
|
117
|
+
u[m] += 1, n[m] = 0, y -= 1;
|
|
118
118
|
}
|
|
119
119
|
return u;
|
|
120
120
|
}
|
|
@@ -131,7 +131,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
131
131
|
v.value = be();
|
|
132
132
|
}, { deep: !0 });
|
|
133
133
|
const Ae = d(() => {
|
|
134
|
-
const t = v.value.filter((o, l) => !
|
|
134
|
+
const t = v.value.filter((o, l) => !p.value.includes(o.uid)).map((o, l) => (o.values || []).reduce((a, u) => a + u, 0));
|
|
135
135
|
return me(t);
|
|
136
136
|
}), Ve = d(() => {
|
|
137
137
|
const t = v.value.map((o, l) => (o.values || []).reduce((a, u) => a + u));
|
|
@@ -143,7 +143,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
143
143
|
property: "values (number[])",
|
|
144
144
|
index: o
|
|
145
145
|
});
|
|
146
|
-
}), v.value.filter((t, o) => !
|
|
146
|
+
}), v.value.filter((t, o) => !p.value.includes(t.uid)).map((t, o) => ({
|
|
147
147
|
absoluteIndex: t.absoluteIndex,
|
|
148
148
|
uid: t.uid,
|
|
149
149
|
name: t.name,
|
|
@@ -172,8 +172,8 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
172
172
|
let t = 0;
|
|
173
173
|
return j.value.map((o, l) => {
|
|
174
174
|
const a = t, u = a + o.proportion, n = [];
|
|
175
|
-
for (let
|
|
176
|
-
n.push(
|
|
175
|
+
for (let y = Math.floor(a); y < Math.floor(u); y += 1)
|
|
176
|
+
n.push(y);
|
|
177
177
|
return t = u, {
|
|
178
178
|
...o,
|
|
179
179
|
start: a,
|
|
@@ -204,33 +204,33 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
204
204
|
y: (e.value.style.chart.layout.grid.vertical ? l : o) * (F.value + e.value.style.chart.layout.grid.spaceBetween) + C.value.top
|
|
205
205
|
});
|
|
206
206
|
return t;
|
|
207
|
-
}),
|
|
207
|
+
}), p = c([]), N = c(!1), ke = c(null), xe = c(null);
|
|
208
208
|
function Ce(t) {
|
|
209
209
|
if (!e.value.useAnimation) {
|
|
210
|
-
|
|
210
|
+
p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < A.value.length - 1 && A.value.length > 1 && p.value.push(t);
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
213
|
const o = we.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
214
214
|
let a = v.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
215
|
-
if (
|
|
215
|
+
if (p.value.includes(t)) {
|
|
216
216
|
let n = function() {
|
|
217
|
-
a > u ? (cancelAnimationFrame(ke.value), v.value = v.value.map((
|
|
218
|
-
...
|
|
217
|
+
a > u ? (cancelAnimationFrame(ke.value), v.value = v.value.map((y, m) => y.uid === t ? {
|
|
218
|
+
...y,
|
|
219
219
|
values: [u]
|
|
220
|
-
} :
|
|
221
|
-
...
|
|
220
|
+
} : y), N.value = !1) : (N.value = !0, a += u * 0.025, v.value = v.value.map((y, m) => y.uid === t ? {
|
|
221
|
+
...y,
|
|
222
222
|
values: [a]
|
|
223
|
-
} :
|
|
223
|
+
} : y), ke.value = requestAnimationFrame(n));
|
|
224
224
|
};
|
|
225
|
-
|
|
225
|
+
p.value = p.value.filter((y) => y !== t);
|
|
226
226
|
const u = o;
|
|
227
227
|
n();
|
|
228
|
-
} else if (
|
|
228
|
+
} else if (p.value.length < A.value.length - 1 && A.value.length > 1) {
|
|
229
229
|
let u = function() {
|
|
230
|
-
a < 0.1 ? (cancelAnimationFrame(xe.value),
|
|
230
|
+
a < 0.1 ? (cancelAnimationFrame(xe.value), p.value.push(t), v.value = v.value.map((n, y) => n.uid === t ? {
|
|
231
231
|
...n,
|
|
232
232
|
values: [0]
|
|
233
|
-
} : n), N.value = !1) : (N.value = !0, a /= 1.5, v.value = v.value.map((n,
|
|
233
|
+
} : n), N.value = !1) : (N.value = !0, a /= 1.5, v.value = v.value.map((n, y) => n.uid === t ? {
|
|
234
234
|
...n,
|
|
235
235
|
values: [a]
|
|
236
236
|
} : n), xe.value = requestAnimationFrame(u));
|
|
@@ -253,9 +253,9 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
253
253
|
})).map((t, o) => ({
|
|
254
254
|
...t,
|
|
255
255
|
proportion: t.value / v.value.map((l) => (l.values || []).reduce((a, u) => a + u, 0)).reduce((l, a) => l + a, 0),
|
|
256
|
-
opacity:
|
|
256
|
+
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
257
257
|
segregate: () => Ce(t.uid),
|
|
258
|
-
isSegregated:
|
|
258
|
+
isSegregated: p.value.includes(t.uid)
|
|
259
259
|
}))), Re = d(() => ({
|
|
260
260
|
cy: "waffle-div-legend",
|
|
261
261
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
@@ -265,7 +265,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
265
265
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
266
266
|
})), _ = d(() => j.value.map((t) => t.value).reduce((t, o) => t + o, 0)), te = c(null);
|
|
267
267
|
function Ue(t) {
|
|
268
|
-
if (
|
|
268
|
+
if (p.value.length === g.dataset.length) return;
|
|
269
269
|
const o = r.value[t];
|
|
270
270
|
te.value = {
|
|
271
271
|
datapoint: o,
|
|
@@ -401,7 +401,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
401
401
|
}
|
|
402
402
|
return Fe({
|
|
403
403
|
getData: De,
|
|
404
|
-
generatePdf:
|
|
404
|
+
generatePdf: ye,
|
|
405
405
|
generateCsv: _e,
|
|
406
406
|
generateImage: fe,
|
|
407
407
|
toggleTable: $e,
|
|
@@ -440,7 +440,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
440
440
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
441
441
|
color: e.value.style.chart.color,
|
|
442
442
|
isPrinting: h(he),
|
|
443
|
-
isImaging: h(
|
|
443
|
+
isImaging: h(pe),
|
|
444
444
|
uid: L.value,
|
|
445
445
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
446
446
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -452,8 +452,9 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
452
452
|
isTooltip: I.value.showTooltip,
|
|
453
453
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
454
454
|
chartElement: R.value,
|
|
455
|
+
position: e.value.userOptions.position,
|
|
455
456
|
onToggleFullscreen: je,
|
|
456
|
-
onGeneratePdf: h(
|
|
457
|
+
onGeneratePdf: h(ye),
|
|
457
458
|
onGenerateCsv: _e,
|
|
458
459
|
onGenerateImage: h(fe),
|
|
459
460
|
onToggleTable: $e,
|
|
@@ -501,7 +502,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
501
502
|
]),
|
|
502
503
|
key: "5"
|
|
503
504
|
} : void 0
|
|
504
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
505
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
505
506
|
X.value ? (s(), i("svg", {
|
|
506
507
|
key: 2,
|
|
507
508
|
xmlns: h(ot),
|
|
@@ -634,7 +635,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
634
635
|
w(t.$slots, "svg", { svg: P.value }, void 0, !0)
|
|
635
636
|
], 14, It)) : f("", !0),
|
|
636
637
|
t.$slots.watermark ? (s(), i("div", Et, [
|
|
637
|
-
w(t.$slots, "watermark", q(H({ isPrinting: h(he) || h(
|
|
638
|
+
w(t.$slots, "watermark", q(H({ isPrinting: h(he) || h(pe) })), void 0, !0)
|
|
638
639
|
])) : f("", !0),
|
|
639
640
|
X.value ? f("", !0) : (s(), V(xt, {
|
|
640
641
|
key: 4,
|
|
@@ -661,7 +662,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
661
662
|
item: b(({ legend: l }) => [
|
|
662
663
|
k("div", {
|
|
663
664
|
onClick: (a) => l.segregate(),
|
|
664
|
-
style: Q(`opacity:${
|
|
665
|
+
style: Q(`opacity:${p.value.includes(l.uid) ? 0.5 : 1}`)
|
|
665
666
|
}, [
|
|
666
667
|
Le(S(l.name) + ": " + S(h(D)(
|
|
667
668
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
@@ -675,7 +676,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
675
676
|
}),
|
|
676
677
|
{ datapoint: l }
|
|
677
678
|
)) + " ", 1),
|
|
678
|
-
|
|
679
|
+
p.value.includes(l.uid) ? (s(), i("span", Ht, " ( - % ) ")) : (s(), i("span", qt, " (" + S(isNaN(l.value / _.value) ? "-" : h(x)({ v: l.value / _.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })) + ") ", 1))
|
|
679
680
|
], 12, Wt)
|
|
680
681
|
]),
|
|
681
682
|
_: 1
|
|
@@ -685,7 +686,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
685
686
|
}, void 0, !0)
|
|
686
687
|
], 512),
|
|
687
688
|
He(bt, {
|
|
688
|
-
show: I.value.showTooltip && Z.value &&
|
|
689
|
+
show: I.value.showTooltip && Z.value && p.value.length < g.dataset.length,
|
|
689
690
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
690
691
|
color: e.value.style.chart.tooltip.color,
|
|
691
692
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -749,7 +750,7 @@ const ze = (G) => (Ye("data-v-59a6d2cc"), G = G(), Je(), G), $t = ["id"], It = [
|
|
|
749
750
|
}, 8, ["config"])) : f("", !0)
|
|
750
751
|
], 14, $t));
|
|
751
752
|
}
|
|
752
|
-
}, nl = /* @__PURE__ */ _t(Yt, [["__scopeId", "data-v-
|
|
753
|
+
}, nl = /* @__PURE__ */ _t(Yt, [["__scopeId", "data-v-a80f56d0"]]);
|
|
753
754
|
export {
|
|
754
755
|
nl as default
|
|
755
756
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { computed as p, ref as o, watch as L, onMounted as V, onBeforeUnmount as ee, openBlock as r, createElementBlock as v, normalizeStyle as U, createBlock as b, createCommentVNode as d, unref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as de } from "./Title-
|
|
4
|
-
import { u as fe, U as ye } from "./usePrinter-
|
|
1
|
+
import { computed as p, ref as o, watch as L, onMounted as V, onBeforeUnmount as ee, openBlock as r, createElementBlock as v, normalizeStyle as U, createBlock as b, createCommentVNode as d, unref as n, createSlots as te, withCtx as _, renderSlot as f, normalizeProps as X, guardReactiveProps as B, normalizeClass as G, Fragment as ae, renderList as le, toDisplayString as se } from "vue";
|
|
2
|
+
import { u as ne, c as oe, t as re, o as ue, e as ie, w as T, X as ce, i as he, v as E, f as ve } from "./index-D2epy0rJ.js";
|
|
3
|
+
import { _ as de } from "./Title-DJ2FNrSN.js";
|
|
4
|
+
import { u as fe, U as ye } from "./usePrinter-B6qtXaHk.js";
|
|
5
5
|
import { t as me, u as ge } from "./useResponsive-NZB-WLRF.js";
|
|
6
|
-
import pe from "./vue-ui-skeleton-
|
|
7
|
-
import { u as
|
|
6
|
+
import pe from "./vue-ui-skeleton-BLiYyX95.js";
|
|
7
|
+
import { u as R } from "./useNestedProp-C_ZrJBd9.js";
|
|
8
8
|
import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], _e = ["cx", "cy", "r", "stroke", "stroke-width"], xe = ["x", "y", "font-size", "fill", "font-weight"], Ie = {
|
|
10
10
|
key: 3,
|
|
@@ -25,18 +25,18 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
setup(
|
|
29
|
-
const i =
|
|
28
|
+
setup(j, { expose: D }) {
|
|
29
|
+
const i = j, { vue_ui_wheel: Y } = ne(), k = p(() => !!i.dataset && Object.keys(i.dataset).length), w = o(oe()), H = o(null), x = o(0), y = o(null), I = o(null), F = o(0), e = p({
|
|
30
30
|
get: () => P(),
|
|
31
31
|
set: (t) => t
|
|
32
32
|
});
|
|
33
33
|
function P() {
|
|
34
|
-
const t =
|
|
34
|
+
const t = R({
|
|
35
35
|
userConfig: i.config,
|
|
36
36
|
defaultConfig: Y
|
|
37
37
|
});
|
|
38
38
|
return t.theme ? {
|
|
39
|
-
...
|
|
39
|
+
...R({
|
|
40
40
|
userConfig: re.vue_ui_wheel[t.theme] || i.config,
|
|
41
41
|
defaultConfig: t
|
|
42
42
|
})
|
|
@@ -45,7 +45,7 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
45
45
|
L(() => i.config, (t) => {
|
|
46
46
|
e.value = P(), N(), F.value += 1;
|
|
47
47
|
}, { deep: !0 });
|
|
48
|
-
const { isPrinting: $, isImaging: z, generatePdf:
|
|
48
|
+
const { isPrinting: $, isImaging: z, generatePdf: O, generateImage: S } = fe({
|
|
49
49
|
elementId: w.value,
|
|
50
50
|
fileName: e.value.style.chart.title.text || "vue-ui-wheel"
|
|
51
51
|
}), l = o({
|
|
@@ -63,9 +63,9 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
63
63
|
y: u.value.centerY + u.value.radius * Math.sin(29.85 + t * Math.PI / 180) * c
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const s = o(e.value.style.chart.animation.use ? 0 : i.dataset.percentage || 0);
|
|
67
67
|
L(() => i.dataset, (t) => {
|
|
68
|
-
e.value.style.chart.animation.use ? A(t.percentage) :
|
|
68
|
+
e.value.style.chart.animation.use ? A(t.percentage) : s.value = t.percentage || 0;
|
|
69
69
|
}, { deep: !0 });
|
|
70
70
|
const m = o(null);
|
|
71
71
|
V(() => {
|
|
@@ -91,16 +91,16 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
91
91
|
});
|
|
92
92
|
function A(t) {
|
|
93
93
|
let c = e.value.style.chart.animation.speed;
|
|
94
|
-
const a = Math.abs(t -
|
|
94
|
+
const a = Math.abs(t - s.value) / (c * 120);
|
|
95
95
|
function h() {
|
|
96
|
-
|
|
96
|
+
s.value < t ? s.value = Math.min(s.value + a, t) : s.value > t && (s.value = Math.max(s.value - a, t)), s.value !== t && requestAnimationFrame(h);
|
|
97
97
|
}
|
|
98
98
|
h();
|
|
99
99
|
}
|
|
100
100
|
const W = p(() => {
|
|
101
101
|
const t = [];
|
|
102
102
|
for (let a = 0; a < 100; a += 1) {
|
|
103
|
-
const h =
|
|
103
|
+
const h = s.value > a ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: J, y: K } = M(l.value.size / 100 * a), { x: Q, y: Z } = M(l.value.size / 100 * a, e.value.style.chart.layout.wheel.ticks.sizeRatio);
|
|
104
104
|
t.push({
|
|
105
105
|
x1: J,
|
|
106
106
|
y1: K,
|
|
@@ -114,9 +114,9 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
114
114
|
function q(t) {
|
|
115
115
|
g.value = t, x.value += 1;
|
|
116
116
|
}
|
|
117
|
-
return
|
|
118
|
-
generatePdf:
|
|
119
|
-
generateImage:
|
|
117
|
+
return D({
|
|
118
|
+
generatePdf: O,
|
|
119
|
+
generateImage: S
|
|
120
120
|
}), (t, c) => (r(), v("div", {
|
|
121
121
|
class: "vue-ui-wheel",
|
|
122
122
|
ref_key: "wheelChart",
|
|
@@ -150,19 +150,20 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
150
150
|
key: `user_options_${x.value}`,
|
|
151
151
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
152
152
|
color: e.value.style.chart.color,
|
|
153
|
-
isPrinting:
|
|
154
|
-
isImaging:
|
|
153
|
+
isPrinting: n($),
|
|
154
|
+
isImaging: n(z),
|
|
155
155
|
uid: w.value,
|
|
156
156
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
157
157
|
hasImg: e.value.userOptions.buttons.img,
|
|
158
158
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
159
159
|
hasXls: !1,
|
|
160
160
|
isFullscreen: g.value,
|
|
161
|
+
position: e.value.userOptions.position,
|
|
161
162
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
162
163
|
chartElement: y.value,
|
|
163
164
|
onToggleFullscreen: q,
|
|
164
|
-
onGeneratePdf:
|
|
165
|
-
onGenerateImage:
|
|
165
|
+
onGeneratePdf: n(O),
|
|
166
|
+
onGenerateImage: n(S)
|
|
166
167
|
}, te({ _: 2 }, [
|
|
167
168
|
t.$slots.optionPdf ? {
|
|
168
169
|
name: "optionPdf",
|
|
@@ -185,10 +186,10 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
185
186
|
]),
|
|
186
187
|
key: "2"
|
|
187
188
|
} : void 0
|
|
188
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
189
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : d("", !0),
|
|
189
190
|
k.value ? (r(), v("svg", {
|
|
190
191
|
key: 2,
|
|
191
|
-
xmlns:
|
|
192
|
+
xmlns: n(ce),
|
|
192
193
|
class: G({ "vue-data-ui-fullscreen--on": g.value, "vue-data-ui-fulscreen--off": !g.value }),
|
|
193
194
|
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
194
195
|
style: U(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
@@ -201,7 +202,7 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
201
202
|
stroke: a.color,
|
|
202
203
|
"stroke-width": 5 / 360 * Math.min(l.value.width, l.value.height),
|
|
203
204
|
"stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
|
|
204
|
-
class: G({ "vue-ui-tick-animated": e.value.style.chart.animation.use && h <=
|
|
205
|
+
class: G({ "vue-ui-tick-animated": e.value.style.chart.animation.use && h <= s.value })
|
|
205
206
|
}, null, 10, be))), 256)),
|
|
206
207
|
e.value.style.chart.layout.innerCircle.show ? (r(), v("circle", {
|
|
207
208
|
key: 0,
|
|
@@ -217,15 +218,15 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
217
218
|
x: u.value.centerX,
|
|
218
219
|
y: u.value.centerY + C.value / 3,
|
|
219
220
|
"font-size": C.value,
|
|
220
|
-
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ?
|
|
221
|
+
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? n(T)(e.value.style.chart.layout.wheel.ticks.activeColor, s.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
|
|
221
222
|
"text-anchor": "middle",
|
|
222
223
|
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
223
224
|
style: { "font-variant-numeric": "tabluar-nums" }
|
|
224
|
-
},
|
|
225
|
+
}, se(n(he)(
|
|
225
226
|
e.value.style.chart.layout.percentage.formatter,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
v:
|
|
227
|
+
n(E)(s.value),
|
|
228
|
+
n(ve)({
|
|
229
|
+
v: n(E)(s.value),
|
|
229
230
|
s: "%",
|
|
230
231
|
r: e.value.style.chart.layout.percentage.rounding
|
|
231
232
|
})
|
|
@@ -233,7 +234,7 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
233
234
|
f(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
234
235
|
], 14, Ce)) : d("", !0),
|
|
235
236
|
t.$slots.watermark ? (r(), v("div", Ie, [
|
|
236
|
-
f(t.$slots, "watermark", X(B({ isPrinting:
|
|
237
|
+
f(t.$slots, "watermark", X(B({ isPrinting: n($) || n(z) })), void 0, !0)
|
|
237
238
|
])) : d("", !0),
|
|
238
239
|
k.value ? d("", !0) : (r(), b(pe, {
|
|
239
240
|
key: 4,
|
|
@@ -249,7 +250,7 @@ const we = ["id"], Ce = ["xmlns", "viewBox"], be = ["x1", "x2", "y1", "y2", "str
|
|
|
249
250
|
}, null, 8, ["config"]))
|
|
250
251
|
], 12, we));
|
|
251
252
|
}
|
|
252
|
-
}, Le = /* @__PURE__ */ ke(Fe, [["__scopeId", "data-v-
|
|
253
|
+
}, Le = /* @__PURE__ */ ke(Fe, [["__scopeId", "data-v-c986f267"]]);
|
|
253
254
|
export {
|
|
254
255
|
Le as default
|
|
255
256
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CVgBMJU6.cjs"),U=require("./Title-Ahj4TYHa.cjs"),N=require("./usePrinter-DN-6Hoh5.cjs"),S=require("./useResponsive-B3TrDDIG.cjs"),G=require("./vue-ui-skeleton-Br1K3exH.cjs"),z=require("./useNestedProp-B-NmF2LO.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["id"],H=["xmlns","viewBox"],V=["x1","x2","y1","y2","stroke","stroke-width","stroke-linecap"],D=["cx","cy","r","stroke","stroke-width"],Y=["x","y","font-size","fill","font-weight"],W={key:3,class:"vue-data-ui-watermark"},J={__name:"vue-ui-wheel",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(F,{expose:$}){const s=F,{vue_ui_wheel:O}=r.useConfig(),f=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length),y=e.ref(r.createUid()),M=e.ref(null),p=e.ref(0),h=e.ref(null),g=e.ref(null),k=e.ref(0),t=e.computed({get:()=>w(),set:l=>l});function w(){const l=z.useNestedProp({userConfig:s.config,defaultConfig:O});return l.theme?{...z.useNestedProp({userConfig:r.themes.vue_ui_wheel[l.theme]||s.config,defaultConfig:l})}:l}e.watch(()=>s.config,l=>{t.value=w(),P(),k.value+=1},{deep:!0});const{isPrinting:C,isImaging:b,generatePdf:_,generateImage:x}=N.usePrinter({elementId:y.value,fileName:t.value.style.chart.title.text||"vue-ui-wheel"}),n=e.ref({size:360,height:360,width:360}),m=e.ref(t.value.style.chart.layout.percentage.fontSize),u=e.computed(()=>({radius:Math.min(n.value.width,n.value.height)*.9/2,centerX:n.value.width/2,centerY:n.value.height/2}));function B(l,i=1){return{x:u.value.centerX+u.value.radius*Math.cos(29.85+l*Math.PI/180)*i,y:u.value.centerY+u.value.radius*Math.sin(29.85+l*Math.PI/180)*i}}const o=e.ref(t.value.style.chart.animation.use?0:s.dataset.percentage||0);e.watch(()=>s.dataset,l=>{t.value.style.chart.animation.use?I(l.percentage):o.value=l.percentage||0},{deep:!0});const v=e.ref(null);e.onMounted(()=>{P()});function P(){if(r.objectIsEmpty(s.dataset)&&r.error({componentName:"VueUiWheel",type:"dataset"}),I(s.dataset.percentage||0),t.value.responsive){const l=S.throttle(()=>{const{width:i,height:a}=S.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null});n.value.width=i,n.value.height=a,m.value=t.value.style.chart.layout.percentage.fontSize/360*Math.min(i,a)});v.value=new ResizeObserver(l),v.value.observe(h.value.parentNode)}}e.onBeforeUnmount(()=>{v.value&&v.value.disconnect()});function I(l){let i=t.value.style.chart.animation.speed;const a=Math.abs(l-o.value)/(i*120);function c(){o.value<l?o.value=Math.min(o.value+a,l):o.value>l&&(o.value=Math.max(o.value-a,l)),o.value!==l&&requestAnimationFrame(c)}c()}const E=e.computed(()=>{const l=[];for(let a=0;a<100;a+=1){const c=o.value>a?t.value.style.chart.layout.wheel.ticks.activeColor:t.value.style.chart.layout.wheel.ticks.inactiveColor,{x:q,y:T}=B(n.value.size/100*a),{x:L,y:R}=B(n.value.size/100*a,t.value.style.chart.layout.wheel.ticks.sizeRatio);l.push({x1:q,y1:T,x2:L,y2:R,color:t.value.style.chart.layout.wheel.ticks.gradient.show?r.shiftHue(c,a/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):c})}return l}),d=e.ref(!1);function A(l){d.value=l,p.value+=1}return $({generatePdf:_,generateImage:x}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-wheel",ref_key:"wheelChart",ref:h,id:y.value,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(U._sfc_main,{key:`title_${k.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&f.value?(e.openBlock(),e.createBlock(N.UserOptions,{ref_key:"details",ref:M,key:`user_options_${p.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(C),isImaging:e.unref(b),uid:y.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:d.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},chartElement:h.value,onToggleFullscreen:A,onGeneratePdf:e.unref(_),onGenerateImage:e.unref(x)},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:c})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:c})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","position","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":d.value,"vue-data-ui-fulscreen--off":!d.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(a,c)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2,stroke:a.color,"stroke-width":5/360*Math.min(n.value.width,n.value.height),"stroke-linecap":t.value.style.chart.layout.wheel.ticks.rounded?"round":"butt",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&c<=o.value})},null,10,V))),256)),t.value.style.chart.layout.innerCircle.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:u.value.centerX,cy:u.value.centerY,r:u.value.radius*.8<=0?1e-4:u.value.radius*.8,stroke:t.value.style.chart.layout.innerCircle.stroke,"stroke-width":t.value.style.chart.layout.innerCircle.strokeWidth,fill:"none"},null,8,D)):e.createCommentVNode("",!0),t.value.style.chart.layout.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:1,x:u.value.centerX,y:u.value.centerY+m.value/3,"font-size":m.value,fill:t.value.style.chart.layout.wheel.ticks.gradient.show?e.unref(r.shiftHue)(t.value.style.chart.layout.wheel.ticks.activeColor,o.value/100*(t.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.wheel.ticks.activeColor,"text-anchor":"middle","font-weight":t.value.style.chart.layout.percentage.bold?"bold":"normal",style:{"font-variant-numeric":"tabluar-nums"}},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.percentage.formatter,e.unref(r.checkNaN)(o.value),e.unref(r.dataLabel)({v:e.unref(r.checkNaN)(o.value),s:"%",r:t.value.style.chart.layout.percentage.rounding}))),9,Y)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:n.value},void 0,!0)],14,H)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",W,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(C)||e.unref(b)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(G.default,{key:4,config:{type:"wheel",style:{backgroundColor:t.value.style.chart.backgroundColor,wheel:{color:"#CCCCCC"}}}},null,8,["config"]))],12,j))}},K=X._export_sfc(J,[["__scopeId","data-v-c986f267"]]);exports.default=K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D-vy9N1v.cjs"),ie=require("./Title-BaKZYHEx.cjs"),j=require("./usePrinter-P4nLcXX-.cjs"),A=require("./useResponsive-B3TrDDIG.cjs"),ce=require("./vue-ui-accordion-btKAUUTu.cjs"),de=require("./DataTable-pVXaNplZ.cjs"),ve=require("./BaseIcon-BBQHz_Sf.cjs"),Y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=require("./useNestedProp-B9yDavuy.cjs"),he=i=>(e.pushScopeId("data-v-3fd7d274"),i=i(),e.popScopeId(),i),me={"data-html2canvas-ignore":""},fe={key:0,class:"reset-wrapper"},ge={key:1,class:"reset-wrapper"},pe={class:"mono-slicer"},ye=he(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),be=["min","max","value"],Ce={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(i,{emit:$}){const r=i;e.useCssVars(f=>({"90ad3208":T.value,"4f9eef70":w.value,"6e07ae3e":k.value,"2fd430a0":i.selectColor,"6b8169a4":g.value}));const T=e.computed(()=>r.inputColor),g=e.computed(()=>r.background),k=e.computed(()=>`${r.selectColor}33`),w=e.computed(()=>r.borderColor);function x(){$("reset")}const p=e.computed(()=>{const f=r.max-r.min,h=0,y=(r.value-r.min)/f*100;return{left:`${h}%`,width:`${y-h}%`,background:r.selectColor}});return(f,h)=>(e.openBlock(),e.createElementBlock("div",me,[i.value!==i.source?(e.openBlock(),e.createElementBlock("div",fe,[i.useResetSlot?e.renderSlot(f.$slots,"reset-action",{key:1,reset:x},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:x},[e.createVNode(ve.default,{name:"refresh",stroke:i.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ge)),e.createElementVNode("div",pe,[ye,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(p.value)},null,4),e.createElementVNode("input",{type:"range",min:i.min,max:i.max,value:Number(i.value),onInput:h[0]||(h[0]=y=>$("update:value",Number(y.target.value)))},null,40,be)])]))}},ke=Y._export_sfc(Ce,[["__scopeId","data-v-3fd7d274"]]),we=["id"],xe=["xmlns","viewBox"],Se=["transform"],$e=["fill","font-weight","x","y","font-size","transform"],Ne={key:3,class:"vue-data-ui-watermark"},Be=["innerHTML"],Fe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(i,{expose:$}){const r=i,{vue_ui_word_cloud:T}=u.useConfig(),g=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),k=e.ref(typeof r.dataset=="string"?u.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),w=e.ref(u.createUid()),x=e.ref(0),p=e.ref(null),f=e.ref(null),h=e.ref(0),y=e.ref(0),t=e.computed({get:()=>O(),set:o=>o});function O(){const o=H.useNestedProp({userConfig:r.config,defaultConfig:T});return o.theme?{...H.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>r.config,o=>{t.value=O(),R(),h.value+=1,y.value+=1,v.value=t.value.style.chart.width},{deep:!0});const M=e.ref(null),v=e.ref(t.value.style.chart.width),s=e.ref({width:v.value,height:t.value.style.chart.height/t.value.style.chart.height*v.value,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),J=A.throttle(()=>{const{width:o,height:a}=A.useResponsive({chart:p.value,title:t.value.style.chart.title.text?f.value:null,slicer:t.value.style.chart.zoom.show&&M.value});s.value.width=o,s.value.height=a,e.nextTick(E)});e.watch(()=>v.value,()=>{K()});const K=A.debounce(()=>{s.value.width=Number(v.value),s.value.height=t.value.style.chart.height/t.value.style.chart.height*Number(v.value),E()},10);function Q(){v.value=t.value.style.chart.width}const N=e.ref(null);e.onMounted(()=>{R()});function R(){u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):k.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{g.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(N.value=new ResizeObserver(J),N.value.observe(p.value.parentNode))}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:q,isImaging:D,generatePdf:U,generateImage:W}=j.usePrinter({elementId:`wordCloud_${w.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),B=e.ref({showTable:t.value.table.show});function Z(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function ee(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function te(o,a,l){const c=[],n={x:-a/2,y:-l/2,width:a,height:l},d=0,b=0;return o.forEach(C=>{let I=!1;for(let z=0;z<Math.max(a,l)/2&&!I;z+=t.value.style.chart.words.packingWeight)for(let V=0;V<360&&!I;V+=t.value.style.chart.words.packingWeight){const X=V*Math.PI/180,ae=d+z*Math.cos(X)-C.width/2,ne=b+z*Math.sin(X)-C.height/2,m={...C,x:ae,y:ne},re=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,se=c.some(ue=>ee(m,ue));re&&!se&&(c.push(m),I=!0)}}),c}const S=e.ref([]);e.watch(()=>r.dataset,E,{immediate:!0});function E(){const o=k.value.map(n=>n.value),a=Math.max(...o),l=Math.min(...o),c=k.value.map((n,d)=>{const b=(n.value-l)/(a-l)*(s.value.maxFontSize-s.value.minFontSize)+s.value.minFontSize,C=Z(n.name,b);return{...n,id:u.createUid(),fontSize:b,width:C.width,height:C.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[d]||t.value.customPalette[d%t.value.customPalette.length]||u.palette[d]||u.palette[d%u.palette.length]:t.value.style.chart.words.color}});S.value=te(c,s.value.width,s.value.height).sort((n,d)=>d.fontSize-n.fontSize)}const F=e.computed(()=>{const o=S.value.map(l=>({name:l.name,color:l.color})),a=S.value.map(l=>l.value);return{head:o,body:a}});function G(){e.nextTick(()=>{const o=F.value.head.map((c,n)=>[[c.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const P=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,d)=>{const b=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[d],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},b]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),_=e.ref(!1);function oe(o){_.value=o,x.value+=1}function le(){return S.value}function L(){B.value.showTable=!B.value.showTable}return $({getData:le,generateCsv:G,generatePdf:U,generateImage:W,toggleTable:L}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:p,id:`wordCloud_${w.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:f,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${h.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&g.value?(e.openBlock(),e.createBlock(j.UserOptions,{ref:"details",key:`user_option_${x.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(D),uid:w.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:p.value,onToggleFullscreen:oe,onGeneratePdf:e.unref(U),onGenerateCsv:G,onGenerateImage:e.unref(W),onToggleTable:L},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock("svg",{key:2,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:"overflow:visible;background:transparent;"},[e.createElementVNode("g",{transform:`translate(${(s.value.width<=0?10:s.value.width)/2}, ${(s.value.height<=0?10:s.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(l,c)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:c,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,style:e.normalizeStyle(`animation-delay:${c*t.value.animationDelayMs}ms !important`),class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":"middle","dominant-baseline":"middle"},e.toDisplayString(l.name),15,$e))]))),256))],8,Se),e.renderSlot(o.$slots,"svg",{svg:{height:s.value.height,width:s.value.width}},void 0,!0)],10,xe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartSlicer",ref:M,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(ke,{key:0,value:v.value,"onUpdate:value":a[0]||(a[0]=l=>v.value=l),min:100,max:t.value.style.chart.width*3,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:Q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),g.value?(e.openBlock(),e.createBlock(ce.default,{key:4,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(de.DataTable,{key:`table_${y.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[1]||(a[1]=l=>B.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Be)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,we))}},Pe=Y._export_sfc(Fe,[["__scopeId","data-v-584c01f3"]]);exports.default=Pe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-CVgBMJU6.cjs"),ie=require("./Title-Ahj4TYHa.cjs"),j=require("./usePrinter-DN-6Hoh5.cjs"),O=require("./useResponsive-B3TrDDIG.cjs"),ce=require("./vue-ui-accordion-BaV9R6cy.cjs"),de=require("./DataTable-BA_BCbHC.cjs"),ve=require("./BaseIcon-DnG75_Ol.cjs"),Y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=require("./useNestedProp-B-NmF2LO.cjs"),he=i=>(e.pushScopeId("data-v-3fd7d274"),i=i(),e.popScopeId(),i),me={"data-html2canvas-ignore":""},fe={key:0,class:"reset-wrapper"},pe={key:1,class:"reset-wrapper"},ge={class:"mono-slicer"},ye=he(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),be=["min","max","value"],Ce={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(i,{emit:$}){const r=i;e.useCssVars(f=>({"90ad3208":T.value,"4f9eef70":w.value,"6e07ae3e":k.value,"2fd430a0":i.selectColor,"6b8169a4":p.value}));const T=e.computed(()=>r.inputColor),p=e.computed(()=>r.background),k=e.computed(()=>`${r.selectColor}33`),w=e.computed(()=>r.borderColor);function x(){$("reset")}const g=e.computed(()=>{const f=r.max-r.min,h=0,y=(r.value-r.min)/f*100;return{left:`${h}%`,width:`${y-h}%`,background:r.selectColor}});return(f,h)=>(e.openBlock(),e.createElementBlock("div",me,[i.value!==i.source?(e.openBlock(),e.createElementBlock("div",fe,[i.useResetSlot?e.renderSlot(f.$slots,"reset-action",{key:1,reset:x},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:x},[e.createVNode(ve.default,{name:"refresh",stroke:i.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",pe)),e.createElementVNode("div",ge,[ye,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(g.value)},null,4),e.createElementVNode("input",{type:"range",min:i.min,max:i.max,value:Number(i.value),onInput:h[0]||(h[0]=y=>$("update:value",Number(y.target.value)))},null,40,be)])]))}},ke=Y._export_sfc(Ce,[["__scopeId","data-v-3fd7d274"]]),we=["id"],xe=["xmlns","viewBox"],Se=["transform"],$e=["fill","font-weight","x","y","font-size","transform"],Ne={key:3,class:"vue-data-ui-watermark"},Be=["innerHTML"],Fe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(i,{expose:$}){const r=i,{vue_ui_word_cloud:T}=u.useConfig(),p=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),k=e.ref(typeof r.dataset=="string"?u.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),w=e.ref(u.createUid()),x=e.ref(0),g=e.ref(null),f=e.ref(null),h=e.ref(0),y=e.ref(0),t=e.computed({get:()=>A(),set:o=>o});function A(){const o=H.useNestedProp({userConfig:r.config,defaultConfig:T});return o.theme?{...H.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>r.config,o=>{t.value=A(),R(),h.value+=1,y.value+=1,v.value=t.value.style.chart.width},{deep:!0});const M=e.ref(null),v=e.ref(t.value.style.chart.width),s=e.ref({width:v.value,height:t.value.style.chart.height/t.value.style.chart.height*v.value,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),J=O.throttle(()=>{const{width:o,height:a}=O.useResponsive({chart:g.value,title:t.value.style.chart.title.text?f.value:null,slicer:t.value.style.chart.zoom.show&&M.value});s.value.width=o,s.value.height=a,e.nextTick(E)});e.watch(()=>v.value,()=>{K()});const K=O.debounce(()=>{s.value.width=Number(v.value),s.value.height=t.value.style.chart.height/t.value.style.chart.height*Number(v.value),E()},10);function Q(){v.value=t.value.style.chart.width}const N=e.ref(null);e.onMounted(()=>{R()});function R(){u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):k.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{p.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(N.value=new ResizeObserver(J),N.value.observe(g.value.parentNode))}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:q,isImaging:D,generatePdf:U,generateImage:W}=j.usePrinter({elementId:`wordCloud_${w.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),B=e.ref({showTable:t.value.table.show});function Z(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function ee(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function te(o,a,l){const c=[],n={x:-a/2,y:-l/2,width:a,height:l},d=0,b=0;return o.forEach(C=>{let I=!1;for(let z=0;z<Math.max(a,l)/2&&!I;z+=t.value.style.chart.words.packingWeight)for(let V=0;V<360&&!I;V+=t.value.style.chart.words.packingWeight){const X=V*Math.PI/180,ae=d+z*Math.cos(X)-C.width/2,ne=b+z*Math.sin(X)-C.height/2,m={...C,x:ae,y:ne},re=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,se=c.some(ue=>ee(m,ue));re&&!se&&(c.push(m),I=!0)}}),c}const S=e.ref([]);e.watch(()=>r.dataset,E,{immediate:!0});function E(){const o=k.value.map(n=>n.value),a=Math.max(...o),l=Math.min(...o),c=k.value.map((n,d)=>{const b=(n.value-l)/(a-l)*(s.value.maxFontSize-s.value.minFontSize)+s.value.minFontSize,C=Z(n.name,b);return{...n,id:u.createUid(),fontSize:b,width:C.width,height:C.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[d]||t.value.customPalette[d%t.value.customPalette.length]||u.palette[d]||u.palette[d%u.palette.length]:t.value.style.chart.words.color}});S.value=te(c,s.value.width,s.value.height).sort((n,d)=>d.fontSize-n.fontSize)}const F=e.computed(()=>{const o=S.value.map(l=>({name:l.name,color:l.color})),a=S.value.map(l=>l.value);return{head:o,body:a}});function G(){e.nextTick(()=>{const o=F.value.head.map((c,n)=>[[c.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const P=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,d)=>{const b=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[d],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},b]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),_=e.ref(!1);function oe(o){_.value=o,x.value+=1}function le(){return S.value}function L(){B.value.showTable=!B.value.showTable}return $({getData:le,generateCsv:G,generatePdf:U,generateImage:W,toggleTable:L}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:g,id:`wordCloud_${w.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:f,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${h.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(j.UserOptions,{ref:"details",key:`user_option_${x.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(D),uid:w.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,onToggleFullscreen:oe,onGeneratePdf:e.unref(U),onGenerateCsv:G,onGenerateImage:e.unref(W),onToggleTable:L},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:2,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:"overflow:visible;background:transparent;"},[e.createElementVNode("g",{transform:`translate(${(s.value.width<=0?10:s.value.width)/2}, ${(s.value.height<=0?10:s.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(l,c)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:c,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,style:e.normalizeStyle(`animation-delay:${c*t.value.animationDelayMs}ms !important`),class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":"middle","dominant-baseline":"middle"},e.toDisplayString(l.name),15,$e))]))),256))],8,Se),e.renderSlot(o.$slots,"svg",{svg:{height:s.value.height,width:s.value.width}},void 0,!0)],10,xe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartSlicer",ref:M,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(ke,{key:0,value:v.value,"onUpdate:value":a[0]||(a[0]=l=>v.value=l),min:100,max:t.value.style.chart.width*3,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:Q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),p.value?(e.openBlock(),e.createBlock(ce.default,{key:4,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(de.DataTable,{key:`table_${y.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[1]||(a[1]=l=>B.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Be)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,we))}},Pe=Y._export_sfc(Fe,[["__scopeId","data-v-3b769470"]]);exports.default=Pe;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useCssVars as Se, computed as g, openBlock as r, createElementBlock as v, createVNode as Fe, renderSlot as f, createElementVNode as w, normalizeStyle as H, pushScopeId as Ne, popScopeId as _e, ref as c, watch as X, onMounted as Pe, onBeforeUnmount as Te, createBlock as I, createCommentVNode as N, unref as C, createSlots as ze, withCtx as m, normalizeProps as j, guardReactiveProps as q, normalizeClass as se, Fragment as Ie, renderList as Ae, toDisplayString as ne, createTextVNode as Oe, nextTick as re } from "vue";
|
|
2
|
-
import { u as Me, Y as De, v as We, c as ue, t as Be, a as Ee, p as R, o as Re, e as ie, g as Ue, f as Ve, X as Ge, q as Le, r as Xe } from "./index-
|
|
3
|
-
import { _ as je } from "./Title-
|
|
4
|
-
import { u as qe, U as He } from "./usePrinter-
|
|
2
|
+
import { u as Me, Y as De, v as We, c as ue, t as Be, a as Ee, p as R, o as Re, e as ie, g as Ue, f as Ve, X as Ge, q as Le, r as Xe } from "./index-D2epy0rJ.js";
|
|
3
|
+
import { _ as je } from "./Title-DJ2FNrSN.js";
|
|
4
|
+
import { u as qe, U as He } from "./usePrinter-B6qtXaHk.js";
|
|
5
5
|
import { d as Ye, t as Je, u as Ke } from "./useResponsive-NZB-WLRF.js";
|
|
6
|
-
import Qe from "./vue-ui-accordion-
|
|
7
|
-
import { D as Ze } from "./DataTable-
|
|
8
|
-
import et from "./BaseIcon-
|
|
6
|
+
import Qe from "./vue-ui-accordion-DzTB2FL0.js";
|
|
7
|
+
import { D as Ze } from "./DataTable-tSDSY14n.js";
|
|
8
|
+
import et from "./BaseIcon-B9istAKo.js";
|
|
9
9
|
import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as ce } from "./useNestedProp-
|
|
10
|
+
import { u as ce } from "./useNestedProp-C_ZrJBd9.js";
|
|
11
11
|
const tt = (u) => (Ne("data-v-3fd7d274"), u = u(), _e(), u), at = { "data-html2canvas-ignore": "" }, ot = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "reset-wrapper"
|
|
@@ -362,6 +362,7 @@ const tt = (u) => (Ne("data-v-3fd7d274"), u = u(), _e(), u), at = { "data-html2c
|
|
|
362
362
|
isFullscreen: B.value,
|
|
363
363
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
364
364
|
chartElement: x.value,
|
|
365
|
+
position: e.value.userOptions.position,
|
|
365
366
|
onToggleFullscreen: ye,
|
|
366
367
|
onGeneratePdf: C(ee),
|
|
367
368
|
onGenerateCsv: ae,
|
|
@@ -403,7 +404,7 @@ const tt = (u) => (Ne("data-v-3fd7d274"), u = u(), _e(), u), at = { "data-html2c
|
|
|
403
404
|
]),
|
|
404
405
|
key: "4"
|
|
405
406
|
} : void 0
|
|
406
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : N("", !0),
|
|
407
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) : N("", !0),
|
|
407
408
|
k.value ? (r(), v("svg", {
|
|
408
409
|
key: 2,
|
|
409
410
|
class: se({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
|
|
@@ -506,7 +507,7 @@ const tt = (u) => (Ne("data-v-3fd7d274"), u = u(), _e(), u), at = { "data-html2c
|
|
|
506
507
|
}, 8, ["config"])) : N("", !0)
|
|
507
508
|
], 12, ct));
|
|
508
509
|
}
|
|
509
|
-
}, Nt = /* @__PURE__ */ de(gt, [["__scopeId", "data-v-
|
|
510
|
+
}, Nt = /* @__PURE__ */ de(gt, [["__scopeId", "data-v-3b769470"]]);
|
|
510
511
|
export {
|
|
511
512
|
Nt as default
|
|
512
513
|
};
|