UNPKG

2.09 kBTypeScriptView Raw
1import { interfaces, Container } from 'inversify';
2import { TreeWidget, TreeProps } from './tree-widget';
3import { TreeModel } from './tree-model';
4import { Tree } from './tree';
5import { TreeSelectionService } from './tree-selection';
6import { TreeExpansionService } from './tree-expansion';
7import { TreeNavigationService } from './tree-navigation';
8import { TreeDecoratorService } from './tree-decorator';
9import { TreeSearch } from './tree-search';
10import { FuzzySearch } from './fuzzy-search';
11import { SearchBoxFactory } from './search-box';
12import { TreeFocusService } from './tree-focus-service';
13export declare function isTreeServices(candidate?: Partial<TreeProps> | Partial<TreeContainerProps>): candidate is TreeContainerProps;
14export declare function createTreeContainer(parent: interfaces.Container, props?: Partial<TreeContainerProps>): Container;
15/**
16 * @deprecated Please use TreeContainerProps instead of TreeProps
17 * @since 1.23.0
18 */
19export declare function createTreeContainer(parent: interfaces.Container, props?: Partial<TreeProps>): Container;
20export interface SearchBoxFactoryFactory {
21 (context: interfaces.Context): SearchBoxFactory;
22}
23interface TreeConstants {
24 searchBoxFactory: SearchBoxFactory;
25 props: TreeProps;
26}
27interface TreeServices {
28 tree: Tree;
29 selectionService: TreeSelectionService;
30 expansionService: TreeExpansionService;
31 navigationService: TreeNavigationService;
32 model: TreeModel;
33 widget: TreeWidget;
34 search: TreeSearch;
35 fuzzy: FuzzySearch;
36 decoratorService: TreeDecoratorService;
37 focusService: TreeFocusService;
38}
39interface TreeTypes extends TreeServices, TreeConstants {
40}
41export declare type TreeIdentifiers = {
42 [K in keyof TreeTypes]: interfaces.ServiceIdentifier<TreeTypes[K]>;
43};
44declare type TreeServiceProviders = {
45 [K in keyof TreeServices]: interfaces.Newable<TreeServices[K]>;
46};
47export interface TreeContainerProps extends TreeServiceProviders {
48 props: Partial<TreeProps>;
49 searchBoxFactory: SearchBoxFactoryFactory;
50}
51export {};
52//# sourceMappingURL=tree-container.d.ts.map
\No newline at end of file