@flux-ui/types 3.0.0-next.9 → 3.0.0
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 +36 -1
- package/package.json +10 -6
- package/src/common.ts +23 -5
- package/src/components.ts +38 -9
- package/src/filter.ts +56 -15
- package/src/form.ts +26 -0
- package/src/index.ts +52 -6
- package/src/notify.ts +1 -1
- package/src/statistics.ts +146 -0
- package/src/font-awesome.ts +0 -4838
- package/src/material-symbols.ts +0 -3508
- package/tsconfig.json +0 -45
package/README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
1
|
# `@flux-ui/types`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Public TypeScript types shared across the Flux UI packages.
|
|
4
|
+
|
|
5
|
+
This package has **no build step** — it ships its TypeScript sources directly.
|
|
6
|
+
|
|
7
|
+
## Highlights
|
|
8
|
+
|
|
9
|
+
| File | Contents |
|
|
10
|
+
|-----------------|-------------------------------------------------------------------------|
|
|
11
|
+
| `common.ts` | Cross-cutting types — `FluxColor`, `FluxSize`, `FluxIconName`, `FluxTo` |
|
|
12
|
+
| `components.ts` | Per-component `Props`, `Emits`, and `Slots` types |
|
|
13
|
+
| `form.ts` | Form-related types |
|
|
14
|
+
| `filter.ts` | Filter component types |
|
|
15
|
+
| `notify.ts` | Snackbar, alert, confirm, and prompt types |
|
|
16
|
+
| `statistics.ts` | Types for `@flux-ui/statistics` |
|
|
17
|
+
|
|
18
|
+
> Component-owned types live next to their component as inline `defineProps` / `defineEmits` / `defineSlots`.
|
|
19
|
+
> Only types with cross-package or cross-component reuse belong here.
|
|
20
|
+
|
|
21
|
+
## ⭐️ Prerequisites
|
|
22
|
+
|
|
23
|
+
- Bun >= 1.2.13
|
|
24
|
+
- Node >= 23
|
|
25
|
+
|
|
26
|
+
## 🚀 Getting started
|
|
27
|
+
|
|
28
|
+
1. Make sure the Flux monorepo is checked out.
|
|
29
|
+
2. Run `bun install` in the project root.
|
|
30
|
+
|
|
31
|
+
There is no build step; consumers import directly from `./src/index.ts`.
|
|
32
|
+
|
|
33
|
+
## 📦 Sibling packages
|
|
34
|
+
|
|
35
|
+
- [`@flux-ui/components`](../components)
|
|
36
|
+
- [`@flux-ui/internals`](../internals)
|
|
37
|
+
- [`@flux-ui/statistics`](../statistics)
|
|
38
|
+
- [`@flux-ui/application`](../application)
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flux-ui/types",
|
|
3
3
|
"description": "Contains all public types of Flux UI packages.",
|
|
4
|
-
"version": "3.0.0
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/basmilius",
|
|
8
|
-
"homepage": "https://flux.
|
|
8
|
+
"homepage": "https://flux-ui.dev",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/basmilius/flux.git",
|
|
@@ -23,16 +23,20 @@
|
|
|
23
23
|
"provenance": true
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
|
-
"src"
|
|
27
|
-
"tsconfig.json"
|
|
26
|
+
"src"
|
|
28
27
|
],
|
|
29
28
|
"main": "./src/index.ts",
|
|
30
29
|
"module": "./src/index.ts",
|
|
31
30
|
"types": "./src/index.ts",
|
|
32
31
|
"typings": "./src/index.ts",
|
|
33
32
|
"sideEffects": false,
|
|
34
|
-
"
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@fortawesome/fontawesome-common-types": "^7.2.0",
|
|
35
|
+
"luxon": "^3.7.2"
|
|
36
|
+
},
|
|
35
37
|
"devDependencies": {
|
|
36
|
-
"@types
|
|
38
|
+
"@fortawesome/fontawesome-common-types": "^7.2.0",
|
|
39
|
+
"@types/luxon": "^3.7.1",
|
|
40
|
+
"luxon": "^3.7.2"
|
|
37
41
|
}
|
|
38
42
|
}
|
package/src/common.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import type { FontAwesome } from '
|
|
2
|
-
import type { MaterialSymbol } from './material-symbols';
|
|
1
|
+
import type { IconName as FontAwesome } from '@fortawesome/fontawesome-common-types';
|
|
3
2
|
|
|
4
|
-
export type FluxIconName = FontAwesome
|
|
5
|
-
|
|
6
|
-
export type
|
|
3
|
+
export type FluxIconName = FontAwesome;
|
|
4
|
+
|
|
5
|
+
export type FluxAlignment =
|
|
6
|
+
| 'start'
|
|
7
|
+
| 'center'
|
|
8
|
+
| 'end';
|
|
9
|
+
|
|
10
|
+
export type FluxAlign =
|
|
11
|
+
| FluxAlignment
|
|
12
|
+
| 'stretch'
|
|
13
|
+
| 'baseline';
|
|
7
14
|
|
|
8
15
|
export type FluxColor =
|
|
9
16
|
| 'gray'
|
|
@@ -17,6 +24,17 @@ export type FluxDirection =
|
|
|
17
24
|
| 'horizontal'
|
|
18
25
|
| 'vertical';
|
|
19
26
|
|
|
27
|
+
export type FluxFlexWrap =
|
|
28
|
+
| 'wrap'
|
|
29
|
+
| 'nowrap'
|
|
30
|
+
| 'wrap-reverse';
|
|
31
|
+
|
|
32
|
+
export type FluxJustify =
|
|
33
|
+
| FluxAlignment
|
|
34
|
+
| 'between'
|
|
35
|
+
| 'around'
|
|
36
|
+
| 'evenly';
|
|
37
|
+
|
|
20
38
|
export type FluxInputMask =
|
|
21
39
|
| 'bic'
|
|
22
40
|
| 'iban'
|
package/src/components.ts
CHANGED
|
@@ -32,24 +32,53 @@ export type FluxButtonSlots = {
|
|
|
32
32
|
iconLeading(): any;
|
|
33
33
|
iconTrailing(): any;
|
|
34
34
|
label(): any;
|
|
35
|
-
}
|
|
35
|
+
};
|
|
36
36
|
|
|
37
37
|
export type FluxFocalPointObject = {
|
|
38
38
|
readonly x: number;
|
|
39
39
|
readonly y: number;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
export type
|
|
43
|
-
readonly
|
|
42
|
+
export type FluxKanbanMoveEvent = {
|
|
43
|
+
readonly itemId: string | number;
|
|
44
|
+
readonly fromColumnId: string | number;
|
|
45
|
+
readonly toColumnId: string | number;
|
|
46
|
+
readonly beforeItemId?: string | number;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type FluxKanbanMoveColumnEvent = {
|
|
50
|
+
readonly columnId: string | number;
|
|
51
|
+
readonly beforeColumnId?: string | number;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type FluxTreeViewOption = {
|
|
55
|
+
readonly id: string | number;
|
|
44
56
|
readonly label: string;
|
|
45
|
-
|
|
57
|
+
readonly icon?: FluxIconName;
|
|
58
|
+
readonly children?: FluxTreeViewOption[];
|
|
59
|
+
};
|
|
46
60
|
|
|
47
|
-
export type
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
61
|
+
export type FluxCommandSubAction = {
|
|
62
|
+
readonly label: string;
|
|
63
|
+
readonly icon?: FluxIconName;
|
|
64
|
+
readonly onActivate: () => void;
|
|
50
65
|
};
|
|
51
66
|
|
|
52
|
-
export type
|
|
67
|
+
export type FluxCommandSourceItem = {
|
|
68
|
+
readonly id: string | number;
|
|
69
|
+
readonly label: string;
|
|
70
|
+
readonly subLabel?: string;
|
|
53
71
|
readonly icon?: FluxIconName;
|
|
54
|
-
readonly
|
|
72
|
+
readonly command?: string;
|
|
73
|
+
readonly subActions?: FluxCommandSubAction[];
|
|
74
|
+
readonly onActivate: () => void;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export type FluxCommandSource = {
|
|
78
|
+
readonly key: string;
|
|
79
|
+
readonly label: string;
|
|
80
|
+
readonly icon?: FluxIconName;
|
|
81
|
+
readonly tab?: boolean;
|
|
82
|
+
readonly items: FluxCommandSourceItem[];
|
|
83
|
+
readonly fetchSearch?: (query: string) => Promise<FluxCommandSourceItem[]>;
|
|
55
84
|
};
|
package/src/filter.ts
CHANGED
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
import type { DateTime } from 'luxon';
|
|
2
2
|
import type { FluxIconName } from './common';
|
|
3
3
|
|
|
4
|
+
export type FluxFilterValueSingle =
|
|
5
|
+
| DateTime
|
|
6
|
+
| string
|
|
7
|
+
| boolean
|
|
8
|
+
| number
|
|
9
|
+
| null;
|
|
10
|
+
|
|
11
|
+
export type FluxFilterValue =
|
|
12
|
+
| FluxFilterValueSingle
|
|
13
|
+
| FluxFilterValueSingle[];
|
|
14
|
+
|
|
15
|
+
export type FluxFilterState<T extends Record<string, unknown> = Record<string, FluxFilterValue>> = T;
|
|
16
|
+
|
|
17
|
+
export type FluxFilterDefinition<TValue = FluxFilterValue> = {
|
|
18
|
+
readonly type: string;
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly label: string;
|
|
21
|
+
readonly icon?: FluxIconName;
|
|
22
|
+
readonly disabled?: boolean;
|
|
23
|
+
readonly defaultValue?: TValue;
|
|
24
|
+
getValueLabel(value: TValue): Promise<string | null>;
|
|
25
|
+
onChange?(value: TValue): void;
|
|
26
|
+
onClear?(): void;
|
|
27
|
+
};
|
|
28
|
+
|
|
4
29
|
export type FluxFilterBase = {
|
|
5
30
|
getValueLabel(value: FluxFilterValue): Promise<string | null>;
|
|
6
|
-
|
|
7
31
|
readonly icon?: FluxIconName;
|
|
8
32
|
readonly label: string;
|
|
9
33
|
readonly name: string;
|
|
34
|
+
readonly disabled?: boolean;
|
|
10
35
|
};
|
|
11
36
|
|
|
12
37
|
export type FluxFilterItem =
|
|
@@ -41,6 +66,7 @@ export type FluxFilterOptionHeader = {
|
|
|
41
66
|
};
|
|
42
67
|
|
|
43
68
|
export type FluxFilterOptionItem = {
|
|
69
|
+
readonly icon?: FluxIconName;
|
|
44
70
|
readonly label: string;
|
|
45
71
|
readonly value: FluxFilterValueSingle;
|
|
46
72
|
};
|
|
@@ -49,21 +75,36 @@ export type FluxFilterOptionRow =
|
|
|
49
75
|
| FluxFilterOptionHeader
|
|
50
76
|
| FluxFilterOptionItem;
|
|
51
77
|
|
|
52
|
-
export type
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
78
|
+
export type FluxFilterSpec = {
|
|
79
|
+
readonly icon?: FluxIconName;
|
|
80
|
+
readonly label: string;
|
|
81
|
+
readonly name: string;
|
|
82
|
+
readonly disabled?: boolean;
|
|
83
|
+
readonly defaultValue?: FluxFilterValue;
|
|
84
|
+
onChange?(value: FluxFilterValue): void;
|
|
85
|
+
onClear?(): void;
|
|
86
|
+
};
|
|
58
87
|
|
|
59
|
-
export type
|
|
60
|
-
|
|
61
|
-
|
|
88
|
+
export type FluxFilterDateSpec = FluxFilterSpec;
|
|
89
|
+
|
|
90
|
+
export type FluxFilterDateRangeSpec = FluxFilterSpec;
|
|
91
|
+
|
|
92
|
+
export type FluxFilterOptionSpec = FluxFilterSpec & {
|
|
93
|
+
readonly options: FluxFilterOptionRow[];
|
|
94
|
+
};
|
|
62
95
|
|
|
63
|
-
export type
|
|
64
|
-
|
|
96
|
+
export type FluxFilterOptionAsyncSpec = FluxFilterSpec & {
|
|
97
|
+
fetchOptions(ids: FluxFilterValue[]): Promise<FluxFilterOptionRow[]>;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export type FluxFilterOptionsSpec = FluxFilterSpec & {
|
|
101
|
+
readonly options: FluxFilterOptionRow[];
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export type FluxFilterOptionsAsyncSpec = FluxFilterSpec & {
|
|
105
|
+
fetchOptions(ids: FluxFilterValue[]): Promise<FluxFilterOptionRow[]>;
|
|
106
|
+
};
|
|
65
107
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
[key: string]: FluxFilterValue | Function;
|
|
108
|
+
export type FluxFilterRangeSpec = FluxFilterSpec & {
|
|
109
|
+
formatter?(value: number): string;
|
|
69
110
|
};
|
package/src/form.ts
CHANGED
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
import type { FluxIconName } from './common';
|
|
2
2
|
|
|
3
|
+
export type FluxFormInputBaseProps = {
|
|
4
|
+
readonly autoFocus?: boolean;
|
|
5
|
+
readonly disabled?: boolean;
|
|
6
|
+
readonly error?: string | null;
|
|
7
|
+
readonly isCondensed?: boolean;
|
|
8
|
+
readonly isLoading?: boolean;
|
|
9
|
+
readonly isReadonly?: boolean;
|
|
10
|
+
readonly isSecondary?: boolean;
|
|
11
|
+
readonly name?: string;
|
|
12
|
+
readonly placeholder?: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type FluxFormTreeViewSelectOption = {
|
|
16
|
+
readonly id: string | number;
|
|
17
|
+
readonly label: string;
|
|
18
|
+
readonly icon?: FluxIconName;
|
|
19
|
+
readonly selectable?: boolean;
|
|
20
|
+
readonly children?: FluxFormTreeViewSelectOption[];
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type FluxFormTreeViewSelectValue = FluxFormTreeViewSelectValueSingle | FluxFormTreeViewSelectValueSingle[];
|
|
24
|
+
export type FluxFormTreeViewSelectValueSingle = string | number;
|
|
25
|
+
|
|
3
26
|
export type FluxFormSelectGroup = {
|
|
4
27
|
readonly icon?: FluxIconName;
|
|
5
28
|
readonly label: string;
|
|
29
|
+
readonly value?: never;
|
|
6
30
|
};
|
|
7
31
|
|
|
8
32
|
export type FluxFormSelectOption = {
|
|
@@ -10,6 +34,8 @@ export type FluxFormSelectOption = {
|
|
|
10
34
|
readonly command?: string;
|
|
11
35
|
readonly commandIcon?: FluxIconName;
|
|
12
36
|
readonly icon?: FluxIconName;
|
|
37
|
+
readonly imageAlt?: string;
|
|
38
|
+
readonly imageSrc?: string;
|
|
13
39
|
readonly label: string;
|
|
14
40
|
readonly selectable?: boolean;
|
|
15
41
|
readonly value: string | number | null;
|
package/src/index.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export type {
|
|
2
|
+
FluxAlign,
|
|
3
|
+
FluxAlignment,
|
|
2
4
|
FluxAutoCompleteType,
|
|
3
5
|
FluxColor,
|
|
4
6
|
FluxDirection,
|
|
5
|
-
|
|
7
|
+
FluxFlexWrap,
|
|
6
8
|
FluxIconName,
|
|
7
9
|
FluxInputMask,
|
|
8
10
|
FluxInputType,
|
|
9
|
-
|
|
11
|
+
FluxJustify,
|
|
10
12
|
FluxMaybePromise,
|
|
11
13
|
FluxPressableType,
|
|
12
14
|
FluxSize,
|
|
@@ -18,35 +20,51 @@ export type {
|
|
|
18
20
|
FluxButtonProps,
|
|
19
21
|
FluxButtonSize,
|
|
20
22
|
FluxButtonSlots,
|
|
23
|
+
FluxCommandSource,
|
|
24
|
+
FluxCommandSourceItem,
|
|
25
|
+
FluxCommandSubAction,
|
|
21
26
|
FluxFocalPointObject,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
FluxKanbanMoveColumnEvent,
|
|
28
|
+
FluxKanbanMoveEvent,
|
|
29
|
+
FluxTreeViewOption
|
|
25
30
|
} from './components';
|
|
26
31
|
|
|
27
32
|
export type {
|
|
28
33
|
FluxFilterBase,
|
|
29
34
|
FluxFilterDateEntry,
|
|
30
35
|
FluxFilterDateRangeEntry,
|
|
36
|
+
FluxFilterDateRangeSpec,
|
|
37
|
+
FluxFilterDateSpec,
|
|
38
|
+
FluxFilterDefinition,
|
|
31
39
|
FluxFilterItem,
|
|
40
|
+
FluxFilterOptionAsyncSpec,
|
|
32
41
|
FluxFilterOptionEntry,
|
|
33
42
|
FluxFilterOptionHeader,
|
|
34
43
|
FluxFilterOptionItem,
|
|
35
44
|
FluxFilterOptionRow,
|
|
45
|
+
FluxFilterOptionSpec,
|
|
46
|
+
FluxFilterOptionsAsyncSpec,
|
|
36
47
|
FluxFilterOptionsEntry,
|
|
48
|
+
FluxFilterOptionsSpec,
|
|
37
49
|
FluxFilterRangeEntry,
|
|
50
|
+
FluxFilterRangeSpec,
|
|
51
|
+
FluxFilterSpec,
|
|
38
52
|
FluxFilterState,
|
|
39
53
|
FluxFilterValue,
|
|
40
54
|
FluxFilterValueSingle
|
|
41
55
|
} from './filter';
|
|
42
56
|
|
|
43
57
|
export type {
|
|
58
|
+
FluxFormInputBaseProps,
|
|
44
59
|
FluxFormSelectEntry,
|
|
45
60
|
FluxFormSelectGroup,
|
|
46
61
|
FluxFormSelectOption,
|
|
47
62
|
FluxFormSelectOptions,
|
|
48
63
|
FluxFormSelectValue,
|
|
49
|
-
FluxFormSelectValueSingle
|
|
64
|
+
FluxFormSelectValueSingle,
|
|
65
|
+
FluxFormTreeViewSelectOption,
|
|
66
|
+
FluxFormTreeViewSelectValue,
|
|
67
|
+
FluxFormTreeViewSelectValueSingle
|
|
50
68
|
} from './form';
|
|
51
69
|
|
|
52
70
|
export type {
|
|
@@ -56,3 +74,31 @@ export type {
|
|
|
56
74
|
FluxSnackbarObject,
|
|
57
75
|
FluxTooltipObject
|
|
58
76
|
} from './notify';
|
|
77
|
+
|
|
78
|
+
export type {
|
|
79
|
+
FluxStatisticsChange,
|
|
80
|
+
FluxStatisticsChartAreaSeries,
|
|
81
|
+
FluxStatisticsChartBarSeries,
|
|
82
|
+
FluxStatisticsChartBoxPlotPoint,
|
|
83
|
+
FluxStatisticsChartBoxPlotSeries,
|
|
84
|
+
FluxStatisticsChartBubblePoint,
|
|
85
|
+
FluxStatisticsChartBubbleSeries,
|
|
86
|
+
FluxStatisticsChartCandlestickPoint,
|
|
87
|
+
FluxStatisticsChartCandlestickSeries,
|
|
88
|
+
FluxStatisticsChartCartesianSeries,
|
|
89
|
+
FluxStatisticsChartCategoryPoint,
|
|
90
|
+
FluxStatisticsChartColor,
|
|
91
|
+
FluxStatisticsChartGaugeSeries,
|
|
92
|
+
FluxStatisticsChartHeatmapPoint,
|
|
93
|
+
FluxStatisticsChartHeatmapSeries,
|
|
94
|
+
FluxStatisticsChartLineSeries,
|
|
95
|
+
FluxStatisticsChartMixedSeries,
|
|
96
|
+
FluxStatisticsChartPieSlice,
|
|
97
|
+
FluxStatisticsChartRadarIndicator,
|
|
98
|
+
FluxStatisticsChartRadarSeries,
|
|
99
|
+
FluxStatisticsChartScatterPoint,
|
|
100
|
+
FluxStatisticsChartScatterSeries,
|
|
101
|
+
FluxStatisticsChartTreemapNode,
|
|
102
|
+
FluxStatisticsChartTreemapSeries,
|
|
103
|
+
FluxStatisticsPercentageBarItemObject
|
|
104
|
+
} from './statistics';
|
package/src/notify.ts
CHANGED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { FluxColor, FluxIconName } from './common';
|
|
2
|
+
|
|
3
|
+
export type FluxStatisticsChange = {
|
|
4
|
+
readonly color?: FluxColor;
|
|
5
|
+
readonly icon?: FluxIconName;
|
|
6
|
+
readonly value: string | number;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type FluxStatisticsChartColor = FluxColor | `#${string}` | `var(--${string})`;
|
|
10
|
+
|
|
11
|
+
export interface FluxStatisticsPercentageBarItemObject {
|
|
12
|
+
readonly color?: FluxStatisticsChartColor;
|
|
13
|
+
readonly icon?: FluxIconName;
|
|
14
|
+
readonly label: string;
|
|
15
|
+
readonly value: number;
|
|
16
|
+
readonly displayValue?: string | number;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface FluxStatisticsChartCategoryPoint {
|
|
20
|
+
readonly label?: string;
|
|
21
|
+
readonly value: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface FluxStatisticsChartCartesianSeries {
|
|
25
|
+
readonly name?: string;
|
|
26
|
+
readonly data: readonly (number | FluxStatisticsChartCategoryPoint)[];
|
|
27
|
+
readonly color?: FluxStatisticsChartColor;
|
|
28
|
+
readonly icon?: FluxIconName;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type FluxStatisticsChartLineSeries = FluxStatisticsChartCartesianSeries;
|
|
32
|
+
export type FluxStatisticsChartAreaSeries = FluxStatisticsChartCartesianSeries;
|
|
33
|
+
export type FluxStatisticsChartBarSeries = FluxStatisticsChartCartesianSeries;
|
|
34
|
+
|
|
35
|
+
export interface FluxStatisticsChartMixedSeries extends FluxStatisticsChartCartesianSeries {
|
|
36
|
+
readonly type: 'line' | 'area' | 'bar';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface FluxStatisticsChartPieSlice {
|
|
40
|
+
readonly label: string;
|
|
41
|
+
readonly value: number;
|
|
42
|
+
readonly formatted?: string;
|
|
43
|
+
readonly color?: FluxStatisticsChartColor;
|
|
44
|
+
readonly icon?: FluxIconName;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface FluxStatisticsChartRadarIndicator {
|
|
48
|
+
readonly name: string;
|
|
49
|
+
readonly max?: number;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface FluxStatisticsChartRadarSeries {
|
|
53
|
+
readonly name?: string;
|
|
54
|
+
readonly values: readonly number[];
|
|
55
|
+
readonly color?: FluxStatisticsChartColor;
|
|
56
|
+
readonly icon?: FluxIconName;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface FluxStatisticsChartScatterPoint {
|
|
60
|
+
readonly x: number;
|
|
61
|
+
readonly y: number;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface FluxStatisticsChartScatterSeries {
|
|
65
|
+
readonly name?: string;
|
|
66
|
+
readonly data: readonly FluxStatisticsChartScatterPoint[];
|
|
67
|
+
readonly color?: FluxStatisticsChartColor;
|
|
68
|
+
readonly icon?: FluxIconName;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface FluxStatisticsChartBubblePoint extends FluxStatisticsChartScatterPoint {
|
|
72
|
+
readonly size: number;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface FluxStatisticsChartBubbleSeries {
|
|
76
|
+
readonly name?: string;
|
|
77
|
+
readonly data: readonly FluxStatisticsChartBubblePoint[];
|
|
78
|
+
readonly color?: FluxStatisticsChartColor;
|
|
79
|
+
readonly icon?: FluxIconName;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface FluxStatisticsChartCandlestickPoint {
|
|
83
|
+
readonly label?: string;
|
|
84
|
+
readonly open: number;
|
|
85
|
+
readonly close: number;
|
|
86
|
+
readonly low: number;
|
|
87
|
+
readonly high: number;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface FluxStatisticsChartCandlestickSeries {
|
|
91
|
+
readonly name?: string;
|
|
92
|
+
readonly data: readonly FluxStatisticsChartCandlestickPoint[];
|
|
93
|
+
readonly positiveColor?: FluxStatisticsChartColor;
|
|
94
|
+
readonly negativeColor?: FluxStatisticsChartColor;
|
|
95
|
+
readonly icon?: FluxIconName;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface FluxStatisticsChartBoxPlotPoint {
|
|
99
|
+
readonly label?: string;
|
|
100
|
+
readonly min: number;
|
|
101
|
+
readonly q1: number;
|
|
102
|
+
readonly median: number;
|
|
103
|
+
readonly q3: number;
|
|
104
|
+
readonly max: number;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface FluxStatisticsChartBoxPlotSeries {
|
|
108
|
+
readonly name?: string;
|
|
109
|
+
readonly data: readonly FluxStatisticsChartBoxPlotPoint[];
|
|
110
|
+
readonly color?: FluxStatisticsChartColor;
|
|
111
|
+
readonly icon?: FluxIconName;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface FluxStatisticsChartHeatmapPoint {
|
|
115
|
+
readonly x: string | number;
|
|
116
|
+
readonly y: string | number;
|
|
117
|
+
readonly value: number;
|
|
118
|
+
readonly formatted?: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface FluxStatisticsChartHeatmapSeries {
|
|
122
|
+
readonly name?: string;
|
|
123
|
+
readonly data: readonly FluxStatisticsChartHeatmapPoint[];
|
|
124
|
+
readonly icon?: FluxIconName;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface FluxStatisticsChartTreemapNode {
|
|
128
|
+
readonly name: string;
|
|
129
|
+
readonly value?: number;
|
|
130
|
+
readonly color?: FluxStatisticsChartColor;
|
|
131
|
+
readonly children?: readonly FluxStatisticsChartTreemapNode[];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface FluxStatisticsChartTreemapSeries {
|
|
135
|
+
readonly name?: string;
|
|
136
|
+
readonly data: readonly FluxStatisticsChartTreemapNode[];
|
|
137
|
+
readonly icon?: FluxIconName;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface FluxStatisticsChartGaugeSeries {
|
|
141
|
+
readonly name: string;
|
|
142
|
+
readonly value: number;
|
|
143
|
+
readonly radius?: number;
|
|
144
|
+
readonly color?: FluxStatisticsChartColor;
|
|
145
|
+
readonly icon?: FluxIconName;
|
|
146
|
+
}
|