@equinor/echo-framework 0.20.14 → 0.20.15
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/index.cjs.js +1 -1
- package/package.json +2 -2
- package/src/lib/components/prepview/panels/history/horizontalView/HorizontalTagHistory.d.ts +4 -4
- package/src/lib/components/prepview/types/shared.d.ts +16 -13
- package/src/lib/components/verticalTabsSplitView/VerticalTabsSplitView.d.ts +2 -1
- package/src/lib/feature/measuringPoint/components/failureMechanism.config.d.ts +2 -0
- package/src/lib/feature/measuringPoint/components/lastRecordedMeasurement/lastRecordedMeasurement.d.ts +1 -0
- package/src/lib/feature/measuringPoint/components/measuringPoints.utils.d.ts +8 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.15",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@equinor/echo-base": ">= 0.7.0 < 0.8.0",
|
|
6
6
|
"@equinor/echo-components": ">= 0.11.0 < 0.12.0",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
19
|
"react-router-dom": "5.3.4",
|
|
20
20
|
"zustand": ">= 4.4.7 < 5",
|
|
21
|
-
"react-swipeable": "7.0.
|
|
21
|
+
"react-swipeable": "7.0.2",
|
|
22
22
|
"immer": "10.1.1"
|
|
23
23
|
},
|
|
24
24
|
"main": "./index.cjs.js",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { NotificationGroups, PunchGroups, WorkOrderGroups } from '../../../types';
|
|
3
3
|
interface HorizontalTagHistoryProps {
|
|
4
|
-
notificationGroups:
|
|
5
|
-
workOrderGroups:
|
|
6
|
-
punchGroups:
|
|
4
|
+
notificationGroups: NotificationGroups;
|
|
5
|
+
workOrderGroups: WorkOrderGroups;
|
|
6
|
+
punchGroups: PunchGroups;
|
|
7
7
|
}
|
|
8
8
|
declare const HorizontalTagHistory: React.FC<HorizontalTagHistoryProps>;
|
|
9
9
|
export { HorizontalTagHistory };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileDto } from
|
|
1
|
+
import { FileDto } from '@equinor/echo-search';
|
|
2
2
|
export declare enum ItemTypes {
|
|
3
3
|
tag = "tag",
|
|
4
4
|
mcPack = "mcPack",
|
|
@@ -50,18 +50,21 @@ export type PrepviewSafety = {
|
|
|
50
50
|
severity: number;
|
|
51
51
|
};
|
|
52
52
|
export type PrepviewHistory = {
|
|
53
|
-
notificationGroups:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
53
|
+
notificationGroups: NotificationGroups;
|
|
54
|
+
workOrderGroups: WorkOrderGroups;
|
|
55
|
+
punchGroups: PunchGroups;
|
|
56
|
+
};
|
|
57
|
+
export type NotificationGroups = {
|
|
58
|
+
groups: NotificationGroup[];
|
|
59
|
+
statusCode: number;
|
|
60
|
+
};
|
|
61
|
+
export type WorkOrderGroups = {
|
|
62
|
+
groups: WorkOrderGroup[];
|
|
63
|
+
statusCode: number;
|
|
64
|
+
};
|
|
65
|
+
export type PunchGroups = {
|
|
66
|
+
groups: PunchGroup[];
|
|
67
|
+
statusCode: number;
|
|
65
68
|
};
|
|
66
69
|
export type NotificationGroup = {
|
|
67
70
|
type: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
export type VerticalTabsGroup = {
|
|
3
3
|
title?: string;
|
|
4
|
+
noItemsInGroupTitle?: string;
|
|
4
5
|
items: VerticalTabsItem[];
|
|
5
6
|
};
|
|
6
7
|
export type VerticalTabsItem = {
|
|
7
8
|
id: string;
|
|
8
9
|
title: string;
|
|
9
|
-
|
|
10
|
+
noItemsInTabsTitle?: string;
|
|
10
11
|
content: React.ReactNode;
|
|
11
12
|
amountOfItems: number;
|
|
12
13
|
onClick?: () => void;
|
|
@@ -6,6 +6,7 @@ export declare const failureMechanismConfig: ({
|
|
|
6
6
|
values: {
|
|
7
7
|
value: string;
|
|
8
8
|
color: string;
|
|
9
|
+
description: string;
|
|
9
10
|
}[];
|
|
10
11
|
} | {
|
|
11
12
|
title: string;
|
|
@@ -15,5 +16,6 @@ export declare const failureMechanismConfig: ({
|
|
|
15
16
|
values: {
|
|
16
17
|
value: number;
|
|
17
18
|
color: string;
|
|
19
|
+
description: string;
|
|
18
20
|
}[];
|
|
19
21
|
})[];
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { MeasuringPointDto } from '../../types/measuringPoint';
|
|
3
3
|
type LastRecordedMeasurementProps = {
|
|
4
4
|
measuringPoint: MeasuringPointDto;
|
|
5
|
+
failureMechanismDescription: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const LastRecordedMeasurement: React.FC<LastRecordedMeasurementProps>;
|
|
7
8
|
export {};
|
|
@@ -4,12 +4,16 @@ type FailureMechanismIdAndValue = {
|
|
|
4
4
|
value: string;
|
|
5
5
|
};
|
|
6
6
|
type FailureMechanismParams = {
|
|
7
|
-
|
|
7
|
+
measurement: MeasurementDto | undefined;
|
|
8
8
|
quantitativeCharacteristicId: string | undefined;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
type FailureMechanismConfigValues = {
|
|
11
|
+
value: string;
|
|
12
|
+
color: string;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function getFailureMechanismConfigValues({ measurement, quantitativeCharacteristicId }: FailureMechanismParams): FailureMechanismConfigValues;
|
|
16
|
+
export declare function getFailureMechanismIdAndValue({ measurement, quantitativeCharacteristicId }: FailureMechanismParams): FailureMechanismIdAndValue | undefined;
|
|
13
17
|
export declare const getLatestMeasurementDate: (point: MeasuringPointDto) => Date | undefined;
|
|
14
18
|
export declare const sortMeasuringPointsByMeasurementDate: (a: MeasuringPointDto, b: MeasuringPointDto) => number;
|
|
15
19
|
export {};
|