@equinor/echo-components 0.11.3 → 0.11.5
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 +1 -1
- package/package.json +1 -1
- package/src/__mocks__/workOrderItem.d.ts +2 -0
- package/src/components/functionalLocationListItem/FunctionalLocationListItem.d.ts +26 -0
- package/src/components/index.d.ts +1 -0
- package/src/components/legend/MainLegend.d.ts +1 -1
- package/src/components/workOrderListItem/WorkOrderListItem.d.ts +2 -1
- package/src/helpers/getIcon.d.ts +1 -2
- package/src/helpers/tagCategoryIcon.d.ts +1 -1
- package/src/icons/echoAssets/index.d.ts +1 -0
- package/src/icons/echoAssets/sap.d.ts +4 -0
- package/src/types/workOrderItem.d.ts +11 -0
- package/src/utils/index.d.ts +1 -0
- package/src/utils/tag.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { WorkOrderItem } from '../types';
|
|
2
2
|
export declare const activeWorkOrderItemMock: WorkOrderItem;
|
|
3
|
+
export declare const basicFinishWorkOrderItemMock: WorkOrderItem;
|
|
3
4
|
export declare const completedWorkOrderItemMock: WorkOrderItem;
|
|
4
5
|
export declare const completedWorkOrderItemMockLongDesc: WorkOrderItem;
|
|
6
|
+
export declare const workOrderWithIconsItemMock: WorkOrderItem;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface FunctionalLocationListeItemProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
functionalLocationId: string;
|
|
5
|
+
functionalLocationDescription: string;
|
|
6
|
+
category?: string;
|
|
7
|
+
categoryId?: string;
|
|
8
|
+
maintenancePlant?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Add List Action Area
|
|
11
|
+
*/
|
|
12
|
+
listAction?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Add Item Action Area
|
|
15
|
+
*/
|
|
16
|
+
itemAction?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Change container element. Default is "li"
|
|
19
|
+
*/
|
|
20
|
+
as?: React.ElementType;
|
|
21
|
+
/**
|
|
22
|
+
* onClick event
|
|
23
|
+
*/
|
|
24
|
+
onClick?: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function FunctionalLocationListItem(props: Readonly<FunctionalLocationListeItemProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -15,6 +15,7 @@ export * from './echoCard/index';
|
|
|
15
15
|
export * from './echoHeader/EchoHeader';
|
|
16
16
|
export * from './floatingActionButton';
|
|
17
17
|
export * from './floatingActionButton/FloatingActionButton';
|
|
18
|
+
export * from './functionalLocationListItem/FunctionalLocationListItem';
|
|
18
19
|
export * from './horizontalTabView';
|
|
19
20
|
export * from './iconLink/compactIconLink/CompactIconLink';
|
|
20
21
|
export * from './iconLink/inlineTagIconLink/InlineTagIconLink';
|
|
@@ -26,5 +26,5 @@ interface MainLegendProps {
|
|
|
26
26
|
*/
|
|
27
27
|
legendContentClassName?: string;
|
|
28
28
|
}
|
|
29
|
-
declare
|
|
29
|
+
declare const MainLegend: ({ legends, layers, legendStyle, legendContentStyle, legendContentClassName, legendClassName }: MainLegendProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export { MainLegend };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ColorMap, WorkOrderItem } from '../../types';
|
|
2
|
+
import { ColorMap, WorkOrderDateType, WorkOrderItem } from '../../types';
|
|
3
3
|
export interface WorkOrderListItemProps {
|
|
4
4
|
workOrder: WorkOrderItem;
|
|
5
5
|
onCardClick?: () => void;
|
|
@@ -7,6 +7,7 @@ export interface WorkOrderListItemProps {
|
|
|
7
7
|
isHeader?: boolean;
|
|
8
8
|
colorMap?: ColorMap;
|
|
9
9
|
iconName?: string;
|
|
10
|
+
workOrderDateType?: WorkOrderDateType;
|
|
10
11
|
}
|
|
11
12
|
declare function WorkOrderListItem(props: WorkOrderListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export { WorkOrderListItem };
|
package/src/helpers/getIcon.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function getIcon(tagCategoryDescription: string): JSX.Element;
|
|
1
|
+
export declare function getIcon(tagCategoryDescription: string): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export declare enum WorkOrderDateType {
|
|
2
|
+
PM01 = "PM01",
|
|
3
|
+
PM02 = "PM02",
|
|
4
|
+
BasicFinishDate = "BasicFinishDate",
|
|
5
|
+
Operation = "Operation",
|
|
6
|
+
Unknown = "Unknown"
|
|
7
|
+
}
|
|
1
8
|
export interface WorkOrderItem {
|
|
2
9
|
id: string;
|
|
3
10
|
orderType: string;
|
|
@@ -14,4 +21,8 @@ export interface WorkOrderItem {
|
|
|
14
21
|
earlyFinishDate?: Date;
|
|
15
22
|
basicFinishDateStatus?: string;
|
|
16
23
|
basicFinishDateTime?: Date;
|
|
24
|
+
sortField?: string;
|
|
25
|
+
hasPrts?: boolean;
|
|
26
|
+
recordTypeIds?: string[];
|
|
27
|
+
hasB30Document?: boolean;
|
|
17
28
|
}
|
package/src/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getSAPTagCategoryIconName(tagCategoryId: string): string;
|