@equinor/echo-framework 0.26.7 → 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.
Files changed (43) hide show
  1. package/index.cjs.js +3 -3
  2. package/package.json +9 -9
  3. package/src/index.d.ts +3 -0
  4. package/src/lib/__mocks__/mockedProjects.d.ts +16 -0
  5. package/src/lib/__mocks__/mockedTags.d.ts +5 -0
  6. package/src/lib/__mocks__/mockedWorkOrders.d.ts +4 -0
  7. package/src/lib/__mocks__/plants.d.ts +17 -0
  8. package/src/lib/components/echoLogo/echoLogo.d.ts +1 -0
  9. package/src/lib/feature/equipment/hooks/useOpenEquipmentDetails.d.ts +20 -4
  10. package/src/lib/feature/globalSelection/components/AddToSelectionMenuTrigger/AddToSelectionMenuItem.d.ts +8 -0
  11. package/src/lib/feature/globalSelection/components/AddToSelectionMenuTrigger/AddToSelectionMenuTrigger.d.ts +6 -0
  12. package/src/lib/feature/globalSelection/components/SelectionActionBar.d.ts +2 -3
  13. package/src/lib/feature/globalSelection/globalSelection.api.d.ts +10 -2
  14. package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.repository.d.ts +3 -0
  15. package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +13 -5
  16. package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts +3 -0
  17. package/src/lib/feature/globalSelection/index.d.ts +1 -0
  18. package/src/lib/feature/globalSelection/selectionMenu/hooks/useGlobalSelectionColorsSortedByFrequency.d.ts +2 -0
  19. package/src/lib/feature/globalSelection/selectionMenu/hooks/useMoveSelectionTreeItems.d.ts +10 -0
  20. package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/actions/selectionTree.action.types.d.ts +7 -2
  21. package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.types.d.ts +11 -2
  22. package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.utils.d.ts +13 -2
  23. package/src/lib/feature/legend/components/pdfMarkers/subComponents/MultipleMarkersByLegends.d.ts +8 -12
  24. package/src/lib/feature/legend/components/pdfMarkers/subComponents/components/PopoverLoading.d.ts +2 -0
  25. package/src/lib/feature/legend/components/pdfMarkers/subComponents/hooks/usePopoverHandler.d.ts +7 -0
  26. package/src/lib/feature/legend/components/popover/LegendPopoverContent.d.ts +1 -0
  27. package/src/lib/feature/legend/types/legendStrategy.type.d.ts +7 -2
  28. package/src/lib/feature/measuringPoint/components/measuringPointDetails/measuringPointHistoryList/hooks/useMeasuringChartConfig.d.ts +1 -1
  29. package/src/lib/feature/measuringPoint/hooks/useOpenMeasuringPointDetails.d.ts +15 -2
  30. package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/WorkOrderPanelSafeX.d.ts +5 -0
  31. package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/api/api-prepview-workOrder-safetyCards.d.ts +6 -0
  32. package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/components/SSUListItem/SSUListItem.d.ts +6 -0
  33. package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/components/SSUListItem/SSUListItemMarker.d.ts +5 -0
  34. package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/hooks/usePrepviewWorkOrderSafetyCards.d.ts +6 -0
  35. package/src/lib/feature/workOrder/components/WorkOrderPanelSafeX/types/workOrder-safetyCards.d.ts +16 -0
  36. package/src/lib/icons/index.d.ts +13 -0
  37. package/src/lib/services/eventHubActions/toastActions.d.ts +1 -1
  38. package/src/lib/services/leftPanelNavigation/index.d.ts +1 -0
  39. package/src/lib/services/leftPanelNavigation/leftPanelNavigation.store.types.d.ts +0 -1
  40. package/src/lib/services/leftPanelNavigation/leftPanelNavigation.utils.d.ts +12 -0
  41. package/src/lib/types/dataAccess/dataAccessLinks.d.ts +34 -0
  42. package/src/lib/types/dataAccess/index.d.ts +1 -0
  43. package/src/lib/utils/asyncUtils.d.ts +2 -0
@@ -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';
@@ -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 const displayToast: (payload: ToasterEvent) => void;
6
+ export declare function displayToast(payload: ToasterEvent): Promise<void>;
@@ -1,2 +1,3 @@
1
1
  export { getLeftPanelNavigationState } from './leftPanelNavigation.store';
2
+ export { isItemOpenInPanel } from './leftPanelNavigation.utils';
2
3
  export * from './leftPanelNavigation.store.types';
@@ -4,7 +4,6 @@ export type LeftPanelNavigationContent = {
4
4
  header?: ReactNode;
5
5
  subHeader?: ReactNode;
6
6
  itemId?: string;
7
- isOpen: boolean;
8
7
  };
9
8
  export interface LeftPanelNavigationStore {
10
9
  addContent: (args: {
@@ -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';
@@ -8,4 +8,6 @@
8
8
  export declare function fireAndForget(asyncFunc: () => Promise<void>, options: {
9
9
  userFriendlyErrorMessage: string;
10
10
  displayToast?: boolean;
11
+ preAction?: () => void;
12
+ postAction?: () => void;
11
13
  }): void;