vue-data-ui 3.0.0-next.3 → 3.0.0-next.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{Arrow-C8ztMhxn.js → Arrow-gZkDqarC.js} +1 -1
- package/dist/{BaseDraggableDialog-DoA1cXmQ.js → BaseDraggableDialog-Cx7MDUn7.js} +2 -2
- package/dist/{BaseIcon-TJm1JI2f.js → BaseIcon-DEGIw8ne.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-DwhabPvD.js → ColorPicker-dVo9qgIk.js} +2 -2
- package/dist/{DataTable-DObwKftY.js → DataTable-DjL9vVfm.js} +2 -2
- package/dist/{Legend-C-EDWcHp.js → Legend-DNs8ZSxL.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cmy4Opaq.js → NonSvgPenAndPaper-Bmu00306.js} +3 -3
- package/dist/{PackageVersion-B_SVQo0g.js → PackageVersion-SqC1iXfO.js} +1 -1
- package/dist/{PenAndPaper-CFbTGuB_.js → PenAndPaper-C1bF0gIz.js} +3 -3
- package/dist/{Shape-DGduPk8q.js → Shape-CNmKltYG.js} +1 -1
- package/dist/{Slicer-VumiAmDi.js → Slicer-DYffOkSj.js} +2 -2
- package/dist/{SparkTooltip-DrRmoIkR.js → SparkTooltip-BuPeepCP.js} +7 -7
- package/dist/{Title-Dahu_Ia-.js → Title-B21jaJ0n.js} +1 -1
- package/dist/{Tooltip-j8grOyYT.js → Tooltip-C4HWh3fx.js} +1 -1
- package/dist/{UserOptions-BOIQ8NtD.js → UserOptions-DQDPN9YO.js} +2 -2
- package/dist/{dom-to-png-00aHI4Vj.js → dom-to-png-Z16yk8O6.js} +1 -1
- package/dist/{img-DFeNRkbq.js → img-UQKhhbxb.js} +1 -1
- package/dist/{index-DKjAxJY6.js → index-Bxh2efzz.js} +1298 -1180
- package/dist/{pdf-COmwjbLG.js → pdf-D2K9GCDq.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +140 -15
- package/dist/types/vue-data-ui.d.ts +140 -15
- package/dist/{useNestedProp-Cmx8ApWu.js → useNestedProp-BGEUK51b.js} +1 -1
- package/dist/{usePrinter-BefhLUKK.js → usePrinter-CfB_poc_.js} +2 -2
- package/dist/useTimeLabelCollider-V7AOiPLB.js +71 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DFkUfjfs.js} +211 -152
- package/dist/{vue-data-ui-kdcEQgS0.js → vue-data-ui-Em_nyncZ.js} +80 -74
- package/dist/vue-data-ui.js +58 -56
- package/dist/{vue-ui-3d-bar-Lv9eoXpT.js → vue-ui-3d-bar-KFXQhCpk.js} +6 -6
- package/dist/{vue-ui-accordion-BhrF0D_h.js → vue-ui-accordion-CXj3OfMj.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN94DM1L.js → vue-ui-age-pyramid-Bygd_6Lj.js} +6 -6
- package/dist/{vue-ui-annotator-D-YFzFco.js → vue-ui-annotator-CaxhGvw9.js} +2 -2
- package/dist/{vue-ui-bullet--c-hIC1J.js → vue-ui-bullet-xsVzeIGY.js} +7 -7
- package/dist/vue-ui-candlestick-DT3NblSj.js +989 -0
- package/dist/{vue-ui-carousel-table-Bg4_nEqO.js → vue-ui-carousel-table-Bj6Blcps.js} +4 -4
- package/dist/{vue-ui-chestnut-D9BP8n-D.js → vue-ui-chestnut-Bzi7pvOQ.js} +5 -5
- package/dist/{vue-ui-chord-DDa4TTtv.js → vue-ui-chord-SN0lkfJI.js} +8 -8
- package/dist/{vue-ui-circle-pack-DWxEHCSN.js → vue-ui-circle-pack-BwH7JGeH.js} +26 -26
- package/dist/{vue-ui-cursor-BtLD4k-n.js → vue-ui-cursor-BLHqKKuQ.js} +2 -2
- package/dist/{vue-ui-dashboard-DvyNEYA8.js → vue-ui-dashboard-C5ye3aO2.js} +62 -62
- package/dist/{vue-ui-digits-XkSs-Fvw.js → vue-ui-digits-fWW_yCiA.js} +2 -2
- package/dist/{vue-ui-donut-BO2QuXBj.js → vue-ui-donut-VI_2cil0.js} +405 -380
- package/dist/vue-ui-donut-evolution-BMDGbLPk.js +1072 -0
- package/dist/{vue-ui-dumbbell-jtJmPKky.js → vue-ui-dumbbell-DYVwpQdP.js} +7 -7
- package/dist/{vue-ui-flow-D1hSlRXa.js → vue-ui-flow-BP3lwS2c.js} +7 -7
- package/dist/{vue-ui-funnel-BlLlAOtx.js → vue-ui-funnel-C2gKEJrg.js} +6 -6
- package/dist/{vue-ui-galaxy-BZAhXSnB.js → vue-ui-galaxy-CHu9EpUI.js} +5 -5
- package/dist/{vue-ui-gauge-FdnYVol9.js → vue-ui-gauge-DXoBEk4e.js} +6 -6
- package/dist/{vue-ui-gizmo-BXiMNDNp.js → vue-ui-gizmo-DpWaeVxb.js} +3 -3
- package/dist/{vue-ui-heatmap-BUmZvmK0.js → vue-ui-heatmap-C6Xh5fmd.js} +7 -7
- package/dist/{vue-ui-history-plot-CTT0NO2g.js → vue-ui-history-plot-CH4RJSqN.js} +7 -7
- package/dist/{vue-ui-kpi-BNNqPORJ.js → vue-ui-kpi-DJrypxm5.js} +3 -3
- package/dist/{vue-ui-mini-loader-wa4WjqZj.js → vue-ui-mini-loader-BMaEgYp1.js} +2 -2
- package/dist/{vue-ui-molecule-NGbWYvw-.js → vue-ui-molecule-om_udncc.js} +5 -5
- package/dist/{vue-ui-mood-radar-Dz2YUYPG.js → vue-ui-mood-radar-BOd7BMa4.js} +7 -7
- package/dist/vue-ui-nested-donuts-B6krlgFx.js +1284 -0
- package/dist/{vue-ui-onion-DUeU3zvH.js → vue-ui-onion-COQ1H7Ft.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-5158EX3T.js → vue-ui-parallel-coordinate-plot-CEKsfccd.js} +8 -8
- package/dist/{vue-ui-quadrant-BEaCxPxR.js → vue-ui-quadrant-C88vkF8q.js} +8 -8
- package/dist/{vue-ui-quick-chart-C3yTivjK.js → vue-ui-quick-chart-CG2lY19C.js} +266 -264
- package/dist/{vue-ui-radar-CwRo-de_.js → vue-ui-radar-CUAYzxM4.js} +7 -7
- package/dist/{vue-ui-rating-nHTBjTie.js → vue-ui-rating-DT0BLQ1G.js} +2 -2
- package/dist/{vue-ui-relation-circle-w7TYrdHz.js → vue-ui-relation-circle-Ek_uAHpF.js} +6 -6
- package/dist/{vue-ui-ridgeline-Dk9xpHSw.js → vue-ui-ridgeline-73OXSMcJ.js} +9 -9
- package/dist/{vue-ui-rings-tCL5utj_.js → vue-ui-rings-D1gK_JVs.js} +8 -8
- package/dist/{vue-ui-scatter-BJUJRCto.js → vue-ui-scatter-DCy4Vb84.js} +8 -8
- package/dist/{vue-ui-skeleton-Cf09cngz.js → vue-ui-skeleton-DIb-2uan.js} +3 -3
- package/dist/{vue-ui-smiley-BvoOjmJx.js → vue-ui-smiley-DiIu0kjQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bdz2gHnU.js → vue-ui-spark-trend-BPczzwfH.js} +3 -3
- package/dist/{vue-ui-sparkbar-CS1FzyFk.js → vue-ui-sparkbar-B4LpToMU.js} +3 -3
- package/dist/{vue-ui-sparkgauge-auWy_YMm.js → vue-ui-sparkgauge-D9KwmalJ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-yA_F8Ls5.js → vue-ui-sparkhistogram-h7qmzAe1.js} +4 -4
- package/dist/vue-ui-sparkline-DYYy38Fu.js +489 -0
- package/dist/{vue-ui-sparkstackbar-BhqOPIZT.js → vue-ui-sparkstackbar-DIIyxzKM.js} +3 -3
- package/dist/vue-ui-stackbar-BhPcAjIe.js +1358 -0
- package/dist/{vue-ui-strip-plot-D7KgSU5y.js → vue-ui-strip-plot-9wxxXL3R.js} +7 -7
- package/dist/{vue-ui-table-BDJg5T9l.js → vue-ui-table-FAEiGW1W.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Pp2gbL5G.js → vue-ui-table-heatmap-Cwbw5Rqy.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CmZBjiWv.js → vue-ui-table-sparkline-DnZ44NiP.js} +4 -4
- package/dist/{vue-ui-thermometer-ClY99Umm.js → vue-ui-thermometer-CHFtR_VC.js} +6 -6
- package/dist/{vue-ui-timer-_Bck3rxo.js → vue-ui-timer-DWzZTLxC.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2CtoJT_.js → vue-ui-tiremarks-DTS-ZQRp.js} +6 -6
- package/dist/{vue-ui-treemap-CM-zqI6U.js → vue-ui-treemap-B5OdGgS-.js} +8 -8
- package/dist/vue-ui-vertical-bar-CcjDg9Bc.js +1106 -0
- package/dist/{vue-ui-waffle-B21kT4HO.js → vue-ui-waffle-C1XVqncx.js} +8 -8
- package/dist/{vue-ui-wheel-Dqv-ta7L.js → vue-ui-wheel-DEIJPpR4.js} +6 -6
- package/dist/{vue-ui-word-cloud-DHjvCwD8.js → vue-ui-word-cloud-CUzU4JpO.js} +6 -6
- package/dist/{vue-ui-world-h3Csu0YN.js → vue-ui-world-D0pONCg9.js} +6 -6
- package/dist/vue-ui-xy-EoeoBLu2.js +3027 -0
- package/dist/{vue-ui-xy-canvas-sIRUM_Be.js → vue-ui-xy-canvas-Do-IpmFr.js} +252 -253
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-Dz0D7t8f.js +0 -873
- package/dist/vue-ui-donut-evolution-CQDtCf7k.js +0 -903
- package/dist/vue-ui-nested-donuts-ywwGdEJO.js +0 -1177
- package/dist/vue-ui-sparkline-B-sCAUEL.js +0 -459
- package/dist/vue-ui-stackbar-CZzqF-ZH.js +0 -1207
- package/dist/vue-ui-vertical-bar-CET-9MDi.js +0 -980
- package/dist/vue-ui-xy-CZ7mScyg.js +0 -2958
|
@@ -39,6 +39,7 @@ declare module "vue-data-ui" {
|
|
|
39
39
|
| VueUiThermometerDataset
|
|
40
40
|
| VueUiTiremarksDataset
|
|
41
41
|
| VueUiVerticalBarDatasetItem[]
|
|
42
|
+
| VueUiHorizontalBarDatasetItem[]
|
|
42
43
|
| VueUiWaffleDatasetItem[]
|
|
43
44
|
| VueUiWheelDataset
|
|
44
45
|
| VueUiXyDatasetItem[]
|
|
@@ -95,6 +96,7 @@ declare module "vue-data-ui" {
|
|
|
95
96
|
| VueUiThermometerConfig
|
|
96
97
|
| VueUiTiremarksConfig
|
|
97
98
|
| VueUiVerticalBarConfig
|
|
99
|
+
| VueUiHorizontalBarConfig
|
|
98
100
|
| VueUiWaffleConfig
|
|
99
101
|
| VueUiWheelConfig
|
|
100
102
|
| VueUiXyConfig
|
|
@@ -1307,6 +1309,9 @@ declare module "vue-data-ui" {
|
|
|
1307
1309
|
}>;
|
|
1308
1310
|
|
|
1309
1311
|
export type VueUiDonutEvolutionConfig = {
|
|
1312
|
+
debug?: boolean; // v3
|
|
1313
|
+
loading?: boolean; // v3
|
|
1314
|
+
responsive?: boolean; // V3
|
|
1310
1315
|
theme?: Theme;
|
|
1311
1316
|
customPalette?: string[];
|
|
1312
1317
|
style?: {
|
|
@@ -1344,6 +1349,14 @@ declare module "vue-data-ui" {
|
|
|
1344
1349
|
stroke?: string;
|
|
1345
1350
|
strokeWidth?: number;
|
|
1346
1351
|
showVerticalLines?: boolean;
|
|
1352
|
+
axis?: { // v3
|
|
1353
|
+
yLabel?: string; // v3
|
|
1354
|
+
yLabelOffsetX?: number; // v3
|
|
1355
|
+
xLabel?: string; // v3
|
|
1356
|
+
xLabelOffsetY?: number; // v3
|
|
1357
|
+
fontSize?: number; // v3
|
|
1358
|
+
color?: string; // v3
|
|
1359
|
+
};
|
|
1347
1360
|
yAxis?: {
|
|
1348
1361
|
dataLabels?: {
|
|
1349
1362
|
show?: boolean;
|
|
@@ -1364,6 +1377,7 @@ declare module "vue-data-ui" {
|
|
|
1364
1377
|
showOnlyFirstAndLast?: boolean;
|
|
1365
1378
|
color?: string;
|
|
1366
1379
|
rotation?: number;
|
|
1380
|
+
autoRotate?: boolean;
|
|
1367
1381
|
offsetY?: number;
|
|
1368
1382
|
};
|
|
1369
1383
|
};
|
|
@@ -2370,6 +2384,8 @@ declare module "vue-data-ui" {
|
|
|
2370
2384
|
>;
|
|
2371
2385
|
|
|
2372
2386
|
export type VueUiCandlestickConfig = {
|
|
2387
|
+
debug?: boolean;
|
|
2388
|
+
loading?: boolean;
|
|
2373
2389
|
responsive?: boolean;
|
|
2374
2390
|
responsiveProportionalSizing?: boolean;
|
|
2375
2391
|
theme?: Theme;
|
|
@@ -2398,6 +2414,7 @@ declare module "vue-data-ui" {
|
|
|
2398
2414
|
offsetY?: number;
|
|
2399
2415
|
bold?: boolean;
|
|
2400
2416
|
rotation?: number;
|
|
2417
|
+
autoRotate?: boolean;
|
|
2401
2418
|
};
|
|
2402
2419
|
timeLabels?: {
|
|
2403
2420
|
datetimeFormatter?: AxisDateFormatter
|
|
@@ -2952,10 +2969,14 @@ declare module "vue-data-ui" {
|
|
|
2952
2969
|
}
|
|
2953
2970
|
|
|
2954
2971
|
export type VueUiXyConfig = {
|
|
2955
|
-
debug?: boolean;
|
|
2956
|
-
responsive?: boolean;
|
|
2957
|
-
autoSize?: boolean; // v3 opt-in
|
|
2972
|
+
debug?: boolean; // v3
|
|
2973
|
+
responsive?: boolean; // v3
|
|
2958
2974
|
loading?: boolean; // v3
|
|
2975
|
+
events?: { // v3
|
|
2976
|
+
datapointEnter?: VueUiXyEvent; // v3
|
|
2977
|
+
datapointLeave?: VueUiXyEvent; // v3
|
|
2978
|
+
datapointClick?: VueUiXyEvent; // v3
|
|
2979
|
+
};
|
|
2959
2980
|
responsiveProportionalSizing?: boolean;
|
|
2960
2981
|
theme?: Theme;
|
|
2961
2982
|
customPalette?: string[];
|
|
@@ -3033,6 +3054,8 @@ declare module "vue-data-ui" {
|
|
|
3033
3054
|
groupColor?: string | null;
|
|
3034
3055
|
scaleLabelOffsetX?: number;
|
|
3035
3056
|
scaleValueOffsetX?: number;
|
|
3057
|
+
rounding?: number;
|
|
3058
|
+
serieNameFormatter?: Formatter;
|
|
3036
3059
|
};
|
|
3037
3060
|
xAxis?: {
|
|
3038
3061
|
showBaseline?: boolean;
|
|
@@ -3051,6 +3074,7 @@ declare module "vue-data-ui" {
|
|
|
3051
3074
|
showOnlyAtModulo?: boolean;
|
|
3052
3075
|
modulo?: number;
|
|
3053
3076
|
datetimeFormatter?: AxisDateFormatter;
|
|
3077
|
+
autoRotate?: boolean;
|
|
3054
3078
|
};
|
|
3055
3079
|
};
|
|
3056
3080
|
};
|
|
@@ -3287,11 +3311,16 @@ declare module "vue-data-ui" {
|
|
|
3287
3311
|
{
|
|
3288
3312
|
config?: VueUiXyConfig;
|
|
3289
3313
|
dataset: VueUiXyDatasetItem[];
|
|
3314
|
+
selectedXIndex?: number | null; // v3
|
|
3290
3315
|
},
|
|
3291
3316
|
VueUiXyExpose
|
|
3292
3317
|
>;
|
|
3293
3318
|
|
|
3294
|
-
export type
|
|
3319
|
+
export type ChartEvent<T> = null | (({ datapoint, seriesIndex} : { datapoint: T, seriesIndex: number}) => void)
|
|
3320
|
+
|
|
3321
|
+
export type VueUiDonutEvent = ChartEvent<VueUiDonutDatapoint>;
|
|
3322
|
+
export type VueUiSparklineEvent = ChartEvent<VueUiSparklineDatasetItem>;
|
|
3323
|
+
export type VueUiXyEvent = ChartEvent<VueUiXyDatapointItem[]>;
|
|
3295
3324
|
|
|
3296
3325
|
export type VueUiDonutConfig = {
|
|
3297
3326
|
debug?: boolean;
|
|
@@ -3525,6 +3554,11 @@ declare module "vue-data-ui" {
|
|
|
3525
3554
|
theme?: Theme;
|
|
3526
3555
|
customPalette?: string[];
|
|
3527
3556
|
useCssAnimation?: boolean;
|
|
3557
|
+
events?: {
|
|
3558
|
+
datapointEnter?: VueUiDonutEvent;
|
|
3559
|
+
datapointLeave?: VueUiDonutEvent;
|
|
3560
|
+
datapointClick?: VueUiDonutEvent;
|
|
3561
|
+
};
|
|
3528
3562
|
serieToggleAnimation?: {
|
|
3529
3563
|
show?: boolean;
|
|
3530
3564
|
durationMs?: number;
|
|
@@ -3566,6 +3600,7 @@ declare module "vue-data-ui" {
|
|
|
3566
3600
|
useSerieColor?: boolean;
|
|
3567
3601
|
showDonutName?: boolean;
|
|
3568
3602
|
boldDonutName?: boolean;
|
|
3603
|
+
curvedDonutName?: boolean;
|
|
3569
3604
|
donutNameAbbreviation?: boolean;
|
|
3570
3605
|
donutNameOffsetY?: number;
|
|
3571
3606
|
donutNameMaxAbbreviationSize?: number;
|
|
@@ -3573,6 +3608,7 @@ declare module "vue-data-ui" {
|
|
|
3573
3608
|
};
|
|
3574
3609
|
};
|
|
3575
3610
|
donut?: {
|
|
3611
|
+
radiusRatio?: number;
|
|
3576
3612
|
strokeWidth?: number;
|
|
3577
3613
|
borderWidth?: number;
|
|
3578
3614
|
spacingRatio?: number;
|
|
@@ -4705,24 +4741,33 @@ declare module "vue-data-ui" {
|
|
|
4705
4741
|
value: number;
|
|
4706
4742
|
};
|
|
4707
4743
|
|
|
4744
|
+
export type VueUiHorizontalBarDatasetChild = VueUiVerticalBarDatasetChild; // v3 renaming
|
|
4745
|
+
|
|
4708
4746
|
export type VueUiVerticalBarDatasetItem = {
|
|
4709
4747
|
name: string;
|
|
4710
4748
|
value: number;
|
|
4711
4749
|
color?: string;
|
|
4712
|
-
children?: VueUiVerticalBarDatasetChild[];
|
|
4750
|
+
children?: VueUiVerticalBarDatasetChild[] | VueUiHorizontalBarDatasetChild[];
|
|
4713
4751
|
};
|
|
4714
4752
|
|
|
4715
|
-
export type
|
|
4753
|
+
export type VueUiHorizontalBarDatasetItem = VueUiVerticalBarDatasetItem // v3 renaming
|
|
4754
|
+
|
|
4755
|
+
export type VueUiVerticalBarEvent = null | (({ datapoint, seriesIndex }: { datapoint: VueUiVerticalBarDatapoint | VueUiHorizontalBarDatapoint; seriesIndex: number }) => void);
|
|
4756
|
+
|
|
4757
|
+
export type VueUiHorizontalBarEvent = VueUiVerticalBarEvent; // v3 renaming
|
|
4716
4758
|
|
|
4717
4759
|
export type VueUiVerticalBarConfig = {
|
|
4760
|
+
debug?: boolean;
|
|
4761
|
+
loading?: boolean;
|
|
4762
|
+
autoSize?: boolean;
|
|
4718
4763
|
responsive?: boolean;
|
|
4719
4764
|
theme?: Theme;
|
|
4720
4765
|
customPalette?: string[];
|
|
4721
4766
|
useCssAnimation?: boolean;
|
|
4722
4767
|
events?: {
|
|
4723
|
-
datapointEnter?: VueUiVerticalBarEvent;
|
|
4724
|
-
datapointLeave?: VueUiVerticalBarEvent;
|
|
4725
|
-
datapointClick?: VueUiVerticalBarEvent;
|
|
4768
|
+
datapointEnter?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
|
|
4769
|
+
datapointLeave?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
|
|
4770
|
+
datapointClick?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
|
|
4726
4771
|
};
|
|
4727
4772
|
style?: {
|
|
4728
4773
|
fontFamily?: string;
|
|
@@ -4783,6 +4828,7 @@ declare module "vue-data-ui" {
|
|
|
4783
4828
|
show?: boolean;
|
|
4784
4829
|
color?: string;
|
|
4785
4830
|
strokeWidth?: number;
|
|
4831
|
+
fullWidth?: boolean;
|
|
4786
4832
|
};
|
|
4787
4833
|
};
|
|
4788
4834
|
title?: ChartTitle;
|
|
@@ -4805,9 +4851,9 @@ declare module "vue-data-ui" {
|
|
|
4805
4851
|
| null
|
|
4806
4852
|
| ((
|
|
4807
4853
|
params: VueUiTooltipParams<
|
|
4808
|
-
VueUiVerticalBarDatapoint,
|
|
4809
|
-
VueUiVerticalBarSerie[],
|
|
4810
|
-
VueUiVerticalBarConfig
|
|
4854
|
+
VueUiVerticalBarDatapoint | VueUiHorizontalBarDatapoint,
|
|
4855
|
+
VueUiVerticalBarSerie[] | VueUiHorizontalBarSerie[],
|
|
4856
|
+
VueUiVerticalBarConfig | VueUiHorizontalBarConfig
|
|
4811
4857
|
>
|
|
4812
4858
|
) => string);
|
|
4813
4859
|
};
|
|
@@ -4834,6 +4880,8 @@ declare module "vue-data-ui" {
|
|
|
4834
4880
|
};
|
|
4835
4881
|
};
|
|
4836
4882
|
|
|
4883
|
+
export type VueUiHorizontalBarConfig = VueUiVerticalBarConfig; // v3 renaming;
|
|
4884
|
+
|
|
4837
4885
|
export type VueUiVerticalBarDatapoint = {
|
|
4838
4886
|
children?: Array<any>;
|
|
4839
4887
|
childIndex?: number;
|
|
@@ -4850,8 +4898,10 @@ declare module "vue-data-ui" {
|
|
|
4850
4898
|
value: number;
|
|
4851
4899
|
};
|
|
4852
4900
|
|
|
4901
|
+
export type VueUiHorizontalBarDatapoint = VueUiVerticalBarDatapoint; // v3 renaming
|
|
4902
|
+
|
|
4853
4903
|
export type VueUiVerticalBarSerie = {
|
|
4854
|
-
children: VueUiVerticalBarDatapoint[];
|
|
4904
|
+
children: VueUiVerticalBarDatapoint[] | VueUiHorizontalBarDatapoint[];
|
|
4855
4905
|
color: string;
|
|
4856
4906
|
hasChildren: boolean;
|
|
4857
4907
|
is: string;
|
|
@@ -4862,8 +4912,10 @@ declare module "vue-data-ui" {
|
|
|
4862
4912
|
value: number;
|
|
4863
4913
|
};
|
|
4864
4914
|
|
|
4915
|
+
export type VueUiHorizontalBarSerie = VueUiVerticalBarSerie; // v3 renaming
|
|
4916
|
+
|
|
4865
4917
|
export type VueUiVerticalBarExpose = {
|
|
4866
|
-
getData(): Promise<Array<VueUiVerticalBarDatasetItem & Record<string, any>>>
|
|
4918
|
+
getData(): Promise<Array<VueUiVerticalBarDatasetItem & Record<string, any>>> | Promise<Array<VueUiHorizontalBarDatasetItem & Record<string, any>>>
|
|
4867
4919
|
getImage(options?: { scale?: number }): GetImagePromise
|
|
4868
4920
|
recalculateHeight(): void,
|
|
4869
4921
|
generateCsv(): void
|
|
@@ -4876,6 +4928,8 @@ declare module "vue-data-ui" {
|
|
|
4876
4928
|
toggleFullscreen(): void
|
|
4877
4929
|
}
|
|
4878
4930
|
|
|
4931
|
+
export type VueUiHorizontalBarExpose = VueUiVerticalBarExpose; // v3 renaming
|
|
4932
|
+
|
|
4879
4933
|
export const VueUiVerticalBar: DefineComponent<
|
|
4880
4934
|
{
|
|
4881
4935
|
config?: VueUiVerticalBarConfig;
|
|
@@ -4884,8 +4938,19 @@ declare module "vue-data-ui" {
|
|
|
4884
4938
|
VueUiVerticalBarExpose
|
|
4885
4939
|
>;
|
|
4886
4940
|
|
|
4941
|
+
/**
|
|
4942
|
+
* Renamed from the v2 VueUiVerticalBar
|
|
4943
|
+
*/
|
|
4944
|
+
export const VueUiHorizontalBar: DefineComponent<
|
|
4945
|
+
{
|
|
4946
|
+
config?: VueUiHorizontalBarConfig;
|
|
4947
|
+
dataset: VueUiHorizontalBarDatasetItem[];
|
|
4948
|
+
},
|
|
4949
|
+
VueUiHorizontalBarExpose
|
|
4950
|
+
>;
|
|
4951
|
+
|
|
4887
4952
|
export type VueUiSparklineDatasetItem = {
|
|
4888
|
-
period: string;
|
|
4953
|
+
period: string | number;
|
|
4889
4954
|
value: number;
|
|
4890
4955
|
absoluteValue?: number;
|
|
4891
4956
|
id?: string;
|
|
@@ -4897,9 +4962,16 @@ declare module "vue-data-ui" {
|
|
|
4897
4962
|
};
|
|
4898
4963
|
|
|
4899
4964
|
export type VueUiSparklineConfig = {
|
|
4965
|
+
loading?: boolean; // v3
|
|
4966
|
+
debug?: boolean; // v3
|
|
4900
4967
|
theme?: Theme;
|
|
4901
4968
|
type?: "line" | "bar";
|
|
4902
4969
|
responsive?: boolean;
|
|
4970
|
+
events?: { // v3
|
|
4971
|
+
datapointEnter?: VueUiSparklineEvent; // v3
|
|
4972
|
+
datapointLeave?: VueUiSparklineEvent; // v3
|
|
4973
|
+
datapointClick?: VueUiSparklineEvent; // v3
|
|
4974
|
+
};
|
|
4903
4975
|
downsample?: {
|
|
4904
4976
|
threshold?: number;
|
|
4905
4977
|
};
|
|
@@ -4967,6 +5039,7 @@ declare module "vue-data-ui" {
|
|
|
4967
5039
|
prefix?: string;
|
|
4968
5040
|
suffix?: string;
|
|
4969
5041
|
formatter?: Formatter;
|
|
5042
|
+
datetimeFormatter?: AxisDateFormatter; // v3
|
|
4970
5043
|
};
|
|
4971
5044
|
title?: {
|
|
4972
5045
|
show?: boolean;
|
|
@@ -7087,6 +7160,7 @@ declare module "vue-data-ui" {
|
|
|
7087
7160
|
datetimeFormatter?: AxisDateFormatter;
|
|
7088
7161
|
offsetY?: number;
|
|
7089
7162
|
rotation?: number;
|
|
7163
|
+
autoRotate?: boolean;
|
|
7090
7164
|
fontSize?: number;
|
|
7091
7165
|
color?: string;
|
|
7092
7166
|
bold?: boolean;
|
|
@@ -8108,6 +8182,7 @@ declare module "vue-data-ui" {
|
|
|
8108
8182
|
| VueUiThermometerConfig
|
|
8109
8183
|
| VueUiTiremarksConfig
|
|
8110
8184
|
| VueUiVerticalBarConfig
|
|
8185
|
+
| VueUiHorizontalBarConfig
|
|
8111
8186
|
| VueUiWaffleConfig
|
|
8112
8187
|
| VueUiWheelConfig
|
|
8113
8188
|
| VueUiXyConfig
|
|
@@ -8171,6 +8246,7 @@ declare module "vue-data-ui" {
|
|
|
8171
8246
|
| "vue_ui_thermometer"
|
|
8172
8247
|
| "vue_ui_tiremarks"
|
|
8173
8248
|
| "vue_ui_vertical_bar"
|
|
8249
|
+
| "vue_ui_horizontal_bar"
|
|
8174
8250
|
| "vue_ui_waffle"
|
|
8175
8251
|
| "vue_ui_wheel"
|
|
8176
8252
|
| "vue_ui_xy"
|
|
@@ -8486,6 +8562,55 @@ declare module "vue-data-ui" {
|
|
|
8486
8562
|
* @returns The shifted color in hexadecimal format.
|
|
8487
8563
|
*/
|
|
8488
8564
|
export const shiftColorHue: (color: string, strength: number) => string;
|
|
8565
|
+
|
|
8566
|
+
export type FormatSmallValueArgs = {
|
|
8567
|
+
value: number;
|
|
8568
|
+
maxDecimals?: number;
|
|
8569
|
+
fallbackFormatter?: (value: number) => string;
|
|
8570
|
+
removeTrailingZero?: boolean
|
|
8571
|
+
}
|
|
8572
|
+
|
|
8573
|
+
/**
|
|
8574
|
+
* Vue Data UI utility
|
|
8575
|
+
* ---
|
|
8576
|
+
* Formats numeric values with a controlled number of decimal places,
|
|
8577
|
+
* applying maxDecimals for all values when no fallbackFormatter is given,
|
|
8578
|
+
* or calling the fallbackFormatter for values ≥ 1 if provided.
|
|
8579
|
+
* ___
|
|
8580
|
+
* @example
|
|
8581
|
+
* // Zero value
|
|
8582
|
+
* formatSmallValue({ value: 0 }); // "0"
|
|
8583
|
+
*
|
|
8584
|
+
* // Values < 1 use minimal decimals
|
|
8585
|
+
* formatSmallValue({ value: 0.9 }); // "0.9"
|
|
8586
|
+
* formatSmallValue({ value: 0.0042 }); // "0.0042"
|
|
8587
|
+
* formatSmallValue({ value: 0.00420001 }); // "0.0042"
|
|
8588
|
+
*
|
|
8589
|
+
* // Retain trailing zeros
|
|
8590
|
+
* formatSmallValue({ value: 0.9, removeTrailingZero: false }); // "0.90"
|
|
8591
|
+
*
|
|
8592
|
+
* // Values ≥ 1 without fallback apply maxDecimals
|
|
8593
|
+
* formatSmallValue({ value: 1.61803, maxDecimals: 3 }); // "1.618"
|
|
8594
|
+
*
|
|
8595
|
+
* // Values ≥ 1 with fallbackFormatter
|
|
8596
|
+
* formatSmallValue({ value: 2.5, fallbackFormatter: v => v.toFixed(1) }); // "2.5"
|
|
8597
|
+
*
|
|
8598
|
+
* // Negative values
|
|
8599
|
+
* formatSmallValue({ value: -0.056 }); // "-0.056"
|
|
8600
|
+
*
|
|
8601
|
+
* @param {FormatSmallValueArgs} options - Configuration object for formatting.
|
|
8602
|
+
* @param {number} options.value - The numeric value to format.
|
|
8603
|
+
* @param {number} [options.maxDecimals=4] - Maximum decimal places to use.
|
|
8604
|
+
* @param {(value: number) => string} [options.fallbackFormatter] - Formatter for values ≥ 1.
|
|
8605
|
+
* @param {boolean} [options.removeTrailingZero=true] - Whether to strip unnecessary trailing zeros.
|
|
8606
|
+
* @returns {string} The formatted number as a string.
|
|
8607
|
+
*/
|
|
8608
|
+
export const formatSmallValue: ({
|
|
8609
|
+
value,
|
|
8610
|
+
maxDecimals,
|
|
8611
|
+
fallbackFormatter,
|
|
8612
|
+
removeTrailingZero
|
|
8613
|
+
}: FormatSmallValueArgs) => string
|
|
8489
8614
|
|
|
8490
8615
|
export type CreateTSpansArgs = {
|
|
8491
8616
|
content: string;
|
|
@@ -10,7 +10,7 @@ function m({
|
|
|
10
10
|
!t || r.value || (r.value = !0, clearTimeout(n.value), n.value = setTimeout(async () => {
|
|
11
11
|
if (t)
|
|
12
12
|
try {
|
|
13
|
-
const { default: e } = await import("./pdf-
|
|
13
|
+
const { default: e } = await import("./pdf-D2K9GCDq.js");
|
|
14
14
|
await e({
|
|
15
15
|
domElement: document.getElementById(u),
|
|
16
16
|
fileName: l,
|
|
@@ -27,7 +27,7 @@ function m({
|
|
|
27
27
|
!t || a.value || (a.value = !0, clearTimeout(n.value), n.value = setTimeout(async () => {
|
|
28
28
|
if (t)
|
|
29
29
|
try {
|
|
30
|
-
const { default: e } = await import("./img-
|
|
30
|
+
const { default: e } = await import("./img-UQKhhbxb.js");
|
|
31
31
|
await e({
|
|
32
32
|
domElement: document.getElementById(u),
|
|
33
33
|
fileName: l,
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { watch as L, nextTick as N } from "vue";
|
|
2
|
+
function q({
|
|
3
|
+
timeLabelsEls: y,
|
|
4
|
+
timeLabels: T,
|
|
5
|
+
slicer: v,
|
|
6
|
+
configRef: u,
|
|
7
|
+
rotationPath: i,
|
|
8
|
+
autoRotatePath: C,
|
|
9
|
+
isAutoSize: b,
|
|
10
|
+
setViewBox: p,
|
|
11
|
+
forceResizeObserver: h,
|
|
12
|
+
callback: a
|
|
13
|
+
}) {
|
|
14
|
+
function l(s, n) {
|
|
15
|
+
return n.reduce((e, t) => e && e[t], s);
|
|
16
|
+
}
|
|
17
|
+
function w(s, n, e) {
|
|
18
|
+
n.slice(0, -1).reduce((t, o) => t[o], s)[n.slice(-1)] = e;
|
|
19
|
+
}
|
|
20
|
+
function g(s) {
|
|
21
|
+
const n = /translate\(\s*([^\s,]+)\s*,\s*([^\s,]+)\s*\)/.exec(s);
|
|
22
|
+
return n ? {
|
|
23
|
+
x: parseFloat(n[1]),
|
|
24
|
+
y: parseFloat(n[2])
|
|
25
|
+
} : { x: 0, y: 0 };
|
|
26
|
+
}
|
|
27
|
+
async function c() {
|
|
28
|
+
await N();
|
|
29
|
+
const s = y.value;
|
|
30
|
+
if (!s) return;
|
|
31
|
+
const e = Array.from(s.querySelectorAll(".vue-data-ui-time-label")).map((r) => ({
|
|
32
|
+
...g(r.getAttribute("transform")),
|
|
33
|
+
width: r.getBBox().width
|
|
34
|
+
}));
|
|
35
|
+
let t = !1;
|
|
36
|
+
const o = 4;
|
|
37
|
+
for (let r = 0; r < e.length && !t; r += 1)
|
|
38
|
+
for (let m = r + 1; m < e.length; m += 1) {
|
|
39
|
+
const x = e[r], f = e[m];
|
|
40
|
+
if (!(x.x + x.width + o < f.x || f.x + f.width + o < x.x)) {
|
|
41
|
+
t = !0;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const d = l(u.value, i);
|
|
46
|
+
t && !d ? (w(u.value, i, -30.0001), a && a({ collision: t }), b.value && p && h && (p(), h())) : !t && d === -30.0001 && (w(u.value, i, 0), a && a({ collision: t }));
|
|
47
|
+
}
|
|
48
|
+
function A(s, n) {
|
|
49
|
+
let e;
|
|
50
|
+
return (...t) => {
|
|
51
|
+
clearTimeout(e), e = setTimeout(() => s(...t), n);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const F = A(c, 200);
|
|
55
|
+
return L(
|
|
56
|
+
[
|
|
57
|
+
() => T.value,
|
|
58
|
+
() => l(u.value, i),
|
|
59
|
+
() => v.value.start,
|
|
60
|
+
() => v.value.end
|
|
61
|
+
],
|
|
62
|
+
async ([, , s, n], [, , e, t]) => {
|
|
63
|
+
if (!l(u.value, C)) return;
|
|
64
|
+
s !== e || n !== t ? F() : await c();
|
|
65
|
+
},
|
|
66
|
+
{ immediate: !0 }
|
|
67
|
+
), { detectTimeLabelCollision: c };
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
q as u
|
|
71
|
+
};
|