vue-data-ui 3.0.0-next.3 → 3.0.0-next.31

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.
Files changed (100) hide show
  1. package/README.md +1 -1
  2. package/dist/{Arrow-C8ztMhxn.js → Arrow-CjrRAMiU.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DoA1cXmQ.js → BaseDraggableDialog-Bat9k7_9.js} +2 -2
  4. package/dist/{BaseIcon-TJm1JI2f.js → BaseIcon-DGtQbkFy.js} +1 -1
  5. package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
  6. package/dist/{ColorPicker-DwhabPvD.js → ColorPicker-DowMg7RO.js} +2 -2
  7. package/dist/{DataTable-DObwKftY.js → DataTable-DAZn6udI.js} +2 -2
  8. package/dist/{Legend-C-EDWcHp.js → Legend-DCsRNGsk.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-Cmy4Opaq.js → NonSvgPenAndPaper-BhfZ3RsC.js} +3 -3
  10. package/dist/{PackageVersion-B_SVQo0g.js → PackageVersion-CJPhC_FI.js} +1 -1
  11. package/dist/{PenAndPaper-CFbTGuB_.js → PenAndPaper-kGe5NPSy.js} +3 -3
  12. package/dist/{Shape-DGduPk8q.js → Shape-D6ahkZT8.js} +1 -1
  13. package/dist/{Slicer-VumiAmDi.js → Slicer-CUUN5Npc.js} +2 -2
  14. package/dist/{SparkTooltip-DrRmoIkR.js → SparkTooltip-1EkqR7Qj.js} +7 -7
  15. package/dist/{Title-Dahu_Ia-.js → Title-gfAAMBE3.js} +1 -1
  16. package/dist/{Tooltip-j8grOyYT.js → Tooltip-eZi8Q0Mr.js} +23 -19
  17. package/dist/{UserOptions-BOIQ8NtD.js → UserOptions-Dd0OHMn7.js} +2 -2
  18. package/dist/{dom-to-png-00aHI4Vj.js → dom-to-png-CwBiVDQT.js} +1 -1
  19. package/dist/{img-DFeNRkbq.js → img-FayRC7eM.js} +1 -1
  20. package/dist/{index-DKjAxJY6.js → index-CvyDwC1y.js} +1305 -1181
  21. package/dist/{pdf-COmwjbLG.js → pdf-B_EkQtoL.js} +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/types/vue-data-ui.d.cts +144 -15
  24. package/dist/types/vue-data-ui.d.ts +144 -15
  25. package/dist/{useNestedProp-Cmx8ApWu.js → useNestedProp-B-ULAHAH.js} +1 -1
  26. package/dist/{usePrinter-BefhLUKK.js → usePrinter-BAQfJI9j.js} +2 -2
  27. package/dist/useTimeLabelCollider-V7AOiPLB.js +71 -0
  28. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DFkUfjfs.js} +211 -152
  29. package/dist/{vue-data-ui-kdcEQgS0.js → vue-data-ui-Drw9rZ27.js} +80 -74
  30. package/dist/vue-data-ui.js +58 -56
  31. package/dist/{vue-ui-3d-bar-Lv9eoXpT.js → vue-ui-3d-bar-Bu68MVtW.js} +6 -6
  32. package/dist/{vue-ui-accordion-BhrF0D_h.js → vue-ui-accordion-ErGvIA2d.js} +3 -3
  33. package/dist/{vue-ui-age-pyramid-DN94DM1L.js → vue-ui-age-pyramid-CeTpdJmu.js} +11 -9
  34. package/dist/{vue-ui-annotator-D-YFzFco.js → vue-ui-annotator-DneaduAI.js} +2 -2
  35. package/dist/{vue-ui-bullet--c-hIC1J.js → vue-ui-bullet-gol3S_xU.js} +7 -7
  36. package/dist/vue-ui-candlestick-BIjOGylw.js +991 -0
  37. package/dist/{vue-ui-carousel-table-Bg4_nEqO.js → vue-ui-carousel-table-DMIknisD.js} +4 -4
  38. package/dist/{vue-ui-chestnut-D9BP8n-D.js → vue-ui-chestnut-BpaWvBdS.js} +5 -5
  39. package/dist/{vue-ui-chord-DDa4TTtv.js → vue-ui-chord-BxtcK3_z.js} +8 -8
  40. package/dist/{vue-ui-circle-pack-DWxEHCSN.js → vue-ui-circle-pack-C1VhKFJH.js} +26 -26
  41. package/dist/{vue-ui-cursor-BtLD4k-n.js → vue-ui-cursor-BfBzN6pL.js} +2 -2
  42. package/dist/{vue-ui-dashboard-DvyNEYA8.js → vue-ui-dashboard-BkJ-_5VM.js} +62 -62
  43. package/dist/{vue-ui-digits-XkSs-Fvw.js → vue-ui-digits-DiVIJnu1.js} +2 -2
  44. package/dist/{vue-ui-donut-BO2QuXBj.js → vue-ui-donut-Bzs1fvFg.js} +408 -381
  45. package/dist/vue-ui-donut-evolution-CphzEyQm.js +1072 -0
  46. package/dist/{vue-ui-dumbbell-jtJmPKky.js → vue-ui-dumbbell-DZ_K-uO1.js} +7 -7
  47. package/dist/{vue-ui-flow-D1hSlRXa.js → vue-ui-flow-B1Smp670.js} +12 -10
  48. package/dist/{vue-ui-funnel-BlLlAOtx.js → vue-ui-funnel-MxaU-Y6j.js} +6 -6
  49. package/dist/{vue-ui-galaxy-BZAhXSnB.js → vue-ui-galaxy-CuIvJuky.js} +51 -49
  50. package/dist/{vue-ui-gauge-FdnYVol9.js → vue-ui-gauge-CQa1ARJW.js} +6 -6
  51. package/dist/{vue-ui-gizmo-BXiMNDNp.js → vue-ui-gizmo-CYD2DkWS.js} +3 -3
  52. package/dist/{vue-ui-heatmap-BUmZvmK0.js → vue-ui-heatmap-DPKVxs97.js} +32 -30
  53. package/dist/{vue-ui-history-plot-CTT0NO2g.js → vue-ui-history-plot-CfaqUSG0.js} +12 -10
  54. package/dist/{vue-ui-kpi-BNNqPORJ.js → vue-ui-kpi-BF7LY0ml.js} +3 -3
  55. package/dist/{vue-ui-mini-loader-wa4WjqZj.js → vue-ui-mini-loader-paPzy6bc.js} +2 -2
  56. package/dist/{vue-ui-molecule-NGbWYvw-.js → vue-ui-molecule-s8MbsyOD.js} +35 -33
  57. package/dist/{vue-ui-mood-radar-Dz2YUYPG.js → vue-ui-mood-radar-DJVB6bAz.js} +7 -7
  58. package/dist/vue-ui-nested-donuts-Cj6UWI-E.js +1286 -0
  59. package/dist/{vue-ui-onion-DUeU3zvH.js → vue-ui-onion-CZPQVM2E.js} +46 -44
  60. package/dist/{vue-ui-parallel-coordinate-plot-5158EX3T.js → vue-ui-parallel-coordinate-plot-BFjFaGPP.js} +69 -67
  61. package/dist/{vue-ui-quadrant-BEaCxPxR.js → vue-ui-quadrant-BliWKYkH.js} +59 -57
  62. package/dist/{vue-ui-quick-chart-C3yTivjK.js → vue-ui-quick-chart-BnsIAVwN.js} +269 -265
  63. package/dist/{vue-ui-radar-CwRo-de_.js → vue-ui-radar-BKWpjRbP.js} +12 -10
  64. package/dist/{vue-ui-rating-nHTBjTie.js → vue-ui-rating-BfGF_GEg.js} +2 -2
  65. package/dist/{vue-ui-relation-circle-w7TYrdHz.js → vue-ui-relation-circle-5U3oW2sT.js} +6 -6
  66. package/dist/{vue-ui-ridgeline-Dk9xpHSw.js → vue-ui-ridgeline-Ch5zmtxC.js} +9 -9
  67. package/dist/{vue-ui-rings-tCL5utj_.js → vue-ui-rings-B0NyCg-p.js} +13 -11
  68. package/dist/{vue-ui-scatter-BJUJRCto.js → vue-ui-scatter-Xv9oRiGO.js} +72 -70
  69. package/dist/{vue-ui-skeleton-Cf09cngz.js → vue-ui-skeleton-B-AdrWNd.js} +3 -3
  70. package/dist/{vue-ui-smiley-BvoOjmJx.js → vue-ui-smiley-snwlluW9.js} +2 -2
  71. package/dist/{vue-ui-spark-trend-Bdz2gHnU.js → vue-ui-spark-trend-DSdhsrCl.js} +3 -3
  72. package/dist/{vue-ui-sparkbar-CS1FzyFk.js → vue-ui-sparkbar-eABecvjz.js} +3 -3
  73. package/dist/{vue-ui-sparkgauge-auWy_YMm.js → vue-ui-sparkgauge-DFsW13y7.js} +3 -3
  74. package/dist/{vue-ui-sparkhistogram-yA_F8Ls5.js → vue-ui-sparkhistogram-DPzGXjFj.js} +4 -4
  75. package/dist/vue-ui-sparkline-B5OPRjNU.js +489 -0
  76. package/dist/{vue-ui-sparkstackbar-BhqOPIZT.js → vue-ui-sparkstackbar-CVBdITIs.js} +55 -53
  77. package/dist/vue-ui-stackbar-BTr1BBN4.js +1360 -0
  78. package/dist/{vue-ui-strip-plot-D7KgSU5y.js → vue-ui-strip-plot-54NtDb0A.js} +30 -28
  79. package/dist/{vue-ui-table-BDJg5T9l.js → vue-ui-table-B3FWWAuR.js} +3 -3
  80. package/dist/{vue-ui-table-heatmap-Pp2gbL5G.js → vue-ui-table-heatmap-BTWwkQXu.js} +5 -5
  81. package/dist/{vue-ui-table-sparkline-CmZBjiWv.js → vue-ui-table-sparkline-L_VfVY3_.js} +4 -4
  82. package/dist/{vue-ui-thermometer-ClY99Umm.js → vue-ui-thermometer-BYg-tLqb.js} +6 -6
  83. package/dist/{vue-ui-timer-_Bck3rxo.js → vue-ui-timer-Bsm1nthM.js} +5 -5
  84. package/dist/{vue-ui-tiremarks-C2CtoJT_.js → vue-ui-tiremarks-DDNjDbqV.js} +6 -6
  85. package/dist/{vue-ui-treemap-CM-zqI6U.js → vue-ui-treemap-4Rb7juUd.js} +13 -11
  86. package/dist/vue-ui-vertical-bar-BBUHbyBk.js +1108 -0
  87. package/dist/{vue-ui-waffle-B21kT4HO.js → vue-ui-waffle-B0pPICBw.js} +13 -11
  88. package/dist/{vue-ui-wheel-Dqv-ta7L.js → vue-ui-wheel-DsxxqjAU.js} +6 -6
  89. package/dist/{vue-ui-word-cloud-DHjvCwD8.js → vue-ui-word-cloud-Bcy11LqK.js} +12 -10
  90. package/dist/{vue-ui-world-h3Csu0YN.js → vue-ui-world-6gaLWJY0.js} +11 -9
  91. package/dist/vue-ui-xy-DH1dcD0K.js +3031 -0
  92. package/dist/{vue-ui-xy-canvas-sIRUM_Be.js → vue-ui-xy-canvas-dEh72fwk.js} +265 -264
  93. package/package.json +1 -1
  94. package/dist/vue-ui-candlestick-Dz0D7t8f.js +0 -873
  95. package/dist/vue-ui-donut-evolution-CQDtCf7k.js +0 -903
  96. package/dist/vue-ui-nested-donuts-ywwGdEJO.js +0 -1177
  97. package/dist/vue-ui-sparkline-B-sCAUEL.js +0 -459
  98. package/dist/vue-ui-stackbar-CZzqF-ZH.js +0 -1207
  99. package/dist/vue-ui-vertical-bar-CET-9MDi.js +0 -980
  100. 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
