@equinor/echo-framework 0.18.7 → 0.18.9
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/index.cjs.js +1 -1
- package/package.json +1 -1
- package/src/lib/components/prepview/Prepview.d.ts +9 -5
- package/src/lib/components/prepview/common/additionalInformation/AdditionalDetails.d.ts +1 -2
- package/src/lib/components/prepview/common/additionalInformation/tabsPanels/NotificationPanels.d.ts +1 -2
- package/src/lib/components/prepview/common/additionalInformation/tabsPanels/TabsPanels.d.ts +2 -3
- package/src/lib/components/prepview/common/additionalInformation/tabsPanels/WorkOrderPanels.d.ts +1 -2
- package/src/lib/components/prepview/context/PrepviewContext.d.ts +4 -4
- package/src/lib/components/prepview/hooks/index.d.ts +0 -1
- package/src/lib/components/prepview/notification/Notification.d.ts +0 -1
- package/src/lib/components/prepview/notification/details/DetailsNotification.d.ts +1 -2
- package/src/lib/components/prepview/panels/history/items/Items.d.ts +1 -1
- package/src/lib/components/prepview/panels/history/items/PunchItem.d.ts +1 -1
- package/src/lib/components/prepview/punch/Punch.d.ts +0 -1
- package/src/lib/components/prepview/punch/details/Details.d.ts +2 -3
- package/src/lib/components/prepview/types/shared.d.ts +7 -11
- package/src/lib/components/prepview/workorder/WorkOrder.d.ts +3 -1
- package/src/lib/components/prepview/workorder/details/DetailsWorkOrder.d.ts +1 -2
- package/src/lib/components/prepview/workorder/header/WorkOrderHeader.d.ts +4 -1
- package/src/lib/components/prepview/hooks/useSetActiveSearchItem.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { ColorMap, SideSheetOrientation } from '@equinor/echo-components';
|
|
3
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColorMap, SideSheetOrientation, WorkOrderDateType } from '@equinor/echo-components';
|
|
3
|
+
import { WorkItemType } from './utils';
|
|
4
|
+
import { HistoricNotificationItem, HistoricPunchItem, HistoricWorkOrderItem, ItemTypes } from './types';
|
|
4
5
|
interface PrepviewProps {
|
|
5
6
|
orientation: SideSheetOrientation;
|
|
6
7
|
instCode?: string;
|
|
@@ -8,11 +9,14 @@ interface PrepviewProps {
|
|
|
8
9
|
workOrderOperationId?: string;
|
|
9
10
|
notificationId?: string;
|
|
10
11
|
punchId?: string;
|
|
11
|
-
|
|
12
|
+
tagClicked: (tagId: string, instCode: string) => void;
|
|
13
|
+
packageClicked?: (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
|
|
14
|
+
historicItemClicked?: (item: HistoricNotificationItem | HistoricWorkOrderItem | HistoricPunchItem, itemType: WorkItemType) => void;
|
|
12
15
|
headerAction?: React.ReactNode;
|
|
13
|
-
events?: PrepviewEvents;
|
|
14
16
|
colorMap?: ColorMap;
|
|
17
|
+
workOrderDateType?: WorkOrderDateType;
|
|
15
18
|
}
|
|
16
19
|
declare function Prepview(props: PrepviewProps): JSX.Element | null;
|
|
17
20
|
export { MaintenanceApiNameForWorkOrders, WorkItemType } from './utils';
|
|
21
|
+
export * from './types/shared';
|
|
18
22
|
export { Prepview };
|
|
@@ -2,7 +2,6 @@ import type { NotificationDetails, WorkOrderDetails } from '../../types';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
workOrderDetails?: WorkOrderDetails;
|
|
4
4
|
notificationDetails?: NotificationDetails;
|
|
5
|
-
closePanel: () => void;
|
|
6
5
|
}
|
|
7
|
-
declare function AdditionalDetails({ workOrderDetails, notificationDetails,
|
|
6
|
+
declare function AdditionalDetails({ workOrderDetails, notificationDetails, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export { AdditionalDetails };
|
package/src/lib/components/prepview/common/additionalInformation/tabsPanels/NotificationPanels.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { NotificationDetails } from '../../../types';
|
|
2
2
|
interface NotificationPanelsProps {
|
|
3
3
|
details: NotificationDetails;
|
|
4
|
-
closePanel: () => void;
|
|
5
4
|
}
|
|
6
|
-
declare function NotificationPanels({ details
|
|
5
|
+
declare function NotificationPanels({ details }: NotificationPanelsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export { NotificationPanels };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { NotificationDetails, WorkOrderDetails } from '../../../types';
|
|
3
3
|
interface Props {
|
|
4
4
|
workOrderDetails?: WorkOrderDetails;
|
|
5
5
|
notificationDetails?: NotificationDetails;
|
|
6
|
-
closePanel: () => void;
|
|
7
6
|
}
|
|
8
|
-
declare function TabsPanels({ workOrderDetails, notificationDetails
|
|
7
|
+
declare function TabsPanels({ workOrderDetails, notificationDetails }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
9
8
|
interface TabsListProps {
|
|
10
9
|
tabListRef: React.RefObject<HTMLDivElement>;
|
|
11
10
|
}
|
package/src/lib/components/prepview/common/additionalInformation/tabsPanels/WorkOrderPanels.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WorkOrderDetails } from '../../../types';
|
|
2
2
|
interface WorkOrderPanelsProps {
|
|
3
3
|
details: WorkOrderDetails;
|
|
4
|
-
closePanel: () => void;
|
|
5
4
|
}
|
|
6
|
-
declare function WorkOrderPanels({ details
|
|
5
|
+
declare function WorkOrderPanels({ details }: WorkOrderPanelsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export { WorkOrderPanels };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ColorMap, SideSheetOrientation } from '@equinor/echo-components';
|
|
3
|
+
import { HistoricNotificationItem, HistoricPunchItem, HistoricWorkOrderItem, ItemTypes } from '../types';
|
|
3
4
|
import { WorkItemType } from '../utils';
|
|
4
|
-
export interface PrepviewEvents {
|
|
5
|
-
onClickHistoricItem?: (instCode: string, id: string, type: WorkItemType) => void;
|
|
6
|
-
}
|
|
7
5
|
interface PrepviewContext {
|
|
8
6
|
instCode: string;
|
|
9
7
|
orientation: SideSheetOrientation;
|
|
10
8
|
isWorkOrder: boolean;
|
|
11
9
|
workOrderOperationId?: string;
|
|
12
|
-
events: PrepviewEvents;
|
|
13
10
|
colorMap?: ColorMap;
|
|
11
|
+
tagClicked: (tagId: string, instCode: string) => void;
|
|
12
|
+
packageClicked?: (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
|
|
13
|
+
historicItemClicked?: (item: HistoricNotificationItem | HistoricWorkOrderItem | HistoricPunchItem, itemType: WorkItemType) => void;
|
|
14
14
|
}
|
|
15
15
|
export declare const PrepviewContext: React.Context<PrepviewContext>;
|
|
16
16
|
export declare const usePrepviewContext: () => PrepviewContext;
|
|
@@ -3,7 +3,6 @@ import type { NotificationDetails } from '../../types';
|
|
|
3
3
|
export interface Props {
|
|
4
4
|
details: NotificationDetails;
|
|
5
5
|
isLoading?: boolean;
|
|
6
|
-
closePanel: () => void;
|
|
7
6
|
}
|
|
8
|
-
declare function DetailsNotification({ details
|
|
7
|
+
declare function DetailsNotification({ details }: Props): JSX.Element;
|
|
9
8
|
export { DetailsNotification };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { HistoricNotificationItem, HistoricWorkOrderItem, HistoricPunchItem } from '../../../types';
|
|
3
3
|
import { WorkItemType } from '../../../utils';
|
|
4
4
|
type Items = Array<HistoricNotificationItem | HistoricWorkOrderItem | HistoricPunchItem>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
2
|
+
import { PunchDetails } from '../../types';
|
|
3
3
|
export interface Props {
|
|
4
4
|
details: PunchDetails;
|
|
5
5
|
isLoading?: boolean;
|
|
6
|
-
closePanel: () => void;
|
|
7
6
|
}
|
|
8
|
-
declare function Details({ details
|
|
7
|
+
declare function Details({ details }: Props): JSX.Element;
|
|
9
8
|
export { Details };
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FileDto } from "@equinor/echo-search";
|
|
3
|
+
export declare enum ItemTypes {
|
|
4
|
+
tag = "tag",
|
|
5
|
+
mcPack = "mcPack",
|
|
6
|
+
commPack = "commPack"
|
|
7
|
+
}
|
|
3
8
|
export type FetchStatus = {
|
|
4
9
|
statusCode?: 'Forbidden' | number;
|
|
5
10
|
};
|
|
@@ -107,17 +112,7 @@ export type HistoricWorkOrderItem = {
|
|
|
107
112
|
};
|
|
108
113
|
export type PunchGroup = {
|
|
109
114
|
type: string;
|
|
110
|
-
items: [
|
|
111
|
-
{
|
|
112
|
-
id: string;
|
|
113
|
-
type: string;
|
|
114
|
-
statusId: string;
|
|
115
|
-
tagNo: string;
|
|
116
|
-
tagArea: string;
|
|
117
|
-
description: string;
|
|
118
|
-
updatedAt: Date;
|
|
119
|
-
}
|
|
120
|
-
];
|
|
115
|
+
items: HistoricPunchItem[];
|
|
121
116
|
};
|
|
122
117
|
export type HistoricPunchItem = {
|
|
123
118
|
id: string;
|
|
@@ -127,4 +122,5 @@ export type HistoricPunchItem = {
|
|
|
127
122
|
tagArea: string;
|
|
128
123
|
description: string;
|
|
129
124
|
updatedAt: Date;
|
|
125
|
+
instCode: string;
|
|
130
126
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ColorMap, WorkOrderDateType } from '@equinor/echo-components';
|
|
2
3
|
interface WorkOrderProps {
|
|
3
4
|
workOrderId: string;
|
|
4
|
-
closePanel: () => void;
|
|
5
5
|
headerAction?: React.ReactNode;
|
|
6
|
+
colorMap?: ColorMap;
|
|
7
|
+
workOrderDateType?: WorkOrderDateType;
|
|
6
8
|
}
|
|
7
9
|
declare function WorkOrder(props: WorkOrderProps): JSX.Element | null;
|
|
8
10
|
export { WorkOrder };
|
|
@@ -3,7 +3,6 @@ import type { WorkOrderDetails } from '../../types';
|
|
|
3
3
|
export interface Props {
|
|
4
4
|
workOrderDetails: WorkOrderDetails;
|
|
5
5
|
isLoading?: boolean;
|
|
6
|
-
closePanel: () => void;
|
|
7
6
|
}
|
|
8
|
-
declare function DetailsWorkOrder({ workOrderDetails
|
|
7
|
+
declare function DetailsWorkOrder({ workOrderDetails }: Props): JSX.Element;
|
|
9
8
|
export { DetailsWorkOrder };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ColorMap, WorkOrderDateType } from '@equinor/echo-components';
|
|
2
3
|
import { WorkOrderDetails } from '../../types';
|
|
3
4
|
interface WorkOrderHeaderProps {
|
|
4
5
|
workOrderDetails: WorkOrderDetails;
|
|
5
6
|
headerAction?: React.ReactNode;
|
|
7
|
+
colorMap?: ColorMap;
|
|
8
|
+
workOrderDateType?: WorkOrderDateType;
|
|
6
9
|
}
|
|
7
|
-
declare function WorkOrderHeader(
|
|
10
|
+
declare function WorkOrderHeader(props: WorkOrderHeaderProps): JSX.Element | null;
|
|
8
11
|
export { WorkOrderHeader };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum ItemTypes {
|
|
2
|
-
tag = "tag",
|
|
3
|
-
mcPack = "mcPack",
|
|
4
|
-
commPack = "commPack"
|
|
5
|
-
}
|
|
6
|
-
type ActiveSearchFunction = (type: ItemTypes, itemNumber: string, instCode: string) => void;
|
|
7
|
-
type ActivePackageSearchFunction = (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
|
|
8
|
-
export declare function useSetActiveSearchItem(): ActiveSearchFunction;
|
|
9
|
-
export declare function useSetActivePackageItemInState(): ActivePackageSearchFunction;
|
|
10
|
-
export {};
|