vue-data-ui 3.3.2 → 3.4.0
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-DLi6NnGD.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-CVGErydD.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-eZbszQrv.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-BoPM4Ejg.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-yAMEyP6y.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-By4rru90.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7QqIewT.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-r-Q1R3nV.js → PackageVersion-DyDViSOy.js} +1 -1
- package/dist/{PenAndPaper-Bo-lMUik.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BceHSLHf.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-Znzt0gSE.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip--YwqrrgZ.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-Camz1Lce.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-VOcQEHa4.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CSja1SGU.js → UserOptions-C0YT60JN.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-DxyZSvDx.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-J2dLIr8Y.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CEjkWSLj.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-anN8VbM7.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CovTrBjm.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Ce3PwN8T.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-DJ1iH-F_.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-BFdGl7rL.js → vue-data-ui-D7Tgakts.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-kzlIaqHU.js → vue-ui-3d-bar-H_4pqH3h.js} +56 -56
- package/dist/{vue-ui-accordion-VTP418mC.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-YFzQ15k1.js → vue-ui-age-pyramid-BGzYbrts.js} +62 -55
- package/dist/{vue-ui-annotator-CmwDyy9m.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-DdjpiM-T.js → vue-ui-bullet-Cf4Uzhez.js} +7 -7
- package/dist/vue-ui-candlestick-DfbP87Cr.js +1334 -0
- package/dist/{vue-ui-carousel-table-CRI_iPLn.js → vue-ui-carousel-table-0z6eLg_I.js} +29 -29
- package/dist/{vue-ui-chestnut-YrEA5Gq3.js → vue-ui-chestnut-BcQFRaXx.js} +70 -70
- package/dist/{vue-ui-chord-D_2DdvpZ.js → vue-ui-chord-YYE07iRP.js} +35 -35
- package/dist/{vue-ui-circle-pack-xm9-OOAR.js → vue-ui-circle-pack-BRSqhjxm.js} +47 -47
- package/dist/{vue-ui-cursor-Dt8Zzw22.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-29ZuFoLn.js → vue-ui-dashboard-BpeLteeH.js} +67 -67
- package/dist/{vue-ui-digits-nKPRJ9Vz.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-BQptfVfE.js → vue-ui-donut-Yw81BFf2.js} +189 -189
- package/dist/{vue-ui-donut-evolution-fiqngEFW.js → vue-ui-donut-evolution-k3xCwZYv.js} +145 -138
- package/dist/{vue-ui-dumbbell-Cw45EBO0.js → vue-ui-dumbbell-DMPndU1O.js} +82 -75
- package/dist/{vue-ui-flow-DPu9BjPy.js → vue-ui-flow-D-W3VQTv.js} +75 -75
- package/dist/{vue-ui-funnel-CtlDuNjO.js → vue-ui-funnel-q-b-LqXG.js} +63 -63
- package/dist/{vue-ui-galaxy-BiVjoNHW.js → vue-ui-galaxy-4pueJOcI.js} +62 -62
- package/dist/{vue-ui-gauge-CoM6Q3Nb.js → vue-ui-gauge-APtv_CvA.js} +58 -58
- package/dist/{vue-ui-gizmo-DXG8dS5u.js → vue-ui-gizmo-BH0MvhIV.js} +3 -3
- package/dist/{vue-ui-heatmap-D6n8AnCc.js → vue-ui-heatmap-BBdrkhmg.js} +465 -435
- package/dist/{vue-ui-history-plot-C8WMHda_.js → vue-ui-history-plot-DL5ioFH4.js} +115 -108
- package/dist/{vue-ui-kpi-Dphnwumo.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-DFk9GZ5V.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-DC4_vXt_.js → vue-ui-molecule-DnjRfc4-.js} +102 -102
- package/dist/{vue-ui-mood-radar-BgT5wMS0.js → vue-ui-mood-radar-9aAC_ake.js} +28 -28
- package/dist/{vue-ui-nested-donuts-D2gSqe1f.js → vue-ui-nested-donuts-BnVXn9Qa.js} +60 -60
- package/dist/{vue-ui-onion-CEbv2ii4.js → vue-ui-onion-DbanwrFr.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-budrvcwU.js → vue-ui-parallel-coordinate-plot-CtlpCJ97.js} +88 -81
- package/dist/{vue-ui-quadrant-PpymeiXe.js → vue-ui-quadrant-BVffm_0o.js} +8 -8
- package/dist/{vue-ui-quick-chart-k6mjTD56.js → vue-ui-quick-chart-C4Uc3DRH.js} +280 -273
- package/dist/{vue-ui-radar-C5NvYMnv.js → vue-ui-radar-C-MSV1ZJ.js} +69 -69
- package/dist/{vue-ui-rating-eKlTJch9.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Df33aaUT.js → vue-ui-relation-circle-4MPxPkAi.js} +31 -31
- package/dist/{vue-ui-ridgeline-BTw-37RS.js → vue-ui-ridgeline-B1T10gWF.js} +118 -111
- package/dist/{vue-ui-rings-C_s9xOtZ.js → vue-ui-rings-G0bYxlue.js} +50 -50
- package/dist/{vue-ui-scatter-Jd8bQ0S5.js → vue-ui-scatter-DqZwonPL.js} +100 -100
- package/dist/{vue-ui-skeleton-Ce7H57o7.js → vue-ui-skeleton-C-IKc-3B.js} +3 -3
- package/dist/{vue-ui-smiley-C4mhT7ZV.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-DQy4iSO7.js → vue-ui-spark-trend-8vV7SyrA.js} +18 -18
- package/dist/{vue-ui-sparkbar-CUFTHql0.js → vue-ui-sparkbar-BsWBXGuQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CcykuBps.js → vue-ui-sparkgauge-B9-iRqNC.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-CyGvYpYn.js → vue-ui-sparkhistogram-CV4PH2vQ.js} +4 -4
- package/dist/{vue-ui-sparkline-CLWJM6hA.js → vue-ui-sparkline-DScNHLXj.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Cln1pduE.js → vue-ui-sparkstackbar-CXPJToNY.js} +17 -17
- package/dist/vue-ui-stackbar-94piqh7z.js +1695 -0
- package/dist/{vue-ui-strip-plot-C4U0fT5D.js → vue-ui-strip-plot-CA4GL9dj.js} +144 -137
- package/dist/{vue-ui-table-DpdP3PDq.js → vue-ui-table-BAbQsJGk.js} +18 -18
- package/dist/{vue-ui-table-heatmap-J29d8nds.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-Chf5YY4A.js → vue-ui-table-sparkline-1KrHuOle.js} +28 -28
- package/dist/{vue-ui-thermometer-D6RmaNE6.js → vue-ui-thermometer-DrCAdNyW.js} +22 -22
- package/dist/{vue-ui-timer-C5E1kJRt.js → vue-ui-timer-Cj677c6_.js} +29 -29
- package/dist/{vue-ui-tiremarks-D0erVBnj.js → vue-ui-tiremarks-O5LGA_1a.js} +14 -14
- package/dist/{vue-ui-treemap-K8FYxuYz.js → vue-ui-treemap-BVe_Fft6.js} +78 -78
- package/dist/{vue-ui-vertical-bar-BA3OY8Sh.js → vue-ui-vertical-bar-D8oCUku1.js} +94 -94
- package/dist/{vue-ui-waffle-CgLgPuro.js → vue-ui-waffle-C39XL2GH.js} +68 -68
- package/dist/{vue-ui-wheel-C_cOUhCs.js → vue-ui-wheel-BEpyCUNj.js} +21 -21
- package/dist/{vue-ui-word-cloud-uvHNOIpN.js → vue-ui-word-cloud-Dlp9LghX.js} +35 -35
- package/dist/{vue-ui-world-DmeNMwpX.js → vue-ui-world-BS8BCZJ3.js} +6 -6
- package/dist/vue-ui-xy-D3LqMzve.js +3375 -0
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/package.json +1 -1
- package/dist/useResizeObserverEffect-DfnWps4W.js +0 -109
- package/dist/vue-ui-candlestick-x9U5Ni0N.js +0 -1066
- package/dist/vue-ui-stackbar-DIUil9DO.js +0 -1442
- package/dist/vue-ui-xy-canvas-BQKR36bd.js +0 -1305
- package/dist/vue-ui-xy-tWE4H5ij.js +0 -4520
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as T, computed as y, ref as v, toRefs as yt, watch as X, shallowRef as ze, onMounted as ht, onBeforeUnmount as Oe, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as se, normalizeClass as Ie, createBlock as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
1
|
+
import { defineAsyncComponent as T, computed as y, ref as v, toRefs as yt, watch as X, shallowRef as ze, onMounted as ht, onBeforeUnmount as Oe, watchEffect as ct, createElementBlock as n, openBlock as i, unref as u, normalizeStyle as se, normalizeClass as Ie, createBlock as P, createCommentVNode as h, renderSlot as c, createVNode as ie, createSlots as Fe, withCtx as f, normalizeProps as D, guardReactiveProps as M, createElementVNode as d, Fragment as L, renderList as z, toDisplayString as C, resolveDynamicComponent as ft, mergeProps as gt, createTextVNode as ue, nextTick as pt } from "vue";
|
|
2
|
+
import { c as bt, t as xt, o as Re, f as mt, x as p, X as wt, s as ne, i as Pe, a as O, d as I, P as kt, Q as Ct, G as _t, H as At } from "./lib-BcBZIm6u.js";
|
|
3
|
+
import { t as De, u as Tt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Lt, a as Me } from "./useNestedProp-B7CiTRDS.js";
|
|
5
|
+
import { u as $t, B as St } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as zt } from "./usePrinter-C1GiglOH.js";
|
|
7
|
+
import { u as Ot } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Ft } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as Rt } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import Pt from "./img-CFY3JivG.js";
|
|
12
|
+
import Dt from "./Title-CFmv95In.js";
|
|
13
13
|
import { t as Mt } from "./themes-Dw-dDudK.js";
|
|
14
14
|
import { _ as Nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"], Gt = ["id"], Ht = ["stop-color"], Wt = ["stop-color"], Vt = ["id"], Xt = ["stop-color"], jt = ["stop-color"], Yt = ["x", "y", "width", "height", "fill", "rx"], qt = ["x", "y", "width", "height", "fill", "rx"],
|
|
15
|
+
const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"], Gt = ["id"], Ht = ["stop-color"], Wt = ["stop-color"], Vt = ["id"], Xt = ["stop-color"], jt = ["stop-color"], Yt = ["x", "y", "width", "height", "fill", "rx"], qt = ["x", "y", "width", "height", "fill", "rx"], Qt = ["x", "y", "width", "height", "fill", "rx"], Jt = ["x", "y", "width", "height", "fill", "rx"], Kt = { key: 0 }, Zt = ["x", "y", "fill", "font-size", "font-weight"], el = ["x", "y", "fill", "font-size", "font-weight"], tl = { key: 1 }, ll = ["x", "y", "font-size", "fill", "font-weight"], al = { key: 2 }, ol = { key: 0 }, sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], rl = ["font-size", "fill", "text-anchor", "font-weight", "transform"], vl = ["font-size", "fill", "text-anchor", "font-weight", "transform"], dl = ["x", "y", "font-size", "fill", "font-weight"], yl = ["x", "y", "width", "height", "fill", "onMouseover", "onMouseleave", "onClick"], hl = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
18
|
}, cl = {
|
|
@@ -32,7 +32,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(re, { expose: Ne }) {
|
|
35
|
-
const Be = T(() => import("./Tooltip-
|
|
35
|
+
const Be = T(() => import("./Tooltip-Cs4v8OnI.js")), Ee = T(() => import("./BaseIcon-B5KaGWWC.js")), Ue = T(() => import("./vue-ui-accordion-BKkTS12x.js")), Ge = T(() => import("./DataTable-DOx3zgih.js")), He = T(() => import("./PenAndPaper-Dj2diYr0.js")), We = T(() => import("./UserOptions-C0YT60JN.js")), Ve = T(() => import("./PackageVersion-DyDViSOy.js")), Xe = T(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_age_pyramid: je } = Lt(), x = re, ve = y(() => !!x.dataset && x.dataset.length), w = v(bt()), j = v(!1), Y = v(""), U = v(null), de = v(0), k = v(null), ye = v(null), he = v(null), ce = v(null), fe = v(0), ge = v(0), q = v(null), N = v(null), Q = v(null), e = v(ee()), { loading: pe, FINAL_DATASET: G, manualLoading: J } = $t({
|
|
36
36
|
...yt(x),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: ee,
|
|
@@ -48,7 +48,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
48
48
|
["_", 1, 89, 89],
|
|
49
49
|
["_", 0, 144, 144]
|
|
50
50
|
],
|
|
51
|
-
skeletonConfig:
|
|
51
|
+
skeletonConfig: xt({
|
|
52
52
|
defaultConfig: e.value,
|
|
53
53
|
userConfig: {
|
|
54
54
|
userOptions: { show: !1 },
|
|
@@ -81,7 +81,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
})
|
|
84
|
-
}), { userOptionsVisible:
|
|
84
|
+
}), { userOptionsVisible: K, setUserOptionsVisibility: be, keepUserOptionState: xe } = It({ config: e.value }), { svgRef: Z } = Ft({ config: e.value.style.title });
|
|
85
85
|
function ee() {
|
|
86
86
|
const t = Me({
|
|
87
87
|
userConfig: x.config,
|
|
@@ -95,9 +95,9 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
95
95
|
} : t;
|
|
96
96
|
}
|
|
97
97
|
X(() => x.config, (t) => {
|
|
98
|
-
pe.value || (e.value = ee()),
|
|
98
|
+
pe.value || (e.value = ee()), K.value = !e.value.userOptions.showOnChartHover, me(), fe.value += 1, ge.value += 1, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.tooltip.show;
|
|
99
99
|
}, { deep: !0 }), X(() => x.dataset, (t) => {
|
|
100
|
-
Array.isArray(t) && t.length > 0 && (
|
|
100
|
+
Array.isArray(t) && t.length > 0 && (J.value = !1);
|
|
101
101
|
}, { deep: !0 });
|
|
102
102
|
const _ = ze(null), F = ze(null);
|
|
103
103
|
ht(() => {
|
|
@@ -105,13 +105,13 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
105
105
|
});
|
|
106
106
|
const Ye = y(() => !!e.value.debug);
|
|
107
107
|
function me() {
|
|
108
|
-
if (Re(x.dataset) && (
|
|
108
|
+
if (Re(x.dataset) && (mt({
|
|
109
109
|
componentName: "VueUiAgePyramid",
|
|
110
110
|
type: "dataset",
|
|
111
111
|
debug: Ye.value
|
|
112
|
-
}),
|
|
113
|
-
const t =
|
|
114
|
-
const { width: o, height: l } =
|
|
112
|
+
}), J.value = !0), Re(x.dataset) || (J.value = e.value.loading), e.value.responsive) {
|
|
113
|
+
const t = De(() => {
|
|
114
|
+
const { width: o, height: l } = Tt({
|
|
115
115
|
chart: k.value,
|
|
116
116
|
title: e.value.style.title.text ? ye.value : null,
|
|
117
117
|
source: he.value,
|
|
@@ -127,7 +127,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
127
127
|
Oe(() => {
|
|
128
128
|
_.value && (F.value && _.value.unobserve(F.value), _.value.disconnect());
|
|
129
129
|
});
|
|
130
|
-
const { isPrinting: we, isImaging: ke, generatePdf: Ce, generateImage: _e } =
|
|
130
|
+
const { isPrinting: we, isImaging: ke, generatePdf: Ce, generateImage: _e } = zt({
|
|
131
131
|
elementId: `vue-ui-age-pyramid_${w.value}`,
|
|
132
132
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid",
|
|
133
133
|
options: e.value.userOptions.print
|
|
@@ -144,10 +144,17 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
144
144
|
const g = v({
|
|
145
145
|
height: e.value.style.height,
|
|
146
146
|
width: e.value.style.width
|
|
147
|
-
}),
|
|
147
|
+
}), Qe = y(() => g.value.width), Je = y(() => g.value.height), H = v(0), Ke = De((t) => {
|
|
148
148
|
H.value = t;
|
|
149
149
|
}, 100);
|
|
150
|
-
|
|
150
|
+
ct((t) => {
|
|
151
|
+
const o = q.value;
|
|
152
|
+
if (!o) return;
|
|
153
|
+
const l = new ResizeObserver((a) => {
|
|
154
|
+
Ke(a[0].contentRect.height);
|
|
155
|
+
});
|
|
156
|
+
l.observe(o), t(() => l.disconnect());
|
|
157
|
+
}), Oe(() => {
|
|
151
158
|
H.value = 0;
|
|
152
159
|
});
|
|
153
160
|
const s = y(() => {
|
|
@@ -244,7 +251,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
244
251
|
config: e.value
|
|
245
252
|
};
|
|
246
253
|
const l = e.value.style.tooltip.customFormat;
|
|
247
|
-
if (
|
|
254
|
+
if (_t(l) && At(() => l({
|
|
248
255
|
seriesIndex: t,
|
|
249
256
|
datapoint: {
|
|
250
257
|
segment: o[0],
|
|
@@ -294,15 +301,15 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
294
301
|
j.value = !0;
|
|
295
302
|
}
|
|
296
303
|
function ae(t = null) {
|
|
297
|
-
|
|
304
|
+
pt(() => {
|
|
298
305
|
const o = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = x.dataset.map((m) => [
|
|
299
306
|
m[0],
|
|
300
307
|
m[1],
|
|
301
308
|
m[2],
|
|
302
309
|
m[3],
|
|
303
310
|
m[2] ?? 0 + m[3] ?? 0
|
|
304
|
-
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), r =
|
|
305
|
-
t ? t(r) :
|
|
311
|
+
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), r = kt(a);
|
|
312
|
+
t ? t(r) : Ct({ csvContent: r, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
306
313
|
});
|
|
307
314
|
}
|
|
308
315
|
const W = y(() => {
|
|
@@ -348,7 +355,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
348
355
|
}
|
|
349
356
|
async function st({ scale: t = 2 } = {}) {
|
|
350
357
|
if (!k.value) return;
|
|
351
|
-
const { width: o, height: l } = k.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: m } = await
|
|
358
|
+
const { width: o, height: l } = k.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: m } = await Pt({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
352
359
|
return {
|
|
353
360
|
imageUri: r,
|
|
354
361
|
base64: m,
|
|
@@ -367,8 +374,8 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
367
374
|
rotationPath: ["style", "layout", "dataLabels", "xAxis", "rotation"],
|
|
368
375
|
autoRotatePath: ["style", "layout", "dataLabels", "xAxis", "autoRotate", "enable"],
|
|
369
376
|
isAutoSize: !1,
|
|
370
|
-
width:
|
|
371
|
-
height:
|
|
377
|
+
width: Qe,
|
|
378
|
+
height: Je,
|
|
372
379
|
targetClass: ".vue-ui-age-pyramid-x-axis-label",
|
|
373
380
|
rotation: e.value.style.layout.dataLabels.xAxis.autoRotate.angle
|
|
374
381
|
});
|
|
@@ -406,9 +413,9 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
406
413
|
e.value.table.show || (t && e.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
407
414
|
});
|
|
408
415
|
function $e() {
|
|
409
|
-
b.value.showTable = !1,
|
|
416
|
+
b.value.showTable = !1, Q.value && Q.value.setTableIconState(!1);
|
|
410
417
|
}
|
|
411
|
-
const nt = y(() => e.value.style.backgroundColor), rt = y(() => e.value.style.title), { exportSvg: vt, getSvg: dt } =
|
|
418
|
+
const nt = y(() => e.value.style.backgroundColor), rt = y(() => e.value.style.title), { exportSvg: vt, getSvg: dt } = Ot({
|
|
412
419
|
svg: Z,
|
|
413
420
|
title: rt,
|
|
414
421
|
backgroundColor: nt
|
|
@@ -439,7 +446,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
439
446
|
onMouseenter: o[1] || (o[1] = () => u(be)(!0)),
|
|
440
447
|
onMouseleave: o[2] || (o[2] = () => u(be)(!1))
|
|
441
448
|
}, [
|
|
442
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
449
|
+
e.value.userOptions.buttons.annotator ? (i(), P(u(He), {
|
|
443
450
|
key: 0,
|
|
444
451
|
svgRef: u(Z),
|
|
445
452
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -460,7 +467,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
460
467
|
ref: ye,
|
|
461
468
|
style: "width:100%;background:transparent"
|
|
462
469
|
}, [
|
|
463
|
-
(i(),
|
|
470
|
+
(i(), P(Dt, {
|
|
464
471
|
key: `title_${fe.value}`,
|
|
465
472
|
config: {
|
|
466
473
|
title: {
|
|
@@ -474,9 +481,9 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
474
481
|
}
|
|
475
482
|
}, null, 8, ["config"]))
|
|
476
483
|
], 512)) : h("", !0),
|
|
477
|
-
e.value.userOptions.show && ve.value && (u(xe) || u(
|
|
484
|
+
e.value.userOptions.show && ve.value && (u(xe) || u(K)) ? (i(), P(u(We), {
|
|
478
485
|
ref_key: "userOptionsRef",
|
|
479
|
-
ref:
|
|
486
|
+
ref: Q,
|
|
480
487
|
key: `user_options_${de.value}`,
|
|
481
488
|
backgroundColor: e.value.style.backgroundColor,
|
|
482
489
|
color: e.value.style.color,
|
|
@@ -509,13 +516,13 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
509
516
|
onToggleTooltip: Le,
|
|
510
517
|
onToggleAnnotator: oe,
|
|
511
518
|
style: se({
|
|
512
|
-
visibility: u(xe) ? u(
|
|
519
|
+
visibility: u(xe) ? u(K) ? "visible" : "hidden" : "visible"
|
|
513
520
|
})
|
|
514
521
|
}, Fe({ _: 2 }, [
|
|
515
522
|
t.$slots.menuIcon ? {
|
|
516
523
|
name: "menuIcon",
|
|
517
524
|
fn: f(({ isOpen: l, color: a }) => [
|
|
518
|
-
c(t.$slots, "menuIcon",
|
|
525
|
+
c(t.$slots, "menuIcon", D(M({ isOpen: l, color: a })), void 0, !0)
|
|
519
526
|
]),
|
|
520
527
|
key: "0"
|
|
521
528
|
} : void 0,
|
|
@@ -557,14 +564,14 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
557
564
|
t.$slots.optionFullscreen ? {
|
|
558
565
|
name: "optionFullscreen",
|
|
559
566
|
fn: f(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
560
|
-
c(t.$slots, "optionFullscreen",
|
|
567
|
+
c(t.$slots, "optionFullscreen", D(M({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
561
568
|
]),
|
|
562
569
|
key: "6"
|
|
563
570
|
} : void 0,
|
|
564
571
|
t.$slots.optionAnnotator ? {
|
|
565
572
|
name: "optionAnnotator",
|
|
566
573
|
fn: f(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
567
|
-
c(t.$slots, "optionAnnotator",
|
|
574
|
+
c(t.$slots, "optionAnnotator", D(M({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
568
575
|
]),
|
|
569
576
|
key: "7"
|
|
570
577
|
} : void 0
|
|
@@ -572,7 +579,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
572
579
|
(i(), n("svg", {
|
|
573
580
|
ref_key: "svgRef",
|
|
574
581
|
ref: Z,
|
|
575
|
-
xmlns: u(
|
|
582
|
+
xmlns: u(wt),
|
|
576
583
|
class: Ie({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
577
584
|
viewBox: `0 0 ${g.value.width <= 0 ? 10 : g.value.width} ${g.value.height <= 0 ? 10 : g.value.height}`,
|
|
578
585
|
style: se(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
@@ -604,7 +611,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
604
611
|
}, null, 8, Ht),
|
|
605
612
|
d("stop", {
|
|
606
613
|
offset: "100%",
|
|
607
|
-
"stop-color": u(ne)(u(
|
|
614
|
+
"stop-color": u(ne)(u(Pe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
608
615
|
}, null, 8, Wt)
|
|
609
616
|
], 8, Gt),
|
|
610
617
|
d("linearGradient", {
|
|
@@ -616,7 +623,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
616
623
|
}, [
|
|
617
624
|
d("stop", {
|
|
618
625
|
offset: "0%",
|
|
619
|
-
"stop-color": u(ne)(u(
|
|
626
|
+
"stop-color": u(ne)(u(Pe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
|
|
620
627
|
}, null, 8, Xt),
|
|
621
628
|
d("stop", {
|
|
622
629
|
offset: "100%",
|
|
@@ -648,7 +655,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
648
655
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
649
656
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
650
657
|
rx: e.value.style.layout.bars.borderRadius
|
|
651
|
-
}, null, 8,
|
|
658
|
+
}, null, 8, Qt),
|
|
652
659
|
d("rect", {
|
|
653
660
|
x: l.right.x,
|
|
654
661
|
y: l.right.y,
|
|
@@ -656,10 +663,10 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
656
663
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
657
664
|
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : l.right.color,
|
|
658
665
|
rx: e.value.style.layout.bars.borderRadius
|
|
659
|
-
}, null, 8,
|
|
666
|
+
}, null, 8, Jt)
|
|
660
667
|
]))), 256)),
|
|
661
668
|
d("g", null, [
|
|
662
|
-
e.value.style.layout.dataLabels.sideTitles.show ? (i(), n("g",
|
|
669
|
+
e.value.style.layout.dataLabels.sideTitles.show ? (i(), n("g", Kt, [
|
|
663
670
|
d("text", {
|
|
664
671
|
x: s.value.left,
|
|
665
672
|
y: e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
@@ -800,7 +807,7 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
800
807
|
c(t.$slots, "svg", { svg: g.value }, void 0, !0)
|
|
801
808
|
], 14, Et)),
|
|
802
809
|
t.$slots.watermark ? (i(), n("div", hl, [
|
|
803
|
-
c(t.$slots, "watermark",
|
|
810
|
+
c(t.$slots, "watermark", D(M({ isPrinting: u(we) || u(ke) })), void 0, !0)
|
|
804
811
|
])) : h("", !0),
|
|
805
812
|
c(t.$slots, "legend", { legend: $.value }, void 0, !0),
|
|
806
813
|
t.$slots.source ? (i(), n("div", {
|
|
@@ -832,20 +839,20 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
832
839
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
833
840
|
}, {
|
|
834
841
|
"tooltip-before": f(() => [
|
|
835
|
-
c(t.$slots, "tooltip-before",
|
|
842
|
+
c(t.$slots, "tooltip-before", D(M({ ...te.value })), void 0, !0)
|
|
836
843
|
]),
|
|
837
844
|
"tooltip-after": f(() => [
|
|
838
|
-
c(t.$slots, "tooltip-after",
|
|
845
|
+
c(t.$slots, "tooltip-after", D(M({ ...te.value })), void 0, !0)
|
|
839
846
|
]),
|
|
840
847
|
_: 3
|
|
841
848
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
842
|
-
ve.value && e.value.userOptions.buttons.table ? (i(),
|
|
849
|
+
ve.value && e.value.userOptions.buttons.table ? (i(), P(ft(E.value.component), gt({ key: 6 }, E.value.props, {
|
|
843
850
|
ref_key: "tableUnit",
|
|
844
851
|
ref: N,
|
|
845
852
|
onClose: $e
|
|
846
853
|
}), Fe({
|
|
847
854
|
content: f(() => [
|
|
848
|
-
(i(),
|
|
855
|
+
(i(), P(u(Ge), {
|
|
849
856
|
key: `table_${ge.value}`,
|
|
850
857
|
colNames: W.value.colNames,
|
|
851
858
|
head: W.value.head,
|
|
@@ -890,10 +897,10 @@ const Bt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["x", "y", "width", "height"]
|
|
|
890
897
|
key: "1"
|
|
891
898
|
} : void 0
|
|
892
899
|
]), 1040)) : h("", !0),
|
|
893
|
-
u(pe) ? (i(),
|
|
900
|
+
u(pe) ? (i(), P(St, { key: 7 })) : h("", !0)
|
|
894
901
|
], 46, Bt));
|
|
895
902
|
}
|
|
896
|
-
}, Sl = /* @__PURE__ */ Nt(cl, [["__scopeId", "data-v-
|
|
903
|
+
}, Sl = /* @__PURE__ */ Nt(cl, [["__scopeId", "data-v-060928e4"]]);
|
|
897
904
|
export {
|
|
898
905
|
Sl as default
|
|
899
906
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as L, ref as R, watch as E, onMounted as H, onBeforeUnmount as U, createBlock as x, openBlock as c, Teleport as K, createElementBlock as p, createCommentVNode as a, normalizeStyle as b, normalizeClass as g, createElementVNode as n, renderSlot as B, resolveComponent as v, createVNode as T, withCtx as N, createTextVNode as F, toDisplayString as f, withDirectives as M, vModelCheckbox as G, vModelText as D, withModifiers as A, Fragment as X, renderList as Y } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as Q } from "./useNestedProp-
|
|
4
|
-
import { d as $ } from "./dom-to-png-
|
|
5
|
-
import { u as ee } from "./usePrinter-
|
|
6
|
-
import te from "./BaseIcon-
|
|
7
|
-
import oe from "./vue-ui-accordion-
|
|
2
|
+
import { ai as V, t as q, c as J, av as Z } from "./lib-BcBZIm6u.js";
|
|
3
|
+
import { u as Q } from "./useNestedProp-B7CiTRDS.js";
|
|
4
|
+
import { d as $ } from "./dom-to-png-xQ7LXrxp.js";
|
|
5
|
+
import { u as ee } from "./usePrinter-C1GiglOH.js";
|
|
6
|
+
import te from "./BaseIcon-B5KaGWWC.js";
|
|
7
|
+
import oe from "./vue-ui-accordion-BKkTS12x.js";
|
|
8
8
|
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { C as se } from "./ColorPicker-
|
|
9
|
+
import { C as se } from "./ColorPicker-BMztHpBp.js";
|
|
10
10
|
function ie(e) {
|
|
11
11
|
const o = (y) => e.isMacLike ? y.metaKey : y.ctrlKey, l = (y) => {
|
|
12
12
|
const S = y;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineAsyncComponent as G, ref as v, computed as c, onMounted as ze, toRefs as Ne, watch as ce, onBeforeUnmount as Ee, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as V, normalizeClass as he, createBlock as x, createCommentVNode as u, createElementVNode as _, createSlots as Ue, withCtx as C, renderSlot as m, normalizeProps as F, guardReactiveProps as T, createVNode as We, Fragment as j, renderList as q, toDisplayString as H, Teleport as De } from "vue";
|
|
2
|
-
import { u as Ge, a as de } from "./useNestedProp-
|
|
3
|
-
import { c as Ve, t as je,
|
|
2
|
+
import { u as Ge, a as de } from "./useNestedProp-B7CiTRDS.js";
|
|
3
|
+
import { c as Ve, t as je, S as qe, m as Xe, h as Ye, a as M, d as R, X as Je, o as ge, f as fe, g as Ke } from "./lib-BcBZIm6u.js";
|
|
4
4
|
import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as et } from "./usePrinter-
|
|
5
|
+
import { u as et } from "./usePrinter-C1GiglOH.js";
|
|
6
6
|
import { u as tt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as at } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { t as lt } from "./themes-Dw-dDudK.js";
|
|
9
|
-
import st from "./Legend-
|
|
10
|
-
import ot from "./Title-
|
|
11
|
-
import rt from "./img-
|
|
9
|
+
import st from "./Legend-C8u37J42.js";
|
|
10
|
+
import ot from "./Title-CFmv95In.js";
|
|
11
|
+
import rt from "./img-CFY3JivG.js";
|
|
12
12
|
import { u as nt, B as ut } from "./BaseScanner-BgWxam9d.js";
|
|
13
13
|
import { u as it } from "./useSvgExport-DrjCWun4.js";
|
|
14
14
|
import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -41,7 +41,7 @@ const ct = ["id"], ht = {
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup(me, { expose: ye }) {
|
|
44
|
-
const pe = G(() => import("./PackageVersion-
|
|
44
|
+
const pe = G(() => import("./PackageVersion-DyDViSOy.js")), be = G(() => import("./PenAndPaper-Dj2diYr0.js")), ke = G(() => import("./UserOptions-C0YT60JN.js")), { vue_ui_bullet: we } = Ge(), O = me, y = v(null), X = v(null), Y = v(0), J = v(null), K = v(null), xe = v(0), A = v(null), S = v(null), Q = v(!1), b = c({
|
|
45
45
|
get: () => i.value.hasOwnProperty("value"),
|
|
46
46
|
set: (t) => t
|
|
47
47
|
}), L = c(() => i.value.segments ? Array.isArray(i.value.segments) ? i.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|