vue-data-ui 2.0.4 → 2.0.6

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.
@@ -5,6 +5,16 @@ declare module 'vue-data-ui' {
5
5
  [key: string]: unknown;
6
6
  }
7
7
 
8
+ export type VueUiTooltipParams<TDatapoint, TSeries, TConfig, TBar, TLine, TPlot> = {
9
+ seriesIndex?: number;
10
+ series?: TSeries;
11
+ datapoint?: TDatapoint;
12
+ config?: TConfig;
13
+ bars?: TBar;
14
+ lines?: TLine;
15
+ plots?: TPlot;
16
+ }
17
+
8
18
  export type VueUiMiniLoaderConfig = {
9
19
  type?: "line" | "bar" | "onion";
10
20
  onion?: {
@@ -159,6 +169,7 @@ declare module 'vue-data-ui' {
159
169
  color?: string;
160
170
  backgroundColor?: string;
161
171
  fontSize?: number;
172
+ customFormat?: (params: VueUiTooltipParams<VueUiMoleculeDatapoint, VueUiMoleculeDatapoint[], VueUiMoleculeConfig>) => string;
162
173
  };
163
174
  zoom?: {
164
175
  speed?: number;
@@ -189,6 +200,22 @@ declare module 'vue-data-ui' {
189
200
  };
190
201
  };
191
202
 
203
+ export type VueUiMoleculeDatapoint = {
204
+ circleRadius: number;
205
+ color: string;
206
+ name: string;
207
+ details?: string;
208
+ nodes?: VueUiMoleculeDatapoint;
209
+ parentNode?: VueUiMoleculeDatapoint;
210
+ polygonPath: {
211
+ coordinates: Array<{
212
+ x: number;
213
+ y: number;
214
+ }>
215
+ },
216
+ uid: string;
217
+ }
218
+
192
219
  export const VueUiMolecule: DefineComponent<{
193
220
  dataset: VueUiMoleculeDatasetNode[],
194
221
  config?: VueUiMoleculeConfig
@@ -691,6 +718,7 @@ declare module 'vue-data-ui' {
691
718
  showPercentage?: boolean;
692
719
  roundingValue?: number;
693
720
  roundingPercentage?: number;
721
+ customFormat?: (params: VueUiTooltipParams<VueUiRingsDatpoint, VueUiRingsDatapoint[], VueUiRingsConfig>) => string;
694
722
  };
695
723
  };
696
724
  };
@@ -724,6 +752,16 @@ declare module 'vue-data-ui' {
724
752
  };
725
753
  };
726
754
 
755
+ export type VueUiRingsDatapoint = {
756
+ color: string;
757
+ name: string;
758
+ percentage: number;
759
+ proportion: number;
760
+ strokeWidth: number;
761
+ uid: string;
762
+ value: number;
763
+ };
764
+
727
765
  export type VueUiRingsDatasetItem = {
728
766
  name: string;
729
767
  color?: string;
@@ -1282,6 +1320,7 @@ declare module 'vue-data-ui' {
1282
1320
  color?: string;
1283
1321
  fontSize?: number;
1284
1322
  roundingValue?: number;
1323
+ customFormat?: (params: VueUiTooltipParams<VueUiAgePyramidDatapoint, VueUiAgePyramidSeries[], VueUiAgePyramidConfig>) => string;
1285
1324
  };
1286
1325
  };
1287
1326
  translations?: {
@@ -1314,6 +1353,30 @@ declare module 'vue-data-ui' {
1314
1353
  };
1315
1354
  };
1316
1355
 
1356
+ export type VueUiAgePyramidDatapoint = {
1357
+ index: number;
1358
+ left: number;
1359
+ right: number;
1360
+ segment: string;
1361
+ };
1362
+
1363
+ export type VueUiAgePyramidSideData = {
1364
+ color: string;
1365
+ height: number;
1366
+ proportionToMax: number;
1367
+ value: number;
1368
+ width: number;
1369
+ y: number;
1370
+ x: number;
1371
+ };
1372
+
1373
+ export type VueUiAgePyramidSeries = {
1374
+ age: number;
1375
+ left: VueUiAgePyramidSideData;
1376
+ right: VueUiAgePyramidSideData;
1377
+ segment: string;
1378
+ };
1379
+
1317
1380
  export const VueUiAgePyramid: DefineComponent<{
1318
1381
  config?: VueUiAgePyramidConfig,
1319
1382
  dataset: VueUiAgePyramidDataset
@@ -1415,6 +1478,7 @@ declare module 'vue-data-ui' {
1415
1478
  roundingValue?: number;
1416
1479
  prefix?: string;
1417
1480
  suffix?: string;
1481
+ customFormat?: (params: VueUiTooltipParams<VueUiCandlestickDatapoint, VueUiCandlestickDatapoint[], VueUiCandlestickConfig>) => string;
1418
1482
  };
1419
1483
  };
