chonkyvoxdash
Version:
A File Browser component for React
74 lines (73 loc) • 6.75 kB
TypeScript
import FuzzySearch from 'fuzzy-search';
import { Nilable, Nullable } from 'tsdef';
import { FileArray, FileData, FileFilter } from '../types/file.types';
import { RootState } from '../types/redux.types';
import { SortOrder } from '../types/sort.types';
export declare const selectInstanceId: (state: RootState) => string;
export declare const selectExternalFileActionHandler: (state: RootState) => Nullable<import("..").GenericFileActionHandler<import("..").FileAction>>;
export declare const selectFileActionMap: (state: RootState) => import("../types/action.types").FileActionMap;
export declare const selectFileActionIds: (state: RootState) => string[];
export declare const selectFileActionData: (fileActionId: string) => (state: RootState) => import("..").FileAction;
export declare const selectToolbarItems: (state: RootState) => import("../types/action-menus.types").FileActionMenuItem[];
export declare const selectContextMenuItems: (state: RootState) => import("../types/action-menus.types").FileActionMenuItem[];
export declare const selectFolderChain: (state: RootState) => FileArray<FileData>;
export declare const selectCurrentFolder: (state: RootState) => Nullable<FileData>;
export declare const selectParentFolder: (state: RootState) => Nullable<FileData>;
export declare const selectRawFiles: (state: RootState) => any;
export declare const selectFileMap: (state: RootState) => import("../types/file.types").FileMap<FileData>;
export declare const selectCleanFileIds: (state: RootState) => string[];
export declare const selectFileData: (fileId: Nullable<string>) => (state: RootState) => Nullable<FileData>;
export declare const selectHiddenFileIdMap: (state: RootState) => import("../types/file.types").FileIdTrueMap;
export declare const selectHiddenFileCount: (state: RootState) => number;
export declare const selectFocusSearchInput: (state: RootState) => Nullable<() => void>;
export declare const selectSearchString: (state: RootState) => string;
export declare const selectSelectionMap: (state: RootState) => import("../types/file.types").FileIdTrueMap;
export declare const selectSelectedFileIds: (state: RootState) => string[];
export declare const selectSelectionSize: (state: RootState) => number;
export declare const selectIsFileSelected: (fileId: Nullable<string>) => (state: RootState) => boolean;
export declare const selectSelectedFiles: (state: RootState) => FileData[];
export declare const selectSelectedFilesForAction: (fileActionId: string) => (state: RootState) => FileData[] | undefined;
export declare const selectSelectedFilesForActionCount: (fileActionId: string) => (state: RootState) => number | undefined;
export declare const selectDisableSelection: (state: RootState) => boolean;
export declare const selectFileViewConfig: (state: RootState) => import("../types/file-view.types").FileViewConfig;
export declare const selectSortActionId: (state: RootState) => Nullable<string>;
export declare const selectSortOrder: (state: RootState) => SortOrder;
export declare const selectOptionMap: (state: RootState) => import("../types/options.types").OptionMap;
export declare const selectOptionValue: (optionId: string) => (state: RootState) => any;
export declare const selectThumbnailGenerator: (state: RootState) => Nullable<import("..").ThumbnailGenerator>;
export declare const selectDoubleClickDelay: (state: RootState) => number;
export declare const selectIsDnDDisabled: (state: RootState) => boolean;
export declare const selectClearSelectionOnOutsideClick: (state: RootState) => boolean;
export declare const selectContextMenuMounted: (state: RootState) => boolean;
export declare const selectContextMenuConfig: (state: RootState) => Nullable<import("../types/context-menu.types").ContextMenuConfig>;
export declare const selectContextMenuTriggerFile: (state: RootState) => Nullable<FileData>;
export declare const selectors: {
getFileActionMap: (state: RootState) => import("../types/action.types").FileActionMap;
getOptionMap: (state: RootState) => import("../types/options.types").OptionMap;
getFileMap: (state: RootState) => import("../types/file.types").FileMap<FileData>;
getFileIds: (state: RootState) => Nullable<string>[];
getCleanFileIds: (state: RootState) => string[];
getSortActionId: (state: RootState) => Nullable<string>;
getSortOrder: (state: RootState) => SortOrder;
getSearchString: (state: RootState) => string;
_getLastClick: (state: RootState) => Nullable<{
index: number;
fileId: string;
}>;
getSortedFileIds: import("reselect/*").OutputSelector<RootState, Nullable<string>[], (res1: Nullable<string>[], res2: SortOrder, res3: FileArray<FileData>, res4: import("..").FileAction | null, res5: any) => Nullable<string>[]>;
getSearcher: import("reselect/*").OutputSelector<RootState, FuzzySearch<FileData>, (res: FileArray<FileData>) => FuzzySearch<FileData>>;
getSearchFilteredFileIds: import("reselect/*").OutputSelector<RootState, string[], (res1: string[], res2: string, res3: FuzzySearch<FileData>) => string[]>;
getHiddenFileIdMap: import("reselect/*").OutputSelector<RootState, any, (res1: string[], res2: FileArray<FileData>, res3: any) => any>;
getDisplayFileIds: import("reselect/*").OutputSelector<RootState, Nullable<string>[], (res1: Nullable<string>[], res2: any) => Nullable<string>[]>;
getLastClickIndex: import("reselect/*").OutputSelector<RootState, number | null, (res1: Nullable<{
index: number;
fileId: string;
}>, res2: Nullable<string>[]) => number | null>;
makeGetAction: (fileActionSelector: (state: RootState) => Nullable<string>) => import("reselect/*").OutputSelector<RootState, import("..").FileAction | null, (res1: import("../types/action.types").FileActionMap, res2: Nullable<string>) => import("..").FileAction | null>;
makeGetOptionValue: (optionId: string, defaultValue?: any) => import("reselect/*").OutputSelector<RootState, any, (res: import("../types/options.types").OptionMap) => any>;
makeGetFiles: (fileIdsSelector: (state: RootState) => Nullable<string>[]) => import("reselect/*").OutputSelector<RootState, FileArray<FileData>, (res1: import("../types/file.types").FileMap<FileData>, res2: Nullable<string>[]) => FileArray<FileData>>;
};
export declare const getFileData: (state: RootState, fileId: Nullable<string>) => Nullable<FileData>;
export declare const getIsFileSelected: (state: RootState, file: FileData) => boolean;
export declare const getSelectedFiles: (state: RootState, ...filters: Nilable<FileFilter>[]) => FileData[];
export declare const getSelectedFilesForAction: (state: RootState, fileActionId: string) => FileData[] | undefined;