@equinor/echo-framework 0.10.0-r18-beta-0 → 0.10.0-r18-beta-2

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 (176) hide show
  1. package/README.md +5 -0
  2. package/dist/__tests__/prepviewUtils.test.d.ts +1 -0
  3. package/dist/components/containers/layouts.d.ts +3 -5
  4. package/dist/components/contextualAppLinks/contextualAppLinks.context.d.ts +1 -1
  5. package/dist/components/contextualAppLinks/contextualAppLinks.d.ts +1 -1
  6. package/dist/components/contextualAppLinks/externalAppsMenu.d.ts +1 -1
  7. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +16 -2
  8. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToCommApp.d.ts +1 -1
  9. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +15 -0
  10. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToMcApp.d.ts +1 -1
  11. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToProCoSys.d.ts +1 -1
  12. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSafeX.d.ts +1 -1
  13. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSap.d.ts +1 -1
  14. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToSemiDoc.d.ts +1 -1
  15. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToStid.d.ts +1 -1
  16. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTr2000.d.ts +1 -1
  17. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +15 -0
  18. package/dist/components/contextualAppLinks/externalLinkButtons/iconButtonSpinner.d.ts +1 -1
  19. package/dist/components/contextualAppLinks/externalLinkButtons/index.d.ts +2 -0
  20. package/dist/components/contextualAppLinks/hooks/useContextualAppLinks.d.ts +1 -1
  21. package/dist/components/contextualAppLinks/index.d.ts +1 -1
  22. package/dist/components/contextualAppLinks/internalAppLinks.d.ts +1 -1
  23. package/dist/components/contextualAppLinks/linkButton.d.ts +2 -2
  24. package/dist/components/externalLinkButton/externalLinkButton.d.ts +6 -5
  25. package/dist/components/homePage/HomePage.d.ts +2 -2
  26. package/dist/components/index.d.ts +1 -0
  27. package/dist/components/pageMenu/defaultAccordionItem.d.ts +1 -1
  28. package/dist/components/panel/corePanelLeft.d.ts +4 -1
  29. package/dist/components/panel/corePanelRight.d.ts +4 -1
  30. package/dist/components/prepview/Prepview.d.ts +14 -0
  31. package/dist/components/prepview/api/api.d.ts +7 -0
  32. package/dist/components/prepview/api/attachment.d.ts +2 -0
  33. package/dist/components/prepview/api/index.d.ts +1 -0
  34. package/dist/components/prepview/api/resources.d.ts +6 -0
  35. package/dist/components/prepview/common/access/handler/StatusHandler.d.ts +8 -0
  36. package/dist/components/prepview/common/access/handler/index.d.ts +1 -0
  37. package/dist/components/prepview/common/access/index.d.ts +2 -0
  38. package/dist/components/prepview/common/access/request/RequestAccess.d.ts +6 -0
  39. package/dist/components/prepview/common/access/request/index.d.ts +1 -0
  40. package/dist/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +11 -0
  41. package/dist/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +15 -0
  42. package/dist/components/prepview/common/additionalInformation/tabsPanels/index.d.ts +1 -0
  43. package/dist/components/prepview/common/contentPicker/ContentPicker.d.ts +8 -0
  44. package/dist/components/prepview/common/contentPicker/index.d.ts +1 -0
  45. package/dist/components/prepview/common/details/accordion/DetailsAccordion.d.ts +8 -0
  46. package/dist/components/prepview/common/details/accordion/index.d.ts +1 -0
  47. package/dist/components/prepview/common/details/index.d.ts +3 -0
  48. package/dist/components/prepview/common/details/loader/DetailsLoader.d.ts +3 -0
  49. package/dist/components/prepview/common/details/loader/index.d.ts +1 -0
  50. package/dist/components/prepview/common/details/panel/EmptyDetailsPanel.d.ts +6 -0
  51. package/dist/components/prepview/common/details/panel/index.d.ts +1 -0
  52. package/dist/components/prepview/common/fileSizeDisplay/FileSizeDisplay.d.ts +11 -0
  53. package/dist/components/prepview/common/fileSizeDisplay/index.d.ts +1 -0
  54. package/dist/components/prepview/common/index.d.ts +5 -0
  55. package/dist/components/prepview/common/info/block/InfoBlock.d.ts +9 -0
  56. package/dist/components/prepview/common/info/block/index.d.ts +1 -0
  57. package/dist/components/prepview/common/info/index.d.ts +3 -0
  58. package/dist/components/prepview/common/info/list/InfoBlockList.d.ts +6 -0
  59. package/dist/components/prepview/common/info/list/index.d.ts +1 -0
  60. package/dist/components/prepview/common/info/section/InfoSection.d.ts +6 -0
  61. package/dist/components/prepview/common/info/section/index.d.ts +2 -0
  62. package/dist/components/prepview/common/info/section/longText/LongTextSection.d.ts +8 -0
  63. package/dist/components/prepview/common/info/section/longText/index.d.ts +1 -0
  64. package/dist/components/prepview/context/PrepviewContext.d.ts +9 -0
  65. package/dist/components/prepview/hooks/index.d.ts +4 -0
  66. package/dist/components/prepview/hooks/useFetch.d.ts +4 -0
  67. package/dist/components/prepview/hooks/useIsMobile.d.ts +5 -0
  68. package/dist/components/prepview/hooks/useOnClickDownload.d.ts +9 -0
  69. package/dist/components/prepview/hooks/useSetActiveSearchItem.d.ts +10 -0
  70. package/dist/components/prepview/index.d.ts +1 -0
  71. package/dist/components/prepview/notification/details/DetailsNotification.d.ts +10 -0
  72. package/dist/components/prepview/notification/details/index.d.ts +1 -0
  73. package/dist/components/prepview/notification/header/Header.d.ts +8 -0
  74. package/dist/components/prepview/notification/header/index.d.ts +1 -0
  75. package/dist/components/prepview/notification/index.d.ts +9 -0
  76. package/dist/components/prepview/panels/attachments/Attachments.d.ts +9 -0
  77. package/dist/components/prepview/panels/attachments/index.d.ts +1 -0
  78. package/dist/components/prepview/panels/history/TagHistory.d.ts +9 -0
  79. package/dist/components/prepview/panels/history/group/TagHistoryGroup.d.ts +10 -0
  80. package/dist/components/prepview/panels/history/group/index.d.ts +1 -0
  81. package/dist/components/prepview/panels/history/horizontalView/HorizontalTagHistory.d.ts +9 -0
  82. package/dist/components/prepview/panels/history/horizontalView/index.d.ts +1 -0
  83. package/dist/components/prepview/panels/history/index.d.ts +1 -0
  84. package/dist/components/prepview/panels/history/items/Items.d.ts +11 -0
  85. package/dist/components/prepview/panels/history/items/NotificationItem.d.ts +7 -0
  86. package/dist/components/prepview/panels/history/items/PunchItem.d.ts +7 -0
  87. package/dist/components/prepview/panels/history/items/WorkOrderItem.d.ts +7 -0
  88. package/dist/components/prepview/panels/history/items/index.d.ts +1 -0
  89. package/dist/components/prepview/panels/index.d.ts +7 -0
  90. package/dist/components/prepview/panels/objects/Objects.d.ts +7 -0
  91. package/dist/components/prepview/panels/objects/index.d.ts +1 -0
  92. package/dist/components/prepview/panels/operations/Operations.d.ts +7 -0
  93. package/dist/components/prepview/panels/operations/index.d.ts +1 -0
  94. package/dist/components/prepview/panels/risk/Risk.d.ts +7 -0
  95. package/dist/components/prepview/panels/risk/index.d.ts +1 -0
  96. package/dist/components/prepview/panels/risk/trafficLight/TrafficLight.d.ts +7 -0
  97. package/dist/components/prepview/panels/risk/trafficLight/index.d.ts +1 -0
  98. package/dist/components/prepview/panels/tagDocumentRefs/HorizontalDocumentGroups.d.ts +9 -0
  99. package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentGroup.d.ts +10 -0
  100. package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentItem.d.ts +9 -0
  101. package/dist/components/prepview/panels/tagDocumentRefs/TagDocumentRefs.d.ts +9 -0
  102. package/dist/components/prepview/panels/tagDocumentRefs/index.d.ts +1 -0
  103. package/dist/components/prepview/panels/tagInformation/TagInformation.d.ts +11 -0
  104. package/dist/components/prepview/panels/tagInformation/index.d.ts +1 -0
  105. package/dist/components/prepview/punch/details/Details.d.ts +10 -0
  106. package/dist/components/prepview/punch/details/index.d.ts +1 -0
  107. package/dist/components/prepview/punch/header/Header.d.ts +8 -0
  108. package/dist/components/prepview/punch/header/index.d.ts +1 -0
  109. package/dist/components/prepview/punch/index.d.ts +9 -0
  110. package/dist/components/prepview/types/attachment.d.ts +7 -0
  111. package/dist/components/prepview/types/common.d.ts +50 -0
  112. package/dist/components/prepview/types/document.d.ts +13 -0
  113. package/dist/components/prepview/types/index.d.ts +9 -0
  114. package/dist/components/prepview/types/notification.d.ts +68 -0
  115. package/dist/components/prepview/types/operation.d.ts +13 -0
  116. package/dist/components/prepview/types/punch.d.ts +27 -0
  117. package/dist/components/prepview/types/safety.d.ts +21 -0
  118. package/dist/components/prepview/types/tag.d.ts +24 -0
  119. package/dist/components/prepview/types/workorder.d.ts +82 -0
  120. package/dist/components/prepview/utils/date.d.ts +5 -0
  121. package/dist/components/prepview/utils/documents.d.ts +1 -0
  122. package/dist/components/prepview/utils/dom.d.ts +1 -0
  123. package/dist/components/prepview/utils/enums/documents.d.ts +14 -0
  124. package/dist/components/prepview/utils/enums/index.d.ts +2 -0
  125. package/dist/components/prepview/utils/enums/tagHistoryItem.d.ts +5 -0
  126. package/dist/components/prepview/utils/index.d.ts +10 -0
  127. package/dist/components/prepview/utils/logger.d.ts +71 -0
  128. package/dist/components/prepview/utils/notification.d.ts +3 -0
  129. package/dist/components/prepview/utils/object.d.ts +1 -0
  130. package/dist/components/prepview/utils/punch.d.ts +1 -0
  131. package/dist/components/prepview/utils/string.d.ts +1 -0
  132. package/dist/components/prepview/utils/url.d.ts +9 -0
  133. package/dist/components/prepview/utils/workorder.d.ts +2 -0
  134. package/dist/components/prepview/workorder/details/DetailsWorkOrder.d.ts +10 -0
  135. package/dist/components/prepview/workorder/details/index.d.ts +1 -0
  136. package/dist/components/prepview/workorder/header/Header.d.ts +9 -0
  137. package/dist/components/prepview/workorder/header/index.d.ts +1 -0
  138. package/dist/components/prepview/workorder/index.d.ts +10 -0
  139. package/dist/components/realTimeData/hooks/useRealTimeHub.d.ts +1 -1
  140. package/dist/components/realTimeData/hooks/useSignalRListener.d.ts +1 -1
  141. package/dist/components/router/echoRoute.d.ts +1 -2
  142. package/dist/components/router/index.d.ts +0 -1
  143. package/dist/components/tagNumber/tagNumber.d.ts +3 -2
  144. package/dist/coreApplication/EchoBarComponent.d.ts +17 -0
  145. package/dist/coreApplication/EchoContent.d.ts +0 -1
  146. package/dist/coreApplication/EchoSetup.d.ts +1 -1
  147. package/dist/coreApplication/EchoUserInterfaceContextProvider.d.ts +13 -0
  148. package/dist/coreApplication/index.d.ts +2 -0
  149. package/dist/f4c85313e79b1662.svg +850 -0
  150. package/dist/hooks/index.d.ts +2 -0
  151. package/dist/hooks/useEchoHistory.d.ts +2 -2
  152. package/dist/hooks/useIsCompactLayout.d.ts +5 -0
  153. package/dist/hooks/useScreenOrientation.d.ts +5 -0
  154. package/dist/hooks/useScreenValues.d.ts +13 -0
  155. package/dist/hooks/useSemi.d.ts +1 -1
  156. package/dist/hooks/useWindowSize.d.ts +9 -0
  157. package/dist/index.d.ts +30 -1
  158. package/dist/index.js +42 -3
  159. package/dist/services/api/api-manager.d.ts +10 -2
  160. package/dist/services/componentRegistry/componentRegistry.d.ts +27 -7
  161. package/dist/services/deviceInformation/deepDeviceInfo.d.ts +41 -0
  162. package/dist/services/deviceInformation/deviceInfo.d.ts +45 -0
  163. package/dist/services/searchItemDetails/searchItemDetails.store.d.ts +26 -0
  164. package/dist/services/searchItemDetails/searchItemDetails.store.test.d.ts +1 -0
  165. package/dist/services/searchItemDetails/searchItemDetailsContainer.d.ts +6 -0
  166. package/dist/types/api-proCoSysTagResponse.d.ts +1 -1
  167. package/dist/types/device.d.ts +53 -0
  168. package/dist/types/eventTypes/index.d.ts +1 -0
  169. package/dist/types/eventTypes/searchDetailsContainerEvents.d.ts +3 -0
  170. package/dist/types/hookLibrary.d.ts +20 -4
  171. package/dist/types/legend.d.ts +1 -0
  172. package/dist/utils/index.d.ts +1 -0
  173. package/dist/utils/legendUtils.d.ts +7 -4
  174. package/dist/utils/searchUtil.d.ts +1 -0
  175. package/package.json +53 -49
  176. package/dist/components/router/useLayout.d.ts +0 -3