1420
1484
  translations?: {
@@ -1453,6 +1517,16 @@ declare module 'vue-data-ui' {
1453
1517
  };
1454
1518
  };
1455
1519
 
1520
+ export type VueUiCandlestickDatapoint = {
1521
+ high: { x: number; y: number; value: number };
1522
+ isBullish: boolean;
1523
+ last: { x: number; y: number; value: numbr };
1524
+ low: { x: number; y: number; value: number };
1525
+ open: { x: number; y: number; value: number };
1526
+ period: string | undefined;
1527
+ volume: number;
1528
+ };
1529
+
1456
1530
  export const VueUiCandlestick: DefineComponent<{
1457
1531
  config?: VueUiCandlestickConfig,
1458
1532
  dataset: Array<Array<string | number>>
@@ -1569,6 +1643,8 @@ declare module 'vue-data-ui' {
1569
1643
  color?: string;
1570
1644
  fontSize?: number;
1571
1645
  roundingValue?: number;
1646
+ showShape?: boolean;
1647
+ customFormat?: (params: VueUiTooltipParams<VueUiScatterDatapoint, VueUiScatterSeries[], VueUiScatterConfig>) => string
1572
1648
  };
1573
1649
  };
1574
1650
  userOptions?: {
@@ -1604,6 +1680,39 @@ declare module 'vue-data-ui' {
1604
1680
  };
1605
1681
  };
1606
1682
 
1683
+ export type VueUiScatterDatapoint = {
1684
+ clusterName: string | undefined;
1685
+ color: string;
1686
+ deviation: number;
1687
+ id: string;
1688
+ shape: "circle" | "triangle" | "square" | "diamond" | "pentagon" | "hexagon" | "star" | null;
1689
+ v: {
1690
+ x: number;
1691
+ y: number;
1692
+ name: string;
1693
+ }
1694
+ x: number;
1695
+ y: number;
1696
+ };
1697
+
1698
+ export type VueUiScatterSeries = {
1699
+ color: string;
1700
+ correlation: {
1701
+ x1: number;
1702
+ x2: number;
1703
+ y1: number;
1704
+ y2: number;
1705
+ coefficient: number;
1706
+ };
1707
+ id: string;
1708
+ label: { x: number; y: number; };
1709
+ name: string;
1710
+ opacity: number;
1711
+ plots: VueUiScatterDatapoint[];
1712
+ shape: "circle" | "triangle" | "square" | "diamond" | "pentagon" | "hexagon" | "star" | null;
1713
+ values: Array<{ x: number; y: number; name: string; }>
1714
+ };
1715
+
1607
1716
  export const VueUiScatter: DefineComponent<{
1608
1717
  config?: VueUiScatterConfig,
1609
1718
  dataset: VueUiScatterDatasetItem[]
@@ -1693,6 +1802,7 @@ declare module 'vue-data-ui' {
1693
1802
  color?: string;
1694
1803
  fontSize?: number;
1695
1804
  roundingValue?: number;
1805
+ customFormat?: (params: VueUiTooltipParams<VueUiHeatmapDatapoint, VueUiHeatmapRow[], VueUiHeatmapConfig>) => string;
1696
1806
  };
1697
1807
  };
1698
1808
  userOptions?: {
@@ -1724,6 +1834,22 @@ declare module 'vue-data-ui' {
1724
1834
  };
1725
1835
  };
1726
1836
 
