@equinor/echo-components 0.7.9 → 0.7.10
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/components/blackLink/BlackLink.d.ts +3 -2
- package/dist/components/charts/index.d.ts +1 -0
- package/dist/components/charts/lineChart/LineChart.d.ts +21 -0
- package/dist/components/charts/lineChart/dummy/lineChartConfig.d.ts +16 -0
- package/dist/components/charts/lineChart/dummy/rawData.d.ts +26 -0
- package/dist/components/charts/lineChart/utils.d.ts +10 -0
- package/dist/components/copyToClipboard/CopyToClipboard.d.ts +3 -0
- package/dist/components/echoTooltip/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/echoTooltip/Tooltip/useTooltip.d.ts +38 -26
- package/dist/components/floatingActionButton/FloatingActionButton.d.ts +1 -1
- package/dist/components/floatingSearchBar/FloatingSearchBar.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/legend/MainLegend.d.ts +11 -3
- package/dist/components/legend/layerLegend/LayerLegend.d.ts +6 -2
- package/dist/components/listItem/ListItem.d.ts +3 -1
- package/dist/components/listRow/ListRow.d.ts +1 -1
- package/dist/components/sidesheet/sheet/Sheet.d.ts +1 -1
- package/dist/components/splitView/SplitView.d.ts +2 -2
- package/dist/components/splitView/left/SplitViewLeft.d.ts +1 -1
- package/dist/components/workOrderListItem/WorkOrderListItem.d.ts +2 -2
- package/dist/components/workOrderListItem/WorkOrderStatusLabel.d.ts +2 -2
- package/dist/hooks/useKeyboardNavigation.d.ts +5 -8
- package/dist/icons/echoAssets/external.d.ts +2 -0
- package/dist/icons/echoAssets/index.d.ts +2 -0
- package/dist/icons/echoAssets/maps.d.ts +6 -0
- package/dist/icons/echoAssets/misc.d.ts +2 -0
- package/dist/index.js +38092 -23026
- package/dist/index.js.map +1 -1
- package/dist/setupTests.d.ts +1 -1
- package/dist/types/charts.d.ts +77 -0
- package/package.json +1 -1
package/dist/setupTests.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { InteractionMode, TooltipItem } from 'chart.js';
|
|
2
|
+
import { ChartData, ChartOptions, ChartType } from 'chart.js/auto';
|
|
3
|
+
export type LineChartDataSet = {
|
|
4
|
+
label: string;
|
|
5
|
+
data: number[];
|
|
6
|
+
borderColor: string;
|
|
7
|
+
pointBackgroundColor: string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
borderWidth: number;
|
|
10
|
+
pointStyle: string;
|
|
11
|
+
fill: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type LineChartData = {
|
|
14
|
+
labels: string[];
|
|
15
|
+
datasets: LineChartDataSet[];
|
|
16
|
+
};
|
|
17
|
+
export type LineChartConfig = {
|
|
18
|
+
type: ChartType;
|
|
19
|
+
data: ChartData;
|
|
20
|
+
options: ChartOptions & {
|
|
21
|
+
responsive: boolean;
|
|
22
|
+
stacked: boolean;
|
|
23
|
+
interaction: {
|
|
24
|
+
mode: InteractionMode;
|
|
25
|
+
intersect: boolean;
|
|
26
|
+
};
|
|
27
|
+
elements: {
|
|
28
|
+
line: {
|
|
29
|
+
borderWidth: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
plugins: {
|
|
33
|
+
legend: {
|
|
34
|
+
labels: {
|
|
35
|
+
boxWidth: number;
|
|
36
|
+
boxHeight: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
title: {
|
|
40
|
+
display: boolean;
|
|
41
|
+
text: string;
|
|
42
|
+
};
|
|
43
|
+
tooltip: {
|
|
44
|
+
callbacks?: {
|
|
45
|
+
title?: () => string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
scales: {
|
|
50
|
+
x: {
|
|
51
|
+
title: {
|
|
52
|
+
display: boolean;
|
|
53
|
+
text: string;
|
|
54
|
+
};
|
|
55
|
+
ticks: {
|
|
56
|
+
minRotation: number;
|
|
57
|
+
maxRotation: number;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
y: {
|
|
61
|
+
border: {
|
|
62
|
+
display: boolean;
|
|
63
|
+
};
|
|
64
|
+
title: {
|
|
65
|
+
display: boolean;
|
|
66
|
+
text: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
animation: boolean;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export type ChartCallbacks = {
|
|
74
|
+
tooltipCallback?: {
|
|
75
|
+
title?: (tooltipItems: TooltipItem<'line'>[]) => string | undefined;
|
|
76
|
+
};
|
|
77
|
+
};
|