package/README.md CHANGED
@@ -4,3 +4,8 @@ Framework provides all the necessary components to put the echo web client toget
4
4
 
5
5
  Check the docs for details:
6
6
  https://github.com/equinor/EchoFramework/blob/main/doc/echo-framework.md
7
+
8
+ ## EchoFramework UI components and tools
9
+
10
+ Framework houses multiple tools for UI bars, panels and menu functionality that can be used in Web and modules. See more in docs:
11
+ https://github.com/equinor/EchoFramework/blob/main/doc/echo-framework-ui.md
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
+ export type LayoutKey = 'main' | 'nativePdf' | 'colorLayout' | '3dweb' | undefined;
2
3
  export interface LayoutProps {
4
+ layoutKey?: string;
3
5
  children: React.ReactNode;
4
6
  }
5
- export declare const MainLayout: React.FC<LayoutProps>;
6
- export declare const ColorLayout: React.FC<LayoutProps>;
7
- export declare const PdfViewerNative: React.FC<LayoutProps>;
8
- export declare const CameraLayout: React.FC<LayoutProps>;
9
- export declare const DefaultLayout: React.FC<LayoutProps>;
7
+ export declare const Layout: React.FC<LayoutProps>;
@@ -1,6 +1,6 @@
1
1
  import { TagSummaryDto } from '@equinor/echo-search';
