UNPKG

@talend/react-containers

Version:

Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.

55 lines (54 loc) 1.8 kB
/** * Internal * @return item in items found with the id * @param {Object} options {id, items, idAttr } */ export function getById(items: any, id: any, { idAttr }?: { idAttr?: string | undefined; }): undefined; /** * apply query only on leaf elements, return them on a single list, * not taking into account the deepth of matched elements. * @return item in items found with the id * @param {Object} options {query, items, idAttr } */ export function filter(items?: any, query?: string, { nameAttr, onMatch }?: { nameAttr?: string | undefined; onMatch?: typeof noop | undefined; }, currentPosition?: string): any; /** * apply query on every elements, return them on a single list, * @return item in items found with the id * @param {Object} options {query, items, idAttr } */ export function filterAll(items?: any, query?: string, { nameAttr, onMatch }?: { nameAttr?: string | undefined; onMatch?: typeof noop | undefined; }, currentPosition?: string): any; export const DISPLAY_NAME: "Container(SelectObject)"; export const DEFAULT_STATE: any; export default SelectObject; declare function noop(): void; declare class SelectObject extends RComponent<any, any, any> { static displayName: string; static FILTER_MODE: { ALL: string; LEAF: string; }; static propTypes: any; static defaultProps: { sourceData: any; idAttr: string; nameAttr: string; breadCrumbsRootLabel: string; }; constructor(props: any); state: {}; filter: typeof filter; filterAll: typeof filterAll; getById: typeof getById; onTreeClick(data: any): void; onResultsClick(event: any, item: any): void; render(): import("react/jsx-runtime").JSX.Element; } import { Component as RComponent } from 'react';