@equinor/echo-framework 4.0.1 → 4.1.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/index.cjs.js +3 -3
- package/package.json +6 -6
- package/src/index.d.ts +1 -1
- package/src/lib/feature/globalSelection/OpenGlobalSelectionIn3DButton.utils.d.ts +9 -0
- package/src/lib/feature/globalSelection/components/SelectionActionBar/SelectionFeedbackDisplay.d.ts +7 -0
- package/src/lib/feature/globalSelection/components/SelectionActionBar/selectionFeedback.types.d.ts +1 -0
- package/src/lib/feature/globalSelection/components/SelectionActionBar.d.ts +3 -4
- package/src/lib/feature/globalSelection/components/SelectionMenuTrigger/SelectionGroupMenuItem.d.ts +9 -0
- package/src/lib/feature/globalSelection/components/SelectionMenuTrigger/SelectionMenuTrigger.d.ts +12 -0
- package/src/lib/feature/globalSelection/globalSelection.api.d.ts +9 -0
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.d.ts +14 -18
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.mutableSelectionItem.d.ts +37 -0
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +49 -54
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts +12 -6
- package/src/lib/feature/globalSelection/globalSelectionStore/itemIdTypeGuards.d.ts +7 -0
- package/src/lib/feature/globalSelection/hooks/useGlobalSelectionLists.d.ts +1 -1
- package/src/lib/feature/globalSelection/hooks/useItemGroupMembership.d.ts +13 -0
- package/src/lib/feature/globalSelection/hooks/useSelectionAction.d.ts +21 -0
- package/src/lib/feature/globalSelection/index.d.ts +6 -2
- package/src/lib/feature/globalSelection/pdmsTag/pdmsTag.logic.d.ts +1 -0
- package/src/lib/feature/globalSelection/pdmsTag/pdmsTag.types.d.ts +12 -3
- package/src/lib/feature/globalSelection/pdmsTag/pdmsTag.utils.d.ts +0 -2
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.d.ts +2 -3
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.utils.d.ts +1 -1
- package/src/lib/feature/legend/components/LegendFeedbackMessage.d.ts +1 -1
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/components/MultipleMarkersBySingleLegend/multipleMarkersBySingleLegend.logic.d.ts +15 -0
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/components/MultipleMarkersBySingleLegend/useStalePopoverMarkers.d.ts +19 -0
- package/src/lib/feature/legend/components/pdfMarkers/subComponents/hooks/useMarkerPopover.d.ts +1 -0
- package/src/lib/feature/legend/components/pdfMarkers/utils/markerId.utils.d.ts +9 -0
- package/src/lib/feature/legend/hooks/useItemToSelectionGroupsMapSubscription.d.ts +3 -3
- package/src/lib/feature/legend/hooks/useSelectionItemColorSubscription.d.ts +3 -3
- package/src/lib/feature/legend/hooks/useUniqueSelectionOnlyBadgeIdStrings.d.ts +8 -0
- package/src/lib/feature/legend/index.d.ts +1 -0
- package/src/lib/feature/legend/legendFacade.d.ts +10 -1
- package/src/lib/feature/legend/legendStrategies/notificationStrategy/notificationStrategy.d.ts +1 -0
- package/src/lib/feature/legend/legendStrategies/workOrderStrategy/CreateWorkOrderPopoverContent.d.ts +1 -2
- package/src/lib/feature/legend/legendStrategies/workOrderStrategy/useCreateWorkOrderMarkers.d.ts +1 -1
- package/src/lib/feature/legend/legendStrategies/workOrderStrategy/workOrderPopover.types.d.ts +1 -2
- package/src/lib/feature/legend/logic/legendDataId.utils.d.ts +50 -0
- package/src/lib/feature/legend/stores/legendUIStore/legendUIStore.types.d.ts +13 -1
- package/src/lib/feature/legend/stores/legendVisibleDataStore/legendVisibleDataStore.d.ts +2 -3
- package/src/lib/feature/legend/types/legendMarkerBadge.type.d.ts +6 -1
- package/src/lib/feature/legend/types/legendStrategy.type.d.ts +2 -3
- package/src/lib/feature/legend/types/legendType.d.ts +18 -2
- package/src/lib/services/dataLayerPanel/dataLayerPanel.store.d.ts +13 -11
- package/src/lib/feature/globalSelection/components/AddToSelectionMenuTrigger/AddToSelectionMenuItem.d.ts +0 -8
- package/src/lib/feature/globalSelection/components/AddToSelectionMenuTrigger/AddToSelectionMenuTrigger.d.ts +0 -6
- package/src/lib/feature/legend/hooks/useUniqueBadgeItemIdStrings.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@equinor/echo-base": ">= 4.0
|
|
6
|
-
"@equinor/echo-components": ">= 4.0
|
|
7
|
-
"@equinor/echo-core": ">= 4.0
|
|
8
|
-
"@equinor/echo-search": ">= 4.0
|
|
9
|
-
"@equinor/echo-utils": ">= 4.0
|
|
5
|
+
"@equinor/echo-base": ">= 4.1.0 < 5.0.0",
|
|
6
|
+
"@equinor/echo-components": ">= 4.1.0 < 5.0.0",
|
|
7
|
+
"@equinor/echo-core": ">= 4.1.0 < 5.0.0",
|
|
8
|
+
"@equinor/echo-search": ">= 4.1.0 < 5.0.0",
|
|
9
|
+
"@equinor/echo-utils": ">= 4.1.0 < 5.0.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",
|
package/src/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export { PopoverLoading } from './lib/feature/legend/components/pdfMarkers/subCo
|
|
|
31
31
|
export * from './lib/feature/legend/index';
|
|
32
32
|
export { legendVisibleTagsSubscribeToStore } from './lib/feature/legend/stores/legendVisibleDataAsTagsStore/legendVisibleDataAsTagsStore';
|
|
33
33
|
export { knownLegendIds } from './lib/feature/legend/types/legendType';
|
|
34
|
-
export type { LegendDataId, LegendEquipmentId, LegendId, LegendState, LegendTagId } from './lib/feature/legend/types/legendType';
|
|
34
|
+
export type { LegendDataId, LegendEquipmentId, LegendId, LegendState, LegendTagId, LegendWorkOrderId } from './lib/feature/legend/types/legendType';
|
|
35
35
|
export { echoMapsIcon } from './lib/icons/echoMapsIcon';
|
|
36
36
|
export type { Brand } from '@equinor/echo-utils';
|
|
37
37
|
export { NewLegendToggler } from './lib/feature/legend/components/NewLegendToggler';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { TagSummaryDto } from '@equinor/echo-search';
|
|
1
2
|
import { PlantAndTagForOpenIn3d } from '../openItemsIn3d/logic/openItemsIn3d.utils';
|
|
3
|
+
import type { PdmsTagSummaryDto } from './pdmsTag/pdmsTag.types';
|
|
2
4
|
/**
|
|
3
5
|
* Converts global selection items to plant tag pairs.
|
|
4
6
|
*
|
|
@@ -12,3 +14,10 @@ import { PlantAndTagForOpenIn3d } from '../openItemsIn3d/logic/openItemsIn3d.uti
|
|
|
12
14
|
* @returns {Promise<PlantAndTagForOpenIn3d[]>} A promise that resolves to an array of plant tag pairs.
|
|
13
15
|
*/
|
|
14
16
|
export declare function convertGlobalSelectionItemsToPlantTagPairs(): Promise<PlantAndTagForOpenIn3d[]>;
|
|
17
|
+
interface SeparatedTags {
|
|
18
|
+
readonly stidTags: ReadonlyArray<TagSummaryDto>;
|
|
19
|
+
readonly pdmsTags: ReadonlyArray<PdmsTagSummaryDto>;
|
|
20
|
+
}
|
|
21
|
+
export declare function separateStidAndPdmsTags(tags: ReadonlyArray<TagSummaryDto>): SeparatedTags;
|
|
22
|
+
export declare function pdmsTagsToPlantTagPairs(pdmsTags: ReadonlyArray<PdmsTagSummaryDto>): ReadonlyArray<PlantAndTagForOpenIn3d>;
|
|
23
|
+
export {};
|
package/src/lib/feature/globalSelection/components/SelectionActionBar/SelectionFeedbackDisplay.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SelectionFeedbackType } from './selectionFeedback.types';
|
|
2
|
+
interface SelectionFeedbackDisplayProps {
|
|
3
|
+
readonly feedbackType: SelectionFeedbackType;
|
|
4
|
+
readonly className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const SelectionFeedbackDisplay: React.FC<SelectionFeedbackDisplayProps>;
|
|
7
|
+
export {};
|
package/src/lib/feature/globalSelection/components/SelectionActionBar/selectionFeedback.types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SelectionFeedbackType = 'added' | 'removed' | 'addError' | 'removeError' | 'colorChanged' | 'colorChangeError';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Guid } from '@equinor/echo-utils';
|
|
2
1
|
import { GlobalSelectionTypes } from '../globalSelectionStore/globalSelectionStore.types';
|
|
3
2
|
export interface SelectionActionBarProps {
|
|
4
|
-
itemId: GlobalSelectionTypes.ItemId;
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
readonly itemId: GlobalSelectionTypes.ItemId;
|
|
4
|
+
readonly className?: string;
|
|
5
|
+
readonly showPopoverUpdateDelay?: boolean;
|
|
7
6
|
}
|
|
8
7
|
export declare const SelectionActionBar: React.FC<SelectionActionBarProps>;
|
package/src/lib/feature/globalSelection/components/SelectionMenuTrigger/SelectionGroupMenuItem.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Guid } from '@equinor/echo-utils';
|
|
2
|
+
import { SelectionGroup } from '../../selectionMenu/selectionTreeStore/selectionTree.store.types';
|
|
3
|
+
interface SelectionGroupMenuItemProps {
|
|
4
|
+
readonly group: SelectionGroup;
|
|
5
|
+
readonly isItemInGroup: boolean;
|
|
6
|
+
readonly onSelectionChanged: (groupId: Guid) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SelectionGroupMenuItem: (props: SelectionGroupMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
package/src/lib/feature/globalSelection/components/SelectionMenuTrigger/SelectionMenuTrigger.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Guid } from '@equinor/echo-utils';
|
|
2
|
+
import { GlobalSelectionTypes } from '../../globalSelectionStore/globalSelectionStore.types';
|
|
3
|
+
interface SelectionMenuTriggerProps {
|
|
4
|
+
readonly itemId: GlobalSelectionTypes.ItemId;
|
|
5
|
+
readonly onAddToSelection: (groupId: Guid) => void;
|
|
6
|
+
readonly onRemoveFromSelection: (groupId: Guid) => void;
|
|
7
|
+
readonly partOfListsText?: string;
|
|
8
|
+
readonly isError?: boolean;
|
|
9
|
+
readonly isLoading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const SelectionMenuTrigger: (props: SelectionMenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -127,6 +127,11 @@ export declare const globalSelectionApi: Readonly<{
|
|
|
127
127
|
findGroupByLabel: (args: {
|
|
128
128
|
label: string;
|
|
129
129
|
}) => import("@equinor/echo-utils").Guid | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* Retrieves a tag item from the selection by tagNo and instCode.
|
|
132
|
+
* Returns undefined if the tag is not in the selection.
|
|
133
|
+
*/
|
|
134
|
+
getTag: typeof getTag;
|
|
130
135
|
};
|
|
131
136
|
/**
|
|
132
137
|
* Moves items, categories, or groups within the selection tree structure.
|
|
@@ -257,4 +262,8 @@ export declare const globalSelectionApi: Readonly<{
|
|
|
257
262
|
}>;
|
|
258
263
|
declare function getStoreTagIds(): GlobalSelectionTypes.TagId[];
|
|
259
264
|
declare function getStoreEquipmentIds(): GlobalSelectionTypes.EquipmentId[];
|
|
265
|
+
declare function getTag(args: {
|
|
266
|
+
readonly tagNo: string;
|
|
267
|
+
readonly instCode: string;
|
|
268
|
+
}): GlobalSelectionTypes.TagItem | undefined;
|
|
260
269
|
export {};
|
|
@@ -55,11 +55,11 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
55
55
|
itemIds: ReadonlyArray<GlobalSelectionTypes.ItemId>;
|
|
56
56
|
}) => void;
|
|
57
57
|
setColorByItemIds: (args: {
|
|
58
|
-
itemIds:
|
|
58
|
+
itemIds: ReadonlyArray<Readonly<GlobalSelectionTypes.ItemId>>;
|
|
59
59
|
color: string;
|
|
60
60
|
}) => void;
|
|
61
61
|
setVisibilityByItemIds: (args: {
|
|
62
|
-
itemIds:
|
|
62
|
+
itemIds: ReadonlyArray<Readonly<GlobalSelectionTypes.ItemId>>;
|
|
63
63
|
isVisible: boolean;
|
|
64
64
|
}) => void;
|
|
65
65
|
setAllItemsVisibility: (args: {
|
|
@@ -81,15 +81,14 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
81
81
|
id: {
|
|
82
82
|
workOrderId: string;
|
|
83
83
|
} | {
|
|
84
|
-
tagNo: string;
|
|
85
84
|
instCode: string;
|
|
85
|
+
tagNo: string;
|
|
86
|
+
} | {
|
|
86
87
|
internalTagType: import("..").PdmsInternalTagType;
|
|
87
88
|
plantNo: string;
|
|
88
89
|
plantCode: string;
|
|
89
|
-
} | {
|
|
90
90
|
instCode: string;
|
|
91
91
|
tagNo: string;
|
|
92
|
-
internalTagType?: never | undefined;
|
|
93
92
|
} | {
|
|
94
93
|
equipmentId: string;
|
|
95
94
|
} | {
|
|
@@ -118,7 +117,7 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
118
117
|
metaData: {
|
|
119
118
|
color: string;
|
|
120
119
|
isHiddenByUser: boolean;
|
|
121
|
-
errorStatus
|
|
120
|
+
errorStatus: string | undefined;
|
|
122
121
|
systemStatus: import("./globalSelectionStore.types").SelectionItemSystemStatus;
|
|
123
122
|
};
|
|
124
123
|
}>;
|
|
@@ -128,15 +127,14 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
128
127
|
id: {
|
|
129
128
|
workOrderId: string;
|
|
130
129
|
} | {
|
|
131
|
-
tagNo: string;
|
|
132
130
|
instCode: string;
|
|
131
|
+
tagNo: string;
|
|
132
|
+
} | {
|
|
133
133
|
internalTagType: import("..").PdmsInternalTagType;
|
|
134
134
|
plantNo: string;
|
|
135
135
|
plantCode: string;
|
|
136
|
-
} | {
|
|
137
136
|
instCode: string;
|
|
138
137
|
tagNo: string;
|
|
139
|
-
internalTagType?: never | undefined;
|
|
140
138
|
} | {
|
|
141
139
|
equipmentId: string;
|
|
142
140
|
} | {
|
|
@@ -170,7 +168,7 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
170
168
|
metaData: {
|
|
171
169
|
color: string;
|
|
172
170
|
isHiddenByUser: boolean;
|
|
173
|
-
errorStatus
|
|
171
|
+
errorStatus: string | undefined;
|
|
174
172
|
systemStatus: import("./globalSelectionStore.types").SelectionItemSystemStatus;
|
|
175
173
|
};
|
|
176
174
|
}>;
|
|
@@ -180,15 +178,14 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
180
178
|
id: {
|
|
181
179
|
workOrderId: string;
|
|
182
180
|
} | {
|
|
183
|
-
tagNo: string;
|
|
184
181
|
instCode: string;
|
|
182
|
+
tagNo: string;
|
|
183
|
+
} | {
|
|
185
184
|
internalTagType: import("..").PdmsInternalTagType;
|
|
186
185
|
plantNo: string;
|
|
187
186
|
plantCode: string;
|
|
188
|
-
} | {
|
|
189
187
|
instCode: string;
|
|
190
188
|
tagNo: string;
|
|
191
|
-
internalTagType?: never | undefined;
|
|
192
189
|
} | {
|
|
193
190
|
equipmentId: string;
|
|
194
191
|
} | {
|
|
@@ -215,7 +212,7 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
215
212
|
metaData: {
|
|
216
213
|
color: string;
|
|
217
214
|
isHiddenByUser: boolean;
|
|
218
|
-
errorStatus
|
|
215
|
+
errorStatus: string | undefined;
|
|
219
216
|
systemStatus: import("./globalSelectionStore.types").SelectionItemSystemStatus;
|
|
220
217
|
};
|
|
221
218
|
}>;
|
|
@@ -225,15 +222,14 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
225
222
|
id: {
|
|
226
223
|
workOrderId: string;
|
|
227
224
|
} | {
|
|
228
|
-
tagNo: string;
|
|
229
225
|
instCode: string;
|
|
226
|
+
tagNo: string;
|
|
227
|
+
} | {
|
|
230
228
|
internalTagType: import("..").PdmsInternalTagType;
|
|
231
229
|
plantNo: string;
|
|
232
230
|
plantCode: string;
|
|
233
|
-
} | {
|
|
234
231
|
instCode: string;
|
|
235
232
|
tagNo: string;
|
|
236
|
-
internalTagType?: never | undefined;
|
|
237
233
|
} | {
|
|
238
234
|
equipmentId: string;
|
|
239
235
|
} | {
|
|
@@ -259,7 +255,7 @@ export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Om
|
|
|
259
255
|
metaData: {
|
|
260
256
|
color: string;
|
|
261
257
|
isHiddenByUser: boolean;
|
|
262
|
-
errorStatus
|
|
258
|
+
errorStatus: string | undefined;
|
|
263
259
|
systemStatus: import("./globalSelectionStore.types").SelectionItemSystemStatus;
|
|
264
260
|
};
|
|
265
261
|
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { GlobalSelectionItemType, GlobalSelectionMetaData, GlobalSelectionTypes } from './globalSelectionStore.types';
|
|
2
|
+
/**
|
|
3
|
+
* This file defines mutable versions of selection items and lists for internal use in the global selection store.
|
|
4
|
+
* These types are used in Immer set() callbacks where the state is a mutable draft, allowing us to bypass
|
|
5
|
+
* TypeScript's readonly constraints while keeping the source types in sync.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Strips readonly from all properties of T while preserving optionality (?).
|
|
9
|
+
* Used internally by store mutation helpers inside Immer set() callbacks.
|
|
10
|
+
*/
|
|
11
|
+
type Mutable<T> = {
|
|
12
|
+
-readonly [K in keyof T]: T[K];
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Mutable version of a selection item for store-internal Immer mutations.
|
|
16
|
+
* Derived from the readonly source types — stays in sync automatically.
|
|
17
|
+
* Only used where TypeScript cannot resolve Draft<MappedType>[GenericT].
|
|
18
|
+
*/
|
|
19
|
+
type MutableSelectionItem<T extends GlobalSelectionItemType> = {
|
|
20
|
+
id: GlobalSelectionTypes.ItemId;
|
|
21
|
+
type: T;
|
|
22
|
+
data: GlobalSelectionTypes.ItemTypeToDataMap[T];
|
|
23
|
+
metaData: Mutable<GlobalSelectionMetaData>;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Mutable version of a selection list for store-internal Immer mutations.
|
|
27
|
+
* Only use inside Immer set() callbacks where state is a mutable draft.
|
|
28
|
+
*/
|
|
29
|
+
export type MutableSelectionList<T extends GlobalSelectionItemType> = {
|
|
30
|
+
items: Map<GlobalSelectionTypes.ItemIdString, MutableSelectionItem<T>>;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Casts a readonly selection list to its mutable counterpart.
|
|
34
|
+
* Only use inside Immer set() callbacks where state is a mutable draft.
|
|
35
|
+
*/
|
|
36
|
+
export declare function asMutableSelectionList<T extends GlobalSelectionItemType>(list: GlobalSelectionTypes.List<T>): MutableSelectionList<T>;
|
|
37
|
+
export {};
|
package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EquipmentData, MeasuringPointData, ResultArray, TagSummaryDto, WorkOrderData } from '@equinor/echo-search';
|
|
2
2
|
import { Brand } from '@equinor/echo-utils';
|
|
3
|
-
import type { PdmsTagId } from '../pdmsTag/pdmsTag.types';
|
|
3
|
+
import type { PdmsTagId, StidTagId } from '../pdmsTag/pdmsTag.types';
|
|
4
4
|
export declare enum GlobalSelectionItemType {
|
|
5
5
|
WorkOrder = "WorkOrder",
|
|
6
6
|
Tag = "Tag",
|
|
@@ -24,30 +24,30 @@ export type SelectionItemTypeToItemIdMap = {
|
|
|
24
24
|
[GlobalSelectionItemType.MeasuringPoint]: GlobalSelectionTypes.MeasuringPointId;
|
|
25
25
|
};
|
|
26
26
|
type GlobalSelectionList<T extends GlobalSelectionItemType> = {
|
|
27
|
-
items: Map<GlobalSelectionTypes.ItemIdString,
|
|
27
|
+
readonly items: Map<GlobalSelectionTypes.ItemIdString, GlobalSelectionGenericItem<T>>;
|
|
28
28
|
};
|
|
29
29
|
export type GlobalSelectionObject = {
|
|
30
|
-
[K in GlobalSelectionItemType]: GlobalSelectionList<K>;
|
|
30
|
+
readonly [K in GlobalSelectionItemType]: GlobalSelectionList<K>;
|
|
31
31
|
};
|
|
32
32
|
export interface GlobalSelectionStoreData {
|
|
33
|
-
lists: GlobalSelectionObject;
|
|
33
|
+
readonly lists: GlobalSelectionObject;
|
|
34
34
|
}
|
|
35
35
|
export type SelectionItemSystemStatus = 'isLoading' | 'notFound' | 'loadedSuccessfully' | 'error';
|
|
36
36
|
export interface GlobalSelectionMetaData {
|
|
37
|
-
color: string;
|
|
38
|
-
isHiddenByUser: boolean;
|
|
39
|
-
errorStatus
|
|
40
|
-
systemStatus: SelectionItemSystemStatus;
|
|
37
|
+
readonly color: string;
|
|
38
|
+
readonly isHiddenByUser: boolean;
|
|
39
|
+
readonly errorStatus: string | undefined;
|
|
40
|
+
readonly systemStatus: SelectionItemSystemStatus;
|
|
41
41
|
}
|
|
42
42
|
export interface GlobalSelectionItemIdMetadata {
|
|
43
|
-
itemId: GlobalSelectionTypes.ItemId;
|
|
44
|
-
metaData: Partial<PersistedGlobalSelectionMetaData>;
|
|
43
|
+
readonly itemId: GlobalSelectionTypes.ItemId;
|
|
44
|
+
readonly metaData: Partial<PersistedGlobalSelectionMetaData>;
|
|
45
45
|
}
|
|
46
46
|
export type GlobalSelectionGenericItem<T extends GlobalSelectionItemType> = {
|
|
47
|
-
id: GlobalSelectionTypes.ItemId;
|
|
48
|
-
type: T;
|
|
49
|
-
data: GlobalSelectionTypes.ItemTypeToDataMap[T];
|
|
50
|
-
metaData: GlobalSelectionMetaData;
|
|
47
|
+
readonly id: GlobalSelectionTypes.ItemId;
|
|
48
|
+
readonly type: T;
|
|
49
|
+
readonly data: GlobalSelectionTypes.ItemTypeToDataMap[T];
|
|
50
|
+
readonly metaData: GlobalSelectionMetaData;
|
|
51
51
|
};
|
|
52
52
|
type EquipmentGlobalSelectionList = GlobalSelectionTypes.List<GlobalSelectionItemType.Equipment>;
|
|
53
53
|
type WorkOrderGlobalSelectionList = GlobalSelectionTypes.List<GlobalSelectionItemType.WorkOrder>;
|
|
@@ -55,8 +55,8 @@ type TagGlobalSelectionList = GlobalSelectionTypes.List<GlobalSelectionItemType.
|
|
|
55
55
|
type MeasuringPointGlobalSelectionList = GlobalSelectionTypes.List<GlobalSelectionItemType.MeasuringPoint>;
|
|
56
56
|
type GlobalSelectionListUnion = WorkOrderGlobalSelectionList | TagGlobalSelectionList | EquipmentGlobalSelectionList;
|
|
57
57
|
interface ItemErrorStatusUpdates {
|
|
58
|
-
itemId: GlobalSelectionTypes.ItemId;
|
|
59
|
-
errorStatus: string;
|
|
58
|
+
readonly itemId: GlobalSelectionTypes.ItemId;
|
|
59
|
+
readonly errorStatus: string;
|
|
60
60
|
}
|
|
61
61
|
export interface GlobalSelectionStore extends GlobalSelectionStoreData {
|
|
62
62
|
addWorkOrdersToSelection: (args: {
|
|
@@ -102,51 +102,46 @@ export interface GlobalSelectionStore extends GlobalSelectionStoreData {
|
|
|
102
102
|
}
|
|
103
103
|
type GlobalSelectionActionResult = 'NoChanges' | 'ItemsAdded';
|
|
104
104
|
export type GlobalSelectionAddItemResult<DataType> = {
|
|
105
|
-
fetchResult: DataType;
|
|
106
|
-
actionResult: GlobalSelectionActionResult;
|
|
105
|
+
readonly fetchResult: DataType;
|
|
106
|
+
readonly actionResult: GlobalSelectionActionResult;
|
|
107
107
|
};
|
|
108
108
|
export type PersistedGlobalSelectionMetaData = Pick<GlobalSelectionMetaData, 'color' | 'isHiddenByUser'>;
|
|
109
109
|
export declare namespace GlobalSelectionTypes {
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
type WorkOrderId = Pick<GlobalSelectionWorkOrderDto, 'workOrderId'>;
|
|
111
|
+
type EquipmentId = Pick<GlobalSelectionEquipmentDto, 'equipmentId'>;
|
|
112
112
|
/**
|
|
113
113
|
* TagId is the identifier for tags in the global selection.
|
|
114
114
|
* - For STID tags: { tagNo, instCode }
|
|
115
115
|
* - For internal tags (PDMS): { tagNo, instCode, internalTagType, plantNo, plantCode }
|
|
116
116
|
*/
|
|
117
|
-
type
|
|
118
|
-
type
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
export type AddEquipmentsResult = GlobalSelectionAddItemResult<ResultArray<EquipmentData>[]>;
|
|
147
|
-
export type AddMeasuringPointResult = GlobalSelectionAddItemResult<ResultArray<MeasuringPointData>[]>;
|
|
148
|
-
export type ActionResult = GlobalSelectionActionResult;
|
|
149
|
-
export type ItemSystemStatus = SelectionItemSystemStatus;
|
|
150
|
-
export {};
|
|
117
|
+
type TagId = StidTagId | PdmsTagId;
|
|
118
|
+
type MeasuringPointId = Pick<GlobalSelectionMeasuringPointDto, 'measuringPointId'>;
|
|
119
|
+
type ItemId = WorkOrderId | EquipmentId | TagId | MeasuringPointId;
|
|
120
|
+
type ItemIdString = Brand<string, 'ItemIdString'>;
|
|
121
|
+
type TagDto = GlobalSelectionTagDto;
|
|
122
|
+
type WorkOrderDto = GlobalSelectionWorkOrderDto;
|
|
123
|
+
type EquipmentDto = GlobalSelectionEquipmentDto;
|
|
124
|
+
type MeasuringPointDto = GlobalSelectionMeasuringPointDto;
|
|
125
|
+
type EquipmentItem = GlobalSelectionGenericItem<GlobalSelectionItemType.Equipment>;
|
|
126
|
+
type WorkOrderItem = GlobalSelectionGenericItem<GlobalSelectionItemType.WorkOrder>;
|
|
127
|
+
type TagItem = GlobalSelectionGenericItem<GlobalSelectionItemType.Tag>;
|
|
128
|
+
type MeasuringPointItem = GlobalSelectionGenericItem<GlobalSelectionItemType.MeasuringPoint>;
|
|
129
|
+
type List<T extends GlobalSelectionItemType> = GlobalSelectionList<T>;
|
|
130
|
+
type SelectionItem = EquipmentItem | WorkOrderItem | TagItem | MeasuringPointItem;
|
|
131
|
+
type SelectionItemList = EquipmentItem[] | WorkOrderItem[] | TagItem[] | MeasuringPointItem[];
|
|
132
|
+
type GenericItem<T extends GlobalSelectionItemType> = GlobalSelectionGenericItem<T>;
|
|
133
|
+
type Store = GlobalSelectionStore;
|
|
134
|
+
type ItemErrorStatusUpdate = ItemErrorStatusUpdates;
|
|
135
|
+
type WorkOrderList = WorkOrderGlobalSelectionList;
|
|
136
|
+
type TagList = TagGlobalSelectionList;
|
|
137
|
+
type EquipmentList = EquipmentGlobalSelectionList;
|
|
138
|
+
type MeasuringPointList = MeasuringPointGlobalSelectionList;
|
|
139
|
+
type ListUnion = GlobalSelectionListUnion;
|
|
140
|
+
type ItemTypeToDataMap = GlobalSelectionItemTypeToDataMap;
|
|
141
|
+
type AddTagResult = GlobalSelectionAddItemResult<ResultArray<TagSummaryDto>[]>;
|
|
142
|
+
type AddEquipmentsResult = GlobalSelectionAddItemResult<ResultArray<EquipmentData>[]>;
|
|
143
|
+
type AddMeasuringPointResult = GlobalSelectionAddItemResult<ResultArray<MeasuringPointData>[]>;
|
|
144
|
+
type ActionResult = GlobalSelectionActionResult;
|
|
145
|
+
type ItemSystemStatus = SelectionItemSystemStatus;
|
|
151
146
|
}
|
|
152
147
|
export {};
|
package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ResultArray } from '@equinor/echo-search';
|
|
2
2
|
import { GlobalSelectionItemType, GlobalSelectionItemTypeToDataMap, GlobalSelectionTypes, SelectionItemTypeToItemIdMap } from './globalSelectionStore.types';
|
|
3
|
+
import { isEquipmentId, isMeasuringPointId, isTagId, isWorkOrderId } from './itemIdTypeGuards';
|
|
3
4
|
declare function idsEqual(itemA: GlobalSelectionTypes.ItemId, itemB: GlobalSelectionTypes.ItemId): boolean;
|
|
4
|
-
declare function isWorkOrderId(itemId: GlobalSelectionTypes.ItemId): itemId is GlobalSelectionTypes.WorkOrderId;
|
|
5
|
-
declare function isEquipmentId(itemId: GlobalSelectionTypes.ItemId): itemId is GlobalSelectionTypes.EquipmentId;
|
|
6
|
-
declare function isTagId(itemId: GlobalSelectionTypes.ItemId): itemId is GlobalSelectionTypes.TagId;
|
|
7
|
-
declare function isMeasuringPointId(itemId: GlobalSelectionTypes.ItemId): itemId is GlobalSelectionTypes.MeasuringPointId;
|
|
8
5
|
/**
|
|
9
6
|
* Overloaded function that maps an item to its corresponding ID type based on the item's properties.
|
|
10
7
|
* The return type is specific to the type of item passed to the function.
|
|
@@ -33,6 +30,15 @@ declare function mapToId(item: GlobalSelectionTypes.EquipmentId): GlobalSelectio
|
|
|
33
30
|
declare function mapToId(item: GlobalSelectionTypes.TagId): GlobalSelectionTypes.TagId;
|
|
34
31
|
declare function mapToId(item: GlobalSelectionTypes.MeasuringPointId): GlobalSelectionTypes.MeasuringPointId;
|
|
35
32
|
declare function mapToId(item: GlobalSelectionTypes.ItemId): GlobalSelectionTypes.ItemId;
|
|
33
|
+
/**
|
|
34
|
+
* Converts an item ID to a string representation for use as Map keys.
|
|
35
|
+
* This is a ONE-WAY conversion - the string cannot be converted back to the original ID.
|
|
36
|
+
*
|
|
37
|
+
* For tags: Always returns `tagNo-instCode` regardless of whether it's a STID or PDMS tag.
|
|
38
|
+
* This ensures both tag types use the same key format for O(1) Map lookups.
|
|
39
|
+
*
|
|
40
|
+
* To preserve full ID properties (e.g., PDMS properties for API saving), use `mapToId` instead.
|
|
41
|
+
*/
|
|
36
42
|
declare function itemIdToString(itemId: GlobalSelectionTypes.ItemId): GlobalSelectionTypes.ItemIdString;
|
|
37
43
|
export declare function mapIdToItemType(itemId: GlobalSelectionTypes.ItemId): GlobalSelectionItemType;
|
|
38
44
|
/**
|
|
@@ -43,8 +49,8 @@ export declare function mapIdToItemType(itemId: GlobalSelectionTypes.ItemId): Gl
|
|
|
43
49
|
* @property {Function} isEquipmentId - Checks if the passed object is a global selection EquipmentID.
|
|
44
50
|
* @property {Function} isTagId - Checks if the passed object is a global selection TagID.
|
|
45
51
|
* @property {Function} idsEqual - Compares two global selection item IDs for equality.
|
|
46
|
-
* @property {Function} mapToId - Maps an object to its global selection item ID.
|
|
47
|
-
* @property {Function} itemIdToString -
|
|
52
|
+
* @property {Function} mapToId - Maps an object to its global selection item ID, preserving all properties (including PDMS).
|
|
53
|
+
* @property {Function} itemIdToString - ONE-WAY conversion to string for Map keys. Cannot be reversed. For tags, uses only tagNo-instCode.
|
|
48
54
|
*/
|
|
49
55
|
export declare const globalSelectionUtils: Readonly<{
|
|
50
56
|
isMeasuringPointId: typeof isMeasuringPointId;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PdmsTagId } from '../pdmsTag/pdmsTag.types';
|
|
2
|
+
import type { GlobalSelectionTypes } from './globalSelectionStore.types';
|
|
3
|
+
export declare function isWorkOrderId(itemId: GlobalSelectionTypes.ItemId): itemId is GlobalSelectionTypes.WorkOrderId;
|
|
4
|
+
export declare function isEquipmentId(itemId: GlobalSelectionTypes.ItemId): itemId is GlobalSelectionTypes.EquipmentId;
|
|
5
|
+
export declare function isTagId(itemId: GlobalSelectionTypes.ItemId): itemId is GlobalSelectionTypes.TagId;
|
|
6
|
+
export declare function isMeasuringPointId(itemId: GlobalSelectionTypes.ItemId): itemId is GlobalSelectionTypes.MeasuringPointId;
|
|
7
|
+
export declare function isPdmsTagId(itemId: GlobalSelectionTypes.ItemId): itemId is PdmsTagId;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Hook for returning all lists stored in the global selection.
|
|
3
3
|
*/
|
|
4
4
|
export declare function useGlobalSelectionLists(): {
|
|
5
|
-
items: (import("..").
|
|
5
|
+
items: (import("..").GlobalSelectionGenericItem<import("..").GlobalSelectionItemType.WorkOrder> | import("..").GlobalSelectionGenericItem<import("..").GlobalSelectionItemType.Tag> | import("..").GlobalSelectionGenericItem<import("..").GlobalSelectionItemType.Equipment> | import("..").GlobalSelectionGenericItem<import("..").GlobalSelectionItemType.MeasuringPoint>)[];
|
|
6
6
|
}[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Guid } from '@equinor/echo-utils';
|
|
2
|
+
import { GlobalSelectionTypes } from '../globalSelectionStore/globalSelectionStore.types';
|
|
3
|
+
/**
|
|
4
|
+
* Hook to get the group IDs that an item belongs to in the selection tree.
|
|
5
|
+
*
|
|
6
|
+
* @param {GlobalSelectionTypes.ItemId} itemId - The item ID to check
|
|
7
|
+
* @returns {Set<Guid>} - A set of group IDs that contain the item
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* const groupIds = useItemGroupMembership(itemId);
|
|
11
|
+
* const isInGroup = groupIds.has(someGroupId);
|
|
12
|
+
*/
|
|
13
|
+
export declare function useItemGroupMembership(itemId: GlobalSelectionTypes.ItemId): Set<Guid>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Guid } from '@equinor/echo-utils';
|
|
2
|
+
import type { SelectionFeedbackType } from '../components/SelectionActionBar/selectionFeedback.types';
|
|
3
|
+
import { GlobalSelectionTypes } from '../globalSelectionStore/globalSelectionStore.types';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Hook to manage selection actions for global selection.
|
|
7
|
+
*
|
|
8
|
+
* When showPopoverUpdateDelay is true, isLoading and feedbackType are stored in legendUIStore
|
|
9
|
+
* so they survive component remounts during the stale-marker holding period.
|
|
10
|
+
* When false, they live in local React state.
|
|
11
|
+
*
|
|
12
|
+
* @param showPopoverUpdateDelay Whether to delay the popover update to avoid flickering. Temporary hack to be resolved in #397869
|
|
13
|
+
* @returns Object containing loading state, feedback type, and functions to add/remove items from selection.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useSelectionAction(showPopoverUpdateDelay?: boolean): {
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
feedbackType: SelectionFeedbackType | null;
|
|
18
|
+
addToSelection: (groupId: Guid, itemId: GlobalSelectionTypes.ItemId) => Promise<void>;
|
|
19
|
+
removeFromSelection: (groupId: Guid, itemId: GlobalSelectionTypes.ItemId) => void;
|
|
20
|
+
changeColor: (itemId: GlobalSelectionTypes.ItemId, color: string) => void;
|
|
21
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * from './globalSelectionStore/globalSelectionStore.types';
|
|
2
|
-
export * from './pdmsTag/pdmsTag.types';
|
|
3
2
|
export * from './selectionMenu/selectionTreeStore/selectionTree.api.types';
|
|
4
3
|
export * from './selectionMenu/selectionTreeStore/selectionTree.store.types';
|
|
4
|
+
export { isPdmsInternalTagType, PDMS_INTERNAL_TAG_TYPES } from './pdmsTag/pdmsTag.types';
|
|
5
|
+
export type { PdmsInternalTagType, PdmsTagId, PdmsTagSummaryDto, StidTagId } from './pdmsTag/pdmsTag.types';
|
|
5
6
|
export { useAreAllItemsVisible } from './hooks/useAreAllItemsVisible';
|
|
6
7
|
export { useGlobalSelectionByItemId } from './hooks/useGlobalSelectionByItemId';
|
|
7
8
|
export { useGlobalSelectionItems } from './hooks/useGlobalSelectionItems';
|
|
@@ -11,6 +12,7 @@ export { useGlobalSelectionLists } from './hooks/useGlobalSelectionLists';
|
|
|
11
12
|
export { useGlobalSelectionTags } from './hooks/useGlobalSelectionTags';
|
|
12
13
|
export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';
|
|
13
14
|
export { useIsInGlobalSelection } from './hooks/useIsInGlobalSelection';
|
|
15
|
+
export { useItemGroupMembership } from './hooks/useItemGroupMembership';
|
|
14
16
|
export { useSelectionCategoriesByGroupId } from './hooks/useSelectionCategoriesByGroupId';
|
|
15
17
|
export { useCurrentSelectionId } from './selectionMenu/hooks/useCurrentSelectionId';
|
|
16
18
|
export { useFetchSelectionHistory } from './selectionMenu/hooks/useFetchSelectionHistory';
|
|
@@ -27,4 +29,6 @@ export { invalidateHistorySelectionQuery } from './selectionMenu/invalidateHisto
|
|
|
27
29
|
export { saveEquipmentAsNewSelectionToApi } from './selectionMenu/selectionTreeStore/api/selectionTree.equipment';
|
|
28
30
|
export { SelectionColorConflictDialog } from './selectionMenu/selectionTreeStore/colorConflictHandling/SelectionColorConflictDialog';
|
|
29
31
|
export { simulatedSelectionTreeApiError } from './selectionMenu/selectionTreeStore/persist/devOnlySimulateOffline';
|
|
30
|
-
export {
|
|
32
|
+
export { isPdmsTagId } from './globalSelectionStore/itemIdTypeGuards';
|
|
33
|
+
export { isPdmsTagInSelection } from './pdmsTag/pdmsTag.logic';
|
|
34
|
+
export { createPdmsTagSummaryDto, isPdmsTagSummaryDto } from './pdmsTag/pdmsTag.utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isPdmsTagInSelection(tagNo: string, instCode: string): boolean;
|
|
@@ -2,11 +2,20 @@ import type { TagSummaryDto } from '@equinor/echo-search';
|
|
|
2
2
|
export declare const PDMS_INTERNAL_TAG_TYPES: readonly ["PdmsTag", "PdmsPart"];
|
|
3
3
|
export type PdmsInternalTagType = (typeof PDMS_INTERNAL_TAG_TYPES)[number];
|
|
4
4
|
export declare const isPdmsInternalTagType: (value: string) => value is PdmsInternalTagType;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
/**
|
|
6
|
+
* StidTagId contains only tagNo and instCode.
|
|
7
|
+
*/
|
|
8
|
+
export type StidTagId = Pick<TagSummaryDto, 'tagNo' | 'instCode'>;
|
|
9
|
+
/**
|
|
10
|
+
* Identifies a PDMS tag. Extends the standard STID tag ID (tagNo + instCode) with additional PDMS-specific properties.
|
|
11
|
+
* @remarks STID tags only have `tagNo` and `instCode`. PDMS tags add `internalTagType`, `plantNo`, and `plantCode`.
|
|
12
|
+
*/
|
|
13
|
+
export interface PdmsTagId extends StidTagId {
|
|
14
|
+
/** @remarks Discriminator between PDMS tag types: 'PdmsTag' for tags not in STID, 'PdmsPart' for parts without a tag. */
|
|
8
15
|
readonly internalTagType: PdmsInternalTagType;
|
|
16
|
+
/** @remarks Also known as sapId. */
|
|
9
17
|
readonly plantNo: string;
|
|
18
|
+
/** @remarks Usually same as instCode, but for some plants it replaces last instCode character with A, B, C, etc. */
|
|
10
19
|
readonly plantCode: string;
|
|
11
20
|
}
|
|
12
21
|
export interface PdmsTagSummaryDto extends TagSummaryDto, PdmsTagId {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { type TagSummaryDto } from '@equinor/echo-search';
|
|
2
|
-
import type { GlobalSelectionTypes } from '../globalSelectionStore/globalSelectionStore.types';
|
|
3
2
|
import type { PdmsTagId, PdmsTagSummaryDto } from './pdmsTag.types';
|
|
4
|
-
export declare function isPdmsTagId(itemId: GlobalSelectionTypes.ItemId): itemId is PdmsTagId;
|
|
5
3
|
export declare function isPdmsTagSummaryDto(dto: TagSummaryDto): dto is PdmsTagSummaryDto;
|
|
6
4
|
export declare function createPdmsTagSummaryDto(pdmsTagId: PdmsTagId): PdmsTagSummaryDto;
|
package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.d.ts
CHANGED
|
@@ -89,15 +89,14 @@ export declare const useSelectionTreeStore: import("zustand").UseBoundStore<Omit
|
|
|
89
89
|
id: {
|
|
90
90
|
workOrderId: string;
|
|
91
91
|
} | {
|
|
92
|
-
tagNo: string;
|
|
93
92
|
instCode: string;
|
|
93
|
+
tagNo: string;
|
|
94
|
+
} | {
|
|
94
95
|
internalTagType: import("../..").PdmsInternalTagType;
|
|
95
96
|
plantNo: string;
|
|
96
97
|
plantCode: string;
|
|
97
|
-
} | {
|
|
98
98
|
instCode: string;
|
|
99
99
|
tagNo: string;
|
|
100
|
-
internalTagType?: never | undefined;
|
|
101
100
|
} | {
|
|
102
101
|
equipmentId: string;
|
|
103
102
|
} | {
|
|
@@ -104,7 +104,7 @@ export declare function isSelectionEmpty(groups: SelectionTreeTypes.Group[]): bo
|
|
|
104
104
|
* @returns {void}
|
|
105
105
|
*/
|
|
106
106
|
export declare function removeStaleItemsFromGlobalSelection(groups: SelectionTreeTypes.Group[], itemIds: GlobalSelectionTypes.ItemId[]): void;
|
|
107
|
-
export declare function getItemsByIdsFromGlobalSelectionStore(itemIds: GlobalSelectionTypes.ItemId[]): GlobalSelectionTypes.
|
|
107
|
+
export declare function getItemsByIdsFromGlobalSelectionStore(itemIds: GlobalSelectionTypes.ItemId[]): GlobalSelectionTypes.SelectionItem[];
|
|
108
108
|
/**
|
|
109
109
|
* Returns an array of selection colors sorted by their frequency for the specified item IDs within a group.
|
|
110
110
|
*
|