wcz-test 3.4.4 → 3.4.6
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 +2 -34
- package/dist/src/components/core/AppTitle.d.ts +3 -0
- package/dist/src/components/core/Layout.d.ts +10 -0
- package/dist/src/components/core/Markdown.d.ts +6 -0
- package/dist/src/components/core/PageHeader.d.ts +9 -0
- package/dist/src/components/core/TableContainer.d.ts +3 -0
- package/dist/src/components/core/ToolbarAccount.d.ts +2 -0
- package/dist/src/components/core/TypographyWithIcon.d.ts +7 -0
- package/dist/src/components/core/navigation/NavigationList.d.ts +21 -0
- package/dist/src/components/core/navigation/NavigationListItem.d.ts +15 -0
- package/dist/src/components/core/navigation/NavigationRail.d.ts +12 -0
- package/dist/src/components/data-grid/ChipInputCell.d.ts +9 -0
- package/dist/src/components/data-grid/EditableColumnHeader.d.ts +2 -0
- package/dist/src/components/file/Dropzone.d.ts +8 -0
- package/dist/src/components/file/FileViewer.d.ts +21 -0
- package/dist/src/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
- package/dist/src/components/file/fileViewer/FileViewerList.d.ts +12 -0
- package/dist/src/components/file/fileViewer/ImageViewer.d.ts +6 -0
- package/dist/src/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
- package/dist/src/components/form/FormAutocomplete.d.ts +7 -0
- package/dist/src/components/form/FormCheckbox.d.ts +7 -0
- package/dist/src/components/form/FormDatePicker.d.ts +8 -0
- package/dist/src/components/form/FormDateTimePicker.d.ts +8 -0
- package/dist/src/components/form/FormNumberField.d.ts +9 -0
- package/dist/src/components/form/FormRadioGroup.d.ts +13 -0
- package/dist/src/components/form/FormSlider.d.ts +7 -0
- package/dist/src/components/form/FormSubmitButton.d.ts +4 -0
- package/dist/src/components/form/FormSwitch.d.ts +7 -0
- package/dist/src/components/form/FormTextField.d.ts +7 -0
- package/dist/src/components/router/RouterButton.d.ts +6 -0
- package/dist/src/components/router/RouterError.d.ts +7 -0
- package/dist/src/components/router/RouterGridActionsCellItem.d.ts +6 -0
- package/dist/src/components/router/RouterIconButton.d.ts +6 -0
- package/dist/src/components/router/RouterLink.d.ts +6 -0
- package/dist/src/components/router/RouterListItemButton.d.ts +6 -0
- package/dist/src/components/router/RouterNotFound.d.ts +1 -0
- package/dist/src/components/router/RouterTab.d.ts +6 -0
- package/dist/src/contexts/DialogsContext.d.ts +6 -0
- package/dist/src/contexts/FileContext.d.ts +13 -0
- package/dist/src/contexts/LayoutContext.d.ts +11 -0
- package/dist/src/hooks/DialogsHooks.d.ts +42 -0
- package/dist/src/hooks/FileHooks.d.ts +27 -0
- package/dist/src/hooks/FormHooks.d.ts +40 -0
- package/dist/src/hooks/PeopleSoftHooks.d.ts +23 -0
- package/dist/src/hooks/ThemeHook.d.ts +2 -0
- package/dist/src/index.d.ts +35 -0
- package/dist/src/models/KeycloakSettings.d.ts +8 -0
- package/dist/src/models/Navigation.d.ts +18 -0
- package/dist/src/models/NavigationParams.d.ts +6 -0
- package/dist/src/models/User.d.ts +8 -0
- package/dist/src/models/email/Email.d.ts +9 -0
- package/dist/src/models/email/EmailAttachment.d.ts +4 -0
- package/dist/src/models/file/FileActions.d.ts +4 -0
- package/dist/src/models/file/FileMeta.d.ts +11 -0
- package/dist/src/models/peoplesoft/Department.d.ts +14 -0
- package/dist/src/models/peoplesoft/Employee.d.ts +38 -0
- package/dist/src/models/peoplesoft/EmployeeCategoryGroup.d.ts +5 -0
- package/dist/src/models/peoplesoft/EmployeeStatus.d.ts +5 -0
- package/dist/src/providers/DialogsProvider.d.ts +6 -0
- package/dist/src/providers/LayoutProvider.d.ts +11 -0
- package/dist/src/routes/__root.d.ts +6 -0
- package/dist/src/utils/ClientUtils.d.ts +46 -0
- package/dist/src/utils/FormUtils.d.ts +7 -0
- package/dist/src/utils/i18n.d.ts +1 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +14 -12
- package/dist/index.js +0 -1015
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { TypographyWithIcon } from './components/core/TypographyWithIcon';
|
|
2
|
+
export { PageHeader } from './components/core/PageHeader';
|
|
3
|
+
export { TableContainer } from './components/core/TableContainer';
|
|
4
|
+
export { Dropzone } from './components/file/Dropzone';
|
|
5
|
+
export { FileViewer } from './components/file/FileViewer';
|
|
6
|
+
export { ChipInputCell } from './components/data-grid/ChipInputCell';
|
|
7
|
+
export { EditableColumnHeader } from './components/data-grid/EditableColumnHeader';
|
|
8
|
+
export { RouterButton } from './components/router/RouterButton';
|
|
9
|
+
export { RouterGridActionsCellItem } from './components/router/RouterGridActionsCellItem';
|
|
10
|
+
export { RouterIconButton } from './components/router/RouterIconButton';
|
|
11
|
+
export { RouterLink } from './components/router/RouterLink';
|
|
12
|
+
export { RouterTab } from './components/router/RouterTab';
|
|
13
|
+
export { RouterListItemButton } from './components/router/RouterListItemButton';
|
|
14
|
+
export { RouterNotFound } from './components/router/RouterNotFound';
|
|
15
|
+
export { RouterError } from './components/router/RouterError';
|
|
16
|
+
export { LayoutProvider } from './providers/LayoutProvider';
|
|
17
|
+
export { uuidv7 } from 'uuidv7';
|
|
18
|
+
export { Platform, rootRouteHead, wczApiClient } from './utils/ClientUtils';
|
|
19
|
+
export { useFieldContext, useFormContext, useLayoutForm, withLayoutForm } from './hooks/FormHooks';
|
|
20
|
+
export { useDialogs } from './hooks/DialogsHooks';
|
|
21
|
+
export { default as useLocalStorageState } from 'use-local-storage-state';
|
|
22
|
+
export { useTranslation } from 'react-i18next';
|
|
23
|
+
export { t } from 'i18next';
|
|
24
|
+
export * from './hooks/FileHooks';
|
|
25
|
+
export type { DialogProps } from './hooks/DialogsHooks';
|
|
26
|
+
export type { NavigationParams } from './models/NavigationParams';
|
|
27
|
+
export type { Navigation } from './models/Navigation';
|
|
28
|
+
export type { User } from './models/User';
|
|
29
|
+
export type { FileMeta } from './models/file/FileMeta';
|
|
30
|
+
export type { Email } from './models/email/Email';
|
|
31
|
+
export type { EmailAttachment } from './models/email/EmailAttachment';
|
|
32
|
+
export type { Employee } from './models/peoplesoft/Employee';
|
|
33
|
+
export type { Department } from './models/peoplesoft/Department';
|
|
34
|
+
export type { EmployeeCategoryGroup } from './models/peoplesoft/EmployeeCategoryGroup';
|
|
35
|
+
export type { EmployeeStatus } from './models/peoplesoft/EmployeeStatus';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LinkOptions } from '@tanstack/react-router';
|
|
2
|
+
export interface NavigationPageItem extends Pick<LinkOptions, "to" | "href" | "params" | "search"> {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: React.ReactNode;
|
|
5
|
+
children?: NavigationItem[];
|
|
6
|
+
hidden?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface NavigationDivider {
|
|
9
|
+
kind: "divider";
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface NavigationHeader {
|
|
13
|
+
kind: "header";
|
|
14
|
+
title: string;
|
|
15
|
+
hidden?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type NavigationItem = NavigationPageItem | NavigationDivider | NavigationHeader;
|
|
18
|
+
export type Navigation = NavigationItem[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Employee } from './Employee';
|
|
2
|
+
export interface Department {
|
|
3
|
+
departmentId: string;
|
|
4
|
+
description: string;
|
|
5
|
+
managerId: string;
|
|
6
|
+
managerRecordNumber: string;
|
|
7
|
+
treeLevel: number;
|
|
8
|
+
upperDepartmentId: string;
|
|
9
|
+
companyCode: string;
|
|
10
|
+
location: string;
|
|
11
|
+
salLocation: string;
|
|
12
|
+
plantId: string;
|
|
13
|
+
manager: Employee;
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EmployeeCategoryGroup } from './EmployeeCategoryGroup';
|
|
2
|
+
import { EmployeeStatus } from './EmployeeStatus';
|
|
3
|
+
export interface Employee {
|
|
4
|
+
badgeId: string;
|
|
5
|
+
category: string;
|
|
6
|
+
categoryGroup: EmployeeCategoryGroup;
|
|
7
|
+
companyCode: string;
|
|
8
|
+
contactPhone: string;
|
|
9
|
+
departmentId: string;
|
|
10
|
+
departmentDescription: string;
|
|
11
|
+
emailString: string;
|
|
12
|
+
employeeId: string;
|
|
13
|
+
extensionNumber: string;
|
|
14
|
+
firstName: string;
|
|
15
|
+
gender: string;
|
|
16
|
+
hiredDate: Date;
|
|
17
|
+
lastName: string;
|
|
18
|
+
managerId: string;
|
|
19
|
+
middleName: string;
|
|
20
|
+
name: string;
|
|
21
|
+
nameTitleCase: string;
|
|
22
|
+
nfcSn: string;
|
|
23
|
+
plantId: string;
|
|
24
|
+
position: string;
|
|
25
|
+
previousEmployeeIds: string | null;
|
|
26
|
+
reHiredDate: Date | null;
|
|
27
|
+
recordNumber: number;
|
|
28
|
+
status: EmployeeStatus;
|
|
29
|
+
supervisorId: string;
|
|
30
|
+
terminationDate: Date | null;
|
|
31
|
+
terminationFutureDate: Date | null;
|
|
32
|
+
type: string;
|
|
33
|
+
upperDepartmentId: string;
|
|
34
|
+
jobCode: string;
|
|
35
|
+
jobDescription: string;
|
|
36
|
+
terminationReason: string | null;
|
|
37
|
+
supervisorRecordNumber: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CssVarsThemeOptions } from '@mui/material';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
import { NavigationParams } from '../models/NavigationParams';
|
|
4
|
+
import { Navigation } from '../models/Navigation';
|
|
5
|
+
interface ProvidersProps {
|
|
6
|
+
getNavigation?: (parameters: NavigationParams) => Navigation;
|
|
7
|
+
theme?: Pick<CssVarsThemeOptions, "colorSchemes" | "components">;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const LayoutProvider: FC<ProvidersProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
+
interface RouterContext {
|
|
3
|
+
queryClient: QueryClient;
|
|
4
|
+
}
|
|
5
|
+
export declare const Route: import('@tanstack/react-router').RootRoute<undefined, RouterContext, import('@tanstack/router-core').AnyContext, import('@tanstack/router-core').AnyContext, {}, undefined, unknown, unknown>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare class Platform {
|
|
2
|
+
static get isAndroid(): boolean;
|
|
3
|
+
static get isIOS(): boolean;
|
|
4
|
+
static get isWindows(): boolean;
|
|
5
|
+
static get isMacOS(): boolean;
|
|
6
|
+
private static get userAgent();
|
|
7
|
+
}
|
|
8
|
+
interface RootRouteHeadProps {
|
|
9
|
+
title: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const rootRouteHead: ({ title }: RootRouteHeadProps) => () => {
|
|
12
|
+
meta: ({
|
|
13
|
+
charSet: string;
|
|
14
|
+
name?: undefined;
|
|
15
|
+
content?: undefined;
|
|
16
|
+
title?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
name: string;
|
|
19
|
+
content: string;
|
|
20
|
+
charSet?: undefined;
|
|
21
|
+
title?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
title: string;
|
|
24
|
+
charSet?: undefined;
|
|
25
|
+
name?: undefined;
|
|
26
|
+
content?: undefined;
|
|
27
|
+
})[];
|
|
28
|
+
links: ({
|
|
29
|
+
rel: string;
|
|
30
|
+
sizes: string;
|
|
31
|
+
href: string;
|
|
32
|
+
type?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
rel: string;
|
|
35
|
+
type: string;
|
|
36
|
+
sizes: string;
|
|
37
|
+
href: string;
|
|
38
|
+
} | {
|
|
39
|
+
rel: string;
|
|
40
|
+
href: string;
|
|
41
|
+
sizes?: undefined;
|
|
42
|
+
type?: undefined;
|
|
43
|
+
})[];
|
|
44
|
+
};
|
|
45
|
+
export declare const wczApiClient: import('axios').AxiosInstance;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AnyFieldApi } from '@tanstack/react-form';
|
|
2
|
+
export type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
|
|
3
|
+
export declare const getFieldStatus: (field: AnyFieldApi) => {
|
|
4
|
+
isTouched: boolean;
|
|
5
|
+
hasError: boolean;
|
|
6
|
+
helperText: any;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from 'i18next';
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wcz-test",
|
|
3
3
|
"displayName": "WCZ Layout",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.6",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"type": "module",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"main": "./dist/index.cjs",
|
|
10
|
+
"module": "./dist/index.js",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"dev": "vite dev",
|
|
22
|
-
"prepublishOnly": "tsup",
|
|
23
22
|
"npm-install": "npm install",
|
|
24
23
|
"npm-update": "npm update",
|
|
25
|
-
"lint-fix": "eslint --fix \"src/**/*.{ts,tsx}\""
|
|
24
|
+
"lint-fix": "eslint --fix \"src/**/*.{ts,tsx}\"",
|
|
25
|
+
"build": "tsc && vite build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@tanstack/react-router-ssr-query": "^1.131.14",
|
|
@@ -31,8 +31,6 @@
|
|
|
31
31
|
"i18next": "^25.0.0",
|
|
32
32
|
"i18next-browser-languagedetector": "^8.0.4",
|
|
33
33
|
"i18next-http-backend": "^3.0.2",
|
|
34
|
-
"jwt-decode": "^4.0.0",
|
|
35
|
-
"keycloak-js": "^26.2.0",
|
|
36
34
|
"next-auth": "5.0.0-beta.29",
|
|
37
35
|
"react-dropzone": "^14.3.8",
|
|
38
36
|
"react-i18next": "^15.4.1",
|
|
@@ -50,18 +48,22 @@
|
|
|
50
48
|
"@types/react": "^19.0.8",
|
|
51
49
|
"@types/react-dom": "^19.0.3",
|
|
52
50
|
"@vitejs/plugin-react": "^4.6.0",
|
|
51
|
+
"babel-plugin-react-compiler": "^19.1.0-rc.3",
|
|
53
52
|
"eslint": "^9.28.0",
|
|
54
53
|
"eslint-plugin-import": "^2.31.0",
|
|
55
54
|
"eslint-plugin-react": "^7.37.5",
|
|
56
55
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
57
56
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
57
|
+
"husky": "^9.1.7",
|
|
58
58
|
"react-markdown": "^10.1.0",
|
|
59
|
-
"tsup": "^8.4.0",
|
|
60
59
|
"typescript": "^5.7.2",
|
|
61
60
|
"typescript-eslint": "^8.33.1",
|
|
62
61
|
"vite-plugin-checker": "^0.9.3",
|
|
63
62
|
"vite-plugin-pwa": "^1.0.2",
|
|
64
|
-
"vite-tsconfig-paths": "^5.1.4"
|
|
63
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
64
|
+
"vite-plugin-dts": "^4.5.4",
|
|
65
|
+
"@rollup/rollup-win32-x64-msvc": "^4.50.2",
|
|
66
|
+
"@esbuild/win32-x64": "^0.25.10"
|
|
65
67
|
},
|
|
66
68
|
"peerDependencies": {
|
|
67
69
|
"@emotion/react": "11.x",
|