@pdg/react-form 1.0.20 → 1.0.22
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/dist/@private/PrivateDatePicker/PrivateDatePicker.types.d.ts +1 -0
- package/dist/FormItemCustom/FormAutocomplete/FormAutocomplete.types.d.ts +1 -0
- package/dist/FormItemCustom/FormCheckbox/FormCheckbox.types.d.ts +1 -0
- package/dist/FormItemCustom/FormDateRangePicker/FormDateRangePicker.types.d.ts +1 -0
- package/dist/FormItemCustom/FormFile/FormFile.types.d.ts +1 -0
- package/dist/FormItemCustom/FormItemBase/FormItemBase.types.d.ts +1 -0
- package/dist/FormItemCustom/FormRadioGroup/FormRadioGroup.types.d.ts +1 -0
- package/dist/FormItemCustom/FormRating/FormRating.types.d.ts +1 -0
- package/dist/FormItemCustom/FormTextEditor/FormTextEditor.types.d.ts +1 -0
- package/dist/FormItemCustom/FormToggleButtonGroup/FormToggleButtonGroup.types.d.ts +1 -0
- package/dist/FormItemTextFieldBase/FormTextField/FormTextField.d.ts +1 -0
- package/dist/FormItemTextFieldBase/FormTextField/FormTextField.types.d.ts +1 -0
- package/dist/index.esm.js +116 -117
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +116 -117
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ export interface PrivateDatePickerProps extends CommonSxProps, Partial<Omit<Desk
|
|
|
21
21
|
endAdornment?: ReactNode;
|
|
22
22
|
align?: 'left' | 'center' | 'right';
|
|
23
23
|
readOnlyInput?: boolean;
|
|
24
|
+
hidden?: boolean;
|
|
24
25
|
onChange?(value: PrivateDatePickerValue): void;
|
|
25
26
|
onValidate?(value: PrivateDatePickerValue): boolean | string;
|
|
26
27
|
}
|
|
@@ -26,6 +26,7 @@ export interface FormAutocompleteProps extends CommonSxProps, Omit<FormValueItem
|
|
|
26
26
|
openOnFocus?: boolean;
|
|
27
27
|
disableClearable?: boolean;
|
|
28
28
|
async?: boolean;
|
|
29
|
+
hidden?: boolean;
|
|
29
30
|
onLoadItems?: (inputValue?: string) => Promise<FormAutocompleteItem[]>;
|
|
30
31
|
onAsyncLoadValueItem?: (value: FormAutocompleteValue) => Promise<FormAutocompleteComponentValue>;
|
|
31
32
|
onRenderItem?: (item: FormAutocompleteItem) => ReactNode;
|
|
@@ -7,6 +7,7 @@ export interface FormCheckboxProps extends CommonSxProps, Omit<CheckboxProps, 'c
|
|
|
7
7
|
text?: ReactNode;
|
|
8
8
|
inputRef?: RefObject<HTMLInputElement>;
|
|
9
9
|
action?: RefObject<ButtonBaseActions>;
|
|
10
|
+
hidden?: boolean;
|
|
10
11
|
onChange?(checked: boolean): void;
|
|
11
12
|
}
|
|
12
13
|
export declare const FormCheckboxDefaultProps: Pick<FormCheckboxProps, 'checked' | 'value' | 'uncheckedValue'>;
|
|
@@ -40,6 +40,7 @@ export interface FormDateRangePickerProps extends CommonSxProps, Omit<FormValueI
|
|
|
40
40
|
disableFuture?: boolean;
|
|
41
41
|
minDate?: Dayjs;
|
|
42
42
|
maxDate?: Dayjs;
|
|
43
|
+
hidden?: boolean;
|
|
43
44
|
onChange?(value: FormDateRangePickerValue): void;
|
|
44
45
|
onValidate?(value: FormDateRangePickerValue): boolean | string;
|
|
45
46
|
}
|
|
@@ -14,6 +14,7 @@ export interface FormRadioGroupProps extends CommonSxProps, Omit<FormValueItemPr
|
|
|
14
14
|
inline?: boolean;
|
|
15
15
|
loading?: boolean;
|
|
16
16
|
nowrap?: boolean;
|
|
17
|
+
hidden?: boolean;
|
|
17
18
|
onLoadItems?(): Promise<FormRadioGroupItem[]>;
|
|
18
19
|
onValue?(value: RadioGroupProps['value']): RadioGroupProps['value'];
|
|
19
20
|
}
|
|
@@ -3,6 +3,7 @@ export interface FormTextEditorProps extends CommonSxProps, Omit<FormValueItemPr
|
|
|
3
3
|
required?: boolean;
|
|
4
4
|
menubar?: boolean;
|
|
5
5
|
height?: number;
|
|
6
|
+
hidden?: boolean;
|
|
6
7
|
onImageUpload?(blob: Blob, success: (url: string) => void, failure: (err: string) => void, progress?: (percent: number) => void): void;
|
|
7
8
|
}
|
|
8
9
|
export declare const FormTextEditorDefaultProps: Pick<FormTextEditorProps, 'menubar' | 'height'>;
|
|
@@ -19,6 +19,7 @@ export interface FormToggleButtonGroupProps extends CommonSxProps, Omit<FormValu
|
|
|
19
19
|
formValueSeparator?: string;
|
|
20
20
|
formValueSort?: boolean;
|
|
21
21
|
loading?: boolean;
|
|
22
|
+
hidden?: boolean;
|
|
22
23
|
onLoadItems?: () => Promise<FormToggleButtonGroupItem[]>;
|
|
23
24
|
onValue?: (value: FormToggleButtonGroupValue) => FormToggleButtonGroupValue;
|
|
24
25
|
}
|
|
@@ -11,6 +11,7 @@ declare const FormTextField: React.ForwardRefExoticComponent<Omit<import("@mui/m
|
|
|
11
11
|
startAdornment?: React.ReactNode;
|
|
12
12
|
endAdornment?: React.ReactNode;
|
|
13
13
|
noFormValueItem?: boolean | undefined;
|
|
14
|
+
hidden?: boolean | undefined;
|
|
14
15
|
onValue?(value: any): any;
|
|
15
16
|
} & React.RefAttributes<FormTextFieldCommands>>;
|
|
16
17
|
export default FormTextField;
|
|
@@ -13,6 +13,7 @@ export declare type FormTextFieldProps = Omit<TextFieldProps, 'ref' | 'name' | '
|
|
|
13
13
|
startAdornment?: ReactNode;
|
|
14
14
|
endAdornment?: ReactNode;
|
|
15
15
|
noFormValueItem?: boolean;
|
|
16
|
+
hidden?: boolean;
|
|
16
17
|
onValue?(value: FormItemValue): FormItemValue;
|
|
17
18
|
};
|
|
18
19
|
export declare const FormTextFieldDefaultProps: {};
|