@ansible/ansible-ui-framework 2.4.265 → 2.4.267
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.
- package/framework/PageForm/Inputs/PageFormSelect.d.ts +20 -5
- package/framework/components/useIsMounted.d.ts +4 -0
- package/framework/index.d.ts +0 -2
- package/framework/useView.d.ts +6 -2
- package/index.js +11922 -11975
- package/index.umd.cjs +193 -193
- package/package.json +1 -1
- package/framework/PageForm/Inputs/PageFormSelectOption.d.ts +0 -20
- package/framework/PageForm/Inputs/PageFormTextSelect.d.ts +0 -13
@@ -1,5 +1,20 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { FieldPath, FieldPathValue, FieldValues, Validate } from 'react-hook-form';
|
3
|
+
import { IFormGroupSelectOption } from './FormGroupSelectOption';
|
4
|
+
export type PageFormSelectProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection = unknown> = {
|
5
|
+
id?: string;
|
6
|
+
name: TFieldName;
|
7
|
+
label?: string;
|
8
|
+
labelHelpTitle?: string;
|
9
|
+
labelHelp?: ReactNode;
|
10
|
+
additionalControls?: ReactNode;
|
11
|
+
placeholderText?: string;
|
12
|
+
options: IFormGroupSelectOption<TSelection>[];
|
13
|
+
footer?: ReactNode;
|
14
|
+
helperText?: string;
|
15
|
+
isDisabled?: boolean;
|
16
|
+
isReadOnly?: boolean;
|
17
|
+
isRequired?: boolean;
|
18
|
+
validate?: Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues> | Record<string, Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues>>;
|
19
|
+
};
|
20
|
+
export declare function PageFormSelect<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection = unknown>(props: PageFormSelectProps<TFieldValues, TFieldName, TSelection>): import("react/jsx-runtime").JSX.Element;
|
package/framework/index.d.ts
CHANGED
@@ -31,11 +31,9 @@ export * from './PageForm/Inputs/FormGroupTextInput';
|
|
31
31
|
export * from './PageForm/Inputs/PageFormCheckbox';
|
32
32
|
export * from './PageForm/Inputs/PageFormDataEditor';
|
33
33
|
export * from './PageForm/Inputs/PageFormSelect';
|
34
|
-
export * from './PageForm/Inputs/PageFormSelectOption';
|
35
34
|
export * from './PageForm/Inputs/PageFormSwitch';
|
36
35
|
export * from './PageForm/Inputs/PageFormTextArea';
|
37
36
|
export * from './PageForm/Inputs/PageFormTextInput';
|
38
|
-
export * from './PageForm/Inputs/PageFormTextSelect';
|
39
37
|
export * from './PageForm/PageForm';
|
40
38
|
export * from './PageFramework';
|
41
39
|
export * from './PageHeader';
|
package/framework/useView.d.ts
CHANGED
@@ -9,8 +9,12 @@ export interface IView {
|
|
9
9
|
sortDirection: 'asc' | 'desc';
|
10
10
|
setSortDirection: (sortDirection: 'asc' | 'desc') => void;
|
11
11
|
filters: Record<string, string[]>;
|
12
|
-
defaultFilters?: Record<string, string[]>;
|
13
12
|
setFilters: Dispatch<SetStateAction<Record<string, string[]>>>;
|
14
13
|
clearAllFilters: () => void;
|
15
14
|
}
|
16
|
-
export declare function useView(
|
15
|
+
export declare function useView(options: {
|
16
|
+
defaultValues?: Partial<Pick<IView, 'filters' | 'sort' | 'sortDirection'>> | undefined;
|
17
|
+
disableQueryString?: boolean;
|
18
|
+
ignoreQueryStringKeys?: string[];
|
19
|
+
filterQueryStringKeys?: string[];
|
20
|
+
}): IView;
|