@mui/x-tree-view
Version:
The community edition of the MUI X Tree View components.
31 lines • 950 B
TypeScript
import { TreeViewItemId, TreeViewSelectionPropagation } from "../../../models/index.js";
import { TreeViewUsedStore } from "../../models/index.js";
import { UseTreeViewSelectionSignature } from "./useTreeViewSelection.types.js";
export declare const getLookupFromArray: (array: string[]) => {
[itemId: string]: true;
};
export declare const getAddedAndRemovedItems: ({
store,
oldModel,
newModel
}: {
store: TreeViewUsedStore<UseTreeViewSelectionSignature>;
oldModel: TreeViewItemId[];
newModel: TreeViewItemId[];
}) => {
added: string[];
removed: string[];
};
export declare const propagateSelection: ({
store,
selectionPropagation,
newModel,
oldModel,
additionalItemsToPropagate
}: {
store: TreeViewUsedStore<UseTreeViewSelectionSignature>;
selectionPropagation: TreeViewSelectionPropagation;
newModel: TreeViewItemId[];
oldModel: TreeViewItemId[];
additionalItemsToPropagate?: TreeViewItemId[];
}) => string[];