@equinor/echo-framework 0.25.5 → 0.26.4
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 +6 -6
- package/src/lib/components/prepview/common/additionalInformation/WOAdditionalDetails.d.ts +2 -2
- package/src/lib/components/prepview/common/info/block/InfoBlock.d.ts +2 -2
- package/src/lib/components/prepview/workorder/details/DetailsWorkOrder.d.ts +1 -2
- package/src/lib/feature/globalSelection/components/SelectionActionBar.d.ts +2 -0
- package/src/lib/feature/globalSelection/globalSelection.api.d.ts +16 -1
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.d.ts +0 -8
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +4 -0
- package/src/lib/feature/globalSelection/hooks/useAreAllItemsVisible.d.ts +5 -0
- package/src/lib/feature/globalSelection/index.d.ts +8 -6
- package/src/lib/feature/legend/components/popover/LegendPopoverContent.d.ts +36 -0
- package/src/lib/feature/legend/components/popover/LegendPopoverContent.logic.d.ts +20 -0
- package/src/lib/feature/legend/index.d.ts +2 -0
- package/src/lib/feature/legend/types/legendType.d.ts +2 -2
- package/src/lib/feature/openItemsIn3d/components/plantNoSelectionDialog/plantNoSelectionDialog.d.ts +18 -2
- package/src/lib/feature/openItemsIn3d/index.d.ts +1 -1
- package/src/lib/feature/openItemsIn3d/logic/convertToPlantTagPairs.d.ts +18 -0
- package/src/lib/feature/openItemsIn3d/openItemsIn3dDialog.d.ts +5 -3
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@equinor/echo-base": ">= 0.
|
|
6
|
-
"@equinor/echo-components": ">= 0.
|
|
7
|
-
"@equinor/echo-core": ">= 0.
|
|
8
|
-
"@equinor/echo-search": ">= 0.
|
|
9
|
-
"@equinor/echo-utils": ">= 0.4
|
|
5
|
+
"@equinor/echo-base": ">= 0.26.4 < 0.27.0",
|
|
6
|
+
"@equinor/echo-components": ">= 0.26.4 < 0.27.0",
|
|
7
|
+
"@equinor/echo-core": ">= 0.26.4 < 0.27.0",
|
|
8
|
+
"@equinor/echo-search": ">= 0.26.4 < 0.27.0",
|
|
9
|
+
"@equinor/echo-utils": ">= 0.26.4 < 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",
|
|
@@ -2,5 +2,5 @@ import type { WorkOrderDetails } from '../../types';
|
|
|
2
2
|
interface Props {
|
|
3
3
|
workOrderDetails?: WorkOrderDetails;
|
|
4
4
|
}
|
|
5
|
-
declare function WOAdditionalDetails({ workOrderDetails }: Props):
|
|
6
|
-
export {
|
|
5
|
+
export declare function WOAdditionalDetails({ workOrderDetails }: Readonly<Props>): JSX.Element | null;
|
|
6
|
+
export {};
|
|
@@ -5,5 +5,5 @@ interface InfoBlockType {
|
|
|
5
5
|
children: JSX.Element | string[] | string | number;
|
|
6
6
|
contentClassName?: string;
|
|
7
7
|
}
|
|
8
|
-
declare function InfoBlock({ label, stretched, fit, children, contentClassName }: InfoBlockType): JSX.Element;
|
|
9
|
-
export {
|
|
8
|
+
export declare function InfoBlock({ label, stretched, fit, children, contentClassName }: Readonly<InfoBlockType>): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -3,5 +3,4 @@ export interface Props {
|
|
|
3
3
|
workOrderDetails: WorkOrderDetails;
|
|
4
4
|
isLoading?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare function DetailsWorkOrder({ workOrderDetails }: Props): JSX.Element;
|
|
7
|
-
export { DetailsWorkOrder };
|
|
6
|
+
export declare function DetailsWorkOrder({ workOrderDetails }: Readonly<Props>): JSX.Element;
|
|
@@ -3,5 +3,7 @@ export interface SelectionActionBarProps {
|
|
|
3
3
|
itemId: GlobalSelectionTypes.ItemId;
|
|
4
4
|
onAddItemClick: () => void;
|
|
5
5
|
className?: string;
|
|
6
|
+
darkBackground?: boolean;
|
|
7
|
+
buttonSize?: 'medium' | 'small';
|
|
6
8
|
}
|
|
7
9
|
export declare const SelectionActionBar: React.FC<SelectionActionBarProps>;
|
|
@@ -132,8 +132,11 @@ export declare const globalSelectionApi: Readonly<{
|
|
|
132
132
|
isVisible: boolean;
|
|
133
133
|
}) => void;
|
|
134
134
|
/**
|
|
135
|
-
* Sets the visibility of items
|
|
135
|
+
* Sets the visibility of items within a specific group or category.
|
|
136
136
|
*
|
|
137
|
+
* If a categoryId is provided, only items within that category of the group will be updated.
|
|
138
|
+
* If no categoryId is provided, all items in all categories of the group will be updated.
|
|
139
|
+
* The visibility is controlled by the isVisible parameter.
|
|
137
140
|
* @param {Object} args - The arguments for setting visibility.
|
|
138
141
|
* @param {Guid} args.groupId - The ID of the group for which the visibility should be set.
|
|
139
142
|
* @param {GlobalSelectionCategoryId} args.categoryId - Optional. The ID of the category for which the visibility should be set.
|
|
@@ -145,6 +148,12 @@ export declare const globalSelectionApi: Readonly<{
|
|
|
145
148
|
categoryId?: GlobalSelectionCategoryId;
|
|
146
149
|
isVisible: boolean;
|
|
147
150
|
}) => void;
|
|
151
|
+
/**
|
|
152
|
+
* Sets the visibility of all items in the selection menu panel. Use it carefully, as it will affect all items in the selection.
|
|
153
|
+
*/
|
|
154
|
+
setAll: (args: {
|
|
155
|
+
isVisible: boolean;
|
|
156
|
+
}) => void;
|
|
148
157
|
}>;
|
|
149
158
|
errorStatus: Readonly<{
|
|
150
159
|
/**
|
|
@@ -203,4 +212,10 @@ export declare const globalSelectionApi: Readonly<{
|
|
|
203
212
|
label: string;
|
|
204
213
|
subLabel: string;
|
|
205
214
|
}) => import("@equinor/echo-utils").Guid;
|
|
215
|
+
itemIds: {
|
|
216
|
+
/**
|
|
217
|
+
* Retrieves the unique IDs of all items stored in the selection menu panel.
|
|
218
|
+
*/
|
|
219
|
+
getAll: () => Readonly<GlobalSelectionTypes.ItemId[]>;
|
|
220
|
+
};
|
|
206
221
|
}>;
|
|
@@ -48,12 +48,4 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
48
48
|
type: string;
|
|
49
49
|
} | undefined): void;
|
|
50
50
|
}>;
|
|
51
|
-
/**
|
|
52
|
-
* Get a snapshot of the current global selection store state.
|
|
53
|
-
*
|
|
54
|
-
* You shouldn't use this store directly in any code.
|
|
55
|
-
* If you want to add, and remove items, use `useSelectionMenuStore` zustand store.
|
|
56
|
-
*
|
|
57
|
-
* For accessing and using global selection features, use the globalSelectionApi from echo-framework.
|
|
58
|
-
*/
|
|
59
51
|
export declare function getGlobalSelectionStoreState(): GlobalSelectionTypes.Store;
|
package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts
CHANGED
|
@@ -75,11 +75,15 @@ export interface GlobalSelectionStore extends GlobalSelectionStoreData {
|
|
|
75
75
|
itemIds: Readonly<Readonly<GlobalSelectionTypes.ItemId>>[];
|
|
76
76
|
isVisible: boolean;
|
|
77
77
|
}) => void;
|
|
78
|
+
setAllItemsVisibility: (args: {
|
|
79
|
+
isVisible: boolean;
|
|
80
|
+
}) => void;
|
|
78
81
|
setItemMetaData: (args: ReadonlyArray<{
|
|
79
82
|
itemId: GlobalSelectionTypes.ItemId;
|
|
80
83
|
metaData: Partial<GlobalSelectionMetaData>;
|
|
81
84
|
}>) => void;
|
|
82
85
|
resetItemErrorStatuses: () => void;
|
|
86
|
+
getStoredItemIds: () => Readonly<GlobalSelectionTypes.ItemId[]>;
|
|
83
87
|
resetState: () => void;
|
|
84
88
|
setErrorStatusForItems: (args: {
|
|
85
89
|
itemErrorStatuses: GlobalSelectionTypes.ItemErrorStatusUpdate[];
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export { RemoveSelectionItemsConfirmDialog } from './components/RemoveSelectionItemsConfirmDialog';
|
|
2
|
-
export { globalSelectionApi } from './globalSelection.api';
|
|
3
|
-
export { globalSelectionInternal } from './globalSelection.internal';
|
|
4
1
|
export * from './globalSelectionStore/globalSelectionStore.types';
|
|
5
|
-
export
|
|
2
|
+
export * from './selectionMenu/selectionTreeStore/selectionTree.store.types';
|
|
3
|
+
export { useAreAllItemsVisible } from './hooks/useAreAllItemsVisible';
|
|
6
4
|
export { useGlobalSelectionByItemId } from './hooks/useGlobalSelectionByItemId';
|
|
7
5
|
export { useGlobalSelectionItems } from './hooks/useGlobalSelectionItems';
|
|
8
6
|
export { useGlobalSelectionItemsByType } from './hooks/useGlobalSelectionItemsByType';
|
|
@@ -10,6 +8,10 @@ export { useGlobalSelectionLists } from './hooks/useGlobalSelectionLists';
|
|
|
10
8
|
export { useGlobalSelectionTags } from './hooks/useGlobalSelectionTags';
|
|
11
9
|
export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';
|
|
12
10
|
export { useSelectionCategoriesByGroupId } from './hooks/useSelectionCategoriesByGroupId';
|
|
13
|
-
export { OpenGlobalSelectionIn3DButton } from './OpenGlobalSelectionIn3DButton';
|
|
14
11
|
export { useSelectionMenuGroups } from './selectionMenu/hooks/useSelectionMenuGroups';
|
|
15
|
-
export
|
|
12
|
+
export { RemoveSelectionItemsConfirmDialog } from './components/RemoveSelectionItemsConfirmDialog';
|
|
13
|
+
export { globalSelectionApi } from './globalSelection.api';
|
|
14
|
+
export { globalSelectionInternal } from './globalSelection.internal';
|
|
15
|
+
export { globalSelectionUtils } from './globalSelectionStore/globalSelectionStore.utils';
|
|
16
|
+
export { OpenGlobalSelectionIn3DButton } from './OpenGlobalSelectionIn3DButton';
|
|
17
|
+
export { convertGlobalSelectionItemsToPlantTagPairs } from './OpenGlobalSelectionIn3DButton.utils';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { LegendDataId, LegendId } from '../../types/legendType';
|
|
3
|
+
export interface LegendPopoverContentProps {
|
|
4
|
+
legendId: LegendId;
|
|
5
|
+
legendDataId: LegendDataId;
|
|
6
|
+
title: string | React.ReactNode;
|
|
7
|
+
description: string;
|
|
8
|
+
tertiary?: LegendPopoverTertiaryLabels | React.ReactNode;
|
|
9
|
+
onPopoverClicked?: () => void;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
excludedLegendTitles?: ReadonlyArray<string>;
|
|
12
|
+
}
|
|
13
|
+
export type LegendPopoverTertiaryLabels = {
|
|
14
|
+
first: string;
|
|
15
|
+
second?: string;
|
|
16
|
+
third?: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Renders the content for a legend popover, typically used as the content for the ItemMarkerPopover component.
|
|
20
|
+
*
|
|
21
|
+
* Uses `legendId` and `legendDataId` to look up and render relevant `LegendChip` components for the given legend item.
|
|
22
|
+
* Displays a title, description, and optional tertiary content (either a structured object with up to three strings, or a custom ReactNode).
|
|
23
|
+
* Additional custom content can be rendered via `children`.
|
|
24
|
+
*
|
|
25
|
+
* @component
|
|
26
|
+
* @param {object} props - Component props
|
|
27
|
+
* @param {LegendId} props.legendId - The identifier used to look up legend strategy.
|
|
28
|
+
* @param {LegendDataId} props.legendDataId - The identifier for retrieving the markers.
|
|
29
|
+
* @param {string | React.ReactNode} props.title - The main title of the popover.
|
|
30
|
+
* @param {string} props.description - The description or supporting text.
|
|
31
|
+
* @param {LegendPopoverTertiaryLabels | React.ReactNode} [props.tertiary] - Optional tertiary content. If an object, displays up to three labeled strings; if a ReactNode, renders as-is.
|
|
32
|
+
* @param {() => void} [props.onPopoverClicked] - Optional callback for popover click events.
|
|
33
|
+
* @param {React.ReactNode} [props.children] - Optional custom content to render below the predefined main content.
|
|
34
|
+
* @param {ReadonlyArray<string>} [props.excludedLegendTitles] - Optional array of titles to exclude from the legend chips.
|
|
35
|
+
*/
|
|
36
|
+
export declare const LegendPopoverContent: FC<LegendPopoverContentProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LegendChipProps } from "@equinor/echo-components";
|
|
2
|
+
import { LegendState } from "../../types/legendType";
|
|
3
|
+
import { Marker } from './../../types/legendMarkerBadge.type';
|
|
4
|
+
/**
|
|
5
|
+
* Returns an array of visible LegendChipProps for the given markers and legend state.
|
|
6
|
+
*
|
|
7
|
+
* Filters out markers and badges that are hidden (using isHiddenMarker/isHiddenBadge) or whose titles match any value in the
|
|
8
|
+
* excludedLegendTitles array (case-insensitive). Badge chips are only included if selectedMarkerOption !== selectedBadgeOption.
|
|
9
|
+
*
|
|
10
|
+
* @param {object} params - The function parameters.
|
|
11
|
+
* @param {ReadonlyArray<Marker>} params.markers - The list of marker objects to process.
|
|
12
|
+
* @param {LegendState} params.legend - The legend state, used for filtering and selection logic.
|
|
13
|
+
* @param {ReadonlyArray<string>} [params.excludedLegendTitles] - Optional array of titles to exclude from the chips (case-insensitive).
|
|
14
|
+
* @returns {LegendChipProps[]} The filtered and mapped array of LegendChipProps for rendering.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getVisibleLegendChips({ markers, legend, excludedLegendTitles, }: {
|
|
17
|
+
markers: ReadonlyArray<Marker>;
|
|
18
|
+
legend: LegendState;
|
|
19
|
+
excludedLegendTitles?: ReadonlyArray<string>;
|
|
20
|
+
}): LegendChipProps[];
|
|
@@ -2,6 +2,8 @@ import './legendStrategies/workOrderStrategy/WorkOrderLegend';
|
|
|
2
2
|
export { LegendList } from './components/LegendList';
|
|
3
3
|
export { PositionalItem } from './components/pdfMarkers/PositionalItem';
|
|
4
4
|
export { MultipleMarkersByLegends } from './components/pdfMarkers/subComponents/MultipleMarkersByLegends';
|
|
5
|
+
export { LegendPopoverContent } from './components/popover/LegendPopoverContent';
|
|
6
|
+
export type { LegendPopoverContentProps, LegendPopoverTertiaryLabels } from './components/popover/LegendPopoverContent';
|
|
5
7
|
export { legendFacade } from './legendFacade';
|
|
6
8
|
export type { Badge, Marker } from './types/legendMarkerBadge.type';
|
|
7
9
|
export type { LegendStrategy } from './types/legendStrategy.type';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Brand } from '@equinor/echo-utils';
|
|
2
2
|
import { GlobalSelectionTypes } from '../../globalSelection';
|
|
3
|
-
type TemporaryLegendIdsForTesting = '
|
|
4
|
-
export type KnownLegendIds = 'Equipment' | TemporaryLegendIdsForTesting;
|
|
3
|
+
type TemporaryLegendIdsForTesting = 'Work Orders with Custom UI';
|
|
4
|
+
export type KnownLegendIds = 'Equipment' | 'Tag Legend' | TemporaryLegendIdsForTesting;
|
|
5
5
|
export type LegendId = KnownLegendIds | Brand<string, 'LegendId'>;
|
|
6
6
|
export declare function createLegendId(id: string): LegendId;
|
|
7
7
|
export declare const knownLegendIds: {
|
package/src/lib/feature/openItemsIn3d/components/plantNoSelectionDialog/plantNoSelectionDialog.d.ts
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { Plant3dInfo, PlantAndTagForOpenIn3d } from '../../logic/openItemsIn3d.utils';
|
|
2
2
|
interface PlantNoSelectionDialogProps {
|
|
3
|
-
|
|
3
|
+
itemGetterCallback: () => Promise<PlantAndTagForOpenIn3d[]>;
|
|
4
4
|
onPlantSelectionConfirmed: (selectedPlantNo: Plant3dInfo) => void;
|
|
5
5
|
onCancelButtonClicked: () => void;
|
|
6
6
|
onSetIsWarningDialogOpen: () => void;
|
|
7
7
|
open: boolean;
|
|
8
|
+
title?: string;
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Displays a dialog for selecting a plant when items from multiple plants are selected.
|
|
12
|
+
*
|
|
13
|
+
* This dialog is shown when the user has selected items that belong to different plants.
|
|
14
|
+
* It allows the user to choose which plant to open in 3D. If only one plant is found,
|
|
15
|
+
* the selection is automatically confirmed. If no plants are found, a warning dialog is shown.
|
|
16
|
+
*
|
|
17
|
+
* @param itemGetterCallback - Async callback to retrieve the list of items for plant selection.
|
|
18
|
+
* @param onPlantSelectionConfirmed - Callback invoked when a plant is selected and confirmed.
|
|
19
|
+
* @param onCancelButtonClicked - Callback invoked when the dialog is cancelled.
|
|
20
|
+
* @param onSetIsWarningDialogOpen - Callback to open a warning dialog if no plants are found.
|
|
21
|
+
* @param open - Boolean indicating whether the dialog is open.
|
|
22
|
+
*
|
|
23
|
+
* @returns The plant selection dialog JSX element, or null if not open.
|
|
24
|
+
*/
|
|
25
|
+
export declare const PlantNoSelectionDialog: ({ itemGetterCallback, onPlantSelectionConfirmed, onCancelButtonClicked, onSetIsWarningDialogOpen, open, title }: PlantNoSelectionDialogProps) => JSX.Element | null;
|
|
10
26
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { tagIdPlantIdToPlantTagPairs } from './logic/convertToPlantTagPairs';
|
|
1
|
+
export { tagIdPlantIdToPlantTagPairs, tagToPlantTagPairs } from './logic/convertToPlantTagPairs';
|
|
2
2
|
export type { Plant3dInfo, PlantAndTagForOpenIn3d } from './logic/openItemsIn3d.utils';
|
|
3
3
|
export { OpenItemsIn3dDialog } from './openItemsIn3dDialog';
|
|
@@ -3,8 +3,26 @@ export interface TagIdPlantId {
|
|
|
3
3
|
tagPlantId: string | undefined;
|
|
4
4
|
tagId: string | undefined;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* Converts a list of selected work orders into plant-tag pairs suitable for opening in 3D.
|
|
8
|
+
*
|
|
9
|
+
* Groups the input work orders by their `instCode`, fetches additional tag information asynchronously,
|
|
10
|
+
* and returns an array of objects containing plant and tag details for use in 3D visualization.
|
|
11
|
+
*
|
|
12
|
+
* @param selectedWorkOrders - A readonly array of objects, each containing a `tagNo` and an `instCode`.
|
|
13
|
+
* @returns A promise that resolves to an array of `PlantAndTagForOpenIn3d` objects, each containing
|
|
14
|
+
* `instCode`, `pdmsPlantCode`, `tagNo`, and `plantNo` properties.
|
|
15
|
+
*/
|
|
6
16
|
export declare function tagToPlantTagPairs(selectedWorkOrders: ReadonlyArray<{
|
|
7
17
|
tagNo: string;
|
|
8
18
|
instCode: string;
|
|
9
19
|
}>): Promise<PlantAndTagForOpenIn3d[]>;
|
|
20
|
+
/**
|
|
21
|
+
* Converts an array of `TagIdPlantId` items into an array of `PlantAndTagForOpenIn3d` pairs,
|
|
22
|
+
* grouped by their `tagPlantId` property. For each group, it calls
|
|
23
|
+
* `tagIdTagPlantIdToPlantTagPairsBySapId` to generate the corresponding plant-tag pairs.
|
|
24
|
+
*
|
|
25
|
+
* @param items - A readonly array of `TagIdPlantId` objects to be grouped and converted.
|
|
26
|
+
* @returns A promise that resolves to an array of `PlantAndTagForOpenIn3d` pairs.
|
|
27
|
+
*/
|
|
10
28
|
export declare function tagIdPlantIdToPlantTagPairs(items: ReadonlyArray<TagIdPlantId>): Promise<PlantAndTagForOpenIn3d[]>;
|
|
@@ -7,24 +7,26 @@ import { Plant3dInfo, PlantAndTagForOpenIn3d } from './logic/openItemsIn3d.utils
|
|
|
7
7
|
*
|
|
8
8
|
* @component
|
|
9
9
|
* @param {Object} props - The properties passed to the component.
|
|
10
|
-
* @param {Array} props.
|
|
10
|
+
* @param {Array} props.itemGetterCallback - Async callback to retrieve the list of items for plant selection.
|
|
11
11
|
* @param {boolean} props.open - Boolean indicating whether the dialog should be open or closed.
|
|
12
12
|
* @param {Function} props.onPlantSelectionCompleted - Function to be called when the plant selection process has been completed by the user.
|
|
13
13
|
* @param {Function} props.onCancelButtonClicked - Function to be called when the user clicks the cancel button.
|
|
14
14
|
* @param {Object} props.plantNotAvailableDialogProps - Object containing properties for the dialog shown when a plant is not available. Only needed when props.disableDefault3dOpener=true.
|
|
15
15
|
* @param {boolean} [props.disableDefault3dOpener=false] - Boolean indicating whether the default mechanism to open items in 3D should be disabled.
|
|
16
|
+
* @param {string} [props.title] - Optional title for the dialog. If not provided, a default title will be used.
|
|
16
17
|
*
|
|
17
18
|
* @returns {React.ReactElement} A React Element representing the OpenItemsIn3dDialog.
|
|
18
19
|
*
|
|
19
20
|
*/
|
|
20
|
-
export declare const OpenItemsIn3dDialog: ({
|
|
21
|
+
export declare const OpenItemsIn3dDialog: ({ itemGetterCallback, open, onPlantSelectionCompleted, onCancelButtonClicked, plantNotAvailableDialogProps, disableDefault3dOpener, title }: OpenItemsIn3dDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
interface BaseOpenItemsIn3dDialogProps {
|
|
22
|
-
|
|
23
|
+
itemGetterCallback: () => Promise<PlantAndTagForOpenIn3d[]>;
|
|
23
24
|
onPlantSelectionCompleted: (args: {
|
|
24
25
|
selectedPlant: Plant3dInfo;
|
|
25
26
|
}) => void;
|
|
26
27
|
onCancelButtonClicked: () => void;
|
|
27
28
|
open: boolean;
|
|
29
|
+
title?: string;
|
|
28
30
|
}
|
|
29
31
|
interface WithDefault3dOpener extends BaseOpenItemsIn3dDialogProps {
|
|
30
32
|
disableDefault3dOpener?: false;
|