vue-data-ui 2.6.50 → 2.6.51
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-Cj0UP9DN.cjs → Arrow-BgUU76S-.cjs} +1 -1
- package/dist/{Arrow-DgCzka34.js → Arrow-zUP7YWwK.js} +1 -1
- package/dist/{BaseIcon-BeRHKYU4.cjs → BaseIcon-C86xshge.cjs} +1 -1
- package/dist/{BaseIcon-Dug6kYBB.js → BaseIcon-CTAy5_xi.js} +1 -1
- package/dist/{ColorPicker-8EgjF14O.js → ColorPicker-Bytmrdr3.js} +3 -3
- package/dist/{ColorPicker-C-VVlvta.cjs → ColorPicker-D0HD4Quw.cjs} +1 -1
- package/dist/{DataTable-Qe7lM3JL.js → DataTable-BciZ6nvV.js} +2 -2
- package/dist/{DataTable-DtXoZKgy.cjs → DataTable-Bm_s0nuy.cjs} +1 -1
- package/dist/{Legend-lzTl1S1b.js → Legend-Cz7Cx76P.js} +2 -2
- package/dist/{Legend-CjiKxR8b.cjs → Legend-DgFKLfrI.cjs} +1 -1
- package/dist/{PackageVersion-DqsBfaeh.js → PackageVersion-o03zxIgy.js} +1 -1
- package/dist/{PackageVersion-yiiAD1cf.cjs → PackageVersion-t17AmNwO.cjs} +1 -1
- package/dist/{PenAndPaper-AvORsvqF.js → PenAndPaper-CkHrxfug.js} +3 -3
- package/dist/{PenAndPaper-Btnlb4RH.cjs → PenAndPaper-aD8jM7bo.cjs} +1 -1
- package/dist/{Shape-2KuBmTJV.cjs → Shape-CGopvwTa.cjs} +1 -1
- package/dist/{Shape-Jg6afnuk.js → Shape-D-YK0lYU.js} +1 -1
- package/dist/{Slicer-DPPVa8zE.js → Slicer-AvtKQlUL.js} +2 -2
- package/dist/{Slicer-BGrOB5Ac.cjs → Slicer-B8Egk1-K.cjs} +1 -1
- package/dist/{Title-cjYd6IYr.cjs → Title-BJ2lOafm.cjs} +1 -1
- package/dist/{Title-DPXXRQ-w.js → Title-D-dsYBke.js} +1 -1
- package/dist/{Tooltip-YBqthQ_8.cjs → Tooltip-7LYTKhzY.cjs} +1 -1
- package/dist/{Tooltip-C4H6zELy.js → Tooltip-DFPLXjvj.js} +1 -1
- package/dist/{index-BVYLM95-.cjs → index-BprEQiKM.cjs} +1 -1
- package/dist/{index-BdAppyf2.js → index-C3amwS0l.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-B3UWJnDQ.cjs → useNestedProp-Cf-JPzTa.cjs} +1 -1
- package/dist/{useNestedProp-BGSJvQb3.js → useNestedProp-D9I77VlT.js} +1 -1
- package/dist/usePanZoom-CUkkqW81.js +116 -0
- package/dist/usePanZoom-PXRi2Rwx.cjs +1 -0
- package/dist/{usePrinter-CkJDEgjQ.cjs → usePrinter-CAGQW2cC.cjs} +1 -1
- package/dist/{usePrinter-Bvq0gUmP.js → usePrinter-CUdxA1Bg.js} +1 -1
- package/dist/{vue-data-ui-CgyB5G6z.cjs → vue-data-ui-Banpw0iL.cjs} +1 -1
- package/dist/{vue-data-ui-B66itXhe.js → vue-data-ui-DH842rfS.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-kESBThJe.js → vue-ui-3d-bar-Bd6XLFya.js} +9 -9
- package/dist/{vue-ui-3d-bar-Bp1Qx_3s.cjs → vue-ui-3d-bar-CJfSnDyo.cjs} +1 -1
- package/dist/{vue-ui-accordion-Btv7fZHc.cjs → vue-ui-accordion-B-rPe8KM.cjs} +1 -1
- package/dist/{vue-ui-accordion-dAJcVBnP.js → vue-ui-accordion-BBc1ZMpG.js} +3 -3
- package/dist/{vue-ui-age-pyramid-yogLIZ0-.cjs → vue-ui-age-pyramid-BNj-4LHe.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DOf4u3G7.js → vue-ui-age-pyramid-Bn_mzS13.js} +10 -10
- package/dist/{vue-ui-annotator-DVCxXtI-.cjs → vue-ui-annotator-Ye4UmfpY.cjs} +1 -1
- package/dist/{vue-ui-annotator-CSE9-lNO.js → vue-ui-annotator-vFbCgJEZ.js} +1 -1
- package/dist/{vue-ui-bullet-C12nLt5L.cjs → vue-ui-bullet-B6KpjWl_.cjs} +1 -1
- package/dist/{vue-ui-bullet-CrO7QKNT.js → vue-ui-bullet-DyGZmH-g.js} +8 -8
- package/dist/{vue-ui-candlestick-DdwcejCS.cjs → vue-ui-candlestick-BoH-d4sf.cjs} +1 -1
- package/dist/{vue-ui-candlestick-fZNnGqnR.js → vue-ui-candlestick-DUfXOizp.js} +11 -11
- package/dist/{vue-ui-carousel-table-Be2jjnQa.cjs → vue-ui-carousel-table-Cbl6UzEH.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-D7TTErUh.js → vue-ui-carousel-table-DZzht2CZ.js} +4 -4
- package/dist/{vue-ui-chestnut-OYsNRpL_.cjs → vue-ui-chestnut-DWPp1zKx.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DXxpU3iH.js → vue-ui-chestnut-DWQumnLS.js} +8 -8
- package/dist/{vue-ui-circle-pack-CzGyZQx0.cjs → vue-ui-circle-pack-1RcCvaYs.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-i0GUh3ui.js → vue-ui-circle-pack-SLB70Z_8.js} +9 -9
- package/dist/{vue-ui-cursor-BjYOyMry.cjs → vue-ui-cursor-DMCSD6tW.cjs} +1 -1
- package/dist/{vue-ui-cursor-7vhZ073K.js → vue-ui-cursor-DqwobFdf.js} +2 -2
- package/dist/{vue-ui-dashboard-Z0ukqnTc.js → vue-ui-dashboard-BoVqjFT-.js} +2 -2
- package/dist/{vue-ui-dashboard-zYOnUnUa.cjs → vue-ui-dashboard-Cewv6xvc.cjs} +1 -1
- package/dist/{vue-ui-digits-er9gte-s.cjs → vue-ui-digits-CicHxnLg.cjs} +1 -1
- package/dist/{vue-ui-digits-CnSmR9jO.js → vue-ui-digits-CkqC9SEJ.js} +2 -2
- package/dist/{vue-ui-donut-DlBL_0yx.js → vue-ui-donut-BIJLbkro.js} +12 -12
- package/dist/{vue-ui-donut-DVg5ro7B.cjs → vue-ui-donut-D03_Yedr.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-U0GNz2fp.js → vue-ui-donut-evolution-Bu7kKtpK.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BDuXBSjv.cjs → vue-ui-donut-evolution-LqcL3OxY.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-aIYpaGN0.js → vue-ui-dumbbell-B3sbV0fk.js} +10 -10
- package/dist/{vue-ui-dumbbell-PioEuDZQ.cjs → vue-ui-dumbbell-Drrm__Nn.cjs} +1 -1
- package/dist/{vue-ui-flow-BcaSo6z0.js → vue-ui-flow-DMK3963a.js} +9 -9
- package/dist/{vue-ui-flow-BOlMAhh0.cjs → vue-ui-flow-NPMbdbtS.cjs} +1 -1
- package/dist/{vue-ui-funnel-DrkVJPw1.cjs → vue-ui-funnel-BiSRxqzO.cjs} +1 -1
- package/dist/{vue-ui-funnel-AgQn4mH5.js → vue-ui-funnel-C7EwDAdS.js} +9 -9
- package/dist/{vue-ui-galaxy-D85_jVQh.cjs → vue-ui-galaxy-CaDXpBs3.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DWSIn-eK.js → vue-ui-galaxy-Cotibz3o.js} +11 -11
- package/dist/{vue-ui-gauge-BHj3D_VH.cjs → vue-ui-gauge-DK2g4x7s.cjs} +1 -1
- package/dist/{vue-ui-gauge-8ULXCGzO.js → vue-ui-gauge-DKNwFB05.js} +7 -7
- package/dist/{vue-ui-gizmo-D1j6MDV_.js → vue-ui-gizmo-DO5PUFbp.js} +3 -3
- package/dist/{vue-ui-gizmo-CEsmiN_U.cjs → vue-ui-gizmo-DhSfekXS.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Cww1BNvU.cjs → vue-ui-heatmap-DbWoJVGe.cjs} +1 -1
- package/dist/{vue-ui-heatmap-tMQOgzTJ.js → vue-ui-heatmap-DulCLx2a.js} +10 -10
- package/dist/{vue-ui-history-plot-17Ayxmx8.js → vue-ui-history-plot-BcLWVk_q.js} +11 -11
- package/dist/{vue-ui-history-plot-CrVMrU9H.cjs → vue-ui-history-plot-H6t6DvQ_.cjs} +1 -1
- package/dist/{vue-ui-kpi-C9kltMQ9.js → vue-ui-kpi-CG43D1rb.js} +3 -3
- package/dist/{vue-ui-kpi-BALQ_M2s.cjs → vue-ui-kpi-CdnXw9hF.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-zkvcqGEg.js → vue-ui-mini-loader-CLjqXzvH.js} +2 -2
- package/dist/{vue-ui-mini-loader-DzObX7ZU.cjs → vue-ui-mini-loader-DXU3rfwQ.cjs} +1 -1
- package/dist/{vue-ui-molecule-C8d0BNOu.js → vue-ui-molecule-BYetzB_N.js} +253 -226
- package/dist/vue-ui-molecule-fuZ8vxv7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-B-I03OhG.cjs → vue-ui-mood-radar-B4mRD0GQ.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Bl-PDTeX.js → vue-ui-mood-radar-BnUc15e9.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DnuV1MXZ.cjs → vue-ui-nested-donuts-B_29kUHS.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BxTLEwZg.js → vue-ui-nested-donuts-Dk7fcRR3.js} +11 -11
- package/dist/{vue-ui-onion-ChlD0lEh.js → vue-ui-onion-BbucE7AX.js} +11 -11
- package/dist/{vue-ui-onion-jrh-OYsj.cjs → vue-ui-onion-CtI9xbLn.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DEsxCUkG.cjs → vue-ui-parallel-coordinate-plot-CFWG0onH.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DaQ5VVjw.js → vue-ui-parallel-coordinate-plot-CLIOyXQc.js} +12 -12
- package/dist/{vue-ui-quadrant-BhwxemSE.cjs → vue-ui-quadrant-BFu1K90E.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DHwHNx0L.js → vue-ui-quadrant-DinfyJBM.js} +12 -12
- package/dist/{vue-ui-quick-chart-DCKBR3yK.js → vue-ui-quick-chart-D5JhRHUd.js} +9 -9
- package/dist/{vue-ui-quick-chart-CKzMyPRh.cjs → vue-ui-quick-chart-Dp6hQbfz.cjs} +1 -1
- package/dist/{vue-ui-radar-B5llyhiL.js → vue-ui-radar-CUFZHgr3.js} +12 -12
- package/dist/{vue-ui-radar-BKa6M5Wq.cjs → vue-ui-radar-Ds39hdq4.cjs} +1 -1
- package/dist/{vue-ui-rating-ChPyKOUl.cjs → vue-ui-rating-BfqOFA-n.cjs} +1 -1
- package/dist/{vue-ui-rating-BLdhelA-.js → vue-ui-rating-D1EUcFL0.js} +2 -2
- package/dist/{vue-ui-relation-circle-CS8SHw7f.cjs → vue-ui-relation-circle-CiULD7PK.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CDhd8AAr.js → vue-ui-relation-circle-D65EImKT.js} +7 -7
- package/dist/{vue-ui-rings-bZCTJMWv.js → vue-ui-rings-9zTtxZif.js} +12 -12
- package/dist/{vue-ui-rings-DJS0iOwC.cjs → vue-ui-rings-DtMD95_q.cjs} +1 -1
- package/dist/{vue-ui-scatter-BP8fVV4q.cjs → vue-ui-scatter-DXzppvmP.cjs} +1 -1
- package/dist/{vue-ui-scatter-BKvtGb58.js → vue-ui-scatter-DsF27c6e.js} +12 -12
- package/dist/{vue-ui-screenshot-BLvYddQy.cjs → vue-ui-screenshot-C8TpXNBS.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CAciP-qg.js → vue-ui-screenshot-CQHpwksn.js} +1 -1
- package/dist/{vue-ui-skeleton-BvIz3HzY.js → vue-ui-skeleton-CrT5EE2W.js} +3 -3
- package/dist/{vue-ui-skeleton-CIPY7Xfo.cjs → vue-ui-skeleton-a_FvGOK6.cjs} +1 -1
- package/dist/{vue-ui-smiley-Dcw6DDUd.cjs → vue-ui-smiley-CpC75CYj.cjs} +1 -1
- package/dist/{vue-ui-smiley-CF97kVSw.js → vue-ui-smiley-DK8TadZl.js} +2 -2
- package/dist/{vue-ui-spark-trend-DDWZF8FE.js → vue-ui-spark-trend-BCN37BvU.js} +5 -5
- package/dist/{vue-ui-spark-trend-H77En2yP.cjs → vue-ui-spark-trend-oZCQCarV.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DS7rL1J8.js → vue-ui-sparkbar-CE8WVA2T.js} +4 -4
- package/dist/{vue-ui-sparkbar-D_J5RsQ7.cjs → vue-ui-sparkbar-CoCEXvSI.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-lyri9BYV.cjs → vue-ui-sparkgauge-DRGJ2R72.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-MSEo6cmu.js → vue-ui-sparkgauge-DoZQ6ZYY.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DZPn2dDv.js → vue-ui-sparkhistogram-Bol-aQuY.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-qNy_nXl3.cjs → vue-ui-sparkhistogram-wzpO76Dd.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DhUWmLtU.cjs → vue-ui-sparkline-BdBLfCAO.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DmMQ2SZ_.js → vue-ui-sparkline-C9FJaLay.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DgmKIPN-.js → vue-ui-sparkstackbar-CQSP1urd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-DSWq3rmC.cjs → vue-ui-sparkstackbar-DcGfGfpf.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DYOgS1Qd.js → vue-ui-stackbar-CDFfxSCS.js} +13 -13
- package/dist/{vue-ui-stackbar-2RHJInUq.cjs → vue-ui-stackbar-DZEOEvnN.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Dt2b8qR2.js → vue-ui-strip-plot-Mroaxrtl.js} +11 -11
- package/dist/{vue-ui-strip-plot-6VO97qw1.cjs → vue-ui-strip-plot-cwg3sgfW.cjs} +1 -1
- package/dist/{vue-ui-table-CUXgc62i.js → vue-ui-table-DMGZN-3h.js} +1 -1
- package/dist/{vue-ui-table-DB16XLTw.cjs → vue-ui-table-JunVPtv-.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Awh619At.cjs → vue-ui-table-heatmap-B-K-sXUr.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CCE1VZlG.js → vue-ui-table-heatmap-Cvd3LF-p.js} +4 -4
- package/dist/{vue-ui-table-sparkline-Cmmla_Dx.js → vue-ui-table-sparkline-D6LrWje8.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DYQYdZbN.cjs → vue-ui-table-sparkline-DZcJ1rQX.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DOwFD-a9.cjs → vue-ui-thermometer-61KP0jn1.cjs} +1 -1
- package/dist/{vue-ui-thermometer-C-9ZCOYE.js → vue-ui-thermometer-BSMW00bJ.js} +7 -7
- package/dist/{vue-ui-timer-BJWfxtwA.js → vue-ui-timer-B2iP7RSf.js} +5 -5
- package/dist/{vue-ui-timer-DhmCBz29.cjs → vue-ui-timer-jeD5NmuN.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DWb36mmN.js → vue-ui-tiremarks-C1WyRyfc.js} +7 -7
- package/dist/{vue-ui-tiremarks-C_fjzZx1.cjs → vue-ui-tiremarks-D2kbp6KR.cjs} +1 -1
- package/dist/{vue-ui-treemap-ksooFSp3.cjs → vue-ui-treemap-BxbeEbWT.cjs} +1 -1
- package/dist/{vue-ui-treemap-BvQ-fZ2Q.js → vue-ui-treemap-DyJ_Ath1.js} +12 -12
- package/dist/{vue-ui-vertical-bar-BX82g5XY.cjs → vue-ui-vertical-bar-C0cbPo6B.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Bx-Hgjrl.js → vue-ui-vertical-bar-yzivBWJt.js} +12 -12
- package/dist/{vue-ui-waffle-XBYHZddH.js → vue-ui-waffle-BByWdS7G.js} +12 -12
- package/dist/{vue-ui-waffle-6bPlupZ9.cjs → vue-ui-waffle-CF3e6ft5.cjs} +1 -1
- package/dist/{vue-ui-wheel-BAGyz9kV.cjs → vue-ui-wheel-D7R1yr52.cjs} +1 -1
- package/dist/{vue-ui-wheel-B3opMdjn.js → vue-ui-wheel-iDX0u5LU.js} +7 -7
- package/dist/vue-ui-word-cloud-BPQFUEFg.js +628 -0
- package/dist/vue-ui-word-cloud-CSnrXzqi.cjs +1 -0
- package/dist/{vue-ui-xy-DCMV8GPA.js → vue-ui-xy-DmwPJ7Bc.js} +14 -14
- package/dist/{vue-ui-xy-canvas-DDf9P1hu.js → vue-ui-xy-canvas-CmXVo7kC.js} +12 -12
- package/dist/{vue-ui-xy-canvas-DKhymJYh.cjs → vue-ui-xy-canvas-aZQ9FHGI.cjs} +1 -1
- package/dist/{vue-ui-xy-aSB6TWYQ.cjs → vue-ui-xy-uJqJ5M1Y.cjs} +1 -1
- package/package.json +1 -1
- package/dist/usePanZoom-BI9ALAYy.cjs +0 -1
- package/dist/usePanZoom-D76xCBni.js +0 -97
- package/dist/vue-ui-molecule-mDLCkrh8.cjs +0 -1
- package/dist/vue-ui-word-cloud-1Lsf7r8k.cjs +0 -1
- package/dist/vue-ui-word-cloud-DJGCUigw.js +0 -571
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-BprEQiKM.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;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { ref as h, computed as O, onMounted as Q, onUnmounted as U, watchEffect as W } from "vue";
|
|
2
|
+
function J(f, s = { x: 0, y: 0, width: 100, height: 100 }, q = 1, z) {
|
|
3
|
+
const o = h({ ...s }), l = h(1), E = h(!1), y = h({ x: 0, y: 0 }), x = h(0), D = h(null), L = h(!1), k = O(() => o.value.x !== s.x || o.value.y !== s.y || o.value.width !== s.width || o.value.height !== s.height);
|
|
4
|
+
let v = { x: 0, y: 0 }, F = null, g = null;
|
|
5
|
+
function M(e) {
|
|
6
|
+
if (e.length < 2) return 0;
|
|
7
|
+
const t = e[0].clientX - e[1].clientX, n = e[0].clientY - e[1].clientY;
|
|
8
|
+
return Math.sqrt(t * t + n * n);
|
|
9
|
+
}
|
|
10
|
+
function d(e) {
|
|
11
|
+
var a;
|
|
12
|
+
const t = f.value;
|
|
13
|
+
if (!t) return { x: 0, y: 0 };
|
|
14
|
+
const n = t.createSVGPoint();
|
|
15
|
+
n.x = e.clientX, n.y = e.clientY;
|
|
16
|
+
const u = (a = t.getScreenCTM()) == null ? void 0 : a.inverse();
|
|
17
|
+
return u ? n.matrixTransform(u) : { x: 0, y: 0 };
|
|
18
|
+
}
|
|
19
|
+
function P(e) {
|
|
20
|
+
E.value = !0;
|
|
21
|
+
const t = d(e.touches ? e.touches[0] : e);
|
|
22
|
+
y.value = { x: t.x, y: t.y }, v = { x: 0, y: 0 };
|
|
23
|
+
}
|
|
24
|
+
function S(e) {
|
|
25
|
+
if (!E.value) return;
|
|
26
|
+
const t = d(e.touches ? e.touches[0] : e);
|
|
27
|
+
let n = t.x - y.value.x, u = t.y - y.value.y;
|
|
28
|
+
Math.abs(n) < 0.3 && Math.abs(u) < 0.3 || (v.x = n * 0.8 + v.x * 0.2, v.y = u * 0.8 + v.y * 0.2, y.value = t, F || (F = requestAnimationFrame(C)));
|
|
29
|
+
}
|
|
30
|
+
function C() {
|
|
31
|
+
o.value.x -= v.x, o.value.y -= v.y, F = null;
|
|
32
|
+
}
|
|
33
|
+
function m() {
|
|
34
|
+
E.value = !1;
|
|
35
|
+
}
|
|
36
|
+
function G(e = !1) {
|
|
37
|
+
if (!e) {
|
|
38
|
+
o.value = { ...s }, l.value = 1;
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const t = { ...o.value }, n = l.value, u = 300;
|
|
42
|
+
let a = null;
|
|
43
|
+
function r(i) {
|
|
44
|
+
a || (a = i);
|
|
45
|
+
const c = Math.min((i - a) / u, 1);
|
|
46
|
+
o.value = {
|
|
47
|
+
x: t.x + (s.x - t.x) * c,
|
|
48
|
+
y: t.y + (s.y - t.y) * c,
|
|
49
|
+
width: t.width + (s.width - t.width) * c,
|
|
50
|
+
height: t.height + (s.height - t.height) * c
|
|
51
|
+
}, l.value = n + (1 - n) * c, c < 1 ? requestAnimationFrame(r) : (o.value = { ...s }, l.value = 1);
|
|
52
|
+
}
|
|
53
|
+
requestAnimationFrame(r);
|
|
54
|
+
}
|
|
55
|
+
function X(e) {
|
|
56
|
+
e.preventDefault();
|
|
57
|
+
const t = e.deltaY > 0 ? 0.9 : 1.1;
|
|
58
|
+
w(t, d(e));
|
|
59
|
+
}
|
|
60
|
+
function A(e) {
|
|
61
|
+
e.preventDefault();
|
|
62
|
+
const t = d(e), n = 1.02 * (1 + q / 100);
|
|
63
|
+
H(n, t);
|
|
64
|
+
}
|
|
65
|
+
function H(e, t) {
|
|
66
|
+
g && cancelAnimationFrame(g);
|
|
67
|
+
let n = l.value, u = n * e, a = 0;
|
|
68
|
+
const r = () => {
|
|
69
|
+
a += 0.02;
|
|
70
|
+
let i = n + (u - n) * I(a);
|
|
71
|
+
if (a >= 1) {
|
|
72
|
+
l.value = u, g = null;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
w(i / n, t), g = requestAnimationFrame(r);
|
|
76
|
+
};
|
|
77
|
+
r();
|
|
78
|
+
}
|
|
79
|
+
const I = (e) => e < 0.5 ? 2 * e * e : -1 + (4 - 2 * e) * e;
|
|
80
|
+
function w(e, t) {
|
|
81
|
+
const n = l.value * e, u = n / l.value, a = o.value.width / u, r = o.value.height / u, i = (t.x - o.value.x) * (1 - 1 / u), c = (t.y - o.value.y) * (1 - 1 / u);
|
|
82
|
+
o.value.x += i, o.value.y += c, o.value.width = a, o.value.height = r, l.value = n;
|
|
83
|
+
}
|
|
84
|
+
function T(e) {
|
|
85
|
+
e.touches.length === 2 ? (L.value = !0, x.value = M(e.touches), D.value = { ...o.value }) : (e.preventDefault(), P(e));
|
|
86
|
+
}
|
|
87
|
+
function Z(e) {
|
|
88
|
+
if (L.value && e.touches.length === 2) {
|
|
89
|
+
e.preventDefault();
|
|
90
|
+
const t = M(e.touches);
|
|
91
|
+
if (x.value) {
|
|
92
|
+
const n = t / x.value, a = f.value.getBoundingClientRect(), r = (e.touches[0].clientX + e.touches[1].clientX) / 2 - a.left, i = (e.touches[0].clientY + e.touches[1].clientY) / 2 - a.top, c = d({ clientX: r + a.left, clientY: i + a.top });
|
|
93
|
+
o.value = { ...D.value }, w(n, c);
|
|
94
|
+
}
|
|
95
|
+
} else
|
|
96
|
+
e.preventDefault(), S(e);
|
|
97
|
+
}
|
|
98
|
+
function p(e) {
|
|
99
|
+
e.touches.length < 2 && (L.value = !1), m();
|
|
100
|
+
}
|
|
101
|
+
Q(b), U(Y);
|
|
102
|
+
function b() {
|
|
103
|
+
const e = f.value;
|
|
104
|
+
e && (e.addEventListener("mousedown", P), e.addEventListener("mousemove", S), e.addEventListener("mouseup", m), e.addEventListener("mouseleave", m), e.addEventListener("wheel", X, { passive: !1 }), e.addEventListener("dblclick", A), e.addEventListener("touchstart", T, { passive: !1 }), e.addEventListener("touchmove", Z, { passive: !1 }), e.addEventListener("touchend", p), e.addEventListener("touchcancel", p));
|
|
105
|
+
}
|
|
106
|
+
function Y() {
|
|
107
|
+
const e = f.value;
|
|
108
|
+
e && (e.removeEventListener("mousedown", P), e.removeEventListener("mousemove", S), e.removeEventListener("mouseup", m), e.removeEventListener("mouseleave", m), e.removeEventListener("wheel", X), e.removeEventListener("dblclick", A), e.removeEventListener("touchstart", T), e.removeEventListener("touchmove", Z), e.removeEventListener("touchend", p), e.removeEventListener("touchcancel", p));
|
|
109
|
+
}
|
|
110
|
+
return W(() => (z.value ? b() : Y(), () => {
|
|
111
|
+
Y();
|
|
112
|
+
})), { viewBox: o, resetZoom: G, isZoom: k };
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
J as u
|
|
116
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("vue");function O(f,s={x:0,y:0,width:100,height:100},b=1,z){const o=c.ref({...s}),r=c.ref(1),E=c.ref(!1),y=c.ref({x:0,y:0}),x=c.ref(0),D=c.ref(null),L=c.ref(!1),k=c.computed(()=>o.value.x!==s.x||o.value.y!==s.y||o.value.width!==s.width||o.value.height!==s.height);let h={x:0,y:0},P=null,g=null;function M(e){if(e.length<2)return 0;const t=e[0].clientX-e[1].clientX,n=e[0].clientY-e[1].clientY;return Math.sqrt(t*t+n*n)}function d(e){var a;const t=f.value;if(!t)return{x:0,y:0};const n=t.createSVGPoint();n.x=e.clientX,n.y=e.clientY;const u=(a=t.getScreenCTM())==null?void 0:a.inverse();return u?n.matrixTransform(u):{x:0,y:0}}function F(e){E.value=!0;const t=d(e.touches?e.touches[0]:e);y.value={x:t.x,y:t.y},h={x:0,y:0}}function S(e){if(!E.value)return;const t=d(e.touches?e.touches[0]:e);let n=t.x-y.value.x,u=t.y-y.value.y;Math.abs(n)<.3&&Math.abs(u)<.3||(h.x=n*.8+h.x*.2,h.y=u*.8+h.y*.2,y.value=t,P||(P=requestAnimationFrame(C)))}function C(){o.value.x-=h.x,o.value.y-=h.y,P=null}function m(){E.value=!1}function G(e=!1){if(!e){o.value={...s},r.value=1;return}const t={...o.value},n=r.value,u=300;let a=null;function i(v){a||(a=v);const l=Math.min((v-a)/u,1);o.value={x:t.x+(s.x-t.x)*l,y:t.y+(s.y-t.y)*l,width:t.width+(s.width-t.width)*l,height:t.height+(s.height-t.height)*l},r.value=n+(1-n)*l,l<1?requestAnimationFrame(i):(o.value={...s},r.value=1)}requestAnimationFrame(i)}function X(e){e.preventDefault();const t=e.deltaY>0?.9:1.1;w(t,d(e))}function Z(e){e.preventDefault();const t=d(e),n=1.02*(1+b/100);H(n,t)}function H(e,t){g&&cancelAnimationFrame(g);let n=r.value,u=n*e,a=0;const i=()=>{a+=.02;let v=n+(u-n)*I(a);if(a>=1){r.value=u,g=null;return}w(v/n,t),g=requestAnimationFrame(i)};i()}const I=e=>e<.5?2*e*e:-1+(4-2*e)*e;function w(e,t){const n=r.value*e,u=n/r.value,a=o.value.width/u,i=o.value.height/u,v=(t.x-o.value.x)*(1-1/u),l=(t.y-o.value.y)*(1-1/u);o.value.x+=v,o.value.y+=l,o.value.width=a,o.value.height=i,r.value=n}function q(e){e.touches.length===2?(L.value=!0,x.value=M(e.touches),D.value={...o.value}):(e.preventDefault(),F(e))}function A(e){if(L.value&&e.touches.length===2){e.preventDefault();const t=M(e.touches);if(x.value){const n=t/x.value,a=f.value.getBoundingClientRect(),i=(e.touches[0].clientX+e.touches[1].clientX)/2-a.left,v=(e.touches[0].clientY+e.touches[1].clientY)/2-a.top,l=d({clientX:i+a.left,clientY:v+a.top});o.value={...D.value},w(n,l)}}else e.preventDefault(),S(e)}function p(e){e.touches.length<2&&(L.value=!1),m()}c.onMounted(T),c.onUnmounted(Y);function T(){const e=f.value;e&&(e.addEventListener("mousedown",F),e.addEventListener("mousemove",S),e.addEventListener("mouseup",m),e.addEventListener("mouseleave",m),e.addEventListener("wheel",X,{passive:!1}),e.addEventListener("dblclick",Z),e.addEventListener("touchstart",q,{passive:!1}),e.addEventListener("touchmove",A,{passive:!1}),e.addEventListener("touchend",p),e.addEventListener("touchcancel",p))}function Y(){const e=f.value;e&&(e.removeEventListener("mousedown",F),e.removeEventListener("mousemove",S),e.removeEventListener("mouseup",m),e.removeEventListener("mouseleave",m),e.removeEventListener("wheel",X),e.removeEventListener("dblclick",Z),e.removeEventListener("touchstart",q),e.removeEventListener("touchmove",A),e.removeEventListener("touchend",p),e.removeEventListener("touchcancel",p))}return c.watchEffect(()=>(z.value?T():Y(),()=>{Y()})),{viewBox:o,resetZoom:G,isZoom:k}}exports.usePanZoom=O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=require("./BaseIcon-BeRHKYU4.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A={beforeMount(t,k){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||k.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},L=["title"],w=["data-open"],X={__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"},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation","toggleAnnotator"],setup(t,{emit:k}){const s=t,r=k;function d(){r("generatePdf")}function m(){r("generateCsv")}function v(){r("generateImage")}const g=e.ref(!1);function B(){g.value=!g.value,r("toggleTable")}const u=e.ref(!1),M=e.ref(!0);function h(){c.value=window.innerWidth>600,u.value=!u.value,u.value&&(M.value=!1)}function T(){s.isPrinting||s.isImaging||(u.value=!1)}function F(){u.value&&T()}const C=e.ref(s.isLabelActive);function I(){C.value=!C.value,r("toggleLabels")}const b=e.ref(s.isAnimation);function E(){b.value=!b.value,r("toggleAnimation")}const y=e.computed({get:()=>s.isAnnotation,set:l=>l});function z(){y.value=!y.value,r("toggleAnnotator")}function P(){r("toggleSort")}const $=e.ref(s.isStacked);function p(){$.value=!$.value,r("toggleStack")}const S=e.ref(s.isTooltip);function O(){S.value=!S.value,r("toggleTooltip")}const f=e.ref(!1);function N(l){s.chartElement&&(l==="in"?(f.value=!0,s.chartElement.requestFullscreen(),r("toggleFullscreen",!0)):(f.value=!1,document&&document.exitFullscreen(),r("toggleFullscreen",!1)))}function V(l){document.fullscreenElement?f.value=!0:f.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",V)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",V)});const c=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1});return(l,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: ${f.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${f.value?"12px":"0"}`:`left:${f.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:u.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.offsetX?t.offsetX: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(h,["stop"]),onKeypress:e.withKeys(h,["enter"])},[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:u.value,color:t.color})),()=>[e.createVNode(a.default,{name:u.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],!0)],44,L),e.createElementVNode("div",{"data-open":u.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.offsetX?t.offsetX: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:O,onMouseenter:o[0]||(o[0]=i=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[S.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.tooltip&&!l.$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"&&n.value.tooltip,"button-info-right-visible":t.position==="right"&&n.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:d,onMouseenter:o[2]||(o[2]=i=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.pdf&&!l.$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"&&n.value.pdf,"button-info-left-visible":t.position==="left"&&n.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:m,onMouseenter:o[4]||(o[4]=i=>n.value.csv=!0),onMouseout:o[5]||(o[5]=i=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.csv&&!l.$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"&&n.value.csv,"button-info-left-visible":t.position==="left"&&n.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=>n.value.img=!0),onMouseout:o[7]||(o[7]=i=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.img&&!l.$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"&&n.value.img,"button-info-left-visible":t.position==="left"&&n.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=>n.value.table=!0),onMouseout:o[9]||(o[9]=i=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.table&&!l.$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"&&n.value.table,"button-info-left-visible":t.position==="left"&&n.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:I,onMouseenter:o[10]||(o[10]=i=>n.value.labels=!0),onMouseout:o[11]||(o[11]=i=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:C.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.labels&&!l.$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"&&n.value.labels,"button-info-left-visible":t.position==="left"&&n.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:P,onMouseenter:o[12]||(o[12]=i=>n.value.sort=!0),onMouseout:o[13]||(o[13]=i=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.sort&&!l.$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"&&n.value.sort,"button-info-left-visible":t.position==="left"&&n.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:p,onMouseenter:o[14]||(o[14]=i=>n.value.stack=!0),onMouseout:o[15]||(o[15]=i=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.stack&&!l.$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"&&n.value.stack,"button-info-left-visible":t.position==="left"&&n.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=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>N(f.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:N,isFullscreen:f.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$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"&&n.value.fullscreen,"button-info-left-visible":t.position==="left"&&n.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=>n.value.animation=!0),onMouseout:o[20]||(o[20]=i=>n.value.animation=!1),onClick:E},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:E,isAnimated:b.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$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"&&n.value.animation,"button-info-left-visible":t.position==="left"&&n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnnotator?(e.openBlock(),e.createElementBlock("button",{key:10,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[21]||(o[21]=i=>n.value.annotator=!0),onMouseout:o[22]||(o[22]=i=>n.value.annotator=!1),onClick:z},[l.$slots.optionAnnotator?e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.mergeProps({key:0},{toggleAnnotator:z,isAnnotator:y.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[y.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"annotatorDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"annotator",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.annotator&&!l.$slots.optionAnnotator?(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"&&n.value.annotator,"button-info-left-visible":t.position==="left"&&n.value.annotator}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.annotator),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,w)],4)),[[e.unref(A),F]])}},q=D._export_sfc(X,[["__scopeId","data-v-0926bd71"]]);function U({elementId:t,fileName:k,canPrint:s=!0,options:r}){const d=e.ref(!1),m=e.ref(!1),v=e.ref(null);async function g(){!s||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./pdf-BpXLKlRx.cjs"));await u({domElement:document.getElementById(t),fileName:k,options:r})}catch(u){console.error("Error generating PDF:",u)}finally{d.value=!1}},100))}async function B(){!s||m.value||(m.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./img-D6uvziU0.cjs"));await u({domElement:document.getElementById(t),fileName:k,format:"png",options:r})}catch(u){console.error("Error generating image:",u)}finally{m.value=!1}},100))}return{generatePdf:g,generateImage:B,isPrinting:d,isImaging:m}}exports.UserOptions=q;exports.usePrinter=U;exports.vClickOutside=A;
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./BaseIcon-C86xshge.cjs"),D=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A={beforeMount(t,k){t.clickOutsideEvent=function(s){t===s.target||t.contains(s.target)||k.value(s)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}},L=["title"],w=["data-open"],X={__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"},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1}},emits:["generatePdf","generateCsv","generateImage","toggleTable","toggleLabels","toggleSort","toggleFullscreen","toggleStack","toggleTooltip","toggleAnimation","toggleAnnotator"],setup(t,{emit:k}){const s=t,r=k;function d(){r("generatePdf")}function m(){r("generateCsv")}function v(){r("generateImage")}const g=e.ref(!1);function B(){g.value=!g.value,r("toggleTable")}const u=e.ref(!1),M=e.ref(!0);function h(){c.value=window.innerWidth>600,u.value=!u.value,u.value&&(M.value=!1)}function T(){s.isPrinting||s.isImaging||(u.value=!1)}function F(){u.value&&T()}const C=e.ref(s.isLabelActive);function I(){C.value=!C.value,r("toggleLabels")}const b=e.ref(s.isAnimation);function E(){b.value=!b.value,r("toggleAnimation")}const y=e.computed({get:()=>s.isAnnotation,set:l=>l});function z(){y.value=!y.value,r("toggleAnnotator")}function P(){r("toggleSort")}const $=e.ref(s.isStacked);function p(){$.value=!$.value,r("toggleStack")}const S=e.ref(s.isTooltip);function O(){S.value=!S.value,r("toggleTooltip")}const f=e.ref(!1);function N(l){s.chartElement&&(l==="in"?(f.value=!0,s.chartElement.requestFullscreen(),r("toggleFullscreen",!0)):(f.value=!1,document&&document.exitFullscreen(),r("toggleFullscreen",!1)))}function V(l){document.fullscreenElement?f.value=!0:f.value=!1}e.onMounted(()=>{document.addEventListener("fullscreenchange",V)}),e.onBeforeUnmount(()=>{document.removeEventListener("fullscreenchange",V)});const c=e.ref(window.innerWidth>600),n=e.ref({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1});return(l,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: ${f.value?"fixed":"absolute"}; top: 0; ${t.position==="right"?`right:${f.value?"12px":"0"}`:`left:${f.value?"12px":"0"}`}; padding: 4px; background:transparent;`)},[e.createElementVNode("div",{tabindex:"0",title:u.value?t.titles.close||"":t.titles.open||"",style:e.normalizeStyle(`width:32px; position: absolute; top: 0;${t.position==="right"?`right: ${t.offsetX?t.offsetX: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(h,["stop"]),onKeypress:e.withKeys(h,["enter"])},[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:u.value,color:t.color})),()=>[e.createVNode(a.default,{name:u.value?"close":"menu",stroke:t.color,"stroke-width":2},null,8,["name","stroke"])],!0)],44,L),e.createElementVNode("div",{"data-open":u.value,class:e.normalizeClass({"vue-ui-user-options-drawer":!0}),style:e.normalizeStyle(`background:${t.backgroundColor}; ${t.position==="right"?`right: ${t.offsetX?t.offsetX: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:O,onMouseenter:o[0]||(o[0]=i=>n.value.tooltip=!0),onMouseout:o[1]||(o[1]=i=>n.value.tooltip=!1)},[l.$slots.optionTooltip?e.renderSlot(l.$slots,"optionTooltip",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[S.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"tooltip",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"tooltipDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.tooltip&&!l.$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"&&n.value.tooltip,"button-info-right-visible":t.position==="right"&&n.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:d,onMouseenter:o[2]||(o[2]=i=>n.value.pdf=!0),onMouseout:o[3]||(o[3]=i=>n.value.pdf=!1)},[l.$slots.optionPdf?e.renderSlot(l.$slots,"optionPdf",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPrinting?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pdf",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.pdf&&!l.$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"&&n.value.pdf,"button-info-left-visible":t.position==="left"&&n.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:m,onMouseenter:o[4]||(o[4]=i=>n.value.csv=!0),onMouseout:o[5]||(o[5]=i=>n.value.csv=!1)},[l.$slots.optionCsv?e.renderSlot(l.$slots,"optionCsv",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"excel",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.csv&&!l.$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"&&n.value.csv,"button-info-left-visible":t.position==="left"&&n.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=>n.value.img=!0),onMouseout:o[7]||(o[7]=i=>n.value.img=!1)},[l.$slots.optionImg?e.renderSlot(l.$slots,"optionImg",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isImaging?(e.openBlock(),e.createBlock(a.default,{key:0,name:"spin",isSpin:"",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"image",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.img&&!l.$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"&&n.value.img,"button-info-left-visible":t.position==="left"&&n.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=>n.value.table=!0),onMouseout:o[9]||(o[9]=i=>n.value.table=!1)},[l.$slots.optionTable?e.renderSlot(l.$slots,"optionTable",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:g.value?"tableClose":"tableOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.table&&!l.$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"&&n.value.table,"button-info-left-visible":t.position==="left"&&n.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:I,onMouseenter:o[10]||(o[10]=i=>n.value.labels=!0),onMouseout:o[11]||(o[11]=i=>n.value.labels=!1)},[l.$slots.optionLabels?e.renderSlot(l.$slots,"optionLabels",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:C.value?"labelClose":"labelOpen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["name","stroke"])),c.value&&t.titles.labels&&!l.$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"&&n.value.labels,"button-info-left-visible":t.position==="left"&&n.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:P,onMouseenter:o[12]||(o[12]=i=>n.value.sort=!0),onMouseout:o[13]||(o[13]=i=>n.value.sort=!1)},[l.$slots.optionSort?e.renderSlot(l.$slots,"optionSort",{key:0},void 0,!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"sort",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])),c.value&&t.titles.sort&&!l.$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"&&n.value.sort,"button-info-left-visible":t.position==="left"&&n.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:p,onMouseenter:o[14]||(o[14]=i=>n.value.stack=!0),onMouseout:o[15]||(o[15]=i=>n.value.stack=!1)},[l.$slots.optionStack?e.renderSlot(l.$slots,"optionStack",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[$.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"unstack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):(e.openBlock(),e.createBlock(a.default,{key:1,name:"stack",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.stack&&!l.$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"&&n.value.stack,"button-info-left-visible":t.position==="left"&&n.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=>n.value.fullscreen=!0),onMouseout:o[17]||(o[17]=i=>n.value.fullscreen=!1),onClick:o[18]||(o[18]=i=>N(f.value?"out":"in"))},[l.$slots.optionFullscreen?e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.mergeProps({key:0},{toggleFullscreen:N,isFullscreen:f.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[f.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"exitFullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"fullscreen",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$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"&&n.value.fullscreen,"button-info-left-visible":t.position==="left"&&n.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=>n.value.animation=!0),onMouseout:o[20]||(o[20]=i=>n.value.animation=!1),onClick:E},[l.$slots.optionAnimation?e.renderSlot(l.$slots,"optionAnimation",e.normalizeProps(e.mergeProps({key:0},{toggleAnimation:E,isAnimated:b.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"play",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"pause",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.fullscreen&&!l.$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"&&n.value.animation,"button-info-left-visible":t.position==="left"&&n.value.animation}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.animation),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0),t.hasAnnotator?(e.openBlock(),e.createElementBlock("button",{key:10,tabindex:"0",class:"vue-ui-user-options-button",onMouseenter:o[21]||(o[21]=i=>n.value.annotator=!0),onMouseout:o[22]||(o[22]=i=>n.value.annotator=!1),onClick:z},[l.$slots.optionAnnotator?e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.mergeProps({key:0},{toggleAnnotator:z,isAnnotator:y.value})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[y.value?(e.openBlock(),e.createBlock(a.default,{key:0,name:"annotatorDisabled",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(a.default,{key:1,name:"annotator",stroke:t.color,style:{"pointer-events":"none"}},null,8,["stroke"]))],64)),c.value&&t.titles.annotator&&!l.$slots.optionAnnotator?(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"&&n.value.annotator,"button-info-left-visible":t.position==="left"&&n.value.annotator}),style:e.normalizeStyle({background:t.backgroundColor,color:t.color})},e.toDisplayString(t.titles.annotator),7)):e.createCommentVNode("",!0)],32)):e.createCommentVNode("",!0)],12,w)],4)),[[e.unref(A),F]])}},q=D._export_sfc(X,[["__scopeId","data-v-0926bd71"]]);function U({elementId:t,fileName:k,canPrint:s=!0,options:r}){const d=e.ref(!1),m=e.ref(!1),v=e.ref(null);async function g(){!s||d.value||(d.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./pdf-BpXLKlRx.cjs"));await u({domElement:document.getElementById(t),fileName:k,options:r})}catch(u){console.error("Error generating PDF:",u)}finally{d.value=!1}},100))}async function B(){!s||m.value||(m.value=!0,clearTimeout(v.value),v.value=setTimeout(async()=>{if(s)try{const{default:u}=await Promise.resolve().then(()=>require("./img-D6uvziU0.cjs"));await u({domElement:document.getElementById(t),fileName:k,format:"png",options:r})}catch(u){console.error("Error generating image:",u)}finally{m.value=!1}},100))}return{generatePdf:g,generateImage:B,isPrinting:d,isImaging:m}}exports.UserOptions=q;exports.usePrinter=U;exports.vClickOutside=A;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as b, computed as G, onMounted as J, onBeforeUnmount as Q, withDirectives as Y, createElementBlock as i, openBlock as t, normalizeStyle as d, createElementVNode as V, withKeys as Z, withModifiers as p, renderSlot as c, normalizeProps as E, guardReactiveProps as _, createVNode as ee, normalizeClass as y, createCommentVNode as u, Fragment as h, createBlock as f, toDisplayString as $, mergeProps as P, unref as te } from "vue";
|
|
2
|
-
import a from "./BaseIcon-
|
|
2
|
+
import a from "./BaseIcon-CTAy5_xi.js";
|
|
3
3
|
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const ne = {
|
|
5
5
|
beforeMount(e, C) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./BaseIcon-BeRHKYU4.cjs"),K={style:{width:"36px"}},Y={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap","toggleAnnotator"],setup(E,{expose:O,emit:_}){const i=E,{component:J,dataset:M,config:G}=e.toRefs(i),l={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-Bp1Qx_3s.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-yogLIZ0-.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-DVCxXtI-.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-DdwcejCS.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-OYsNRpL_.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-zYOnUnUa.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-er9gte-s.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-DVg5ro7B.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-BDuXBSjv.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-D85_jVQh.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-BHj3D_VH.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-Cww1BNvU.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-BALQ_M2s.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-DzObX7ZU.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-mDLCkrh8.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-B-I03OhG.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-DnuV1MXZ.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-jrh-OYsj.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-BhwxemSE.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-BKa6M5Wq.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-ChPyKOUl.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-CS8SHw7f.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-DJS0iOwC.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-BP8fVV4q.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-BLvYddQy.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-CIPY7Xfo.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-Dcw6DDUd.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-D_J5RsQ7.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-lyri9BYV.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-qNy_nXl3.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-DhUWmLtU.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-DSWq3rmC.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-DB16XLTw.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-DYQYdZbN.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-DOwFD-a9.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-C_fjzZx1.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-ksooFSp3.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-BX82g5XY.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-6bPlupZ9.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-BAGyz9kV.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-aSB6TWYQ.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-Awh619At.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-Btv7fZHc.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-CKzMyPRh.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-BjYOyMry.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-H77En2yP.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-6VO97qw1.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-PioEuDZQ.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-1Lsf7r8k.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-DKhymJYh.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-BOlMAhh0.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-DEsxCUkG.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-DhmCBz29.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-Be2jjnQa.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-CEsmiN_U.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-2RHJInUq.cjs"))),VueUiBullet:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-C12nLt5L.cjs"))),VueUiFunnel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-DrkVJPw1.cjs"))),VueUiHistoryPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-CrVMrU9H.cjs"))),VueUiCirclePack:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-CzGyZQx0.cjs")))},$={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiScreenshot:["config"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"],VueUiGizmo:["config","dataset"],VueUiStackbar:["config","dataset"],VueUiBullet:["config","dataset"],VueUiFunnel:["config","dataset"],VueUiHistoryPlot:["config","dataset"],VueUiCirclePack:["config","dataset"]},W=_,c=e.computed(()=>!l[i.component]),X=e.computed(()=>l[i.component]||null),o=e.ref(null),j=e.computed(()=>{const t=$[i.component]||[],n={};return t.includes("config")&&(n.config=G.value),t.includes("dataset")&&(n.dataset=M.value),n}),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),k=e.ref(()=>null),S=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),B=e.ref(()=>null),I=e.ref(()=>null),N=e.ref(()=>null),x=e.ref(()=>null),F=e.ref(()=>null),H=e.ref(()=>null);e.onMounted(()=>{c.value&&console.error(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./BaseIcon-C86xshge.cjs"),K={style:{width:"36px"}},Y={__name:"vue-data-ui",props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},emits:["selectLegend","selectDatapoint","toggleOpenState","saveAnnotations","selectRoot","selectBranch","selectNut","change","selectPlot","selectSide","rate","postImage","hoverIndex","selectX","toggleLock","toggleTooltip","start","play","pause","reset","restart","lap","toggleAnnotator"],setup(E,{expose:O,emit:_}){const i=E,{component:J,dataset:M,config:G}=e.toRefs(i),l={VueUi3dBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-3d-bar-CJfSnDyo.cjs"))),VueUiAgePyramid:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-age-pyramid-BNj-4LHe.cjs"))),VueUiAnnotator:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-annotator-Ye4UmfpY.cjs"))),VueUiCandlestick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-candlestick-BoH-d4sf.cjs"))),VueUiChestnut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-chestnut-DWPp1zKx.cjs"))),VueUiDashboard:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dashboard-Cewv6xvc.cjs"))),VueUiDigits:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-digits-CicHxnLg.cjs"))),VueUiDonut:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-D03_Yedr.cjs"))),VueUiDonutEvolution:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-donut-evolution-LqcL3OxY.cjs"))),VueUiGalaxy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-galaxy-CaDXpBs3.cjs"))),VueUiGauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gauge-DK2g4x7s.cjs"))),VueUiHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-heatmap-DbWoJVGe.cjs"))),VueUiKpi:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-kpi-CdnXw9hF.cjs"))),VueUiMiniLoader:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mini-loader-DXU3rfwQ.cjs"))),VueUiMolecule:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-molecule-fuZ8vxv7.cjs"))),VueUiMoodRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-mood-radar-B4mRD0GQ.cjs"))),VueUiNestedDonuts:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-nested-donuts-B_29kUHS.cjs"))),VueUiOnion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-onion-CtI9xbLn.cjs"))),VueUiQuadrant:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quadrant-BFu1K90E.cjs"))),VueUiRadar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-radar-Ds39hdq4.cjs"))),VueUiRating:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rating-BfqOFA-n.cjs"))),VueUiRelationCircle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-relation-circle-CiULD7PK.cjs"))),VueUiRings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-rings-DtMD95_q.cjs"))),VueUiScatter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-scatter-DXzppvmP.cjs"))),VueUiScreenshot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-screenshot-C8TpXNBS.cjs"))),VueUiSkeleton:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-skeleton-a_FvGOK6.cjs"))),VueUiSmiley:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-smiley-CpC75CYj.cjs"))),VueUiSparkbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkbar-CoCEXvSI.cjs"))),VueUiSparkgauge:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkgauge-DRGJ2R72.cjs"))),VueUiSparkHistogram:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkhistogram-wzpO76Dd.cjs"))),VueUiSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkline-BdBLfCAO.cjs"))),VueUiSparkStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-sparkstackbar-DcGfGfpf.cjs"))),VueUiTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-JunVPtv-.cjs"))),VueUiTableSparkline:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-sparkline-DZcJ1rQX.cjs"))),VueUiThermometer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-thermometer-61KP0jn1.cjs"))),VueUiTiremarks:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-tiremarks-D2kbp6KR.cjs"))),VueUiTreemap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-treemap-BxbeEbWT.cjs"))),VueUiVerticalBar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-vertical-bar-C0cbPo6B.cjs"))),VueUiWaffle:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-waffle-CF3e6ft5.cjs"))),VueUiWheel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-wheel-D7R1yr52.cjs"))),VueUiXy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-uJqJ5M1Y.cjs"))),VueUiTableHeatmap:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-table-heatmap-B-K-sXUr.cjs"))),VueUiAccordion:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-accordion-B-rPe8KM.cjs"))),VueUiQuickChart:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-quick-chart-Dp6hQbfz.cjs"))),VueUiCursor:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-cursor-DMCSD6tW.cjs"))),VueUiSparkTrend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-spark-trend-oZCQCarV.cjs"))),VueUiStripPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-strip-plot-cwg3sgfW.cjs"))),VueUiDumbbell:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-dumbbell-Drrm__Nn.cjs"))),VueUiWordCloud:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-word-cloud-CSnrXzqi.cjs"))),VueUiXyCanvas:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-xy-canvas-aZQ9FHGI.cjs"))),VueUiFlow:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-flow-NPMbdbtS.cjs"))),VueUiParallelCoordinatePlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-parallel-coordinate-plot-CFWG0onH.cjs"))),VueUiTimer:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-timer-jeD5NmuN.cjs"))),VueUiCarouselTable:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-carousel-table-Cbl6UzEH.cjs"))),VueUiGizmo:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-gizmo-DhSfekXS.cjs"))),VueUiStackbar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-stackbar-DZEOEvnN.cjs"))),VueUiBullet:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-bullet-B6KpjWl_.cjs"))),VueUiFunnel:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-funnel-BiSRxqzO.cjs"))),VueUiHistoryPlot:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-history-plot-H6t6DvQ_.cjs"))),VueUiCirclePack:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./vue-ui-circle-pack-1RcCvaYs.cjs")))},$={VueUi3dBar:["config","dataset"],VueUiAgePyramid:["config","dataset"],VueUiAnnotator:["config","dataset"],VueUiCandlestick:["config","dataset"],VueUiChestnut:["config","dataset"],VueUiDashboard:["config","dataset"],VueUiDigits:["config","dataset"],VueUiDonut:["config","dataset"],VueUiDonutEvolution:["config","dataset"],VueUiGalaxy:["config","dataset"],VueUiGauge:["config","dataset"],VueUiHeatmap:["config","dataset"],VueUiKpi:["config","dataset"],VueUiMiniLoader:["config"],VueUiMolecule:["config","dataset"],VueUiMoodRadar:["config","dataset"],VueUiNestedDonuts:["config","dataset"],VueUiOnion:["config","dataset"],VueUiQuadrant:["config","dataset"],VueUiRadar:["config","dataset"],VueUiRating:["config","dataset"],VueUiRelationCircle:["config","dataset"],VueUiRings:["config","dataset"],VueUiScatter:["config","dataset"],VueUiScreenshot:["config"],VueUiSkeleton:["config"],VueUiSmiley:["config","dataset"],VueUiSparkbar:["config","dataset"],VueUiSparkgauge:["config","dataset"],VueUiSparkHistogram:["config","dataset"],VueUiSparkline:["config","dataset"],VueUiSparkStackbar:["config","dataset"],VueUiTable:["config","dataset"],VueUiTableSparkline:["config","dataset"],VueUiThermometer:["config","dataset"],VueUiTiremarks:["config","dataset"],VueUiTreemap:["config","dataset"],VueUiVerticalBar:["config","dataset"],VueUiWaffle:["config","dataset"],VueUiWheel:["config","dataset"],VueUiXy:["config","dataset"],VueUiTableHeatmap:["config","dataset"],VueUiAccordion:["config"],VueUiQuickChart:["config","dataset"],VueUiCursor:["config"],VueUiSparkTrend:["config","dataset"],VueUiStripPlot:["config","dataset"],VueUiDumbbell:["config","dataset"],VueUiWordCloud:["config","dataset"],VueUiXyCanvas:["config","dataset"],VueUiFlow:["config","dataset"],VueUiParallelCoordinatePlot:["config","dataset"],VueUiTimer:["config"],VueUiCarouselTable:["config","dataset"],VueUiGizmo:["config","dataset"],VueUiStackbar:["config","dataset"],VueUiBullet:["config","dataset"],VueUiFunnel:["config","dataset"],VueUiHistoryPlot:["config","dataset"],VueUiCirclePack:["config","dataset"]},W=_,c=e.computed(()=>!l[i.component]),X=e.computed(()=>l[i.component]||null),o=e.ref(null),j=e.computed(()=>{const t=$[i.component]||[],n={};return t.includes("config")&&(n.config=G.value),t.includes("dataset")&&(n.dataset=M.value),n}),m=e.ref(()=>null),d=e.ref(()=>null),g=e.ref(()=>null),p=e.ref(()=>null),f=e.ref(()=>null),V=e.ref(()=>null),v=e.ref(()=>null),U=e.ref(()=>null),h=e.ref(()=>null),y=e.ref(()=>null),C=e.ref(()=>null),A=e.ref(()=>null),P=e.ref(()=>null),q=e.ref(()=>null),k=e.ref(()=>null),S=e.ref(()=>null),b=e.ref(()=>null),T=e.ref(()=>null),D=e.ref(()=>null),B=e.ref(()=>null),I=e.ref(()=>null),N=e.ref(()=>null),x=e.ref(()=>null),F=e.ref(()=>null),H=e.ref(()=>null);e.onMounted(()=>{c.value&&console.error(`
|
|
2
2
|
|
|
3
3
|
Vue Data UI exception:
|
|
4
4
|
The provided component "${i.component}" does not exist. Check the spelling.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs as tt, defineAsyncComponent as e, computed as s, ref as o, onMounted as et, watch as M, shallowReactive as ot, createElementBlock as it, createBlock as m, openBlock as c, normalizeStyle as at, createElementVNode as nt, createTextVNode as rt, createCommentVNode as $, toDisplayString as lt, resolveDynamicComponent as ut, mergeProps as st, toHandlers as ct, createSlots as gt, renderList as pt, withCtx as mt, renderSlot as dt, normalizeProps as Vt, guardReactiveProps as Ut } from "vue";
|
|
2
|
-
import W from "./BaseIcon-
|
|
2
|
+
import W from "./BaseIcon-CTAy5_xi.js";
|
|
3
3
|
const ft = { style: { width: "36px" } }, ht = {
|
|
4
4
|
__name: "vue-data-ui",
|
|
5
5
|
props: {
|
|
@@ -34,66 +34,66 @@ const ft = { style: { width: "36px" } }, ht = {
|
|
|
34
34
|
],
|
|
35
35
|
setup(X, { expose: Q, emit: j }) {
|
|
36
36
|
const n = X, { component: vt, dataset: z, config: K } = tt(n), g = {
|
|
37
|
-
VueUi3dBar: e(() => import("./vue-ui-3d-bar-
|
|
38
|
-
VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-
|
|
39
|
-
VueUiAnnotator: e(() => import("./vue-ui-annotator-
|
|
40
|
-
VueUiCandlestick: e(() => import("./vue-ui-candlestick-
|
|
41
|
-
VueUiChestnut: e(() => import("./vue-ui-chestnut-
|
|
42
|
-
VueUiDashboard: e(() => import("./vue-ui-dashboard-
|
|
43
|
-
VueUiDigits: e(() => import("./vue-ui-digits-
|
|
44
|
-
VueUiDonut: e(() => import("./vue-ui-donut-
|
|
45
|
-
VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-
|
|
46
|
-
VueUiGalaxy: e(() => import("./vue-ui-galaxy-
|
|
47
|
-
VueUiGauge: e(() => import("./vue-ui-gauge-
|
|
48
|
-
VueUiHeatmap: e(() => import("./vue-ui-heatmap-
|
|
49
|
-
VueUiKpi: e(() => import("./vue-ui-kpi-
|
|
50
|
-
VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-
|
|
51
|
-
VueUiMolecule: e(() => import("./vue-ui-molecule-
|
|
52
|
-
VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-
|
|
53
|
-
VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-
|
|
54
|
-
VueUiOnion: e(() => import("./vue-ui-onion-
|
|
55
|
-
VueUiQuadrant: e(() => import("./vue-ui-quadrant-
|
|
56
|
-
VueUiRadar: e(() => import("./vue-ui-radar-
|
|
57
|
-
VueUiRating: e(() => import("./vue-ui-rating-
|
|
58
|
-
VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-
|
|
59
|
-
VueUiRings: e(() => import("./vue-ui-rings-
|
|
60
|
-
VueUiScatter: e(() => import("./vue-ui-scatter-
|
|
61
|
-
VueUiScreenshot: e(() => import("./vue-ui-screenshot-
|
|
62
|
-
VueUiSkeleton: e(() => import("./vue-ui-skeleton-
|
|
63
|
-
VueUiSmiley: e(() => import("./vue-ui-smiley-
|
|
64
|
-
VueUiSparkbar: e(() => import("./vue-ui-sparkbar-
|
|
65
|
-
VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-
|
|
66
|
-
VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-
|
|
67
|
-
VueUiSparkline: e(() => import("./vue-ui-sparkline-
|
|
68
|
-
VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-
|
|
69
|
-
VueUiTable: e(() => import("./vue-ui-table-
|
|
70
|
-
VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-
|
|
71
|
-
VueUiThermometer: e(() => import("./vue-ui-thermometer-
|
|
72
|
-
VueUiTiremarks: e(() => import("./vue-ui-tiremarks-
|
|
73
|
-
VueUiTreemap: e(() => import("./vue-ui-treemap-
|
|
74
|
-
VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-
|
|
75
|
-
VueUiWaffle: e(() => import("./vue-ui-waffle-
|
|
76
|
-
VueUiWheel: e(() => import("./vue-ui-wheel-
|
|
77
|
-
VueUiXy: e(() => import("./vue-ui-xy-
|
|
78
|
-
VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-
|
|
79
|
-
VueUiAccordion: e(() => import("./vue-ui-accordion-
|
|
80
|
-
VueUiQuickChart: e(() => import("./vue-ui-quick-chart-
|
|
81
|
-
VueUiCursor: e(() => import("./vue-ui-cursor-
|
|
82
|
-
VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-
|
|
83
|
-
VueUiStripPlot: e(() => import("./vue-ui-strip-plot-
|
|
84
|
-
VueUiDumbbell: e(() => import("./vue-ui-dumbbell-
|
|
85
|
-
VueUiWordCloud: e(() => import("./vue-ui-word-cloud-
|
|
86
|
-
VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-
|
|
87
|
-
VueUiFlow: e(() => import("./vue-ui-flow-
|
|
88
|
-
VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-
|
|
89
|
-
VueUiTimer: e(() => import("./vue-ui-timer-
|
|
90
|
-
VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-
|
|
91
|
-
VueUiGizmo: e(() => import("./vue-ui-gizmo-
|
|
92
|
-
VueUiStackbar: e(() => import("./vue-ui-stackbar-
|
|
93
|
-
VueUiBullet: e(() => import("./vue-ui-bullet-
|
|
94
|
-
VueUiFunnel: e(() => import("./vue-ui-funnel-
|
|
95
|
-
VueUiHistoryPlot: e(() => import("./vue-ui-history-plot-
|
|
96
|
-
VueUiCirclePack: e(() => import("./vue-ui-circle-pack-
|
|
37
|
+
VueUi3dBar: e(() => import("./vue-ui-3d-bar-Bd6XLFya.js")),
|
|
38
|
+
VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-Bn_mzS13.js")),
|
|
39
|
+
VueUiAnnotator: e(() => import("./vue-ui-annotator-vFbCgJEZ.js")),
|
|
40
|
+
VueUiCandlestick: e(() => import("./vue-ui-candlestick-DUfXOizp.js")),
|
|
41
|
+
VueUiChestnut: e(() => import("./vue-ui-chestnut-DWQumnLS.js")),
|
|
42
|
+
VueUiDashboard: e(() => import("./vue-ui-dashboard-BoVqjFT-.js")),
|
|
43
|
+
VueUiDigits: e(() => import("./vue-ui-digits-CkqC9SEJ.js")),
|
|
44
|
+
VueUiDonut: e(() => import("./vue-ui-donut-BIJLbkro.js")),
|
|
45
|
+
VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-Bu7kKtpK.js")),
|
|
46
|
+
VueUiGalaxy: e(() => import("./vue-ui-galaxy-Cotibz3o.js")),
|
|
47
|
+
VueUiGauge: e(() => import("./vue-ui-gauge-DKNwFB05.js")),
|
|
48
|
+
VueUiHeatmap: e(() => import("./vue-ui-heatmap-DulCLx2a.js")),
|
|
49
|
+
VueUiKpi: e(() => import("./vue-ui-kpi-CG43D1rb.js")),
|
|
50
|
+
VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-CLjqXzvH.js")),
|
|
51
|
+
VueUiMolecule: e(() => import("./vue-ui-molecule-BYetzB_N.js")),
|
|
52
|
+
VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-BnUc15e9.js")),
|
|
53
|
+
VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-Dk7fcRR3.js")),
|
|
54
|
+
VueUiOnion: e(() => import("./vue-ui-onion-BbucE7AX.js")),
|
|
55
|
+
VueUiQuadrant: e(() => import("./vue-ui-quadrant-DinfyJBM.js")),
|
|
56
|
+
VueUiRadar: e(() => import("./vue-ui-radar-CUFZHgr3.js")),
|
|
57
|
+
VueUiRating: e(() => import("./vue-ui-rating-D1EUcFL0.js")),
|
|
58
|
+
VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-D65EImKT.js")),
|
|
59
|
+
VueUiRings: e(() => import("./vue-ui-rings-9zTtxZif.js")),
|
|
60
|
+
VueUiScatter: e(() => import("./vue-ui-scatter-DsF27c6e.js")),
|
|
61
|
+
VueUiScreenshot: e(() => import("./vue-ui-screenshot-CQHpwksn.js")),
|
|
62
|
+
VueUiSkeleton: e(() => import("./vue-ui-skeleton-CrT5EE2W.js")),
|
|
63
|
+
VueUiSmiley: e(() => import("./vue-ui-smiley-DK8TadZl.js")),
|
|
64
|
+
VueUiSparkbar: e(() => import("./vue-ui-sparkbar-CE8WVA2T.js")),
|
|
65
|
+
VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-DoZQ6ZYY.js")),
|
|
66
|
+
VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-Bol-aQuY.js")),
|
|
67
|
+
VueUiSparkline: e(() => import("./vue-ui-sparkline-C9FJaLay.js")),
|
|
68
|
+
VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-CQSP1urd.js")),
|
|
69
|
+
VueUiTable: e(() => import("./vue-ui-table-DMGZN-3h.js")),
|
|
70
|
+
VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-D6LrWje8.js")),
|
|
71
|
+
VueUiThermometer: e(() => import("./vue-ui-thermometer-BSMW00bJ.js")),
|
|
72
|
+
VueUiTiremarks: e(() => import("./vue-ui-tiremarks-C1WyRyfc.js")),
|
|
73
|
+
VueUiTreemap: e(() => import("./vue-ui-treemap-DyJ_Ath1.js")),
|
|
74
|
+
VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-yzivBWJt.js")),
|
|
75
|
+
VueUiWaffle: e(() => import("./vue-ui-waffle-BByWdS7G.js")),
|
|
76
|
+
VueUiWheel: e(() => import("./vue-ui-wheel-iDX0u5LU.js")),
|
|
77
|
+
VueUiXy: e(() => import("./vue-ui-xy-DmwPJ7Bc.js")),
|
|
78
|
+
VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-Cvd3LF-p.js")),
|
|
79
|
+
VueUiAccordion: e(() => import("./vue-ui-accordion-BBc1ZMpG.js")),
|
|
80
|
+
VueUiQuickChart: e(() => import("./vue-ui-quick-chart-D5JhRHUd.js")),
|
|
81
|
+
VueUiCursor: e(() => import("./vue-ui-cursor-DqwobFdf.js")),
|
|
82
|
+
VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-BCN37BvU.js")),
|
|
83
|
+
VueUiStripPlot: e(() => import("./vue-ui-strip-plot-Mroaxrtl.js")),
|
|
84
|
+
VueUiDumbbell: e(() => import("./vue-ui-dumbbell-B3sbV0fk.js")),
|
|
85
|
+
VueUiWordCloud: e(() => import("./vue-ui-word-cloud-BPQFUEFg.js")),
|
|
86
|
+
VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-CmXVo7kC.js")),
|
|
87
|
+
VueUiFlow: e(() => import("./vue-ui-flow-DMK3963a.js")),
|
|
88
|
+
VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-CLIOyXQc.js")),
|
|
89
|
+
VueUiTimer: e(() => import("./vue-ui-timer-B2iP7RSf.js")),
|
|
90
|
+
VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-DZzht2CZ.js")),
|
|
91
|
+
VueUiGizmo: e(() => import("./vue-ui-gizmo-DO5PUFbp.js")),
|
|
92
|
+
VueUiStackbar: e(() => import("./vue-ui-stackbar-CDFfxSCS.js")),
|
|
93
|
+
VueUiBullet: e(() => import("./vue-ui-bullet-DyGZmH-g.js")),
|
|
94
|
+
VueUiFunnel: e(() => import("./vue-ui-funnel-C7EwDAdS.js")),
|
|
95
|
+
VueUiHistoryPlot: e(() => import("./vue-ui-history-plot-BcLWVk_q.js")),
|
|
96
|
+
VueUiCirclePack: e(() => import("./vue-ui-circle-pack-SLB70Z_8.js"))
|
|
97
97
|
}, q = {
|
|
98
98
|
VueUi3dBar: ["config", "dataset"],
|
|
99
99
|
VueUiAgePyramid: ["config", "dataset"],
|
package/dist/vue-data-ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-BprEQiKM.cjs");exports.Arrow=e.Arrow;exports.VueDataUi=e.VueDataUi;exports.VueUi3dBar=e.VueUi3dBar;exports.VueUiAccordion=e.VueUiAccordion;exports.VueUiAgePyramid=e.VueUiAgePyramid;exports.VueUiAnnotator=e.VueUiAnnotator;exports.VueUiBullet=e.VueUiBullet;exports.VueUiCandlestick=e.VueUiCandlestick;exports.VueUiCarouselTable=e.VueUiCarouselTable;exports.VueUiChestnut=e.VueUiChestnut;exports.VueUiCirclePack=e.VueUiCirclePack;exports.VueUiCursor=e.VueUiCursor;exports.VueUiDashboard=e.VueUiDashboard;exports.VueUiDigits=e.VueUiDigits;exports.VueUiDonut=e.VueUiDonut;exports.VueUiDonutEvolution=e.VueUiDonutEvolution;exports.VueUiDumbbell=e.VueUiDumbbell;exports.VueUiFlow=e.VueUiFlow;exports.VueUiFunnel=e.VueUiFunnel;exports.VueUiGalaxy=e.VueUiGalaxy;exports.VueUiGauge=e.VueUiGauge;exports.VueUiGizmo=e.VueUiGizmo;exports.VueUiHeatmap=e.VueUiHeatmap;exports.VueUiHistoryPlot=e.VueUiHistoryPlot;exports.VueUiIcon=e.VueUiIcon;exports.VueUiKpi=e.VueUiKpi;exports.VueUiMiniLoader=e.VueUiMiniLoader;exports.VueUiMolecule=e.VueUiMolecule;exports.VueUiMoodRadar=e.VueUiMoodRadar;exports.VueUiNestedDonuts=e.VueUiNestedDonuts;exports.VueUiOnion=e.VueUiOnion;exports.VueUiParallelCoordinatePlot=e.VueUiParallelCoordinatePlot;exports.VueUiPattern=e.VueUiPattern;exports.VueUiQuadrant=e.VueUiQuadrant;exports.VueUiQuickChart=e.VueUiQuickChart;exports.VueUiRadar=e.VueUiRadar;exports.VueUiRating=e.VueUiRating;exports.VueUiRelationCircle=e.VueUiRelationCircle;exports.VueUiRings=e.VueUiRings;exports.VueUiScatter=e.VueUiScatter;exports.VueUiScreenshot=e.VueUiScreenshot;exports.VueUiSkeleton=e.VueUiSkeleton;exports.VueUiSmiley=e.VueUiSmiley;exports.VueUiSparkHistogram=e.VueUiSparkHistogram;exports.VueUiSparkStackbar=e.VueUiSparkStackbar;exports.VueUiSparkTrend=e.VueUiSparkTrend;exports.VueUiSparkbar=e.VueUiSparkbar;exports.VueUiSparkgauge=e.VueUiSparkgauge;exports.VueUiSparkline=e.VueUiSparkline;exports.VueUiStackbar=e.VueUiStackbar;exports.VueUiStripPlot=e.VueUiStripPlot;exports.VueUiTable=e.VueUiTable;exports.VueUiTableHeatmap=e.VueUiTableHeatmap;exports.VueUiTableSparkline=e.VueUiTableSparkline;exports.VueUiThermometer=e.VueUiThermometer;exports.VueUiTimer=e.VueUiTimer;exports.VueUiTiremarks=e.VueUiTiremarks;exports.VueUiTreemap=e.VueUiTreemap;exports.VueUiVerticalBar=e.VueUiVerticalBar;exports.VueUiWaffle=e.VueUiWaffle;exports.VueUiWheel=e.VueUiWheel;exports.VueUiWordCloud=e.VueUiWordCloud;exports.VueUiXy=e.VueUiXy;exports.VueUiXyCanvas=e.VueUiXyCanvas;exports.abbreviate=e.abbreviate;exports.createSmoothPath=e.createSmoothPath;exports.createStraightPath=e.createStraightPath;exports.createTSpans=e.createTSpans;exports.createWordCloudDatasetFromPlainText=e.createWordCloudDatasetFromPlainText;exports.darkenColor=e.darkenColor;exports.getPalette=e.getPalette;exports.getThemeConfig=e.getThemeConfig;exports.getVueDataUiConfig=e.getVueDataUiConfig;exports.lightenColor=e.lightenColor;exports.shiftColorHue=e.shiftColorHue;
|
package/dist/vue-data-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { ae as s, af as u, ag as V, ah as U, ai as r, aj as t, b9 as o, ak as l, b6 as n, al as b, bd as c, am as d, an as S, ao as m, ap as g, aq as C, ar as k, as as p, ba as h, at as T, au as P, b7 as D, av as f, bb as y, aw as H, ax as R, ay as A, az as W, aA as v, aB as x, aC as B, aD as F, bc as G, aE as M, aF as w, aG as L, aH as Q, aI as X, aJ as j, aK as z, aL as E, aM as I, aN as K, aO as N, aP as O, aQ as q, aR as J, aS as Y, aT as Z, b8 as _, aU as $, aV as aa, aW as ea, aX as ia, aY as sa, aZ as ua, a_ as Va, a$ as Ua, b0 as ra, b1 as ta, b2 as oa, b3 as la, b4 as na, b5 as ba, L as ca, T as da, S as Sa, a9 as ma, a6 as ga, be as Ca, bf as ka, bg as pa, bh as ha, bi as Ta, bj as Pa } from "./index-
|
|
2
|
+
import { ae as s, af as u, ag as V, ah as U, ai as r, aj as t, b9 as o, ak as l, b6 as n, al as b, bd as c, am as d, an as S, ao as m, ap as g, aq as C, ar as k, as as p, ba as h, at as T, au as P, b7 as D, av as f, bb as y, aw as H, ax as R, ay as A, az as W, aA as v, aB as x, aC as B, aD as F, bc as G, aE as M, aF as w, aG as L, aH as Q, aI as X, aJ as j, aK as z, aL as E, aM as I, aN as K, aO as N, aP as O, aQ as q, aR as J, aS as Y, aT as Z, b8 as _, aU as $, aV as aa, aW as ea, aX as ia, aY as sa, aZ as ua, a_ as Va, a$ as Ua, b0 as ra, b1 as ta, b2 as oa, b3 as la, b4 as na, b5 as ba, L as ca, T as da, S as Sa, a9 as ma, a6 as ga, be as Ca, bf as ka, bg as pa, bh as ha, bi as Ta, bj as Pa } from "./index-C3amwS0l.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Arrow,
|
|
5
5
|
u as VueDataUi,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed as S, ref as T, watch as He, onMounted as Re, createElementBlock as i, openBlock as n, unref as d, normalizeStyle as D, normalizeClass as Me, createBlock as G, createCommentVNode as y, createSlots as Ze, withCtx as O, renderSlot as j, normalizeProps as Y, guardReactiveProps as J, createVNode as qe, createElementVNode as u, Fragment as _, renderList as m, toDisplayString as P, mergeProps as Pe, createTextVNode as Xe, nextTick as Ye } from "vue";
|
|
2
|
-
import { u as Je, c as je, t as Ke, p as K, a as Qe, b as et, d as tt, o as lt, e as Q, g as re, l as U, m as Te, f as z, X as ot, s as g, h as ee, i as te, j as Se, k as le, n as A, q as st, r as at } from "./index-
|
|
3
|
-
import { _ as nt } from "./Title-
|
|
4
|
-
import { u as rt, U as ut } from "./usePrinter-
|
|
5
|
-
import it from "./vue-ui-skeleton-
|
|
6
|
-
import { D as dt } from "./DataTable-
|
|
7
|
-
import ct from "./vue-ui-accordion-
|
|
8
|
-
import { u as Oe } from "./useNestedProp-
|
|
9
|
-
import { _ as ht } from "./PackageVersion-
|
|
10
|
-
import { P as vt } from "./PenAndPaper-
|
|
2
|
+
import { u as Je, c as je, t as Ke, p as K, a as Qe, b as et, d as tt, o as lt, e as Q, g as re, l as U, m as Te, f as z, X as ot, s as g, h as ee, i as te, j as Se, k as le, n as A, q as st, r as at } from "./index-C3amwS0l.js";
|
|
3
|
+
import { _ as nt } from "./Title-D-dsYBke.js";
|
|
4
|
+
import { u as rt, U as ut } from "./usePrinter-CUdxA1Bg.js";
|
|
5
|
+
import it from "./vue-ui-skeleton-CrT5EE2W.js";
|
|
6
|
+
import { D as dt } from "./DataTable-BciZ6nvV.js";
|
|
7
|
+
import ct from "./vue-ui-accordion-BBc1ZMpG.js";
|
|
8
|
+
import { u as Oe } from "./useNestedProp-D9I77VlT.js";
|
|
9
|
+
import { _ as ht } from "./PackageVersion-o03zxIgy.js";
|
|
10
|
+
import { P as vt } from "./PenAndPaper-CkHrxfug.js";
|
|
11
11
|
import { u as ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
12
12
|
import { u as pt } from "./useChartAccessibility-BWojgys7.js";
|
|
13
13
|
import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BprEQiKM.cjs"),me=require("./Title-BJ2lOafm.cjs"),oe=require("./usePrinter-CAGQW2cC.cjs"),ye=require("./vue-ui-skeleton-a_FvGOK6.cjs"),ge=require("./DataTable-Bm_s0nuy.cjs"),$e=require("./vue-ui-accordion-B-rPe8KM.cjs"),ne=require("./useNestedProp-Cf-JPzTa.cjs"),_e=require("./PackageVersion-t17AmNwO.cjs"),be=require("./PenAndPaper-aD8jM7bo.cjs"),Be=require("./useUserOptionState-BgepsfED.cjs"),xe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],we={key:1,style:"width:100%;background:transparent"},Ne=["xmlns","viewBox"],Ve=["width","height"],Fe=["id"],Se=["stop-color"],Me=["stop-color"],Pe=["id"],Oe=["stop-color"],Le=["stop-color"],De=["id"],Te=["stop-color"],ze=["stop-color"],je=["id"],Ae=["stop-color"],Ie=["stop-color"],We=["stop-color"],Ge={key:1},He=["id"],qe=["stop-color"],Ue=["stop-color"],Re=["id"],Xe=["stop-color"],Ze=["stop-color"],Ye=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["id"],et=["x","y","font-size","font-weight","fill"],tt=["x","y"],lt=["d","stroke"],ot=["d","stroke"],nt={key:4},rt={key:0},at=["stroke-dasharray","d","stroke","stroke-width"],st=["stroke-dasharray","d","stroke","stroke-width"],ut=["stroke-dasharray","d","stroke","stroke-width"],it=["stroke-dasharray","d","stroke","stroke-width"],ct={key:1},dt=["d","stroke","stroke-width","fill"],ht=["d","stroke","stroke-width","fill"],vt=["d","stroke","stroke-width","fill"],pt={key:2},ft=["d","fill","onMouseenter","onClick"],kt=["d","fill","onMouseenter","onClick"],mt=["d","fill","onMouseenter","onClick"],yt=["d","onMouseenter","onClick"],gt=["d"],$t=["d","stroke"],_t=["onClick"],bt=["stroke","d"],Bt=["cx","cy","fill","stroke"],xt=["x","y","width","height"],Ct={key:1},Et=["d","stroke"],wt=["d","fill","stroke"],Nt=["id"],Vt=["stop-color"],Ft=["stop-color"],St=["cx","cy","fill"],Mt=["cx","cy","fill"],Pt={key:0},Ot=["text-anchor","x","y","fill","font-size"],Lt=["text-anchor","x","y","fill","font-size"],Dt={key:2},Tt=["d","fill","stroke"],zt={key:5},jt={key:0},At=["stroke-dasharray","d","stroke","stroke-width"],It=["stroke-dasharray","d","stroke","stroke-width"],Wt=["stroke-dasharray","d","stroke","stroke-width"],Gt=["stroke-dasharray","d","stroke","stroke-width"],Ht=["d","stroke","stroke-width","fill"],qt=["d","stroke","stroke-width","fill"],Ut={key:1},Rt=["onClick"],Xt=["id"],Zt=["stop-color"],Yt=["stop-color"],Jt=["id"],Kt=["stop-color"],Qt=["stop-color"],el=["stop-color"],tl=["stop-color"],ll=["stop-color"],ol=["onMouseenter","onClick","d","fill"],nl=["onMouseenter","onClick","d"],rl=["onMouseenter","onClick","d","fill"],al=["onClick"],sl=["stroke","d"],ul=["cx","cy","fill","stroke"],il=["x","y","width","height"],cl={key:1},dl=["d","stroke"],hl=["d","fill","stroke"],vl=["id"],pl=["stop-color"],fl=["stop-color"],kl=["cx","cy","fill"],ml=["cx","cy","fill"],yl={key:0},gl=["text-anchor","x","y","fill","font-size"],$l=["text-anchor","x","y","fill","font-size"],_l={key:2},bl=["d","fill","stroke"],Bl={key:4,class:"vue-data-ui-watermark"},xl={key:6,ref:"source",dir:"auto"},Cl=["innerHTML"],El={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(re,{expose:ae,emit:se}){const{vue_ui_3d_bar:ue}=s.useConfig(),f=re,F=se,S=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),k=e.ref(s.createUid()),ie=e.ref(null),z=e.ref(null),x=e.ref(!1),j=e.ref(0),A=e.ref(0),l=e.computed({get:()=>H(),set:a=>a}),{userOptionsVisible:O,setUserOptionsVisibility:I,keepUserOptionState:W}=Be.useUserOptionState({config:l.value}),{svgRef:G}=xe.useChartAccessibility({config:l.value.style.chart.title});function H(){const a=ne.useNestedProp({userConfig:f.config,defaultConfig:ue});return a.theme?{...ne.useNestedProp({userConfig:s.themes.vue_ui_3d_bar[a.theme]||f.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>f.config,a=>{l.value=H(),O.value=!l.value.userOptions.showOnChartHover,Z(),j.value+=1,A.value+=1,N.value.showTable=l.value.table.show},{deep:!0});const{isPrinting:q,isImaging:U,generatePdf:R,generateImage:X}=oe.usePrinter({elementId:`3d_bar_${k.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar",options:l.value.userOptions.print}),ce=e.computed(()=>s.convertCustomPalette(l.value.customPalette)),N=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),n=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const a=f.dataset.series.map(o=>o.value||0).reduce((o,u)=>o+u,0),r=f.dataset.series.map((o,u)=>({...o,id:s.createUid(),proportion:(o.value||0)/a,color:s.convertColorToHex(o.color)||ce.value[u]||s.palette[u]||s.palette[u%s.palette.length],breakdown:o.breakdown?o.breakdown.sort((i,p)=>p.value-i.value):null})).sort((o,u)=>u.value-o.value),t=[];let c=0;for(let o=0;o<r.length;o+=1)t.push({...r[o],fill:de(c,r[o].proportion,r[o].breakdown,r[o].color)}),c+=r[o].proportion;return t}return null}),b=e.computed(()=>({right:`M${n.value.width/2},${n.value.top} ${n.value.width-n.value.right}, ${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,left:`M${n.value.width/2},${n.value.top} ${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,side:`M${n.value.width/2},${n.value.height-n.value.bottom} ${n.value.width/2},${n.value.top+n.value.perspective*2}`,topSides:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.width/2},${n.value.top+n.value.perspective*2} ${n.value.width-n.value.right},${n.value.top+n.value.perspective}`,tubeTop:`M${n.value.left},${n.value.top+n.value.perspective} C ${n.value.left},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top+n.value.perspective} C ${n.value.width-n.value.right},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective}`,tubeLeft:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`,tubeRight:`M${n.value.width-n.value.right},${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective}`,tubeBottom:`M${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} C ${n.value.width-n.value.right},${n.value.height} ${n.value.left},${n.value.height} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`})),E=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{Z();let a=0,r=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){E.value+=r+a,a+=t,E.value<f.dataset.percentage?requestAnimationFrame(c):E.value=f.dataset.percentage}l.value.style.chart.animation.use&&(E.value=0,c())});function Z(){s.objectIsEmpty(f.dataset)?s.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((a,r)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","value"]}).forEach(t=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:t,index:r})}),a.breakdown&&a.breakdown.forEach((t,c)=>{s.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["name","value"]}).forEach(o=>{s.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:o,index:`${r} - ${c}`})})})}):s.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(a=>{s.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:a})})}function de(a,r,t,c){const o=n.value.height-n.value.bottom-n.value.top-n.value.perspective*2,{width:u,height:i,bottom:p,right:y,left:h,perspective:v}=n.value,d=p+o*a,T=i-d-v-o*r/2,pe=T>n.value.height/2?"top":"bottom",Q=64,fe=!!t;let ee=null,te=null;return fe&&(t=t.map((le,ke)=>({...le,value:le.value||0,color:s.lightenHexColor(c,ke/t.length)})),ee=s.makeDonut({series:t},u+n.value.absoluteWidth/4-14,pe==="top"?T-Q:T+Q,28,28,1.99999,2,1,360,105.25,14),te=s.makeDonut({series:t},u-y+20,i-d-v-o*r/2,6,6,1.99999,2,1,360,105.25,6)),{donut:ee,miniDonut:te,sidePointer:{x:u-y,y:i-d-v-o*r/2,topY:i-d-v-o*r,height:o*r},apexBottom:{y:i-d,x:u/2},apexTop:{y:i-d-o*r,x:u/2},right:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r} ${u-y},${i-d-v}Z`,left:`M${u/2},${i-d} ${u/2},${i-d-o*r} ${h}, ${i-d-v-o*r} ${h},${i-d-v}Z`,liningTop:`M${h},${i-d-v-o*r} ${u/2},${i-d-o*r} ${u-y},${i-d-v-o*r}`,liningTopShade:`M${h},${i-d-v-o*r-.5} ${u/2},${i-d-o*r-.5} ${u-y},${i-d-v-o*r-.5}`,top:`M${u/2},${i-d-o*r} ${h},${i-d-v-o*r} ${u/2},${i-d-v*2-o*r} ${u-y},${i-d-v-o*r} Z`,tubeTop:`M${h},${i-d-o*r-v} C ${h},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v*2.5} ${u-y},${i-d-o*r-v} C ${u-y},${i-d-o*r+v/2} ${h},${i-d-o*r+v/2} ${h},${i-d-o*r-v}`,bottomTubeTop:`M ${u-y-.5},${i-d-v} C ${u-y-.5},${i-d+v/2} ${h},${i-d+v/2} ${h+.5},${i-d-v}`,tubeBody:`M
|
|
2
2
|
${h},${i-d-o*r-v}
|
|
3
3
|
C ${h},${i-d-o*r+v/2}
|
|
4
4
|
${u-y},${i-d-o*r+v/2}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-C86xshge.cjs"),g=require("./useNestedProp-Cf-JPzTa.cjs"),u=require("./index-BprEQiKM.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=["id"],h={key:0,class:"vue-ui-accordion-arrow"},k={__name:"vue-ui-accordion",props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},setup(l){e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:c}=u.useConfig(),d=l,o=e.computed(()=>g.useNestedProp({userConfig:d.config,defaultConfig:c})),a=e.ref(o.value.open),i=e.ref(u.createUid()),t=e.ref(null),n=e.ref(0);e.onMounted(()=>{t.value.open=o.value.open}),e.watch(()=>o.value.open,r=>{t.value.open=r});function s(){(n.value>0||!o.value.open)&&(a.value=!a.value),n.value+=1}const v=e.computed(()=>`${o.value.maxHeight}px`);return(r,C)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("details",{id:`details_${i.value}`,ref_key:"details",ref:t,onToggle:s},[e.createElementVNode("summary",{class:e.normalizeClass({"vue-ui-accordion-headless":l.hideDetails})},[e.createElementVNode("div",{class:"vue-ui-accordion-head",style:e.normalizeStyle(`background:${o.value.head.backgroundColor};padding:${o.value.head.padding}; ${l.hideDetails?"height: 0px !important; padding: 0 !important;":""}`)},[l.hideDetails?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[o.value.head.useArrowSlot?e.renderSlot(r.$slots,"arrow",e.normalizeProps(e.mergeProps({key:0},{backgroundColor:o.value.head.backgroundColor,color:o.value.head.color,iconColor:o.value.head.iconColor,isOpen:a.value})),void 0,!0):(e.openBlock(),e.createBlock(p.default,{key:1,name:"arrowRight",stroke:o.value.head.iconColor},null,8,["stroke"]))])),e.renderSlot(r.$slots,"title",e.normalizeProps(e.guardReactiveProps({color:o.value.head.color,isOpen:a.value})),void 0,!0)],4)],2)],40,m),e.createElementVNode("div",{class:"vue-ui-accordion-content",style:e.normalizeStyle(`background:${o.value.body.backgroundColor};color:${o.value.body.color}`)},[e.renderSlot(r.$slots,"content",e.normalizeProps(e.guardReactiveProps({backgroundColor:o.value.body.backgroundColor,color:o.value.body.color,isOpen:a.value})),void 0,!0)],4)]))}},y=f._export_sfc(k,[["__scopeId","data-v-28fc829c"]]);exports.default=y;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as y, computed as s, ref as r, onMounted as b, watch as _, createElementBlock as v, openBlock as u, createElementVNode as n, normalizeClass as $, normalizeStyle as p, createCommentVNode as O, renderSlot as c, createBlock as D, normalizeProps as i, mergeProps as N, guardReactiveProps as m } from "vue";
|
|
2
|
-
import w from "./BaseIcon-
|
|
3
|
-
import { u as x } from "./useNestedProp-
|
|
4
|
-
import { u as B, c as I } from "./index-
|
|
2
|
+
import w from "./BaseIcon-CTAy5_xi.js";
|
|
3
|
+
import { u as x } from "./useNestedProp-D9I77VlT.js";
|
|
4
|
+
import { u as B, c as I } from "./index-C3amwS0l.js";
|
|
5
5
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const F = ["id"], P = {
|
|
7
7
|
key: 0,
|