react-crud-mui 0.2.68 → 0.2.70
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.
|
@@ -15,7 +15,7 @@ export interface UseDetailPageModalProps {
|
|
|
15
15
|
models?: unknown[];
|
|
16
16
|
uniqueIdParamName?: string;
|
|
17
17
|
}
|
|
18
|
-
declare function useDetailPageModal<TModel extends FieldValues>({ models, uniqueIdParamName
|
|
18
|
+
declare function useDetailPageModal<TModel extends FieldValues, TProps extends SelectedModelOptions<TModel> = SelectedModelOptions<TModel>>({ models, uniqueIdParamName }?: UseDetailPageModalProps): readonly [({ data, disabled, reason, onAfterDelete, onAfterSave, ...rest }?: TProps) => void, {
|
|
19
19
|
readonly onReasonChange: (reason: NeedDataReason) => void;
|
|
20
20
|
readonly onClose: () => void;
|
|
21
21
|
readonly onNavigate: ({ direction }: Pick<NavigatePayload<TModel>, "direction">) => void;
|
|
@@ -20,6 +20,14 @@ export interface DateFormatProps extends BoxProps {
|
|
|
20
20
|
* Convert utc time to local time
|
|
21
21
|
*/
|
|
22
22
|
convertToLocal?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to show undefined message or not
|
|
25
|
+
*/
|
|
26
|
+
showUndefinedMessage?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Message to show when date is undefined
|
|
29
|
+
*/
|
|
30
|
+
unDefinedMessage?: string;
|
|
23
31
|
}
|
|
24
32
|
declare const _default: import('react').ForwardRefExoticComponent<Omit<DateFormatProps, "ref"> & import('react').RefAttributes<any>>;
|
|
25
33
|
export default _default;
|
|
@@ -2,6 +2,14 @@ import { BoxProps } from '@mui/material/Box';
|
|
|
2
2
|
interface MailLabelProps extends BoxProps {
|
|
3
3
|
value?: string;
|
|
4
4
|
showIcon?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Whether to show undefined message or not
|
|
7
|
+
*/
|
|
8
|
+
showUndefinedMessage?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Message to show when date is undefined
|
|
11
|
+
*/
|
|
12
|
+
unDefinedMessage?: string;
|
|
5
13
|
}
|
|
6
|
-
declare function MailFormat({ value: email, showIcon, ...rest }: MailLabelProps): import("react/jsx-runtime").JSX.Element |
|
|
14
|
+
declare function MailFormat({ value: email, showIcon, showUndefinedMessage, unDefinedMessage, ...rest }: MailLabelProps): string | import("react/jsx-runtime").JSX.Element | null;
|
|
7
15
|
export default MailFormat;
|
|
@@ -2,6 +2,14 @@ import { BoxProps } from '@mui/material/Box';
|
|
|
2
2
|
interface PhoneLabelProps extends BoxProps {
|
|
3
3
|
value?: string;
|
|
4
4
|
showIcon?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Whether to show undefined message or not
|
|
7
|
+
*/
|
|
8
|
+
showUndefinedMessage?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Message to show when date is undefined
|
|
11
|
+
*/
|
|
12
|
+
unDefinedMessage?: string;
|
|
5
13
|
}
|
|
6
|
-
declare function PhoneFormat({ value: phoneNumber, showIcon, ...rest }: PhoneLabelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
declare function PhoneFormat({ value: phoneNumber, showIcon, showUndefinedMessage, unDefinedMessage, ...rest }: PhoneLabelProps): string | import("react/jsx-runtime").JSX.Element | null;
|
|
7
15
|
export default PhoneFormat;
|