vue-data-ui 3.6.0 → 3.7.1
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/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- 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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
- package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
- package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
- package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
- package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
- package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
- package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
- package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
- package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
- package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
- package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
- package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
- package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
- package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
- package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
- package/dist/vue-ui-rings-BowsO9I8.js +884 -0
- package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
- package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
- package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
- package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
- package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
- package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
- package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
- package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
- package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
- package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
- package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
- package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
- package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
- package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
|
@@ -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 { v as V, t as q, c as J, ax as Z } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { u as Q } from "./useNestedProp-CWo6bftQ.js";
|
|
4
|
+
import { d as $ } from "./dom-to-png-CH2DfsJe.js";
|
|
5
|
+
import { u as ee } from "./usePrinter-DCJzEiS8.js";
|
|
6
|
+
import te from "./BaseIcon-CofSxalQ.js";
|
|
7
|
+
import oe from "./vue-ui-accordion-DSdZUn2C.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-e1-OSGlQ.js";
|
|
10
10
|
function ie(e) {
|
|
11
11
|
const o = (y) => e.isMacLike ? y.metaKey : y.ctrlKey, l = (y) => {
|
|
12
12
|
const S = y;
|
|
@@ -0,0 +1,657 @@
|
|
|
1
|
+
import { defineAsyncComponent as j, ref as h, computed as d, onMounted as qe, toRefs as Xe, watch as he, onBeforeUnmount as Ye, createElementBlock as n, openBlock as s, unref as r, normalizeStyle as V, normalizeClass as de, createBlock as x, createCommentVNode as u, createElementVNode as _, withCtx as f, renderSlot as i, normalizeProps as b, guardReactiveProps as p, createSlots as Je, createVNode as Ke, Fragment as G, renderList as q, toDisplayString as T, Teleport as Qe } from "vue";
|
|
2
|
+
import { u as Ze, a as X } from "./useNestedProp-CWo6bftQ.js";
|
|
3
|
+
import { c as et, t as tt, n as at, F as lt, l as ot, a as P, d as M, X as st, o as ge, g as fe, k as rt } from "./lib-C5BH09_g.js";
|
|
4
|
+
import { t as nt, u as ut } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as it } from "./usePrinter-DCJzEiS8.js";
|
|
6
|
+
import { u as ct, B as vt } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as ht } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as dt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as ft } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import mt from "./Legend-Web3GjlR.js";
|
|
12
|
+
import yt from "./Title-DfFUb9hd.js";
|
|
13
|
+
import bt from "./img-DUzJeMlr.js";
|
|
14
|
+
import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const me = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, segments: { baseColor: "#5A5A5A", dataLabels: { color: "#CCCCCC" }, ticks: { stroke: "#5A5A5A" } }, target: { color: "#1A1A1A" }, valueBar: { color: "#CCCCCC", stroke: "#5A5A5A", label: { color: "#CCCCCC" } } } } }, ye = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, segments: { baseColor: "#D32F2F", dataLabels: { color: "#424242" }, ticks: { stroke: "#424242" } }, target: { color: "#3A3A3A" }, valueBar: { color: "#3A3A3A", stroke: "#FFF8E1", label: { color: "#424242" } } } } }, be = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, segments: { baseColor: "#D32F2F", dataLabels: { color: "#BDBDBD" }, ticks: { stroke: "#BDBDBD" } }, target: { color: "#3A3A3A" }, valueBar: { color: "#3A3A3A", stroke: "#1E1E1E", label: { color: "#BDBDBD" } } } } }, pe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, segments: { baseColor: "#00AA00", dataLabels: { color: "#66CC66" }, ticks: { stroke: "#00AA00" } }, target: { color: "#023602" }, valueBar: { color: "#1b291b", stroke: "#1A1A1A", label: { color: "#66CC66" } } } } }, ke = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, segments: { baseColor: "#8F837A", dataLabels: { color: "#8A9892" }, ticks: { stroke: "#8F837A" } }, target: { color: "#40403a" }, valueBar: { color: "#8F837A", stroke: "#fbfafa", label: { color: "#8A9892" } } } } }, Ce = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", legend: { backgroundColor: "#fbfafa", color: "#50606C" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, segments: { baseColor: "#718890", dataLabels: { color: "#50606C" }, ticks: { stroke: "#50606C" } }, target: { color: "#50606C" }, valueBar: { color: "#50606C", stroke: "#fbfafa", label: { color: "#50606C" } } } } }, Ae = {
|
|
16
|
+
default: {},
|
|
17
|
+
dark: me,
|
|
18
|
+
celebration: ye,
|
|
19
|
+
celebrationNight: be,
|
|
20
|
+
hack: pe,
|
|
21
|
+
zen: ke,
|
|
22
|
+
concrete: Ce
|
|
23
|
+
}, ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
|
+
__proto__: null,
|
|
25
|
+
celebration: ye,
|
|
26
|
+
celebrationNight: be,
|
|
27
|
+
concrete: Ce,
|
|
28
|
+
dark: me,
|
|
29
|
+
default: Ae,
|
|
30
|
+
hack: pe,
|
|
31
|
+
zen: ke
|
|
32
|
+
}, Symbol.toStringTag, { value: "Module" })), kt = ["id"], Ct = {
|
|
33
|
+
key: 1,
|
|
34
|
+
ref: "noTitle",
|
|
35
|
+
class: "vue-data-ui-no-title-space",
|
|
36
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
37
|
+
}, At = ["id"], wt = ["xmlns", "viewBox"], Bt = ["width", "height"], xt = { key: 1 }, _t = ["x", "y", "height", "width", "fill", "stroke"], Lt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], $t = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], Ft = ["x", "y", "font-size", "font-weight", "fill"], St = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ot = { key: 3 }, Dt = ["x", "y", "fill", "font-size", "font-weight"], Et = { key: 4 }, It = ["x1", "x2", "y1", "y2", "stroke"], Tt = {
|
|
38
|
+
key: 4,
|
|
39
|
+
class: "vue-data-ui-watermark"
|
|
40
|
+
}, Pt = ["id"], Mt = {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "vue-ui-bullet-legend-item",
|
|
43
|
+
dir: "auto"
|
|
44
|
+
}, zt = { style: { "margin-right": "2px" } }, Ht = {
|
|
45
|
+
__name: "vue-ui-bullet",
|
|
46
|
+
props: {
|
|
47
|
+
config: {
|
|
48
|
+
type: Object,
|
|
49
|
+
default() {
|
|
50
|
+
return {};
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
dataset: {
|
|
54
|
+
type: Object,
|
|
55
|
+
default() {
|
|
56
|
+
return {};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
setup(we, { expose: Be }) {
|
|
61
|
+
const xe = j(() => import("./PackageVersion-C82JCJOX.js")), _e = j(() => import("./PenAndPaper-HCZQTkqi.js")), Le = j(() => import("./UserOptions-B3I-s3Lw.js")), { vue_ui_bullet: $e } = Ze(), { isThemeValid: Fe, warnInvalidTheme: Se } = dt(), L = we, k = h(null), Y = h(null), J = h(0), K = h(null), Q = h(null), Oe = h(0), $ = h(null), O = h(null), Z = h(!1), A = d({
|
|
62
|
+
get: () => c.value.hasOwnProperty("value"),
|
|
63
|
+
set: (t) => t
|
|
64
|
+
}), F = d(() => c.value.segments ? Array.isArray(c.value.segments) ? c.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
65
|
+
|
|
66
|
+
segments: [
|
|
67
|
+
{
|
|
68
|
+
name: string;
|
|
69
|
+
from: number;
|
|
70
|
+
to: number;
|
|
71
|
+
color?: string;
|
|
72
|
+
},
|
|
73
|
+
{...}
|
|
74
|
+
]
|
|
75
|
+
`), A.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
|
|
76
|
+
|
|
77
|
+
segments: [
|
|
78
|
+
{
|
|
79
|
+
name: string;
|
|
80
|
+
from: number;
|
|
81
|
+
to: number;
|
|
82
|
+
color?: string;
|
|
83
|
+
},
|
|
84
|
+
{...}
|
|
85
|
+
]
|
|
86
|
+
`), A.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
|
|
87
|
+
|
|
88
|
+
segments: [
|
|
89
|
+
{
|
|
90
|
+
name: string;
|
|
91
|
+
from: number;
|
|
92
|
+
to: number;
|
|
93
|
+
color?: string;
|
|
94
|
+
},
|
|
95
|
+
{...}
|
|
96
|
+
]
|
|
97
|
+
`), A.value = !1, !1)), ee = d(() => !!e.value.debug);
|
|
98
|
+
function te() {
|
|
99
|
+
if (ge(c.value) ? (fe({
|
|
100
|
+
componentName: "VueUiBullet",
|
|
101
|
+
type: "dataset",
|
|
102
|
+
debug: ee.value
|
|
103
|
+
}), D.value = !0) : F.value ? c.value.segments.forEach((t, l) => {
|
|
104
|
+
rt({
|
|
105
|
+
datasetObject: t,
|
|
106
|
+
requiredAttributes: ["name", "from", "to"]
|
|
107
|
+
}).forEach((a) => {
|
|
108
|
+
A.value = !1, fe({
|
|
109
|
+
componentName: "VueUiBullet segment",
|
|
110
|
+
type: "datasetSerieAttribute",
|
|
111
|
+
property: a,
|
|
112
|
+
index: l,
|
|
113
|
+
debug: ee.value
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
}) : (A.value = !1, D.value = !0), ge(c.value) || (D.value = e.value.loading), e.value.responsive) {
|
|
117
|
+
const t = nt(() => {
|
|
118
|
+
const { width: l, height: a } = ut({
|
|
119
|
+
chart: k.value,
|
|
120
|
+
title: e.value.style.chart.title.text ? Y.value : null,
|
|
121
|
+
legend: e.value.style.chart.legend.show ? K.value : null,
|
|
122
|
+
source: Q.value
|
|
123
|
+
});
|
|
124
|
+
requestAnimationFrame(() => {
|
|
125
|
+
E.value.width = l, E.value.height = a - 12;
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
$.value && (O.value && $.value.unobserve(O.value), $.value.disconnect()), $.value = new ResizeObserver(t), O.value = k.value.parentNode, $.value.observe(O.value);
|
|
129
|
+
}
|
|
130
|
+
e.value.style.chart.animation.show && !w.value && se(c.value.value || 0);
|
|
131
|
+
}
|
|
132
|
+
qe(() => {
|
|
133
|
+
Z.value = !0, te();
|
|
134
|
+
});
|
|
135
|
+
const C = h(et());
|
|
136
|
+
function z() {
|
|
137
|
+
const t = X({
|
|
138
|
+
userConfig: L.config,
|
|
139
|
+
defaultConfig: $e
|
|
140
|
+
}), l = t.theme;
|
|
141
|
+
if (!l) return t;
|
|
142
|
+
if (!Fe.value(t))
|
|
143
|
+
return Se(t), t;
|
|
144
|
+
const a = X({
|
|
145
|
+
userConfig: Ae[l] || L.config,
|
|
146
|
+
defaultConfig: t
|
|
147
|
+
});
|
|
148
|
+
return X({
|
|
149
|
+
userConfig: L.config,
|
|
150
|
+
defaultConfig: a
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
const e = h(z()), { loading: w, FINAL_DATASET: c, manualLoading: D } = ct({
|
|
154
|
+
...Xe(L),
|
|
155
|
+
FINAL_CONFIG: e,
|
|
156
|
+
prepareConfig: z,
|
|
157
|
+
skeletonDataset: {
|
|
158
|
+
value: 100,
|
|
159
|
+
target: 100,
|
|
160
|
+
segments: [
|
|
161
|
+
{
|
|
162
|
+
name: "",
|
|
163
|
+
from: 0,
|
|
164
|
+
to: 33,
|
|
165
|
+
color: "#AAAAAA"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "",
|
|
169
|
+
from: 33,
|
|
170
|
+
to: 66,
|
|
171
|
+
color: "#BABABA"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: "",
|
|
175
|
+
from: 66,
|
|
176
|
+
to: 100,
|
|
177
|
+
color: "#CACACA"
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
skeletonConfig: tt({
|
|
182
|
+
defaultConfig: e.value,
|
|
183
|
+
userConfig: {
|
|
184
|
+
userOptions: { show: !1 },
|
|
185
|
+
style: {
|
|
186
|
+
chart: {
|
|
187
|
+
backgroundColor: "#99999930",
|
|
188
|
+
segments: {
|
|
189
|
+
dataLabels: { show: !1 },
|
|
190
|
+
ticks: {
|
|
191
|
+
stroke: "#8A8A8A"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
valueBar: {
|
|
195
|
+
label: { show: !1 }
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
})
|
|
201
|
+
}), { userOptionsVisible: H, setUserOptionsVisibility: ae, keepUserOptionState: le } = gt({ config: e.value }), { svgRef: R } = ft({ config: e.value.style.chart.title });
|
|
202
|
+
he(() => L.config, (t) => {
|
|
203
|
+
w.value || (e.value = z()), H.value = !e.value.userOptions.showOnChartHover, te(), J.value += 1;
|
|
204
|
+
}, { deep: !0 });
|
|
205
|
+
const E = h({
|
|
206
|
+
width: e.value.style.chart.width,
|
|
207
|
+
height: e.value.style.chart.height
|
|
208
|
+
}), De = d(() => E.value.width), Ee = d(() => E.value.height), o = d(() => {
|
|
209
|
+
const t = Ee.value, l = De.value, a = e.value.style.chart.padding.left, v = l - e.value.style.chart.padding.right, B = e.value.style.chart.padding.top, g = t - e.value.style.chart.padding.bottom;
|
|
210
|
+
return {
|
|
211
|
+
height: Math.max(1e-3, t),
|
|
212
|
+
width: Math.max(1e-3, l),
|
|
213
|
+
left: a,
|
|
214
|
+
right: v,
|
|
215
|
+
top: B,
|
|
216
|
+
bottom: g,
|
|
217
|
+
chartWidth: Math.max(1e-3, v - a),
|
|
218
|
+
chartHeight: Math.max(1e-3, g - B)
|
|
219
|
+
};
|
|
220
|
+
}), Ie = d(() => {
|
|
221
|
+
if (!F.value) return [];
|
|
222
|
+
const t = [];
|
|
223
|
+
for (let l = 0; l < c.value.segments.length; l += 1)
|
|
224
|
+
t.push(at(e.value.style.chart.segments.baseColor, l / c.value.segments.length));
|
|
225
|
+
return t;
|
|
226
|
+
}), N = d(() => F.value ? {
|
|
227
|
+
min: Math.min(...c.value.segments.map((t) => t.from)),
|
|
228
|
+
max: Math.max(...c.value.segments.map((t) => t.to))
|
|
229
|
+
} : { min: 0, max: 1 }), m = h(Te());
|
|
230
|
+
he(() => c.value, (t) => {
|
|
231
|
+
t.hasOwnProperty("value") && (D.value = !1), e.value.style.chart.animation.show && !w.value ? se(t.value || 0) : m.value = t.value || 0;
|
|
232
|
+
}, { deep: !0 });
|
|
233
|
+
function Te() {
|
|
234
|
+
return e.value.style.chart.animation.show && !w.value ? N.value.min : c.value.value || 0;
|
|
235
|
+
}
|
|
236
|
+
const oe = h(null);
|
|
237
|
+
function se(t) {
|
|
238
|
+
const l = Math.abs(t - m.value) / e.value.style.chart.animation.animationFrames;
|
|
239
|
+
function a() {
|
|
240
|
+
m.value < t ? m.value = Math.min(m.value + l, t) : m.value > t && (m.value = Math.max(m.value - l, t)), m.value !== t && (oe.value = requestAnimationFrame(a));
|
|
241
|
+
}
|
|
242
|
+
a();
|
|
243
|
+
}
|
|
244
|
+
Ye(() => {
|
|
245
|
+
cancelAnimationFrame(oe.value);
|
|
246
|
+
});
|
|
247
|
+
const y = d(() => {
|
|
248
|
+
if (!F.value)
|
|
249
|
+
return [];
|
|
250
|
+
const t = lt(N.value.min, N.value.max, e.value.style.chart.segments.ticks.divisions), l = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
251
|
+
x: o.value.left + (c.value.target + l) / (t.max + l) * o.value.chartWidth - e.value.style.chart.target.width / 2
|
|
252
|
+
}, v = {
|
|
253
|
+
width: (m.value + l) / (t.max + l) * o.value.chartWidth
|
|
254
|
+
}, B = t.ticks.map((g) => ({
|
|
255
|
+
value: g,
|
|
256
|
+
y: o.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
|
|
257
|
+
x: o.value.left + (g + l) / (t.max + l) * o.value.chartWidth
|
|
258
|
+
}));
|
|
259
|
+
return {
|
|
260
|
+
scale: t,
|
|
261
|
+
target: a,
|
|
262
|
+
value: v,
|
|
263
|
+
ticks: B,
|
|
264
|
+
chunks: c.value.segments.map((g, Ge) => ({
|
|
265
|
+
...g,
|
|
266
|
+
color: g.color ? ot(g.color) : Ie.value[Ge],
|
|
267
|
+
x: o.value.left + o.value.chartWidth * ((g.from + l) / (t.max + l)),
|
|
268
|
+
y: o.value.top,
|
|
269
|
+
height: o.value.chartHeight,
|
|
270
|
+
width: o.value.chartWidth * (Math.abs(g.to - g.from) / (t.max + l))
|
|
271
|
+
}))
|
|
272
|
+
};
|
|
273
|
+
}), U = d(() => !y.value || !y.value.chunks || !y.value.chunks.length ? [] : y.value.chunks.map((t) => {
|
|
274
|
+
const l = P(
|
|
275
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
276
|
+
t.from,
|
|
277
|
+
M({
|
|
278
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
279
|
+
v: t.from,
|
|
280
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
281
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
282
|
+
})
|
|
283
|
+
), a = P(
|
|
284
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
285
|
+
t.to,
|
|
286
|
+
M({
|
|
287
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
288
|
+
v: t.to,
|
|
289
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
290
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
291
|
+
})
|
|
292
|
+
), v = `${l} — ${a}`;
|
|
293
|
+
return {
|
|
294
|
+
...t,
|
|
295
|
+
shape: "square",
|
|
296
|
+
value: v,
|
|
297
|
+
display: `${t.name}: ${v}`
|
|
298
|
+
};
|
|
299
|
+
})), Pe = d(() => ({
|
|
300
|
+
cy: "bullet-div-legend",
|
|
301
|
+
backgroundColor: "transparent",
|
|
302
|
+
color: e.value.style.chart.legend.color,
|
|
303
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
304
|
+
paddingBottom: 6,
|
|
305
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
306
|
+
})), { isPrinting: re, isImaging: ne, generatePdf: ue, generateImage: ie } = it({
|
|
307
|
+
elementId: `bullet_${C.value}`,
|
|
308
|
+
fileName: e.value.style.chart.title.text || "vue-ui-bullet",
|
|
309
|
+
options: e.value.userOptions.print
|
|
310
|
+
}), Me = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), S = h(!1);
|
|
311
|
+
function ce(t) {
|
|
312
|
+
S.value = t, Oe.value += 1;
|
|
313
|
+
}
|
|
314
|
+
function ze() {
|
|
315
|
+
return y.value;
|
|
316
|
+
}
|
|
317
|
+
const I = h(!1);
|
|
318
|
+
function W() {
|
|
319
|
+
I.value = !I.value;
|
|
320
|
+
}
|
|
321
|
+
async function He({ scale: t = 2 } = {}) {
|
|
322
|
+
if (!k.value) return;
|
|
323
|
+
const { width: l, height: a } = k.value.getBoundingClientRect(), v = l / a, { imageUri: B, base64: g } = await bt({ domElement: k.value, base64: !0, img: !0, scale: t });
|
|
324
|
+
return {
|
|
325
|
+
imageUri: B,
|
|
326
|
+
base64: g,
|
|
327
|
+
title: e.value.style.chart.title.text,
|
|
328
|
+
width: l,
|
|
329
|
+
height: a,
|
|
330
|
+
aspectRatio: v
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
const Re = d(() => U.value.map((t) => ({
|
|
334
|
+
...t,
|
|
335
|
+
name: t.display
|
|
336
|
+
}))), Ne = d(() => e.value.style.chart.backgroundColor), Ue = d(() => e.value.style.chart.legend), We = d(() => e.value.style.chart.title), { exportSvg: je, getSvg: Ve } = ht({
|
|
337
|
+
svg: R,
|
|
338
|
+
title: We,
|
|
339
|
+
legend: Ue,
|
|
340
|
+
legendItems: Re,
|
|
341
|
+
backgroundColor: Ne
|
|
342
|
+
});
|
|
343
|
+
function ve({ isCb: t }) {
|
|
344
|
+
t ? e.value.userOptions.callbacks.svg(Ve()) : je();
|
|
345
|
+
}
|
|
346
|
+
return Be({
|
|
347
|
+
getData: ze,
|
|
348
|
+
getImage: He,
|
|
349
|
+
generatePdf: ue,
|
|
350
|
+
generateImage: ie,
|
|
351
|
+
generateSvg: ve,
|
|
352
|
+
toggleAnnotator: W,
|
|
353
|
+
toggleFullscreen: ce
|
|
354
|
+
}), (t, l) => (s(), n("div", {
|
|
355
|
+
ref_key: "bulletChart",
|
|
356
|
+
ref: k,
|
|
357
|
+
class: de(`vue-data-ui-component vue-ui-bullet ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
358
|
+
style: V(`font-family:${e.value.style.fontFamily};width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
359
|
+
id: `bullet_${C.value}`,
|
|
360
|
+
onMouseenter: l[0] || (l[0] = () => r(ae)(!0)),
|
|
361
|
+
onMouseleave: l[1] || (l[1] = () => r(ae)(!1))
|
|
362
|
+
}, [
|
|
363
|
+
e.value.userOptions.buttons.annotator ? (s(), x(r(_e), {
|
|
364
|
+
key: 0,
|
|
365
|
+
svgRef: r(R),
|
|
366
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
367
|
+
color: e.value.style.chart.color,
|
|
368
|
+
active: I.value,
|
|
369
|
+
onClose: W
|
|
370
|
+
}, {
|
|
371
|
+
"annotator-action-close": f(() => [
|
|
372
|
+
i(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
373
|
+
]),
|
|
374
|
+
"annotator-action-color": f(({ color: a }) => [
|
|
375
|
+
i(t.$slots, "annotator-action-color", b(p({ color: a })), void 0, !0)
|
|
376
|
+
]),
|
|
377
|
+
"annotator-action-draw": f(({ mode: a }) => [
|
|
378
|
+
i(t.$slots, "annotator-action-draw", b(p({ mode: a })), void 0, !0)
|
|
379
|
+
]),
|
|
380
|
+
"annotator-action-undo": f(({ disabled: a }) => [
|
|
381
|
+
i(t.$slots, "annotator-action-undo", b(p({ disabled: a })), void 0, !0)
|
|
382
|
+
]),
|
|
383
|
+
"annotator-action-redo": f(({ disabled: a }) => [
|
|
384
|
+
i(t.$slots, "annotator-action-redo", b(p({ disabled: a })), void 0, !0)
|
|
385
|
+
]),
|
|
386
|
+
"annotator-action-delete": f(({ disabled: a }) => [
|
|
387
|
+
i(t.$slots, "annotator-action-delete", b(p({ disabled: a })), void 0, !0)
|
|
388
|
+
]),
|
|
389
|
+
_: 3
|
|
390
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : u("", !0),
|
|
391
|
+
Me.value ? (s(), n("div", Ct, null, 512)) : u("", !0),
|
|
392
|
+
e.value.style.chart.title.text ? (s(), n("div", {
|
|
393
|
+
key: 2,
|
|
394
|
+
ref_key: "chartTitle",
|
|
395
|
+
ref: Y,
|
|
396
|
+
style: "width:100%;background:transparent;"
|
|
397
|
+
}, [
|
|
398
|
+
(s(), x(yt, {
|
|
399
|
+
lineHeight: "1.3rem",
|
|
400
|
+
key: `title_${J.value}`,
|
|
401
|
+
config: {
|
|
402
|
+
title: {
|
|
403
|
+
cy: "bullet-div-title",
|
|
404
|
+
...e.value.style.chart.title
|
|
405
|
+
},
|
|
406
|
+
subtitle: {
|
|
407
|
+
cy: "bullet-div-subtitle",
|
|
408
|
+
...e.value.style.chart.title.subtitle
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}, null, 8, ["config"]))
|
|
412
|
+
], 512)) : u("", !0),
|
|
413
|
+
_("div", {
|
|
414
|
+
id: `legend-top-${C.value}`
|
|
415
|
+
}, null, 8, At),
|
|
416
|
+
e.value.userOptions.show && A.value && (r(le) || r(H)) ? (s(), x(r(Le), {
|
|
417
|
+
key: 3,
|
|
418
|
+
ref: "details",
|
|
419
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
420
|
+
color: e.value.style.chart.color,
|
|
421
|
+
isPrinting: r(re),
|
|
422
|
+
isImaging: r(ne),
|
|
423
|
+
uid: C.value,
|
|
424
|
+
hasTooltip: !1,
|
|
425
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
426
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
427
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
428
|
+
hasXls: !1,
|
|
429
|
+
hasTable: !1,
|
|
430
|
+
hasLabel: !1,
|
|
431
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
432
|
+
isFullscreen: S.value,
|
|
433
|
+
chartElement: k.value,
|
|
434
|
+
position: e.value.userOptions.position,
|
|
435
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
436
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
437
|
+
isAnnotation: I.value,
|
|
438
|
+
callbacks: e.value.userOptions.callbacks,
|
|
439
|
+
printScale: e.value.userOptions.print.scale,
|
|
440
|
+
onToggleFullscreen: ce,
|
|
441
|
+
onGeneratePdf: r(ue),
|
|
442
|
+
onGenerateImage: r(ie),
|
|
443
|
+
onGenerateSvg: ve,
|
|
444
|
+
onToggleAnnotator: W,
|
|
445
|
+
style: V({
|
|
446
|
+
visibility: r(le) ? r(H) ? "visible" : "hidden" : "visible"
|
|
447
|
+
})
|
|
448
|
+
}, Je({ _: 2 }, [
|
|
449
|
+
t.$slots.menuIcon ? {
|
|
450
|
+
name: "menuIcon",
|
|
451
|
+
fn: f(({ isOpen: a, color: v }) => [
|
|
452
|
+
i(t.$slots, "menuIcon", b(p({ isOpen: a, color: v })), void 0, !0)
|
|
453
|
+
]),
|
|
454
|
+
key: "0"
|
|
455
|
+
} : void 0,
|
|
456
|
+
t.$slots.optionPdf ? {
|
|
457
|
+
name: "optionPdf",
|
|
458
|
+
fn: f(() => [
|
|
459
|
+
i(t.$slots, "optionPdf", {}, void 0, !0)
|
|
460
|
+
]),
|
|
461
|
+
key: "1"
|
|
462
|
+
} : void 0,
|
|
463
|
+
t.$slots.optionImg ? {
|
|
464
|
+
name: "optionImg",
|
|
465
|
+
fn: f(() => [
|
|
466
|
+
i(t.$slots, "optionImg", {}, void 0, !0)
|
|
467
|
+
]),
|
|
468
|
+
key: "2"
|
|
469
|
+
} : void 0,
|
|
470
|
+
t.$slots.optionSvg ? {
|
|
471
|
+
name: "optionSvg",
|
|
472
|
+
fn: f(() => [
|
|
473
|
+
i(t.$slots, "optionSvg", {}, void 0, !0)
|
|
474
|
+
]),
|
|
475
|
+
key: "3"
|
|
476
|
+
} : void 0,
|
|
477
|
+
t.$slots.optionFullscreen ? {
|
|
478
|
+
name: "optionFullscreen",
|
|
479
|
+
fn: f(({ toggleFullscreen: a, isFullscreen: v }) => [
|
|
480
|
+
i(t.$slots, "optionFullscreen", b(p({ toggleFullscreen: a, isFullscreen: v })), void 0, !0)
|
|
481
|
+
]),
|
|
482
|
+
key: "4"
|
|
483
|
+
} : void 0,
|
|
484
|
+
t.$slots.optionAnnotator ? {
|
|
485
|
+
name: "optionAnnotator",
|
|
486
|
+
fn: f(({ toggleAnnotator: a, isAnnotator: v }) => [
|
|
487
|
+
i(t.$slots, "optionAnnotator", b(p({ toggleAnnotator: a, isAnnotator: v })), void 0, !0)
|
|
488
|
+
]),
|
|
489
|
+
key: "5"
|
|
490
|
+
} : void 0
|
|
491
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : u("", !0),
|
|
492
|
+
(s(), n("svg", {
|
|
493
|
+
ref_key: "svgRef",
|
|
494
|
+
ref: R,
|
|
495
|
+
xmlns: r(st),
|
|
496
|
+
class: de({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value, "vue-ui-bullet-svg": !0 }),
|
|
497
|
+
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
498
|
+
style: V(`width: 100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
499
|
+
}, [
|
|
500
|
+
Ke(r(xe)),
|
|
501
|
+
t.$slots["chart-background"] ? (s(), n("foreignObject", {
|
|
502
|
+
key: 0,
|
|
503
|
+
x: 0,
|
|
504
|
+
y: 0,
|
|
505
|
+
width: o.value.width,
|
|
506
|
+
height: o.value.height,
|
|
507
|
+
style: {
|
|
508
|
+
pointerEvents: "none"
|
|
509
|
+
}
|
|
510
|
+
}, [
|
|
511
|
+
i(t.$slots, "chart-background", {}, void 0, !0)
|
|
512
|
+
], 8, Bt)) : u("", !0),
|
|
513
|
+
F.value ? (s(), n("g", xt, [
|
|
514
|
+
(s(!0), n(G, null, q(y.value.chunks, (a) => (s(), n("rect", {
|
|
515
|
+
x: a.x,
|
|
516
|
+
y: a.y,
|
|
517
|
+
height: a.height,
|
|
518
|
+
width: a.width,
|
|
519
|
+
fill: a.color,
|
|
520
|
+
"stroke-width": 1,
|
|
521
|
+
stroke: e.value.style.chart.backgroundColor,
|
|
522
|
+
style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
|
|
523
|
+
}, null, 8, _t))), 256)),
|
|
524
|
+
!e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (s(), n("rect", {
|
|
525
|
+
key: 0,
|
|
526
|
+
x: y.value.target.x,
|
|
527
|
+
y: o.value.top + (o.value.chartHeight - o.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
528
|
+
height: o.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
529
|
+
width: e.value.style.chart.target.width,
|
|
530
|
+
rx: e.value.style.chart.target.rounded ? e.value.style.chart.target.width / 2 : 0,
|
|
531
|
+
fill: e.value.style.chart.target.color,
|
|
532
|
+
stroke: e.value.style.chart.target.stroke,
|
|
533
|
+
"stroke-width": e.value.style.chart.target.strokeWidth
|
|
534
|
+
}, null, 8, Lt)) : u("", !0),
|
|
535
|
+
_("rect", {
|
|
536
|
+
x: o.value.left,
|
|
537
|
+
y: o.value.top + (o.value.chartHeight - o.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
|
|
538
|
+
height: o.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
|
|
539
|
+
width: y.value.value.width,
|
|
540
|
+
fill: e.value.style.chart.valueBar.color,
|
|
541
|
+
stroke: e.value.style.chart.valueBar.stroke,
|
|
542
|
+
"stroke-width": e.value.style.chart.valueBar.strokeWidth
|
|
543
|
+
}, null, 8, $t),
|
|
544
|
+
e.value.style.chart.valueBar.label.show ? (s(), n("text", {
|
|
545
|
+
key: 1,
|
|
546
|
+
x: o.value.left + y.value.value.width,
|
|
547
|
+
y: o.value.top - 6 + e.value.style.chart.valueBar.label.offsetY,
|
|
548
|
+
"font-size": e.value.style.chart.valueBar.label.fontSize,
|
|
549
|
+
"font-weight": e.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
550
|
+
fill: e.value.style.chart.valueBar.label.color,
|
|
551
|
+
"text-anchor": "middle"
|
|
552
|
+
}, T(r(P)(
|
|
553
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
554
|
+
m.value,
|
|
555
|
+
r(M)({
|
|
556
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
557
|
+
v: m.value,
|
|
558
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
559
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
560
|
+
})
|
|
561
|
+
)), 9, Ft)) : u("", !0),
|
|
562
|
+
e.value.style.chart.target.onTop && e.value.style.chart.target.show ? (s(), n("rect", {
|
|
563
|
+
key: 2,
|
|
564
|
+
x: y.value.target.x,
|
|
565
|
+
y: o.value.top + (o.value.chartHeight - o.value.chartHeight * e.value.style.chart.target.heightRatio) / 2,
|
|
566
|
+
height: o.value.chartHeight * e.value.style.chart.target.heightRatio,
|
|
567
|
+
width: e.value.style.chart.target.width,
|
|
568
|
+
rx: e.value.style.chart.target.rounded ? e.value.style.chart.target.width / 2 : 0,
|
|
569
|
+
fill: e.value.style.chart.target.color,
|
|
570
|
+
stroke: e.value.style.chart.target.stroke,
|
|
571
|
+
"stroke-width": e.value.style.chart.target.strokeWidth,
|
|
572
|
+
style: { transition: "x 0.3s ease-in-out" }
|
|
573
|
+
}, null, 8, St)) : u("", !0),
|
|
574
|
+
e.value.style.chart.segments.dataLabels.show ? (s(), n("g", Ot, [
|
|
575
|
+
(s(!0), n(G, null, q(y.value.ticks, (a) => (s(), n("text", {
|
|
576
|
+
x: a.x,
|
|
577
|
+
y: a.y,
|
|
578
|
+
"text-anchor": "middle",
|
|
579
|
+
fill: e.value.style.chart.segments.dataLabels.color,
|
|
580
|
+
"font-size": e.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
581
|
+
"font-weight": e.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
582
|
+
}, T(r(P)(
|
|
583
|
+
e.value.style.chart.segments.dataLabels.formatter,
|
|
584
|
+
a.value,
|
|
585
|
+
r(M)({
|
|
586
|
+
p: e.value.style.chart.segments.dataLabels.prefix,
|
|
587
|
+
v: a.value,
|
|
588
|
+
s: e.value.style.chart.segments.dataLabels.suffix,
|
|
589
|
+
r: e.value.style.chart.segments.dataLabels.rounding
|
|
590
|
+
})
|
|
591
|
+
)), 9, Dt))), 256))
|
|
592
|
+
])) : u("", !0),
|
|
593
|
+
e.value.style.chart.segments.dataLabels.show && e.value.style.chart.segments.ticks.show ? (s(), n("g", Et, [
|
|
594
|
+
(s(!0), n(G, null, q(y.value.ticks, (a) => (s(), n("line", {
|
|
595
|
+
x1: a.x,
|
|
596
|
+
x2: a.x,
|
|
597
|
+
y1: o.value.bottom,
|
|
598
|
+
y2: o.value.bottom + 3,
|
|
599
|
+
stroke: e.value.style.chart.segments.ticks.stroke,
|
|
600
|
+
"stroke-width": 1,
|
|
601
|
+
"stroke-linecap": "round"
|
|
602
|
+
}, null, 8, It))), 256))
|
|
603
|
+
])) : u("", !0)
|
|
604
|
+
])) : u("", !0),
|
|
605
|
+
i(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
606
|
+
], 14, wt)),
|
|
607
|
+
t.$slots.watermark ? (s(), n("div", Tt, [
|
|
608
|
+
i(t.$slots, "watermark", b(p({ isPrinting: r(re) || r(ne) })), void 0, !0)
|
|
609
|
+
])) : u("", !0),
|
|
610
|
+
_("div", {
|
|
611
|
+
id: `legend-bottom-${C.value}`
|
|
612
|
+
}, null, 8, Pt),
|
|
613
|
+
Z.value ? (s(), x(Qe, {
|
|
614
|
+
key: 5,
|
|
615
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${C.value}` : `#legend-bottom-${C.value}`
|
|
616
|
+
}, [
|
|
617
|
+
_("div", {
|
|
618
|
+
ref_key: "chartLegend",
|
|
619
|
+
ref: K
|
|
620
|
+
}, [
|
|
621
|
+
e.value.style.chart.legend.show ? (s(), x(mt, {
|
|
622
|
+
key: 0,
|
|
623
|
+
clickable: !1,
|
|
624
|
+
legendSet: U.value,
|
|
625
|
+
config: Pe.value
|
|
626
|
+
}, {
|
|
627
|
+
item: f(({ legend: a }) => [
|
|
628
|
+
r(w) ? u("", !0) : (s(), n("div", Mt, [
|
|
629
|
+
_("span", zt, T(a.name) + ":", 1),
|
|
630
|
+
_("span", null, T(a.value), 1)
|
|
631
|
+
]))
|
|
632
|
+
]),
|
|
633
|
+
_: 1
|
|
634
|
+
}, 8, ["legendSet", "config"])) : u("", !0),
|
|
635
|
+
i(t.$slots, "legend", { legend: U.value }, void 0, !0)
|
|
636
|
+
], 512)
|
|
637
|
+
], 8, ["to"])) : u("", !0),
|
|
638
|
+
t.$slots.source ? (s(), n("div", {
|
|
639
|
+
key: 6,
|
|
640
|
+
ref_key: "source",
|
|
641
|
+
ref: Q,
|
|
642
|
+
dir: "auto"
|
|
643
|
+
}, [
|
|
644
|
+
i(t.$slots, "source", {}, void 0, !0)
|
|
645
|
+
], 512)) : u("", !0),
|
|
646
|
+
r(w) ? (s(), x(vt, { key: 7 })) : u("", !0)
|
|
647
|
+
], 46, kt));
|
|
648
|
+
}
|
|
649
|
+
}, Rt = /* @__PURE__ */ pt(Ht, [["__scopeId", "data-v-1be1eac4"]]), aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
650
|
+
__proto__: null,
|
|
651
|
+
default: Rt
|
|
652
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
653
|
+
export {
|
|
654
|
+
ta as a,
|
|
655
|
+
aa as b,
|
|
656
|
+
Rt as v
|
|
657
|
+
};
|