@equinor/echo-framework 0.18.9 → 0.18.11-gs-mvp-0
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/{47deeba42768c5d1.svg → 063009f06499d102.svg} +8 -8
- package/README.md +28 -28
- package/{1bd97dd2170d0f64.svg → f4c85313e79b1662.svg} +850 -850
- package/index.cjs.d.ts +2 -2
- package/index.cjs.js +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +3 -1
- package/src/lib/components/index.d.ts +2 -1
- package/src/lib/components/prepview/api/api.d.ts +3 -1
- package/src/lib/components/prepview/api/resources.d.ts +2 -0
- package/src/lib/components/prepview/common/contentPicker/ContentPicker.d.ts +2 -1
- package/src/lib/components/prepview/common/info/index.d.ts +1 -0
- package/src/lib/components/prepview/common/info/label/InfoLabel.d.ts +5 -0
- package/src/lib/components/prepview/common/info/label/index.d.ts +1 -0
- package/src/lib/components/prepview/panels/tagDocumentRefs/HorizontalDocumentGroups.d.ts +1 -1
- package/src/lib/components/prepview/types/notification.d.ts +5 -0
- package/src/lib/components/prepview/types/workorder.d.ts +5 -0
- package/src/lib/components/prepviewButton/index.d.ts +1 -0
- package/src/lib/components/prepviewButton/prepviewButton.d.ts +7 -0
- package/src/lib/components/workOrderListItem/WorkOrderListItem.d.ts +14 -0
- package/src/lib/components/workOrderListItem/index.d.ts +1 -0
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.d.ts +110 -0
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +91 -0
- package/src/lib/feature/globalSelection/globalSelectionStore/index.d.ts +1 -0
- package/src/lib/feature/globalSelection/hooks/useGlobalSelectionLists.d.ts +4 -0
- package/src/lib/feature/globalSelection/hooks/useGlobalSelectionWorkOrders.d.ts +5 -0
- package/src/lib/feature/globalSelection/index.d.ts +4 -0
- package/src/lib/types/eventTypes/index.d.ts +2 -0
- package/src/lib/types/eventTypes/onClickTagsTrigger.d.ts +3 -0
- package/src/lib/types/eventTypes/onMainSearchTriggerEvent.d.ts +3 -0
- package/src/lib/types/eventTypes/prepviewEvent.d.ts +5 -0
- package/src/lib/types/navigation/internalApplicationLinks.d.ts +1 -2
- package/src/lib/components/listItem/listItem.d.ts +0 -14
- package/src/lib/services/activeSelectionStore/activeSelectionData.hooks.d.ts +0 -10
- package/src/lib/services/activeSelectionStore/activeSelectionStore.d.ts +0 -27
- package/src/lib/services/activeSelectionStore/index.d.ts +0 -2
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -4,10 +4,13 @@ import { getLegendStatusColor } from './lib/feature/legend/utils/legendUtils';
|
|
|
4
4
|
import './lib/globalStyles.css';
|
|
5
5
|
import { getPlantsInfo, getTagDetails } from './lib/services/api';
|
|
6
6
|
export * from './lib/components';
|
|
7
|
+
export { PrepviewButton } from './lib/components/prepviewButton/prepviewButton';
|
|
7
8
|
export { RequestProCoSysAccess } from './lib/components/requestAccess/RequestProCoSysAccess';
|
|
8
9
|
export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAccess';
|
|
9
10
|
export * from './lib/coreApplication';
|
|
10
11
|
export * from './lib/feature/equipment/index';
|
|
12
|
+
export * from './lib/feature/globalSelection';
|
|
13
|
+
export type { GlobalSelectionItem, GlobalSelectionList, OptimizedWorkOrderDto } from './lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types';
|
|
11
14
|
export * from './lib/feature/legend/index';
|
|
12
15
|
export { getLatestMeasurementDate, sortMeasuringPointsByMeasurementDate } from './lib/feature/measuringPoint/components/measuringPoints.utils';
|
|
13
16
|
export * from './lib/feature/measuringPoint/index';
|
|
@@ -17,7 +20,6 @@ export { useIsCompactLayout } from './lib/hooks/useIsCompactLayout';
|
|
|
17
20
|
export { useIsFullScreenModeEnabled } from './lib/hooks/useIsFullScreenModeEnabled';
|
|
18
21
|
export { useScreenOrientation } from './lib/hooks/useScreenOrientation';
|
|
19
22
|
export { useScreenValues } from './lib/hooks/useScreenValues';
|
|
20
|
-
export * from './lib/services/activeSelectionStore';
|
|
21
23
|
export { getPlantsCachedOrApi, getPlantsFromApi } from './lib/services/api/api-plants';
|
|
22
24
|
export { RegisteredComponentName } from './lib/services/componentRegistry/componentRegistry';
|
|
23
25
|
export * from './lib/services/eventHubActions';
|
|
@@ -10,7 +10,6 @@ export * from './footer';
|
|
|
10
10
|
export * from './fullScreenButtons';
|
|
11
11
|
export * from './labelledValueGrid';
|
|
12
12
|
export * from './lazyLoading';
|
|
13
|
-
export { ListItem } from './listItem/listItem';
|
|
14
13
|
export * from './listItemAdditionalInfoRow/listItemAdditionalInfoRow';
|
|
15
14
|
export * from './mediator';
|
|
16
15
|
export { OpenIn3dWarningDialog } from './openIn3d/OpenIn3dWarningDialog';
|
|
@@ -21,6 +20,7 @@ export * from './panel';
|
|
|
21
20
|
export * from './panelButton';
|
|
22
21
|
export * from './plantSelector';
|
|
23
22
|
export * from './prepview';
|
|
23
|
+
export * from './prepviewButton';
|
|
24
24
|
export * from './projectSelector';
|
|
25
25
|
export * from './realTimeData';
|
|
26
26
|
export * from './router';
|
|
@@ -28,3 +28,4 @@ export * from './searchMenu';
|
|
|
28
28
|
export * from './spinner/spinner';
|
|
29
29
|
export * from './tagNumber';
|
|
30
30
|
export * from './toaster';
|
|
31
|
+
export { WorkOrderListItem } from './workOrderListItem';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { NotificationDetails, PrepviewAttachment, PrepviewDocumentGroup, PrepviewHistory, PrepviewObject, PrepviewOperation, PrepviewSafety, PrepviewTagInformation, PunchDetails, WorkOrderDetails } from '../types';
|
|
1
|
+
import { NotificationDetails, PrepviewAttachment, PrepviewDocumentGroup, PrepviewHistory, PrepviewObject, PrepviewOperation, PrepviewSafety, PrepviewTagInformation, PunchDetails, SubseaNotificationDetails, SubseaWorkOrderDetails, WorkOrderDetails } from '../types';
|
|
2
2
|
export declare function getWorkOrderDetails(workOrderId: string): Promise<WorkOrderDetails>;
|
|
3
|
+
export declare function getSubseaWorkOrderDetails(workOrderId: string): Promise<SubseaWorkOrderDetails>;
|
|
3
4
|
export declare function getWorkType(workOrderId: string): Promise<string[]>;
|
|
4
5
|
export declare function getNotificationDetails(notificationId: string): Promise<NotificationDetails>;
|
|
6
|
+
export declare function getSubseaNotificationDetails(notificationId: string): Promise<SubseaNotificationDetails>;
|
|
5
7
|
export declare function getPunchDetails(instCode: string, punchId: string): Promise<PunchDetails>;
|
|
6
8
|
export declare function getTagInformation(itemId: string, isWorkOrder?: boolean): Promise<PrepviewTagInformation>;
|
|
7
9
|
export declare function getAttachments(itemId: string, isWorkOrder?: boolean): Promise<PrepviewAttachment[]>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare function getWorkOrder(workOrderId: string): string;
|
|
2
|
+
export declare function getSubseaWorkOrder(workOrderId: string): string;
|
|
2
3
|
export declare function getWorkTypeUrl(workOrderId: string): string;
|
|
3
4
|
export declare function getNotification(maintenanceRecordId: string): string;
|
|
5
|
+
export declare function getSubseaNotification(maintenanceRecordId: string): string;
|
|
4
6
|
export declare function getPunch(instCode: string, punchId: string): string;
|
|
5
7
|
export declare function getTagInformation(itemId: string, isWorkOrder?: boolean): string;
|
|
6
8
|
export declare function getAttachments(itemId: string, isWorkOrder?: boolean): string;
|
|
@@ -3,6 +3,7 @@ import type { ContentPickerGroup } from '../../types';
|
|
|
3
3
|
interface ContentPickerProps {
|
|
4
4
|
groups: ContentPickerGroup[];
|
|
5
5
|
listItemStyle?: CSSProperties;
|
|
6
|
+
infoLabelText?: string;
|
|
6
7
|
}
|
|
7
|
-
declare function ContentPicker({ groups, listItemStyle }: ContentPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function ContentPicker({ groups, listItemStyle, infoLabelText, }: ContentPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export { ContentPicker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InfoLabel';
|
|
@@ -3,5 +3,5 @@ interface HorizontalDocumentGroupsProps {
|
|
|
3
3
|
documentGroups: Array<PrepviewDocumentGroup>;
|
|
4
4
|
tagNo: string;
|
|
5
5
|
}
|
|
6
|
-
declare function HorizontalDocumentGroups({ documentGroups, tagNo }: HorizontalDocumentGroupsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function HorizontalDocumentGroups({ documentGroups, tagNo, }: HorizontalDocumentGroupsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { HorizontalDocumentGroups };
|
|
@@ -34,6 +34,11 @@ export type WorkOrderDetails = FetchStatus & {
|
|
|
34
34
|
longText: string;
|
|
35
35
|
instCode: string;
|
|
36
36
|
};
|
|
37
|
+
export type SubseaWorkOrderDetails = FetchStatus & {
|
|
38
|
+
hasPrts: boolean;
|
|
39
|
+
hasB30Document: boolean;
|
|
40
|
+
recordTypeIds?: string[];
|
|
41
|
+
};
|
|
37
42
|
export type PrepviewOperation = {
|
|
38
43
|
operationNumber: string;
|
|
39
44
|
title: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './prepviewButton';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColorMap, WorkOrderDateType, WorkOrderItem } from '@equinor/echo-components';
|
|
3
|
+
export interface WorkOrderListItemProps {
|
|
4
|
+
workOrder: WorkOrderItem;
|
|
5
|
+
onCardClick?: () => void;
|
|
6
|
+
itemAction?: React.ReactNode;
|
|
7
|
+
isHeader?: boolean;
|
|
8
|
+
colorMap?: ColorMap;
|
|
9
|
+
iconName?: string;
|
|
10
|
+
workOrderDateType?: WorkOrderDateType;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
declare function WorkOrderListItem(props: WorkOrderListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { WorkOrderListItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WorkOrderListItem';
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { GlobalSelectionItemType, GlobalSelectionStore, OptimizedWorkOrderDto } from './globalSelectionStore.types';
|
|
2
|
+
export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Omit<Omit<Omit<Omit<import("zustand").StoreApi<GlobalSelectionStore>, "setState"> & {
|
|
3
|
+
setState<A extends string | {
|
|
4
|
+
type: string;
|
|
5
|
+
}>(partial: GlobalSelectionStore | Partial<GlobalSelectionStore> | ((state: GlobalSelectionStore) => GlobalSelectionStore | Partial<GlobalSelectionStore>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
6
|
+
}, "subscribe"> & {
|
|
7
|
+
subscribe: {
|
|
8
|
+
(listener: (selectedState: GlobalSelectionStore, previousSelectedState: GlobalSelectionStore) => void): () => void;
|
|
9
|
+
<U>(selector: (state: GlobalSelectionStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
10
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
11
|
+
fireImmediately?: boolean | undefined;
|
|
12
|
+
} | undefined): () => void;
|
|
13
|
+
};
|
|
14
|
+
}, "persist"> & {
|
|
15
|
+
persist: {
|
|
16
|
+
setOptions: (options: Partial<import("zustand/middleware").PersistOptions<GlobalSelectionStore, unknown>>) => void;
|
|
17
|
+
clearStorage: () => void;
|
|
18
|
+
rehydrate: () => void | Promise<void>;
|
|
19
|
+
hasHydrated: () => boolean;
|
|
20
|
+
onHydrate: (fn: (state: GlobalSelectionStore) => void) => () => void;
|
|
21
|
+
onFinishHydration: (fn: (state: GlobalSelectionStore) => void) => () => void;
|
|
22
|
+
getOptions: () => Partial<import("zustand/middleware").PersistOptions<GlobalSelectionStore, unknown>>;
|
|
23
|
+
};
|
|
24
|
+
}, "setState"> & {
|
|
25
|
+
setState(nextStateOrUpdater: GlobalSelectionStore | Partial<GlobalSelectionStore> | ((state: {
|
|
26
|
+
lists: {
|
|
27
|
+
label: string;
|
|
28
|
+
key: string;
|
|
29
|
+
type: GlobalSelectionItemType;
|
|
30
|
+
items: {
|
|
31
|
+
id: string;
|
|
32
|
+
type: GlobalSelectionItemType;
|
|
33
|
+
data: {
|
|
34
|
+
workOrderId: string;
|
|
35
|
+
tagId?: string | undefined;
|
|
36
|
+
tagPlantId: string;
|
|
37
|
+
workCenterId?: string | undefined;
|
|
38
|
+
workCenterPlantId: string;
|
|
39
|
+
plannerGroupId: string;
|
|
40
|
+
workOrderTypeId: string;
|
|
41
|
+
revisionCodeId: string;
|
|
42
|
+
systemId?: string | undefined;
|
|
43
|
+
isOpen: boolean;
|
|
44
|
+
hasStatusTECO: boolean;
|
|
45
|
+
hasStatusRDOP: boolean;
|
|
46
|
+
hasStatusCANC: boolean;
|
|
47
|
+
hasStatusSTRT: boolean;
|
|
48
|
+
hasStatusRDEX: boolean;
|
|
49
|
+
hasStatusPREP: boolean;
|
|
50
|
+
hasStatusPRCO: boolean;
|
|
51
|
+
title: string;
|
|
52
|
+
plantId: string;
|
|
53
|
+
planningPlantId: string;
|
|
54
|
+
sortField: string;
|
|
55
|
+
locationId: string;
|
|
56
|
+
revisionId: string;
|
|
57
|
+
basicStartDateTime?: string | null | undefined;
|
|
58
|
+
basicEndDateTime?: string | null | undefined;
|
|
59
|
+
createdDateTime?: string | null | undefined;
|
|
60
|
+
maintenanceRecord?: {
|
|
61
|
+
activeStatusIds: string;
|
|
62
|
+
completedDateTime?: string | null | undefined;
|
|
63
|
+
correctiveWorkOrderExist?: boolean | undefined;
|
|
64
|
+
correctiveWorkOrderId?: string | undefined;
|
|
65
|
+
createdDateTime: string;
|
|
66
|
+
detectionMethodGroupId?: string | undefined;
|
|
67
|
+
detectionMethodId?: string | undefined;
|
|
68
|
+
equipmentId: string;
|
|
69
|
+
failureEndDateTime?: string | null | undefined;
|
|
70
|
+
failureImpactId?: string | undefined;
|
|
71
|
+
failureMechanismGroupId?: string | undefined;
|
|
72
|
+
failureMechanismId?: string | undefined;
|
|
73
|
+
failureModeGroupId?: string | undefined;
|
|
74
|
+
failureModeId?: string | undefined;
|
|
75
|
+
failureStartDateTime?: string | null | undefined;
|
|
76
|
+
hasUnsafeFailureMode?: boolean | undefined;
|
|
77
|
+
isBreakdown?: boolean | undefined;
|
|
78
|
+
isOpen?: boolean | undefined;
|
|
79
|
+
locationId?: string | undefined;
|
|
80
|
+
maintenanceRecordTypeId?: string | undefined;
|
|
81
|
+
recordId: string;
|
|
82
|
+
requiredEndDate?: string | null | undefined;
|
|
83
|
+
systemId?: string | undefined;
|
|
84
|
+
tagId: string;
|
|
85
|
+
tagPlantId: string;
|
|
86
|
+
title: string;
|
|
87
|
+
unsafeFailureModeStatus?: string | null | undefined;
|
|
88
|
+
workCenterId?: string | undefined;
|
|
89
|
+
} | null | undefined;
|
|
90
|
+
_links: {
|
|
91
|
+
related: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
metaData: {
|
|
95
|
+
isVisible: boolean;
|
|
96
|
+
color: string;
|
|
97
|
+
};
|
|
98
|
+
}[];
|
|
99
|
+
}[];
|
|
100
|
+
addWorkOrderToSelection: (args: {
|
|
101
|
+
workOrder: OptimizedWorkOrderDto;
|
|
102
|
+
}) => void;
|
|
103
|
+
replaceWorkOrderSelection: (args: {
|
|
104
|
+
workOrders: OptimizedWorkOrderDto[];
|
|
105
|
+
}) => void;
|
|
106
|
+
resetState: () => void;
|
|
107
|
+
}) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
108
|
+
type: string;
|
|
109
|
+
} | undefined): void;
|
|
110
|
+
}>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare enum GlobalSelectionItemType {
|
|
2
|
+
WorkOrder = "WorkOrder"
|
|
3
|
+
}
|
|
4
|
+
export type GlobalSelectionList = {
|
|
5
|
+
label: string;
|
|
6
|
+
key: string;
|
|
7
|
+
type: GlobalSelectionItemType;
|
|
8
|
+
items: GlobalSelectionItem[];
|
|
9
|
+
};
|
|
10
|
+
export type GlobalSelectionItem = {
|
|
11
|
+
id: string;
|
|
12
|
+
type: GlobalSelectionItemType;
|
|
13
|
+
data: OptimizedWorkOrderDto;
|
|
14
|
+
metaData: {
|
|
15
|
+
isVisible: boolean;
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export interface GlobalSelectionStore {
|
|
20
|
+
lists: GlobalSelectionList[];
|
|
21
|
+
addWorkOrderToSelection: (args: {
|
|
22
|
+
workOrder: OptimizedWorkOrderDto;
|
|
23
|
+
}) => void;
|
|
24
|
+
replaceWorkOrderSelection: (args: {
|
|
25
|
+
workOrders: OptimizedWorkOrderDto[];
|
|
26
|
+
}) => void;
|
|
27
|
+
resetState: () => void;
|
|
28
|
+
}
|
|
29
|
+
export type OptimizedWorkOrderDto = {
|
|
30
|
+
workOrderId: string;
|
|
31
|
+
tagId?: string;
|
|
32
|
+
tagPlantId: string;
|
|
33
|
+
workCenterId?: string;
|
|
34
|
+
workCenterPlantId: string;
|
|
35
|
+
plannerGroupId: string;
|
|
36
|
+
workOrderTypeId: string;
|
|
37
|
+
revisionCodeId: string;
|
|
38
|
+
systemId?: string;
|
|
39
|
+
isOpen: boolean;
|
|
40
|
+
hasStatusTECO: boolean;
|
|
41
|
+
hasStatusRDOP: boolean;
|
|
42
|
+
hasStatusCANC: boolean;
|
|
43
|
+
hasStatusSTRT: boolean;
|
|
44
|
+
hasStatusRDEX: boolean;
|
|
45
|
+
hasStatusPREP: boolean;
|
|
46
|
+
hasStatusPRCO: boolean;
|
|
47
|
+
title: string;
|
|
48
|
+
plantId: string;
|
|
49
|
+
planningPlantId: string;
|
|
50
|
+
sortField: string;
|
|
51
|
+
locationId: string;
|
|
52
|
+
revisionId: string;
|
|
53
|
+
basicStartDateTime?: string | null;
|
|
54
|
+
basicEndDateTime?: string | null;
|
|
55
|
+
createdDateTime?: string | null;
|
|
56
|
+
maintenanceRecord?: WorkOrderMaintenanceRecord | null;
|
|
57
|
+
_links: {
|
|
58
|
+
related: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type WorkOrderMaintenanceRecord = {
|
|
62
|
+
activeStatusIds: string;
|
|
63
|
+
completedDateTime?: string | null;
|
|
64
|
+
correctiveWorkOrderExist?: boolean;
|
|
65
|
+
correctiveWorkOrderId?: string;
|
|
66
|
+
createdDateTime: string;
|
|
67
|
+
detectionMethodGroupId?: string;
|
|
68
|
+
detectionMethodId?: string;
|
|
69
|
+
equipmentId: string;
|
|
70
|
+
failureEndDateTime?: string | null;
|
|
71
|
+
failureImpactId?: string;
|
|
72
|
+
failureMechanismGroupId?: string;
|
|
73
|
+
failureMechanismId?: string;
|
|
74
|
+
failureModeGroupId?: string;
|
|
75
|
+
failureModeId?: string;
|
|
76
|
+
failureStartDateTime?: string | null;
|
|
77
|
+
hasUnsafeFailureMode?: boolean;
|
|
78
|
+
isBreakdown?: boolean;
|
|
79
|
+
isOpen?: boolean;
|
|
80
|
+
locationId?: string;
|
|
81
|
+
maintenanceRecordTypeId?: string;
|
|
82
|
+
recordId: string;
|
|
83
|
+
requiredEndDate?: string | null;
|
|
84
|
+
systemId?: string;
|
|
85
|
+
tagId: string;
|
|
86
|
+
tagPlantId: string;
|
|
87
|
+
title: string;
|
|
88
|
+
unsafeFailureModeStatus?: string | null;
|
|
89
|
+
workCenterId?: string;
|
|
90
|
+
};
|
|
91
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GlobalSelectionItem, GlobalSelectionList, OptimizedWorkOrderDto } from './globalSelectionStore.types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { useGlobalSelectionStore } from './globalSelectionStore/globalSelectionStore';
|
|
2
|
+
export * from './globalSelectionStore/globalSelectionStore.types';
|
|
3
|
+
export { useGlobalSelectionLists } from './hooks/useGlobalSelectionLists';
|
|
4
|
+
export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export type { FullScreenModeEvent } from './fullScreenModeEvent';
|
|
2
2
|
export type { LeftPanelNavigationUpdateEvent } from './leftPanelNavigationUpdateEvent';
|
|
3
3
|
export type { LegendChangedEvent, LegendStatusesChangedEvent } from './legendEvent';
|
|
4
|
+
export type { OnMainSearchTriggerEvent } from './onMainSearchTriggerEvent';
|
|
4
5
|
export type { PlantEvent } from './plantEvent';
|
|
6
|
+
export type { PrepviewEvent } from './prepviewEvent';
|
|
5
7
|
export type { SearchItemDetailsClosedEvent } from './searchDetailsContainerEvents';
|
|
6
8
|
export type { SetMainSearchTextEvent } from './setMainSearchTextEvent';
|
|
7
9
|
export type { ToasterEvent } from './toasterEvent';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface ListItemProps {
|
|
3
|
-
title: string;
|
|
4
|
-
showIcon?: boolean;
|
|
5
|
-
iconName?: string;
|
|
6
|
-
iconColor?: string;
|
|
7
|
-
iconBackgroundColor?: string;
|
|
8
|
-
visualText?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
additionalInfo?: JSX.Element;
|
|
11
|
-
label?: JSX.Element;
|
|
12
|
-
}
|
|
13
|
-
export declare const ListItem: React.FC<ListItemProps>;
|
|
14
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TagSummaryDto } from '@equinor/echo-search';
|
|
2
|
-
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
-
/**
|
|
4
|
-
* Get the tag summaries for those tags, which are part of the active selection.
|
|
5
|
-
* Works with deep linking: if the selected instCode is different then the instCode in the URL
|
|
6
|
-
* it will fetch the tag summaries from STID API.
|
|
7
|
-
* Otherwise it will get it from echo-search.
|
|
8
|
-
* @returns {UseQueryResult<TagSummaryDto[]>}
|
|
9
|
-
*/
|
|
10
|
-
export declare function useActiveSelectedTagSummaries(): UseQueryResult<TagSummaryDto[]>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as zustand from 'zustand';
|
|
2
|
-
export declare const useActiveSelectionStore: zustand.UseBoundStore<Omit<zustand.StoreApi<ActiveSelectionState>, "subscribe"> & {
|
|
3
|
-
subscribe: {
|
|
4
|
-
(listener: (selectedState: ActiveSelectionState, previousSelectedState: ActiveSelectionState) => void): () => void;
|
|
5
|
-
<U>(selector: (state: ActiveSelectionState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
6
|
-
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
7
|
-
fireImmediately?: boolean | undefined;
|
|
8
|
-
} | undefined): () => void;
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
11
|
-
export type ActiveSelectionItemType = 'tagNos' | 'workOrderIds' | 'measuringPointIds';
|
|
12
|
-
export type ActiveSelectionItems = {
|
|
13
|
-
[key in ActiveSelectionItemType]: string[];
|
|
14
|
-
};
|
|
15
|
-
export interface ActiveSelectionState {
|
|
16
|
-
items: ActiveSelectionItems;
|
|
17
|
-
userRequestAction: string | null;
|
|
18
|
-
actions: ActiveSelectionActions;
|
|
19
|
-
}
|
|
20
|
-
interface ActiveSelectionActions {
|
|
21
|
-
addToSelectionByType: (itemType: ActiveSelectionItemType, items: string[]) => void;
|
|
22
|
-
removeFromSelectionByType: (itemType: ActiveSelectionItemType, items: string[]) => void;
|
|
23
|
-
clearSelectionByType: (itemType: ActiveSelectionItemType) => void;
|
|
24
|
-
clearSelectionForAllTypes: () => void;
|
|
25
|
-
replaceSelection: (items: ActiveSelectionItems, action?: string) => void;
|
|
26
|
-
}
|
|
27
|
-
export {};
|