@equinor/echo-framework 0.26.4 → 0.26.6
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 +3 -3
- package/package.json +6 -6
- package/src/lib/components/workOrderListItem/components/WorkOrderHeaderDate.d.ts +9 -2
- package/src/lib/components/workOrderListItem/types/types.d.ts +1 -12
- package/src/lib/feature/workOrder/utils/workOrderUtils.d.ts +1 -0
- package/src/lib/components/workOrderListItem/components/BasicFinishDate.d.ts +0 -2
- package/src/lib/components/workOrderListItem/components/OperationDateRange.d.ts +0 -2
- package/src/lib/components/workOrderListItem/components/PM01HeaderData.d.ts +0 -2
- package/src/lib/components/workOrderListItem/components/PM02HeaderData.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@equinor/echo-base": ">= 0.26.
|
|
6
|
-
"@equinor/echo-components": ">= 0.26.
|
|
7
|
-
"@equinor/echo-core": ">= 0.26.
|
|
8
|
-
"@equinor/echo-search": ">= 0.26.
|
|
9
|
-
"@equinor/echo-utils": ">= 0.26.
|
|
5
|
+
"@equinor/echo-base": ">= 0.26.6 < 0.27.0",
|
|
6
|
+
"@equinor/echo-components": ">= 0.26.6 < 0.27.0",
|
|
7
|
+
"@equinor/echo-core": ">= 0.26.6 < 0.27.0",
|
|
8
|
+
"@equinor/echo-search": ">= 0.26.6 < 0.27.0",
|
|
9
|
+
"@equinor/echo-utils": ">= 0.26.6 < 0.27.0",
|
|
10
10
|
"@equinor/eds-core-react": "0.43.0",
|
|
11
11
|
"@equinor/eds-icons": "0.22.0",
|
|
12
12
|
"react": ">= 17.0.2",
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { WorkOrderHeaderDataProps } from '../types/types';
|
|
2
|
+
/**
|
|
3
|
+
* Displays the basic finish date for a work order, with optional status-based color.
|
|
4
|
+
*
|
|
5
|
+
* @param props.basicFinishDateStatus - The status of the basic finish date, used to determine color.
|
|
6
|
+
* @param props.basicFinishDateTime - The basic finish date/time value to display.
|
|
7
|
+
* @returns {JSX.Element} The formatted date label.
|
|
8
|
+
*/
|
|
9
|
+
export declare const WorkOrderHeaderDate: React.FC<WorkOrderHeaderDataProps>;
|
|
@@ -32,21 +32,10 @@ export interface WorkOrderListItemProps {
|
|
|
32
32
|
footer?: React.ReactNode;
|
|
33
33
|
isHighlightable?: boolean;
|
|
34
34
|
}
|
|
35
|
-
export type
|
|
35
|
+
export type WorkOrderHeaderDataProps = {
|
|
36
36
|
readonly basicFinishDateStatus?: string;
|
|
37
37
|
readonly basicFinishDateTime?: Date;
|
|
38
38
|
};
|
|
39
|
-
export type OperationDateRangeProps = {
|
|
40
|
-
readonly earlyStartDate?: Date;
|
|
41
|
-
readonly earlyFinishDate?: Date;
|
|
42
|
-
};
|
|
43
|
-
export type PM02HeaderDataProps = {
|
|
44
|
-
readonly maintenancePlanDate?: Date;
|
|
45
|
-
};
|
|
46
|
-
export type PM01HeaderDataProps = {
|
|
47
|
-
readonly requiredEndDateStatus: string;
|
|
48
|
-
readonly requiredEndDateTime: Date;
|
|
49
|
-
};
|
|
50
39
|
export type ExtraIconsProps = {
|
|
51
40
|
readonly hasPrts?: boolean;
|
|
52
41
|
readonly operationId?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { WorkOrderListItemData } from '../../../components/workOrderListItem/types/types';
|
|
2
2
|
import { WorkOrderItemHeaderData } from '../components/WorkOrderItemHeader.types';
|
|
3
3
|
export declare function mapHeaderDataToListItemData(headerData: WorkOrderItemHeaderData): WorkOrderListItemData;
|
|
4
|
+
export declare function convertToActiveStatusIdArray(activeStatusIds: string): string[];
|