vue-data-ui 2.3.88 → 2.3.89
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-kIoRmLea.js → Arrow-6DWnAEHt.js} +1 -1
- package/dist/{Arrow-CaBSHqw3.cjs → Arrow-CW5gDSmt.cjs} +1 -1
- package/dist/{BaseIcon-B2zEAYL0.cjs → BaseIcon-B_MrASni.cjs} +1 -1
- package/dist/{BaseIcon-dAh8thfs.js → BaseIcon-Dj8EbAXm.js} +1 -1
- package/dist/{DataTable-BLGE-au6.js → DataTable-BmYcdJ1w.js} +2 -2
- package/dist/{DataTable-DEvCstuA.cjs → DataTable-DAwK5x3h.cjs} +1 -1
- package/dist/{Legend-BAZwLtW5.js → Legend-BRG8ddDy.js} +1 -1
- package/dist/{Legend-D9oHmbQR.cjs → Legend-DhQ-a1RH.cjs} +1 -1
- package/dist/{Shape-Bw52scDY.js → Shape-BcL3EDZ5.js} +1 -1
- package/dist/{Shape-yv-533z4.cjs → Shape-D7jva0XA.cjs} +1 -1
- package/dist/{Slicer-eP9UH3h4.js → Slicer-DI1kgq9D.js} +2 -2
- package/dist/{Slicer-CnyR7m1m.cjs → Slicer-DV29nclP.cjs} +1 -1
- package/dist/{Title-BOtOowG-.cjs → Title-DYwo_Q5b.cjs} +1 -1
- package/dist/{Title-vxOwL9mI.js → Title-fAvrqioZ.js} +1 -1
- package/dist/{Tooltip-B25UdCt3.cjs → Tooltip-03RvVGln.cjs} +1 -1
- package/dist/{Tooltip-FDQ6j0dy.js → Tooltip-TZYYFvPe.js} +1 -1
- package/dist/img-BFCs759q.cjs +1 -0
- package/dist/img-DGzWcJ4Y.js +15 -0
- package/dist/{index-BzFQHG8B.cjs → index-BKTciLz4.cjs} +1 -1
- package/dist/{index-Bkzd7TEp.js → index-Ca4RHJ4t.js} +1 -1
- package/dist/pdf-9cRTLjY8.cjs +1 -0
- package/dist/{pdf-97UbtKC2.js → pdf-B7oVat64.js} +7 -7
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BU19Uk2G.cjs → useNestedProp-BFnXnY0k.cjs} +1 -1
- package/dist/{useNestedProp-BjKkGjnV.js → useNestedProp-vP7uimPz.js} +1 -1
- package/dist/{usePrinter-BO99ut-7.js → usePrinter-5fwXghqP.js} +155 -156
- package/dist/usePrinter-CxYg-Dw-.cjs +1 -0
- package/dist/{vue-data-ui-9X87OiUw.js → vue-data-ui-4VG00HFR.js} +57 -57
- package/dist/{vue-data-ui-C4vMufw3.cjs → vue-data-ui-BaLkNH7M.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BQs0ss6E.js → vue-ui-3d-bar-DPJWcxqV.js} +7 -7
- package/dist/{vue-ui-3d-bar-DW_P_GEm.cjs → vue-ui-3d-bar-rOT9iPsm.cjs} +1 -1
- package/dist/{vue-ui-accordion-D9rDPTxC.cjs → vue-ui-accordion-SXHdW20_.cjs} +1 -1
- package/dist/{vue-ui-accordion-Dq8PnOQI.js → vue-ui-accordion-vYoYjedX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BtQBOmuj.js → vue-ui-age-pyramid-BEC4SHLl.js} +8 -8
- package/dist/{vue-ui-age-pyramid-w1cHqmfP.cjs → vue-ui-age-pyramid-HElID9Ax.cjs} +1 -1
- package/dist/{vue-ui-annotator-DN8dHbpa.cjs → vue-ui-annotator-B1NZRuJJ.cjs} +1 -1
- package/dist/{vue-ui-annotator-yL2aaXSM.js → vue-ui-annotator-DFpv61wn.js} +1 -1
- package/dist/{vue-ui-candlestick-DvI-paAZ.js → vue-ui-candlestick-AEKT8X3p.js} +9 -9
- package/dist/{vue-ui-candlestick-Bb3gE99L.cjs → vue-ui-candlestick-p1s0Av21.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DrnpUyMB.cjs → vue-ui-carousel-table-DCk2p-1k.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CFOGiUYF.js → vue-ui-carousel-table-DhzVxOvp.js} +4 -4
- package/dist/{vue-ui-chestnut--s6irU0q.cjs → vue-ui-chestnut-oFfB3fBF.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BsAh9hFC.js → vue-ui-chestnut-qqcIpMGB.js} +6 -6
- package/dist/{vue-ui-cursor-C4ReYD2O.js → vue-ui-cursor-CgSghVjL.js} +2 -2
- package/dist/{vue-ui-cursor-B-XJpQPg.cjs → vue-ui-cursor-CvJgJk1M.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B9vNbg0W.js → vue-ui-dashboard-CYzkic0X.js} +3 -3
- package/dist/vue-ui-dashboard-CtJdVmtu.cjs +1 -0
- package/dist/{vue-ui-digits-BWo3eCH7.js → vue-ui-digits-BO1hSjoq.js} +2 -2
- package/dist/{vue-ui-digits-DMXN0q7k.cjs → vue-ui-digits-C0dMG-hR.cjs} +1 -1
- package/dist/{vue-ui-donut-Cel6UjXl.js → vue-ui-donut-DP-yxiw3.js} +9 -9
- package/dist/{vue-ui-donut-B0iDrljg.cjs → vue-ui-donut-Dnnoj71c.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-daM3GjWu.js → vue-ui-donut-evolution-C-yDyglF.js} +9 -9
- package/dist/{vue-ui-donut-evolution-D94iUNlt.cjs → vue-ui-donut-evolution-vBUH5VVx.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-AimehlIj.cjs → vue-ui-dumbbell-BUA_uSse.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DY_AhNS1.js → vue-ui-dumbbell-D2SQ4cKV.js} +8 -8
- package/dist/{vue-ui-flow-BhnVwgW5.cjs → vue-ui-flow-B-AFlw-n.cjs} +1 -1
- package/dist/{vue-ui-flow-DHemHIqr.js → vue-ui-flow-D_E9V2A1.js} +7 -7
- package/dist/{vue-ui-galaxy-DlS-pSHI.cjs → vue-ui-galaxy-CbL5nONj.cjs} +1 -1
- package/dist/{vue-ui-galaxy-D8uc51fE.js → vue-ui-galaxy-DqE2UiA3.js} +9 -9
- package/dist/{vue-ui-gauge-DkgiaTIQ.cjs → vue-ui-gauge-BUV_hQND.cjs} +1 -1
- package/dist/{vue-ui-gauge-BDP3AbQP.js → vue-ui-gauge-CFYXDw2p.js} +5 -5
- package/dist/{vue-ui-gizmo-d48XB9Y7.cjs → vue-ui-gizmo-B-LxuvDh.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Bw-drsvJ.js → vue-ui-gizmo-BWztIJ3j.js} +2 -2
- package/dist/{vue-ui-heatmap-qXivxpXK.cjs → vue-ui-heatmap-DW5StHKM.cjs} +1 -1
- package/dist/{vue-ui-heatmap-D6rhUBIv.js → vue-ui-heatmap-E1MlhSCs.js} +8 -8
- package/dist/{vue-ui-kpi-DYtYBfVS.cjs → vue-ui-kpi-BWDPF-9X.cjs} +1 -1
- package/dist/{vue-ui-kpi-CaJNQu-7.js → vue-ui-kpi-DeP0XmP7.js} +3 -3
- package/dist/{vue-ui-mini-loader-C8WE9mmc.js → vue-ui-mini-loader-Bal12IrX.js} +2 -2
- package/dist/{vue-ui-mini-loader-Bd3n8Eh7.cjs → vue-ui-mini-loader-D5e8uW_d.cjs} +1 -1
- package/dist/{vue-ui-molecule-DCOIE2Oz.cjs → vue-ui-molecule-DHBId4h4.cjs} +1 -1
- package/dist/{vue-ui-molecule-BJ78cyz2.js → vue-ui-molecule-DHrHeQgF.js} +9 -9
- package/dist/{vue-ui-mood-radar-xc7ZIj7B.cjs → vue-ui-mood-radar-DSXB9l99.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BcKbxhUb.js → vue-ui-mood-radar-dJaJotNf.js} +9 -9
- package/dist/{vue-ui-nested-donuts-DmqrKtK-.js → vue-ui-nested-donuts--K9ygdH3.js} +9 -9
- package/dist/{vue-ui-nested-donuts-1AnFMRQE.cjs → vue-ui-nested-donuts-CEX2cvop.cjs} +1 -1
- package/dist/{vue-ui-onion-B7-Luph_.js → vue-ui-onion-Bm1inM56.js} +9 -9
- package/dist/{vue-ui-onion-B-CQQFDn.cjs → vue-ui-onion-Iekdjs8b.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Cl2fIY0h.js → vue-ui-parallel-coordinate-plot-9PSGD-LR.js} +10 -10
- package/dist/{vue-ui-parallel-coordinate-plot-Cg7rXYJl.cjs → vue-ui-parallel-coordinate-plot-OlFoYL_3.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DzqQM8zj.cjs → vue-ui-quadrant-CgJeo2zZ.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BMRu5C6_.js → vue-ui-quadrant-iGQbx93I.js} +10 -10
- package/dist/{vue-ui-quick-chart-bdjkTZCJ.js → vue-ui-quick-chart-DeEQcx6A.js} +7 -7
- package/dist/{vue-ui-quick-chart-D6Y5lQZz.cjs → vue-ui-quick-chart-Du8lDPmh.cjs} +1 -1
- package/dist/{vue-ui-radar-CmIznCHB.cjs → vue-ui-radar-BYk9DWnM.cjs} +1 -1
- package/dist/{vue-ui-radar-DUBmmYCM.js → vue-ui-radar-DfnhsNQV.js} +10 -10
- package/dist/{vue-ui-rating-vn6QGQ1T.js → vue-ui-rating-CCesFD6e.js} +2 -2
- package/dist/{vue-ui-rating-D353kmjW.cjs → vue-ui-rating-D0rgVdkT.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Dd_nf_ni.cjs → vue-ui-relation-circle-8eoBav4O.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Enjx6oV8.js → vue-ui-relation-circle-D2GXm_Fk.js} +5 -5
- package/dist/{vue-ui-rings-D3n403nM.js → vue-ui-rings-B7_-G3JM.js} +9 -9
- package/dist/{vue-ui-rings-BggXdDcB.cjs → vue-ui-rings-CScmcQ1n.cjs} +1 -1
- package/dist/{vue-ui-scatter-C5kTB_at.cjs → vue-ui-scatter-BnBI8qdt.cjs} +1 -1
- package/dist/{vue-ui-scatter-D8gjIVvT.js → vue-ui-scatter-DdhiNjLc.js} +10 -10
- package/dist/{vue-ui-screenshot-BOtri9ZP.cjs → vue-ui-screenshot-BrhjnTwn.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BOtaOWHH.js → vue-ui-screenshot-Cpy2qbf1.js} +1 -1
- package/dist/{vue-ui-skeleton-B1pWkVPT.js → vue-ui-skeleton-D7aLznpP.js} +2 -2
- package/dist/{vue-ui-skeleton-B_ed6BaF.cjs → vue-ui-skeleton-pDeQ3NcD.cjs} +1 -1
- package/dist/{vue-ui-smiley-BHwhptXa.cjs → vue-ui-smiley-Cj0yi7_H.cjs} +1 -1
- package/dist/{vue-ui-smiley-Fx2vCfWl.js → vue-ui-smiley-vcpYARLj.js} +2 -2
- package/dist/{vue-ui-spark-trend-DYeF_f9D.cjs → vue-ui-spark-trend-BW8k0jDd.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BbGJLy6v.js → vue-ui-spark-trend-CFJSCQnf.js} +4 -4
- package/dist/{vue-ui-sparkbar-waCPID8a.cjs → vue-ui-sparkbar-BbJHfAQj.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-D4zOXsmw.js → vue-ui-sparkbar-CgRdDfk6.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ByLoId02.cjs → vue-ui-sparkgauge-BESRB8_4.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CrOeVBM6.js → vue-ui-sparkgauge-CCPMNge0.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Du-8Djku.cjs → vue-ui-sparkhistogram-BYnSfLdb.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-m8HxSpNJ.js → vue-ui-sparkhistogram-D5z2Wtpk.js} +4 -4
- package/dist/{vue-ui-sparkline-Ccq4xp69.cjs → vue-ui-sparkline-D5WUy4p5.cjs} +1 -1
- package/dist/{vue-ui-sparkline-KMDtu_Z0.js → vue-ui-sparkline-KYN0oKt1.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-D3YWcJ_H.js → vue-ui-sparkstackbar-7lurD9-4.js} +80 -77
- package/dist/vue-ui-sparkstackbar-Dy-IfQ3q.cjs +1 -0
- package/dist/{vue-ui-stackbar-DlfuJps0.cjs → vue-ui-stackbar-Ch-fmE9l.cjs} +1 -1
- package/dist/{vue-ui-stackbar-D6oKKqGM.js → vue-ui-stackbar-CsVmAvl3.js} +10 -10
- package/dist/{vue-ui-strip-plot-BbAVQ73Y.js → vue-ui-strip-plot-B63AgKts.js} +9 -9
- package/dist/{vue-ui-strip-plot-CtJyMV8c.cjs → vue-ui-strip-plot-BLRl-tF6.cjs} +1 -1
- package/dist/{vue-ui-table-C3fDr-79.js → vue-ui-table-G5O8K-F_.js} +1 -1
- package/dist/{vue-ui-table-B1feGzci.cjs → vue-ui-table-hPqdMR-m.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DTTq642Y.cjs → vue-ui-table-heatmap-BhVuTdSS.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Bs11u_Bn.js → vue-ui-table-heatmap-t9Ngijvp.js} +4 -4
- package/dist/{vue-ui-table-sparkline-BmnqHZCN.js → vue-ui-table-sparkline-BX4en1c-.js} +5 -5
- package/dist/{vue-ui-table-sparkline-C9v0ZCRY.cjs → vue-ui-table-sparkline-DtjJrGve.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DH4J5XrN.cjs → vue-ui-thermometer-B07RI9fZ.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BF0EfLSS.js → vue-ui-thermometer-BWGyDQ7_.js} +5 -5
- package/dist/{vue-ui-timer-Dex5u9Ug.js → vue-ui-timer-8AlVLAJi.js} +4 -4
- package/dist/{vue-ui-timer-BoF6_mg_.cjs → vue-ui-timer-CXrENAVg.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DEhFA_QA.cjs → vue-ui-tiremarks-C43c4_IR.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-i2bIrejU.js → vue-ui-tiremarks-DYIHGkBU.js} +5 -5
- package/dist/{vue-ui-treemap-BXfhAmfw.cjs → vue-ui-treemap-BN90ISQv.cjs} +1 -1
- package/dist/{vue-ui-treemap-CkHKUr9H.js → vue-ui-treemap-mmvdTHiX.js} +9 -9
- package/dist/{vue-ui-vertical-bar-Co4Vz7W1.cjs → vue-ui-vertical-bar-BRDO_Rsu.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Ui-eKo2G.js → vue-ui-vertical-bar-DAKHNRoR.js} +9 -9
- package/dist/{vue-ui-waffle-IjZAL-JJ.js → vue-ui-waffle-B-A4NYNd.js} +9 -9
- package/dist/{vue-ui-waffle-DJIU32yG.cjs → vue-ui-waffle-BN_yZEtJ.cjs} +1 -1
- package/dist/{vue-ui-wheel-WTP6VSQg.cjs → vue-ui-wheel-50_zeiIW.cjs} +1 -1
- package/dist/{vue-ui-wheel-CEyocXra.js → vue-ui-wheel-DN9WvA6Z.js} +5 -5
- package/dist/{vue-ui-word-cloud-Cg-5NUED.cjs → vue-ui-word-cloud-BVoFIb_q.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CanNB33d.js → vue-ui-word-cloud-BWTyaGAT.js} +7 -7
- package/dist/vue-ui-xy-CJHHesUD.cjs +3 -0
- package/dist/{vue-ui-xy-Ea4QdEJG.js → vue-ui-xy-Dzp4qCjk.js} +769 -762
- package/dist/{vue-ui-xy-canvas-CtYuW5vo.js → vue-ui-xy-canvas-9NPbm7dE.js} +10 -10
- package/dist/{vue-ui-xy-canvas-DQCerSdP.cjs → vue-ui-xy-canvas-CAcTkk_r.cjs} +1 -1
- package/package.json +1 -1
- package/dist/pdf-Cz3729tZ.cjs +0 -1
- package/dist/usePrinter-BY2kEF_E.cjs +0 -1
- package/dist/vue-ui-dashboard-DRPAfzVQ.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BbG_IuZ6.cjs +0 -1
- package/dist/vue-ui-xy-B5Wip8Yp.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-BKTciLz4.cjs");function o({defaultConfig:e,userConfig:t}){if(!Object.keys(t||{}).length)return e;const n=r.treeShake({defaultConfig:e,userConfig:t});return r.convertConfigColors(n)}exports.useNestedProp=o;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
1
|
+
import { ref as b, onMounted as q, onBeforeUnmount as H, withDirectives as G, openBlock as t, createElementBlock as i, normalizeStyle as d, createElementVNode as z, withModifiers as J, withKeys as Q, createVNode as R, normalizeClass as y, renderSlot as m, Fragment as B, createBlock as g, toDisplayString as $, createCommentVNode as s, normalizeProps as D, mergeProps as U, unref as Y } from "vue";
|
|
2
|
+
import r from "./BaseIcon-Dj8EbAXm.js";
|
|
3
3
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const ee = {
|
|
7
|
-
beforeMount(e, r) {
|
|
4
|
+
const p = {
|
|
5
|
+
beforeMount(e, f) {
|
|
8
6
|
e.clickOutsideEvent = function(a) {
|
|
9
|
-
e === a.target || e.contains(a.target) ||
|
|
7
|
+
e === a.target || e.contains(a.target) || f.value(a);
|
|
10
8
|
}, document.addEventListener("click", e.clickOutsideEvent);
|
|
11
9
|
},
|
|
12
10
|
unmounted(e) {
|
|
13
11
|
document.removeEventListener("click", e.clickOutsideEvent);
|
|
14
12
|
}
|
|
15
|
-
},
|
|
13
|
+
}, _ = ["title", "onClick", "onKeypress"], ee = ["data-open"], te = {
|
|
16
14
|
__name: "UserOptions",
|
|
17
15
|
props: {
|
|
18
16
|
hasPdf: {
|
|
@@ -123,63 +121,63 @@ const ee = {
|
|
|
123
121
|
}
|
|
124
122
|
},
|
|
125
123
|
emits: ["generatePdf", "generateCsv", "generateImage", "toggleTable", "toggleLabels", "toggleSort", "toggleFullscreen", "toggleStack", "toggleTooltip", "toggleAnimation"],
|
|
126
|
-
setup(e, { emit:
|
|
124
|
+
setup(e, { emit: f }) {
|
|
127
125
|
const a = e;
|
|
128
|
-
function
|
|
129
|
-
|
|
126
|
+
function h() {
|
|
127
|
+
f("generatePdf");
|
|
130
128
|
}
|
|
131
129
|
function C() {
|
|
132
|
-
|
|
130
|
+
f("generateCsv");
|
|
133
131
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
132
|
+
function S() {
|
|
133
|
+
f("generateImage");
|
|
136
134
|
}
|
|
137
|
-
const
|
|
138
|
-
function
|
|
139
|
-
|
|
135
|
+
const T = b(!1);
|
|
136
|
+
function I() {
|
|
137
|
+
T.value = !T.value, f("toggleTable");
|
|
140
138
|
}
|
|
141
|
-
const
|
|
142
|
-
function
|
|
143
|
-
|
|
139
|
+
const v = b(!1), x = b(!0);
|
|
140
|
+
function L() {
|
|
141
|
+
c.value = window.innerWidth > 600, v.value = !v.value, v.value && (x.value = !1);
|
|
144
142
|
}
|
|
145
143
|
function K() {
|
|
146
|
-
a.isPrinting || a.isImaging || (
|
|
144
|
+
a.isPrinting || a.isImaging || (v.value = !1);
|
|
147
145
|
}
|
|
148
146
|
function N() {
|
|
149
|
-
|
|
147
|
+
v.value && K();
|
|
150
148
|
}
|
|
151
|
-
const
|
|
149
|
+
const E = b(a.isLabelActive);
|
|
152
150
|
function V() {
|
|
153
|
-
|
|
151
|
+
E.value = !E.value, f("toggleLabels");
|
|
154
152
|
}
|
|
155
|
-
const M =
|
|
156
|
-
function
|
|
157
|
-
M.value = !M.value,
|
|
153
|
+
const M = b(a.isAnimation);
|
|
154
|
+
function w() {
|
|
155
|
+
M.value = !M.value, f("toggleAnimation");
|
|
158
156
|
}
|
|
159
157
|
function j() {
|
|
160
|
-
|
|
158
|
+
f("toggleSort");
|
|
161
159
|
}
|
|
162
|
-
const
|
|
160
|
+
const F = b(a.isStacked);
|
|
163
161
|
function W() {
|
|
164
|
-
|
|
162
|
+
F.value = !F.value, f("toggleStack");
|
|
165
163
|
}
|
|
166
|
-
const
|
|
164
|
+
const O = b(a.isTooltip);
|
|
167
165
|
function X() {
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
const b = d(!1);
|
|
171
|
-
function P(l) {
|
|
172
|
-
a.chartElement && (l === "in" ? (b.value = !0, a.chartElement.requestFullscreen(), r("toggleFullscreen", !0)) : (b.value = !1, document && document.exitFullscreen(), r("toggleFullscreen", !1)));
|
|
166
|
+
O.value = !O.value, f("toggleTooltip");
|
|
173
167
|
}
|
|
168
|
+
const k = b(!1);
|
|
174
169
|
function A(l) {
|
|
175
|
-
|
|
170
|
+
a.chartElement && (l === "in" ? (k.value = !0, a.chartElement.requestFullscreen(), f("toggleFullscreen", !0)) : (k.value = !1, document && document.exitFullscreen(), f("toggleFullscreen", !1)));
|
|
171
|
+
}
|
|
172
|
+
function P(l) {
|
|
173
|
+
document.fullscreenElement ? k.value = !0 : k.value = !1;
|
|
176
174
|
}
|
|
177
175
|
q(() => {
|
|
178
|
-
document.addEventListener("fullscreenchange",
|
|
176
|
+
document.addEventListener("fullscreenchange", P);
|
|
179
177
|
}), H(() => {
|
|
180
|
-
document.removeEventListener("fullscreenchange",
|
|
178
|
+
document.removeEventListener("fullscreenchange", P);
|
|
181
179
|
});
|
|
182
|
-
const
|
|
180
|
+
const c = b(window.innerWidth > 600), n = b({
|
|
183
181
|
tooltip: !1,
|
|
184
182
|
pdf: !1,
|
|
185
183
|
csv: !1,
|
|
@@ -191,28 +189,28 @@ const ee = {
|
|
|
191
189
|
fullscreen: !1,
|
|
192
190
|
animation: !1
|
|
193
191
|
});
|
|
194
|
-
return (l, o) =>
|
|
192
|
+
return (l, o) => G((t(), i("div", {
|
|
195
193
|
"data-html2canvas-ignore": "",
|
|
196
194
|
class: "vue-ui-user-options",
|
|
197
|
-
style:
|
|
195
|
+
style: d(`z-index: ${e.zIndex}; height: 34px; position: ${k.value ? "fixed" : "absolute"}; top: 0; ${e.position === "right" ? `right:${k.value ? "12px" : "0"}` : `left:${k.value ? "12px" : "0"}`}; padding: 4px; background:transparent;`)
|
|
198
196
|
}, [
|
|
199
|
-
|
|
197
|
+
z("div", {
|
|
200
198
|
tabindex: "0",
|
|
201
|
-
title:
|
|
202
|
-
style:
|
|
203
|
-
onClick:
|
|
204
|
-
onKeypress:
|
|
199
|
+
title: v.value ? e.titles.close || "" : e.titles.open || "",
|
|
200
|
+
style: d(`width:32px; position: absolute; top: 0;${e.position === "right" ? `right: ${e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),
|
|
201
|
+
onClick: J(L, ["stop"]),
|
|
202
|
+
onKeypress: Q(L, ["enter"])
|
|
205
203
|
}, [
|
|
206
|
-
|
|
207
|
-
name:
|
|
204
|
+
R(r, {
|
|
205
|
+
name: v.value ? "close" : "menu",
|
|
208
206
|
stroke: e.color,
|
|
209
207
|
"stroke-width": 2
|
|
210
208
|
}, null, 8, ["name", "stroke"])
|
|
211
|
-
], 44,
|
|
212
|
-
|
|
213
|
-
"data-open":
|
|
214
|
-
class:
|
|
215
|
-
style:
|
|
209
|
+
], 44, _),
|
|
210
|
+
z("div", {
|
|
211
|
+
"data-open": v.value,
|
|
212
|
+
class: y({ "vue-ui-user-options-drawer": !0 }),
|
|
213
|
+
style: d(`background:${e.backgroundColor}; ${e.position === "right" ? `right: ${e.noOffset ? 0 : 4}px` : `left: ${e.noOffset ? 0 : 4}px`}`)
|
|
216
214
|
}, [
|
|
217
215
|
e.hasTooltip ? (t(), i("button", {
|
|
218
216
|
key: 0,
|
|
@@ -222,53 +220,53 @@ const ee = {
|
|
|
222
220
|
onMouseenter: o[0] || (o[0] = (u) => n.value.tooltip = !0),
|
|
223
221
|
onMouseout: o[1] || (o[1] = (u) => n.value.tooltip = !1)
|
|
224
222
|
}, [
|
|
225
|
-
l.$slots.optionTooltip ? m(l.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (t(), i(
|
|
226
|
-
|
|
223
|
+
l.$slots.optionTooltip ? m(l.$slots, "optionTooltip", { key: 0 }, void 0, !0) : (t(), i(B, { key: 1 }, [
|
|
224
|
+
O.value ? (t(), g(r, {
|
|
227
225
|
key: 0,
|
|
228
226
|
name: "tooltip",
|
|
229
227
|
stroke: e.color,
|
|
230
228
|
style: { "pointer-events": "none" }
|
|
231
|
-
}, null, 8, ["stroke"])) : (t(),
|
|
229
|
+
}, null, 8, ["stroke"])) : (t(), g(r, {
|
|
232
230
|
key: 1,
|
|
233
231
|
name: "tooltipDisabled",
|
|
234
232
|
stroke: e.color,
|
|
235
233
|
style: { "pointer-events": "none" }
|
|
236
234
|
}, null, 8, ["stroke"]))
|
|
237
235
|
], 64)),
|
|
238
|
-
|
|
236
|
+
c.value && e.titles.tooltip && !l.$slots.optionTooltip ? (t(), i("div", {
|
|
239
237
|
key: 2,
|
|
240
238
|
dir: "auto",
|
|
241
|
-
class:
|
|
242
|
-
style:
|
|
239
|
+
class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-left-visible": e.position === "left" && n.value.tooltip, "button-info-right-visible": e.position === "right" && n.value.tooltip }),
|
|
240
|
+
style: d({ background: e.backgroundColor, color: e.color })
|
|
243
241
|
}, $(e.titles.tooltip), 7)) : s("", !0)
|
|
244
242
|
], 32)) : s("", !0),
|
|
245
243
|
e.hasPdf ? (t(), i("button", {
|
|
246
244
|
key: 1,
|
|
247
245
|
tabindex: "0",
|
|
248
246
|
class: "vue-ui-user-options-button",
|
|
249
|
-
onClick:
|
|
247
|
+
onClick: h,
|
|
250
248
|
onMouseenter: o[2] || (o[2] = (u) => n.value.pdf = !0),
|
|
251
249
|
onMouseout: o[3] || (o[3] = (u) => n.value.pdf = !1)
|
|
252
250
|
}, [
|
|
253
|
-
l.$slots.optionPdf ? m(l.$slots, "optionPdf", { key: 0 }, void 0, !0) : (t(), i(
|
|
254
|
-
e.isPrinting ? (t(),
|
|
251
|
+
l.$slots.optionPdf ? m(l.$slots, "optionPdf", { key: 0 }, void 0, !0) : (t(), i(B, { key: 1 }, [
|
|
252
|
+
e.isPrinting ? (t(), g(r, {
|
|
255
253
|
key: 0,
|
|
256
254
|
name: "spin",
|
|
257
255
|
isSpin: "",
|
|
258
256
|
stroke: e.color,
|
|
259
257
|
style: { "pointer-events": "none" }
|
|
260
|
-
}, null, 8, ["stroke"])) : (t(),
|
|
258
|
+
}, null, 8, ["stroke"])) : (t(), g(r, {
|
|
261
259
|
key: 1,
|
|
262
260
|
name: "pdf",
|
|
263
261
|
stroke: e.color,
|
|
264
262
|
style: { "pointer-events": "none" }
|
|
265
263
|
}, null, 8, ["stroke"]))
|
|
266
264
|
], 64)),
|
|
267
|
-
|
|
265
|
+
c.value && e.titles.pdf && !l.$slots.optionPdf ? (t(), i("div", {
|
|
268
266
|
key: 2,
|
|
269
267
|
dir: "auto",
|
|
270
|
-
class:
|
|
271
|
-
style:
|
|
268
|
+
class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.pdf, "button-info-left-visible": e.position === "left" && n.value.pdf }),
|
|
269
|
+
style: d({ background: e.backgroundColor, color: e.color })
|
|
272
270
|
}, $(e.titles.pdf), 7)) : s("", !0)
|
|
273
271
|
], 32)) : s("", !0),
|
|
274
272
|
e.hasXls ? (t(), i("button", {
|
|
@@ -279,67 +277,67 @@ const ee = {
|
|
|
279
277
|
onMouseenter: o[4] || (o[4] = (u) => n.value.csv = !0),
|
|
280
278
|
onMouseout: o[5] || (o[5] = (u) => n.value.csv = !1)
|
|
281
279
|
}, [
|
|
282
|
-
l.$slots.optionCsv ? m(l.$slots, "optionCsv", { key: 0 }, void 0, !0) : (t(),
|
|
280
|
+
l.$slots.optionCsv ? m(l.$slots, "optionCsv", { key: 0 }, void 0, !0) : (t(), g(r, {
|
|
283
281
|
key: 1,
|
|
284
282
|
name: "excel",
|
|
285
283
|
stroke: e.color,
|
|
286
284
|
style: { "pointer-events": "none" }
|
|
287
285
|
}, null, 8, ["stroke"])),
|
|
288
|
-
|
|
286
|
+
c.value && e.titles.csv && !l.$slots.optionCsv ? (t(), i("div", {
|
|
289
287
|
key: 2,
|
|
290
288
|
dir: "auto",
|
|
291
|
-
class:
|
|
292
|
-
style:
|
|
289
|
+
class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.csv, "button-info-left-visible": e.position === "left" && n.value.csv }),
|
|
290
|
+
style: d({ background: e.backgroundColor, color: e.color })
|
|
293
291
|
}, $(e.titles.csv), 7)) : s("", !0)
|
|
294
292
|
], 32)) : s("", !0),
|
|
295
293
|
e.hasImg ? (t(), i("button", {
|
|
296
294
|
key: 3,
|
|
297
295
|
tabindex: "0",
|
|
298
296
|
class: "vue-ui-user-options-button",
|
|
299
|
-
onClick:
|
|
297
|
+
onClick: S,
|
|
300
298
|
onMouseenter: o[6] || (o[6] = (u) => n.value.img = !0),
|
|
301
299
|
onMouseout: o[7] || (o[7] = (u) => n.value.img = !1)
|
|
302
300
|
}, [
|
|
303
|
-
l.$slots.optionImg ? m(l.$slots, "optionImg", { key: 0 }, void 0, !0) : (t(), i(
|
|
304
|
-
e.isImaging ? (t(),
|
|
301
|
+
l.$slots.optionImg ? m(l.$slots, "optionImg", { key: 0 }, void 0, !0) : (t(), i(B, { key: 1 }, [
|
|
302
|
+
e.isImaging ? (t(), g(r, {
|
|
305
303
|
key: 0,
|
|
306
304
|
name: "spin",
|
|
307
305
|
isSpin: "",
|
|
308
306
|
stroke: e.color,
|
|
309
307
|
style: { "pointer-events": "none" }
|
|
310
|
-
}, null, 8, ["stroke"])) : (t(),
|
|
308
|
+
}, null, 8, ["stroke"])) : (t(), g(r, {
|
|
311
309
|
key: 1,
|
|
312
310
|
name: "image",
|
|
313
311
|
stroke: e.color,
|
|
314
312
|
style: { "pointer-events": "none" }
|
|
315
313
|
}, null, 8, ["stroke"]))
|
|
316
314
|
], 64)),
|
|
317
|
-
|
|
315
|
+
c.value && e.titles.img && !l.$slots.optionImg ? (t(), i("div", {
|
|
318
316
|
key: 2,
|
|
319
317
|
dir: "auto",
|
|
320
|
-
class:
|
|
321
|
-
style:
|
|
318
|
+
class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.img, "button-info-left-visible": e.position === "left" && n.value.img }),
|
|
319
|
+
style: d({ background: e.backgroundColor, color: e.color })
|
|
322
320
|
}, $(e.titles.img), 7)) : s("", !0)
|
|
323
321
|
], 32)) : s("", !0),
|
|
324
322
|
e.hasTable ? (t(), i("button", {
|
|
325
323
|
key: 4,
|
|
326
324
|
tabindex: "0",
|
|
327
325
|
class: "vue-ui-user-options-button",
|
|
328
|
-
onClick:
|
|
326
|
+
onClick: I,
|
|
329
327
|
onMouseenter: o[8] || (o[8] = (u) => n.value.table = !0),
|
|
330
328
|
onMouseout: o[9] || (o[9] = (u) => n.value.table = !1)
|
|
331
329
|
}, [
|
|
332
|
-
l.$slots.optionTable ? m(l.$slots, "optionTable", { key: 0 }, void 0, !0) : (t(),
|
|
330
|
+
l.$slots.optionTable ? m(l.$slots, "optionTable", { key: 0 }, void 0, !0) : (t(), g(r, {
|
|
333
331
|
key: 1,
|
|
334
|
-
name:
|
|
332
|
+
name: T.value ? "tableClose" : "tableOpen",
|
|
335
333
|
stroke: e.color,
|
|
336
334
|
style: { "pointer-events": "none" }
|
|
337
335
|
}, null, 8, ["name", "stroke"])),
|
|
338
|
-
|
|
336
|
+
c.value && e.titles.table && !l.$slots.optionTable ? (t(), i("div", {
|
|
339
337
|
key: 2,
|
|
340
338
|
dir: "auto",
|
|
341
|
-
class:
|
|
342
|
-
style:
|
|
339
|
+
class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.table, "button-info-left-visible": e.position === "left" && n.value.table }),
|
|
340
|
+
style: d({ background: e.backgroundColor, color: e.color })
|
|
343
341
|
}, $(e.titles.table), 7)) : s("", !0)
|
|
344
342
|
], 32)) : s("", !0),
|
|
345
343
|
e.hasLabel ? (t(), i("button", {
|
|
@@ -350,17 +348,17 @@ const ee = {
|
|
|
350
348
|
onMouseenter: o[10] || (o[10] = (u) => n.value.labels = !0),
|
|
351
349
|
onMouseout: o[11] || (o[11] = (u) => n.value.labels = !1)
|
|
352
350
|
}, [
|
|
353
|
-
l.$slots.optionLabels ? m(l.$slots, "optionLabels", { key: 0 }, void 0, !0) : (t(),
|
|
351
|
+
l.$slots.optionLabels ? m(l.$slots, "optionLabels", { key: 0 }, void 0, !0) : (t(), g(r, {
|
|
354
352
|
key: 1,
|
|
355
|
-
name:
|
|
353
|
+
name: E.value ? "labelClose" : "labelOpen",
|
|
356
354
|
stroke: e.color,
|
|
357
355
|
style: { "pointer-events": "none" }
|
|
358
356
|
}, null, 8, ["name", "stroke"])),
|
|
359
|
-
|
|
357
|
+
c.value && e.titles.labels && !l.$slots.optionLabels ? (t(), i("div", {
|
|
360
358
|
key: 2,
|
|
361
359
|
dir: "auto",
|
|
362
|
-
class:
|
|
363
|
-
style:
|
|
360
|
+
class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.labels, "button-info-left-visible": e.position === "left" && n.value.labels }),
|
|
361
|
+
style: d({ background: e.backgroundColor, color: e.color })
|
|
364
362
|
}, $(e.titles.labels), 7)) : s("", !0)
|
|
365
363
|
], 32)) : s("", !0),
|
|
366
364
|
e.hasSort ? (t(), i("button", {
|
|
@@ -371,17 +369,17 @@ const ee = {
|
|
|
371
369
|
onMouseenter: o[12] || (o[12] = (u) => n.value.sort = !0),
|
|
372
370
|
onMouseout: o[13] || (o[13] = (u) => n.value.sort = !1)
|
|
373
371
|
}, [
|
|
374
|
-
l.$slots.optionSort ? m(l.$slots, "optionSort", { key: 0 }, void 0, !0) : (t(),
|
|
372
|
+
l.$slots.optionSort ? m(l.$slots, "optionSort", { key: 0 }, void 0, !0) : (t(), g(r, {
|
|
375
373
|
key: 1,
|
|
376
374
|
name: "sort",
|
|
377
375
|
stroke: e.color,
|
|
378
376
|
style: { "pointer-events": "none" }
|
|
379
377
|
}, null, 8, ["stroke"])),
|
|
380
|
-
|
|
378
|
+
c.value && e.titles.sort && !l.$slots.optionSort ? (t(), i("div", {
|
|
381
379
|
key: 2,
|
|
382
380
|
dir: "auto",
|
|
383
|
-
class:
|
|
384
|
-
style:
|
|
381
|
+
class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.sort, "button-info-left-visible": e.position === "left" && n.value.sort }),
|
|
382
|
+
style: d({ background: e.backgroundColor, color: e.color })
|
|
385
383
|
}, $(e.titles.sort), 7)) : s("", !0)
|
|
386
384
|
], 32)) : s("", !0),
|
|
387
385
|
e.hasStack ? (t(), i("button", {
|
|
@@ -392,24 +390,24 @@ const ee = {
|
|
|
392
390
|
onMouseenter: o[14] || (o[14] = (u) => n.value.stack = !0),
|
|
393
391
|
onMouseout: o[15] || (o[15] = (u) => n.value.stack = !1)
|
|
394
392
|
}, [
|
|
395
|
-
l.$slots.optionStack ? m(l.$slots, "optionStack", { key: 0 }, void 0, !0) : (t(), i(
|
|
396
|
-
|
|
393
|
+
l.$slots.optionStack ? m(l.$slots, "optionStack", { key: 0 }, void 0, !0) : (t(), i(B, { key: 1 }, [
|
|
394
|
+
F.value ? (t(), g(r, {
|
|
397
395
|
key: 0,
|
|
398
396
|
name: "unstack",
|
|
399
397
|
stroke: e.color,
|
|
400
398
|
style: { "pointer-events": "none" }
|
|
401
|
-
}, null, 8, ["stroke"])) : (t(),
|
|
399
|
+
}, null, 8, ["stroke"])) : (t(), g(r, {
|
|
402
400
|
key: 1,
|
|
403
401
|
name: "stack",
|
|
404
402
|
stroke: e.color,
|
|
405
403
|
style: { "pointer-events": "none" }
|
|
406
404
|
}, null, 8, ["stroke"]))
|
|
407
405
|
], 64)),
|
|
408
|
-
|
|
406
|
+
c.value && e.titles.stack && !l.$slots.optionStack ? (t(), i("div", {
|
|
409
407
|
key: 2,
|
|
410
408
|
dir: "auto",
|
|
411
|
-
class:
|
|
412
|
-
style:
|
|
409
|
+
class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.stack, "button-info-left-visible": e.position === "left" && n.value.stack }),
|
|
410
|
+
style: d({ background: e.backgroundColor, color: e.color })
|
|
413
411
|
}, $(e.titles.stack), 7)) : s("", !0)
|
|
414
412
|
], 32)) : s("", !0),
|
|
415
413
|
e.hasFullscreen ? (t(), i("button", {
|
|
@@ -418,27 +416,27 @@ const ee = {
|
|
|
418
416
|
class: "vue-ui-user-options-button",
|
|
419
417
|
onMouseenter: o[16] || (o[16] = (u) => n.value.fullscreen = !0),
|
|
420
418
|
onMouseout: o[17] || (o[17] = (u) => n.value.fullscreen = !1),
|
|
421
|
-
onClick: o[18] || (o[18] = (u) =>
|
|
419
|
+
onClick: o[18] || (o[18] = (u) => A(k.value ? "out" : "in"))
|
|
422
420
|
}, [
|
|
423
|
-
l.$slots.optionFullscreen ? m(l.$slots, "optionFullscreen",
|
|
424
|
-
|
|
421
|
+
l.$slots.optionFullscreen ? m(l.$slots, "optionFullscreen", D(U({ key: 0 }, { toggleFullscreen: A, isFullscreen: k.value })), void 0, !0) : (t(), i(B, { key: 1 }, [
|
|
422
|
+
k.value ? (t(), g(r, {
|
|
425
423
|
key: 0,
|
|
426
424
|
name: "exitFullscreen",
|
|
427
425
|
stroke: e.color,
|
|
428
426
|
style: { "pointer-events": "none" }
|
|
429
427
|
}, null, 8, ["stroke"])) : s("", !0),
|
|
430
|
-
|
|
428
|
+
k.value ? s("", !0) : (t(), g(r, {
|
|
431
429
|
key: 1,
|
|
432
430
|
name: "fullscreen",
|
|
433
431
|
stroke: e.color,
|
|
434
432
|
style: { "pointer-events": "none" }
|
|
435
433
|
}, null, 8, ["stroke"]))
|
|
436
434
|
], 64)),
|
|
437
|
-
|
|
435
|
+
c.value && e.titles.fullscreen && !l.$slots.optionFullscreen ? (t(), i("div", {
|
|
438
436
|
key: 2,
|
|
439
437
|
dir: "auto",
|
|
440
|
-
class:
|
|
441
|
-
style:
|
|
438
|
+
class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.fullscreen, "button-info-left-visible": e.position === "left" && n.value.fullscreen }),
|
|
439
|
+
style: d({ background: e.backgroundColor, color: e.color })
|
|
442
440
|
}, $(e.titles.fullscreen), 7)) : s("", !0)
|
|
443
441
|
], 32)) : s("", !0),
|
|
444
442
|
e.hasAnimation ? (t(), i("button", {
|
|
@@ -447,81 +445,82 @@ const ee = {
|
|
|
447
445
|
class: "vue-ui-user-options-button",
|
|
448
446
|
onMouseenter: o[19] || (o[19] = (u) => n.value.animation = !0),
|
|
449
447
|
onMouseout: o[20] || (o[20] = (u) => n.value.animation = !1),
|
|
450
|
-
onClick:
|
|
448
|
+
onClick: w
|
|
451
449
|
}, [
|
|
452
|
-
l.$slots.optionAnimation ? m(l.$slots, "optionAnimation",
|
|
453
|
-
M.value ? (t(),
|
|
450
|
+
l.$slots.optionAnimation ? m(l.$slots, "optionAnimation", D(U({ key: 0 }, { toggleAnimation: w, isAnimated: M.value })), void 0, !0) : (t(), i(B, { key: 1 }, [
|
|
451
|
+
M.value ? (t(), g(r, {
|
|
454
452
|
key: 0,
|
|
455
453
|
name: "play",
|
|
456
454
|
stroke: e.color,
|
|
457
455
|
style: { "pointer-events": "none" }
|
|
458
456
|
}, null, 8, ["stroke"])) : s("", !0),
|
|
459
|
-
M.value ? s("", !0) : (t(),
|
|
457
|
+
M.value ? s("", !0) : (t(), g(r, {
|
|
460
458
|
key: 1,
|
|
461
459
|
name: "pause",
|
|
462
460
|
stroke: e.color,
|
|
463
461
|
style: { "pointer-events": "none" }
|
|
464
462
|
}, null, 8, ["stroke"]))
|
|
465
463
|
], 64)),
|
|
466
|
-
|
|
464
|
+
c.value && e.titles.fullscreen && !l.$slots.optionAnimation ? (t(), i("div", {
|
|
467
465
|
key: 2,
|
|
468
466
|
dir: "auto",
|
|
469
|
-
class:
|
|
470
|
-
style:
|
|
467
|
+
class: y({ "button-info-left": e.position === "left", "button-info-right": e.position === "right", "button-info-right-visible": e.position === "right" && n.value.animation, "button-info-left-visible": e.position === "left" && n.value.animation }),
|
|
468
|
+
style: d({ background: e.backgroundColor, color: e.color })
|
|
471
469
|
}, $(e.titles.animation), 7)) : s("", !0)
|
|
472
470
|
], 32)) : s("", !0)
|
|
473
|
-
], 12,
|
|
471
|
+
], 12, ee)
|
|
474
472
|
], 4)), [
|
|
475
|
-
[Y(
|
|
473
|
+
[Y(p), N]
|
|
476
474
|
]);
|
|
477
475
|
}
|
|
478
|
-
},
|
|
479
|
-
function
|
|
480
|
-
if (e)
|
|
481
|
-
return new Promise((B, C) => {
|
|
482
|
-
const h = document.createElement("a");
|
|
483
|
-
_(e, { scale: 2 }).then((y) => {
|
|
484
|
-
h.href = y.toDataURL(`image/${a}`), h.download = `${r}.${a}`, h.click(), h && h.remove(), B();
|
|
485
|
-
}).catch((y) => {
|
|
486
|
-
console.error("Error generating image:", y), C(y);
|
|
487
|
-
});
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
function ve({
|
|
476
|
+
}, ie = /* @__PURE__ */ Z(te, [["__scopeId", "data-v-202b6e85"]]);
|
|
477
|
+
function se({
|
|
491
478
|
elementId: e,
|
|
492
|
-
fileName:
|
|
479
|
+
fileName: f,
|
|
480
|
+
canPrint: a = !0
|
|
493
481
|
}) {
|
|
494
|
-
const
|
|
495
|
-
function
|
|
496
|
-
a.value = !0, clearTimeout(
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
482
|
+
const h = b(!1), C = b(!1), S = b(null);
|
|
483
|
+
async function T() {
|
|
484
|
+
!a || h.value || (h.value = !0, clearTimeout(S.value), S.value = setTimeout(async () => {
|
|
485
|
+
if (a)
|
|
486
|
+
try {
|
|
487
|
+
const { default: v } = await import("./pdf-B7oVat64.js");
|
|
488
|
+
await v({
|
|
489
|
+
domElement: document.getElementById(e),
|
|
490
|
+
fileName: f
|
|
491
|
+
});
|
|
492
|
+
} catch (v) {
|
|
493
|
+
console.error("Error generating PDF:", v);
|
|
494
|
+
} finally {
|
|
495
|
+
h.value = !1;
|
|
496
|
+
}
|
|
497
|
+
}, 100));
|
|
504
498
|
}
|
|
505
|
-
function
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
499
|
+
async function I() {
|
|
500
|
+
!a || C.value || (C.value = !0, clearTimeout(S.value), S.value = setTimeout(async () => {
|
|
501
|
+
if (a)
|
|
502
|
+
try {
|
|
503
|
+
const { default: v } = await import("./img-DGzWcJ4Y.js");
|
|
504
|
+
await v({
|
|
505
|
+
domElement: document.getElementById(e),
|
|
506
|
+
fileName: f,
|
|
507
|
+
format: "png"
|
|
508
|
+
});
|
|
509
|
+
} catch (v) {
|
|
510
|
+
console.error("Error generating image:", v);
|
|
511
|
+
} finally {
|
|
512
|
+
C.value = !1;
|
|
513
|
+
}
|
|
514
|
+
}, 100));
|
|
515
515
|
}
|
|
516
516
|
return {
|
|
517
|
-
generatePdf:
|
|
518
|
-
generateImage:
|
|
519
|
-
isPrinting:
|
|
520
|
-
isImaging:
|
|
517
|
+
generatePdf: T,
|
|
518
|
+
generateImage: I,
|
|
519
|
+
isPrinting: h,
|
|
520
|
+
isImaging: C
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
export {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
ve as u
|
|
524
|
+
ie as U,
|
|
525
|
+
se as u
|
|
527
526
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),s=require("./BaseIcon-B_MrASni.cjs"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),P={beforeMount(t,u){t.clickOutsideEvent=function(a){t===a.target||t.contains(a.target)||u.value(a)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},O=["title","onClick","onKeypress"],L=["data-open"],w={__name:"UserOptions",props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:"right"}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation"],setup(t,{emit:u}){const a=t;function k(){u("generatePdf")}function d(){u("generateCsv")}function v(){u("generateImage")}const g=e.ref(!1);function b(){g.value=!g.value,u("toggleTable")}const r=e.ref(!1),p=e.ref(!0);function $(){f.value=window.innerWidth>600,r.value=!r.value,r.value&&(p.value=!1)}function z(){a.isPrinting||a.isImaging||(r.value=!1)}function V(){r.value&&z()}const y=e.ref(a.isLabelActive);function N(){y.value=!y.value,u("toggleLabels")}const m=e.ref(a.isAnimation);function S(){m.value=!m.value,u("toggleAnimation")}function T(){u("toggleSort")}const B=e.ref(a.isStacked);function M(){B.value=!B.value,u("toggleStack")}const C=e.ref(a.isTooltip);function F(){C.value=!C.value,u("toggleTooltip")}const c=e.ref(!1);function h(n){a.chartElement&&(n==="in"?(c.value=!0,a.chartElement.requestFullscreen(),u("toggleFullscreen",!0)):(c.value=!1,document&&document.exitFullscreen(),u("toggleFullscreen",!1)))}function E(n){document.fullscreenElement?c.value=!0:c.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",E)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",E)});const f=e.ref(window.innerWidth>600),l=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1});return(n,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{"data-html2canvas-ignore":"",class:"vue-ui-user-options",style:e.normalizeStyle(`z-index: ${t.zIndex}; height: 34px; position: ${c.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${c.value?"12px":"0"}`:`left:${c.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:r.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:e.withModifiers($,["stop"]),onKeypress:e.withKeys($,["enter"])},[e.createVNode(s.default,{name:r.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],44,O),e.createElementVNode("div",{"data-open":r.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.noOffset?0:4}px`:`left: ${t.noOffset?0:4}px`}`)},[t.hasTooltip?(e.openBlock(),e.createElementBlock("button",{key:0,tabindex:"0",class:"vue-ui-user-options-button",onClick:F,onMouseenter:o[0]||(o[0]=i=>l.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>l.value.tooltip=!1)},[n.$slots.optionTooltip?e.renderSlot(n.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[C.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.tooltip&&!n.$slots.optionTooltip?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-left-visible":t.position==="left"&&l.value.tooltip,"button-info-right-visible":t.position==="right"&&l.value.tooltip}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.tooltip),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasPdf?(e.openBlock(),e.createElementBlock("button",{key:1,tabindex:"0",class:"vue-ui-user-options-button",onClick:k,onMouseenter:o[2]||(o[2]=i=>l.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>l.value.pdf=!1)},[n.$slots.optionPdf?e.renderSlot(n.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(s.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.pdf&&!n.$slots.optionPdf?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.pdf,"button-info-left-visible":t.position==="left"&&l.value.pdf}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.pdf),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasXls?(e.openBlock(),e.createElementBlock("button",{key:2,tabindex:"0",class:"vue-ui-user-options-button",onClick:d,onMouseenter:o[4]||(o[4]=i=>l.value.csv=!0),onMouseout:o[5]||(o[5]=i=>l.value.csv=!1)},[n.$slots.optionCsv?e.renderSlot(n.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),f.value&&t.titles.csv&&!n.$slots.optionCsv?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.csv,"button-info-left-visible":t.position==="left"&&l.value.csv}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.csv),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasImg?(e.openBlock(),e.createElementBlock("button",{key:3,tabindex:"0",class:"vue-ui-user-options-button",onClick:v,onMouseenter:o[6]||(o[6]=i=>l.value.img=!0),onMouseout:o[7]||(o[7]=i=>l.value.img=!1)},[n.$slots.optionImg?e.renderSlot(n.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(s.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.img&&!n.$slots.optionImg?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.img,"button-info-left-visible":t.position==="left"&&l.value.img}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.img),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasTable?(e.openBlock(),e.createElementBlock("button",{key:4,tabindex:"0",class:"vue-ui-user-options-button",onClick:b,onMouseenter:o[8]||(o[8]=i=>l.value.table=!0),onMouseout:o[9]||(o[9]=i=>l.value.table=!1)},[n.$slots.optionTable?e.renderSlot(n.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),f.value&&t.titles.table&&!n.$slots.optionTable?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.table,"button-info-left-visible":t.position==="left"&&l.value.table}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.table),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasLabel?(e.openBlock(),e.createElementBlock("button",{key:5,tabindex:"0",class:"vue-ui-user-options-button",onClick:N,onMouseenter:o[10]||(o[10]=i=>l.value.labels=!0),onMouseout:o[11]||(o[11]=i=>l.value.labels=!1)},[n.$slots.optionLabels?e.renderSlot(n.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:y.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),f.value&&t.titles.labels&&!n.$slots.optionLabels?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.labels,"button-info-left-visible":t.position==="left"&&l.value.labels}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.labels),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasSort?(e.openBlock(),e.createElementBlock("button",{key:6,tabindex:"0",class:"vue-ui-user-options-button",onClick:T,onMouseenter:o[12]||(o[12]=i=>l.value.sort=!0),onMouseout:o[13]||(o[13]=i=>l.value.sort=!1)},[n.$slots.optionSort?e.renderSlot(n.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),f.value&&t.titles.sort&&!n.$slots.optionSort?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.sort,"button-info-left-visible":t.position==="left"&&l.value.sort}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.sort),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasStack?(e.openBlock(),e.createElementBlock("button",{key:7,tabindex:"0",class:"vue-ui-user-options-button",onClick:M,onMouseenter:o[14]||(o[14]=i=>l.value.stack=!0),onMouseout:o[15]||(o[15]=i=>l.value.stack=!1)},[n.$slots.optionStack?e.renderSlot(n.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[B.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(s.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.stack&&!n.$slots.optionStack?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.stack,"button-info-left-visible":t.position==="left"&&l.value.stack}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.stack),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasFullscreen?(e.openBlock(),e.createElementBlock("button",{key:8,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[16]||(o[16]=i=>l.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>l.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>h(c.value?"out":"in"))},[n.$slots.optionFullscreen?e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:h,isFullscreen:c.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.fullscreen&&!n.$slots.optionFullscreen?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.fullscreen,"button-info-left-visible":t.position==="left"&&l.value.fullscreen}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.fullscreen),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnimation?(e.openBlock(),e.createElementBlock("button",{key:9,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[19]||(o[19]=i=>l.value.animation=!0),onMouseout:o[20]||(o[20]=i=>l.value.animation=!1),onClick:S},[n.$slots.optionAnimation?e.renderSlot(n.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:S,isAnimated:m.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[m.value?(e.openBlock(),e.createBlock(s.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),f.value&&t.titles.fullscreen&&!n.$slots.optionAnimation?(e.openBlock(),e.createElementBlock("div",{key:2,dir:"auto",class:e.normalizeClass({"button-info-left":t.position==="left","button-info-right":t.position==="right","button-info-right-visible":t.position==="right"&&l.value.animation,"button-info-left-visible":t.position==="left"&&l.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,L)],4)),[[e.unref(P),V]])}},A=I._export_sfc(w,[["__scopeId","data-v-202b6e85"]]);function D({elementId:t,fileName:u,canPrint:a=!0}){const k=e.ref(!1),d=e.ref(!1),v=e.ref(null);async function g(){!a||k.value||(k.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(a)try{const{default:r}=await Promise.resolve().then(()=>require("./pdf-9cRTLjY8.cjs"));await r({domElement:document.getElementById(t),fileName:u})}catch(r){console.error("Error generating PDF:",r)}finally{k.value=!1}},100))}async function b(){!a||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(a)try{const{default:r}=await Promise.resolve().then(()=>require("./img-BFCs759q.cjs"));await r({domElement:document.getElementById(t),fileName:u,format:"png"})}catch(r){console.error("Error generating image:",r)}finally{d.value=!1}},100))}return{generatePdf:g,generateImage:b,isPrinting:k,isImaging:d}}exports.UserOptions=A;exports.usePrinter=D;
|