@gnwebsoft/ui 2.18.48 → 2.18.49
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/chunk-7E3IFHIS.mjs +1890 -0
- package/dist/chunk-TFNX5LRO.js +1890 -0
- package/dist/index.js +5 -1882
- package/dist/index.mjs +3 -1880
- package/dist/wrappers3/index.js +8 -0
- package/dist/wrappers3/index.mjs +8 -0
- package/package.json +1 -1
- package/dist/AsyncSelectPayload-Cz4bgak0.d.mts +0 -10
- package/dist/AsyncSelectPayload-Cz4bgak0.d.ts +0 -10
- package/dist/OptionItem-oN6XnOTJ.d.mts +0 -14
- package/dist/OptionItem-oN6XnOTJ.d.ts +0 -14
- package/dist/components/index.d.mts +0 -103
- package/dist/components/index.d.ts +0 -103
- package/dist/hooks/index.d.mts +0 -17
- package/dist/hooks/index.d.ts +0 -17
- package/dist/index.d.mts +0 -236
- package/dist/index.d.ts +0 -236
- package/dist/types/index.d.mts +0 -44
- package/dist/types/index.d.ts +0 -44
- package/dist/utils/index.d.mts +0 -59
- package/dist/utils/index.d.ts +0 -59
- package/dist/wrappers/index.d.mts +0 -220
- package/dist/wrappers/index.d.ts +0 -220
- package/dist/wrappers2/index.d.mts +0 -247
- package/dist/wrappers2/index.d.ts +0 -247
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type AsyncSelectPayload = {
|
|
2
|
-
query: string | null;
|
|
3
|
-
initialValue?: string | number | null;
|
|
4
|
-
};
|
|
5
|
-
type AsyncSelectMultiPayload = {
|
|
6
|
-
query: string | null;
|
|
7
|
-
initialValues?: string[] | number[] | null;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type { AsyncSelectPayload as A, AsyncSelectMultiPayload as a };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type AsyncSelectPayload = {
|
|
2
|
-
query: string | null;
|
|
3
|
-
initialValue?: string | number | null;
|
|
4
|
-
};
|
|
5
|
-
type AsyncSelectMultiPayload = {
|
|
6
|
-
query: string | null;
|
|
7
|
-
initialValues?: string[] | number[] | null;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type { AsyncSelectPayload as A, AsyncSelectMultiPayload as a };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type OptionItem = {
|
|
2
|
-
Label: string;
|
|
3
|
-
Value: string;
|
|
4
|
-
};
|
|
5
|
-
type AsyncMultiSelectPayload = {
|
|
6
|
-
query: string | null;
|
|
7
|
-
initialValues?: string[] | number[] | null;
|
|
8
|
-
};
|
|
9
|
-
type OptionItem2 = {
|
|
10
|
-
Label: string;
|
|
11
|
-
Value: number | string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type { AsyncMultiSelectPayload as A, OptionItem as O, OptionItem2 as a };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type OptionItem = {
|
|
2
|
-
Label: string;
|
|
3
|
-
Value: string;
|
|
4
|
-
};
|
|
5
|
-
type AsyncMultiSelectPayload = {
|
|
6
|
-
query: string | null;
|
|
7
|
-
initialValues?: string[] | number[] | null;
|
|
8
|
-
};
|
|
9
|
-
type OptionItem2 = {
|
|
10
|
-
Label: string;
|
|
11
|
-
Value: number | string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type { AsyncMultiSelectPayload as A, OptionItem as O, OptionItem2 as a };
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { SxProps, ButtonTypeMap } from '@mui/material';
|
|
3
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
|
-
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
5
|
-
|
|
6
|
-
type ClearButtonProps = {
|
|
7
|
-
isSubmitting: boolean;
|
|
8
|
-
handleClear: () => void;
|
|
9
|
-
sx?: SxProps;
|
|
10
|
-
storeKey?: string;
|
|
11
|
-
};
|
|
12
|
-
declare const ClearButton: ({ isSubmitting, handleClear, sx, storeKey, }: ClearButtonProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
-
|
|
14
|
-
type FilterButtonProps = {
|
|
15
|
-
isSubmitting: boolean;
|
|
16
|
-
show?: boolean;
|
|
17
|
-
title?: string;
|
|
18
|
-
icon?: React.ReactNode;
|
|
19
|
-
sx?: SxProps;
|
|
20
|
-
iconSx?: SxProps;
|
|
21
|
-
};
|
|
22
|
-
declare const FilterButton: ({ isSubmitting, show, title, icon, sx, iconSx, }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
type FilterWrapperProps = PropsWithChildren<{
|
|
25
|
-
title?: string;
|
|
26
|
-
filterCount?: number;
|
|
27
|
-
cardSx?: SxProps;
|
|
28
|
-
textSx?: SxProps;
|
|
29
|
-
icon?: ReactNode;
|
|
30
|
-
iconSx?: SxProps;
|
|
31
|
-
showCount?: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
declare const FilterWrapper: ({ children, title, filterCount, cardSx, textSx, icon, iconSx, showCount, }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
-
|
|
35
|
-
type FormWrapper = PropsWithChildren<{
|
|
36
|
-
title: string;
|
|
37
|
-
editMode?: boolean;
|
|
38
|
-
icon?: ReactNode;
|
|
39
|
-
cardSx?: SxProps;
|
|
40
|
-
textSx?: SxProps;
|
|
41
|
-
actionButton?: ReactNode;
|
|
42
|
-
}>;
|
|
43
|
-
declare const FormWrapper: ({ children, title, editMode, cardSx, textSx, icon, actionButton, }: FormWrapper) => react_jsx_runtime.JSX.Element;
|
|
44
|
-
|
|
45
|
-
type LabelTextProps = {
|
|
46
|
-
label: string;
|
|
47
|
-
value: React.ReactNode;
|
|
48
|
-
gridSize?: {
|
|
49
|
-
labelSize: {
|
|
50
|
-
xs: number;
|
|
51
|
-
sm: number;
|
|
52
|
-
md: number;
|
|
53
|
-
};
|
|
54
|
-
valueSize: {
|
|
55
|
-
xs: number;
|
|
56
|
-
sm: number;
|
|
57
|
-
md: number;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
containerSize?: {
|
|
61
|
-
xs: number;
|
|
62
|
-
sm: number;
|
|
63
|
-
md: number;
|
|
64
|
-
};
|
|
65
|
-
labelSx?: SxProps;
|
|
66
|
-
valueSx?: SxProps;
|
|
67
|
-
};
|
|
68
|
-
declare const LabelText: ({ label, value, gridSize, containerSize, labelSx, valueSx, }: LabelTextProps) => react_jsx_runtime.JSX.Element;
|
|
69
|
-
|
|
70
|
-
type ListWrapperProps = PropsWithChildren<{
|
|
71
|
-
title?: string;
|
|
72
|
-
count?: number;
|
|
73
|
-
show?: boolean;
|
|
74
|
-
actionButton?: ReactNode;
|
|
75
|
-
cardSx?: SxProps;
|
|
76
|
-
textSx?: SxProps;
|
|
77
|
-
icon?: ReactNode;
|
|
78
|
-
showCount?: boolean;
|
|
79
|
-
iconSx?: SxProps;
|
|
80
|
-
}>;
|
|
81
|
-
declare const ListWrapper: ({ children, title, count, show, actionButton, cardSx, textSx, icon, iconSx, showCount, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
82
|
-
|
|
83
|
-
declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
|
|
84
|
-
|
|
85
|
-
type SimpleButtonProps<RootComponent extends React.ElementType = ButtonTypeMap["defaultComponent"], AdditionalProps = {}> = OverrideProps<ButtonTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
86
|
-
component?: React.ElementType;
|
|
87
|
-
show?: boolean;
|
|
88
|
-
};
|
|
89
|
-
declare const SimpleButton: (props: SimpleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
90
|
-
|
|
91
|
-
type AuthorizedViewProps = PropsWithChildren & {
|
|
92
|
-
show: boolean;
|
|
93
|
-
};
|
|
94
|
-
declare const AuthorizedView: ({ children, show }: AuthorizedViewProps) => react_jsx_runtime.JSX.Element;
|
|
95
|
-
|
|
96
|
-
type CancelButtonProps = {
|
|
97
|
-
isSubmitting: boolean;
|
|
98
|
-
handleCancel: () => void;
|
|
99
|
-
sx?: SxProps;
|
|
100
|
-
};
|
|
101
|
-
declare const CancelButton: ({ isSubmitting, handleCancel, sx, }: CancelButtonProps) => react_jsx_runtime.JSX.Element;
|
|
102
|
-
|
|
103
|
-
export { AuthorizedView, CancelButton, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar };
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { SxProps, ButtonTypeMap } from '@mui/material';
|
|
3
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
|
-
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
5
|
-
|
|
6
|
-
type ClearButtonProps = {
|
|
7
|
-
isSubmitting: boolean;
|
|
8
|
-
handleClear: () => void;
|
|
9
|
-
sx?: SxProps;
|
|
10
|
-
storeKey?: string;
|
|
11
|
-
};
|
|
12
|
-
declare const ClearButton: ({ isSubmitting, handleClear, sx, storeKey, }: ClearButtonProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
-
|
|
14
|
-
type FilterButtonProps = {
|
|
15
|
-
isSubmitting: boolean;
|
|
16
|
-
show?: boolean;
|
|
17
|
-
title?: string;
|
|
18
|
-
icon?: React.ReactNode;
|
|
19
|
-
sx?: SxProps;
|
|
20
|
-
iconSx?: SxProps;
|
|
21
|
-
};
|
|
22
|
-
declare const FilterButton: ({ isSubmitting, show, title, icon, sx, iconSx, }: FilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
23
|
-
|
|
24
|
-
type FilterWrapperProps = PropsWithChildren<{
|
|
25
|
-
title?: string;
|
|
26
|
-
filterCount?: number;
|
|
27
|
-
cardSx?: SxProps;
|
|
28
|
-
textSx?: SxProps;
|
|
29
|
-
icon?: ReactNode;
|
|
30
|
-
iconSx?: SxProps;
|
|
31
|
-
showCount?: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
declare const FilterWrapper: ({ children, title, filterCount, cardSx, textSx, icon, iconSx, showCount, }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
-
|
|
35
|
-
type FormWrapper = PropsWithChildren<{
|
|
36
|
-
title: string;
|
|
37
|
-
editMode?: boolean;
|
|
38
|
-
icon?: ReactNode;
|
|
39
|
-
cardSx?: SxProps;
|
|
40
|
-
textSx?: SxProps;
|
|
41
|
-
actionButton?: ReactNode;
|
|
42
|
-
}>;
|
|
43
|
-
declare const FormWrapper: ({ children, title, editMode, cardSx, textSx, icon, actionButton, }: FormWrapper) => react_jsx_runtime.JSX.Element;
|
|
44
|
-
|
|
45
|
-
type LabelTextProps = {
|
|
46
|
-
label: string;
|
|
47
|
-
value: React.ReactNode;
|
|
48
|
-
gridSize?: {
|
|
49
|
-
labelSize: {
|
|
50
|
-
xs: number;
|
|
51
|
-
sm: number;
|
|
52
|
-
md: number;
|
|
53
|
-
};
|
|
54
|
-
valueSize: {
|
|
55
|
-
xs: number;
|
|
56
|
-
sm: number;
|
|
57
|
-
md: number;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
containerSize?: {
|
|
61
|
-
xs: number;
|
|
62
|
-
sm: number;
|
|
63
|
-
md: number;
|
|
64
|
-
};
|
|
65
|
-
labelSx?: SxProps;
|
|
66
|
-
valueSx?: SxProps;
|
|
67
|
-
};
|
|
68
|
-
declare const LabelText: ({ label, value, gridSize, containerSize, labelSx, valueSx, }: LabelTextProps) => react_jsx_runtime.JSX.Element;
|
|
69
|
-
|
|
70
|
-
type ListWrapperProps = PropsWithChildren<{
|
|
71
|
-
title?: string;
|
|
72
|
-
count?: number;
|
|
73
|
-
show?: boolean;
|
|
74
|
-
actionButton?: ReactNode;
|
|
75
|
-
cardSx?: SxProps;
|
|
76
|
-
textSx?: SxProps;
|
|
77
|
-
icon?: ReactNode;
|
|
78
|
-
showCount?: boolean;
|
|
79
|
-
iconSx?: SxProps;
|
|
80
|
-
}>;
|
|
81
|
-
declare const ListWrapper: ({ children, title, count, show, actionButton, cardSx, textSx, icon, iconSx, showCount, }: ListWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
82
|
-
|
|
83
|
-
declare const SimpleToolbar: () => react_jsx_runtime.JSX.Element;
|
|
84
|
-
|
|
85
|
-
type SimpleButtonProps<RootComponent extends React.ElementType = ButtonTypeMap["defaultComponent"], AdditionalProps = {}> = OverrideProps<ButtonTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
|
86
|
-
component?: React.ElementType;
|
|
87
|
-
show?: boolean;
|
|
88
|
-
};
|
|
89
|
-
declare const SimpleButton: (props: SimpleButtonProps) => react_jsx_runtime.JSX.Element;
|
|
90
|
-
|
|
91
|
-
type AuthorizedViewProps = PropsWithChildren & {
|
|
92
|
-
show: boolean;
|
|
93
|
-
};
|
|
94
|
-
declare const AuthorizedView: ({ children, show }: AuthorizedViewProps) => react_jsx_runtime.JSX.Element;
|
|
95
|
-
|
|
96
|
-
type CancelButtonProps = {
|
|
97
|
-
isSubmitting: boolean;
|
|
98
|
-
handleCancel: () => void;
|
|
99
|
-
sx?: SxProps;
|
|
100
|
-
};
|
|
101
|
-
declare const CancelButton: ({ isSubmitting, handleCancel, sx, }: CancelButtonProps) => react_jsx_runtime.JSX.Element;
|
|
102
|
-
|
|
103
|
-
export { AuthorizedView, CancelButton, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar };
|
package/dist/hooks/index.d.mts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FieldValues, FieldPath, UseControllerReturn, PathValue } from 'react-hook-form';
|
|
2
|
-
|
|
3
|
-
type UseTransformOptions<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = {
|
|
4
|
-
value: UseControllerReturn<TFieldValues, TName>["field"]["value"];
|
|
5
|
-
onChange: UseControllerReturn<TFieldValues, TName>["field"]["onChange"];
|
|
6
|
-
transform?: {
|
|
7
|
-
input?: (value: PathValue<TFieldValues, TName>) => TValue;
|
|
8
|
-
output?: (...event: any[]) => PathValue<TFieldValues, TName>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
type UseTransformReturn<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = {
|
|
12
|
-
value: TValue;
|
|
13
|
-
onChange: UseControllerReturn<TFieldValues, TName>["field"]["onChange"];
|
|
14
|
-
};
|
|
15
|
-
declare function useTransform<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown>(options: UseTransformOptions<TFieldValues, TName, TValue>): UseTransformReturn<TFieldValues, TName, TValue>;
|
|
16
|
-
|
|
17
|
-
export { type UseTransformOptions, type UseTransformReturn, useTransform };
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FieldValues, FieldPath, UseControllerReturn, PathValue } from 'react-hook-form';
|
|
2
|
-
|
|
3
|
-
type UseTransformOptions<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = {
|
|
4
|
-
value: UseControllerReturn<TFieldValues, TName>["field"]["value"];
|
|
5
|
-
onChange: UseControllerReturn<TFieldValues, TName>["field"]["onChange"];
|
|
6
|
-
transform?: {
|
|
7
|
-
input?: (value: PathValue<TFieldValues, TName>) => TValue;
|
|
8
|
-
output?: (...event: any[]) => PathValue<TFieldValues, TName>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
type UseTransformReturn<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = {
|
|
12
|
-
value: TValue;
|
|
13
|
-
onChange: UseControllerReturn<TFieldValues, TName>["field"]["onChange"];
|
|
14
|
-
};
|
|
15
|
-
declare function useTransform<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown>(options: UseTransformOptions<TFieldValues, TName, TValue>): UseTransformReturn<TFieldValues, TName, TValue>;
|
|
16
|
-
|
|
17
|
-
export { type UseTransformOptions, type UseTransformReturn, useTransform };
|
package/dist/index.d.mts
DELETED
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
export { AuthorizedView, CancelButton, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar } from './components/index.mjs';
|
|
2
|
-
export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.mjs';
|
|
3
|
-
export { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel } from './types/index.mjs';
|
|
4
|
-
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.mjs';
|
|
5
|
-
export { Field } from './wrappers/index.mjs';
|
|
6
|
-
export { Field2 } from './wrappers2/index.mjs';
|
|
7
|
-
import * as react_hook_form from 'react-hook-form';
|
|
8
|
-
import { FieldValues, FieldPath, UseControllerProps, Control, Path, FieldError, PathValue } from 'react-hook-form';
|
|
9
|
-
import { ChipTypeMap, AutocompleteProps, Grid2Props, TextFieldVariants, SxProps, CheckboxProps, FormControlLabelProps, TextFieldProps, IconButtonProps, FormLabelProps, RadioProps, TextField } from '@mui/material';
|
|
10
|
-
import { A as AsyncSelectPayload } from './AsyncSelectPayload-Cz4bgak0.mjs';
|
|
11
|
-
export { a as AsyncSelectMultiPayload } from './AsyncSelectPayload-Cz4bgak0.mjs';
|
|
12
|
-
import * as react from 'react';
|
|
13
|
-
import { ReactNode, ChangeEvent } from 'react';
|
|
14
|
-
import { TimePickerProps, TimePickerSlotProps, PickerChangeHandlerContext, TimeValidationError, PickerValidDate as PickerValidDate$1, DateValidationError, DatePickerSlotProps, DatePickerProps } from '@mui/x-date-pickers';
|
|
15
|
-
import { PickerValidDate } from '@mui/x-date-pickers/models';
|
|
16
|
-
export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from './OptionItem-oN6XnOTJ.mjs';
|
|
17
|
-
import 'react/jsx-runtime';
|
|
18
|
-
import '@mui/material/OverridableComponent';
|
|
19
|
-
import '@mui/x-data-grid';
|
|
20
|
-
import '@mui/x-date-pickers/internals';
|
|
21
|
-
import 'zod';
|
|
22
|
-
|
|
23
|
-
type BaseAutocompleteProps$1<TOption, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined, ChipComponent extends React.ElementType> = Omit<AutocompleteProps<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>, "name" | "renderInput" | "onChange" | "value">;
|
|
24
|
-
type SelectMultiCascadeElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TOption extends Record<string, any> = Record<string, any>, Multiple extends boolean | undefined = true, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]> = BaseAutocompleteProps$1<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent> & {
|
|
25
|
-
rules?: UseControllerProps<TFieldValues, TName>["rules"];
|
|
26
|
-
name: TName;
|
|
27
|
-
dependsOn: TName;
|
|
28
|
-
control?: Control<TFieldValues>;
|
|
29
|
-
gridProps?: Grid2Props;
|
|
30
|
-
placeholder?: string;
|
|
31
|
-
label?: string;
|
|
32
|
-
variant?: TextFieldVariants;
|
|
33
|
-
sx?: SxProps;
|
|
34
|
-
labelKey?: keyof TOption;
|
|
35
|
-
valueKey?: keyof TOption;
|
|
36
|
-
multiple?: Multiple;
|
|
37
|
-
isEdit?: boolean;
|
|
38
|
-
initialValue?: any;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
type CheckboxGroupProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends number[] = number[]> = Omit<CheckboxProps, "name"> & {
|
|
42
|
-
name: TName;
|
|
43
|
-
control?: Control<TFieldValues>;
|
|
44
|
-
label?: FormControlLabelProps["label"];
|
|
45
|
-
labelProps?: Omit<FormControlLabelProps, "label" | "control">;
|
|
46
|
-
gridProps?: Grid2Props;
|
|
47
|
-
options: {
|
|
48
|
-
Value: number;
|
|
49
|
-
Label: string;
|
|
50
|
-
}[];
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
type AsyncSelectElementProps<TOption extends Record<string, any> = Record<string, any>, TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = Path<TFieldValues>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']> = Omit<AutocompleteProps<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>, 'name' | 'control' | 'ref' | 'multiple' | 'loading' | 'getOptionLabel' | 'getOptionKey' | 'isOptionEqualToValue' | 'options' | 'value' | 'filterSelectedOptions' | 'filterOptions' | 'onChange' | 'onInputChange' | 'renderInput'> & {
|
|
54
|
-
name: TName;
|
|
55
|
-
control?: Control<TFieldValues>;
|
|
56
|
-
gridProps?: Grid2Props;
|
|
57
|
-
placeholder?: string;
|
|
58
|
-
label?: string;
|
|
59
|
-
initialValue?: string | null;
|
|
60
|
-
queryFn: (data: AsyncSelectPayload) => Promise<TOption[] | undefined>;
|
|
61
|
-
variant?: TextFieldVariants;
|
|
62
|
-
sx?: SxProps;
|
|
63
|
-
labelKey?: string;
|
|
64
|
-
valueKey?: string;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
type SelectCascadeElementProps<TOption, TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]> = Omit<AutocompleteProps<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>, "name" | "renderInput" | "isOptionEqualToValue" | "getOptionLabel" | "disabled"> & {
|
|
68
|
-
rules?: UseControllerProps<TFieldValues, TName>["rules"];
|
|
69
|
-
name: TName;
|
|
70
|
-
dependsOn: TName;
|
|
71
|
-
control?: Control<TFieldValues>;
|
|
72
|
-
gridProps?: Grid2Props;
|
|
73
|
-
placeholder?: string;
|
|
74
|
-
label?: string;
|
|
75
|
-
variant?: TextFieldVariants;
|
|
76
|
-
disabled?: boolean;
|
|
77
|
-
sx?: SxProps;
|
|
78
|
-
isEdit?: boolean;
|
|
79
|
-
initialValue?: any;
|
|
80
|
-
labelKey?: keyof TOption;
|
|
81
|
-
valueKey?: keyof TOption;
|
|
82
|
-
textFieldProps?: Omit<TextFieldProps, "name">;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
type BaseAutocompleteProps<TOption, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined, ChipComponent extends React.ElementType> = Omit<AutocompleteProps<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>, "name" | "renderInput" | "onChange" | "value">;
|
|
86
|
-
type SelectMultiElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TOption extends Record<string, any> = Record<string, any>, Multiple extends boolean | undefined = true, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]> = BaseAutocompleteProps<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent> & {
|
|
87
|
-
rules?: UseControllerProps<TFieldValues, TName>["rules"];
|
|
88
|
-
name: TName;
|
|
89
|
-
control?: Control<TFieldValues>;
|
|
90
|
-
gridProps?: Grid2Props;
|
|
91
|
-
placeholder?: string;
|
|
92
|
-
label?: string;
|
|
93
|
-
variant?: TextFieldVariants;
|
|
94
|
-
sx?: SxProps;
|
|
95
|
-
labelKey?: keyof TOption;
|
|
96
|
-
valueKey?: keyof TOption;
|
|
97
|
-
multiple?: Multiple;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
type SelectElementProps<TOption, TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]> = Omit<AutocompleteProps<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>, "name" | "renderInput" | "isOptionEqualToValue" | "getOptionLabel" | "disabled"> & {
|
|
101
|
-
rules?: UseControllerProps<TFieldValues, TName>["rules"];
|
|
102
|
-
name: TName;
|
|
103
|
-
control?: Control<TFieldValues>;
|
|
104
|
-
gridProps?: Grid2Props;
|
|
105
|
-
placeholder?: string;
|
|
106
|
-
label?: string;
|
|
107
|
-
variant?: TextFieldVariants;
|
|
108
|
-
sx?: SxProps;
|
|
109
|
-
isEdit?: boolean;
|
|
110
|
-
disabled?: boolean;
|
|
111
|
-
initialValue?: any;
|
|
112
|
-
labelKey?: string;
|
|
113
|
-
valueKey?: keyof TOption;
|
|
114
|
-
textFieldProps?: Omit<TextFieldProps, "name">;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
type TimePickerElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends PickerValidDate = PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean = false> = Omit<TimePickerProps<TValue>, "value" | "renderInput"> & {
|
|
118
|
-
name: TName;
|
|
119
|
-
required?: boolean;
|
|
120
|
-
isDate?: boolean;
|
|
121
|
-
parseError?: (error: FieldError) => ReactNode;
|
|
122
|
-
rules?: UseControllerProps<TFieldValues, TName>["rules"];
|
|
123
|
-
control?: Control<TFieldValues>;
|
|
124
|
-
inputProps?: TextFieldProps;
|
|
125
|
-
helperText?: TextFieldProps["helperText"];
|
|
126
|
-
textReadOnly?: boolean;
|
|
127
|
-
slotProps?: Omit<TimePickerSlotProps<TValue, TEnableAccessibleFieldDOMStructure>, "textField">;
|
|
128
|
-
transform?: {
|
|
129
|
-
input?: (value: PathValue<TFieldValues, TName>) => TValue | null;
|
|
130
|
-
output?: (value: TValue | null, context: PickerChangeHandlerContext<TimeValidationError>) => PathValue<TFieldValues, TName>;
|
|
131
|
-
};
|
|
132
|
-
gridProps?: Grid2Props;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
type PasswordElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = Omit<TextFieldProps, "name"> & {
|
|
136
|
-
name: TName;
|
|
137
|
-
control?: Control<TFieldValues>;
|
|
138
|
-
iconColor?: IconButtonProps["color"];
|
|
139
|
-
renderIcon?: (password: boolean) => ReactNode;
|
|
140
|
-
gridProps?: Grid2Props;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
type RadioButtonGroupProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = {
|
|
144
|
-
rules?: UseControllerProps<TFieldValues, TName>["rules"];
|
|
145
|
-
options: TValue[];
|
|
146
|
-
helperText?: ReactNode;
|
|
147
|
-
name: TName;
|
|
148
|
-
required?: boolean;
|
|
149
|
-
parseError?: (error: FieldError) => ReactNode;
|
|
150
|
-
label?: string;
|
|
151
|
-
labelKey?: string;
|
|
152
|
-
valueKey?: string;
|
|
153
|
-
disabledKey?: string;
|
|
154
|
-
type?: "number" | "string";
|
|
155
|
-
emptyOptionLabel?: string;
|
|
156
|
-
onChange?: (value: TValue | string | undefined) => void;
|
|
157
|
-
returnObject?: boolean;
|
|
158
|
-
row?: boolean;
|
|
159
|
-
control?: Control<TFieldValues>;
|
|
160
|
-
labelProps?: Omit<FormControlLabelProps, "label" | "control" | "value">;
|
|
161
|
-
formLabelProps?: Omit<FormLabelProps, "required" | "error">;
|
|
162
|
-
radioProps?: RadioProps;
|
|
163
|
-
disabled?: boolean;
|
|
164
|
-
transform?: {
|
|
165
|
-
input?: (value: PathValue<TFieldValues, TName>) => TValue;
|
|
166
|
-
output?: (value: TValue | string | undefined) => PathValue<TFieldValues, TName>;
|
|
167
|
-
};
|
|
168
|
-
gridProps?: Grid2Props;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
type DatePickerElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends PickerValidDate$1 = PickerValidDate$1, TEnableAccessibleFieldDOMStructure extends boolean = false> = {
|
|
172
|
-
name: TName;
|
|
173
|
-
required?: boolean;
|
|
174
|
-
isDate?: boolean;
|
|
175
|
-
parseError?: (error: FieldError | DateValidationError) => ReactNode;
|
|
176
|
-
rules?: UseControllerProps<TFieldValues, TName>["rules"];
|
|
177
|
-
control?: Control<TFieldValues>;
|
|
178
|
-
inputProps?: TextFieldProps;
|
|
179
|
-
helperText?: TextFieldProps["helperText"];
|
|
180
|
-
label?: ReactNode;
|
|
181
|
-
placeholder?: string;
|
|
182
|
-
textReadOnly?: boolean;
|
|
183
|
-
slotProps?: Omit<DatePickerSlotProps<TValue, TEnableAccessibleFieldDOMStructure>, "textField">;
|
|
184
|
-
transform?: {
|
|
185
|
-
input?: (value: PathValue<TFieldValues, TName>) => TValue | null;
|
|
186
|
-
output?: (value: TValue | null, context: PickerChangeHandlerContext<DateValidationError>) => PathValue<TFieldValues, TName>;
|
|
187
|
-
};
|
|
188
|
-
gridProps?: Grid2Props;
|
|
189
|
-
datePickerProps?: Omit<DatePickerProps<TValue, TEnableAccessibleFieldDOMStructure>, "value" | "slotProps">;
|
|
190
|
-
variant?: TextFieldVariants;
|
|
191
|
-
sx?: SxProps;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
type CheckboxElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = Omit<CheckboxProps, "name"> & {
|
|
195
|
-
name: TName;
|
|
196
|
-
control?: Control<TFieldValues>;
|
|
197
|
-
label?: FormControlLabelProps["label"];
|
|
198
|
-
labelProps?: Omit<FormControlLabelProps, "label" | "control">;
|
|
199
|
-
gridProps?: Grid2Props;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
type TextFieldElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = {
|
|
203
|
-
rules?: UseControllerProps<TFieldValues, TName>["rules"];
|
|
204
|
-
name: TName;
|
|
205
|
-
parseError?: (error: FieldError) => ReactNode;
|
|
206
|
-
control?: Control<TFieldValues>;
|
|
207
|
-
component?: typeof TextField;
|
|
208
|
-
transform?: {
|
|
209
|
-
input?: (value: PathValue<TFieldValues, TName>) => TValue;
|
|
210
|
-
output?: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => PathValue<TFieldValues, TName>;
|
|
211
|
-
};
|
|
212
|
-
label?: string;
|
|
213
|
-
placeholder?: string;
|
|
214
|
-
textFieldProps?: Omit<TextFieldProps, "name">;
|
|
215
|
-
gridProps?: Grid2Props;
|
|
216
|
-
variant?: TextFieldVariants;
|
|
217
|
-
sx?: SxProps;
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
declare const Field3: {
|
|
221
|
-
Text: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, TValue = unknown>(props: TextFieldElementProps<TFieldValues, TName, TValue>) => JSX.Element;
|
|
222
|
-
Checkbox: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, TValue = unknown>(props: CheckboxElementProps<TFieldValues, TName, TValue>) => JSX.Element;
|
|
223
|
-
Date: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, TValue extends unknown = any>(props: DatePickerElementProps<TFieldValues, TName, TValue>) => JSX.Element;
|
|
224
|
-
RadioGroup: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, TValue = unknown>(props: RadioButtonGroupProps<TFieldValues, TName, TValue>) => JSX.Element;
|
|
225
|
-
Password: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>>(props: PasswordElementProps<TFieldValues, TName>) => JSX.Element;
|
|
226
|
-
Time: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, TValue extends unknown = any>(props: TimePickerElementProps<TFieldValues, TName, TValue>) => JSX.Element;
|
|
227
|
-
Select: <TOption extends Record<string, any> = Record<string, any>, TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = "div">(props: SelectElementProps<TOption, TFieldValues, TName, Multiple, DisableClearable, FreeSolo, ChipComponent>) => react.JSX.Element;
|
|
228
|
-
SelectMulti: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.Path<TFieldValues>, TOption extends Record<string, any> = Record<string, any>, Multiple extends boolean | undefined = true, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = "div">(props: SelectMultiElementProps<TFieldValues, TName, TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>) => react.JSX.Element;
|
|
229
|
-
SelectCascade: <TOption, TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = "div">(props: SelectCascadeElementProps<TOption, TFieldValues, TName, Multiple, DisableClearable, FreeSolo, ChipComponent>) => react.JSX.Element;
|
|
230
|
-
AsyncSelect: <TOption extends Record<string, any> = Record<string, any>, TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.Path<TFieldValues>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = "div">(props: AsyncSelectElementProps<TOption, TFieldValues, TName, Multiple, DisableClearable, FreeSolo, ChipComponent>) => react.JSX.Element;
|
|
231
|
-
AsyncMultiSelect: any;
|
|
232
|
-
CheckboxGroup: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, TValue extends number[] = number[]>(props: CheckboxGroupProps<TFieldValues, TName, TValue>) => JSX.Element;
|
|
233
|
-
SelectMultiCascadeElement: <TFieldValues extends react_hook_form.FieldValues = react_hook_form.FieldValues, TName extends react_hook_form.FieldPath<TFieldValues> = react_hook_form.FieldPath<TFieldValues>, TOption extends Record<string, any> = Record<string, any>, Multiple extends boolean | undefined = true, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = "div">(props: SelectMultiCascadeElementProps<TFieldValues, TName, TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>) => react.JSX.Element;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
export { AsyncSelectPayload, Field3 };
|