@equinor/echo-framework 0.26.6 → 0.26.8
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 +9 -9
- package/src/index.d.ts +6 -0
- package/src/lib/__mocks__/mockedProjects.d.ts +16 -0
- package/src/lib/__mocks__/mockedTags.d.ts +5 -0
- package/src/lib/__mocks__/mockedWorkOrders.d.ts +4 -0
- package/src/lib/__mocks__/plants.d.ts +17 -0
- package/src/lib/components/echoLogo/echoLogo.d.ts +1 -0
- package/src/lib/feature/equipment/hooks/useOpenEquipmentDetails.d.ts +20 -4
- package/src/lib/feature/globalSelection/components/AddToSelectionMenuTrigger/AddToSelectionMenuItem.d.ts +8 -0
- package/src/lib/feature/globalSelection/components/AddToSelectionMenuTrigger/AddToSelectionMenuTrigger.d.ts +6 -0
- package/src/lib/feature/globalSelection/components/SelectionActionBar.d.ts +2 -3
- package/src/lib/feature/globalSelection/globalSelection.api.d.ts +15 -2
- package/src/lib/feature/globalSelection/globalSelection.internal.d.ts +1 -1
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.repository.d.ts +3 -0
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +13 -5
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts +3 -0
- package/src/lib/feature/globalSelection/index.d.ts +2 -0
- package/src/lib/feature/globalSelection/selectionMenu/hooks/useGlobalSelectionColorsSortedByFrequency.d.ts +2 -0
- package/src/lib/feature/globalSelection/selectionMenu/hooks/useMoveSelectionTreeItems.d.ts +10 -0
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/actions/selectionTree.action.types.d.ts +7 -2
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.types.d.ts +11 -2
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.utils.d.ts +13 -2
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/MultipleMarkersByLegends.d.ts +8 -12
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/components/PopoverLoading.d.ts +2 -0
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/hooks/usePopoverHandler.d.ts +7 -0
- package/src/lib/feature/legend/components/popover/LegendPopoverContent.d.ts +1 -0
- package/src/lib/feature/legend/types/legendStrategy.type.d.ts +7 -2
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/measuringPointHistoryList/hooks/useMeasuringChartConfig.d.ts +1 -1
- package/src/lib/feature/measuringPoint/hooks/useOpenMeasuringPointDetails.d.ts +15 -2
- package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/WorkOrderPanelSafeX.d.ts +5 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/api/api-prepview-workOrder-safetyCards.d.ts +6 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/components/SSUListItem/SSUListItem.d.ts +6 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/components/SSUListItem/SSUListItemMarker.d.ts +5 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/hooks/usePrepviewWorkOrderSafetyCards.d.ts +6 -0
- package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/types/workOrder-safetyCards.d.ts +16 -0
- package/src/lib/icons/index.d.ts +13 -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/src/lib/services/eventHubActions/toastActions.d.ts +1 -1
- package/src/lib/services/leftPanelNavigation/index.d.ts +1 -0
- package/src/lib/services/leftPanelNavigation/leftPanelNavigation.store.types.d.ts +0 -1
- package/src/lib/services/leftPanelNavigation/leftPanelNavigation.utils.d.ts +12 -0
- package/src/lib/types/dataAccess/dataAccessLinks.d.ts +34 -0
- package/src/lib/types/dataAccess/index.d.ts +1 -0
- package/src/lib/utils/asyncUtils.d.ts +2 -0
package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/types/workOrder-safetyCards.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface PrepViewSafetyCardDto {
|
|
2
|
+
title: string;
|
|
3
|
+
description?: string | null;
|
|
4
|
+
caseDate: string;
|
|
5
|
+
country?: string | null;
|
|
6
|
+
url?: string | null;
|
|
7
|
+
severity: number;
|
|
8
|
+
}
|
|
9
|
+
export interface PrepViewSafetyCard {
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
caseDate?: Date;
|
|
13
|
+
country: string;
|
|
14
|
+
url: string;
|
|
15
|
+
severity: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { ReactComponent as ConditionAdviserIcon } from './ConditionAdviserIcon.svg';
|
|
2
|
+
export { ReactComponent as Evision } from './Evision.svg';
|
|
3
|
+
export { ReactComponent as Fusion } from './Fusion.svg';
|
|
4
|
+
export { ReactComponent as McApp } from './McApp.svg';
|
|
5
|
+
export { ReactComponent as NotificationIcon } from './Notification.svg';
|
|
6
|
+
export { ReactComponent as ProCoSysIcon } from './ProCoSysIcon.svg';
|
|
7
|
+
export { ReactComponent as SapLogo } from './SapLogo.svg';
|
|
8
|
+
export { ReactComponent as Stid } from './Stid.svg';
|
|
9
|
+
export { ReactComponent as TR2000 } from './TR2000.svg';
|
|
10
|
+
export { ReactComponent as TrendingAppIcon } from './TrendingAppIcon.svg';
|
|
11
|
+
export { ReactComponent as VivaEngage } from './VivaEngage.svg';
|
|
12
|
+
export { ReactComponent as WorkOrderIcon } from './WorkOrder.svg';
|
|
13
|
+
export { ReactComponent as Yammer } from './Yammer.svg';
|
|
@@ -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>;
|
|
@@ -3,4 +3,4 @@ import { ToasterEvent } from './../../types/eventTypes/toasterEvent';
|
|
|
3
3
|
* Emit a Toaster event on echo core eventHub with a specific payload.
|
|
4
4
|
* @param {ToasterEvent} payload
|
|
5
5
|
*/
|
|
6
|
-
export declare
|
|
6
|
+
export declare function displayToast(payload: ToasterEvent): Promise<void>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determines whether a specific item is currently open in a given left panel.
|
|
3
|
+
*
|
|
4
|
+
* @param args - An object containing:
|
|
5
|
+
* - `itemId`: The unique identifier of the item to check.
|
|
6
|
+
* - `panelKey` (optional): The key of the panel to check. If not provided, defaults to `ECHO_CORE_SEARCH`.
|
|
7
|
+
* @returns `true` if the item with the specified `itemId` is the last item in the specified panel and the panel is currently active; otherwise, `false`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isItemOpenInPanel(args: {
|
|
10
|
+
itemId: string;
|
|
11
|
+
panelKey: string;
|
|
12
|
+
}): boolean;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const dataAccessLinks: {
|
|
2
|
+
Y0900: {
|
|
3
|
+
label: string;
|
|
4
|
+
url: string;
|
|
5
|
+
};
|
|
6
|
+
YT105: {
|
|
7
|
+
label: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
Y0018: {
|
|
11
|
+
label: string;
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
YO017: {
|
|
15
|
+
label: string;
|
|
16
|
+
url: string;
|
|
17
|
+
};
|
|
18
|
+
UserAccessIOCSolutions: {
|
|
19
|
+
label: string;
|
|
20
|
+
url: string;
|
|
21
|
+
};
|
|
22
|
+
DataAccessIOCSolutions: {
|
|
23
|
+
label: string;
|
|
24
|
+
url: string;
|
|
25
|
+
};
|
|
26
|
+
STIDReadInternal: (plantName: string) => {
|
|
27
|
+
label: string;
|
|
28
|
+
url: string;
|
|
29
|
+
};
|
|
30
|
+
ProCoSys: (plantName: string) => {
|
|
31
|
+
label: string;
|
|
32
|
+
url: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { dataAccessLinks } from './dataAccessLinks';
|