@equinor/echo-framework 0.10.14 → 0.10.16
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/dist/components/prepview/Prepview.d.ts +1 -0
- package/dist/components/prepview/hooks/index.d.ts +1 -0
- package/dist/components/prepview/hooks/useSetActiveSearchItem.d.ts +10 -0
- package/dist/components/prepview/notification/additionalDetails/AdditionalDetails.d.ts +2 -1
- package/dist/components/prepview/notification/details/Details.d.ts +2 -1
- package/dist/components/prepview/notification/header/Header.d.ts +8 -0
- package/dist/components/prepview/notification/header/index.d.ts +1 -0
- package/dist/components/prepview/notification/index.d.ts +1 -0
- package/dist/components/prepview/punch/details/Details.d.ts +2 -1
- package/dist/components/prepview/punch/header/Header.d.ts +8 -0
- package/dist/components/prepview/punch/header/index.d.ts +1 -0
- package/dist/components/prepview/punch/index.d.ts +1 -0
- package/dist/components/prepview/types/notification.d.ts +1 -1
- package/dist/components/prepview/types/punch.d.ts +1 -0
- package/dist/components/prepview/utils/notification.d.ts +1 -0
- package/dist/components/prepview/utils/punch.d.ts +1 -0
- package/dist/components/prepview/utils/workorder.d.ts +1 -1
- package/dist/components/prepview/workorder/additionalDetails/AdditionalDetails.d.ts +2 -1
- package/dist/components/prepview/workorder/details/Details.d.ts +2 -1
- package/dist/components/prepview/workorder/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/types/hookLibrary.d.ts +1 -1
- package/package.json +3 -3
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
export * from './Header';
|
|
@@ -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;
|
|
@@ -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
|
|
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 };
|