2023-06-29 07:58:35 +00:00
|
|
|
type FenceParameterInputBuilderParameters<M extends MapToInputTestID> = {
|
|
|
|
formUtils: FormUtils<M>;
|
2023-02-17 05:59:16 +00:00
|
|
|
id: string;
|
|
|
|
isChecked?: boolean;
|
|
|
|
isRequired?: boolean;
|
2023-02-27 23:19:59 +00:00
|
|
|
isSensitive?: boolean;
|
2023-02-17 05:59:16 +00:00
|
|
|
label?: string;
|
2023-02-22 03:22:01 +00:00
|
|
|
name?: string;
|
2023-02-17 05:59:16 +00:00
|
|
|
selectOptions?: string[];
|
|
|
|
value?: string;
|
2023-02-27 23:19:59 +00:00
|
|
|
};
|
|
|
|
|
2023-06-29 07:58:35 +00:00
|
|
|
type FenceParameterInputBuilder<M extends MapToInputTestID> = (
|
|
|
|
args: FenceParameterInputBuilderParameters<M>,
|
2023-02-27 23:19:59 +00:00
|
|
|
) => ReactElement;
|
2023-02-17 05:59:16 +00:00
|
|
|
|
2023-06-29 07:58:35 +00:00
|
|
|
type MapToInputBuilder<M extends MapToInputTestID> = Partial<
|
|
|
|
Record<Exclude<FenceParameterType, 'string'>, FenceParameterInputBuilder<M>>
|
|
|
|
> & { string: FenceParameterInputBuilder<M> };
|
2023-02-17 05:59:16 +00:00
|
|
|
|
2023-02-18 01:06:05 +00:00
|
|
|
type CommonFenceInputGroupOptionalProps = {
|
|
|
|
fenceId?: string;
|
|
|
|
fenceTemplate?: APIFenceTemplate;
|
2023-02-18 03:08:15 +00:00
|
|
|
previousFenceName?: string;
|
|
|
|
previousFenceParameters?: FenceParameters;
|
2023-02-27 23:19:59 +00:00
|
|
|
fenceParameterTooltipProps?: import('@mui/material').TooltipProps;
|
2023-02-17 05:59:16 +00:00
|
|
|
};
|
2023-02-18 01:06:05 +00:00
|
|
|
|
2023-06-29 07:58:35 +00:00
|
|
|
type CommonFenceInputGroupProps<M extends MapToInputTestID> =
|
|
|
|
CommonFenceInputGroupOptionalProps & {
|
|
|
|
formUtils: FormUtils<M>;
|
|
|
|
};
|