@equinor/echo-framework 0.10.15 → 0.10.17

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.
@@ -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
  *
@@ -6,6 +6,7 @@ interface PrepviewProps {
6
6
  workOrderId?: string;
7
7
  notificationId?: string;
8
8
  punchId?: string;
9
+ closePanel: () => void;
9
10
  }
10
11
  declare function Prepview(props: PrepviewProps): JSX.Element | null;
11
12
  export { MaintenanceApiNameForWorkOrders } from './utils';
@@ -1,3 +1,4 @@
1
1
  export * from './useFetch';
2
2
  export * from './useOnClickDownload';
3
3
  export * from './useIsMobile';
4
+ export * from './useSetActiveSearchItem';
@@ -0,0 +1,10 @@
1
+ export declare enum ItemTypes {
2
+ tag = "tag",
3
+ mcPack = "mcPack",
4
+ commPack = "commPack"
5
+ }
6
+ declare type ActiveSearchFunction = (type: ItemTypes, itemNumber: string, instCode: string) => void;
7
+ declare 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 @@ interface Props {
4
4
  instCode: string;
5
5
  details: NotificationDetails;
6
6
  additionalDetails: NotificationAdditionalDetails;
7
+ closePanel: () => void;
7
8
  }
8
- declare function AdditionalDetails({ instCode, details, additionalDetails }: Props): JSX.Element;
9
+ declare function AdditionalDetails({ instCode, details, additionalDetails, closePanel }: Props): JSX.Element;
9
10
  export { AdditionalDetails };
@@ -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
+ declare function Details({ details, instCode, closePanel }: Props): JSX.Element;
9
10
  export { Details };
@@ -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 };
@@ -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 };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { PunchDetails } from '../../types';
3
+ interface HeaderProps {
4
+ instCode: string;
5
+ punch: PunchDetails;
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 { 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 };
@@ -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;
@@ -13,6 +13,7 @@ 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
19
  export declare type PrepviewPunch = {
@@ -0,0 +1 @@
1
+ export declare function setNotificationIconName(type: string): "notifications_m1" | "notifications_m2" | "notifications_m3" | "notifications_m4" | "notifications_m5" | "notifications_m6" | "notifications_m9" | "notifications_main_group";
@@ -0,0 +1 @@
1
+ export declare function setPunchIconName(type: string): string;
@@ -1,2 +1,2 @@
1
1
  export declare const MaintenanceApiNameForWorkOrders: Record<string, string>;
2
- export declare function setIconName(orderType: string): "workorders_pm01" | "workorders_pm02" | "workorders_pm03" | "workorders_pm04" | "workorders_pm05" | "workorders_pm06" | "workorders_pm10" | "workorders_pm15" | "workorders_pm20" | "workorders_main_group";
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 @@ interface Props {
4
4
  instCode: string;
5
5
  details: WorkOrderDetails;
6
6
  additionalDetails: WorkOrderAdditionalDetails;
7
+ closePanel: () => void;
7
8
  }
8
- declare function AdditionalDetails({ instCode, details, additionalDetails }: Props): JSX.Element;
9
+ declare function AdditionalDetails({ instCode, details, additionalDetails, closePanel }: Props): JSX.Element;
9
10
  export { AdditionalDetails };
@@ -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
+ declare function Details({ details, instCode, closePanel }: Props): JSX.Element;
9
10
  export { Details };
@@ -3,6 +3,7 @@ import { PrepviewWorkOrderDto } from '../types';
3
3
  interface WorkOrderProps {
4
4
  instCode: string;
5
5
  workOrder: PrepviewWorkOrderDto;
6
+ closePanel: () => void;
6
7
  }
7
8
  declare function WorkOrder(props: WorkOrderProps): JSX.Element | null;
8
9
  export { WorkOrder };