vue-data-ui 2.3.61 → 2.3.63
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-B5nYwPUt.js → Arrow-CBx1Hj4I.js} +1 -1
- package/dist/{Arrow-Dv_tprAO.cjs → Arrow-fP0md3L3.cjs} +1 -1
- package/dist/{BaseIcon-DUPLRuLO.js → BaseIcon-CS18qRiy.js} +1 -1
- package/dist/{BaseIcon-aPcCSO_Z.cjs → BaseIcon-O8jJvy48.cjs} +1 -1
- package/dist/{DataTable-NUzEZXWt.js → DataTable-BGJ2mVxG.js} +2 -2
- package/dist/{DataTable-B6xCb-DR.cjs → DataTable-CSEiZDAb.cjs} +1 -1
- package/dist/{Legend-ePmJ_YIA.cjs → Legend-DuuSl2rJ.cjs} +1 -1
- package/dist/{Legend-C3tseguI.js → Legend-UWyvC57K.js} +1 -1
- package/dist/{Shape-DAe5uqIA.cjs → Shape-Dsx4SQVn.cjs} +1 -1
- package/dist/{Shape-BPcWPP9D.js → Shape-HfEpP-Tk.js} +1 -1
- package/dist/{Slicer-CmHwU6if.js → Slicer-Bk3Rt85L.js} +9 -9
- package/dist/{Slicer-BJs52Jle.cjs → Slicer-Cf74aFVz.cjs} +1 -1
- package/dist/{Title-BAQrVaNA.js → Title-CPZstF2C.js} +1 -1
- package/dist/{Title-B_p983os.cjs → Title-PZ6S96pU.cjs} +1 -1
- package/dist/{Tooltip-C2dhDgoh.cjs → Tooltip-BoIYPSX3.cjs} +1 -1
- package/dist/{Tooltip-B73tTE2v.js → Tooltip-CBmmiqKr.js} +5 -5
- package/dist/{index-CwG--L4Z.js → index-C_05i_JG.js} +578 -526
- package/dist/{index-nPEJmXmf.cjs → index-NNZeHOBS.cjs} +4 -4
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-TbnnNrH2.cjs → useNestedProp-CPsbJAGj.cjs} +1 -1
- package/dist/{useNestedProp-BqwYEJGM.js → useNestedProp-DLnT0Wtg.js} +1 -1
- package/dist/{usePrinter-D012Olnq.cjs → usePrinter-BLbY8qGZ.cjs} +1 -1
- package/dist/{usePrinter-Do9tGYem.js → usePrinter-DOhlzlnx.js} +1 -1
- package/dist/{vue-data-ui-DQAJDvpX.cjs → vue-data-ui-D5aG0WkE.cjs} +1 -1
- package/dist/{vue-data-ui-ORLyt-v3.js → vue-data-ui-vqnxkVKv.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +7 -7
- package/dist/{vue-ui-3d-bar-BRbooRg3.cjs → vue-ui-3d-bar-Cez69HMH.cjs} +1 -1
- package/dist/{vue-ui-3d-bar--ztApFzW.js → vue-ui-3d-bar-b7Pu7sfL.js} +7 -7
- package/dist/{vue-ui-accordion-CHL4xuW4.cjs → vue-ui-accordion-CcdyvXrp.cjs} +1 -1
- package/dist/{vue-ui-accordion-Be_wWB1T.js → vue-ui-accordion-rGJVvi_V.js} +3 -3
- package/dist/vue-ui-age-pyramid-B6LKyKjc.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-DLIladXC.js → vue-ui-age-pyramid-CH1Vj2R6.js} +226 -226
- package/dist/{vue-ui-annotator-CS2d8F8x.cjs → vue-ui-annotator-BfmMNM_X.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bxrjl1nz.js → vue-ui-annotator-CTio5IiK.js} +1 -1
- package/dist/{vue-ui-candlestick-BppLVU6c.js → vue-ui-candlestick-C4kT9W0j.js} +158 -158
- package/dist/{vue-ui-candlestick-tumv-lhv.cjs → vue-ui-candlestick-DvX9Jxoi.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-BsFNypM6.cjs → vue-ui-carousel-table-CMs7scX3.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BnOsmGVc.js → vue-ui-carousel-table-Df2HHk0v.js} +4 -4
- package/dist/{vue-ui-chestnut-DFb7M_SC.js → vue-ui-chestnut-BKTnDElg.js} +65 -64
- package/dist/{vue-ui-chestnut-tK8ebPQM.cjs → vue-ui-chestnut-CCw8h0_m.cjs} +3 -3
- package/dist/{vue-ui-cursor-D-eRMlWI.cjs → vue-ui-cursor-C-8bpiuy.cjs} +1 -1
- package/dist/{vue-ui-cursor-CYk61ZVK.js → vue-ui-cursor-DOOlFN5D.js} +2 -2
- package/dist/{vue-ui-dashboard-Cbk74q7K.cjs → vue-ui-dashboard-B_h8KxOx.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BomFWtsP.js → vue-ui-dashboard-D7U1UkAh.js} +2 -2
- package/dist/{vue-ui-digits-Ch9quA4D.js → vue-ui-digits-DmxQgABv.js} +2 -2
- package/dist/{vue-ui-digits-DWJOvgi2.cjs → vue-ui-digits-DoQoNGGx.cjs} +1 -1
- package/dist/{vue-ui-donut-BIMgi_Qw.cjs → vue-ui-donut-DdnwGXq6.cjs} +1 -1
- package/dist/vue-ui-donut-evolution-DsRAZLMN.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-ClNciLi2.js → vue-ui-donut-evolution-uPCTV6E6.js} +95 -95
- package/dist/{vue-ui-donut-Ctzc7e6_.js → vue-ui-donut-t5zf9Lm5.js} +42 -42
- package/dist/{vue-ui-dumbbell-IBrAHdlc.js → vue-ui-dumbbell-BCdxqHVR.js} +109 -107
- package/dist/vue-ui-dumbbell-D1Ak2pEE.cjs +9 -0
- package/dist/vue-ui-flow-CLqm5nkx.cjs +1 -0
- package/dist/vue-ui-flow-J1SmdKkh.js +469 -0
- package/dist/vue-ui-galaxy-CSXbhXBe.cjs +1 -0
- package/dist/{vue-ui-galaxy-BBKU6WqV.js → vue-ui-galaxy-DNMbyKNg.js} +91 -91
- package/dist/{vue-ui-gauge-CDpN6D_X.js → vue-ui-gauge-CC_9cSwj.js} +84 -84
- package/dist/vue-ui-gauge-O3ntKI31.cjs +1 -0
- package/dist/{vue-ui-gizmo-BS-olrbu.js → vue-ui-gizmo-C5vGMHUU.js} +2 -2
- package/dist/{vue-ui-gizmo-Dyi4DWSA.cjs → vue-ui-gizmo-qrJt0nH6.cjs} +1 -1
- package/dist/vue-ui-heatmap-BjimHnMb.cjs +1 -0
- package/dist/{vue-ui-heatmap-Bonl3GBj.js → vue-ui-heatmap-ByxLZuR5.js} +257 -239
- package/dist/{vue-ui-kpi-MeC195T8.js → vue-ui-kpi-DdNQlVCe.js} +3 -3
- package/dist/{vue-ui-kpi-ChD3Gh4P.cjs → vue-ui-kpi-eyxMedig.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-NiTij5XQ.cjs → vue-ui-mini-loader-B5ykH9BF.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-l2G4D7lJ.js → vue-ui-mini-loader-C05VGcNr.js} +2 -2
- package/dist/{vue-ui-molecule-C1dO-Ony.js → vue-ui-molecule-DI0oHPT5.js} +20 -20
- package/dist/{vue-ui-molecule-pXZ3aWlr.cjs → vue-ui-molecule-LZ1SRkgK.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-C3Gv4iYr.cjs → vue-ui-mood-radar-BJqk2oK_.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BVpJ3O4m.js → vue-ui-mood-radar-DIDqiVMf.js} +9 -9
- package/dist/{vue-ui-nested-donuts-Dmeqsml8.js → vue-ui-nested-donuts-BkSiryoB.js} +120 -120
- package/dist/{vue-ui-nested-donuts-Cwk0M7SE.cjs → vue-ui-nested-donuts-Nggnu_iK.cjs} +2 -2
- package/dist/{vue-ui-onion-BmJO696O.cjs → vue-ui-onion-B29Cxru2.cjs} +1 -1
- package/dist/{vue-ui-onion-Ogj_rMlX.js → vue-ui-onion-xiubSG3j.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-BBBuJdGN.js → vue-ui-parallel-coordinate-plot-DjmOGHVx.js} +69 -69
- package/dist/{vue-ui-parallel-coordinate-plot-Cqm7uMBs.cjs → vue-ui-parallel-coordinate-plot-DqrkSOo6.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BJtgJ_lu.js → vue-ui-quadrant-Cc79ggIy.js} +36 -36
- package/dist/{vue-ui-quadrant-DcqQwIsD.cjs → vue-ui-quadrant-Df_2X-ca.cjs} +1 -1
- package/dist/vue-ui-quick-chart-BnBGXd4d.cjs +15 -0
- package/dist/{vue-ui-quick-chart-D7dCfDSL.js → vue-ui-quick-chart-t_cPx4OT.js} +549 -515
- package/dist/{vue-ui-radar-BMxzhMFJ.js → vue-ui-radar-C3qEonKT.js} +59 -59
- package/dist/vue-ui-radar-D3W9B9JE.cjs +1 -0
- package/dist/{vue-ui-rating-DSgHml7s.js → vue-ui-rating-DffL7w-I.js} +9 -9
- package/dist/{vue-ui-rating-buop0ul0.cjs → vue-ui-rating-aOa6zIr5.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BACMnvv8.cjs → vue-ui-relation-circle-BZ7r7Unx.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CdHbZK0u.js → vue-ui-relation-circle-D0zUfd3f.js} +5 -5
- package/dist/vue-ui-rings-BjWAtE4x.cjs +2 -0
- package/dist/{vue-ui-rings-BBnzxfo2.js → vue-ui-rings-PHbuqfoT.js} +188 -185
- package/dist/{vue-ui-scatter-sF3c5eqM.cjs → vue-ui-scatter-DMJ77QYr.cjs} +1 -1
- package/dist/{vue-ui-scatter-DYXhTzch.js → vue-ui-scatter-DuCnr2yB.js} +378 -375
- package/dist/{vue-ui-screenshot-D-6YvKkW.cjs → vue-ui-screenshot-DBuA631a.cjs} +1 -1
- package/dist/{vue-ui-screenshot-B4WOalT6.js → vue-ui-screenshot-DbwRrmHv.js} +6 -6
- package/dist/{vue-ui-skeleton-D6wHGzmu.cjs → vue-ui-skeleton-CI4t8LHn.cjs} +1 -1
- package/dist/{vue-ui-skeleton-ClzVF3vm.js → vue-ui-skeleton-CcJR2m18.js} +23 -23
- package/dist/{vue-ui-smiley-B1cqwAN5.js → vue-ui-smiley-2rJFSSZS.js} +2 -2
- package/dist/{vue-ui-smiley-CoVnFdkD.cjs → vue-ui-smiley-C7KBm0fz.cjs} +1 -1
- package/dist/vue-ui-spark-trend-DY_sfo6o.js +251 -0
- package/dist/vue-ui-spark-trend-VH2nwGJf.cjs +1 -0
- package/dist/{vue-ui-sparkbar-BOzSGZak.js → vue-ui-sparkbar-B0O77PcV.js} +3 -3
- package/dist/{vue-ui-sparkbar-CpIfPtyd.cjs → vue-ui-sparkbar-Bs8ZQem1.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-4hk6ZJwJ.js → vue-ui-sparkgauge-B5KqrHQZ.js} +64 -64
- package/dist/vue-ui-sparkgauge-Cd7b4u0z.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-VCAQZfgG.cjs → vue-ui-sparkhistogram-CEWCLohQ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-8degKlMU.js → vue-ui-sparkhistogram-DwRPeG7H.js} +4 -4
- package/dist/{vue-ui-sparkline-DsUwWV4z.cjs → vue-ui-sparkline-CuFtIMpq.cjs} +1 -1
- package/dist/{vue-ui-sparkline-uBkd9kR2.js → vue-ui-sparkline-W5bZnpQo.js} +25 -25
- package/dist/{vue-ui-sparkstackbar-Cpq2lHcl.js → vue-ui-sparkstackbar-9hBQZ0lZ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DyNfMGkM.cjs → vue-ui-sparkstackbar-TyVFUMtT.cjs} +1 -1
- package/dist/{vue-ui-stackbar-lr_qudpY.js → vue-ui-stackbar-BlkgM0nD.js} +35 -35
- package/dist/{vue-ui-stackbar-jQe7BneA.cjs → vue-ui-stackbar-CwVcupxt.cjs} +1 -1
- package/dist/vue-ui-strip-plot-C1GfRjXJ.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DwvlcnHB.js → vue-ui-strip-plot-CBfqkkY6.js} +76 -75
- package/dist/{vue-ui-table-Dhj4_z9d.js → vue-ui-table-B8cvvLk8.js} +1 -1
- package/dist/{vue-ui-table-D5ybohqp.cjs → vue-ui-table-CmguTt4I.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CChLZdxj.cjs → vue-ui-table-heatmap-DMnh8-b1.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BY65DeiH.js → vue-ui-table-heatmap-wVWltZ2x.js} +26 -26
- package/dist/{vue-ui-table-sparkline-CvMETVJ1.js → vue-ui-table-sparkline-_POawNEL.js} +13 -13
- package/dist/{vue-ui-table-sparkline-Cmy6PcPI.cjs → vue-ui-table-sparkline-wtIFAc20.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BIN2ofrh.js → vue-ui-thermometer-CFJqd-VY.js} +116 -116
- package/dist/vue-ui-thermometer-D6SnFJb1.cjs +1 -0
- package/dist/{vue-ui-timer-DBcOT10h.cjs → vue-ui-timer-194y0LUC.cjs} +1 -1
- package/dist/{vue-ui-timer-DoSqphvk.js → vue-ui-timer-D8dgDAfe.js} +4 -4
- package/dist/vue-ui-tiremarks-BM28JsxE.cjs +1 -0
- package/dist/{vue-ui-tiremarks-DRTLsMWt.js → vue-ui-tiremarks-CH1BFqbO.js} +71 -71
- package/dist/vue-ui-treemap-BIpIg3Qa.cjs +1 -0
- package/dist/{vue-ui-treemap-D8-D_wfq.js → vue-ui-treemap-DHsoVY5n.js} +89 -82
- package/dist/{vue-ui-vertical-bar-zUaXmUpB.js → vue-ui-vertical-bar-DNODBoSo.js} +246 -242
- package/dist/vue-ui-vertical-bar-Du8ikoWM.cjs +4 -0
- package/dist/{vue-ui-waffle-CztGir7e.js → vue-ui-waffle-C8hMAeMl.js} +44 -44
- package/dist/{vue-ui-waffle-RCqpPcSF.cjs → vue-ui-waffle-_Bi9MRx8.cjs} +1 -1
- package/dist/{vue-ui-wheel-CBqL8FKG.cjs → vue-ui-wheel-BZxcRGJX.cjs} +1 -1
- package/dist/{vue-ui-wheel-BQ2a-ZyV.js → vue-ui-wheel-CmZKsfKj.js} +5 -5
- package/dist/{vue-ui-word-cloud-CKUGIGnW.js → vue-ui-word-cloud-fLf-x06l.js} +68 -65
- package/dist/vue-ui-word-cloud-nHVG2yid.cjs +1 -0
- package/dist/{vue-ui-xy-Dsa2tfKS.js → vue-ui-xy-CPln5bGQ.js} +82 -82
- package/dist/vue-ui-xy-canvas-Z1tJJV5-.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-JeNqaB_p.js → vue-ui-xy-canvas-k30CEsKi.js} +122 -121
- package/dist/vue-ui-xy-qxQy2sOl.cjs +3 -0
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-BILMRRi1.cjs +0 -1
- package/dist/vue-ui-donut-evolution-K7LUkN6q.cjs +0 -1
- package/dist/vue-ui-dumbbell-HVpK20XO.cjs +0 -9
- package/dist/vue-ui-flow-CiXnGdNb.js +0 -465
- package/dist/vue-ui-flow-ClV2yd8Y.cjs +0 -1
- package/dist/vue-ui-galaxy-CMCXCWDA.cjs +0 -1
- package/dist/vue-ui-gauge-DwCGaX1h.cjs +0 -1
- package/dist/vue-ui-heatmap-WFNo-GFX.cjs +0 -1
- package/dist/vue-ui-quick-chart-D9zFHA0L.cjs +0 -15
- package/dist/vue-ui-radar-D8ik0Fqr.cjs +0 -1
- package/dist/vue-ui-rings-Dn5opKNy.cjs +0 -2
- package/dist/vue-ui-spark-trend-DnO4DW0n.cjs +0 -1
- package/dist/vue-ui-spark-trend-HioE2zeC.js +0 -251
- package/dist/vue-ui-sparkgauge-C2_I0tyO.cjs +0 -1
- package/dist/vue-ui-strip-plot-BMKaWqD4.cjs +0 -1
- package/dist/vue-ui-thermometer-Bfp-FwRE.cjs +0 -1
- package/dist/vue-ui-tiremarks-BeBJHz2R.cjs +0 -1
- package/dist/vue-ui-treemap-DqBukSj6.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BM3aaSuB.cjs +0 -4
- package/dist/vue-ui-word-cloud-BbnU0d3E.cjs +0 -1
- package/dist/vue-ui-xy-BU0fCkSk.cjs +0 -3
- package/dist/vue-ui-xy-canvas-IaIARWWS.cjs +0 -9
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { useCssVars as we, computed as f, openBlock as i, createElementBlock as v, createVNode as q, renderSlot as m, createElementVNode as C, normalizeStyle as N, pushScopeId as xe, popScopeId as $e, ref as c, watch as te, onMounted as Se, onBeforeUnmount as Fe, createCommentVNode as F, createBlock as L, unref as p, createSlots as Ne, withCtx as h, normalizeProps as X, guardReactiveProps as j, normalizeClass as ae, Fragment as _e, renderList as Pe, toDisplayString as oe, createTextVNode as Te, nextTick as le } from "vue";
|
|
2
|
-
import { u as ze,
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import { d as
|
|
6
|
-
import
|
|
7
|
-
import { D as
|
|
8
|
-
import
|
|
2
|
+
import { u as ze, W as Ie, s as Ae, c as se, t as Oe, a as Me, p as E, o as We, e as ne, g as De, f as Be, X as Ee, q as Re, r as Ue } from "./index-C_05i_JG.js";
|
|
3
|
+
import { _ as Ve } from "./Title-CPZstF2C.js";
|
|
4
|
+
import { u as Ge, U as Le } from "./usePrinter-DOhlzlnx.js";
|
|
5
|
+
import { d as Xe, t as je, u as qe } from "./useResponsive-NZB-WLRF.js";
|
|
6
|
+
import He from "./vue-ui-accordion-rGJVvi_V.js";
|
|
7
|
+
import { D as Ye } from "./DataTable-BGJ2mVxG.js";
|
|
8
|
+
import Je from "./BaseIcon-CS18qRiy.js";
|
|
9
9
|
import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { u as re } from "./useNestedProp-
|
|
11
|
-
const
|
|
10
|
+
import { u as re } from "./useNestedProp-DLnT0Wtg.js";
|
|
11
|
+
const Ke = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Qe = { "data-html2canvas-ignore": "" }, Ze = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "reset-wrapper"
|
|
14
|
-
},
|
|
14
|
+
}, et = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "reset-wrapper"
|
|
17
|
-
},
|
|
17
|
+
}, tt = { class: "mono-slicer" }, at = /* @__PURE__ */ Ke(() => /* @__PURE__ */ C("div", { class: "slider-track" }, null, -1)), ot = ["min", "max", "value"], lt = {
|
|
18
18
|
__name: "MonoSlicer",
|
|
19
19
|
props: {
|
|
20
20
|
min: {
|
|
@@ -62,13 +62,13 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
62
62
|
setup(r, { emit: I }) {
|
|
63
63
|
const s = r;
|
|
64
64
|
we((b) => ({
|
|
65
|
-
"90ad3208":
|
|
65
|
+
"90ad3208": R.value,
|
|
66
66
|
"4f9eef70": P.value,
|
|
67
67
|
"6e07ae3e": _.value,
|
|
68
68
|
"2fd430a0": r.selectColor,
|
|
69
69
|
"6b8169a4": k.value
|
|
70
70
|
}));
|
|
71
|
-
const
|
|
71
|
+
const R = f(() => s.inputColor), k = f(() => s.background), _ = f(() => `${s.selectColor}33`), P = f(() => s.borderColor);
|
|
72
72
|
function T() {
|
|
73
73
|
I("reset");
|
|
74
74
|
}
|
|
@@ -80,8 +80,8 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
80
80
|
background: s.selectColor
|
|
81
81
|
};
|
|
82
82
|
});
|
|
83
|
-
return (b, e) => (i(), v("div",
|
|
84
|
-
r.value !== r.source ? (i(), v("div",
|
|
83
|
+
return (b, e) => (i(), v("div", Qe, [
|
|
84
|
+
r.value !== r.source ? (i(), v("div", Ze, [
|
|
85
85
|
r.useResetSlot ? m(b.$slots, "reset-action", {
|
|
86
86
|
key: 1,
|
|
87
87
|
reset: T
|
|
@@ -93,14 +93,14 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
93
93
|
class: "vue-data-ui-refresh-button",
|
|
94
94
|
onClick: T
|
|
95
95
|
}, [
|
|
96
|
-
q(
|
|
96
|
+
q(Je, {
|
|
97
97
|
name: "refresh",
|
|
98
98
|
stroke: r.textColor
|
|
99
99
|
}, null, 8, ["stroke"])
|
|
100
100
|
]))
|
|
101
|
-
])) : (i(), v("div",
|
|
102
|
-
C("div",
|
|
103
|
-
|
|
101
|
+
])) : (i(), v("div", et)),
|
|
102
|
+
C("div", tt, [
|
|
103
|
+
at,
|
|
104
104
|
C("div", {
|
|
105
105
|
class: "range-highlight",
|
|
106
106
|
style: N(w.value)
|
|
@@ -111,14 +111,14 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
111
111
|
max: r.max,
|
|
112
112
|
value: Number(r.value),
|
|
113
113
|
onInput: e[0] || (e[0] = (x) => I("update:value", Number(x.target.value)))
|
|
114
|
-
}, null, 40,
|
|
114
|
+
}, null, 40, ot)
|
|
115
115
|
])
|
|
116
116
|
]));
|
|
117
117
|
}
|
|
118
|
-
},
|
|
118
|
+
}, st = /* @__PURE__ */ ue(lt, [["__scopeId", "data-v-3fd7d274"]]), nt = ["id"], rt = ["xmlns", "viewBox"], ut = ["transform"], it = ["fill", "font-weight", "x", "y", "font-size", "transform"], ct = {
|
|
119
119
|
key: 3,
|
|
120
120
|
class: "vue-data-ui-watermark"
|
|
121
|
-
},
|
|
121
|
+
}, dt = ["innerHTML"], vt = {
|
|
122
122
|
__name: "vue-ui-word-cloud",
|
|
123
123
|
props: {
|
|
124
124
|
config: {
|
|
@@ -135,50 +135,53 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
setup(r, { expose: I }) {
|
|
138
|
-
const s = r, { vue_ui_word_cloud:
|
|
138
|
+
const s = r, { vue_ui_word_cloud: R } = ze(), k = f({
|
|
139
139
|
get() {
|
|
140
140
|
return !!s.dataset && s.dataset.length;
|
|
141
141
|
},
|
|
142
142
|
set(t) {
|
|
143
143
|
return t;
|
|
144
144
|
}
|
|
145
|
-
}), _ = c(typeof s.dataset == "string" ? Ie(s.dataset) : s.dataset
|
|
145
|
+
}), _ = c(typeof s.dataset == "string" ? Ie(s.dataset) : s.dataset.map((t) => ({
|
|
146
|
+
...t,
|
|
147
|
+
value: Ae(t.value)
|
|
148
|
+
}))), P = c(se()), T = c(0), w = c(null), b = c(null), e = f(() => {
|
|
146
149
|
const t = re({
|
|
147
150
|
userConfig: s.config,
|
|
148
|
-
defaultConfig:
|
|
151
|
+
defaultConfig: R
|
|
149
152
|
});
|
|
150
153
|
return t.theme ? {
|
|
151
154
|
...re({
|
|
152
|
-
userConfig:
|
|
155
|
+
userConfig: Oe.vue_ui_word_cloud[t.theme] || s.config,
|
|
153
156
|
defaultConfig: t
|
|
154
157
|
}),
|
|
155
|
-
customPalette:
|
|
158
|
+
customPalette: Me[t.theme] || E
|
|
156
159
|
} : t;
|
|
157
160
|
}), x = c(null), g = c(e.value.style.chart.width), n = c({
|
|
158
161
|
width: g.value,
|
|
159
162
|
height: e.value.style.chart.height / e.value.style.chart.height * g.value,
|
|
160
163
|
maxFontSize: e.value.style.chart.words.maxFontSize,
|
|
161
164
|
minFontSize: e.value.style.chart.words.minFontSize
|
|
162
|
-
}), ie =
|
|
163
|
-
const { width: t, height: o } =
|
|
165
|
+
}), ie = je(() => {
|
|
166
|
+
const { width: t, height: o } = qe({
|
|
164
167
|
chart: w.value,
|
|
165
168
|
title: e.value.style.chart.title.text ? b.value : null,
|
|
166
169
|
slicer: e.value.style.chart.zoom.show && x.value
|
|
167
170
|
});
|
|
168
|
-
n.value.width = t, n.value.height = o, le(
|
|
171
|
+
n.value.width = t, n.value.height = o, le(U);
|
|
169
172
|
});
|
|
170
173
|
te(() => g.value, () => {
|
|
171
174
|
ce();
|
|
172
175
|
});
|
|
173
|
-
const ce =
|
|
174
|
-
n.value.width = Number(g.value), n.value.height = e.value.style.chart.height / e.value.style.chart.height * Number(g.value),
|
|
176
|
+
const ce = Xe(() => {
|
|
177
|
+
n.value.width = Number(g.value), n.value.height = e.value.style.chart.height / e.value.style.chart.height * Number(g.value), U();
|
|
175
178
|
}, 10);
|
|
176
179
|
function de() {
|
|
177
180
|
g.value = e.value.style.chart.width;
|
|
178
181
|
}
|
|
179
182
|
const A = c(null);
|
|
180
183
|
Se(() => {
|
|
181
|
-
|
|
184
|
+
We(s.dataset) ? ne({
|
|
182
185
|
componentName: "VueUiWordCloud",
|
|
183
186
|
type: "dataset"
|
|
184
187
|
}) : _.value.forEach((t, o) => {
|
|
@@ -197,7 +200,7 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
197
200
|
}), Fe(() => {
|
|
198
201
|
A.value && A.value.disconnect();
|
|
199
202
|
});
|
|
200
|
-
const { isPrinting: H, isImaging: Y, generatePdf: J, generateImage: K } =
|
|
203
|
+
const { isPrinting: H, isImaging: Y, generatePdf: J, generateImage: K } = Ge({
|
|
201
204
|
elementId: `wordCloud_${P.value}`,
|
|
202
205
|
fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
|
|
203
206
|
}), O = c({
|
|
@@ -217,16 +220,16 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
217
220
|
const u = [], l = { x: -o / 2, y: -a / 2, width: o, height: a }, d = 0, $ = 0;
|
|
218
221
|
return t.forEach((S) => {
|
|
219
222
|
let V = !1;
|
|
220
|
-
for (let
|
|
223
|
+
for (let B = 0; B < Math.max(o, a) / 2 && !V; B += e.value.style.chart.words.packingWeight)
|
|
221
224
|
for (let G = 0; G < 360 && !V; G += e.value.style.chart.words.packingWeight) {
|
|
222
|
-
const ee = G * Math.PI / 180, ye = d +
|
|
225
|
+
const ee = G * Math.PI / 180, ye = d + B * Math.cos(ee) - S.width / 2, be = $ + B * Math.sin(ee) - S.height / 2, y = { ...S, x: ye, y: be }, pe = y.x >= l.x && y.y >= l.y && y.x + y.width <= l.x + l.width && y.y + y.height <= l.y + l.height, Ce = u.some((ke) => he(y, ke));
|
|
223
226
|
pe && !Ce && (u.push(y), V = !0);
|
|
224
227
|
}
|
|
225
228
|
}), u;
|
|
226
229
|
}
|
|
227
230
|
const z = c([]);
|
|
228
|
-
te(() => s.dataset,
|
|
229
|
-
function
|
|
231
|
+
te(() => s.dataset, U, { immediate: !0 });
|
|
232
|
+
function U() {
|
|
230
233
|
const t = _.value.map((l) => l.value), o = Math.max(...t), a = Math.min(...t), u = _.value.map((l, d) => {
|
|
231
234
|
const $ = (l.value - a) / (o - a) * (n.value.maxFontSize - n.value.minFontSize) + n.value.minFontSize, S = ve(l.name, $);
|
|
232
235
|
return {
|
|
@@ -235,7 +238,7 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
235
238
|
fontSize: $,
|
|
236
239
|
width: S.width,
|
|
237
240
|
height: S.height,
|
|
238
|
-
color: e.value.style.chart.words.usePalette ? e.value.customPalette[d] || e.value.customPalette[d % e.value.customPalette.length] ||
|
|
241
|
+
color: e.value.style.chart.words.usePalette ? e.value.customPalette[d] || e.value.customPalette[d % e.value.customPalette.length] || E[d] || E[d % E.length] : e.value.style.chart.words.color
|
|
239
242
|
};
|
|
240
243
|
});
|
|
241
244
|
z.value = me(u, n.value.width, n.value.height).sort((l, d) => d.fontSize - l.fontSize);
|
|
@@ -251,16 +254,16 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
251
254
|
le(() => {
|
|
252
255
|
const t = M.value.head.map((u, l) => [[
|
|
253
256
|
u.name
|
|
254
|
-
], [M.value.body[l]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), a =
|
|
255
|
-
|
|
257
|
+
], [M.value.body[l]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), a = Re(o);
|
|
258
|
+
Ue({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
|
|
256
259
|
});
|
|
257
260
|
}
|
|
258
|
-
const
|
|
261
|
+
const W = f(() => {
|
|
259
262
|
const t = [
|
|
260
263
|
e.value.table.columnNames.series,
|
|
261
264
|
e.value.table.columnNames.value
|
|
262
265
|
], o = M.value.head.map((l, d) => {
|
|
263
|
-
const $ =
|
|
266
|
+
const $ = Be({ p: e.value.table.td.prefix, v: M.value.body[d], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
|
|
264
267
|
return [
|
|
265
268
|
{
|
|
266
269
|
color: l.color,
|
|
@@ -290,9 +293,9 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
290
293
|
body: o,
|
|
291
294
|
config: a
|
|
292
295
|
};
|
|
293
|
-
}),
|
|
296
|
+
}), D = c(!1);
|
|
294
297
|
function fe(t) {
|
|
295
|
-
|
|
298
|
+
D.value = t, T.value += 1;
|
|
296
299
|
}
|
|
297
300
|
function ge() {
|
|
298
301
|
return z.value;
|
|
@@ -319,7 +322,7 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
319
322
|
ref: b,
|
|
320
323
|
style: N(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
321
324
|
}, [
|
|
322
|
-
q(
|
|
325
|
+
q(Ve, {
|
|
323
326
|
config: {
|
|
324
327
|
title: {
|
|
325
328
|
...e.value.style.chart.title
|
|
@@ -330,7 +333,7 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
330
333
|
}
|
|
331
334
|
}, null, 8, ["config"])
|
|
332
335
|
], 4)) : F("", !0),
|
|
333
|
-
e.value.userOptions.show && k.value ? (i(), L(
|
|
336
|
+
e.value.userOptions.show && k.value ? (i(), L(Le, {
|
|
334
337
|
ref: "details",
|
|
335
338
|
key: `user_option_${T.value}`,
|
|
336
339
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -343,7 +346,7 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
343
346
|
hasImg: e.value.userOptions.buttons.img,
|
|
344
347
|
hasTable: e.value.userOptions.buttons.table,
|
|
345
348
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
346
|
-
isFullscreen:
|
|
349
|
+
isFullscreen: D.value,
|
|
347
350
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
348
351
|
chartElement: w.value,
|
|
349
352
|
onToggleFullscreen: fe,
|
|
@@ -390,8 +393,8 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
390
393
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : F("", !0),
|
|
391
394
|
k.value ? (i(), v("svg", {
|
|
392
395
|
key: 2,
|
|
393
|
-
class: ae({ "vue-data-ui-fullscreen--on":
|
|
394
|
-
xmlns: p(
|
|
396
|
+
class: ae({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
|
|
397
|
+
xmlns: p(Ee),
|
|
395
398
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
396
399
|
style: N(`overflow:visible;background:${e.value.style.chart.backgroundColor};`)
|
|
397
400
|
}, [
|
|
@@ -411,14 +414,14 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
411
414
|
class: ae({ animated: e.value.useCssAnimation }),
|
|
412
415
|
"text-anchor": "middle",
|
|
413
416
|
"dominant-baseline": "middle"
|
|
414
|
-
}, oe(a.name), 15,
|
|
417
|
+
}, oe(a.name), 15, it))
|
|
415
418
|
]))), 256))
|
|
416
|
-
], 8,
|
|
419
|
+
], 8, ut),
|
|
417
420
|
m(t.$slots, "svg", {
|
|
418
421
|
svg: { height: n.value.height, width: n.value.width }
|
|
419
422
|
}, void 0, !0)
|
|
420
|
-
], 14,
|
|
421
|
-
t.$slots.watermark ? (i(), v("div",
|
|
423
|
+
], 14, rt)) : F("", !0),
|
|
424
|
+
t.$slots.watermark ? (i(), v("div", ct, [
|
|
422
425
|
m(t.$slots, "watermark", X(j({ isPrinting: p(H) || p(Y) })), void 0, !0)
|
|
423
426
|
])) : F("", !0),
|
|
424
427
|
C("div", {
|
|
@@ -427,7 +430,7 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
427
430
|
style: N(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
428
431
|
"data-html2canvas-ignore": ""
|
|
429
432
|
}, [
|
|
430
|
-
e.value.style.chart.zoom.show ? (i(), L(
|
|
433
|
+
e.value.style.chart.zoom.show ? (i(), L(st, {
|
|
431
434
|
key: 0,
|
|
432
435
|
value: g.value,
|
|
433
436
|
"onUpdate:value": o[0] || (o[0] = (a) => g.value = a),
|
|
@@ -448,7 +451,7 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
448
451
|
_: 3
|
|
449
452
|
}, 8, ["value", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : F("", !0)
|
|
450
453
|
], 4),
|
|
451
|
-
k.value ? (i(), L(
|
|
454
|
+
k.value ? (i(), L(He, {
|
|
452
455
|
key: 4,
|
|
453
456
|
hideDetails: "",
|
|
454
457
|
config: {
|
|
@@ -465,11 +468,11 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
465
468
|
}
|
|
466
469
|
}, {
|
|
467
470
|
content: h(() => [
|
|
468
|
-
q(
|
|
469
|
-
colNames:
|
|
470
|
-
head:
|
|
471
|
-
body:
|
|
472
|
-
config:
|
|
471
|
+
q(Ye, {
|
|
472
|
+
colNames: W.value.colNames,
|
|
473
|
+
head: W.value.head,
|
|
474
|
+
body: W.value.body,
|
|
475
|
+
config: W.value.config,
|
|
473
476
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
474
477
|
onClose: o[1] || (o[1] = (a) => O.value.showTable = !1)
|
|
475
478
|
}, {
|
|
@@ -477,7 +480,7 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
477
480
|
C("div", {
|
|
478
481
|
innerHTML: a,
|
|
479
482
|
style: { display: "flex", "align-items": "center" }
|
|
480
|
-
}, null, 8,
|
|
483
|
+
}, null, 8, dt)
|
|
481
484
|
]),
|
|
482
485
|
td: h(({ td: a }) => [
|
|
483
486
|
Te(oe(a.name || a), 1)
|
|
@@ -487,9 +490,9 @@ const Je = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Ke = { "data-html2c
|
|
|
487
490
|
]),
|
|
488
491
|
_: 1
|
|
489
492
|
}, 8, ["config"])) : F("", !0)
|
|
490
|
-
], 12,
|
|
493
|
+
], 12, nt));
|
|
491
494
|
}
|
|
492
|
-
},
|
|
495
|
+
}, xt = /* @__PURE__ */ ue(vt, [["__scopeId", "data-v-4e5216cf"]]);
|
|
493
496
|
export {
|
|
494
|
-
|
|
497
|
+
xt as default
|
|
495
498
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-NNZeHOBS.cjs"),ne=require("./Title-PZ6S96pU.cjs"),W=require("./usePrinter-BLbY8qGZ.cjs"),V=require("./useResponsive-B3TrDDIG.cjs"),re=require("./vue-ui-accordion-CcdyvXrp.cjs"),se=require("./DataTable-CSEiZDAb.cjs"),ue=require("./BaseIcon-O8jJvy48.cjs"),L=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),G=require("./useNestedProp-CPsbJAGj.cjs"),ie=i=>(e.pushScopeId("data-v-3fd7d274"),i=i(),e.popScopeId(),i),ce={"data-html2canvas-ignore":""},de={key:0,class:"reset-wrapper"},ve={key:1,class:"reset-wrapper"},he={class:"mono-slicer"},me=ie(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),fe=["min","max","value"],ge={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(i,{emit:S}){const r=i;e.useCssVars(m=>({"90ad3208":_.value,"4f9eef70":k.value,"6e07ae3e":C.value,"2fd430a0":i.selectColor,"6b8169a4":f.value}));const _=e.computed(()=>r.inputColor),f=e.computed(()=>r.background),C=e.computed(()=>`${r.selectColor}33`),k=e.computed(()=>r.borderColor);function w(){S("reset")}const g=e.computed(()=>{const m=r.max-r.min,t=0,p=(r.value-r.min)/m*100;return{left:`${t}%`,width:`${p-t}%`,background:r.selectColor}});return(m,t)=>(e.openBlock(),e.createElementBlock("div",ce,[i.value!==i.source?(e.openBlock(),e.createElementBlock("div",de,[i.useResetSlot?e.renderSlot(m.$slots,"reset-action",{key:1,reset:w},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:w},[e.createVNode(ue.default,{name:"refresh",stroke:i.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ve)),e.createElementVNode("div",he,[me,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(g.value)},null,4),e.createElementVNode("input",{type:"range",min:i.min,max:i.max,value:Number(i.value),onInput:t[0]||(t[0]=p=>S("update:value",Number(p.target.value)))},null,40,fe)])]))}},pe=L._export_sfc(ge,[["__scopeId","data-v-3fd7d274"]]),ye=["id"],be=["xmlns","viewBox"],Ce=["transform"],ke=["fill","font-weight","x","y","font-size","transform"],we={key:3,class:"vue-data-ui-watermark"},xe=["innerHTML"],Se={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(i,{expose:S}){const r=i,{vue_ui_word_cloud:_}=u.useConfig(),f=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),C=e.ref(typeof r.dataset=="string"?u.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),k=e.ref(u.createUid()),w=e.ref(0),g=e.ref(null),m=e.ref(null),t=e.computed(()=>{const o=G.useNestedProp({userConfig:r.config,defaultConfig:_});return o.theme?{...G.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}),p=e.ref(null),v=e.ref(t.value.style.chart.width),s=e.ref({width:v.value,height:t.value.style.chart.height/t.value.style.chart.height*v.value,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),X=V.throttle(()=>{const{width:o,height:a}=V.useResponsive({chart:g.value,title:t.value.style.chart.title.text?m.value:null,slicer:t.value.style.chart.zoom.show&&p.value});s.value.width=o,s.value.height=a,e.nextTick(T)});e.watch(()=>v.value,()=>{j()});const j=V.debounce(()=>{s.value.width=Number(v.value),s.value.height=t.value.style.chart.height/t.value.style.chart.height*Number(v.value),T()},10);function H(){v.value=t.value.style.chart.width}const N=e.ref(null);e.onMounted(()=>{u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):C.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{f.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(N.value=new ResizeObserver(X),N.value.observe(g.value.parentNode))}),e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:A,isImaging:O,generatePdf:M,generateImage:R}=W.usePrinter({elementId:`wordCloud_${k.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),$=e.ref({showTable:t.value.table.show});function Y(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 J(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 K(o,a,l){const c=[],n={x:-a/2,y:-l/2,width:a,height:l},d=0,y=0;return o.forEach(b=>{let E=!1;for(let z=0;z<Math.max(a,l)/2&&!E;z+=t.value.style.chart.words.packingWeight)for(let I=0;I<360&&!E;I+=t.value.style.chart.words.packingWeight){const U=I*Math.PI/180,ee=d+z*Math.cos(U)-b.width/2,te=y+z*Math.sin(U)-b.height/2,h={...b,x:ee,y:te},oe=h.x>=n.x&&h.y>=n.y&&h.x+h.width<=n.x+n.width&&h.y+h.height<=n.y+n.height,le=c.some(ae=>J(h,ae));oe&&!le&&(c.push(h),E=!0)}}),c}const x=e.ref([]);e.watch(()=>r.dataset,T,{immediate:!0});function T(){const o=C.value.map(n=>n.value),a=Math.max(...o),l=Math.min(...o),c=C.value.map((n,d)=>{const y=(n.value-l)/(a-l)*(s.value.maxFontSize-s.value.minFontSize)+s.value.minFontSize,b=Y(n.name,y);return{...n,id:u.createUid(),fontSize:y,width:b.width,height:b.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[d]||t.value.customPalette[d%t.value.customPalette.length]||u.palette[d]||u.palette[d%u.palette.length]:t.value.style.chart.words.color}});x.value=K(c,s.value.width,s.value.height).sort((n,d)=>d.fontSize-n.fontSize)}const F=e.computed(()=>{const o=x.value.map(l=>({name:l.name,color:l.color})),a=x.value.map(l=>l.value);return{head:o,body:a}});function q(){e.nextTick(()=>{const o=F.value.head.map((c,n)=>[[c.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const P=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,d)=>{const y=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[d],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},y]}),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}}),B=e.ref(!1);function Q(o){B.value=o,w.value+=1}function Z(){return x.value}function D(){$.value.showTable=!$.value.showTable}return S({getData:Z,generateCsv:q,generatePdf:M,generateImage:R,toggleTable:D}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:g,id:`wordCloud_${k.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:m,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[e.createVNode(ne._sfc_main,{config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&f.value?(e.openBlock(),e.createBlock(W.UserOptions,{ref:"details",key:`user_option_${w.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(A),isImaging:e.unref(O),uid:k.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:B.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,onToggleFullscreen:Q,onGeneratePdf:e.unref(M),onGenerateCsv:q,onGenerateImage:e.unref(R),onToggleTable:D},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`overflow:visible;background:${t.value.style.chart.backgroundColor};`)},[e.createElementVNode("g",{transform:`translate(${(s.value.width<=0?10:s.value.width)/2}, ${(s.value.height<=0?10:s.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,c)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:c,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,style:e.normalizeStyle(`animation-delay:${c*t.value.animationDelayMs}ms !important`),class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":"middle","dominant-baseline":"middle"},e.toDisplayString(l.name),15,ke))]))),256))],8,Ce),e.renderSlot(o.$slots,"svg",{svg:{height:s.value.height,width:s.value.width}},void 0,!0)],14,be)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",we,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(O)})),void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartSlicer",ref:p,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`),"data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(pe,{key:0,value:v.value,"onUpdate:value":a[0]||(a[0]=l=>v.value=l),min:100,max:t.value.style.chart.width*3,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:H},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],4),f.value?(e.openBlock(),e.createBlock(re.default,{key:4,hideDetails:"",config:{open:$.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.createVNode(se.DataTable,{colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[1]||(a[1]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,xe)]),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,ye))}},Ne=L._export_sfc(Se,[["__scopeId","data-v-4e5216cf"]]);exports.default=Ne;
|