@equinor/echo-framework 0.11.0-rc5 → 0.11.0-rc6
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/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts +14 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts +15 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToTrendingApp.d.ts +15 -0
- package/dist/components/contextualAppLinks/externalLinkButtons/index.d.ts +2 -0
- package/dist/components/prepview/Prepview.d.ts +2 -0
- package/dist/components/prepview/api/api.d.ts +1 -0
- package/dist/components/prepview/api/resources.d.ts +1 -0
- package/dist/components/prepview/common/contentPicker/ContentPicker.d.ts +8 -0
- package/dist/components/prepview/common/contentPicker/index.d.ts +1 -0
- package/dist/components/prepview/common/details/panel/index.d.ts +0 -2
- package/dist/components/prepview/common/index.d.ts +1 -1
- package/dist/components/prepview/common/info/index.d.ts +1 -0
- package/dist/components/prepview/common/info/list/InfoBlockList.d.ts +6 -0
- package/dist/components/prepview/common/info/list/index.d.ts +1 -0
- package/dist/components/prepview/context/PrepviewContext.d.ts +8 -0
- package/dist/components/prepview/hooks/index.d.ts +1 -0
- package/dist/components/prepview/hooks/useIsMobile.d.ts +5 -0
- package/dist/components/prepview/panels/history/horizontalView/HorizontalTagHistory.d.ts +9 -0
- package/dist/components/prepview/panels/history/horizontalView/index.d.ts +1 -0
- package/dist/components/prepview/panels/history/items/Items.d.ts +1 -1
- package/dist/components/prepview/panels/tagDocumentRefs/HorizontalDocumentGroups.d.ts +9 -0
- package/dist/components/prepview/types/common.d.ts +10 -0
- package/dist/components/prepview/types/operation.d.ts +1 -0
- package/dist/components/prepview/types/workorder.d.ts +1 -0
- package/dist/f4c85313e79b1662.svg +850 -0
- package/dist/index.js +3 -3
- package/package.json +2 -2
- package/dist/components/prepview/common/collapsiblePanel/CollapsiblePanel.d.ts +0 -10
- package/dist/components/prepview/common/collapsiblePanel/index.d.ts +0 -1
- package/dist/components/prepview/common/details/panel/DetailsPanel.d.ts +0 -12
- package/dist/components/prepview/common/details/panel/description/PanelDescription.d.ts +0 -6
- package/dist/components/prepview/common/details/panel/description/index.d.ts +0 -1
- package/dist/components/prepview/panels/risk/item/RiskItem.d.ts +0 -7
- package/dist/components/prepview/panels/risk/item/index.d.ts +0 -1
- package/dist/components/prepview/panels/tagInformation/UnsafeFailure.d.ts +0 -7
package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkButtons.helpers.d.ts
CHANGED
|
@@ -43,4 +43,18 @@ export declare function getTagDetailsWithErrorHandling({ tagNo, instCode }: {
|
|
|
43
43
|
tagNo: string;
|
|
44
44
|
instCode?: string;
|
|
45
45
|
}): Promise<getTagDetailsWithErrorHandlingResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Replace all non-aplhanumeric characters (eg: '-' and ' ') with a wildcard (*)
|
|
48
|
+
*
|
|
49
|
+
* @param {string} tagNo The tag number
|
|
50
|
+
* @returns New tag number with non-alpha characters replaced
|
|
51
|
+
*/
|
|
52
|
+
export declare function replaceNonAlphaCharsWithWildcard(tagNo: string | undefined): string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Add a wildcard (*) between number and characters
|
|
55
|
+
*
|
|
56
|
+
* @param {string} tagNo The tag number
|
|
57
|
+
* @returns New tag number with a wildcard (*) between number and characters
|
|
58
|
+
*/
|
|
59
|
+
export declare function addWildcardBetweenNumAndChar(tagNo: string | undefined): string | undefined;
|
|
46
60
|
export {};
|
package/dist/components/contextualAppLinks/externalLinkButtons/externalLinkToConditionAdviser.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type ExternalLinkToConditionAdviserProps = {
|
|
3
|
+
tagNo: string;
|
|
4
|
+
instCode: string;
|
|
5
|
+
loadingStatusCallback?: (isLoading: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* External link button to the Condition Adviser tool.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} tagNo The tag's number to open in the Condition Adviser tool.
|
|
11
|
+
* @param {string} instCode Plant installation code.
|
|
12
|
+
* @returns {React.FC<ExternalLinkToConditionAdviserProps>} React component.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ExternalLinkToConditionAdviser: React.FC<ExternalLinkToConditionAdviserProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type ExternalLinkToTrendingAppProps = {
|
|
3
|
+
tagNo: string;
|
|
4
|
+
instCode: string;
|
|
5
|
+
loadingStatusCallback?: (isLoading: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* External link button to Trending app.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} tagNo The tag's number to open in Trending app.
|
|
11
|
+
* @param {string} instCode Plant installation code.
|
|
12
|
+
* @returns {React.FC<ExternalLinkToTrendingAppProps>} React component.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ExternalLinkToTrendingApp: React.FC<ExternalLinkToTrendingAppProps>;
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './externalLinkToCommApp';
|
|
2
|
+
export * from './externalLinkToConditionAdviser';
|
|
2
3
|
export * from './externalLinkToMcApp';
|
|
3
4
|
export * from './externalLinkToProCoSys';
|
|
4
5
|
export * from './externalLinkToSafeX';
|
|
@@ -6,3 +7,4 @@ export * from './externalLinkToSap';
|
|
|
6
7
|
export * from './externalLinkToSemiDoc';
|
|
7
8
|
export * from './externalLinkToStid';
|
|
8
9
|
export * from './externalLinkToTr2000';
|
|
10
|
+
export * from './externalLinkToTrendingApp';
|
|
@@ -4,3 +4,4 @@ export { workOrderApi };
|
|
|
4
4
|
export declare function getWorkOrder(instCode: string, workOrderId: string): Promise<PrepviewWorkOrderDto>;
|
|
5
5
|
export declare function getNotification(instCode: string, notificationId: string): Promise<PrepviewNotificationDto>;
|
|
6
6
|
export declare function getPunch(instCode: string, punchId: string): Promise<PunchDetails>;
|
|
7
|
+
export declare function getWorkType(instCode: string, workOrderId: string): Promise<string[]>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function getWorkOrder(instCode: string, workOrderId: string): string;
|
|
2
2
|
export declare function getNotification(instCode: string, notificationId: string): string;
|
|
3
3
|
export declare function getPunch(instCode: string, punchId: string): string;
|
|
4
|
+
export declare function getWorkTypeUrl(instCode: string, workOrderId: string): string;
|
|
4
5
|
export declare function getWorkorderAttachmentFile(orderTypeId: string, workorderId: string, attachmentId: string): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import type { ContentPickerGroup } from '../../types';
|
|
3
|
+
interface ContentPickerProps {
|
|
4
|
+
groups: ContentPickerGroup[];
|
|
5
|
+
listItemStyle?: CSSProperties;
|
|
6
|
+
}
|
|
7
|
+
declare function ContentPicker({ groups, listItemStyle }: ContentPickerProps): JSX.Element;
|
|
8
|
+
export { ContentPicker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ContentPicker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InfoBlockList';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SideSheetOrientation } from '@equinor/echo-components';
|
|
3
|
+
interface PrepviewContext {
|
|
4
|
+
orientation: SideSheetOrientation;
|
|
5
|
+
}
|
|
6
|
+
export declare const PrepviewContext: React.Context<PrepviewContext>;
|
|
7
|
+
export declare const usePrepviewContext: () => PrepviewContext;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PrepviewNotification, PrepviewPunch, PrepviewTagHistoryGroup, PrepviewWorkOrder } from '../../../types';
|
|
3
|
+
interface HorizontalTagHistoryProps {
|
|
4
|
+
notificationGroups: PrepviewTagHistoryGroup<PrepviewNotification>[];
|
|
5
|
+
workOrderGroups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
|
|
6
|
+
punchGroups: PrepviewTagHistoryGroup<PrepviewPunch>[];
|
|
7
|
+
}
|
|
8
|
+
declare const HorizontalTagHistory: React.FC<HorizontalTagHistoryProps>;
|
|
9
|
+
export { HorizontalTagHistory };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HorizontalTagHistory';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { PrepviewNotification, PrepviewPunch, PrepviewWorkOrder } from '../../../types';
|
|
2
3
|
import { WorkItemType } from '../../../utils';
|
|
3
|
-
import { PrepviewNotification, PrepviewWorkOrder, PrepviewPunch } from '../../../types';
|
|
4
4
|
declare type Items = Array<PrepviewNotification | PrepviewWorkOrder | PrepviewPunch>;
|
|
5
5
|
export interface ItemProps {
|
|
6
6
|
itemType: WorkItemType;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PrepviewDocumentGroup } from '../../types';
|
|
3
|
+
interface HorizontalDocumentGroupsProps {
|
|
4
|
+
instCode: string;
|
|
5
|
+
documentGroups: Array<PrepviewDocumentGroup>;
|
|
6
|
+
tagNo: string;
|
|
7
|
+
}
|
|
8
|
+
declare function HorizontalDocumentGroups({ instCode, documentGroups, tagNo }: HorizontalDocumentGroupsProps): JSX.Element;
|
|
9
|
+
export { HorizontalDocumentGroups };
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare type FetchStatus = {
|
|
2
3
|
statusCode?: 'Forbidden' | string;
|
|
3
4
|
};
|
|
5
|
+
export declare type ContentPickerGroup = {
|
|
6
|
+
title?: string;
|
|
7
|
+
items: ContentPickerItem[];
|
|
8
|
+
};
|
|
9
|
+
export declare type ContentPickerItem = {
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
content: React.ReactNode;
|
|
13
|
+
};
|