vue-data-ui 3.2.2 → 3.2.4
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-BWqgcDpl.js → Arrow-Bb0bGghy.js} +1 -1
- package/dist/{BaseDraggableDialog-Cg4ZF9cb.js → BaseDraggableDialog-CHhZIht2.js} +2 -2
- package/dist/{BaseIcon-e63bhLIi.js → BaseIcon-Bz-1GQhu.js} +10 -3
- package/dist/ColorPicker-B-WUqMoV.js +238 -0
- package/dist/{DataTable-dv6G7Krn.js → DataTable-BvjacRbw.js} +2 -2
- package/dist/{Legend-CVcdvTLM.js → Legend-BpoFJ8fc.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DSmotL8i.js → NonSvgPenAndPaper-l9giyY1Z.js} +3 -3
- package/dist/{PackageVersion-C3Vg-vTM.js → PackageVersion-x4hg0tYe.js} +1 -1
- package/dist/{PenAndPaper-CplrzuG7.js → PenAndPaper-CR8q353D.js} +3 -3
- package/dist/{Shape-D_vfF7sk.js → Shape-C_C_OmqR.js} +1 -1
- package/dist/{Slicer-BO2wNLcR.js → Slicer-BA2GhOmY.js} +63 -63
- package/dist/{SparkTooltip-B82G5-BO.js → SparkTooltip-Dz1PDE_h.js} +1 -1
- package/dist/{Title-DlqxaiIs.js → Title-C__lOIPC.js} +1 -1
- package/dist/{Tooltip-BKqK7z38.js → Tooltip-BOXz8skU.js} +1 -1
- package/dist/{UserOptions-C9IFsUt0.js → UserOptions-DsTgvAok.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 +5 -0
- 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-1edcjS0-.js → dom-to-png-BgvOdfyW.js} +1 -1
- package/dist/{img-A48JwXxj.js → img-DjWwQXVS.js} +1 -1
- package/dist/{lib-CDp2KgIU.js → lib-BEpWEyMm.js} +56 -56
- package/dist/{pdf-BZV8MuXM.js → pdf-YD0ShN36.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +15 -4
- package/dist/types/vue-ui-annotator.d.ts +14 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-C2IsrQqi.js → useAutoSizeLabelsInsideViewbox-BVJkib7z.js} +1 -1
- package/dist/{useNestedProp-Cwtenuui.js → useNestedProp-CLD3Gk9S.js} +17 -13
- package/dist/{usePrinter-DU_Pi3Rq.js → usePrinter-w23K-ezx.js} +2 -2
- package/dist/{vue-data-ui-BHJOTOQY.js → vue-data-ui-boJG_PFN.js} +64 -64
- package/dist/vue-data-ui.js +96 -96
- package/dist/{vue-ui-3d-bar-rxghnZJO.js → vue-ui-3d-bar-HrbA4DmH.js} +6 -6
- package/dist/vue-ui-accordion-Cv7OaVUI.js +78 -0
- package/dist/{vue-ui-age-pyramid-gT_SnI-F.js → vue-ui-age-pyramid-CS5384rT.js} +6 -6
- package/dist/vue-ui-annotator-DOO0qej9.js +2959 -0
- package/dist/{vue-ui-bullet-DREbhLhy.js → vue-ui-bullet-DaauvX3a.js} +15 -15
- package/dist/{vue-ui-candlestick-D4P15Ci1.js → vue-ui-candlestick-DQXu21Mp.js} +33 -33
- package/dist/{vue-ui-carousel-table-C24KX4gd.js → vue-ui-carousel-table-Bh8Vb6ce.js} +4 -4
- package/dist/{vue-ui-chestnut-BbQknrj0.js → vue-ui-chestnut-BgmAUlUz.js} +32 -32
- package/dist/{vue-ui-chord-BM4_D9kI.js → vue-ui-chord-3NX_jwG_.js} +53 -53
- package/dist/{vue-ui-circle-pack-S4Asc9CS.js → vue-ui-circle-pack-Berb37Aa.js} +29 -29
- package/dist/{vue-ui-cursor-F9MXsQ1K.js → vue-ui-cursor-Cbt_0B5t.js} +2 -2
- package/dist/{vue-ui-dashboard-D6LHLdFS.js → vue-ui-dashboard-BzU-96mz.js} +67 -67
- package/dist/{vue-ui-digits-B_8VzLOS.js → vue-ui-digits-ChAz3jSS.js} +2 -2
- package/dist/{vue-ui-donut-B7T8_tP1.js → vue-ui-donut-BBQNmH5y.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DOn-7PnK.js → vue-ui-donut-evolution-BD3_nxd1.js} +55 -55
- package/dist/{vue-ui-dumbbell-Ch66pFUG.js → vue-ui-dumbbell-Ct-YAkFg.js} +7 -7
- package/dist/{vue-ui-flow-DPcsRLJJ.js → vue-ui-flow-CVHjWM9l.js} +63 -63
- package/dist/{vue-ui-funnel-BdcKoacQ.js → vue-ui-funnel-Co79mdnX.js} +36 -36
- package/dist/{vue-ui-galaxy-D3c-O1Op.js → vue-ui-galaxy-D-XFEUfD.js} +46 -46
- package/dist/{vue-ui-gauge-D1zbKzZQ.js → vue-ui-gauge-Cx6eQ1nL.js} +59 -59
- package/dist/{vue-ui-gizmo-CcrANrSX.js → vue-ui-gizmo-D2PHxbS3.js} +3 -3
- package/dist/{vue-ui-heatmap-CcvV9Y14.js → vue-ui-heatmap-D4KCpMN3.js} +7 -7
- package/dist/{vue-ui-history-plot-a0mLhd0L.js → vue-ui-history-plot-Q_Q9g2Es.js} +44 -44
- package/dist/{vue-ui-kpi-BwUpplcm.js → vue-ui-kpi-D7WXGb3K.js} +3 -3
- package/dist/{vue-ui-mini-loader-DBPZOqZA.js → vue-ui-mini-loader-CKMzFSG5.js} +2 -2
- package/dist/{vue-ui-molecule-xsgartoC.js → vue-ui-molecule-Bxs72uED.js} +5 -5
- package/dist/{vue-ui-mood-radar-kl2d5QsL.js → vue-ui-mood-radar-B5wYN9tI.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D9I8_VnP.js → vue-ui-nested-donuts-pt6KriAc.js} +70 -70
- package/dist/{vue-ui-onion-BlxsHavW.js → vue-ui-onion-C8jid2_q.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DHH6lrbW.js → vue-ui-parallel-coordinate-plot-06wFGFFV.js} +35 -35
- package/dist/{vue-ui-quadrant-DyIQZUPC.js → vue-ui-quadrant-B2dS6aSz.js} +8 -8
- package/dist/{vue-ui-quick-chart-Jfr_Ezh9.js → vue-ui-quick-chart-CrkR07qv.js} +55 -55
- package/dist/{vue-ui-radar-BL_dJV12.js → vue-ui-radar-CkAX2pUE.js} +54 -54
- package/dist/{vue-ui-rating-LiragGSU.js → vue-ui-rating-C0Ubexdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-BrR2W_6V.js → vue-ui-relation-circle-eROPsns9.js} +25 -25
- package/dist/{vue-ui-ridgeline-CpaOYplC.js → vue-ui-ridgeline-AkXpQ6zB.js} +27 -27
- package/dist/{vue-ui-rings-B9TGOwFE.js → vue-ui-rings-DEwCnnwC.js} +38 -38
- package/dist/{vue-ui-scatter-Bq4pSRu_.js → vue-ui-scatter-DzojJVhb.js} +49 -49
- package/dist/{vue-ui-skeleton-BlVnOk2o.js → vue-ui-skeleton-Bp8Ao16B.js} +3 -3
- package/dist/{vue-ui-smiley-DyP9gKYe.js → vue-ui-smiley-DxC8rN5b.js} +2 -2
- package/dist/{vue-ui-spark-trend-Pvdqnqia.js → vue-ui-spark-trend-DqKebrx9.js} +22 -22
- package/dist/{vue-ui-sparkbar-DF6eDrxt.js → vue-ui-sparkbar-BShmZ5Vp.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BR7oFSSF.js → vue-ui-sparkgauge-NX3Z_bFF.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CkOGqy2h.js → vue-ui-sparkhistogram-TBxquo5S.js} +4 -4
- package/dist/{vue-ui-sparkline-DF8bLc-F.js → vue-ui-sparkline-Bw4jxjxk.js} +29 -29
- package/dist/{vue-ui-sparkstackbar-DMkn-0FV.js → vue-ui-sparkstackbar-D8YGkrZ9.js} +3 -3
- package/dist/{vue-ui-stackbar-CUXktGA-.js → vue-ui-stackbar-0Kag52U5.js} +38 -38
- package/dist/{vue-ui-strip-plot-ibdxtil6.js → vue-ui-strip-plot-CU0tiCsd.js} +7 -7
- package/dist/{vue-ui-table-BocHahKB.js → vue-ui-table-B4BTGeKs.js} +17 -17
- package/dist/{vue-ui-table-heatmap-B03YDYck.js → vue-ui-table-heatmap-D-iueyM0.js} +13 -13
- package/dist/{vue-ui-table-sparkline-8mOvfeTL.js → vue-ui-table-sparkline-BnqMY5lk.js} +4 -4
- package/dist/{vue-ui-thermometer-Dq_nJLiU.js → vue-ui-thermometer-Ct3Sr0M1.js} +7 -7
- package/dist/{vue-ui-timer-BLveMseW.js → vue-ui-timer-DsAVvm1H.js} +27 -27
- package/dist/{vue-ui-tiremarks-DMG1_YzV.js → vue-ui-tiremarks-DKNpl_8J.js} +6 -6
- package/dist/{vue-ui-treemap-io-J9w5R.js → vue-ui-treemap-Jdea_p8r.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DqnTF6h2.js → vue-ui-vertical-bar-DE42y9ZI.js} +30 -30
- package/dist/{vue-ui-waffle-X9DHHqlw.js → vue-ui-waffle-CrYeU7zd.js} +75 -75
- package/dist/{vue-ui-wheel-BLBwVpV8.js → vue-ui-wheel-B4Be4Ol6.js} +6 -6
- package/dist/{vue-ui-word-cloud-0GXQqY8G.js → vue-ui-word-cloud-9QkLvAgs.js} +28 -28
- package/dist/{vue-ui-world-5OHPVwxv.js → vue-ui-world-DTwfuIIZ.js} +6 -6
- package/dist/{vue-ui-xy-HW0T1CD8.js → vue-ui-xy-BKzt6d8T.js} +9 -9
- package/dist/{vue-ui-xy-canvas-C4FbbXNQ.js → vue-ui-xy-canvas-BGzMXziC.js} +10 -10
- package/package.json +1 -1
- package/dist/ColorPicker-BO4ntExI.js +0 -135
- package/dist/vue-ui-accordion-BWnxgda4.js +0 -76
- package/dist/vue-ui-annotator-BkHDHfHG.js +0 -2182
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineAsyncComponent as W, ref as c, computed as f, onMounted as Ie, toRefs as Pe, watch as ce, onBeforeUnmount as Fe, createElementBlock as n, openBlock as r, unref as o, normalizeStyle as D, normalizeClass as ve, createBlock as x, createCommentVNode as u, createElementVNode as _, createSlots as Te, withCtx as A, renderSlot as m, normalizeProps as F, guardReactiveProps as T, createVNode as He, Fragment as V, renderList as G, toDisplayString as H, Teleport as Me } from "vue";
|
|
2
|
-
import { u as Re, a as he } from "./useNestedProp-
|
|
3
|
-
import { c as ze, t as Ne, m as
|
|
4
|
-
import { u as Ge } from "./usePrinter-
|
|
2
|
+
import { u as Re, a as he } from "./useNestedProp-CLD3Gk9S.js";
|
|
3
|
+
import { c as ze, t as Ne, m as Ue, C as Ee, h as We, a as M, d as R, X as De, o as de, f as ge, g as Ve } from "./lib-BEpWEyMm.js";
|
|
4
|
+
import { u as Ge } from "./usePrinter-w23K-ezx.js";
|
|
5
5
|
import { u as je } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as qe } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
7
|
import { t as Xe } from "./themes-D3cUNuKw.js";
|
|
8
|
-
import Ye from "./Legend-
|
|
9
|
-
import Je from "./Title-
|
|
10
|
-
import Ke from "./img-
|
|
8
|
+
import Ye from "./Legend-BpoFJ8fc.js";
|
|
9
|
+
import Je from "./Title-C__lOIPC.js";
|
|
10
|
+
import Ke from "./img-DjWwQXVS.js";
|
|
11
11
|
import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
|
|
12
12
|
import { u as et, B as tt } from "./BaseScanner-BgWxam9d.js";
|
|
13
13
|
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -40,7 +40,7 @@ const lt = ["id"], st = {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
setup(fe, { expose: me }) {
|
|
43
|
-
const ye = W(() => import("./PackageVersion-
|
|
43
|
+
const ye = W(() => import("./PackageVersion-x4hg0tYe.js")), pe = W(() => import("./PenAndPaper-CR8q353D.js")), be = W(() => import("./UserOptions-DsTgvAok.js")), { vue_ui_bullet: ke } = Re(), O = fe, y = c(null), j = c(null), q = c(0), X = c(null), Y = c(null), we = c(0), C = c(null), B = c(null), J = c(!1), b = f({
|
|
44
44
|
get: () => i.value.hasOwnProperty("value"),
|
|
45
45
|
set: (t) => t
|
|
46
46
|
}), L = f(() => 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:
|
|
@@ -198,9 +198,9 @@ segments: [
|
|
|
198
198
|
if (!L.value) return [];
|
|
199
199
|
const t = [];
|
|
200
200
|
for (let s = 0; s < i.value.segments.length; s += 1)
|
|
201
|
-
t.push(
|
|
201
|
+
t.push(Ue(e.value.style.chart.segments.baseColor, s / i.value.segments.length));
|
|
202
202
|
return t;
|
|
203
|
-
}),
|
|
203
|
+
}), U = f(() => L.value ? {
|
|
204
204
|
min: Math.min(...i.value.segments.map((t) => t.from)),
|
|
205
205
|
max: Math.max(...i.value.segments.map((t) => t.to))
|
|
206
206
|
} : { min: 0, max: 1 }), h = c(Ce());
|
|
@@ -208,7 +208,7 @@ segments: [
|
|
|
208
208
|
t.hasOwnProperty("value") && (S.value = !1), e.value.style.chart.animation.show && !k.value ? le(t.value || 0) : h.value = t.value || 0;
|
|
209
209
|
}, { deep: !0 });
|
|
210
210
|
function Ce() {
|
|
211
|
-
return e.value.style.chart.animation.show && !k.value ?
|
|
211
|
+
return e.value.style.chart.animation.show && !k.value ? U.value.min : i.value.value || 0;
|
|
212
212
|
}
|
|
213
213
|
const ae = c(null);
|
|
214
214
|
function le(t) {
|
|
@@ -224,7 +224,7 @@ segments: [
|
|
|
224
224
|
const d = f(() => {
|
|
225
225
|
if (!L.value)
|
|
226
226
|
return [];
|
|
227
|
-
const t =
|
|
227
|
+
const t = Ee(U.value.min, U.value.max, e.value.style.chart.segments.ticks.divisions), s = t.min >= 0 ? 0 : Math.abs(t.min), a = {
|
|
228
228
|
x: l.value.left + (i.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
|
|
229
229
|
}, g = {
|
|
230
230
|
width: (h.value + s) / (t.max + s) * l.value.chartWidth
|
|
@@ -291,7 +291,7 @@ segments: [
|
|
|
291
291
|
return d.value;
|
|
292
292
|
}
|
|
293
293
|
const P = c(!1);
|
|
294
|
-
function
|
|
294
|
+
function E() {
|
|
295
295
|
P.value = !P.value;
|
|
296
296
|
}
|
|
297
297
|
async function Be({ scale: t = 2 } = {}) {
|
|
@@ -311,7 +311,7 @@ segments: [
|
|
|
311
311
|
getImage: Be,
|
|
312
312
|
generatePdf: ne,
|
|
313
313
|
generateImage: ue,
|
|
314
|
-
toggleAnnotator:
|
|
314
|
+
toggleAnnotator: E,
|
|
315
315
|
toggleFullscreen: ie
|
|
316
316
|
}), (t, s) => (r(), n("div", {
|
|
317
317
|
ref_key: "bulletChart",
|
|
@@ -328,7 +328,7 @@ segments: [
|
|
|
328
328
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
329
329
|
color: e.value.style.chart.color,
|
|
330
330
|
active: P.value,
|
|
331
|
-
onClose:
|
|
331
|
+
onClose: E
|
|
332
332
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : u("", !0),
|
|
333
333
|
$e.value ? (r(), n("div", st, null, 512)) : u("", !0),
|
|
334
334
|
e.value.style.chart.title.text ? (r(), n("div", {
|
|
@@ -381,7 +381,7 @@ segments: [
|
|
|
381
381
|
onToggleFullscreen: ie,
|
|
382
382
|
onGeneratePdf: o(ne),
|
|
383
383
|
onGenerateImage: o(ue),
|
|
384
|
-
onToggleAnnotator:
|
|
384
|
+
onToggleAnnotator: E,
|
|
385
385
|
style: D({
|
|
386
386
|
visibility: o(ee) ? o(N) ? "visible" : "hidden" : "visible"
|
|
387
387
|
})
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as R, computed as g, ref as r, toRefs as
|
|
2
|
-
import { c as Gt, t as Xt,
|
|
1
|
+
import { defineAsyncComponent as R, computed as g, ref as r, toRefs as Et, watch as te, shallowRef as Ke, onMounted as Mt, onBeforeUnmount as Qe, watchEffect as Ut, nextTick as we, createElementBlock as i, openBlock as s, unref as u, normalizeStyle as Ae, normalizeClass as T, createBlock as N, createCommentVNode as p, createElementVNode as y, createVNode as Ce, createSlots as Ze, withCtx as b, renderSlot as m, normalizeProps as B, guardReactiveProps as V, Fragment as E, renderList as M, toDisplayString as Y, resolveDynamicComponent as Wt, mergeProps as Ht, createTextVNode as et } from "vue";
|
|
2
|
+
import { c as Gt, t as Xt, B as le, o as tt, f as U, C as jt, q, d as L, X as Yt, i as ae, s as qt, D as lt, x as Jt, y as Kt, z as Qt, A as Zt } from "./lib-BEpWEyMm.js";
|
|
3
3
|
import { t as at, u as el } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as tl, a as ot } from "./useNestedProp-
|
|
5
|
-
import { u as ll } from "./usePrinter-
|
|
4
|
+
import { u as tl, a as ot } from "./useNestedProp-CLD3Gk9S.js";
|
|
5
|
+
import { u as ll } from "./usePrinter-w23K-ezx.js";
|
|
6
6
|
import { u as al, B as ol } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as sl } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
8
|
import { u as ul } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as il } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { u as nl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
-
import rl from "./img-
|
|
12
|
-
import vl from "./Title-
|
|
11
|
+
import rl from "./img-DjWwQXVS.js";
|
|
12
|
+
import vl from "./Title-C__lOIPC.js";
|
|
13
13
|
import { t as dl } from "./themes-D3cUNuKw.js";
|
|
14
|
-
import { S as cl } from "./Slicer-
|
|
14
|
+
import { S as cl } from "./Slicer-BA2GhOmY.js";
|
|
15
15
|
import { _ as yl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "width", "height"], pl = { key: 1 }, bl = ["id"], ml = ["stop-color"], xl = ["stop-color"], kl = ["stop-color"], wl = ["id"], Al = ["stop-color"], Cl = ["stop-color"], _l = ["stop-color"], zl = { key: 0 }, $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ll = ["x", "y", "font-size", "fill", "font-weight"], Il = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Rl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Fl = ["x", "y", "width", "height", "fill", "rx"], Ol = { key: 0 }, Dl = ["cx", "cy", "r", "fill"], Pl = ["cx", "cy", "r", "fill"], Nl = { key: 1 }, Bl = ["x", "y", "width", "height", "rx", "fill"],
|
|
16
|
+
const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "width", "height"], pl = { key: 1 }, bl = ["id"], ml = ["stop-color"], xl = ["stop-color"], kl = ["stop-color"], wl = ["id"], Al = ["stop-color"], Cl = ["stop-color"], _l = ["stop-color"], zl = { key: 0 }, $l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ll = ["x", "y", "font-size", "fill", "font-weight"], Il = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Rl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], Fl = ["x", "y", "width", "height", "fill", "rx"], Ol = { key: 0 }, Dl = ["cx", "cy", "r", "fill"], Pl = ["cx", "cy", "r", "fill"], Nl = { key: 1 }, Bl = ["x", "y", "width", "height", "rx", "fill"], Vl = ["x", "y", "width", "height", "fill", "rx"], El = ["x", "y", "height", "width", "fill", "rx"], Ml = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], Ul = ["x", "y", "height", "width", "fill", "onMouseover", "onMouseleave", "onClick"], Wl = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
19
|
}, Hl = ["innerHTML"], Gl = {
|
|
@@ -33,8 +33,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
setup(st, { expose: ut }) {
|
|
36
|
-
const it = R(() => import("./BaseIcon-
|
|
37
|
-
...
|
|
36
|
+
const it = R(() => import("./BaseIcon-Bz-1GQhu.js")), nt = R(() => import("./Tooltip-BOXz8skU.js")), rt = R(() => import("./vue-ui-accordion-Cv7OaVUI.js")), vt = R(() => import("./DataTable-BvjacRbw.js")), dt = R(() => import("./PenAndPaper-CR8q353D.js")), ct = R(() => import("./UserOptions-DsTgvAok.js")), yt = R(() => import("./PackageVersion-x4hg0tYe.js")), ht = R(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_candlestick: ft } = tl(), h = st, oe = g(() => !!h.dataset && h.dataset.length), z = r(!1), se = r(null), A = r(Gt()), ue = r(!1), ie = r(""), ne = r(void 0), _e = r(0), $ = r(null), ze = r(null), $e = r(null), Se = r(null), Te = r(null), Le = r(null), J = r(0), Ie = r(0), Re = r(0), re = r(null), H = r(null), G = r(null), ve = r(null), e = r(ye()), { loading: S, FINAL_DATASET: C, manualLoading: de } = al({
|
|
37
|
+
...Et(h),
|
|
38
38
|
FINAL_CONFIG: e,
|
|
39
39
|
prepareConfig: ye,
|
|
40
40
|
callback: () => {
|
|
@@ -169,7 +169,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
169
169
|
Qe(() => {
|
|
170
170
|
I.value && (W.value && I.value.unobserve(W.value), I.value.disconnect());
|
|
171
171
|
});
|
|
172
|
-
const { isPrinting: Ne, isImaging: Be, generatePdf:
|
|
172
|
+
const { isPrinting: Ne, isImaging: Be, generatePdf: Ve, generateImage: Ee } = ll({
|
|
173
173
|
elementId: `vue-ui-candlestick_${A.value}`,
|
|
174
174
|
fileName: e.value.style.title.text || "vue-ui-candlestick",
|
|
175
175
|
options: e.value.userOptions.print
|
|
@@ -361,13 +361,13 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
361
361
|
r: e.value.style.tooltip.roundingValue
|
|
362
362
|
});
|
|
363
363
|
o += `<div>${Rt}: <b>${Bt}</b></div>`;
|
|
364
|
-
const
|
|
364
|
+
const Vt = L({
|
|
365
365
|
p: e.value.style.tooltip.prefix,
|
|
366
366
|
v: ke.value,
|
|
367
367
|
s: e.value.style.tooltip.suffix,
|
|
368
368
|
r: e.value.style.tooltip.roundingValue
|
|
369
369
|
});
|
|
370
|
-
o += `<div>${Ft}: <b>${
|
|
370
|
+
o += `<div>${Ft}: <b>${Vt}</b></div>`, o += "</div>", ie.value = `<div style="text-align:right">${o}</div>`;
|
|
371
371
|
}
|
|
372
372
|
ue.value = !0;
|
|
373
373
|
}
|
|
@@ -531,9 +531,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
531
531
|
}
|
|
532
532
|
return ut({
|
|
533
533
|
getImage: $t,
|
|
534
|
-
generatePdf:
|
|
534
|
+
generatePdf: Ve,
|
|
535
535
|
generateCsv: be,
|
|
536
|
-
generateImage:
|
|
536
|
+
generateImage: Ee,
|
|
537
537
|
toggleTable: je,
|
|
538
538
|
toggleTooltip: Ye,
|
|
539
539
|
toggleAnnotator: me,
|
|
@@ -608,9 +608,9 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
608
608
|
printScale: e.value.userOptions.print.scale,
|
|
609
609
|
tableDialog: e.value.table.useDialog,
|
|
610
610
|
onToggleFullscreen: Xe,
|
|
611
|
-
onGeneratePdf: u(
|
|
611
|
+
onGeneratePdf: u(Ve),
|
|
612
612
|
onGenerateCsv: be,
|
|
613
|
-
onGenerateImage: u(
|
|
613
|
+
onGenerateImage: u(Ee),
|
|
614
614
|
onToggleTable: je,
|
|
615
615
|
onToggleTooltip: Ye,
|
|
616
616
|
onToggleAnnotator: me,
|
|
@@ -621,7 +621,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
621
621
|
t.$slots.menuIcon ? {
|
|
622
622
|
name: "menuIcon",
|
|
623
623
|
fn: b(({ isOpen: l, color: o }) => [
|
|
624
|
-
m(t.$slots, "menuIcon", B(
|
|
624
|
+
m(t.$slots, "menuIcon", B(V({ isOpen: l, color: o })), void 0, !0)
|
|
625
625
|
]),
|
|
626
626
|
key: "0"
|
|
627
627
|
} : void 0,
|
|
@@ -663,14 +663,14 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
663
663
|
t.$slots.optionFullscreen ? {
|
|
664
664
|
name: "optionFullscreen",
|
|
665
665
|
fn: b(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
666
|
-
m(t.$slots, "optionFullscreen", B(
|
|
666
|
+
m(t.$slots, "optionFullscreen", B(V({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
667
667
|
]),
|
|
668
668
|
key: "6"
|
|
669
669
|
} : void 0,
|
|
670
670
|
t.$slots.optionAnnotator ? {
|
|
671
671
|
name: "optionAnnotator",
|
|
672
672
|
fn: b(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
673
|
-
m(t.$slots, "optionAnnotator", B(
|
|
673
|
+
m(t.$slots, "optionAnnotator", B(V({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
674
674
|
]),
|
|
675
675
|
key: "7"
|
|
676
676
|
} : void 0
|
|
@@ -761,7 +761,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
761
761
|
ref_key: "scaleLabels",
|
|
762
762
|
ref: re
|
|
763
763
|
}, [
|
|
764
|
-
(s(!0), i(
|
|
764
|
+
(s(!0), i(E, null, M(xt.value, (l, o) => (s(), i("g", null, [
|
|
765
765
|
l.value >= _.value.min && l.value <= _.value.max ? (s(), i("line", {
|
|
766
766
|
key: 0,
|
|
767
767
|
x1: n.value.left,
|
|
@@ -793,7 +793,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
793
793
|
ref_key: "timeLabelsEls",
|
|
794
794
|
ref: H
|
|
795
795
|
}, [
|
|
796
|
-
(s(!0), i(
|
|
796
|
+
(s(!0), i(E, null, M(kt.value, (l, o) => (s(), i("g", null, [
|
|
797
797
|
y("text", {
|
|
798
798
|
class: "vue-data-ui-time-label",
|
|
799
799
|
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
@@ -809,7 +809,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
809
809
|
ref_key: "timeLabelsEls",
|
|
810
810
|
ref: H
|
|
811
811
|
}, [
|
|
812
|
-
(s(!0), i(
|
|
812
|
+
(s(!0), i(E, null, M(O.value, (l, o) => (s(), i("g", null, [
|
|
813
813
|
y("text", {
|
|
814
814
|
class: "vue-data-ui-time-label",
|
|
815
815
|
transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 1.5}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
|
|
@@ -821,7 +821,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
821
821
|
]))), 256))
|
|
822
822
|
], 512)) : p("", !0),
|
|
823
823
|
y("g", null, [
|
|
824
|
-
(s(!0), i(
|
|
824
|
+
(s(!0), i(E, null, M(w.value, (l, o) => (s(), i("g", null, [
|
|
825
825
|
y("rect", {
|
|
826
826
|
x: l.open.x - e.value.style.layout.wick.strokeWidth / 2,
|
|
827
827
|
y: l.high.y,
|
|
@@ -868,12 +868,12 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
868
868
|
stroke: "none",
|
|
869
869
|
rx: e.value.style.layout.wick.strokeWidth / 2,
|
|
870
870
|
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
871
|
-
}, null, 10,
|
|
871
|
+
}, null, 10, Vl)
|
|
872
872
|
])) : p("", !0)
|
|
873
873
|
]))), 256))
|
|
874
874
|
]),
|
|
875
875
|
y("g", null, [
|
|
876
|
-
(s(!0), i(
|
|
876
|
+
(s(!0), i(E, null, M(w.value, (l, o) => (s(), i("rect", {
|
|
877
877
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
878
878
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
879
879
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -882,8 +882,8 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
882
882
|
rx: e.value.style.layout.candle.borderRadius,
|
|
883
883
|
stroke: "none",
|
|
884
884
|
class: T({ "vue-data-ui-transition": z.value && !u(S) })
|
|
885
|
-
}, null, 10,
|
|
886
|
-
(s(!0), i(
|
|
885
|
+
}, null, 10, El))), 256)),
|
|
886
|
+
(s(!0), i(E, null, M(w.value, (l, o) => (s(), i("rect", {
|
|
887
887
|
x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
|
|
888
888
|
y: l.isBullish ? l.last.y : l.open.y,
|
|
889
889
|
height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
|
|
@@ -898,7 +898,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
898
898
|
}, null, 10, Ml))), 256))
|
|
899
899
|
]),
|
|
900
900
|
y("g", null, [
|
|
901
|
-
(s(!0), i(
|
|
901
|
+
(s(!0), i(E, null, M(w.value, (l, o) => (s(), i("rect", {
|
|
902
902
|
x: n.value.left + o * d.value,
|
|
903
903
|
y: n.value.top,
|
|
904
904
|
height: n.value.height <= 0 ? 1e-4 : n.value.height,
|
|
@@ -913,7 +913,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
913
913
|
m(t.$slots, "svg", { svg: c.value }, void 0, !0)
|
|
914
914
|
], 14, fl)),
|
|
915
915
|
t.$slots.watermark ? (s(), i("div", Wl, [
|
|
916
|
-
m(t.$slots, "watermark", B(
|
|
916
|
+
m(t.$slots, "watermark", B(V({ isPrinting: u(Ne) || u(Be) })), void 0, !0)
|
|
917
917
|
])) : p("", !0),
|
|
918
918
|
e.value.style.zoom.show && oe.value ? (s(), i("div", {
|
|
919
919
|
key: 5,
|
|
@@ -950,7 +950,7 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
950
950
|
onReset: _t
|
|
951
951
|
}, {
|
|
952
952
|
"reset-action": b(({ reset: l }) => [
|
|
953
|
-
m(t.$slots, "reset-action", B(
|
|
953
|
+
m(t.$slots, "reset-action", B(V({ reset: l })), void 0, !0)
|
|
954
954
|
]),
|
|
955
955
|
_: 3
|
|
956
956
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"]))
|
|
@@ -990,10 +990,10 @@ const hl = ["id"], fl = ["xmlns", "aria-label", "viewBox"], gl = ["x", "y", "wid
|
|
|
990
990
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
991
991
|
}, {
|
|
992
992
|
"tooltip-before": b(() => [
|
|
993
|
-
m(t.$slots, "tooltip-before", B(
|
|
993
|
+
m(t.$slots, "tooltip-before", B(V({ ...ge.value })), void 0, !0)
|
|
994
994
|
]),
|
|
995
995
|
"tooltip-after": b(() => [
|
|
996
|
-
m(t.$slots, "tooltip-after", B(
|
|
996
|
+
m(t.$slots, "tooltip-after", B(V({ ...ge.value })), void 0, !0)
|
|
997
997
|
]),
|
|
998
998
|
_: 3
|
|
999
999
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineAsyncComponent as ce, ref as n, useSlots as Se, onMounted as A, computed as R, watch as N, onBeforeUnmount as G, shallowRef as ze, nextTick as fe, createElementBlock as v, openBlock as r, unref as u, createElementVNode as U, createBlock as he, createCommentVNode as S, normalizeClass as Ee, normalizeStyle as h, createTextVNode as D, renderSlot as p, toDisplayString as X, Fragment as j, renderList as J, mergeProps as me, createSlots as He, withCtx as w, normalizeProps as ge, guardReactiveProps as be } from "vue";
|
|
2
|
-
import { u as Ne, a as Ue } from "./useNestedProp-
|
|
3
|
-
import { c as Ve, o as K, f as Q, s as Me, x as Le, y as qe } from "./lib-
|
|
4
|
-
import { u as Ge } from "./usePrinter-
|
|
2
|
+
import { u as Ne, a as Ue } from "./useNestedProp-CLD3Gk9S.js";
|
|
3
|
+
import { c as Ve, o as K, f as Q, s as Me, x as Le, y as qe } from "./lib-BEpWEyMm.js";
|
|
4
|
+
import { u as Ge } from "./usePrinter-w23K-ezx.js";
|
|
5
5
|
import { u as De } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
@@ -25,7 +25,7 @@ const je = ["id"], Je = ["height"], Ke = ["data-cell", "height"], Qe = {
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
setup(T, { expose: ye }) {
|
|
28
|
-
const Ce = ce(() => import("./vue-ui-skeleton-
|
|
28
|
+
const Ce = ce(() => import("./vue-ui-skeleton-Bp8Ao16B.js")), $e = ce(() => import("./UserOptions-DsTgvAok.js")), { vue_ui_carousel_table: Te } = Ne(), i = T, V = n(Ve()), W = n(!1), O = n(!!i.dataset), ke = Se();
|
|
29
29
|
A(() => {
|
|
30
30
|
Y();
|
|
31
31
|
}), A(() => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useCssVars as dt, defineAsyncComponent as q, computed as k, ref as z, toRefs as vt, watch as fe, onMounted as yt, nextTick as be, createElementBlock as o, openBlock as a, unref as u, normalizeStyle as y, normalizeClass as w, createBlock as le, createCommentVNode as h, renderSlot as F, createSlots as Ve, withCtx as P, normalizeProps as ae, guardReactiveProps as oe, createVNode as pe, createElementVNode as n, toDisplayString as c, Fragment as g, renderList as _, createTextVNode as Z, resolveDynamicComponent as ht, mergeProps as ft, withKeys as bt } from "vue";
|
|
2
|
-
import { c as pt, t as gt, b as _t, p as O, e as xt, g as ge, f as se, h as _e, o as mt, X as kt, s as A, i as Be, a as
|
|
3
|
-
import { u as Tt, a as De } from "./useNestedProp-
|
|
2
|
+
import { c as pt, t as gt, b as _t, p as O, e as xt, g as ge, f as se, h as _e, o as mt, X as kt, s as A, i as Be, a as G, d as S, E as Me, n as je, u as wt, v as J, w as R, x as Ct, y as $t } from "./lib-BEpWEyMm.js";
|
|
3
|
+
import { u as Tt, a as De } from "./useNestedProp-CLD3Gk9S.js";
|
|
4
4
|
import { u as zt, B as At } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as St } from "./usePrinter-
|
|
5
|
+
import { u as St } from "./usePrinter-w23K-ezx.js";
|
|
6
6
|
import { u as Nt } from "./useTableResponsive-Cbx-ACcP.js";
|
|
7
7
|
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as It } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import Lt from "./img-
|
|
9
|
+
import Lt from "./img-DjWwQXVS.js";
|
|
10
10
|
import { t as Pt } from "./themes-D3cUNuKw.js";
|
|
11
11
|
import { _ as Ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Rt = ["id"], Vt = {
|
|
@@ -14,7 +14,7 @@ const Rt = ["id"], Vt = {
|
|
|
14
14
|
ref: "noTitle",
|
|
15
15
|
class: "vue-data-ui-no-title-space",
|
|
16
16
|
style: "height:36px; width: 100%;background:transparent"
|
|
17
|
-
}, Bt = ["xmlns", "viewBox"], Mt = ["width", "height"], jt = { key: 1 }, Dt = ["fill", "font-weight", "font-size", "x", "y"], Xt = ["fill", "font-weight", "font-size", "x", "y"],
|
|
17
|
+
}, Bt = ["xmlns", "viewBox"], Mt = ["width", "height"], jt = { key: 1 }, Dt = ["fill", "font-weight", "font-size", "x", "y"], Xt = ["fill", "font-weight", "font-size", "x", "y"], Et = ["id"], Gt = ["stop-color"], Ut = ["stop-color"], Wt = ["id"], Yt = ["stop-color"], Ht = ["stop-color"], qt = ["id"], Kt = ["stop-color"], Zt = ["stop-color"], Jt = ["stop-color"], Qt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = ["stop-color"], al = ["id"], ol = ["stop-color"], sl = ["stop-color"], ul = ["stop-color"], nl = { key: 2 }, rl = ["x", "y", "font-size", "font-weight", "fill"], il = ["x", "y", "font-size", "font-weight", "fill"], cl = ["id"], dl = ["stop-color"], vl = ["stop-color"], yl = ["d", "stroke", "fill"], hl = ["cx", "cy", "r", "fill"], fl = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], bl = { key: 3 }, pl = ["x", "y", "font-size", "fill", "onClick"], gl = { key: 0 }, _l = ["x", "y", "fill", "font-size", "font-weight"], xl = ["x", "y", "height", "width", "fill", "rx", "onClick"], ml = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], kl = { key: 4 }, wl = ["x", "y", "fill", "font-size", "onClick"], Cl = ["d", "stroke"], $l = ["fill", "cx", "cy", "r", "onClick"], Tl = { key: 5 }, zl = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["y", "height", "width"], Nl = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Fl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Il = {
|
|
18
18
|
viewBox: "0 0 20 20",
|
|
19
19
|
height: "16",
|
|
20
20
|
width: "16"
|
|
@@ -22,14 +22,14 @@ const Rt = ["id"], Vt = {
|
|
|
22
22
|
viewBox: "0 0 20 20",
|
|
23
23
|
height: "16",
|
|
24
24
|
width: "16"
|
|
25
|
-
}, Ml = ["fill"], jl = ["cx", "cy", "fill"], Dl = ["d", "stroke"], Xl = ["cx", "cy", "fill"],
|
|
25
|
+
}, Ml = ["fill"], jl = ["cx", "cy", "fill"], Dl = ["d", "stroke"], Xl = ["cx", "cy", "fill"], El = ["d", "stroke"], Gl = ["cx", "cy", "fill"], Ul = ["cx", "cy", "fill"], Wl = ["x", "y", "fill", "font-size", "font-weight"], Yl = ["x", "y", "fill", "font-size", "font-weight"], Hl = ["x", "text-anchor", "y", "fill", "font-size"], ql = ["x", "text-anchor", "y", "fill", "font-size"], Kl = ["x", "text-anchor", "y", "fill", "font-size"], Zl = ["x", "text-anchor", "y", "fill", "font-size"], Jl = ["x", "text-anchor", "y", "fill", "font-size"], Ql = ["x", "y", "font-size", "fill"], ea = ["x", "y", "font-size", "fill"], ta = ["x", "y", "font-size", "fill"], la = {
|
|
26
26
|
key: 4,
|
|
27
27
|
class: "vue-data-ui-watermark"
|
|
28
28
|
}, aa = {
|
|
29
29
|
key: 5,
|
|
30
30
|
ref: "source",
|
|
31
31
|
dir: "auto"
|
|
32
|
-
}, oa = { class: "vue-ui-data-table" }, sa = { key: 0 }, ua = ["data-cell"], na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ra = { key: 0 }, ia = { key: 1 }, ca = ["data-cell"], da = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, va = { key: 0 }, ya = { key: 1 }, ha = ["data-cell"], fa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ba = { key: 0 }, pa = { key: 1 }, ga = ["data-cell"], _a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xa = { key: 0 }, ma = { key: 1 }, ka = ["data-cell"], wa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ca = { key: 0 }, $a = { key: 1 }, Ta = ["data-cell"], za = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Aa = { key: 0 }, Sa = { key: 1 }, Na = ["data-cell"], Fa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ia = { key: 0 }, La = { key: 1 }, Pa = ["data-cell"], Oa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ra = ["data-cell"], Va = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ba = ["data-cell"], Ma = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ja = ["data-cell"], Da = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Xa = ["data-cell"],
|
|
32
|
+
}, oa = { class: "vue-ui-data-table" }, sa = { key: 0 }, ua = ["data-cell"], na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ra = { key: 0 }, ia = { key: 1 }, ca = ["data-cell"], da = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, va = { key: 0 }, ya = { key: 1 }, ha = ["data-cell"], fa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ba = { key: 0 }, pa = { key: 1 }, ga = ["data-cell"], _a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xa = { key: 0 }, ma = { key: 1 }, ka = ["data-cell"], wa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ca = { key: 0 }, $a = { key: 1 }, Ta = ["data-cell"], za = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Aa = { key: 0 }, Sa = { key: 1 }, Na = ["data-cell"], Fa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ia = { key: 0 }, La = { key: 1 }, Pa = ["data-cell"], Oa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ra = ["data-cell"], Va = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ba = ["data-cell"], Ma = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ja = ["data-cell"], Da = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Xa = ["data-cell"], Ea = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ga = {
|
|
33
33
|
__name: "vue-ui-chestnut",
|
|
34
34
|
props: {
|
|
35
35
|
config: {
|
|
@@ -46,11 +46,11 @@ const Rt = ["id"], Vt = {
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
emits: ["selectRoot", "selectBranch", "selectNut"],
|
|
49
|
-
setup(Xe, { expose:
|
|
49
|
+
setup(Xe, { expose: Ee, emit: Ge }) {
|
|
50
50
|
dt((l) => ({
|
|
51
51
|
v3e45980e: l.tdo
|
|
52
52
|
}));
|
|
53
|
-
const xe = q(() => import("./BaseIcon-
|
|
53
|
+
const xe = q(() => import("./BaseIcon-Bz-1GQhu.js")), Ue = q(() => import("./vue-ui-accordion-Cv7OaVUI.js")), We = q(() => import("./PenAndPaper-CR8q353D.js")), Ye = q(() => import("./UserOptions-DsTgvAok.js")), He = q(() => import("./PackageVersion-x4hg0tYe.js")), qe = q(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_chestnut: Ke } = Tt(), M = Xe, me = k(() => !!M.dataset && M.dataset.length), C = z(pt()), U = z(null), ke = z(0), K = z(null), ue = z(null), e = z(ie()), { loading: we, FINAL_DATASET: ne } = zt({
|
|
54
54
|
...vt(M),
|
|
55
55
|
FINAL_CONFIG: e,
|
|
56
56
|
prepareConfig: ie,
|
|
@@ -300,7 +300,7 @@ const Rt = ["id"], Vt = {
|
|
|
300
300
|
function Qe() {
|
|
301
301
|
return N.value;
|
|
302
302
|
}
|
|
303
|
-
const W =
|
|
303
|
+
const W = Ge, et = k(() => N.value.flatMap((l) => l.branches).length), tt = k(() => Math.max(...N.value.map((l) => l.branches.map((i) => i.value).reduce((i, t) => i + t, 0)))), lt = k(() => Math.max(...N.value.flatMap((l) => l.branches.map((i) => i.value)))), Ie = k(() => 256 + r.value.padding.left), D = k(() => N.value.sort((l, i) => i.total - l.total).map((l, i) => {
|
|
304
304
|
const t = T.value.height / N.value.length / 2, s = l.total / tt.value * (t > 64 ? 64 : t);
|
|
305
305
|
return {
|
|
306
306
|
...l,
|
|
@@ -337,7 +337,7 @@ const Rt = ["id"], Vt = {
|
|
|
337
337
|
), W("selectNut", l.breakdown);
|
|
338
338
|
});
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function E() {
|
|
341
341
|
d.value = null, B.value = null, W("selectNut", null);
|
|
342
342
|
}
|
|
343
343
|
function de(l) {
|
|
@@ -470,7 +470,7 @@ const Rt = ["id"], Vt = {
|
|
|
470
470
|
function he() {
|
|
471
471
|
j.value.showTable = !1, ue.value && ue.value.setTableIconState(!1);
|
|
472
472
|
}
|
|
473
|
-
return
|
|
473
|
+
return Ee({
|
|
474
474
|
getData: Qe,
|
|
475
475
|
getImage: rt,
|
|
476
476
|
generatePdf: Se,
|
|
@@ -636,12 +636,12 @@ const Rt = ["id"], Vt = {
|
|
|
636
636
|
n("stop", {
|
|
637
637
|
offset: "0%",
|
|
638
638
|
"stop-color": u(A)(u(Be)(t.color, 0.05), 100 - e.value.style.chart.layout.roots.gradientIntensity)
|
|
639
|
-
}, null, 8,
|
|
639
|
+
}, null, 8, Gt),
|
|
640
640
|
n("stop", {
|
|
641
641
|
offset: "100%",
|
|
642
642
|
"stop-color": t.color
|
|
643
643
|
}, null, 8, Ut)
|
|
644
|
-
], 8,
|
|
644
|
+
], 8, Et))), 256)),
|
|
645
645
|
(a(!0), o(g, null, _(N.value, (t) => (a(), o("linearGradient", {
|
|
646
646
|
x1: "0%",
|
|
647
647
|
y1: "0%",
|
|
@@ -740,7 +740,7 @@ const Rt = ["id"], Vt = {
|
|
|
740
740
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
741
741
|
"text-anchor": "middle",
|
|
742
742
|
onClick: $
|
|
743
|
-
}, c(u(
|
|
743
|
+
}, c(u(G)(
|
|
744
744
|
e.value.style.chart.layout.grandTotal.formatter,
|
|
745
745
|
V.value,
|
|
746
746
|
u(S)({
|
|
@@ -804,7 +804,7 @@ const Rt = ["id"], Vt = {
|
|
|
804
804
|
"font-weight": "bold",
|
|
805
805
|
style: y(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
|
|
806
806
|
onClick: (p) => Le(t)
|
|
807
|
-
}, c(u(
|
|
807
|
+
}, c(u(G)(
|
|
808
808
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
809
809
|
t.total,
|
|
810
810
|
u(S)({
|
|
@@ -864,7 +864,7 @@ const Rt = ["id"], Vt = {
|
|
|
864
864
|
"font-weight": "bold",
|
|
865
865
|
style: y(`cursor:pointer; opacity:${L(t) ? 1 : 0.05}`),
|
|
866
866
|
onClick: (s) => de(t)
|
|
867
|
-
}, c(u(
|
|
867
|
+
}, c(u(G)(
|
|
868
868
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
869
869
|
t.value,
|
|
870
870
|
u(S)({
|
|
@@ -944,7 +944,7 @@ const Rt = ["id"], Vt = {
|
|
|
944
944
|
])),
|
|
945
945
|
u(we) ? h("", !0) : (a(), o(g, { key: 0 }, [
|
|
946
946
|
n("span", null, c(t.name) + ":", 1),
|
|
947
|
-
n("b", null, c(u(
|
|
947
|
+
n("b", null, c(u(G)(
|
|
948
948
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
949
949
|
t.total,
|
|
950
950
|
u(S)({
|
|
@@ -1003,7 +1003,7 @@ const Rt = ["id"], Vt = {
|
|
|
1003
1003
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
1004
1004
|
r: 256,
|
|
1005
1005
|
fill: `url(#nut_underlayer_${C.value})`,
|
|
1006
|
-
onClick:
|
|
1006
|
+
onClick: E,
|
|
1007
1007
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1008
1008
|
}, null, 10, jl),
|
|
1009
1009
|
(a(!0), o(g, null, _(B.value, (t) => (a(), o("g", null, [
|
|
@@ -1034,7 +1034,7 @@ const Rt = ["id"], Vt = {
|
|
|
1034
1034
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
1035
1035
|
r: 118,
|
|
1036
1036
|
fill: e.value.style.chart.backgroundColor,
|
|
1037
|
-
onClick:
|
|
1037
|
+
onClick: E,
|
|
1038
1038
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1039
1039
|
}, null, 10, Xl),
|
|
1040
1040
|
(a(!0), o(g, null, _(B.value, (t) => (a(), o("path", {
|
|
@@ -1042,23 +1042,23 @@ const Rt = ["id"], Vt = {
|
|
|
1042
1042
|
stroke: t.color,
|
|
1043
1043
|
"stroke-width": 64,
|
|
1044
1044
|
fill: "none",
|
|
1045
|
-
onClick:
|
|
1045
|
+
onClick: E,
|
|
1046
1046
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1047
|
-
}, null, 10,
|
|
1047
|
+
}, null, 10, El))), 256)),
|
|
1048
1048
|
n("circle", {
|
|
1049
1049
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1050
1050
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
1051
1051
|
r: 110,
|
|
1052
1052
|
fill: `url(#nutpick_${C.value})`,
|
|
1053
|
-
onClick:
|
|
1053
|
+
onClick: E,
|
|
1054
1054
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1055
|
-
}, null, 10,
|
|
1055
|
+
}, null, 10, Gl),
|
|
1056
1056
|
n("circle", {
|
|
1057
1057
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1058
1058
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
1059
1059
|
r: 64,
|
|
1060
1060
|
fill: e.value.style.chart.backgroundColor,
|
|
1061
|
-
onClick:
|
|
1061
|
+
onClick: E,
|
|
1062
1062
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1063
1063
|
}, null, 10, Ul),
|
|
1064
1064
|
n("text", {
|
|
@@ -1068,7 +1068,7 @@ const Rt = ["id"], Vt = {
|
|
|
1068
1068
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
|
|
1069
1069
|
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
|
|
1070
1070
|
"text-anchor": "middle",
|
|
1071
|
-
onClick:
|
|
1071
|
+
onClick: E,
|
|
1072
1072
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1073
1073
|
}, c(e.value.translations.total), 11, Wl),
|
|
1074
1074
|
n("text", {
|
|
@@ -1078,9 +1078,9 @@ const Rt = ["id"], Vt = {
|
|
|
1078
1078
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
|
|
1079
1079
|
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
|
|
1080
1080
|
"text-anchor": "middle",
|
|
1081
|
-
onClick:
|
|
1081
|
+
onClick: E,
|
|
1082
1082
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1083
|
-
}, c(u(
|
|
1083
|
+
}, c(u(G)(
|
|
1084
1084
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
1085
1085
|
d.value.value,
|
|
1086
1086
|
u(S)({
|
|
@@ -1127,7 +1127,7 @@ const Rt = ["id"], Vt = {
|
|
|
1127
1127
|
v: d.value.breakdown[s].value / d.value.value * 100,
|
|
1128
1128
|
s: "%",
|
|
1129
1129
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1130
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].branchName) + " " + c(u(
|
|
1130
|
+
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].branchName) + " " + c(u(G)(
|
|
1131
1131
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
1132
1132
|
d.value.breakdown[s].value,
|
|
1133
1133
|
u(S)({
|
|
@@ -1178,7 +1178,7 @@ const Rt = ["id"], Vt = {
|
|
|
1178
1178
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1179
1179
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1180
1180
|
onClick: $
|
|
1181
|
-
}, c(t.name) + ": " + c(u(
|
|
1181
|
+
}, c(t.name) + ": " + c(u(G)(
|
|
1182
1182
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
1183
1183
|
t.value,
|
|
1184
1184
|
u(S)({
|
|
@@ -1378,7 +1378,7 @@ const Rt = ["id"], Vt = {
|
|
|
1378
1378
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1379
1379
|
"data-cell": v.value.head[11]
|
|
1380
1380
|
}, [
|
|
1381
|
-
n("div",
|
|
1381
|
+
n("div", Ea, c((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1382
1382
|
], 12, Xa)
|
|
1383
1383
|
], 6))), 256))
|
|
1384
1384
|
])
|
|
@@ -1416,7 +1416,7 @@ const Rt = ["id"], Vt = {
|
|
|
1416
1416
|
u(we) ? (a(), le(At, { key: 7 })) : h("", !0)
|
|
1417
1417
|
], 46, Rt));
|
|
1418
1418
|
}
|
|
1419
|
-
}, lo = /* @__PURE__ */ Ot(
|
|
1419
|
+
}, lo = /* @__PURE__ */ Ot(Ga, [["__scopeId", "data-v-68936f04"]]);
|
|
1420
1420
|
export {
|
|
1421
1421
|
lo as default
|
|
1422
1422
|
};
|