@equinor/echo-framework 0.19.1-beta-0 → 0.19.2
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/{f4c85313e79b1662.svg → 1bd97dd2170d0f64.svg} +850 -850
- package/{063009f06499d102.svg → 47deeba42768c5d1.svg} +8 -8
- package/README.md +28 -28
- package/index.cjs.d.ts +2 -2
- package/index.cjs.js +1 -1
- package/package.json +2 -2
- package/src/index.d.ts +7 -1
- package/src/lib/components/index.d.ts +1 -3
- package/src/lib/components/openIn3d/OpenIn3dDialogs.d.ts +14 -0
- package/src/lib/components/openIn3d/SelectedItemsMenu.d.ts +3 -1
- package/src/lib/components/openIn3d/index.d.ts +1 -1
- package/src/lib/components/openIn3d/openIn3dMenu.d.ts +1 -0
- package/src/lib/components/workOrderListItem/WorkOrderListItem.d.ts +14 -0
- package/src/lib/components/workOrderListItem/index.d.ts +1 -0
- package/src/lib/feature/equipment/components/equipmentItemHeader/NavigateToSapDialog.d.ts +8 -0
- package/src/lib/feature/equipment/components/equipmentItemHeader/equipmentItemSubHeader.d.ts +8 -0
- package/src/lib/feature/equipment/components/equipmentItemHeader/linkToSapEquipment.d.ts +7 -0
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.d.ts +18 -0
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types.d.ts +86 -0
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts +3 -0
- package/src/lib/feature/globalSelection/hooks/useGlobalSelectionLists.d.ts +14 -0
- package/src/lib/feature/globalSelection/hooks/useGlobalSelectionWorkOrders.d.ts +6 -0
- package/src/lib/feature/globalSelection/index.d.ts +5 -0
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/labelledImageList.d.ts +2 -1
- package/src/lib/feature/measuringPoint/components/measuringPointDetails/mediaItemView/MeasuringPointImageViewFooter.d.ts +1 -1
- package/src/lib/feature/measuringPoint/types/documentRelationships.d.ts +2 -4
- package/src/lib/services/activeSelectionStore/activeSelectionData.hooks.d.ts +0 -10
- package/src/lib/services/activeSelectionStore/activeSelectionStore.d.ts +0 -27
- package/src/lib/services/activeSelectionStore/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/echo-framework",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
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",
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
},
|
|
23
23
|
"main": "./index.cjs.js",
|
|
24
24
|
"type": "commonjs"
|
|
25
|
-
}
|
|
25
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -4,11 +4,18 @@ import { getLegendStatusColor } from './lib/feature/legend/utils/legendUtils';
|
|
|
4
4
|
import './lib/globalStyles.css';
|
|
5
5
|
import { getPlantsInfo, getTagDetails } from './lib/services/api';
|
|
6
6
|
export * from './lib/components';
|
|
7
|
+
export { OpenIn3dDialogs } from './lib/components/openIn3d/OpenIn3dDialogs';
|
|
8
|
+
export { OpenIn3dWarningDialog } from './lib/components/openIn3d/OpenIn3dWarningDialog';
|
|
9
|
+
export { PlantNoSelectionDialog } from './lib/components/openIn3d/PlantNoSelectionDialog';
|
|
10
|
+
export { SelectedItemsMenu } from './lib/components/openIn3d/SelectedItemsMenu';
|
|
7
11
|
export { PrepviewButton } from './lib/components/prepviewButton/prepviewButton';
|
|
8
12
|
export { RequestProCoSysAccess } from './lib/components/requestAccess/RequestProCoSysAccess';
|
|
9
13
|
export { RequestSapAccess } from './lib/components/requestAccess/RequestSapAccess';
|
|
14
|
+
export { WorkOrderListItem } from './lib/components/workOrderListItem';
|
|
10
15
|
export * from './lib/coreApplication';
|
|
11
16
|
export * from './lib/feature/equipment/index';
|
|
17
|
+
export * from './lib/feature/globalSelection';
|
|
18
|
+
export type { GlobalSelectionItem, OptimizedWorkOrderDto } from './lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.types';
|
|
12
19
|
export * from './lib/feature/legend/index';
|
|
13
20
|
export { getLatestMeasurementDate, sortMeasuringPointsByMeasurementDate } from './lib/feature/measuringPoint/components/measuringPoints.utils';
|
|
14
21
|
export * from './lib/feature/measuringPoint/index';
|
|
@@ -18,7 +25,6 @@ export { useIsCompactLayout } from './lib/hooks/useIsCompactLayout';
|
|
|
18
25
|
export { useIsFullScreenModeEnabled } from './lib/hooks/useIsFullScreenModeEnabled';
|
|
19
26
|
export { useScreenOrientation } from './lib/hooks/useScreenOrientation';
|
|
20
27
|
export { useScreenValues } from './lib/hooks/useScreenValues';
|
|
21
|
-
export * from './lib/services/activeSelectionStore';
|
|
22
28
|
export { getPlantsCachedOrApi, getPlantsFromApi } from './lib/services/api/api-plants';
|
|
23
29
|
export { RegisteredComponentName } from './lib/services/componentRegistry/componentRegistry';
|
|
24
30
|
export * from './lib/services/eventHubActions';
|
|
@@ -12,9 +12,6 @@ export * from './labelledValueGrid';
|
|
|
12
12
|
export * from './lazyLoading';
|
|
13
13
|
export * from './listItemAdditionalInfoRow/listItemAdditionalInfoRow';
|
|
14
14
|
export * from './mediator';
|
|
15
|
-
export { OpenIn3dWarningDialog } from './openIn3d/OpenIn3dWarningDialog';
|
|
16
|
-
export { PlantNoSelectionDialog } from './openIn3d/PlantNoSelectionDialog';
|
|
17
|
-
export { SelectedItemsMenu } from './openIn3d/SelectedItemsMenu';
|
|
18
15
|
export * from './pageMenu';
|
|
19
16
|
export * from './panel';
|
|
20
17
|
export * from './panelButton';
|
|
@@ -28,3 +25,4 @@ export * from './searchMenu';
|
|
|
28
25
|
export * from './spinner/spinner';
|
|
29
26
|
export * from './tagNumber';
|
|
30
27
|
export * from './toaster';
|
|
28
|
+
export { WorkOrderListItem } from './workOrderListItem';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
interface OpenIn3dDialogsProps {
|
|
3
|
+
isOpenIn3dWarningDialogOpen: boolean;
|
|
4
|
+
isSelectPlantNoDialogOpen: boolean;
|
|
5
|
+
setIsOpenIn3dWarningDialogOpen: Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
+
setIsSelectPlantNoDialogOpen: Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
onOKButtonClicked: () => void;
|
|
8
|
+
uniquePlantNos: string[];
|
|
9
|
+
tagNoCounts: Record<string, number>;
|
|
10
|
+
selectedPlantNo: string | undefined;
|
|
11
|
+
setSelectedPlantNo: Dispatch<SetStateAction<string | undefined>>;
|
|
12
|
+
}
|
|
13
|
+
export declare const OpenIn3dDialogs: React.FC<OpenIn3dDialogsProps>;
|
|
14
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ObjectsToSendTo3dTypes } from '../../utils';
|
|
3
3
|
interface SelectedItemsProps {
|
|
4
|
-
|
|
4
|
+
numberOfSelectedItems: number;
|
|
5
5
|
onOpenIn3dButtonClick: (ObjectsToSendTo3d: ObjectsToSendTo3dTypes) => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
6
7
|
}
|
|
7
8
|
export declare const SelectedItemsMenu: React.FC<SelectedItemsProps>;
|
|
9
|
+
export declare function getIsGlobalSelectionEnabled(): boolean;
|
|
8
10
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
export { OpenIn3dDialogs } from './OpenIn3dDialogs';
|
|
1
2
|
export { OpenIn3dWarningDialog } from './OpenIn3dWarningDialog';
|
|
2
3
|
export { PlantNoSelectionDialog } from './PlantNoSelectionDialog';
|
|
3
4
|
export { SelectedItemsMenu } from './SelectedItemsMenu';
|
|
4
|
-
export { OpenIn3dMenu } from './openIn3dMenu';
|
|
@@ -2,6 +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
6
|
}
|
|
6
7
|
export declare const OpenIn3dMenu: React.FC<OpenIn3dMenuProps>;
|
|
7
8
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColorMap, WorkOrderDateType, WorkOrderItem } from '@equinor/echo-components';
|
|
3
|
+
export interface WorkOrderListItemProps {
|
|
4
|
+
workOrder: WorkOrderItem;
|
|
5
|
+
onCardClick?: () => void;
|
|
6
|
+
itemAction?: React.ReactNode;
|
|
7
|
+
isHeader?: boolean;
|
|
8
|
+
colorMap?: ColorMap;
|
|
9
|
+
iconName?: string;
|
|
10
|
+
workOrderDateType?: WorkOrderDateType;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
declare function WorkOrderListItem(props: WorkOrderListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { WorkOrderListItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WorkOrderListItem';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface NavigateToSapDialogProps {
|
|
3
|
+
isDialogOpen: boolean;
|
|
4
|
+
setIsDialogOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
urlToSap: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const NavigateToSapDialog: React.FC<NavigateToSapDialogProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GlobalSelectionStore } from './globalSelectionStore.types';
|
|
2
|
+
export declare const useGlobalSelectionStore: import("zustand").UseBoundStore<Omit<Omit<Omit<import("zustand").StoreApi<GlobalSelectionStore>, "setState"> & {
|
|
3
|
+
setState<A extends string | {
|
|
4
|
+
type: string;
|
|
5
|
+
}>(partial: GlobalSelectionStore | Partial<GlobalSelectionStore> | ((state: GlobalSelectionStore) => GlobalSelectionStore | Partial<GlobalSelectionStore>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
6
|
+
}, "subscribe"> & {
|
|
7
|
+
subscribe: {
|
|
8
|
+
(listener: (selectedState: GlobalSelectionStore, previousSelectedState: GlobalSelectionStore) => void): () => void;
|
|
9
|
+
<U>(selector: (state: GlobalSelectionStore) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
10
|
+
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
11
|
+
fireImmediately?: boolean | undefined;
|
|
12
|
+
} | undefined): () => void;
|
|
13
|
+
};
|
|
14
|
+
}, "setState"> & {
|
|
15
|
+
setState(nextStateOrUpdater: GlobalSelectionStore | Partial<GlobalSelectionStore> | ((state: import("immer").WritableDraft<GlobalSelectionStore>) => void), shouldReplace?: boolean | undefined, action?: string | {
|
|
16
|
+
type: string;
|
|
17
|
+
} | undefined): void;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { TagSummaryDto } from '@equinor/echo-search';
|
|
2
|
+
import { Equipment } from '../../equipment';
|
|
3
|
+
export declare enum GlobalSelectionItemType {
|
|
4
|
+
WorkOrder = "WorkOrder",
|
|
5
|
+
Tag = "Tag",
|
|
6
|
+
Equipment = "Equipment"
|
|
7
|
+
}
|
|
8
|
+
interface ItemTypeToDataMap {
|
|
9
|
+
WorkOrder: OptimizedWorkOrderDto;
|
|
10
|
+
Tag: TagSummaryDto;
|
|
11
|
+
Equipment: Equipment;
|
|
12
|
+
}
|
|
13
|
+
type GlobalSelectionList<T extends GlobalSelectionItemType> = {
|
|
14
|
+
label: string;
|
|
15
|
+
key: string;
|
|
16
|
+
type: T;
|
|
17
|
+
items: GlobalSelectionGenericItem<T>[];
|
|
18
|
+
};
|
|
19
|
+
export type GlobalSelectionGenericItem<T extends GlobalSelectionItemType> = {
|
|
20
|
+
id: string;
|
|
21
|
+
type: T;
|
|
22
|
+
data: ItemTypeToDataMap[T];
|
|
23
|
+
metaData: {
|
|
24
|
+
color: string;
|
|
25
|
+
isHiddenByUser: boolean;
|
|
26
|
+
errorStatuses: GlobalSelectionItemErrorStatuses[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type EquipmentGlobalSelectionListItem = GlobalSelectionGenericItem<GlobalSelectionItemType.Equipment>;
|
|
30
|
+
export type WorkOrderGlobalSelectionListItem = GlobalSelectionGenericItem<GlobalSelectionItemType.WorkOrder>;
|
|
31
|
+
export type TagGlobalSelectionListItem = GlobalSelectionGenericItem<GlobalSelectionItemType.Tag>;
|
|
32
|
+
export type GlobalSelectionItem = WorkOrderGlobalSelectionListItem | TagGlobalSelectionListItem | EquipmentGlobalSelectionListItem;
|
|
33
|
+
type EquipmentGlobalSelectionList = GlobalSelectionList<GlobalSelectionItemType.Equipment>;
|
|
34
|
+
export type WorkOrderGlobalSelectionList = GlobalSelectionList<GlobalSelectionItemType.WorkOrder>;
|
|
35
|
+
type TagGlobalSelectionList = GlobalSelectionList<GlobalSelectionItemType.Tag>;
|
|
36
|
+
type GlobalSelectionListUnion = WorkOrderGlobalSelectionList | TagGlobalSelectionList | EquipmentGlobalSelectionList;
|
|
37
|
+
export declare enum GlobalSelectionItemErrorStatuses {
|
|
38
|
+
NotFoundInActiveEchoModule = "NotFoundInActiveEchoModule",
|
|
39
|
+
UnableToDisplay = "UnableToDisplay"
|
|
40
|
+
}
|
|
41
|
+
export interface GlobalSelectionStore {
|
|
42
|
+
lists: GlobalSelectionListUnion[];
|
|
43
|
+
addWorkOrderToSelection: (args: {
|
|
44
|
+
workOrder: OptimizedWorkOrderDto;
|
|
45
|
+
}) => void;
|
|
46
|
+
replaceWorkOrderSelection: (args: {
|
|
47
|
+
workOrders: OptimizedWorkOrderDto[];
|
|
48
|
+
}) => void;
|
|
49
|
+
setNotFoundItems: (args: {
|
|
50
|
+
itemIds: string[];
|
|
51
|
+
}) => void;
|
|
52
|
+
resetItemNotFoundStates: () => void;
|
|
53
|
+
resetState: () => void;
|
|
54
|
+
}
|
|
55
|
+
export type OptimizedWorkOrderDto = {
|
|
56
|
+
workOrderId: string;
|
|
57
|
+
tagId?: string;
|
|
58
|
+
tagPlantId: string;
|
|
59
|
+
workCenterId?: string;
|
|
60
|
+
workCenterPlantId: string;
|
|
61
|
+
plannerGroupId: string;
|
|
62
|
+
workOrderTypeId: string;
|
|
63
|
+
revisionCodeId: string;
|
|
64
|
+
systemId?: string;
|
|
65
|
+
isOpen: boolean;
|
|
66
|
+
hasStatusTECO: boolean;
|
|
67
|
+
hasStatusRDOP: boolean;
|
|
68
|
+
hasStatusCANC: boolean;
|
|
69
|
+
hasStatusSTRT: boolean;
|
|
70
|
+
hasStatusRDEX: boolean;
|
|
71
|
+
hasStatusPREP: boolean;
|
|
72
|
+
hasStatusPRCO: boolean;
|
|
73
|
+
title: string;
|
|
74
|
+
plantId: string;
|
|
75
|
+
planningPlantId: string;
|
|
76
|
+
sortField: string;
|
|
77
|
+
locationId: string;
|
|
78
|
+
revisionId: string;
|
|
79
|
+
basicStartDateTime?: string | null;
|
|
80
|
+
basicEndDateTime?: string | null;
|
|
81
|
+
createdDateTime?: string | null;
|
|
82
|
+
_links: {
|
|
83
|
+
related: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { GlobalSelectionItem } from './globalSelectionStore.types';
|
|
2
|
+
export declare function isGlobalSelectionItemNotFoundInActiveEchoModule(item: GlobalSelectionItem): boolean;
|
|
3
|
+
export declare function isGlobalSelectionItemNotAbleToDisplay(item: GlobalSelectionItem): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook for returning all lists stored in the global selection.
|
|
3
|
+
*/
|
|
4
|
+
export declare function useGlobalSelectionLists(): (import("..").WorkOrderGlobalSelectionList | {
|
|
5
|
+
label: string;
|
|
6
|
+
key: string;
|
|
7
|
+
type: import("..").GlobalSelectionItemType.Tag;
|
|
8
|
+
items: import("..").GlobalSelectionGenericItem<import("..").GlobalSelectionItemType.Tag>[];
|
|
9
|
+
} | {
|
|
10
|
+
label: string;
|
|
11
|
+
key: string;
|
|
12
|
+
type: import("..").GlobalSelectionItemType.Equipment;
|
|
13
|
+
items: import("..").GlobalSelectionGenericItem<import("..").GlobalSelectionItemType.Equipment>[];
|
|
14
|
+
})[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WorkOrderGlobalSelectionListItem } from '../globalSelectionStore/globalSelectionStore.types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns with the stored Work Orders in the global selection
|
|
4
|
+
* @returns {Partial<WorkOrderDto>[]} Array of Work Orders
|
|
5
|
+
*/
|
|
6
|
+
export declare function useGlobalSelectionWorkOrders(): WorkOrderGlobalSelectionListItem[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { useGlobalSelectionStore } from './globalSelectionStore/globalSelectionStore';
|
|
2
|
+
export * from './globalSelectionStore/globalSelectionStore.types';
|
|
3
|
+
export * from './globalSelectionStore/globalSelectionStore.utils';
|
|
4
|
+
export { useGlobalSelectionLists } from './hooks/useGlobalSelectionLists';
|
|
5
|
+
export { useGlobalSelectionWorkOrders } from './hooks/useGlobalSelectionWorkOrders';
|
package/src/lib/feature/measuringPoint/components/measuringPointDetails/labelledImageList.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import { DocumentRelationships } from '../../types/documentRelationships';
|
|
|
2
2
|
interface LabelledImageListProps {
|
|
3
3
|
documentId: string;
|
|
4
4
|
createdDateTime: string;
|
|
5
|
+
reportedCondition: string;
|
|
5
6
|
imageSrc: string;
|
|
6
7
|
documentRelationships: DocumentRelationships[];
|
|
7
8
|
imageIndex: number;
|
|
8
9
|
}
|
|
9
|
-
export declare const LabelledImageList: ({ documentId, createdDateTime, imageSrc, documentRelationships, imageIndex }: LabelledImageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const LabelledImageList: ({ documentId, createdDateTime, reportedCondition, imageSrc, documentRelationships, imageIndex }: LabelledImageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -7,12 +7,10 @@ interface DocumentRelationshipsAttachment {
|
|
|
7
7
|
readonly attachmentId: string;
|
|
8
8
|
readonly attachmentImageUri?: string;
|
|
9
9
|
readonly createdDateTime?: string;
|
|
10
|
-
readonly
|
|
10
|
+
readonly quantitativeReading: string;
|
|
11
|
+
readonly quantitativeReadingUnitId: string;
|
|
11
12
|
}
|
|
12
13
|
interface DocumentRelationshipsCharacteristics {
|
|
13
14
|
readonly valueId?: string;
|
|
14
15
|
}
|
|
15
|
-
interface DocumentRelationshipsLinks {
|
|
16
|
-
readonly enclosure?: string;
|
|
17
|
-
}
|
|
18
16
|
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TagSummaryDto } from '@equinor/echo-search';
|
|
2
|
-
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
-
/**
|
|
4
|
-
* Get the tag summaries for those tags, which are part of the active selection.
|
|
5
|
-
* Works with deep linking: if the selected instCode is different then the instCode in the URL
|
|
6
|
-
* it will fetch the tag summaries from STID API.
|
|
7
|
-
* Otherwise it will get it from echo-search.
|
|
8
|
-
* @returns {UseQueryResult<TagSummaryDto[]>}
|
|
9
|
-
*/
|
|
10
|
-
export declare function useActiveSelectedTagSummaries(): UseQueryResult<TagSummaryDto[]>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as zustand from 'zustand';
|
|
2
|
-
export declare const useActiveSelectionStore: zustand.UseBoundStore<Omit<zustand.StoreApi<ActiveSelectionState>, "subscribe"> & {
|
|
3
|
-
subscribe: {
|
|
4
|
-
(listener: (selectedState: ActiveSelectionState, previousSelectedState: ActiveSelectionState) => void): () => void;
|
|
5
|
-
<U>(selector: (state: ActiveSelectionState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
6
|
-
equalityFn?: ((a: U, b: U) => boolean) | undefined;
|
|
7
|
-
fireImmediately?: boolean | undefined;
|
|
8
|
-
} | undefined): () => void;
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
11
|
-
export type ActiveSelectionItemType = 'tagNos' | 'workOrderIds' | 'measuringPointIds';
|
|
12
|
-
export type ActiveSelectionItems = {
|
|
13
|
-
[key in ActiveSelectionItemType]: string[];
|
|
14
|
-
};
|
|
15
|
-
export interface ActiveSelectionState {
|
|
16
|
-
items: ActiveSelectionItems;
|
|
17
|
-
userRequestAction: string | null;
|
|
18
|
-
actions: ActiveSelectionActions;
|
|
19
|
-
}
|
|
20
|
-
interface ActiveSelectionActions {
|
|
21
|
-
addToSelectionByType: (itemType: ActiveSelectionItemType, items: string[]) => void;
|
|
22
|
-
removeFromSelectionByType: (itemType: ActiveSelectionItemType, items: string[]) => void;
|
|
23
|
-
clearSelectionByType: (itemType: ActiveSelectionItemType) => void;
|
|
24
|
-
clearSelectionForAllTypes: () => void;
|
|
25
|
-
replaceSelection: (items: ActiveSelectionItems, action?: string) => void;
|
|
26
|
-
}
|
|
27
|
-
export {};
|