@equinor/echo-framework 0.18.9 → 0.18.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.18.9",
3
+ "version": "0.18.10",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.7.0 < 0.8.0",
6
6
  "@equinor/echo-components": ">= 0.11.0 < 0.12.0",
package/src/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { getLegendStatusColor } from './lib/feature/legend/utils/legendUtils';
4
4
  import './lib/globalStyles.css';
5
5
  import { getPlantsInfo, getTagDetails } from './lib/services/api';
6
6
  export * from './lib/components';
7
+ export { PrepviewButton } from './lib/components/prepviewButton/prepviewButton';
7
8
  export { RequestProCoSysAccess } from './lib/components/requestAccess/RequestProCoSysAccess';
8
9
  export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAccess';
9
10
  export * from './lib/coreApplication';
@@ -10,7 +10,6 @@ export * from './footer';
10
10
  export * from './fullScreenButtons';
11
11
  export * from './labelledValueGrid';
12
12
  export * from './lazyLoading';
13
- export { ListItem } from './listItem/listItem';
14
13
  export * from './listItemAdditionalInfoRow/listItemAdditionalInfoRow';
15
14
  export * from './mediator';
16
15
  export { OpenIn3dWarningDialog } from './openIn3d/OpenIn3dWarningDialog';
@@ -21,6 +20,7 @@ export * from './panel';
21
20
  export * from './panelButton';
22
21
  export * from './plantSelector';
23
22
  export * from './prepview';
23
+ export * from './prepviewButton';
24
24
  export * from './projectSelector';
25
25
  export * from './realTimeData';
26
26
  export * from './router';
@@ -1,7 +1,9 @@
1
- import { NotificationDetails, PrepviewAttachment, PrepviewDocumentGroup, PrepviewHistory, PrepviewObject, PrepviewOperation, PrepviewSafety, PrepviewTagInformation, PunchDetails, WorkOrderDetails } from '../types';
1
+ import { NotificationDetails, PrepviewAttachment, PrepviewDocumentGroup, PrepviewHistory, PrepviewObject, PrepviewOperation, PrepviewSafety, PrepviewTagInformation, PunchDetails, SubseaNotificationDetails, SubseaWorkOrderDetails, WorkOrderDetails } from '../types';
2
2
  export declare function getWorkOrderDetails(workOrderId: string): Promise<WorkOrderDetails>;
3
+ export declare function getSubseaWorkOrderDetails(workOrderId: string): Promise<SubseaWorkOrderDetails>;
3
4
  export declare function getWorkType(workOrderId: string): Promise<string[]>;
4
5
  export declare function getNotificationDetails(notificationId: string): Promise<NotificationDetails>;
6
+ export declare function getSubseaNotificationDetails(notificationId: string): Promise<SubseaNotificationDetails>;
5
7
  export declare function getPunchDetails(instCode: string, punchId: string): Promise<PunchDetails>;
6
8
  export declare function getTagInformation(itemId: string, isWorkOrder?: boolean): Promise<PrepviewTagInformation>;
7
9
  export declare function getAttachments(itemId: string, isWorkOrder?: boolean): Promise<PrepviewAttachment[]>;
@@ -1,6 +1,8 @@
1
1
  export declare function getWorkOrder(workOrderId: string): string;
2
+ export declare function getSubseaWorkOrder(workOrderId: string): string;
2
3
  export declare function getWorkTypeUrl(workOrderId: string): string;
3
4
  export declare function getNotification(maintenanceRecordId: string): string;
5
+ export declare function getSubseaNotification(maintenanceRecordId: string): string;
4
6
  export declare function getPunch(instCode: string, punchId: string): string;
5
7
  export declare function getTagInformation(itemId: string, isWorkOrder?: boolean): string;
6
8
  export declare function getAttachments(itemId: string, isWorkOrder?: boolean): string;
@@ -3,6 +3,7 @@ import type { ContentPickerGroup } from '../../types';
3
3
  interface ContentPickerProps {
4
4
  groups: ContentPickerGroup[];
5
5
  listItemStyle?: CSSProperties;
6
+ infoLabelText?: string;
6
7
  }
7
- declare function ContentPicker({ groups, listItemStyle }: ContentPickerProps): import("react/jsx-runtime").JSX.Element;
8
+ declare function ContentPicker({ groups, listItemStyle, infoLabelText, }: ContentPickerProps): import("react/jsx-runtime").JSX.Element;
8
9
  export { ContentPicker };
