wcz-test 3.2.0 → 3.4.0
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.d.ts +172 -88
- package/dist/index.js +1698 -900
- package/dist/index.js.map +1 -1
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { TypographyProps,
|
|
2
|
-
export { PageHeader } from '@toolpad/core/PageContainer';
|
|
1
|
+
import { TypographyProps, SxProps, Theme, BoxProps, ChipProps, ButtonProps, IconButtonProps, LinkProps, TabProps, ListItemButtonProps, CssVarsThemeOptions, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
|
|
3
2
|
import * as react from 'react';
|
|
4
|
-
import react__default, { FC } from 'react';
|
|
3
|
+
import react__default, { FC, ReactNode, ComponentType } from 'react';
|
|
5
4
|
import { DropzoneOptions } from 'react-dropzone';
|
|
6
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
6
|
import { GridValidRowModel, GridRenderCellParams, GridColumnHeaderParams, GridActionsCellItemProps } from '@mui/x-data-grid-premium';
|
|
8
|
-
import { LinkComponent, ErrorComponentProps } from '@tanstack/react-router';
|
|
9
|
-
import { Navigation } from '@toolpad/core/AppProvider';
|
|
10
|
-
export { Navigation } from '@toolpad/core/AppProvider';
|
|
11
|
-
import { DashboardLayoutProps } from '@toolpad/core/DashboardLayout';
|
|
7
|
+
import { LinkComponent, ErrorComponentProps, LinkOptions } from '@tanstack/react-router';
|
|
12
8
|
import { TFunction } from 'i18next';
|
|
13
9
|
export { t } from 'i18next';
|
|
14
10
|
export { uuidv7 } from 'uuidv7';
|
|
@@ -17,9 +13,7 @@ import { DateTimePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
|
17
13
|
import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
|
|
18
14
|
import * as _tanstack_react_form from '@tanstack/react-form';
|
|
19
15
|
import * as _tanstack_form_core from '@tanstack/form-core';
|
|
20
|
-
export {
|
|
21
|
-
export { useNotifications } from '@toolpad/core/useNotifications';
|
|
22
|
-
export { useLocalStorageState } from '@toolpad/core/useLocalStorageState';
|
|
16
|
+
export { default as useLocalStorageState } from 'use-local-storage-state';
|
|
23
17
|
export { useTranslation } from 'react-i18next';
|
|
24
18
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
25
19
|
import { DefinedInitialDataOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
@@ -31,13 +25,64 @@ interface TypographyWithIconProps extends TypographyProps {
|
|
|
31
25
|
}
|
|
32
26
|
declare const TypographyWithIcon: React.FC<TypographyWithIconProps>;
|
|
33
27
|
|
|
34
|
-
|
|
28
|
+
interface PageHeaderProps {
|
|
29
|
+
title: string;
|
|
30
|
+
action?: ReactNode;
|
|
31
|
+
sx?: SxProps<Theme>;
|
|
32
|
+
}
|
|
33
|
+
declare const PageHeader: FC<PageHeaderProps>;
|
|
34
|
+
|
|
35
|
+
declare const TableContainer: FC<BoxProps>;
|
|
35
36
|
|
|
36
37
|
interface DropzoneProps extends DropzoneOptions {
|
|
37
38
|
sx?: SxProps<Theme>;
|
|
38
39
|
}
|
|
39
40
|
declare const Dropzone: FC<DropzoneProps>;
|
|
40
41
|
|
|
42
|
+
interface FileMeta {
|
|
43
|
+
id: string;
|
|
44
|
+
subId: string;
|
|
45
|
+
appName: string;
|
|
46
|
+
fileName: string;
|
|
47
|
+
fileExtension: string;
|
|
48
|
+
fileSize: number;
|
|
49
|
+
mediaSubType: string;
|
|
50
|
+
mediaType: string;
|
|
51
|
+
mimeType: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
type FileActions = {
|
|
55
|
+
download?: boolean;
|
|
56
|
+
delete?: boolean;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
type FileViewerGridItemBar = "hidden" | "always" | "onMouseEnter";
|
|
60
|
+
interface FileViewerGridProps {
|
|
61
|
+
size?: number;
|
|
62
|
+
itemBar?: FileViewerGridItemBar;
|
|
63
|
+
sx?: SxProps<Theme>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface FileViewerListProps {
|
|
67
|
+
sx?: SxProps<Theme>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
interface FileViewerComponent {
|
|
71
|
+
Grid: ComponentType<FileViewerGridProps>;
|
|
72
|
+
List: ComponentType<FileViewerListProps>;
|
|
73
|
+
}
|
|
74
|
+
interface FileViewerProps {
|
|
75
|
+
/** Insert your record ID (can be multiple splitted by comma) */
|
|
76
|
+
subId: string | undefined | null;
|
|
77
|
+
onDelete?: (params: {
|
|
78
|
+
remainingFileMetas: FileMeta[];
|
|
79
|
+
deletedFileMeta: FileMeta;
|
|
80
|
+
}) => void;
|
|
81
|
+
actions?: FileActions;
|
|
82
|
+
children: (component: FileViewerComponent) => ReactNode;
|
|
83
|
+
}
|
|
84
|
+
declare const FileViewer: FC<FileViewerProps>;
|
|
85
|
+
|
|
41
86
|
interface ChipInputCellProps<T extends GridValidRowModel> {
|
|
42
87
|
params: GridRenderCellParams<T>;
|
|
43
88
|
slotProps?: ChipProps;
|
|
@@ -47,20 +92,23 @@ declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps,
|
|
|
47
92
|
|
|
48
93
|
declare const EditableColumnHeader: <T extends GridValidRowModel>({ colDef }: GridColumnHeaderParams<T>) => react_jsx_runtime.JSX.Element;
|
|
49
94
|
|
|
50
|
-
declare const Component$
|
|
51
|
-
declare const RouterButton: LinkComponent<typeof Component$
|
|
95
|
+
declare const Component$5: react__default.ForwardRefExoticComponent<Omit<ButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
96
|
+
declare const RouterButton: LinkComponent<typeof Component$5>;
|
|
52
97
|
|
|
53
|
-
declare const Component$
|
|
54
|
-
declare const RouterGridActionsCellItem: LinkComponent<typeof Component$
|
|
98
|
+
declare const Component$4: react__default.ForwardRefExoticComponent<GridActionsCellItemProps & react__default.RefAttributes<HTMLButtonElement>>;
|
|
99
|
+
declare const RouterGridActionsCellItem: LinkComponent<typeof Component$4>;
|
|
55
100
|
|
|
56
|
-
declare const Component$
|
|
57
|
-
declare const RouterIconButton: LinkComponent<typeof Component$
|
|
101
|
+
declare const Component$3: react__default.ForwardRefExoticComponent<Omit<IconButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
102
|
+
declare const RouterIconButton: LinkComponent<typeof Component$3>;
|
|
58
103
|
|
|
59
|
-
declare const Component$
|
|
60
|
-
declare const RouterLink: LinkComponent<typeof Component$
|
|
104
|
+
declare const Component$2: react__default.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
105
|
+
declare const RouterLink: LinkComponent<typeof Component$2>;
|
|
61
106
|
|
|
62
|
-
declare const Component: react__default.ForwardRefExoticComponent<Omit<TabProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
63
|
-
declare const RouterTab: LinkComponent<typeof Component>;
|
|
107
|
+
declare const Component$1: react__default.ForwardRefExoticComponent<Omit<TabProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
108
|
+
declare const RouterTab: LinkComponent<typeof Component$1>;
|
|
109
|
+
|
|
110
|
+
declare const Component: react__default.ForwardRefExoticComponent<Omit<ListItemButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
111
|
+
declare const RouterListItemButton: LinkComponent<typeof Component>;
|
|
64
112
|
|
|
65
113
|
declare function RouterNotFound(): react_jsx_runtime.JSX.Element;
|
|
66
114
|
|
|
@@ -83,9 +131,28 @@ interface NavigationParams {
|
|
|
83
131
|
t: TFunction<"translation", undefined>;
|
|
84
132
|
}
|
|
85
133
|
|
|
86
|
-
interface
|
|
134
|
+
interface NavigationPageItem extends Pick<LinkOptions, "to" | "href" | "params" | "search"> {
|
|
135
|
+
title: string;
|
|
136
|
+
icon: React.ReactNode;
|
|
137
|
+
children?: NavigationItem[];
|
|
138
|
+
hidden?: boolean;
|
|
139
|
+
}
|
|
140
|
+
interface NavigationDivider {
|
|
141
|
+
kind: "divider";
|
|
142
|
+
hidden?: boolean;
|
|
143
|
+
}
|
|
144
|
+
interface NavigationHeader {
|
|
145
|
+
kind: "header";
|
|
146
|
+
title: string;
|
|
147
|
+
hidden?: boolean;
|
|
148
|
+
}
|
|
149
|
+
type NavigationItem = NavigationPageItem | NavigationDivider | NavigationHeader;
|
|
150
|
+
type Navigation = NavigationItem[];
|
|
151
|
+
|
|
152
|
+
interface ProvidersProps {
|
|
87
153
|
getNavigation?: (parameters: NavigationParams) => Navigation;
|
|
88
154
|
theme?: Pick<CssVarsThemeOptions, "colorSchemes" | "components">;
|
|
155
|
+
children: ReactNode;
|
|
89
156
|
}
|
|
90
157
|
declare const LayoutProvider: FC<ProvidersProps>;
|
|
91
158
|
|
|
@@ -135,6 +202,8 @@ declare const rootRouteHead: ({ title }: RootRouteHeadProps) => () => {
|
|
|
135
202
|
};
|
|
136
203
|
declare const wczApiClient: axios.AxiosInstance;
|
|
137
204
|
|
|
205
|
+
type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
|
|
206
|
+
|
|
138
207
|
type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
|
|
139
208
|
|
|
140
209
|
interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
|
|
@@ -179,27 +248,22 @@ interface FormTextFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
|
|
|
179
248
|
type?: "color" | "email" | "password" | "search" | "tel" | "text" | "url";
|
|
180
249
|
}
|
|
181
250
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
declare const
|
|
185
|
-
|
|
186
|
-
|
|
251
|
+
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, any, any, any, any>;
|
|
252
|
+
declare const useFormContext: () => _tanstack_react_form.ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
|
|
253
|
+
declare const useLayoutForm: <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, TOnDynamic extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: _tanstack_form_core.FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => _tanstack_react_form.AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
|
|
254
|
+
readonly TextField: react.FC<FormTextFieldProps>;
|
|
255
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
256
|
+
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
257
|
+
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
258
|
+
readonly Switch: react.FC<FormSwitchProps>;
|
|
259
|
+
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
260
|
+
readonly Slider: react.FC<FormSliderProps>;
|
|
261
|
+
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
262
|
+
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
263
|
+
}, {
|
|
187
264
|
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
readonly TextField: react.FC<FormTextFieldProps>;
|
|
191
|
-
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
192
|
-
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
193
|
-
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
194
|
-
readonly Switch: react.FC<FormSwitchProps>;
|
|
195
|
-
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
196
|
-
readonly Slider: react.FC<FormSliderProps>;
|
|
197
|
-
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
198
|
-
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
199
|
-
}>>;
|
|
200
|
-
AppForm: react.ComponentType<react.PropsWithChildren>;
|
|
201
|
-
};
|
|
202
|
-
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 object = {}>({ render, props, }: _tanstack_react_form.WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, {
|
|
265
|
+
}>;
|
|
266
|
+
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, TOnDynamic extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: _tanstack_react_form.WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
|
|
203
267
|
readonly TextField: react.FC<FormTextFieldProps>;
|
|
204
268
|
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
205
269
|
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
@@ -212,46 +276,68 @@ declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.F
|
|
|
212
276
|
}, {
|
|
213
277
|
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
214
278
|
}, TRenderProps>) => (props: react.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
215
|
-
form:
|
|
279
|
+
form: _tanstack_react_form.AppFieldExtendedReactFormApi<[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 [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [_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, {
|
|
280
|
+
readonly TextField: react.FC<FormTextFieldProps>;
|
|
281
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
282
|
+
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
283
|
+
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
284
|
+
readonly Switch: react.FC<FormSwitchProps>;
|
|
285
|
+
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
286
|
+
readonly Slider: react.FC<FormSliderProps>;
|
|
287
|
+
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
288
|
+
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
289
|
+
}, {
|
|
216
290
|
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
217
|
-
}
|
|
218
|
-
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<{
|
|
219
|
-
readonly TextField: react.FC<FormTextFieldProps>;
|
|
220
|
-
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
221
|
-
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
222
|
-
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
223
|
-
readonly Switch: react.FC<FormSwitchProps>;
|
|
224
|
-
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
225
|
-
readonly Slider: react.FC<FormSliderProps>;
|
|
226
|
-
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
227
|
-
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
228
|
-
}>>;
|
|
229
|
-
AppForm: react.ComponentType<react.PropsWithChildren>;
|
|
230
|
-
};
|
|
291
|
+
}>;
|
|
231
292
|
}>) => react.JSX.Element;
|
|
232
293
|
|
|
233
|
-
interface
|
|
234
|
-
|
|
235
|
-
subId: string;
|
|
236
|
-
appName: string;
|
|
237
|
-
fileName: string;
|
|
238
|
-
fileExtension: string;
|
|
239
|
-
fileSize: number;
|
|
240
|
-
mediaSubType: string;
|
|
241
|
-
mediaType: string;
|
|
242
|
-
mimeType: string;
|
|
294
|
+
interface OpenDialogOptions<R> {
|
|
295
|
+
onClose?: (result: R) => Promise<void>;
|
|
243
296
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
297
|
+
interface AlertOptions {
|
|
298
|
+
title?: ReactNode;
|
|
299
|
+
}
|
|
300
|
+
interface ConfirmOptions {
|
|
301
|
+
title?: ReactNode;
|
|
302
|
+
cancelText?: ReactNode;
|
|
303
|
+
}
|
|
304
|
+
interface DialogProps<P = undefined, R = void> {
|
|
305
|
+
payload: P;
|
|
306
|
+
open: boolean;
|
|
307
|
+
onClose: (result: R) => Promise<void>;
|
|
308
|
+
}
|
|
309
|
+
type OpenAlertDialog = (message: ReactNode, options?: AlertOptions) => Promise<void>;
|
|
310
|
+
type OpenConfirmDialog = (message: ReactNode, options?: ConfirmOptions) => Promise<boolean>;
|
|
311
|
+
type DialogComponent<P, R> = React.ComponentType<DialogProps<P, R>>;
|
|
312
|
+
interface OpenDialog {
|
|
313
|
+
<P extends undefined, R>(Component: DialogComponent<P, R>, payload?: P, options?: OpenDialogOptions<R>): Promise<R>;
|
|
314
|
+
<P, R>(Component: DialogComponent<P, R>, payload: P, options?: OpenDialogOptions<R>): Promise<R>;
|
|
315
|
+
}
|
|
316
|
+
type CloseDialog = <R>(dialog: Promise<R>, result: R) => Promise<R>;
|
|
317
|
+
interface DialogHook {
|
|
318
|
+
alert: OpenAlertDialog;
|
|
319
|
+
confirm: OpenConfirmDialog;
|
|
320
|
+
open: OpenDialog;
|
|
321
|
+
close: CloseDialog;
|
|
322
|
+
}
|
|
323
|
+
declare function useDialogs(): DialogHook;
|
|
324
|
+
|
|
325
|
+
type OptionalId = string | undefined | null;
|
|
326
|
+
type BaseFileMetaArrayQueryOptions = Omit<DefinedInitialDataOptions<FileMeta[]>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
|
|
327
|
+
type BaseBlobQueryOptions = Omit<DefinedInitialDataOptions<Blob, Error, string>, "queryKey" | "queryFn" | "select" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
|
|
328
|
+
type BaseFileMetaMutationOptions = Omit<UseMutationOptions<FileMeta, Error, FileMeta>, "mutationFn" | "onSettled">;
|
|
329
|
+
type BaseBlobMutationOptions = Omit<UseMutationOptions<Blob, Error, FileMeta>, "mutationFn" | "onSuccess">;
|
|
330
|
+
type BaseStringMutationOptions = Omit<UseMutationOptions<string, Error, string>, "mutationFn" | "onSettled">;
|
|
331
|
+
declare const useGetFileMetas: (subId: OptionalId, options?: BaseFileMetaArrayQueryOptions) => _tanstack_react_query.UseQueryResult<FileMeta[], Error>;
|
|
332
|
+
declare const useGetFileThumbnail: (meta: FileMeta | undefined | null, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
333
|
+
declare const useGetFile: (meta: FileMeta | undefined | null, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
334
|
+
declare const useDownloadFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, FileMeta, unknown>;
|
|
335
|
+
declare const useOpenFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, FileMeta, unknown>;
|
|
336
|
+
declare const useUpdateFileMeta: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<FileMeta, Error, FileMeta, unknown>;
|
|
337
|
+
declare const useDeleteFile: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<FileMeta, Error, FileMeta, unknown>;
|
|
338
|
+
declare const useDeleteFiles: (options?: BaseStringMutationOptions) => _tanstack_react_query.UseMutationResult<string, Error, string, unknown>;
|
|
253
339
|
interface UseUploadFileProps {
|
|
254
|
-
subId:
|
|
340
|
+
subId: OptionalId;
|
|
255
341
|
onSuccess?: (meta: Pick<FileMeta, "id" | "appName" | "subId" | "fileName">) => void;
|
|
256
342
|
onError?: (error: Error | DetailedError) => void;
|
|
257
343
|
}
|
|
@@ -259,12 +345,6 @@ declare const useUploadFile: ({ subId, onSuccess, onError }: UseUploadFileProps)
|
|
|
259
345
|
mutate: (file: File) => Promise<void>;
|
|
260
346
|
progress: number;
|
|
261
347
|
};
|
|
262
|
-
declare function useOptimisticFileMutation(subId: string | undefined | null, options?: Omit<DefinedInitialDataOptions<FileMeta[]>, "queryKey" | "queryFn" | "initialData" | "refetchOnWindowFocus">): {
|
|
263
|
-
addFile: (meta: FileMeta) => void;
|
|
264
|
-
removeFile: (meta: FileMeta) => void;
|
|
265
|
-
save: () => void;
|
|
266
|
-
undo: () => void;
|
|
267
|
-
};
|
|
268
348
|
|
|
269
349
|
interface EmailAttachment {
|
|
270
350
|
appName: string;
|
|
@@ -289,10 +369,10 @@ declare enum EmployeeCategoryGroup {
|
|
|
289
369
|
declare enum EmployeeStatus {
|
|
290
370
|
Active = "Active",
|
|
291
371
|
Terminated = "Terminated",
|
|
292
|
-
LeaveOfAbsence = "
|
|
372
|
+
LeaveOfAbsence = "Leave of Absence"
|
|
293
373
|
}
|
|
294
374
|
|
|
295
|
-
interface
|
|
375
|
+
interface Employee {
|
|
296
376
|
badgeId: string;
|
|
297
377
|
category: string;
|
|
298
378
|
categoryGroup: EmployeeCategoryGroup;
|
|
@@ -323,9 +403,13 @@ interface PeoplesoftEmployee {
|
|
|
323
403
|
terminationFutureDate: Date | null;
|
|
324
404
|
type: string;
|
|
325
405
|
upperDepartmentId: string;
|
|
406
|
+
jobCode: string;
|
|
407
|
+
jobDescription: string;
|
|
408
|
+
terminationReason: string | null;
|
|
409
|
+
supervisorRecordNumber: number;
|
|
326
410
|
}
|
|
327
411
|
|
|
328
|
-
interface
|
|
412
|
+
interface Department {
|
|
329
413
|
departmentId: string;
|
|
330
414
|
description: string;
|
|
331
415
|
managerId: string;
|
|
@@ -336,7 +420,7 @@ interface PeoplesoftDepartment {
|
|
|
336
420
|
location: string;
|
|
337
421
|
salLocation: string;
|
|
338
422
|
plantId: string;
|
|
339
|
-
manager:
|
|
423
|
+
manager: Employee;
|
|
340
424
|
}
|
|
341
425
|
|
|
342
|
-
export { ChipInputCell, Dropzone, EditableColumnHeader, type Email, type EmailAttachment, EmployeeCategoryGroup, EmployeeStatus, type FileMeta, LayoutProvider, type
|
|
426
|
+
export { ChipInputCell, type Department, type DialogProps, Dropzone, EditableColumnHeader, type Email, type EmailAttachment, type Employee, EmployeeCategoryGroup, EmployeeStatus, type FileMeta, FileViewer, LayoutProvider, type Navigation, type NavigationParams, PageHeader, Platform, RouterButton, RouterError, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, TableContainer, TypographyWithIcon, type User, rootRouteHead, useDeleteFile, useDeleteFiles, useDialogs, useDownloadFile, useFieldContext, useFormContext, useGetFile, useGetFileMetas, useGetFileThumbnail, useLayoutForm, useOpenFile, useUpdateFileMeta, useUploadFile, wczApiClient, withLayoutForm };
|