@equinor/echo-components 0.5.14 → 0.5.16

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.
@@ -8,3 +8,4 @@ export * from './linkCardItem';
8
8
  export * from './menuItem';
9
9
  export * from './optionsItem';
10
10
  export * from './radioButtonItem';
11
+ export * from './workOrderItem';
@@ -6,4 +6,4 @@ export interface MenuItem {
6
6
  panelSize?: PanelSize;
7
7
  component: React.FC<Record<string, unknown>>;
8
8
  }
9
- export declare type PanelSize = 'narrow' | 'wide';
9
+ export type PanelSize = 'narrow' | 'wide';
@@ -0,0 +1,9 @@
1
+ export interface WorkOrderItem {
2
+ id: string;
3
+ requiredEndDateTime: Date;
4
+ maintenancePlanDate: Date;
5
+ planningPlant: string;
6
+ activeStatusIds: string;
7
+ description: string;
8
+ orderType: string;
9
+ }
@@ -0,0 +1 @@
1
+ export declare function dateToStringOrEmpty(date: Date | string | undefined): string;
@@ -0,0 +1,2 @@
1
+ export * from './date';
2
+ export * from './workorder';
@@ -0,0 +1,4 @@
1
+ export declare function setWorkOrderIconName(type: string): "workorders_pm01" | "workorders_pm02" | "workorders_pm03" | "workorders_pm04" | "workorders_pm05" | "workorders_pm06" | "workorders_pm10" | "workorders_pm15" | "workorders_pm20" | "workorders_main_group";
2
+ declare function getStatusColor(statusIds: string): "#fbca36" | "#4bb748";
3
+ declare function getStatusText(statusIds: string): "Completed" | "Active";
4
+ export { getStatusColor, getStatusText };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-components",
3
- "version": "0.5.14",
3
+ "version": "0.5.16",
4
4
  "description": "Package for creating echo related components.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,9 +37,10 @@
37
37
  "styled-components": "^5.3.5"
38
38
  },
39
39
  "dependencies": {
40
- "@equinor/eds-icons": "^0.10.0",
40
+ "@equinor/eds-icons": "^0.16.0",
41
41
  "lodash.throttle": "^4.1.1",
42
42
  "@babel/runtime": "^7.20.0",
43
+ "@floating-ui/react": "^0.17.0",
43
44
  "jest-environment-jsdom": "^29.2.2",
44
45
  "react-datepicker": "^4.8.0",
45
46
  "react-sortablejs": "^6.1.4",