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