wcz-test 3.4.5 → 3.4.7

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 (68) hide show
  1. package/dist/index.d.ts +2 -426
  2. package/dist/src/components/core/AppTitle.d.ts +3 -0
  3. package/dist/src/components/core/Layout.d.ts +10 -0
  4. package/dist/src/components/core/Markdown.d.ts +6 -0
  5. package/dist/src/components/core/PageHeader.d.ts +9 -0
  6. package/dist/src/components/core/TableContainer.d.ts +3 -0
  7. package/dist/src/components/core/ToolbarAccount.d.ts +2 -0
  8. package/dist/src/components/core/TypographyWithIcon.d.ts +7 -0
  9. package/dist/src/components/core/navigation/NavigationList.d.ts +21 -0
  10. package/dist/src/components/core/navigation/NavigationListItem.d.ts +15 -0
  11. package/dist/src/components/core/navigation/NavigationRail.d.ts +12 -0
  12. package/dist/src/components/data-grid/ChipInputCell.d.ts +9 -0
  13. package/dist/src/components/data-grid/EditableColumnHeader.d.ts +2 -0
  14. package/dist/src/components/file/Dropzone.d.ts +8 -0
  15. package/dist/src/components/file/FileViewer.d.ts +21 -0
  16. package/dist/src/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
  17. package/dist/src/components/file/fileViewer/FileViewerList.d.ts +12 -0
  18. package/dist/src/components/file/fileViewer/ImageViewer.d.ts +6 -0
  19. package/dist/src/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
  20. package/dist/src/components/form/FormAutocomplete.d.ts +7 -0
  21. package/dist/src/components/form/FormCheckbox.d.ts +7 -0
  22. package/dist/src/components/form/FormDatePicker.d.ts +8 -0
  23. package/dist/src/components/form/FormDateTimePicker.d.ts +8 -0
  24. package/dist/src/components/form/FormNumberField.d.ts +9 -0
  25. package/dist/src/components/form/FormRadioGroup.d.ts +13 -0
  26. package/dist/src/components/form/FormSlider.d.ts +7 -0
  27. package/dist/src/components/form/FormSubmitButton.d.ts +4 -0
  28. package/dist/src/components/form/FormSwitch.d.ts +7 -0
  29. package/dist/src/components/form/FormTextField.d.ts +7 -0
  30. package/dist/src/components/router/RouterButton.d.ts +6 -0
  31. package/dist/src/components/router/RouterError.d.ts +7 -0
  32. package/dist/src/components/router/RouterGridActionsCellItem.d.ts +6 -0
  33. package/dist/src/components/router/RouterIconButton.d.ts +6 -0
  34. package/dist/src/components/router/RouterLink.d.ts +6 -0
  35. package/dist/src/components/router/RouterListItemButton.d.ts +6 -0
  36. package/dist/src/components/router/RouterNotFound.d.ts +1 -0
  37. package/dist/src/components/router/RouterTab.d.ts +6 -0
  38. package/dist/src/contexts/DialogsContext.d.ts +6 -0
  39. package/dist/src/contexts/FileContext.d.ts +13 -0
  40. package/dist/src/contexts/LayoutContext.d.ts +11 -0
  41. package/dist/src/hooks/DialogsHooks.d.ts +42 -0
  42. package/dist/src/hooks/FileHooks.d.ts +27 -0
  43. package/dist/src/hooks/FormHooks.d.ts +40 -0
  44. package/dist/src/hooks/PeopleSoftHooks.d.ts +23 -0
  45. package/dist/src/hooks/ThemeHook.d.ts +2 -0
  46. package/dist/src/index.d.ts +35 -0
  47. package/dist/src/models/KeycloakSettings.d.ts +8 -0
  48. package/dist/src/models/Navigation.d.ts +18 -0
  49. package/dist/src/models/NavigationParams.d.ts +6 -0
  50. package/dist/src/models/User.d.ts +8 -0
  51. package/dist/src/models/email/Email.d.ts +9 -0
  52. package/dist/src/models/email/EmailAttachment.d.ts +4 -0
  53. package/dist/src/models/file/FileActions.d.ts +4 -0
  54. package/dist/src/models/file/FileMeta.d.ts +11 -0
  55. package/dist/src/models/peoplesoft/Department.d.ts +14 -0
  56. package/dist/src/models/peoplesoft/Employee.d.ts +38 -0
  57. package/dist/src/models/peoplesoft/EmployeeCategoryGroup.d.ts +5 -0
  58. package/dist/src/models/peoplesoft/EmployeeStatus.d.ts +5 -0
  59. package/dist/src/providers/DialogsProvider.d.ts +6 -0
  60. package/dist/src/providers/LayoutProvider.d.ts +11 -0
  61. package/dist/src/routes/__root.d.ts +6 -0
  62. package/dist/src/utils/ClientUtils.d.ts +46 -0
  63. package/dist/src/utils/FormUtils.d.ts +7 -0
  64. package/dist/src/utils/i18n.d.ts +1 -0
  65. package/dist/vite.config.d.ts +2 -0
  66. package/package.json +14 -12
  67. package/dist/index.js +0 -3602
  68. package/dist/index.js.map +0 -1
