@flux-ui/statistics 3.0.0-next.28

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 (57) hide show
  1. package/README.md +16 -0
  2. package/dist/component/FluxStatisticsAreaChart.vue.d.ts +9 -0
  3. package/dist/component/FluxStatisticsBarChart.vue.d.ts +9 -0
  4. package/dist/component/FluxStatisticsBase.vue.d.ts +28 -0
  5. package/dist/component/FluxStatisticsChange.vue.d.ts +9 -0
  6. package/dist/component/FluxStatisticsChart.vue.d.ts +22 -0
  7. package/dist/component/FluxStatisticsChartPane.vue.d.ts +32 -0
  8. package/dist/component/FluxStatisticsDetailsTable.vue.d.ts +23 -0
  9. package/dist/component/FluxStatisticsDetailsTableRow.vue.d.ts +7 -0
  10. package/dist/component/FluxStatisticsDonutChart.vue.d.ts +9 -0
  11. package/dist/component/FluxStatisticsGrid.vue.d.ts +26 -0
  12. package/dist/component/FluxStatisticsKpi.vue.d.ts +11 -0
  13. package/dist/component/FluxStatisticsLegend.vue.d.ts +18 -0
  14. package/dist/component/FluxStatisticsLegendItem.vue.d.ts +10 -0
  15. package/dist/component/FluxStatisticsLineChart.vue.d.ts +9 -0
  16. package/dist/component/FluxStatisticsMeter.vue.d.ts +14 -0
  17. package/dist/component/FluxStatisticsMetric.vue.d.ts +29 -0
  18. package/dist/component/FluxStatisticsPieChart.vue.d.ts +9 -0
  19. package/dist/component/index.d.ts +17 -0
  20. package/dist/index.css +492 -0
  21. package/dist/index.d.ts +3 -0
  22. package/dist/index.js +10184 -0
  23. package/dist/index.js.map +1 -0
  24. package/dist/types.d.ts +13 -0
  25. package/package.json +77 -0
  26. package/src/component/FluxStatisticsAreaChart.vue +59 -0
  27. package/src/component/FluxStatisticsBarChart.vue +51 -0
  28. package/src/component/FluxStatisticsBase.vue +43 -0
  29. package/src/component/FluxStatisticsChange.vue +37 -0
  30. package/src/component/FluxStatisticsChart.vue +193 -0
  31. package/src/component/FluxStatisticsChartPane.vue +47 -0
  32. package/src/component/FluxStatisticsDetailsTable.vue +25 -0
  33. package/src/component/FluxStatisticsDetailsTableRow.vue +22 -0
  34. package/src/component/FluxStatisticsDonutChart.vue +32 -0
  35. package/src/component/FluxStatisticsGrid.vue +31 -0
  36. package/src/component/FluxStatisticsKpi.vue +43 -0
  37. package/src/component/FluxStatisticsLegend.vue +11 -0
  38. package/src/component/FluxStatisticsLegendItem.vue +59 -0
  39. package/src/component/FluxStatisticsLineChart.vue +59 -0
  40. package/src/component/FluxStatisticsMeter.vue +83 -0
  41. package/src/component/FluxStatisticsMetric.vue +59 -0
  42. package/src/component/FluxStatisticsPieChart.vue +32 -0
  43. package/src/component/index.ts +17 -0
  44. package/src/css/Base.module.scss +46 -0
  45. package/src/css/Change.module.scss +42 -0
  46. package/src/css/Chart.module.scss +93 -0
  47. package/src/css/ChartPane.module.scss +38 -0
  48. package/src/css/Core.module.scss +3 -0
  49. package/src/css/DetailsTable.module.scss +43 -0
  50. package/src/css/Grid.module.scss +26 -0
  51. package/src/css/Kpi.module.scss +21 -0
  52. package/src/css/Legend.module.scss +53 -0
  53. package/src/css/Meter.module.scss +98 -0
  54. package/src/css/Metric.module.scss +66 -0
  55. package/src/index.ts +48 -0
  56. package/src/types.d.ts +13 -0
  57. package/tsconfig.json +7 -0
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # `@flux-ui/dashboard`
2
+
3
+ Contains Flux UI components for creating dashboards.
4
+
5
+ ## ⭐️ Prerequisites
6
+
7
+ - Bun >= 1.2.13
8
+ - Node >= 23
9
+
10
+ ## 🚀 Getting started
11
+
12
+ 1. Make sure that the monorepo of Flux is used.
13
+ 2. Run `bun install` in the root of the project.
14
+ 3. Run `bun --cwd packages/dashboard build` to build the project.
15
+ 4. To link Flux Dashboard globally, using Bun, run `bun link --cwd packages/dashboard`.
16
+ - In another project, use `link:@flux-ui/dashboard` as the dependency version in `package.json`.
@@ -0,0 +1,9 @@
1
+ import { ApexOptions } from 'apexcharts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly aspectRatio?: number;
5
+ readonly options?: ApexOptions;
6
+ readonly series: ApexOptions['series'];
7
+ };
8
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { ApexOptions } from 'apexcharts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly aspectRatio?: number;
5
+ readonly options?: ApexOptions;
6
+ readonly series: ApexOptions['series'];
7
+ };
8
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import { FluxIconName } from '@flux-ui/types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly icon?: FluxIconName;
5
+ readonly isSmall?: boolean;
6
+ readonly title?: string;
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;
19
+ };
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"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,9 @@
1
+ import { FluxColor, FluxIconName } from '@flux-ui/types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly color?: FluxColor;
5
+ readonly icon?: FluxIconName;
6
+ readonly value: string | number;
7
+ };
8
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ export default _default;
@@ -0,0 +1,22 @@
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';
4
+ type __VLS_Props = {
5
+ readonly options?: ApexOptions;
6
+ readonly series: ApexOptions['series'];
7
+ };
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>;
22
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { FluxIconName } from '@flux-ui/types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly aspectRatio?: number;
5
+ readonly maxHeight?: number;
6
+ readonly minHeight?: number;
7
+ readonly icon?: FluxIconName;
8
+ readonly title?: string;
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;
23
+ };
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"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,23 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ readonly title: string;
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;
14
+ };
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"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,7 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ readonly label: string;
4
+ readonly value: string;
5
+ };
6
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { ApexOptions } from 'apexcharts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly aspectRatio?: number;
5
+ readonly options?: ApexOptions;
6
+ readonly series: ApexOptions['series'];
7
+ };
8
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ readonly gap?: number;
4
+ readonly xs?: number;
5
+ readonly sm?: number;
6
+ readonly md?: number;
7
+ readonly lg?: number;
8
+ readonly xl?: number;
9
+ };
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: HTMLDivElement;
17
+ };
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"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,11 @@
1
+ import { FluxIconName, FluxStatisticsChange } from '@flux-ui/types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly footer?: string;
5
+ readonly change?: FluxStatisticsChange;
6
+ readonly icon?: FluxIconName;
7
+ readonly title: string;
8
+ readonly value: string | number;
9
+ };
10
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ export default _default;
@@ -0,0 +1,18 @@
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;
9
+ };
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"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,10 @@
1
+ import { FluxColor, FluxIconName } from '@flux-ui/types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly color?: FluxColor | `#${string}`;
5
+ readonly icon?: FluxIconName;
6
+ readonly label: string;
7
+ readonly value?: string | number;
8
+ };
9
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { ApexOptions } from 'apexcharts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly aspectRatio?: number;
5
+ readonly options?: ApexOptions;
6
+ readonly series: ApexOptions['series'];
7
+ };
8
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import { FluxColor, FluxIconName } from '@flux-ui/types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly color?: FluxColor | `#${string}`;
5
+ readonly icon?: FluxIconName;
6
+ readonly isSmall?: boolean;
7
+ readonly footer?: string;
8
+ readonly subTitle?: string;
9
+ readonly tip?: string;
10
+ readonly title?: string;
11
+ readonly value: number;
12
+ };
13
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { FluxIconName, FluxStatisticsChange } from '@flux-ui/types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly footer?: string;
5
+ readonly change?: FluxStatisticsChange;
6
+ readonly icon?: FluxIconName;
7
+ readonly label?: string;
8
+ readonly title: string;
9
+ readonly value?: string | number;
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;
20
+ };
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"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,9 @@
1
+ import { ApexOptions } from 'apexcharts';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ readonly aspectRatio?: number;
5
+ readonly options?: ApexOptions;
6
+ readonly series: ApexOptions['series'];
7
+ };
8
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export { default as FluxStatisticsAreaChart } from './FluxStatisticsAreaChart.vue';
2
+ export { default as FluxStatisticsBarChart } from './FluxStatisticsBarChart.vue';
3
+ export { default as FluxStatisticsBase } from './FluxStatisticsBase.vue';
4
+ export { default as FluxStatisticsChange } from './FluxStatisticsChange.vue';
5
+ export { default as FluxStatisticsChart } from './FluxStatisticsChart.vue';
6
+ export { default as FluxStatisticsChartPane } from './FluxStatisticsChartPane.vue';
7
+ export { default as FluxStatisticsDetailsTable } from './FluxStatisticsDetailsTable.vue';
8
+ export { default as FluxStatisticsDetailsTableRow } from './FluxStatisticsDetailsTableRow.vue';
9
+ export { default as FluxStatisticsDonutChart } from './FluxStatisticsDonutChart.vue';
10
+ export { default as FluxStatisticsGrid } from './FluxStatisticsGrid.vue';
11
+ export { default as FluxStatisticsLineChart } from './FluxStatisticsLineChart.vue';
12
+ export { default as FluxStatisticsKpi } from './FluxStatisticsKpi.vue';
13
+ export { default as FluxStatisticsLegend } from './FluxStatisticsLegend.vue';
14
+ export { default as FluxStatisticsLegendItem } from './FluxStatisticsLegendItem.vue';
15
+ export { default as FluxStatisticsMeter } from './FluxStatisticsMeter.vue';
16
+ export { default as FluxStatisticsMetric } from './FluxStatisticsMetric.vue';
17
+ export { default as FluxStatisticsPieChart } from './FluxStatisticsPieChart.vue';