@equinor/echo-framework 0.20.1 → 0.20.3
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/index.d.ts +1 -2
- package/src/lib/components/requestAccess/RequestProCoSysAccess.d.ts +1 -0
- package/src/lib/components/requestAccess/hooks/fetchPlantInfo.d.ts +2 -0
- package/src/lib/components/spinner/tabSpinner.d.ts +1 -0
- package/src/lib/feature/equipment/api/api-equipmentWithMeasuringPoints.d.ts +2 -1
- package/src/lib/feature/equipment/components/equipmentTabs/MeasuringPointsForEquipmentItem.d.ts +9 -0
- package/src/lib/feature/equipment/components/equipmentTabs/equipmentTabs.d.ts +0 -2
- package/src/lib/feature/equipment/hooks/useEquipmentWithMeasuringPoints.d.ts +4 -0
- package/src/lib/feature/equipment/index.d.ts +0 -1
- package/src/lib/feature/globalSelection/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { getEquipmentWithMeasuringPointsFromApi } from './lib/feature/equipment/api/api-equipmentWithMeasuringPoints';
|
|
3
2
|
import { getLegendStatusColor } from './lib/feature/legend/utils/legendUtils';
|
|
4
3
|
import './lib/globalStyles.css';
|
|
5
4
|
import { getPlantsInfo, getTagDetails } from './lib/services/api';
|
|
@@ -11,6 +10,7 @@ export { SelectedItemsMenu } from './lib/components/openIn3d/SelectedItemsMenu';
|
|
|
11
10
|
export { PrepviewButton } from './lib/components/prepviewButton/prepviewButton';
|
|
12
11
|
export { RequestProCoSysAccess } from './lib/components/requestAccess/RequestProCoSysAccess';
|
|
13
12
|
export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAccess';
|
|
13
|
+
export { useFetchPlantInfo } from './lib/components/requestAccess/hooks/fetchPlantInfo';
|
|
14
14
|
export { WorkOrderListItem } from './lib/components/workOrderListItem';
|
|
15
15
|
export * from './lib/coreApplication';
|
|
16
16
|
export * from './lib/feature/equipment/index';
|
|
@@ -128,7 +128,6 @@ declare const EchoFramework: Readonly<{
|
|
|
128
128
|
web3dUrl: string;
|
|
129
129
|
}>;
|
|
130
130
|
createTemporarilyEchoHubListFor3D: (request: import("./lib/types/api-echohub").TemporaryEchoHubListDto, abortSignal?: AbortSignal | undefined) => Promise<import("./lib/types/api-echohub").TemporaryHubListCreatedResponse>;
|
|
131
|
-
getEquipmentWithMeasuringPointsFromApi: typeof getEquipmentWithMeasuringPointsFromApi;
|
|
132
131
|
}>;
|
|
133
132
|
}>;
|
|
134
133
|
export default EchoFramework;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TabSpinner: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EquipmentWithMeasuringPoints } from '../types/equipmentWithMeasuringPoints';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function getEquipmentFromApi({ equipmentId, includeMeasuringPoints }: {
|
|
3
3
|
equipmentId: string;
|
|
4
|
+
includeMeasuringPoints?: boolean;
|
|
4
5
|
}): Promise<EquipmentWithMeasuringPoints[]>;
|
package/src/lib/feature/equipment/components/equipmentTabs/MeasuringPointsForEquipmentItem.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface MeasuringPointsPanelProps {
|
|
3
|
+
equipmentId: string;
|
|
4
|
+
onLoadUpdate?: (args: {
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
numberOfItemsLoaded?: number;
|
|
7
|
+
}) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const MeasuringPointsForEquipmentItem: React.FC<MeasuringPointsPanelProps>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MeasuringPointDto } from '../../../measuringPoint';
|
|
3
2
|
import { Equipment } from '../../types/equipment';
|
|
4
3
|
export interface EquipmentTabsProps {
|
|
5
4
|
equipment: Equipment;
|
|
6
|
-
measuringPoints: MeasuringPointDto[];
|
|
7
5
|
tagNo: string;
|
|
8
6
|
}
|
|
9
7
|
export declare const EquipmentTabs: React.FC<EquipmentTabsProps>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { EquipmentWithMeasuringPoints } from '../types/equipmentWithMeasuringPoints';
|
|
2
|
+
export declare function useEquipmentWithoutMeasuringPoints(equipmentId: string): {
|
|
3
|
+
status: 'error' | 'success' | 'pending';
|
|
4
|
+
equipmentWithMeasuringPoints: EquipmentWithMeasuringPoints[];
|
|
5
|
+
};
|
|
2
6
|
export declare function useEquipmentWithMeasuringPoints(equipmentId: string): {
|
|
3
7
|
status: 'error' | 'success' | 'pending';
|
|
4
8
|
equipmentWithMeasuringPoints: EquipmentWithMeasuringPoints[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { getEquipmentWithMeasuringPointsFromApi } from './api/api-equipmentWithMeasuringPoints';
|
|
2
1
|
export { EquipmentItemHeader, EquipmentItemInfo, EquipmentListItem, EquipmentTabs } from './components';
|
|
3
2
|
export { useOpenEquipmentDetails } from './hooks/useOpenEquipmentDetails';
|
|
4
3
|
export type { Equipment } from './types/equipment';
|
|
@@ -2,4 +2,5 @@ export { getGlobalSelectionStoreState, useGlobalSelectionStore } from './globalS
|
|
|
2
2
|
export * from './globalSelectionStore/globalSelectionStore.types';
|
|
3
3
|
export * from './globalSelectionStore/globalSelectionStore.utils';
|
|
4
4
|
export { useGlobalSelectionLists } from './hooks/useGlobalSelectionLists';
|
|
5
|
+
export { useGlobalSelectionTags } from './hooks/useGlobalSelectionTags';
|
|
5
6
|
export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';
|