@flux-ui/statistics 3.0.0-next.73 → 3.0.0-next.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/FluxStatisticsLegend.vue.d.ts +7 -1
- package/dist/component/index.d.ts +1 -1
- package/dist/composable/index.d.ts +2 -0
- package/dist/composable/useLegendVariant.d.ts +3 -0
- package/dist/index.css +38 -0
- package/dist/index.js +85 -76
- package/dist/index.js.map +1 -1
- package/dist/util/options/cartesian/buildCandlestickChartOptions.d.ts +1 -2
- package/dist/util/options/circular/buildGaugeChartOptions.d.ts +1 -2
- package/package.json +10 -10
- package/src/component/FluxStatisticsAreaChart.vue +1 -1
- package/src/component/FluxStatisticsBarChart.vue +1 -1
- package/src/component/FluxStatisticsBoxPlotChart.vue +1 -1
- package/src/component/FluxStatisticsBubbleChart.vue +1 -1
- package/src/component/FluxStatisticsCandlestickChart.vue +1 -1
- package/src/component/FluxStatisticsDonutChart.vue +1 -1
- package/src/component/FluxStatisticsHeatmapChart.vue +1 -1
- package/src/component/FluxStatisticsLegend.vue +23 -3
- package/src/component/FluxStatisticsLegendItem.vue +9 -2
- package/src/component/FluxStatisticsLineChart.vue +1 -1
- package/src/component/FluxStatisticsMixedChart.vue +1 -1
- package/src/component/FluxStatisticsPercentageBar.vue +1 -1
- package/src/component/FluxStatisticsPieChart.vue +1 -1
- package/src/component/FluxStatisticsPolarAreaChart.vue +1 -1
- package/src/component/FluxStatisticsRadarChart.vue +1 -1
- package/src/component/FluxStatisticsRadialBar.vue +1 -1
- package/src/component/FluxStatisticsScatterChart.vue +1 -1
- package/src/component/FluxStatisticsTreemapChart.vue +1 -1
- package/src/component/index.ts +1 -1
- package/src/composable/index.ts +2 -0
- package/src/composable/useLegendVariant.ts +5 -0
- package/src/css/Legend.module.scss +45 -0
- package/src/index.ts +2 -2
- package/src/util/options/cartesian/buildCandlestickChartOptions.ts +1 -2
- package/src/util/options/circular/buildGaugeChartOptions.ts +1 -2
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FluxStatisticsChartCandlestickSeries } from '@flux-ui/types';
|
|
2
|
-
import { ChartLegendItem } from '../../../composable
|
|
3
|
-
import { EChartsOption } from '../../../composable/useECharts';
|
|
2
|
+
import { ChartLegendItem, EChartsOption } from '../../../composable';
|
|
4
3
|
import { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
5
4
|
export interface CandlestickChartOptionsInput {
|
|
6
5
|
readonly series: readonly FluxStatisticsChartCandlestickSeries[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FluxStatisticsChartGaugeSeries } from '@flux-ui/types';
|
|
2
|
-
import { ChartLegendItem } from '../../../composable
|
|
3
|
-
import { EChartsOption } from '../../../composable/useECharts';
|
|
2
|
+
import { ChartLegendItem, EChartsOption } from '../../../composable';
|
|
4
3
|
import { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
5
4
|
export interface GaugeChartOptionsInput {
|
|
6
5
|
readonly series: readonly FluxStatisticsChartGaugeSeries[];
|
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.75",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/basmilius",
|
|
@@ -49,28 +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.40.0",
|
|
53
|
+
"@basmilius/utils": "^3.40.0",
|
|
54
|
+
"@flux-ui/components": "3.0.0-next.75",
|
|
55
|
+
"@flux-ui/internals": "3.0.0-next.75",
|
|
56
|
+
"@flux-ui/types": "3.0.0-next.75",
|
|
57
57
|
"clsx": "^2.1.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"echarts": "^6.1.0",
|
|
61
61
|
"lodash-es": "^4.18.1",
|
|
62
|
-
"vue": "^3.6.0-beta.
|
|
62
|
+
"vue": "^3.6.0-beta.13",
|
|
63
63
|
"vue-i18n": "^11.4.4"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@basmilius/vite-preset": "^3.
|
|
66
|
+
"@basmilius/vite-preset": "^3.40.0",
|
|
67
67
|
"@types/lodash-es": "^4.17.12",
|
|
68
68
|
"@types/node": "^25.9.1",
|
|
69
69
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
70
70
|
"@vue/tsconfig": "^0.9.1",
|
|
71
71
|
"sass-embedded": "^1.100.0",
|
|
72
72
|
"typescript": "^6.0.3",
|
|
73
|
-
"vite": "^8.0.
|
|
74
|
-
"vue-tsc": "^3.3.
|
|
73
|
+
"vite": "^8.0.16",
|
|
74
|
+
"vue-tsc": "^3.3.3"
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartAreaSeries } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSeriesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildAreaChartOptions, type ChartTooltipValueFormatter } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartBarSeries } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSeriesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildBarChartOptions, type ChartTooltipValueFormatter } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartBoxPlotSeries } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSeriesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildBoxPlotChartOptions } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartBubbleSeries } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSeriesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildBubbleChartOptions } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartCandlestickSeries } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSeriesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildCandlestickChartOptions, candlestickLegendItemBuilder } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartPieSlice } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSlicesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildDonutChartOptions, type ChartTooltipValueFormatter } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
setup>
|
|
9
9
|
import type { FluxStatisticsChartHeatmapSeries } from '@flux-ui/types';
|
|
10
10
|
import { computed } from 'vue';
|
|
11
|
-
import {
|
|
11
|
+
import { type EChartsOption, useChartBaseSetup } from '~flux/statistics/composable';
|
|
12
12
|
import { buildHeatmapChartOptions } from '~flux/statistics/util';
|
|
13
13
|
import Chart from './FluxStatisticsChart.vue';
|
|
14
14
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="
|
|
2
|
+
<div :class="containerClass">
|
|
3
3
|
<slot v-if="hasSlot"/>
|
|
4
4
|
<FluxStatisticsLegendItem
|
|
5
5
|
v-else
|
|
@@ -18,17 +18,37 @@
|
|
|
18
18
|
<script
|
|
19
19
|
lang="ts"
|
|
20
20
|
setup>
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
21
|
+
import type { FluxDirection } from '@flux-ui/types';
|
|
22
|
+
import { clsx } from 'clsx';
|
|
23
|
+
import { computed, inject, provide, toRef, useSlots } from 'vue';
|
|
24
|
+
import { FluxStatisticsChartLegendInjectionKey, type FluxStatisticsLegendVariant, FluxStatisticsLegendVariantInjectionKey } from '~flux/statistics/composable';
|
|
23
25
|
import FluxStatisticsLegendItem from './FluxStatisticsLegendItem.vue';
|
|
24
26
|
import $style from '~flux/statistics/css/Legend.module.scss';
|
|
25
27
|
|
|
28
|
+
const {
|
|
29
|
+
direction = 'horizontal',
|
|
30
|
+
variant = 'detailed'
|
|
31
|
+
} = defineProps<{
|
|
32
|
+
readonly direction?: FluxDirection;
|
|
33
|
+
readonly variant?: FluxStatisticsLegendVariant;
|
|
34
|
+
}>();
|
|
35
|
+
|
|
26
36
|
const slots = useSlots();
|
|
27
37
|
const legendContext = inject(FluxStatisticsChartLegendInjectionKey, null);
|
|
28
38
|
|
|
29
39
|
const hasSlot = computed(() => !!slots.default);
|
|
30
40
|
const autoItems = computed(() => legendContext?.items.value ?? []);
|
|
31
41
|
|
|
42
|
+
const containerClass = computed(() => {
|
|
43
|
+
if (variant === 'compact') {
|
|
44
|
+
return clsx($style.statisticsLegendCompact, direction === 'vertical' ? $style.isVertical : $style.isHorizontal);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return $style.statisticsLegend;
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
provide(FluxStatisticsLegendVariantInjectionKey, toRef(() => variant));
|
|
51
|
+
|
|
32
52
|
function onItemMouseEnter(index: number): void {
|
|
33
53
|
if (legendContext) {
|
|
34
54
|
legendContext.hoveredIndex.value = index;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
:class="clsx(
|
|
3
|
+
:class="clsx(
|
|
4
|
+
variant === 'compact' ? $style.statisticsLegendItemCompact : $style.statisticsLegendItem,
|
|
5
|
+
variant !== 'compact' && isHovered && $style.isHovered
|
|
6
|
+
)"
|
|
4
7
|
:style="{
|
|
5
8
|
'--color': colorValue
|
|
6
9
|
}">
|
|
@@ -34,7 +37,8 @@
|
|
|
34
37
|
import { FluxIcon } from '@flux-ui/components';
|
|
35
38
|
import type { FluxColor, FluxIconName } from '@flux-ui/types';
|
|
36
39
|
import { clsx } from 'clsx';
|
|
37
|
-
import { computed } from 'vue';
|
|
40
|
+
import { computed, inject } from 'vue';
|
|
41
|
+
import { FluxStatisticsLegendVariantInjectionKey } from '~flux/statistics/composable';
|
|
38
42
|
import $style from '~flux/statistics/css/Legend.module.scss';
|
|
39
43
|
|
|
40
44
|
const {
|
|
@@ -47,6 +51,9 @@
|
|
|
47
51
|
readonly value?: string | number;
|
|
48
52
|
}>();
|
|
49
53
|
|
|
54
|
+
const variantRef = inject(FluxStatisticsLegendVariantInjectionKey, null);
|
|
55
|
+
const variant = computed(() => variantRef?.value ?? 'detailed');
|
|
56
|
+
|
|
50
57
|
const colorValue = computed(() => {
|
|
51
58
|
if (!color) {
|
|
52
59
|
return;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartLineSeries } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSeriesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildLineChartOptions, type ChartTooltipValueFormatter } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartMixedSeries } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSeriesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildMixedChartOptions, type ChartTooltipValueFormatter } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
import type { FluxStatisticsChartColor, FluxStatisticsPercentageBarItemObject } from '@flux-ui/types';
|
|
37
37
|
import { clsx } from 'clsx';
|
|
38
38
|
import { computed, inject, watchEffect } from 'vue';
|
|
39
|
-
import {
|
|
39
|
+
import { type ChartLegendItem, FluxStatisticsChartLegendInjectionKey } from '~flux/statistics/composable';
|
|
40
40
|
import $style from '~flux/statistics/css/PercentageBar.module.scss';
|
|
41
41
|
|
|
42
42
|
const SEMANTIC_COLORS = ['gray', 'primary', 'danger', 'info', 'success', 'warning'] as const;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartPieSlice } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSlicesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildPieChartOptions, type ChartTooltipValueFormatter } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartPieSlice } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSlicesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildPolarAreaChartOptions, type ChartTooltipValueFormatter } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartRadarIndicator, FluxStatisticsChartRadarSeries } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSeriesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildRadarChartOptions } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartGaugeSeries } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSeriesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildGaugeChartOptions, gaugeLegendItemBuilder } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
setup>
|
|
10
10
|
import type { FluxStatisticsChartScatterSeries } from '@flux-ui/types';
|
|
11
11
|
import { computed } from 'vue';
|
|
12
|
-
import {
|
|
12
|
+
import { type EChartsOption, useChartSeriesSetup } from '~flux/statistics/composable';
|
|
13
13
|
import { buildScatterChartOptions } from '~flux/statistics/util';
|
|
14
14
|
import Chart from './FluxStatisticsChart.vue';
|
|
15
15
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
setup>
|
|
9
9
|
import type { FluxStatisticsChartTreemapNode } from '@flux-ui/types';
|
|
10
10
|
import { computed } from 'vue';
|
|
11
|
-
import {
|
|
11
|
+
import { type EChartsOption, useChartBaseSetup } from '~flux/statistics/composable';
|
|
12
12
|
import { buildTreemapChartOptions } from '~flux/statistics/util';
|
|
13
13
|
import Chart from './FluxStatisticsChart.vue';
|
|
14
14
|
import $style from '~flux/statistics/css/Chart.module.scss';
|
package/src/component/index.ts
CHANGED
|
@@ -14,8 +14,8 @@ export { default as FluxStatisticsDonutChart } from './FluxStatisticsDonutChart.
|
|
|
14
14
|
export { default as FluxStatisticsEmpty } from './FluxStatisticsEmpty.vue';
|
|
15
15
|
export { default as FluxStatisticsGrid } from './FluxStatisticsGrid.vue';
|
|
16
16
|
export { default as FluxStatisticsHeatmapChart } from './FluxStatisticsHeatmapChart.vue';
|
|
17
|
-
export { default as FluxStatisticsLineChart } from './FluxStatisticsLineChart.vue';
|
|
18
17
|
export { default as FluxStatisticsKpi } from './FluxStatisticsKpi.vue';
|
|
18
|
+
export { default as FluxStatisticsLineChart } from './FluxStatisticsLineChart.vue';
|
|
19
19
|
export { default as FluxStatisticsLegend } from './FluxStatisticsLegend.vue';
|
|
20
20
|
export { default as FluxStatisticsLegendItem } from './FluxStatisticsLegendItem.vue';
|
|
21
21
|
export { default as FluxStatisticsLegendScope } from './FluxStatisticsLegendScope.vue';
|
package/src/composable/index.ts
CHANGED
|
@@ -10,3 +10,5 @@ export type { UseChartSlicesSetupReturn } from './useChartSlicesSetup';
|
|
|
10
10
|
export { useChartSlicesSetup } from './useChartSlicesSetup';
|
|
11
11
|
export type { EChartsInstance, EChartsOption, UseEChartsReturn } from './useECharts';
|
|
12
12
|
export { useECharts } from './useECharts';
|
|
13
|
+
export type { FluxStatisticsLegendVariant } from './useLegendVariant';
|
|
14
|
+
export { FluxStatisticsLegendVariantInjectionKey } from './useLegendVariant';
|
|
@@ -68,3 +68,48 @@
|
|
|
68
68
|
content: '';
|
|
69
69
|
border-top: 1px dashed var(--surface-stroke);
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
.statisticsLegendCompact {
|
|
73
|
+
display: flex;
|
|
74
|
+
user-select: none;
|
|
75
|
+
|
|
76
|
+
&.isHorizontal {
|
|
77
|
+
flex-flow: row wrap;
|
|
78
|
+
gap: 12px 18px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.isVertical {
|
|
82
|
+
flex-flow: column;
|
|
83
|
+
gap: 12px;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.statisticsLegendItemCompact {
|
|
88
|
+
--color: var(--primary-600);
|
|
89
|
+
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
flex-flow: row nowrap;
|
|
93
|
+
gap: 6px;
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
line-height: 1;
|
|
96
|
+
white-space: nowrap;
|
|
97
|
+
|
|
98
|
+
.statisticsLegendItemColor {
|
|
99
|
+
margin: 0;
|
|
100
|
+
border-radius: var(--radius-full);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.statisticsLegendItemIcon {
|
|
104
|
+
margin: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.statisticsLegendItemLabel {
|
|
108
|
+
flex-grow: 0;
|
|
109
|
+
font-weight: 400;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.statisticsLegendItemValue {
|
|
113
|
+
margin-left: 0;
|
|
114
|
+
}
|
|
115
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { amber500, blue500, cyan500, emerald500, fuchsia500, green500, indigo500, lime500, orange500, pink500, purple500, red500,
|
|
1
|
+
import { amber500, blue500, cyan500, emerald500, fuchsia500, green500, indigo500, lime500, orange500, pink500, purple500, red500, rose500, sky500, teal500, violet500, yellow500 } from '@flux-ui/internals';
|
|
2
2
|
import type { FluxStatisticsChartColor } from '@flux-ui/types';
|
|
3
3
|
|
|
4
4
|
export * from './component';
|
|
@@ -30,5 +30,5 @@ export const CHART_COLORFUL_COLORS: readonly FluxStatisticsChartColor[] = [
|
|
|
30
30
|
purple500,
|
|
31
31
|
fuchsia500,
|
|
32
32
|
pink500,
|
|
33
|
-
|
|
33
|
+
rose500
|
|
34
34
|
] as FluxStatisticsChartColor[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { FluxStatisticsChartCandlestickSeries } from '@flux-ui/types';
|
|
2
2
|
import { merge } from 'lodash-es';
|
|
3
|
-
import type { ChartLegendItem } from '~flux/statistics/composable
|
|
4
|
-
import type { EChartsOption } from '~flux/statistics/composable/useECharts';
|
|
3
|
+
import type { ChartLegendItem, EChartsOption } from '~flux/statistics/composable';
|
|
5
4
|
import { resolveChartColor, toCandlestickSeries } from '../../series';
|
|
6
5
|
import type { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
7
6
|
import { buildCartesianTooltip } from '../../tooltips';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { FluxStatisticsChartGaugeSeries } from '@flux-ui/types';
|
|
2
2
|
import { merge } from 'lodash-es';
|
|
3
|
-
import type { ChartLegendItem } from '~flux/statistics/composable
|
|
4
|
-
import type { EChartsOption } from '~flux/statistics/composable/useECharts';
|
|
3
|
+
import type { ChartLegendItem, EChartsOption } from '~flux/statistics/composable';
|
|
5
4
|
import { toGaugeSeries } from '../../series';
|
|
6
5
|
import type { TooltipStyleClasses, Translator } from '../../tooltips';
|
|
7
6
|
import { buildGaugeTooltip } from '../../tooltips';
|