@ansible/ansible-ui-framework 2.4.151 → 2.4.152
Sign up to get free protection for your applications and to get access to all the features.
- package/framework/PageTable/PageToolbarFilter.d.ts +11 -16
- package/index.js +5638 -5617
- package/index.umd.cjs +186 -186
- package/package.json +1 -1
@@ -1,30 +1,24 @@
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
|
3
|
-
string = "string",
|
4
|
-
select = "select"
|
5
|
-
}
|
6
|
-
export type PageFilterType = keyof typeof PageFilterTypeE;
|
7
|
-
export interface IToolbarStringFilter {
|
2
|
+
interface ToolbarFilterCommon {
|
8
3
|
key: string;
|
9
4
|
label: string;
|
10
|
-
type: 'string';
|
11
|
-
query: string;
|
12
|
-
placeholder: string;
|
13
5
|
isPinned?: boolean;
|
6
|
+
query: string;
|
7
|
+
placeholder?: string;
|
14
8
|
}
|
15
|
-
export interface
|
16
|
-
|
17
|
-
|
9
|
+
export interface IToolbarTextFilter extends ToolbarFilterCommon {
|
10
|
+
type: 'string';
|
11
|
+
comparison: 'contains' | 'startsWith' | 'endsWith' | 'equals';
|
12
|
+
}
|
13
|
+
export interface IToolbarSelectFilter extends ToolbarFilterCommon {
|
18
14
|
type: 'select';
|
19
15
|
options: {
|
20
16
|
label: string;
|
17
|
+
description?: string;
|
21
18
|
value: string;
|
22
19
|
}[];
|
23
|
-
query: string;
|
24
|
-
placeholder: string;
|
25
|
-
isPinned?: boolean;
|
26
20
|
}
|
27
|
-
export type IToolbarFilter =
|
21
|
+
export type IToolbarFilter = IToolbarTextFilter | IToolbarSelectFilter;
|
28
22
|
export type IFilterState = Record<string, string[] | undefined>;
|
29
23
|
export type PageToolbarFiltersProps = {
|
30
24
|
toolbarFilters?: IToolbarFilter[];
|
@@ -32,3 +26,4 @@ export type PageToolbarFiltersProps = {
|
|
32
26
|
setFilters?: Dispatch<SetStateAction<Record<string, string[]>>>;
|
33
27
|
};
|
34
28
|
export declare function PageToolbarFilters(props: PageToolbarFiltersProps): import("react/jsx-runtime").JSX.Element;
|
29
|
+
export {};
|