@flux-ui/statistics 3.0.0-next.67 → 3.0.0-next.69
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/component/FluxStatisticsAreaChart.vue.d.ts +11 -4
- package/dist/component/FluxStatisticsBarChart.vue.d.ts +11 -4
- package/dist/component/FluxStatisticsBase.vue.d.ts +1 -0
- package/dist/component/FluxStatisticsBoxPlotChart.vue.d.ts +15 -0
- package/dist/component/FluxStatisticsBubbleChart.vue.d.ts +14 -0
- package/dist/component/FluxStatisticsCandlestickChart.vue.d.ts +15 -0
- package/dist/component/FluxStatisticsChart.vue.d.ts +7 -5
- package/dist/component/FluxStatisticsChartPane.vue.d.ts +1 -0
- package/dist/component/FluxStatisticsComparison.vue.d.ts +16 -0
- package/dist/component/FluxStatisticsDonutChart.vue.d.ts +8 -4
- package/dist/component/FluxStatisticsEmpty.vue.d.ts +19 -0
- package/dist/component/FluxStatisticsHeatmapChart.vue.d.ts +15 -0
- package/dist/component/FluxStatisticsLegendItem.vue.d.ts +1 -0
- package/dist/component/FluxStatisticsLegendScope.vue.d.ts +13 -0
- package/dist/component/FluxStatisticsLineChart.vue.d.ts +11 -4
- package/dist/component/FluxStatisticsMixedChart.vue.d.ts +17 -0
- package/dist/component/FluxStatisticsPercentageBar.vue.d.ts +8 -0
- package/dist/component/FluxStatisticsPieChart.vue.d.ts +8 -4
- package/dist/component/FluxStatisticsPolarAreaChart.vue.d.ts +14 -0
- package/dist/component/FluxStatisticsRadarChart.vue.d.ts +12 -0
- package/dist/component/FluxStatisticsRadialBar.vue.d.ts +11 -0
- package/dist/component/FluxStatisticsScatterChart.vue.d.ts +14 -0
- package/dist/component/FluxStatisticsSparkline.vue.d.ts +13 -0
- package/dist/component/FluxStatisticsTreemapChart.vue.d.ts +11 -0
- package/dist/component/index.d.ts +15 -0
- package/dist/composable/index.d.ts +12 -0
- package/dist/composable/useChartBaseSetup.d.ts +8 -0
- package/dist/composable/useChartHoverSync.d.ts +9 -0
- package/dist/composable/useChartLegend.d.ts +14 -0
- package/dist/composable/useChartSeriesSetup.d.ts +23 -0
- package/dist/composable/useChartSlicesSetup.d.ts +14 -0
- package/dist/composable/useECharts.d.ts +9 -0
- package/dist/echarts.d.ts +1 -0
- package/dist/index.css +262 -34
- package/dist/index.d.ts +5 -2
- package/dist/index.js +9176 -6895
- package/dist/index.js.map +1 -1
- package/dist/util/colors.d.ts +4 -0
- package/dist/util/icons.d.ts +2 -0
- package/dist/util/index.d.ts +6 -0
- package/dist/util/options/buildBaseOptions.d.ts +2 -0
- package/dist/util/options/buildCartesianBaseOptions.d.ts +13 -0
- package/dist/util/options/buildCircularBaseOptions.d.ts +2 -0
- package/dist/util/options/cartesian/buildAreaChartOptions.d.ts +17 -0
- package/dist/util/options/cartesian/buildBarChartOptions.d.ts +17 -0
- package/dist/util/options/cartesian/buildBoxPlotChartOptions.d.ts +16 -0
- package/dist/util/options/cartesian/buildBubbleChartOptions.d.ts +15 -0
- package/dist/util/options/cartesian/buildCandlestickChartOptions.d.ts +17 -0
- package/dist/util/options/cartesian/buildHeatmapChartOptions.d.ts +15 -0
- package/dist/util/options/cartesian/buildLineChartOptions.d.ts +17 -0
- package/dist/util/options/cartesian/buildMixedChartOptions.d.ts +17 -0
- package/dist/util/options/cartesian/buildScatterChartOptions.d.ts +15 -0
- package/dist/util/options/cartesian/index.d.ts +18 -0
- package/dist/util/options/circular/buildDonutChartOptions.d.ts +15 -0
- package/dist/util/options/circular/buildGaugeChartOptions.d.ts +14 -0
- package/dist/util/options/circular/buildPieChartOptions.d.ts +15 -0
- package/dist/util/options/circular/buildPolarAreaChartOptions.d.ts +15 -0
- package/dist/util/options/circular/buildRadarChartOptions.d.ts +13 -0
- package/dist/util/options/circular/buildTreemapChartOptions.d.ts +12 -0
- package/dist/util/options/circular/index.d.ts +12 -0
- package/dist/util/options/index.d.ts +6 -0
- package/dist/util/series/chartColors.d.ts +3 -0
- package/dist/util/series/converters.d.ts +17 -0
- package/dist/util/series/defaults.d.ts +15 -0
- package/dist/util/series/index.d.ts +4 -0
- package/dist/util/series/labels.d.ts +5 -0
- package/dist/util/sparkline.d.ts +7 -0
- package/dist/util/tooltips/buildBoxPlotTooltip.d.ts +22 -0
- package/dist/util/tooltips/buildCartesianTooltip.d.ts +10 -0
- package/dist/util/tooltips/buildGaugeTooltip.d.ts +14 -0
- package/dist/util/tooltips/buildHeatmapTooltip.d.ts +17 -0
- package/dist/util/tooltips/buildRadarTooltip.d.ts +11 -0
- package/dist/util/tooltips/buildSharedItemTooltip.d.ts +10 -0
- package/dist/util/tooltips/buildTreemapTooltip.d.ts +12 -0
- package/dist/util/tooltips/index.d.ts +15 -0
- package/dist/util/tooltips/render.d.ts +4 -0
- package/dist/util/tooltips/types.d.ts +24 -0
- package/package.json +14 -15
- package/src/component/FluxStatisticsAreaChart.vue +36 -43
- package/src/component/FluxStatisticsBarChart.vue +36 -35
- package/src/component/FluxStatisticsBase.vue +14 -1
- package/src/component/FluxStatisticsBoxPlotChart.vue +49 -0
- package/src/component/FluxStatisticsBubbleChart.vue +46 -0
- package/src/component/FluxStatisticsCandlestickChart.vue +50 -0
- package/src/component/FluxStatisticsChart.vue +19 -169
- package/src/component/FluxStatisticsChartPane.vue +22 -11
- package/src/component/FluxStatisticsComparison.vue +113 -0
- package/src/component/FluxStatisticsDonutChart.vue +31 -19
- package/src/component/FluxStatisticsEmpty.vue +44 -0
- package/src/component/FluxStatisticsHeatmapChart.vue +47 -0
- package/src/component/FluxStatisticsLegend.vue +33 -1
- package/src/component/FluxStatisticsLegendItem.vue +3 -1
- package/src/component/FluxStatisticsLegendScope.vue +16 -0
- package/src/component/FluxStatisticsLineChart.vue +36 -43
- package/src/component/FluxStatisticsMixedChart.vue +52 -0
- package/src/component/FluxStatisticsPercentageBar.vue +90 -0
- package/src/component/FluxStatisticsPieChart.vue +31 -19
- package/src/component/FluxStatisticsPolarAreaChart.vue +44 -0
- package/src/component/FluxStatisticsRadarChart.vue +40 -0
- package/src/component/FluxStatisticsRadialBar.vue +39 -0
- package/src/component/FluxStatisticsScatterChart.vue +46 -0
- package/src/component/FluxStatisticsSparkline.vue +67 -0
- package/src/component/FluxStatisticsTreemapChart.vue +35 -0
- package/src/component/index.ts +15 -0
- package/src/composable/index.ts +12 -0
- package/src/composable/useChartBaseSetup.ts +16 -0
- package/src/composable/useChartHoverSync.ts +92 -0
- package/src/composable/useChartLegend.ts +23 -0
- package/src/composable/useChartSeriesSetup.ts +75 -0
- package/src/composable/useChartSlicesSetup.ts +58 -0
- package/src/composable/useECharts.ts +55 -0
- package/src/css/Base.module.scss +28 -1
- package/src/css/Chart.module.scss +59 -30
- package/src/css/ChartPane.module.scss +20 -12
- package/src/css/Comparison.module.scss +52 -0
- package/src/css/Empty.module.scss +39 -0
- package/src/css/Grid.module.scss +1 -0
- package/src/css/Legend.module.scss +22 -4
- package/src/css/Meter.module.scss +1 -0
- package/src/css/Metric.module.scss +6 -0
- package/src/css/PercentageBar.module.scss +36 -0
- package/src/css/Sparkline.module.scss +13 -0
- package/src/echarts.ts +47 -0
- package/src/index.ts +7 -3
- package/src/util/colors.ts +86 -0
- package/src/util/icons.ts +20 -0
- package/src/util/index.ts +6 -0
- package/src/util/options/buildBaseOptions.ts +31 -0
- package/src/util/options/buildCartesianBaseOptions.ts +67 -0
- package/src/util/options/buildCircularBaseOptions.ts +10 -0
- package/src/util/options/cartesian/buildAreaChartOptions.ts +44 -0
- package/src/util/options/cartesian/buildBarChartOptions.ts +44 -0
- package/src/util/options/cartesian/buildBoxPlotChartOptions.ts +63 -0
- package/src/util/options/cartesian/buildBubbleChartOptions.ts +48 -0
- package/src/util/options/cartesian/buildCandlestickChartOptions.ts +77 -0
- package/src/util/options/cartesian/buildHeatmapChartOptions.ts +72 -0
- package/src/util/options/cartesian/buildLineChartOptions.ts +44 -0
- package/src/util/options/cartesian/buildMixedChartOptions.ts +44 -0
- package/src/util/options/cartesian/buildScatterChartOptions.ts +48 -0
- package/src/util/options/cartesian/index.ts +18 -0
- package/src/util/options/circular/buildDonutChartOptions.ts +31 -0
- package/src/util/options/circular/buildGaugeChartOptions.ts +45 -0
- package/src/util/options/circular/buildPieChartOptions.ts +31 -0
- package/src/util/options/circular/buildPolarAreaChartOptions.ts +31 -0
- package/src/util/options/circular/buildRadarChartOptions.ts +52 -0
- package/src/util/options/circular/buildTreemapChartOptions.ts +28 -0
- package/src/util/options/circular/index.ts +12 -0
- package/src/util/options/index.ts +6 -0
- package/src/util/series/chartColors.ts +20 -0
- package/src/util/series/converters.ts +318 -0
- package/src/util/series/defaults.ts +210 -0
- package/src/util/series/index.ts +4 -0
- package/src/util/series/labels.ts +30 -0
- package/src/util/sparkline.ts +67 -0
- package/src/util/tooltips/buildBoxPlotTooltip.ts +66 -0
- package/src/util/tooltips/buildCartesianTooltip.ts +44 -0
- package/src/util/tooltips/buildGaugeTooltip.ts +49 -0
- package/src/util/tooltips/buildHeatmapTooltip.ts +57 -0
- package/src/util/tooltips/buildRadarTooltip.ts +53 -0
- package/src/util/tooltips/buildSharedItemTooltip.ts +38 -0
- package/src/util/tooltips/buildTreemapTooltip.ts +49 -0
- package/src/util/tooltips/index.ts +15 -0
- package/src/util/tooltips/render.ts +66 -0
- package/src/util/tooltips/types.ts +29 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EChartsOption } from '../../composable';
|
|
2
|
+
export interface CartesianBaseConfig {
|
|
3
|
+
readonly xAxisType?: 'category' | 'value';
|
|
4
|
+
readonly yAxisType?: 'value' | 'category';
|
|
5
|
+
readonly scale?: boolean;
|
|
6
|
+
readonly tooltipTrigger?: 'axis' | 'item';
|
|
7
|
+
readonly xAxisLabels?: boolean;
|
|
8
|
+
readonly yAxisLabels?: boolean;
|
|
9
|
+
readonly splitLines?: boolean;
|
|
10
|
+
readonly minPadding?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function buildCartesianGrid(xAxisLabels: boolean, yAxisLabels: boolean, minPadding?: number): EChartsOption['grid'];
|
|
13
|
+
export declare function buildCartesianBaseOptions(config?: CartesianBaseConfig): EChartsOption;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FluxStatisticsChartAreaSeries } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { ChartTooltipValueFormatter, TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface AreaChartOptionsInput {
|
|
5
|
+
readonly series: readonly FluxStatisticsChartAreaSeries[];
|
|
6
|
+
readonly labels?: readonly string[];
|
|
7
|
+
readonly palette: readonly string[];
|
|
8
|
+
readonly t: Translator;
|
|
9
|
+
readonly styles: TooltipStyleClasses;
|
|
10
|
+
readonly tooltip?: boolean;
|
|
11
|
+
readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
|
|
12
|
+
readonly xAxisLabels?: boolean;
|
|
13
|
+
readonly yAxisLabels?: boolean;
|
|
14
|
+
readonly splitLines?: boolean;
|
|
15
|
+
readonly advancedOptions?: EChartsOption;
|
|
16
|
+
}
|
|
17
|
+
export declare function buildAreaChartOptions(input: AreaChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FluxStatisticsChartBarSeries } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { ChartTooltipValueFormatter, TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface BarChartOptionsInput {
|
|
5
|
+
readonly series: readonly FluxStatisticsChartBarSeries[];
|
|
6
|
+
readonly labels?: readonly string[];
|
|
7
|
+
readonly palette: readonly string[];
|
|
8
|
+
readonly t: Translator;
|
|
9
|
+
readonly styles: TooltipStyleClasses;
|
|
10
|
+
readonly tooltip?: boolean;
|
|
11
|
+
readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
|
|
12
|
+
readonly xAxisLabels?: boolean;
|
|
13
|
+
readonly yAxisLabels?: boolean;
|
|
14
|
+
readonly splitLines?: boolean;
|
|
15
|
+
readonly advancedOptions?: EChartsOption;
|
|
16
|
+
}
|
|
17
|
+
export declare function buildBarChartOptions(input: BarChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FluxStatisticsChartBoxPlotSeries } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface BoxPlotChartOptionsInput {
|
|
5
|
+
readonly series: readonly FluxStatisticsChartBoxPlotSeries[];
|
|
6
|
+
readonly labels?: readonly string[];
|
|
7
|
+
readonly palette: readonly string[];
|
|
8
|
+
readonly t: Translator;
|
|
9
|
+
readonly styles: TooltipStyleClasses;
|
|
10
|
+
readonly tooltip?: boolean;
|
|
11
|
+
readonly xAxisLabels?: boolean;
|
|
12
|
+
readonly yAxisLabels?: boolean;
|
|
13
|
+
readonly splitLines?: boolean;
|
|
14
|
+
readonly advancedOptions?: EChartsOption;
|
|
15
|
+
}
|
|
16
|
+
export declare function buildBoxPlotChartOptions(input: BoxPlotChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FluxStatisticsChartBubbleSeries } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface BubbleChartOptionsInput {
|
|
5
|
+
readonly series: readonly FluxStatisticsChartBubbleSeries[];
|
|
6
|
+
readonly palette: readonly string[];
|
|
7
|
+
readonly t: Translator;
|
|
8
|
+
readonly styles: TooltipStyleClasses;
|
|
9
|
+
readonly tooltip?: boolean;
|
|
10
|
+
readonly xAxisLabels?: boolean;
|
|
11
|
+
readonly yAxisLabels?: boolean;
|
|
12
|
+
readonly splitLines?: boolean;
|
|
13
|
+
readonly advancedOptions?: EChartsOption;
|
|
14
|
+
}
|
|
15
|
+
export declare function buildBubbleChartOptions(input: BubbleChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FluxStatisticsChartCandlestickSeries } from '@flux-ui/types';
|
|
2
|
+
import { ChartLegendItem } from '../../../composable/useChartLegend';
|
|
3
|
+
import { EChartsOption } from '../../../composable/useECharts';
|
|
4
|
+
import { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
5
|
+
export interface CandlestickChartOptionsInput {
|
|
6
|
+
readonly series: readonly FluxStatisticsChartCandlestickSeries[];
|
|
7
|
+
readonly labels?: readonly string[];
|
|
8
|
+
readonly t: Translator;
|
|
9
|
+
readonly styles: TooltipStyleClasses;
|
|
10
|
+
readonly tooltip?: boolean;
|
|
11
|
+
readonly xAxisLabels?: boolean;
|
|
12
|
+
readonly yAxisLabels?: boolean;
|
|
13
|
+
readonly splitLines?: boolean;
|
|
14
|
+
readonly advancedOptions?: EChartsOption;
|
|
15
|
+
}
|
|
16
|
+
export declare function candlestickLegendItemBuilder(s: FluxStatisticsChartCandlestickSeries): readonly ChartLegendItem[];
|
|
17
|
+
export declare function buildCandlestickChartOptions(input: CandlestickChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FluxStatisticsChartHeatmapSeries } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface HeatmapChartOptionsInput {
|
|
5
|
+
readonly series: readonly FluxStatisticsChartHeatmapSeries[];
|
|
6
|
+
readonly xLabels: readonly string[];
|
|
7
|
+
readonly yLabels: readonly string[];
|
|
8
|
+
readonly t: Translator;
|
|
9
|
+
readonly styles: TooltipStyleClasses;
|
|
10
|
+
readonly tooltip?: boolean;
|
|
11
|
+
readonly xAxisLabels?: boolean;
|
|
12
|
+
readonly yAxisLabels?: boolean;
|
|
13
|
+
readonly advancedOptions?: EChartsOption;
|
|
14
|
+
}
|
|
15
|
+
export declare function buildHeatmapChartOptions(input: HeatmapChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FluxStatisticsChartLineSeries } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { ChartTooltipValueFormatter, TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface LineChartOptionsInput {
|
|
5
|
+
readonly series: readonly FluxStatisticsChartLineSeries[];
|
|
6
|
+
readonly labels?: readonly string[];
|
|
7
|
+
readonly palette: readonly string[];
|
|
8
|
+
readonly t: Translator;
|
|
9
|
+
readonly styles: TooltipStyleClasses;
|
|
10
|
+
readonly tooltip?: boolean;
|
|
11
|
+
readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
|
|
12
|
+
readonly xAxisLabels?: boolean;
|
|
13
|
+
readonly yAxisLabels?: boolean;
|
|
14
|
+
readonly splitLines?: boolean;
|
|
15
|
+
readonly advancedOptions?: EChartsOption;
|
|
16
|
+
}
|
|
17
|
+
export declare function buildLineChartOptions(input: LineChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FluxStatisticsChartMixedSeries } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { ChartTooltipValueFormatter, TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface MixedChartOptionsInput {
|
|
5
|
+
readonly series: readonly FluxStatisticsChartMixedSeries[];
|
|
6
|
+
readonly labels?: readonly string[];
|
|
7
|
+
readonly palette: readonly string[];
|
|
8
|
+
readonly t: Translator;
|
|
9
|
+
readonly styles: TooltipStyleClasses;
|
|
10
|
+
readonly tooltip?: boolean;
|
|
11
|
+
readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
|
|
12
|
+
readonly xAxisLabels?: boolean;
|
|
13
|
+
readonly yAxisLabels?: boolean;
|
|
14
|
+
readonly splitLines?: boolean;
|
|
15
|
+
readonly advancedOptions?: EChartsOption;
|
|
16
|
+
}
|
|
17
|
+
export declare function buildMixedChartOptions(input: MixedChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FluxStatisticsChartScatterSeries } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface ScatterChartOptionsInput {
|
|
5
|
+
readonly series: readonly FluxStatisticsChartScatterSeries[];
|
|
6
|
+
readonly palette: readonly string[];
|
|
7
|
+
readonly t: Translator;
|
|
8
|
+
readonly styles: TooltipStyleClasses;
|
|
9
|
+
readonly tooltip?: boolean;
|
|
10
|
+
readonly xAxisLabels?: boolean;
|
|
11
|
+
readonly yAxisLabels?: boolean;
|
|
12
|
+
readonly splitLines?: boolean;
|
|
13
|
+
readonly advancedOptions?: EChartsOption;
|
|
14
|
+
}
|
|
15
|
+
export declare function buildScatterChartOptions(input: ScatterChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type { AreaChartOptionsInput } from './buildAreaChartOptions';
|
|
2
|
+
export { buildAreaChartOptions } from './buildAreaChartOptions';
|
|
3
|
+
export type { BarChartOptionsInput } from './buildBarChartOptions';
|
|
4
|
+
export { buildBarChartOptions } from './buildBarChartOptions';
|
|
5
|
+
export type { BoxPlotChartOptionsInput } from './buildBoxPlotChartOptions';
|
|
6
|
+
export { buildBoxPlotChartOptions } from './buildBoxPlotChartOptions';
|
|
7
|
+
export type { BubbleChartOptionsInput } from './buildBubbleChartOptions';
|
|
8
|
+
export { buildBubbleChartOptions } from './buildBubbleChartOptions';
|
|
9
|
+
export type { CandlestickChartOptionsInput } from './buildCandlestickChartOptions';
|
|
10
|
+
export { buildCandlestickChartOptions, candlestickLegendItemBuilder } from './buildCandlestickChartOptions';
|
|
11
|
+
export type { HeatmapChartOptionsInput } from './buildHeatmapChartOptions';
|
|
12
|
+
export { buildHeatmapChartOptions } from './buildHeatmapChartOptions';
|
|
13
|
+
export type { LineChartOptionsInput } from './buildLineChartOptions';
|
|
14
|
+
export { buildLineChartOptions } from './buildLineChartOptions';
|
|
15
|
+
export type { MixedChartOptionsInput } from './buildMixedChartOptions';
|
|
16
|
+
export { buildMixedChartOptions } from './buildMixedChartOptions';
|
|
17
|
+
export type { ScatterChartOptionsInput } from './buildScatterChartOptions';
|
|
18
|
+
export { buildScatterChartOptions } from './buildScatterChartOptions';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FluxStatisticsChartPieSlice } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { ChartTooltipValueFormatter, SharedTooltipItem, TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface DonutChartOptionsInput {
|
|
5
|
+
readonly slices: readonly FluxStatisticsChartPieSlice[];
|
|
6
|
+
readonly palette: readonly string[];
|
|
7
|
+
readonly tooltipItems: readonly SharedTooltipItem[];
|
|
8
|
+
readonly title?: string;
|
|
9
|
+
readonly t: Translator;
|
|
10
|
+
readonly styles: TooltipStyleClasses;
|
|
11
|
+
readonly tooltip?: boolean;
|
|
12
|
+
readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
|
|
13
|
+
readonly advancedOptions?: EChartsOption;
|
|
14
|
+
}
|
|
15
|
+
export declare function buildDonutChartOptions(input: DonutChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FluxStatisticsChartGaugeSeries } from '@flux-ui/types';
|
|
2
|
+
import { ChartLegendItem } from '../../../composable/useChartLegend';
|
|
3
|
+
import { EChartsOption } from '../../../composable/useECharts';
|
|
4
|
+
import { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
5
|
+
export interface GaugeChartOptionsInput {
|
|
6
|
+
readonly series: readonly FluxStatisticsChartGaugeSeries[];
|
|
7
|
+
readonly palette: readonly string[];
|
|
8
|
+
readonly t: Translator;
|
|
9
|
+
readonly styles: TooltipStyleClasses;
|
|
10
|
+
readonly tooltip?: boolean;
|
|
11
|
+
readonly advancedOptions?: EChartsOption;
|
|
12
|
+
}
|
|
13
|
+
export declare function gaugeLegendItemBuilder(s: FluxStatisticsChartGaugeSeries, color: string, _index: number, t: Translator): ChartLegendItem;
|
|
14
|
+
export declare function buildGaugeChartOptions(input: GaugeChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FluxStatisticsChartPieSlice } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { ChartTooltipValueFormatter, SharedTooltipItem, TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface PieChartOptionsInput {
|
|
5
|
+
readonly slices: readonly FluxStatisticsChartPieSlice[];
|
|
6
|
+
readonly palette: readonly string[];
|
|
7
|
+
readonly tooltipItems: readonly SharedTooltipItem[];
|
|
8
|
+
readonly title?: string;
|
|
9
|
+
readonly t: Translator;
|
|
10
|
+
readonly styles: TooltipStyleClasses;
|
|
11
|
+
readonly tooltip?: boolean;
|
|
12
|
+
readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
|
|
13
|
+
readonly advancedOptions?: EChartsOption;
|
|
14
|
+
}
|
|
15
|
+
export declare function buildPieChartOptions(input: PieChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FluxStatisticsChartPieSlice } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { ChartTooltipValueFormatter, SharedTooltipItem, TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface PolarAreaChartOptionsInput {
|
|
5
|
+
readonly slices: readonly FluxStatisticsChartPieSlice[];
|
|
6
|
+
readonly palette: readonly string[];
|
|
7
|
+
readonly tooltipItems: readonly SharedTooltipItem[];
|
|
8
|
+
readonly title?: string;
|
|
9
|
+
readonly t: Translator;
|
|
10
|
+
readonly styles: TooltipStyleClasses;
|
|
11
|
+
readonly tooltip?: boolean;
|
|
12
|
+
readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
|
|
13
|
+
readonly advancedOptions?: EChartsOption;
|
|
14
|
+
}
|
|
15
|
+
export declare function buildPolarAreaChartOptions(input: PolarAreaChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FluxStatisticsChartRadarIndicator, FluxStatisticsChartRadarSeries } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface RadarChartOptionsInput {
|
|
5
|
+
readonly series: readonly FluxStatisticsChartRadarSeries[];
|
|
6
|
+
readonly indicators: readonly FluxStatisticsChartRadarIndicator[];
|
|
7
|
+
readonly palette: readonly string[];
|
|
8
|
+
readonly t: Translator;
|
|
9
|
+
readonly styles: TooltipStyleClasses;
|
|
10
|
+
readonly tooltip?: boolean;
|
|
11
|
+
readonly advancedOptions?: EChartsOption;
|
|
12
|
+
}
|
|
13
|
+
export declare function buildRadarChartOptions(input: RadarChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FluxStatisticsChartTreemapNode } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../../composable';
|
|
3
|
+
import { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
4
|
+
export interface TreemapChartOptionsInput {
|
|
5
|
+
readonly nodes: readonly FluxStatisticsChartTreemapNode[];
|
|
6
|
+
readonly palette?: readonly string[];
|
|
7
|
+
readonly t: Translator;
|
|
8
|
+
readonly styles: TooltipStyleClasses;
|
|
9
|
+
readonly tooltip?: boolean;
|
|
10
|
+
readonly advancedOptions?: EChartsOption;
|
|
11
|
+
}
|
|
12
|
+
export declare function buildTreemapChartOptions(input: TreemapChartOptionsInput): EChartsOption;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type { DonutChartOptionsInput } from './buildDonutChartOptions';
|
|
2
|
+
export { buildDonutChartOptions } from './buildDonutChartOptions';
|
|
3
|
+
export type { GaugeChartOptionsInput } from './buildGaugeChartOptions';
|
|
4
|
+
export { buildGaugeChartOptions, gaugeLegendItemBuilder } from './buildGaugeChartOptions';
|
|
5
|
+
export type { PieChartOptionsInput } from './buildPieChartOptions';
|
|
6
|
+
export { buildPieChartOptions } from './buildPieChartOptions';
|
|
7
|
+
export type { PolarAreaChartOptionsInput } from './buildPolarAreaChartOptions';
|
|
8
|
+
export { buildPolarAreaChartOptions } from './buildPolarAreaChartOptions';
|
|
9
|
+
export type { RadarChartOptionsInput } from './buildRadarChartOptions';
|
|
10
|
+
export { buildRadarChartOptions } from './buildRadarChartOptions';
|
|
11
|
+
export type { TreemapChartOptionsInput } from './buildTreemapChartOptions';
|
|
12
|
+
export { buildTreemapChartOptions } from './buildTreemapChartOptions';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './cartesian';
|
|
2
|
+
export * from './circular';
|
|
3
|
+
export { buildBaseOptions } from './buildBaseOptions';
|
|
4
|
+
export type { CartesianBaseConfig } from './buildCartesianBaseOptions';
|
|
5
|
+
export { buildCartesianBaseOptions, buildCartesianGrid } from './buildCartesianBaseOptions';
|
|
6
|
+
export { buildCircularBaseOptions } from './buildCircularBaseOptions';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FluxStatisticsChartColor } from '@flux-ui/types';
|
|
2
|
+
export declare const CHART_DEFAULT_COLORS: readonly ["var(--chart-1)", "var(--chart-2)", "var(--chart-3)", "var(--chart-4)"];
|
|
3
|
+
export declare function resolveChartColor(color?: FluxStatisticsChartColor): string | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FluxStatisticsChartAreaSeries, FluxStatisticsChartBarSeries, FluxStatisticsChartBoxPlotSeries, FluxStatisticsChartBubbleSeries, FluxStatisticsChartCandlestickSeries, FluxStatisticsChartGaugeSeries, FluxStatisticsChartHeatmapSeries, FluxStatisticsChartLineSeries, FluxStatisticsChartMixedSeries, FluxStatisticsChartPieSlice, FluxStatisticsChartRadarSeries, FluxStatisticsChartScatterSeries, FluxStatisticsChartTreemapNode } from '@flux-ui/types';
|
|
2
|
+
import { BarSeriesOption, BoxplotSeriesOption, CandlestickSeriesOption, GaugeSeriesOption, HeatmapSeriesOption, LineSeriesOption, PieSeriesOption, RadarSeriesOption, ScatterSeriesOption, TreemapSeriesOption } from 'echarts/charts';
|
|
3
|
+
export declare function toLineSeries(s: FluxStatisticsChartLineSeries, fallbackColor: string): LineSeriesOption;
|
|
4
|
+
export declare function toAreaSeries(s: FluxStatisticsChartAreaSeries, fallbackColor: string): LineSeriesOption;
|
|
5
|
+
export declare function toBarSeries(s: FluxStatisticsChartBarSeries, fallbackColor: string): BarSeriesOption;
|
|
6
|
+
export declare function toMixedSeries(s: FluxStatisticsChartMixedSeries, fallbackColor: string): LineSeriesOption | BarSeriesOption;
|
|
7
|
+
export declare function toPieSeries(slices: readonly FluxStatisticsChartPieSlice[], palette: readonly string[]): PieSeriesOption;
|
|
8
|
+
export declare function toDonutSeries(slices: readonly FluxStatisticsChartPieSlice[], palette: readonly string[]): PieSeriesOption;
|
|
9
|
+
export declare function toPolarAreaSeries(slices: readonly FluxStatisticsChartPieSlice[], palette: readonly string[]): PieSeriesOption;
|
|
10
|
+
export declare function toRadarSeries(series: readonly FluxStatisticsChartRadarSeries[], palette: readonly string[]): RadarSeriesOption;
|
|
11
|
+
export declare function toScatterSeries(s: FluxStatisticsChartScatterSeries, fallbackColor: string): ScatterSeriesOption;
|
|
12
|
+
export declare function toBubbleSeries(s: FluxStatisticsChartBubbleSeries, fallbackColor: string): ScatterSeriesOption;
|
|
13
|
+
export declare function toCandlestickSeries(s: FluxStatisticsChartCandlestickSeries): CandlestickSeriesOption;
|
|
14
|
+
export declare function toBoxPlotSeries(s: FluxStatisticsChartBoxPlotSeries, fallbackColor: string): BoxplotSeriesOption;
|
|
15
|
+
export declare function toHeatmapSeries(s: FluxStatisticsChartHeatmapSeries, xLabels: readonly (string | number)[], yLabels: readonly (string | number)[]): HeatmapSeriesOption;
|
|
16
|
+
export declare function toTreemapSeries(nodes: readonly FluxStatisticsChartTreemapNode[], palette: readonly string[]): TreemapSeriesOption;
|
|
17
|
+
export declare function toGaugeSeries(s: FluxStatisticsChartGaugeSeries, fallbackColor: string, index: number, total: number): GaugeSeriesOption;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BarSeriesOption, BoxplotSeriesOption, CandlestickSeriesOption, GaugeSeriesOption, HeatmapSeriesOption, LineSeriesOption, PieSeriesOption, RadarSeriesOption, ScatterSeriesOption, TreemapSeriesOption } from 'echarts/charts';
|
|
2
|
+
export declare const LINE_SERIES_DEFAULTS: Partial<LineSeriesOption>;
|
|
3
|
+
export declare const AREA_SERIES_DEFAULTS: Partial<LineSeriesOption>;
|
|
4
|
+
export declare const BAR_SERIES_DEFAULTS: Partial<BarSeriesOption>;
|
|
5
|
+
export declare const PIE_SERIES_DEFAULTS: Partial<PieSeriesOption>;
|
|
6
|
+
export declare const DONUT_SERIES_DEFAULTS: Partial<PieSeriesOption>;
|
|
7
|
+
export declare const POLAR_AREA_SERIES_DEFAULTS: Partial<PieSeriesOption>;
|
|
8
|
+
export declare const RADAR_SERIES_DEFAULTS: Partial<RadarSeriesOption>;
|
|
9
|
+
export declare const HEATMAP_SERIES_DEFAULTS: Partial<HeatmapSeriesOption>;
|
|
10
|
+
export declare const SCATTER_SERIES_DEFAULTS: Partial<ScatterSeriesOption>;
|
|
11
|
+
export declare const BUBBLE_SERIES_DEFAULTS: Partial<ScatterSeriesOption>;
|
|
12
|
+
export declare const BOXPLOT_SERIES_DEFAULTS: Partial<BoxplotSeriesOption>;
|
|
13
|
+
export declare const CANDLESTICK_SERIES_DEFAULTS: Partial<CandlestickSeriesOption>;
|
|
14
|
+
export declare const TREEMAP_SERIES_DEFAULTS: Partial<TreemapSeriesOption>;
|
|
15
|
+
export declare const GAUGE_SERIES_DEFAULTS: Partial<GaugeSeriesOption>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FluxStatisticsChartCartesianSeries, FluxStatisticsChartCategoryPoint } from '@flux-ui/types';
|
|
2
|
+
export declare function extractLabels(series: readonly {
|
|
3
|
+
readonly data: readonly (number | FluxStatisticsChartCategoryPoint)[];
|
|
4
|
+
}[]): readonly string[] | undefined;
|
|
5
|
+
export declare function cartesianFallbackLabels(series: readonly FluxStatisticsChartCartesianSeries[]): string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EChartsOption } from '../composable';
|
|
2
|
+
export type SparklineVariant = 'line' | 'bar' | 'area';
|
|
3
|
+
export interface SparklineSeriesItem {
|
|
4
|
+
readonly name?: string;
|
|
5
|
+
readonly data: (number | string | null)[];
|
|
6
|
+
}
|
|
7
|
+
export declare function buildSparklineOptions(variant: SparklineVariant, color: string, series: readonly SparklineSeriesItem[]): EChartsOption;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FluxIconName } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../composable';
|
|
3
|
+
import { TooltipStyleClasses, Translator } from './types';
|
|
4
|
+
export interface BoxPlotTooltipPoint {
|
|
5
|
+
readonly label?: string;
|
|
6
|
+
readonly min: number;
|
|
7
|
+
readonly q1: number;
|
|
8
|
+
readonly median: number;
|
|
9
|
+
readonly q3: number;
|
|
10
|
+
readonly max: number;
|
|
11
|
+
}
|
|
12
|
+
export interface BoxPlotTooltipInput {
|
|
13
|
+
readonly t: Translator;
|
|
14
|
+
readonly styles: TooltipStyleClasses;
|
|
15
|
+
readonly getSeries: () => readonly {
|
|
16
|
+
readonly name?: string;
|
|
17
|
+
readonly icon?: FluxIconName;
|
|
18
|
+
readonly data: readonly BoxPlotTooltipPoint[];
|
|
19
|
+
}[];
|
|
20
|
+
readonly getPalette: () => readonly string[];
|
|
21
|
+
}
|
|
22
|
+
export declare function buildBoxPlotTooltip(input: BoxPlotTooltipInput): EChartsOption;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FluxIconName } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../composable';
|
|
3
|
+
import { ChartTooltipValueFormatter, TooltipStyleClasses, Translator } from './types';
|
|
4
|
+
export interface CartesianTooltipInput {
|
|
5
|
+
readonly t: Translator;
|
|
6
|
+
readonly styles: TooltipStyleClasses;
|
|
7
|
+
readonly getSeriesIcons: () => readonly (FluxIconName | undefined)[];
|
|
8
|
+
readonly valueFormatter?: ChartTooltipValueFormatter;
|
|
9
|
+
}
|
|
10
|
+
export declare function buildCartesianTooltip(input: CartesianTooltipInput): EChartsOption;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FluxIconName } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../composable';
|
|
3
|
+
import { TooltipStyleClasses, Translator } from './types';
|
|
4
|
+
export interface GaugeTooltipInput {
|
|
5
|
+
readonly t: Translator;
|
|
6
|
+
readonly styles: TooltipStyleClasses;
|
|
7
|
+
readonly getSeries: () => readonly {
|
|
8
|
+
readonly name?: string;
|
|
9
|
+
readonly value: number;
|
|
10
|
+
readonly icon?: FluxIconName;
|
|
11
|
+
}[];
|
|
12
|
+
readonly getPalette: () => readonly string[];
|
|
13
|
+
}
|
|
14
|
+
export declare function buildGaugeTooltip(input: GaugeTooltipInput): EChartsOption;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EChartsOption } from '../../composable';
|
|
2
|
+
import { TooltipStyleClasses, Translator } from './types';
|
|
3
|
+
export interface HeatmapTooltipPoint {
|
|
4
|
+
readonly x: string | number;
|
|
5
|
+
readonly y: string | number;
|
|
6
|
+
readonly value: number;
|
|
7
|
+
readonly formatted?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface HeatmapTooltipInput {
|
|
10
|
+
readonly t: Translator;
|
|
11
|
+
readonly styles: TooltipStyleClasses;
|
|
12
|
+
readonly getSeries: () => readonly {
|
|
13
|
+
readonly name?: string;
|
|
14
|
+
readonly data: readonly HeatmapTooltipPoint[];
|
|
15
|
+
}[];
|
|
16
|
+
}
|
|
17
|
+
export declare function buildHeatmapTooltip(input: HeatmapTooltipInput): EChartsOption;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FluxStatisticsChartRadarIndicator, FluxStatisticsChartRadarSeries } from '@flux-ui/types';
|
|
2
|
+
import { EChartsOption } from '../../composable';
|
|
3
|
+
import { TooltipStyleClasses, Translator } from './types';
|
|
4
|
+
export interface RadarTooltipInput {
|
|
5
|
+
readonly t: Translator;
|
|
6
|
+
readonly styles: TooltipStyleClasses;
|
|
7
|
+
readonly getSeries: () => readonly FluxStatisticsChartRadarSeries[];
|
|
8
|
+
readonly getIndicators: () => readonly FluxStatisticsChartRadarIndicator[];
|
|
9
|
+
readonly getPalette: () => readonly string[];
|
|
10
|
+
}
|
|
11
|
+
export declare function buildRadarTooltip(input: RadarTooltipInput): EChartsOption;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EChartsOption } from '../../composable';
|
|
2
|
+
import { ChartTooltipValueFormatter, SharedTooltipItem, TooltipStyleClasses, Translator } from './types';
|
|
3
|
+
export interface SharedItemTooltipInput {
|
|
4
|
+
readonly t: Translator;
|
|
5
|
+
readonly styles: TooltipStyleClasses;
|
|
6
|
+
readonly getItems: () => readonly SharedTooltipItem[];
|
|
7
|
+
readonly getTitle?: () => string | undefined;
|
|
8
|
+
readonly valueFormatter?: ChartTooltipValueFormatter;
|
|
9
|
+
}
|
|
10
|
+
export declare function buildSharedItemTooltip(input: SharedItemTooltipInput): EChartsOption;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EChartsOption } from '../../composable';
|
|
2
|
+
import { TooltipStyleClasses, Translator } from './types';
|
|
3
|
+
export interface TreemapTooltipNode {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly value?: number;
|
|
6
|
+
readonly color?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TreemapTooltipInput {
|
|
9
|
+
readonly t: Translator;
|
|
10
|
+
readonly styles: TooltipStyleClasses;
|
|
11
|
+
}
|
|
12
|
+
export declare function buildTreemapTooltip(input: TreemapTooltipInput): EChartsOption;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { BoxPlotTooltipInput, BoxPlotTooltipPoint } from './buildBoxPlotTooltip';
|
|
2
|
+
export { buildBoxPlotTooltip } from './buildBoxPlotTooltip';
|
|
3
|
+
export type { CartesianTooltipInput } from './buildCartesianTooltip';
|
|
4
|
+
export { buildCartesianTooltip } from './buildCartesianTooltip';
|
|
5
|
+
export type { GaugeTooltipInput } from './buildGaugeTooltip';
|
|
6
|
+
export { buildGaugeTooltip } from './buildGaugeTooltip';
|
|
7
|
+
export type { HeatmapTooltipInput, HeatmapTooltipPoint } from './buildHeatmapTooltip';
|
|
8
|
+
export { buildHeatmapTooltip } from './buildHeatmapTooltip';
|
|
9
|
+
export type { RadarTooltipInput } from './buildRadarTooltip';
|
|
10
|
+
export { buildRadarTooltip } from './buildRadarTooltip';
|
|
11
|
+
export type { SharedItemTooltipInput } from './buildSharedItemTooltip';
|
|
12
|
+
export { buildSharedItemTooltip } from './buildSharedItemTooltip';
|
|
13
|
+
export type { TreemapTooltipInput, TreemapTooltipNode } from './buildTreemapTooltip';
|
|
14
|
+
export { buildTreemapTooltip } from './buildTreemapTooltip';
|
|
15
|
+
export type { ChartTooltipValueFormatter, SharedTooltipItem, TooltipParam, TooltipStyleClasses, Translator } from './types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ChartTooltipValueFormatter, SharedTooltipItem, TooltipParam, TooltipStyleClasses, Translator } from './types';
|
|
2
|
+
export declare function renderTooltip(t: Translator, styles: TooltipStyleClasses, title: string, items: readonly SharedTooltipItem[], activeIndex?: number, valueFormatter?: ChartTooltipValueFormatter): string;
|
|
3
|
+
export declare function extractValue(value: TooltipParam['value']): number | string;
|
|
4
|
+
export declare function formatValue(value: TooltipParam['value']): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FluxIconName } from '@flux-ui/types';
|
|
2
|
+
export interface TooltipParam {
|
|
3
|
+
readonly seriesName?: string;
|
|
4
|
+
readonly seriesIndex: number;
|
|
5
|
+
readonly color: string;
|
|
6
|
+
readonly value: number | string | (number | string)[];
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly dataIndex?: number;
|
|
9
|
+
readonly axisValue?: string;
|
|
10
|
+
readonly axisValueLabel?: string;
|
|
11
|
+
readonly data?: unknown;
|
|
12
|
+
readonly marker?: string;
|
|
13
|
+
}
|
|
14
|
+
export type TooltipStyleClasses = Readonly<Record<string, string>>;
|
|
15
|
+
export type Translator = (key: string) => string;
|
|
16
|
+
export interface SharedTooltipItem {
|
|
17
|
+
readonly name: string;
|
|
18
|
+
readonly value: number | string;
|
|
19
|
+
readonly color: string;
|
|
20
|
+
readonly icon?: FluxIconName;
|
|
21
|
+
readonly seriesIndex?: number;
|
|
22
|
+
readonly dataIndex?: number;
|
|
23
|
+
}
|
|
24
|
+
export type ChartTooltipValueFormatter = (value: number | string, item: SharedTooltipItem) => string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flux-ui/statistics",
|
|
3
3
|
"description": "Statistics components for the Flux UI library.",
|
|
4
|
-
"version": "3.0.0-next.
|
|
4
|
+
"version": "3.0.0-next.69",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/basmilius",
|
|
@@ -49,29 +49,28 @@
|
|
|
49
49
|
"types": "./dist/index.d.ts",
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@basmilius/common": "^3.
|
|
53
|
-
"@basmilius/utils": "^3.
|
|
54
|
-
"@flux-ui/components": "3.0.0-next.
|
|
55
|
-
"@flux-ui/internals": "3.0.0-next.
|
|
56
|
-
"@flux-ui/types": "3.0.0-next.
|
|
52
|
+
"@basmilius/common": "^3.33.0",
|
|
53
|
+
"@basmilius/utils": "^3.33.0",
|
|
54
|
+
"@flux-ui/components": "3.0.0-next.69",
|
|
55
|
+
"@flux-ui/internals": "3.0.0-next.69",
|
|
56
|
+
"@flux-ui/types": "3.0.0-next.69",
|
|
57
57
|
"clsx": "^2.1.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"
|
|
60
|
+
"echarts": "^6.0.0",
|
|
61
61
|
"lodash-es": "^4.18.1",
|
|
62
|
-
"vue": "^3.6.0-beta.
|
|
63
|
-
"vue-i18n": "^11.4.2"
|
|
64
|
-
"vue3-apexcharts": "^1.11.1"
|
|
62
|
+
"vue": "^3.6.0-beta.12",
|
|
63
|
+
"vue-i18n": "^11.4.2"
|
|
65
64
|
},
|
|
66
65
|
"devDependencies": {
|
|
67
|
-
"@basmilius/vite-preset": "^3.
|
|
66
|
+
"@basmilius/vite-preset": "^3.33.0",
|
|
68
67
|
"@types/lodash-es": "^4.17.12",
|
|
69
|
-
"@types/node": "^25.
|
|
70
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
68
|
+
"@types/node": "^25.8.0",
|
|
69
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
71
70
|
"@vue/tsconfig": "^0.9.1",
|
|
72
71
|
"sass-embedded": "^1.99.0",
|
|
73
72
|
"typescript": "^6.0.3",
|
|
74
|
-
"vite": "^8.0.
|
|
75
|
-
"vue-tsc": "^3.2.
|
|
73
|
+
"vite": "^8.0.13",
|
|
74
|
+
"vue-tsc": "^3.2.9"
|
|
76
75
|
}
|
|
77
76
|
}
|