vue-data-ui 2.4.90 → 2.5.1
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 +8 -1
- package/dist/{Arrow-BSIvdfoj.cjs → Arrow-BYoqvFMN.cjs} +1 -1
- package/dist/{Arrow-ZO8Y9-1Q.js → Arrow-CNFYWYKd.js} +1 -1
- package/dist/{BaseIcon-BpofIJET.js → BaseIcon-CZ4uFxC7.js} +4 -3
- package/dist/{BaseIcon-UR3q41gQ.cjs → BaseIcon-WPy5Rb2H.cjs} +1 -1
- package/dist/{DataTable-DSxaFF3x.js → DataTable-BiaAVa_F.js} +2 -2
- package/dist/{DataTable-D-hda58J.cjs → DataTable-CdUbJy2R.cjs} +1 -1
- package/dist/{Legend-bHoLREZn.cjs → Legend-BnISukey.cjs} +1 -1
- package/dist/{Legend-DMkFFdOO.js → Legend-Dw8hyLSd.js} +2 -2
- package/dist/{PackageVersion-LxLDMXmr.js → PackageVersion-BFyYSHga.js} +1 -1
- package/dist/PackageVersion-DJECkV0A.cjs +1 -0
- package/dist/{PenAndPaper-C_SiTAbJ.js → PenAndPaper-1g9CCad-.js} +3 -3
- package/dist/{PenAndPaper-BO89xQwu.cjs → PenAndPaper-BLFX9yTF.cjs} +1 -1
- package/dist/{Shape-BysfkOzx.js → Shape-BSJQ7DnI.js} +1 -1
- package/dist/{Shape-tIX54tZo.cjs → Shape-DEgEDWnK.cjs} +1 -1
- package/dist/{Slicer-BxN9wDTW.cjs → Slicer-C0CDSZWe.cjs} +1 -1
- package/dist/{Slicer-Cguxp4_C.js → Slicer-CH4QNS2q.js} +2 -2
- package/dist/{Title-Dcy3qq8t.js → Title-BzUgxBMs.js} +1 -1
- package/dist/{Title-C7FKCxhh.cjs → Title-Cg-pVkpN.cjs} +1 -1
- package/dist/{Tooltip-HFiG7-b2.cjs → Tooltip-CFIkSHmH.cjs} +1 -1
- package/dist/{Tooltip-CRRn6Gtk.js → Tooltip-O0zo8BID.js} +1 -1
- package/dist/documentation/installation.md +2 -1
- package/dist/index-D6jkeYks.cjs +9 -0
- package/dist/{index-DD55onbf.js → index-DOp04QkH.js} +584 -417
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1140 -384
- package/dist/types/vue-data-ui.d.ts +1140 -384
- package/dist/{useNestedProp-Cf4jge53.js → useNestedProp-Bcfi6on_.js} +1 -1
- package/dist/{useNestedProp-eByLWGIp.cjs → useNestedProp-rf0W8kVM.cjs} +1 -1
- package/dist/{usePrinter-C1cmAKZi.cjs → usePrinter-DX7QbYMt.cjs} +1 -1
- package/dist/{usePrinter-DWsOiNiW.js → usePrinter-SqbV_ohU.js} +1 -1
- package/dist/vue-data-ui-Ch3scsoz.cjs +9 -0
- package/dist/{vue-data-ui-Ckk3cZP3.js → vue-data-ui-DZklL9pZ.js} +68 -66
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +59 -58
- package/dist/{vue-ui-3d-bar-CKUz-73_.js → vue-ui-3d-bar-B1W3tnaP.js} +41 -41
- package/dist/{vue-ui-3d-bar-vXOpY3Ff.cjs → vue-ui-3d-bar-VEHwaBcd.cjs} +11 -11
- package/dist/{vue-ui-accordion-DLLoQbUa.js → vue-ui-accordion-BXv_xEog.js} +3 -3
- package/dist/{vue-ui-accordion-Bd4pdW-K.cjs → vue-ui-accordion-CgkYT3Cq.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Daa6G08e.js → vue-ui-age-pyramid-CBCTPthi.js} +12 -12
- package/dist/vue-ui-age-pyramid-D_IUZzvf.cjs +1 -0
- package/dist/{vue-ui-annotator-CroOFpE1.js → vue-ui-annotator-C34K5Ew0.js} +1 -1
- package/dist/{vue-ui-annotator-p9ayuN1-.cjs → vue-ui-annotator-CLIKuTqr.cjs} +1 -1
- package/dist/vue-ui-bullet-CzVEhFRG.cjs +34 -0
- package/dist/{vue-ui-bullet-D4_F7DfJ.js → vue-ui-bullet-Xk8xvqSf.js} +42 -42
- package/dist/{vue-ui-candlestick-C_CS8yoj.cjs → vue-ui-candlestick-Ba6yXyYj.cjs} +2 -2
- package/dist/{vue-ui-candlestick-DH5ZszpO.js → vue-ui-candlestick-CCMbT5ip.js} +13 -13
- package/dist/{vue-ui-carousel-table-KRMGBHRP.js → vue-ui-carousel-table-BsDjjayA.js} +26 -26
- package/dist/vue-ui-carousel-table-CkTMdwC2.cjs +1 -0
- package/dist/{vue-ui-chestnut-DlzGrBKE.js → vue-ui-chestnut-HkoXXqLL.js} +11 -11
- package/dist/{vue-ui-chestnut-GIMUpe9V.cjs → vue-ui-chestnut-gNeEA-fs.cjs} +2 -2
- package/dist/vue-ui-circle-pack-C7mESU9Q.js +639 -0
- package/dist/vue-ui-circle-pack-DDdvmNlI.cjs +1 -0
- package/dist/{vue-ui-cursor-Bzpat70I.js → vue-ui-cursor-DB82p9Hm.js} +2 -2
- package/dist/{vue-ui-cursor-CP_hLq_F.cjs → vue-ui-cursor-DWcza74W.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CAxpWqdp.js → vue-ui-dashboard-C0BPKDja.js} +2 -2
- package/dist/{vue-ui-dashboard-Bl45zC_-.cjs → vue-ui-dashboard-C61sthvf.cjs} +1 -1
- package/dist/{vue-ui-digits-DBsciKvZ.js → vue-ui-digits-CbE1Mix-.js} +2 -2
- package/dist/{vue-ui-digits-BUj0U6ah.cjs → vue-ui-digits-CbTCX8mU.cjs} +1 -1
- package/dist/vue-ui-donut-C57Wdzm2.cjs +1 -0
- package/dist/{vue-ui-donut-BaivqlQ9.js → vue-ui-donut-Cb2buz06.js} +15 -15
- package/dist/{vue-ui-donut-evolution-DwMUeGj1.js → vue-ui-donut-evolution-DdFLbXi8.js} +42 -42
- package/dist/vue-ui-donut-evolution-zlYc16Ii.cjs +1 -0
- package/dist/vue-ui-dumbbell-BFZ3fbJv.cjs +9 -0
- package/dist/{vue-ui-dumbbell-BYHA7gmV.js → vue-ui-dumbbell-Chl4VHoW.js} +12 -12
- package/dist/vue-ui-flow-CbXKICkI.cjs +1 -0
- package/dist/{vue-ui-flow-DNunZt6t.js → vue-ui-flow-DMBCObQV.js} +11 -11
- package/dist/vue-ui-funnel-BfjCE1cI.cjs +1 -0
- package/dist/{vue-ui-funnel-C3HTyg1p.js → vue-ui-funnel-DgfiF2HU.js} +12 -12
- package/dist/{vue-ui-galaxy-DqJhMTWB.js → vue-ui-galaxy-Dn0bfQjf.js} +29 -29
- package/dist/vue-ui-galaxy-Dpy6zMBl.cjs +1 -0
- package/dist/{vue-ui-gauge-TkdVQL99.js → vue-ui-gauge-BOU_X96H.js} +29 -29
- package/dist/vue-ui-gauge-CHnLLES1.cjs +1 -0
- package/dist/{vue-ui-gizmo-B8hAT82V.js → vue-ui-gizmo-DnhuJcvj.js} +3 -3
- package/dist/{vue-ui-gizmo-DkSmQPnp.cjs → vue-ui-gizmo-wrxzscYI.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CyoWZ7ce.js → vue-ui-heatmap-BAjPEZIs.js} +32 -32
- package/dist/vue-ui-heatmap-PD47EF73.cjs +1 -0
- package/dist/{vue-ui-history-plot-DCSjZE3t.js → vue-ui-history-plot--XkBi7LP.js} +33 -33
- package/dist/vue-ui-history-plot-AQOaXiMJ.cjs +1 -0
- package/dist/{vue-ui-kpi-DTIZqf1G.cjs → vue-ui-kpi-CFo8XLRM.cjs} +1 -1
- package/dist/{vue-ui-kpi-CEybiAoH.js → vue-ui-kpi-Di3Y0kcW.js} +3 -3
- package/dist/{vue-ui-mini-loader-DtmpAbXk.js → vue-ui-mini-loader-DZ-19Fy_.js} +2 -2
- package/dist/{vue-ui-mini-loader-vuKZGTDh.cjs → vue-ui-mini-loader-dxxljHLh.cjs} +1 -1
- package/dist/vue-ui-molecule-BJqx_dc3.cjs +1 -0
- package/dist/{vue-ui-molecule-CP3TR3uW.js → vue-ui-molecule-DJBnE_jH.js} +13 -13
- package/dist/vue-ui-mood-radar-CpwJ_cB8.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Cl0h0D-W.js → vue-ui-mood-radar-DBiJFS62.js} +13 -13
- package/dist/{vue-ui-nested-donuts-Dt5rDxew.js → vue-ui-nested-donuts-C42pYQix.js} +14 -14
- package/dist/{vue-ui-nested-donuts-C0umA4ML.cjs → vue-ui-nested-donuts-CefKrEVc.cjs} +2 -2
- package/dist/{vue-ui-onion-Dd6TzYXX.js → vue-ui-onion-B3phYszo.js} +13 -13
- package/dist/{vue-ui-onion-iQwEuELC.cjs → vue-ui-onion-BeDt4Anf.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CDWIGek4.js → vue-ui-parallel-coordinate-plot-MZBn_QTf.js} +35 -35
- package/dist/{vue-ui-parallel-coordinate-plot-D3tglRgP.cjs → vue-ui-parallel-coordinate-plot-jXTfaR6Q.cjs} +2 -2
- package/dist/{vue-ui-quadrant-HQMcbIkL.js → vue-ui-quadrant-Bq9Uulba.js} +14 -14
- package/dist/vue-ui-quadrant-CEXW_YPr.cjs +1 -0
- package/dist/{vue-ui-quick-chart-BHN_uJBE.js → vue-ui-quick-chart-C2rS5ZpC.js} +9 -9
- package/dist/{vue-ui-quick-chart-Debf-SrU.cjs → vue-ui-quick-chart-CbjQYY94.cjs} +1 -1
- package/dist/{vue-ui-radar-2Ck9VBhT.js → vue-ui-radar-DJbTdhLl.js} +14 -14
- package/dist/vue-ui-radar-DNt9byAF.cjs +1 -0
- package/dist/{vue-ui-rating-l_ou-fwb.js → vue-ui-rating-D7jOrfpr.js} +2 -2
- package/dist/{vue-ui-rating-CFUtQBK8.cjs → vue-ui-rating-DwNJCpUJ.cjs} +1 -1
- package/dist/vue-ui-relation-circle-DFYrWmK5.cjs +1 -0
- package/dist/{vue-ui-relation-circle-Bz9PNnTk.js → vue-ui-relation-circle-WSXW7BVk.js} +37 -37
- package/dist/{vue-ui-rings-BHSDf_bS.js → vue-ui-rings-CT-GkKu3.js} +36 -36
- package/dist/{vue-ui-rings-B88wRjdq.cjs → vue-ui-rings-CrZBI8PB.cjs} +2 -2
- package/dist/vue-ui-scatter-C3W6efmF.cjs +1 -0
- package/dist/{vue-ui-scatter-CFf7Shno.js → vue-ui-scatter-Dj_6kLom.js} +14 -14
- package/dist/{vue-ui-screenshot-CDenayoD.js → vue-ui-screenshot-Bp2d4iA5.js} +1 -1
- package/dist/{vue-ui-screenshot-c_vhJ0-B.cjs → vue-ui-screenshot-DZr2dJ3_.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CESQcfWL.js → vue-ui-skeleton-7EpMEisR.js} +457 -377
- package/dist/vue-ui-skeleton-D2fiHeQ-.cjs +41 -0
- package/dist/{vue-ui-smiley-D-VUvg62.js → vue-ui-smiley-BYMlfZJN.js} +2 -2
- package/dist/{vue-ui-smiley-DbELC5Y0.cjs → vue-ui-smiley-bp0yYHVC.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BdRhlsPm.cjs → vue-ui-spark-trend-BT3hC8YK.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DhPjPyRU.js → vue-ui-spark-trend-DxAKSS2H.js} +5 -5
- package/dist/{vue-ui-sparkbar-DNCM5xum.js → vue-ui-sparkbar-B4rPY-wi.js} +4 -4
- package/dist/{vue-ui-sparkbar-wgbRG59n.cjs → vue-ui-sparkbar-C5XBU4Se.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-1F6Unq-t.js → vue-ui-sparkgauge-BjWIBcyh.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B-cPl2OP.cjs → vue-ui-sparkgauge-CqzU6lZq.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C69wU065.js → vue-ui-sparkhistogram-122mnka1.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-Bf3Q8coy.cjs → vue-ui-sparkhistogram-w8GowxGd.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BvxaN2GO.cjs → vue-ui-sparkline-DSVfpk0u.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CrP5yEbF.js → vue-ui-sparkline-DnXzcZfe.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-C-zgACDi.js → vue-ui-sparkstackbar-DgB1H3Qg.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BlzBOi83.cjs → vue-ui-sparkstackbar-o25sQU3T.cjs} +1 -1
- package/dist/{vue-ui-stackbar-C96Fxg66.cjs → vue-ui-stackbar-DcXPnNeB.cjs} +2 -2
- package/dist/{vue-ui-stackbar-BYmJkNhD.js → vue-ui-stackbar-rTEU1rP4.js} +15 -15
- package/dist/vue-ui-strip-plot-DeBGuBRO.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BS7quLHn.js → vue-ui-strip-plot-Dsvur-Dh.js} +13 -13
- package/dist/{vue-ui-table-D4-lUGYK.js → vue-ui-table-DfD1dIuE.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BNmWCrcY.js → vue-ui-table-heatmap-BmMSuXBl.js} +8 -8
- package/dist/vue-ui-table-heatmap-UzDfjh7W.cjs +1 -0
- package/dist/{vue-ui-table-DwwE3i4I.cjs → vue-ui-table-qCnANsjT.cjs} +1 -1
- package/dist/vue-ui-table-sparkline-BvNNMcbM.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-CzVT74Bo.js → vue-ui-table-sparkline-KLjn68Pu.js} +8 -8
- package/dist/vue-ui-thermometer-DaYllSIU.cjs +1 -0
- package/dist/{vue-ui-thermometer-D6B1e-kE.js → vue-ui-thermometer-_OqrkIS5.js} +12 -12
- package/dist/{vue-ui-timer-Djy00gLF.js → vue-ui-timer-B3yM3Zsr.js} +5 -5
- package/dist/{vue-ui-timer-BVpkq0Eb.cjs → vue-ui-timer-BC7RuVRt.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BnFhNKNK.js → vue-ui-tiremarks-0PA75jsW.js} +9 -9
- package/dist/vue-ui-tiremarks-NeSNx9w7.cjs +1 -0
- package/dist/{vue-ui-treemap-qtGBTWTl.js → vue-ui-treemap-BX_X-IAg.js} +40 -40
- package/dist/vue-ui-treemap-Dwq5MOv6.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-Bv6fmPmz.cjs → vue-ui-vertical-bar-BN4p2KaI.cjs} +2 -2
- package/dist/{vue-ui-vertical-bar-Djtyca8s.js → vue-ui-vertical-bar-DtVo0EiM.js} +36 -36
- package/dist/{vue-ui-waffle--GwDqms-.js → vue-ui-waffle-Cpyxl7iK.js} +40 -40
- package/dist/vue-ui-waffle-DyKaHK13.cjs +1 -0
- package/dist/vue-ui-wheel-CmhC8bdI.cjs +1 -0
- package/dist/{vue-ui-wheel-DuULgJzV.js → vue-ui-wheel-DBca990z.js} +18 -18
- package/dist/vue-ui-word-cloud-CiUkioYv.cjs +1 -0
- package/dist/{vue-ui-word-cloud-CSMNDZ9Y.js → vue-ui-word-cloud-DPkgBASF.js} +38 -38
- package/dist/{vue-ui-xy-C4WZl8Rn.cjs → vue-ui-xy-DKTy_ODO.cjs} +1 -1
- package/dist/{vue-ui-xy-Cy5OoDkY.js → vue-ui-xy-VNRWSrW0.js} +14 -14
- package/dist/{vue-ui-xy-canvas-D2OMF5vm.js → vue-ui-xy-canvas-ByWv8cWZ.js} +13 -13
- package/dist/{vue-ui-xy-canvas-DKyQkG9T.cjs → vue-ui-xy-canvas-CXCzXCTk.cjs} +3 -3
- package/package.json +3 -2
- package/dist/PackageVersion-C2d9irPH.cjs +0 -1
- package/dist/index-oJt6G-1X.cjs +0 -9
- package/dist/vue-data-ui-ClVi4qwu.cjs +0 -9
- package/dist/vue-ui-age-pyramid-DyOUxoA7.cjs +0 -1
- package/dist/vue-ui-bullet-B8ZrosoF.cjs +0 -34
- package/dist/vue-ui-carousel-table-BD4n--x5.cjs +0 -1
- package/dist/vue-ui-donut-evolution-T0q0AQpw.cjs +0 -1
- package/dist/vue-ui-donut-hlEvLIAG.cjs +0 -1
- package/dist/vue-ui-dumbbell-DeYS8Jqs.cjs +0 -9
- package/dist/vue-ui-flow-g2-DDXHU.cjs +0 -1
- package/dist/vue-ui-funnel-Dj7HoggX.cjs +0 -1
- package/dist/vue-ui-galaxy-DkKp1Fn6.cjs +0 -1
- package/dist/vue-ui-gauge-BzWGRR5d.cjs +0 -1
- package/dist/vue-ui-heatmap-BisHe3OP.cjs +0 -1
- package/dist/vue-ui-history-plot-BzyhAUsf.cjs +0 -1
- package/dist/vue-ui-molecule-BVwf_QS7.cjs +0 -1
- package/dist/vue-ui-mood-radar-CBtUbd5w.cjs +0 -1
- package/dist/vue-ui-quadrant-CuZcEJGS.cjs +0 -1
- package/dist/vue-ui-radar-DxZpBJtG.cjs +0 -1
- package/dist/vue-ui-relation-circle-Bo8oWyEB.cjs +0 -1
- package/dist/vue-ui-scatter-DwrvTcvG.cjs +0 -1
- package/dist/vue-ui-skeleton-Bl1lucUY.cjs +0 -41
- package/dist/vue-ui-strip-plot-BpLkljEL.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGb9QBzK.cjs +0 -1
- package/dist/vue-ui-table-sparkline-BtVDfdx6.cjs +0 -1
- package/dist/vue-ui-thermometer-C6psexEi.cjs +0 -1
- package/dist/vue-ui-tiremarks-DQkEWxQJ.cjs +0 -1
- package/dist/vue-ui-treemap-BX6nGwvZ.cjs +0 -1
- package/dist/vue-ui-waffle-BWAIIf1i.cjs +0 -1
- package/dist/vue-ui-wheel-CabI8YAt.cjs +0 -1
- package/dist/vue-ui-word-cloud-BJqrgirH.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as p, ref as r, watch as H, onMounted as re, onBeforeUnmount as ue, openBlock as n, createElementBlock as c, normalizeStyle as x, unref as o, createBlock as w, createCommentVNode as v, createSlots as ie, withCtx as b, renderSlot as f, normalizeProps as I, guardReactiveProps as P, normalizeClass as Y, createVNode as ce, Fragment as ve, renderList as he, toDisplayString as de } from "vue";
|
|
2
|
-
import { u as fe, c as ye, t as pe, o as ge, e as me, w as W, X as ke, i as we, v as q, f as be } from "./index-
|
|
3
|
-
import { _ as Ce } from "./Title-
|
|
4
|
-
import { u as _e, U as
|
|
5
|
-
import { t as
|
|
6
|
-
import xe from "./vue-ui-skeleton-
|
|
7
|
-
import { u as V } from "./useNestedProp-
|
|
8
|
-
import { _ as Ie } from "./PackageVersion-
|
|
9
|
-
import { P as Pe } from "./PenAndPaper-
|
|
2
|
+
import { u as fe, c as ye, t as pe, o as ge, e as me, w as W, X as ke, i as we, v as q, f as be } from "./index-DOp04QkH.js";
|
|
3
|
+
import { _ as Ce } from "./Title-BzUgxBMs.js";
|
|
4
|
+
import { u as _e, U as Oe } from "./usePrinter-SqbV_ohU.js";
|
|
5
|
+
import { t as $e, u as Ae } from "./useResponsive-CoxXLe23.js";
|
|
6
|
+
import xe from "./vue-ui-skeleton-7EpMEisR.js";
|
|
7
|
+
import { u as V } from "./useNestedProp-Bcfi6on_.js";
|
|
8
|
+
import { _ as Ie } from "./PackageVersion-BFyYSHga.js";
|
|
9
|
+
import { P as Pe } from "./PenAndPaper-1g9CCad-.js";
|
|
10
10
|
import { u as Fe } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Ue = ["cx", "cy", "r", "stroke", "stroke-width"], Le = ["x", "y", "font-size", "fill", "font-weight"], Xe = {
|
|
@@ -32,7 +32,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x
|
|
|
32
32
|
const d = J, { vue_ui_wheel: Q } = fe(), C = p(() => !!d.dataset && Object.keys(d.dataset).length), _ = r(ye()), Z = r(null), F = r(0), y = r(null), S = r(null), z = r(null), M = r(null), N = r(0), e = p({
|
|
33
33
|
get: () => L(),
|
|
34
34
|
set: (t) => t
|
|
35
|
-
}), { userOptionsVisible:
|
|
35
|
+
}), { userOptionsVisible: O, setUserOptionsVisibility: T, keepUserOptionState: U } = Fe({ config: e.value });
|
|
36
36
|
function L() {
|
|
37
37
|
const t = V({
|
|
38
38
|
userConfig: d.config,
|
|
@@ -46,7 +46,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x
|
|
|
46
46
|
} : t;
|
|
47
47
|
}
|
|
48
48
|
H(() => d.config, (t) => {
|
|
49
|
-
e.value = L(),
|
|
49
|
+
e.value = L(), O.value = !e.value.userOptions.showOnChartHover, R(), N.value += 1;
|
|
50
50
|
}, { deep: !0 });
|
|
51
51
|
const { isPrinting: X, isImaging: B, generatePdf: E, generateImage: G } = _e({
|
|
52
52
|
elementId: _.value,
|
|
@@ -55,7 +55,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x
|
|
|
55
55
|
size: 360,
|
|
56
56
|
height: 360,
|
|
57
57
|
width: 360
|
|
58
|
-
}),
|
|
58
|
+
}), $ = r(e.value.style.chart.layout.percentage.fontSize), h = p(() => ({
|
|
59
59
|
radius: Math.min(l.value.width, l.value.height) * 0.9 / 2,
|
|
60
60
|
centerX: l.value.width / 2,
|
|
61
61
|
centerY: l.value.height / 2
|
|
@@ -79,7 +79,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x
|
|
|
79
79
|
componentName: "VueUiWheel",
|
|
80
80
|
type: "dataset"
|
|
81
81
|
}), D(d.dataset.percentage || 0), e.value.responsive) {
|
|
82
|
-
const t =
|
|
82
|
+
const t = $e(() => {
|
|
83
83
|
const { width: u, height: a } = Ae({
|
|
84
84
|
chart: y.value,
|
|
85
85
|
title: e.value.style.chart.title.text ? S.value : null,
|
|
@@ -87,7 +87,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x
|
|
|
87
87
|
noTitle: M.value
|
|
88
88
|
});
|
|
89
89
|
requestAnimationFrame(() => {
|
|
90
|
-
l.value.width = u, l.value.height = a,
|
|
90
|
+
l.value.width = u, l.value.height = a, $.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(u, a);
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
93
|
g.value = new ResizeObserver(t), g.value.observe(y.value.parentNode);
|
|
@@ -173,7 +173,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x
|
|
|
173
173
|
}
|
|
174
174
|
}, null, 8, ["config"]))
|
|
175
175
|
], 512)) : v("", !0),
|
|
176
|
-
e.value.userOptions.show && C.value && (o(U) || o(
|
|
176
|
+
e.value.userOptions.show && C.value && (o(U) || o(O)) ? (n(), w(Oe, {
|
|
177
177
|
ref_key: "details",
|
|
178
178
|
ref: Z,
|
|
179
179
|
key: `user_options_${F.value}`,
|
|
@@ -197,7 +197,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x
|
|
|
197
197
|
onGenerateImage: o(G),
|
|
198
198
|
onToggleAnnotator: A,
|
|
199
199
|
style: x({
|
|
200
|
-
visibility: o(U) ? o(
|
|
200
|
+
visibility: o(U) ? o(O) ? "visible" : "hidden" : "visible"
|
|
201
201
|
})
|
|
202
202
|
}, ie({ _: 2 }, [
|
|
203
203
|
t.$slots.optionPdf ? {
|
|
@@ -271,8 +271,8 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x
|
|
|
271
271
|
e.value.style.chart.layout.percentage.show ? (n(), c("text", {
|
|
272
272
|
key: 2,
|
|
273
273
|
x: h.value.centerX,
|
|
274
|
-
y: h.value.centerY +
|
|
275
|
-
"font-size":
|
|
274
|
+
y: h.value.centerY + $.value / 3,
|
|
275
|
+
"font-size": $.value,
|
|
276
276
|
fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? o(W)(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,
|
|
277
277
|
"text-anchor": "middle",
|
|
278
278
|
"font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
|
|
@@ -313,7 +313,7 @@ const ze = ["id"], Me = ["xmlns", "viewBox"], Ne = ["width", "height"], Te = ["x
|
|
|
313
313
|
}, null, 8, ["config"]))
|
|
314
314
|
], 44, ze));
|
|
315
315
|
}
|
|
316
|
-
}, Ke = /* @__PURE__ */ Se(Be, [["__scopeId", "data-v-
|
|
316
|
+
}, Ke = /* @__PURE__ */ Se(Be, [["__scopeId", "data-v-17848dc3"]]);
|
|
317
317
|
export {
|
|
318
318
|
Ke as default
|
|
319
319
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-D6jkeYks.cjs"),xe=require("./Title-Cg-pVkpN.cjs"),ue=require("./usePrinter-DX7QbYMt.cjs"),j=require("./useResponsive-BJ7DTGpm.cjs"),$e=require("./vue-ui-accordion-CgkYT3Cq.cjs"),Te=require("./DataTable-CdUbJy2R.cjs"),Ne=require("./BaseIcon-WPy5Rb2H.cjs"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=require("./useNestedProp-rf0W8kVM.cjs"),Pe=require("./PackageVersion-DJECkV0A.cjs"),Be=require("./Tooltip-CFIkSHmH.cjs"),Fe=require("./PenAndPaper-BLFX9yTF.cjs"),ze=require("./useUserOptionState-BgepsfED.cjs"),Oe=c=>(e.pushScopeId("data-v-b4e6aee9"),c=c(),e.popScopeId(),c),Ae={"data-html2canvas-ignore":""},Ve={key:0,class:"reset-wrapper"},Ee={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Me=Oe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Ie=["min","max","value"],Re={__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(c,{emit:P}){const s=c;e.useCssVars(y=>({"782b8172":E.value,"102109e6":x.value,"642212d7":g.value,"1f5369d4":c.selectColor,"22b98ab8":b.value}));const E=e.computed(()=>s.inputColor),b=e.computed(()=>s.background),g=e.computed(()=>`${s.selectColor}33`),x=e.computed(()=>s.borderColor);function $(){P("reset")}const p=e.computed(()=>{const y=s.max-s.min,m=0,k=(s.value-s.min)/y*100;return{left:`${m}%`,width:`${k-m}%`,background:s.selectColor}});return(y,m)=>(e.openBlock(),e.createElementBlock("div",Ae,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Ve,[c.useResetSlot?e.renderSlot(y.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(Ne.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ee)),e.createElementVNode("div",_e,[Me,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(p.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:m[0]||(m[0]=k=>P("update:value",Number(k.target.value)))},null,40,Ie)])]))}},qe=ce._export_sfc(Re,[["__scopeId","data-v-b4e6aee9"]]),Ue=["id"],We=["xmlns","viewBox"],De=["width","height"],Ge=["transform"],Le=["fill","font-weight","x","y","font-size","transform","onMouseover"],je={key:4,class:"vue-data-ui-watermark"},He=["innerHTML"],Xe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const s=c,{vue_ui_word_cloud:E}=u.useConfig(),b=e.computed({get(){return!!s.dataset&&s.dataset.length},set(o){return o}}),g=e.ref(typeof s.dataset=="string"?u.createWordCloudDatasetFromPlainText(s.dataset):s.dataset.map((o,a)=>({...o,value:u.checkNaN(o.value)}))),x=e.ref(u.createUid()),$=e.ref(0),p=e.ref(null),y=e.ref(null),m=e.ref(null),k=e.ref(0),H=e.ref(0),_=e.ref(!1),t=e.computed({get:()=>J(),set:o=>o}),{userOptionsVisible:M,setUserOptionsVisibility:X,keepUserOptionState:Y}=ze.useUserOptionState({config:t.value});function J(){const o=ie.useNestedProp({userConfig:s.config,defaultConfig:E});return o.theme?{...ie.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||s.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>s.config,o=>{t.value=J(),M.value=!t.value.userOptions.showOnChartHover,Q(),k.value+=1,H.value+=1,I(),d.value.showTable=t.value.table.show,d.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const K=e.ref(null),C=e.ref(0),r=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),de=j.throttle(()=>{const{width:o,height:a}=j.useResponsive({chart:p.value,title:t.value.style.chart.title.text?y.value:null,slicer:t.value.style.chart.zoom.show&&K.value,source:m.value});requestAnimationFrame(()=>{r.value.width=o,r.value.height=a,e.nextTick(q)})});e.watch(()=>C.value,()=>{ve()});const ve=j.debounce(()=>{q()},10);function I(){C.value=R.value}const B=e.ref(null);e.onMounted(()=>{Q(),I()});function Q(){u.objectIsEmpty(s.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):g.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{b.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(de),B.value.observe(p.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Z,isImaging:ee,generatePdf:te,generateImage:oe}=ue.usePrinter({elementId:`wordCloud_${x.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function he(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 pe(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 me(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,h=0;return o.forEach(S=>{let G=!1;for(let V=0;V<Math.max(a,l)/2&&!G;V+=t.value.style.chart.words.packingWeight)for(let L=0;L<360&&!G;L+=t.value.style.chart.words.packingWeight){const se=L*Math.PI/180,be=v+V*Math.cos(se)-S.width/2,ke=h+V*Math.sin(se)-S.height/2,f={...S,x:be,y:ke},Ce=f.x>=n.x&&f.y>=n.y&&f.x+f.width<=n.x+n.width&&f.y+f.height<=n.y+n.height,we=i.some(Se=>pe(f,Se));Ce&&!we&&(i.push(f),G=!0)}}),i}const T=e.ref([]);e.watch(()=>s.dataset,q,{immediate:!0});const R=e.computed(()=>Math.round(Math.min(...g.value.map(o=>o.value)))),le=e.computed(()=>Math.round(Math.max(...g.value.map(o=>o.value))));function q(){const o=[...g.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...g.value].filter(n=>n.value>=C.value).map((n,v)=>{let h=(n.value-l)/(a-l)*(r.value.maxFontSize-r.value.minFontSize)+r.value.minFontSize;h=isNaN(h)?r.value.minFontSize:h;const S=he(n.name,h);return{...n,id:u.createUid(),fontSize:h,width:S.width,height:S.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||u.palette[v]||u.palette[v%u.palette.length]:t.value.style.chart.words.color}});T.value=me(i,r.value.width,r.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function ae(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.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 z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,v)=>{const h=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},h]}),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}}),O=e.ref(!1);function fe(o){O.value=o,$.value+=1}function ge(){return T.value}function ne(){d.value.showTable=!d.value.showTable}function re(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function U(){A.value=!A.value}P({getData:ge,generateCsv:ae,generatePdf:te,generateImage:oe,toggleTable:ne,toggleTooltip:re,toggleAnnotator:U});const w=e.ref(null),N=e.ref(!1),W=e.ref(""),D=e.ref(null);function ye(o){if(!d.value.showTooltip)return;w.value=o.id,D.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,u.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(W.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;W.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}_.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:p,id:`wordCloud_${x.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),onMouseenter:a[3]||(a[3]=()=>e.unref(X)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Fe.PenAndPaper,{key:0,parent:p.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:U},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:y,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(xe._sfc_main,{key:`title_${k.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&&b.value&&(e.unref(Y)||e.unref(M))?(e.openBlock(),e.createBlock(ue.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Z),isImaging:e.unref(ee),uid:x.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:O.value,titles:{...t.value.userOptions.buttonTitles},chartElement:p.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(te),onGenerateCsv:ae,onGenerateImage:e.unref(oe),onToggleTable:ne,onToggleTooltip:re,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(Y)?e.unref(M)?"visible":"hidden":"visible"})},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:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":O.value,"vue-data-ui-fulscreen--off":!O.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(Pe._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,De)):e.createCommentVNode("",!0),e.createElementVNode("g",{transform:`translate(${(r.value.width<=0?10:r.value.width)/2}, ${(r.value.height<=0?10:r.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,i)=>(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:i,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":w.value&&w.value===l.id&&d.value.showTooltip,"word-not-selected":w.value&&w.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>ye(l),onMouseleave:a[0]||(a[0]=n=>{w.value=null,_.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Le))]))),256))],8,Ge),e.renderSlot(o.$slots,"svg",{svg:{height:r.value.height,width:r.value.width}},void 0,!0)],10,We)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Z)||e.unref(ee)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Be._sfc_main,{show:d.value.showTooltip&&_.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:p.value,content:W.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:K,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&R.value<le.value?(e.openBlock(),e.createBlock(qe,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:R.value,max:le.value,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:I},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:m,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createBlock($e.default,{key:6,hideDetails:"",config:{open:d.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(Te.DataTable,{key:`table_${H.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.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[2]||(a[2]=l=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,He)]),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)],44,Ue))}},Ye=ce._export_sfc(Xe,[["__scopeId","data-v-71c044b2"]]);exports.default=Ye;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useCssVars as De, computed as g, openBlock as u, createElementBlock as m, createVNode as se, renderSlot as d, createElementVNode as S, normalizeStyle as j, pushScopeId as Ee, popScopeId as Ge, ref as n, watch as le, onMounted as Le, onBeforeUnmount as Xe, unref as h, createBlock as
|
|
2
|
-
import { u as Je, a4 as Ke, v as Qe, c as xe, t as Ze, a as et, p as X, o as tt, e as Se, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-
|
|
3
|
-
import { _ as ut } from "./Title-
|
|
4
|
-
import { u as it, U as ct } from "./usePrinter-
|
|
1
|
+
import { useCssVars as De, computed as g, openBlock as u, createElementBlock as m, createVNode as se, renderSlot as d, createElementVNode as S, normalizeStyle as j, pushScopeId as Ee, popScopeId as Ge, ref as n, watch as le, onMounted as Le, onBeforeUnmount as Xe, unref as h, createBlock as P, createCommentVNode as y, createSlots as je, withCtx as p, normalizeProps as A, guardReactiveProps as _, normalizeClass as ke, Fragment as qe, renderList as He, toDisplayString as we, createTextVNode as Ye, nextTick as $e } from "vue";
|
|
2
|
+
import { u as Je, a4 as Ke, v as Qe, c as xe, t as Ze, a as et, p as X, o as tt, e as Se, g as ot, f as at, X as lt, q as st, r as nt, x as rt } from "./index-DOp04QkH.js";
|
|
3
|
+
import { _ as ut } from "./Title-BzUgxBMs.js";
|
|
4
|
+
import { u as it, U as ct } from "./usePrinter-SqbV_ohU.js";
|
|
5
5
|
import { d as dt, t as vt, u as ht } from "./useResponsive-CoxXLe23.js";
|
|
6
|
-
import mt from "./vue-ui-accordion-
|
|
7
|
-
import { D as pt } from "./DataTable-
|
|
8
|
-
import ft from "./BaseIcon-
|
|
6
|
+
import mt from "./vue-ui-accordion-BXv_xEog.js";
|
|
7
|
+
import { D as pt } from "./DataTable-BiaAVa_F.js";
|
|
8
|
+
import ft from "./BaseIcon-CZ4uFxC7.js";
|
|
9
9
|
import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as Te } from "./useNestedProp-
|
|
11
|
-
import { _ as gt } from "./PackageVersion-
|
|
12
|
-
import { _ as bt } from "./Tooltip-
|
|
13
|
-
import { P as yt } from "./PenAndPaper-
|
|
10
|
+
import { u as Te } from "./useNestedProp-Bcfi6on_.js";
|
|
11
|
+
import { _ as gt } from "./PackageVersion-BFyYSHga.js";
|
|
12
|
+
import { _ as bt } from "./Tooltip-O0zo8BID.js";
|
|
13
|
+
import { P as yt } from "./PenAndPaper-1g9CCad-.js";
|
|
14
14
|
import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2canvas-ignore": "" }, $t = {
|
|
16
16
|
key: 0,
|
|
@@ -119,7 +119,7 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
119
119
|
])
|
|
120
120
|
]));
|
|
121
121
|
}
|
|
122
|
-
}, zt = /* @__PURE__ */ Fe(Nt, [["__scopeId", "data-v-b4e6aee9"]]),
|
|
122
|
+
}, zt = /* @__PURE__ */ Fe(Nt, [["__scopeId", "data-v-b4e6aee9"]]), Ot = ["id"], Pt = ["xmlns", "viewBox"], At = ["width", "height"], _t = ["transform"], It = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], Mt = {
|
|
123
123
|
key: 4,
|
|
124
124
|
class: "vue-data-ui-watermark"
|
|
125
125
|
}, Wt = ["innerHTML"], Rt = {
|
|
@@ -167,7 +167,7 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
167
167
|
} : t;
|
|
168
168
|
}
|
|
169
169
|
le(() => r.config, (t) => {
|
|
170
|
-
e.value = ie(), Y.value = !e.value.showOnChartHover, de(), F.value += 1, ne.value += 1, J(), v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
170
|
+
e.value = ie(), Y.value = !e.value.userOptions.showOnChartHover, de(), F.value += 1, ne.value += 1, J(), v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
171
171
|
}, { deep: !0 });
|
|
172
172
|
const ce = n(null), N = n(0), s = n({
|
|
173
173
|
width: e.value.style.chart.width,
|
|
@@ -226,23 +226,23 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
226
226
|
showTable: e.value.table.show,
|
|
227
227
|
showTooltip: e.value.style.chart.tooltip.show
|
|
228
228
|
});
|
|
229
|
-
function
|
|
229
|
+
function Oe(t, a, o = "Arial") {
|
|
230
230
|
const l = document.createElement("canvas").getContext("2d");
|
|
231
231
|
return l.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
|
|
232
232
|
width: l.measureText(t).width + e.value.style.chart.words.proximity,
|
|
233
233
|
height: a
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Pe(t, a) {
|
|
237
237
|
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;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Ae(t, a, o) {
|
|
240
240
|
const i = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, f = 0, b = 0;
|
|
241
|
-
return t.forEach((
|
|
241
|
+
return t.forEach((O) => {
|
|
242
242
|
let oe = !1;
|
|
243
243
|
for (let L = 0; L < Math.max(a, o) / 2 && !oe; L += e.value.style.chart.words.packingWeight)
|
|
244
244
|
for (let ae = 0; ae < 360 && !oe; ae += e.value.style.chart.words.packingWeight) {
|
|
245
|
-
const Ce = ae * Math.PI / 180, We = f + L * Math.cos(Ce) -
|
|
245
|
+
const Ce = ae * Math.PI / 180, We = f + L * Math.cos(Ce) - O.width / 2, Re = b + L * Math.sin(Ce) - O.height / 2, w = { ...O, x: We, y: Re }, Ue = w.x >= l.x && w.y >= l.y && w.x + w.width <= l.x + l.width && w.y + w.height <= l.y + l.height, Ve = i.some((Be) => Pe(w, Be));
|
|
246
246
|
Ue && !Ve && (i.push(w), oe = !0);
|
|
247
247
|
}
|
|
248
248
|
}), i;
|
|
@@ -254,17 +254,17 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
254
254
|
const t = [...$.value].filter((l) => l.value >= N.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), i = [...$.value].filter((l) => l.value >= N.value).map((l, f) => {
|
|
255
255
|
let b = (l.value - o) / (a - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
|
|
256
256
|
b = isNaN(b) ? s.value.minFontSize : b;
|
|
257
|
-
const
|
|
257
|
+
const O = Oe(l.name, b);
|
|
258
258
|
return {
|
|
259
259
|
...l,
|
|
260
260
|
id: xe(),
|
|
261
261
|
fontSize: b,
|
|
262
|
-
width:
|
|
263
|
-
height:
|
|
262
|
+
width: O.width,
|
|
263
|
+
height: O.height,
|
|
264
264
|
color: e.value.style.chart.words.usePalette ? e.value.customPalette[f] || e.value.customPalette[f % e.value.customPalette.length] || X[f] || X[f % X.length] : e.value.style.chart.words.color
|
|
265
265
|
};
|
|
266
266
|
});
|
|
267
|
-
W.value =
|
|
267
|
+
W.value = Ae(i, s.value.width, s.value.height).sort((l, f) => f.fontSize - l.fontSize);
|
|
268
268
|
}
|
|
269
269
|
const B = g(() => {
|
|
270
270
|
const t = W.value.map((o) => ({
|
|
@@ -372,7 +372,7 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
372
372
|
onMouseenter: a[3] || (a[3] = () => h(re)(!0)),
|
|
373
373
|
onMouseleave: a[4] || (a[4] = () => h(re)(!1))
|
|
374
374
|
}, [
|
|
375
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
375
|
+
e.value.userOptions.buttons.annotator ? (u(), P(yt, {
|
|
376
376
|
key: 0,
|
|
377
377
|
parent: C.value,
|
|
378
378
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -386,7 +386,7 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
386
386
|
ref: x,
|
|
387
387
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
388
388
|
}, [
|
|
389
|
-
(u(),
|
|
389
|
+
(u(), P(ut, {
|
|
390
390
|
key: `title_${F.value}`,
|
|
391
391
|
config: {
|
|
392
392
|
title: {
|
|
@@ -398,7 +398,7 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
398
398
|
}
|
|
399
399
|
}, null, 8, ["config"]))
|
|
400
400
|
], 512)) : y("", !0),
|
|
401
|
-
e.value.userOptions.show && T.value && (h(ue) || h(Y)) ? (u(),
|
|
401
|
+
e.value.userOptions.show && T.value && (h(ue) || h(Y)) ? (u(), P(ct, {
|
|
402
402
|
ref: "details",
|
|
403
403
|
key: `user_option_${M.value}`,
|
|
404
404
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -461,14 +461,14 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
461
461
|
t.$slots.optionFullscreen ? {
|
|
462
462
|
name: "optionFullscreen",
|
|
463
463
|
fn: p(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
464
|
-
d(t.$slots, "optionFullscreen",
|
|
464
|
+
d(t.$slots, "optionFullscreen", A(_({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
465
465
|
]),
|
|
466
466
|
key: "4"
|
|
467
467
|
} : void 0,
|
|
468
468
|
t.$slots.optionAnnotator ? {
|
|
469
469
|
name: "optionAnnotator",
|
|
470
470
|
fn: p(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
471
|
-
d(t.$slots, "optionAnnotator",
|
|
471
|
+
d(t.$slots, "optionAnnotator", A(_({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
472
472
|
]),
|
|
473
473
|
key: "5"
|
|
474
474
|
} : void 0
|
|
@@ -492,7 +492,7 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
492
492
|
}
|
|
493
493
|
}, [
|
|
494
494
|
d(t.$slots, "chart-background", {}, void 0, !0)
|
|
495
|
-
], 8,
|
|
495
|
+
], 8, At)) : y("", !0),
|
|
496
496
|
S("g", {
|
|
497
497
|
transform: `translate(${(s.value.width <= 0 ? 10 : s.value.width) / 2}, ${(s.value.height <= 0 ? 10 : s.value.height) / 2})`
|
|
498
498
|
}, [
|
|
@@ -519,9 +519,9 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
519
519
|
d(t.$slots, "svg", {
|
|
520
520
|
svg: { height: s.value.height, width: s.value.width }
|
|
521
521
|
}, void 0, !0)
|
|
522
|
-
], 10,
|
|
522
|
+
], 10, Pt)) : y("", !0),
|
|
523
523
|
t.$slots.watermark ? (u(), m("div", Mt, [
|
|
524
|
-
d(t.$slots, "watermark",
|
|
524
|
+
d(t.$slots, "watermark", A(_({ isPrinting: h(ve) || h(he) })), void 0, !0)
|
|
525
525
|
])) : y("", !0),
|
|
526
526
|
se(bt, {
|
|
527
527
|
show: v.value.showTooltip && H.value,
|
|
@@ -539,10 +539,10 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
539
539
|
isCustom: R.value
|
|
540
540
|
}, {
|
|
541
541
|
"tooltip-before": p(() => [
|
|
542
|
-
d(t.$slots, "tooltip-before",
|
|
542
|
+
d(t.$slots, "tooltip-before", A(_({ ...te.value })), void 0, !0)
|
|
543
543
|
]),
|
|
544
544
|
"tooltip-after": p(() => [
|
|
545
|
-
d(t.$slots, "tooltip-after",
|
|
545
|
+
d(t.$slots, "tooltip-after", A(_({ ...te.value })), void 0, !0)
|
|
546
546
|
]),
|
|
547
547
|
_: 3
|
|
548
548
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
@@ -552,7 +552,7 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
552
552
|
style: "width:100%;background:transparent",
|
|
553
553
|
"data-html2canvas-ignore": ""
|
|
554
554
|
}, [
|
|
555
|
-
e.value.style.chart.zoom.show && K.value < fe.value ? (u(),
|
|
555
|
+
e.value.style.chart.zoom.show && K.value < fe.value ? (u(), P(zt, {
|
|
556
556
|
key: 0,
|
|
557
557
|
value: N.value,
|
|
558
558
|
"onUpdate:value": a[1] || (a[1] = (o) => N.value = o),
|
|
@@ -568,7 +568,7 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
568
568
|
onReset: J
|
|
569
569
|
}, {
|
|
570
570
|
"reset-action": p(({ reset: o }) => [
|
|
571
|
-
d(t.$slots, "reset-action",
|
|
571
|
+
d(t.$slots, "reset-action", A(_({ reset: o })), void 0, !0)
|
|
572
572
|
]),
|
|
573
573
|
_: 3
|
|
574
574
|
}, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : y("", !0)
|
|
@@ -581,7 +581,7 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
581
581
|
}, [
|
|
582
582
|
d(t.$slots, "source", {}, void 0, !0)
|
|
583
583
|
], 512)) : y("", !0),
|
|
584
|
-
T.value ? (u(),
|
|
584
|
+
T.value ? (u(), P(mt, {
|
|
585
585
|
key: 6,
|
|
586
586
|
hideDetails: "",
|
|
587
587
|
config: {
|
|
@@ -598,7 +598,7 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
598
598
|
}
|
|
599
599
|
}, {
|
|
600
600
|
content: p(() => [
|
|
601
|
-
(u(),
|
|
601
|
+
(u(), P(pt, {
|
|
602
602
|
key: `table_${ne.value}`,
|
|
603
603
|
colNames: D.value.colNames,
|
|
604
604
|
head: D.value.head,
|
|
@@ -621,9 +621,9 @@ const kt = (c) => (Ee("data-v-b4e6aee9"), c = c(), Ge(), c), wt = { "data-html2c
|
|
|
621
621
|
]),
|
|
622
622
|
_: 1
|
|
623
623
|
}, 8, ["config"])) : y("", !0)
|
|
624
|
-
], 44,
|
|
624
|
+
], 44, Ot));
|
|
625
625
|
}
|
|
626
|
-
}, Qt = /* @__PURE__ */ Fe(Rt, [["__scopeId", "data-v-
|
|
626
|
+
}, Qt = /* @__PURE__ */ Fe(Rt, [["__scopeId", "data-v-71c044b2"]]);
|
|
627
627
|
export {
|
|
628
628
|
Qt as default
|
|
629
629
|
};
|