wcz-test 6.7.7 → 6.8.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/ApprovalStatus-C9HPyMiS.js +24 -0
- package/dist/ApprovalStatus-C9HPyMiS.js.map +1 -0
- package/dist/{chunk-4UULRYGW.js → DialogsHooks-BlUsVlfv.js} +7 -14
- package/dist/DialogsHooks-BlUsVlfv.js.map +1 -0
- package/dist/{chunk-MIVD2XWB.js → FileHooks-hWKTwLCr.js} +36 -46
- package/dist/FileHooks-hWKTwLCr.js.map +1 -0
- package/dist/{chunk-TME53DAF.js → FileMeta-G1oT3mYK.js} +3 -5
- package/dist/FileMeta-G1oT3mYK.js.map +1 -0
- package/dist/{chunk-ZMWQQXZT.js → RouterListItemButton-Cx7rXEfm.js} +6 -8
- package/dist/RouterListItemButton-Cx7rXEfm.js.map +1 -0
- package/dist/android-chrome-192x192.png +0 -0
- package/dist/android-chrome-512x512.png +0 -0
- package/dist/apple-touch-icon.png +0 -0
- package/dist/auth-client-D9snEe6B.js +79 -0
- package/dist/auth-client-D9snEe6B.js.map +1 -0
- package/dist/client-utils.d.ts +3 -702
- package/dist/client-utils.js +7 -17
- package/dist/client-utils.js.map +1 -1
- package/dist/components/core/AppTitle.d.ts +2 -0
- package/dist/components/core/Fullscreen.d.ts +3 -0
- package/dist/components/core/Layout.d.ts +8 -0
- package/dist/components/core/ToolbarAccount.d.ts +2 -0
- package/dist/components/core/TypographyWithIcon.d.ts +7 -0
- package/dist/components/core/navigation/NavigationList.d.ts +22 -0
- package/dist/components/core/navigation/NavigationListItem.d.ts +16 -0
- package/dist/components/core/navigation/NavigationRail.d.ts +12 -0
- package/dist/components/data-grid/ChipInputCell.d.ts +9 -0
- package/dist/components/data-grid/EditableColumnHeader.d.ts +2 -0
- package/dist/components/file/Dropzone.d.ts +8 -0
- package/dist/components/file/FileViewer.d.ts +20 -0
- package/dist/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
- package/dist/components/file/fileViewer/FileViewerList.d.ts +12 -0
- package/dist/components/file/fileViewer/ImageViewer.d.ts +6 -0
- package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
- package/dist/components/form/FormAutocomplete.d.ts +7 -0
- package/dist/components/form/FormCheckbox.d.ts +7 -0
- package/dist/components/form/FormDatePicker.d.ts +8 -0
- package/dist/components/form/FormDateRangePicker.d.ts +8 -0
- package/dist/components/form/FormDateTimePicker.d.ts +8 -0
- package/dist/components/form/FormDateTimeRangePicker.d.ts +8 -0
- package/dist/components/form/FormNumberField.d.ts +9 -0
- package/dist/components/form/FormRadioGroup.d.ts +13 -0
- package/dist/components/form/FormSlider.d.ts +7 -0
- package/dist/components/form/FormSubmitButton.d.ts +4 -0
- package/dist/components/form/FormSwitch.d.ts +7 -0
- package/dist/components/form/FormTextField.d.ts +7 -0
- package/dist/components/form/FormTimePicker.d.ts +8 -0
- package/dist/components/form/FormTimeRangePicker.d.ts +8 -0
- package/dist/components/router/RouterButton.d.ts +6 -0
- package/dist/components/router/RouterError.d.ts +7 -0
- package/dist/components/router/RouterGridActionsCellItem.d.ts +6 -0
- package/dist/components/router/RouterIconButton.d.ts +6 -0
- package/dist/components/router/RouterLink.d.ts +6 -0
- package/dist/components/router/RouterListItemButton.d.ts +6 -0
- package/dist/components/router/RouterNotFound.d.ts +1 -0
- package/dist/components/router/RouterTab.d.ts +6 -0
- package/dist/components.d.ts +14 -89
- package/dist/components.js +124 -227
- package/dist/components.js.map +1 -1
- package/dist/contexts/DialogsContext.d.ts +6 -0
- package/dist/contexts/FileContext.d.ts +13 -0
- package/dist/env-CoxTjaDr.js +27 -0
- package/dist/env-CoxTjaDr.js.map +1 -0
- package/dist/env.d.ts +10 -0
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.png +0 -0
- package/dist/hooks/DialogsHooks.d.ts +42 -0
- package/dist/hooks/FormHooks.d.ts +52 -0
- package/dist/hooks/ThemeHook.d.ts +4 -0
- package/dist/hooks.d.ts +3 -159
- package/dist/hooks.js +56 -121
- package/dist/hooks.js.map +1 -1
- package/dist/index.d.ts +3 -36
- package/dist/index.js +173 -1882
- package/dist/index.js.map +1 -1
- package/dist/{client-utils.d.cts → lib/auth/auth-client.d.ts} +110 -126
- package/dist/lib/auth/auth.d.ts +24 -0
- package/dist/lib/db/index.d.ts +4 -0
- package/dist/lib/db/schemas/auth.d.ts +606 -0
- package/dist/{utils-ChipkRJ9.d.ts → lib/utils.d.ts} +11 -10
- package/dist/lib/vite-plugin.d.ts +2 -0
- package/dist/manifest.webmanifest +18 -0
- package/dist/models/Navigation.d.ts +18 -0
- package/dist/models/User.d.ts +8 -0
- package/dist/models/approval/Approval.d.ts +177 -0
- package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
- package/dist/models/approval/ApprovalFlow.d.ts +49 -0
- package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
- package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
- package/dist/models/approval/ApprovalStatus.d.ts +9 -0
- package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
- package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
- package/dist/models/email/Email.d.ts +13 -0
- package/dist/models/email/EmailAttachment.d.ts +6 -0
- package/dist/models/file/FileActions.d.ts +6 -0
- package/dist/{FileMeta-CC014fnB.d.cts → models/file/FileMeta.d.ts} +3 -6
- package/dist/models/peoplesoft/Department.d.ts +58 -0
- package/dist/models/peoplesoft/Employee.d.ts +46 -0
- package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
- package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
- package/dist/models.d.ts +25 -161
- package/dist/models.js +109 -160
- package/dist/models.js.map +1 -1
- package/dist/providers/DialogsProvider.d.ts +6 -0
- package/dist/providers/LayoutProvider.d.ts +11 -0
- package/dist/queries/Approval.d.ts +585 -0
- package/dist/queries/ApprovalHooks.d.ts +315 -0
- package/dist/queries/FileHooks.d.ts +151 -0
- package/dist/queries/PeopleSoftHooks.d.ts +537 -0
- package/dist/queries.d.ts +4 -1585
- package/dist/queries.js +59 -86
- package/dist/queries.js.map +1 -1
- package/dist/robots.txt +3 -0
- package/dist/server-utils.d.ts +2 -35
- package/dist/server-utils.js +13 -26
- package/dist/server-utils.js.map +1 -1
- package/dist/{chunk-2ROTNT7W.js → utils-DKyKGba7.js} +13 -18
- package/dist/utils-DKyKGba7.js.map +1 -0
- package/dist/utils.d.ts +1 -2
- package/dist/utils.js +3 -9
- package/dist/utils.js.map +1 -1
- package/dist/vite.d.ts +1 -5
- package/dist/vite.js +3 -6
- package/dist/vite.js.map +1 -1
- package/package.json +15 -23
- package/dist/Approval-CWQn-kah.d.cts +0 -284
- package/dist/Approval-CWQn-kah.d.ts +0 -284
- package/dist/FileMeta-CC014fnB.d.ts +0 -18
- package/dist/chunk-2ROTNT7W.js.map +0 -1
- package/dist/chunk-4FRZRIAO.js +0 -29
- package/dist/chunk-4FRZRIAO.js.map +0 -1
- package/dist/chunk-4UULRYGW.js.map +0 -1
- package/dist/chunk-5WRI5ZAA.js +0 -31
- package/dist/chunk-5WRI5ZAA.js.map +0 -1
- package/dist/chunk-CNDRHYQK.js +0 -883
- package/dist/chunk-CNDRHYQK.js.map +0 -1
- package/dist/chunk-DXXZZHAK.js +0 -28
- package/dist/chunk-DXXZZHAK.js.map +0 -1
- package/dist/chunk-MIVD2XWB.js.map +0 -1
- package/dist/chunk-TME53DAF.js.map +0 -1
- package/dist/chunk-ZMWQQXZT.js.map +0 -1
- package/dist/client-utils.cjs +0 -118
- package/dist/client-utils.cjs.map +0 -1
- package/dist/components.cjs +0 -802
- package/dist/components.cjs.map +0 -1
- package/dist/components.d.cts +0 -89
- package/dist/hooks.cjs +0 -534
- package/dist/hooks.cjs.map +0 -1
- package/dist/hooks.d.cts +0 -160
- package/dist/index.cjs +0 -3373
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -36
- package/dist/models.cjs +0 -330
- package/dist/models.cjs.map +0 -1
- package/dist/models.d.cts +0 -161
- package/dist/queries.cjs +0 -706
- package/dist/queries.cjs.map +0 -1
- package/dist/queries.d.cts +0 -1585
- package/dist/server-utils.cjs +0 -145
- package/dist/server-utils.cjs.map +0 -1
- package/dist/server-utils.d.cts +0 -36
- package/dist/utils-ChipkRJ9.d.cts +0 -49
- package/dist/utils.cjs +0 -81
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.d.cts +0 -4
- package/dist/vite.cjs +0 -94
- package/dist/vite.cjs.map +0 -1
- package/dist/vite.d.cts +0 -5
package/dist/client-utils.js
CHANGED
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
WISTRON_SECONDARY_COLOR,
|
|
4
|
-
authClient
|
|
5
|
-
} from "./chunk-CNDRHYQK.js";
|
|
6
|
-
import {
|
|
7
|
-
Platform
|
|
8
|
-
} from "./chunk-2ROTNT7W.js";
|
|
9
|
-
import "./chunk-DXXZZHAK.js";
|
|
10
|
-
import "./chunk-5WRI5ZAA.js";
|
|
11
|
-
|
|
12
|
-
// src/client-utils.ts
|
|
1
|
+
import { P } from "./utils-DKyKGba7.js";
|
|
2
|
+
import { W, a, b } from "./auth-client-D9snEe6B.js";
|
|
13
3
|
import { t } from "i18next";
|
|
14
4
|
import { useTranslation } from "react-i18next";
|
|
15
5
|
export {
|
|
16
|
-
Platform,
|
|
17
|
-
WISTRON_PRIMARY_COLOR,
|
|
18
|
-
WISTRON_SECONDARY_COLOR,
|
|
19
|
-
authClient,
|
|
6
|
+
P as Platform,
|
|
7
|
+
W as WISTRON_PRIMARY_COLOR,
|
|
8
|
+
a as WISTRON_SECONDARY_COLOR,
|
|
9
|
+
b as authClient,
|
|
20
10
|
t,
|
|
21
11
|
useTranslation
|
|
22
12
|
};
|
|
23
|
-
//# sourceMappingURL=client-utils.js.map
|
|
13
|
+
//# sourceMappingURL=client-utils.js.map
|
package/dist/client-utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"client-utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -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,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 { FileViewerGridProps } from './fileViewer/FileViewerGrid';
|
|
2
|
+
import { ComponentType, FC, ReactNode } from 'react';
|
|
3
|
+
import { FileMeta } from '../../models/file/FileMeta';
|
|
4
|
+
import { FileActions } from '../../models/file/FileActions';
|
|
5
|
+
import { FileViewerListProps } from './fileViewer/FileViewerList';
|
|
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 { SxProps, Theme } from '@mui/material';
|
|
3
|
+
import { FileMeta } from '../../../models/file/FileMeta';
|
|
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,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,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,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 {};
|
package/dist/components.d.ts
CHANGED
|
@@ -1,89 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
declare const Fullscreen: FC<BoxProps>;
|
|
17
|
-
|
|
18
|
-
interface DropzoneProps extends DropzoneOptions {
|
|
19
|
-
sx?: SxProps<Theme>;
|
|
20
|
-
}
|
|
21
|
-
declare const Dropzone: FC<DropzoneProps>;
|
|
22
|
-
|
|
23
|
-
type FileViewerGridItemBar = "hidden" | "always" | "onMouseEnter";
|
|
24
|
-
interface FileViewerGridProps {
|
|
25
|
-
size?: number;
|
|
26
|
-
itemBar?: FileViewerGridItemBar;
|
|
27
|
-
sx?: SxProps<Theme>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare const FileActionsSchema: z.ZodObject<{
|
|
31
|
-
download: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
delete: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
type FileActions = z.infer<typeof FileActionsSchema>;
|
|
35
|
-
|
|
36
|
-
interface FileViewerListProps {
|
|
37
|
-
sx?: SxProps<Theme>;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface FileViewerComponent {
|
|
41
|
-
Grid: ComponentType<FileViewerGridProps>;
|
|
42
|
-
List: ComponentType<FileViewerListProps>;
|
|
43
|
-
}
|
|
44
|
-
interface FileViewerProps {
|
|
45
|
-
subId: string;
|
|
46
|
-
onDelete?: (params: {
|
|
47
|
-
remainingFileMetas: Array<FileMeta>;
|
|
48
|
-
deletedFileMeta: FileMeta;
|
|
49
|
-
}) => void;
|
|
50
|
-
actions?: FileActions;
|
|
51
|
-
children: (component: FileViewerComponent) => ReactNode;
|
|
52
|
-
}
|
|
53
|
-
declare const FileViewer: FC<FileViewerProps>;
|
|
54
|
-
|
|
55
|
-
interface ChipInputCellProps<T extends GridValidRowModel> {
|
|
56
|
-
params: GridRenderCellParams<T>;
|
|
57
|
-
slotProps?: ChipProps;
|
|
58
|
-
getLabel?: (object: T) => string | number;
|
|
59
|
-
}
|
|
60
|
-
declare const ChipInputCell: <T extends GridValidRowModel>({ params, slotProps, getLabel }: ChipInputCellProps<T>) => react_jsx_runtime.JSX.Element | null;
|
|
61
|
-
|
|
62
|
-
declare const EditableColumnHeader: <T extends GridValidRowModel>({ colDef }: GridColumnHeaderParams<T>) => react_jsx_runtime.JSX.Element;
|
|
63
|
-
|
|
64
|
-
declare const Component$5: react__default.ForwardRefExoticComponent<Omit<ButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
65
|
-
declare const RouterButton: LinkComponent<typeof Component$5>;
|
|
66
|
-
|
|
67
|
-
declare const Component$4: react__default.ForwardRefExoticComponent<GridActionsCellItemProps & react__default.RefAttributes<HTMLButtonElement>>;
|
|
68
|
-
declare const RouterGridActionsCellItem: LinkComponent<typeof Component$4>;
|
|
69
|
-
|
|
70
|
-
declare const Component$3: react__default.ForwardRefExoticComponent<Omit<IconButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
71
|
-
declare const RouterIconButton: LinkComponent<typeof Component$3>;
|
|
72
|
-
|
|
73
|
-
declare const Component$2: react__default.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
74
|
-
declare const RouterLink: LinkComponent<typeof Component$2>;
|
|
75
|
-
|
|
76
|
-
declare const Component$1: react__default.ForwardRefExoticComponent<Omit<TabProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
77
|
-
declare const RouterTab: LinkComponent<typeof Component$1>;
|
|
78
|
-
|
|
79
|
-
declare const Component: react__default.ForwardRefExoticComponent<Omit<ListItemButtonProps<"a">, "ref"> & react__default.RefAttributes<HTMLAnchorElement>>;
|
|
80
|
-
declare const RouterListItemButton: LinkComponent<typeof Component>;
|
|
81
|
-
|
|
82
|
-
declare function RouterNotFound(): react_jsx_runtime.JSX.Element;
|
|
83
|
-
|
|
84
|
-
interface RouterErrorProps {
|
|
85
|
-
error: ErrorComponentProps["error"];
|
|
86
|
-
}
|
|
87
|
-
declare const RouterError: FC<RouterErrorProps>;
|
|
88
|
-
|
|
89
|
-
export { ChipInputCell, Dropzone, EditableColumnHeader, FileViewer, Fullscreen, RouterButton, RouterError, RouterGridActionsCellItem, RouterIconButton, RouterLink, RouterListItemButton, RouterNotFound, RouterTab, TypographyWithIcon };
|
|
1
|
+
export { TypographyWithIcon } from './components/core/TypographyWithIcon';
|
|
2
|
+
export { Fullscreen } from './components/core/Fullscreen';
|
|
3
|
+
export { Dropzone } from './components/file/Dropzone';
|
|
4
|
+
export { FileViewer } from './components/file/FileViewer';
|
|
5
|
+
export { ChipInputCell } from './components/data-grid/ChipInputCell';
|
|
6
|
+
export { EditableColumnHeader } from './components/data-grid/EditableColumnHeader';
|
|
7
|
+
export { RouterButton } from './components/router/RouterButton';
|
|
8
|
+
export { RouterGridActionsCellItem } from './components/router/RouterGridActionsCellItem';
|
|
9
|
+
export { RouterIconButton } from './components/router/RouterIconButton';
|
|
10
|
+
export { RouterLink } from './components/router/RouterLink';
|
|
11
|
+
export { RouterTab } from './components/router/RouterTab';
|
|
12
|
+
export { RouterListItemButton } from './components/router/RouterListItemButton';
|
|
13
|
+
export { RouterNotFound } from './components/router/RouterNotFound';
|
|
14
|
+
export { RouterError } from './components/router/RouterError';
|