@@ -1,3 +1,4 @@
1
1
  export * from './block';
2
2
  export * from './section';
3
3
  export * from './list';
4
+ export * from './label';
@@ -0,0 +1,5 @@
1
+ interface InfoLabelProps {
2
+ text: string;
3
+ }
4
+ declare function InfoLabel({ text }: InfoLabelProps): import("react/jsx-runtime").JSX.Element;
5
+ export { InfoLabel };
@@ -0,0 +1 @@
1
+ export * from './InfoLabel';
@@ -3,5 +3,5 @@ interface HorizontalDocumentGroupsProps {
3
3
  documentGroups: Array<PrepviewDocumentGroup>;
4
4
  tagNo: string;
5
5
  }
6
- declare function HorizontalDocumentGroups({ documentGroups, tagNo }: HorizontalDocumentGroupsProps): import("react/jsx-runtime").JSX.Element;
6
+ declare function HorizontalDocumentGroups({ documentGroups, tagNo, }: HorizontalDocumentGroupsProps): import("react/jsx-runtime").JSX.Element;
7
7
  export { HorizontalDocumentGroups };
@@ -28,3 +28,8 @@ export type NotificationDetails = FetchStatus & {
28
28
  longText: string;
29
29
  instCode: string;
30
30
  };
31
+ export type SubseaNotificationDetails = FetchStatus & {
32
+ hasAttachment: boolean;
33
+ hasB30Document: boolean;
34
+ hasActivityLongText: boolean;
35
+ };
@@ -34,6 +34,11 @@ export type WorkOrderDetails = FetchStatus & {
34
34
  longText: string;
35
35
  instCode: string;
36
36
  };
37
+ export type SubseaWorkOrderDetails = FetchStatus & {
38
+ hasPrts: boolean;
39
+ hasB30Document: boolean;
40
+ recordTypeIds?: string[];
41
+ };
37
42
  export type PrepviewOperation = {
38
43
  operationNumber: string;
39
44
  title: string;
@@ -0,0 +1 @@
1
+ export * from './prepviewButton';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface PrepviewButtonProps {
3
+ workOrderId?: string | undefined;
4
+ notificationId?: string | undefined;
5
+ punchId?: string | undefined;
6
+ }
7
+ export declare const PrepviewButton: React.FC<PrepviewButtonProps>;
@@ -1,7 +1,9 @@
1
1
  export type { FullScreenModeEvent } from './fullScreenModeEvent';
2
2
  export type { LeftPanelNavigationUpdateEvent } from './leftPanelNavigationUpdateEvent';
3
3
  export type { LegendChangedEvent, LegendStatusesChangedEvent } from './legendEvent';
4
+ export type { OnMainSearchTriggerEvent } from './onMainSearchTriggerEvent';
4
5
  export type { PlantEvent } from './plantEvent';
6
+ export type { PrepviewEvent } from './prepviewEvent';
5
7
  export type { SearchItemDetailsClosedEvent } from './searchDetailsContainerEvents';
6
8
  export type { SetMainSearchTextEvent } from './setMainSearchTextEvent';
7
9
  export type { ToasterEvent } from './toasterEvent';
@@ -0,0 +1,3 @@
1
+ export interface OnClickTagsTriggerEvent {
2
+ tagId: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface OnMainSearchTriggerEvent {
2
+ searchText: string;
3
+ }
@@ -0,0 +1,5 @@
1
+ export interface PrepviewEvent {
2
+ notificationId?: string;
3
+ workOrderId?: string;
4
+ punchId?: string;
5
+ }
@@ -1,8 +1,7 @@
1
1
  export declare enum InternalApplicationLinks {
2
2
  Ayelix = "/ayelix",
3
3
  Events = "/events",
4
- OfflineCamera = "/camera",
5
- OnlineCamera = "/newcamera",
4
+ TagScanner = "/tagscanner",
6
5
  MyTasks = "/MyTasks",
7
6
  Media = "/media",
8
7
  MissionPlanner = "/missionplanner",
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- interface ListItemProps {
3
- title: string;
4
- showIcon?: boolean;
5
- iconName?: string;
6
- iconColor?: string;
7
- iconBackgroundColor?: string;
8
- visualText?: string;
9
- description?: string;
10
- additionalInfo?: JSX.Element;
11
- label?: JSX.Element;
12
- }
13
- export declare const ListItem: React.FC<ListItemProps>;
14
- export {};