@equinor/echo-framework 0.26.3 → 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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.26.3",
3
+ "version": "0.26.6",
4
4
  "peerDependencies": {
5
- "@equinor/echo-base": ">= 0.26.3 < 0.27.0",
6
- "@equinor/echo-components": ">= 0.26.3 < 0.27.0",
7
- "@equinor/echo-core": ">= 0.26.3 < 0.27.0",
8
- "@equinor/echo-search": ">= 0.26.3 < 0.27.0",
9
- "@equinor/echo-utils": ">= 0.26.3 < 0.27.0",
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 { WorkOrderListItemProps } from '../types/types';
2
- export declare function WorkOrderHeaderDate({ workOrder, workOrderDateType }: WorkOrderListItemProps): import("react/jsx-runtime").JSX.Element | null;
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 BasicFinishDateProps = {
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[];
@@ -1,2 +0,0 @@
1
- import { BasicFinishDateProps } from '../types/types';
2
- export declare function BasicFinishDate(props: Readonly<BasicFinishDateProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { OperationDateRangeProps } from '../types/types';
2
- export declare function OperationDateRange(props: Readonly<OperationDateRangeProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { PM01HeaderDataProps } from '../types/types';
2
- export declare function PM01HeaderData(props: Readonly<PM01HeaderDataProps>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { PM02HeaderDataProps } from '../types/types';
2
- export declare function PM02HeaderData(props: Readonly<PM02HeaderDataProps>): import("react/jsx-runtime").JSX.Element;