@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.
@@ -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 };
@@ -5,5 +5,5 @@ export interface Props {
5
5
  instCode: string;
6
6
  isLoading?: boolean;
7
7
  }
8
- declare function Details({ details, instCode, isLoading }: Props): JSX.Element;
8
+ declare function Details({ details, instCode }: Props): JSX.Element;
9
9
  export { Details };
@@ -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, isLoading }: Props): JSX.Element;
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, searchValue }: RiskTabProps): JSX.Element;
6
+ declare function RiskPanel({ safetyCards }: RiskTabProps): JSX.Element;
8
7
  export { RiskPanel };
@@ -5,5 +5,5 @@ export interface Props {
5
5
  instCode: string;
6
6
  isLoading?: boolean;
7
7
  }
8
- declare function Details({ details, instCode, isLoading }: Props): JSX.Element;
8
+ declare function Details({ details, instCode }: Props): JSX.Element;
9
9
  export { Details };
@@ -1,5 +1,5 @@
1
1
  export declare type PrepviewAttachment = {
2
- createdAt: Date;
2
+ createdDateTime: Date;
3
3
  fileName: string;
4
4
  fileSize: number;
5
5
  id: string;
@@ -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;
@@ -6,3 +6,4 @@ export declare type Params = Record<string, string | number | boolean>;
6
6
  * @param params The params to add.
7
7
  */
8
8
  export declare const addParams: (url: string, params: Params) => string;
9
+ export declare function openUrl(url: string): void;
@@ -5,5 +5,5 @@ export interface Props {
5
5
  instCode: string;
6
6
  isLoading?: boolean;
7
7
  }
8
- declare function Details({ details, instCode, isLoading }: Props): JSX.Element;
8
+ declare function Details({ details, instCode }: Props): JSX.Element;
9
9
  export { Details };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { WorkOrderDetails } from '../../types';
3
+ interface HeaderProps {
4
+ instCode: string;
5
+ workOrder: WorkOrderDetails;
6
+ }
7
+ declare function Header(props: HeaderProps): JSX.Element | null;
8
+ export { Header };
@@ -0,0 +1 @@
1
+ export * from './Header';
@@ -0,0 +1,5 @@
1
+ import { FunctionComponent } from 'react';
2
+ export interface TopBarProps {
3
+ topBarItems: FunctionComponent[];
4
+ }
5
+ export declare const TopBarButtons: FunctionComponent<TopBarProps>;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  interface CorePanelsProps {
3
3
  children: React.ReactNode;
4
4
  Legend?: React.FC;
5
+ isToggleButtonVisible?: boolean;
5
6
  }
6
7
  export declare const EchoContent: React.FC<CorePanelsProps>;
7
8
  export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const EchoToolBar: () => JSX.Element;
3
+ export default EchoToolBar;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const EchoTopBar: React.FC;
3
+ export default EchoTopBar;
@@ -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 {
@@ -2,4 +2,6 @@ export * from './EchoBarComponent';
2
2
  export * from './EchoContent';
3
3
  export * from './EchoContentPanels';
4
4
  export * from './EchoEventHandler';
5
+ export * from './EchoToolBar';
6
+ export * from './EchoTopBar';
5
7
  export * from './EchoUserInterfaceContextProvider';