@equinor/echo-framework 0.11.0-rc7 → 0.11.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.
Files changed (133) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +11 -11
  3. package/dist/{f4c85313e79b1662.svg → 1bd97dd2170d0f64.svg} +850 -850
  4. package/dist/{063009f06499d102.svg → 47deeba42768c5d1.svg} +8 -8
  5. package/dist/__tests__/3dButtonUtils.test.d.ts +1 -0
  6. package/dist/components/containers/layouts.d.ts +1 -1
  7. package/dist/components/contextualAppLinks/contextualAppLinks.context.d.ts +1 -1
  8. package/dist/components/contextualAppLinks/contextualAppLinks.d.ts +1 -1
  9. package/dist/components/contextualAppLinks/externalAppsMenu.d.ts +1 -1
  10. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +2 -2
  11. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToCommApp.d.ts +1 -1
  12. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +1 -1
  13. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.d.ts +1 -1
  14. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.d.ts +1 -1
  15. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.d.ts +1 -1
  16. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.d.ts +1 -1
  17. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.d.ts +1 -1
  18. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.d.ts +1 -1
  19. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.d.ts +1 -1
  20. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +1 -1
  21. package/dist/components/contextualAppLinks/externalLinkButtons/iconButtonSpinner.d.ts +1 -1
  22. package/dist/components/contextualAppLinks/externalLinkButtons/trainingCenterForValvesMenu.d.ts +7 -0
  23. package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.d.ts +1 -1
  24. package/dist/components/contextualAppLinks/index.d.ts +1 -1
  25. package/dist/components/contextualAppLinks/internalAppLinks.d.ts +1 -1
  26. package/dist/components/contextualAppLinks/linkButton.d.ts +2 -2
  27. package/dist/components/echo3DButton/3dButtonUtils.d.ts +12 -0
  28. package/dist/components/echo3DButton/OpenIn3dDropdown.d.ts +11 -0
  29. package/dist/components/echo3DButton/echo3DButton.d.ts +18 -0
  30. package/dist/components/echo3DButton/echo3DIconButton.d.ts +26 -0
  31. package/dist/components/echo3DButton/icons/E3DWebBetaIcon.d.ts +6 -0
  32. package/dist/components/echo3DButton/index.d.ts +2 -0
  33. package/dist/components/echo3DButton/missingEcho3dAccessDialog.d.ts +8 -0
  34. package/dist/components/echo3DButton/plantNotAvailableInfo.d.ts +6 -0
  35. package/dist/components/echo3DButton/useGetOpenIn3d.d.ts +5 -0
  36. package/dist/components/echo3DButton/useGoToEcho3DWebLink.d.ts +1 -0
  37. package/dist/components/externalLinkButton/externalLinkButton.d.ts +6 -5
  38. package/dist/components/homePage/HomePage.d.ts +1 -2
  39. package/dist/components/index.d.ts +2 -1
  40. package/dist/components/pageMenu/defaultAccordionItem.d.ts +1 -1
  41. package/dist/components/panel/corePanelLeft.d.ts +1 -4
  42. package/dist/components/panel/corePanelRight.d.ts +1 -4
  43. package/dist/components/prepview/Prepview.d.ts +3 -1
  44. package/dist/components/prepview/api/attachment.d.ts +1 -1
  45. package/dist/components/prepview/api/resources.d.ts +1 -0
  46. package/dist/components/prepview/common/access/request/RequestAccess.d.ts +1 -1
  47. package/dist/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +11 -0
  48. package/dist/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +15 -0
  49. package/dist/components/prepview/common/additionalInformation/tabsPanels/index.d.ts +1 -0
  50. package/dist/components/prepview/common/index.d.ts +1 -0
  51. package/dist/components/prepview/common/info/section/longText/LongTextSection.d.ts +1 -0
  52. package/dist/components/prepview/common/link/Link.d.ts +7 -0
  53. package/dist/components/prepview/context/PrepviewContext.d.ts +1 -0
  54. package/dist/components/prepview/hooks/index.d.ts +1 -0
  55. package/dist/components/prepview/hooks/useFetch.d.ts +1 -1
  56. package/dist/components/prepview/hooks/useOnClickDownload.d.ts +1 -1
  57. package/dist/components/prepview/hooks/useSetActiveSearchItem.d.ts +10 -0
  58. package/dist/components/prepview/notification/details/{Details.d.ts → DetailsNotification.d.ts} +3 -2
  59. package/dist/components/prepview/notification/details/index.d.ts +1 -1
  60. package/dist/components/prepview/notification/header/Header.d.ts +8 -0
  61. package/dist/components/prepview/notification/header/index.d.ts +1 -0
  62. package/dist/components/prepview/notification/index.d.ts +1 -0
  63. package/dist/components/prepview/panels/history/items/Items.d.ts +1 -1
  64. package/dist/components/prepview/punch/details/Details.d.ts +2 -1
  65. package/dist/components/prepview/{workorder → punch}/header/Header.d.ts +2 -2
  66. package/dist/components/prepview/punch/header/index.d.ts +1 -0
  67. package/dist/components/prepview/punch/index.d.ts +1 -0
  68. package/dist/components/prepview/types/attachment.d.ts +1 -1
  69. package/dist/components/prepview/types/common.d.ts +40 -3
  70. package/dist/components/prepview/types/document.d.ts +2 -2
  71. package/dist/components/prepview/types/notification.d.ts +5 -5
  72. package/dist/components/prepview/types/operation.d.ts +1 -1
  73. package/dist/components/prepview/types/punch.d.ts +3 -2
  74. package/dist/components/prepview/types/safety.d.ts +1 -1
  75. package/dist/components/prepview/types/tag.d.ts +2 -2
  76. package/dist/components/prepview/types/workorder.d.ts +5 -5
  77. package/dist/components/prepview/utils/index.d.ts +1 -1
  78. package/dist/components/prepview/utils/logger.d.ts +10 -10
  79. package/dist/components/prepview/utils/notification.d.ts +3 -0
  80. package/dist/components/prepview/utils/punch.d.ts +1 -0
  81. package/dist/components/prepview/utils/url.d.ts +1 -1
  82. package/dist/components/prepview/utils/workorder.d.ts +1 -0
  83. package/dist/components/prepview/workorder/details/{Details.d.ts → DetailsWorkOrder.d.ts} +3 -2
  84. package/dist/components/prepview/workorder/details/index.d.ts +1 -1
  85. package/dist/components/prepview/workorder/header/WorkOrderHeader.d.ts +9 -0
  86. package/dist/components/prepview/workorder/header/index.d.ts +1 -1
  87. package/dist/components/prepview/workorder/index.d.ts +3 -1
  88. package/dist/components/realTimeData/hooks/useRealTimeHub.d.ts +1 -1
  89. package/dist/components/realTimeData/hooks/useSignalRListener.d.ts +1 -1
  90. package/dist/components/tagNumber/tagNumber.d.ts +3 -2
  91. package/dist/coreApplication/EchoBarComponent.d.ts +0 -8
  92. package/dist/coreApplication/EchoSetup.d.ts +1 -1
  93. package/dist/coreApplication/EchoToolBar.d.ts +16 -2
  94. package/dist/coreApplication/EchoTopBar.d.ts +2 -1
  95. package/dist/coreApplication/EchoUserInterfaceStore.d.ts +21 -0
  96. package/dist/coreApplication/index.d.ts +1 -1
  97. package/dist/hooks/index.d.ts +3 -0
  98. package/dist/hooks/useEchoHistory.d.ts +2 -2
  99. package/dist/hooks/useHas3dAccess.d.ts +1 -0
  100. package/dist/hooks/usePlantAvailableIn3d.d.ts +1 -0
  101. package/dist/hooks/usePlantAvailableIn3dWeb.d.ts +1 -0
  102. package/dist/hooks/useScreenValues.d.ts +1 -1
  103. package/dist/hooks/useSemi.d.ts +1 -1
  104. package/dist/hooks/useWindowSize.d.ts +1 -1
  105. package/dist/index.css +1 -1
  106. package/dist/index.d.ts +25 -1
  107. package/dist/index.js +30 -3
  108. package/dist/services/api/api-manager.d.ts +1 -1
  109. package/dist/services/componentRegistry/componentRegistry.d.ts +27 -7
  110. package/dist/services/deviceInformation/deepDeviceInfo.d.ts +41 -0
  111. package/dist/services/deviceInformation/deviceInfo.d.ts +45 -0
  112. package/dist/services/searchItemDetails/searchItemDetails.store.d.ts +26 -0
  113. package/dist/services/searchItemDetails/searchItemDetails.store.test.d.ts +1 -0
  114. package/dist/services/searchItemDetails/searchItemDetailsContainer.d.ts +6 -0
  115. package/dist/theme/themeConst.d.ts +1 -0
  116. package/dist/types/api-proCoSysTagResponse.d.ts +1 -1
  117. package/dist/types/device.d.ts +53 -0
  118. package/dist/types/eventTypes/index.d.ts +1 -0
  119. package/dist/types/eventTypes/searchDetailsContainerEvents.d.ts +3 -0
  120. package/dist/types/hookLibrary.d.ts +20 -5
  121. package/dist/types/legend.d.ts +1 -0
  122. package/dist/utils/arrayUtils.d.ts +8 -0
  123. package/dist/utils/arrayUtils.test.d.ts +1 -0
  124. package/dist/utils/legendUtils.d.ts +7 -4
  125. package/dist/utils/tagUtils.d.ts +23 -0
  126. package/dist/utils/tagUtils.test.d.ts +1 -0
  127. package/package.json +126 -123
  128. package/dist/components/prepview/notification/additionalDetails/AdditionalDetails.d.ts +0 -9
  129. package/dist/components/prepview/notification/additionalDetails/index.d.ts +0 -1
  130. package/dist/components/prepview/utils/status.d.ts +0 -3
  131. package/dist/components/prepview/workorder/additionalDetails/AdditionalDetails.d.ts +0 -9
  132. package/dist/components/prepview/workorder/additionalDetails/index.d.ts +0 -1
  133. package/dist/coreApplication/EchoUserInterfaceContextProvider.d.ts +0 -17
