wcz-test 2.1.0 → 2.2.1
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/index.cjs +554 -1141
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +77 -21
- package/dist/index.d.ts +77 -21
- package/dist/index.js +525 -1117
- package/dist/index.js.map +1 -1
- package/package.json +7 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,20 +1,66 @@
|
|
|
1
|
-
import { ButtonProps, LinkProps, TabProps, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
|
|
1
|
+
import { TypographyProps, ChipProps, ButtonProps, LinkProps, TabProps, CssVarsThemeOptions, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { GridValidRowModel, GridRenderCellParams, GridColumnHeaderParams } from '@mui/x-data-grid-premium';
|
|
2
4
|
import { LinkComponent, ErrorComponentProps } from '@tanstack/react-router';
|
|
3
5
|
import * as react from 'react';
|
|
4
6
|
import react__default, { FC } from 'react';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
7
|
import { Navigation } from '@toolpad/core/AppProvider';
|
|
7
8
|
export { Navigate } from '@toolpad/core/AppProvider';
|
|
8
|
-
import { TFunction
|
|
9
|
+
import { TFunction } from 'i18next';
|
|
9
10
|
export { uuidv7 } from 'uuidv7';
|
|
10
11
|
import * as axios from 'axios';
|
|
11
12
|
import { DateTimePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
12
|
-
import {
|
|
13
|
+
import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
|
|
13
14
|
import * as _tanstack_react_form from '@tanstack/react-form';
|
|
14
15
|
import * as _tanstack_form_core from '@tanstack/form-core';
|
|
15
16
|
export { useDialogs } from '@toolpad/core/useDialogs';
|
|
17
|
+
export { useNotifications } from '@toolpad/core/useNotifications';
|
|
16
18
|
export { useLocalStorageState } from '@toolpad/core/useLocalStorageState';
|
|
17
19
|
|
|
20
|
+
var Layout = {
|
|
21
|
+
Logout: "Logout",
|
|
22
|
+
LogIn: "Log In",
|
|
23
|
+
Language: "Language",
|
|
24
|
+
Appearance: "Appearance",
|
|
25
|
+
Light: "Light",
|
|
26
|
+
Dark: "Dark",
|
|
27
|
+
System: "System",
|
|
28
|
+
Homepage: "Homepage",
|
|
29
|
+
ThisPageCouldNotBeFound: "This page could not be found.",
|
|
30
|
+
Settings: "Settings",
|
|
31
|
+
Unauthorized: "Unauthorized",
|
|
32
|
+
DevelopmentDialogTitle: "Testing environment",
|
|
33
|
+
DevelopmentDialogContent: "You are in a test environment. Data integrity is not guaranteed and application behavior may be unpredictable. Please proceed with caution and report any unexpected behavior to the development team."
|
|
34
|
+
};
|
|
35
|
+
var en = {
|
|
36
|
+
Layout: Layout
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
type TranslationKeys = typeof en;
|
|
40
|
+
|
|
41
|
+
declare module 'i18next' {
|
|
42
|
+
interface CustomTypeOptions {
|
|
43
|
+
resources: {
|
|
44
|
+
translation: TranslationKeys;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface TypographyWithIconProps extends TypographyProps {
|
|
50
|
+
startIcon?: React.ReactNode;
|
|
51
|
+
endIcon?: React.ReactNode;
|
|
52
|
+
}
|
|
53
|
+
declare const TypographyWithIcon: React.FC<TypographyWithIconProps>;
|
|
54
|
+
|
|
55
|
+
interface ChipInputCellProps<T extends GridValidRowModel> {
|
|
56
|
+
params: GridRenderCellParams<T>;
|
|
57
|
+
slotProps?: ChipProps;
|
|
58
|
+
getLabel?: (object: T) => string | number;
|
|
59
|
+
}
|
|
60
|
+
declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => react_jsx_runtime.JSX.Element | null;
|
|
61
|
+
|
|
62
|
+
declare const EditableColumnHeader: <T extends GridValidRowModel>({ colDef }: GridColumnHeaderParams<T>) => react_jsx_runtime.JSX.Element;
|
|
63
|
+
|
|
18
64
|
interface MUIButtonLinkProps extends ButtonProps<'a'> {
|
|
19
65
|
}
|
|
20
66
|
declare const MUIButtonLinkComponent: react__default.ForwardRefExoticComponent<Omit<MUIButtonLinkProps, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -37,15 +83,24 @@ interface RouterErrorProps {
|
|
|
37
83
|
}
|
|
38
84
|
declare const RouterError: FC<RouterErrorProps>;
|
|
39
85
|
|
|
86
|
+
interface User {
|
|
87
|
+
employeeId: string;
|
|
88
|
+
name: string;
|
|
89
|
+
department: string;
|
|
90
|
+
email?: string;
|
|
91
|
+
company: string;
|
|
92
|
+
category: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
40
95
|
interface NavigationParams {
|
|
41
|
-
user:
|
|
96
|
+
user: User;
|
|
42
97
|
t: TFunction<"translation", undefined>;
|
|
43
|
-
i18n: i18n;
|
|
44
98
|
}
|
|
45
99
|
|
|
46
100
|
interface ProvidersProps {
|
|
47
|
-
getNavigation: (params: NavigationParams) => Navigation;
|
|
48
101
|
title: string;
|
|
102
|
+
getNavigation?: (params: NavigationParams) => Navigation;
|
|
103
|
+
theme?: Pick<CssVarsThemeOptions, 'colorSchemes' | 'components'>;
|
|
49
104
|
children: React.ReactNode;
|
|
50
105
|
}
|
|
51
106
|
declare const LayoutProvider: FC<ProvidersProps>;
|
|
@@ -61,11 +116,11 @@ declare const wczApiClient: axios.AxiosInstance;
|
|
|
61
116
|
|
|
62
117
|
type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
|
|
63
118
|
|
|
64
|
-
interface FormDateTimePickerProps extends Omit<DateTimePickerProps
|
|
119
|
+
interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
|
|
65
120
|
textFieldProps?: TextFieldProps;
|
|
66
121
|
}
|
|
67
122
|
|
|
68
|
-
interface FormDatePickerProps extends Omit<DatePickerProps
|
|
123
|
+
interface FormDatePickerProps extends Omit<DatePickerProps, FormOmittedProps> {
|
|
69
124
|
textFieldProps?: TextFieldProps;
|
|
70
125
|
}
|
|
71
126
|
|
|
@@ -94,11 +149,18 @@ interface FormAutocompleteProps extends Omit<AutocompleteProps<any, boolean, boo
|
|
|
94
149
|
textFieldProps?: Omit<TextFieldProps, FormOmittedProps>;
|
|
95
150
|
}
|
|
96
151
|
|
|
152
|
+
interface FormTextFieldProps$1 extends Omit<TextFieldProps, FormOmittedProps> {
|
|
153
|
+
}
|
|
154
|
+
interface FormNumberFieldProps extends FormTextFieldProps$1 {
|
|
155
|
+
defaultValue?: number | null;
|
|
156
|
+
options?: Omit<NumericFormatProps<InputAttributes>, "customInput" | "onValueChange" | keyof InputAttributes>;
|
|
157
|
+
}
|
|
158
|
+
|
|
97
159
|
interface FormTextFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
|
|
98
|
-
type?: "
|
|
160
|
+
type?: "color" | "email" | "password" | "search" | "tel" | "text" | "url";
|
|
99
161
|
}
|
|
100
162
|
|
|
101
|
-
interface FormSubmitButtonProps extends Omit<ButtonProps, "loading" | "disabled" | "onClick"> {
|
|
163
|
+
interface FormSubmitButtonProps extends Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type"> {
|
|
102
164
|
}
|
|
103
165
|
|
|
104
166
|
declare const useFieldContext: <TData>() => _tanstack_form_core.FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
@@ -108,6 +170,7 @@ declare const useLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.Fo
|
|
|
108
170
|
}> & {
|
|
109
171
|
AppField: _tanstack_react_form.FieldComponent<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, NoInfer<{
|
|
110
172
|
readonly TextField: react.FC<FormTextFieldProps>;
|
|
173
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
111
174
|
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
112
175
|
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
113
176
|
readonly Switch: react.FC<FormSwitchProps>;
|
|
@@ -120,6 +183,7 @@ declare const useLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.Fo
|
|
|
120
183
|
};
|
|
121
184
|
declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends Record<string, unknown> = {}>({ render, props, }: _tanstack_react_form.WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, {
|
|
122
185
|
readonly TextField: react.FC<FormTextFieldProps>;
|
|
186
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
123
187
|
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
124
188
|
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
125
189
|
readonly Switch: react.FC<FormSwitchProps>;
|
|
@@ -135,6 +199,7 @@ declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.F
|
|
|
135
199
|
}> & {
|
|
136
200
|
AppField: _tanstack_react_form.FieldComponent<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, NoInfer<{
|
|
137
201
|
readonly TextField: react.FC<FormTextFieldProps>;
|
|
202
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
138
203
|
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
139
204
|
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
140
205
|
readonly Switch: react.FC<FormSwitchProps>;
|
|
@@ -147,13 +212,4 @@ declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.F
|
|
|
147
212
|
};
|
|
148
213
|
}>) => react.JSX.Element;
|
|
149
214
|
|
|
150
|
-
|
|
151
|
-
employeeId: string;
|
|
152
|
-
name: string;
|
|
153
|
-
department: string;
|
|
154
|
-
email?: string;
|
|
155
|
-
company: string;
|
|
156
|
-
category: string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export { LayoutProvider, type NavigationParams, Platform, RouterButton, RouterError, RouterLink, RouterNotFound, RouterTab, type User, getContrastTextColor, useFieldContext, useFormContext, useLayoutForm, wczApiClient, withLayoutForm };
|
|
215
|
+
export { ChipInputCell, EditableColumnHeader, LayoutProvider, type NavigationParams, Platform, RouterButton, RouterError, RouterLink, RouterNotFound, RouterTab, TypographyWithIcon, type User, getContrastTextColor, useFieldContext, useFormContext, useLayoutForm, wczApiClient, withLayoutForm };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,66 @@
|
|
|
1
|
-
import { ButtonProps, LinkProps, TabProps, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
|
|
1
|
+
import { TypographyProps, ChipProps, ButtonProps, LinkProps, TabProps, CssVarsThemeOptions, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { GridValidRowModel, GridRenderCellParams, GridColumnHeaderParams } from '@mui/x-data-grid-premium';
|
|
2
4
|
import { LinkComponent, ErrorComponentProps } from '@tanstack/react-router';
|
|
3
5
|
import * as react from 'react';
|
|
4
6
|
import react__default, { FC } from 'react';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
7
|
import { Navigation } from '@toolpad/core/AppProvider';
|
|
7
8
|
export { Navigate } from '@toolpad/core/AppProvider';
|
|
8
|
-
import { TFunction
|
|
9
|
+
import { TFunction } from 'i18next';
|
|
9
10
|
export { uuidv7 } from 'uuidv7';
|
|
10
11
|
import * as axios from 'axios';
|
|
11
12
|
import { DateTimePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
12
|
-
import {
|
|
13
|
+
import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
|
|
13
14
|
import * as _tanstack_react_form from '@tanstack/react-form';
|
|
14
15
|
import * as _tanstack_form_core from '@tanstack/form-core';
|
|
15
16
|
export { useDialogs } from '@toolpad/core/useDialogs';
|
|
17
|
+
export { useNotifications } from '@toolpad/core/useNotifications';
|
|
16
18
|
export { useLocalStorageState } from '@toolpad/core/useLocalStorageState';
|
|
17
19
|
|
|
20
|
+
var Layout = {
|
|
21
|
+
Logout: "Logout",
|
|
22
|
+
LogIn: "Log In",
|
|
23
|
+
Language: "Language",
|
|
24
|
+
Appearance: "Appearance",
|
|
25
|
+
Light: "Light",
|
|
26
|
+
Dark: "Dark",
|
|
27
|
+
System: "System",
|
|
28
|
+
Homepage: "Homepage",
|
|
29
|
+
ThisPageCouldNotBeFound: "This page could not be found.",
|
|
30
|
+
Settings: "Settings",
|
|
31
|
+
Unauthorized: "Unauthorized",
|
|
32
|
+
DevelopmentDialogTitle: "Testing environment",
|
|
33
|
+
DevelopmentDialogContent: "You are in a test environment. Data integrity is not guaranteed and application behavior may be unpredictable. Please proceed with caution and report any unexpected behavior to the development team."
|
|
34
|
+
};
|
|
35
|
+
var en = {
|
|
36
|
+
Layout: Layout
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
type TranslationKeys = typeof en;
|
|
40
|
+
|
|
41
|
+
declare module 'i18next' {
|
|
42
|
+
interface CustomTypeOptions {
|
|
43
|
+
resources: {
|
|
44
|
+
translation: TranslationKeys;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface TypographyWithIconProps extends TypographyProps {
|
|
50
|
+
startIcon?: React.ReactNode;
|
|
51
|
+
endIcon?: React.ReactNode;
|
|
52
|
+
}
|
|
53
|
+
declare const TypographyWithIcon: React.FC<TypographyWithIconProps>;
|
|
54
|
+
|
|
55
|
+
interface ChipInputCellProps<T extends GridValidRowModel> {
|
|
56
|
+
params: GridRenderCellParams<T>;
|
|
57
|
+
slotProps?: ChipProps;
|
|
58
|
+
getLabel?: (object: T) => string | number;
|
|
59
|
+
}
|
|
60
|
+
declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => react_jsx_runtime.JSX.Element | null;
|
|
61
|
+
|
|
62
|
+
declare const EditableColumnHeader: <T extends GridValidRowModel>({ colDef }: GridColumnHeaderParams<T>) => react_jsx_runtime.JSX.Element;
|
|
63
|
+
|
|
18
64
|
interface MUIButtonLinkProps extends ButtonProps<'a'> {
|
|
19
65
|
}
|
|
20
66
|
declare const MUIButtonLinkComponent: react__default.ForwardRefExoticComponent<Omit<MUIButtonLinkProps, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -37,15 +83,24 @@ interface RouterErrorProps {
|
|
|
37
83
|
}
|
|
38
84
|
declare const RouterError: FC<RouterErrorProps>;
|
|
39
85
|
|
|
86
|
+
interface User {
|
|
87
|
+
employeeId: string;
|
|
88
|
+
name: string;
|
|
89
|
+
department: string;
|
|
90
|
+
email?: string;
|
|
91
|
+
company: string;
|
|
92
|
+
category: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
40
95
|
interface NavigationParams {
|
|
41
|
-
user:
|
|
96
|
+
user: User;
|
|
42
97
|
t: TFunction<"translation", undefined>;
|
|
43
|
-
i18n: i18n;
|
|
44
98
|
}
|
|
45
99
|
|
|
46
100
|
interface ProvidersProps {
|
|
47
|
-
getNavigation: (params: NavigationParams) => Navigation;
|
|
48
101
|
title: string;
|
|
102
|
+
getNavigation?: (params: NavigationParams) => Navigation;
|
|
103
|
+
theme?: Pick<CssVarsThemeOptions, 'colorSchemes' | 'components'>;
|
|
49
104
|
children: React.ReactNode;
|
|
50
105
|
}
|
|
51
106
|
declare const LayoutProvider: FC<ProvidersProps>;
|
|
@@ -61,11 +116,11 @@ declare const wczApiClient: axios.AxiosInstance;
|
|
|
61
116
|
|
|
62
117
|
type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
|
|
63
118
|
|
|
64
|
-
interface FormDateTimePickerProps extends Omit<DateTimePickerProps
|
|
119
|
+
interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
|
|
65
120
|
textFieldProps?: TextFieldProps;
|
|
66
121
|
}
|
|
67
122
|
|
|
68
|
-
interface FormDatePickerProps extends Omit<DatePickerProps
|
|
123
|
+
interface FormDatePickerProps extends Omit<DatePickerProps, FormOmittedProps> {
|
|
69
124
|
textFieldProps?: TextFieldProps;
|
|
70
125
|
}
|
|
71
126
|
|
|
@@ -94,11 +149,18 @@ interface FormAutocompleteProps extends Omit<AutocompleteProps<any, boolean, boo
|
|
|
94
149
|
textFieldProps?: Omit<TextFieldProps, FormOmittedProps>;
|
|
95
150
|
}
|
|
96
151
|
|
|
152
|
+
interface FormTextFieldProps$1 extends Omit<TextFieldProps, FormOmittedProps> {
|
|
153
|
+
}
|
|
154
|
+
interface FormNumberFieldProps extends FormTextFieldProps$1 {
|
|
155
|
+
defaultValue?: number | null;
|
|
156
|
+
options?: Omit<NumericFormatProps<InputAttributes>, "customInput" | "onValueChange" | keyof InputAttributes>;
|
|
157
|
+
}
|
|
158
|
+
|
|
97
159
|
interface FormTextFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
|
|
98
|
-
type?: "
|
|
160
|
+
type?: "color" | "email" | "password" | "search" | "tel" | "text" | "url";
|
|
99
161
|
}
|
|
100
162
|
|
|
101
|
-
interface FormSubmitButtonProps extends Omit<ButtonProps, "loading" | "disabled" | "onClick"> {
|
|
163
|
+
interface FormSubmitButtonProps extends Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type"> {
|
|
102
164
|
}
|
|
103
165
|
|
|
104
166
|
declare const useFieldContext: <TData>() => _tanstack_form_core.FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
@@ -108,6 +170,7 @@ declare const useLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.Fo
|
|
|
108
170
|
}> & {
|
|
109
171
|
AppField: _tanstack_react_form.FieldComponent<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, NoInfer<{
|
|
110
172
|
readonly TextField: react.FC<FormTextFieldProps>;
|
|
173
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
111
174
|
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
112
175
|
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
113
176
|
readonly Switch: react.FC<FormSwitchProps>;
|
|
@@ -120,6 +183,7 @@ declare const useLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.Fo
|
|
|
120
183
|
};
|
|
121
184
|
declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends Record<string, unknown> = {}>({ render, props, }: _tanstack_react_form.WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, {
|
|
122
185
|
readonly TextField: react.FC<FormTextFieldProps>;
|
|
186
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
123
187
|
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
124
188
|
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
125
189
|
readonly Switch: react.FC<FormSwitchProps>;
|
|
@@ -135,6 +199,7 @@ declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.F
|
|
|
135
199
|
}> & {
|
|
136
200
|
AppField: _tanstack_react_form.FieldComponent<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, NoInfer<{
|
|
137
201
|
readonly TextField: react.FC<FormTextFieldProps>;
|
|
202
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
138
203
|
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
139
204
|
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
140
205
|
readonly Switch: react.FC<FormSwitchProps>;
|
|
@@ -147,13 +212,4 @@ declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.F
|
|
|
147
212
|
};
|
|
148
213
|
}>) => react.JSX.Element;
|
|
149
214
|
|
|
150
|
-
|
|
151
|
-
employeeId: string;
|
|
152
|
-
name: string;
|
|
153
|
-
department: string;
|
|
154
|
-
email?: string;
|
|
155
|
-
company: string;
|
|
156
|
-
category: string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export { LayoutProvider, type NavigationParams, Platform, RouterButton, RouterError, RouterLink, RouterNotFound, RouterTab, type User, getContrastTextColor, useFieldContext, useFormContext, useLayoutForm, wczApiClient, withLayoutForm };
|
|
215
|
+
export { ChipInputCell, EditableColumnHeader, LayoutProvider, type NavigationParams, Platform, RouterButton, RouterError, RouterLink, RouterNotFound, RouterTab, TypographyWithIcon, type User, getContrastTextColor, useFieldContext, useFormContext, useLayoutForm, wczApiClient, withLayoutForm };
|