@equinor/echo-framework 0.16.1-beta-1 → 0.16.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.16.1-beta-1",
3
+ "version": "0.16.2",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.7.0 < 0.8.0",
6
6
  "@equinor/echo-components": ">= 0.9.0 < 0.10.0",
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { SideSheetOrientation } from '@equinor/echo-components';
3
3
  import { PrepviewEvents } from './context/PrepviewContext';
4
4
  interface PrepviewProps {
@@ -9,7 +9,7 @@ interface PrepviewProps {
9
9
  notificationId?: string;
10
10
  punchId?: string;
11
11
  closePanel: () => void;
12
- workOrderHeaderAction?: React.ReactNode;
12
+ headerAction?: React.ReactNode;
13
13
  events?: PrepviewEvents;
14
14
  }
15
15
  declare function Prepview(props: PrepviewProps): JSX.Element | null;
@@ -2,6 +2,6 @@ import { PrepviewNotificationDto, PrepviewWorkOrderDto, PunchDetails } from '../
2
2
  import * as workOrderApi from './attachment';
3
3
  export { workOrderApi };
4
4
  export declare function getWorkOrder(workOrderId: string): Promise<PrepviewWorkOrderDto>;
5
- export declare function getNotification(instCode: string, notificationId: string): Promise<PrepviewNotificationDto>;
5
+ export declare function getNotification(notificationId: string): Promise<PrepviewNotificationDto>;
6
6
  export declare function getPunch(instCode: string, punchId: string): Promise<PunchDetails>;
7
7
  export declare function getWorkType(instCode: string, workOrderId: string): Promise<string[]>;
@@ -1,5 +1,5 @@
1
1
  export declare function getWorkOrder(workOrderId: string): string;
2
- export declare function getNotification(instCode: string, notificationId: string): string;
2
+ export declare function getNotification(notificationId: string): 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;
@@ -4,3 +4,4 @@ export * from './details';
4
4
  export * from './fileSizeDisplay';
5
5
  export * from './info';
6
6
  export * from './statusLabel/StatusLabel';
7
+ export * from './tagMetaButton/TagMetaButton';
@@ -4,6 +4,7 @@ interface InfoBlockType {
4
4
  stretched?: boolean;
5
5
  fit?: boolean;
6
6
  children: JSX.Element | string[] | string | number;
7
+ contentClassName?: string;
7
8
  }
8
- declare function InfoBlock({ label, stretched, fit, children }: InfoBlockType): JSX.Element;
9
+ declare function InfoBlock({ label, stretched, fit, children, contentClassName, }: InfoBlockType): JSX.Element;
9
10
  export { InfoBlock };
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ type TagMetaButtonProps = {
3
+ tagNo: string;
4
+ description: string;
5
+ legendColor?: string;
6
+ closePanel: () => void;
7
+ instCode: string;
8
+ };
9
+ export declare const TagMetaButton: React.FC<TagMetaButtonProps>;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { NotificationDetails } from '../../types';
3
+ interface NotificationHeaderProps {
4
+ notification: NotificationDetails;
5
+ headerAction?: React.ReactNode;
6
+ }
7
+ declare function NotificationHeader(props: NotificationHeaderProps): JSX.Element | null;
8
+ export { NotificationHeader };
@@ -1 +1 @@
1
- export * from './Header';
1
+ export * from './NotificationHeader';
@@ -3,6 +3,7 @@ import { PrepviewNotificationDto } from '../types';
3
3
  interface NotificationProps {
4
4
  notification: PrepviewNotificationDto;
5
5
  closePanel: () => void;
6
+ headerAction?: React.ReactNode;
6
7
  }
7
8
  declare function Notification(props: NotificationProps): JSX.Element | null;
8
9
  export { Notification };
@@ -11,13 +11,18 @@ export type PrepviewNotificationDto = {
11
11
  };
12
12
  export type NotificationDetails = FetchStatus & {
13
13
  id: string;
14
+ isActive: boolean;
14
15
  type: string;
15
16
  title: string;
16
17
  tagPlantId: string;
17
18
  tagId: string;
19
+ tagCategory: string;
20
+ tagCategoryId: string;
18
21
  plantId: string;
19
22
  createdDateTime: Date;
20
23
  requiredEndDateTime: Date;
24
+ requiredEndDateStatus: string;
25
+ requiredEndDateStatusDescription: string;
21
26
  maintenancePlant: string;
22
27
  planningPlant: string;
23
28
  activeStatusIds: string;
@@ -31,6 +36,7 @@ export type NotificationDetails = FetchStatus & {
31
36
  detectionMethodId: string;
32
37
  failureMechanism: string;
33
38
  longText: string;
39
+ instCode: string;
34
40
  };
35
41
  export type NotificationAdditionalDetails = {
36
42
  attachments: FetchStatus & {
@@ -1,13 +1,13 @@
1
1
  export type PrepviewOperation = {
2
- actualPercentageComplete: number;
3
- actualWorkHours: string;
4
- capacityCount: number;
2
+ operationNumber: string;
3
+ title: string;
4
+ workCenterId: string;
5
5
  activeStatusIds: string;
6
- earliestFinishDateTime: Date;
7
6
  earliestStartDateTime: Date;
8
- operationNumber: string;
7
+ earliestFinishDateTime: Date;
9
8
  plannedDuration: string;
10
9
  plannedWorkHours: string;
11
- title: string;
12
- workCenterId: string;
10
+ actualWorkHours: string;
11
+ actualPercentageComplete: number;
12
+ capacityCount: number;
13
13
  };
@@ -29,6 +29,8 @@ export type WorkOrderDetails = FetchStatus & {
29
29
  locationId: string;
30
30
  longText: string;
31
31
  tagId: string;
32
+ tagCategory: string;
33
+ tagCategoryId: string;
32
34
  workCenterId: string;
33
35
  personResponsible?: string;
34
36
  revisionId?: string;
@@ -1,3 +1,2 @@
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
1
  export declare function getStatusColor(statusIds: string): "#4bb748" | "#fbca36";
3
2
  export declare function getStatusText(statusIds: string): "Completed" | "Active";
@@ -1,2 +1 @@
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";
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { WorkOrderDetails } from '../../types';
3
3
  interface WorkOrderHeaderProps {
4
4
  workOrder: WorkOrderDetails;
5
- workOrderHeaderAction?: React.ReactNode;
5
+ headerAction?: React.ReactNode;
6
6
  }
7
7
  declare function WorkOrderHeader(props: WorkOrderHeaderProps): JSX.Element | null;
8
8
  export { WorkOrderHeader };
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { PrepviewWorkOrderDto } from '../types';
3
3
  interface WorkOrderProps {
4
4
  workOrder: PrepviewWorkOrderDto;
5
5
  closePanel: () => void;
6
- workOrderHeaderAction?: React.ReactNode;
6
+ headerAction?: React.ReactNode;
7
7
  }
8
8
  declare function WorkOrder(props: WorkOrderProps): JSX.Element | null;
9
9
  export { WorkOrder };
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { NotificationDetails } from '../../types';
3
- interface HeaderProps {
4
- notification: NotificationDetails;
5
- }
6
- declare function Header(props: HeaderProps): JSX.Element | null;
7
- export { Header };