@@ -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;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type RequestAccessProps = {
2
+ type RequestAccessProps = {
3
3
  padding?: boolean;
4
4
  };
5
5
  declare const RequestAccess: React.FC<RequestAccessProps>;
@@ -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';
@@ -3,3 +3,4 @@ export * from './contentPicker';
3
3
  export * from './details';
4
4
  export * from './fileSizeDisplay';
5
5
  export * from './info';
6
+ export * from './link/Link';
@@ -2,6 +2,7 @@
2
2
  interface Props {
3
3
  text: string;
4
4
  toggleLongText: () => void;
5
+ isPunch?: boolean;
5
6
  }
6
7
  declare function LongTextSection({ text, toggleLongText }: Props): JSX.Element;
7
8
  export { LongTextSection };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface LinkProps {
3
+ href: string;
4
+ linkText: string;
5
+ }
6
+ declare const Link: ({ href, linkText }: LinkProps) => JSX.Element;
7
+ export { Link };
@@ -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,3 +1,4 @@
1
1
  export * from './useFetch';
2
2
  export * from './useOnClickDownload';
3
3
  export * from './useIsMobile';
4
+ export * from './useSetActiveSearchItem';
@@ -1,4 +1,4 @@
1
1
  import { DependencyList } from 'react';
2
- declare type FetchCallback<T> = () => Promise<T> | undefined;
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 {};
@@ -1,4 +1,4 @@
1
- declare type DownloadPromise = () => Promise<Blob>;
1
+ type DownloadPromise = () => Promise<Blob>;
2
2
  interface DownloadOnClick {
3
3
  isLoading: boolean;
4
4
  objectUrl?: string;
@@ -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 {};
@@ -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 Details({ details, instCode }: Props): JSX.Element;
9
- export { Details };
9
+ declare function DetailsNotification({ details, instCode, closePanel }: Props): JSX.Element;
10
+ export { DetailsNotification };
@@ -1 +1 @@
1
- export * from './Details';
1
+ export * from './DetailsNotification';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { NotificationDetails } from '../../types';
3
+ interface HeaderProps {
4
+ instCode: string;
5
+ notification: NotificationDetails;
6
+ }
7
+ declare function Header(props: HeaderProps): JSX.Element | null;
8
+ export { Header };
@@ -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
- declare type Items = Array<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>;
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 { WorkOrderDetails } from '../../types';
2
+ import { PunchDetails } from '../../types';
3
3
  interface HeaderProps {
4
4
  instCode: string;
5
- workOrder: WorkOrderDetails;
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';
@@ -3,6 +3,7 @@ import { PunchDetails } from '../types';
3
3
  interface PunchProps {
4
4
  instCode: string;
5
5
  punch: PunchDetails;
6
+ closePanel: () => void;
6
7
  }
7
8
  declare function Punch(props: PunchProps): JSX.Element | null;
8
9
  export { Punch };
@@ -1,4 +1,4 @@
1
- export declare type PrepviewAttachment = {
1
+ export type PrepviewAttachment = {
2
2
  createdDateTime: Date;
3
3
  fileName: string;
4
4
  fileSize: number;
@@ -1,13 +1,50 @@
1
1
  /// <reference types="react" />
2
- export declare type FetchStatus = {
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 declare type ContentPickerGroup = {
13
+ export type ContentPickerGroup = {
6
14
  title?: string;
7
15
  items: ContentPickerItem[];
8
16
  };
9
- export declare type ContentPickerItem = {
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 declare type PrepviewDocumentGroup = {
2
+ export type PrepviewDocumentGroup = {
3
3
  type: string;
4
4
  documents: Array<PrepviewDocument>;
5
5
  };
6
- export declare type PrepviewDocument = {
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 declare type PrepviewNotificationDto = {
8
+ export type PrepviewNotificationDto = {
9
9
  details: NotificationDetails;
10
10
  additionalDetails?: NotificationAdditionalDetails;
11
11
  };
12
- export declare type NotificationDetails = FetchStatus & {
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 declare type NotificationAdditionalDetails = {
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 declare type PrepviewNotification = {
58
+ export type PrepviewNotification = {
59
59
  id: string;
60
60
  activeStatusIds: string;
61
61
  changedDateTime?: Date;
@@ -1,4 +1,4 @@
1
- export declare type PrepviewOperation = {
1
+ export type PrepviewOperation = {
2
2
  actualPercentageComplete: number;
3
3
  actualWorkHours: string;
4
4
  capacityCount: number;
@@ -1,5 +1,5 @@
1
1
  import { FetchStatus } from './common';
2
- export declare type PunchDetails = FetchStatus & {
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 declare type PrepviewPunch = {
19
+ export type PrepviewPunch = {
19
20
  id: string;
20
21
  type: string;
21
22
  statusId: string;
@@ -1,4 +1,4 @@
1
- export declare type PrepviewSafety = {
1
+ export type PrepviewSafety = {
2
2
  title: string;
3
3
  description: string;
4
4
  caseDate: string;
@@ -1,4 +1,4 @@
1
- export declare type PrepviewTagInformation = {
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 declare type PrepviewRelatedTag = {
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 declare type PrepviewWorkOrderDto = {
9
+ export type PrepviewWorkOrderDto = {
10
10
  details: WorkOrderDetails;
11
11
  additionalDetails?: WorkOrderAdditionalDetails;
12
12
  };
13
- export declare type WorkOrderDetails = FetchStatus & {
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 declare type WorkOrderAdditionalDetails = {
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 declare type PrepviewTagHistoryGroup<T = PrepviewNotification | PrepviewWorkOrder | PrepviewPunch> = {
69
+ export type PrepviewTagHistoryGroup<T = PrepviewNotification | PrepviewWorkOrder | PrepviewPunch> = {
70
70
  type: string;
71
71
  items: Array<T>;
72
72
  };
73
- export declare type PrepviewWorkOrder = {
73
+ export type PrepviewWorkOrder = {
74
74
  type: string;
75
75
  title: string;
76
76
  mainWorkCenterId?: string;
@@ -7,4 +7,4 @@ export * from './object';
7
7
  export * from './string';
8
8
  export * from './url';
9
9
  export * from './workorder';
10
- export * from './status';
10
+ export * from './notification';
@@ -4,26 +4,26 @@ export declare enum ObjectName {
4
4
  Synergi = "Synergi",
5
5
  SafeX = "SafeX"
6
6
  }
7
- declare type ActionNames = {
7
+ type ActionNames = {
8
8
  [ObjectName.Module]: ModuleActions;
9
9
  [ObjectName.Synergi]: SynergiActions;
10
10
  [ObjectName.SafeX]: SafeXActions;
11
11
  };
12
- declare type ActionProperties = {
12
+ type ActionProperties = {
13
13
  [ObjectName.Module]: ModuleActionProperties;
14
14
  [ObjectName.Synergi]: SynergiActionProperties;
15
15
  [ObjectName.SafeX]: SafeXActionProperties;
16
16
  };
17
- declare type ModuleActions = 'Started';
18
- declare type ModuleActionProperties = {
17
+ type ModuleActions = 'Started';
18
+ type ModuleActionProperties = {
19
19
  message?: string;
20
20
  };
21
- declare type SynergiActions = 'Application opened';
22
- declare type SynergiActionProperties = {
21
+ type SynergiActions = 'Application opened';
22
+ type SynergiActionProperties = {
23
23
  synergiUrl: string;
24
24
  };
25
- declare type SafeXActions = 'Application opened';
26
- declare type SafeXActionProperties = {
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
- declare type LogLevelKeys = keyof typeof LogLevel;
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
- declare type PrepviewLoggerProps = BaseLoggerProps;
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 declare type Params = Record<string, string | number | boolean>;
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 +1,2 @@
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";
@@ -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 Details({ details, instCode }: Props): JSX.Element;
9
- export { Details };
9
+ declare function DetailsWorkOrder({ details, instCode, closePanel }: Props): JSX.Element;
10
+ export { DetailsWorkOrder };
@@ -1 +1 @@
1
- export * from './Details';
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 './Header';
1
+ export * from './WorkOrderHeader';
@@ -1,8 +1,10 @@
1
- /// <reference types="react" />
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 };
@@ -4,7 +4,7 @@ interface RealTimeData extends SignalRState {
4
4
  metadata?: IMSByName;
5
5
  present?: SignalRData;
6
6
  }
7
- declare type SignalRData = {
7
+ type SignalRData = {
8
8
  time: Date;
9
9
  value: number;
10
10
  status: number;
@@ -1,4 +1,4 @@
1
1
  import { HubConnection } from '@microsoft/signalr';
2
- declare type HubMethod = (...args: any[]) => void;
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 default TagNumber;
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,6 +1,6 @@
1
1
  import { Panel } from '@equinor/echo-core';
2
2
  import React, { ComponentType } from 'react';
3
- export declare type AnyComponent<T> = ComponentType<T>;
3
+ export type AnyComponent<T> = ComponentType<T>;
4
4
  export interface EchoApp {
5
5
  authenticated: boolean;
6
6
  }
@@ -1,3 +1,17 @@
1
- /// <reference types="react" />
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
- export default EchoToolBar;
16
+ declare const _default: React.MemoExoticComponent<() => JSX.Element>;
17
+ export default _default;
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
2
  export declare const EchoTopBar: React.FC;
3
- export default EchoTopBar;
3
+ declare const _default: React.NamedExoticComponent<{}>;
4
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { FunctionComponent } from 'react';
2
+ import * as zustand from 'zustand';
3
+ export interface EchoUiState {
4
+ activeAppMenuItem: string;
5
+ isLegendActive: boolean | undefined;
6
+ activeTopMenuItem: string;
7
+ activeTopMenuComponents: FunctionComponent[];
8
+ moduleName: string;
9
+ showPlantNameContent: boolean;
10
+ updateActiveAppMenuItem: (newActiveAppMenuItem: string) => void;
11
+ updateIsLegendActive: (isLegendActive: boolean) => void;
12
+ updateActiveTopMenuItem: (newActiveTopMenuItem: string) => void;
13
+ updateActiveTopMenuComponents: (newActiveTopMenuComponents: FunctionComponent[]) => void;
14
+ updateModuleName: (newModuleName: string) => void;
15
+ updateShowPlantNameContent: (showPlantNameContent: boolean) => void;
16
+ }
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;
@@ -4,4 +4,4 @@ export * from './EchoContentPanels';
4
4
  export * from './EchoEventHandler';
5
5
  export * from './EchoToolBar';
6
6
  export * from './EchoTopBar';
7
- export * from './EchoUserInterfaceContextProvider';
7
+ export * from './EchoUserInterfaceStore';