Latest updates from IceHrmPro
This commit is contained in:
20
web/node_modules/rc-tree-select/lib/utils/valueUtil.d.ts
generated
vendored
Normal file
20
web/node_modules/rc-tree-select/lib/utils/valueUtil.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/// <reference types="react" />
|
||||
import { FilterFunc } from 'rc-select/lib/interface/generator';
|
||||
import { FlattenDataNode, RawValueType, DataNode, DefaultValueType, LabelValueType, LegacyDataNode } from '../interface';
|
||||
import { SkipType } from '../hooks/useKeyValueMapping';
|
||||
export declare function toArray<T>(value: T | T[]): T[];
|
||||
export declare function findValueOption(values: RawValueType[], options: FlattenDataNode[]): DataNode[];
|
||||
export declare function isValueDisabled(value: RawValueType, options: FlattenDataNode[]): boolean;
|
||||
export declare function isCheckDisabled(node: DataNode): boolean;
|
||||
/**
|
||||
* Before reuse `rc-tree` logic, we need to add key since TreeSelect use `value` instead of `key`.
|
||||
*/
|
||||
export declare function flattenOptions(options: DataNode[]): FlattenDataNode[];
|
||||
/** Filter options and return a new options by the search text */
|
||||
export declare function filterOptions(searchValue: string, options: DataNode[], { optionFilterProp, filterOption, }: {
|
||||
optionFilterProp: string;
|
||||
filterOption: boolean | FilterFunc<LegacyDataNode>;
|
||||
}): DataNode[];
|
||||
export declare function getRawValueLabeled(values: RawValueType[], prevValue: DefaultValueType, getEntityByValue: (value: RawValueType, skipType?: SkipType) => FlattenDataNode, getLabelProp: (node: DataNode) => React.ReactNode): LabelValueType[];
|
||||
export declare function addValue(rawValues: RawValueType[], value: RawValueType): (string | number)[];
|
||||
export declare function removeValue(rawValues: RawValueType[], value: RawValueType): (string | number)[];
|
||||
Reference in New Issue
Block a user