@equinor/echo-framework 0.21.1-beta-2 → 0.21.1-beta-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/package.json
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { GlobalSelectionTypes } from './globalSelectionStore/globalSelectionStore.types';
|
|
2
|
-
import {
|
|
2
|
+
import { AddTagsArgs } from './selectionMenu/selectionTreeStore/actions/addTag.action.types';
|
|
3
|
+
import { AddTagsReturnType, GlobalSelectionCategoryId, SelectionTreeTypes } from './selectionMenu/selectionTreeStore/selectionTree.store.types';
|
|
4
|
+
type AddTagsType = <T extends boolean | undefined = undefined>(args: AddTagsArgs & {
|
|
5
|
+
getActionResult?: T;
|
|
6
|
+
}) => Promise<AddTagsReturnType<T>>;
|
|
3
7
|
export declare const globalSelectionApi: Readonly<{
|
|
4
8
|
/**
|
|
5
9
|
* @deprecated Use globalSelectionApi.remove.itemsById() instead
|
|
@@ -64,9 +68,7 @@ export declare const globalSelectionApi: Readonly<{
|
|
|
64
68
|
* - 'ItemsUpdated': Existing items were replaced with new tags.
|
|
65
69
|
* - 'ItemsAdded': New tags were added to the existing items.
|
|
66
70
|
*/
|
|
67
|
-
tags:
|
|
68
|
-
getActionResult?: T;
|
|
69
|
-
}) => Promise<import("./selectionMenu/selectionTreeStore/selectionTree.store.types").AddTagsReturnType<T>>;
|
|
71
|
+
tags: AddTagsType;
|
|
70
72
|
/**
|
|
71
73
|
* Adds work orders to a specified list in the selection menu panel.
|
|
72
74
|
*
|
|
@@ -87,16 +89,7 @@ export declare const globalSelectionApi: Readonly<{
|
|
|
87
89
|
*
|
|
88
90
|
*/
|
|
89
91
|
addItems: (args: {
|
|
90
|
-
groupId
|
|
91
|
-
* Removes a group or category by ID from the selection store.
|
|
92
|
-
*
|
|
93
|
-
* If a categoryId is provided, it removes all items from the specified category within the group.
|
|
94
|
-
* If no categoryId is provided, it removes the entire group and all its items.
|
|
95
|
-
*
|
|
96
|
-
* @param {Object} args - The function arguments.
|
|
97
|
-
* @param {Guid} args.groupId - The ID of the group to remove.
|
|
98
|
-
* @param {GlobalSelectionCategoryId} [args.categoryId] - The ID of the category to remove (optional).
|
|
99
|
-
*/: import("dist/libs/echo-utils/src").Guid;
|
|
92
|
+
groupId?: import("dist/libs/echo-utils/src").Guid;
|
|
100
93
|
itemIds: (GlobalSelectionTypes.TagId | import("./globalSelectionStore/globalSelectionStore.types").OptimizedWorkOrderDto)[];
|
|
101
94
|
}) => void;
|
|
102
95
|
}>;
|
|
@@ -192,3 +185,4 @@ export declare const globalSelectionApi: Readonly<{
|
|
|
192
185
|
subLabel: string;
|
|
193
186
|
}) => import("dist/libs/echo-utils/src").Guid;
|
|
194
187
|
}>;
|
|
188
|
+
export {};
|
|
@@ -79,5 +79,5 @@ export declare namespace SelectionTreeTypes {
|
|
|
79
79
|
type Item = SelectionItem;
|
|
80
80
|
type ActionResult = SelectionTreeActionResult;
|
|
81
81
|
}
|
|
82
|
-
export type AddTagsReturnType<T extends boolean | undefined> = T extends true ? AddTagsResponse : ResultArray<TagSummaryDto>[];
|
|
82
|
+
export type AddTagsReturnType<T extends boolean | undefined = undefined> = T extends true ? AddTagsResponse : ResultArray<TagSummaryDto>[];
|
|
83
83
|
export {};
|