wcz-test 2.12.0 → 2.13.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.
@@ -0,0 +1,345 @@
1
+ import { TypographyProps, ContainerProps, ChipProps, ButtonProps, IconButtonProps, LinkProps, TabProps, CssVarsThemeOptions, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
2
+ export { PageHeader } from '@toolpad/core/PageContainer';
3
+ import * as react from 'react';
4
+ import react__default, { FC } from 'react';
5
+ import * as react_jsx_runtime from 'react/jsx-runtime';
6
+ import { GridValidRowModel, GridRenderCellParams, GridColumnHeaderParams, GridActionsCellItemProps } from '@mui/x-data-grid-premium';
7
+ import { LinkComponent, ErrorComponentProps } from '@tanstack/react-router';
8
+ import { Navigation } from '@toolpad/core/AppProvider';
9
+ export { Navigation } from '@toolpad/core/AppProvider';
10
+ import { TFunction } from 'i18next';
11
+ export { uuidv7 } from 'uuidv7';
12
+ import * as axios from 'axios';
13
+ import { DateTimePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
14
+ import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
15
+ import * as _tanstack_react_form from '@tanstack/react-form';
16
+ import * as _tanstack_form_core from '@tanstack/form-core';
17
+ export { useDialogs } from '@toolpad/core/useDialogs';
18
+ export { useNotifications } from '@toolpad/core/useNotifications';
19
+ export { useLocalStorageState } from '@toolpad/core/useLocalStorageState';
20
+ export { useTranslation } from 'react-i18next';
21
+ import * as _tanstack_react_query from '@tanstack/react-query';
22
+ import { DefinedInitialDataOptions, UseMutationOptions } from '@tanstack/react-query';
23
+ import { DetailedError } from 'tus-js-client';
24
+
25
+ interface TypographyWithIconProps extends TypographyProps {
26
+ startIcon?: React.ReactNode;
27
+ endIcon?: React.ReactNode;
28
+ }
29
+ declare const TypographyWithIcon: React.FC<TypographyWithIconProps>;
30
+
31
+ declare const PageContainer: FC<ContainerProps>;
32
+
33
+ interface ChipInputCellProps<T extends GridValidRowModel> {
34
+ params: GridRenderCellParams<T>;
35
+ slotProps?: ChipProps;
36
+ getLabel?: (object: T) => string | number;
37
+ }
38
+ declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => react_jsx_runtime.JSX.Element | null;
39
+
40
+ declare const EditableColumnHeader: <T extends GridValidRowModel>({ colDef }: GridColumnHeaderParams<T>) => react_jsx_runtime.JSX.Element;
41
+
42
+ declare const Component$4: react__default.ForwardRefExoticComponent<Omit<ButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
43
+ declare const RouterButton: LinkComponent<typeof Component$4>;
44
+
45
+ declare const Component$3: react__default.ForwardRefExoticComponent<GridActionsCellItemProps & react__default.RefAttributes<HTMLButtonElement>>;
46
+ declare const RouterGridActionsCellItem: LinkComponent<typeof Component$3>;
47
+
48
+ declare const Component$2: react__default.ForwardRefExoticComponent<Omit<IconButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
49
+ declare const RouterIconButton: LinkComponent<typeof Component$2>;
50
+
51
+ declare const Component$1: react__default.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
52
+ declare const RouterLink: LinkComponent<typeof Component$1>;
53
+
54
+ declare const Component: react__default.ForwardRefExoticComponent<Omit<TabProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
55
+ declare const RouterTab: LinkComponent<typeof Component>;
56
+
57
+ declare function RouterNotFound(): react_jsx_runtime.JSX.Element;
58
+
59
+ interface RouterErrorProps {
60
+ error: ErrorComponentProps["error"];
61
+ }
62
+ declare const RouterError: FC<RouterErrorProps>;
63
+
64
+ interface User {
65
+ employeeId: string;
66
+ name: string;
67
+ department: string;
68
+ email?: string;
69
+ company: string;
70
+ category: string;
71
+ }
72
+
73
+ interface NavigationParams {
74
+ user: User;
75
+ t: TFunction<"translation", undefined>;
76
+ }
77
+
78
+ interface ProvidersProps {
79
+ getNavigation?: (parameters: NavigationParams) => Navigation;
80
+ theme?: Pick<CssVarsThemeOptions, "colorSchemes" | "components">;
81
+ children: React.ReactNode;
82
+ }
83
+ declare const LayoutProvider: FC<ProvidersProps>;
84
+
85
+ declare class Platform {
86
+ static readonly isAndroid: boolean;
87
+ static readonly isIOS: boolean;
88
+ static readonly isWindows: boolean;
89
+ static readonly isMacOS: boolean;
90
+ }
91
+ declare const getContrastTextColor: (color: string) => "black" | "white";
92
+ interface RootRouteHeadProps {
93
+ title: string;
94
+ themeColor: string;
95
+ }
96
+ declare const rootRouteHead: ({ title, themeColor }: RootRouteHeadProps) => () => {
97
+ meta: ({
98
+ charSet: string;
99
+ name?: undefined;
100
+ content?: undefined;
101
+ title?: undefined;
102
+ } | {
103
+ name: string;
104
+ content: string;
105
+ charSet?: undefined;
106
+ title?: undefined;
107
+ } | {
108
+ title: string;
109
+ charSet?: undefined;
110
+ name?: undefined;
111
+ content?: undefined;
112
+ })[];
113
+ links: ({
114
+ rel: string;
115
+ sizes: string;
116
+ href: string;
117
+ type?: undefined;
118
+ name?: undefined;
119
+ theme_color?: undefined;
120
+ } | {
121
+ rel: string;
122
+ type: string;
123
+ sizes: string;
124
+ href: string;
125
+ name?: undefined;
126
+ theme_color?: undefined;
127
+ } | {
128
+ rel: string;
129
+ href: string;
130
+ name: string;
131
+ theme_color: string;
132
+ sizes?: undefined;
133
+ type?: undefined;
134
+ } | {
135
+ rel: string;
136
+ href: string;
137
+ sizes?: undefined;
138
+ type?: undefined;
139
+ name?: undefined;
140
+ theme_color?: undefined;
141
+ })[];
142
+ };
143
+ declare const wczApiClient: axios.AxiosInstance;
144
+ declare const WISTRON_PRIMARY_COLOR = "#00506E";
145
+ declare const WISTRON_SECONDARY_COLOR = "#64DC00";
146
+
147
+ type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
148
+
149
+ interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
150
+ textFieldProps?: TextFieldProps;
151
+ }
152
+
153
+ interface FormDatePickerProps extends Omit<DatePickerProps, FormOmittedProps> {
154
+ textFieldProps?: TextFieldProps;
155
+ }
156
+
157
+ interface FormSliderProps extends Omit<SliderProps, FormOmittedProps> {
158
+ label?: string;
159
+ }
160
+
161
+ interface Option {
162
+ label: string;
163
+ value: string | number;
164
+ }
165
+ interface FormRadioGroupProps extends Omit<RadioGroupProps, FormOmittedProps> {
166
+ label?: string;
167
+ options: Option[];
168
+ }
169
+
170
+ interface FormSwitchProps extends Omit<SwitchProps, FormOmittedProps> {
171
+ label?: string;
172
+ }
173
+
174
+ interface FormCheckboxProps extends Omit<CheckboxProps, FormOmittedProps> {
175
+ label?: string;
176
+ }
177
+
178
+ interface FormAutocompleteProps extends Omit<AutocompleteProps<any, boolean, boolean, boolean>, FormOmittedProps> {
179
+ textFieldProps?: Omit<TextFieldProps, FormOmittedProps>;
180
+ }
181
+
182
+ interface FormNumberFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
183
+ defaultValue?: number | null;
184
+ options?: Omit<NumericFormatProps<InputAttributes>, "customInput" | "onValueChange" | keyof InputAttributes>;
185
+ }
186
+
187
+ interface FormTextFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
188
+ type?: "color" | "email" | "password" | "search" | "tel" | "text" | "url";
189
+ }
190
+
191
+ type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
192
+
193
+ 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>;
194
+ declare const useFormContext: () => _tanstack_react_form.ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any>;
195
+ 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, TOnServer extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: _tanstack_form_core.FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta>) => _tanstack_form_core.FormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta> & _tanstack_react_form.ReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta> & NoInfer<{
196
+ readonly SubmitButton: react.FC<FormSubmitButtonProps>;
197
+ }> & {
198
+ AppField: _tanstack_react_form.FieldComponent<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, NoInfer<{
199
+ readonly TextField: react.FC<FormTextFieldProps>;
200
+ readonly NumberField: react.FC<FormNumberFieldProps>;
201
+ readonly Autocomplete: react.FC<FormAutocompleteProps>;
202
+ readonly Checkbox: react.FC<FormCheckboxProps>;
203
+ readonly Switch: react.FC<FormSwitchProps>;
204
+ readonly RadioGroup: react.FC<FormRadioGroupProps>;
205
+ readonly Slider: react.FC<FormSliderProps>;
206
+ readonly DatePicker: react.FC<FormDatePickerProps>;
207
+ readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
208
+ }>>;
209
+ AppForm: react.ComponentType<react.PropsWithChildren>;
210
+ };
211
+ 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, {
212
+ readonly TextField: react.FC<FormTextFieldProps>;
213
+ readonly NumberField: react.FC<FormNumberFieldProps>;
214
+ readonly Autocomplete: react.FC<FormAutocompleteProps>;
215
+ readonly Checkbox: react.FC<FormCheckboxProps>;
216
+ readonly Switch: react.FC<FormSwitchProps>;
217
+ readonly RadioGroup: react.FC<FormRadioGroupProps>;
218
+ readonly Slider: react.FC<FormSliderProps>;
219
+ readonly DatePicker: react.FC<FormDatePickerProps>;
220
+ readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
221
+ }, {
222
+ readonly SubmitButton: react.FC<FormSubmitButtonProps>;
223
+ }, TRenderProps>) => (props: react.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
224
+ form: _tanstack_form_core.FormApi<[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> & _tanstack_react_form.ReactFormApi<[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<{
225
+ readonly SubmitButton: react.FC<FormSubmitButtonProps>;
226
+ }> & {
227
+ 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<{
228
+ readonly TextField: react.FC<FormTextFieldProps>;
229
+ readonly NumberField: react.FC<FormNumberFieldProps>;
230
+ readonly Autocomplete: react.FC<FormAutocompleteProps>;
231
+ readonly Checkbox: react.FC<FormCheckboxProps>;
232
+ readonly Switch: react.FC<FormSwitchProps>;
233
+ readonly RadioGroup: react.FC<FormRadioGroupProps>;
234
+ readonly Slider: react.FC<FormSliderProps>;
235
+ readonly DatePicker: react.FC<FormDatePickerProps>;
236
+ readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
237
+ }>>;
238
+ AppForm: react.ComponentType<react.PropsWithChildren>;
239
+ };
240
+ }>) => react.JSX.Element;
241
+
242
+ interface FileMeta {
243
+ id: string;
244
+ subId: string;
245
+ appName: string;
246
+ fileName: string;
247
+ fileExtension: string;
248
+ fileSize: number;
249
+ mediaSubType: string;
250
+ mediaType: string;
251
+ mimeType: string;
252
+ }
253
+
254
+ declare const useGetFileMetas: (subId: string | undefined | null, options?: Omit<DefinedInitialDataOptions<FileMeta[]>, "queryKey" | "queryFn" | "initialData" | "refetchOnWindowFocus">) => _tanstack_react_query.DefinedUseQueryResult<FileMeta[], Error>;
255
+ declare const useGetFileThumbnail: (meta: FileMeta | undefined | null, options?: Omit<DefinedInitialDataOptions<Blob, Error, string>, "queryKey" | "queryFn" | "select" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">) => _tanstack_react_query.UseQueryResult<string, Error>;
256
+ declare const useGetFile: (meta: FileMeta | undefined | null, options?: Omit<DefinedInitialDataOptions<Blob, Error, string>, "queryKey" | "queryFn" | "select" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">) => _tanstack_react_query.UseQueryResult<string, Error>;
257
+ declare const useDownloadFile: (options?: Omit<UseMutationOptions<Blob, Error, FileMeta>, "mutationFn" | "onSuccess">) => _tanstack_react_query.UseMutationResult<Blob, Error, FileMeta, unknown>;
258
+ declare const useOpenFile: (options?: Omit<UseMutationOptions<Blob, Error, FileMeta>, "mutationFn" | "onSuccess">) => _tanstack_react_query.UseMutationResult<Blob, Error, FileMeta, unknown>;
259
+ declare const useUpdateFileMeta: (options?: Omit<UseMutationOptions<FileMeta, Error, FileMeta>, "mutationFn" | "onSettled">) => _tanstack_react_query.UseMutationResult<FileMeta, Error, FileMeta, unknown>;
260
+ declare const useDeleteFile: (options?: Omit<UseMutationOptions<FileMeta, Error, FileMeta>, "mutationFn" | "onSettled">) => _tanstack_react_query.UseMutationResult<FileMeta, Error, FileMeta, unknown>;
261
+ declare const useDeleteFiles: (options?: Omit<UseMutationOptions<string, Error, string>, "mutationFn" | "onSettled">) => _tanstack_react_query.UseMutationResult<string, Error, string, unknown>;
262
+ interface UseUploadFileProps {
263
+ subId: string | undefined | null;
264
+ onSuccess?: (file: File) => void;
265
+ onError?: (error: Error | DetailedError) => void;
266
+ }
267
+ declare const useUploadFile: ({ subId, onSuccess, onError }: UseUploadFileProps) => {
268
+ mutate: (file: File) => Promise<void>;
269
+ uploadProgress: number;
270
+ };
271
+
272
+ interface EmailAttachment {
273
+ appName: string;
274
+ subId: string;
275
+ }
276
+
277
+ interface Email {
278
+ subject: string;
279
+ body: string;
280
+ to: string[];
281
+ bcc?: string[];
282
+ cc?: string[];
283
+ attachments?: EmailAttachment[];
284
+ }
285
+
286
+ declare enum EmployeeCategoryGroup {
287
+ IDL = "IDL",
288
+ FD = "FD",
289
+ FI = "FI"
290
+ }
291
+
292
+ declare enum EmployeeStatus {
293
+ Active = "Active",
294
+ Terminated = "Terminated",
295
+ LeaveOfAbsence = "LeaveOfAbsence"
296
+ }
297
+
298
+ interface PeoplesoftEmployee {
299
+ badgeId: string;
300
+ category: string;
301
+ categoryGroup: EmployeeCategoryGroup;
302
+ companyCode: string;
303
+ contactPhone: string;
304
+ departmentId: string;
305
+ departmentDescription: string;
306
+ emailString: string;
307
+ employeeId: string;
308
+ extensionNumber: string;
309
+ firstName: string;
310
+ gender: string;
311
+ hiredDate: Date;
312
+ lastName: string;
313
+ managerId: string;
314
+ middleName: string;
315
+ name: string;
316
+ nameTitleCase: string;
317
+ nfcSn: string;
318
+ plantId: string;
319
+ position: string;
320
+ previousEmployeeIds: string | null;
321
+ reHiredDate: Date | null;
322
+ recordNumber: number;
323
+ status: EmployeeStatus;
324
+ supervisorId: string;
325
+ terminationDate: Date | null;
326
+ terminationFutureDate: Date | null;
327
+ type: string;
328
+ upperDepartmentId: string;
329
+ }
330
+
331
+ interface PeoplesoftDepartment {
332
+ departmentId: string;
333
+ description: string;
334
+ managerId: string;
335
+ managerRecordNumber: string;
336
+ treeLevel: number;
337
+ upperDepartmentId: string;
338
+ companyCode: string;
339
+ location: string;
340
+ salLocation: string;
341
+ plantId: string;
342
+ manager: PeoplesoftEmployee;
343
+ }
344
+
345
+ export { ChipInputCell, EditableColumnHeader, type Email, type EmailAttachment, EmployeeCategoryGroup, EmployeeStatus, type FileMeta, LayoutProvider, type NavigationParams, PageContainer, type PeoplesoftDepartment, type PeoplesoftEmployee, Platform, RouterButton, RouterError, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterNotFound, RouterTab, TypographyWithIcon, type User, WISTRON_PRIMARY_COLOR, WISTRON_SECONDARY_COLOR, getContrastTextColor, rootRouteHead, useDeleteFile, useDeleteFiles, useDownloadFile, useFieldContext, useFormContext, useGetFile, useGetFileMetas, useGetFileThumbnail, useLayoutForm, useOpenFile, useUpdateFileMeta, useUploadFile, wczApiClient, withLayoutForm };
package/dist/index.js CHANGED
@@ -1838,6 +1838,7 @@ var AdapterDayjs = class {
1838
1838
  import { useIsFetching, useIsMutating } from "@tanstack/react-query";
1839
1839
  import { useRouterState } from "@tanstack/react-router";
1840
1840
  import { DashboardLayout } from "@toolpad/core/DashboardLayout";
1841
+ import { TanStackRouterAppProvider } from "@toolpad/core/tanstack-router";
1841
1842
  import { NotificationsProvider } from "@toolpad/core/useNotifications";
1842
1843
  import i18n from "i18next";
1843
1844
  import LanguageDetector from "i18next-browser-languagedetector";