@equinor/echo-framework 0.10.9 → 0.11.0-rc3
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/pageMenu/pageMenuDrawerItem.d.ts +1 -0
- package/dist/components/prepview/common/info/section/longText/LongTextSection.d.ts +2 -1
- package/dist/components/prepview/notification/details/Details.d.ts +1 -1
- package/dist/components/prepview/panels/attachments/Attachments.d.ts +1 -2
- package/dist/components/prepview/panels/risk/Risk.d.ts +1 -2
- package/dist/components/prepview/punch/details/Details.d.ts +1 -1
- package/dist/components/prepview/types/attachment.d.ts +1 -1
- package/dist/components/prepview/types/notification.d.ts +2 -0
- package/dist/components/prepview/types/workorder.d.ts +3 -0
- package/dist/components/prepview/utils/url.d.ts +1 -0
- package/dist/components/prepview/workorder/details/Details.d.ts +1 -1
- package/dist/components/prepview/workorder/header/Header.d.ts +8 -0
- package/dist/components/prepview/workorder/header/index.d.ts +1 -0
- package/dist/coreApplication/BarComponents/TopBarContent.d.ts +5 -0
- package/dist/coreApplication/EchoContent.d.ts +1 -0
- package/dist/coreApplication/EchoToolBar.d.ts +3 -0
- package/dist/coreApplication/EchoTopBar.d.ts +3 -0
- package/dist/coreApplication/EchoUserInterfaceContextProvider.d.ts +5 -1
- package/dist/coreApplication/index.d.ts +2 -0
- package/dist/index.js +11 -2
- package/package.json +30 -30
|
@@ -10,6 +10,7 @@ interface PageMenuDrawerItemProps {
|
|
|
10
10
|
trackEventOpenExternalLink: (linkTo: string) => void;
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
externalLink?: ExternalLinkProps;
|
|
13
|
+
classNames?: string;
|
|
13
14
|
}
|
|
14
15
|
declare const PageMenuDrawerItem: React.FC<PageMenuDrawerItemProps>;
|
|
15
16
|
export default PageMenuDrawerItem;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface Props {
|
|
3
3
|
text: string;
|
|
4
|
+
toggleLongText: () => void;
|
|
4
5
|
}
|
|
5
|
-
declare function LongTextSection({ text }: Props): JSX.Element;
|
|
6
|
+
declare function LongTextSection({ text, toggleLongText }: Props): JSX.Element;
|
|
6
7
|
export { LongTextSection };
|
|
@@ -4,7 +4,6 @@ interface Props {
|
|
|
4
4
|
recordType: string;
|
|
5
5
|
recordId: string;
|
|
6
6
|
attachments: PrepviewAttachment[];
|
|
7
|
-
isLoading?: boolean;
|
|
8
7
|
}
|
|
9
|
-
declare function AttachmentsPanel({ recordType, recordId, attachments
|
|
8
|
+
declare function AttachmentsPanel({ recordType, recordId, attachments }: Props): JSX.Element;
|
|
10
9
|
export { AttachmentsPanel };
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { PrepviewSafety } from '../../types';
|
|
3
3
|
interface RiskTabProps {
|
|
4
4
|
safetyCards: PrepviewSafety[];
|
|
5
|
-
searchValue?: string;
|
|
6
5
|
}
|
|
7
|
-
declare function RiskPanel({ safetyCards
|
|
6
|
+
declare function RiskPanel({ safetyCards }: RiskTabProps): JSX.Element;
|
|
8
7
|
export { RiskPanel };
|
|
@@ -18,6 +18,8 @@ export declare type NotificationDetails = FetchStatus & {
|
|
|
18
18
|
plantId: string;
|
|
19
19
|
createdDateTime: Date;
|
|
20
20
|
requiredEndDateTime: Date;
|
|
21
|
+
maintenancePlant: string;
|
|
22
|
+
planningPlant: string;
|
|
21
23
|
activeStatusIds: string[];
|
|
22
24
|
unsafeFailureMode: string;
|
|
23
25
|
plannerGroup: string;
|
|
@@ -15,6 +15,9 @@ export declare type WorkOrderDetails = FetchStatus & {
|
|
|
15
15
|
basicStartDateTime: Date;
|
|
16
16
|
changedDateTime: Date;
|
|
17
17
|
createdDateTime: Date;
|
|
18
|
+
requiredEndDateTime: Date;
|
|
19
|
+
maintenancePlant: string;
|
|
20
|
+
planningPlant: string;
|
|
18
21
|
activeStatusIds: string;
|
|
19
22
|
description: string;
|
|
20
23
|
equipmentId: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Header';
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
2
|
interface EchoUiContextState {
|
|
3
3
|
activeAppMenuItem: string;
|
|
4
4
|
isLegendActive: boolean | undefined;
|
|
5
|
+
activeTopMenuItem: string;
|
|
6
|
+
activeTopMenuComponents: FunctionComponent[];
|
|
5
7
|
updateActiveAppMenuItem: (newActiveAppMenuItem: string) => void;
|
|
6
8
|
updateIsLegendActive: (isLegendActive: boolean) => void;
|
|
9
|
+
updateActiveTopMenuItem: (newActiveTopMenuItem: string) => void;
|
|
10
|
+
updateActiveTopMenuComponents: (newActiveTopMenuComponents: FunctionComponent[]) => void;
|
|
7
11
|
}
|
|
8
12
|
export declare const useEchoUiContext: () => EchoUiContextState;
|
|
9
13
|
interface EchoUiContextProviderProps {
|