@equinor/echo-framework 0.20.12 → 0.20.14

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 (40) hide show
  1. package/index.cjs.js +1 -1
  2. package/package.json +3 -2
  3. package/src/index.d.ts +2 -3
  4. package/src/lib/components/prepview/Prepview.d.ts +16 -11
  5. package/src/lib/components/prepview/api/api.d.ts +2 -1
  6. package/src/lib/components/prepview/api/resources.d.ts +1 -0
  7. package/src/lib/components/prepview/colors/ColorMapping.d.ts +37 -0
  8. package/src/lib/components/prepview/colors/Styles.d.ts +22 -0
  9. package/src/lib/components/prepview/colors/index.d.ts +1 -0
  10. package/src/lib/components/prepview/common/details/extendedBorder/ExtendedTabsBorder.d.ts +1 -0
  11. package/src/lib/components/prepview/common/details/extendedBorder/index.d.ts +1 -0
  12. package/src/lib/components/prepview/common/details/index.d.ts +1 -0
  13. package/src/lib/components/prepview/common/index.d.ts +0 -1
  14. package/src/lib/components/prepview/context/PrepviewContext.d.ts +13 -8
  15. package/src/lib/components/prepview/notification/header/NotificationHeader.d.ts +1 -1
  16. package/src/lib/components/prepview/types/shared.d.ts +17 -1
  17. package/src/lib/components/prepview/types/workorder.d.ts +29 -0
  18. package/src/lib/components/prepview/utils/enums/tagHistoryItem.d.ts +2 -1
  19. package/src/lib/components/prepview/workorder/WorkOrder.d.ts +1 -2
  20. package/src/lib/components/prepview/workorder/header/WorkOrderHeader.d.ts +1 -2
  21. package/src/lib/components/prepview/workorder/pm15/PM15WorkOrder.d.ts +6 -0
  22. package/src/lib/components/prepview/workorder/pm15/equipment/WOEquipment.d.ts +5 -0
  23. package/src/lib/components/prepview/workorder/pm15/equipment/WOEquipmentHorizontal.d.ts +6 -0
  24. package/src/lib/components/prepview/workorder/pm15/equipment/WOEquipmentVertical.d.ts +6 -0
  25. package/src/lib/components/prepview/workorder/pm15/equipment/index.d.ts +1 -0
  26. package/src/lib/components/prepview/workorder/pm15/index.d.ts +1 -0
  27. package/src/lib/components/verticalTabsSplitView/VerticalTabsSplitView.d.ts +1 -0
  28. package/src/lib/feature/globalSelection/OpenGlobalSelectionIn3DButton.d.ts +2 -1
  29. package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +3 -0
  30. package/src/lib/feature/legend/index.d.ts +1 -1
  31. package/src/lib/feature/legend/utils/legendUtils.d.ts +3 -0
  32. package/src/lib/feature/measuringPoint/components/measuringPointDetails/imageListItem.d.ts +9 -0
  33. package/src/lib/feature/measuringPoint/components/measuringPointDetails/labelledImageList.d.ts +3 -7
  34. package/src/lib/feature/measuringPoint/components/measuringPointDetails/type/attachment.d.ts +6 -0
  35. package/src/lib/feature/measuringPoint/hooks/useDocumentRelationships.d.ts +1 -1
  36. package/src/lib/feature/measuringPoint/index.d.ts +1 -0
  37. package/src/lib/feature/openItemsIn3d/SelectedItemsMenu.d.ts +1 -1
  38. package/src/lib/feature/openItemsIn3d/openIn3dMenu.d.ts +1 -1
  39. package/src/lib/services/dataLayerPanel/dataLayerPanel.store.d.ts +4 -1
  40. package/src/lib/theme/themeConst.d.ts +0 -58
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/echo-framework",
3
- "version": "0.20.12",
3
+ "version": "0.20.14",
4
4
  "peerDependencies": {
5
5
  "@equinor/echo-base": ">= 0.7.0 < 0.8.0",
6
6
  "@equinor/echo-components": ">= 0.11.0 < 0.12.0",
@@ -18,7 +18,8 @@
18
18
  "lodash": "4.17.21",
19
19
  "react-router-dom": "5.3.4",
20
20
  "zustand": ">= 4.4.7 < 5",
21
- "react-swipeable": "7.0.1"
21
+ "react-swipeable": "7.0.1",
22
+ "immer": "10.1.1"
22
23
  },
