@equinor/echo-framework 0.26.6 → 0.26.7
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 +3 -3
- package/package.json +2 -2
- package/src/index.d.ts +3 -0
- package/src/lib/feature/globalSelection/globalSelection.api.d.ts +5 -0
- package/src/lib/feature/globalSelection/globalSelection.internal.d.ts +1 -1
- package/src/lib/feature/globalSelection/index.d.ts +1 -0
- package/src/lib/services/echoViewService/echoView.api.d.ts +3 -0
- package/src/lib/services/echoViewService/echoView.type.d.ts +34 -0
- package/src/lib/services/echoViewService/echoViewService.d.ts +3 -0
- package/src/lib/services/echoViewService/loadEchoViewIdAndSelectionIdFromUrl.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.7",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@equinor/echo-base": ">= 0.26.6 < 0.27.0",
|
|
6
6
|
"@equinor/echo-components": ">= 0.26.6 < 0.27.0",
|
|
7
7
|
"@equinor/echo-core": ">= 0.26.6 < 0.27.0",
|
|
8
8
|
"@equinor/echo-search": ">= 0.26.6 < 0.27.0",
|
|
9
|
-
"@equinor/echo-utils": ">= 0.26.
|
|
9
|
+
"@equinor/echo-utils": ">= 0.26.7 < 0.27.0",
|
|
10
10
|
"@equinor/eds-core-react": "0.43.0",
|
|
11
11
|
"@equinor/eds-icons": "0.22.0",
|
|
12
12
|
"react": ">= 17.0.2",
|
package/src/index.d.ts
CHANGED
|
@@ -43,6 +43,9 @@ export { getMeasurementsFromMaintenanceDataApi } from './lib/services/api/api-me
|
|
|
43
43
|
export { getPlantsCachedOrApi, getPlantsFromApi } from './lib/services/api/api-plants';
|
|
44
44
|
export { RegisteredComponentName } from './lib/services/componentRegistry/componentRegistry';
|
|
45
45
|
export * from './lib/services/dataLayerPanel';
|
|
46
|
+
export { EchoViewInspectionToolMode } from './lib/services/echoViewService/echoView.type';
|
|
47
|
+
export type { EchoView, EchoViewEcmPdfInspectionToolConfig, EchoViewSyncSettings } from './lib/services/echoViewService/echoView.type';
|
|
48
|
+
export { echoViewService, setEchoView } from './lib/services/echoViewService/echoViewService';
|
|
46
49
|
export * from './lib/services/eventHubActions';
|
|
47
50
|
export * from './lib/services/leftPanelNavigation';
|
|
48
51
|
export * from './lib/services/locationService/locationService';
|
|
@@ -217,5 +217,10 @@ export declare const globalSelectionApi: Readonly<{
|
|
|
217
217
|
* Retrieves the unique IDs of all items stored in the selection menu panel.
|
|
218
218
|
*/
|
|
219
219
|
getAll: () => Readonly<GlobalSelectionTypes.ItemId[]>;
|
|
220
|
+
getTagIds: typeof getStoreTagIds;
|
|
221
|
+
getEquipmentIds: typeof getStoreEquipmentIds;
|
|
220
222
|
};
|
|
221
223
|
}>;
|
|
224
|
+
declare function getStoreTagIds(): GlobalSelectionTypes.TagId[];
|
|
225
|
+
declare function getStoreEquipmentIds(): GlobalSelectionTypes.EquipmentId[];
|
|
226
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export { useGlobalSelectionTags } from './hooks/useGlobalSelectionTags';
|
|
|
9
9
|
export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';
|
|
10
10
|
export { useSelectionCategoriesByGroupId } from './hooks/useSelectionCategoriesByGroupId';
|
|
11
11
|
export { useSelectionMenuGroups } from './selectionMenu/hooks/useSelectionMenuGroups';
|
|
12
|
+
export { loadEchoViewIdAndSelectionIdFromUrl } from '../../services/echoViewService/loadEchoViewIdAndSelectionIdFromUrl';
|
|
12
13
|
export { RemoveSelectionItemsConfirmDialog } from './components/RemoveSelectionItemsConfirmDialog';
|
|
13
14
|
export { globalSelectionApi } from './globalSelection.api';
|
|
14
15
|
export { globalSelectionInternal } from './globalSelection.internal';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Guid } from '@equinor/echo-utils';
|
|
2
|
+
export interface EchoViewBaseItem {
|
|
3
|
+
readonly id: Guid;
|
|
4
|
+
}
|
|
5
|
+
export interface EchoView extends EchoViewBaseItem {
|
|
6
|
+
readonly owner: string;
|
|
7
|
+
readonly selectionId: string | undefined;
|
|
8
|
+
readonly instCode: string | undefined;
|
|
9
|
+
readonly tagNo: string | undefined;
|
|
10
|
+
readonly search: string | undefined;
|
|
11
|
+
readonly skipOnboarding: boolean | undefined;
|
|
12
|
+
readonly useMaintenanceDevData: boolean | undefined;
|
|
13
|
+
readonly syncSettings: EchoViewSyncSettings | undefined;
|
|
14
|
+
readonly ecmPdfInspectionTool: EchoViewEcmPdfInspectionToolConfig | undefined;
|
|
15
|
+
readonly echo3D: Record<string, unknown> | undefined;
|
|
16
|
+
readonly version: string;
|
|
17
|
+
}
|
|
18
|
+
export interface EchoViewSyncSettings {
|
|
19
|
+
readonly enablePunches: boolean | undefined;
|
|
20
|
+
readonly enableChecklist: boolean | undefined;
|
|
21
|
+
readonly enableCommPk: boolean | undefined;
|
|
22
|
+
readonly enableMcPk: boolean | undefined;
|
|
23
|
+
readonly enableWorkOrders: boolean | undefined;
|
|
24
|
+
readonly enableNotifications: boolean | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface EchoViewEcmPdfInspectionToolConfig {
|
|
27
|
+
readonly ecm: EchoViewInspectionToolMode | undefined;
|
|
28
|
+
readonly docTypes: string[] | undefined;
|
|
29
|
+
readonly callbackUrl: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
export declare enum EchoViewInspectionToolMode {
|
|
32
|
+
Markup = "Markup",
|
|
33
|
+
View = "View"
|
|
34
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EchoView } from './echoView.type';
|
|
2
|
+
/**
|
|
3
|
+
* Load echo view with selection on startup. Don't add any slow api calls here, since we want to render the app as fast as possible.
|
|
4
|
+
* This DOES NOT THROW, but handles errors internally.
|
|
5
|
+
*/
|
|
6
|
+
export declare function loadEchoViewIdAndSelectionIdFromUrl(): Promise<EchoView | undefined>;
|