@equinor/echo-framework 0.16.1 → 0.16.3-beta-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/{47deeba42768c5d1.svg → 063009f06499d102.svg} +8 -8
- package/README.md +28 -28
- package/{1bd97dd2170d0f64.svg → f4c85313e79b1662.svg} +850 -850
- package/index.cjs.d.ts +2 -2
- package/index.cjs.js +1 -1
- package/package.json +2 -2
- package/src/lib/components/prepview/Prepview.d.ts +2 -2
- package/src/lib/components/prepview/api/api.d.ts +1 -1
- package/src/lib/components/prepview/api/resources.d.ts +1 -1
- package/src/lib/components/prepview/common/index.d.ts +1 -0
- package/src/lib/components/prepview/common/info/block/InfoBlock.d.ts +2 -1
- package/src/lib/components/prepview/common/tagMetaButton/TagMetaButton.d.ts +10 -0
- package/src/lib/components/prepview/notification/header/NotificationHeader.d.ts +8 -0
- package/src/lib/components/prepview/notification/header/index.d.ts +1 -1
- package/src/lib/components/prepview/notification/index.d.ts +1 -0
- package/src/lib/components/prepview/types/notification.d.ts +6 -0
- package/src/lib/components/prepview/types/operation.d.ts +7 -7
- package/src/lib/components/prepview/types/workorder.d.ts +2 -0
- package/src/lib/components/prepview/utils/notification.d.ts +0 -1
- package/src/lib/components/prepview/utils/workorder.d.ts +0 -1
- package/src/lib/components/prepview/workorder/header/WorkOrderHeader.d.ts +2 -2
- package/src/lib/components/prepview/workorder/index.d.ts +2 -2
- package/src/lib/feature/legend/legend.d.ts +3 -1
- package/src/lib/components/prepview/notification/header/Header.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3-beta-0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@equinor/echo-base": ">= 0.7.0 < 0.8.0",
|
|
6
6
|
"@equinor/echo-components": ">= 0.9.0 < 0.10.0",
|
|
7
|
-
"@equinor/echo-core": "
|
|
7
|
+
"@equinor/echo-core": "0.9.2-beta-0",
|
|
8
8
|
"@equinor/echo-search": ">= 0.15.0 < 0.16.0",
|
|
9
9
|
"@equinor/echo-utils": ">= 0.3.0 < 0.4.0",
|
|
10
10
|
"@equinor/eds-core-react": "^0.25.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { SideSheetOrientation } from '@equinor/echo-components';
|
|
3
3
|
import { PrepviewEvents } from './context/PrepviewContext';
|
|
4
4
|
interface PrepviewProps {
|
|
@@ -9,7 +9,7 @@ interface PrepviewProps {
|
|
|
9
9
|
notificationId?: string;
|
|
10
10
|
punchId?: string;
|
|
11
11
|
closePanel: () => void;
|
|
12
|
-
|
|
12
|
+
headerAction?: React.ReactNode;
|
|
13
13
|
events?: PrepviewEvents;
|
|
14
14
|
}
|
|
15
15
|
declare function Prepview(props: PrepviewProps): JSX.Element | null;
|
|
@@ -2,6 +2,6 @@ import { PrepviewNotificationDto, PrepviewWorkOrderDto, PunchDetails } from '../
|
|
|
2
2
|
import * as workOrderApi from './attachment';
|
|
3
3
|
export { workOrderApi };
|
|
4
4
|
export declare function getWorkOrder(workOrderId: string): Promise<PrepviewWorkOrderDto>;
|
|
5
|
-
export declare function getNotification(
|
|
5
|
+
export declare function getNotification(notificationId: string): Promise<PrepviewNotificationDto>;
|
|
6
6
|
export declare function getPunch(instCode: string, punchId: string): Promise<PunchDetails>;
|
|
7
7
|
export declare function getWorkType(instCode: string, workOrderId: string): Promise<string[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function getWorkOrder(workOrderId: string): string;
|
|
2
|
-
export declare function getNotification(
|
|
2
|
+
export declare function getNotification(notificationId: string): string;
|
|
3
3
|
export declare function getPunch(instCode: string, punchId: string): string;
|
|
4
4
|
export declare function getWorkTypeUrl(instCode: string, workOrderId: string): string;
|
|
5
5
|
export declare function getWorkorderAttachmentFile(orderTypeId: string, workorderId: string, attachmentId: string): string;
|
|
@@ -4,6 +4,7 @@ interface InfoBlockType {
|
|
|
4
4
|
stretched?: boolean;
|
|
5
5
|
fit?: boolean;
|
|
6
6
|
children: JSX.Element | string[] | string | number;
|
|
7
|
+
contentClassName?: string;
|
|
7
8
|
}
|
|
8
|
-
declare function InfoBlock({ label, stretched, fit, children }: InfoBlockType): JSX.Element;
|
|
9
|
+
declare function InfoBlock({ label, stretched, fit, children, contentClassName, }: InfoBlockType): JSX.Element;
|
|
9
10
|
export { InfoBlock };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NotificationDetails } from '../../types';
|
|
3
|
+
interface NotificationHeaderProps {
|
|
4
|
+
notification: NotificationDetails;
|
|
5
|
+
headerAction?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare function NotificationHeader(props: NotificationHeaderProps): JSX.Element | null;
|
|
8
|
+
export { NotificationHeader };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './NotificationHeader';
|
|
@@ -3,6 +3,7 @@ import { PrepviewNotificationDto } from '../types';
|
|
|
3
3
|
interface NotificationProps {
|
|
4
4
|
notification: PrepviewNotificationDto;
|
|
5
5
|
closePanel: () => void;
|
|
6
|
+
headerAction?: React.ReactNode;
|
|
6
7
|
}
|
|
7
8
|
declare function Notification(props: NotificationProps): JSX.Element | null;
|
|
8
9
|
export { Notification };
|
|
@@ -11,13 +11,18 @@ export type PrepviewNotificationDto = {
|
|
|
11
11
|
};
|
|
12
12
|
export type NotificationDetails = FetchStatus & {
|
|
13
13
|
id: string;
|
|
14
|
+
isActive: boolean;
|
|
14
15
|
type: string;
|
|
15
16
|
title: string;
|
|
16
17
|
tagPlantId: string;
|
|
17
18
|
tagId: string;
|
|
19
|
+
tagCategory: string;
|
|
20
|
+
tagCategoryId: string;
|
|
18
21
|
plantId: string;
|
|
19
22
|
createdDateTime: Date;
|
|
20
23
|
requiredEndDateTime: Date;
|
|
24
|
+
requiredEndDateStatus: string;
|
|
25
|
+
requiredEndDateStatusDescription: string;
|
|
21
26
|
maintenancePlant: string;
|
|
22
27
|
planningPlant: string;
|
|
23
28
|
activeStatusIds: string;
|
|
@@ -31,6 +36,7 @@ export type NotificationDetails = FetchStatus & {
|
|
|
31
36
|
detectionMethodId: string;
|
|
32
37
|
failureMechanism: string;
|
|
33
38
|
longText: string;
|
|
39
|
+
instCode: string;
|
|
34
40
|
};
|
|
35
41
|
export type NotificationAdditionalDetails = {
|
|
36
42
|
attachments: FetchStatus & {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export type PrepviewOperation = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
operationNumber: string;
|
|
3
|
+
title: string;
|
|
4
|
+
workCenterId: string;
|
|
5
5
|
activeStatusIds: string;
|
|
6
|
-
earliestFinishDateTime: Date;
|
|
7
6
|
earliestStartDateTime: Date;
|
|
8
|
-
|
|
7
|
+
earliestFinishDateTime: Date;
|
|
9
8
|
plannedDuration: string;
|
|
10
9
|
plannedWorkHours: string;
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
actualWorkHours: string;
|
|
11
|
+
actualPercentageComplete: number;
|
|
12
|
+
capacityCount: number;
|
|
13
13
|
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export declare function setNotificationIconName(type: string): "notifications_m1" | "notifications_m2" | "notifications_m3" | "notifications_m4" | "notifications_m5" | "notifications_m6" | "notifications_m9" | "notifications_main_group";
|
|
2
1
|
export declare function getStatusColor(statusIds: string): "#4bb748" | "#fbca36";
|
|
3
2
|
export declare function getStatusText(statusIds: string): "Completed" | "Active";
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export declare const MaintenanceApiNameForWorkOrders: Record<string, string>;
|
|
2
|
-
export declare function setWorkOrderIconName(type: string): "workorders_pm01" | "workorders_pm02" | "workorders_pm03" | "workorders_pm04" | "workorders_pm05" | "workorders_pm06" | "workorders_pm10" | "workorders_pm15" | "workorders_pm20" | "workorders_main_group";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { WorkOrderDetails } from '../../types';
|
|
3
3
|
interface WorkOrderHeaderProps {
|
|
4
4
|
workOrder: WorkOrderDetails;
|
|
5
|
-
|
|
5
|
+
headerAction?: React.ReactNode;
|
|
6
6
|
}
|
|
7
7
|
declare function WorkOrderHeader(props: WorkOrderHeaderProps): JSX.Element | null;
|
|
8
8
|
export { WorkOrderHeader };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { PrepviewWorkOrderDto } from '../types';
|
|
3
3
|
interface WorkOrderProps {
|
|
4
4
|
workOrder: PrepviewWorkOrderDto;
|
|
5
5
|
closePanel: () => void;
|
|
6
|
-
|
|
6
|
+
headerAction?: React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
declare function WorkOrder(props: WorkOrderProps): JSX.Element | null;
|
|
9
9
|
export { WorkOrder };
|