@@ -257,6 +259,8 @@ declare module "vue-data-ui" {
257
259
  backgroundOpacity?: number;
258
260
  position?: TooltipPosition;
259
261
  offsetY?: number;
262
+ smooth?: boolean;
263
+ backdropFilter?: boolean;
260
264
  };
261
265
 
262
266
  export type ZoomMinimap = {
@@ -1307,6 +1311,9 @@ declare module "vue-data-ui" {
1307
1311
  }>;
1308
1312
 
1309
1313
  export type VueUiDonutEvolutionConfig = {
1314
+ debug?: boolean; // v3
1315
+ loading?: boolean; // v3
1316
+ responsive?: boolean; // V3
1310
1317
  theme?: Theme;
1311
1318
  customPalette?: string[];
1312
1319
  style?: {
@@ -1344,6 +1351,14 @@ declare module "vue-data-ui" {
1344
1351
  stroke?: string;
1345
1352
  strokeWidth?: number;
1346
1353
  showVerticalLines?: boolean;
1354
+ axis?: { // v3
1355
+ yLabel?: string; // v3
1356
+ yLabelOffsetX?: number; // v3
1357
+ xLabel?: string; // v3
1358
+ xLabelOffsetY?: number; // v3
1359
+ fontSize?: number; // v3
1360
+ color?: string; // v3
1361
+ };
1347
1362
  yAxis?: {
1348
1363
  dataLabels?: {
1349
1364
  show?: boolean;
@@ -1364,6 +1379,7 @@ declare module "vue-data-ui" {
1364
1379
  showOnlyFirstAndLast?: boolean;
1365
1380
  color?: string;
1366
1381
  rotation?: number;
1382
+ autoRotate?: boolean;
1367
1383
  offsetY?: number;
1368
1384
  };
1369
1385
  };
@@ -2370,6 +2386,8 @@ declare module "vue-data-ui" {
2370
2386
  >;
2371
2387
 
2372
2388
  export type VueUiCandlestickConfig = {
2389
+ debug?: boolean;
2390
+ loading?: boolean;
2373
2391
  responsive?: boolean;
2374
2392
  responsiveProportionalSizing?: boolean;
2375
2393
  theme?: Theme;
@@ -2398,6 +2416,7 @@ declare module "vue-data-ui" {
2398
2416
  offsetY?: number;
2399
2417
  bold?: boolean;
2400
2418
  rotation?: number;
2419
+ autoRotate?: boolean;
2401
2420
  };
2402
2421
  timeLabels?: {
2403
2422
  datetimeFormatter?: AxisDateFormatter
@@ -2952,10 +2971,14 @@ declare module "vue-data-ui" {
2952
2971
  }
2953
2972
 
2954
2973
  export type VueUiXyConfig = {
2955
- debug?: boolean;
2956
- responsive?: boolean;
2957
- autoSize?: boolean; // v3 opt-in
2974
+ debug?: boolean; // v3
2975
+ responsive?: boolean; // v3
2958
2976
  loading?: boolean; // v3
2977
+ events?: { // v3
2978
+ datapointEnter?: VueUiXyEvent; // v3
2979
+ datapointLeave?: VueUiXyEvent; // v3
2980
+ datapointClick?: VueUiXyEvent; // v3
2981
+ };
2959
2982
  responsiveProportionalSizing?: boolean;
2960
2983
  theme?: Theme;
2961
2984
  customPalette?: string[];
@@ -3033,6 +3056,8 @@ declare module "vue-data-ui" {
3033
3056
  groupColor?: string | null;
3034
3057
  scaleLabelOffsetX?: number;
3035
3058
  scaleValueOffsetX?: number;
3059
+ rounding?: number;
3060
+ serieNameFormatter?: Formatter;
3036
3061
  };
3037
3062
  xAxis?: {
3038
3063
  showBaseline?: boolean;
@@ -3051,6 +3076,7 @@ declare module "vue-data-ui" {
3051
3076
  showOnlyAtModulo?: boolean;
3052
3077
  modulo?: number;
3053
3078
  datetimeFormatter?: AxisDateFormatter;
3079
+ autoRotate?: boolean;
3054
3080
  };
3055
3081
  };
3056
3082
  };
@@ -3287,11 +3313,16 @@ declare module "vue-data-ui" {
3287
3313
  {
3288
3314
  config?: VueUiXyConfig;
3289
3315
  dataset: VueUiXyDatasetItem[];
3316
+ selectedXIndex?: number | null; // v3
3290
3317
  },
3291
3318
  VueUiXyExpose
3292
3319
  >;
3293
3320
 
3294
- export type VueUiDonutEvent = null | (({datapoint, seriesIndex }: { datapoint: VueUiDonutDatapoint; seriesIndex: number }) => void);
3321
+ export type ChartEvent<T> = null | (({ datapoint, seriesIndex} : { datapoint: T, seriesIndex: number}) => void)
3322
+
3323
+ export type VueUiDonutEvent = ChartEvent<VueUiDonutDatapoint>;
3324
+ export type VueUiSparklineEvent = ChartEvent<VueUiSparklineDatasetItem>;
3325
+ export type VueUiXyEvent = ChartEvent<VueUiXyDatapointItem[]>;
3295
3326
 
3296
3327
  export type VueUiDonutConfig = {
3297
3328
  debug?: boolean;
@@ -3525,6 +3556,11 @@ declare module "vue-data-ui" {
3525
3556
  theme?: Theme;
3526
3557
  customPalette?: string[];
3527
3558
  useCssAnimation?: boolean;
3559
+ events?: {
3560
+ datapointEnter?: VueUiDonutEvent;
3561
+ datapointLeave?: VueUiDonutEvent;
3562
+ datapointClick?: VueUiDonutEvent;
3563
+ };
3528
3564
  serieToggleAnimation?: {
3529
3565
  show?: boolean;
3530
3566
  durationMs?: number;
@@ -3566,6 +3602,7 @@ declare module "vue-data-ui" {
3566
3602
  useSerieColor?: boolean;
3567
3603
  showDonutName?: boolean;
3568
3604
  boldDonutName?: boolean;
3605
+ curvedDonutName?: boolean;
3569
3606
  donutNameAbbreviation?: boolean;
3570
3607
  donutNameOffsetY?: number;
3571
3608
  donutNameMaxAbbreviationSize?: number;
@@ -3573,6 +3610,7 @@ declare module "vue-data-ui" {
3573
3610
  };
3574
3611
  };
3575
3612
  donut?: {
3613
+ radiusRatio?: number;
3576
3614
  strokeWidth?: number;
3577
3615
  borderWidth?: number;
3578
3616
  spacingRatio?: number;
@@ -4705,24 +4743,33 @@ declare module "vue-data-ui" {
4705
4743
  value: number;
4706
4744
  };
4707
4745
 
4746
+ export type VueUiHorizontalBarDatasetChild = VueUiVerticalBarDatasetChild; // v3 renaming
4747
+
4708
4748
  export type VueUiVerticalBarDatasetItem = {
4709
4749
  name: string;
4710
4750
  value: number;
4711
4751
  color?: string;
4712
- children?: VueUiVerticalBarDatasetChild[];
4752
+ children?: VueUiVerticalBarDatasetChild[] | VueUiHorizontalBarDatasetChild[];
4713
4753
  };
4714
4754
 
4715
- export type VueUiVerticalBarEvent = null | (({ datapoint, seriesIndex }: { datapoint: VueUiVerticalBarDatapoint; seriesIndex: number }) => void);
4755
+ export type VueUiHorizontalBarDatasetItem = VueUiVerticalBarDatasetItem // v3 renaming
4756
+
4757
+ export type VueUiVerticalBarEvent = null | (({ datapoint, seriesIndex }: { datapoint: VueUiVerticalBarDatapoint | VueUiHorizontalBarDatapoint; seriesIndex: number }) => void);
4758
+
4759
+ export type VueUiHorizontalBarEvent = VueUiVerticalBarEvent; // v3 renaming
4716
4760
 
4717
4761
  export type VueUiVerticalBarConfig = {
4762
+ debug?: boolean;
4763
+ loading?: boolean;
4764
+ autoSize?: boolean;
4718
4765
  responsive?: boolean;
4719
4766
  theme?: Theme;
4720
4767
  customPalette?: string[];
4721
4768
  useCssAnimation?: boolean;
4722
4769
  events?: {
4723
- datapointEnter?: VueUiVerticalBarEvent;
4724
- datapointLeave?: VueUiVerticalBarEvent;
4725
- datapointClick?: VueUiVerticalBarEvent;
4770
+ datapointEnter?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
4771
+ datapointLeave?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
4772
+ datapointClick?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
4726
4773
  };
4727
4774
  style?: {
4728
4775
  fontFamily?: string;
@@ -4783,6 +4830,7 @@ declare module "vue-data-ui" {
4783
4830
  show?: boolean;
4784
4831
  color?: string;
4785
4832
  strokeWidth?: number;
4833
+ fullWidth?: boolean;
4786
4834
  };
4787
4835
  };
4788
4836
  title?: ChartTitle;
@@ -4805,9 +4853,9 @@ declare module "vue-data-ui" {
4805
4853
  | null
4806
4854
  | ((
4807
4855
  params: VueUiTooltipParams<
4808
- VueUiVerticalBarDatapoint,
4809
- VueUiVerticalBarSerie[],
4810
- VueUiVerticalBarConfig
4856
+ VueUiVerticalBarDatapoint | VueUiHorizontalBarDatapoint,
4857
+ VueUiVerticalBarSerie[] | VueUiHorizontalBarSerie[],
4858
+ VueUiVerticalBarConfig | VueUiHorizontalBarConfig
4811
4859
  >
4812
4860
  ) => string);
4813
4861
  };
@@ -4834,6 +4882,8 @@ declare module "vue-data-ui" {
4834
4882
  };
4835
4883
  };
4836
4884
 
4885
+ export type VueUiHorizontalBarConfig = VueUiVerticalBarConfig; // v3 renaming;
4886
+
4837
4887
  export type VueUiVerticalBarDatapoint = {
4838
4888
  children?: Array<any>;
4839
4889
  childIndex?: number;
@@ -4850,8 +4900,10 @@ declare module "vue-data-ui" {
4850
4900
  value: number;
4851
4901
  };
4852
4902
 
4903
+ export type VueUiHorizontalBarDatapoint = VueUiVerticalBarDatapoint; // v3 renaming
4904
+
4853
4905
  export type VueUiVerticalBarSerie = {
4854
- children: VueUiVerticalBarDatapoint[];
4906
+ children: VueUiVerticalBarDatapoint[] | VueUiHorizontalBarDatapoint[];
4855
4907
  color: string;
4856
4908
  hasChildren: boolean;
4857
4909
  is: string;
@@ -4862,8 +4914,10 @@ declare module "vue-data-ui" {
4862
4914
  value: number;
4863
4915
  };
4864
4916
 
4917
+ export type VueUiHorizontalBarSerie = VueUiVerticalBarSerie; // v3 renaming
4918
+
4865
4919
  export type VueUiVerticalBarExpose = {
4866
- getData(): Promise<Array<VueUiVerticalBarDatasetItem & Record<string, any>>>
4920
+ getData(): Promise<Array<VueUiVerticalBarDatasetItem & Record<string, any>>> | Promise<Array<VueUiHorizontalBarDatasetItem & Record<string, any>>>
4867
4921
  getImage(options?: { scale?: number }): GetImagePromise
4868
4922
  recalculateHeight(): void,
4869
4923
  generateCsv(): void
@@ -4876,6 +4930,8 @@ declare module "vue-data-ui" {
4876
4930
  toggleFullscreen(): void
4877
4931
  }
4878
4932
 
4933
+ export type VueUiHorizontalBarExpose = VueUiVerticalBarExpose; // v3 renaming
4934
+
4879
4935
  export const VueUiVerticalBar: DefineComponent<
4880
4936
  {
4881
4937
  config?: VueUiVerticalBarConfig;
@@ -4884,8 +4940,19 @@ declare module "vue-data-ui" {
4884
4940
  VueUiVerticalBarExpose
4885
4941
  >;
4886
4942
 
4943
+ /**
4944
+ * Renamed from the v2 VueUiVerticalBar
4945
+ */
4946
+ export const VueUiHorizontalBar: DefineComponent<
4947
+ {
4948
+ config?: VueUiHorizontalBarConfig;
4949
+ dataset: VueUiHorizontalBarDatasetItem[];
4950
+ },
4951
+ VueUiHorizontalBarExpose
4952
+ >;
4953
+
4887
4954
  export type VueUiSparklineDatasetItem = {
4888
- period: string;
4955
+ period: string | number;
4889
4956
  value: number;
4890
4957
  absoluteValue?: number;
4891
4958
  id?: string;
@@ -4897,9 +4964,16 @@ declare module "vue-data-ui" {
4897
4964
  };
4898
4965
 
4899
4966
  export type VueUiSparklineConfig = {
4967
+ loading?: boolean; // v3
4968
+ debug?: boolean; // v3
4900
4969
  theme?: Theme;
4901
4970
  type?: "line" | "bar";
4902
4971
  responsive?: boolean;
4972
+ events?: { // v3
4973
+ datapointEnter?: VueUiSparklineEvent; // v3
4974
+ datapointLeave?: VueUiSparklineEvent; // v3
4975
+ datapointClick?: VueUiSparklineEvent; // v3
4976
+ };
4903
4977
  downsample?: {
4904
4978
  threshold?: number;
4905
4979
  };
@@ -4967,6 +5041,7 @@ declare module "vue-data-ui" {
4967
5041
  prefix?: string;
4968
5042
  suffix?: string;
4969
5043
  formatter?: Formatter;
5044
+ datetimeFormatter?: AxisDateFormatter; // v3
4970
5045
  };
4971
5046
  title?: {
4972
5047
  show?: boolean;
@@ -5657,6 +5732,8 @@ declare module "vue-data-ui" {
5657
5732
  tooltipFontSize?: number;
5658
5733
  tooltipPosition?: TooltipPosition;
5659
5734
  tooltipOffsetY?: number;
5735
+ tooltipSmooth?: boolean;
5736
+ tooltipBackdropFilter?: boolean;
5660
5737
  useCustomLegend?: boolean;
5661
5738
  valuePrefix?: string;
5662
5739
  valueSuffix?: string;
@@ -7087,6 +7164,7 @@ declare module "vue-data-ui" {
7087
7164
  datetimeFormatter?: AxisDateFormatter;
7088
7165
  offsetY?: number;
7089
7166
  rotation?: number;
7167
+ autoRotate?: boolean;
7090
7168
  fontSize?: number;
7091
7169
  color?: string;
7092
7170
  bold?: boolean;
@@ -8108,6 +8186,7 @@ declare module "vue-data-ui" {
8108
8186
  | VueUiThermometerConfig
8109
8187
  | VueUiTiremarksConfig
8110
8188
  | VueUiVerticalBarConfig
8189
+ | VueUiHorizontalBarConfig
8111
8190
  | VueUiWaffleConfig
8112
8191
  | VueUiWheelConfig
8113
8192
  | VueUiXyConfig
@@ -8171,6 +8250,7 @@ declare module "vue-data-ui" {
8171
8250
  | "vue_ui_thermometer"
8172
8251
  | "vue_ui_tiremarks"
8173
8252
  | "vue_ui_vertical_bar"
8253
+ | "vue_ui_horizontal_bar"
8174
8254
  | "vue_ui_waffle"
8175
8255
  | "vue_ui_wheel"
8176
8256
  | "vue_ui_xy"
@@ -8486,6 +8566,55 @@ declare module "vue-data-ui" {
8486
8566
  * @returns The shifted color in hexadecimal format.
8487
8567
  */
8488
8568
  export const shiftColorHue: (color: string, strength: number) => string;
8569
+
8570
+ export type FormatSmallValueArgs = {
8571
+ value: number;
8572
+ maxDecimals?: number;
8573
+ fallbackFormatter?: (value: number) => string;
8574
+ removeTrailingZero?: boolean
8575
+ }
8576
+
8577
+ /**
8578
+ * Vue Data UI utility
8579
+ * ---
8580
+ * Formats numeric values with a controlled number of decimal places,
8581
+ * applying maxDecimals for all values when no fallbackFormatter is given,
8582
+ * or calling the fallbackFormatter for values ≥ 1 if provided.
8583
+ * ___
8584
+ * @example
8585
+ * // Zero value
8586
+ * formatSmallValue({ value: 0 }); // "0"
8587
+ *
8588
+ * // Values < 1 use minimal decimals
8589
+ * formatSmallValue({ value: 0.9 }); // "0.9"
8590
+ * formatSmallValue({ value: 0.0042 }); // "0.0042"
8591
+ * formatSmallValue({ value: 0.00420001 }); // "0.0042"
8592
+ *
8593
+ * // Retain trailing zeros
8594
+ * formatSmallValue({ value: 0.9, removeTrailingZero: false }); // "0.90"
8595
+ *
8596
+ * // Values ≥ 1 without fallback apply maxDecimals
8597
+ * formatSmallValue({ value: 1.61803, maxDecimals: 3 }); // "1.618"
8598
+ *
8599
+ * // Values ≥ 1 with fallbackFormatter
8600
+ * formatSmallValue({ value: 2.5, fallbackFormatter: v => v.toFixed(1) }); // "2.5"
8601
+ *
8602
+ * // Negative values
8603
+ * formatSmallValue({ value: -0.056 }); // "-0.056"
8604
+ *
8605
+ * @param {FormatSmallValueArgs} options - Configuration object for formatting.
8606
+ * @param {number} options.value - The numeric value to format.
8607
+ * @param {number} [options.maxDecimals=4] - Maximum decimal places to use.
8608
+ * @param {(value: number) => string} [options.fallbackFormatter] - Formatter for values ≥ 1.
8609
+ * @param {boolean} [options.removeTrailingZero=true] - Whether to strip unnecessary trailing zeros.
8610
+ * @returns {string} The formatted number as a string.
8611
+ */
8612
+ export const formatSmallValue: ({
8613
+ value,
8614
+ maxDecimals,
8615
+ fallbackFormatter,
8616
+ removeTrailingZero
8617
+ }: FormatSmallValueArgs) => string
8489
8618
 
8490
8619
  export type CreateTSpansArgs = {
8491
8620
  content: string;
@@ -1,4 +1,4 @@
1
- import { A as o, z as n } from "./index-DKjAxJY6.js";
1
+ import { A as o, z as n } from "./index-CvyDwC1y.js";
2
2
  function c({ defaultConfig: e, userConfig: r }) {
3
3
  if (!Object.keys(r || {}).length)
4
4
  return e;
@@ -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-COmwjbLG.js");
13
+ const { default: e } = await import("./pdf-B_EkQtoL.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-DFeNRkbq.js");
30
+ const { default: e } = await import("./img-FayRC7eM.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
+ };