@equinor/echo-framework 0.10.8 → 0.10.10

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.
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const HomePage: React.ReactNode;
@@ -0,0 +1 @@
1
+ export * from './HomePage';
@@ -1,11 +1,14 @@
1
1
  import React from 'react';
2
2
  interface PlantSelectorProps {
3
+ variant?: 'compact' | 'default';
4
+ maxCharacterCount?: number;
3
5
  isDisabled?: boolean;
4
6
  stayOnPath?: boolean;
5
7
  }
6
8
  /**
7
9
  * Dropdown component for displaying a searchable plant selector.
8
10
  * @param {PlantSelectorProps} {
11
+ * variant: The style type for the dropdown component. Either default or compact.
9
12
  * isDisabled: Flag which decides whether the dropdown should be disabled or not.
10
13
  * stayOnPath: Flag which decides if you should stay on your current path after selecting a plant.
11
14
  * }
@@ -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,7 @@
2
2
  import { PrepviewSafety } from '../../types';
3
3
  interface RiskTabProps {
4
4
  safetyCards: PrepviewSafety[];
5
- searchValue?: string;
5
+ searchValue: string;
6
6
  }
7
7
  declare function RiskPanel({ safetyCards, searchValue }: RiskTabProps): JSX.Element;
8
8
  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';
@@ -1,11 +1,14 @@
1
1
  import React from 'react';
2
2
  interface ProjectSelectorProps {
3
+ variant?: 'compact' | 'default';
4
+ maxCharacterCount?: number;
3
5
  isDisabled?: boolean;
4
6
  }
5
7
  export declare const ALL_PROJECTS = "All projects";
6
8
  /**
7
9
  * Dropdown component for displaying a searchable project selector.
8
10
  * @param {ProjectSelectorProps} {
11
+ * variant: The style type for the dropdown component. Either default or compact.
9
12
  * isDisabled: Flag which decides whether the dropdown should be disabled or not.
10
13
  * }
11
14
  * @return {*}