@equinor/echo-framework 0.10.6 → 0.10.8
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/plantSelector/plantSelector.d.ts +0 -3
- package/dist/components/prepview/Prepview.d.ts +4 -4
- package/dist/components/prepview/api/api.d.ts +4 -2
- package/dist/components/prepview/api/attachment.d.ts +2 -0
- package/dist/components/prepview/api/resources.d.ts +2 -0
- package/dist/components/prepview/common/details/panel/DetailsPanel.d.ts +5 -2
- package/dist/components/prepview/common/details/panel/description/PanelDescription.d.ts +3 -3
- package/dist/components/prepview/notification/additionalDetails/AdditionalDetails.d.ts +9 -0
- package/dist/components/prepview/notification/additionalDetails/index.d.ts +1 -0
- package/dist/components/prepview/notification/details/Details.d.ts +9 -0
- package/dist/components/prepview/notification/details/index.d.ts +1 -0
- package/dist/components/prepview/notification/index.d.ts +8 -0
- package/dist/components/prepview/panels/attachments/Attachments.d.ts +4 -3
- package/dist/components/prepview/punch/details/Details.d.ts +9 -0
- package/dist/components/prepview/punch/details/index.d.ts +1 -0
- package/dist/components/prepview/punch/index.d.ts +8 -0
- package/dist/components/prepview/types/common.d.ts +3 -0
- package/dist/components/prepview/types/index.d.ts +1 -0
- package/dist/components/prepview/types/notification.d.ts +55 -0
- package/dist/components/prepview/types/punch.d.ts +17 -0
- package/dist/components/prepview/types/workorder.d.ts +1 -3
- package/dist/components/prepview/utils/index.d.ts +3 -2
- package/dist/components/prepview/utils/string.d.ts +1 -0
- package/dist/components/projectSelector/ProcosysProjectSelector.d.ts +0 -3
- package/dist/index.js +3 -3
- package/package.json +6 -6
- package/dist/components/homePage/HomePage.d.ts +0 -2
- package/dist/components/homePage/index.d.ts +0 -1
- package/dist/components/prepview/api/workorder.d.ts +0 -2
- package/dist/components/prepview/panels/risk/actions/RiskActions.d.ts +0 -6
- package/dist/components/prepview/panels/risk/actions/index.d.ts +0 -1
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface PlantSelectorProps {
|
|
3
|
-
variant?: 'compact' | 'default';
|
|
4
|
-
maxCharacterCount?: number;
|
|
5
3
|
isDisabled?: boolean;
|
|
6
4
|
stayOnPath?: boolean;
|
|
7
5
|
}
|
|
8
6
|
/**
|
|
9
7
|
* Dropdown component for displaying a searchable plant selector.
|
|
10
8
|
* @param {PlantSelectorProps} {
|
|
11
|
-
* variant: The style type for the dropdown component. Either default or compact.
|
|
12
9
|
* isDisabled: Flag which decides whether the dropdown should be disabled or not.
|
|
13
10
|
* stayOnPath: Flag which decides if you should stay on your current path after selecting a plant.
|
|
14
11
|
* }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface PrepviewProps {
|
|
3
3
|
instCode: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
workOrderId?: string;
|
|
5
|
+
notificationId?: string;
|
|
6
|
+
punchId?: string;
|
|
7
7
|
}
|
|
8
8
|
declare function Prepview(props: PrepviewProps): JSX.Element | null;
|
|
9
|
-
export { Prepview };
|
|
10
9
|
export { MaintenanceApiNameForWorkOrders } from './utils';
|
|
10
|
+
export { Prepview };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { PrepviewWorkOrderDto } from '../types';
|
|
2
|
-
import * as workOrderApi from './
|
|
1
|
+
import { PrepviewNotificationDto, PrepviewWorkOrderDto, PunchDetails } from '../types';
|
|
2
|
+
import * as workOrderApi from './attachment';
|
|
3
3
|
export { workOrderApi };
|
|
4
4
|
export declare function getWorkOrder(instCode: string, workOrderId: string): Promise<PrepviewWorkOrderDto>;
|
|
5
|
+
export declare function getNotification(instCode: string, notificationId: string): Promise<PrepviewNotificationDto>;
|
|
6
|
+
export declare function getPunch(instCode: string, punchId: string): Promise<PunchDetails>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare function getWorkOrder(instCode: string, workOrderId: string): string;
|
|
2
|
+
export declare function getNotification(instCode: string, notificationId: string): string;
|
|
3
|
+
export declare function getPunch(instCode: string, punchId: string): string;
|
|
2
4
|
export declare function getWorkorderAttachmentFile(orderTypeId: string, workorderId: string, attachmentId: string): string;
|
|
@@ -3,7 +3,10 @@ interface Props {
|
|
|
3
3
|
title: string;
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
isLoading?: boolean;
|
|
6
|
-
|
|
6
|
+
type?: 'notification' | 'workorder' | 'punch' | 'risk';
|
|
7
|
+
itemId?: string;
|
|
8
|
+
itemType?: string;
|
|
9
|
+
searchValue?: string;
|
|
7
10
|
}
|
|
8
|
-
declare function DetailsPanel({ title, isLoading,
|
|
11
|
+
declare function DetailsPanel({ title, children, isLoading, type, itemId, itemType, searchValue }: Props): JSX.Element;
|
|
9
12
|
export { DetailsPanel };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface PanelDescriptionProps {
|
|
3
|
-
|
|
3
|
+
description?: string;
|
|
4
4
|
}
|
|
5
|
-
declare function PanelDescription({
|
|
5
|
+
declare function PanelDescription({ description }: PanelDescriptionProps): JSX.Element;
|
|
6
6
|
export { PanelDescription };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NotificationAdditionalDetails, NotificationDetails } from '../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
instCode: string;
|
|
5
|
+
details: NotificationDetails;
|
|
6
|
+
additionalDetails: NotificationAdditionalDetails;
|
|
7
|
+
}
|
|
8
|
+
declare function AdditionalDetails({ instCode, details, additionalDetails }: Props): JSX.Element;
|
|
9
|
+
export { AdditionalDetails };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AdditionalDetails';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { NotificationDetails } from '../../types';
|
|
3
|
+
export interface Props {
|
|
4
|
+
details: NotificationDetails;
|
|
5
|
+
instCode: string;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function Details({ details, instCode, isLoading }: Props): JSX.Element;
|
|
9
|
+
export { Details };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Details';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PrepviewNotificationDto } from '../types';
|
|
3
|
+
interface NotificationProps {
|
|
4
|
+
instCode: string;
|
|
5
|
+
notification: PrepviewNotificationDto;
|
|
6
|
+
}
|
|
7
|
+
declare function Notification(props: NotificationProps): JSX.Element | null;
|
|
8
|
+
export { Notification };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { PrepviewAttachment
|
|
2
|
+
import type { PrepviewAttachment } from '../../types';
|
|
3
3
|
interface Props {
|
|
4
|
-
|
|
4
|
+
recordType: string;
|
|
5
|
+
recordId: string;
|
|
5
6
|
attachments: PrepviewAttachment[];
|
|
6
7
|
isLoading?: boolean;
|
|
7
8
|
}
|
|
8
|
-
declare function AttachmentsPanel({
|
|
9
|
+
declare function AttachmentsPanel({ recordType, recordId, attachments, isLoading }: Props): JSX.Element;
|
|
9
10
|
export { AttachmentsPanel };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { PunchDetails } from '../../types';
|
|
3
|
+
export interface Props {
|
|
4
|
+
details: PunchDetails;
|
|
5
|
+
instCode: string;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function Details({ details, instCode, isLoading }: Props): JSX.Element;
|
|
9
|
+
export { Details };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Details';
|
|
@@ -1,3 +1,58 @@
|
|
|
1
|
+
import { PrepviewAttachment } from './attachment';
|
|
2
|
+
import { FetchStatus } from './common';
|
|
3
|
+
import { PrepviewDocumentGroup } from './document';
|
|
4
|
+
import { PrepviewPunch } from './punch';
|
|
5
|
+
import { PrepviewSafety } from './safety';
|
|
6
|
+
import { PrepviewTagInformation } from './tag';
|
|
7
|
+
import { PrepviewTagHistoryGroup, PrepviewWorkOrder } from './workorder';
|
|
8
|
+
export declare type PrepviewNotificationDto = {
|
|
9
|
+
details: NotificationDetails;
|
|
10
|
+
additionalDetails?: NotificationAdditionalDetails;
|
|
11
|
+
};
|
|
12
|
+
export declare type NotificationDetails = FetchStatus & {
|
|
13
|
+
id: string;
|
|
14
|
+
type: string;
|
|
15
|
+
title: string;
|
|
16
|
+
tagPlantId: string;
|
|
17
|
+
tagId: string;
|
|
18
|
+
plantId: string;
|
|
19
|
+
createdDateTime: Date;
|
|
20
|
+
requiredEndDateTime: Date;
|
|
21
|
+
activeStatusIds: string[];
|
|
22
|
+
unsafeFailureMode: string;
|
|
23
|
+
plannerGroup: string;
|
|
24
|
+
mainWorkCenter: string;
|
|
25
|
+
failureImpact: string;
|
|
26
|
+
priorityId: string;
|
|
27
|
+
priority: string;
|
|
28
|
+
failureMode: string;
|
|
29
|
+
detectionMethodId: string;
|
|
30
|
+
failureMechanism: string;
|
|
31
|
+
longText: string;
|
|
32
|
+
};
|
|
33
|
+
export declare type NotificationAdditionalDetails = {
|
|
34
|
+
attachments: FetchStatus & {
|
|
35
|
+
attachments: Array<PrepviewAttachment>;
|
|
36
|
+
};
|
|
37
|
+
documents: FetchStatus & {
|
|
38
|
+
documentGroups: Array<PrepviewDocumentGroup>;
|
|
39
|
+
};
|
|
40
|
+
history: FetchStatus & {
|
|
41
|
+
notificationGroups: FetchStatus & {
|
|
42
|
+
groups: PrepviewTagHistoryGroup<PrepviewNotification>[];
|
|
43
|
+
};
|
|
44
|
+
punchGroups: FetchStatus & {
|
|
45
|
+
groups: PrepviewTagHistoryGroup<PrepviewPunch>[];
|
|
46
|
+
};
|
|
47
|
+
workOrderGroups: FetchStatus & {
|
|
48
|
+
groups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
safetyCards: FetchStatus & {
|
|
52
|
+
safetyCards: Array<PrepviewSafety>;
|
|
53
|
+
};
|
|
54
|
+
tagInformation: FetchStatus & PrepviewTagInformation;
|
|
55
|
+
};
|
|
1
56
|
export declare type PrepviewNotification = {
|
|
2
57
|
id: string;
|
|
3
58
|
activeStatusIds: string;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
import { FetchStatus } from './common';
|
|
2
|
+
export declare type PunchDetails = FetchStatus & {
|
|
3
|
+
id: string;
|
|
4
|
+
tagNo: string;
|
|
5
|
+
tagDescription: string;
|
|
6
|
+
tagArea: string;
|
|
7
|
+
description: string;
|
|
8
|
+
statusId: string;
|
|
9
|
+
mcPkgNo: string;
|
|
10
|
+
commPkgNo: string;
|
|
11
|
+
systemId: number;
|
|
12
|
+
clearedByOrg: string;
|
|
13
|
+
raisedByOrg: string;
|
|
14
|
+
typeDescription: string;
|
|
15
|
+
priorityId: string;
|
|
16
|
+
statusCode: number;
|
|
17
|
+
};
|
|
1
18
|
export declare type PrepviewPunch = {
|
|
2
19
|
id: string;
|
|
3
20
|
type: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PrepviewAttachment } from './attachment';
|
|
2
|
+
import { FetchStatus } from './common';
|
|
2
3
|
import { PrepviewDocumentGroup } from './document';
|
|
3
4
|
import { PrepviewNotification } from './notification';
|
|
4
5
|
import { PrepviewOperation } from './operation';
|
|
@@ -9,9 +10,6 @@ export declare type PrepviewWorkOrderDto = {
|
|
|
9
10
|
details: WorkOrderDetails;
|
|
10
11
|
additionalDetails?: WorkOrderAdditionalDetails;
|
|
11
12
|
};
|
|
12
|
-
export declare type FetchStatus = {
|
|
13
|
-
statusCode?: 'Forbidden' | string;
|
|
14
|
-
};
|
|
15
13
|
export declare type WorkOrderDetails = FetchStatus & {
|
|
16
14
|
basicFinishDateTime: Date;
|
|
17
15
|
basicStartDateTime: Date;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from './enums';
|
|
2
1
|
export * from './date';
|
|
3
2
|
export * from './documents';
|
|
4
3
|
export * from './dom';
|
|
5
|
-
export * from './
|
|
4
|
+
export * from './enums';
|
|
6
5
|
export * from './logger';
|
|
7
6
|
export * from './object';
|
|
7
|
+
export * from './string';
|
|
8
8
|
export * from './url';
|
|
9
|
+
export * from './workorder';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function trimToLength(inputString: string, stringLength: number): string;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface ProjectSelectorProps {
|
|
3
|
-
variant?: 'compact' | 'default';
|
|
4
|
-
maxCharacterCount?: number;
|
|
5
3
|
isDisabled?: boolean;
|
|
6
4
|
}
|
|
7
5
|
export declare const ALL_PROJECTS = "All projects";
|
|
8
6
|
/**
|
|
9
7
|
* Dropdown component for displaying a searchable project selector.
|
|
10
8
|
* @param {ProjectSelectorProps} {
|
|
11
|
-
* variant: The style type for the dropdown component. Either default or compact.
|
|
12
9
|
* isDisabled: Flag which decides whether the dropdown should be disabled or not.
|
|
13
10
|
* }
|
|
14
11
|
* @return {*}
|