1837
+ export type VueUiHeatmapDatapoint = {
1838
+ color: string;
1839
+ id: string;
1840
+ ratio: number;
1841
+ side: "up" | "down";
1842
+ value: number;
1843
+ xAxisName: string | undefined;
1844
+ yAxisName: string | undefined;
1845
+ };
1846
+
1847
+ export type VueUiHeatmapRow = {
1848
+ name: string;
1849
+ temperatures: VueUiHeatmapDatapoint[];
1850
+ values: number[];
1851
+ }
1852
+
1727
1853
  export type VueUiHeatmapDatasetItem = {
1728
1854
  name: string;
1729
1855
  values: number[];
@@ -1829,6 +1955,7 @@ declare module 'vue-data-ui' {
1829
1955
  showPercentage?: boolean;
1830
1956
  roundingValue?: number;
1831
1957
  roundingPercentage?: number;
1958
+ customFormat?: (params: VueUiTooltipParams<VueUiXyDatapointItem[], VueUiXySeries, VueUiXyConfig, VueUiXyDatasetBarItem[], VueUiXyDatasetLineItem[], VueUiXyDatasetPlotItem[]>) => string;
1832
1959
  };
1833
1960
  userOptions?: {
1834
1961
  show?: boolean;
@@ -1910,6 +2037,57 @@ declare module 'vue-data-ui' {
1910
2037
  useProgression?: boolean;
1911
2038
  };
1912
2039
 
2040
+ export type VueUiXyDatasetBarItem = {
2041
+ absoluteValues: number[];
2042
+ color: string;
2043
+ id: string;
2044
+ name: string;
2045
+ plots: Array<{ x: number; y: number; value: number }>;
2046
+ series: number[];
2047
+ type: "bar";
2048
+ }
2049
+
2050
+ export type VueUiXyDatasetLineItem = {
2051
+ absoluteValues: number[];
2052
+ area: string;
2053
+ color: string;
2054
+ curve: string;
2055
+ dataLabels: boolean;
2056
+ id: string;
2057
+ name: string;
2058
+ plots: Array<{ x: number; y: number; value: number }>;
2059
+ series: number[];
2060
+ shape: "circle" | "triangle" | "square" | "diamond" | "pentagon" | "hexagon" | "star" | null;
2061
+ type: "line";
2062
+ useArea: boolean;
2063
+ useProgression: boolean;
2064
+ smooth?: boolean;
2065
+ useTag?: boolean;
2066
+ }
2067
+
2068
+ export type VueUiXyDatasetPlotItem = {
2069
+ absoluteValues: number[];
2070
+ color: string;
2071
+ id: string;
2072
+ name: string;
2073
+ plots: Array<{ x: number; y: number; value: number }>;
2074
+ series: number[];
2075
+ shape: "circle" | "triangle" | "square" | "diamond" | "pentagon" | "hexagon" | "star" | null;
2076
+ type: "plot";
2077
+ useTag?: boolean;
2078
+ useProgression?: boolean;
2079
+ }
2080
+
2081
+ export type VueUiXySeries = Array<VueUiXyDatasetBarItem | VueUiXyDatasetLineItem | VueUiXyDatasetPlotItem>;
2082
+
2083
+ export type VueUiXyDatapointItem = {
2084
+ color: string;
2085
+ name: string;
2086
+ shape: "circle" | "triangle" | "square" | "diamond" | "pentagon" | "hexagon" | "star" | null;
2087
+ type: "bar" | "line" | "plot";
2088
+ value: number;
2089
+ }
2090
+
1913
2091
  export const VueUiXy: DefineComponent<{
1914
2092
  config?: VueUiXyConfig;
1915
2093
  dataset: VueUiXyDatasetItem[];
@@ -2020,6 +2198,7 @@ declare module 'vue-data-ui' {
2020
2198
  showPercentage?: boolean;
2021
2199
  roundingValue?: number;
2022
2200
  roundingPercentage?: number;
2201
+ customFormat?: (params: VueUiTooltipParams<VueUiDonutDatapoint, VueUiDonutSeriesItem[], VueUiDonutConfig>) => string;
2023
2202
  };
2024
2203
  };
2025
2204
  };
@@ -2065,6 +2244,29 @@ declare module 'vue-data-ui' {
2065
2244
  values: number[];
2066
2245
  };
2067
2246
 
2247
+ export type VueUiDonutDatapoint = {
2248
+ absoluteValues: number[];
2249
+ arcSlice: string;
2250
+ center: { startX: number; startY: number; endX: number; endY: number; path: string };
2251
+ color: string;
2252
+ cx: number;
2253
+ cy: number;
2254
+ endX: number;
2255
+ endY: number;
2256
+ name: string;
2257
+ path: string;
2258
+ proportion: number;
2259
+ ratio: number;
2260
+ seriesIndex: number;
2261
+ startX: number;
2262
+ startY: number;
2263
+ value: number;
2264
+ };
2265
+
2266
+ export type VueUiDonutSeriesItem = VueUiDonutDatasetItem & {
2267
+ absoluteValues: number[];
2268
+ }
2269
+
2068
2270
  export const VueUiDonut: DefineComponent<{
2069
2271
  config?: VueUiDonutConfig,
2070
2272
  dataset: VueUiDonutDatasetItem[]
@@ -2120,6 +2322,7 @@ declare module 'vue-data-ui' {
2120
2322
  showPercentage?: boolean;
2121
2323
  roundingValue?: number;
2122
2324
  roundingPercentage?: number;
2325
+ customFormat?: (params: VueUiTooltipParams<VueUiWaffleDatapoint, VueUiWaffleSerieItem[], VueUiWaffleConfig>) => string;
2123
2326
  };
2124
2327
  legend?: {
2125
2328
  show?: boolean;
@@ -2163,6 +2366,28 @@ declare module 'vue-data-ui' {
2163
2366
  };
2164
2367
  };
2165
2368
 
2369
+ export type VueUiWaffleDatapoint = {
2370
+ absoluteIndex: number;
2371
+ absoluteValues: number[];
2372
+ color: string;
2373
+ name: string;
2374
+ proportion: number;
2375
+ rects: number[];
2376
+ serieIndex: number;
2377
+ start: number;
2378
+ uid: string;
2379
+ value: number;
2380
+ }
2381
+
2382
+ export type VueUiWaffleSerieItem = {
2383
+ absoluteIndex: number;
2384
+ color: string;
2385
+ name: string;
2386
+ shape: "circle" | "triangle" | "rect" | "diamond" | "pentagon" | "hexagon" | "star" | null;
2387
+ uid: string;
2388
+ values: number[]
2389
+ }
2390
+
2166
2391
  export type VueUiWaffleDatasetItem = {
2167
2392
  name: string;
2168
2393
  color?: string;
@@ -2232,6 +2457,7 @@ declare module 'vue-data-ui' {
2232
2457
  showPercentage?: boolean;
2233
2458
  roundingValue?: number;
2234
2459
  roundingPercentage?: number;
2460
+ customFormat?: (params: VueUiTooltipParams<VueUiRadarDatapoint, VueUiRadarSeries, VueUiRadarConfig>) => string;
2235
2461
  };
2236
2462
  legend?: {
2237
2463
  show?: boolean;
@@ -2274,6 +2500,39 @@ declare module 'vue-data-ui' {
2274
2500
  };
2275
2501
  };
2276
2502
 
2503
+ export type VueUiRadarDatapoint = {
2504
+ color: string;
2505
+ name: string;
2506
+ plots: Array<{ x: number; y: number }>;
2507
+ serieId: string;
2508
+ target: number;
2509
+ values: number[];
2510
+ x: number;
2511
+ y: number;
2512
+ }
2513
+
2514
+ export type VueUiRadarCategory = {
2515
+ categoryId: string;
2516
+ color: string;
2517
+ name: string;
2518
+ prefix?: string;
2519
+ suffix?: string;
2520
+ }
2521
+
2522
+ export type VueUiRadarDatapointItem = {
2523
+ color: string;
2524
+ name: string;
2525
+ serieId: string;
2526
+ target?: number;
2527
+ values: number[]
2528
+ }
2529
+
2530
+ export type VueUiRadarSeries = {
2531
+ categories: VueUiRadarCategory[];
2532
+ datapoints: VueUiRadarDatapointItem[];
2533
+ radar: VueUiRadarDatapoint[]
2534
+ }
2535
+
2277
2536
  export type VueUiRadarDatasetCategoryItem = {
2278
2537
  name: string;
2279
2538
  color?: string;
@@ -2422,6 +2681,8 @@ declare module 'vue-data-ui' {
2422
2681
  color?: string;
2423
2682
  fontSize?: number;
2424
2683
  roundingValue?: number;
2684
+ customFormat?: (params: VueUiTooltipParams<VueUiQuadrantDatapoint, VueUiQuadrantSerie[], VueUiQuadrantConfig>) => string;
2685
+ showShape?: boolean;
2425
2686
  };
2426
2687
  legend?: {
2427
2688
  show?: boolean;
@@ -2463,6 +2724,27 @@ declare module 'vue-data-ui' {
2463
2724
  };
2464
2725
  };
2465
2726
 
2727
+ export type VueUiQuadrantDatapoint = {
2728
+ categoryName: string;
2729
+ color: string;
2730
+ name: string;
2731
+ quadrantSide: string;
2732
+ shape: "circle" | "triangle" | "square" | "diamond" | "pentagon" | "hexagon" | "star" | null;
2733
+ uid: string;
2734
+ x: number;
2735
+ xValue: number;
2736
+ y: number;
2737
+ yValue: number;
2738
+ };
2739
+
2740
+ export type VueUiQuadrantSerie = {
2741
+ color: string;
2742
+ id: string;
2743
+ name: string;
2744
+ series: VueUiQuadrantDatapoint[];
2745
+ shape: "circle" | "triangle" | "square" | "diamond" | "pentagon" | "hexagon" | "star" | null;
2746
+ };
2747
+
2466
2748
  export const VueUiQuadrant: DefineComponent<{
2467
2749
  dataset: VueUiQuadrantDatasetItem[],
2468
2750
  config?: VueUiQuadrantConfig
@@ -2975,6 +3257,7 @@ declare module 'vue-data-ui' {
2975
3257
  roundingPercentage?: number;
2976
3258
  prefix?: string;
2977
3259
  suffix?: string;
3260
+ customFormat?: (params: VueUiTooltipParams<VueUiVerticalBarDatapoint, VueUiVerticalBarSerie[], VueUiVerticalBarConfig>) => string;
2978
3261
  };
2979
3262
  };
2980
3263
  };
@@ -3014,6 +3297,34 @@ declare module 'vue-data-ui' {
3014
3297
  };
3015
3298
  };
3016
3299
 
3300
+ export type VueUiVerticalBarDatapoint = {
3301
+ children?: Array<any>;
3302
+ childIndex?: number;
3303
+ hasChildren?: boolean;
3304
+ color: string;
3305
+ id: string;
3306
+ isChild: boolean;
3307
+ isFirstChild: boolean;
3308
+ isLastChild: boolean;
3309
+ name: string;
3310
+ parentId?: string;
3311
+ parentName?: string;
3312
+ parentValue?: number;
3313
+ value: number;
3314
+ };
3315
+
3316
+ export type VueUiVerticalBarSerie = {
3317
+ children: VueUiVerticalBarDatapoint[];
3318
+ color: string;
3319
+ hasChildren: boolean;
3320
+ is: string;
3321
+ isChild: boolean;
3322
+ name: string;
3323
+ opacity: number;
3324
+ shape: "circle" | "triangle" | "square" | "diamond" | "pentagon" | "hexagon" | "star" | null;
3325
+ value: number;
3326
+ };
3327
+
3017
3328
  export const VueUiVerticalBar: DefineComponent<{
3018
3329
  config?: VueUiVerticalBarConfig,
3019
3330
  dataset: VueUiVerticalBarDatasetItem[]
@@ -1,4 +1,4 @@
1
- import { I as s, F as u, p as V, s as U, o as r, g as t, r as o, G as n, b as l, C as S, f as d, m as k, D as m, J as c, H as g, E as p, h as b, e as h, d as D, k as f, u as C, z as R, n as T, j as y, l as A, t as B, y as H, x as M, q as v, S as w, a as x, T as E, w as G, B as I, i as W, c as j, A as q, v as z, K as F } from "./index-2cb9f55d.js";
1
+ import { I as s, F as u, p as V, s as U, o as r, g as t, r as o, G as n, b as l, C as S, f as d, m as k, D as m, J as c, H as g, E as p, h as b, e as h, d as D, k as f, u as C, z as R, n as T, j as y, l as A, t as B, y as H, x as M, q as v, S as w, a as x, T as E, w as G, B as I, i as W, c as j, A as q, v as z, K as F } from "./index-68705a35.js";
2
2
  import "vue";
3
3
  export {
4
4
  s as Arrow,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.0.4",
4
+ "version": "2.0.6",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue components library",
7
7
  "keywords": [