wcz-test 7.1.1 → 7.1.2

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 (75) hide show
  1. package/dist/components/core/AppTitle.d.ts +2 -0
  2. package/dist/components/core/Fullscreen.d.ts +3 -0
  3. package/dist/components/core/Layout.d.ts +8 -0
  4. package/dist/components/core/ToolbarAccount.d.ts +2 -0
  5. package/dist/components/core/TypographyWithIcon.d.ts +7 -0
  6. package/dist/components/core/navigation/NavigationList.d.ts +22 -0
  7. package/dist/components/core/navigation/NavigationListItem.d.ts +16 -0
  8. package/dist/components/core/navigation/NavigationRail.d.ts +12 -0
  9. package/dist/components/data-grid/ChipInputCell.d.ts +9 -0
  10. package/dist/components/data-grid/EditableColumnHeader.d.ts +2 -0
  11. package/dist/components/file/Dropzone.d.ts +8 -0
  12. package/dist/components/file/FileViewer.d.ts +20 -0
  13. package/dist/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
  14. package/dist/components/file/fileViewer/FileViewerList.d.ts +12 -0
  15. package/dist/components/file/fileViewer/ImageViewer.d.ts +6 -0
  16. package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
  17. package/dist/components/form/FormAutocomplete.d.ts +7 -0
  18. package/dist/components/form/FormCheckbox.d.ts +7 -0
  19. package/dist/components/form/FormDatePicker.d.ts +8 -0
  20. package/dist/components/form/FormDateRangePicker.d.ts +8 -0
  21. package/dist/components/form/FormDateTimePicker.d.ts +8 -0
  22. package/dist/components/form/FormDateTimeRangePicker.d.ts +8 -0
  23. package/dist/components/form/FormNumberField.d.ts +9 -0
  24. package/dist/components/form/FormRadioGroup.d.ts +13 -0
  25. package/dist/components/form/FormSlider.d.ts +7 -0
  26. package/dist/components/form/FormSubmitButton.d.ts +4 -0
  27. package/dist/components/form/FormSwitch.d.ts +7 -0
  28. package/dist/components/form/FormTextField.d.ts +7 -0
  29. package/dist/components/form/FormTimePicker.d.ts +8 -0
  30. package/dist/components/form/FormTimeRangePicker.d.ts +8 -0
  31. package/dist/components/router/RouterButton.d.ts +6 -0
  32. package/dist/components/router/RouterError.d.ts +7 -0
  33. package/dist/components/router/RouterGridActionsCellItem.d.ts +6 -0
  34. package/dist/components/router/RouterIconButton.d.ts +6 -0
  35. package/dist/components/router/RouterLink.d.ts +6 -0
  36. package/dist/components/router/RouterListItemButton.d.ts +6 -0
  37. package/dist/components/router/RouterNotFound.d.ts +1 -0
  38. package/dist/components/router/RouterTab.d.ts +6 -0
  39. package/dist/contexts/DialogsContext.d.ts +6 -0
  40. package/dist/contexts/FileContext.d.ts +13 -0
  41. package/dist/hooks/DialogsHooks.d.ts +42 -0
  42. package/dist/hooks/FormHooks.d.ts +52 -0
  43. package/dist/hooks/User.d.ts +8 -0
  44. package/dist/lib/auth/permissions.d.ts +3 -0
  45. package/dist/lib/auth/scopes.d.ts +3 -0
  46. package/dist/lib/queryClient.d.ts +2 -0
  47. package/dist/lib/utils.d.ts +61 -0
  48. package/dist/lib/vite-plugin.d.ts +2 -0
  49. package/dist/models/Navigation.d.ts +18 -0
  50. package/dist/models/User.d.ts +13 -0
  51. package/dist/models/approval/Approval.d.ts +177 -0
  52. package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
  53. package/dist/models/approval/ApprovalFlow.d.ts +49 -0
  54. package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
  55. package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
  56. package/dist/models/approval/ApprovalStatus.d.ts +9 -0
  57. package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
  58. package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
  59. package/dist/models/email/Email.d.ts +13 -0
  60. package/dist/models/email/EmailAttachment.d.ts +6 -0
  61. package/dist/models/file/FileActions.d.ts +6 -0
  62. package/dist/models/file/FileMeta.d.ts +15 -0
  63. package/dist/models/peoplesoft/Department.d.ts +58 -0
  64. package/dist/models/peoplesoft/Employee.d.ts +46 -0
  65. package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
  66. package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
  67. package/dist/providers/AuthProvider.d.ts +8 -0
  68. package/dist/providers/DialogsProvider.d.ts +5 -0
  69. package/dist/providers/LayoutProvider.d.ts +10 -0
  70. package/dist/queries/ApprovalHooks.d.ts +661 -0
  71. package/dist/queries/FileHooks.d.ts +205 -0
  72. package/dist/queries/GraphQueries.d.ts +31 -0
  73. package/dist/queries/PeopleSoftHooks.d.ts +2173 -0
  74. package/dist/queries/index.d.ts +2958 -0
  75. package/package.json +8 -8
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const AppTitle: FC;
@@ -0,0 +1,3 @@
1
+ import { BoxProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ export declare const Fullscreen: FC<BoxProps>;
@@ -0,0 +1,8 @@
1
+ import { Navigation } from '../../models/Navigation';
2
+ import { FC, ReactNode } from 'react';
3
+ interface LayoutProps {
4
+ navigation: Navigation | undefined;
5
+ children: ReactNode;
6
+ }
7
+ export declare const Layout: FC<LayoutProps>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const ToolbarAccount: FC;
@@ -0,0 +1,7 @@
1
+ import { TypographyProps } from '@mui/material';
2
+ interface TypographyWithIconProps extends TypographyProps {
3
+ startIcon?: React.ReactNode;
4
+ endIcon?: React.ReactNode;
5
+ }
6
+ export declare const TypographyWithIcon: React.FC<TypographyWithIconProps>;
7
+ export {};
@@ -0,0 +1,22 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { Navigation, NavigationDivider, NavigationHeader, NavigationItem, NavigationPageItem } from '../../../models/Navigation';
3
+ export declare const isPageItem: (item: NavigationItem) => item is NavigationPageItem;
4
+ export declare const isDivider: (item: NavigationItem) => item is NavigationDivider;
5
+ export declare const isHeader: (item: NavigationItem) => item is NavigationHeader;
6
+ interface NavigationListProps {
7
+ subNavigation: Navigation;
8
+ depth?: number;
9
+ collapsed?: boolean;
10
+ isPopover?: boolean;
11
+ isSidebarFullyExpanded?: boolean;
12
+ isSidebarFullyCollapsed?: boolean;
13
+ expandedWidth: number | string;
14
+ renderItem?: (item: NavigationPageItem, context: {
15
+ collapsed: boolean;
16
+ }) => ReactNode;
17
+ activePath?: string | null;
18
+ onNavigate: (item: NavigationPageItem) => void;
19
+ onClose?: () => void;
20
+ }
21
+ export declare const NavigationList: FC<NavigationListProps>;
22
+ export {};
@@ -0,0 +1,16 @@
1
+ import { NavigationItem, NavigationPageItem } from '../../../models/Navigation';
2
+ import { FC, ReactNode } from 'react';
3
+ interface NavigationListItemProps {
4
+ item: NavigationPageItem;
5
+ isOpen?: boolean;
6
+ selected?: boolean;
7
+ disabled?: boolean;
8
+ collapsed?: boolean;
9
+ isSidebarFullyExpanded?: boolean;
10
+ isSidebarFullyCollapsed?: boolean;
11
+ onClick?: (item: NavigationPageItem) => void;
12
+ renderNested?: (sub: Array<NavigationItem>) => ReactNode;
13
+ onClose?: () => void;
14
+ }
15
+ export declare const NavigationListItem: FC<NavigationListItemProps>;
16
+ export {};
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { Navigation } from '../../../models/Navigation';
3
+ export declare const MINI_WIDTH = 84;
4
+ export declare const EXPANDED_WIDTH = 320;
5
+ export declare const TOOLBAR_HEIGHT = 64;
6
+ interface NavigationRailProps {
7
+ navigation: Navigation;
8
+ expanded: boolean;
9
+ setExpanded: (open: boolean) => void;
10
+ }
11
+ export declare const NavigationRail: FC<NavigationRailProps>;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ import { ChipProps } from '@mui/material';
2
+ import { GridRenderCellParams, GridValidRowModel } from '@mui/x-data-grid-premium';
3
+ interface ChipInputCellProps<T extends GridValidRowModel> {
4
+ params: GridRenderCellParams<T>;
5
+ slotProps?: ChipProps;
6
+ getLabel?: (object: T) => string | number;
7
+ }
8
+ export declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => import("react/jsx-runtime").JSX.Element | null;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ import { GridColumnHeaderParams, GridValidRowModel } from '@mui/x-data-grid-premium';
2
+ export declare const EditableColumnHeader: <T extends GridValidRowModel>({ colDef }: GridColumnHeaderParams<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { DropzoneOptions } from 'react-dropzone';
4
+ interface DropzoneProps extends DropzoneOptions {
5
+ sx?: SxProps<Theme>;
6
+ }
7
+ export declare const Dropzone: FC<DropzoneProps>;
8
+ export {};
@@ -0,0 +1,20 @@
1
+ import { FileViewerListProps } from './fileViewer/FileViewerList';
2
+ import { FileViewerGridProps } from './fileViewer/FileViewerGrid';
3
+ import { FileMeta } from '../../models/file/FileMeta';
4
+ import { FileActions } from '../../models/file/FileActions';
5
+ import { ComponentType, FC, ReactNode } from 'react';
6
+ interface FileViewerComponent {
7
+ Grid: ComponentType<FileViewerGridProps>;
8
+ List: ComponentType<FileViewerListProps>;
9
+ }
10
+ interface FileViewerProps {
11
+ subId: string;
12
+ onDelete?: (params: {
13
+ remainingFileMetas: Array<FileMeta>;
14
+ deletedFileMeta: FileMeta;
15
+ }) => void;
16
+ actions?: FileActions;
17
+ children: (component: FileViewerComponent) => ReactNode;
18
+ }
19
+ export declare const FileViewer: FC<FileViewerProps>;
20
+ export {};
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ import { FileMeta } from '../../../models/file/FileMeta';
3
+ import { SxProps, Theme } from '@mui/material';
4
+ type FileViewerGridItemBar = "hidden" | "always" | "onMouseEnter";
5
+ export interface FileViewerGridProps {
6
+ size?: number;
7
+ itemBar?: FileViewerGridItemBar;
8
+ sx?: SxProps<Theme>;
9
+ }
10
+ export declare const FileViewerGrid: React.FC<FileViewerGridProps>;
11
+ interface GridFileViewerItemProps {
12
+ meta: FileMeta;
13
+ size?: number;
14
+ itemBar?: FileViewerGridItemBar;
15
+ }
16
+ export declare const GridFileViewerItem: React.FC<GridFileViewerItemProps>;
17
+ export {};
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { SxProps, Theme } from '@mui/material';
3
+ import { FileMeta } from '../../../models/file/FileMeta';
4
+ export interface FileViewerListProps {
5
+ sx?: SxProps<Theme>;
6
+ }
7
+ export declare const FileViewerList: FC<FileViewerListProps>;
8
+ interface ListFileViewerItemProps {
9
+ meta: FileMeta;
10
+ }
11
+ export declare const ListFileViewerItem: React.FC<ListFileViewerItemProps>;
12
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ImageViewerProps {
3
+ metaId: string;
4
+ }
5
+ export declare const ImageViewer: React.FC<ImageViewerProps>;
6
+ export {};
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ import { FileMeta } from '../../../../models/file/FileMeta';
3
+ interface ActionsMenuProps {
4
+ meta: FileMeta;
5
+ menu: {
6
+ mouseX: number;
7
+ mouseY: number;
8
+ } | null;
9
+ setMenu: (menu: {
10
+ mouseX: number;
11
+ mouseY: number;
12
+ } | null) => void;
13
+ }
14
+ export declare const ActionsMenu: FC<ActionsMenuProps>;
15
+ export {};
@@ -0,0 +1,7 @@
1
+ import { AutocompleteProps, TextFieldProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { FormOmittedProps } from '../../lib/utils';
4
+ export interface FormAutocompleteProps extends Omit<AutocompleteProps<any, boolean, boolean, boolean>, FormOmittedProps> {
5
+ textFieldProps?: Omit<TextFieldProps, FormOmittedProps>;
6
+ }
7
+ export declare const FormAutocomplete: FC<FormAutocompleteProps>;
@@ -0,0 +1,7 @@
1
+ import { CheckboxProps } from '@mui/material';
2
+ import { FC } from 'react';
3
+ import { FormOmittedProps } from '../../lib/utils';
4
+ export interface FormCheckboxProps extends Omit<CheckboxProps, FormOmittedProps> {
5
+ label?: string;
6
+ }
7
+ export declare const FormCheckbox: FC<FormCheckboxProps>;
@@ -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 '../../lib/utils';
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 { DateRangePickerProps } from '@mui/x-date-pickers-pro';
3
+ import { FC } from 'react';
4
+ import { FormOmittedProps } from '../../lib/utils';
5
+ export interface FormDateRangePickerProps extends Omit<DateRangePickerProps, FormOmittedProps> {
6
+ textFieldProps?: TextFieldProps;
7
+ }
8
+ export declare const FormDateRangePicker: FC<FormDateRangePickerProps>;
@@ -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 '../../lib/utils';
5
+ export interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
6
+ textFieldProps?: TextFieldProps;
7
+ }
8
+ export declare const FormDateTimePicker: FC<FormDateTimePickerProps>;
@@ -0,0 +1,8 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { DateTimeRangePickerProps } from '@mui/x-date-pickers-pro';
3
+ import { FC } from 'react';
4
+ import { FormOmittedProps } from '../../lib/utils';
5
+ export interface FormDateTimeRangePickerProps extends Omit<DateTimeRangePickerProps, FormOmittedProps> {
6
+ textFieldProps?: TextFieldProps;
7
+ }
8
+ export declare const FormDateTimeRangePicker: FC<FormDateTimeRangePickerProps>;
@@ -0,0 +1,9 @@
1
+ import { InputAttributes, NumericFormatProps } from 'react-number-format/types/types';
2
+ import { FC } from 'react';
3
+ import { TextFieldProps } from '@mui/material';
4
+ import { FormOmittedProps } from '../../lib/utils';
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 '../../lib/utils';
4
+ interface Option {
5
+ label: string;
6
+ value: string | number;
7
+ }
8
+ export interface FormRadioGroupProps extends Omit<RadioGroupProps, FormOmittedProps> {
9
+ label?: string;
10
+ options: Array<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 '../../lib/utils';
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 '../../lib/utils';
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 '../../lib/utils';
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,8 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { TimePickerProps } from '@mui/x-date-pickers-pro';
3
+ import { FC } from 'react';
4
+ import { FormOmittedProps } from '../../lib/utils';
5
+ export interface FormTimePickerProps extends Omit<TimePickerProps, FormOmittedProps> {
6
+ textFieldProps?: TextFieldProps;
7
+ }
8
+ export declare const FormTimePicker: FC<FormTimePickerProps>;
@@ -0,0 +1,8 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ import { TimeRangePickerProps } from '@mui/x-date-pickers-pro';
3
+ import { FC } from 'react';
4
+ import { FormOmittedProps } from '../../lib/utils';
5
+ export interface FormTimeRangePickerProps extends Omit<TimeRangePickerProps, FormOmittedProps> {
6
+ textFieldProps?: TextFieldProps;
7
+ }
8
+ export declare const FormTimeRangePicker: FC<FormTimeRangePickerProps>;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { ButtonProps } from '@mui/material';
3
+ import { LinkComponent } from '@tanstack/react-router';
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 { FC } from 'react';
2
+ import { ErrorComponentProps } from '@tanstack/react-router';
3
+ interface RouterErrorProps {
4
+ error: ErrorComponentProps["error"];
5
+ }
6
+ export declare const RouterError: FC<RouterErrorProps>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { GridActionsCellItemProps } from '@mui/x-data-grid-premium';
3
+ import { LinkComponent } from '@tanstack/react-router';
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 { default as React } from 'react';
2
+ import { IconButtonProps } from '@mui/material';
3
+ import { LinkComponent } from '@tanstack/react-router';
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 { default as React } from 'react';
2
+ import { LinkProps } from '@mui/material';
3
+ import { LinkComponent } from '@tanstack/react-router';
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 { default as React } from 'react';
2
+ import { ListItemButtonProps } from '@mui/material';
3
+ import { LinkComponent } from '@tanstack/react-router';
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 { default as React } from 'react';
2
+ import { TabProps } from '@mui/material';
3
+ import { LinkComponent } from '@tanstack/react-router';
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: Array<FileMeta>;
5
+ onDelete?: (params: {
6
+ remainingFileMetas: Array<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,42 @@
1
+ import { ReactNode } from 'react';
2
+ export interface OpenDialogOptions<TResult> {
3
+ onClose?: (result: TResult) => 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<TPayload = undefined, TResult = void> {
13
+ payload: TPayload;
14
+ open: boolean;
15
+ onClose: (result: TResult) => 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<TPayload, TResult> = React.ComponentType<DialogProps<TPayload, TResult>>;
20
+ export interface OpenDialog {
21
+ <TPayload extends undefined, TResult>(Component: DialogComponent<TPayload, TResult>, payload?: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;
22
+ <TPayload, TResult>(Component: DialogComponent<TPayload, TResult>, payload: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;
23
+ }
24
+ export type CloseDialog = <TResult>(dialog: Promise<TResult>, result: TResult) => Promise<TResult>;
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,52 @@
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 DateRangePicker: import('react').FC<import('../components/form/FormDateRangePicker').FormDateRangePickerProps>;
12
+ readonly TimePicker: import('react').FC<import('../components/form/FormTimePicker').FormTimePickerProps>;
13
+ readonly TimeRangePicker: import('react').FC<import('../components/form/FormTimeRangePicker').FormTimeRangePickerProps>;
14
+ readonly DateTimePicker: import('react').FC<import('../components/form/FormDateTimePicker').FormDateTimePickerProps>;
15
+ readonly DateTimeRangePicker: import('react').FC<import('../components/form/FormDateTimeRangePicker').FormDateTimeRangePickerProps>;
16
+ }, {
17
+ readonly SubmitButton: import('react').FC<import('../components/form/FormSubmitButton').FormSubmitButtonProps>;
18
+ }>, 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, {
19
+ readonly TextField: import('react').FC<import('../components/form/FormTextField').FormTextFieldProps>;
20
+ readonly NumberField: import('react').FC<import('../components/form/FormNumberField').FormNumberFieldProps>;
21
+ readonly Autocomplete: import('react').FC<import('../components/form/FormAutocomplete').FormAutocompleteProps>;
22
+ readonly Checkbox: import('react').FC<import('../components/form/FormCheckbox').FormCheckboxProps>;
23
+ readonly Switch: import('react').FC<import('../components/form/FormSwitch').FormSwitchProps>;
24
+ readonly RadioGroup: import('react').FC<import('../components/form/FormRadioGroup').FormRadioGroupProps>;
25
+ readonly Slider: import('react').FC<import('../components/form/FormSlider').FormSliderProps>;
26
+ readonly DatePicker: import('react').FC<import('../components/form/FormDatePicker').FormDatePickerProps>;
27
+ readonly DateRangePicker: import('react').FC<import('../components/form/FormDateRangePicker').FormDateRangePickerProps>;
28
+ readonly TimePicker: import('react').FC<import('../components/form/FormTimePicker').FormTimePickerProps>;
29
+ readonly TimeRangePicker: import('react').FC<import('../components/form/FormTimeRangePicker').FormTimeRangePickerProps>;
30
+ readonly DateTimePicker: import('react').FC<import('../components/form/FormDateTimePicker').FormDateTimePickerProps>;
31
+ readonly DateTimeRangePicker: import('react').FC<import('../components/form/FormDateTimeRangePicker').FormDateTimeRangePickerProps>;
32
+ }, {
33
+ readonly SubmitButton: import('react').FC<import('../components/form/FormSubmitButton').FormSubmitButtonProps>;
34
+ }, TRenderProps>) => import('react').FunctionComponent<import('react').PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
35
+ 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, {
36
+ readonly TextField: import('react').FC<import('../components/form/FormTextField').FormTextFieldProps>;
37
+ readonly NumberField: import('react').FC<import('../components/form/FormNumberField').FormNumberFieldProps>;
38
+ readonly Autocomplete: import('react').FC<import('../components/form/FormAutocomplete').FormAutocompleteProps>;
39
+ readonly Checkbox: import('react').FC<import('../components/form/FormCheckbox').FormCheckboxProps>;
40
+ readonly Switch: import('react').FC<import('../components/form/FormSwitch').FormSwitchProps>;
41
+ readonly RadioGroup: import('react').FC<import('../components/form/FormRadioGroup').FormRadioGroupProps>;
42
+ readonly Slider: import('react').FC<import('../components/form/FormSlider').FormSliderProps>;
43
+ readonly DatePicker: import('react').FC<import('../components/form/FormDatePicker').FormDatePickerProps>;
44
+ readonly DateRangePicker: import('react').FC<import('../components/form/FormDateRangePicker').FormDateRangePickerProps>;
45
+ readonly TimePicker: import('react').FC<import('../components/form/FormTimePicker').FormTimePickerProps>;
46
+ readonly TimeRangePicker: import('react').FC<import('../components/form/FormTimeRangePicker').FormTimeRangePickerProps>;
47
+ readonly DateTimePicker: import('react').FC<import('../components/form/FormDateTimePicker').FormDateTimePickerProps>;
48
+ readonly DateTimeRangePicker: import('react').FC<import('../components/form/FormDateTimeRangePicker').FormDateTimeRangePickerProps>;
49
+ }, {
50
+ readonly SubmitButton: import('react').FC<import('../components/form/FormSubmitButton').FormSubmitButtonProps>;
51
+ }>;
52
+ }>>;
@@ -0,0 +1,8 @@
1
+ import { permissions } from 'virtual:wcz-layout';
2
+ export declare const useUser: () => {
3
+ hasGroup: (group: keyof typeof permissions) => boolean;
4
+ id?: string | undefined;
5
+ name?: string | undefined;
6
+ email?: string | undefined;
7
+ groups?: string[] | undefined;
8
+ };
@@ -0,0 +1,3 @@
1
+ export declare const permissions: {
2
+ admin: string[];
3
+ };
@@ -0,0 +1,3 @@
1
+ export declare const scopes: {
2
+ graph: string[];
3
+ };
@@ -0,0 +1,2 @@
1
+ import { QueryClient } from '@tanstack/react-query';
2
+ export declare const queryClient: QueryClient;
@@ -0,0 +1,61 @@
1
+ import { scopes as definedScopes } from 'virtual:wcz-layout';
2
+ import { AnyFieldApi } from '@tanstack/react-form';
3
+ export declare const WISTRON_PRIMARY_COLOR = "#00506E";
4
+ export declare const WISTRON_SECONDARY_COLOR = "#64DC00";
5
+ export declare class Platform {
6
+ static get isAndroid(): boolean;
7
+ static get isIOS(): boolean;
8
+ static get isWindows(): boolean;
9
+ static get isMacOS(): boolean;
10
+ private static get userAgent();
11
+ }
12
+ export declare const rootRouteHead: () => {
13
+ meta: ({
14
+ charSet: string;
15
+ name?: undefined;
16
+ content?: undefined;
17
+ title?: undefined;
18
+ } | {
19
+ name: string;
20
+ content: string;
21
+ charSet?: undefined;
22
+ title?: undefined;
23
+ } | {
24
+ title: string;
25
+ charSet?: undefined;
26
+ name?: undefined;
27
+ content?: undefined;
28
+ })[];
29
+ links: ({
30
+ rel: string;
31
+ sizes: string;
32
+ href: string;
33
+ type?: undefined;
34
+ } | {
35
+ rel: string;
36
+ type: string;
37
+ sizes: string;
38
+ href: string;
39
+ } | {
40
+ rel: string;
41
+ href: string;
42
+ sizes?: undefined;
43
+ type?: undefined;
44
+ })[];
45
+ };
46
+ export declare const getAccessToken: (scopeKey: keyof typeof definedScopes) => Promise<string>;
47
+ export type FormOmittedProps = "name" | "value" | "onChange" | "onBlur" | "error" | "helperText" | "renderInput" | "type" | "aria-label";
48
+ export declare const getFieldStatus: (field: AnyFieldApi) => {
49
+ isTouched: boolean;
50
+ hasError: boolean;
51
+ helperText: any;
52
+ };
53
+ export declare const toKebabCase: (str: string) => string;
54
+ interface MicrosoftIdTokenPayload {
55
+ sub: string;
56
+ name: string;
57
+ mail: string;
58
+ groups?: Array<string>;
59
+ }
60
+ export declare const decodeJwt: (token: string) => MicrosoftIdTokenPayload;
61
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Plugin } from 'vite';
2
+ export declare function viteWczLayout(): Plugin;