@equinor/echo-framework 0.11.0-rc9 → 0.11.1
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/LICENSE +21 -21
- package/README.md +11 -11
- package/dist/{f4c85313e79b1662.svg → 1bd97dd2170d0f64.svg} +850 -850
- package/dist/{063009f06499d102.svg → 47deeba42768c5d1.svg} +8 -8
- package/dist/__tests__/3dButtonUtils.test.d.ts +1 -0
- package/dist/components/containers/layouts.d.ts +1 -1
- package/dist/components/contextualAppLinks/contextualAppLinks.context.d.ts +1 -1
- package/dist/components/contextualAppLinks/contextualAppLinks.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalAppsMenu.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +2 -2
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToCommApp.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/iconButtonSpinner.d.ts +1 -1
- package/dist/components/contextualAppLinks/externalLinkButtons/trainingCenterForValvesMenu.d.ts +7 -0
- package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.d.ts +1 -1
- package/dist/components/contextualAppLinks/index.d.ts +1 -1
- package/dist/components/contextualAppLinks/internalAppLinks.d.ts +1 -1
- package/dist/components/contextualAppLinks/linkButton.d.ts +2 -2
- package/dist/components/echo3DButton/3dButtonUtils.d.ts +12 -0
- package/dist/components/echo3DButton/OpenIn3dDropdown.d.ts +11 -0
- package/dist/components/echo3DButton/echo3DButton.d.ts +18 -0
- package/dist/components/echo3DButton/echo3DIconButton.d.ts +26 -0
- package/dist/components/echo3DButton/icons/E3DWebBetaIcon.d.ts +6 -0
- package/dist/components/echo3DButton/index.d.ts +2 -0
- package/dist/components/echo3DButton/missingEcho3dAccessDialog.d.ts +8 -0
- package/dist/components/echo3DButton/plantNotAvailableInfo.d.ts +6 -0
- package/dist/components/echo3DButton/useGetOpenIn3d.d.ts +5 -0
- package/dist/components/echo3DButton/useGoToEcho3DWebLink.d.ts +1 -0
- package/dist/components/externalLinkButton/externalLinkButton.d.ts +6 -5
- package/dist/components/homePage/HomePage.d.ts +1 -2
- package/dist/components/index.d.ts +2 -1
- package/dist/components/pageMenu/defaultAccordionItem.d.ts +1 -1
- package/dist/components/panel/corePanelLeft.d.ts +1 -4
- package/dist/components/panel/corePanelRight.d.ts +1 -4
- package/dist/components/prepview/Prepview.d.ts +3 -1
- package/dist/components/prepview/api/attachment.d.ts +1 -1
- package/dist/components/prepview/api/resources.d.ts +1 -0
- package/dist/components/prepview/common/access/request/RequestAccess.d.ts +1 -1
- package/dist/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +11 -0
- package/dist/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +15 -0
- package/dist/components/prepview/common/additionalInformation/tabsPanels/index.d.ts +1 -0
- package/dist/components/prepview/common/index.d.ts +1 -0
- package/dist/components/prepview/common/info/section/longText/LongTextSection.d.ts +1 -0
- package/dist/components/prepview/common/link/Link.d.ts +7 -0
- package/dist/components/prepview/context/PrepviewContext.d.ts +1 -0
- package/dist/components/prepview/hooks/index.d.ts +1 -0
- package/dist/components/prepview/hooks/useFetch.d.ts +1 -1
- package/dist/components/prepview/hooks/useOnClickDownload.d.ts +1 -1
- package/dist/components/prepview/hooks/useSetActiveSearchItem.d.ts +10 -0
- package/dist/components/prepview/notification/details/{Details.d.ts → DetailsNotification.d.ts} +3 -2
- package/dist/components/prepview/notification/details/index.d.ts +1 -1
- package/dist/components/prepview/notification/header/Header.d.ts +8 -0
- package/dist/components/prepview/notification/header/index.d.ts +1 -0
- package/dist/components/prepview/notification/index.d.ts +1 -0
- package/dist/components/prepview/panels/history/items/Items.d.ts +1 -1
- package/dist/components/prepview/punch/details/Details.d.ts +2 -1
- package/dist/components/prepview/{workorder → punch}/header/Header.d.ts +2 -2
- package/dist/components/prepview/punch/header/index.d.ts +1 -0
- package/dist/components/prepview/punch/index.d.ts +1 -0
- package/dist/components/prepview/types/attachment.d.ts +1 -1
- package/dist/components/prepview/types/common.d.ts +40 -3
- package/dist/components/prepview/types/document.d.ts +2 -2
- package/dist/components/prepview/types/notification.d.ts +5 -5
- package/dist/components/prepview/types/operation.d.ts +1 -1
- package/dist/components/prepview/types/punch.d.ts +3 -2
- package/dist/components/prepview/types/safety.d.ts +1 -1
- package/dist/components/prepview/types/tag.d.ts +2 -2
- package/dist/components/prepview/types/workorder.d.ts +5 -5
- package/dist/components/prepview/utils/index.d.ts +1 -1
- package/dist/components/prepview/utils/logger.d.ts +10 -10
- package/dist/components/prepview/utils/notification.d.ts +3 -0
- package/dist/components/prepview/utils/punch.d.ts +1 -0
- package/dist/components/prepview/utils/url.d.ts +1 -1
- package/dist/components/prepview/utils/workorder.d.ts +1 -1
- package/dist/components/prepview/workorder/details/{Details.d.ts → DetailsWorkOrder.d.ts} +3 -2
- package/dist/components/prepview/workorder/details/index.d.ts +1 -1
- package/dist/components/prepview/workorder/header/WorkOrderHeader.d.ts +9 -0
- package/dist/components/prepview/workorder/header/index.d.ts +1 -1
- package/dist/components/prepview/workorder/index.d.ts +3 -1
- package/dist/components/realTimeData/hooks/useRealTimeHub.d.ts +1 -1
- package/dist/components/realTimeData/hooks/useSignalRListener.d.ts +1 -1
- package/dist/components/tagNumber/tagNumber.d.ts +3 -2
- package/dist/coreApplication/EchoBarComponent.d.ts +0 -8
- package/dist/coreApplication/EchoSetup.d.ts +1 -1
- package/dist/coreApplication/EchoToolBar.d.ts +16 -2
- package/dist/coreApplication/{EchoUserInterfaceContextProvider.d.ts → EchoUserInterfaceStore.d.ts} +8 -8
- package/dist/coreApplication/index.d.ts +1 -1
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/useEchoHistory.d.ts +2 -2
- package/dist/hooks/useHas3dAccess.d.ts +1 -0
- package/dist/hooks/usePlantAvailableIn3d.d.ts +1 -0
- package/dist/hooks/usePlantAvailableIn3dWeb.d.ts +1 -0
- package/dist/hooks/useScreenValues.d.ts +1 -1
- package/dist/hooks/useSemi.d.ts +1 -1
- package/dist/hooks/useWindowSize.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +30 -3
- package/dist/services/api/api-manager.d.ts +1 -1
- package/dist/services/componentRegistry/componentRegistry.d.ts +27 -7
- package/dist/services/deviceInformation/deepDeviceInfo.d.ts +41 -0
- package/dist/services/deviceInformation/deviceInfo.d.ts +45 -0
- package/dist/services/searchItemDetails/searchItemDetails.store.d.ts +26 -0
- package/dist/services/searchItemDetails/searchItemDetails.store.test.d.ts +1 -0
- package/dist/services/searchItemDetails/searchItemDetailsContainer.d.ts +6 -0
- package/dist/theme/themeConst.d.ts +1 -0
- package/dist/types/api-proCoSysTagResponse.d.ts +1 -1
- package/dist/types/device.d.ts +53 -0
- package/dist/types/eventTypes/index.d.ts +1 -0
- package/dist/types/eventTypes/searchDetailsContainerEvents.d.ts +3 -0
- package/dist/types/hookLibrary.d.ts +20 -5
- package/dist/types/legend.d.ts +1 -0
- package/dist/utils/arrayUtils.d.ts +8 -0
- package/dist/utils/arrayUtils.test.d.ts +1 -0
- package/dist/utils/legendUtils.d.ts +7 -4
- package/dist/utils/tagUtils.d.ts +23 -0
- package/dist/utils/tagUtils.test.d.ts +1 -0
- package/package.json +126 -123
- package/dist/components/prepview/notification/additionalDetails/AdditionalDetails.d.ts +0 -9
- package/dist/components/prepview/notification/additionalDetails/index.d.ts +0 -1
- package/dist/components/prepview/utils/status.d.ts +0 -3
- package/dist/components/prepview/workorder/additionalDetails/AdditionalDetails.d.ts +0 -9
- package/dist/components/prepview/workorder/additionalDetails/index.d.ts +0 -1
|
@@ -3,3 +3,4 @@ export declare function getNotification(instCode: string, notificationId: 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;
|
|
6
|
+
export declare function getNotificationAttachmentFile(maintenanceRecordTypeId: string, maintenanceRecordId: string, attachmentId: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { AdditionalDetailsDto, NotificationDetails, WorkOrderDetails } from '../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
instCode: string;
|
|
5
|
+
workOrderDetails?: WorkOrderDetails;
|
|
6
|
+
notificationDetails?: NotificationDetails;
|
|
7
|
+
additionalDetails: AdditionalDetailsDto;
|
|
8
|
+
closePanel: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare function AdditionalDetails({ instCode, workOrderDetails, notificationDetails, additionalDetails, closePanel }: Props): JSX.Element;
|
|
11
|
+
export { AdditionalDetails };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AdditionalDetailsDto, NotificationDetails, WorkOrderDetails } from '../../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
instCode: string;
|
|
5
|
+
workOrderDetails?: WorkOrderDetails;
|
|
6
|
+
notificationDetails?: NotificationDetails;
|
|
7
|
+
additionalDetails: AdditionalDetailsDto;
|
|
8
|
+
closePanel: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare function TabsPanels({ instCode, workOrderDetails, notificationDetails, additionalDetails, closePanel }: Props): JSX.Element | null;
|
|
11
|
+
interface TabsListProps {
|
|
12
|
+
tabListRef: React.RefObject<HTMLDivElement>;
|
|
13
|
+
}
|
|
14
|
+
declare function TabsList({ tabListRef }: TabsListProps): JSX.Element | null;
|
|
15
|
+
export { TabsPanels, TabsList };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TabsPanels';
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { SideSheetOrientation } from '@equinor/echo-components';
|
|
3
3
|
interface PrepviewContext {
|
|
4
4
|
orientation: SideSheetOrientation;
|
|
5
|
+
isWorkOrder: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare const PrepviewContext: React.Context<PrepviewContext>;
|
|
7
8
|
export declare const usePrepviewContext: () => PrepviewContext;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DependencyList } from 'react';
|
|
2
|
-
|
|
2
|
+
type FetchCallback<T> = () => Promise<T> | undefined;
|
|
3
3
|
export declare function useFetch<TError = unknown, T = unknown>(callback: FetchCallback<T>, deps?: DependencyList): [data: T | undefined, isLoading: boolean, error: TError | unknown];
|
|
4
4
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum ItemTypes {
|
|
2
|
+
tag = "tag",
|
|
3
|
+
mcPack = "mcPack",
|
|
4
|
+
commPack = "commPack"
|
|
5
|
+
}
|
|
6
|
+
type ActiveSearchFunction = (type: ItemTypes, itemNumber: string, instCode: string) => void;
|
|
7
|
+
type ActivePackageSearchFunction = (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
|
|
8
|
+
export declare function useSetActiveSearchItem(): ActiveSearchFunction;
|
|
9
|
+
export declare function useSetActivePackageItemInState(): ActivePackageSearchFunction;
|
|
10
|
+
export {};
|
package/dist/components/prepview/notification/details/{Details.d.ts → DetailsNotification.d.ts}
RENAMED
|
@@ -4,6 +4,7 @@ export interface Props {
|
|
|
4
4
|
details: NotificationDetails;
|
|
5
5
|
instCode: string;
|
|
6
6
|
isLoading?: boolean;
|
|
7
|
+
closePanel: () => void;
|
|
7
8
|
}
|
|
8
|
-
declare function
|
|
9
|
-
export {
|
|
9
|
+
declare function DetailsNotification({ details, instCode, closePanel }: Props): JSX.Element;
|
|
10
|
+
export { DetailsNotification };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './DetailsNotification';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Header';
|
|
@@ -3,6 +3,7 @@ import { PrepviewNotificationDto } from '../types';
|
|
|
3
3
|
interface NotificationProps {
|
|
4
4
|
instCode: string;
|
|
5
5
|
notification: PrepviewNotificationDto;
|
|
6
|
+
closePanel: () => void;
|
|
6
7
|
}
|
|
7
8
|
declare function Notification(props: NotificationProps): JSX.Element | null;
|
|
8
9
|
export { Notification };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PrepviewNotification, PrepviewPunch, PrepviewWorkOrder } from '../../../types';
|
|
3
3
|
import { WorkItemType } from '../../../utils';
|
|
4
|
-
|
|
4
|
+
type Items = Array<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>;
|
|
5
5
|
export interface ItemProps {
|
|
6
6
|
itemType: WorkItemType;
|
|
7
7
|
subType: string;
|
|
@@ -4,6 +4,7 @@ export interface Props {
|
|
|
4
4
|
details: PunchDetails;
|
|
5
5
|
instCode: string;
|
|
6
6
|
isLoading?: boolean;
|
|
7
|
+
closePanel: () => void;
|
|
7
8
|
}
|
|
8
|
-
declare function Details({ details, instCode }: Props): JSX.Element;
|
|
9
|
+
declare function Details({ details, instCode, closePanel }: Props): JSX.Element;
|
|
9
10
|
export { Details };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { PunchDetails } from '../../types';
|
|
3
3
|
interface HeaderProps {
|
|
4
4
|
instCode: string;
|
|
5
|
-
|
|
5
|
+
punch: PunchDetails;
|
|
6
6
|
}
|
|
7
7
|
declare function Header(props: HeaderProps): JSX.Element | null;
|
|
8
8
|
export { Header };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Header';
|
|
@@ -1,13 +1,50 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { PrepviewAttachment } from './attachment';
|
|
3
|
+
import { PrepviewDocumentGroup } from './document';
|
|
4
|
+
import { PrepviewNotification } from './notification';
|
|
5
|
+
import { PrepviewOperation } from './operation';
|
|
6
|
+
import { PrepviewPunch } from './punch';
|
|
7
|
+
import { PrepviewSafety } from './safety';
|
|
8
|
+
import { PrepviewRelatedTag, PrepviewTagInformation } from './tag';
|
|
9
|
+
import { PrepviewTagHistoryGroup, PrepviewWorkOrder } from './workorder';
|
|
10
|
+
export type FetchStatus = {
|
|
3
11
|
statusCode?: 'Forbidden' | string;
|
|
4
12
|
};
|
|
5
|
-
export
|
|
13
|
+
export type ContentPickerGroup = {
|
|
6
14
|
title?: string;
|
|
7
15
|
items: ContentPickerItem[];
|
|
8
16
|
};
|
|
9
|
-
export
|
|
17
|
+
export type ContentPickerItem = {
|
|
10
18
|
id: string;
|
|
11
19
|
title: string;
|
|
12
20
|
content: React.ReactNode;
|
|
13
21
|
};
|
|
22
|
+
export type AdditionalDetailsDto = {
|
|
23
|
+
attachments: FetchStatus & {
|
|
24
|
+
attachments: Array<PrepviewAttachment>;
|
|
25
|
+
};
|
|
26
|
+
documents: FetchStatus & {
|
|
27
|
+
documentGroups: Array<PrepviewDocumentGroup>;
|
|
28
|
+
};
|
|
29
|
+
history: FetchStatus & {
|
|
30
|
+
notificationGroups: FetchStatus & {
|
|
31
|
+
groups: PrepviewTagHistoryGroup<PrepviewNotification>[];
|
|
32
|
+
};
|
|
33
|
+
punchGroups: FetchStatus & {
|
|
34
|
+
groups: PrepviewTagHistoryGroup<PrepviewPunch>[];
|
|
35
|
+
};
|
|
36
|
+
workOrderGroups: FetchStatus & {
|
|
37
|
+
groups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
objects: FetchStatus & {
|
|
41
|
+
objects: Array<PrepviewRelatedTag>;
|
|
42
|
+
};
|
|
43
|
+
operations: FetchStatus & {
|
|
44
|
+
operations: Array<PrepviewOperation>;
|
|
45
|
+
};
|
|
46
|
+
safetyCards: FetchStatus & {
|
|
47
|
+
safetyCards: Array<PrepviewSafety>;
|
|
48
|
+
};
|
|
49
|
+
tagInformation: FetchStatus & PrepviewTagInformation;
|
|
50
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FileDto } from '@equinor/echo-search';
|
|
2
|
-
export
|
|
2
|
+
export type PrepviewDocumentGroup = {
|
|
3
3
|
type: string;
|
|
4
4
|
documents: Array<PrepviewDocument>;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type PrepviewDocument = {
|
|
7
7
|
docNo: string;
|
|
8
8
|
docTitle: string;
|
|
9
9
|
files: Array<FileDto>;
|
|
@@ -5,11 +5,11 @@ import { PrepviewPunch } from './punch';
|
|
|
5
5
|
import { PrepviewSafety } from './safety';
|
|
6
6
|
import { PrepviewTagInformation } from './tag';
|
|
7
7
|
import { PrepviewTagHistoryGroup, PrepviewWorkOrder } from './workorder';
|
|
8
|
-
export
|
|
8
|
+
export type PrepviewNotificationDto = {
|
|
9
9
|
details: NotificationDetails;
|
|
10
10
|
additionalDetails?: NotificationAdditionalDetails;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type NotificationDetails = FetchStatus & {
|
|
13
13
|
id: string;
|
|
14
14
|
type: string;
|
|
15
15
|
title: string;
|
|
@@ -20,7 +20,7 @@ export declare type NotificationDetails = FetchStatus & {
|
|
|
20
20
|
requiredEndDateTime: Date;
|
|
21
21
|
maintenancePlant: string;
|
|
22
22
|
planningPlant: string;
|
|
23
|
-
activeStatusIds: string
|
|
23
|
+
activeStatusIds: string;
|
|
24
24
|
unsafeFailureMode: string;
|
|
25
25
|
plannerGroup: string;
|
|
26
26
|
mainWorkCenter: string;
|
|
@@ -32,7 +32,7 @@ export declare type NotificationDetails = FetchStatus & {
|
|
|
32
32
|
failureMechanism: string;
|
|
33
33
|
longText: string;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type NotificationAdditionalDetails = {
|
|
36
36
|
attachments: FetchStatus & {
|
|
37
37
|
attachments: Array<PrepviewAttachment>;
|
|
38
38
|
};
|
|
@@ -55,7 +55,7 @@ export declare type NotificationAdditionalDetails = {
|
|
|
55
55
|
};
|
|
56
56
|
tagInformation: FetchStatus & PrepviewTagInformation;
|
|
57
57
|
};
|
|
58
|
-
export
|
|
58
|
+
export type PrepviewNotification = {
|
|
59
59
|
id: string;
|
|
60
60
|
activeStatusIds: string;
|
|
61
61
|
changedDateTime?: Date;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetchStatus } from './common';
|
|
2
|
-
export
|
|
2
|
+
export type PunchDetails = FetchStatus & {
|
|
3
3
|
id: string;
|
|
4
4
|
tagNo: string;
|
|
5
5
|
tagDescription: string;
|
|
@@ -13,9 +13,10 @@ export declare type PunchDetails = FetchStatus & {
|
|
|
13
13
|
raisedByOrg: string;
|
|
14
14
|
typeDescription: string;
|
|
15
15
|
priorityId: string;
|
|
16
|
+
projectName: string;
|
|
16
17
|
statusCode: number;
|
|
17
18
|
};
|
|
18
|
-
export
|
|
19
|
+
export type PrepviewPunch = {
|
|
19
20
|
id: string;
|
|
20
21
|
type: string;
|
|
21
22
|
statusId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PrepviewTagInformation = {
|
|
2
2
|
abcIndicator: string;
|
|
3
3
|
area: string;
|
|
4
4
|
consequenceCost: string;
|
|
@@ -14,7 +14,7 @@ export declare type PrepviewTagInformation = {
|
|
|
14
14
|
repairStrategy: string;
|
|
15
15
|
unsafeFailure: string[];
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type PrepviewRelatedTag = {
|
|
18
18
|
tagId: string;
|
|
19
19
|
tagPlantId: string;
|
|
20
20
|
tag: string;
|
|
@@ -6,11 +6,11 @@ import { PrepviewOperation } from './operation';
|
|
|
6
6
|
import { PrepviewPunch } from './punch';
|
|
7
7
|
import { PrepviewSafety } from './safety';
|
|
8
8
|
import { PrepviewRelatedTag, PrepviewTagInformation } from './tag';
|
|
9
|
-
export
|
|
9
|
+
export type PrepviewWorkOrderDto = {
|
|
10
10
|
details: WorkOrderDetails;
|
|
11
11
|
additionalDetails?: WorkOrderAdditionalDetails;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type WorkOrderDetails = FetchStatus & {
|
|
14
14
|
basicFinishDateTime: Date;
|
|
15
15
|
basicStartDateTime: Date;
|
|
16
16
|
changedDateTime: Date;
|
|
@@ -37,7 +37,7 @@ export declare type WorkOrderDetails = FetchStatus & {
|
|
|
37
37
|
priorityId: string;
|
|
38
38
|
plantId: string;
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type WorkOrderAdditionalDetails = {
|
|
41
41
|
attachments: FetchStatus & {
|
|
42
42
|
attachments: Array<PrepviewAttachment>;
|
|
43
43
|
};
|
|
@@ -66,11 +66,11 @@ export declare type WorkOrderAdditionalDetails = {
|
|
|
66
66
|
};
|
|
67
67
|
tagInformation: FetchStatus & PrepviewTagInformation;
|
|
68
68
|
};
|
|
69
|
-
export
|
|
69
|
+
export type PrepviewTagHistoryGroup<T = PrepviewNotification | PrepviewWorkOrder | PrepviewPunch> = {
|
|
70
70
|
type: string;
|
|
71
71
|
items: Array<T>;
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type PrepviewWorkOrder = {
|
|
74
74
|
type: string;
|
|
75
75
|
title: string;
|
|
76
76
|
mainWorkCenterId?: string;
|
|
@@ -4,26 +4,26 @@ export declare enum ObjectName {
|
|
|
4
4
|
Synergi = "Synergi",
|
|
5
5
|
SafeX = "SafeX"
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
type ActionNames = {
|
|
8
8
|
[ObjectName.Module]: ModuleActions;
|
|
9
9
|
[ObjectName.Synergi]: SynergiActions;
|
|
10
10
|
[ObjectName.SafeX]: SafeXActions;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type ActionProperties = {
|
|
13
13
|
[ObjectName.Module]: ModuleActionProperties;
|
|
14
14
|
[ObjectName.Synergi]: SynergiActionProperties;
|
|
15
15
|
[ObjectName.SafeX]: SafeXActionProperties;
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
type ModuleActions = 'Started';
|
|
18
|
+
type ModuleActionProperties = {
|
|
19
19
|
message?: string;
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
type SynergiActions = 'Application opened';
|
|
22
|
+
type SynergiActionProperties = {
|
|
23
23
|
synergiUrl: string;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
type SafeXActions = 'Application opened';
|
|
26
|
+
type SafeXActionProperties = {
|
|
27
27
|
searchValue?: string;
|
|
28
28
|
};
|
|
29
29
|
declare enum LogLevel {
|
|
@@ -33,7 +33,7 @@ declare enum LogLevel {
|
|
|
33
33
|
QA = 3,
|
|
34
34
|
Prod = 4
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
type LogLevelKeys = keyof typeof LogLevel;
|
|
37
37
|
interface BaseLoggerProps {
|
|
38
38
|
moduleName: string;
|
|
39
39
|
analytics: AnalyticsModule;
|
|
@@ -59,7 +59,7 @@ declare class BaseLogger {
|
|
|
59
59
|
*/
|
|
60
60
|
protected setInitialLogLevel(): LogLevel;
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
type PrepviewLoggerProps = BaseLoggerProps;
|
|
63
63
|
declare class PrepviewLogger extends BaseLogger {
|
|
64
64
|
constructor({ ...baseProps }: PrepviewLoggerProps);
|
|
65
65
|
trackEvent<Name extends ObjectName = ObjectName, Action extends ActionNames[Name] = ActionNames[Name], Properties extends ActionProperties[Name] = ActionProperties[Name]>(objectName: Name, actionName: Action, properties: Properties): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
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
|
+
export declare function getStatusColor(statusIds: string): "#4bb748" | "#fbca36";
|
|
3
|
+
export declare function getStatusText(statusIds: string): "Completed" | "Active";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setPunchIconName(type: string): "punches_pa" | "punches_pb" | "punches_main_group";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function combineUrls(base: string, ...parts: string[]): string;
|
|
2
|
-
export
|
|
2
|
+
export type Params = Record<string, string | number | boolean>;
|
|
3
3
|
/**
|
|
4
4
|
* Takes a url as input and adds the specified parameters to it.
|
|
5
5
|
* @param url The url to extend.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const MaintenanceApiNameForWorkOrders: Record<string, string>;
|
|
2
|
-
export declare function
|
|
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";
|
|
@@ -4,6 +4,7 @@ export interface Props {
|
|
|
4
4
|
details: WorkOrderDetails;
|
|
5
5
|
instCode: string;
|
|
6
6
|
isLoading?: boolean;
|
|
7
|
+
closePanel: () => void;
|
|
7
8
|
}
|
|
8
|
-
declare function
|
|
9
|
-
export {
|
|
9
|
+
declare function DetailsWorkOrder({ details, instCode, closePanel }: Props): JSX.Element;
|
|
10
|
+
export { DetailsWorkOrder };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './DetailsWorkOrder';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WorkOrderDetails } from '../../types';
|
|
3
|
+
interface WorkOrderHeaderProps {
|
|
4
|
+
instCode: string;
|
|
5
|
+
workOrder: WorkOrderDetails;
|
|
6
|
+
workOrderHeaderAction?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function WorkOrderHeader(props: WorkOrderHeaderProps): JSX.Element | null;
|
|
9
|
+
export { WorkOrderHeader };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './WorkOrderHeader';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { PrepviewWorkOrderDto } from '../types';
|
|
3
3
|
interface WorkOrderProps {
|
|
4
4
|
instCode: string;
|
|
5
5
|
workOrder: PrepviewWorkOrderDto;
|
|
6
|
+
closePanel: () => void;
|
|
7
|
+
workOrderHeaderAction?: React.ReactNode;
|
|
6
8
|
}
|
|
7
9
|
declare function WorkOrder(props: WorkOrderProps): JSX.Element | null;
|
|
8
10
|
export { WorkOrder };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HubConnection } from '@microsoft/signalr';
|
|
2
|
-
|
|
2
|
+
type HubMethod = (...args: any[]) => void;
|
|
3
3
|
export declare function useSignalRListener(hubConnection: HubConnection | undefined, target: string, method: HubMethod): void;
|
|
4
4
|
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
interface TagNoProps {
|
|
3
3
|
tagNo: string;
|
|
4
4
|
className?: string;
|
|
5
|
+
replaceLastNavigationItem?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const TagNumber: ({ tagNo, className }: TagNoProps) => JSX.Element;
|
|
7
|
-
export
|
|
7
|
+
export declare const TagNumber: ({ tagNo, className, replaceLastNavigationItem }: TagNoProps) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -4,14 +4,6 @@ interface EchoBottomBarProps {
|
|
|
4
4
|
activeAppMenuItem: string;
|
|
5
5
|
updateActiveAppMenuItem: (newActiveAppMenuItem: string) => void;
|
|
6
6
|
}
|
|
7
|
-
interface EchoBottomBarButtonProps {
|
|
8
|
-
name: string;
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
onButtonClick: (name: string) => void;
|
|
11
|
-
label?: string;
|
|
12
|
-
iconClassName?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const EchoBottomBarButton: React.FC<EchoBottomBarButtonProps>;
|
|
15
7
|
export declare const EchoBarComponent: React.FC<EchoBottomBarProps>;
|
|
16
8
|
declare const _default: React.NamedExoticComponent<EchoBottomBarProps>;
|
|
17
9
|
export default _default;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SidebarButtonListType {
|
|
3
|
+
buttonTitle: string;
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
iconName: string;
|
|
6
|
+
iconColor: string;
|
|
7
|
+
isVisible: boolean;
|
|
8
|
+
active: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare enum PanelNames {
|
|
11
|
+
echoCoreSearch = "echoCoreSearch",
|
|
12
|
+
pdfTagList = "pdfTagList",
|
|
13
|
+
highlightedPanel = "highlightedPanel"
|
|
14
|
+
}
|
|
2
15
|
export declare const EchoToolBar: () => JSX.Element;
|
|
3
|
-
|
|
16
|
+
declare const _default: React.MemoExoticComponent<() => JSX.Element>;
|
|
17
|
+
export default _default;
|
package/dist/coreApplication/{EchoUserInterfaceContextProvider.d.ts → EchoUserInterfaceStore.d.ts}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import * as zustand from 'zustand';
|
|
3
|
+
export interface EchoUiState {
|
|
3
4
|
activeAppMenuItem: string;
|
|
4
5
|
isLegendActive: boolean | undefined;
|
|
5
6
|
activeTopMenuItem: string;
|
|
@@ -13,9 +14,8 @@ interface EchoUiContextState {
|
|
|
13
14
|
updateModuleName: (newModuleName: string) => void;
|
|
14
15
|
updateShowPlantNameContent: (showPlantNameContent: boolean) => void;
|
|
15
16
|
}
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare const
|
|
21
|
-
export {};
|
|
17
|
+
export declare const useEchoUserInterfaceStore: zustand.UseBoundStore<zustand.StoreApi<EchoUiState>>;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated useEchoUiContext() is deprecated, please use useEchoUserInterfaceStore() instead.
|
|
20
|
+
*/
|
|
21
|
+
export declare const useEchoUiContext: any;
|