@equinor/echo-framework 0.18.11-gs-mvp-2 → 0.19.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/{f4c85313e79b1662.svg → 1bd97dd2170d0f64.svg} +850 -850
- package/{063009f06499d102.svg → 47deeba42768c5d1.svg} +8 -8
- package/README.md +28 -28
- package/index.cjs.d.ts +2 -2
- package/index.cjs.js +1 -1
- package/package.json +3 -2
- package/src/index.d.ts +3 -15
- package/src/lib/components/index.d.ts +3 -1
- package/src/lib/components/openIn3d/SelectedItemsMenu.d.ts +1 -3
- package/src/lib/components/openIn3d/index.d.ts +1 -1
- package/src/lib/components/openIn3d/openIn3dMenu.d.ts +0 -1
- package/src/lib/components/panel/panelNavigation.helper.d.ts +2 -2
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/api/api-documentRelationships.d.ts +4 -0
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/labelledImageList.d.ts +10 -0
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/measuringPointImageList.d.ts +5 -0
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/mediaItemView/MeasuringPointImageView.d.ts +15 -0
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/mediaItemView/MeasuringPointImageViewFooter.d.ts +7 -0
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/mediaItemView/MeasuringPointImageViewMedia.d.ts +10 -0
- package/src/lib/feature/measuringPoint/components/measuringPointItem.d.ts +1 -1
- package/src/lib/feature/measuringPoint/hooks/useDocumentRelationships.d.ts +6 -0
- package/src/lib/feature/measuringPoint/types/documentRelationships.d.ts +18 -0
- package/src/lib/services/activeSelectionStore/activeSelectionData.hooks.d.ts +10 -0
- package/src/lib/services/activeSelectionStore/activeSelectionStore.d.ts +27 -0
- package/src/lib/services/activeSelectionStore/index.d.ts +2 -0
- package/src/lib/services/leftPanelNavigation/index.d.ts +2 -0
- package/src/lib/services/leftPanelNavigation/leftPanelNavigation.store.d.ts +13 -0
- package/src/lib/services/leftPanelNavigation/leftPanelNavigation.store.types.d.ts +21 -0
- package/src/lib/services/leftPanelNavigation/leftPanelNavigationContainer.d.ts +7 -0
- package/src/lib/services/leftPanelNavigation/leftPanelNavigationSideSheet.d.ts +7 -0
- package/src/lib/types/eventTypes/index.d.ts +0 -1
- package/src/lib/types/searchItemDetailsType.d.ts +1 -1
- package/src/lib/utils/previousUtils.d.ts +3 -3
- package/src/lib/components/openIn3d/OpenIn3dDialogs.d.ts +0 -14
- package/src/lib/components/workOrderListItem/WorkOrderListItem.d.ts +0 -14
- package/src/lib/components/workOrderListItem/index.d.ts +0 -1
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.d.ts +0 -176
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +0 -117
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts +0 -3
- package/src/lib/feature/globalSelection/hooks/useGlobalSelectionLists.d.ts +0 -14
- package/src/lib/feature/globalSelection/hooks/useGlobalSelectionWorkOrders.d.ts +0 -6
- package/src/lib/feature/globalSelection/index.d.ts +0 -5
- package/src/lib/services/searchItemDetails/searchItemDetails.store.d.ts +0 -31
- package/src/lib/services/searchItemDetails/searchItemDetailsContainer.d.ts +0 -7
- package/src/lib/services/searchItemDetails/searchItemDetailsSideSheet.d.ts +0 -7
- package/src/lib/types/eventTypes/leftPanelNavigationUpdateEvent.d.ts +0 -5
- /package/src/lib/services/{searchItemDetails → leftPanelNavigation}/previous.d.ts +0 -0
package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { TagSummaryDto } from '@equinor/echo-search';
|
|
2
|
-
import { Equipment } from '../../equipment';
|
|
3
|
-
export declare enum GlobalSelectionItemType {
|
|
4
|
-
WorkOrder = "WorkOrder",
|
|
5
|
-
Tag = "Tag",
|
|
6
|
-
Equipment = "Equipment"
|
|
7
|
-
}
|
|
8
|
-
interface ItemTypeToDataMap {
|
|
9
|
-
'WorkOrder': OptimizedWorkOrderDto;
|
|
10
|
-
'Tag': TagSummaryDto;
|
|
11
|
-
'Equipment': Equipment;
|
|
12
|
-
}
|
|
13
|
-
type GlobalSelectionList<T extends GlobalSelectionItemType> = {
|
|
14
|
-
label: string;
|
|
15
|
-
key: string;
|
|
16
|
-
type: T;
|
|
17
|
-
items: GlobalSelectionGenericItem<T>[];
|
|
18
|
-
};
|
|
19
|
-
export type GlobalSelectionGenericItem<T extends GlobalSelectionItemType> = {
|
|
20
|
-
id: string;
|
|
21
|
-
type: T;
|
|
22
|
-
data: ItemTypeToDataMap[T];
|
|
23
|
-
metaData: {
|
|
24
|
-
color: string;
|
|
25
|
-
isHiddenByUser: boolean;
|
|
26
|
-
errorStatuses: GlobalSelectionItemErrorStatuses[];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export type EquipmentGlobalSelectionListItem = GlobalSelectionGenericItem<GlobalSelectionItemType.Equipment>;
|
|
30
|
-
export type WorkOrderGlobalSelectionListItem = GlobalSelectionGenericItem<GlobalSelectionItemType.WorkOrder>;
|
|
31
|
-
export type TagGlobalSelectionListItem = GlobalSelectionGenericItem<GlobalSelectionItemType.Tag>;
|
|
32
|
-
export type GlobalSelectionItem = WorkOrderGlobalSelectionListItem | TagGlobalSelectionListItem | EquipmentGlobalSelectionListItem;
|
|
33
|
-
type EquipmentGlobalSelectionList = GlobalSelectionList<GlobalSelectionItemType.Equipment>;
|
|
34
|
-
export type WorkOrderGlobalSelectionList = GlobalSelectionList<GlobalSelectionItemType.WorkOrder>;
|
|
35
|
-
type TagGlobalSelectionList = GlobalSelectionList<GlobalSelectionItemType.Tag>;
|
|
36
|
-
type GlobalSelectionListUnion = WorkOrderGlobalSelectionList | TagGlobalSelectionList | EquipmentGlobalSelectionList;
|
|
37
|
-
export declare enum GlobalSelectionItemErrorStatuses {
|
|
38
|
-
NotFoundInActiveEchoModule = "NotFoundInActiveEchoModule",
|
|
39
|
-
UnableToDisplay = "UnableToDisplay"
|
|
40
|
-
}
|
|
41
|
-
export interface GlobalSelectionStore {
|
|
42
|
-
lists: GlobalSelectionListUnion[];
|
|
43
|
-
addWorkOrderToSelection: (args: {
|
|
44
|
-
workOrder: OptimizedWorkOrderDto;
|
|
45
|
-
}) => void;
|
|
46
|
-
replaceWorkOrderSelection: (args: {
|
|
47
|
-
workOrders: OptimizedWorkOrderDto[];
|
|
48
|
-
}) => void;
|
|
49
|
-
setNotFoundItems: (args: {
|
|
50
|
-
itemIds: string[];
|
|
51
|
-
}) => void;
|
|
52
|
-
resetItemNotFoundStates: () => void;
|
|
53
|
-
resetState: () => void;
|
|
54
|
-
}
|
|
55
|
-
export type OptimizedWorkOrderDto = {
|
|
56
|
-
workOrderId: string;
|
|
57
|
-
tagId?: string;
|
|
58
|
-
tagPlantId: string;
|
|
59
|
-
workCenterId?: string;
|
|
60
|
-
workCenterPlantId: string;
|
|
61
|
-
plannerGroupId: string;
|
|
62
|
-
workOrderTypeId: string;
|
|
63
|
-
revisionCodeId: string;
|
|
64
|
-
systemId?: string;
|
|
65
|
-
isOpen: boolean;
|
|
66
|
-
hasStatusTECO: boolean;
|
|
67
|
-
hasStatusRDOP: boolean;
|
|
68
|
-
hasStatusCANC: boolean;
|
|
69
|
-
hasStatusSTRT: boolean;
|
|
70
|
-
hasStatusRDEX: boolean;
|
|
71
|
-
hasStatusPREP: boolean;
|
|
72
|
-
hasStatusPRCO: boolean;
|
|
73
|
-
title: string;
|
|
74
|
-
plantId: string;
|
|
75
|
-
planningPlantId: string;
|
|
76
|
-
sortField: string;
|
|
77
|
-
locationId: string;
|
|
78
|
-
revisionId: string;
|
|
79
|
-
basicStartDateTime?: string | null;
|
|
80
|
-
basicEndDateTime?: string | null;
|
|
81
|
-
createdDateTime?: string | null;
|
|
82
|
-
maintenanceRecord?: WorkOrderMaintenanceRecord | null;
|
|
83
|
-
_links: {
|
|
84
|
-
related: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
type WorkOrderMaintenanceRecord = {
|
|
88
|
-
activeStatusIds: string;
|
|
89
|
-
completedDateTime?: string | null;
|
|
90
|
-
correctiveWorkOrderExist?: boolean;
|
|
91
|
-
correctiveWorkOrderId?: string;
|
|
92
|
-
createdDateTime: string;
|
|
93
|
-
detectionMethodGroupId?: string;
|
|
94
|
-
detectionMethodId?: string;
|
|
95
|
-
equipmentId: string;
|
|
96
|
-
failureEndDateTime?: string | null;
|
|
97
|
-
failureImpactId?: string;
|
|
98
|
-
failureMechanismGroupId?: string;
|
|
99
|
-
failureMechanismId?: string;
|
|
100
|
-
failureModeGroupId?: string;
|
|
101
|
-
failureModeId?: string;
|
|
102
|
-
failureStartDateTime?: string | null;
|
|
103
|
-
hasUnsafeFailureMode?: boolean;
|
|
104
|
-
isBreakdown?: boolean;
|
|
105
|
-
isOpen?: boolean;
|
|
106
|
-
locationId?: string;
|
|
107
|
-
maintenanceRecordTypeId?: string;
|
|
108
|
-
recordId: string;
|
|
109
|
-
requiredEndDate?: string | null;
|
|
110
|
-
systemId?: string;
|
|
111
|
-
tagId: string;
|
|
112
|
-
tagPlantId: string;
|
|
113
|
-
title: string;
|
|
114
|
-
unsafeFailureModeStatus?: string | null;
|
|
115
|
-
workCenterId?: string;
|
|
116
|
-
};
|
|
117
|
-
export {};
|
package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { GlobalSelectionItem } from './globalSelectionStore.types';
|
|
2
|
-
export declare function isGlobalSelectionItemNotFoundInActiveEchoModule(item: GlobalSelectionItem): boolean;
|
|
3
|
-
export declare function isGlobalSelectionItemNotAbleToDisplay(item: GlobalSelectionItem): boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for returning all lists stored in the global selection.
|
|
3
|
-
*/
|
|
4
|
-
export declare function useGlobalSelectionLists(): (import("..").WorkOrderGlobalSelectionList | {
|
|
5
|
-
label: string;
|
|
6
|
-
key: string;
|
|
7
|
-
type: import("..").GlobalSelectionItemType.Tag;
|
|
8
|
-
items: import("..").GlobalSelectionGenericItem<import("..").GlobalSelectionItemType.Tag>[];
|
|
9
|
-
} | {
|
|
10
|
-
label: string;
|
|
11
|
-
key: string;
|
|
12
|
-
type: import("..").GlobalSelectionItemType.Equipment;
|
|
13
|
-
items: import("..").GlobalSelectionGenericItem<import("..").GlobalSelectionItemType.Equipment>[];
|
|
14
|
-
})[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WorkOrderGlobalSelectionListItem } from '../globalSelectionStore/globalSelectionStore.types';
|
|
2
|
-
/**
|
|
3
|
-
* Returns with the stored Work Orders in the global selection
|
|
4
|
-
* @returns {Partial<WorkOrderDto>[]} Array of Work Orders
|
|
5
|
-
*/
|
|
6
|
-
export declare function useGlobalSelectionWorkOrders(): WorkOrderGlobalSelectionListItem[];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { useGlobalSelectionStore } from './globalSelectionStore/globalSelectionStore';
|
|
2
|
-
export * from './globalSelectionStore/globalSelectionStore.types';
|
|
3
|
-
export * from './globalSelectionStore/globalSelectionStore.utils';
|
|
4
|
-
export { useGlobalSelectionLists } from './hooks/useGlobalSelectionLists';
|
|
5
|
-
export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { searchItemDetailsType } from '../../types/searchItemDetailsType';
|
|
3
|
-
export declare const useSearchItemDetailsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<unknown>, "setState"> & {
|
|
4
|
-
setState(nextStateOrUpdater: unknown, shouldReplace?: boolean | undefined): void;
|
|
5
|
-
}>;
|
|
6
|
-
export type SearchItemDetailsObject = {
|
|
7
|
-
content: ReactNode;
|
|
8
|
-
header?: ReactNode;
|
|
9
|
-
subHeader?: ReactNode;
|
|
10
|
-
itemId: string;
|
|
11
|
-
itemType: searchItemDetailsType;
|
|
12
|
-
isOpen: boolean;
|
|
13
|
-
};
|
|
14
|
-
export type SearchItemDetailsState = {
|
|
15
|
-
actions: {
|
|
16
|
-
showDetails: (args: ShowDetailsArgs) => void;
|
|
17
|
-
hideDetails: (panelKey: string) => void;
|
|
18
|
-
clearItemsByPanelKey: (panelKey: string) => void;
|
|
19
|
-
};
|
|
20
|
-
items: Record<string, SearchItemDetailsObject[]>;
|
|
21
|
-
};
|
|
22
|
-
type ShowDetailsArgs = {
|
|
23
|
-
panelKey: string;
|
|
24
|
-
content: ReactNode;
|
|
25
|
-
header?: ReactNode;
|
|
26
|
-
subHeader?: ReactNode;
|
|
27
|
-
keepLastNavigationItem?: boolean;
|
|
28
|
-
itemId: string;
|
|
29
|
-
itemType: searchItemDetailsType;
|
|
30
|
-
};
|
|
31
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SearchItemDetailsObject } from './searchItemDetails.store';
|
|
3
|
-
interface SearchItemDetailsContainerProps {
|
|
4
|
-
itemToDisplay: SearchItemDetailsObject;
|
|
5
|
-
}
|
|
6
|
-
export declare const SearchItemDetailsContainer: React.FC<SearchItemDetailsContainerProps>;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SearchItemDetailsObject } from './searchItemDetails.store';
|
|
3
|
-
interface SearchItemDetailsSideSheetProps {
|
|
4
|
-
itemToDisplay: SearchItemDetailsObject | undefined;
|
|
5
|
-
}
|
|
6
|
-
export declare const SearchItemDetailsSideSheet: React.FC<SearchItemDetailsSideSheetProps>;
|
|
7
|
-
export {};
|
|
File without changes
|