@@ -0,0 +1,8 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { DatePickerProps } from '@mui/x-date-pickers-pro';
3
+ import { FC } from 'react';
4
+ import { FormOmittedProps } from '../../utils/FormUtils';
5
+ export interface FormDatePickerProps extends Omit<DatePickerProps, FormOmittedProps> {
6
+ textFieldProps?: TextFieldProps;
7
+ }
8
+ export declare const FormDatePicker: FC<FormDatePickerProps>;
@@ -0,0 +1,8 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { DateTimePickerProps } from '@mui/x-date-pickers-pro';
3
+ import { FC } from 'react';
4
+ import { FormOmittedProps } from '../../utils/FormUtils';
5
+ export interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
6
+ textFieldProps?: TextFieldProps;
7
+ }
8
+ export declare const FormDateTimePicker: FC<FormDateTimePickerProps>;
@@ -0,0 +1,9 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { FormOmittedProps } from '../../utils/FormUtils';
4
+ import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
5
+ export interface FormNumberFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
6
+ defaultValue?: number | null;
7
+ options?: Omit<NumericFormatProps<InputAttributes>, "customInput" | "onValueChange" | keyof InputAttributes>;
8
+ }
9
+ export declare const FormNumberField: FC<FormNumberFieldProps>;
@@ -0,0 +1,13 @@
1
+ import { RadioGroupProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { FormOmittedProps } from '../../utils/FormUtils';
4
+ interface Option {
5
+ label: string;
6
+ value: string | number;
7
+ }
8
+ export interface FormRadioGroupProps extends Omit<RadioGroupProps, FormOmittedProps> {
9
+ label?: string;
10
+ options: Option[];
11
+ }
12
+ export declare const FormRadioGroup: FC<FormRadioGroupProps>;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SliderProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { FormOmittedProps } from '../../utils/FormUtils';
4
+ export interface FormSliderProps extends Omit<SliderProps, FormOmittedProps> {
5
+ label?: string;
6
+ }
7
+ export declare const FormSlider: FC<FormSliderProps>;
@@ -0,0 +1,4 @@
1
+ import { ButtonProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ export type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
4
+ export declare const FormSubmitButton: FC<FormSubmitButtonProps>;
@@ -0,0 +1,7 @@
1
+ import { SwitchProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { FormOmittedProps } from '../../utils/FormUtils';
4
+ export interface FormSwitchProps extends Omit<SwitchProps, FormOmittedProps> {
5
+ label?: string;
6
+ }
7
+ export declare const FormSwitch: FC<FormSwitchProps>;
@@ -0,0 +1,7 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { FormOmittedProps } from '../../utils/FormUtils';
4
+ export interface FormTextFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
5
+ type?: "color" | "email" | "password" | "search" | "tel" | "text" | "url";
6
+ }
7
+ export declare const FormTextField: FC<FormTextFieldProps>;
@@ -0,0 +1,6 @@
1
+ import { ButtonProps } from '@mui/material';
2
+ import { LinkComponent } from '@tanstack/react-router';
3
+ import { default as React } from 'react';
4
+ declare const Component: React.ForwardRefExoticComponent<Omit<ButtonProps<"a">, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
5
+ export declare const RouterButton: LinkComponent<typeof Component>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ErrorComponentProps } from '@tanstack/react-router';
2
+ import { FC } from 'react';
3
+ interface RouterErrorProps {
4
+ error: ErrorComponentProps["error"];
5
+ }
6
+ export declare const RouterError: FC<RouterErrorProps>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { GridActionsCellItemProps } from '@mui/x-data-grid-premium';
2
+ import { LinkComponent } from '@tanstack/react-router';
3
+ import { default as React } from 'react';
4
+ declare const Component: React.ForwardRefExoticComponent<GridActionsCellItemProps & React.RefAttributes<HTMLButtonElement>>;
5
+ export declare const RouterGridActionsCellItem: LinkComponent<typeof Component>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { IconButtonProps } from '@mui/material';
2
+ import { LinkComponent } from '@tanstack/react-router';
3
+ import { default as React } from 'react';
4
+ declare const Component: React.ForwardRefExoticComponent<Omit<IconButtonProps<"a">, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
5
+ export declare const RouterIconButton: LinkComponent<typeof Component>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { LinkProps } from '@mui/material';
2
+ import { LinkComponent } from '@tanstack/react-router';
3
+ import { default as React } from 'react';
4
+ declare const Component: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
5
+ export declare const RouterLink: LinkComponent<typeof Component>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ListItemButtonProps } from '@mui/material';
2
+ import { LinkComponent } from '@tanstack/react-router';
3
+ import { default as React } from 'react';
4
+ declare const Component: React.ForwardRefExoticComponent<Omit<ListItemButtonProps<"a">, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
5
+ export declare const RouterListItemButton: LinkComponent<typeof Component>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare function RouterNotFound(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { TabProps } from '@mui/material';
2
+ import { LinkComponent } from '@tanstack/react-router';
3
+ import { default as React } from 'react';
4
+ declare const Component: React.ForwardRefExoticComponent<Omit<TabProps<"a">, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
5
+ export declare const RouterTab: LinkComponent<typeof Component>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { CloseDialog, OpenDialog } from '../hooks/DialogsHooks';
2
+ export interface DialogsContextValue {
3
+ open: OpenDialog;
4
+ close: CloseDialog;
5
+ }
6
+ export declare const DialogsContext: import('react').Context<DialogsContextValue>;
@@ -0,0 +1,13 @@
1
+ import { FileMeta } from '../models/file/FileMeta';
2
+ import { FileActions } from '../models/file/FileActions';
3
+ export interface FileContextValue {
4
+ fileMetas: FileMeta[];
5
+ onDelete?: (params: {
6
+ remainingFileMetas: FileMeta[];
7
+ deletedFileMeta: FileMeta;
8
+ }) => void;
9
+ actions?: FileActions;
10
+ setImageId: (imageId: string) => void;
11
+ }
12
+ export declare const FileContext: import('react').Context<FileContextValue | null>;
13
+ export declare const useFile: () => FileContextValue;
@@ -0,0 +1,11 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { User } from '../models/User';
3
+ interface LayoutContextInterface {
4
+ user: {
5
+ get: User;
6
+ set: Dispatch<SetStateAction<User>>;
7
+ };
8
+ }
9
+ export declare const LayoutContext: import('react').Context<LayoutContextInterface | null>;
10
+ export declare const useLayout: () => LayoutContextInterface;
11
+ export {};
@@ -0,0 +1,42 @@
1
+ import { ReactNode } from 'react';
2
+ export interface OpenDialogOptions<R> {
3
+ onClose?: (result: R) => Promise<void>;
4
+ }
5
+ export interface AlertOptions {
6
+ title?: ReactNode;
7
+ }
8
+ export interface ConfirmOptions {
9
+ title?: ReactNode;
10
+ cancelText?: ReactNode;
11
+ }
12
+ export interface DialogProps<P = undefined, R = void> {
13
+ payload: P;
14
+ open: boolean;
15
+ onClose: (result: R) => Promise<void>;
16
+ }
17
+ export type OpenAlertDialog = (message: ReactNode, options?: AlertOptions) => Promise<void>;
18
+ export type OpenConfirmDialog = (message: ReactNode, options?: ConfirmOptions) => Promise<boolean>;
19
+ export type DialogComponent<P, R> = React.ComponentType<DialogProps<P, R>>;
20
+ export interface OpenDialog {
21
+ <P extends undefined, R>(Component: DialogComponent<P, R>, payload?: P, options?: OpenDialogOptions<R>): Promise<R>;
22
+ <P, R>(Component: DialogComponent<P, R>, payload: P, options?: OpenDialogOptions<R>): Promise<R>;
23
+ }
24
+ export type CloseDialog = <R>(dialog: Promise<R>, result: R) => Promise<R>;
25
+ export interface AlertDialogPayload extends AlertOptions {
26
+ message: ReactNode;
27
+ }
28
+ export type AlertDialogProps = DialogProps<AlertDialogPayload, void>;
29
+ export declare function AlertDialog({ open, payload, onClose }: Readonly<AlertDialogProps>): import("react/jsx-runtime").JSX.Element;
30
+ export interface ConfirmDialogPayload extends ConfirmOptions {
31
+ message: ReactNode;
32
+ }
33
+ export type ConfirmDialogProps = DialogProps<ConfirmDialogPayload, boolean>;
34
+ export declare function ConfirmDialog({ open, payload, onClose }: Readonly<ConfirmDialogProps>): import("react/jsx-runtime").JSX.Element;
35
+ interface DialogHook {
36
+ alert: OpenAlertDialog;
37
+ confirm: OpenConfirmDialog;
38
+ open: OpenDialog;
39
+ close: CloseDialog;
40
+ }
41
+ export declare function useDialogs(): DialogHook;
42
+ export {};
@@ -0,0 +1,27 @@
1
+ import { DefinedInitialDataOptions, UseMutationOptions } from '@tanstack/react-query';
2
+ import { DetailedError } from 'tus-js-client';
3
+ import { FileMeta } from '../models/file/FileMeta';
4
+ type OptionalId = string | undefined | null;
5
+ type BaseFileMetaArrayQueryOptions = Omit<DefinedInitialDataOptions<FileMeta[]>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
6
+ type BaseBlobQueryOptions = Omit<DefinedInitialDataOptions<Blob, Error, string>, "queryKey" | "queryFn" | "select" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
7
+ type BaseFileMetaMutationOptions = Omit<UseMutationOptions<FileMeta, Error, FileMeta>, "mutationFn" | "onSettled">;
8
+ type BaseBlobMutationOptions = Omit<UseMutationOptions<Blob, Error, FileMeta>, "mutationFn" | "onSuccess">;
9
+ type BaseStringMutationOptions = Omit<UseMutationOptions<string, Error, string>, "mutationFn" | "onSettled">;
10
+ export declare const useGetFileMetas: (subId: OptionalId, options?: BaseFileMetaArrayQueryOptions) => import('@tanstack/react-query').UseQueryResult<FileMeta[], Error>;
11
+ export declare const useGetFileThumbnail: (meta: FileMeta | undefined | null, options?: BaseBlobQueryOptions) => import('@tanstack/react-query').UseQueryResult<string, Error>;
12
+ export declare const useGetFile: (meta: FileMeta | undefined | null, options?: BaseBlobQueryOptions) => import('@tanstack/react-query').UseQueryResult<string, Error>;
13
+ export declare const useDownloadFile: (options?: BaseBlobMutationOptions) => import('@tanstack/react-query').UseMutationResult<Blob, Error, FileMeta, unknown>;
14
+ export declare const useOpenFile: (options?: BaseBlobMutationOptions) => import('@tanstack/react-query').UseMutationResult<Blob, Error, FileMeta, unknown>;
15
+ export declare const useUpdateFileMeta: (options?: BaseFileMetaMutationOptions) => import('@tanstack/react-query').UseMutationResult<FileMeta, Error, FileMeta, unknown>;
16
+ export declare const useDeleteFile: (options?: BaseFileMetaMutationOptions) => import('@tanstack/react-query').UseMutationResult<FileMeta, Error, FileMeta, unknown>;
17
+ export declare const useDeleteFiles: (options?: BaseStringMutationOptions) => import('@tanstack/react-query').UseMutationResult<string, Error, string, unknown>;
18
+ interface UseUploadFileProps {
19
+ subId: OptionalId;
20
+ onSuccess?: (meta: Pick<FileMeta, "id" | "appName" | "subId" | "fileName">) => void;
21
+ onError?: (error: Error | DetailedError) => void;
22
+ }
23
+ export declare const useUploadFile: ({ subId, onSuccess, onError }: UseUploadFileProps) => {
24
+ mutate: (file: File) => Promise<void>;
25
+ progress: number;
26
+ };
27
+ export {};
@@ -0,0 +1,40 @@
1
+ export declare const fieldContext: import('react').Context<import('@tanstack/form-core').AnyFieldApi>, useFieldContext: <TData>() => import('@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>, formContext: import('react').Context<import('@tanstack/form-core').AnyFormApi>, useFormContext: () => import('@tanstack/react-form').ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
2
+ export declare const useLayoutForm: <TFormData, TOnMount extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnChange extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: import('@tanstack/form-core').FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => import('@tanstack/react-form').AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
3
+ readonly TextField: import('react').FC<import('../components/form/FormTextField').FormTextFieldProps>;
4
+ readonly NumberField: import('react').FC<import('../components/form/FormNumberField').FormNumberFieldProps>;
5
+ readonly Autocomplete: import('react').FC<import('../components/form/FormAutocomplete').FormAutocompleteProps>;
6
+ readonly Checkbox: import('react').FC<import('../components/form/FormCheckbox').FormCheckboxProps>;
7
+ readonly Switch: import('react').FC<import('../components/form/FormSwitch').FormSwitchProps>;
8
+ readonly RadioGroup: import('react').FC<import('../components/form/FormRadioGroup').FormRadioGroupProps>;
9
+ readonly Slider: import('react').FC<import('../components/form/FormSlider').FormSliderProps>;
10
+ readonly DatePicker: import('react').FC<import('../components/form/FormDatePicker').FormDatePickerProps>;
11
+ readonly DateTimePicker: import('react').FC<import('../components/form/FormDateTimePicker').FormDateTimePickerProps>;
12
+ }, {
13
+ readonly SubmitButton: import('react').FC<import('../components/form/FormSubmitButton').FormSubmitButtonProps>;
14
+ }>, withLayoutForm: <TFormData, TOnMount extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnChange extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import('@tanstack/form-core').FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: import('@tanstack/react-form').WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
15
+ readonly TextField: import('react').FC<import('../components/form/FormTextField').FormTextFieldProps>;
16
+ readonly NumberField: import('react').FC<import('../components/form/FormNumberField').FormNumberFieldProps>;
17
+ readonly Autocomplete: import('react').FC<import('../components/form/FormAutocomplete').FormAutocompleteProps>;
18
+ readonly Checkbox: import('react').FC<import('../components/form/FormCheckbox').FormCheckboxProps>;
19
+ readonly Switch: import('react').FC<import('../components/form/FormSwitch').FormSwitchProps>;
20
+ readonly RadioGroup: import('react').FC<import('../components/form/FormRadioGroup').FormRadioGroupProps>;
21
+ readonly Slider: import('react').FC<import('../components/form/FormSlider').FormSliderProps>;
22
+ readonly DatePicker: import('react').FC<import('../components/form/FormDatePicker').FormDatePickerProps>;
23
+ readonly DateTimePicker: import('react').FC<import('../components/form/FormDateTimePicker').FormDateTimePickerProps>;
24
+ }, {
25
+ readonly SubmitButton: import('react').FC<import('../components/form/FormSubmitButton').FormSubmitButtonProps>;
26
+ }, TRenderProps>) => (props: import('react').PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
27
+ form: import('@tanstack/react-form').AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import('@tanstack/form-core').FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {
28
+ readonly TextField: import('react').FC<import('../components/form/FormTextField').FormTextFieldProps>;
29
+ readonly NumberField: import('react').FC<import('../components/form/FormNumberField').FormNumberFieldProps>;
30
+ readonly Autocomplete: import('react').FC<import('../components/form/FormAutocomplete').FormAutocompleteProps>;
31
+ readonly Checkbox: import('react').FC<import('../components/form/FormCheckbox').FormCheckboxProps>;
32
+ readonly Switch: import('react').FC<import('../components/form/FormSwitch').FormSwitchProps>;
33
+ readonly RadioGroup: import('react').FC<import('../components/form/FormRadioGroup').FormRadioGroupProps>;
34
+ readonly Slider: import('react').FC<import('../components/form/FormSlider').FormSliderProps>;
35
+ readonly DatePicker: import('react').FC<import('../components/form/FormDatePicker').FormDatePickerProps>;
36
+ readonly DateTimePicker: import('react').FC<import('../components/form/FormDateTimePicker').FormDateTimePickerProps>;
37
+ }, {
38
+ readonly SubmitButton: import('react').FC<import('../components/form/FormSubmitButton').FormSubmitButtonProps>;
39
+ }>;
40
+ }>) => import("react").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { DefinedInitialDataOptions } from '@tanstack/react-query';
2
+ import { Employee } from '../models/peoplesoft/Employee';
3
+ import { Department } from '../models/peoplesoft/Department';
4
+ type OptionalId = string | undefined | null;
5
+ type BaseEmployeeArrayQueryOptions = Omit<DefinedInitialDataOptions<Employee[]>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
6
+ type BaseEmployeeQueryOptions = Omit<DefinedInitialDataOptions<Employee>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
7
+ type BaseDepartmentArrayQueryOptions = Omit<DefinedInitialDataOptions<Department[]>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
8
+ type BaseDepartmentQueryOptions = Omit<DefinedInitialDataOptions<Department>, "queryKey" | "queryFn" | "staleTime" | "gcTime" | "refetchOnWindowFocus" | "initialData">;
9
+ export declare const useGetPeopleSoftEmployeesSearch: (searchTerm: string, options?: BaseEmployeeArrayQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee[], Error>;
10
+ export declare const useGetPeopleSoftEmployees: (options?: BaseEmployeeArrayQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee[], Error>;
11
+ export declare const useGetPeopleSoftActiveEmployees: (options?: BaseEmployeeArrayQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee[], Error>;
12
+ export declare const useGetPeopleSoftEmployeeById: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee, Error>;
13
+ export declare const useGetPeopleSoftPreviousEmployeeIds: (options?: BaseEmployeeArrayQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee[], Error>;
14
+ export declare const useGetPeopleSoftEmployeeSupervisor: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee, Error>;
15
+ export declare const useGetPeopleSoftEmployeeSubordinates: (employeeId: OptionalId, options?: BaseEmployeeArrayQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee[], Error>;
16
+ export declare const useGetPeopleSoftEmployeeManager: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee, Error>;
17
+ export declare const useGetPeopleSoftEmployeeGeneralManager: (employeeId: OptionalId, options?: BaseEmployeeQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee, Error>;
18
+ export declare const useGetPeopleSoftDepartments: (options?: BaseDepartmentArrayQueryOptions) => import('@tanstack/react-query').UseQueryResult<Department[], Error>;
19
+ export declare const useGetPeopleSoftDepartmentById: (departmentId: OptionalId, options?: BaseDepartmentQueryOptions) => import('@tanstack/react-query').UseQueryResult<Department, Error>;
20
+ export declare const useGetPeopleSoftDepartmentManager: (departmentId: OptionalId, options?: BaseEmployeeQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee, Error>;
21
+ export declare const useGetPeopleSoftDepartmentEmployees: (departmentId: OptionalId, options?: BaseEmployeeArrayQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee[], Error>;
22
+ export declare const useGetPeopleSoftCompanyGeneralManager: (companyCode: OptionalId, options?: BaseEmployeeQueryOptions) => import('@tanstack/react-query').UseQueryResult<Employee, Error>;
23
+ export {};
@@ -0,0 +1,2 @@
1
+ import { CssVarsThemeOptions } from '@mui/material';
2
+ export declare const useGetTheme: (theme?: Pick<CssVarsThemeOptions, "colorSchemes" | "components">) => import('@mui/material').Theme;
@@ -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,8 @@
1
+ export interface KeycloakSettings {
2
+ url: string;
3
+ realm: string;
4
+ clientId: string;
5
+ idpHint?: string;
6
+ confidentialClientId?: string;
7
+ confidentialClientSecret?: string;
8
+ }
@@ -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,6 @@
1
+ import { TFunction } from 'i18next';
2
+ import { User } from './User';
3
+ export interface NavigationParams {
4
+ user: User;
5
+ t: TFunction<"translation", undefined>;
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface User {
2
+ employeeId: string;
3
+ name: string;
4
+ department: string;
5
+ email?: string;
6
+ company: string;
7
+ category: string;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { EmailAttachment } from './EmailAttachment';
2
+ export interface Email {
3
+ subject: string;
4
+ body: string;
5
+ to: string[];
6
+ bcc?: string[];
7
+ cc?: string[];
8
+ attachments?: EmailAttachment[];
9
+ }
@@ -0,0 +1,4 @@
1
+ export interface EmailAttachment {
2
+ appName: string;
3
+ subId: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export type FileActions = {
2
+ download?: boolean;
3
+ delete?: boolean;
4
+ };
@@ -0,0 +1,11 @@
1
+ export interface FileMeta {
2
+ id: string;
3
+ subId: string;
4
+ appName: string;
5
+ fileName: string;
6
+ fileExtension: string;
7
+ fileSize: number;
8
+ mediaSubType: string;
9
+ mediaType: string;
10
+ mimeType: string;
11
+ }
@@ -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,5 @@
1
+ export declare enum EmployeeCategoryGroup {
2
+ IDL = "IDL",
3
+ FD = "FD",
4
+ FI = "FI"
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum EmployeeStatus {
2
+ Active = "Active",
3
+ Terminated = "Terminated",
4
+ LeaveOfAbsence = "Leave of Absence"
5
+ }
@@ -0,0 +1,6 @@
1
+ export interface DialogProviderProps {
2
+ children?: React.ReactNode;
3
+ unmountAfter?: number;
4
+ }
5
+ declare function DialogsProvider({ children, unmountAfter }: Readonly<DialogProviderProps>): import("react/jsx-runtime").JSX.Element;
6
+ export { DialogsProvider };
@@ -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';
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;