2
2
  import React from 'react';
3
- export declare type ContextualAppLinksContextType = {
3
+ export type ContextualAppLinksContextType = {
4
4
  tag: TagSummaryDto;
5
5
  instCode: string;
6
6
  } | undefined;
@@ -1,6 +1,6 @@
1
1
  import { TagSummaryDto } from '@equinor/echo-search';
2
2
  import React from 'react';
3
- declare type ContextualAppLinksProps = {
3
+ type ContextualAppLinksProps = {
4
4
  children: React.ReactNode;
5
5
  tag: TagSummaryDto;
6
6
  instCode: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalAppsMenuProp = {
2
+ type ExternalAppsMenuProp = {
3
3
  children?: React.ReactNode;
4
4
  classNames?: {
5
5
  button?: string;
@@ -1,6 +1,6 @@
1
1
  import { TagDetailsDto } from '@equinor/echo-search';
2
2
  import { ProCoSysApiTag } from '../../../types/api-proCoSysTagResponse';
3
- declare type GetTagDetailsAndProCoSysDataResult = {
3
+ type GetTagDetailsAndProCoSysDataResult = {
4
4
  tagDetails: TagDetailsDto | undefined;
5
5
  proCoSysTag: ProCoSysApiTag | undefined;
6
6
  hasError: boolean;
@@ -21,7 +21,7 @@ export declare function getTagDetailsAndProCoSysData({ tagNo, instCode }: {
21
21
  tagNo: any;
22
22
  instCode: any;
23
23
  }): Promise<GetTagDetailsAndProCoSysDataResult>;
24
- declare type getTagDetailsWithErrorHandlingResponse = {
24
+ type getTagDetailsWithErrorHandlingResponse = {
25
25
  tagDetails: TagDetailsDto | undefined;
26
26
  hasError: boolean;
27
27
  };
@@ -43,4 +43,18 @@ export declare function getTagDetailsWithErrorHandling({ tagNo, instCode }: {
43
43
  tagNo: string;
44
44
  instCode?: string;
45
45
  }): Promise<getTagDetailsWithErrorHandlingResponse>;
46
+ /**
47
+ * Replace all non-aplhanumeric characters (eg: '-' and ' ') with a wildcard (*)
48
+ *
49
+ * @param {string} tagNo The tag number
50
+ * @returns New tag number with non-alpha characters replaced
51
+ */
52
+ export declare function replaceNonAlphaCharsWithWildcard(tagNo: string | undefined): string | undefined;
53
+ /**
54
+ * Add a wildcard (*) between number and characters
55
+ *
56
+ * @param {string} tagNo The tag number
57
+ * @returns New tag number with a wildcard (*) between number and characters
58
+ */
59
+ export declare function addWildcardBetweenNumAndChar(tagNo: string | undefined): string | undefined;
46
60
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToCommAppProps = {
2
+ type ExternalLinkToCommAppProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ type ExternalLinkToConditionAdviserProps = {
3
+ tagNo: string;
4
+ instCode: string;
5
+ loadingStatusCallback?: (isLoading: boolean) => void;
6
+ };
7
+ /**
8
+ * External link button to the Condition Adviser tool.
9
+ *
10
+ * @param {string} tagNo The tag's number to open in the Condition Adviser tool.
11
+ * @param {string} instCode Plant installation code.
12
+ * @returns {React.FC<ExternalLinkToConditionAdviserProps>} React component.
13
+ */
14
+ export declare const ExternalLinkToConditionAdviser: React.FC<ExternalLinkToConditionAdviserProps>;
15
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToMcAppProps = {
2
+ type ExternalLinkToMcAppProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToProCoSysProps = {
2
+ type ExternalLinkToProCoSysProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { TagSummaryDto } from '@equinor/echo-search';
2
2
  import React from 'react';
3
- declare type ExternalLinkToSafeXProps = {
3
+ type ExternalLinkToSafeXProps = {
4
4
  tag: TagSummaryDto;
5
5
  };
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToSapProps = {
2
+ type ExternalLinkToSapProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  loadingStatusCallback?: (isLoading: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToSemiDocProps = {
2
+ type ExternalLinkToSemiDocProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  loadingStatusCallback?: (isLoading: boolean) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToStidProps = {
2
+ type ExternalLinkToStidProps = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkToTr2000Props = {
2
+ type ExternalLinkToTr2000Props = {
3
3
  tagNo: string;
4
4
  instCode: string;
5
5
  loadingStatusCallback?: (isLoading: boolean) => void;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ type ExternalLinkToTrendingAppProps = {
3
+ tagNo: string;
4
+ instCode: string;
5
+ loadingStatusCallback?: (isLoading: boolean) => void;
6
+ };
7
+ /**
8
+ * External link button to Trending app.
9
+ *
10
+ * @param {string} tagNo The tag's number to open in Trending app.
11
+ * @param {string} instCode Plant installation code.
12
+ * @returns {React.FC<ExternalLinkToTrendingAppProps>} React component.
13
+ */
14
+ export declare const ExternalLinkToTrendingApp: React.FC<ExternalLinkToTrendingAppProps>;
15
+ export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type SpinnerProps = {
2
+ type SpinnerProps = {
3
3
  size?: 16 | 24 | 32 | 40 | 48;
4
4
  customClassNames?: {
5
5
  spinner?: string;
@@ -1,4 +1,5 @@
1
1
  export * from './externalLinkToCommApp';
2
+ export * from './externalLinkToConditionAdviser';
2
3
  export * from './externalLinkToMcApp';
3
4
  export * from './externalLinkToProCoSys';
4
5
  export * from './externalLinkToSafeX';
@@ -6,3 +7,4 @@ export * from './externalLinkToSap';
6
7
  export * from './externalLinkToSemiDoc';
7
8
  export * from './externalLinkToStid';
8
9
  export * from './externalLinkToTr2000';
10
+ export * from './externalLinkToTrendingApp';
@@ -1,5 +1,5 @@
1
1
  import { ContextualAppLinkRegistration } from '../../../types/extensions';
2
- declare type UseContextualAppLinksOptions = {
2
+ type UseContextualAppLinksOptions = {
3
3
  onlyExternalLinks?: boolean;
4
4
  onlyInternalLinks?: never;
5
5
  } | {
@@ -3,7 +3,7 @@ import { ExternalAppsMenu } from './externalAppsMenu';
3
3
  import { AllExternalLinks } from './externalLinkButtons/allExternalLinks';
4
4
  import { InternalAppLinks } from './internalAppLinks';
5
5
  import { LinkButton } from './linkButton';
6
- declare type ContextualAppLinksCompoundProps = typeof LinksWrapper & {
6
+ type ContextualAppLinksCompoundProps = typeof LinksWrapper & {
7
7
  InternalApps: typeof InternalAppLinks;
8
8
  ExternalAppsMenu: typeof ExternalAppsMenu;
9
9
  AllExternalApps: typeof AllExternalLinks;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type InternalAppLinksProps = {
2
+ type InternalAppLinksProps = {
3
3
  options?: {
4
4
  hiddenAppKeys: string[];
5
5
  };
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- declare type LinkButtonProps = {
2
+ type LinkButtonProps = {
3
3
  label?: string;
4
4
  iconName: string;
5
5
  onClick: OnClickHandler;
6
6
  };
7
- declare type OnClickHandler = (event: React.MouseEvent<HTMLButtonElement>) => void;
7
+ type OnClickHandler = (event: React.MouseEvent<HTMLButtonElement>) => void;
8
8
  /**
9
9
  * Link button to be used in contextual app link component.
10
10
  * Displays an EDS icon with a EDS tooltip. The tooltip will be rendered only if a 'label' is passed.
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
- declare type ExternalLinkButtonProps = AsyncButtonProps | SyncButtonProps;
3
- declare type AsyncButtonProps = BaseProps & {
2
+ type ExternalLinkButtonProps = AsyncButtonProps | SyncButtonProps;
3
+ type AsyncButtonProps = BaseProps & {
4
4
  linkTo?: never;
5
5
  getUrlToOpen: (...args: any[]) => Promise<string | undefined>;
6
6
  };
7
- declare type SyncButtonProps = BaseProps & {
7
+ type SyncButtonProps = BaseProps & {
8
8
  linkTo: string;
9
9
  getUrlToOpen?: never;
10
10
  };
11
- declare type BaseProps = {
11
+ type BaseProps = {
12
12
  buttonName: string;
13
13
  buttonIcon: string;
14
14
  hideText?: boolean;
@@ -20,7 +20,8 @@ declare type BaseProps = {
20
20
  };
21
21
  export declare enum ExternalLinkButtonStyle {
22
22
  Rounded = "Rounded",
23
- Large = "Large"
23
+ Large = "Large",
24
+ MenuItem = "MenuItem"
24
25
  }
25
26
  /**
26
27
  *
@@ -1,2 +1,2 @@
1
- import React from 'react';
2
- export declare const HomePage: React.ReactNode;
1
+ /// <reference types="react" />
2
+ export declare const HomePage: () => JSX.Element;
@@ -14,6 +14,7 @@ export * from './panelButton';
14
14
  export * from './plantSelector';
15
15
  export * from './projectSelector';
16
16
  export * from './realTimeData';
17
+ export * from './prepview';
17
18
  export * from './router';
18
19
  export * from './searchMenu';
19
20
  export * from './tagNumber';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type DefaultAccordionItemProps = {
2
+ type DefaultAccordionItemProps = {
3
3
  isExpanded: boolean;
4
4
  handleClick: () => void;
5
5
  title: string;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
- declare const CorePanelLeft: React.FC;
2
+ interface CorePanelLeftProps {
3
+ isToggleButtonVisible?: boolean;
4
+ }
5
+ declare const CorePanelLeft: React.FC<CorePanelLeftProps>;
3
6
  export default CorePanelLeft;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
- declare const _default: React.NamedExoticComponent<{}>;
2
+ interface CorePanelRightProps {
3
+ isToggleButtonVisible?: boolean;
4
+ }
5
+ declare const _default: React.NamedExoticComponent<CorePanelRightProps>;
3
6
  export default _default;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { SideSheetOrientation } from '@equinor/echo-components';
3
+ interface PrepviewProps {
4
+ instCode: string;
5
+ orientation: SideSheetOrientation;
6
+ workOrderId?: string;
7
+ notificationId?: string;
8
+ punchId?: string;
9
+ closePanel: () => void;
10
+ workOrderHeaderAction?: React.ReactNode;
11
+ }
12
+ declare function Prepview(props: PrepviewProps): JSX.Element | null;
13
+ export { MaintenanceApiNameForWorkOrders } from './utils';
14
+ export { Prepview };
@@ -0,0 +1,7 @@
1
+ import { PrepviewNotificationDto, PrepviewWorkOrderDto, PunchDetails } from '../types';
2
+ import * as workOrderApi from './attachment';
3
+ export { workOrderApi };
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>;
7
+ export declare function getWorkType(instCode: string, workOrderId: string): Promise<string[]>;
@@ -0,0 +1,2 @@
1
+ import { PrepviewAttachment } from '../types';
2
+ export declare function getAttachmentFile(type: string, id: string, attachment: PrepviewAttachment, isWorkOrder: boolean): Promise<Blob>;
@@ -0,0 +1 @@
1
+ export * from './api';
@@ -0,0 +1,6 @@
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;
4
+ export declare function getWorkTypeUrl(instCode: string, workOrderId: string): string;
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,8 @@
1
+ import React from 'react';
2
+ import { FetchStatus } from '../../../types';
3
+ interface Props {
4
+ statusCode: FetchStatus['statusCode'];
5
+ children: React.ReactNode;
6
+ }
7
+ declare function StatusHandler({ statusCode, children }: Props): JSX.Element;
8
+ export { StatusHandler };
@@ -0,0 +1 @@
1
+ export * from './StatusHandler';
@@ -0,0 +1,2 @@
1
+ export * from './handler';
2
+ export * from './request';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ type RequestAccessProps = {
3
+ padding?: boolean;
4
+ };
5
+ declare const RequestAccess: React.FC<RequestAccessProps>;
6
+ export { RequestAccess };
@@ -0,0 +1 @@
1
+ export * from './RequestAccess';
@@ -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';
@@ -0,0 +1,8 @@
1
+ import { CSSProperties } from 'react';
2
+ import type { ContentPickerGroup } from '../../types';
3
+ interface ContentPickerProps {
4
+ groups: ContentPickerGroup[];
5
+ listItemStyle?: CSSProperties;
6
+ }
7
+ declare function ContentPicker({ groups, listItemStyle }: ContentPickerProps): JSX.Element;
8
+ export { ContentPicker };
@@ -0,0 +1 @@
1
+ export * from './ContentPicker';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { AccordionProps } from '@equinor/eds-core-react';
3
+ interface DetailsAccordionProps {
4
+ headerLevel?: AccordionProps['headerLevel'];
5
+ children: React.ReactNode[];
6
+ }
7
+ declare function DetailsAccordion({ headerLevel, children }: DetailsAccordionProps): JSX.Element;
8
+ export { DetailsAccordion };
@@ -0,0 +1 @@
1
+ export * from './DetailsAccordion';
@@ -0,0 +1,3 @@
1
+ export * from './accordion';
2
+ export * from './loader';
3
+ export * from './panel';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare function DetailsLoader(): JSX.Element | null;
3
+ export { DetailsLoader };
@@ -0,0 +1 @@
1
+ export * from './DetailsLoader';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface EmptyDetailsPanelProps {
3
+ text: string;
4
+ }
5
+ declare function EmptyDetailsPanel({ text }: EmptyDetailsPanelProps): JSX.Element;
6
+ export { EmptyDetailsPanel };
@@ -0,0 +1 @@
1
+ export * from './EmptyDetailsPanel';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { FileDto } from '@equinor/echo-search';
3
+ interface FileSizeDisplayProps {
4
+ files: FileDto[];
5
+ fileType?: 'pdf';
6
+ viewCode?: 'v';
7
+ className?: string;
8
+ }
9
+ declare function FileSizeDisplay({ files, fileType, viewCode, className }: FileSizeDisplayProps): JSX.Element | null;
10
+ declare function formatBytes(bytes: number, decimals?: number): string;
11
+ export { FileSizeDisplay, formatBytes };
@@ -0,0 +1 @@
1
+ export * from './FileSizeDisplay';
@@ -0,0 +1,5 @@
1
+ export * from './access';
2
+ export * from './contentPicker';
3
+ export * from './details';
4
+ export * from './fileSizeDisplay';
5
+ export * from './info';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface InfoBlockType {
3
+ label: string;
4
+ stretched?: boolean;
5
+ fit?: boolean;
6
+ children: JSX.Element | string[] | string | number;
7
+ }
8
+ declare function InfoBlock({ label, stretched, fit, children }: InfoBlockType): JSX.Element;
9
+ export { InfoBlock };
@@ -0,0 +1 @@
1
+ export * from './InfoBlock';
@@ -0,0 +1,3 @@
1
+ export * from './block';
2
+ export * from './section';
3
+ export * from './list';
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface InfoBlockListProps {
3
+ items: string[];
4
+ }
5
+ declare function InfoBlockList({ items }: InfoBlockListProps): JSX.Element;
6
+ export { InfoBlockList };
@@ -0,0 +1 @@
1
+ export * from './InfoBlockList';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface InfoSectionProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ declare function InfoSection({ children }: InfoSectionProps): JSX.Element;
6
+ export { InfoSection };
@@ -0,0 +1,2 @@
1
+ export * from './InfoSection';
2
+ export * from './longText';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ text: string;
4
+ toggleLongText: () => void;
5
+ isPunch?: boolean;
6
+ }
7
+ declare function LongTextSection({ text, toggleLongText }: Props): JSX.Element;
8
+ export { LongTextSection };
@@ -0,0 +1 @@
1
+ export * from './LongTextSection';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { SideSheetOrientation } from '@equinor/echo-components';
3
+ interface PrepviewContext {
4
+ orientation: SideSheetOrientation;
5
+ isWorkOrder: boolean;
6
+ }
7
+ export declare const PrepviewContext: React.Context<PrepviewContext>;
8
+ export declare const usePrepviewContext: () => PrepviewContext;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './useFetch';
2
+ export * from './useOnClickDownload';
3
+ export * from './useIsMobile';
4
+ export * from './useSetActiveSearchItem';
@@ -0,0 +1,4 @@
1
+ import { DependencyList } from 'react';
2
+ type FetchCallback<T> = () => Promise<T> | undefined;
3
+ export declare function useFetch<TError = unknown, T = unknown>(callback: FetchCallback<T>, deps?: DependencyList): [data: T | undefined, isLoading: boolean, error: TError | unknown];
4
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Hook for checking if page is loaded from mobile device.
3
+ * @returns boolean true if on mobile.
4
+ */
5
+ export declare function useIsMobile(): boolean;
@@ -0,0 +1,9 @@
1
+ type DownloadPromise = () => Promise<Blob>;
2
+ interface DownloadOnClick {
3
+ isLoading: boolean;
4
+ objectUrl?: string;
5
+ error?: unknown;
6
+ downloadOnClick: () => Promise<void>;
7
+ }
8
+ declare function useOnClickDownload(downloadBlob: DownloadPromise, fileName?: string): DownloadOnClick;
9
+ export { useOnClickDownload };
@@ -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 {};
@@ -0,0 +1 @@
1
+ export * from './Prepview';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { NotificationDetails } from '../../types';
3
+ export interface Props {
4
+ details: NotificationDetails;
5
+ instCode: string;
6
+ isLoading?: boolean;
7
+ closePanel: () => void;
8
+ }
9
+ declare function DetailsNotification({ details, instCode, closePanel }: Props): JSX.Element;
10
+ export { DetailsNotification };