@equinor/echo-framework 0.20.10 → 0.20.11
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 -0
- package/src/lib/components/prepview/common/index.d.ts +0 -1
- package/src/lib/components/prepview/common/info/section/index.d.ts +0 -1
- package/src/lib/components/prepview/hooks/index.d.ts +0 -1
- package/src/lib/components/prepview/utils/documents.d.ts +0 -1
- package/src/lib/components/prepview/utils/index.d.ts +0 -2
- package/src/lib/feature/equipment/api/api-equipmentWithMeasuringPoints.d.ts +7 -2
- package/src/lib/feature/equipment/components/equipmentLinkField/equipmentLinkField.d.ts +9 -0
- package/src/lib/feature/equipment/components/index.d.ts +1 -0
- package/src/lib/feature/equipment/index.d.ts +1 -1
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +12 -7
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts +1 -2
- package/src/lib/feature/globalSelection/index.d.ts +2 -2
- package/src/lib/feature/measuringPoint/types/documentRelationships.d.ts +1 -1
- package/src/lib/services/dataLayerPanel/dataLayerPanel.store.d.ts +2 -0
- package/src/lib/types/navigation/internalApplicationLinks.d.ts +2 -1
- package/src/lib/utils/moduleNameUtils.d.ts +1 -1
- package/src/lib/components/homePage/HomePage.d.ts +0 -1
- package/src/lib/components/homePage/index.d.ts +0 -1
- package/src/lib/components/panel/corePanelIcon.d.ts +0 -6
- package/src/lib/components/prepview/common/access/handler/StatusHandler.d.ts +0 -8
- package/src/lib/components/prepview/common/access/handler/index.d.ts +0 -1
- package/src/lib/components/prepview/common/access/index.d.ts +0 -2
- package/src/lib/components/prepview/common/access/request/RequestAccess.d.ts +0 -6
- package/src/lib/components/prepview/common/access/request/index.d.ts +0 -1
- package/src/lib/components/prepview/common/info/section/longText/LongTextSection.d.ts +0 -7
- package/src/lib/components/prepview/common/info/section/longText/index.d.ts +0 -1
- package/src/lib/components/prepview/hooks/useIsMobile.d.ts +0 -4
- package/src/lib/components/prepview/panels/history/items/index.d.ts +0 -1
- package/src/lib/components/prepview/utils/dom.d.ts +0 -1
- package/src/lib/components/prepview/utils/notification.d.ts +0 -2
- package/src/lib/feature/workOrder/index.d.ts +0 -1
- package/src/lib/services/api/api-stid-tags.d.ts +0 -13
- package/src/lib/types/device.d.ts +0 -53
- package/src/lib/types/eventTypes/onClickTagsTrigger.d.ts +0 -3
- package/src/lib/types/grid/index.d.ts +0 -1
- package/src/lib/types/toaster.d.ts +0 -7
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { RequestProCoSysAccess } from './lib/components/requestAccess/RequestPro
|
|
|
8
8
|
export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAccess';
|
|
9
9
|
export { WorkOrderListItem } from './lib/components/workOrderListItem';
|
|
10
10
|
export * from './lib/coreApplication';
|
|
11
|
+
export { fetchEquipmentFromApi } from './lib/feature/equipment/api/api-equipmentWithMeasuringPoints';
|
|
11
12
|
export * from './lib/feature/equipment/index';
|
|
12
13
|
export * from './lib/feature/globalSelection';
|
|
13
14
|
export type { GlobalSelectionItem, OptimizedWorkOrderDto } from './lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export * from './date';
|
|
2
2
|
export * from './documents';
|
|
3
|
-
export * from './dom';
|
|
4
3
|
export * from './enums';
|
|
5
4
|
export * from './logger';
|
|
6
5
|
export * from './object';
|
|
7
6
|
export * from './string';
|
|
8
7
|
export * from './url';
|
|
9
8
|
export * from './workorder';
|
|
10
|
-
export * from './notification';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { EquipmentWithMeasuringPoints } from '../types/equipmentWithMeasuringPoints';
|
|
2
|
-
|
|
2
|
+
interface EquipmentRequest {
|
|
3
3
|
equipmentId: string;
|
|
4
4
|
includeMeasuringPoints?: boolean;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
|
+
interface EquipmentsRequest {
|
|
7
|
+
equipmentIds: ReadonlyArray<string>;
|
|
8
|
+
}
|
|
9
|
+
export declare function fetchEquipmentFromApi(args: EquipmentRequest | EquipmentsRequest): Promise<EquipmentWithMeasuringPoints[]>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface EquipmentLinkFieldProps {
|
|
3
|
+
equipmentId: string;
|
|
4
|
+
tagNo: string;
|
|
5
|
+
plantNo: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const EquipmentLinkField: React.FC<EquipmentLinkFieldProps>;
|
|
8
|
+
export declare function getEquipmentLinkField(equipmentId: string, tagNo: string, plantNo: string): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { EquipmentItemHeader } from './equipmentItemHeader/equipmentItemHeader';
|
|
2
2
|
export { EquipmentItemInfo } from './equipmentItemInfo/equipmentItemInfo';
|
|
3
|
+
export { EquipmentLinkField, getEquipmentLinkField } from './equipmentLinkField/equipmentLinkField';
|
|
3
4
|
export { EquipmentListItem } from './equipmentListItem';
|
|
4
5
|
export { EquipmentTabs } from './equipmentTabs/equipmentTabs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { EquipmentItemHeader, EquipmentItemInfo, EquipmentListItem, EquipmentTabs } from './components';
|
|
1
|
+
export { EquipmentItemHeader, EquipmentItemInfo, EquipmentLinkField, EquipmentListItem, EquipmentTabs, getEquipmentLinkField } from './components';
|
|
2
2
|
export { useOpenEquipmentDetails } from './hooks/useOpenEquipmentDetails';
|
|
3
3
|
export type { Equipment } from './types/equipment';
|
|
4
4
|
export type { EquipmentWithMeasuringPoints } from './types/equipmentWithMeasuringPoints';
|
package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type GlobalSelectionGenericItem<T extends GlobalSelectionItemType> = {
|
|
|
24
24
|
metaData: {
|
|
25
25
|
color: string;
|
|
26
26
|
isHiddenByUser: boolean;
|
|
27
|
-
|
|
27
|
+
errorStatus?: string;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
export type EquipmentGlobalSelectionListItem = GlobalSelectionGenericItem<GlobalSelectionItemType.Equipment>;
|
|
@@ -35,9 +35,9 @@ type EquipmentGlobalSelectionList = GlobalSelectionList<GlobalSelectionItemType.
|
|
|
35
35
|
export type WorkOrderGlobalSelectionList = GlobalSelectionList<GlobalSelectionItemType.WorkOrder>;
|
|
36
36
|
export type TagGlobalSelectionList = GlobalSelectionList<GlobalSelectionItemType.Tag>;
|
|
37
37
|
export type GlobalSelectionListUnion = WorkOrderGlobalSelectionList | TagGlobalSelectionList | EquipmentGlobalSelectionList;
|
|
38
|
-
export
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
export interface ItemErrorStatusUpdates {
|
|
39
|
+
itemId: string;
|
|
40
|
+
errorStatus: string;
|
|
41
41
|
}
|
|
42
42
|
export interface GlobalSelectionStore {
|
|
43
43
|
lists: GlobalSelectionListUnion[];
|
|
@@ -61,14 +61,19 @@ export interface GlobalSelectionStore {
|
|
|
61
61
|
itemId: string;
|
|
62
62
|
isVisible: boolean;
|
|
63
63
|
}) => void;
|
|
64
|
+
/**
|
|
65
|
+
*@deprecated This method is deprecated. Use `removeErrorStatusForItems` instead.
|
|
66
|
+
*/
|
|
64
67
|
resetItemNotFoundStates: () => void;
|
|
65
68
|
resetState: () => void;
|
|
66
|
-
|
|
69
|
+
setErrorStatusForItems: (args: {
|
|
70
|
+
itemErrorStatuses: ItemErrorStatusUpdates[];
|
|
71
|
+
}) => void;
|
|
72
|
+
removeErrorStatusForItems: (args: {
|
|
67
73
|
itemIds: string[];
|
|
68
|
-
status: GlobalSelectionItemErrorStatuses;
|
|
69
74
|
}) => void;
|
|
70
75
|
/**
|
|
71
|
-
*@deprecated This method is deprecated. Use `setStatusForItems` instead
|
|
76
|
+
*@deprecated This method is deprecated. Use `setStatusForItems` instead.
|
|
72
77
|
*/
|
|
73
78
|
setNotFoundItems: (args: {
|
|
74
79
|
itemIds: string[];
|
package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PlantAndTagForOpenIn3d } from '../../openItemsIn3d/logic/openItemsIn3d.utils';
|
|
2
|
-
import { GlobalSelectionGenericItem,
|
|
2
|
+
import { GlobalSelectionGenericItem, GlobalSelectionItemType, GlobalSelectionItemTypeToDataMap, GlobalSelectionListUnion, GlobalSelectionStore } from './globalSelectionStore.types';
|
|
3
3
|
export declare function toGlobalSelectionItem<T extends GlobalSelectionItemTypeToDataMap[K], K extends GlobalSelectionItemType>(item: T, type: K, idSelector: (item: T) => string): GlobalSelectionGenericItem<K>;
|
|
4
4
|
export declare function toGlobalSelectionItems<T extends GlobalSelectionItemTypeToDataMap[K], K extends GlobalSelectionItemType>(items: T[], type: K, idSelector: (item: T) => string): GlobalSelectionGenericItem<K>[];
|
|
5
5
|
export declare function findGlobalSelectionListByKey(state: GlobalSelectionStore, key: string): GlobalSelectionListUnion | undefined;
|
|
6
|
-
export declare function hasGlobalSelectionItemErrorStatus<T extends GlobalSelectionItemType>(item: GlobalSelectionGenericItem<T>, status: GlobalSelectionItemErrorStatuses): boolean;
|
|
7
6
|
export declare function convertGlobalSelectionItemsToPlantTagPairs(): Promise<PlantAndTagForOpenIn3d[]>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
export { OpenGlobalSelectionIn3DButton } from './OpenGlobalSelectionIn3DButton';
|
|
1
2
|
export { getGlobalSelectionStoreState, useGlobalSelectionStore } from './globalSelectionStore/globalSelectionStore';
|
|
2
3
|
export * from './globalSelectionStore/globalSelectionStore.types';
|
|
3
|
-
export { convertGlobalSelectionItemsToPlantTagPairs
|
|
4
|
+
export { convertGlobalSelectionItemsToPlantTagPairs } from './globalSelectionStore/globalSelectionStore.utils';
|
|
4
5
|
export { useGlobalSelectionItems } from './hooks/useGlobalSelectionItems';
|
|
5
6
|
export { useGlobalSelectionLists } from './hooks/useGlobalSelectionLists';
|
|
6
7
|
export { useGlobalSelectionTags } from './hooks/useGlobalSelectionTags';
|
|
7
8
|
export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';
|
|
8
|
-
export { OpenGlobalSelectionIn3DButton } from './OpenGlobalSelectionIn3DButton';
|
|
@@ -7,7 +7,7 @@ interface DocumentRelationshipsAttachment {
|
|
|
7
7
|
readonly attachmentId: string;
|
|
8
8
|
readonly attachmentImageUri?: string;
|
|
9
9
|
readonly createdDateTime?: string;
|
|
10
|
-
readonly quantitativeReading:
|
|
10
|
+
readonly quantitativeReading: number;
|
|
11
11
|
readonly quantitativeReadingUnitId: string;
|
|
12
12
|
}
|
|
13
13
|
interface DocumentRelationshipsCharacteristics {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface PanelUserSettings {
|
|
2
2
|
readonly isTagsVisible: boolean;
|
|
3
3
|
readonly isWorkOrdersVisible: boolean;
|
|
4
|
+
readonly isEquipmentsVisible: boolean;
|
|
4
5
|
}
|
|
5
6
|
interface DataLayerPanelState {
|
|
6
7
|
readonly isOpen: boolean;
|
|
@@ -9,6 +10,7 @@ interface DataLayerPanelState {
|
|
|
9
10
|
interface DataLayerPanelActions {
|
|
10
11
|
togglePanel: () => void;
|
|
11
12
|
toggleWorkOrders: () => void;
|
|
13
|
+
toggleEquipments: () => void;
|
|
12
14
|
toggleTags: () => void;
|
|
13
15
|
}
|
|
14
16
|
type DataLayerPanelStore = DataLayerPanelState & DataLayerPanelActions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const showModuleName: (moduleName: string, moduleNameToReadableString: string) => string | undefined;
|
|
2
|
-
export declare const convertPathNameToReadableString: (pathName: string) => string
|
|
2
|
+
export declare const convertPathNameToReadableString: (pathName: string) => Capitalize<string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const HomePage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './HomePage';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FetchStatus } from '../../../types';
|
|
3
|
-
interface Props {
|
|
4
|
-
statusCode: FetchStatus['statusCode'];
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
declare function StatusHandler({ statusCode, children }: Props): JSX.Element;
|
|
8
|
-
export { StatusHandler };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './StatusHandler';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RequestAccess';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './LongTextSection';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Items';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function escapeSpecialCharacters(text: string): string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { WorkOrderContent } from './WorkOrderContent';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TagSummaryDto } from '@equinor/echo-search';
|
|
2
|
-
/**
|
|
3
|
-
* Get a list of tags from STID.
|
|
4
|
-
* @param {string} args.instCode Plant instCode
|
|
5
|
-
* @param {string[]} args.tagNos Tag ids to query for
|
|
6
|
-
* @param {boolean} args.enableCache With this enabled, the call will be cached in memory and
|
|
7
|
-
* will be fetched from there instead of getting it from the API
|
|
8
|
-
* @returns {TagSummaryDto[]}
|
|
9
|
-
*/
|
|
10
|
-
export declare function getTagsFromStidApi(args: {
|
|
11
|
-
instCode: string;
|
|
12
|
-
tagNos: string[];
|
|
13
|
-
}): Promise<TagSummaryDto[]>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export type SupportedPlatforms = 'Android' | 'Linux' | 'MacOs' | 'iOS' | 'iPadOS' | 'Windows' | 'Platform not found.';
|
|
2
|
-
export type DetailedDeviceInformation = {
|
|
3
|
-
operatingSystem: string;
|
|
4
|
-
webBrowser: string;
|
|
5
|
-
deviceModel: string;
|
|
6
|
-
platform?: SupportedPlatforms;
|
|
7
|
-
};
|
|
8
|
-
export type IDeepDeviceInformation = {
|
|
9
|
-
operatingSystem: string;
|
|
10
|
-
webBrowser: string;
|
|
11
|
-
deviceModel: string;
|
|
12
|
-
platform?: SupportedPlatforms;
|
|
13
|
-
};
|
|
14
|
-
/** If the viewport is a square, then the orientation will be portrait. */
|
|
15
|
-
export type ScreenOrientation = 'portrait' | 'landscape';
|
|
16
|
-
/** Keep in mind, this is calculated when the page loads, so be sure to do refresh if simulating a device in DevTools. */
|
|
17
|
-
export type DeviceType = 'mobile' | 'tablet' | 'desktop';
|
|
18
|
-
export type UserInput = 'touch' | 'mouse';
|
|
19
|
-
export type Browser = 'Chrome' | 'Safari' | 'Firefox' | 'Edge' | 'Opera';
|
|
20
|
-
type Dimensions = {
|
|
21
|
-
width: number;
|
|
22
|
-
height: number;
|
|
23
|
-
};
|
|
24
|
-
export type ScreenDimensions = {
|
|
25
|
-
/** Provides measurements for use in the visual viewport.
|
|
26
|
-
*
|
|
27
|
-
* The visual viewport is the currently visible viewport and these dimensions
|
|
28
|
-
* can be smaller than the layout viewport if, for example, the user has pinch zoomed or summoned their
|
|
29
|
-
* on-screen keyboards.
|
|
30
|
-
*/
|
|
31
|
-
visual: Dimensions;
|
|
32
|
-
/**
|
|
33
|
-
* Provides measurements for the layout viewport. These values are always fetched from
|
|
34
|
-
* innerHeight and innerWidth, so scrollbars are included.
|
|
35
|
-
*/
|
|
36
|
-
layout?: Dimensions;
|
|
37
|
-
/** Provides measurements for use in fullscreen contexts. */
|
|
38
|
-
fullscreen?: FullscreenDimensions;
|
|
39
|
-
};
|
|
40
|
-
export type FullscreenDimensions = {
|
|
41
|
-
/** The total screen dimensions, essentially equal to the screen resolution configured in OS settings.*/
|
|
42
|
-
total: Dimensions;
|
|
43
|
-
/** The available screen dimensions, taking into account overlays such as browser address bar or virtual keyboard. */
|
|
44
|
-
available: Dimensions;
|
|
45
|
-
};
|
|
46
|
-
export interface IDeviceSummary {
|
|
47
|
-
orientation: ScreenOrientation;
|
|
48
|
-
deviceType: DeviceType;
|
|
49
|
-
userInput: UserInput;
|
|
50
|
-
screenDimensions: ScreenDimensions;
|
|
51
|
-
deepInfo: IDeepDeviceInformation;
|
|
52
|
-
}
|
|
53
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { BucketPanelKey, BucketSourceKey } from './bucketSideDrawer.types';
|