@ansible/ansible-ui-framework 2.4.26 → 2.4.28
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.
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
import { ReactNode } from 'react';
|
2
2
|
import { FieldPath, FieldValues } from 'react-hook-form';
|
3
3
|
export interface PageFormAsyncSelectProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, SelectionType = unknown> {
|
4
4
|
id?: string;
|
@@ -12,6 +12,7 @@ export interface PageFormAsyncSelectProps<TFieldValues extends FieldValues = Fie
|
|
12
12
|
values: SelectionType[];
|
13
13
|
}>;
|
14
14
|
valueToString: (value: SelectionType | undefined) => string;
|
15
|
+
valueToDescription?: (value: SelectionType | undefined) => ReactNode;
|
15
16
|
isRequired?: boolean;
|
16
17
|
isReadOnly?: boolean;
|
17
18
|
openSelectDialog?: (onSelect: (value: SelectionType | undefined) => void, defaultSelection?: SelectionType) => void;
|
@@ -22,6 +23,7 @@ export interface AsyncSelectProps<SelectionType> {
|
|
22
23
|
id?: string;
|
23
24
|
value: SelectionType | undefined;
|
24
25
|
valueToString: (value: SelectionType | undefined) => string;
|
26
|
+
valueToDescription?: (value: SelectionType | undefined) => ReactNode;
|
25
27
|
onSelect: (value: SelectionType | undefined) => void;
|
26
28
|
query: (pageSize: number) => Promise<{
|
27
29
|
total: number;
|
@@ -4,6 +4,8 @@ import { FormGroupTextInputProps } from '../..';
|
|
4
4
|
export type PageFormCodeEditorInputProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
5
5
|
name: TFieldName;
|
6
6
|
validate?: Validate<string, TFieldValues> | Record<string, Validate<string, TFieldValues>>;
|
7
|
+
isExpandable?: boolean;
|
8
|
+
defaultExpanded?: boolean;
|
7
9
|
} & Omit<FormGroupTextInputProps, 'onChange' | 'value'>;
|
8
10
|
export declare function PageFormCodeEditor<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormCodeEditorInputProps<TFieldValues, TFieldName>): JSX.Element;
|
9
11
|
export declare function MonacoEditor(props: {
|