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