wcz-test 4.4.0 → 4.5.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 +330 -384
- package/dist/index.js +4272 -2768
- package/dist/index.js.map +1 -0
- package/package.json +23 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,483 +1,429 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import * as
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
import * as
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { TypographyProps, SxProps, Theme, BoxProps, ChipProps, ButtonProps, IconButtonProps, LinkProps, TabProps, ListItemButtonProps, CssVarsThemeOptions, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import react__default, { FC, ReactNode, ComponentType } from 'react';
|
|
4
|
+
import { DropzoneOptions } from 'react-dropzone';
|
|
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, LinkOptions } from '@tanstack/react-router';
|
|
8
|
+
import { TFunction } from 'i18next';
|
|
9
|
+
export { t } from 'i18next';
|
|
10
|
+
export { uuidv7 } from 'uuidv7';
|
|
11
|
+
import * as axios from 'axios';
|
|
12
|
+
import * as _tanstack_start_client_core from '@tanstack/start-client-core';
|
|
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 { default as useLocalStorageState } from 'use-local-storage-state';
|
|
18
|
+
export { useTranslation } from 'react-i18next';
|
|
19
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
20
|
+
import { DefinedInitialDataOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
21
|
+
import { DetailedError } from 'tus-js-client';
|
|
22
|
+
|
|
23
23
|
interface TypographyWithIconProps extends TypographyProps {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
startIcon?: React.ReactNode;
|
|
25
|
+
endIcon?: React.ReactNode;
|
|
26
26
|
}
|
|
27
27
|
declare const TypographyWithIcon: React.FC<TypographyWithIconProps>;
|
|
28
|
-
|
|
29
|
-
//#region src/components/core/PageHeader.d.ts
|
|
28
|
+
|
|
30
29
|
interface PageHeaderProps {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
title: string;
|
|
31
|
+
action?: ReactNode;
|
|
32
|
+
sx?: SxProps<Theme>;
|
|
34
33
|
}
|
|
35
34
|
declare const PageHeader: FC<PageHeaderProps>;
|
|
36
|
-
|
|
37
|
-
//#region src/components/core/TableContainer.d.ts
|
|
35
|
+
|
|
38
36
|
declare const TableContainer: FC<BoxProps>;
|
|
39
|
-
|
|
40
|
-
//#region src/components/file/Dropzone.d.ts
|
|
37
|
+
|
|
41
38
|
interface DropzoneProps extends DropzoneOptions {
|
|
42
|
-
|
|
39
|
+
sx?: SxProps<Theme>;
|
|
43
40
|
}
|
|
44
41
|
declare const Dropzone: FC<DropzoneProps>;
|
|
45
|
-
|
|
46
|
-
//#region src/models/file/FileMeta.d.ts
|
|
42
|
+
|
|
47
43
|
interface FileMeta {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
//#region src/components/file/fileViewer/FileViewerGrid.d.ts
|
|
44
|
+
id: string;
|
|
45
|
+
subId: string;
|
|
46
|
+
appName: string;
|
|
47
|
+
fileName: string;
|
|
48
|
+
fileExtension: string;
|
|
49
|
+
fileSize: number;
|
|
50
|
+
mediaSubType: string;
|
|
51
|
+
mediaType: string;
|
|
52
|
+
mimeType: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
60
55
|
type FileViewerGridItemBar = "hidden" | "always" | "onMouseEnter";
|
|
61
56
|
interface FileViewerGridProps {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
size?: number;
|
|
58
|
+
itemBar?: FileViewerGridItemBar;
|
|
59
|
+
sx?: SxProps<Theme>;
|
|
65
60
|
}
|
|
66
|
-
|
|
67
|
-
//#region src/models/file/FileActions.d.ts
|
|
61
|
+
|
|
68
62
|
type FileActions = {
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
download?: boolean;
|
|
64
|
+
delete?: boolean;
|
|
71
65
|
};
|
|
72
|
-
|
|
73
|
-
//#region src/components/file/fileViewer/FileViewerList.d.ts
|
|
66
|
+
|
|
74
67
|
interface FileViewerListProps {
|
|
75
|
-
|
|
68
|
+
sx?: SxProps<Theme>;
|
|
76
69
|
}
|
|
77
|
-
|
|
78
|
-
//#region src/components/file/FileViewer.d.ts
|
|
70
|
+
|
|
79
71
|
interface FileViewerComponent {
|
|
80
|
-
|
|
81
|
-
|
|
72
|
+
Grid: ComponentType<FileViewerGridProps>;
|
|
73
|
+
List: ComponentType<FileViewerListProps>;
|
|
82
74
|
}
|
|
83
75
|
interface FileViewerProps {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
76
|
+
/** Insert your record ID (can be multiple splitted by comma) */
|
|
77
|
+
subId: string | undefined | null;
|
|
78
|
+
onDelete?: (params: {
|
|
79
|
+
remainingFileMetas: Array<FileMeta>;
|
|
80
|
+
deletedFileMeta: FileMeta;
|
|
81
|
+
}) => void;
|
|
82
|
+
actions?: FileActions;
|
|
83
|
+
children: (component: FileViewerComponent) => ReactNode;
|
|
92
84
|
}
|
|
93
85
|
declare const FileViewer: FC<FileViewerProps>;
|
|
94
|
-
|
|
95
|
-
//#region src/components/data-grid/ChipInputCell.d.ts
|
|
86
|
+
|
|
96
87
|
interface ChipInputCellProps<T extends GridValidRowModel> {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
declare const ChipInputCell: <T extends GridValidRowModel>({
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
//#endregion
|
|
107
|
-
//#region src/components/data-grid/EditableColumnHeader.d.ts
|
|
108
|
-
declare const EditableColumnHeader: <T extends GridValidRowModel>({
|
|
109
|
-
colDef
|
|
110
|
-
}: GridColumnHeaderParams<T>) => react_jsx_runtime0.JSX.Element;
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region src/components/router/RouterButton.d.ts
|
|
113
|
-
declare const Component$5: React$1.ForwardRefExoticComponent<Omit<ButtonProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
88
|
+
params: GridRenderCellParams<T>;
|
|
89
|
+
slotProps?: ChipProps;
|
|
90
|
+
getLabel?: (object: T) => string | number;
|
|
91
|
+
}
|
|
92
|
+
declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => react_jsx_runtime.JSX.Element | null;
|
|
93
|
+
|
|
94
|
+
declare const EditableColumnHeader: <T extends GridValidRowModel>({ colDef }: GridColumnHeaderParams<T>) => react_jsx_runtime.JSX.Element;
|
|
95
|
+
|
|
96
|
+
declare const Component$5: react__default.ForwardRefExoticComponent<Omit<ButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
114
97
|
declare const RouterButton: LinkComponent<typeof Component$5>;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
declare const Component$4: React$1.ForwardRefExoticComponent<GridActionsCellItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
98
|
+
|
|
99
|
+
declare const Component$4: react__default.ForwardRefExoticComponent<GridActionsCellItemProps & react__default.RefAttributes<HTMLButtonElement>>;
|
|
118
100
|
declare const RouterGridActionsCellItem: LinkComponent<typeof Component$4>;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
declare const Component$3: React$1.ForwardRefExoticComponent<Omit<IconButtonProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
101
|
+
|
|
102
|
+
declare const Component$3: react__default.ForwardRefExoticComponent<Omit<IconButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
122
103
|
declare const RouterIconButton: LinkComponent<typeof Component$3>;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
declare const Component$2: React$1.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
104
|
+
|
|
105
|
+
declare const Component$2: react__default.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
126
106
|
declare const RouterLink: LinkComponent<typeof Component$2>;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
declare const Component$1: React$1.ForwardRefExoticComponent<Omit<TabProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
107
|
+
|
|
108
|
+
declare const Component$1: react__default.ForwardRefExoticComponent<Omit<TabProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
130
109
|
declare const RouterTab: LinkComponent<typeof Component$1>;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
declare const Component: React$1.ForwardRefExoticComponent<Omit<ListItemButtonProps<"a">, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
110
|
+
|
|
111
|
+
declare const Component: react__default.ForwardRefExoticComponent<Omit<ListItemButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
134
112
|
declare const RouterListItemButton: LinkComponent<typeof Component>;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
//#endregion
|
|
139
|
-
//#region src/components/router/RouterError.d.ts
|
|
113
|
+
|
|
114
|
+
declare function RouterNotFound(): react_jsx_runtime.JSX.Element;
|
|
115
|
+
|
|
140
116
|
interface RouterErrorProps {
|
|
141
|
-
|
|
117
|
+
error: ErrorComponentProps["error"];
|
|
142
118
|
}
|
|
143
119
|
declare const RouterError: FC<RouterErrorProps>;
|
|
144
|
-
|
|
145
|
-
//#region src/models/User.d.ts
|
|
120
|
+
|
|
146
121
|
interface User {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
//#region src/models/NavigationParams.d.ts
|
|
122
|
+
employeeId: string;
|
|
123
|
+
name: string;
|
|
124
|
+
department: string;
|
|
125
|
+
email?: string;
|
|
126
|
+
company: string;
|
|
127
|
+
category: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
156
130
|
interface NavigationParams {
|
|
157
|
-
|
|
158
|
-
|
|
131
|
+
user: User;
|
|
132
|
+
t: TFunction<"translation", undefined>;
|
|
159
133
|
}
|
|
160
|
-
|
|
161
|
-
//#region src/models/Navigation.d.ts
|
|
134
|
+
|
|
162
135
|
interface NavigationPageItem extends Pick<LinkOptions, "to">, Partial<Pick<LinkOptions, "href" | "params" | "search">> {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
136
|
+
title: string;
|
|
137
|
+
icon: React.ReactNode;
|
|
138
|
+
children?: Array<NavigationItem>;
|
|
139
|
+
hidden?: boolean;
|
|
167
140
|
}
|
|
168
141
|
interface NavigationDivider {
|
|
169
|
-
|
|
170
|
-
|
|
142
|
+
kind: "divider";
|
|
143
|
+
hidden?: boolean;
|
|
171
144
|
}
|
|
172
145
|
interface NavigationHeader {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
146
|
+
kind: "header";
|
|
147
|
+
title: string;
|
|
148
|
+
hidden?: boolean;
|
|
176
149
|
}
|
|
177
150
|
type NavigationItem = NavigationPageItem | NavigationDivider | NavigationHeader;
|
|
178
151
|
type Navigation = Array<NavigationItem>;
|
|
179
|
-
|
|
180
|
-
//#region src/providers/LayoutProvider.d.ts
|
|
152
|
+
|
|
181
153
|
interface ProvidersProps {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
154
|
+
getNavigation?: (parameters: NavigationParams) => Navigation;
|
|
155
|
+
theme?: Pick<CssVarsThemeOptions, "colorSchemes" | "components">;
|
|
156
|
+
children: ReactNode;
|
|
185
157
|
}
|
|
186
158
|
declare const LayoutProvider: FC<ProvidersProps>;
|
|
187
|
-
|
|
188
|
-
//#region src/utils/ClientUtils.d.ts
|
|
159
|
+
|
|
189
160
|
declare class Platform {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
161
|
+
static get isAndroid(): boolean;
|
|
162
|
+
static get isIOS(): boolean;
|
|
163
|
+
static get isWindows(): boolean;
|
|
164
|
+
static get isMacOS(): boolean;
|
|
165
|
+
private static get userAgent();
|
|
195
166
|
}
|
|
196
167
|
interface RootRouteHeadProps {
|
|
197
|
-
title: string;
|
|
198
|
-
}
|
|
199
|
-
declare const rootRouteHead: ({
|
|
200
|
-
title
|
|
201
|
-
}: RootRouteHeadProps) => () => {
|
|
202
|
-
meta: ({
|
|
203
|
-
charSet: string;
|
|
204
|
-
name?: undefined;
|
|
205
|
-
content?: undefined;
|
|
206
|
-
title?: undefined;
|
|
207
|
-
} | {
|
|
208
|
-
name: string;
|
|
209
|
-
content: string;
|
|
210
|
-
charSet?: undefined;
|
|
211
|
-
title?: undefined;
|
|
212
|
-
} | {
|
|
213
168
|
title: string;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
169
|
+
}
|
|
170
|
+
declare const rootRouteHead: ({ title }: RootRouteHeadProps) => () => {
|
|
171
|
+
meta: ({
|
|
172
|
+
charSet: string;
|
|
173
|
+
name?: undefined;
|
|
174
|
+
content?: undefined;
|
|
175
|
+
title?: undefined;
|
|
176
|
+
} | {
|
|
177
|
+
name: string;
|
|
178
|
+
content: string;
|
|
179
|
+
charSet?: undefined;
|
|
180
|
+
title?: undefined;
|
|
181
|
+
} | {
|
|
182
|
+
title: string;
|
|
183
|
+
charSet?: undefined;
|
|
184
|
+
name?: undefined;
|
|
185
|
+
content?: undefined;
|
|
186
|
+
})[];
|
|
187
|
+
links: ({
|
|
188
|
+
rel: string;
|
|
189
|
+
sizes: string;
|
|
190
|
+
href: string;
|
|
191
|
+
type?: undefined;
|
|
192
|
+
} | {
|
|
193
|
+
rel: string;
|
|
194
|
+
type: string;
|
|
195
|
+
sizes: string;
|
|
196
|
+
href: string;
|
|
197
|
+
} | {
|
|
198
|
+
rel: string;
|
|
199
|
+
href: string;
|
|
200
|
+
sizes?: undefined;
|
|
201
|
+
type?: undefined;
|
|
202
|
+
})[];
|
|
234
203
|
};
|
|
235
|
-
declare const wczApiClient:
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
204
|
+
declare const wczApiClient: axios.AxiosInstance;
|
|
205
|
+
|
|
206
|
+
declare const setSSRLanguage: _tanstack_start_client_core.ServerOnlyFn<[], Promise<void>>;
|
|
207
|
+
|
|
208
|
+
type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
|
|
209
|
+
|
|
241
210
|
type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
type?: "color" | "email" | "password" | "search" | "tel" | "text" | "url";
|
|
246
|
-
}
|
|
247
|
-
//#endregion
|
|
248
|
-
//#region src/components/form/FormNumberField.d.ts
|
|
249
|
-
interface FormNumberFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
|
|
250
|
-
defaultValue?: number | null;
|
|
251
|
-
options?: Omit<NumericFormatProps<InputAttributes>, "customInput" | "onValueChange" | keyof InputAttributes>;
|
|
252
|
-
}
|
|
253
|
-
//#endregion
|
|
254
|
-
//#region src/components/form/FormAutocomplete.d.ts
|
|
255
|
-
interface FormAutocompleteProps extends Omit<AutocompleteProps<any, boolean, boolean, boolean>, FormOmittedProps> {
|
|
256
|
-
textFieldProps?: Omit<TextFieldProps, FormOmittedProps>;
|
|
211
|
+
|
|
212
|
+
interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
|
|
213
|
+
textFieldProps?: TextFieldProps;
|
|
257
214
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
label?: string;
|
|
215
|
+
|
|
216
|
+
interface FormDatePickerProps extends Omit<DatePickerProps, FormOmittedProps> {
|
|
217
|
+
textFieldProps?: TextFieldProps;
|
|
262
218
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
label?: string;
|
|
219
|
+
|
|
220
|
+
interface FormSliderProps extends Omit<SliderProps, FormOmittedProps> {
|
|
221
|
+
label?: string;
|
|
267
222
|
}
|
|
268
|
-
|
|
269
|
-
//#region src/components/form/FormRadioGroup.d.ts
|
|
223
|
+
|
|
270
224
|
interface Option {
|
|
271
|
-
|
|
272
|
-
|
|
225
|
+
label: string;
|
|
226
|
+
value: string | number;
|
|
273
227
|
}
|
|
274
228
|
interface FormRadioGroupProps extends Omit<RadioGroupProps, FormOmittedProps> {
|
|
275
|
-
|
|
276
|
-
|
|
229
|
+
label?: string;
|
|
230
|
+
options: Array<Option>;
|
|
277
231
|
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
label?: string;
|
|
232
|
+
|
|
233
|
+
interface FormSwitchProps extends Omit<SwitchProps, FormOmittedProps> {
|
|
234
|
+
label?: string;
|
|
282
235
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
textFieldProps?: TextFieldProps;
|
|
236
|
+
|
|
237
|
+
interface FormCheckboxProps extends Omit<CheckboxProps, FormOmittedProps> {
|
|
238
|
+
label?: string;
|
|
287
239
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
textFieldProps?: TextFieldProps;
|
|
240
|
+
|
|
241
|
+
interface FormAutocompleteProps extends Omit<AutocompleteProps<any, boolean, boolean, boolean>, FormOmittedProps> {
|
|
242
|
+
textFieldProps?: Omit<TextFieldProps, FormOmittedProps>;
|
|
292
243
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
readonly
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
readonly
|
|
313
|
-
readonly
|
|
314
|
-
readonly
|
|
315
|
-
|
|
316
|
-
readonly
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
readonly
|
|
320
|
-
readonly
|
|
321
|
-
|
|
322
|
-
readonly
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
244
|
+
|
|
245
|
+
interface FormNumberFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
|
|
246
|
+
defaultValue?: number | null;
|
|
247
|
+
options?: Omit<NumericFormatProps<InputAttributes>, "customInput" | "onValueChange" | keyof InputAttributes>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
interface FormTextFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
|
|
251
|
+
type?: "color" | "email" | "password" | "search" | "tel" | "text" | "url";
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
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>;
|
|
255
|
+
declare const useFormContext: () => _tanstack_react_form.ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
|
|
256
|
+
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, {
|
|
257
|
+
readonly TextField: react.FC<FormTextFieldProps>;
|
|
258
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
259
|
+
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
260
|
+
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
261
|
+
readonly Switch: react.FC<FormSwitchProps>;
|
|
262
|
+
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
263
|
+
readonly Slider: react.FC<FormSliderProps>;
|
|
264
|
+
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
265
|
+
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
266
|
+
}, {
|
|
267
|
+
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
268
|
+
}>;
|
|
269
|
+
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, {
|
|
270
|
+
readonly TextField: react.FC<FormTextFieldProps>;
|
|
271
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
272
|
+
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
273
|
+
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
274
|
+
readonly Switch: react.FC<FormSwitchProps>;
|
|
275
|
+
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
276
|
+
readonly Slider: react.FC<FormSliderProps>;
|
|
277
|
+
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
278
|
+
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
279
|
+
}, {
|
|
280
|
+
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
281
|
+
}, TRenderProps>) => (props: react.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
282
|
+
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, {
|
|
283
|
+
readonly TextField: react.FC<FormTextFieldProps>;
|
|
284
|
+
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
285
|
+
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
286
|
+
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
287
|
+
readonly Switch: react.FC<FormSwitchProps>;
|
|
288
|
+
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
289
|
+
readonly Slider: react.FC<FormSliderProps>;
|
|
290
|
+
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
291
|
+
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
334
292
|
}, {
|
|
335
|
-
|
|
293
|
+
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
336
294
|
}>;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
//#region src/hooks/DialogsHooks.d.ts
|
|
295
|
+
}>) => react.JSX.Element;
|
|
296
|
+
|
|
340
297
|
interface OpenDialogOptions<TResult> {
|
|
341
|
-
|
|
298
|
+
onClose?: (result: TResult) => Promise<void>;
|
|
342
299
|
}
|
|
343
300
|
interface AlertOptions {
|
|
344
|
-
|
|
301
|
+
title?: ReactNode;
|
|
345
302
|
}
|
|
346
303
|
interface ConfirmOptions {
|
|
347
|
-
|
|
348
|
-
|
|
304
|
+
title?: ReactNode;
|
|
305
|
+
cancelText?: ReactNode;
|
|
349
306
|
}
|
|
350
307
|
interface DialogProps<TPayload = undefined, TResult = void> {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
308
|
+
payload: TPayload;
|
|
309
|
+
open: boolean;
|
|
310
|
+
onClose: (result: TResult) => Promise<void>;
|
|
354
311
|
}
|
|
355
312
|
type OpenAlertDialog = (message: ReactNode, options?: AlertOptions) => Promise<void>;
|
|
356
313
|
type OpenConfirmDialog = (message: ReactNode, options?: ConfirmOptions) => Promise<boolean>;
|
|
357
314
|
type DialogComponent<TPayload, TResult> = React.ComponentType<DialogProps<TPayload, TResult>>;
|
|
358
315
|
interface OpenDialog {
|
|
359
|
-
|
|
360
|
-
|
|
316
|
+
<TPayload extends undefined, TResult>(Component: DialogComponent<TPayload, TResult>, payload?: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;
|
|
317
|
+
<TPayload, TResult>(Component: DialogComponent<TPayload, TResult>, payload: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;
|
|
361
318
|
}
|
|
362
319
|
type CloseDialog = <TResult>(dialog: Promise<TResult>, result: TResult) => Promise<TResult>;
|
|
363
320
|
interface DialogHook {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
321
|
+
alert: OpenAlertDialog;
|
|
322
|
+
confirm: OpenConfirmDialog;
|
|
323
|
+
open: OpenDialog;
|
|
324
|
+
close: CloseDialog;
|
|
368
325
|
}
|
|
369
326
|
declare function useDialogs(): DialogHook;
|
|
370
|
-
|
|
371
|
-
//#region src/hooks/FileHooks.d.ts
|
|
327
|
+
|
|
372
328
|
type OptionalId = string | undefined | null;
|
|
373
329
|
type BaseFileMetaArrayQueryOptions = Omit<DefinedInitialDataOptions<Array<FileMeta>>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
|
|
374
330
|
type BaseBlobQueryOptions = Omit<DefinedInitialDataOptions<Blob, Error, string>, "queryKey" | "queryFn" | "select" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
|
|
375
331
|
type BaseFileMetaMutationOptions = Omit<UseMutationOptions<FileMeta, Error, FileMeta>, "mutationFn" | "onSettled">;
|
|
376
332
|
type BaseBlobMutationOptions = Omit<UseMutationOptions<Blob, Error, FileMeta>, "mutationFn" | "onSuccess">;
|
|
377
333
|
type BaseStringMutationOptions = Omit<UseMutationOptions<string, Error, string>, "mutationFn" | "onSettled">;
|
|
378
|
-
declare const useGetFileMetas: (subId: OptionalId, options?: BaseFileMetaArrayQueryOptions) =>
|
|
379
|
-
declare const useGetFileThumbnail: (meta: FileMeta | undefined | null, options?: BaseBlobQueryOptions) =>
|
|
380
|
-
declare const useGetFile: (meta: FileMeta | undefined | null, options?: BaseBlobQueryOptions) =>
|
|
381
|
-
declare const useDownloadFile: (options?: BaseBlobMutationOptions) =>
|
|
382
|
-
declare const useOpenFile: (options?: BaseBlobMutationOptions) =>
|
|
383
|
-
declare const useUpdateFileMeta: (options?: BaseFileMetaMutationOptions) =>
|
|
384
|
-
declare const useDeleteFile: (options?: BaseFileMetaMutationOptions) =>
|
|
385
|
-
declare const useDeleteFiles: (options?: BaseStringMutationOptions) =>
|
|
334
|
+
declare const useGetFileMetas: (subId: OptionalId, options?: BaseFileMetaArrayQueryOptions) => _tanstack_react_query.UseQueryResult<FileMeta[], Error>;
|
|
335
|
+
declare const useGetFileThumbnail: (meta: FileMeta | undefined | null, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
336
|
+
declare const useGetFile: (meta: FileMeta | undefined | null, options?: BaseBlobQueryOptions) => _tanstack_react_query.UseQueryResult<string, Error>;
|
|
337
|
+
declare const useDownloadFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, FileMeta, unknown>;
|
|
338
|
+
declare const useOpenFile: (options?: BaseBlobMutationOptions) => _tanstack_react_query.UseMutationResult<Blob, Error, FileMeta, unknown>;
|
|
339
|
+
declare const useUpdateFileMeta: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<FileMeta, Error, FileMeta, unknown>;
|
|
340
|
+
declare const useDeleteFile: (options?: BaseFileMetaMutationOptions) => _tanstack_react_query.UseMutationResult<FileMeta, Error, FileMeta, unknown>;
|
|
341
|
+
declare const useDeleteFiles: (options?: BaseStringMutationOptions) => _tanstack_react_query.UseMutationResult<string, Error, string, unknown>;
|
|
386
342
|
interface UseUploadFileProps {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
}
|
|
391
|
-
declare const useUploadFile: ({
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
onError
|
|
395
|
-
}: UseUploadFileProps) => {
|
|
396
|
-
mutate: (file: File) => Promise<void>;
|
|
397
|
-
progress: number;
|
|
343
|
+
subId: OptionalId;
|
|
344
|
+
onSuccess?: (meta: Pick<FileMeta, "id" | "appName" | "subId" | "fileName">) => void;
|
|
345
|
+
onError?: (error: Error | DetailedError) => void;
|
|
346
|
+
}
|
|
347
|
+
declare const useUploadFile: ({ subId, onSuccess, onError }: UseUploadFileProps) => {
|
|
348
|
+
mutate: (file: File) => Promise<void>;
|
|
349
|
+
progress: number;
|
|
398
350
|
};
|
|
399
|
-
|
|
400
|
-
//#region src/models/email/EmailAttachment.d.ts
|
|
351
|
+
|
|
401
352
|
interface EmailAttachment {
|
|
402
|
-
|
|
403
|
-
|
|
353
|
+
appName: string;
|
|
354
|
+
subId: string;
|
|
404
355
|
}
|
|
405
|
-
|
|
406
|
-
//#region src/models/email/Email.d.ts
|
|
356
|
+
|
|
407
357
|
interface Email {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
//#region src/models/peoplesoft/EmployeeCategoryGroup.d.ts
|
|
358
|
+
subject: string;
|
|
359
|
+
body: string;
|
|
360
|
+
to: Array<string>;
|
|
361
|
+
bcc?: Array<string>;
|
|
362
|
+
cc?: Array<string>;
|
|
363
|
+
attachments?: Array<EmailAttachment>;
|
|
364
|
+
}
|
|
365
|
+
|
|
417
366
|
declare enum EmployeeCategoryGroup {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
367
|
+
IDL = "IDL",
|
|
368
|
+
FD = "FD",
|
|
369
|
+
FI = "FI"
|
|
421
370
|
}
|
|
422
|
-
|
|
423
|
-
//#region src/models/peoplesoft/EmployeeStatus.d.ts
|
|
371
|
+
|
|
424
372
|
declare enum EmployeeStatus {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
373
|
+
Active = "Active",
|
|
374
|
+
Terminated = "Terminated",
|
|
375
|
+
LeaveOfAbsence = "Leave of Absence"
|
|
428
376
|
}
|
|
429
|
-
|
|
430
|
-
//#region src/models/peoplesoft/Employee.d.ts
|
|
377
|
+
|
|
431
378
|
interface Employee {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
//#region src/models/peoplesoft/Department.d.ts
|
|
379
|
+
badgeId: string;
|
|
380
|
+
category: string;
|
|
381
|
+
categoryGroup: EmployeeCategoryGroup;
|
|
382
|
+
companyCode: string;
|
|
383
|
+
contactPhone: string;
|
|
384
|
+
departmentId: string;
|
|
385
|
+
departmentDescription: string;
|
|
386
|
+
emailString: string;
|
|
387
|
+
employeeId: string;
|
|
388
|
+
extensionNumber: string;
|
|
389
|
+
firstName: string;
|
|
390
|
+
gender: string;
|
|
391
|
+
hiredDate: Date;
|
|
392
|
+
lastName: string;
|
|
393
|
+
managerId: string;
|
|
394
|
+
middleName: string;
|
|
395
|
+
name: string;
|
|
396
|
+
nameTitleCase: string;
|
|
397
|
+
nfcSn: string;
|
|
398
|
+
plantId: string;
|
|
399
|
+
position: string;
|
|
400
|
+
previousEmployeeIds: string | null;
|
|
401
|
+
reHiredDate: Date | null;
|
|
402
|
+
recordNumber: number;
|
|
403
|
+
status: EmployeeStatus;
|
|
404
|
+
supervisorId: string;
|
|
405
|
+
terminationDate: Date | null;
|
|
406
|
+
terminationFutureDate: Date | null;
|
|
407
|
+
type: string;
|
|
408
|
+
upperDepartmentId: string;
|
|
409
|
+
jobCode: string;
|
|
410
|
+
jobDescription: string;
|
|
411
|
+
terminationReason: string | null;
|
|
412
|
+
supervisorRecordNumber: number;
|
|
413
|
+
}
|
|
414
|
+
|
|
469
415
|
interface Department {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
export { ChipInputCell, type Department, type DialogProps, Dropzone, EditableColumnHeader, type Email, type EmailAttachment, type Employee,
|
|
416
|
+
departmentId: string;
|
|
417
|
+
description: string;
|
|
418
|
+
managerId: string;
|
|
419
|
+
managerRecordNumber: string;
|
|
420
|
+
treeLevel: number;
|
|
421
|
+
upperDepartmentId: string;
|
|
422
|
+
companyCode: string;
|
|
423
|
+
location: string;
|
|
424
|
+
salLocation: string;
|
|
425
|
+
plantId: string;
|
|
426
|
+
manager: Employee;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
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, setSSRLanguage, useDeleteFile, useDeleteFiles, useDialogs, useDownloadFile, useFieldContext, useFormContext, useGetFile, useGetFileMetas, useGetFileThumbnail, useLayoutForm, useOpenFile, useUpdateFileMeta, useUploadFile, wczApiClient, withLayoutForm };
|