vue-data-ui 3.1.17 → 3.1.19-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DFX_NfRh.js → Arrow-cyyFTTnm.js} +7 -7
- package/dist/{BaseDraggableDialog-CrCjMg89.js → BaseDraggableDialog-Bf6A6G_f.js} +2 -2
- package/dist/{BaseIcon-7s-tCFcQ.js → BaseIcon-D2f9w5Z5.js} +1 -1
- package/dist/{ColorPicker-BoLH_m_Z.js → ColorPicker-gaAecgEC.js} +6 -6
- package/dist/{DataTable-Dw6dxJk3.js → DataTable-xISHA7Pu.js} +2 -2
- package/dist/{Legend-CjdnJGHq.js → Legend-_Rv594VS.js} +2 -2
- package/dist/{NonSvgPenAndPaper-tX2IXHuz.js → NonSvgPenAndPaper-DiM4-9ju.js} +3 -3
- package/dist/{PackageVersion-D1HToLlZ.js → PackageVersion-DRpg18lg.js} +3 -3
- package/dist/{PenAndPaper-BKnXOYre.js → PenAndPaper-CtDMyIvW.js} +3 -3
- package/dist/{Shape-6PexQroB.js → Shape-BDy56-wS.js} +1 -1
- package/dist/{Slicer-BJkhMBk4.js → Slicer-BgpOhmb6.js} +31 -31
- package/dist/{SparkTooltip-BtO1j0i1.js → SparkTooltip-DOFGBHJ-.js} +1 -1
- package/dist/{Title-BVMfF0uu.js → Title-pI68ZJsq.js} +1 -1
- package/dist/{Tooltip-DBvmoYXU.js → Tooltip-Clf2K3CF.js} +1 -1
- package/dist/{UserOptions-CKzW9w0Q.js → UserOptions-Bn3u4JQu.js} +2 -2
- package/dist/components/arrow.js +5 -0
- package/dist/components/vue-ui-3d-bar.js +5 -0
- package/dist/components/vue-ui-accordion.js +5 -0
- package/dist/components/vue-ui-age-pyramid.js +5 -0
- package/dist/components/vue-ui-bullet.js +5 -0
- package/dist/components/vue-ui-candlestick.js +5 -0
- package/dist/components/vue-ui-carousel-table.js +5 -0
- package/dist/components/vue-ui-chestnut.js +5 -0
- package/dist/components/vue-ui-chord.js +5 -0
- package/dist/components/vue-ui-circle-pack.js +5 -0
- package/dist/components/vue-ui-cursor.js +5 -0
- package/dist/components/vue-ui-dashboard.js +5 -0
- package/dist/components/vue-ui-digits.js +5 -0
- package/dist/components/vue-ui-donut-evolution.js +5 -0
- package/dist/components/vue-ui-donut.js +5 -0
- package/dist/components/vue-ui-dumbbell.js +5 -0
- package/dist/components/vue-ui-flow.js +5 -0
- package/dist/components/vue-ui-funnel.js +5 -0
- package/dist/components/vue-ui-galaxy.js +5 -0
- package/dist/components/vue-ui-gauge.js +5 -0
- package/dist/components/vue-ui-gizmo.js +5 -0
- package/dist/components/vue-ui-heatmap.js +5 -0
- package/dist/components/vue-ui-history-plot.js +5 -0
- package/dist/components/vue-ui-horizontal-bar.js +5 -0
- package/dist/components/vue-ui-icon.js +5 -0
- package/dist/components/vue-ui-kpi.js +5 -0
- package/dist/components/vue-ui-mini-loader.js +5 -0
- package/dist/components/vue-ui-molecule.js +5 -0
- package/dist/components/vue-ui-mood-radar.js +5 -0
- package/dist/components/vue-ui-nested-donuts.js +5 -0
- package/dist/components/vue-ui-onion.js +5 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +5 -0
- package/dist/components/vue-ui-pattern.js +5 -0
- package/dist/components/vue-ui-quadrant.js +5 -0
- package/dist/components/vue-ui-quick-chart.js +5 -0
- package/dist/components/vue-ui-radar.js +5 -0
- package/dist/components/vue-ui-rating.js +5 -0
- package/dist/components/vue-ui-relation-circle.js +5 -0
- package/dist/components/vue-ui-ridgeline.js +5 -0
- package/dist/components/vue-ui-rings.js +5 -0
- package/dist/components/vue-ui-scatter.js +5 -0
- package/dist/components/vue-ui-skeleton.js +5 -0
- package/dist/components/vue-ui-smiley.js +5 -0
- package/dist/components/vue-ui-spark-trend.js +5 -0
- package/dist/components/vue-ui-sparkbar.js +5 -0
- package/dist/components/vue-ui-sparkgauge.js +5 -0
- package/dist/components/vue-ui-sparkhistogram.js +5 -0
- package/dist/components/vue-ui-sparkline.js +5 -0
- package/dist/components/vue-ui-sparkstackbar.js +5 -0
- package/dist/components/vue-ui-stackbar.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +5 -0
- package/dist/components/vue-ui-table-heatmap.js +5 -0
- package/dist/components/vue-ui-table-sparkline.js +5 -0
- package/dist/components/vue-ui-table.js +5 -0
- package/dist/components/vue-ui-thermometer.js +5 -0
- package/dist/components/vue-ui-timer.js +5 -0
- package/dist/components/vue-ui-tiremarks.js +5 -0
- package/dist/components/vue-ui-treemap.js +5 -0
- package/dist/components/vue-ui-vertical-bar.js +5 -0
- package/dist/components/vue-ui-waffle.js +5 -0
- package/dist/components/vue-ui-wheel.js +5 -0
- package/dist/components/vue-ui-word-cloud.js +5 -0
- package/dist/components/vue-ui-world.js +5 -0
- package/dist/components/vue-ui-xy-canvas.js +5 -0
- package/dist/components/vue-ui-xy.js +5 -0
- package/dist/{dom-to-png-D0wlWRL9.js → dom-to-png-CSg_eTqL.js} +1 -1
- package/dist/{img-CeCjiMpr.js → img-CH7J0fYg.js} +1 -1
- package/dist/lib-p5pfHmOX.js +1882 -0
- package/dist/{pdf-D5bgIg6W.js → pdf-Wd2BQz4D.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/themes-D3cUNuKw.js +53 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/universal.d.ts +1 -0
- package/dist/types/vue-data-ui.d.ts +71 -21
- package/dist/types/vue-ui-3d-bar.d.ts +18 -0
- package/dist/types/vue-ui-accordion.d.ts +12 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +21 -0
- package/dist/types/vue-ui-bullet.d.ts +16 -0
- package/dist/types/vue-ui-candlestick.d.ts +16 -0
- package/dist/types/vue-ui-carousel-table.d.ts +14 -0
- package/dist/types/vue-ui-chestnut.d.ts +17 -0
- package/dist/types/vue-ui-chord.d.ts +19 -0
- package/dist/types/vue-ui-circle-pack.d.ts +17 -0
- package/dist/types/vue-ui-cursor.d.ts +7 -0
- package/dist/types/vue-ui-dashboard.d.ts +14 -0
- package/dist/types/vue-ui-digits.d.ts +10 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +17 -0
- package/dist/types/vue-ui-donut.d.ts +18 -0
- package/dist/types/vue-ui-dumbbell.d.ts +18 -0
- package/dist/types/vue-ui-flow.d.ts +18 -0
- package/dist/types/vue-ui-funnel.d.ts +15 -0
- package/dist/types/vue-ui-galaxy.d.ts +18 -0
- package/dist/types/vue-ui-gauge.d.ts +16 -0
- package/dist/types/vue-ui-gizmo.d.ts +14 -0
- package/dist/types/vue-ui-heatmap.d.ts +17 -0
- package/dist/types/vue-ui-history-plot.d.ts +19 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +19 -0
- package/dist/types/vue-ui-icon.d.ts +16 -0
- package/dist/types/vue-ui-kpi.d.ts +13 -0
- package/dist/types/vue-ui-mini-loader.d.ts +13 -0
- package/dist/types/vue-ui-molecule.d.ts +17 -0
- package/dist/types/vue-ui-mood-radar.d.ts +17 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +18 -0
- package/dist/types/vue-ui-onion.d.ts +18 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +20 -0
- package/dist/types/vue-ui-pattern.d.ts +17 -0
- package/dist/types/vue-ui-quadrant.d.ts +20 -0
- package/dist/types/vue-ui-quick-chart.d.ts +16 -0
- package/dist/types/vue-ui-radar.d.ts +22 -0
- package/dist/types/vue-ui-rating.d.ts +15 -0
- package/dist/types/vue-ui-relation-circle.d.ts +17 -0
- package/dist/types/vue-ui-ridgeline.d.ts +20 -0
- package/dist/types/vue-ui-rings.d.ts +17 -0
- package/dist/types/vue-ui-scatter.d.ts +19 -0
- package/dist/types/vue-ui-skeleton.d.ts +12 -0
- package/dist/types/vue-ui-smiley.d.ts +14 -0
- package/dist/types/vue-ui-spark-trend.d.ts +13 -0
- package/dist/types/vue-ui-sparkbar.d.ts +15 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +14 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +15 -0
- package/dist/types/vue-ui-sparkline.d.ts +15 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +16 -0
- package/dist/types/vue-ui-stackbar.d.ts +18 -0
- package/dist/types/vue-ui-strip-plot.d.ts +19 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +14 -0
- package/dist/types/vue-ui-table.d.ts +17 -0
- package/dist/types/vue-ui-thermometer.d.ts +15 -0
- package/dist/types/vue-ui-timer.d.ts +12 -0
- package/dist/types/vue-ui-tiremarks.d.ts +15 -0
- package/dist/types/vue-ui-treemap.d.ts +18 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +19 -0
- package/dist/types/vue-ui-waffle.d.ts +18 -0
- package/dist/types/vue-ui-wheel.d.ts +15 -0
- package/dist/types/vue-ui-word-cloud.d.ts +17 -0
- package/dist/types/vue-ui-world.d.ts +17 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +15 -0
- package/dist/types/vue-ui-xy.d.ts +24 -0
- package/dist/universal-registry-CL8g2COA.js +70 -0
- package/dist/universal.js +5 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BxqMb3sU.js → useAutoSizeLabelsInsideViewbox-VqESrzQg.js} +7 -7
- package/dist/useNestedProp-DF7e2h1z.js +6645 -0
- package/dist/{usePrinter-DGI4Mlad.js → usePrinter-Yeu5jOfm.js} +2 -2
- package/dist/vue-data-ui-h5C8hpE8.js +317 -0
- package/dist/vue-data-ui.js +243 -85
- package/dist/{vue-ui-3d-bar-8b3VZcUI.js → vue-ui-3d-bar-BZDLbeym.js} +103 -102
- package/dist/{vue-ui-accordion-BJG-ogQj.js → vue-ui-accordion-D-L73-T2.js} +4 -4
- package/dist/{vue-ui-age-pyramid-Cr_dhyTO.js → vue-ui-age-pyramid-C1NMeWTB.js} +28 -27
- package/dist/{vue-ui-annotator-ttaqcMTz.js → vue-ui-annotator-SoAGIAm-.js} +7 -6
- package/dist/{vue-ui-bullet-DXvTj07g.js → vue-ui-bullet-G_Y2Ryof.js} +28 -27
- package/dist/{vue-ui-candlestick-B5NqFTXr.js → vue-ui-candlestick-9sHzdqr3.js} +32 -31
- package/dist/{vue-ui-carousel-table-B0bpCRFh.js → vue-ui-carousel-table-CnGSgjPK.js} +25 -25
- package/dist/{vue-ui-chestnut-Cby7Wcbu.js → vue-ui-chestnut-C_0Y77a9.js} +41 -40
- package/dist/{vue-ui-chord-Cxg8nwzZ.js → vue-ui-chord-DqGoensA.js} +61 -60
- package/dist/{vue-ui-circle-pack-Cc5e6dE3.js → vue-ui-circle-pack-5L50If0h.js} +75 -74
- package/dist/{vue-ui-cursor-D6MvR7jD.js → vue-ui-cursor-0muOlHSh.js} +3 -3
- package/dist/{vue-ui-dashboard-CaUM9n5b.js → vue-ui-dashboard-2FyL5ac1.js} +68 -68
- package/dist/{vue-ui-digits-DsoHRv9p.js → vue-ui-digits-DOUNtmB0.js} +3 -3
- package/dist/{vue-ui-donut-Dxsq1gpz.js → vue-ui-donut-CWgiy7rq.js} +39 -38
- package/dist/{vue-ui-donut-evolution-CFu9WNVV.js → vue-ui-donut-evolution-DxH6i5aO.js} +81 -80
- package/dist/{vue-ui-dumbbell-Cgb7ijQS.js → vue-ui-dumbbell-D7nhPGxL.js} +97 -96
- package/dist/{vue-ui-flow-Ucb9PdWP.js → vue-ui-flow-C8iSww9L.js} +127 -126
- package/dist/{vue-ui-funnel-CV29tksj.js → vue-ui-funnel-D3GZcM5e.js} +39 -38
- package/dist/{vue-ui-galaxy-CVJb9_hA.js → vue-ui-galaxy-CUHEJHiw.js} +53 -52
- package/dist/{vue-ui-gauge-ofpIH29X.js → vue-ui-gauge-MM8rPNWR.js} +149 -148
- package/dist/{vue-ui-gizmo-Ci9kN9VQ.js → vue-ui-gizmo-CQ7XyocO.js} +6 -6
- package/dist/{vue-ui-heatmap-BK_jorrw.js → vue-ui-heatmap-BT5orcuT.js} +98 -97
- package/dist/{vue-ui-history-plot-Ce8BB4Tn.js → vue-ui-history-plot-BCfEt867.js} +105 -104
- package/dist/{vue-ui-kpi-DAHT9q6j.js → vue-ui-kpi-D7zdt7-g.js} +15 -15
- package/dist/{vue-ui-mini-loader-CuilTrcI.js → vue-ui-mini-loader-CteWqKM_.js} +3 -3
- package/dist/{vue-ui-molecule-C6suewK-.js → vue-ui-molecule-DekqFbQ4.js} +54 -53
- package/dist/{vue-ui-mood-radar-DPvGhgPI.js → vue-ui-mood-radar-CAC70QPW.js} +30 -29
- package/dist/{vue-ui-nested-donuts-BvPWp9Du.js → vue-ui-nested-donuts-BWj33o71.js} +69 -68
- package/dist/{vue-ui-onion-BZ0tfRV_.js → vue-ui-onion-Dq_XSxqp.js} +33 -32
- package/dist/{vue-ui-parallel-coordinate-plot-DqFj8hbo.js → vue-ui-parallel-coordinate-plot-V6jytnl0.js} +61 -60
- package/dist/{vue-ui-pattern-DsYgSZWn.js → vue-ui-pattern-D5pNvoQp.js} +1 -1
- package/dist/{vue-ui-quadrant-Cg5e73ny.js → vue-ui-quadrant-CmXgMy7I.js} +35 -34
- package/dist/{vue-ui-quick-chart-sABlk5nb.js → vue-ui-quick-chart-D2JQNfWU.js} +30 -29
- package/dist/{vue-ui-radar-DYcoGzSu.js → vue-ui-radar-BmmwGJaI.js} +90 -89
- package/dist/{vue-ui-rating-1eguB-TH.js → vue-ui-rating-CjoKP6-5.js} +9 -9
- package/dist/{vue-ui-relation-circle-BeWuQDkk.js → vue-ui-relation-circle-CcGD2bEJ.js} +44 -43
- package/dist/{vue-ui-ridgeline-CG7FefqU.js → vue-ui-ridgeline-DIOGXJ9v.js} +82 -81
- package/dist/{vue-ui-rings-2eedFGuC.js → vue-ui-rings-DS-YbQVr.js} +74 -73
- package/dist/{vue-ui-scatter-CNtgNP5j.js → vue-ui-scatter-D8kUADP7.js} +121 -120
- package/dist/{vue-ui-skeleton-fqG3bKSz.js → vue-ui-skeleton-FtA6-6zz.js} +5 -5
- package/dist/{vue-ui-smiley-D4bvSF9S.js → vue-ui-smiley-YRRY-yQp.js} +28 -28
- package/dist/vue-ui-spark-trend-qt8UvEPc.js +337 -0
- package/dist/{vue-ui-sparkbar-D1FXZyQE.js → vue-ui-sparkbar-DgHvA8ra.js} +86 -85
- package/dist/{vue-ui-sparkgauge-CHbbxg13.js → vue-ui-sparkgauge-BpMUqIL6.js} +32 -31
- package/dist/{vue-ui-sparkhistogram-BxYes64D.js → vue-ui-sparkhistogram-IhGjmoUF.js} +22 -21
- package/dist/{vue-ui-sparkline-CS3F5TFN.js → vue-ui-sparkline-BSGiRpQ9.js} +105 -104
- package/dist/{vue-ui-sparkstackbar-CUSBwkUS.js → vue-ui-sparkstackbar-ZkUUbYr5.js} +28 -27
- package/dist/{vue-ui-stackbar-CDihyp-i.js → vue-ui-stackbar-DRKIeZ1O.js} +77 -76
- package/dist/{vue-ui-strip-plot-D6MFuKnN.js → vue-ui-strip-plot-dMjWaIcs.js} +52 -51
- package/dist/{vue-ui-table-COT59wVb.js → vue-ui-table-DKHtmqLd.js} +9 -8
- package/dist/{vue-ui-table-heatmap--e8yw5yS.js → vue-ui-table-heatmap-iu6l-6rW.js} +30 -29
- package/dist/{vue-ui-table-sparkline-DnSLwUNN.js → vue-ui-table-sparkline-mMpPAUon.js} +20 -19
- package/dist/{vue-ui-thermometer-ByiRARW0.js → vue-ui-thermometer-xpHH3FWG.js} +66 -65
- package/dist/{vue-ui-timer-DOQVdVN2.js → vue-ui-timer-C4LZMTeg.js} +31 -31
- package/dist/{vue-ui-tiremarks-BFXeJQNZ.js → vue-ui-tiremarks-KQmIXYf2.js} +30 -29
- package/dist/{vue-ui-treemap-s_O9rQUT.js → vue-ui-treemap-a_Ub2bgB.js} +32 -31
- package/dist/{vue-ui-vertical-bar-Bn-m5GKU.js → vue-ui-vertical-bar-MWKYuUMN.js} +54 -53
- package/dist/{vue-ui-waffle-DmxaWHSw.js → vue-ui-waffle-CP6jUrto.js} +76 -75
- package/dist/{vue-ui-wheel-zJ5U-h_D.js → vue-ui-wheel-B59kWUZd.js} +85 -84
- package/dist/{vue-ui-word-cloud-BEnkOZdv.js → vue-ui-word-cloud-DZnuhGEw.js} +49 -48
- package/dist/{vue-ui-world-CkqoTL4V.js → vue-ui-world-B6S7X6sr.js} +19 -19
- package/dist/{vue-ui-xy-Uqdl2nk-.js → vue-ui-xy-BjzutuG2.js} +496 -505
- package/dist/{vue-ui-xy-canvas-cIU8Y1sD.js → vue-ui-xy-canvas-CSSVKhex.js} +166 -165
- package/package.json +19 -11
- package/dist/index-Lg17rmB1.js +0 -8729
- package/dist/types/vue-data-ui.d.cts +0 -9435
- package/dist/useNestedProp-DpwLJMsW.js +0 -13
- package/dist/vue-data-ui-lki09wwK.js +0 -325
- package/dist/vue-ui-spark-trend-GML5JJxY.js +0 -315
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { t as o, A as n } from "./index-Lg17rmB1.js";
|
|
2
|
-
function c({ defaultConfig: e, userConfig: t }) {
|
|
3
|
-
if (!Object.keys(t || {}).length)
|
|
4
|
-
return e;
|
|
5
|
-
const r = o({
|
|
6
|
-
defaultConfig: e,
|
|
7
|
-
userConfig: t
|
|
8
|
-
});
|
|
9
|
-
return n(r);
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
c as u
|
|
13
|
-
};
|
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
import { toRefs as re, defineAsyncComponent as t, computed as c, ref as o, onMounted as le, watch as Z, shallowReactive as ue, createElementBlock as se, createBlock as d, openBlock as g, normalizeStyle as ce, createElementVNode as ge, createTextVNode as pe, createCommentVNode as q, toDisplayString as me, resolveDynamicComponent as de, mergeProps as Ve, toHandlers as Ue, createSlots as fe, renderList as ve, withCtx as ke, renderSlot as Se, normalizeProps as he, guardReactiveProps as be } from "vue";
|
|
2
|
-
import K from "./BaseIcon-7s-tCFcQ.js";
|
|
3
|
-
const ye = { style: { width: "36px" } }, Ae = {
|
|
4
|
-
__name: "vue-data-ui",
|
|
5
|
-
props: {
|
|
6
|
-
component: { type: String },
|
|
7
|
-
dataset: { type: [Object, Array, Number, String] },
|
|
8
|
-
config: { type: Object }
|
|
9
|
-
},
|
|
10
|
-
emits: [
|
|
11
|
-
"selectLegend",
|
|
12
|
-
"selectDatapoint",
|
|
13
|
-
"toggleOpenState",
|
|
14
|
-
"saveAnnotations",
|
|
15
|
-
"selectRoot",
|
|
16
|
-
"selectBranch",
|
|
17
|
-
"selectNut",
|
|
18
|
-
"change",
|
|
19
|
-
"selectPlot",
|
|
20
|
-
"selectSide",
|
|
21
|
-
"rate",
|
|
22
|
-
"postImage",
|
|
23
|
-
"hoverIndex",
|
|
24
|
-
"selectX",
|
|
25
|
-
"toggleLock",
|
|
26
|
-
"toggleTooltip",
|
|
27
|
-
"start",
|
|
28
|
-
"play",
|
|
29
|
-
"pause",
|
|
30
|
-
"reset",
|
|
31
|
-
"restart",
|
|
32
|
-
"lap",
|
|
33
|
-
"toggleAnnotator",
|
|
34
|
-
"selectGroup",
|
|
35
|
-
"selectRibbon",
|
|
36
|
-
"toggleTable",
|
|
37
|
-
"resetZoom"
|
|
38
|
-
],
|
|
39
|
-
setup(Y, { expose: J, emit: R }) {
|
|
40
|
-
const a = Y, { component: Ce, dataset: w, config: ee } = re(a), p = {
|
|
41
|
-
VueUi3dBar: t(() => import("./vue-ui-3d-bar-8b3VZcUI.js")),
|
|
42
|
-
VueUiAgePyramid: t(() => import("./vue-ui-age-pyramid-Cr_dhyTO.js")),
|
|
43
|
-
VueUiAnnotator: t(() => import("./vue-ui-annotator-ttaqcMTz.js")),
|
|
44
|
-
VueUiCandlestick: t(() => import("./vue-ui-candlestick-B5NqFTXr.js")),
|
|
45
|
-
VueUiChestnut: t(() => import("./vue-ui-chestnut-Cby7Wcbu.js")),
|
|
46
|
-
VueUiDashboard: t(() => import("./vue-ui-dashboard-CaUM9n5b.js")),
|
|
47
|
-
VueUiDigits: t(() => import("./vue-ui-digits-DsoHRv9p.js")),
|
|
48
|
-
VueUiDonut: t(() => import("./vue-ui-donut-Dxsq1gpz.js")),
|
|
49
|
-
VueUiDonutEvolution: t(() => import("./vue-ui-donut-evolution-CFu9WNVV.js")),
|
|
50
|
-
VueUiGalaxy: t(() => import("./vue-ui-galaxy-CVJb9_hA.js")),
|
|
51
|
-
VueUiGauge: t(() => import("./vue-ui-gauge-ofpIH29X.js")),
|
|
52
|
-
VueUiHeatmap: t(() => import("./vue-ui-heatmap-BK_jorrw.js")),
|
|
53
|
-
VueUiKpi: t(() => import("./vue-ui-kpi-DAHT9q6j.js")),
|
|
54
|
-
VueUiMiniLoader: t(() => import("./vue-ui-mini-loader-CuilTrcI.js")),
|
|
55
|
-
VueUiMolecule: t(() => import("./vue-ui-molecule-C6suewK-.js")),
|
|
56
|
-
VueUiMoodRadar: t(() => import("./vue-ui-mood-radar-DPvGhgPI.js")),
|
|
57
|
-
VueUiNestedDonuts: t(() => import("./vue-ui-nested-donuts-BvPWp9Du.js")),
|
|
58
|
-
VueUiOnion: t(() => import("./vue-ui-onion-BZ0tfRV_.js")),
|
|
59
|
-
VueUiQuadrant: t(() => import("./vue-ui-quadrant-Cg5e73ny.js")),
|
|
60
|
-
VueUiRadar: t(() => import("./vue-ui-radar-DYcoGzSu.js")),
|
|
61
|
-
VueUiRating: t(() => import("./vue-ui-rating-1eguB-TH.js")),
|
|
62
|
-
VueUiRelationCircle: t(() => import("./vue-ui-relation-circle-BeWuQDkk.js")),
|
|
63
|
-
VueUiRings: t(() => import("./vue-ui-rings-2eedFGuC.js")),
|
|
64
|
-
VueUiScatter: t(() => import("./vue-ui-scatter-CNtgNP5j.js")),
|
|
65
|
-
VueUiSkeleton: t(() => import("./vue-ui-skeleton-fqG3bKSz.js")),
|
|
66
|
-
VueUiSmiley: t(() => import("./vue-ui-smiley-D4bvSF9S.js")),
|
|
67
|
-
VueUiSparkbar: t(() => import("./vue-ui-sparkbar-D1FXZyQE.js")),
|
|
68
|
-
VueUiSparkgauge: t(() => import("./vue-ui-sparkgauge-CHbbxg13.js")),
|
|
69
|
-
VueUiSparkHistogram: t(() => import("./vue-ui-sparkhistogram-BxYes64D.js")),
|
|
70
|
-
VueUiSparkline: t(() => import("./vue-ui-sparkline-CS3F5TFN.js")),
|
|
71
|
-
VueUiSparkStackbar: t(() => import("./vue-ui-sparkstackbar-CUSBwkUS.js")),
|
|
72
|
-
VueUiTable: t(() => import("./vue-ui-table-COT59wVb.js")),
|
|
73
|
-
VueUiTableSparkline: t(() => import("./vue-ui-table-sparkline-DnSLwUNN.js")),
|
|
74
|
-
VueUiThermometer: t(() => import("./vue-ui-thermometer-ByiRARW0.js")),
|
|
75
|
-
VueUiTiremarks: t(() => import("./vue-ui-tiremarks-BFXeJQNZ.js")),
|
|
76
|
-
VueUiTreemap: t(() => import("./vue-ui-treemap-s_O9rQUT.js")),
|
|
77
|
-
VueUiVerticalBar: t(() => import("./vue-ui-vertical-bar-Bn-m5GKU.js")),
|
|
78
|
-
// delete in v4
|
|
79
|
-
VueUiHorizontalBar: t(() => import("./vue-ui-vertical-bar-Bn-m5GKU.js")),
|
|
80
|
-
// v3 renaming
|
|
81
|
-
VueUiWaffle: t(() => import("./vue-ui-waffle-DmxaWHSw.js")),
|
|
82
|
-
VueUiWheel: t(() => import("./vue-ui-wheel-zJ5U-h_D.js")),
|
|
83
|
-
VueUiXy: t(() => import("./vue-ui-xy-Uqdl2nk-.js")),
|
|
84
|
-
VueUiTableHeatmap: t(() => import("./vue-ui-table-heatmap--e8yw5yS.js")),
|
|
85
|
-
VueUiAccordion: t(() => import("./vue-ui-accordion-BJG-ogQj.js")),
|
|
86
|
-
VueUiQuickChart: t(() => import("./vue-ui-quick-chart-sABlk5nb.js")),
|
|
87
|
-
VueUiCursor: t(() => import("./vue-ui-cursor-D6MvR7jD.js")),
|
|
88
|
-
VueUiSparkTrend: t(() => import("./vue-ui-spark-trend-GML5JJxY.js")),
|
|
89
|
-
VueUiStripPlot: t(() => import("./vue-ui-strip-plot-D6MFuKnN.js")),
|
|
90
|
-
VueUiDumbbell: t(() => import("./vue-ui-dumbbell-Cgb7ijQS.js")),
|
|
91
|
-
VueUiWordCloud: t(() => import("./vue-ui-word-cloud-BEnkOZdv.js")),
|
|
92
|
-
VueUiXyCanvas: t(() => import("./vue-ui-xy-canvas-cIU8Y1sD.js")),
|
|
93
|
-
VueUiFlow: t(() => import("./vue-ui-flow-Ucb9PdWP.js")),
|
|
94
|
-
VueUiParallelCoordinatePlot: t(() => import("./vue-ui-parallel-coordinate-plot-DqFj8hbo.js")),
|
|
95
|
-
VueUiTimer: t(() => import("./vue-ui-timer-DOQVdVN2.js")),
|
|
96
|
-
VueUiCarouselTable: t(() => import("./vue-ui-carousel-table-B0bpCRFh.js")),
|
|
97
|
-
VueUiGizmo: t(() => import("./vue-ui-gizmo-Ci9kN9VQ.js")),
|
|
98
|
-
VueUiStackbar: t(() => import("./vue-ui-stackbar-CDihyp-i.js")),
|
|
99
|
-
VueUiBullet: t(() => import("./vue-ui-bullet-DXvTj07g.js")),
|
|
100
|
-
VueUiFunnel: t(() => import("./vue-ui-funnel-CV29tksj.js")),
|
|
101
|
-
VueUiHistoryPlot: t(() => import("./vue-ui-history-plot-Ce8BB4Tn.js")),
|
|
102
|
-
VueUiCirclePack: t(() => import("./vue-ui-circle-pack-Cc5e6dE3.js")),
|
|
103
|
-
VueUiWorld: t(() => import("./vue-ui-world-CkqoTL4V.js")),
|
|
104
|
-
VueUiRidgeline: t(() => import("./vue-ui-ridgeline-CG7FefqU.js")),
|
|
105
|
-
VueUiChord: t(() => import("./vue-ui-chord-Cxg8nwzZ.js"))
|
|
106
|
-
}, te = {
|
|
107
|
-
VueUi3dBar: ["config", "dataset"],
|
|
108
|
-
VueUiAgePyramid: ["config", "dataset"],
|
|
109
|
-
VueUiAnnotator: ["config", "dataset"],
|
|
110
|
-
VueUiCandlestick: ["config", "dataset"],
|
|
111
|
-
VueUiChestnut: ["config", "dataset"],
|
|
112
|
-
VueUiDashboard: ["config", "dataset"],
|
|
113
|
-
VueUiDigits: ["config", "dataset"],
|
|
114
|
-
VueUiDonut: ["config", "dataset"],
|
|
115
|
-
VueUiDonutEvolution: ["config", "dataset"],
|
|
116
|
-
VueUiGalaxy: ["config", "dataset"],
|
|
117
|
-
VueUiGauge: ["config", "dataset"],
|
|
118
|
-
VueUiHeatmap: ["config", "dataset"],
|
|
119
|
-
VueUiKpi: ["config", "dataset"],
|
|
120
|
-
VueUiMiniLoader: ["config"],
|
|
121
|
-
VueUiMolecule: ["config", "dataset"],
|
|
122
|
-
VueUiMoodRadar: ["config", "dataset"],
|
|
123
|
-
VueUiNestedDonuts: ["config", "dataset"],
|
|
124
|
-
VueUiOnion: ["config", "dataset"],
|
|
125
|
-
VueUiQuadrant: ["config", "dataset"],
|
|
126
|
-
VueUiRadar: ["config", "dataset"],
|
|
127
|
-
VueUiRating: ["config", "dataset"],
|
|
128
|
-
VueUiRelationCircle: ["config", "dataset"],
|
|
129
|
-
VueUiRings: ["config", "dataset"],
|
|
130
|
-
VueUiScatter: ["config", "dataset"],
|
|
131
|
-
VueUiSkeleton: ["config"],
|
|
132
|
-
VueUiSmiley: ["config", "dataset"],
|
|
133
|
-
VueUiSparkbar: ["config", "dataset"],
|
|
134
|
-
VueUiSparkgauge: ["config", "dataset"],
|
|
135
|
-
VueUiSparkHistogram: ["config", "dataset"],
|
|
136
|
-
VueUiSparkline: ["config", "dataset"],
|
|
137
|
-
VueUiSparkStackbar: ["config", "dataset"],
|
|
138
|
-
VueUiTable: ["config", "dataset"],
|
|
139
|
-
VueUiTableSparkline: ["config", "dataset"],
|
|
140
|
-
VueUiThermometer: ["config", "dataset"],
|
|
141
|
-
VueUiTiremarks: ["config", "dataset"],
|
|
142
|
-
VueUiTreemap: ["config", "dataset"],
|
|
143
|
-
VueUiVerticalBar: ["config", "dataset"],
|
|
144
|
-
// delete in v4
|
|
145
|
-
VueUiHorizontalBar: ["config", "dataset"],
|
|
146
|
-
// v3 renaming
|
|
147
|
-
VueUiWaffle: ["config", "dataset"],
|
|
148
|
-
VueUiWheel: ["config", "dataset"],
|
|
149
|
-
VueUiXy: ["config", "dataset"],
|
|
150
|
-
VueUiTableHeatmap: ["config", "dataset"],
|
|
151
|
-
VueUiAccordion: ["config"],
|
|
152
|
-
VueUiQuickChart: ["config", "dataset"],
|
|
153
|
-
VueUiCursor: ["config"],
|
|
154
|
-
VueUiSparkTrend: ["config", "dataset"],
|
|
155
|
-
VueUiStripPlot: ["config", "dataset"],
|
|
156
|
-
VueUiDumbbell: ["config", "dataset"],
|
|
157
|
-
VueUiWordCloud: ["config", "dataset"],
|
|
158
|
-
VueUiXyCanvas: ["config", "dataset"],
|
|
159
|
-
VueUiFlow: ["config", "dataset"],
|
|
160
|
-
VueUiParallelCoordinatePlot: ["config", "dataset"],
|
|
161
|
-
VueUiTimer: ["config"],
|
|
162
|
-
VueUiCarouselTable: ["config", "dataset"],
|
|
163
|
-
VueUiGizmo: ["config", "dataset"],
|
|
164
|
-
VueUiStackbar: ["config", "dataset"],
|
|
165
|
-
VueUiBullet: ["config", "dataset"],
|
|
166
|
-
VueUiFunnel: ["config", "dataset"],
|
|
167
|
-
VueUiHistoryPlot: ["config", "dataset"],
|
|
168
|
-
VueUiCirclePack: ["config", "dataset"],
|
|
169
|
-
VueUiWorld: ["config", "dataset"],
|
|
170
|
-
VueUiRidgeline: ["config", "dataset"],
|
|
171
|
-
VueUiChord: ["config", "dataset"]
|
|
172
|
-
}, oe = R, V = c(() => !p[a.component]), ie = c(() => p[a.component] || null), r = o(null), ae = c(() => {
|
|
173
|
-
const e = te[a.component] || [], i = {};
|
|
174
|
-
return e.includes("config") && (i.config = ee.value), e.includes("dataset") && (i.dataset = w.value), i;
|
|
175
|
-
}), U = o(() => null), f = o(() => null), v = o(() => null), k = o(() => null), S = o(() => null), h = o(() => null), b = o(() => null), y = o(() => null), C = o(() => null), T = o(() => null), P = o(() => null), A = o(() => null), D = o(() => null), I = o(() => null), H = o(() => null), x = o(() => null), B = o(() => null), F = o(() => null), L = o(() => null), N = o(() => null), E = o(() => null), G = o(() => null), z = o(() => null), O = o(() => null), _ = o(() => null), $ = o(() => null), M = o(() => null), W = o(() => null), X = o(() => null);
|
|
176
|
-
le(() => {
|
|
177
|
-
V.value && console.error(`
|
|
178
|
-
|
|
179
|
-
Vue Data UI exception:
|
|
180
|
-
The provided component "${a.component}" does not exist. Check the spelling.
|
|
181
|
-
|
|
182
|
-
Available components:
|
|
183
|
-
|
|
184
|
-
${Object.keys(p).map((e) => `. ${e}
|
|
185
|
-
`).join("")}`);
|
|
186
|
-
}), Z(r, async (e) => {
|
|
187
|
-
e && (e.generatePdf && (U.value = e.generatePdf), e.generateImage && (v.value = e.generateImage), e.generateCsv && (f.value = e.generateCsv), e.getItemsPositions && (k.value = e.getItemsPositions), e.toggleReadonly && (S.value = e.toggleReadonly), e.shoot && (h.value = e.shoot), e.close && (b.value = e.close), e.restoreOrder && (y.value = e.restoreOrder), e.recalculateHeight && (C.value = e.recalculateHeight), e.toggleLock && (T.value = e.toggleLock), e.toggleTable && (P.value = e.toggleTable), e.toggleLabels && (A.value = e.toggleLabels), e.toggleSort && (D.value = e.toggleSort), e.toggleStack && (I.value = e.toggleStack), e.toggleTooltip && (H.value = e.toggleTooltip), e.start && (x.value = e.start), e.pause && (B.value = e.pause), e.reset && (F.value = e.reset), e.restart && (L.value = e.restart), e.lap && (N.value = e.lap), e.toggleAnimation && (E.value = e.toggleAnimation), e.pauseAnimation && (G.value = e.pauseAnimation), e.resumeAnimation && (z.value = e.resumeAnimation), e.toggleAnnotator && (O.value = e.toggleAnnotator), e.selectNode && (_.value = e.selectNode), e.selectGroup && ($.value = e.selectGroup), e.selectRibbon && (M.value = e.selectRibbon), e.autoSize && (W.value = e.autoSize), e.resetZoom && (X.value = e.resetZoom));
|
|
188
|
-
});
|
|
189
|
-
const ne = () => {
|
|
190
|
-
const e = [
|
|
191
|
-
"selectLegend",
|
|
192
|
-
"selectDatapoint",
|
|
193
|
-
"toggleOpenState",
|
|
194
|
-
"saveAnnotations",
|
|
195
|
-
"selectRoot",
|
|
196
|
-
"selectBranch",
|
|
197
|
-
"selectNut",
|
|
198
|
-
"change",
|
|
199
|
-
"selectPlot",
|
|
200
|
-
"selectSide",
|
|
201
|
-
"rate",
|
|
202
|
-
"postImage",
|
|
203
|
-
"hoverIndex",
|
|
204
|
-
"selectX",
|
|
205
|
-
"toggleLock",
|
|
206
|
-
"toggleTooltip",
|
|
207
|
-
"start",
|
|
208
|
-
"pause",
|
|
209
|
-
"reset",
|
|
210
|
-
"restart",
|
|
211
|
-
"lap",
|
|
212
|
-
"toggleAnimation",
|
|
213
|
-
"pauseAnimation",
|
|
214
|
-
"resumeAnimation",
|
|
215
|
-
"toggleAnnotator",
|
|
216
|
-
"selectNode",
|
|
217
|
-
"selectGroup",
|
|
218
|
-
"selectRibbon",
|
|
219
|
-
"autoSize",
|
|
220
|
-
"toggleTable",
|
|
221
|
-
"resetZoom"
|
|
222
|
-
], i = {};
|
|
223
|
-
return e.forEach((l) => {
|
|
224
|
-
i[l] = (...n) => oe(l, ...n);
|
|
225
|
-
}), i;
|
|
226
|
-
}, m = ue([]);
|
|
227
|
-
function j(e, i) {
|
|
228
|
-
return new Promise((l, n) => {
|
|
229
|
-
m.push({ method: e, args: i, resolve: l, reject: n });
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
Z(r, (e) => {
|
|
233
|
-
if (e)
|
|
234
|
-
for (; m.length; ) {
|
|
235
|
-
const { method: i, args: l, resolve: n, reject: s } = m.shift(), Q = e[i];
|
|
236
|
-
typeof Q == "function" ? Promise.resolve().then(() => Q(...l)).then(n).catch(s) : s(new Error(`Method ${i} not found on ${a.component}`));
|
|
237
|
-
}
|
|
238
|
-
}), J({
|
|
239
|
-
getData(...e) {
|
|
240
|
-
return r.value?.getData ? r.value.getData(...e) : j("getData", e);
|
|
241
|
-
},
|
|
242
|
-
getImage(e = {}) {
|
|
243
|
-
const { scale: i = 2 } = e;
|
|
244
|
-
return r.value?.getImage ? r.value.getImage({ scale: i }) : j("getImage", [{ scale: i }]);
|
|
245
|
-
},
|
|
246
|
-
autoSize: W,
|
|
247
|
-
generatePdf: U,
|
|
248
|
-
generateCsv: f,
|
|
249
|
-
generateImage: v,
|
|
250
|
-
getItemsPositions: k,
|
|
251
|
-
toggleReadonly: S,
|
|
252
|
-
shoot: h,
|
|
253
|
-
close: b,
|
|
254
|
-
restoreOrder: y,
|
|
255
|
-
recalculateHeight: C,
|
|
256
|
-
toggleLock: T,
|
|
257
|
-
toggleTable: P,
|
|
258
|
-
toggleLabels: A,
|
|
259
|
-
toggleSort: D,
|
|
260
|
-
toggleStack: I,
|
|
261
|
-
toggleTooltip: H,
|
|
262
|
-
start: x,
|
|
263
|
-
pause: B,
|
|
264
|
-
reset: F,
|
|
265
|
-
restart: L,
|
|
266
|
-
lap: N,
|
|
267
|
-
pauseAnimation: G,
|
|
268
|
-
resumeAnimation: z,
|
|
269
|
-
toggleAnimation: E,
|
|
270
|
-
toggleAnnotator: O,
|
|
271
|
-
selectNode: _,
|
|
272
|
-
selectGroup: $,
|
|
273
|
-
selectRibbon: M,
|
|
274
|
-
resetZoom: X
|
|
275
|
-
});
|
|
276
|
-
const u = c(() => {
|
|
277
|
-
let e = `The provided component ${a.component} does not exist.`;
|
|
278
|
-
return ["VueUiIcon", "VueUiPattern", "Arrow"].includes(a.component) ? (e = `${a.component} is not supported by the VueDataUi universal component. You must import it individually.`, console.warn(e), {
|
|
279
|
-
status: "notSupported",
|
|
280
|
-
message: e
|
|
281
|
-
}) : (console.warn(e), {
|
|
282
|
-
status: "unknown",
|
|
283
|
-
message: e
|
|
284
|
-
});
|
|
285
|
-
});
|
|
286
|
-
return (e, i) => V.value ? (g(), se("div", {
|
|
287
|
-
key: 0,
|
|
288
|
-
style: ce({
|
|
289
|
-
width: "100%",
|
|
290
|
-
display: "flex",
|
|
291
|
-
gap: "6px",
|
|
292
|
-
alignItems: "center",
|
|
293
|
-
color: u.value.status === "notSupported" ? "#FF9000" : "#FF0000"
|
|
294
|
-
})
|
|
295
|
-
}, [
|
|
296
|
-
ge("div", ye, [
|
|
297
|
-
u.value.status === "unknown" ? (g(), d(K, {
|
|
298
|
-
key: 0,
|
|
299
|
-
name: "moodFlat",
|
|
300
|
-
stroke: "#FF0000"
|
|
301
|
-
})) : q("", !0),
|
|
302
|
-
u.value.status === "notSupported" ? (g(), d(K, {
|
|
303
|
-
key: 1,
|
|
304
|
-
name: "circleExclamation",
|
|
305
|
-
stroke: "#FF9000"
|
|
306
|
-
})) : q("", !0)
|
|
307
|
-
]),
|
|
308
|
-
pe(" " + me(u.value.message), 1)
|
|
309
|
-
], 4)) : (g(), d(de(ie.value), Ve({
|
|
310
|
-
key: 1,
|
|
311
|
-
ref_key: "currentComponentRef",
|
|
312
|
-
ref: r
|
|
313
|
-
}, ae.value, Ue(ne())), fe({ _: 2 }, [
|
|
314
|
-
ve(e.$slots, (l, n) => ({
|
|
315
|
-
name: n,
|
|
316
|
-
fn: ke((s) => [
|
|
317
|
-
Se(e.$slots, n, he(be(s)))
|
|
318
|
-
])
|
|
319
|
-
}))
|
|
320
|
-
]), 1040));
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
export {
|
|
324
|
-
Ae as default
|
|
325
|
-
};
|
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as de, ref as f, toRefs as fe, computed as u, watch as X, onMounted as ce, createElementBlock as o, openBlock as s, normalizeStyle as he, createCommentVNode as c, createBlock as ye, unref as r, createVNode as pe, createElementVNode as S, renderSlot as J, toDisplayString as K } from "vue";
|
|
2
|
-
import { u as ge, c as me, t as ke, b as be, a7 as D, o as Q, f as _e, h as y, a8 as we, X as $e, s as O, V as Y, i as ee, k as xe } from "./index-Lg17rmB1.js";
|
|
3
|
-
import { t as Le, u as Ce } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Ae, B as Te } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as Se } from "./useFitSvgText-2crs6Fv5.js";
|
|
6
|
-
import { u as te } from "./useNestedProp-DpwLJMsW.js";
|
|
7
|
-
import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
const ze = ["id"], Me = ["xmlns", "viewBox"], Fe = ["width", "height"], Ie = ["id"], Ee = ["stop-color"], Ve = ["stop-color"], je = { key: 1 }, Be = ["d", "fill"], De = ["d", "fill"], Oe = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Ge = ["d", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin"], Re = ["d"], Ze = ["fill", "d"], We = ["x", "y", "width", "height"], He = ["x", "y", "fill", "font-size", "font-weight"], Ue = ["stroke", "cx", "cy", "fill"], qe = ["x", "y", "font-size", "fill", "font-weight"], Pe = {
|
|
9
|
-
__name: "vue-ui-spark-trend",
|
|
10
|
-
props: {
|
|
11
|
-
config: {
|
|
12
|
-
type: Object,
|
|
13
|
-
default() {
|
|
14
|
-
return {};
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
dataset: {
|
|
18
|
-
type: Array,
|
|
19
|
-
default() {
|
|
20
|
-
return [];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
setup(le) {
|
|
25
|
-
const ae = de(() => import("./PackageVersion-D1HToLlZ.js")), { vue_ui_spark_trend: ne } = ge(), p = le, N = f(null), G = f(null), R = f(null), _ = f(null), x = f(null), L = f(me()), e = f(z()), { loading: g, FINAL_DATASET: w, manualLoading: Z } = Ae({
|
|
26
|
-
...fe(p),
|
|
27
|
-
FINAL_CONFIG: e,
|
|
28
|
-
prepareConfig: z,
|
|
29
|
-
skeletonDataset: [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233],
|
|
30
|
-
skeletonConfig: ke({
|
|
31
|
-
defaultConfig: e.value,
|
|
32
|
-
userConfig: {
|
|
33
|
-
style: {
|
|
34
|
-
animation: { show: !1 },
|
|
35
|
-
backgroundColor: "#99999930",
|
|
36
|
-
line: {
|
|
37
|
-
stroke: "#6A6A6A",
|
|
38
|
-
useColorTrend: !1
|
|
39
|
-
},
|
|
40
|
-
dataLabel: { show: !1, useColorTrend: !1, color: "#6A6A6A" }
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
function z() {
|
|
46
|
-
const t = te({
|
|
47
|
-
userConfig: p.config,
|
|
48
|
-
defaultConfig: ne
|
|
49
|
-
});
|
|
50
|
-
return t.theme ? {
|
|
51
|
-
...te({
|
|
52
|
-
userConfig: be.vue_ui_spark_trend[t.theme] || p.config,
|
|
53
|
-
defaultConfig: t
|
|
54
|
-
})
|
|
55
|
-
} : t;
|
|
56
|
-
}
|
|
57
|
-
const m = u(() => D({
|
|
58
|
-
data: w.value,
|
|
59
|
-
threshold: e.value.downsample.threshold
|
|
60
|
-
}));
|
|
61
|
-
X(() => p.config, (t) => {
|
|
62
|
-
e.value = z(), I.value = e.value.style.width, k.value = e.value.style.height, H();
|
|
63
|
-
}, { deep: !0 }), X(() => w.value, (t) => {
|
|
64
|
-
$.value = D({
|
|
65
|
-
data: w.value,
|
|
66
|
-
threshold: e.value.downsample.threshold
|
|
67
|
-
}).map((a) => [void 0, 1 / 0, -1 / 0, null, NaN].includes(a) ? null : a), W(), j(".vue-ui-sparktrend-progress-label", 6);
|
|
68
|
-
}, { deep: !0 });
|
|
69
|
-
function M(t) {
|
|
70
|
-
return t.map((a) => y(a));
|
|
71
|
-
}
|
|
72
|
-
const $ = f(D({
|
|
73
|
-
data: w.value,
|
|
74
|
-
threshold: e.value.downsample.threshold
|
|
75
|
-
}).map((t) => e.value.style.animation.show || [void 0, 1 / 0, -1 / 0, null, NaN].includes(t) ? null : t)), C = f(!1), F = f(null);
|
|
76
|
-
function W() {
|
|
77
|
-
let a = 1e3 / e.value.style.animation.animationFrames, d = performance.now();
|
|
78
|
-
if (!g.value && e.value.style.animation.show && e.value.style.animation.animationFrames && w.value.length > 1) {
|
|
79
|
-
let B = function() {
|
|
80
|
-
C.value = !0;
|
|
81
|
-
let q = performance.now(), P = q - d;
|
|
82
|
-
P > a ? (d = q - P % a, b < m.value.length ? ($.value.push(m.value[b]), b += 1, F.value = requestAnimationFrame(B)) : (cancelAnimationFrame(F.value), $.value = M(m.value), C.value = !1, j(".vue-ui-sparktrend-progress-label", 6))) : F.value = requestAnimationFrame(B);
|
|
83
|
-
};
|
|
84
|
-
$.value = [];
|
|
85
|
-
let b = 0;
|
|
86
|
-
B();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
ce(() => {
|
|
90
|
-
H();
|
|
91
|
-
});
|
|
92
|
-
const ue = u(() => e.value.debug);
|
|
93
|
-
function H() {
|
|
94
|
-
if (Q(p.dataset) && (_e({
|
|
95
|
-
componentName: "VueUiSparkTrend",
|
|
96
|
-
type: "dataset",
|
|
97
|
-
debug: ue.value
|
|
98
|
-
}), Z.value = !0), Q(p.dataset) || (Z.value = !1), e.value.responsive) {
|
|
99
|
-
const t = Le(() => {
|
|
100
|
-
const { width: a, height: d } = Ce({
|
|
101
|
-
chart: N.value,
|
|
102
|
-
source: R.value
|
|
103
|
-
});
|
|
104
|
-
requestAnimationFrame(() => {
|
|
105
|
-
I.value = a, k.value = d;
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
_.value && (x.value && _.value.unobserve(x.value), _.value.disconnect()), _.value = new ResizeObserver(t), x.value = N.value.parentNode, _.value.observe(x.value);
|
|
109
|
-
}
|
|
110
|
-
W(), j(".vue-ui-sparktrend-progress-label", 6);
|
|
111
|
-
}
|
|
112
|
-
const I = f(e.value.style.width), k = f(e.value.style.height), i = u(() => ({
|
|
113
|
-
height: k.value,
|
|
114
|
-
width: I.value
|
|
115
|
-
})), n = u(() => ({
|
|
116
|
-
top: e.value.style.padding.top,
|
|
117
|
-
left: e.value.style.padding.left,
|
|
118
|
-
right: i.value.width - e.value.style.padding.right,
|
|
119
|
-
bottom: i.value.height - e.value.style.padding.bottom,
|
|
120
|
-
height: i.value.height - (e.value.style.padding.top + e.value.style.padding.bottom) - (e.value.style.dataLabel.show ? e.value.style.dataLabel.fontSize : 0),
|
|
121
|
-
width: i.value.width - (e.value.style.padding.left + e.value.style.padding.right)
|
|
122
|
-
})), E = u(() => {
|
|
123
|
-
const t = M(m.value);
|
|
124
|
-
return {
|
|
125
|
-
max: Math.max(...t.map((a) => y(a))),
|
|
126
|
-
min: Math.min(...t.map((a) => y(a)))
|
|
127
|
-
};
|
|
128
|
-
}), A = u(() => {
|
|
129
|
-
const t = E.value.min >= 0 ? 0 : E.value.min;
|
|
130
|
-
return Math.abs(t);
|
|
131
|
-
}), se = u(() => E.value.max + A.value);
|
|
132
|
-
function U(t) {
|
|
133
|
-
return t / se.value;
|
|
134
|
-
}
|
|
135
|
-
const oe = u(() => m.value.length), l = u(() => $.value.map((t, a) => {
|
|
136
|
-
const d = isNaN(t) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(t) ? 0 : t || 0;
|
|
137
|
-
return {
|
|
138
|
-
value: y(t),
|
|
139
|
-
absoluteValue: y(d),
|
|
140
|
-
plotValue: y(d + A.value),
|
|
141
|
-
toMax: U(d + A.value),
|
|
142
|
-
x: n.value.left + y(a * (n.value.width / (oe.value - 1))) - e.value.style.padding.right,
|
|
143
|
-
y: n.value.bottom - y(n.value.height * U(d + A.value))
|
|
144
|
-
};
|
|
145
|
-
})), T = u(() => {
|
|
146
|
-
const t = M(m.value);
|
|
147
|
-
return e.value.style.trendLabel.trendType === "global" ? we(t) : e.value.style.trendLabel.trendType === "n-1" && t.length > 1 ? (t.at(-1) / t.at(-2) - 1) * 100 : e.value.style.trendLabel.trendType === "lastToFirst" ? (t.at(-1) / t[0] - 1) * 100 : 0;
|
|
148
|
-
}), V = u(() => C.value || T.value === 0 ? "neutral" : T.value > 0 ? "positive" : "negative"), h = u(() => e.value.style.arrow.colors[V.value]), re = u(() => {
|
|
149
|
-
const t = { x: l.value[0].x, y: i.value.height - 6 }, a = { x: l.value[l.value.length - 1].x, y: i.value.height - 6 }, d = [];
|
|
150
|
-
return l.value.forEach((b) => {
|
|
151
|
-
d.push(`${b.x},${b.y} `);
|
|
152
|
-
}), [t.x, t.y, ...d, a.x, a.y].toString();
|
|
153
|
-
}), ie = u(() => {
|
|
154
|
-
let t = [];
|
|
155
|
-
return l.value.forEach((a) => {
|
|
156
|
-
t.push(`${a.x},${a.y} `);
|
|
157
|
-
}), `M ${t.toString()}`;
|
|
158
|
-
}), v = u(() => k.value / 2 - e.value.style.trendLabel.fontSize), ve = u(() => n.value.left * 0.8), { fitText: j } = Se({
|
|
159
|
-
svgRef: G,
|
|
160
|
-
unitWidth: ve,
|
|
161
|
-
fontSize: e.value.style.trendLabel.fontSize
|
|
162
|
-
});
|
|
163
|
-
return (t, a) => (s(), o("div", {
|
|
164
|
-
ref_key: "sparkTrendChart",
|
|
165
|
-
ref: N,
|
|
166
|
-
class: "vue-ui-spark-trend",
|
|
167
|
-
id: L.value,
|
|
168
|
-
style: he(`width:100%;font-family:${e.value.style.fontFamily};background:${e.value.style.backgroundColor}`)
|
|
169
|
-
}, [
|
|
170
|
-
(s(), o("svg", {
|
|
171
|
-
ref_key: "svgRef",
|
|
172
|
-
ref: G,
|
|
173
|
-
xmlns: r($e),
|
|
174
|
-
viewBox: `0 0 ${i.value.width} ${i.value.height}`,
|
|
175
|
-
style: "width:100%;background:transparent;overflow:visible"
|
|
176
|
-
}, [
|
|
177
|
-
pe(r(ae)),
|
|
178
|
-
t.$slots["chart-background"] ? (s(), o("foreignObject", {
|
|
179
|
-
key: 0,
|
|
180
|
-
x: 0,
|
|
181
|
-
y: 0,
|
|
182
|
-
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
183
|
-
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
184
|
-
style: {
|
|
185
|
-
pointerEvents: "none"
|
|
186
|
-
}
|
|
187
|
-
}, [
|
|
188
|
-
J(t.$slots, "chart-background", {}, void 0, !0)
|
|
189
|
-
], 8, Fe)) : c("", !0),
|
|
190
|
-
S("defs", null, [
|
|
191
|
-
S("linearGradient", {
|
|
192
|
-
x1: "0%",
|
|
193
|
-
y1: "0%",
|
|
194
|
-
x2: "0%",
|
|
195
|
-
y2: "100%",
|
|
196
|
-
id: `pill_gradient_${L.value}`
|
|
197
|
-
}, [
|
|
198
|
-
S("stop", {
|
|
199
|
-
offset: "0%",
|
|
200
|
-
"stop-color": r(O)(e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke, e.value.style.area.opacity)
|
|
201
|
-
}, null, 8, Ee),
|
|
202
|
-
S("stop", {
|
|
203
|
-
offset: "100%",
|
|
204
|
-
"stop-color": e.value.style.backgroundColor
|
|
205
|
-
}, null, 8, Ve)
|
|
206
|
-
], 8, Ie)
|
|
207
|
-
]),
|
|
208
|
-
e.value.style.area.show && l.value[0] ? (s(), o("g", je, [
|
|
209
|
-
e.value.style.line.smooth ? (s(), o("path", {
|
|
210
|
-
key: 0,
|
|
211
|
-
d: `M ${l.value[0].x},${n.value.bottom} ${r(Y)(l.value)} L ${l.value.at(-1).x},${n.value.bottom} Z`,
|
|
212
|
-
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${L.value})` : r(O)(e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke, e.value.style.area.opacity),
|
|
213
|
-
stroke: "none"
|
|
214
|
-
}, null, 8, Be)) : (s(), o("path", {
|
|
215
|
-
key: 1,
|
|
216
|
-
d: `M${re.value}Z`,
|
|
217
|
-
fill: e.value.style.area.useGradient ? `url(#pill_gradient_${L.value})` : r(O)(e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke, e.value.style.area.opacity),
|
|
218
|
-
stroke: "none"
|
|
219
|
-
}, null, 8, De))
|
|
220
|
-
])) : c("", !0),
|
|
221
|
-
e.value.style.line.smooth && l.value.length ? (s(), o("path", {
|
|
222
|
-
key: 2,
|
|
223
|
-
d: `M ${r(Y)(l.value)}`,
|
|
224
|
-
stroke: e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke,
|
|
225
|
-
fill: "none",
|
|
226
|
-
"stroke-width": e.value.style.line.strokeWidth,
|
|
227
|
-
"stroke-linecap": e.value.style.line.strokeLinecap,
|
|
228
|
-
"stroke-linejoin": e.value.style.line.strokeLinejoin
|
|
229
|
-
}, null, 8, Oe)) : c("", !0),
|
|
230
|
-
!e.value.style.line.smooth && l.value.length ? (s(), o("path", {
|
|
231
|
-
key: 3,
|
|
232
|
-
d: ie.value,
|
|
233
|
-
stroke: e.value.style.line.useColorTrend ? h.value : e.value.style.line.stroke,
|
|
234
|
-
fill: "none",
|
|
235
|
-
"stroke-width": e.value.style.line.strokeWidth,
|
|
236
|
-
"stroke-linecap": e.value.style.line.strokeLinecap,
|
|
237
|
-
"stroke-linejoin": e.value.style.line.strokeLinejoin
|
|
238
|
-
}, null, 8, Ge)) : c("", !0),
|
|
239
|
-
r(g) ? (s(), o("path", {
|
|
240
|
-
key: 4,
|
|
241
|
-
fill: "#6A6A6A",
|
|
242
|
-
d: `M ${n.value.left / 2 + 6}, ${v.value + 7} ${n.value.left / 2 - 7}, ${v.value} ${n.value.left / 2 - 7}, ${v.value + 14} Z`
|
|
243
|
-
}, null, 8, Re)) : (s(), o("path", {
|
|
244
|
-
key: 5,
|
|
245
|
-
fill: h.value,
|
|
246
|
-
d: V.value === "positive" ? `M ${n.value.left / 2}, ${v.value} ${n.value.left / 2 - 7}, ${v.value + 12} ${n.value.left / 2 + 7}, ${v.value + 12} Z` : V.value === "negative" ? `M ${n.value.left / 2}, ${v.value + 12} ${n.value.left / 2 - 7}, ${v.value} ${n.value.left / 2 + 7}, ${v.value} Z` : `M ${n.value.left / 2 + 6}, ${v.value + 7} ${n.value.left / 2 - 7}, ${v.value} ${n.value.left / 2 - 7}, ${v.value + 14} Z`
|
|
247
|
-
}, null, 8, Ze)),
|
|
248
|
-
r(g) ? (s(), o("rect", {
|
|
249
|
-
key: 6,
|
|
250
|
-
x: n.value.left / 2 - e.value.style.trendLabel.fontSize - 2,
|
|
251
|
-
y: k.value / 2 + e.value.style.trendLabel.fontSize - 2,
|
|
252
|
-
width: e.value.style.trendLabel.fontSize * 2,
|
|
253
|
-
height: e.value.style.trendLabel.fontSize,
|
|
254
|
-
fill: "#6A6A6A80",
|
|
255
|
-
rx: "3"
|
|
256
|
-
}, null, 8, We)) : c("", !0),
|
|
257
|
-
!C.value && !r(g) ? (s(), o("text", {
|
|
258
|
-
key: 7,
|
|
259
|
-
class: "vue-ui-sparktrend-progress-label",
|
|
260
|
-
x: n.value.left / 2,
|
|
261
|
-
y: k.value / 2 + e.value.style.trendLabel.fontSize * 2,
|
|
262
|
-
"text-anchor": "middle",
|
|
263
|
-
fill: e.value.style.trendLabel.useColorTrend ? h.value : e.value.style.trendLabel.color,
|
|
264
|
-
"font-size": e.value.style.trendLabel.fontSize,
|
|
265
|
-
"font-weight": e.value.style.trendLabel.bold ? "bold" : "normal"
|
|
266
|
-
}, K(r(ee)({
|
|
267
|
-
p: T.value > 0 ? "+" : "",
|
|
268
|
-
v: T.value,
|
|
269
|
-
s: "%",
|
|
270
|
-
r: e.value.style.trendLabel.rounding
|
|
271
|
-
})), 9, He)) : c("", !0),
|
|
272
|
-
l.value.length && l.value.at(-1).x !== void 0 ? (s(), o("circle", {
|
|
273
|
-
key: 8,
|
|
274
|
-
stroke: e.value.style.backgroundColor,
|
|
275
|
-
"stroke-width": 2,
|
|
276
|
-
cx: l.value.at(-1).x,
|
|
277
|
-
cy: l.value.at(-1).y,
|
|
278
|
-
r: 4,
|
|
279
|
-
fill: r(g) ? "#6A6A6A" : h.value
|
|
280
|
-
}, null, 8, Ue)) : c("", !0),
|
|
281
|
-
l.value.length && l.value.at(-1).x !== void 0 && e.value.style.dataLabel.show ? (s(), o("text", {
|
|
282
|
-
key: 9,
|
|
283
|
-
"text-anchor": "middle",
|
|
284
|
-
x: l.value.at(-1).x,
|
|
285
|
-
y: l.value.at(-1).y - e.value.style.dataLabel.fontSize / 1.5,
|
|
286
|
-
"font-size": e.value.style.dataLabel.fontSize,
|
|
287
|
-
fill: e.value.style.dataLabel.useColorTrend ? h.value : e.value.style.dataLabel.color,
|
|
288
|
-
"font-weight": e.value.style.dataLabel.bold ? "bold" : "normal"
|
|
289
|
-
}, K(r(xe)(
|
|
290
|
-
e.value.style.dataLabel.formatter,
|
|
291
|
-
l.value.at(-1).value,
|
|
292
|
-
r(ee)({
|
|
293
|
-
p: e.value.style.dataLabel.prefix,
|
|
294
|
-
v: l.value.at(-1).value,
|
|
295
|
-
s: e.value.style.dataLabel.suffix,
|
|
296
|
-
r: e.value.style.dataLabel.rounding
|
|
297
|
-
}),
|
|
298
|
-
{ datapoint: l.value.at(-1) }
|
|
299
|
-
)), 9, qe)) : c("", !0)
|
|
300
|
-
], 8, Me)),
|
|
301
|
-
t.$slots.source ? (s(), o("div", {
|
|
302
|
-
key: 0,
|
|
303
|
-
ref_key: "source",
|
|
304
|
-
ref: R,
|
|
305
|
-
dir: "auto"
|
|
306
|
-
}, [
|
|
307
|
-
J(t.$slots, "source", {}, void 0, !0)
|
|
308
|
-
], 512)) : c("", !0),
|
|
309
|
-
r(g) ? (s(), ye(Te, { key: 1 })) : c("", !0)
|
|
310
|
-
], 12, ze));
|
|
311
|
-
}
|
|
312
|
-
}, lt = /* @__PURE__ */ Ne(Pe, [["__scopeId", "data-v-7034e800"]]);
|
|
313
|
-
export {
|
|
314
|
-
lt as default
|
|
315
|
-
};
|