vue-data-ui 2.4.14 → 2.4.16
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-B0eMJ0vD.cjs → Arrow-D2hqxUFF.cjs} +1 -1
- package/dist/{Arrow-CcRzwcZw.js → Arrow-DjLUfj3I.js} +1 -1
- package/dist/{BaseIcon-f-0QUq0v.js → BaseIcon-CbpX2G1z.js} +1 -1
- package/dist/{BaseIcon-BaBTKzCc.cjs → BaseIcon-Prt1oCQy.cjs} +1 -1
- package/dist/{DataTable-CHfZ1IEy.cjs → DataTable-BBgny7Xn.cjs} +1 -1
- package/dist/{DataTable-aYqFUYEK.js → DataTable-Dqxz-Alv.js} +2 -2
- package/dist/{Legend-BmTkHhIn.cjs → Legend-H7RcvGcF.cjs} +1 -1
- package/dist/{Legend-B_Euf5BX.js → Legend-qZAWBE89.js} +1 -1
- package/dist/{PackageVersion-D6vG-BXj.cjs → PackageVersion-D0qCtRhG.cjs} +1 -1
- package/dist/{PackageVersion-DFaMeCN6.js → PackageVersion-DkcHjYNR.js} +1 -1
- package/dist/{PenAndPaper-i3jYHWwR.cjs → PenAndPaper-DyFo40zC.cjs} +1 -1
- package/dist/{PenAndPaper-DxGFlSh0.js → PenAndPaper-M_ZBYgJF.js} +2 -2
- package/dist/{Shape-BBk-Sd19.js → Shape-BDC0jxZ3.js} +1 -1
- package/dist/{Shape-DFFQ_70v.cjs → Shape-eSbBghIf.cjs} +1 -1
- package/dist/Slicer-BXIEr9yc.cjs +1 -0
- package/dist/{Slicer-D8UYq3Jo.js → Slicer-C_ffaPqq.js} +86 -81
- package/dist/{Title-4bXfWbx8.cjs → Title-BXyUVn4l.cjs} +1 -1
- package/dist/{Title-JeqRfl2Z.js → Title-CJxJTQnv.js} +1 -1
- package/dist/{Tooltip-BheHY6dV.cjs → Tooltip-Bj9mOvCn.cjs} +1 -1
- package/dist/{Tooltip-DKlw-Q8v.js → Tooltip-D3PxH9Yr.js} +1 -1
- package/dist/{index-BUVOYVSk.cjs → index-ConhUMxI.cjs} +1 -1
- package/dist/{index-Dy5GrFF-.js → index-DtgCF1dT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Be6ZIo5i.js → useNestedProp-BdDhoTT1.js} +1 -1
- package/dist/{useNestedProp-nko1Exy-.cjs → useNestedProp-Bf_wk0w0.cjs} +1 -1
- package/dist/{usePrinter-BGq-7Twb.cjs → usePrinter-B47_seIG.cjs} +1 -1
- package/dist/{usePrinter-B_9DGtW7.js → usePrinter-NpyT5xn6.js} +2 -2
- package/dist/{vue-data-ui-Dis9z9dY.cjs → vue-data-ui-DB1uyxsy.cjs} +1 -1
- package/dist/{vue-data-ui-Tfs27uUn.js → vue-data-ui-Ddtj4Mek.js} +58 -58
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-6TQgQ-xc.cjs → vue-ui-3d-bar-Ds4WyNIk.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-BOeqtR4u.js → vue-ui-3d-bar-anfzldet.js} +9 -9
- package/dist/{vue-ui-accordion-BmJX_0Fc.js → vue-ui-accordion-B3F_RzZJ.js} +3 -3
- package/dist/{vue-ui-accordion-r9LcXEYX.cjs → vue-ui-accordion-EBl2EIy5.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-D8mGzhwL.cjs → vue-ui-age-pyramid-BQDPzBbb.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DyK3oWOz.js → vue-ui-age-pyramid-LkSWkIF-.js} +10 -10
- package/dist/{vue-ui-annotator-xLgkrAm4.cjs → vue-ui-annotator-BWCLVaJg.cjs} +1 -1
- package/dist/{vue-ui-annotator-Df4RXblk.js → vue-ui-annotator-hg0hrQ4M.js} +1 -1
- package/dist/{vue-ui-bullet-3DwuVRD1.cjs → vue-ui-bullet-5Ncai2bG.cjs} +1 -1
- package/dist/{vue-ui-bullet--e2coNbi.js → vue-ui-bullet-BE4BC3Lm.js} +8 -8
- package/dist/{vue-ui-candlestick-Dy3B4hIY.js → vue-ui-candlestick-CmOe5S2a.js} +11 -11
- package/dist/{vue-ui-candlestick-CGwBj_6g.cjs → vue-ui-candlestick-CsrO2_dW.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-kSl_zPtP.cjs → vue-ui-carousel-table-DNFw32Re.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-UJGXkosj.js → vue-ui-carousel-table-OJ-EZXBN.js} +4 -4
- package/dist/{vue-ui-chestnut-DPLH4IcL.cjs → vue-ui-chestnut-BD5cEuau.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Cgge1SHL.js → vue-ui-chestnut-BIwKV_Me.js} +8 -8
- package/dist/{vue-ui-cursor-CwgV2VNu.cjs → vue-ui-cursor-6AnJw5dW.cjs} +1 -1
- package/dist/{vue-ui-cursor-BHTLqu0Q.js → vue-ui-cursor-Bs22kPh_.js} +2 -2
- package/dist/{vue-ui-dashboard-Dt4CAeDS.cjs → vue-ui-dashboard-B1_ZmGck.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CuToI1bg.js → vue-ui-dashboard-BUHKjLLQ.js} +2 -2
- package/dist/{vue-ui-digits-DpN3MjGn.cjs → vue-ui-digits-C-g6ZMiJ.cjs} +1 -1
- package/dist/{vue-ui-digits-DNO1xW8o.js → vue-ui-digits-ZRwez97T.js} +2 -2
- package/dist/{vue-ui-donut-DjyG3UJn.cjs → vue-ui-donut-BEau-Lsx.cjs} +1 -1
- package/dist/{vue-ui-donut-3FqWxnwU.js → vue-ui-donut-bpO1nC_A.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BwzFYxmq.cjs → vue-ui-donut-evolution-Bhtrexhs.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-9op89n1-.js → vue-ui-donut-evolution-P_70k4ZK.js} +11 -11
- package/dist/{vue-ui-dumbbell-CvTxJMMn.js → vue-ui-dumbbell-BF4kFnaH.js} +10 -10
- package/dist/{vue-ui-dumbbell-CoU7gUYz.cjs → vue-ui-dumbbell-BIhtFBfx.cjs} +1 -1
- package/dist/{vue-ui-flow-DrlNzFnu.js → vue-ui-flow-VejnWAwC.js} +9 -9
- package/dist/{vue-ui-flow-CEsZ6xBD.cjs → vue-ui-flow-aihghAzc.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BznpNqKq.js → vue-ui-galaxy-BYqLQviQ.js} +11 -11
- package/dist/{vue-ui-galaxy-D11bLkvz.cjs → vue-ui-galaxy-D9-PvHlW.cjs} +1 -1
- package/dist/{vue-ui-gauge-DE4v6VPS.cjs → vue-ui-gauge-CNeT3j79.cjs} +1 -1
- package/dist/{vue-ui-gauge-Bjpv4Zbc.js → vue-ui-gauge-DwgxIcWn.js} +7 -7
- package/dist/{vue-ui-gizmo-fuA0CL_d.cjs → vue-ui-gizmo-CI0Noh4J.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CwDzD-hB.js → vue-ui-gizmo-CaIENr2y.js} +3 -3
- package/dist/{vue-ui-heatmap-m2eoABMv.cjs → vue-ui-heatmap-Bi41PsVf.cjs} +1 -1
- package/dist/{vue-ui-heatmap-D-gVcVE2.js → vue-ui-heatmap-T0RZPJNi.js} +10 -10
- package/dist/{vue-ui-kpi-B5I-d56Y.js → vue-ui-kpi-BjHN5ees.js} +3 -3
- package/dist/{vue-ui-kpi-BqwS47tL.cjs → vue-ui-kpi-DzINo7qU.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DqgYZ3Bz.js → vue-ui-mini-loader-Dmoycj4D.js} +2 -2
- package/dist/{vue-ui-mini-loader-kIT0EOzC.cjs → vue-ui-mini-loader-KKMt90P1.cjs} +1 -1
- package/dist/{vue-ui-molecule-0eEs_27v.cjs → vue-ui-molecule-BuY9zPWp.cjs} +1 -1
- package/dist/{vue-ui-molecule-C2XfrRB0.js → vue-ui-molecule-CmqUJWcJ.js} +11 -11
- package/dist/{vue-ui-mood-radar-ZOTBgqgJ.js → vue-ui-mood-radar-Bfxtfqhs.js} +11 -11
- package/dist/{vue-ui-mood-radar-D7nKWrqV.cjs → vue-ui-mood-radar-DN6ksCAR.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CAnsSM44.js → vue-ui-nested-donuts-DhuIlTFL.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BlHdXm6g.cjs → vue-ui-nested-donuts-DrWv-fzC.cjs} +1 -1
- package/dist/{vue-ui-onion-CWfQ992Z.cjs → vue-ui-onion-BUn_3_0m.cjs} +1 -1
- package/dist/{vue-ui-onion-BM--M0jY.js → vue-ui-onion-DqbR_fES.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DwLQh4tP.js → vue-ui-parallel-coordinate-plot-B5J5Xgsx.js} +139 -120
- package/dist/vue-ui-parallel-coordinate-plot-CbiA8q_i.cjs +8 -0
- package/dist/{vue-ui-quadrant-BjHHETMe.cjs → vue-ui-quadrant-Cw_4_8qY.cjs} +1 -1
- package/dist/{vue-ui-quadrant-Bux3R-Q7.js → vue-ui-quadrant-D87ZPZhF.js} +12 -12
- package/dist/{vue-ui-quick-chart-szGxcS9d.js → vue-ui-quick-chart-B7cVyLVD.js} +9 -9
- package/dist/{vue-ui-quick-chart-G702BvIJ.cjs → vue-ui-quick-chart-C82CfpyH.cjs} +1 -1
- package/dist/{vue-ui-radar-CNlzEasE.js → vue-ui-radar-DBvn8B7b.js} +12 -12
- package/dist/{vue-ui-radar-BQ05ebSC.cjs → vue-ui-radar-DXS6BRSk.cjs} +1 -1
- package/dist/{vue-ui-rating-Csfmwywp.cjs → vue-ui-rating-DdsDvtQB.cjs} +1 -1
- package/dist/{vue-ui-rating-CPEoJems.js → vue-ui-rating-Dk4iTClP.js} +2 -2
- package/dist/{vue-ui-relation-circle-CFiSQjx9.cjs → vue-ui-relation-circle-B3A8jwOU.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-D7NR9tCd.js → vue-ui-relation-circle-CTzPZrkc.js} +7 -7
- package/dist/{vue-ui-rings-o45LQxbP.js → vue-ui-rings-Boi9uLxr.js} +11 -11
- package/dist/{vue-ui-rings-DsWRI78a.cjs → vue-ui-rings-Wv-ucypW.cjs} +1 -1
- package/dist/{vue-ui-scatter-ByFq8cqv.js → vue-ui-scatter-CM4upQYq.js} +12 -12
- package/dist/{vue-ui-scatter-0KfyPHGN.cjs → vue-ui-scatter-CWcULri7.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CBlmxSOB.js → vue-ui-screenshot-B-bxd1nI.js} +1 -1
- package/dist/{vue-ui-screenshot-C36MC7_n.cjs → vue-ui-screenshot-voR3dKsx.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B_yz8Eus.cjs → vue-ui-skeleton-9CBMqTVb.cjs} +1 -1
- package/dist/{vue-ui-skeleton-lqzNF24A.js → vue-ui-skeleton-C3iXaL49.js} +3 -3
- package/dist/{vue-ui-smiley-axWZn-Gd.js → vue-ui-smiley-BtDsA0Zp.js} +2 -2
- package/dist/{vue-ui-smiley-D8zEHTsC.cjs → vue-ui-smiley-DZU3yvxd.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-B64f8Bya.cjs → vue-ui-spark-trend-C0z3aQw0.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BusH1eOa.js → vue-ui-spark-trend-a1Y1HAcb.js} +5 -5
- package/dist/{vue-ui-sparkbar-CHBoXEkG.cjs → vue-ui-sparkbar-B0ODWAT_.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-C5nkxRVH.js → vue-ui-sparkbar-n0x0Ojvl.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Nchun2dD.js → vue-ui-sparkgauge-BwdfA6LO.js} +4 -4
- package/dist/{vue-ui-sparkgauge-8yhMTt_s.cjs → vue-ui-sparkgauge-Dsdqik7O.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-tfNSyoTE.js → vue-ui-sparkhistogram-BSlf36JQ.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-Dl6nxv92.cjs → vue-ui-sparkhistogram-DCi9ehzT.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DXoZ-AXQ.js → vue-ui-sparkline-DSWvk3uJ.js} +4 -4
- package/dist/{vue-ui-sparkline-CLUA9qSQ.cjs → vue-ui-sparkline-d8aMNAFt.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B-ZG07ak.cjs → vue-ui-sparkstackbar-CPbd9U8E.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-C-3aj0Qg.js → vue-ui-sparkstackbar-TtMuNP_L.js} +5 -5
- package/dist/{vue-ui-stackbar-CeyMa7nJ.cjs → vue-ui-stackbar-CYf2GKcg.cjs} +1 -1
- package/dist/{vue-ui-stackbar-IKAkG9EJ.js → vue-ui-stackbar-DeIWk3RT.js} +12 -12
- package/dist/{vue-ui-strip-plot-f8gQv1R9.js → vue-ui-strip-plot-CeIaBpsB.js} +11 -11
- package/dist/{vue-ui-strip-plot-EeDRRLyD.cjs → vue-ui-strip-plot-DpAJn4ei.cjs} +1 -1
- package/dist/{vue-ui-table-BMjDumNw.cjs → vue-ui-table-CSaQrbjJ.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-_zvyT-r9.cjs → vue-ui-table-heatmap-Ccun0wVJ.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DBAAR6Yq.js → vue-ui-table-heatmap-DwHvhXeS.js} +4 -4
- package/dist/{vue-ui-table-sparkline-C4_6lbC0.cjs → vue-ui-table-sparkline-ByDSoYwt.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-ZMfDRnFs.js → vue-ui-table-sparkline-c9KUfM5n.js} +5 -5
- package/dist/{vue-ui-table-Ci87YIZ1.js → vue-ui-table-utOV9nTl.js} +1 -1
- package/dist/{vue-ui-thermometer-CRDENrkH.cjs → vue-ui-thermometer-B9QVfoF-.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CrAi04Vr.js → vue-ui-thermometer-D7NdF_tC.js} +7 -7
- package/dist/{vue-ui-timer-DgBKV7nS.js → vue-ui-timer-BwFyHPOk.js} +5 -5
- package/dist/{vue-ui-timer-D3PdDbak.cjs → vue-ui-timer-DRonyxd9.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Cf89IkXU.cjs → vue-ui-tiremarks-DlcSqk5B.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DJNcDzAu.js → vue-ui-tiremarks-urcNYqvB.js} +7 -7
- package/dist/{vue-ui-treemap-D_foZr6d.cjs → vue-ui-treemap-CjSxg60e.cjs} +1 -1
- package/dist/{vue-ui-treemap-wKiju8mu.js → vue-ui-treemap-D9FUy74E.js} +11 -11
- package/dist/{vue-ui-vertical-bar-BBPnVcf4.js → vue-ui-vertical-bar-ChHa19St.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DL52aOVH.cjs → vue-ui-vertical-bar-ZbdRy4kz.cjs} +1 -1
- package/dist/{vue-ui-waffle-Cl6_0xMB.cjs → vue-ui-waffle-BZ2oUPvu.cjs} +1 -1
- package/dist/{vue-ui-waffle-B5RuBnB5.js → vue-ui-waffle-DWZglOmM.js} +11 -11
- package/dist/{vue-ui-wheel-CBTReC9o.cjs → vue-ui-wheel-BcEr-D-s.cjs} +1 -1
- package/dist/{vue-ui-wheel-hrqzLHBL.js → vue-ui-wheel-MuAnDxyI.js} +7 -7
- package/dist/{vue-ui-word-cloud-Beq0Ncwv.js → vue-ui-word-cloud-CrTlolf3.js} +12 -12
- package/dist/{vue-ui-word-cloud-DN3j2VVh.cjs → vue-ui-word-cloud-DDSWc8pR.cjs} +1 -1
- package/dist/{vue-ui-xy-4Cn2wWE-.js → vue-ui-xy-BwVbCW0Q.js} +16 -16
- package/dist/{vue-ui-xy-87QC07_q.cjs → vue-ui-xy-WLdlNN-D.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DNrAqCNu.js → vue-ui-xy-canvas-BtOoGLf9.js} +11 -11
- package/dist/{vue-ui-xy-canvas-BzTohtt-.cjs → vue-ui-xy-canvas-DEj9NzP-.cjs} +1 -1
- package/package.json +2 -2
- package/dist/Slicer-CPM6S6sp.cjs +0 -1
- package/dist/vue-ui-parallel-coordinate-plot-WM9uQd0M.cjs +0 -8
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useCssVars as Be, computed as p, openBlock as r, createElementBlock as h, createVNode as oe, renderSlot as d, createElementVNode as x, normalizeStyle as ae, pushScopeId as De, popScopeId as Ve, ref as n, watch as te, onMounted as Ee, onBeforeUnmount as Ue, createBlock as z, createCommentVNode as C, unref as $, createSlots as Ge, withCtx as v, normalizeProps as A, guardReactiveProps as I, normalizeClass as ge, Fragment as Le, renderList as Xe, toDisplayString as ye, createTextVNode as je, nextTick as be } from "vue";
|
|
2
|
-
import { u as Ye, a1 as qe, v as He, c as Ce, t as Je, a as Ke, p as X, o as Qe, e as ke, g as Ze, f as et, X as tt, q as ot, r as at, x as lt } from "./index-
|
|
3
|
-
import { _ as nt } from "./Title-
|
|
4
|
-
import { u as st, U as rt } from "./usePrinter-
|
|
2
|
+
import { u as Ye, a1 as qe, v as He, c as Ce, t as Je, a as Ke, p as X, o as Qe, e as ke, g as Ze, f as et, X as tt, q as ot, r as at, x as lt } from "./index-DtgCF1dT.js";
|
|
3
|
+
import { _ as nt } from "./Title-CJxJTQnv.js";
|
|
4
|
+
import { u as st, U as rt } from "./usePrinter-NpyT5xn6.js";
|
|
5
5
|
import { d as ut, t as it, u as ct } from "./useResponsive-CoxXLe23.js";
|
|
6
|
-
import dt from "./vue-ui-accordion-
|
|
7
|
-
import { D as vt } from "./DataTable-
|
|
8
|
-
import ht from "./BaseIcon-
|
|
6
|
+
import dt from "./vue-ui-accordion-B3F_RzZJ.js";
|
|
7
|
+
import { D as vt } from "./DataTable-Dqxz-Alv.js";
|
|
8
|
+
import ht from "./BaseIcon-CbpX2G1z.js";
|
|
9
9
|
import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as we } from "./useNestedProp-
|
|
11
|
-
import { _ as mt } from "./PackageVersion-
|
|
12
|
-
import { _ as ft } from "./Tooltip-
|
|
13
|
-
import { P as pt } from "./PenAndPaper-
|
|
10
|
+
import { u as we } from "./useNestedProp-BdDhoTT1.js";
|
|
11
|
+
import { _ as mt } from "./PackageVersion-DkcHjYNR.js";
|
|
12
|
+
import { _ as ft } from "./Tooltip-D3PxH9Yr.js";
|
|
13
|
+
import { P as pt } from "./PenAndPaper-M_ZBYgJF.js";
|
|
14
14
|
const gt = (c) => (De("data-v-3fd7d274"), c = c(), Ve(), c), yt = { "data-html2canvas-ignore": "" }, bt = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "reset-wrapper"
|
|
@@ -485,7 +485,7 @@ const gt = (c) => (De("data-v-3fd7d274"), c = c(), Ve(), c), yt = { "data-html2c
|
|
|
485
485
|
transform: `translate(${o.width / 2}, ${o.height / 2})`,
|
|
486
486
|
class: ge({ animated: e.value.useCssAnimation, "word-selected": _.value && _.value === o.id && m.value.showTooltip, "word-not-selected": _.value && _.value !== o.id && m.value.showTooltip }),
|
|
487
487
|
"text-anchor": "middle",
|
|
488
|
-
"dominant-baseline": "
|
|
488
|
+
"dominant-baseline": "central",
|
|
489
489
|
onMouseover: (l) => Ae(o),
|
|
490
490
|
onMouseleave: a[0] || (a[0] = (l) => {
|
|
491
491
|
_.value = null, Y.value = !1;
|
|
@@ -601,7 +601,7 @@ const gt = (c) => (De("data-v-3fd7d274"), c = c(), Ve(), c), yt = { "data-html2c
|
|
|
601
601
|
}, 8, ["config"])) : C("", !0)
|
|
602
602
|
], 12, St));
|
|
603
603
|
}
|
|
604
|
-
}, jt = /* @__PURE__ */ $e(At, [["__scopeId", "data-v-
|
|
604
|
+
}, jt = /* @__PURE__ */ $e(At, [["__scopeId", "data-v-13d267e2"]]);
|
|
605
605
|
export {
|
|
606
606
|
jt as default
|
|
607
607
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BUVOYVSk.cjs"),ke=require("./Title-4bXfWbx8.cjs"),ae=require("./usePrinter-BGq-7Twb.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-r9LcXEYX.cjs"),xe=require("./DataTable-CHfZ1IEy.cjs"),Se=require("./BaseIcon-BaBTKzCc.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-nko1Exy-.cjs"),$e=require("./PackageVersion-D6vG-BXj.cjs"),Te=require("./Tooltip-BheHY6dV.cjs"),Ne=require("./PenAndPaper-i3jYHWwR.cjs"),Pe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Be={"data-html2canvas-ignore":""},Fe={key:0,class:"reset-wrapper"},ze={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ae=Pe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Ve=["min","max","value"],Ee={__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 r=c;e.useCssVars(g=>({"90ad3208":E.value,"4f9eef70":S.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const E=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),f=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=r.max-r.min,p=0,b=(r.value-r.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:r.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Be,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Fe,[c.useResetSlot?e.renderSlot(g.$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(Se.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ze)),e.createElementVNode("div",_e,[Ae,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Ve)])]))}},Ie=re._export_sfc(Ee,[["__scopeId","data-v-3fd7d274"]]),Oe=["id"],Me=["xmlns","viewBox"],Re=["transform"],qe=["fill","font-weight","x","y","font-size","transform","onMouseover"],We={key:4,class:"vue-data-ui-watermark"},De=["innerHTML"],Ue={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const r=c,{vue_ui_word_cloud:E}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),f=e.ref(typeof r.dataset=="string"?s.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:s.checkNaN(o.value)}))),S=e.ref(s.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),L=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>j(),set:o=>o});function j(){const o=ne.useNestedProp({userConfig:r.config,defaultConfig:E});return o.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>r.config,o=>{t.value=j(),H(),b.value+=1,L.value+=1,O()},{deep:!0});const X=e.ref(null),C=e.ref(0),u=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}),se=G.throttle(()=>{const{width:o,height:a}=G.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&X.value,source:p.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ue()});const ue=G.debounce(()=>{M()},10);function O(){C.value=Z.value}const B=e.ref(null);e.onMounted(()=>{H(),O()});function H(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(se),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=ae.usePrinter({elementId:`wordCloud_${S.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 ie(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 ce(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 de(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let D=!1;for(let V=0;V<Math.max(a,l)/2&&!D;V+=t.value.style.chart.words.packingWeight)for(let U=0;U<360&&!D;U+=t.value.style.chart.words.packingWeight){const le=U*Math.PI/180,fe=v+V*Math.cos(le)-x.width/2,ge=w+V*Math.sin(le)-x.height/2,m={...x,x:fe,y:ge},ye=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,be=i.some(Ce=>ce(m,Ce));ye&&!be&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const Z=e.computed(()=>Math.min(...f.value.map(o=>o.value))),ve=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function M(){const o=[...f.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=C.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(u.value.maxFontSize-u.value.minFontSize)+u.value.minFontSize,x=ie(n.name,w);return{...n,id:s.createUid(),fontSize:w,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||s.palette[v]||s.palette[v%s.palette.length]:t.value.style.chart.words.color}});T.value=de(i,u.value.width,u.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 ee(){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=s.createCsvContent(a);s.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 w=s.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},w]}),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 he(o){_.value=o,$.value+=1}function pe(){return T.value}function te(){d.value.showTable=!d.value.showTable}function oe(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}P({getData:pe,generateCsv:ee,generatePdf:K,generateImage:Q,toggleTable:te,toggleTooltip:oe,toggleAnnotator:R});const k=e.ref(null),N=e.ref(!1),q=e.ref(""),W=e.ref(null);function me(o){if(!d.value.showTooltip)return;k.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(q.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>`;q.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}I.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${S.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.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:R},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:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${b.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&&y.value?(e.openBlock(),e.createBlock(ae.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Y),isImaging:e.unref(J),uid:S.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:h.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:he,onGeneratePdf:e.unref(K),onGenerateCsv:ee,onGenerateImage:e.unref(Q),onToggleTable:te,onToggleTooltip:oe,onToggleAnnotator:R},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"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode($e._sfc_main),e.createElementVNode("g",{transform:`translate(${(u.value.width<=0?10:u.value.width)/2}, ${(u.value.height<=0?10:u.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":k.value&&k.value===l.id&&d.value.showTooltip,"word-not-selected":k.value&&k.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"middle",onMouseover:n=>me(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,qe))]))),256))],8,Re),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Me)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Te._sfc_main,{show:d.value.showTooltip&&I.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:h.value,content:q.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.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:X,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Ie,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:Z.value,max:ve.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:O},{"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:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(we.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(xe.DataTable,{key:`table_${L.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,De)]),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,Oe))}},Ge=re._export_sfc(Ue,[["__scopeId","data-v-045e07b5"]]);exports.default=Ge;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-ConhUMxI.cjs"),ke=require("./Title-BXyUVn4l.cjs"),ae=require("./usePrinter-B47_seIG.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-EBl2EIy5.cjs"),xe=require("./DataTable-BBgny7Xn.cjs"),Se=require("./BaseIcon-Prt1oCQy.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-Bf_wk0w0.cjs"),$e=require("./PackageVersion-D0qCtRhG.cjs"),Te=require("./Tooltip-Bj9mOvCn.cjs"),Ne=require("./PenAndPaper-DyFo40zC.cjs"),Pe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Be={"data-html2canvas-ignore":""},Fe={key:0,class:"reset-wrapper"},ze={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ae=Pe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Ve=["min","max","value"],Ee={__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 r=c;e.useCssVars(g=>({"90ad3208":E.value,"4f9eef70":S.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const E=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),f=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=r.max-r.min,p=0,b=(r.value-r.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:r.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Be,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Fe,[c.useResetSlot?e.renderSlot(g.$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(Se.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ze)),e.createElementVNode("div",_e,[Ae,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Ve)])]))}},Ie=re._export_sfc(Ee,[["__scopeId","data-v-3fd7d274"]]),Oe=["id"],Me=["xmlns","viewBox"],Re=["transform"],qe=["fill","font-weight","x","y","font-size","transform","onMouseover"],We={key:4,class:"vue-data-ui-watermark"},De=["innerHTML"],Ue={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const r=c,{vue_ui_word_cloud:E}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),f=e.ref(typeof r.dataset=="string"?s.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:s.checkNaN(o.value)}))),S=e.ref(s.createUid()),$=e.ref(0),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),L=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>j(),set:o=>o});function j(){const o=ne.useNestedProp({userConfig:r.config,defaultConfig:E});return o.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>r.config,o=>{t.value=j(),H(),b.value+=1,L.value+=1,O()},{deep:!0});const X=e.ref(null),C=e.ref(0),u=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}),se=G.throttle(()=>{const{width:o,height:a}=G.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&X.value,source:p.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ue()});const ue=G.debounce(()=>{M()},10);function O(){C.value=Z.value}const B=e.ref(null);e.onMounted(()=>{H(),O()});function H(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):f.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(B.value=new ResizeObserver(se),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=ae.usePrinter({elementId:`wordCloud_${S.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 ie(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 ce(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 de(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let D=!1;for(let V=0;V<Math.max(a,l)/2&&!D;V+=t.value.style.chart.words.packingWeight)for(let U=0;U<360&&!D;U+=t.value.style.chart.words.packingWeight){const le=U*Math.PI/180,fe=v+V*Math.cos(le)-x.width/2,ge=w+V*Math.sin(le)-x.height/2,m={...x,x:fe,y:ge},ye=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,be=i.some(Ce=>ce(m,Ce));ye&&!be&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const Z=e.computed(()=>Math.min(...f.value.map(o=>o.value))),ve=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function M(){const o=[...f.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.value].filter(n=>n.value>=C.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(u.value.maxFontSize-u.value.minFontSize)+u.value.minFontSize,x=ie(n.name,w);return{...n,id:s.createUid(),fontSize:w,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||s.palette[v]||s.palette[v%s.palette.length]:t.value.style.chart.words.color}});T.value=de(i,u.value.width,u.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 ee(){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=s.createCsvContent(a);s.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 w=s.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},w]}),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 he(o){_.value=o,$.value+=1}function pe(){return T.value}function te(){d.value.showTable=!d.value.showTable}function oe(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}P({getData:pe,generateCsv:ee,generatePdf:K,generateImage:Q,toggleTable:te,toggleTooltip:oe,toggleAnnotator:R});const k=e.ref(null),N=e.ref(!1),q=e.ref(""),W=e.ref(null);function me(o){if(!d.value.showTooltip)return;k.value=o.id,W.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(q.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>`;q.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}I.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:h,id:`wordCloud_${S.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.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:R},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:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${b.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&&y.value?(e.openBlock(),e.createBlock(ae.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Y),isImaging:e.unref(J),uid:S.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:h.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:he,onGeneratePdf:e.unref(K),onGenerateCsv:ee,onGenerateImage:e.unref(Q),onToggleTable:te,onToggleTooltip:oe,onToggleAnnotator:R},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"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode($e._sfc_main),e.createElementVNode("g",{transform:`translate(${(u.value.width<=0?10:u.value.width)/2}, ${(u.value.height<=0?10:u.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":k.value&&k.value===l.id&&d.value.showTooltip,"word-not-selected":k.value&&k.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"central",onMouseover:n=>me(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,qe))]))),256))],8,Re),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Me)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Te._sfc_main,{show:d.value.showTooltip&&I.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:h.value,content:q.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.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:X,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Ie,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:Z.value,max:ve.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:O},{"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:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(we.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(xe.DataTable,{key:`table_${L.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,De)]),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,Oe))}},Ge=re._export_sfc(Ue,[["__scopeId","data-v-13d267e2"]]);exports.default=Ge;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { c as J, a as K, t as Q, z as j, p as $, V as q, O as R, f as U, K as ee, F as te, i as ie, a2 as ae, a0 as re, a3 as le, v as se, a4 as ne, d as oe, B as ce, b as he, q as de, R as ue, a5 as ge, r as fe, e as Ne, y as me, M as Ie, x as xe, a6 as be, Y as Fe, o as _e, s as ye, w as Ae, E as Ce, A as Le, u as Se } from "./index-
|
|
2
|
-
import { D as ke } from "./DataTable-
|
|
3
|
-
import { _ as we } from "./Title-
|
|
4
|
-
import { _ as Oe, u as Ge } from "./Tooltip-
|
|
5
|
-
import { U as ve } from "./usePrinter-
|
|
6
|
-
import { _ as pe } from "./Shape-
|
|
7
|
-
import Me from "./BaseIcon-
|
|
8
|
-
import ze from "./vue-ui-table-sparkline-
|
|
9
|
-
import Te from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Pe } from "./Slicer-
|
|
11
|
-
import Ve from "./vue-ui-accordion-
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as Re } from "./PackageVersion-
|
|
14
|
-
import { P as De } from "./PenAndPaper-
|
|
1
|
+
import { c as J, a as K, t as Q, z as j, p as $, V as q, O as R, f as U, K as ee, F as te, i as ie, a2 as ae, a0 as re, a3 as le, v as se, a4 as ne, d as oe, B as ce, b as he, q as de, R as ue, a5 as ge, r as fe, e as Ne, y as me, M as Ie, x as xe, a6 as be, Y as Fe, o as _e, s as ye, w as Ae, E as Ce, A as Le, u as Se } from "./index-DtgCF1dT.js";
|
|
2
|
+
import { D as ke } from "./DataTable-Dqxz-Alv.js";
|
|
3
|
+
import { _ as we } from "./Title-CJxJTQnv.js";
|
|
4
|
+
import { _ as Oe, u as Ge } from "./Tooltip-D3PxH9Yr.js";
|
|
5
|
+
import { U as ve } from "./usePrinter-NpyT5xn6.js";
|
|
6
|
+
import { _ as pe } from "./Shape-BDC0jxZ3.js";
|
|
7
|
+
import Me from "./BaseIcon-CbpX2G1z.js";
|
|
8
|
+
import ze from "./vue-ui-table-sparkline-c9KUfM5n.js";
|
|
9
|
+
import Te from "./vue-ui-skeleton-C3iXaL49.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-C_ffaPqq.js";
|
|
11
|
+
import Ve from "./vue-ui-accordion-B3F_RzZJ.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-BdDhoTT1.js";
|
|
13
|
+
import { _ as Re } from "./PackageVersion-DkcHjYNR.js";
|
|
14
|
+
import { P as De } from "./PenAndPaper-M_ZBYgJF.js";
|
|
15
15
|
import { resolveComponent as P, openBlock as r, createElementBlock as l, normalizeClass as V, normalizeStyle as C, createBlock as D, createCommentVNode as c, createSlots as Be, withCtx as z, renderSlot as O, normalizeProps as H, guardReactiveProps as W, createVNode as X, createElementVNode as g, Fragment as N, renderList as I, toDisplayString as S, withDirectives as He, vModelCheckbox as We, createTextVNode as Ee } from "vue";
|
|
16
16
|
import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Xe = J(), qe = {
|
|
@@ -1404,7 +1404,7 @@ function Ui(i, s, h, f, t, e) {
|
|
|
1404
1404
|
]))), 256)),
|
|
1405
1405
|
g("g", null, [
|
|
1406
1406
|
(r(!0), l(N, null, I(e.maxSeries, (a, o) => (r(), l("g", {
|
|
1407
|
-
key: `
|
|
1407
|
+
key: `tooltip_trap_highlighter_${o}`
|
|
1408
1408
|
}, [
|
|
1409
1409
|
g("rect", {
|
|
1410
1410
|
x: e.drawingArea.left + e.drawingArea.width / e.maxSeries * o,
|
|
@@ -2347,7 +2347,7 @@ function Ui(i, s, h, f, t, e) {
|
|
|
2347
2347
|
}, 8, ["config"])) : c("", !0)
|
|
2348
2348
|
], 14, Ue);
|
|
2349
2349
|
}
|
|
2350
|
-
const ha = /* @__PURE__ */ Ye(qe, [["render", Ui], ["__scopeId", "data-v-
|
|
2350
|
+
const ha = /* @__PURE__ */ Ye(qe, [["render", Ui], ["__scopeId", "data-v-3b05da9c"]]);
|
|
2351
2351
|
export {
|
|
2352
2352
|
ha as default
|
|
2353
2353
|
};
|