@equinor/echo-framework 0.11.0-rc5 → 0.11.0-rc6

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 (35) hide show
  1. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +14 -0
  2. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +15 -0
  3. package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +15 -0
  4. package/dist/components/contextualAppLinks/externalLinkButtons/index.d.ts +2 -0
  5. package/dist/components/prepview/Prepview.d.ts +2 -0
  6. package/dist/components/prepview/api/api.d.ts +1 -0
  7. package/dist/components/prepview/api/resources.d.ts +1 -0
  8. package/dist/components/prepview/common/contentPicker/ContentPicker.d.ts +8 -0
  9. package/dist/components/prepview/common/contentPicker/index.d.ts +1 -0
  10. package/dist/components/prepview/common/details/panel/index.d.ts +0 -2
  11. package/dist/components/prepview/common/index.d.ts +1 -1
  12. package/dist/components/prepview/common/info/index.d.ts +1 -0
  13. package/dist/components/prepview/common/info/list/InfoBlockList.d.ts +6 -0
  14. package/dist/components/prepview/common/info/list/index.d.ts +1 -0
  15. package/dist/components/prepview/context/PrepviewContext.d.ts +8 -0
  16. package/dist/components/prepview/hooks/index.d.ts +1 -0
  17. package/dist/components/prepview/hooks/useIsMobile.d.ts +5 -0
  18. package/dist/components/prepview/panels/history/horizontalView/HorizontalTagHistory.d.ts +9 -0
  19. package/dist/components/prepview/panels/history/horizontalView/index.d.ts +1 -0
  20. package/dist/components/prepview/panels/history/items/Items.d.ts +1 -1
  21. package/dist/components/prepview/panels/tagDocumentRefs/HorizontalDocumentGroups.d.ts +9 -0
  22. package/dist/components/prepview/types/common.d.ts +10 -0
  23. package/dist/components/prepview/types/operation.d.ts +1 -0
  24. package/dist/components/prepview/types/workorder.d.ts +1 -0
  25. package/dist/f4c85313e79b1662.svg +850 -0
  26. package/dist/index.js +3 -3
  27. package/package.json +2 -2
  28. package/dist/components/prepview/common/collapsiblePanel/CollapsiblePanel.d.ts +0 -10
  29. package/dist/components/prepview/common/collapsiblePanel/index.d.ts +0 -1
  30. package/dist/components/prepview/common/details/panel/DetailsPanel.d.ts +0 -12
  31. package/dist/components/prepview/common/details/panel/description/PanelDescription.d.ts +0 -6
  32. package/dist/components/prepview/common/details/panel/description/index.d.ts +0 -1
  33. package/dist/components/prepview/panels/risk/item/RiskItem.d.ts +0 -7
  34. package/dist/components/prepview/panels/risk/item/index.d.ts +0 -1
  35. package/dist/components/prepview/panels/tagInformation/UnsafeFailure.d.ts +0 -7
