@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@equinor/echo-base": ">= 0.7.0 < 0.8.0",
|
|
6
6
|
"@equinor/echo-components": ">= 0.11.0 < 0.12.0",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"history": "5.3.0",
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
19
|
"react-router-dom": "5.3.4",
|
|
20
|
-
"zustand": ">= 4.4.7 < 5"
|
|
20
|
+
"zustand": ">= 4.4.7 < 5",
|
|
21
|
+
"react-swipeable": "7.0.1"
|
|
21
22
|
},
|
|
22
23
|
"main": "./index.cjs.js",
|
|
23
24
|
"type": "commonjs"
|
package/src/index.d.ts
CHANGED
|
@@ -4,18 +4,11 @@ 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 { OpenIn3dDialogs } from './lib/components/openIn3d/OpenIn3dDialogs';
|
|
8
|
-
export { OpenIn3dWarningDialog } from './lib/components/openIn3d/OpenIn3dWarningDialog';
|
|
9
|
-
export { PlantNoSelectionDialog } from './lib/components/openIn3d/PlantNoSelectionDialog';
|
|
10
|
-
export { SelectedItemsMenu } from './lib/components/openIn3d/SelectedItemsMenu';
|
|
11
7
|
export { PrepviewButton } from './lib/components/prepviewButton/prepviewButton';
|
|
12
8
|
export { RequestProCoSysAccess } from './lib/components/requestAccess/RequestProCoSysAccess';
|
|
13
9
|
export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAccess';
|
|
14
|
-
export { WorkOrderListItem } from './lib/components/workOrderListItem';
|
|
15
10
|
export * from './lib/coreApplication';
|
|
16
11
|
export * from './lib/feature/equipment/index';
|
|
17
|
-
export * from './lib/feature/globalSelection';
|
|
18
|
-
export type { GlobalSelectionItem, OptimizedWorkOrderDto } from './lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types';
|
|
19
12
|
export * from './lib/feature/legend/index';
|
|
20
13
|
export { getLatestMeasurementDate, sortMeasuringPointsByMeasurementDate } from './lib/feature/measuringPoint/components/measuringPoints.utils';
|
|
21
14
|
export * from './lib/feature/measuringPoint/index';
|
|
@@ -25,11 +18,11 @@ export { useIsCompactLayout } from './lib/hooks/useIsCompactLayout';
|
|
|
25
18
|
export { useIsFullScreenModeEnabled } from './lib/hooks/useIsFullScreenModeEnabled';
|
|
26
19
|
export { useScreenOrientation } from './lib/hooks/useScreenOrientation';
|
|
27
20
|
export { useScreenValues } from './lib/hooks/useScreenValues';
|
|
21
|
+
export * from './lib/services/activeSelectionStore';
|
|
28
22
|
export { getPlantsCachedOrApi, getPlantsFromApi } from './lib/services/api/api-plants';
|
|
29
23
|
export { RegisteredComponentName } from './lib/services/componentRegistry/componentRegistry';
|
|
30
24
|
export * from './lib/services/eventHubActions';
|
|
31
|
-
export * from './lib/services/
|
|
32
|
-
export { SearchItemDetailsSideSheet } from './lib/services/searchItemDetails/searchItemDetailsSideSheet';
|
|
25
|
+
export * from './lib/services/leftPanelNavigation';
|
|
33
26
|
export * from './lib/theme/themeConst';
|
|
34
27
|
export * from './lib/types/api-echohub';
|
|
35
28
|
export type { EchoHubPlant } from './lib/types/echoHubPlant';
|
|
@@ -40,7 +33,7 @@ export type { SetActiveTagNo, TagData } from './lib/types/hookLibrary';
|
|
|
40
33
|
export type { ModelPermissions } from './lib/types/modelPermissions';
|
|
41
34
|
export { InternalApplicationLinks } from './lib/types/navigation/internalApplicationLinks';
|
|
42
35
|
export { PingableSources } from './lib/types/pingableSources';
|
|
43
|
-
export { searchItemDetailsType } from './lib/types/searchItemDetailsType';
|
|
36
|
+
export { SearchItemDetailsType as searchItemDetailsType } from './lib/types/searchItemDetailsType';
|
|
44
37
|
export * from './lib/utils';
|
|
45
38
|
export { convertPathNameToReadableString } from './lib/utils/moduleNameUtils';
|
|
46
39
|
export * from './lib/utils/startup';
|
|
@@ -66,11 +59,6 @@ declare const EchoFramework: Readonly<{
|
|
|
66
59
|
}>;
|
|
67
60
|
}>;
|
|
68
61
|
Hooks: Readonly<{
|
|
69
|
-
searchItems: Readonly<{
|
|
70
|
-
useSearchItemDetailsStore: import("zustand").UseBoundStore<Omit<import("zustand").StoreApi<unknown>, "setState"> & {
|
|
71
|
-
setState(nextStateOrUpdater: unknown, shouldReplace?: boolean | undefined): void;
|
|
72
|
-
}>;
|
|
73
|
-
}>;
|
|
74
62
|
useEchoHistory(): (path: string, params?: {
|
|
75
63
|
[key: string]: string;
|
|
76
64
|
} | undefined, state?: any) => void;
|
|
@@ -12,6 +12,9 @@ export * from './labelledValueGrid';
|
|
|
12
12
|
export * from './lazyLoading';
|
|
13
13
|
export * from './listItemAdditionalInfoRow/listItemAdditionalInfoRow';
|
|
14
14
|
export * from './mediator';
|
|
15
|
+
export { OpenIn3dWarningDialog } from './openIn3d/OpenIn3dWarningDialog';
|
|
16
|
+
export { PlantNoSelectionDialog } from './openIn3d/PlantNoSelectionDialog';
|
|
17
|
+
export { SelectedItemsMenu } from './openIn3d/SelectedItemsMenu';
|
|
15
18
|
export * from './pageMenu';
|
|
16
19
|
export * from './panel';
|
|
17
20
|
export * from './panelButton';
|
|
@@ -25,4 +28,3 @@ export * from './searchMenu';
|
|
|
25
28
|
export * from './spinner/spinner';
|
|
26
29
|
export * from './tagNumber';
|
|
27
30
|
export * from './toaster';
|
|
28
|
-
export { WorkOrderListItem } from './workOrderListItem';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ObjectsToSendTo3dTypes } from '../../utils';
|
|
3
3
|
interface SelectedItemsProps {
|
|
4
|
-
|
|
4
|
+
numberOfSelectedRows: number;
|
|
5
5
|
onOpenIn3dButtonClick: (ObjectsToSendTo3d: ObjectsToSendTo3dTypes) => void;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
6
|
}
|
|
8
7
|
export declare const SelectedItemsMenu: React.FC<SelectedItemsProps>;
|
|
9
|
-
export declare function getIsGlobalSelectionEnabled(): boolean;
|
|
10
8
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { OpenIn3dDialogs } from './OpenIn3dDialogs';
|
|
2
1
|
export { OpenIn3dWarningDialog } from './OpenIn3dWarningDialog';
|
|
3
2
|
export { PlantNoSelectionDialog } from './PlantNoSelectionDialog';
|
|
4
3
|
export { SelectedItemsMenu } from './SelectedItemsMenu';
|
|
4
|
+
export { OpenIn3dMenu } from './openIn3dMenu';
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { ObjectsToSendTo3dTypes } from '../../utils/openIn3d/tagLists';
|
|
3
3
|
interface OpenIn3dMenuProps {
|
|
4
4
|
onOpenIn3dButtonClick: (objectsToSendTo3d: ObjectsToSendTo3dTypes) => void;
|
|
5
|
-
disabled?: boolean;
|
|
6
5
|
}
|
|
7
6
|
export declare const OpenIn3dMenu: React.FC<OpenIn3dMenuProps>;
|
|
8
7
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LeftPanelNavigationContent } from '../../services/leftPanelNavigation/leftPanelNavigation.store.types';
|
|
3
3
|
/**
|
|
4
4
|
* Hook for support the search panel navigation: it supports the "breadcumb" functionality, where the currently open item
|
|
5
5
|
* needs to refer back to the previous one.
|
|
@@ -10,5 +10,5 @@ import { SearchItemDetailsObject } from '../../services/searchItemDetails/search
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const useLeftPanelNavigation: () => {
|
|
12
12
|
previousButton: React.ReactNode;
|
|
13
|
-
activeSearchItem:
|
|
13
|
+
activeSearchItem: LeftPanelNavigationContent | undefined;
|
|
14
14
|
};
|
package/src/lib/feature/measuringPoint/components/measuringPointDetails/labelledImageList.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DocumentRelationships } from '../../types/documentRelationships';
|
|
2
|
+
interface LabelledImageListProps {
|
|
3
|
+
documentId: string;
|
|
4
|
+
createdDateTime: string;
|
|
5
|
+
imageSrc: string;
|
|
6
|
+
documentRelationships: DocumentRelationships[];
|
|
7
|
+
imageIndex: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const LabelledImageList: ({ documentId, createdDateTime, imageSrc, documentRelationships, imageIndex }: LabelledImageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/src/lib/feature/measuringPoint/components/measuringPointDetails/measuringPointImageList.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
interface MeasuringPointImageListProps {
|
|
2
|
+
measuringPointId: string;
|
|
3
|
+
}
|
|
4
|
+
export declare const MeasuringPointImageList: ({ measuringPointId }: MeasuringPointImageListProps) => import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[];
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface MeasuringPointImageViewProps {
|
|
3
|
+
title: string;
|
|
4
|
+
date: string;
|
|
5
|
+
triggerScrim: () => void;
|
|
6
|
+
showPrevious: () => void;
|
|
7
|
+
showNext: () => void;
|
|
8
|
+
showPrevIcon: boolean;
|
|
9
|
+
showNextIcon: boolean;
|
|
10
|
+
imageSrc: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
open: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const MeasuringPointImageView: React.FC<React.PropsWithChildren<MeasuringPointImageViewProps>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface MeasuringPointImageViewMediaProps {
|
|
3
|
+
imageSrc: string;
|
|
4
|
+
showPrevious: () => void;
|
|
5
|
+
showNext: () => void;
|
|
6
|
+
showNextIcon: boolean;
|
|
7
|
+
showPrevIcon: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const MeasuringPointImageViewMedia: React.FC<React.PropsWithChildren<MeasuringPointImageViewMediaProps>>;
|
|
10
|
+
export {};
|
|
@@ -7,7 +7,7 @@ interface MeasuringPointItemProps {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Component for displaying measuring point item.
|
|
10
|
-
* Displays information about the condition of the measuring point, as well as the last
|
|
10
|
+
* Displays information about the condition of the measuring point, as well as the last reported measurement.
|
|
11
11
|
* @param {MeasuringPointItemProps}
|
|
12
12
|
* @returns {*}
|
|
13
13
|
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DocumentRelationships {
|
|
2
|
+
readonly documentId: string;
|
|
3
|
+
readonly characteristics?: DocumentRelationshipsCharacteristics[];
|
|
4
|
+
readonly attachments?: DocumentRelationshipsAttachment[];
|
|
5
|
+
}
|
|
6
|
+
interface DocumentRelationshipsAttachment {
|
|
7
|
+
readonly attachmentId: string;
|
|
8
|
+
readonly attachmentImageUri?: string;
|
|
9
|
+
readonly createdDateTime?: string;
|
|
10
|
+
readonly _links?: DocumentRelationshipsLinks;
|
|
11
|
+
}
|
|
12
|
+
interface DocumentRelationshipsCharacteristics {
|
|
13
|
+
readonly valueId?: string;
|
|
14
|
+
}
|
|
15
|
+
interface DocumentRelationshipsLinks {
|
|
16
|
+
readonly enclosure?: string;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
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[]>;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LeftPanelNavigationStore } from './leftPanelNavigation.store.types';
|
|
2
|
+
export declare const useLeftPanelNavigationStore: import("zustand").UseBoundStore<Omit<Omit<import("zustand").StoreApi<unknown>, "subscribe"> & {
|
|
3
|
+
subscribe: {
|
|
4
|
+
(listener: (selectedState: unknown, previousSelectedState: unknown) => void): () => void;
|
|
5
|
+
<U>(selector: (state: unknown) => 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
|
+
}, "setState"> & {
|
|
11
|
+
setState(nextStateOrUpdater: unknown, shouldReplace?: boolean | undefined): void;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function getLeftPanelNavigationState(): LeftPanelNavigationStore;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type LeftPanelNavigationContent = {
|
|
3
|
+
content: ReactNode;
|
|
4
|
+
header?: ReactNode;
|
|
5
|
+
subHeader?: ReactNode;
|
|
6
|
+
itemId?: string;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
};
|
|
9
|
+
export interface LeftPanelNavigationStore {
|
|
10
|
+
addContent: (args: {
|
|
11
|
+
panelKey: string;
|
|
12
|
+
content: ReactNode;
|
|
13
|
+
header?: ReactNode;
|
|
14
|
+
subHeader?: ReactNode;
|
|
15
|
+
keepLastNavigationItem?: boolean;
|
|
16
|
+
itemId?: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
removeLastContentByPanelKey: (panelKey: string) => void;
|
|
19
|
+
clearItemsByPanelKey: (panelKey: string) => void;
|
|
20
|
+
items: Record<string, LeftPanelNavigationContent[]>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LeftPanelNavigationContent } from './leftPanelNavigation.store.types';
|
|
3
|
+
interface LeftPanelNavigationItemContainerProps {
|
|
4
|
+
itemToDisplay: LeftPanelNavigationContent;
|
|
5
|
+
}
|
|
6
|
+
export declare const LeftPanelNavigationItemContainer: React.FC<LeftPanelNavigationItemContainerProps>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LeftPanelNavigationContent } from './leftPanelNavigation.store.types';
|
|
3
|
+
interface LeftPanelNavigationSideSheetProps {
|
|
4
|
+
itemToDisplay: LeftPanelNavigationContent | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare const LeftPanelNavigationSideSheet: React.FC<LeftPanelNavigationSideSheetProps>;
|
|
7
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export type { FullScreenModeEvent } from './fullScreenModeEvent';
|
|
2
|
-
export type { LeftPanelNavigationUpdateEvent } from './leftPanelNavigationUpdateEvent';
|
|
3
2
|
export type { LegendChangedEvent, LegendStatusesChangedEvent } from './legendEvent';
|
|
4
3
|
export type { OnMainSearchTriggerEvent } from './onMainSearchTriggerEvent';
|
|
5
4
|
export type { PlantEvent } from './plantEvent';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Panel } from '@equinor/echo-core';
|
|
2
|
-
import {
|
|
2
|
+
import { LeftPanelNavigationContent } from '../services/leftPanelNavigation';
|
|
3
3
|
/**
|
|
4
4
|
* Get the previous search item id or the previous active panel label
|
|
5
5
|
*
|
|
6
6
|
* @export
|
|
7
|
-
* @param {
|
|
7
|
+
* @param {LeftPanelNavigationContent[]} openedSearchItems Opened search items
|
|
8
8
|
* @param {Panel[]} modulePanels Module panels
|
|
9
9
|
* @param {string} activePanelKey The active panel key
|
|
10
10
|
* @return {*} {string} Returns the previous search item id or active panel label
|
|
11
11
|
*/
|
|
12
|
-
export declare function getPreviousItemIdOrPanelTitle(openedSearchItems:
|
|
12
|
+
export declare function getPreviousItemIdOrPanelTitle(openedSearchItems: LeftPanelNavigationContent[], modulePanels: Panel[], activePanelKey: string): string;
|
|
13
13
|
/**
|
|
14
14
|
* Get the active panel label
|
|
15
15
|
*
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
interface OpenIn3dDialogsProps {
|
|
3
|
-
isOpenIn3dWarningDialogOpen: boolean;
|
|
4
|
-
isSelectPlantNoDialogOpen: boolean;
|
|
5
|
-
setIsOpenIn3dWarningDialogOpen: Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
-
setIsSelectPlantNoDialogOpen: Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
-
onOKButtonClicked: () => void;
|
|
8
|
-
uniquePlantNos: string[];
|
|
9
|
-
tagNoCounts: Record<string, number>;
|
|
10
|
-
selectedPlantNo: string | undefined;
|
|
11
|
-
setSelectedPlantNo: Dispatch<SetStateAction<string | undefined>>;
|
|
12
|
-
}
|
|
13
|
-
export declare const OpenIn3dDialogs: React.FC<OpenIn3dDialogsProps>;
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './WorkOrderListItem';
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { GlobalSelectionItemErrorStatuses, GlobalSelectionItemType, GlobalSelectionStore, OptimizedWorkOrderDto } from './globalSelectionStore.types';
|
|
2
|
-
export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<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
|
-
}, "setState"> & {
|
|
15
|
-
setState(nextStateOrUpdater: GlobalSelectionStore | Partial<GlobalSelectionStore> | ((state: {
|
|
16
|
-
lists: ({
|
|
17
|
-
label: string;
|
|
18
|
-
key: string;
|
|
19
|
-
type: GlobalSelectionItemType.WorkOrder;
|
|
20
|
-
items: {
|
|
21
|
-
id: string;
|
|
22
|
-
type: GlobalSelectionItemType.WorkOrder;
|
|
23
|
-
data: {
|
|
24
|
-
workOrderId: string;
|
|
25
|
-
tagId?: string | undefined;
|
|
26
|
-
tagPlantId: string;
|
|
27
|
-
workCenterId?: string | undefined;
|
|
28
|
-
workCenterPlantId: string;
|
|
29
|
-
plannerGroupId: string;
|
|
30
|
-
workOrderTypeId: string;
|
|
31
|
-
revisionCodeId: string;
|
|
32
|
-
systemId?: string | undefined;
|
|
33
|
-
isOpen: boolean;
|
|
34
|
-
hasStatusTECO: boolean;
|
|
35
|
-
hasStatusRDOP: boolean;
|
|
36
|
-
hasStatusCANC: boolean;
|
|
37
|
-
hasStatusSTRT: boolean;
|
|
38
|
-
hasStatusRDEX: boolean;
|
|
39
|
-
hasStatusPREP: boolean;
|
|
40
|
-
hasStatusPRCO: boolean;
|
|
41
|
-
title: string;
|
|
42
|
-
plantId: string;
|
|
43
|
-
planningPlantId: string;
|
|
44
|
-
sortField: string;
|
|
45
|
-
locationId: string;
|
|
46
|
-
revisionId: string;
|
|
47
|
-
basicStartDateTime?: string | null | undefined;
|
|
48
|
-
basicEndDateTime?: string | null | undefined;
|
|
49
|
-
createdDateTime?: string | null | undefined;
|
|
50
|
-
maintenanceRecord?: {
|
|
51
|
-
activeStatusIds: string;
|
|
52
|
-
completedDateTime?: string | null | undefined;
|
|
53
|
-
correctiveWorkOrderExist?: boolean | undefined;
|
|
54
|
-
correctiveWorkOrderId?: string | undefined;
|
|
55
|
-
createdDateTime: string;
|
|
56
|
-
detectionMethodGroupId?: string | undefined;
|
|
57
|
-
detectionMethodId?: string | undefined;
|
|
58
|
-
equipmentId: string;
|
|
59
|
-
failureEndDateTime?: string | null | undefined;
|
|
60
|
-
failureImpactId?: string | undefined;
|
|
61
|
-
failureMechanismGroupId?: string | undefined;
|
|
62
|
-
failureMechanismId?: string | undefined;
|
|
63
|
-
failureModeGroupId?: string | undefined;
|
|
64
|
-
failureModeId?: string | undefined;
|
|
65
|
-
failureStartDateTime?: string | null | undefined;
|
|
66
|
-
hasUnsafeFailureMode?: boolean | undefined;
|
|
67
|
-
isBreakdown?: boolean | undefined;
|
|
68
|
-
isOpen?: boolean | undefined;
|
|
69
|
-
locationId?: string | undefined;
|
|
70
|
-
maintenanceRecordTypeId?: string | undefined;
|
|
71
|
-
recordId: string;
|
|
72
|
-
requiredEndDate?: string | null | undefined;
|
|
73
|
-
systemId?: string | undefined;
|
|
74
|
-
tagId: string;
|
|
75
|
-
tagPlantId: string;
|
|
76
|
-
title: string;
|
|
77
|
-
unsafeFailureModeStatus?: string | null | undefined;
|
|
78
|
-
workCenterId?: string | undefined;
|
|
79
|
-
} | null | undefined;
|
|
80
|
-
_links: {
|
|
81
|
-
related: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
metaData: {
|
|
85
|
-
color: string;
|
|
86
|
-
isHiddenByUser: boolean;
|
|
87
|
-
errorStatuses: GlobalSelectionItemErrorStatuses[];
|
|
88
|
-
};
|
|
89
|
-
}[];
|
|
90
|
-
} | {
|
|
91
|
-
label: string;
|
|
92
|
-
key: string;
|
|
93
|
-
type: GlobalSelectionItemType.Tag;
|
|
94
|
-
items: {
|
|
95
|
-
id: string;
|
|
96
|
-
type: GlobalSelectionItemType.Tag;
|
|
97
|
-
data: {
|
|
98
|
-
tagCategoryDescription: string;
|
|
99
|
-
tagCategory: number;
|
|
100
|
-
tagStatus: import("@equinor/echo-search").TagStatus;
|
|
101
|
-
tagType: string;
|
|
102
|
-
updatedDate: Date;
|
|
103
|
-
locationCode: string;
|
|
104
|
-
contrCode: string;
|
|
105
|
-
plantNo: string;
|
|
106
|
-
poNo: string;
|
|
107
|
-
xCoordinate?: number | undefined;
|
|
108
|
-
yCoordinate?: number | undefined;
|
|
109
|
-
zCoordinate?: number | undefined;
|
|
110
|
-
additionalFields: {
|
|
111
|
-
type: string;
|
|
112
|
-
value: string;
|
|
113
|
-
}[];
|
|
114
|
-
tagNo: string;
|
|
115
|
-
description: string;
|
|
116
|
-
projectCode: string;
|
|
117
|
-
system: string;
|
|
118
|
-
};
|
|
119
|
-
metaData: {
|
|
120
|
-
color: string;
|
|
121
|
-
isHiddenByUser: boolean;
|
|
122
|
-
errorStatuses: GlobalSelectionItemErrorStatuses[];
|
|
123
|
-
};
|
|
124
|
-
}[];
|
|
125
|
-
} | {
|
|
126
|
-
label: string;
|
|
127
|
-
key: string;
|
|
128
|
-
type: GlobalSelectionItemType.Equipment;
|
|
129
|
-
items: {
|
|
130
|
-
id: string;
|
|
131
|
-
type: GlobalSelectionItemType.Equipment;
|
|
132
|
-
data: {
|
|
133
|
-
equipmentId: string;
|
|
134
|
-
equipmentDescription: string;
|
|
135
|
-
maintenancePlantId: string;
|
|
136
|
-
functionalLocationId: string;
|
|
137
|
-
manufacturer: string;
|
|
138
|
-
materialNo: string;
|
|
139
|
-
modelNo: string;
|
|
140
|
-
partNo: string;
|
|
141
|
-
serialNo: string;
|
|
142
|
-
tagPlantId?: string | undefined;
|
|
143
|
-
tagId?: string | undefined;
|
|
144
|
-
locationId: string;
|
|
145
|
-
area?: string | undefined;
|
|
146
|
-
categoryId?: string | undefined;
|
|
147
|
-
activeStatusIds: string[];
|
|
148
|
-
systemStatusIds: string[];
|
|
149
|
-
userStatusIds: string[];
|
|
150
|
-
equipmentsStatus: string[];
|
|
151
|
-
changedDate?: string | undefined;
|
|
152
|
-
createdDate?: string | undefined;
|
|
153
|
-
e3DRef?: string | undefined;
|
|
154
|
-
};
|
|
155
|
-
metaData: {
|
|
156
|
-
color: string;
|
|
157
|
-
isHiddenByUser: boolean;
|
|
158
|
-
errorStatuses: GlobalSelectionItemErrorStatuses[];
|
|
159
|
-
};
|
|
160
|
-
}[];
|
|
161
|
-
})[];
|
|
162
|
-
addWorkOrderToSelection: (args: {
|
|
163
|
-
workOrder: OptimizedWorkOrderDto;
|
|
164
|
-
}) => void;
|
|
165
|
-
replaceWorkOrderSelection: (args: {
|
|
166
|
-
workOrders: OptimizedWorkOrderDto[];
|
|
167
|
-
}) => void;
|
|
168
|
-
setNotFoundItems: (args: {
|
|
169
|
-
itemIds: string[];
|
|
170
|
-
}) => void;
|
|
171
|
-
resetItemNotFoundStates: () => void;
|
|
172
|
-
resetState: () => void;
|
|
173
|
-
}) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
174
|
-
type: string;
|
|
175
|
-
} | undefined): void;
|
|
176
|
-
}>;
|