vue-data-ui 3.22.0 → 3.22.2
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-_pDGXl76.js → Arrow-BGhJI-qh.js} +1 -1
- package/dist/{BaseDraggableDialog-O8jn9Lvi.js → BaseDraggableDialog-a9xCKjW-.js} +2 -2
- package/dist/{BaseIcon-CWXbczu_.js → BaseIcon-DEtwcvEH.js} +1 -1
- package/dist/{BaseLegendToggle-CUYal8mC.js → BaseLegendToggle-B-lM0iV1.js} +1 -1
- package/dist/{BaseZoomControls-JwSGzoKi.js → BaseZoomControls-BjjT6vtB.js} +2 -2
- package/dist/{ColorPicker-CCqmzGGo.js → ColorPicker-DMLahA2S.js} +2 -2
- package/dist/{DataTable-G9aclxhk.js → DataTable-DJZgdnIn.js} +2 -2
- package/dist/{Legend-CAStwHdx.js → Legend-BVDhEEsC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BLy8zMox.js → NonSvgPenAndPaper-Dwq_M6Bz.js} +13 -13
- package/dist/{PackageVersion-DxBQctV8.js → PackageVersion-Dx81ZIAL.js} +1 -1
- package/dist/{PenAndPaper-z1woaB1V.js → PenAndPaper-DJIIG6dv.js} +13 -13
- package/dist/{Shape-BubavoqO.js → Shape-C5OvuwII.js} +1 -1
- package/dist/{Slicer-JCOpjPU7.js → Slicer-ClR833cP.js} +2 -2
- package/dist/{SlicerPreview-BA_RDgVn.js → SlicerPreview-CAhqG_ZQ.js} +12 -12
- package/dist/{SparkTooltip-DMFXQmFi.js → SparkTooltip-DTzo8Sah.js} +6 -6
- package/dist/{Title-DH6G8_cZ.js → Title-CVYf1f8m.js} +1 -1
- package/dist/{Tooltip-979Ytd8R.js → Tooltip-BmGCBJuU.js} +1 -1
- package/dist/{UserOptions-rx9hUnOy.js → UserOptions-xqbNpHi2.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.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-dag.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-geo.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-stackline.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-CtV3uxDJ.js → dom-to-png-rjAIVHxa.js} +1 -1
- package/dist/exposedLib-CffbQxjN.js +19 -0
- package/dist/{img-C_RNNswI.js → img-BCAOkqfM.js} +1 -1
- package/dist/{labelUtils-Bycs-017.js → labelUtils-C0D1tjig.js} +1 -1
- package/dist/{lib-AJRHFE5U.js → lib-CXicicWN.js} +155 -126
- package/dist/{package-0oRlvBuX.js → package-CILLITOI.js} +1 -1
- package/dist/{pdf-CdX23zf1.js → pdf-ChYv2jb6.js} +1 -1
- package/dist/{render-common-DSiH7qj-.js → render-common-bMAFQ_qf.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +7 -10
- package/dist/{useAutoSizeLabelsInsideViewbox-kjVKQz36.js → useAutoSizeLabelsInsideViewbox-B4-0yo3K.js} +1 -1
- package/dist/{useConfig-Br1uzq_L.js → useConfig-Bf_EBbe3.js} +4 -1
- package/dist/{useNestedProp-DtcXIg7n.js → useNestedProp-APyFoLCQ.js} +1 -1
- package/dist/{useObjectBindings-CxQ6A5pi.js → useObjectBindings-Byts-nf-.js} +1 -1
- package/dist/{usePrinter-6n2MzVyV.js → usePrinter-Dng0UK-G.js} +2 -2
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-DoViN_4r.js → vue-data-ui-DD-txoS1.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +1757 -0
- package/dist/{vue-ui-accordion-HvsT8_RM.js → vue-ui-accordion-Di_givzQ.js} +4 -4
- package/dist/vue-ui-age-pyramid-CTwMfsqS.js +1238 -0
- package/dist/{vue-ui-annotator-7s5ly6XJ.js → vue-ui-annotator-tRkLFMQ9.js} +60 -60
- package/dist/{vue-ui-bullet-B-bWGz6d.js → vue-ui-bullet-9gtGJaGb.js} +23 -23
- package/dist/{vue-ui-bump-DM-hF-AK.js → vue-ui-bump-BJ5O8Mps.js} +400 -400
- package/dist/{vue-ui-candlestick-BfOvntqR.js → vue-ui-candlestick-CJ_VVYbJ.js} +50 -50
- package/dist/vue-ui-carousel-table-8s8BSy-K.js +455 -0
- package/dist/vue-ui-chestnut-D3-ck2h2.js +2010 -0
- package/dist/vue-ui-chord-1BitQtEw.js +1391 -0
- package/dist/{vue-ui-circle-pack-BBaRLELd.js → vue-ui-circle-pack-DVMhDFKU.js} +44 -44
- package/dist/{vue-ui-cursor-DWlKtcab.js → vue-ui-cursor-D7yh10hX.js} +61 -61
- package/dist/{vue-ui-dag-BAKU4jBj.js → vue-ui-dag--LFEAAf_.js} +18 -18
- package/dist/{vue-ui-dashboard-DE4R55nU.js → vue-ui-dashboard-COeO878g.js} +70 -70
- package/dist/{vue-ui-digits-B416Mj46.js → vue-ui-digits-C50FVr7C.js} +4 -4
- package/dist/{vue-ui-donut-BuGSF4pM.js → vue-ui-donut-BzKXqQA2.js} +160 -160
- package/dist/{vue-ui-donut-BugVAUHv.js → vue-ui-donut-NHjQzFO5.js} +474 -474
- package/dist/vue-ui-donut-evolution-lPkwit2C.js +1510 -0
- package/dist/vue-ui-dumbbell-hlEfvbbf.js +1530 -0
- package/dist/{vue-ui-flow-BoEP6hmg.js → vue-ui-flow-Bg_OSszc.js} +43 -43
- package/dist/vue-ui-funnel-B_bK0jJB.js +777 -0
- package/dist/{vue-ui-galaxy-CB5F8Q-u.js → vue-ui-galaxy-WVCUzcYc.js} +301 -301
- package/dist/vue-ui-gauge-Cqeko0wA.js +920 -0
- package/dist/{vue-ui-geo-BAy4kNv-.js → vue-ui-geo-DtzXRvmx.js} +22 -22
- package/dist/{vue-ui-gizmo-DjA8cqcl.js → vue-ui-gizmo-hIFd7qck.js} +4 -4
- package/dist/{vue-ui-heatmap-CMlxUI7Q.js → vue-ui-heatmap-yPlwc3l_.js} +95 -95
- package/dist/vue-ui-history-plot-BGmcDg2w.js +1554 -0
- package/dist/{vue-ui-horizontal-bar-XgzEVwOK.js → vue-ui-horizontal-bar-CJciNHpT.js} +264 -264
- package/dist/{vue-ui-kpi-B5Lu5U1S.js → vue-ui-kpi-DmSe1QGb.js} +4 -4
- package/dist/{vue-ui-mini-loader-CyYpLcrt.js → vue-ui-mini-loader-CqxI6DwN.js} +3 -3
- package/dist/{vue-ui-molecule-DzpgAmZn.js → vue-ui-molecule-w-94Uktn.js} +181 -181
- package/dist/{vue-ui-mood-radar-DMgYQtOw.js → vue-ui-mood-radar-B3OGWGHR.js} +29 -29
- package/dist/{vue-ui-nested-donuts-BHX0QqvR.js → vue-ui-nested-donuts-Dv_yE5EV.js} +211 -211
- package/dist/{vue-ui-onion-CYh7tdS0.js → vue-ui-onion-BQbI0Vxd.js} +34 -34
- package/dist/{vue-ui-parallel-coordinate-plot-BTaG92hV.js → vue-ui-parallel-coordinate-plot-ColST3Jj.js} +40 -40
- package/dist/vue-ui-quadrant-BB7qdXK0.js +1978 -0
- package/dist/{vue-ui-quick-chart-CHSUGLTx.js → vue-ui-quick-chart-CGDeo3Fx.js} +358 -358
- package/dist/vue-ui-radar-DqDn14DL.js +1281 -0
- package/dist/{vue-ui-rating-BoBLJm55.js → vue-ui-rating-ChDwpol2.js} +34 -34
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +924 -0
- package/dist/{vue-ui-ridgeline-q_UhtM4M.js → vue-ui-ridgeline-Cq8z57xB.js} +219 -219
- package/dist/{vue-ui-rings-VOjUZu2b.js → vue-ui-rings-Ds-sgNPK.js} +36 -36
- package/dist/{vue-ui-scatter-DETMofE2.js → vue-ui-scatter-BgOVUzQ3.js} +75 -75
- package/dist/{vue-ui-skeleton-D36VILNm.js → vue-ui-skeleton-DJ5KAbfV.js} +42 -42
- package/dist/{vue-ui-smiley-CPbUSUTQ.js → vue-ui-smiley-fFrNX-Gl.js} +17 -17
- package/dist/{vue-ui-spark-trend-XpEbgNeK.js → vue-ui-spark-trend-D6OBWxmg.js} +92 -92
- package/dist/{vue-ui-sparkbar-Dq1hnBhL.js → vue-ui-sparkbar-CtCP8O44.js} +78 -78
- package/dist/{vue-ui-sparkgauge-CbAakuhB.js → vue-ui-sparkgauge-CZDkyViI.js} +38 -38
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +560 -0
- package/dist/vue-ui-sparkline-CJKE7Xcl.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-OprYrGQQ.js → vue-ui-sparkstackbar-BSV0M-2u.js} +162 -162
- package/dist/{vue-ui-stackbar-Bt0FKlf7.js → vue-ui-stackbar-pnlYCnTj.js} +67 -67
- package/dist/vue-ui-stackline-DS_MPmc1.js +2398 -0
- package/dist/{vue-ui-strip-plot-DdzflSOm.js → vue-ui-strip-plot-DSKOrJZX.js} +49 -49
- package/dist/{vue-ui-table-BZbLau0d.js → vue-ui-table-c1FPEwLM.js} +87 -87
- package/dist/{vue-ui-table-heatmap-DX80uRHe.js → vue-ui-table-heatmap-CMQJXnP8.js} +17 -17
- package/dist/vue-ui-table-sparkline-CAS9Pk60.js +712 -0
- package/dist/vue-ui-thermometer-w3eeJv9s.js +763 -0
- package/dist/{vue-ui-timer-smc39MBP.js → vue-ui-timer-CSP48eS-.js} +6 -6
- package/dist/{vue-ui-tiremarks-MwPUc9H4.js → vue-ui-tiremarks-DJvXj1P3.js} +19 -19
- package/dist/vue-ui-treemap-BaOMXTR1.js +1587 -0
- package/dist/vue-ui-waffle-Bo22Ph8n.js +1362 -0
- package/dist/{vue-ui-wheel-VQ5Sc_Kt.js → vue-ui-wheel-CbL52G-w.js} +51 -51
- package/dist/vue-ui-word-cloud-BqOCyp7c.js +1723 -0
- package/dist/{vue-ui-world-Dq9I3omC.js → vue-ui-world-BkjzCcVh.js} +445 -445
- package/dist/{vue-ui-xy-BRITAMZZ.js → vue-ui-xy-CVDNhnDY.js} +162 -162
- package/dist/{vue-ui-xy-D4D9tjiY.js → vue-ui-xy-DuwLRfr4.js} +537 -534
- package/dist/{vue-ui-xy-canvas-CYQF5hVa.js → vue-ui-xy-canvas-CXqGVMeQ.js} +65 -65
- package/package.json +2 -2
- package/dist/exposedLib-BJbE_A8E.js +0 -19
- package/dist/vue-ui-3d-bar-BUEcrSrc.js +0 -1757
- package/dist/vue-ui-age-pyramid-Zw5otO78.js +0 -1238
- package/dist/vue-ui-carousel-table-CrmVyfym.js +0 -455
- package/dist/vue-ui-chestnut-BQq65pNh.js +0 -2010
- package/dist/vue-ui-chord-BA2jFRMP.js +0 -1391
- package/dist/vue-ui-donut-evolution-C6fXP7QH.js +0 -1510
- package/dist/vue-ui-dumbbell-1K5kOirf.js +0 -1530
- package/dist/vue-ui-funnel-CheSqvyj.js +0 -777
- package/dist/vue-ui-gauge-Cjtovl1s.js +0 -920
- package/dist/vue-ui-history-plot-PkrNUPpp.js +0 -1554
- package/dist/vue-ui-quadrant-C00cEk5o.js +0 -1978
- package/dist/vue-ui-radar-jNxRTIur.js +0 -1281
- package/dist/vue-ui-relation-circle-Ne_rI2jS.js +0 -924
- package/dist/vue-ui-sparkhistogram-DpPjIA7n.js +0 -560
- package/dist/vue-ui-sparkline-DLay6Hog.js +0 -1513
- package/dist/vue-ui-stackline-CrUTz-k1.js +0 -2398
- package/dist/vue-ui-table-sparkline-C3_J575b.js +0 -707
- package/dist/vue-ui-thermometer-Bo32hwAO.js +0 -763
- package/dist/vue-ui-treemap-BNG7Zc04.js +0 -1587
- package/dist/vue-ui-waffle-D-9Ny9vN.js +0 -1362
- package/dist/vue-ui-word-cloud-BqsUdsCY.js +0 -1656
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as a } from "./useConfig-
|
|
4
|
-
import { t as o } from "./usePrinter-
|
|
5
|
-
import { t as s } from "./dom-to-png-
|
|
2
|
+
import { H as t, Ot as n, Ut as r, b as i } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as a } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { t as o } from "./usePrinter-Dng0UK-G.js";
|
|
5
|
+
import { t as s } from "./dom-to-png-rjAIVHxa.js";
|
|
6
6
|
import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
7
|
-
import { t as l } from "./BaseIcon-
|
|
8
|
-
import { t as ee } from "./vue-ui-accordion-
|
|
9
|
-
import { t as te } from "./ColorPicker-
|
|
7
|
+
import { t as l } from "./BaseIcon-DEtwcvEH.js";
|
|
8
|
+
import { t as ee } from "./vue-ui-accordion-Di_givzQ.js";
|
|
9
|
+
import { t as te } from "./ColorPicker-DMLahA2S.js";
|
|
10
10
|
import { Fragment as ne, Teleport as re, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, nextTick as ie, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as ae, onMounted as oe, openBlock as y, ref as b, renderList as se, renderSlot as ce, toDisplayString as x, unref as le, vModelCheckbox as ue, vModelText as de, watch as fe, withCtx as S, withDirectives as pe, withModifiers as me } from "vue";
|
|
11
11
|
//#region src/registerAnnotatorShortcuts.js
|
|
12
12
|
function he(e) {
|
|
@@ -299,7 +299,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
299
299
|
},
|
|
300
300
|
emits: ["toggleOpenState", "saveAnnotations"],
|
|
301
301
|
setup(e, { emit: c }) {
|
|
302
|
-
let re = e, ge = c, _e = b(
|
|
302
|
+
let re = e, ge = c, _e = b(t()), { isImaging: vt, generateImage: yt } = o({
|
|
303
303
|
elementId: _e.value,
|
|
304
304
|
fileName: _t
|
|
305
305
|
}), w = b(void 0), bt = b(1), T = b({
|
|
@@ -334,7 +334,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
334
334
|
height: 12,
|
|
335
335
|
width: 12
|
|
336
336
|
}
|
|
337
|
-
}), Pt = b("#1A1A1A"), V = b(!1), Ft = b(1), It = b(void 0), Lt = b(1), Rt = b(1), H = b("start"), zt = b(20), Bt = b(100), Vt =
|
|
337
|
+
}), Pt = b("#1A1A1A"), V = b(!1), Ft = b(1), It = b(void 0), Lt = b(1), Rt = b(1), H = b("start"), zt = b(20), Bt = b(100), Vt = n, Ht = b(null), U = b(!1), W = b(null), G = b({
|
|
338
338
|
x: 0,
|
|
339
339
|
y: 0
|
|
340
340
|
}), Ut = b(null), K = b([]), Wt = b(!1), Gt = b(null), Kt = b({
|
|
@@ -931,7 +931,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
931
931
|
if (!I.value?.id) return;
|
|
932
932
|
let e = {
|
|
933
933
|
...I.value,
|
|
934
|
-
id: `${I.value.id}_copy_${
|
|
934
|
+
id: `${I.value.id}_copy_${t()}`,
|
|
935
935
|
x: I.value.x - 100 < 0 ? 1 : I.value.x - 100,
|
|
936
936
|
y: I.value.y - 100 < 0 ? 1 : I.value.y - 100
|
|
937
937
|
};
|
|
@@ -946,10 +946,10 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
946
946
|
function gn(e) {
|
|
947
947
|
if (k.value) return;
|
|
948
948
|
e.preventDefault(), e.stopPropagation(), hn(), P.value ? (F.value = !0, V.value = !0) : (F.value = !1, V.value = !1, P.value = !1);
|
|
949
|
-
let
|
|
949
|
+
let n = `text_${t()}`;
|
|
950
950
|
if (F.value) {
|
|
951
951
|
K.value?.begin(), z.value.push({
|
|
952
|
-
id:
|
|
952
|
+
id: n,
|
|
953
953
|
type: "text",
|
|
954
954
|
lines: 0,
|
|
955
955
|
x: L.value.x,
|
|
@@ -1087,42 +1087,42 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1087
1087
|
diffEndX: t.endX ? t.endX - e.x : 0,
|
|
1088
1088
|
diffEndY: t.endY ? t.endY - e.y : 0
|
|
1089
1089
|
})), e.source = R.value, R.value.length > 1) {
|
|
1090
|
-
let
|
|
1091
|
-
z.value = z.value.filter((e) => !
|
|
1090
|
+
let n = Z(R.value).map((e) => e.oldId);
|
|
1091
|
+
z.value = z.value.filter((e) => !n.includes(e.id)), R.value.forEach((n) => {
|
|
1092
1092
|
switch (!0) {
|
|
1093
|
-
case
|
|
1093
|
+
case n.type === "circle":
|
|
1094
1094
|
e.content += `
|
|
1095
1095
|
<circle
|
|
1096
|
-
id="${
|
|
1097
|
-
cx="${
|
|
1098
|
-
cy="${
|
|
1099
|
-
r="${
|
|
1100
|
-
fill="${
|
|
1101
|
-
stroke="${
|
|
1102
|
-
stroke-width="${
|
|
1103
|
-
style="${
|
|
1096
|
+
id="${n.id}"
|
|
1097
|
+
cx="${n.x}"
|
|
1098
|
+
cy="${n.y}"
|
|
1099
|
+
r="${n.circleRadius ? n.circleRadius : Number.MIN_VALUE}"
|
|
1100
|
+
fill="${n.isFilled ? n.color + n.alpha : "rgba(255,255,255,0.001)"}"
|
|
1101
|
+
stroke="${n.color + n.alpha}"
|
|
1102
|
+
stroke-width="${n.strokeWidth}"
|
|
1103
|
+
style="${n.isDash ? `stroke-dasharray: ${n.strokeWidth * 3}` : ""}"
|
|
1104
1104
|
/>
|
|
1105
1105
|
`;
|
|
1106
1106
|
break;
|
|
1107
|
-
case
|
|
1107
|
+
case n.type === "rect":
|
|
1108
1108
|
e.content += `
|
|
1109
1109
|
<rect
|
|
1110
|
-
id="${M.value ? "" :
|
|
1111
|
-
x="${
|
|
1112
|
-
y="${
|
|
1113
|
-
fill="${
|
|
1114
|
-
height="${
|
|
1115
|
-
width="${
|
|
1116
|
-
stroke="${
|
|
1117
|
-
stroke-width="${
|
|
1118
|
-
style="rx:1 !important; ry:1 !important; ${
|
|
1110
|
+
id="${M.value ? "" : n.id}"
|
|
1111
|
+
x="${n.x}"
|
|
1112
|
+
y="${n.y}"
|
|
1113
|
+
fill="${n.isFilled ? n.color + n.alpha : "rgba(255,255,255,0.001)"}"
|
|
1114
|
+
height="${n.rectHeight}"
|
|
1115
|
+
width="${n.rectWidth}"
|
|
1116
|
+
stroke="${n.color + n.alpha}"
|
|
1117
|
+
stroke-width="${n.strokeWidth}"
|
|
1118
|
+
style="rx:1 !important; ry:1 !important; ${n.isDash ? `stroke-dasharray: ${n.strokeWidth * 3}` : ""}"
|
|
1119
1119
|
/>
|
|
1120
1120
|
`;
|
|
1121
1121
|
break;
|
|
1122
|
-
case
|
|
1123
|
-
let r =
|
|
1122
|
+
case n.type === "arrow":
|
|
1123
|
+
let r = n.strokeWidth > 3 ? 5 : 10, i = n.strokeWidth > 3 ? 2.5 : 5, a = t();
|
|
1124
1124
|
e.content += `
|
|
1125
|
-
<g id="${
|
|
1125
|
+
<g id="${n.id}">
|
|
1126
1126
|
<defs>
|
|
1127
1127
|
<marker
|
|
1128
1128
|
id="${a}"
|
|
@@ -1134,31 +1134,31 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1134
1134
|
>
|
|
1135
1135
|
<polygon
|
|
1136
1136
|
points="0 0,${r} ${i}, 0 ${r}"
|
|
1137
|
-
fill="${
|
|
1137
|
+
fill="${n.color}"
|
|
1138
1138
|
/>
|
|
1139
1139
|
</marker>
|
|
1140
1140
|
</defs>
|
|
1141
1141
|
|
|
1142
1142
|
<path
|
|
1143
|
-
style="stroke-linecap: round !important; ${
|
|
1144
|
-
stroke="${
|
|
1145
|
-
id="${
|
|
1146
|
-
d="M${
|
|
1147
|
-
stroke-width="${
|
|
1143
|
+
style="stroke-linecap: round !important; ${n.isDash ? `stroke-dasharray: ${n.strokeWidth * 3}` : ""}"
|
|
1144
|
+
stroke="${n.color}"
|
|
1145
|
+
id="${n.id}"
|
|
1146
|
+
d="M${n.x},${n.y} ${n.endX},${n.endY}"
|
|
1147
|
+
stroke-width="${n.strokeWidth}"
|
|
1148
1148
|
marker-end="url(#${a})"
|
|
1149
1149
|
/>
|
|
1150
1150
|
</g>
|
|
1151
1151
|
`;
|
|
1152
1152
|
break;
|
|
1153
|
-
case
|
|
1154
|
-
let o =
|
|
1153
|
+
case n.type === "text":
|
|
1154
|
+
let o = n.textContent.split(""), s = [];
|
|
1155
1155
|
for (let e = 0; e < o.length; e += 1) s.push(`
|
|
1156
|
-
${
|
|
1157
|
-
<tspan id="${
|
|
1156
|
+
${n.isBulletTextMode ? `<tspan x="${n.x - n.fontSize}" y="${n.y + n.fontSize * e}" id="${n.id}" font-size="${n.fontSize / 2}">⬤</tspan>` : ""}
|
|
1157
|
+
<tspan id="${n.id}" x="${n.x}" y="${n.y + n.fontSize * e}">
|
|
1158
1158
|
${o[e]}
|
|
1159
1159
|
</tspan>`);
|
|
1160
1160
|
e.content += `
|
|
1161
|
-
${nn(
|
|
1161
|
+
${nn(n, s, n.isBulletTextMode)}
|
|
1162
1162
|
`;
|
|
1163
1163
|
break;
|
|
1164
1164
|
default: break;
|
|
@@ -1168,15 +1168,15 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1168
1168
|
}
|
|
1169
1169
|
function Cn(e) {
|
|
1170
1170
|
e.content = "";
|
|
1171
|
-
let
|
|
1171
|
+
let n = e.x || 0, r = e.y || 0;
|
|
1172
1172
|
(e.source || []).forEach((i) => {
|
|
1173
1173
|
switch (i.type) {
|
|
1174
1174
|
case "circle": {
|
|
1175
|
-
let
|
|
1175
|
+
let t = n + i.diffX, a = r + i.diffY;
|
|
1176
1176
|
e.content += `
|
|
1177
1177
|
<circle
|
|
1178
1178
|
id="${i.id}"
|
|
1179
|
-
cx="${
|
|
1179
|
+
cx="${t}"
|
|
1180
1180
|
cy="${a}"
|
|
1181
1181
|
r="${i.circleRadius ? i.circleRadius : Number.MIN_VALUE}"
|
|
1182
1182
|
fill="${i.isFilled ? i.color + i.alpha : "rgba(255,255,255,0.001)"}"
|
|
@@ -1188,11 +1188,11 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1188
1188
|
break;
|
|
1189
1189
|
}
|
|
1190
1190
|
case "rect": {
|
|
1191
|
-
let
|
|
1191
|
+
let t = n + i.diffX, a = r + i.diffY;
|
|
1192
1192
|
e.content += `
|
|
1193
1193
|
<rect
|
|
1194
1194
|
id="${M.value ? "" : i.id}"
|
|
1195
|
-
x="${
|
|
1195
|
+
x="${t}"
|
|
1196
1196
|
y="${a}"
|
|
1197
1197
|
fill="${i.isFilled ? i.color + i.alpha : "rgba(255,255,255,0.001)"}"
|
|
1198
1198
|
height="${i.rectHeight}"
|
|
@@ -1205,7 +1205,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1205
1205
|
break;
|
|
1206
1206
|
}
|
|
1207
1207
|
case "arrow": {
|
|
1208
|
-
let a =
|
|
1208
|
+
let a = n + i.diffX, o = r + i.diffY, s = n + i.diffEndX, c = r + i.diffEndY, l = i.strokeWidth > 3 ? 5 : 10, ee = i.strokeWidth > 3 ? 2.5 : 5, te = `m_${i.id}_${t()}`;
|
|
1209
1209
|
e.content += `
|
|
1210
1210
|
<g id="${i.id}">
|
|
1211
1211
|
<defs>
|
|
@@ -1232,9 +1232,9 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1232
1232
|
break;
|
|
1233
1233
|
}
|
|
1234
1234
|
case "text": {
|
|
1235
|
-
let
|
|
1236
|
-
${i.isBulletTextMode ? `<tspan x="${
|
|
1237
|
-
<tspan id="${i.id}" x="${
|
|
1235
|
+
let t = (i.textContent || "").split("").map((e, t) => `
|
|
1236
|
+
${i.isBulletTextMode ? `<tspan x="${n + i.diffX - i.fontSize}" y="${r + i.diffY + i.fontSize * t}" id="${i.id}" font-size="${i.fontSize / 2}">⬤</tspan>` : ""}
|
|
1237
|
+
<tspan id="${i.id}" x="${n + i.diffX}" y="${r + i.diffY + i.fontSize * t}">
|
|
1238
1238
|
${e}
|
|
1239
1239
|
</tspan>
|
|
1240
1240
|
`).join("");
|
|
@@ -1243,7 +1243,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1243
1243
|
<text
|
|
1244
1244
|
style="user-select:none; height:100px;"
|
|
1245
1245
|
id="${i.id}"
|
|
1246
|
-
x="${
|
|
1246
|
+
x="${n + i.diffX}"
|
|
1247
1247
|
y="${r + i.diffY}"
|
|
1248
1248
|
text-anchor="${i.textAlign}"
|
|
1249
1249
|
font-size="${i.fontSize}"
|
|
@@ -1251,7 +1251,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1251
1251
|
font-weight="${i.isBold ? "bold" : "normal"}"
|
|
1252
1252
|
font-style="${i.isItalic ? "italic" : "normal"}"
|
|
1253
1253
|
text-decoration="${i.isUnderline ? "underline" : "none"}">
|
|
1254
|
-
${
|
|
1254
|
+
${t}
|
|
1255
1255
|
</text>
|
|
1256
1256
|
</g>
|
|
1257
1257
|
`;
|
|
@@ -1270,7 +1270,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1270
1270
|
x: L.value.x,
|
|
1271
1271
|
y: L.value.y
|
|
1272
1272
|
};
|
|
1273
|
-
let e = `${N.value ? "group" : w.value}_${
|
|
1273
|
+
let e = `${N.value ? "group" : w.value}_${t()}`;
|
|
1274
1274
|
switch (!0) {
|
|
1275
1275
|
case w.value === "arrow":
|
|
1276
1276
|
z.value.push({
|
|
@@ -1332,7 +1332,7 @@ var ge = { class: "teleport-tooltip__inner" }, C = /*#__PURE__*/ c({
|
|
|
1332
1332
|
case w.value === "group":
|
|
1333
1333
|
z.value.push({
|
|
1334
1334
|
alpha: 1,
|
|
1335
|
-
id: `group_${
|
|
1335
|
+
id: `group_${t()}`,
|
|
1336
1336
|
x: L.value.x,
|
|
1337
1337
|
y: L.value.y,
|
|
1338
1338
|
isFilled: !1,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as ae } from "./useConfig-
|
|
4
|
-
import { t as oe } from "./usePrinter-
|
|
2
|
+
import { Ct as t, Et as n, G as r, H as i, Ut as a, X as ee, ct as te, h as ne, i as o, t as re, y as ie } from "./lib-CXicicWN.js";
|
|
3
|
+
import { t as ae } from "./useConfig-Bf_EBbe3.js";
|
|
4
|
+
import { t as oe } from "./usePrinter-Dng0UK-G.js";
|
|
5
5
|
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as le } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as s } from "./useNestedProp-
|
|
7
|
+
import { t as s } from "./useNestedProp-APyFoLCQ.js";
|
|
8
8
|
import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as de } from "./img-
|
|
10
|
-
import { n as fe } from "./Title-
|
|
9
|
+
import { t as de } from "./img-BCAOkqfM.js";
|
|
10
|
+
import { n as fe } from "./Title-CVYf1f8m.js";
|
|
11
11
|
import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
12
|
import { c as me } from "./canvas-lib-BOP_HS11.js";
|
|
13
13
|
import { t as he } from "./useResponsive-BfnK0KxU.js";
|
|
14
14
|
import { t as ge } from "./useUserOptionState-DK-_1ddE.js";
|
|
15
15
|
import { t as _e } from "./useChartAccessibility-DYqac8yF.js";
|
|
16
|
-
import { t as ve } from "./Legend-
|
|
16
|
+
import { t as ve } from "./Legend-BVDhEEsC.js";
|
|
17
17
|
import { t as ye } from "./vue_ui_bullet-ClzdLoOv.js";
|
|
18
18
|
import { Fragment as c, Teleport as be, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as xe, createVNode as Se, defineAsyncComponent as m, guardReactiveProps as h, nextTick as Ce, normalizeClass as we, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Te, onMounted as Ee, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, toRefs as De, unref as C, watch as Oe, withCtx as w } from "vue";
|
|
19
19
|
//#region src/components/vue-ui-bullet.vue
|
|
@@ -103,7 +103,7 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
103
103
|
},
|
|
104
104
|
emits: ["copyAlt"],
|
|
105
105
|
setup(e, { expose: pe, emit: ke }) {
|
|
106
|
-
let T = m(() => import("./PackageVersion-
|
|
106
|
+
let T = m(() => import("./PackageVersion-Dx81ZIAL.js").then((e) => e.t)), Ze = m(() => import("./PenAndPaper-DJIIG6dv.js").then((e) => e.t)), Qe = m(() => import("./UserOptions-xqbNpHi2.js").then((e) => e.n)), { vue_ui_bullet: $e } = ae(), { isThemeValid: et, warnInvalidTheme: tt } = ue(), E = e, nt = ke, D = y(null), rt = y(null), it = y(0), at = y(null), ot = y(null), st = y(0), O = y(null), k = y(null), ct = y(!1), A = y(!1), j = y(!1), M = l({
|
|
107
107
|
get: () => R.value.hasOwnProperty("value"),
|
|
108
108
|
set: (e) => e
|
|
109
109
|
}), N = l(() => R.value.segments ? Array.isArray(R.value.segments) ? R.value.segments.length ? !0 : (console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n]\n "), M.value = !1, !1) : (console.warn("VueUiBullet: dataset segments must be an array of objects with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n] \n "), M.value = !1, !1) : (console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n]\n "), M.value = !1, !1)), lt = l(() => !!I.value.debug), ut = l(() => {
|
|
@@ -116,7 +116,7 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
116
116
|
};
|
|
117
117
|
});
|
|
118
118
|
function dt() {
|
|
119
|
-
if (
|
|
119
|
+
if (n(R.value) ? (ee({
|
|
120
120
|
componentName: "VueUiBullet",
|
|
121
121
|
type: "dataset",
|
|
122
122
|
debug: lt.value
|
|
@@ -137,7 +137,7 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
137
137
|
debug: lt.value
|
|
138
138
|
});
|
|
139
139
|
});
|
|
140
|
-
}) : (M.value = !1, z.value = !0),
|
|
140
|
+
}) : (M.value = !1, z.value = !0), n(R.value) || (z.value = I.value.loading), I.value.responsive) {
|
|
141
141
|
let e = me(() => {
|
|
142
142
|
let { width: e, height: t } = he({
|
|
143
143
|
chart: D.value,
|
|
@@ -157,7 +157,7 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
157
157
|
Ee(() => {
|
|
158
158
|
ct.value = !0, dt();
|
|
159
159
|
});
|
|
160
|
-
let P = y(
|
|
160
|
+
let P = y(i());
|
|
161
161
|
function F() {
|
|
162
162
|
let e = s({
|
|
163
163
|
userConfig: E.config,
|
|
@@ -174,7 +174,7 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
174
174
|
defaultConfig: n
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
let I = y(F()), ft = l(() => I.value.userOptions.useCursorPointer), pt = l(() =>
|
|
177
|
+
let I = y(F()), ft = l(() => I.value.userOptions.useCursorPointer), pt = l(() => a({
|
|
178
178
|
defaultConfig: {
|
|
179
179
|
userOptions: { show: !1 },
|
|
180
180
|
style: { chart: {
|
|
@@ -215,7 +215,7 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
215
215
|
}
|
|
216
216
|
]
|
|
217
217
|
},
|
|
218
|
-
skeletonConfig:
|
|
218
|
+
skeletonConfig: a({
|
|
219
219
|
defaultConfig: I.value,
|
|
220
220
|
userConfig: pt.value
|
|
221
221
|
})
|
|
@@ -241,7 +241,7 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
241
241
|
}), vt = l(() => {
|
|
242
242
|
if (!N.value) return [];
|
|
243
243
|
let e = [];
|
|
244
|
-
for (let
|
|
244
|
+
for (let n = 0; n < R.value.segments.length; n += 1) e.push(t(I.value.style.chart.segments.baseColor, n / R.value.segments.length));
|
|
245
245
|
return e;
|
|
246
246
|
}), W = l(() => N.value ? {
|
|
247
247
|
min: Math.min(...R.value.segments.map((e) => e.from)),
|
|
@@ -289,12 +289,12 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
289
289
|
}))
|
|
290
290
|
};
|
|
291
291
|
}), q = l(() => !K.value || !K.value.chunks || !K.value.chunks.length ? [] : K.value.chunks.map((e) => {
|
|
292
|
-
let
|
|
292
|
+
let t = `${o(I.value.style.chart.segments.dataLabels.formatter, e.from, r({
|
|
293
293
|
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
294
294
|
v: e.from,
|
|
295
295
|
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
296
296
|
r: I.value.style.chart.segments.dataLabels.rounding
|
|
297
|
-
}))} — ${o(I.value.style.chart.segments.dataLabels.formatter, e.to,
|
|
297
|
+
}))} — ${o(I.value.style.chart.segments.dataLabels.formatter, e.to, r({
|
|
298
298
|
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
299
299
|
v: e.to,
|
|
300
300
|
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
@@ -303,8 +303,8 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
303
303
|
return {
|
|
304
304
|
...e,
|
|
305
305
|
shape: "square",
|
|
306
|
-
value:
|
|
307
|
-
display: `${e.name}: ${
|
|
306
|
+
value: t,
|
|
307
|
+
display: `${e.name}: ${t}`
|
|
308
308
|
};
|
|
309
309
|
})), St = l(() => ({
|
|
310
310
|
cy: "bullet-div-legend",
|
|
@@ -404,14 +404,14 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
404
404
|
toggleAnnotator: $,
|
|
405
405
|
toggleFullscreen: Tt,
|
|
406
406
|
copyAlt: Ft
|
|
407
|
-
}), (e,
|
|
407
|
+
}), (e, t) => (v(), f("div", {
|
|
408
408
|
ref_key: "bulletChart",
|
|
409
409
|
ref: D,
|
|
410
410
|
class: we(`vue-data-ui-component vue-ui-bullet ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
411
411
|
style: _(`font-family:${I.value.style.fontFamily};width:100%;background:${I.value.style.chart.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
|
|
412
412
|
id: `bullet_${P.value}`,
|
|
413
|
-
onMouseenter:
|
|
414
|
-
onMouseleave:
|
|
413
|
+
onMouseenter: t[0] ||= () => C(mt)(!0),
|
|
414
|
+
onMouseleave: t[1] ||= () => C(mt)(!1)
|
|
415
415
|
}, [
|
|
416
416
|
I.value.userOptions.buttons.annotator ? (v(), u(C(Ze), {
|
|
417
417
|
key: 0,
|
|
@@ -632,7 +632,7 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
632
632
|
"font-weight": I.value.style.chart.valueBar.label.bold ? "bold" : "normal",
|
|
633
633
|
fill: I.value.style.chart.valueBar.label.color,
|
|
634
634
|
"text-anchor": "middle"
|
|
635
|
-
}, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, G.value, C(
|
|
635
|
+
}, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, G.value, C(r)({
|
|
636
636
|
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
637
637
|
v: G.value,
|
|
638
638
|
s: I.value.style.chart.segments.dataLabels.suffix,
|
|
@@ -657,7 +657,7 @@ var ke = /* @__PURE__ */ e({ default: () => T }), Ae = ["id"], je = {
|
|
|
657
657
|
fill: I.value.style.chart.segments.dataLabels.color,
|
|
658
658
|
"font-size": I.value.style.chart.segments.dataLabels.fontSize + "px",
|
|
659
659
|
"font-weight": I.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
|
|
660
|
-
}, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, e.value, C(
|
|
660
|
+
}, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, e.value, C(r)({
|
|
661
661
|
p: I.value.style.chart.segments.dataLabels.prefix,
|
|
662
662
|
v: e.value,
|
|
663
663
|
s: I.value.style.chart.segments.dataLabels.suffix,
|