@@ -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 {};
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ declare 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 {};
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ declare 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,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,6 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import { SideSheetOrientation } from '@equinor/echo-components';
2
3
  interface PrepviewProps {
3
4
  instCode: string;
5
+ orientation: SideSheetOrientation;
4
6
  workOrderId?: string;
5
7
  notificationId?: string;
6
8
  punchId?: string;
@@ -4,3 +4,4 @@ export { workOrderApi };
4
4
  export declare function getWorkOrder(instCode: string, workOrderId: string): Promise<PrepviewWorkOrderDto>;
5
5
  export declare function getNotification(instCode: string, notificationId: string): Promise<PrepviewNotificationDto>;
6
6
  export declare function getPunch(instCode: string, punchId: string): Promise<PunchDetails>;
7
+ export declare function getWorkType(instCode: string, workOrderId: string): Promise<string[]>;
@@ -1,4 +1,5 @@
1
1
  export declare function getWorkOrder(instCode: string, workOrderId: string): string;
2
2
  export declare function getNotification(instCode: string, notificationId: string): string;
3
3
  export declare function getPunch(instCode: string, punchId: string): string;
4
+ export declare function getWorkTypeUrl(instCode: string, workOrderId: string): string;
4
5
  export declare function getWorkorderAttachmentFile(orderTypeId: string, workorderId: string, attachmentId: string): string;
@@ -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';
@@ -1,3 +1 @@
1
- export * from './DetailsPanel';
2
1
  export * from './EmptyDetailsPanel';
3
- export * from './description';
@@ -1,5 +1,5 @@
1
1
  export * from './access';
2
- export * from './collapsiblePanel';
2
+ export * from './contentPicker';
3
3
  export * from './details';
4
4
  export * from './fileSizeDisplay';
5
5
  export * from './info';
@@ -1,2 +1,3 @@
1
1
  export * from './block';
2
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,8 @@
1
+ import React from 'react';
2
+ import { SideSheetOrientation } from '@equinor/echo-components';
3
+ interface PrepviewContext {
4
+ orientation: SideSheetOrientation;
5
+ }
6
+ export declare const PrepviewContext: React.Context<PrepviewContext>;
7
+ export declare const usePrepviewContext: () => PrepviewContext;
8
+ export {};
@@ -1,2 +1,3 @@
1
1
  export * from './useFetch';
2
2
  export * from './useOnClickDownload';
3
+ export * from './useIsMobile';
@@ -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
+ import React from 'react';
2
+ import { PrepviewNotification, PrepviewPunch, PrepviewTagHistoryGroup, PrepviewWorkOrder } from '../../../types';
3
+ interface HorizontalTagHistoryProps {
4
+ notificationGroups: PrepviewTagHistoryGroup<PrepviewNotification>[];
5
+ workOrderGroups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
6
+ punchGroups: PrepviewTagHistoryGroup<PrepviewPunch>[];
7
+ }
8
+ declare const HorizontalTagHistory: React.FC<HorizontalTagHistoryProps>;
9
+ export { HorizontalTagHistory };
@@ -0,0 +1 @@
1
+ export * from './HorizontalTagHistory';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
+ import { PrepviewNotification, PrepviewPunch, PrepviewWorkOrder } from '../../../types';
2
3
  import { WorkItemType } from '../../../utils';
3
- import { PrepviewNotification, PrepviewWorkOrder, PrepviewPunch } from '../../../types';
4
4
  declare type Items = Array<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>;
5
5
  export interface ItemProps {
6
6
  itemType: WorkItemType;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { PrepviewDocumentGroup } from '../../types';
3
+ interface HorizontalDocumentGroupsProps {
4
+ instCode: string;
5
+ documentGroups: Array<PrepviewDocumentGroup>;
6
+ tagNo: string;
7
+ }
8
+ declare function HorizontalDocumentGroups({ instCode, documentGroups, tagNo }: HorizontalDocumentGroupsProps): JSX.Element;
9
+ export { HorizontalDocumentGroups };
@@ -1,3 +1,13 @@
1
+ /// <reference types="react" />
1
2
  export declare type FetchStatus = {
2
3
  statusCode?: 'Forbidden' | string;
3
4
  };
5
+ export declare type ContentPickerGroup = {
6
+ title?: string;
7
+ items: ContentPickerItem[];
8
+ };
9
+ export declare type ContentPickerItem = {
10
+ id: string;
11
+ title: string;
12
+ content: React.ReactNode;
13
+ };
@@ -2,6 +2,7 @@ export declare type PrepviewOperation = {
2
2
  actualPercentageComplete: number;
3
3
  actualWorkHours: string;
4
4
  capacityCount: number;
5
+ activeStatusIds: string;
5
6
  earliestFinishDateTime: Date;
6
7
  earliestStartDateTime: Date;
7
8
  operationNumber: string;
@@ -16,6 +16,7 @@ export declare type WorkOrderDetails = FetchStatus & {
16
16
  changedDateTime: Date;
17
17
  createdDateTime: Date;
18
18
  requiredEndDateTime: Date;
19
+ maintenancePlanDate: Date;
19
20
  maintenancePlant: string;
20
21
  planningPlant: string;
21
22
  activeStatusIds: string;