react-crud-mui 0.2.52 → 0.2.54
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/components/form/hooks/useForm.d.ts +2 -1
- package/dist/components/i18n/resources/en.json.d.ts +2 -1
- package/dist/components/i18n/resources/tr.json.d.ts +2 -1
- package/dist/components/labels/DateFormat.d.ts +1 -0
- package/dist/components/panel-select/PanelSelect.d.ts +5 -4
- package/dist/coreui.js +2349 -2330
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { FieldPath, FieldValues, UseFormReturn as ReactHookFormUseFormReturn, UseFormProps } from 'react-hook-form';
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
export type ValidationCallOutType = 'tooltip' | 'label' | 'none';
|
|
4
|
-
export type ValidationVisibilityOptions = 'selected-fields' | 'only-unbound-fields' | 'all' | 'invisible';
|
|
4
|
+
export type ValidationVisibilityOptions = 'selected-fields' | 'only-unbound-fields' | 'all' | 'invisible' | 'static-text';
|
|
5
5
|
export type CallOutVisibilityOptions = 'selected-fields' | 'all' | 'invisible';
|
|
6
6
|
export type ValidationOptions<TFieldValues extends FieldValues = FieldValues> = {
|
|
7
7
|
alertVisibility?: ValidationVisibilityOptions;
|
|
8
8
|
callOutVisibility?: CallOutVisibilityOptions;
|
|
9
9
|
fields?: FieldPath<TFieldValues>[];
|
|
10
10
|
runValidationsOnDataChange?: boolean;
|
|
11
|
+
staticErrorMessage?: string;
|
|
11
12
|
};
|
|
12
13
|
export interface UseFormOptions<TFieldValues extends FieldValues> extends UseFormProps<TFieldValues> {
|
|
13
14
|
schema?: z.ZodType<Partial<TFieldValues>>;
|
|
@@ -187,7 +187,8 @@ declare const _default: {
|
|
|
187
187
|
"phone_number": "Phone number",
|
|
188
188
|
"phone_number_val_message": "Please specify a valid phone number (include the international prefix).",
|
|
189
189
|
"show_less": "Show less",
|
|
190
|
-
"show_more": "Show more"
|
|
190
|
+
"show_more": "Show more",
|
|
191
|
+
"error_message": "There are validation errors in the form. Please fix them before proceeding."
|
|
191
192
|
};
|
|
192
193
|
|
|
193
194
|
export default _default;
|
|
@@ -187,7 +187,8 @@ declare const _default: {
|
|
|
187
187
|
"phone_number": "Telefon num.",
|
|
188
188
|
"phone_number_val_message": "Geçerli bir telefon numarası giriniz (Ülke kodu ile ile birlikte)",
|
|
189
189
|
"show_less": "Daha az göster",
|
|
190
|
-
"show_more": "Daha fazla göster"
|
|
190
|
+
"show_more": "Daha fazla göster",
|
|
191
|
+
"error_message": "Formda doğrulama hataları var. Devam etmeden önce lütfen bunları düzeltin."
|
|
191
192
|
};
|
|
192
193
|
|
|
193
194
|
export default _default;
|
|
@@ -7,12 +7,13 @@ export type PanelSelectSize = 'small' | 'normal' | 'large';
|
|
|
7
7
|
export type PanelSelectDirection = 'vertical' | 'horizontal';
|
|
8
8
|
export interface PanelSelectProps extends Omit<StackProps, 'onChange' | 'direction'> {
|
|
9
9
|
data: PanelSelectData[];
|
|
10
|
-
value?: string | number;
|
|
10
|
+
value?: string | number | null;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
onChange?: (value: string | number) => void;
|
|
13
|
-
onDelete?: (value: string | number) => void;
|
|
12
|
+
onChange?: (value: string | number | null) => void;
|
|
13
|
+
onDelete?: (value: string | number | null) => void;
|
|
14
14
|
size?: PanelSelectSize;
|
|
15
15
|
direction?: PanelSelectDirection;
|
|
16
|
+
selectInitialOption?: boolean | ((data: PanelSelectData) => boolean);
|
|
16
17
|
}
|
|
17
|
-
declare function PanelSelect({ onDelete, data, onChange, value, disabled, size, direction, ...stackProps }: PanelSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function PanelSelect({ onDelete, data, onChange, value, disabled, size, direction, selectInitialOption, ...stackProps }: PanelSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export default PanelSelect;
|