@equinor/echo-framework 0.18.0 → 0.18.2
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 +3 -3
- package/src/index.d.ts +6 -1
- package/src/lib/components/contextualAppLinks/hooks/useContextualAppLinksContext.d.ts +1 -1
- package/src/lib/components/index.d.ts +6 -3
- package/src/lib/components/openIn3d/OpenIn3dWarningDialog.d.ts +7 -0
- package/src/lib/components/openIn3d/PlantNoSelectionDialog.d.ts +13 -0
- package/src/lib/components/openIn3d/SelectedItemsMenu.d.ts +8 -0
- package/src/lib/components/openIn3d/index.d.ts +4 -0
- package/src/lib/components/openIn3d/openIn3dMenu.d.ts +7 -0
- package/src/lib/components/panel/corePanelLeft.d.ts +1 -2
- package/src/lib/components/panel/corePanelRight.d.ts +1 -2
- package/src/lib/components/panel/panelNavigation.helper.d.ts +14 -0
- package/src/lib/components/prepview/common/error/ErrorCard.d.ts +8 -0
- package/src/lib/components/prepview/common/error/index.d.ts +1 -0
- package/src/lib/components/prepview/common/index.d.ts +1 -0
- package/src/lib/components/prepview/panels/history/TagHistory.d.ts +1 -1
- package/src/lib/components/prepview/panels/tagInformation/TagInformation.d.ts +2 -1
- package/src/lib/components/prepview/types/attachment.d.ts +1 -1
- package/src/lib/components/prepview/types/common.d.ts +1 -1
- package/src/lib/components/prepview/types/operation.d.ts +1 -0
- package/src/lib/coreApplication/EchoContentPanels.d.ts +1 -1
- package/src/lib/feature/equipment/components/equipmentItemHeader/equipmentItemHeader.d.ts +2 -0
- package/src/lib/feature/equipment/components/equipmentItemHeader/showEquipmentIn3dButton.d.ts +8 -0
- package/src/lib/feature/equipment/types/equipment.d.ts +4 -0
- package/src/lib/feature/equipment/utils/equipmentUtils.d.ts +19 -0
- package/src/lib/feature/legend/legend.d.ts +7 -3
- package/src/lib/feature/measuringPoint/components/index.d.ts +3 -2
- package/src/lib/feature/measuringPoint/components/lastRecordedMeasurement/lastRecordedMeasurement.logic.d.ts +2 -1
- package/src/lib/feature/measuringPoint/components/measuringPoints.utils.d.ts +14 -6
- package/src/lib/feature/measuringPoint/index.d.ts +2 -2
- package/src/lib/feature/measuringPoint/types/measuringPoint.d.ts +1 -0
- package/src/lib/services/api/api-plants.d.ts +1 -0
- package/src/lib/services/eventHubActions/index.d.ts +2 -1
- package/src/lib/services/eventHubActions/searchActions.d.ts +6 -0
- package/src/lib/types/eventTypes/index.d.ts +1 -0
- package/src/lib/types/eventTypes/plantEvent.d.ts +1 -0
- package/src/lib/types/eventTypes/setMainSearchTextEvent.d.ts +3 -0
- package/src/lib/types/grid/bucketSideDrawer.types.d.ts +2 -0
- package/src/lib/types/grid/index.d.ts +1 -0
- package/src/lib/types/hookLibrary.d.ts +3 -1
- package/src/lib/types/navigation/index.d.ts +1 -0
- package/src/lib/types/navigation/internalApplicationLinks.d.ts +20 -0
- package/src/lib/utils/index.d.ts +2 -1
- package/src/lib/utils/openIn3d/index.d.ts +2 -0
- package/src/lib/utils/openIn3d/tagLists.d.ts +28 -0
- package/src/lib/utils/tagUtils.d.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
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",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"@equinor/eds-icons": "0.19.3",
|
|
12
12
|
"react": ">= 17.0.2",
|
|
13
13
|
"react-dom": ">= 17.0.2",
|
|
14
|
-
"@tanstack/react-query": "5.
|
|
14
|
+
"@tanstack/react-query": ">= 5.14.2 < 6",
|
|
15
15
|
"@microsoft/signalr": "7.0.12",
|
|
16
16
|
"classnames": "2.3.2",
|
|
17
17
|
"history": "5.3.0",
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
19
|
"react-router-dom": "5.3.4",
|
|
20
|
-
"zustand": "4.4.
|
|
20
|
+
"zustand": ">= 4.4.7 < 5"
|
|
21
21
|
},
|
|
22
22
|
"main": "./index.cjs.js",
|
|
23
23
|
"type": "commonjs"
|
package/src/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAcces
|
|
|
9
9
|
export * from './lib/coreApplication';
|
|
10
10
|
export * from './lib/feature/equipment/index';
|
|
11
11
|
export * from './lib/feature/legend/index';
|
|
12
|
+
export { getLatestMeasurementDate, sortMeasuringPointsByMeasurementDate } from './lib/feature/measuringPoint/components/measuringPoints.utils';
|
|
12
13
|
export * from './lib/feature/measuringPoint/index';
|
|
13
14
|
export * from './lib/feature/measuringPoint/types/measuringPoint';
|
|
14
15
|
export { RegisteredHookName } from './lib/hooks/hookLibrary';
|
|
@@ -17,6 +18,7 @@ export { useIsFullScreenModeEnabled } from './lib/hooks/useIsFullScreenModeEnabl
|
|
|
17
18
|
export { useScreenOrientation } from './lib/hooks/useScreenOrientation';
|
|
18
19
|
export { useScreenValues } from './lib/hooks/useScreenValues';
|
|
19
20
|
export * from './lib/services/activeSelectionStore';
|
|
21
|
+
export { getPlantsCachedOrApi, getPlantsFromApi } from './lib/services/api/api-plants';
|
|
20
22
|
export { RegisteredComponentName } from './lib/services/componentRegistry/componentRegistry';
|
|
21
23
|
export * from './lib/services/eventHubActions';
|
|
22
24
|
export * from './lib/services/searchItemDetails/searchItemDetails.store';
|
|
@@ -26,11 +28,14 @@ export * from './lib/types/api-echohub';
|
|
|
26
28
|
export type { EchoHubPlant } from './lib/types/echoHubPlant';
|
|
27
29
|
export * from './lib/types/eventTypes';
|
|
28
30
|
export * from './lib/types/extensions';
|
|
31
|
+
export type { BucketPanelKey, BucketSourceKey } from './lib/types/grid/bucketSideDrawer.types';
|
|
29
32
|
export type { SetActiveTagNo, TagData } from './lib/types/hookLibrary';
|
|
30
33
|
export type { ModelPermissions } from './lib/types/modelPermissions';
|
|
34
|
+
export { InternalApplicationLinks } from './lib/types/navigation/internalApplicationLinks';
|
|
31
35
|
export { PingableSources } from './lib/types/pingableSources';
|
|
32
36
|
export { searchItemDetailsType } from './lib/types/searchItemDetailsType';
|
|
33
37
|
export * from './lib/utils';
|
|
38
|
+
export { convertPathNameToReadableString } from './lib/utils/moduleNameUtils';
|
|
34
39
|
export * from './lib/utils/startup';
|
|
35
40
|
export declare const registerEchopediaComponent: ({ name, component }: {
|
|
36
41
|
name: import("./lib/services/componentRegistry/componentRegistry").RegisteredComponentName;
|
|
@@ -88,7 +93,7 @@ declare const EchoFramework: Readonly<{
|
|
|
88
93
|
tagNo: string;
|
|
89
94
|
instCode: string;
|
|
90
95
|
}): {
|
|
91
|
-
tagDetails: import("
|
|
96
|
+
tagDetails: import("dist/libs/echo-search/src").TagDetailsDto | undefined;
|
|
92
97
|
isTagDetailsLoading: boolean;
|
|
93
98
|
hasError: boolean;
|
|
94
99
|
};
|
|
@@ -8,8 +8,13 @@ export * from './errorBoundary';
|
|
|
8
8
|
export * from './externalLinkButton/externalLinkButton';
|
|
9
9
|
export * from './footer';
|
|
10
10
|
export * from './fullScreenButtons';
|
|
11
|
+
export * from './labelledValueGrid';
|
|
11
12
|
export * from './lazyLoading';
|
|
13
|
+
export { ListItem } from './listItem/listItem';
|
|
12
14
|
export * from './mediator';
|
|
15
|
+
export { OpenIn3dWarningDialog } from './openIn3d/OpenIn3dWarningDialog';
|
|
16
|
+
export { PlantNoSelectionDialog } from './openIn3d/PlantNoSelectionDialog';
|
|
17
|
+
export { SelectedItemsMenu } from './openIn3d/SelectedItemsMenu';
|
|
13
18
|
export * from './pageMenu';
|
|
14
19
|
export * from './panel';
|
|
15
20
|
export * from './panelButton';
|
|
@@ -19,8 +24,6 @@ export * from './projectSelector';
|
|
|
19
24
|
export * from './realTimeData';
|
|
20
25
|
export * from './router';
|
|
21
26
|
export * from './searchMenu';
|
|
27
|
+
export * from './spinner/spinner';
|
|
22
28
|
export * from './tagNumber';
|
|
23
29
|
export * from './toaster';
|
|
24
|
-
export * from './labelledValueGrid';
|
|
25
|
-
export * from './spinner/spinner';
|
|
26
|
-
export { ListItem } from './listItem/listItem';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
interface OpenIn3dWarningDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
setIsOpenIn3dWarningDialogOpen: Dispatch<SetStateAction<boolean>>;
|
|
5
|
+
}
|
|
6
|
+
export declare const OpenIn3dWarningDialog: React.FC<OpenIn3dWarningDialogProps>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
interface PlantNoSelectionDialogProps {
|
|
3
|
+
onOKButtonClicked: () => void;
|
|
4
|
+
open: boolean;
|
|
5
|
+
uniquePlantNos: string[];
|
|
6
|
+
selectedPlantNo: string | undefined;
|
|
7
|
+
setSelectedPlantNo: Dispatch<SetStateAction<string | undefined>>;
|
|
8
|
+
isSelectPlantNoDialogOpen: boolean;
|
|
9
|
+
setIsSelectPlantNoDialogOpen: Dispatch<SetStateAction<boolean>>;
|
|
10
|
+
tagNoCounts: Record<string, number>;
|
|
11
|
+
}
|
|
12
|
+
export declare const PlantNoSelectionDialog: React.FC<PlantNoSelectionDialogProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ObjectsToSendTo3dTypes } from '../../utils';
|
|
3
|
+
interface SelectedItemsProps {
|
|
4
|
+
numberOfSelectedRows: number;
|
|
5
|
+
onOpenIn3dButtonClick: (ObjectsToSendTo3d: ObjectsToSendTo3dTypes) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const SelectedItemsMenu: React.FC<SelectedItemsProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ObjectsToSendTo3dTypes } from '../../utils/openIn3d/tagLists';
|
|
3
|
+
interface OpenIn3dMenuProps {
|
|
4
|
+
onOpenIn3dButtonClick: (objectsToSendTo3d: ObjectsToSendTo3dTypes) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const OpenIn3dMenu: React.FC<OpenIn3dMenuProps>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SearchItemDetailsObject } from '../../services/searchItemDetails/searchItemDetails.store';
|
|
3
|
+
/**
|
|
4
|
+
* Hook for support the search panel navigation: it supports the "breadcumb" functionality, where the currently open item
|
|
5
|
+
* needs to refer back to the previous one.
|
|
6
|
+
*
|
|
7
|
+
* @returns { previousButton: React.ReactNode, activeSearchItem: React.ReactNode } An object containing two React components.
|
|
8
|
+
* previousButton to go back to the previous item in the search flow.
|
|
9
|
+
* activeSearchItem: the currently opened search item in the search flow.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useLeftPanelNavigation: () => {
|
|
12
|
+
previousButton: React.ReactNode;
|
|
13
|
+
activeSearchItem: SearchItemDetailsObject | undefined;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ErrorCard';
|
|
@@ -5,5 +5,5 @@ interface HistoryProps {
|
|
|
5
5
|
workOrderGroups: PrepviewTagHistoryGroup<PrepviewWorkOrder>[];
|
|
6
6
|
punchGroups: PrepviewTagHistoryGroup<PrepviewPunch>[];
|
|
7
7
|
}
|
|
8
|
-
declare function TagHistoryPanel({ notificationGroups, workOrderGroups, punchGroups }: HistoryProps): JSX.Element;
|
|
8
|
+
declare function TagHistoryPanel({ notificationGroups, workOrderGroups, punchGroups, }: HistoryProps): JSX.Element;
|
|
9
9
|
export { TagHistoryPanel };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PrepviewTagInformation } from '../../types';
|
|
2
2
|
interface Props {
|
|
3
3
|
tagInformation: PrepviewTagInformation;
|
|
4
|
+
noInformationFound: boolean;
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
6
7
|
* TagInformationPanel
|
|
7
8
|
* this panel requires the user to have maintenance access to show data.
|
|
8
9
|
*/
|
|
9
|
-
declare function TagInformationPanel({ tagInformation }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function TagInformationPanel({ tagInformation, noInformationFound: notFound, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export { TagInformationPanel };
|
|
@@ -8,7 +8,7 @@ import { PrepviewSafety } from './safety';
|
|
|
8
8
|
import { PrepviewRelatedTag, PrepviewTagInformation } from './tag';
|
|
9
9
|
import { PrepviewTagHistoryGroup, PrepviewWorkOrder } from './workorder';
|
|
10
10
|
export type FetchStatus = {
|
|
11
|
-
statusCode?: 'Forbidden' |
|
|
11
|
+
statusCode?: 'Forbidden' | number;
|
|
12
12
|
};
|
|
13
13
|
export type ContentPickerGroup = {
|
|
14
14
|
title?: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Equipment } from '../../types/equipment';
|
|
2
|
+
interface ShowEquipmentIn3DButtonArgs {
|
|
3
|
+
equipment: Equipment;
|
|
4
|
+
tagNo: string;
|
|
5
|
+
plantNo: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const ShowEquipmentIn3DButton: ({ equipment, tagNo, plantNo }: ShowEquipmentIn3DButtonArgs) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Link } from '@equinor/echo-core';
|
|
2
|
+
import { Equipment } from '../types/equipment';
|
|
3
|
+
import { EquipmentWithMeasuringPoints } from '../types/equipmentWithMeasuringPoints';
|
|
4
|
+
interface OpenMeasuringPointsArgs {
|
|
5
|
+
equipmentId: string;
|
|
6
|
+
e3dRef: string;
|
|
7
|
+
goToLink: Link;
|
|
8
|
+
pathname: string;
|
|
9
|
+
instCode: string;
|
|
10
|
+
tagNo: string;
|
|
11
|
+
plantNo: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const openEquipmentIn3dWeb: ({ equipmentId, e3dRef, goToLink, pathname, instCode, tagNo, plantNo }: OpenMeasuringPointsArgs) => Promise<void>;
|
|
14
|
+
export declare const is3DEquipment: (equipment: Equipment) => boolean;
|
|
15
|
+
export declare const sortMeasurementsInEquipmentWithMeasuringPointsByNewestFirst: (equipmentWithMeasuringPoints: EquipmentWithMeasuringPoints[]) => {
|
|
16
|
+
equipment: Equipment;
|
|
17
|
+
measuringPoints: import("../../measuringPoint").MeasuringPointDto[];
|
|
18
|
+
}[];
|
|
19
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type LegendItemStatus = LegendStatus | string;
|
|
2
2
|
export declare enum LegendStatus {
|
|
3
3
|
Unknown = "Unknown",
|
|
4
|
-
Multiple = "Multiple",
|
|
4
|
+
Multiple = "Multiple",//if status contains plus, eg: PM01+PM02
|
|
5
5
|
ApiError = "Api Error: Failed to get data for legend",
|
|
6
6
|
AsBuilt = "AsBuilt",
|
|
7
7
|
Planned = "Planned",
|
|
@@ -33,7 +33,10 @@ export declare enum LegendStatus {
|
|
|
33
33
|
PM15 = "PM15",
|
|
34
34
|
PM20 = "PM20",
|
|
35
35
|
LC = "LC",
|
|
36
|
-
LO = "LO"
|
|
36
|
+
LO = "LO",
|
|
37
|
+
OnWatch = "OnWatch",
|
|
38
|
+
InProgress = "InProgress",
|
|
39
|
+
AnnotationError = "AnnotationError"
|
|
37
40
|
}
|
|
38
41
|
export declare enum LegendType {
|
|
39
42
|
Stid = "Stid",
|
|
@@ -46,5 +49,6 @@ export declare enum LegendType {
|
|
|
46
49
|
WorkOrderRevision = "WorkOrderRevision",
|
|
47
50
|
ValvePosition = "ValvePosition",
|
|
48
51
|
MeasuringPosition = "MeasuringPosition",
|
|
49
|
-
WorkPermit = "WorkPermit"
|
|
52
|
+
WorkPermit = "WorkPermit",
|
|
53
|
+
Annotations = "Annotations"
|
|
50
54
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { MeasuringPointHeader } from './measuringPointHeader/measuringPointHeader';
|
|
1
|
+
export { failureMechanismConfig } from './failureMechanism.config';
|
|
3
2
|
export { MeasuringPointDetails } from './measuringPointDetails/measuringPointDetails';
|
|
3
|
+
export { MeasuringPointHeader } from './measuringPointHeader/measuringPointHeader';
|
|
4
|
+
export { MeasuringPointItem } from './measuringPointItem';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MeasurementDto } from '../../types/measuringPoint';
|
|
2
2
|
export type LastRecordedMeasurementData = {
|
|
3
|
-
conditionAsText
|
|
3
|
+
conditionAsText?: string;
|
|
4
4
|
measurementDateTime: string | null;
|
|
5
|
+
codeAsText?: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const getLastRecordedMeasurement: (measurements: MeasurementDto[]) => LastRecordedMeasurementData;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
1
|
+
import { MeasurementDto, MeasuringPointDto } from '../types/measuringPoint';
|
|
2
|
+
type FailureMechanismIdAndValue = {
|
|
3
|
+
id: string;
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
type FailureMechanismParams = {
|
|
7
|
+
lastRecordedMeasurement: MeasurementDto | undefined;
|
|
8
|
+
quantitativeCharacteristicId: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare function getFailureMechanismColor({ lastRecordedMeasurement, quantitativeCharacteristicId }: FailureMechanismParams): string;
|
|
11
|
+
export declare function getFailureMechanismIdAndValue({ lastRecordedMeasurement, quantitativeCharacteristicId }: FailureMechanismParams): FailureMechanismIdAndValue | undefined;
|
|
12
|
+
export declare function getColor(measurement: FailureMechanismIdAndValue): string | undefined;
|
|
13
|
+
export declare const getLatestMeasurementDate: (point: MeasuringPointDto) => Date | undefined;
|
|
14
|
+
export declare const sortMeasuringPointsByMeasurementDate: (a: MeasuringPointDto, b: MeasuringPointDto) => number;
|
|
7
15
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MeasuringPointDetails, MeasuringPointItem,
|
|
2
|
-
export type { MeasurementDto, MeasuringPointDto } from './types/measuringPoint';
|
|
1
|
+
export { MeasuringPointDetails, MeasuringPointHeader, MeasuringPointItem, failureMechanismConfig } from './components';
|
|
3
2
|
export { useOpenMeasuringPointDetails } from './hooks';
|
|
3
|
+
export type { MeasurementDto, MeasuringPointDto } from './types/measuringPoint';
|
|
@@ -22,6 +22,7 @@ export interface MeasuringPointDto {
|
|
|
22
22
|
readonly tagPlantId?: string;
|
|
23
23
|
readonly tagId?: string;
|
|
24
24
|
readonly equipmentId?: string;
|
|
25
|
+
readonly quantitativeCharacteristicId?: string;
|
|
25
26
|
readonly quantitativeCharacteristicUnit?: string;
|
|
26
27
|
readonly positionDetails_CoordinateSystemName?: string;
|
|
27
28
|
readonly positionDetails_E3DReferenceNumber?: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SetMainSearchTextEvent } from '../../types/eventTypes/setMainSearchTextEvent';
|
|
2
|
+
/**
|
|
3
|
+
* Emit a SetSearchTextEvent on echo core eventHub with a specific payload.
|
|
4
|
+
* @param {SetMainSearchTextEvent} payload
|
|
5
|
+
*/
|
|
6
|
+
export declare const setMainSearchText: (payload: SetMainSearchTextEvent) => void;
|
|
@@ -3,4 +3,5 @@ export type { LeftPanelNavigationUpdateEvent } from './leftPanelNavigationUpdate
|
|
|
3
3
|
export type { LegendChangedEvent, LegendStatusesChangedEvent } from './legendEvent';
|
|
4
4
|
export type { PlantEvent } from './plantEvent';
|
|
5
5
|
export type { SearchItemDetailsClosedEvent } from './searchDetailsContainerEvents';
|
|
6
|
+
export type { SetMainSearchTextEvent } from './setMainSearchTextEvent';
|
|
6
7
|
export type { ToasterEvent } from './toasterEvent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { BucketPanelKey, BucketSourceKey } from './bucketSideDrawer.types';
|
|
@@ -5,7 +5,9 @@ export type SetActiveTagNo = (argsORtagNo: string | {
|
|
|
5
5
|
instCode?: string;
|
|
6
6
|
activePanelKey?: string;
|
|
7
7
|
keepLastNavigationItem?: boolean;
|
|
8
|
-
|
|
8
|
+
openInPanel?: boolean;
|
|
9
|
+
displayMessageOnItemNotFound?: boolean;
|
|
10
|
+
}, activeTagTab?: string, activeTagSubTab?: string, instCode?: string, openInPanel?: boolean, displayMessageOnItemNotFound?: boolean) => void;
|
|
9
11
|
export type TagData = [(tagNo: string, instCode: string) => void];
|
|
10
12
|
export type SetActiveCommPackNo = (argsORcommPackNo: string | {
|
|
11
13
|
commPackNo: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InternalApplicationLinks } from './internalApplicationLinks';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum InternalApplicationLinks {
|
|
2
|
+
Ayelix = "/ayelix",
|
|
3
|
+
Events = "/events",
|
|
4
|
+
OfflineCamera = "/camera",
|
|
5
|
+
OnlineCamera = "/newcamera",
|
|
6
|
+
MyTasks = "/MyTasks",
|
|
7
|
+
Media = "/media",
|
|
8
|
+
MissionPlanner = "/missionplanner",
|
|
9
|
+
EchoHub = "/EchoHub",
|
|
10
|
+
RelatedTag = "/RelatedTag",
|
|
11
|
+
Tags = "/tags",
|
|
12
|
+
OfflineDocuments = "/OfflineDocuments",
|
|
13
|
+
Viewer = "/viewer",
|
|
14
|
+
Echo4Project = "/project",
|
|
15
|
+
XLD = "/xld",
|
|
16
|
+
SmartPortal = "/smartportal",
|
|
17
|
+
EchoMaps = "/maps",
|
|
18
|
+
Echo3dWeb = "/echo3d",
|
|
19
|
+
Turnaround = "/turnaround"
|
|
20
|
+
}
|
package/src/lib/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
export * from './formatTimeHelpers';
|
|
1
2
|
export * from './navigationUtils';
|
|
3
|
+
export * from './openIn3d';
|
|
2
4
|
export * from './plantInfo';
|
|
3
5
|
export * from './previousUtils';
|
|
4
6
|
export * from './searchUtil';
|
|
5
7
|
export * from './stringUtils';
|
|
6
|
-
export * from './formatTimeHelpers';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TemporaryEchoHubListDto, TemporaryHubResultsList } from '../../types/api-echohub';
|
|
2
|
+
import { EchoHubPlant } from '../../types/echoHubPlant';
|
|
3
|
+
export declare const getTemporarilyEchoHubListFor3d: (instCode: string, request: TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined, withoutBaseUrl?: boolean | undefined) => Promise<{
|
|
4
|
+
app3dUrl: string;
|
|
5
|
+
web3dUrl: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare enum ObjectsToSendTo3dTypes {
|
|
8
|
+
workOrders = "workOrders",
|
|
9
|
+
tags = "tags"
|
|
10
|
+
}
|
|
11
|
+
export type HubListReturnType = {
|
|
12
|
+
app3dUrl: string;
|
|
13
|
+
web3dUrl: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Function for generating a temporary tag list object, used to open tags in Echo3D
|
|
17
|
+
* @export
|
|
18
|
+
* @param {string} sourceModuleName name of the source module name
|
|
19
|
+
* @param {string} createdBy created by (e.g: user email)
|
|
20
|
+
* @param {EchoHubPlant} plant plant
|
|
21
|
+
* @param {TemporaryHubResultsList[]} tagList tag list
|
|
22
|
+
* @param {string} source source (e.g: Echo)
|
|
23
|
+
* @param {number} timeToLiveSeconds time to live (in seconds) for the temporary list
|
|
24
|
+
|
|
25
|
+
* @return {*} {TemporaryEchoHubListDto} temporary tag list object
|
|
26
|
+
*/
|
|
27
|
+
export declare const generateTemporaryTagListObject: (ObjectsToSendTo3d: ObjectsToSendTo3dTypes, sourceModuleName: string, createdBy: string, plant: EchoHubPlant, tagList: TemporaryHubResultsList[], source: string, section?: string | undefined, timeToLiveSeconds?: number) => TemporaryEchoHubListDto;
|
|
28
|
+
export declare function getRandomColor(): string;
|
|
@@ -13,7 +13,10 @@ export declare function getEcho3DAppUrlForTag(tagDetails: TagDetailsDto | undefi
|
|
|
13
13
|
* @param {TagDetailsDto} tagDetails
|
|
14
14
|
* @returns {*} {string}
|
|
15
15
|
*/
|
|
16
|
-
export declare function getPlantCodeForTag(
|
|
16
|
+
export declare function getPlantCodeForTag(args: {
|
|
17
|
+
plantNo: string;
|
|
18
|
+
instCode: string;
|
|
19
|
+
}): Promise<string>;
|
|
17
20
|
/**
|
|
18
21
|
* Function for getting plant project description based on Tag Details
|
|
19
22
|
* Returns the plant project description if found, otherwise, return empty string.
|