@gnwebsoft/ui 2.18.48 → 2.18.50
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 +6 -1883
- package/dist/index.mjs +4 -1881
- package/dist/wrappers3/index.js +8 -0
- package/dist/wrappers3/index.mjs +8 -0
- package/package.json +5 -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/dist/index.d.ts
DELETED
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
export { AuthorizedView, CancelButton, ClearButton, FilterButton, FilterWrapper, FormWrapper, LabelText, ListWrapper, SimpleButton, SimpleToolbar } from './components/index.js';
|
|
2
|
-
export { UseTransformOptions, UseTransformReturn, useTransform } from './hooks/index.js';
|
|
3
|
-
export { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel } from './types/index.js';
|
|
4
|
-
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools } from './utils/index.js';
|
|
5
|
-
export { Field } from './wrappers/index.js';
|
|
6
|
-
export { Field2 } from './wrappers2/index.js';
|
|
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.js';
|
|
11
|
-
export { a as AsyncSelectMultiPayload } from './AsyncSelectPayload-Cz4bgak0.js';
|
|
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.js';
|
|
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 };
|
package/dist/types/index.d.mts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { GridSortModel } from '@mui/x-data-grid';
|
|
2
|
-
export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from '../AsyncSelectPayload-Cz4bgak0.mjs';
|
|
3
|
-
export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from '../OptionItem-oN6XnOTJ.mjs';
|
|
4
|
-
|
|
5
|
-
type ValidationErrors = {
|
|
6
|
-
[field: string]: string | string[] | boolean | {
|
|
7
|
-
key: string;
|
|
8
|
-
message: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
type ApiResponse<TModel> = {
|
|
13
|
-
type?: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
status?: number;
|
|
16
|
-
traceId?: string;
|
|
17
|
-
errors?: ValidationErrors;
|
|
18
|
-
modelErrors?: boolean;
|
|
19
|
-
apiData?: TModel;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
type OperationResponse = {
|
|
23
|
-
id?: number;
|
|
24
|
-
rowsAffected: number;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
type PostModel<TFilterModel> = {
|
|
28
|
-
filterModel?: TFilterModel;
|
|
29
|
-
pageOffset: number;
|
|
30
|
-
pageSize: number;
|
|
31
|
-
sortField: string | null;
|
|
32
|
-
sortOrder: "asc" | "desc" | null | undefined;
|
|
33
|
-
sortModel?: GridSortModel;
|
|
34
|
-
};
|
|
35
|
-
type ListResponse<TGridModel> = {
|
|
36
|
-
Data: TGridModel[];
|
|
37
|
-
Total: number;
|
|
38
|
-
};
|
|
39
|
-
type ValueLabel = {
|
|
40
|
-
Value: number | string;
|
|
41
|
-
Label: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export type { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel };
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { GridSortModel } from '@mui/x-data-grid';
|
|
2
|
-
export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from '../AsyncSelectPayload-Cz4bgak0.js';
|
|
3
|
-
export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from '../OptionItem-oN6XnOTJ.js';
|
|
4
|
-
|
|
5
|
-
type ValidationErrors = {
|
|
6
|
-
[field: string]: string | string[] | boolean | {
|
|
7
|
-
key: string;
|
|
8
|
-
message: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
type ApiResponse<TModel> = {
|
|
13
|
-
type?: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
status?: number;
|
|
16
|
-
traceId?: string;
|
|
17
|
-
errors?: ValidationErrors;
|
|
18
|
-
modelErrors?: boolean;
|
|
19
|
-
apiData?: TModel;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
type OperationResponse = {
|
|
23
|
-
id?: number;
|
|
24
|
-
rowsAffected: number;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
type PostModel<TFilterModel> = {
|
|
28
|
-
filterModel?: TFilterModel;
|
|
29
|
-
pageOffset: number;
|
|
30
|
-
pageSize: number;
|
|
31
|
-
sortField: string | null;
|
|
32
|
-
sortOrder: "asc" | "desc" | null | undefined;
|
|
33
|
-
sortModel?: GridSortModel;
|
|
34
|
-
};
|
|
35
|
-
type ListResponse<TGridModel> = {
|
|
36
|
-
Data: TGridModel[];
|
|
37
|
-
Total: number;
|
|
38
|
-
};
|
|
39
|
-
type ValueLabel = {
|
|
40
|
-
Value: number | string;
|
|
41
|
-
Label: string;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export type { ApiResponse, ListResponse, OperationResponse, PostModel, ValidationErrors, ValueLabel };
|
package/dist/utils/index.d.mts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { PostModel, ApiResponse, ListResponse, ValidationErrors } from '../types/index.mjs';
|
|
2
|
-
import { PickerValidDate } from '@mui/x-date-pickers';
|
|
3
|
-
import { useLocalizationContext } from '@mui/x-date-pickers/internals';
|
|
4
|
-
import { FieldValues, UseFormSetError } from 'react-hook-form';
|
|
5
|
-
import { z } from 'zod';
|
|
6
|
-
import '@mui/x-data-grid';
|
|
7
|
-
import '../AsyncSelectPayload-Cz4bgak0.mjs';
|
|
8
|
-
import '../OptionItem-oN6XnOTJ.mjs';
|
|
9
|
-
|
|
10
|
-
declare class api {
|
|
11
|
-
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
12
|
-
static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
13
|
-
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
14
|
-
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
15
|
-
static put<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
16
|
-
static fetch(url: string, options?: any): Promise<Response>;
|
|
17
|
-
static tempFetch<T>(url: string, options?: any): Promise<ApiResponse<T>>;
|
|
18
|
-
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare class api2 {
|
|
22
|
-
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
23
|
-
static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
24
|
-
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
25
|
-
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
26
|
-
static put<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
27
|
-
static fetch(url: string, options?: any): Promise<Response>;
|
|
28
|
-
static tempFetch<T>(url: string, options?: any): Promise<ApiResponse<T>>;
|
|
29
|
-
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare const flattenObjectKeys: (obj: any, prefix?: string) => {
|
|
33
|
-
[x: string]: any;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
declare function getTimezone<TDate extends PickerValidDate>(adapter: ReturnType<typeof useLocalizationContext>, value: TDate): string | null;
|
|
37
|
-
|
|
38
|
-
type HandleServerErrorsType<TFieldValues extends FieldValues = FieldValues> = {
|
|
39
|
-
errors?: ValidationErrors;
|
|
40
|
-
setError: UseFormSetError<TFieldValues>;
|
|
41
|
-
};
|
|
42
|
-
declare const handleServerErrors: <TFieldValues extends FieldValues = FieldValues>(args: HandleServerErrorsType<TFieldValues>) => void;
|
|
43
|
-
|
|
44
|
-
declare function propertyExists<X, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown>;
|
|
45
|
-
|
|
46
|
-
declare function readValueAsDate<TDate extends PickerValidDate>(adapter: ReturnType<typeof useLocalizationContext>, value: string | null | TDate): TDate | null;
|
|
47
|
-
|
|
48
|
-
declare const removeLeadingTrailingSlashes: (route: string) => string;
|
|
49
|
-
|
|
50
|
-
declare const schemaTools: {
|
|
51
|
-
date: ({ message }: {
|
|
52
|
-
message?: string;
|
|
53
|
-
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
54
|
-
nullableDate: ({ message }?: {
|
|
55
|
-
message?: string | null;
|
|
56
|
-
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools };
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { PostModel, ApiResponse, ListResponse, ValidationErrors } from '../types/index.js';
|
|
2
|
-
import { PickerValidDate } from '@mui/x-date-pickers';
|
|
3
|
-
import { useLocalizationContext } from '@mui/x-date-pickers/internals';
|
|
4
|
-
import { FieldValues, UseFormSetError } from 'react-hook-form';
|
|
5
|
-
import { z } from 'zod';
|
|
6
|
-
import '@mui/x-data-grid';
|
|
7
|
-
import '../AsyncSelectPayload-Cz4bgak0.js';
|
|
8
|
-
import '../OptionItem-oN6XnOTJ.js';
|
|
9
|
-
|
|
10
|
-
declare class api {
|
|
11
|
-
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
12
|
-
static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
13
|
-
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
14
|
-
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
15
|
-
static put<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
16
|
-
static fetch(url: string, options?: any): Promise<Response>;
|
|
17
|
-
static tempFetch<T>(url: string, options?: any): Promise<ApiResponse<T>>;
|
|
18
|
-
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare class api2 {
|
|
22
|
-
static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
|
|
23
|
-
static post<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
24
|
-
static get<T>(url: string): Promise<ApiResponse<T>>;
|
|
25
|
-
static delete<T>(url: string): Promise<ApiResponse<T>>;
|
|
26
|
-
static put<T>(url: string, body?: any): Promise<ApiResponse<T>>;
|
|
27
|
-
static fetch(url: string, options?: any): Promise<Response>;
|
|
28
|
-
static tempFetch<T>(url: string, options?: any): Promise<ApiResponse<T>>;
|
|
29
|
-
static upload<T>(url: string, formData: FormData): Promise<ApiResponse<T>>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare const flattenObjectKeys: (obj: any, prefix?: string) => {
|
|
33
|
-
[x: string]: any;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
declare function getTimezone<TDate extends PickerValidDate>(adapter: ReturnType<typeof useLocalizationContext>, value: TDate): string | null;
|
|
37
|
-
|
|
38
|
-
type HandleServerErrorsType<TFieldValues extends FieldValues = FieldValues> = {
|
|
39
|
-
errors?: ValidationErrors;
|
|
40
|
-
setError: UseFormSetError<TFieldValues>;
|
|
41
|
-
};
|
|
42
|
-
declare const handleServerErrors: <TFieldValues extends FieldValues = FieldValues>(args: HandleServerErrorsType<TFieldValues>) => void;
|
|
43
|
-
|
|
44
|
-
declare function propertyExists<X, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown>;
|
|
45
|
-
|
|
46
|
-
declare function readValueAsDate<TDate extends PickerValidDate>(adapter: ReturnType<typeof useLocalizationContext>, value: string | null | TDate): TDate | null;
|
|
47
|
-
|
|
48
|
-
declare const removeLeadingTrailingSlashes: (route: string) => string;
|
|
49
|
-
|
|
50
|
-
declare const schemaTools: {
|
|
51
|
-
date: ({ message }: {
|
|
52
|
-
message?: string;
|
|
53
|
-
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
54
|
-
nullableDate: ({ message }?: {
|
|
55
|
-
message?: string | null;
|
|
56
|
-
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, propertyExists, readValueAsDate, removeLeadingTrailingSlashes, schemaTools };
|