@equinor/echo-framework 0.20.20 → 0.20.22
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 +1 -14
- package/package.json +1 -1
- package/src/index.d.ts +3 -4
- package/src/lib/feature/globalSelection/components/SelectionActionBar.d.ts +7 -0
- package/src/lib/feature/globalSelection/globalSelection.api.d.ts +82 -97
- package/src/lib/feature/globalSelection/globalSelectionStore/globalSelectionStore.utils.d.ts +1 -1
- package/src/lib/feature/globalSelection/hooks/useIsInGlobalSelection.d.ts +8 -0
- package/src/lib/feature/globalSelection/hooks/useSelectionCategoriesByGroupId.d.ts +11 -0
- package/src/lib/feature/globalSelection/index.d.ts +4 -1
- package/src/lib/feature/globalSelection/selectionMenu/hooks/{useAllItemsHiddenByUser.d.ts → useIsAllIGlobalSelectionItemsHidden.d.ts} +9 -2
- package/src/lib/feature/globalSelection/selectionMenu/hooks/useSelectionMenuGroups.d.ts +7 -0
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.d.ts +37 -0
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.types.d.ts +84 -0
- package/src/lib/feature/globalSelection/selectionMenu/selectionTreeStore/selectionTree.store.utils.d.ts +53 -0
- package/src/lib/feature/legacyLegend/legend.d.ts +1 -1
- package/src/lib/feature/globalSelection/selectionMenu/hooks/useSelectionMenuLists.d.ts +0 -7
- package/src/lib/feature/globalSelection/selectionMenu/selectionMenuStore/selectionMenu.store.d.ts +0 -43
- package/src/lib/feature/globalSelection/selectionMenu/selectionMenuStore/selectionMenu.store.types.d.ts +0 -52
- package/src/lib/feature/globalSelection/selectionMenu/selectionMenuStore/selectionMenu.store.utils.d.ts +0 -56
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { GlobalSelectionTypes } from '../../globalSelectionStore/globalSelectionStore.types';
|
|
2
|
-
import { SelectionMenuList } from './selectionMenu.store.types';
|
|
3
|
-
/**
|
|
4
|
-
* Finds a selection list by its ID from a given list of selection menu lists.
|
|
5
|
-
* If the list is not found at the top level, it searches within the sublists of each top-level list.
|
|
6
|
-
*
|
|
7
|
-
* @param args - The arguments object.
|
|
8
|
-
* @param {string} args.listId - The ID of the selection list to find.
|
|
9
|
-
* @param {SelectionMenuList[]} args.lists - An optional array of selection menu lists to search within.
|
|
10
|
-
* If not provided, the function will use the lists from the selection menu store state.
|
|
11
|
-
* If you want to alter the store state, you should provide the lists as an argument.
|
|
12
|
-
* @returns {SelectionMenuList | undefined} The selection menu list with the specified ID, or `undefined` if not found.
|
|
13
|
-
*/
|
|
14
|
-
export declare function findSelectionListById(args: {
|
|
15
|
-
listId: string;
|
|
16
|
-
lists: SelectionMenuList[];
|
|
17
|
-
}): SelectionMenuList | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Checks if a given item ID is present in a specified list.
|
|
20
|
-
*
|
|
21
|
-
* @param args - An object containing the item ID and the list ID.
|
|
22
|
-
* @param {GlobalSelectionTypes.ItemId} args.itemId - The ID of the item to check for.
|
|
23
|
-
* @param {string} args.listId - The ID of the list to search within.
|
|
24
|
-
* @param {SelectionMenuList[]} args.lists - The selection menu lists where you would like to search for the given item.
|
|
25
|
-
* @returns {boolean} A boolean indicating whether the item ID is found in the list.
|
|
26
|
-
*/
|
|
27
|
-
export declare function isItemIdInList(args: {
|
|
28
|
-
itemId: GlobalSelectionTypes.ItemId;
|
|
29
|
-
listId: string;
|
|
30
|
-
lists: SelectionMenuList[];
|
|
31
|
-
}): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Checks if a given item ID is present in the selection lists.
|
|
34
|
-
*
|
|
35
|
-
* @param args - An object containing the item ID to check.
|
|
36
|
-
* @param {GlobalSelectionTypes.ItemId} args.itemId - The item ID to check for presence in the selection lists.
|
|
37
|
-
* @param {SelectionMenuList[]} args.lists - The selection menu lists where you would like to search for the given item.
|
|
38
|
-
* @returns {boolean} A boolean indicating whether the item ID is present in the selection lists.
|
|
39
|
-
*/
|
|
40
|
-
export declare function isItemIdInTheSelection(args: {
|
|
41
|
-
itemId?: GlobalSelectionTypes.ItemId;
|
|
42
|
-
lists: SelectionMenuList[];
|
|
43
|
-
}): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Retrieves an array of itemIds that were not found in the selection menu.
|
|
46
|
-
*
|
|
47
|
-
* @param {Object} args - The arguments containing the list and itemIds to check.
|
|
48
|
-
* @param {SelectionMenuList[]} args.list - The list of SelectionMenuList objects to search through.
|
|
49
|
-
* @param {GlobalSelectionTypes.ItemId[]} args.itemIds - An array of ItemId objects to check for presence in the list.
|
|
50
|
-
* @returns {string[]} An array of itemId strings that correspond to counts of 0 in the selection menu.
|
|
51
|
-
* itemIds object values are concatenated via '-' char
|
|
52
|
-
*/
|
|
53
|
-
export declare function itemsNotFoundInSelectionMenu(args: {
|
|
54
|
-
lists: SelectionMenuList[];
|
|
55
|
-
itemIds: GlobalSelectionTypes.ItemId[];
|
|
56
|
-
}): string[];
|