@equinor/echo-framework 4.3.0 → 5.0.0-beta-r19-0
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/{47deeba42768c5d1.svg → 063009f06499d102.svg} +8 -8
- package/README.md +48 -48
- package/{1bd97dd2170d0f64.svg → f4c85313e79b1662.svg} +850 -850
- package/index.cjs.js +1 -1
- package/index.d.ts +2 -2
- package/package.json +8 -8
- package/src/lib/components/appLauncherButton/AppLauncherButton.d.ts +3 -6
- package/src/lib/components/contextualAppLinks/externalLinkButtons/iconButtonSpinner.d.ts +1 -1
- package/src/lib/components/errorBoundary/components/chunkLoadErrorMessage.d.ts +1 -1
- package/src/lib/components/errorBoundary/errorBoundary.d.ts +1 -1
- package/src/lib/components/externalLinkButton/externalLinkButton.d.ts +3 -2
- package/src/lib/components/lazyLoading/appLoadingIndicator.d.ts +2 -1
- package/src/lib/components/lazyLoading/lazyLoadedAppWrapper.d.ts +2 -2
- package/src/lib/components/listItemAdditionalInfoRow/listItemAdditionalInfoRow.d.ts +2 -2
- package/src/lib/components/pageMenu/defaultAccordionItem.d.ts +1 -1
- package/src/lib/components/prepview/Prepview.d.ts +1 -1
- package/src/lib/components/prepview/common/additionalInformation/WOAdditionalDetails.d.ts +1 -1
- package/src/lib/components/prepview/common/info/block/InfoBlock.d.ts +2 -2
- package/src/lib/components/prepview/common/info/description/DescriptionBlock.d.ts +1 -1
- package/src/lib/components/prepview/notification/Notification.d.ts +1 -1
- package/src/lib/components/prepview/notification/details/DetailsNotification.d.ts +1 -1
- package/src/lib/components/prepview/notification/header/NotificationHeader.d.ts +1 -1
- package/src/lib/components/prepview/panels/history/TagHistory.d.ts +1 -1
- package/src/lib/components/prepview/panels/history/TagHistoryGroup.d.ts +1 -1
- package/src/lib/components/prepview/punch/Punch.d.ts +1 -1
- package/src/lib/components/prepview/punch/details/Details.d.ts +1 -1
- package/src/lib/components/prepview/punch/header/Header.d.ts +1 -1
- package/src/lib/components/prepview/workorder/details/DetailsWorkOrder.d.ts +1 -1
- package/src/lib/components/prepview/workorder/header/WorkOrderHeader.d.ts +1 -1
- package/src/lib/components/realTimeData/RealTimePopoverButton.d.ts +1 -1
- package/src/lib/components/realTimeData/components/IMSDropdown/RealTimeIMSDropdown.d.ts +1 -1
- package/src/lib/components/realTimeData/components/connectorForIMSTag/RealTimeConnectorForIMSTag.d.ts +2 -1
- package/src/lib/components/searchListItem/searchListItem.d.ts +1 -1
- package/src/lib/components/tagNumber/tagNumber.d.ts +1 -1
- package/src/lib/components/workOrderListItem/components/WorkOrderHeaderDate.d.ts +1 -1
- package/src/lib/feature/equipment/components/equipmentLinkField/equipmentLinkField.d.ts +1 -1
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/colorConflictHandling/SelectionColorConflictDialog.d.ts +1 -1
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/LegendColoredMarkerIcon.d.ts +1 -1
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/hooks/useMarkerPopover.d.ts +1 -1
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/api/fetchNotificationDetailsByIds.d.ts +8 -0
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/hooks/useNotificationDetailsByIds.d.ts +2 -0
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/hooks/useNotificationLegendData.d.ts +5 -0
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/hooks/useNotificationMarkers.d.ts +5 -1
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/hooks/useNotificationsByTagIds.d.ts +1 -1
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/logic/getNotificationPopover.d.ts +2 -8
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/logic/notificationLegend.logic.d.ts +4 -4
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/notificationStrategy.types.d.ts +10 -2
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/optionConfigs/notificationBadgeLegendOptionConfig.d.ts +1 -4
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/optionConfigs/notificationMarkerLegendOptionConfig.d.ts +1 -2
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/utils/getNotificationTitlesByPropertyName.d.ts +2 -2
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/utils/notificationLegend.utils.d.ts +8 -3
- package/src/lib/feature/legend/legendStrategies/workOrderStrategy/CreateWorkOrderPopoverContent.d.ts +1 -1
- package/src/lib/feature/measuringPoint/index.d.ts +1 -1
- package/src/lib/feature/openItemsIn3d/components/plantNoSelectionDialog/plantNoSelectionDialog.d.ts +1 -1
- package/src/lib/feature/openItemsIn3d/logic/createEcho3dInternalLink.d.ts +1 -0
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./src
|
|
2
|
-
export { default } from "./src
|
|
1
|
+
export * from "./src\\index";
|
|
2
|
+
export { default } from "./src\\index";
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta-r19-0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@equinor/echo-base": "
|
|
6
|
-
"@equinor/echo-components": "
|
|
7
|
-
"@equinor/echo-core": "
|
|
8
|
-
"@equinor/echo-search": "
|
|
9
|
-
"@equinor/echo-utils": "
|
|
5
|
+
"@equinor/echo-base": "5.0.0-beta-r19-0",
|
|
6
|
+
"@equinor/echo-components": "5.0.0-beta-r19-0",
|
|
7
|
+
"@equinor/echo-core": "5.0.0-beta-r19-0",
|
|
8
|
+
"@equinor/echo-search": "5.0.0-beta-r19-0",
|
|
9
|
+
"@equinor/echo-utils": "5.0.0-beta-r19-0",
|
|
10
10
|
"@equinor/eds-core-react": "0.49.0",
|
|
11
11
|
"@equinor/eds-icons": "0.22.0",
|
|
12
12
|
"@equinor/eds-tokens": "2.1.0",
|
|
13
|
-
"react": ">=
|
|
14
|
-
"react-dom": ">=
|
|
13
|
+
"react": ">= 19.2.4",
|
|
14
|
+
"react-dom": ">= 19.2.4",
|
|
15
15
|
"@tanstack/react-query": ">= 5.14.2 < 6",
|
|
16
16
|
"@microsoft/signalr": "9.0.6",
|
|
17
17
|
"classnames": "2.5.1",
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import type { ButtonProps } from '@equinor/eds-core-react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export type AppLauncherButtonProps = {
|
|
3
4
|
readonly icon: React.ReactNode;
|
|
4
5
|
readonly label: string;
|
|
5
6
|
readonly tooltip?: string;
|
|
6
7
|
readonly allowIconHoverFill?: boolean;
|
|
8
|
+
readonly ref?: React.Ref<HTMLButtonElement>;
|
|
7
9
|
} & Omit<ButtonProps, 'children'>;
|
|
8
|
-
export declare const AppLauncherButton: import("react").
|
|
9
|
-
readonly icon: React.ReactNode;
|
|
10
|
-
readonly label: string;
|
|
11
|
-
readonly tooltip?: string;
|
|
12
|
-
readonly allowIconHoverFill?: boolean;
|
|
13
|
-
} & Omit<ButtonProps, "children"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export declare const AppLauncherButton: ({ icon, label, tooltip, allowIconHoverFill, variant, ref, ...other }: AppLauncherButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,5 +13,5 @@ type SpinnerProps = {
|
|
|
13
13
|
* @param {string} param.customClassNames.spinner Class name applied on the spinner.
|
|
14
14
|
* @param {string} param.customClassNames.container Class name applied on the container element.
|
|
15
15
|
*/
|
|
16
|
-
export declare const IconButtonSpinner: ({ customClassNames, size }: SpinnerProps) => JSX.Element;
|
|
16
|
+
export declare const IconButtonSpinner: ({ customClassNames, size }: SpinnerProps) => React.JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -10,6 +10,6 @@ export interface ErrorBoundaryProps {
|
|
|
10
10
|
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
11
11
|
constructor(props: Readonly<ErrorBoundaryProps>);
|
|
12
12
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
13
|
-
render(): JSX.Element | ReactNode;
|
|
13
|
+
render(): React.JSX.Element | ReactNode;
|
|
14
14
|
}
|
|
15
15
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type ExternalLinkButtonProps = AsyncButtonProps | SyncButtonProps;
|
|
2
3
|
type AsyncButtonProps = BaseProps & {
|
|
3
4
|
linkTo?: never;
|
|
@@ -39,7 +40,7 @@ export declare enum ExternalLinkButtonStyle {
|
|
|
39
40
|
* @param {boolean} props.disabledColor Optional. If set to `true`, the button will show disabled color. (If not Rounded button style is used)
|
|
40
41
|
* @param {boolean} props.disabledButton Optional.
|
|
41
42
|
* @param {string} props.hoverText Optional. Applies only if Rounded button style is applied.
|
|
42
|
-
* @returns {JSX.Element} React component.
|
|
43
|
+
* @returns {React.JSX.Element} React component.
|
|
43
44
|
*/
|
|
44
|
-
export declare const ExternalLinkButton: ({ buttonName, buttonIcon, linkTo, hideText, redirect, buttonStyle, getUrlToOpen, disabledColor, disabledButton, hoverText }: ExternalLinkButtonProps) => JSX.Element;
|
|
45
|
+
export declare const ExternalLinkButton: ({ buttonName, buttonIcon, linkTo, hideText, redirect, buttonStyle, getUrlToOpen, disabledColor, disabledButton, hoverText }: ExternalLinkButtonProps) => React.JSX.Element;
|
|
45
46
|
export default ExternalLinkButton;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface AppLoadingIndicatorProps {
|
|
2
3
|
loadingText?: string;
|
|
3
4
|
}
|
|
4
|
-
export declare const AppLoadingIndicator: ({ loadingText }: AppLoadingIndicatorProps) => JSX.Element;
|
|
5
|
+
export declare const AppLoadingIndicator: ({ loadingText }: AppLoadingIndicatorProps) => React.JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -9,6 +9,6 @@ export interface LazyLoadedAppWrapperProps {
|
|
|
9
9
|
* @param {LazyLoadedAppWrapperProps}
|
|
10
10
|
* children: {React.ReactNode} The lazy loaded app you need to wrap.
|
|
11
11
|
* loadingText: {string} The text to display under the Equinor logo. If not provided, it will default to "Loading application..."
|
|
12
|
-
* @returns {JSX.Element}
|
|
12
|
+
* @returns {React.JSX.Element}
|
|
13
13
|
*/
|
|
14
|
-
export declare const LazyLoadedAppWrapper: ({ children, loadingText }: LazyLoadedAppWrapperProps) => JSX.Element;
|
|
14
|
+
export declare const LazyLoadedAppWrapper: ({ children, loadingText }: LazyLoadedAppWrapperProps) => React.JSX.Element;
|
|
@@ -6,7 +6,7 @@ type DefaultAccordionItemProps = {
|
|
|
6
6
|
subtitle?: string;
|
|
7
7
|
iconName: string;
|
|
8
8
|
iconTitle: string;
|
|
9
|
-
children: React.
|
|
9
|
+
children: React.ReactNode;
|
|
10
10
|
};
|
|
11
11
|
declare const DefaultAccordionItem: React.FC<DefaultAccordionItemProps>;
|
|
12
12
|
export default DefaultAccordionItem;
|
|
@@ -33,7 +33,7 @@ interface PrepviewProps {
|
|
|
33
33
|
onEquipmentLocationClick?: (coordinates: Coordinates) => void;
|
|
34
34
|
onEquipmentClick?: (equipment: WorkOrderEquipment) => void;
|
|
35
35
|
}
|
|
36
|
-
declare function Prepview(props: PrepviewProps): JSX.Element | null;
|
|
36
|
+
declare function Prepview(props: PrepviewProps): React.JSX.Element | null;
|
|
37
37
|
export * from './types/shared';
|
|
38
38
|
export { WorkItemType } from './utils';
|
|
39
39
|
export { Prepview };
|
|
@@ -2,5 +2,5 @@ import type { WorkOrderDetails } from '../../types';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
workOrderDetails?: WorkOrderDetails;
|
|
4
4
|
}
|
|
5
|
-
export declare function WOAdditionalDetails({ workOrderDetails }: Readonly<Props>): JSX.Element | null;
|
|
5
|
+
export declare function WOAdditionalDetails({ workOrderDetails }: Readonly<Props>): React.JSX.Element | null;
|
|
6
6
|
export {};
|
|
@@ -2,8 +2,8 @@ interface InfoBlockType {
|
|
|
2
2
|
label: string;
|
|
3
3
|
stretched?: boolean;
|
|
4
4
|
fit?: boolean;
|
|
5
|
-
children: JSX.Element | string[] | string | number;
|
|
5
|
+
children: React.JSX.Element | string[] | string | number;
|
|
6
6
|
contentClassName?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare function InfoBlock({ label, stretched, fit, children, contentClassName }: Readonly<InfoBlockType>): JSX.Element;
|
|
8
|
+
export declare function InfoBlock({ label, stretched, fit, children, contentClassName }: Readonly<InfoBlockType>): React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -6,5 +6,5 @@ export interface Props {
|
|
|
6
6
|
longText?: string;
|
|
7
7
|
contentClassName?: string;
|
|
8
8
|
}
|
|
9
|
-
declare function DescriptionBlock({ itemId, itemType, shortText, longText, contentClassName, }: Props): JSX.Element;
|
|
9
|
+
declare function DescriptionBlock({ itemId, itemType, shortText, longText, contentClassName, }: Props): React.JSX.Element;
|
|
10
10
|
export { DescriptionBlock };
|
|
@@ -2,5 +2,5 @@ interface NotificationProps {
|
|
|
2
2
|
notificationId: string;
|
|
3
3
|
headerAction?: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
declare function Notification(props: NotificationProps): JSX.Element | null;
|
|
5
|
+
declare function Notification(props: NotificationProps): React.JSX.Element | null;
|
|
6
6
|
export { Notification };
|
|
@@ -3,5 +3,5 @@ export interface Props {
|
|
|
3
3
|
details: NotificationDetails;
|
|
4
4
|
isLoading?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare function DetailsNotification({ details }: Readonly<Props>): JSX.Element;
|
|
6
|
+
declare function DetailsNotification({ details }: Readonly<Props>): React.JSX.Element;
|
|
7
7
|
export { DetailsNotification };
|
|
@@ -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): React.JSX.Element | null;
|
|
7
7
|
export { NotificationHeader };
|
|
@@ -2,5 +2,5 @@ interface HistoryProps {
|
|
|
2
2
|
itemId: string;
|
|
3
3
|
isWorkOrder?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare function TagHistoryPanel({ itemId, isWorkOrder }: HistoryProps): JSX.Element;
|
|
5
|
+
declare function TagHistoryPanel({ itemId, isWorkOrder }: HistoryProps): React.JSX.Element;
|
|
6
6
|
export { TagHistoryPanel };
|
|
@@ -6,5 +6,5 @@ interface Props {
|
|
|
6
6
|
groups: NotificationGroup[] | WorkOrderGroup[] | PunchGroup[];
|
|
7
7
|
statusCode: number;
|
|
8
8
|
}
|
|
9
|
-
declare function TagHistoryGroup({ groups, emptyText, workItemType, statusCode, }: Props): JSX.Element;
|
|
9
|
+
declare function TagHistoryGroup({ groups, emptyText, workItemType, statusCode, }: Props): React.JSX.Element;
|
|
10
10
|
export { TagHistoryGroup };
|
|
@@ -3,4 +3,4 @@ export interface Props {
|
|
|
3
3
|
workOrderDetails: WorkOrderDetails;
|
|
4
4
|
isLoading?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare function DetailsWorkOrder({ workOrderDetails }: Readonly<Props>): JSX.Element;
|
|
6
|
+
export declare function DetailsWorkOrder({ workOrderDetails }: Readonly<Props>): React.JSX.Element;
|
|
@@ -5,5 +5,5 @@ interface WorkOrderHeaderProps {
|
|
|
5
5
|
headerAction?: React.ReactNode;
|
|
6
6
|
workOrderDateType?: WorkOrderDateType;
|
|
7
7
|
}
|
|
8
|
-
declare function WorkOrderHeader(props: WorkOrderHeaderProps): JSX.Element | null;
|
|
8
|
+
declare function WorkOrderHeader(props: WorkOrderHeaderProps): React.JSX.Element | null;
|
|
9
9
|
export { WorkOrderHeader };
|
|
@@ -13,5 +13,5 @@ interface RTDProps {
|
|
|
13
13
|
* }
|
|
14
14
|
* @return {*}
|
|
15
15
|
*/
|
|
16
|
-
declare function RealTimePopoverButton({ tagNo, onOpen }: RTDProps): JSX.Element | null;
|
|
16
|
+
declare function RealTimePopoverButton({ tagNo, onOpen }: RTDProps): React.JSX.Element | null;
|
|
17
17
|
export { RealTimePopoverButton };
|
|
@@ -3,5 +3,5 @@ interface Props {
|
|
|
3
3
|
imsFields: AdditionalFieldDto[];
|
|
4
4
|
instCode: string;
|
|
5
5
|
}
|
|
6
|
-
declare function RealTimeIMSDropdown({ imsFields, instCode }: Props): JSX.Element;
|
|
6
|
+
declare function RealTimeIMSDropdown({ imsFields, instCode }: Props): React.JSX.Element;
|
|
7
7
|
export { RealTimeIMSDropdown };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface Props {
|
|
2
3
|
ims: string;
|
|
3
4
|
instCode: string;
|
|
4
5
|
}
|
|
5
|
-
declare function RealTimeConnectorForIMSTag({ ims, instCode }: Props): JSX.Element;
|
|
6
|
+
declare function RealTimeConnectorForIMSTag({ ims, instCode }: Props): React.JSX.Element;
|
|
6
7
|
export { RealTimeConnectorForIMSTag };
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
* SearchListItem component renders a styled list item with optional visual or icon, title, subtitle, and other customizable properties.
|
|
4
4
|
*
|
|
5
5
|
* @param {SearchListItemProps} props - The properties for the SearchListItem component.
|
|
6
|
-
* @returns {JSX.Element} The rendered SearchListItem component.
|
|
6
|
+
* @returns {React.JSX.Element} The rendered SearchListItem component.
|
|
7
7
|
*/
|
|
8
8
|
export declare const SearchListItem: React.FC<SearchListItemProps>;
|
|
9
9
|
interface VisualComponent {
|
|
@@ -4,5 +4,5 @@ interface TagNoProps {
|
|
|
4
4
|
keepLastNavigationItem?: boolean;
|
|
5
5
|
activePanelKey?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const TagNumber: ({ tagNo, className, keepLastNavigationItem, activePanelKey }: TagNoProps) => JSX.Element;
|
|
7
|
+
export declare const TagNumber: ({ tagNo, className, keepLastNavigationItem, activePanelKey }: TagNoProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -4,6 +4,6 @@ import { WorkOrderHeaderDataProps } from '../types/types';
|
|
|
4
4
|
*
|
|
5
5
|
* @param props.basicFinishDateStatus - The status of the basic finish date, used to determine color.
|
|
6
6
|
* @param props.basicFinishDateTime - The basic finish date/time value to display.
|
|
7
|
-
* @returns {JSX.Element} The formatted date label.
|
|
7
|
+
* @returns {React.JSX.Element} The formatted date label.
|
|
8
8
|
*/
|
|
9
9
|
export declare const WorkOrderHeaderDate: React.FC<WorkOrderHeaderDataProps>;
|
|
@@ -5,5 +5,5 @@ interface EquipmentLinkFieldProps {
|
|
|
5
5
|
plantNo: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const EquipmentLinkField: React.FC<EquipmentLinkFieldProps>;
|
|
8
|
-
export declare function getEquipmentLinkField(equipmentId: string, tagNo: string, plantNo: string): JSX.Element;
|
|
8
|
+
export declare function getEquipmentLinkField(equipmentId: string, tagNo: string, plantNo: string): React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -6,6 +6,6 @@ import React from 'react';
|
|
|
6
6
|
* It notifies the user that the latest (incoming) color will be assigned to these items.
|
|
7
7
|
* The dialog is rendered via a portal and adapts its width for mobile devices.
|
|
8
8
|
*
|
|
9
|
-
* @returns {JSX.Element} The portal-rendered dialog component.
|
|
9
|
+
* @returns {React.JSX.Element} The portal-rendered dialog component.
|
|
10
10
|
*/
|
|
11
11
|
export declare const SelectionColorConflictDialog: React.FC;
|
package/src/lib/feature/legend/components/pdfMarkers/subComponents/LegendColoredMarkerIcon.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ interface LegendColoredMarkerIconProps {
|
|
|
17
17
|
* @param {string[]} hiddenBadges - Array of badge titles that should be hidden.
|
|
18
18
|
* @param {Marker} marker - The marker data to be rendered.
|
|
19
19
|
*
|
|
20
|
-
* @returns {JSX.Element | null} The rendered colored marker icon or null if no marker is provided.
|
|
20
|
+
* @returns {React.JSX.Element | null} The rendered colored marker icon or null if no marker is provided.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* <LegendColoredMarkerIcon
|
package/src/lib/feature/legend/components/pdfMarkers/subComponents/hooks/useMarkerPopover.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const POPOVER_UPDATE_DELAY_MS = 2000;
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function useMarkerPopover(markerId: MarkerId, legendId: LegendId, itemId: LegendDataId, marker: ColorGroupedMarker): {
|
|
16
16
|
isPopoverActive: boolean;
|
|
17
|
-
elements: readonly import("react").ReactElement<
|
|
17
|
+
elements: readonly import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>[];
|
|
18
18
|
handleOpen: () => Promise<void>;
|
|
19
19
|
handleClose: () => void;
|
|
20
20
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NotificationDetails } from '@equinor/echo-search';
|
|
2
|
+
import type { LegendNotificationId } from '../../../types/legendType';
|
|
3
|
+
export declare const notificationDetailsQueryOptions: (notificationIds: ReadonlyArray<LegendNotificationId>) => {
|
|
4
|
+
queryKey: readonly ["notificationDetails", readonly LegendNotificationId[]];
|
|
5
|
+
queryFn: () => Promise<readonly NotificationDetails[]>;
|
|
6
|
+
staleTime: number;
|
|
7
|
+
gcTime: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { LegendDataId } from '../../../types/legendType';
|
|
2
|
+
export declare const useNotificationDetailsByIds: (itemIds: ReadonlyArray<LegendDataId>, isEnabled: boolean) => import("@tanstack/react-query").UseQueryResult<readonly import("@equinor/echo-search").NotificationDetails[], Error>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const useNotificationLegendData: () => {
|
|
2
|
+
isEnabled: boolean;
|
|
3
|
+
selectedMarkerOption: import("../../../types/legendType").LegendMarkerOptionConfig<string>;
|
|
4
|
+
selectedBadgeOption: import("../../../types/legendType").LegendBadgeOptionConfig<string>;
|
|
5
|
+
} | undefined;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { Marker } from '../../../types/legendMarkerBadge.type';
|
|
2
2
|
import { type LegendDataId } from '../../../types/legendType';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Creates notification markers from two sources:
|
|
5
|
+
* 1. Tag-based: fetches open notifications for selected tags
|
|
6
|
+
* 2. ID-based: fetches notification details by direct notification IDs
|
|
7
|
+
*
|
|
8
|
+
* Both sources are merged into a single marker array.
|
|
5
9
|
*/
|
|
6
10
|
export declare const useNotificationMarkers: (itemIds: ReadonlyArray<LegendDataId>) => ReadonlyArray<Marker>;
|
|
@@ -9,6 +9,6 @@ interface UseNotificationsByTagIdsResult {
|
|
|
9
9
|
readonly error: Error | undefined;
|
|
10
10
|
readonly isFetching: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const useNotificationsByTagIds: (
|
|
12
|
+
export declare const useNotificationsByTagIds: (tagIds: ReadonlyArray<LegendTagId>, enabled: boolean) => UseNotificationsByTagIdsResult;
|
|
13
13
|
export declare const groupNotificationsByTagId: (notifications: ReadonlyArray<NotificationDto>) => ReadonlyArray<TagNotificationGroup>;
|
|
14
14
|
export {};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { type NotificationItemCardData } from '@equinor/echo-components';
|
|
2
2
|
import type { NotificationDetails } from '@equinor/echo-search';
|
|
3
3
|
import { Explicit } from '@equinor/echo-utils';
|
|
4
|
-
import { type LegendDataId
|
|
5
|
-
|
|
6
|
-
* Notification is not a selection-based legend, so the dataId is not directly tied to global selection item IDs.
|
|
7
|
-
* Instead, we define a specific type for notification legend data IDs (LegendNotificationId) and use a type guard (isNotificationDataId) to identify them.
|
|
8
|
-
* This allows us to safely handle notification data IDs without relying on global selection structures.
|
|
9
|
-
*/
|
|
10
|
-
export declare const isNotificationDataId: (dataId: LegendDataId) => dataId is LegendNotificationId;
|
|
11
|
-
export declare const getPopoverContent: (_legendDataId: LegendDataId, itemIds: ReadonlyArray<LegendDataId>) => Promise<JSX.Element[]>;
|
|
4
|
+
import { type LegendDataId } from '../../../types/legendType';
|
|
5
|
+
export declare const getPopoverContent: (_legendDataId: LegendDataId, itemIds: ReadonlyArray<LegendDataId>) => Promise<React.JSX.Element[]>;
|
|
12
6
|
export declare const mapNotificationToNotificationItemCard: (notification: NotificationDetails) => Explicit<NotificationItemCardData>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { NotificationDto } from '@equinor/echo-search';
|
|
2
1
|
import type { Badge, Marker } from '../../../types/legendMarkerBadge.type';
|
|
3
2
|
import type { LegendBadgeOptionConfig, LegendMarkerOptionConfig } from '../../../types/legendType';
|
|
3
|
+
import type { NotificationLegendData } from '../notificationStrategy.types';
|
|
4
4
|
interface CreateMarkerFromNotificationsArgs {
|
|
5
|
-
readonly notifications: ReadonlyArray<
|
|
5
|
+
readonly notifications: ReadonlyArray<NotificationLegendData>;
|
|
6
6
|
readonly selectedMarkerOption: LegendMarkerOptionConfig;
|
|
7
7
|
readonly selectedBadgeOption: LegendBadgeOptionConfig;
|
|
8
8
|
}
|
|
9
9
|
export declare const createMarkerFromNotifications: ({ notifications, selectedMarkerOption, selectedBadgeOption }: CreateMarkerFromNotificationsArgs) => Marker;
|
|
10
|
-
export declare const createMarkerTitle: (notifications: ReadonlyArray<
|
|
11
|
-
export declare const createBadges: (notifications: ReadonlyArray<
|
|
10
|
+
export declare const createMarkerTitle: (notifications: ReadonlyArray<NotificationLegendData>, selectedMarkerOption: LegendMarkerOptionConfig) => string;
|
|
11
|
+
export declare const createBadges: (notifications: ReadonlyArray<NotificationLegendData>, selectedBadgeOption: LegendBadgeOptionConfig) => ReadonlyArray<Badge>;
|
|
12
12
|
export {};
|
package/src/lib/feature/legend/legendStrategies/notificationStrategy/notificationStrategy.types.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import type { NotificationDto } from '@equinor/echo-search';
|
|
1
2
|
import type { LegendStatus } from '../../../legacyLegend/legend';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The subset of notification fields actually used in the legend marker pipeline.
|
|
5
|
+
* Only these fields are accessed by property accessors, icon resolution, and badge creation.
|
|
6
|
+
*/
|
|
7
|
+
export type NotificationLegendData = Pick<NotificationDto, 'maintenanceRecordId' | 'recordTypeId' | 'activeStatusIds' | 'requiredEndDateTime'>;
|
|
8
|
+
type BadgeKeysFromNotificationLegendData = Pick<NotificationLegendData, 'maintenanceRecordId' | 'recordTypeId'>;
|
|
9
|
+
export type NotificationBadgeOptions = keyof BadgeKeysFromNotificationLegendData | 'count';
|
|
10
|
+
export type NotificationMarkerOptions = keyof Pick<NotificationLegendData, 'activeStatusIds' | 'requiredEndDateTime' | 'recordTypeId'>;
|
|
4
11
|
export type AllNotificationPropertyOptions = NotificationMarkerOptions | NotificationBadgeOptions;
|
|
5
12
|
export type EndDateStatusText = 'Expired' | '0-7 days' | '8 days - 1 month' | '1-3 months' | '3-6 months' | '6-12 months' | '> 1 year' | LegendStatus.Unknown;
|
|
13
|
+
export {};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { NotificationDto } from '@equinor/echo-search';
|
|
2
1
|
import { LegendBadgeOptionConfig } from '../../../types/legendType';
|
|
3
|
-
type
|
|
4
|
-
export type NotificationBadgeOptions = keyof KeysFromNotificationDto | 'count';
|
|
2
|
+
import type { NotificationBadgeOptions } from '../notificationStrategy.types';
|
|
5
3
|
export declare const NOTIFICATION_LEGEND_BADGE_OPTIONS: ReadonlyArray<LegendBadgeOptionConfig<NotificationBadgeOptions>>;
|
|
6
|
-
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { NotificationDto } from '@equinor/echo-search';
|
|
2
1
|
import { type LegendMarkerOptionConfig } from '../../../types/legendType';
|
|
3
|
-
|
|
2
|
+
import type { NotificationMarkerOptions } from '../notificationStrategy.types';
|
|
4
3
|
export declare const NOTIFICATION_LEGEND_MARKER_OPTIONS: ReadonlyArray<LegendMarkerOptionConfig<NotificationMarkerOptions>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function getNotificationTitlesByPropertyName(propertyName: string, notification:
|
|
1
|
+
import type { NotificationLegendData } from '../notificationStrategy.types';
|
|
2
|
+
export declare function getNotificationTitlesByPropertyName(propertyName: string, notification: NotificationLegendData, notifications: ReadonlyArray<NotificationLegendData>): ReadonlyArray<string>;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { EndDateStatusText } from '../notificationStrategy.types';
|
|
1
|
+
import { type LegendDataId, type LegendNotificationId } from '../../../types/legendType';
|
|
2
|
+
import type { EndDateStatusText, NotificationLegendData } from '../notificationStrategy.types';
|
|
3
|
+
/**
|
|
4
|
+
* Type guard for notification legend data IDs.
|
|
5
|
+
* Notification is not a selection-based legend, so the dataId is not directly tied to global selection item IDs.
|
|
6
|
+
*/
|
|
7
|
+
export declare const isNotificationDataId: (dataId: LegendDataId) => dataId is LegendNotificationId;
|
|
3
8
|
/**
|
|
4
9
|
* Determines the appropriate icon name for a marker based on the record types of the provided notifications.
|
|
5
10
|
* If there are multiple record types or no notifications, it returns a generic icon.
|
|
6
11
|
* Otherwise, it returns a specific icon based on the record type.
|
|
7
12
|
*/
|
|
8
|
-
export declare const getIconForMarker: (notifications: ReadonlyArray<
|
|
13
|
+
export declare const getIconForMarker: (notifications: ReadonlyArray<NotificationLegendData>) => string;
|
|
9
14
|
/**
|
|
10
15
|
* Returns user-friendly end date status text based on the required end date of a notification.
|
|
11
16
|
*/
|
package/src/lib/feature/legend/legendStrategies/workOrderStrategy/CreateWorkOrderPopoverContent.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ import { LegendDataId } from '../../types/legendType';
|
|
|
10
10
|
* @param itemIds - Selected item ids used to filter which work orders should be shown in the popover.
|
|
11
11
|
* @returns A JSX element array when work orders are found, otherwise a single fallback JSX element.
|
|
12
12
|
*/
|
|
13
|
-
export declare function createPopoverContent(legendDataId: LegendDataId, itemIds: ReadonlyArray<LegendDataId>): Promise<JSX.Element | JSX.Element[]>;
|
|
13
|
+
export declare function createPopoverContent(legendDataId: LegendDataId, itemIds: ReadonlyArray<LegendDataId>): Promise<React.JSX.Element | React.JSX.Element[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { MeasuringPointDetails, MeasuringPointHeader, failureMechanismConfig } from './components';
|
|
2
2
|
export { MeasuringPointListItem } from './components/MeasuringPointListItem';
|
|
3
3
|
export { useOpenMeasuringPointDetails } from './hooks';
|
|
4
4
|
export type { DocumentRelationships } from './types/documentRelationships';
|
package/src/lib/feature/openItemsIn3d/components/plantNoSelectionDialog/plantNoSelectionDialog.d.ts
CHANGED
|
@@ -22,5 +22,5 @@ interface PlantNoSelectionDialogProps {
|
|
|
22
22
|
*
|
|
23
23
|
* @returns The plant selection dialog JSX element, or null if not open.
|
|
24
24
|
*/
|
|
25
|
-
export declare const PlantNoSelectionDialog: ({ itemGetterCallback, onPlantSelectionConfirmed, onCancelButtonClicked, onSetIsWarningDialogOpen, open, title }: PlantNoSelectionDialogProps) => JSX.Element | null;
|
|
25
|
+
export declare const PlantNoSelectionDialog: ({ itemGetterCallback, onPlantSelectionConfirmed, onCancelButtonClicked, onSetIsWarningDialogOpen, open, title }: PlantNoSelectionDialogProps) => React.JSX.Element | null;
|
|
26
26
|
export {};
|