@hitgrab/finder 0.1.7-alpha → 0.1.9-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,11 +5,11 @@ import { FilterRuleWithBooleanValue, FilterRuleWithMultipleValues, FilterRuleWit
|
|
|
5
5
|
* Enforce structure for an array of rule of mixed types.
|
|
6
6
|
*/
|
|
7
7
|
export declare function finderRuleset<FItem>(rules: FinderRule<FItem>[]): FinderRule<FItem>[];
|
|
8
|
-
export declare function searchRule<FItem>(rule: SearchRule<FItem>): SearchRule<FItem,
|
|
9
|
-
export declare function filterRule<FItem, FValue = any, T = FilterRuleWithMultipleValues<FItem, FValue>>(rule: T): FilterRuleWithMultipleValues<FItem, FValue>;
|
|
10
|
-
export declare function filterRule<FItem, FValue = any, T = FilterRuleWithBooleanValue<FItem,
|
|
11
|
-
export declare function filterRule<FItem, FValue = any, T = FilterRuleWithSingleValue<FItem, FValue>>(rule: T): FilterRuleWithSingleValue<FItem, FValue>;
|
|
12
|
-
export declare function sortByRule<FItem>(rule: SortByRule<FItem>): SortByRule<FItem,
|
|
13
|
-
export declare function groupByRule<FItem>(rule: GroupByRule<FItem>): GroupByRule<FItem,
|
|
8
|
+
export declare function searchRule<FItem, FContext = any>(rule: SearchRule<FItem, FContext>): SearchRule<FItem, FContext>;
|
|
9
|
+
export declare function filterRule<FItem, FValue = any, FContext = any, T = FilterRuleWithMultipleValues<FItem, FValue, FContext>>(rule: T): FilterRuleWithMultipleValues<FItem, FValue>;
|
|
10
|
+
export declare function filterRule<FItem, FValue = any, FContext = any, T = FilterRuleWithBooleanValue<FItem, FContext>>(rule: T): FilterRuleWithBooleanValue<FItem, FValue>;
|
|
11
|
+
export declare function filterRule<FItem, FValue = any, FContext = any, T = FilterRuleWithSingleValue<FItem, FValue, FContext>>(rule: T): FilterRuleWithSingleValue<FItem, FValue>;
|
|
12
|
+
export declare function sortByRule<FItem, FContext = any>(rule: SortByRule<FItem, FContext>): SortByRule<FItem, FContext>;
|
|
13
|
+
export declare function groupByRule<FItem, FContext = any>(rule: GroupByRule<FItem, FContext>): GroupByRule<FItem, FContext>;
|
|
14
14
|
export declare function ruleEffect<FItem, FContext = any>(rules: string | FinderRule<FItem> | (string | FinderRule<FItem>)[] | ((items: FItem[], context: FContext) => string | FinderRule<FItem> | (string | FinderRule<FItem>)[]), onChange: (instance: FinderCore<FItem, FContext>, rule: FinderRule) => void): RuleEffect<FItem, FContext>;
|
|
15
15
|
export declare function searchEffect<FItem, FContext = any>(haystack: string | string[] | ((items: FItem[], context: FContext) => string | string[]), onChange: (instance: FinderCore<FItem, FContext>, searchTerm: string) => void): SearchEffect<FItem, FContext>;
|
|
@@ -11,7 +11,7 @@ export interface FinderProps<FItem, FContext> extends FinderConstructorOptions<F
|
|
|
11
11
|
}
|
|
12
12
|
export interface FinderContentProps<FContext = any> {
|
|
13
13
|
pagination: PaginationMixinInterface;
|
|
14
|
-
context
|
|
14
|
+
context: FContext;
|
|
15
15
|
}
|
|
16
16
|
export interface FinderContentItemProps<FItem, FContext = any> extends FinderContentProps<FContext> {
|
|
17
17
|
items: FItem[];
|