23
24
  "main": "./index.cjs.js",
24
25
  "type": "commonjs",
package/src/index.d.ts CHANGED
@@ -3,9 +3,9 @@ import './lib/globalStyles.css';
3
3
  import { getPlantsInfo, getTagDetails } from './lib/services/api';
4
4
  export * from './lib/components';
5
5
  export { PrepviewButton } from './lib/components/prepviewButton/prepviewButton';
6
- export { useFetchPlantInfo } from './lib/components/requestAccess/hooks/fetchPlantInfo';
7
6
  export { RequestProCoSysAccess } from './lib/components/requestAccess/RequestProCoSysAccess';
8
7
  export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAccess';
8
+ export { useFetchPlantInfo } from './lib/components/requestAccess/hooks/fetchPlantInfo';
9
9
  export { WorkOrderListItem } from './lib/components/workOrderListItem';
10
10
  export * from './lib/coreApplication';
11
11
  export { fetchEquipmentFromApi } from './lib/feature/equipment/api/api-equipmentWithMeasuringPoints';
@@ -18,8 +18,8 @@ export { getLatestMeasurementDate, sortMeasuringPointsByMeasurementDate } from '
18
18
  export * from './lib/feature/measuringPoint/index';
19
19
  export * from './lib/feature/measuringPoint/types/measuringPoint';
20
20
  export * from './lib/feature/openItemsIn3d';
21
- export { createEcho3dInternalLink } from './lib/feature/openItemsIn3d/logic/createEcho3dInternalLink';
22
21
  export { SelectedItemsMenu } from './lib/feature/openItemsIn3d/SelectedItemsMenu';
22
+ export { createEcho3dInternalLink } from './lib/feature/openItemsIn3d/logic/createEcho3dInternalLink';
23
23
  export { WorkOrderContent } from './lib/feature/workOrder/WorkOrderContent';
24
24
  export { RegisteredHookName } from './lib/hooks/hookLibrary';
25
25
  export { useIsCompactLayout } from './lib/hooks/useIsCompactLayout';
@@ -31,7 +31,6 @@ export { RegisteredComponentName } from './lib/services/componentRegistry/compon
31
31
  export * from './lib/services/dataLayerPanel';
32
32
  export * from './lib/services/eventHubActions';
33
33
  export * from './lib/services/leftPanelNavigation';
34
- export * from './lib/theme/themeConst';
35
34
  export * from './lib/types/api-echohub';
36
35
  export type { EchoHubPlant } from './lib/types/echoHubPlant';
37
36
  export * from './lib/types/eventTypes';
@@ -1,22 +1,27 @@
1
1
  import React from 'react';
2
- import { ColorMap, SideSheetOrientation, WorkOrderDateType } from '@equinor/echo-components';
3
- import { HistoricNotificationItem, HistoricPunchItem, HistoricWorkOrderItem, ItemTypes } from './types';
2
+ import { SideSheetOrientation, WorkOrderDateType } from '@equinor/echo-components';
3
+ import { Coordinates, HistoricNotificationItem, HistoricPunchItem, HistoricWorkOrderItem, ItemTypes, WorkOrderEquipment } from './types';
4
4
  import { WorkItemType } from './utils';
