@flux-ui/statistics 3.0.0-next.66 → 3.0.0-next.68

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 (101) hide show
  1. package/README.md +1 -1
  2. package/dist/component/FluxStatisticsAreaChart.vue.d.ts +13 -5
  3. package/dist/component/FluxStatisticsBarChart.vue.d.ts +13 -5
  4. package/dist/component/FluxStatisticsBase.vue.d.ts +8 -15
  5. package/dist/component/FluxStatisticsBoxPlotChart.vue.d.ts +15 -0
  6. package/dist/component/FluxStatisticsBubbleChart.vue.d.ts +14 -0
  7. package/dist/component/FluxStatisticsCandlestickChart.vue.d.ts +15 -0
  8. package/dist/component/FluxStatisticsChange.vue.d.ts +2 -1
  9. package/dist/component/FluxStatisticsChart.vue.d.ts +8 -19
  10. package/dist/component/FluxStatisticsChartPane.vue.d.ts +9 -17
  11. package/dist/component/FluxStatisticsComparison.vue.d.ts +16 -0
  12. package/dist/component/FluxStatisticsDetailsTable.vue.d.ts +6 -13
  13. package/dist/component/FluxStatisticsDetailsTableRow.vue.d.ts +2 -1
  14. package/dist/component/FluxStatisticsDonutChart.vue.d.ts +10 -5
  15. package/dist/component/FluxStatisticsEmpty.vue.d.ts +19 -0
  16. package/dist/component/FluxStatisticsGrid.vue.d.ts +7 -11
  17. package/dist/component/FluxStatisticsHeatmapChart.vue.d.ts +15 -0
  18. package/dist/component/FluxStatisticsKpi.vue.d.ts +2 -1
  19. package/dist/component/FluxStatisticsLegend.vue.d.ts +7 -11
  20. package/dist/component/FluxStatisticsLegendItem.vue.d.ts +3 -1
  21. package/dist/component/FluxStatisticsLineChart.vue.d.ts +13 -5
  22. package/dist/component/FluxStatisticsMeter.vue.d.ts +2 -1
  23. package/dist/component/FluxStatisticsMetric.vue.d.ts +6 -13
  24. package/dist/component/FluxStatisticsMixedChart.vue.d.ts +17 -0
  25. package/dist/component/FluxStatisticsPieChart.vue.d.ts +10 -5
  26. package/dist/component/FluxStatisticsPolarAreaChart.vue.d.ts +14 -0
  27. package/dist/component/FluxStatisticsRadarChart.vue.d.ts +12 -0
  28. package/dist/component/FluxStatisticsRadialBar.vue.d.ts +11 -0
  29. package/dist/component/FluxStatisticsScatterChart.vue.d.ts +14 -0
  30. package/dist/component/FluxStatisticsSparkline.vue.d.ts +13 -0
  31. package/dist/component/FluxStatisticsTreemapChart.vue.d.ts +11 -0
  32. package/dist/component/index.d.ts +13 -0
  33. package/dist/composable/index.d.ts +10 -0
  34. package/dist/composable/useChartHoverSync.d.ts +9 -0
  35. package/dist/composable/useChartLegend.d.ts +14 -0
  36. package/dist/composable/useChartSeriesSetup.d.ts +23 -0
  37. package/dist/composable/useECharts.d.ts +9 -0
  38. package/dist/composable/usePieSlicesSetup.d.ts +14 -0
  39. package/dist/echarts.d.ts +1 -0
  40. package/dist/index.css +230 -37
  41. package/dist/index.d.ts +5 -2
  42. package/dist/index.js +10924 -9047
  43. package/dist/index.js.map +1 -1
  44. package/dist/util/baseOptions.d.ts +15 -0
  45. package/dist/util/colors.d.ts +4 -0
  46. package/dist/util/convert.d.ts +22 -0
  47. package/dist/util/defaultOptions.d.ts +76 -0
  48. package/dist/util/iconSvg.d.ts +2 -0
  49. package/dist/util/index.d.ts +7 -0
  50. package/dist/util/seriesDefaults.d.ts +15 -0
  51. package/dist/util/sparklineOptions.d.ts +7 -0
  52. package/package.json +14 -15
  53. package/src/component/FluxStatisticsAreaChart.vue +38 -41
  54. package/src/component/FluxStatisticsBarChart.vue +38 -33
  55. package/src/component/FluxStatisticsBase.vue +14 -1
  56. package/src/component/FluxStatisticsBoxPlotChart.vue +69 -0
  57. package/src/component/FluxStatisticsBubbleChart.vue +56 -0
  58. package/src/component/FluxStatisticsCandlestickChart.vue +81 -0
  59. package/src/component/FluxStatisticsChart.vue +19 -169
  60. package/src/component/FluxStatisticsChartPane.vue +23 -11
  61. package/src/component/FluxStatisticsComparison.vue +113 -0
  62. package/src/component/FluxStatisticsDonutChart.vue +39 -18
  63. package/src/component/FluxStatisticsEmpty.vue +44 -0
  64. package/src/component/FluxStatisticsHeatmapChart.vue +80 -0
  65. package/src/component/FluxStatisticsLegend.vue +33 -1
  66. package/src/component/FluxStatisticsLegendItem.vue +3 -1
  67. package/src/component/FluxStatisticsLineChart.vue +38 -41
  68. package/src/component/FluxStatisticsMixedChart.vue +55 -0
  69. package/src/component/FluxStatisticsPieChart.vue +39 -18
  70. package/src/component/FluxStatisticsPolarAreaChart.vue +53 -0
  71. package/src/component/FluxStatisticsRadarChart.vue +108 -0
  72. package/src/component/FluxStatisticsRadialBar.vue +48 -0
  73. package/src/component/FluxStatisticsScatterChart.vue +56 -0
  74. package/src/component/FluxStatisticsSparkline.vue +67 -0
  75. package/src/component/FluxStatisticsTreemapChart.vue +39 -0
  76. package/src/component/index.ts +13 -0
  77. package/src/composable/index.ts +10 -0
  78. package/src/composable/useChartHoverSync.ts +92 -0
  79. package/src/composable/useChartLegend.ts +23 -0
  80. package/src/composable/useChartSeriesSetup.ts +75 -0
  81. package/src/composable/useECharts.ts +55 -0
  82. package/src/composable/usePieSlicesSetup.ts +58 -0
  83. package/src/css/Base.module.scss +28 -1
  84. package/src/css/Chart.module.scss +66 -32
  85. package/src/css/ChartPane.module.scss +24 -9
  86. package/src/css/Comparison.module.scss +52 -0
  87. package/src/css/Empty.module.scss +39 -0
  88. package/src/css/Grid.module.scss +1 -0
  89. package/src/css/Legend.module.scss +11 -1
  90. package/src/css/Metric.module.scss +6 -0
  91. package/src/css/Sparkline.module.scss +13 -0
  92. package/src/echarts.ts +47 -0
  93. package/src/index.ts +7 -3
  94. package/src/util/baseOptions.ts +74 -0
  95. package/src/util/colors.ts +86 -0
  96. package/src/util/convert.ts +360 -0
  97. package/src/util/defaultOptions.ts +398 -0
  98. package/src/util/iconSvg.ts +20 -0
  99. package/src/util/index.ts +7 -0
  100. package/src/util/seriesDefaults.ts +210 -0
  101. package/src/util/sparklineOptions.ts +67 -0
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Chart and statistics components for [Flux UI](https://flux-ui.dev).
4
4
 
5
- Built on top of [ApexCharts](https://apexcharts.com) via [`vue3-apexcharts`](https://github.com/apexcharts/vue3-apexcharts), themed to match the Flux design system. Locale-aware labels are provided through `vue-i18n`.
5
+ Built on top of [Apache ECharts](https://echarts.apache.org/), themed to match the Flux design system. Locale-aware labels are provided through `vue-i18n`.
6
6
 
7
7
  ## Highlights
8
8
 
@@ -1,9 +1,17 @@
1
- import { ApexOptions } from 'apexcharts';
1
+ import { FluxStatisticsChartAreaSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { ChartTooltipValueFormatter } from '../util';
2
4
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
5
  type __VLS_Props = {
4
- readonly aspectRatio?: number;
5
- readonly options?: ApexOptions;
6
- readonly series: ApexOptions['series'];
6
+ readonly advancedOptions?: EChartsOption;
7
+ readonly labels?: readonly string[];
8
+ readonly series: readonly FluxStatisticsChartAreaSeries[];
9
+ readonly splitLines?: boolean;
10
+ readonly tooltip?: boolean;
11
+ readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
12
+ readonly xAxisLabels?: boolean;
13
+ readonly yAxisLabels?: boolean;
7
14
  };
8
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
9
17
  export default _default;
@@ -1,9 +1,17 @@
1
- import { ApexOptions } from 'apexcharts';
1
+ import { FluxStatisticsChartBarSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { ChartTooltipValueFormatter } from '../util';
2
4
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
5
  type __VLS_Props = {
4
- readonly aspectRatio?: number;
5
- readonly options?: ApexOptions;
6
- readonly series: ApexOptions['series'];
6
+ readonly advancedOptions?: EChartsOption;
7
+ readonly labels?: readonly string[];
8
+ readonly series: readonly FluxStatisticsChartBarSeries[];
9
+ readonly splitLines?: boolean;
10
+ readonly tooltip?: boolean;
11
+ readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
12
+ readonly xAxisLabels?: boolean;
13
+ readonly yAxisLabels?: boolean;
7
14
  };
8
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
9
17
  export default _default;
@@ -5,23 +5,16 @@ type __VLS_Props = {
5
5
  readonly isSmall?: boolean;
6
6
  readonly title?: string;
7
7
  };
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: Readonly<{
11
- content?(): any;
12
- default?(): any;
13
- }> & {
14
- content?(): any;
15
- default?(): any;
16
- };
17
- refs: {};
18
- rootEl: HTMLDivElement;
8
+ type __VLS_Slots = {
9
+ content?(): any;
10
+ default?(): any;
11
+ info?(): any;
19
12
  };
20
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
22
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
23
16
  export default _default;
24
- type __VLS_WithTemplateSlots<T, S> = T & {
17
+ type __VLS_WithSlots<T, S> = T & {
25
18
  new (): {
26
19
  $slots: S;
27
20
  };
@@ -0,0 +1,15 @@
1
+ import { FluxStatisticsChartBoxPlotSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ readonly advancedOptions?: EChartsOption;
6
+ readonly labels?: readonly string[];
7
+ readonly series: readonly FluxStatisticsChartBoxPlotSeries[];
8
+ readonly splitLines?: boolean;
9
+ readonly tooltip?: boolean;
10
+ readonly xAxisLabels?: boolean;
11
+ readonly yAxisLabels?: boolean;
12
+ };
13
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { FluxStatisticsChartBubbleSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ readonly advancedOptions?: EChartsOption;
6
+ readonly series: readonly FluxStatisticsChartBubbleSeries[];
7
+ readonly splitLines?: boolean;
8
+ readonly tooltip?: boolean;
9
+ readonly xAxisLabels?: boolean;
10
+ readonly yAxisLabels?: boolean;
11
+ };
12
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { FluxStatisticsChartCandlestickSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ readonly advancedOptions?: EChartsOption;
6
+ readonly labels?: readonly string[];
7
+ readonly series: readonly FluxStatisticsChartCandlestickSeries[];
8
+ readonly splitLines?: boolean;
9
+ readonly tooltip?: boolean;
10
+ readonly xAxisLabels?: boolean;
11
+ readonly yAxisLabels?: boolean;
12
+ };
13
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -5,5 +5,6 @@ type __VLS_Props = {
5
5
  readonly icon?: FluxIconName;
6
6
  readonly value: string | number;
7
7
  };
8
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
8
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
9
10
  export default _default;
@@ -1,22 +1,11 @@
1
- import { ApexOptions } from 'apexcharts';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ComputedOptions, MethodOptions, GlobalComponents, GlobalDirectives } from 'vue';
3
- import { VueApexChartsComponentProps, VueApexChartsComponentMethods } from 'vue3-apexcharts';
1
+ import { EChartsOption } from '../composable';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { ECharts } from 'echarts/core';
4
4
  type __VLS_Props = {
5
- readonly options?: ApexOptions;
6
- readonly series: ApexOptions['series'];
5
+ readonly options?: EChartsOption;
7
6
  };
8
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
9
- chart: CreateComponentPublicInstanceWithMixins<Readonly< VueApexChartsComponentProps>, VueApexChartsComponentMethods, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
10
- series: any;
11
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
12
- P: {};
13
- B: {};
14
- D: {};
15
- C: {};
16
- M: {};
17
- Defaults: {};
18
- }, Readonly< VueApexChartsComponentProps>, VueApexChartsComponentMethods, {}, ComputedOptions, MethodOptions, {
19
- series: any;
20
- }>;
21
- }, HTMLDivElement>;
7
+ declare const __VLS_export: DefineComponent<__VLS_Props, {
8
+ chartInstance: Ref<ECharts, ECharts>;
9
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
10
+ declare const _default: typeof __VLS_export;
22
11
  export default _default;
@@ -7,25 +7,17 @@ type __VLS_Props = {
7
7
  readonly icon?: FluxIconName;
8
8
  readonly title?: string;
9
9
  };
10
- declare function __VLS_template(): {
11
- attrs: Partial<{}>;
12
- slots: Readonly<{
13
- default(): any;
14
- legend?(): any;
15
- toolbar?(): any;
16
- }> & {
17
- default(): any;
18
- legend?(): any;
19
- toolbar?(): any;
20
- };
21
- refs: {};
22
- rootEl: HTMLDivElement;
10
+ type __VLS_Slots = {
11
+ default(): any;
12
+ info?(): any;
13
+ legend?(): any;
14
+ toolbar?(): any;
23
15
  };
24
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
26
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
27
19
  export default _default;
28
- type __VLS_WithTemplateSlots<T, S> = T & {
20
+ type __VLS_WithSlots<T, S> = T & {
29
21
  new (): {
30
22
  $slots: S;
31
23
  };
@@ -0,0 +1,16 @@
1
+ import { FluxIconName } from '@flux-ui/types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly current: number;
5
+ readonly currentLabel?: string;
6
+ readonly footer?: string;
7
+ readonly format?: (value: number) => string;
8
+ readonly icon?: FluxIconName;
9
+ readonly previous: number;
10
+ readonly previousLabel?: string;
11
+ readonly showDelta?: boolean;
12
+ readonly title: string;
13
+ };
14
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -2,21 +2,14 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  type __VLS_Props = {
3
3
  readonly title: string;
4
4
  };
5
- declare function __VLS_template(): {
6
- attrs: Partial<{}>;
7
- slots: Readonly<{
8
- default(): any;
9
- }> & {
10
- default(): any;
11
- };
12
- refs: {};
13
- rootEl: HTMLDivElement;
5
+ type __VLS_Slots = {
6
+ default(): any;
14
7
  };
15
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
17
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
18
11
  export default _default;
19
- type __VLS_WithTemplateSlots<T, S> = T & {
12
+ type __VLS_WithSlots<T, S> = T & {
20
13
  new (): {
21
14
  $slots: S;
22
15
  };
@@ -3,5 +3,6 @@ type __VLS_Props = {
3
3
  readonly label: string;
4
4
  readonly value: string;
5
5
  };
6
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
7
8
  export default _default;
@@ -1,9 +1,14 @@
1
- import { ApexOptions } from 'apexcharts';
1
+ import { FluxStatisticsChartPieSlice } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { ChartTooltipValueFormatter } from '../util';
2
4
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
5
  type __VLS_Props = {
4
- readonly aspectRatio?: number;
5
- readonly options?: ApexOptions;
6
- readonly series: ApexOptions['series'];
6
+ readonly advancedOptions?: EChartsOption;
7
+ readonly slices: readonly FluxStatisticsChartPieSlice[];
8
+ readonly title?: string;
9
+ readonly tooltip?: boolean;
10
+ readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
7
11
  };
8
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
9
14
  export default _default;
@@ -0,0 +1,19 @@
1
+ import { FluxIconName } from '@flux-ui/types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly description?: string;
5
+ readonly icon?: FluxIconName;
6
+ readonly title?: string;
7
+ };
8
+ type __VLS_Slots = {
9
+ default?(): any;
10
+ };
11
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -7,19 +7,15 @@ type __VLS_Props = {
7
7
  readonly lg?: number;
8
8
  readonly xl?: number;
9
9
  };
10
- declare function __VLS_template(): {
11
- attrs: Partial<{}>;
12
- slots: {
13
- default?(_: {}): any;
14
- };
15
- refs: {};
16
- rootEl: HTMLDivElement;
10
+ declare var __VLS_1: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_1) => any;
17
13
  };
18
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
20
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
21
17
  export default _default;
22
- type __VLS_WithTemplateSlots<T, S> = T & {
18
+ type __VLS_WithSlots<T, S> = T & {
23
19
  new (): {
24
20
  $slots: S;
25
21
  };
@@ -0,0 +1,15 @@
1
+ import { FluxStatisticsChartHeatmapSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ readonly advancedOptions?: EChartsOption;
6
+ readonly series: readonly FluxStatisticsChartHeatmapSeries[];
7
+ readonly tooltip?: boolean;
8
+ readonly xAxisLabels?: boolean;
9
+ readonly xLabels?: readonly string[];
10
+ readonly yAxisLabels?: boolean;
11
+ readonly yLabels?: readonly string[];
12
+ };
13
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -7,5 +7,6 @@ type __VLS_Props = {
7
7
  readonly title: string;
8
8
  readonly value: string | number;
9
9
  };
10
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -1,17 +1,13 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
6
- };
7
- refs: {};
8
- rootEl: HTMLDivElement;
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
9
5
  };
10
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
12
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
6
+ declare const __VLS_base: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
13
9
  export default _default;
14
- type __VLS_WithTemplateSlots<T, S> = T & {
10
+ type __VLS_WithSlots<T, S> = T & {
15
11
  new (): {
16
12
  $slots: S;
17
13
  };
@@ -3,8 +3,10 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  type __VLS_Props = {
4
4
  readonly color?: FluxColor | `#${string}`;
5
5
  readonly icon?: FluxIconName;
6
+ readonly isHovered?: boolean;
6
7
  readonly label: string;
7
8
  readonly value?: string | number;
8
9
  };
9
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
10
12
  export default _default;
@@ -1,9 +1,17 @@
1
- import { ApexOptions } from 'apexcharts';
1
+ import { FluxStatisticsChartLineSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { ChartTooltipValueFormatter } from '../util';
2
4
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
5
  type __VLS_Props = {
4
- readonly aspectRatio?: number;
5
- readonly options?: ApexOptions;
6
- readonly series: ApexOptions['series'];
6
+ readonly advancedOptions?: EChartsOption;
7
+ readonly labels?: readonly string[];
8
+ readonly series: readonly FluxStatisticsChartLineSeries[];
9
+ readonly splitLines?: boolean;
10
+ readonly tooltip?: boolean;
11
+ readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
12
+ readonly xAxisLabels?: boolean;
13
+ readonly yAxisLabels?: boolean;
7
14
  };
8
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
9
17
  export default _default;
@@ -10,5 +10,6 @@ type __VLS_Props = {
10
10
  readonly title?: string;
11
11
  readonly value: number;
12
12
  };
13
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
@@ -8,21 +8,14 @@ type __VLS_Props = {
8
8
  readonly title: string;
9
9
  readonly value?: string | number;
10
10
  };
11
- declare function __VLS_template(): {
12
- attrs: Partial<{}>;
13
- slots: Readonly<{
14
- default?(): any;
15
- }> & {
16
- default?(): any;
17
- };
18
- refs: {};
19
- rootEl: HTMLDivElement;
11
+ type __VLS_Slots = {
12
+ default?(): any;
20
13
  };
21
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
23
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
+ declare const _default: typeof __VLS_export;
24
17
  export default _default;
25
- type __VLS_WithTemplateSlots<T, S> = T & {
18
+ type __VLS_WithSlots<T, S> = T & {
26
19
  new (): {
27
20
  $slots: S;
28
21
  };
@@ -0,0 +1,17 @@
1
+ import { FluxStatisticsChartMixedSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { ChartTooltipValueFormatter } from '../util';
4
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
5
+ type __VLS_Props = {
6
+ readonly advancedOptions?: EChartsOption;
7
+ readonly labels?: readonly string[];
8
+ readonly series: readonly FluxStatisticsChartMixedSeries[];
9
+ readonly splitLines?: boolean;
10
+ readonly tooltip?: boolean;
11
+ readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
12
+ readonly xAxisLabels?: boolean;
13
+ readonly yAxisLabels?: boolean;
14
+ };
15
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -1,9 +1,14 @@
1
- import { ApexOptions } from 'apexcharts';
1
+ import { FluxStatisticsChartPieSlice } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { ChartTooltipValueFormatter } from '../util';
2
4
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
5
  type __VLS_Props = {
4
- readonly aspectRatio?: number;
5
- readonly options?: ApexOptions;
6
- readonly series: ApexOptions['series'];
6
+ readonly advancedOptions?: EChartsOption;
7
+ readonly slices: readonly FluxStatisticsChartPieSlice[];
8
+ readonly title?: string;
9
+ readonly tooltip?: boolean;
10
+ readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
7
11
  };
8
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
9
14
  export default _default;
@@ -0,0 +1,14 @@
1
+ import { FluxStatisticsChartPieSlice } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { ChartTooltipValueFormatter } from '../util';
4
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
5
+ type __VLS_Props = {
6
+ readonly advancedOptions?: EChartsOption;
7
+ readonly slices: readonly FluxStatisticsChartPieSlice[];
8
+ readonly title?: string;
9
+ readonly tooltip?: boolean;
10
+ readonly tooltipValueFormatter?: ChartTooltipValueFormatter;
11
+ };
12
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { FluxStatisticsChartRadarIndicator, FluxStatisticsChartRadarSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ readonly advancedOptions?: EChartsOption;
6
+ readonly indicators: readonly FluxStatisticsChartRadarIndicator[];
7
+ readonly series: readonly FluxStatisticsChartRadarSeries[];
8
+ readonly tooltip?: boolean;
9
+ };
10
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { FluxStatisticsChartGaugeSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ readonly advancedOptions?: EChartsOption;
6
+ readonly series: readonly FluxStatisticsChartGaugeSeries[];
7
+ readonly tooltip?: boolean;
8
+ };
9
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { FluxStatisticsChartScatterSeries } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ readonly advancedOptions?: EChartsOption;
6
+ readonly series: readonly FluxStatisticsChartScatterSeries[];
7
+ readonly splitLines?: boolean;
8
+ readonly tooltip?: boolean;
9
+ readonly xAxisLabels?: boolean;
10
+ readonly yAxisLabels?: boolean;
11
+ };
12
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { FluxColor } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { SparklineSeriesItem } from '../util';
4
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
5
+ type __VLS_Props = {
6
+ readonly color?: FluxColor | `#${string}`;
7
+ readonly options?: EChartsOption;
8
+ readonly series: readonly SparklineSeriesItem[];
9
+ readonly variant?: 'line' | 'bar' | 'area';
10
+ };
11
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { FluxStatisticsChartTreemapNode } from '@flux-ui/types';
2
+ import { EChartsOption } from '../composable';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ type __VLS_Props = {
5
+ readonly advancedOptions?: EChartsOption;
6
+ readonly nodes: readonly FluxStatisticsChartTreemapNode[];
7
+ readonly tooltip?: boolean;
8
+ };
9
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;