5
+ import { SEBadgeType, SNBadgeType, WoBadgeType } from './colors';
5
6
  interface PrepviewProps {
6
7
  orientation: SideSheetOrientation;
7
- instCode?: string;
8
- workOrderId?: string;
9
- workOrderOperationId?: string;
10
- notificationId?: string;
11
- punchId?: string;
8
+ headerAction?: React.ReactNode;
12
9
  tagClicked: (tagId: string, instCode: string) => void;
13
- packageClicked?: (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
14
10
  historicItemClicked?: (item: HistoricNotificationItem | HistoricWorkOrderItem | HistoricPunchItem, itemType: WorkItemType) => void;
15
- objectNotificationClicked?: (notification: HistoricNotificationItem) => void;
16
11
  showLongTextClicked?: (id: string, type: WorkItemType, longText: string) => void;
17
- headerAction?: React.ReactNode;
18
- colorMap?: ColorMap;
12
+ notificationId?: string;
13
+ currentNotificationLegendOption?: SNBadgeType;
14
+ workOrderId?: string;
15
+ currentWorkOrderLegendOption?: WoBadgeType;
16
+ workOrderOperationId?: string;
19
17
  workOrderDateType?: WorkOrderDateType;
18
+ objectNotificationClicked?: (notification: HistoricNotificationItem) => void;
19
+ punchId?: string;
20
+ instCode?: string;
21
+ packageClicked?: (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
22
+ currentEquipmentLegendOption?: SEBadgeType;
23
+ onEquipmentLocationClick?: (coordinates: Coordinates) => void;
24
+ onEquipmentClick?: (equipment: WorkOrderEquipment) => void;
20
25
  }
21
26
  declare function Prepview(props: PrepviewProps): JSX.Element | null;
22
27
  export * from './types/shared';
@@ -1,4 +1,4 @@
1
- import { NotificationDetails, PrepviewAttachment, PrepviewDocumentGroup, PrepviewHistory, PrepviewObject, PrepviewOperation, PrepviewSafety, PrepviewTagInformation, PunchDetails, SubseaNotificationDetails, SubseaWorkOrderDetails, WorkOrderDetails } from '../types';
1
+ import { NotificationDetails, PrepviewAttachment, PrepviewDocumentGroup, PrepviewHistory, PrepviewObject, PrepviewOperation, PrepviewSafety, PrepviewTagInformation, PunchDetails, SubseaNotificationDetails, SubseaWorkOrderDetails, WorkOrderDetails, WorkOrderEquipment } from '../types';
2
2
  export declare function getWorkOrderDetails(workOrderId: string): Promise<WorkOrderDetails>;
3
3
  export declare function getSubseaWorkOrderDetails(workOrderId: string): Promise<SubseaWorkOrderDetails>;
4
4
  export declare function getWorkType(workOrderId: string): Promise<string[]>;
@@ -13,3 +13,4 @@ export declare function getHistory(itemId: string, isWorkOrder?: boolean): Promi
13
13
  export declare function getSafetyCards(itemId: string, isWorkOrder?: boolean): Promise<PrepviewSafety[]>;
14
14
  export declare function getOperations(workOrderId: string): Promise<PrepviewOperation[]>;
15
15
  export declare function getObjects(workOrderId: string): Promise<PrepviewObject[]>;
16
+ export declare function getEquipment(workOrderId: string): Promise<WorkOrderEquipment[]>;
@@ -13,3 +13,4 @@ export declare function getHistory(itemId: string, isWorkOrder?: boolean): strin
13
13
  export declare function getSafetyCards(itemId: string, isWorkOrder?: boolean): string;
14
14
  export declare function getOperations(workOrderId: string): string;
15
15
  export declare function getObjects(workOrderId: string): string;
16
+ export declare function getEquipment(workOrderId: string): string;
@@ -0,0 +1,37 @@
1
+ import { ColorMap } from '@equinor/echo-components';
2
+ import { WorkOrderDetails } from '../types';
3
+ export declare enum SNBadgeType {
4
+ Status = "Status",
5
+ FailureImpact = "FailureImpact",
6
+ RequiredEndDateStatus = "RequiredEndDateStatus",
7
+ Count = "Count"
8
+ }
9
+ export declare enum WoBadgeType {
10
+ Status = "Status",
11
+ RequiredEndDateStatus = "RequiredEndDateStatus",
12
+ WorkOrderCount = "Count",
13
+ Operations = "Operations",
14
+ UserStatus = "UserStatus",
15
+ BasicFinishDateStatus = "BasicFinishDateStatus"
16
+ }
17
+ export declare enum SEBadgeType {
18
+ EquipmentGroup = "EquipmentGroup",
19
+ Count = "Count"
20
+ }
21
+ export type WorkOrderColorMapConfig = Pick<WorkOrderDetails, 'isActive' | 'requiredEndDateStatus' | 'basicFinishDateStatus' | 'activeStatusIds'>;
22
+ /**
23
+ * Used to set colorMap on Notification visuals such as ListItems and CompactIconLinks
24
+ */
25
+ export declare function getNotificationColorMap(currentBadgeOption: SNBadgeType | undefined, isActive?: boolean, requiredEndDateStatus?: string | undefined, failureImpact?: string | undefined): ColorMap;
26
+ /**
27
+ * Converts failureImpact into failureImpactId
28
+ */
29
+ export declare function convertToFailureImpactId(failureImpact: string): "X" | "S" | "D" | "U" | "";
30
+ /**
31
+ * Used to set colorMap on Work order visuals such as ListItems
32
+ */
33
+ export declare function getWorkOrderColorMap(currentBadgeOption: WoBadgeType | undefined, isActive: boolean, requiredEndDateStatus?: string, basicFinishDateStatus?: string): ColorMap | undefined;
34
+ /**
35
+ * Used to set colorMap on Equipment visuals such as ListItems
36
+ */
37
+ export declare function getEquipmentColorMap(currentBadgeOption: SEBadgeType | undefined, equipmentGroup?: string): ColorMap;
@@ -0,0 +1,22 @@
1
+ import { ColorMap } from '@equinor/echo-components';
2
+ export declare const StatusStyle: {
3
+ [key: string]: ColorMap;
4
+ };
5
+ export declare const CountStyle: {
6
+ [key: string]: ColorMap;
7
+ };
8
+ export declare const ReqEndDateStyle: {
9
+ [key: string]: ColorMap;
10
+ };
11
+ export declare const UserStatusStyle: {
12
+ [key: string]: ColorMap;
13
+ };
14
+ export declare const BasicFinishStyle: {
15
+ [key: string]: ColorMap;
16
+ };
17
+ export declare const FailureImpactStyle: {
18
+ [key: string]: ColorMap;
19
+ };
20
+ export declare const EquipmentGroupStyle: {
21
+ [key: string]: ColorMap;
22
+ };
@@ -0,0 +1 @@
1
+ export * from './ColorMapping';
@@ -0,0 +1 @@
1
+ export declare function ExtendedTabsBorder(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ExtendedTabsBorder';
@@ -1,3 +1,4 @@
1
1
  export * from './accordion';
2
2
  export * from './loader';
3
3
  export * from './panel';
4
+ export * from './extendedBorder';
@@ -1,4 +1,3 @@
1
- export * from '../../verticalTabsSplitView';
2
1
  export * from './details';
3
2
  export * from './error';
4
3
  export * from './fileSizeDisplay';
@@ -1,18 +1,23 @@
1
1
  import React from 'react';
2
- import { ColorMap, SideSheetOrientation } from '@equinor/echo-components';
3
- import { HistoricNotificationItem, HistoricPunchItem, HistoricWorkOrderItem, ItemTypes } from '../types';
2
+ import { SideSheetOrientation } from '@equinor/echo-components';
3
+ import { Coordinates, HistoricNotificationItem, HistoricPunchItem, HistoricWorkOrderItem, ItemTypes, WorkOrderEquipment } from '../types';
4
4
  import { WorkItemType } from '../utils';
5
+ import { SEBadgeType, SNBadgeType, WoBadgeType } from '../colors';
5
6
  interface PrepviewContext {
6
- instCode: string;
7
7
  orientation: SideSheetOrientation;
8
- isWorkOrder: boolean;
9
- workOrderOperationId?: string;
10
- colorMap?: ColorMap;
11
8
  tagClicked: (tagId: string, instCode: string) => void;
12
- packageClicked?: (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
13
9
  historicItemClicked?: (item: HistoricNotificationItem | HistoricWorkOrderItem | HistoricPunchItem, itemType: WorkItemType) => void;
14
- objectNotificationClicked?: (notification: HistoricNotificationItem) => void;
15
10
  showLongTextClicked?: (id: string, type: WorkItemType, longText: string) => void;
11
+ currentNotificationLegendOption?: SNBadgeType;
12
+ isWorkOrder: boolean;
13
+ workOrderOperationId?: string;
14
+ objectNotificationClicked?: (notification: HistoricNotificationItem) => void;
15
+ currentWorkOrderLegendOption?: WoBadgeType;
16
+ instCode?: string;
17
+ packageClicked?: (type: ItemTypes, itemNumber: string, projectNumber: string) => void;
18
+ onEquipmentClick?: (equipment: WorkOrderEquipment) => void;
19
+ onEquipmentLocationClick?: (coordinates: Coordinates) => void;
20
+ currentEquipmentLegendOption?: SEBadgeType;
16
21
  }
17
22
  export declare const PrepviewContext: React.Context<PrepviewContext>;
18
23
  export declare const usePrepviewContext: () => PrepviewContext;
@@ -3,5 +3,5 @@ interface NotificationHeaderProps {
3
3
  notificationDetails: NotificationDetails;
4
4
  headerAction?: React.ReactNode;
5
5
  }
6
- declare function NotificationHeader({ notificationDetails, headerAction }: NotificationHeaderProps): JSX.Element | null;
6
+ declare function NotificationHeader({ notificationDetails, headerAction, }: NotificationHeaderProps): JSX.Element | null;
7
7
  export { NotificationHeader };
@@ -80,6 +80,11 @@ export type HistoricNotificationItem = {
80
80
  activeStatusIds: string;
81
81
  createdDateTime: Date;
82
82
  changedDateTime: Date;
83
+ requiredEndDateStatusDescription?: string;
84
+ failureImpact?: string;
85
+ hasActivityLongText?: boolean;
86
+ hasAttachment?: boolean;
87
+ hasB30Document?: boolean;
83
88
  };
84
89
  export type WorkOrderGroup = {
85
90
  type: string;
@@ -88,7 +93,9 @@ export type WorkOrderGroup = {
88
93
  export type HistoricWorkOrderItem = {
89
94
  id: string;
90
95
  orderType: string;
91
- isActive: true;
96
+ isActive: boolean;
97
+ requiredEndDateTime?: Date;
98
+ requiredEndDateStatus?: string;
92
99
  maintenancePlanDate: Date;
93
100
  planningPlant: string;
94
101
  description: string;
@@ -96,9 +103,18 @@ export type HistoricWorkOrderItem = {
96
103
  type: string;
97
104
  activeStatusIds: string;
98
105
  title: string;
106
+ operationId?: string;
99
107
  mainWorkCenterId: string;
100
108
  createdDateTime: Date;
101
109
  changedDateTime: Date;
110
+ earlyStartDate?: Date;
111
+ earlyFinishDate?: Date;
112
+ basicFinishDateStatus?: string;
113
+ basicFinishDateTime?: Date;
114
+ sortField?: string;
115
+ hasPrts?: boolean;
116
+ recordTypeIds?: string[];
117
+ hasB30Document?: boolean;
102
118
  };
103
119
  export type PunchGroup = {
104
120
  type: string;
@@ -20,6 +20,8 @@ export type WorkOrderDetails = FetchStatus & {
20
20
  requiredEndDateStatusDescription: string;
21
21
  basicStartDateTime: string;
22
22
  basicFinishDateTime: string;
23
+ basicFinishDateStatus: string;
24
+ basicFinishDateStatusDescription: string;
23
25
  maintenancePlanDate: string;
24
26
  maintenancePlant: string;
25
27
  planningPlantId: string;
@@ -33,6 +35,13 @@ export type WorkOrderDetails = FetchStatus & {
33
35
  description: string;
34
36
  longText: string;
35
37
  instCode: string;
38
+ sortField: string;
39
+ maintenancePlantReference: PlantReference;
40
+ planningPlantReference: PlantReference;
41
+ };
42
+ export type PlantReference = {
43
+ label: string;
44
+ typeLabel: string;
36
45
  };
37
46
  export type SubseaWorkOrderDetails = FetchStatus & {
38
47
  hasPrts: boolean;
@@ -67,3 +76,23 @@ export type PrepviewObject = {
67
76
  equipment?: string;
68
77
  equipmentId?: string;
69
78
  };
79
+ export type WorkOrderEquipment = {
80
+ id: string;
81
+ functionalLocationId: string;
82
+ title: string;
83
+ materialId: string;
84
+ maintenancePlantId: string;
85
+ maintenancePlant: string;
86
+ subseaPoolEquipmentGroup: string;
87
+ equipmentOnboard: boolean;
88
+ mapLocation: MapLocationDto;
89
+ };
90
+ export type MapLocationDto = {
91
+ id?: string;
92
+ position: Coordinates;
93
+ };
94
+ export type Coordinates = {
95
+ altitude?: number;
96
+ latitude: number;
97
+ longitude: number;
98
+ };
@@ -2,5 +2,6 @@ export declare enum WorkItemType {
2
2
  Notifications = 0,
3
3
  WorkOrders = 1,
4
4
  Punches = 2,
5
- Operations = 3
5
+ Operations = 3,
6
+ Equipment = 4
6
7
  }
@@ -1,8 +1,7 @@
1
- import { ColorMap, WorkOrderDateType } from '@equinor/echo-components';
1
+ import { WorkOrderDateType } from '@equinor/echo-components';
2
2
  interface WorkOrderProps {
3
3
  workOrderId: string;
4
4
  headerAction?: React.ReactNode;
5
- colorMap?: ColorMap;
6
5
  workOrderDateType?: WorkOrderDateType;
7
6
  }
8
7
  declare function WorkOrder(props: WorkOrderProps): JSX.Element | null;
@@ -1,9 +1,8 @@
1
- import { ColorMap, WorkOrderDateType } from '@equinor/echo-components';
1
+ import { WorkOrderDateType } from '@equinor/echo-components';
2
2
  import { WorkOrderDetails } from '../../types';
3
3
  interface WorkOrderHeaderProps {
4
4
  workOrderDetails: WorkOrderDetails;
5
5
  headerAction?: React.ReactNode;
6
- colorMap?: ColorMap;
7
6
  workOrderDateType?: WorkOrderDateType;
8
7
  }
9
8
  declare function WorkOrderHeader(props: WorkOrderHeaderProps): JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ import { WorkOrderDetails } from '../../types';
2
+ export interface Props {
3
+ workOrderDetails: WorkOrderDetails;
4
+ }
5
+ declare function PM15WorkOrder({ workOrderDetails }: Props): JSX.Element;
6
+ export { PM15WorkOrder };
@@ -0,0 +1,5 @@
1
+ export interface WOEquipmentProps {
2
+ workOrderId: string;
3
+ }
4
+ declare function WOEquipment({ workOrderId }: WOEquipmentProps): JSX.Element;
5
+ export { WOEquipment };
@@ -0,0 +1,6 @@
1
+ import { WorkOrderEquipment } from '../../../types';
2
+ interface WOEquipmentHorizontalProps {
3
+ equipment: WorkOrderEquipment[];
4
+ }
5
+ declare function WOEquipmentHorizontal({ equipment }: WOEquipmentHorizontalProps): import("react/jsx-runtime").JSX.Element;
6
+ export { WOEquipmentHorizontal };
@@ -0,0 +1,6 @@
1
+ import { WorkOrderEquipment } from '../../../types';
2
+ interface WOEquipmentVerticalProps {
3
+ equipment: WorkOrderEquipment[];
4
+ }
5
+ declare function WOEquipmentVertical({ equipment }: WOEquipmentVerticalProps): import("react/jsx-runtime").JSX.Element;
6
+ export { WOEquipmentVertical };
@@ -0,0 +1 @@
1
+ export * from './WOEquipment';
@@ -0,0 +1 @@
1
+ export * from './PM15WorkOrder';
@@ -6,6 +6,7 @@ export type VerticalTabsGroup = {
6
6
  export type VerticalTabsItem = {
7
7
  id: string;
8
8
  title: string;
9
+ noItemsTitle?: string;
9
10
  content: React.ReactNode;
10
11
  amountOfItems: number;
11
12
  onClick?: () => void;
@@ -4,6 +4,7 @@ interface OpenGlobalSelectionIn3DButtonProps {
4
4
  error: Error | BaseError;
5
5
  errorMessage: string;
6
6
  }) => void;
7
+ disabled: boolean;
7
8
  }
8
- export declare const OpenGlobalSelectionIn3DButton: ({ onPlantLoadError }: OpenGlobalSelectionIn3DButtonProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const OpenGlobalSelectionIn3DButton: ({ onPlantLoadError, disabled }: OpenGlobalSelectionIn3DButtonProps) => import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -85,6 +85,9 @@ export interface GlobalSelectionStore {
85
85
  tags: Readonly<TagSummaryDto[]>;
86
86
  }) => void;
87
87
  removeItemFromSelection: (itemId: Readonly<GlobalSelectionTypes.ItemId>) => void;
88
+ removeItemsFromSelection: (args: {
89
+ itemIds: ReadonlyArray<GlobalSelectionTypes.ItemId>;
90
+ }) => void;
88
91
  setVisibilityList: (args: {
89
92
  listKey: string;
90
93
  isVisible: boolean;
@@ -1,5 +1,5 @@
1
1
  export { LegendStatus, LegendType } from './legend';
2
2
  export type { LegendItemStatus } from './legend';
3
3
  export { createChipStatusProps } from './utils/createChipStatusProps';
4
- export { getLegendStatusColor, legendTypeToLegendStatus, toLegendStatusOrString, valueToEnum } from './utils/legendUtils';
4
+ export { getLegendStatusColor, legendTypeToLegendStatus, stringToEnumOrUndefined, toLegendStatusOrString, valueToEnum } from './utils/legendUtils';
5
5
  export { statusHelper } from './utils/statusHelper';
@@ -15,4 +15,7 @@ export declare function legendTypeToLegendStatus(legendType: LegendType, status:
15
15
  * @returns {LegendStatus | string}
16
16
  */
17
17
  export declare function toLegendStatusOrString(status: string): LegendStatus | string;
18
+ export declare function stringToEnumOrUndefined<T>(enumType: {
19
+ [s: string]: T;
20
+ }, value: string): T | undefined;
18
21
  export declare function valueToEnum(value: string | undefined | null, enumType: typeof LegendStatus): LegendStatus;
@@ -0,0 +1,9 @@
1
+ import { Attachment } from './type/attachment';
2
+ interface ImageListItemProps {
3
+ index: number;
4
+ attachment: Attachment;
5
+ documentId: string;
6
+ openImageView: (index: number) => void;
7
+ }
8
+ export declare const ImageListItem: React.FC<ImageListItemProps>;
9
+ export {};
@@ -1,11 +1,7 @@
1
- import { DocumentRelationships } from '../../types/documentRelationships';
1
+ import { Attachment } from './type/attachment';
2
2
  interface LabelledImageListProps {
3
3
  documentId: string;
4
- createdDateTime: string;
5
- reportedCondition: string;
6
- imageSrc: string;
7
- documentRelationships: DocumentRelationships[];
8
- imageIndex: number;
4
+ attachments: Attachment[];
9
5
  }
10
- export declare const LabelledImageList: ({ documentId, createdDateTime, reportedCondition, imageSrc, documentRelationships, imageIndex }: LabelledImageListProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const LabelledImageList: ({ documentId, attachments }: LabelledImageListProps) => import("react/jsx-runtime").JSX.Element;
11
7
  export {};
@@ -0,0 +1,6 @@
1
+ export interface Attachment {
2
+ attachmentImageUri?: string;
3
+ createdDateTime?: string;
4
+ quantitativeReading: number;
5
+ quantitativeReadingUnitId: string;
6
+ }
@@ -1,6 +1,6 @@
1
1
  export declare function useDocumentRelationships(measuringPointId: string): {
2
2
  status: "error" | "success" | "pending";
3
- documentRelationships: import("../types/documentRelationships").DocumentRelationships[];
3
+ documentRelationships: import("..").DocumentRelationships[];
4
4
  error: Error | null;
5
5
  totalAttachments: string;
6
6
  };
@@ -1,3 +1,4 @@
1
1
  export { MeasuringPointDetails, MeasuringPointHeader, MeasuringPointItem, failureMechanismConfig } from './components';
2
2
  export { useOpenMeasuringPointDetails } from './hooks';
3
+ export type { DocumentRelationships } from './types/documentRelationships';
3
4
  export type { MeasurementDto, MeasuringPointDto } from './types/measuringPoint';
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ObjectsToSendTo3dTypes } from '../../utils';
3
3
  interface SelectedItemsProps {
4
- numberOfSelectedItems: number;
5
4
  onOpenIn3dButtonClick: (ObjectsToSendTo3d: ObjectsToSendTo3dTypes) => void;
6
5
  children?: React.ReactNode;
6
+ disabled?: boolean;
7
7
  }
8
8
  export declare const SelectedItemsMenu: React.FC<SelectedItemsProps>;
9
9
  export declare function getIsGlobalSelectionEnabled(): boolean;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ObjectsToSendTo3dTypes } from '../../utils/openIn3d/tagLists';
3
3
  interface OpenIn3dMenuProps {
4
4
  onOpenIn3dButtonClick: (objectsToSendTo3d: ObjectsToSendTo3dTypes) => void;
5
- disabled?: boolean;
5
+ disabled: boolean;
6
6
  }
7
7
  export declare const OpenIn3dMenu: React.FC<OpenIn3dMenuProps>;
8
8
  export {};
@@ -1,7 +1,9 @@
1
+ import { WritableDraft } from 'immer';
1
2
  interface PanelUserSettings {
2
3
  readonly isTagsVisible: boolean;
3
4
  readonly isWorkOrdersVisible: boolean;
4
5
  readonly isEquipmentsVisible: boolean;
6
+ readonly isAnnotationsVisible: boolean;
5
7
  }
6
8
  interface DataLayerPanelState {
7
9
  readonly isOpen: boolean;
@@ -12,6 +14,7 @@ interface DataLayerPanelActions {
12
14
  toggleWorkOrders: () => void;
13
15
  toggleEquipments: () => void;
14
16
  toggleTags: () => void;
17
+ toggleAnnotations: () => void;
15
18
  }
16
19
  type DataLayerPanelStore = DataLayerPanelState & DataLayerPanelActions;
17
20
  export declare const useDataLayerPanelStore: import("zustand").UseBoundStore<Omit<Omit<Omit<Omit<import("zustand").StoreApi<DataLayerPanelStore>, "setState"> & {
@@ -37,7 +40,7 @@ export declare const useDataLayerPanelStore: import("zustand").UseBoundStore<Omi
37
40
  getOptions: () => Partial<import("zustand/middleware").PersistOptions<DataLayerPanelStore, unknown>>;
38
41
  };
39
42
  }, "setState"> & {
40
- setState(nextStateOrUpdater: DataLayerPanelStore | Partial<DataLayerPanelStore> | ((state: import("immer").WritableDraft<DataLayerPanelStore>) => void), shouldReplace?: boolean | undefined, action?: string | {
43
+ setState(nextStateOrUpdater: DataLayerPanelStore | Partial<DataLayerPanelStore> | ((state: WritableDraft<DataLayerPanelStore>) => void), shouldReplace?: boolean | undefined, action?: string | {
41
44
  type: string;
42
45
  } | undefined): void;
43
46
  }>;
@@ -1,58 +0,0 @@
1
- /**
2
- * @deprecated This is a duplicate: please use the one exported from echo-components.
3
- * We plan to remove this duplication soon.
4
- */
5
- export declare const themeConst: {
6
- black: string;
7
- white: string;
8
- equiBlue1: string;
9
- equiBlue2: string;
10
- equiBlue3: string;
11
- equiGray1: string;
12
- equiGray2: string;
13
- equiGray3: string;
14
- equiGray4: string;
15
- equiRed1: string;
16
- darkEquiRed: string;
17
- equiGreen1: string;
18
- equiGreen2: string;
19
- equiGreen3: string;
20
- echoText: string;
21
- strongGray: string;
22
- disabledBackgroundColor: string;
23
- disabledColor: string;
24
- onGoing: string;
25
- done: string;
26
- asBuilt: string;
27
- planned: string;
28
- future: string;
29
- historic: string;
30
- outOfService: string;
31
- reserved: string;
32
- voided: string;
33
- default: string;
34
- ok: string;
35
- os: string;
36
- pa: string;
37
- pb: string;
38
- unknown: string;
39
- priorityHigh: string;
40
- priorityMedium: string;
41
- systems: string;
42
- locations: string;
43
- warningText: string;
44
- warningIcon: string;
45
- warningBackground: string;
46
- dropDownButtonBackground: string;
47
- dropDownTextColor: string;
48
- searchBarBackground: string;
49
- highSeverity: string;
50
- mediumSeverity: string;
51
- lowSeverity: string;
52
- defaultSeverity: string;
53
- toggleActive: string;
54
- toggleInactive: string;
55
- dividerColor: string;
56
- tertiaryText: string;
57
- secondaryText: string;
58
- };