wcz-test 6.7.7 → 6.8.1
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/hooks.d.cts
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { ButtonProps, TextFieldProps, SliderProps, RadioGroupProps, SwitchProps, CheckboxProps, AutocompleteProps } from '@mui/material';
|
|
2
|
-
import { DateTimeRangePickerProps, DateTimePickerProps, TimeRangePickerProps, TimePickerProps, DateRangePickerProps, DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
3
|
-
import { F as FormOmittedProps } from './utils-ChipkRJ9.cjs';
|
|
4
|
-
import { NumericFormatProps, InputAttributes } from 'react-number-format/types/types';
|
|
5
|
-
import * as _tanstack_react_form from '@tanstack/react-form';
|
|
6
|
-
import * as react from 'react';
|
|
7
|
-
import { ReactNode } from 'react';
|
|
8
|
-
import * as _tanstack_form_core from '@tanstack/form-core';
|
|
9
|
-
export { useInView } from 'react-intersection-observer';
|
|
10
|
-
import 'axios';
|
|
11
|
-
import 'uuidv7';
|
|
12
|
-
import '@t3-oss/env-core';
|
|
13
|
-
|
|
14
|
-
type FormSubmitButtonProps = Omit<ButtonProps, "loading" | "disabled" | "onClick" | "type">;
|
|
15
|
-
|
|
16
|
-
interface FormDateTimeRangePickerProps extends Omit<DateTimeRangePickerProps, FormOmittedProps> {
|
|
17
|
-
textFieldProps?: TextFieldProps;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface FormDateTimePickerProps extends Omit<DateTimePickerProps, FormOmittedProps> {
|
|
21
|
-
textFieldProps?: TextFieldProps;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface FormTimeRangePickerProps extends Omit<TimeRangePickerProps, FormOmittedProps> {
|
|
25
|
-
textFieldProps?: TextFieldProps;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
interface FormTimePickerProps extends Omit<TimePickerProps, FormOmittedProps> {
|
|
29
|
-
textFieldProps?: TextFieldProps;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface FormDateRangePickerProps extends Omit<DateRangePickerProps, FormOmittedProps> {
|
|
33
|
-
textFieldProps?: TextFieldProps;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface FormDatePickerProps extends Omit<DatePickerProps, FormOmittedProps> {
|
|
37
|
-
textFieldProps?: TextFieldProps;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface FormSliderProps extends Omit<SliderProps, FormOmittedProps> {
|
|
41
|
-
label?: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface Option {
|
|
45
|
-
label: string;
|
|
46
|
-
value: string | number;
|
|
47
|
-
}
|
|
48
|
-
interface FormRadioGroupProps extends Omit<RadioGroupProps, FormOmittedProps> {
|
|
49
|
-
label?: string;
|
|
50
|
-
options: Array<Option>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface FormSwitchProps extends Omit<SwitchProps, FormOmittedProps> {
|
|
54
|
-
label?: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface FormCheckboxProps extends Omit<CheckboxProps, FormOmittedProps> {
|
|
58
|
-
label?: string;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface FormAutocompleteProps extends Omit<AutocompleteProps<any, boolean, boolean, boolean>, FormOmittedProps> {
|
|
62
|
-
textFieldProps?: Omit<TextFieldProps, FormOmittedProps>;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface FormNumberFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
|
|
66
|
-
defaultValue?: number | null;
|
|
67
|
-
options?: Omit<NumericFormatProps<InputAttributes>, "customInput" | "onValueChange" | keyof InputAttributes>;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface FormTextFieldProps extends Omit<TextFieldProps, FormOmittedProps> {
|
|
71
|
-
type?: "color" | "email" | "password" | "search" | "tel" | "text" | "url";
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare const useFieldContext: <TData>() => _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>;
|
|
75
|
-
declare const useFormContext: () => _tanstack_react_form.ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
|
|
76
|
-
declare const useLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: _tanstack_form_core.FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => _tanstack_react_form.AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
|
|
77
|
-
readonly TextField: react.FC<FormTextFieldProps>;
|
|
78
|
-
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
79
|
-
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
80
|
-
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
81
|
-
readonly Switch: react.FC<FormSwitchProps>;
|
|
82
|
-
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
83
|
-
readonly Slider: react.FC<FormSliderProps>;
|
|
84
|
-
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
85
|
-
readonly DateRangePicker: react.FC<FormDateRangePickerProps>;
|
|
86
|
-
readonly TimePicker: react.FC<FormTimePickerProps>;
|
|
87
|
-
readonly TimeRangePicker: react.FC<FormTimeRangePickerProps>;
|
|
88
|
-
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
89
|
-
readonly DateTimeRangePicker: react.FC<FormDateTimeRangePickerProps>;
|
|
90
|
-
}, {
|
|
91
|
-
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
92
|
-
}>;
|
|
93
|
-
declare const withLayoutForm: <TFormData, TOnMount extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChange extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends _tanstack_form_core.FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends _tanstack_form_core.FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: _tanstack_react_form.WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
|
|
94
|
-
readonly TextField: react.FC<FormTextFieldProps>;
|
|
95
|
-
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
96
|
-
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
97
|
-
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
98
|
-
readonly Switch: react.FC<FormSwitchProps>;
|
|
99
|
-
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
100
|
-
readonly Slider: react.FC<FormSliderProps>;
|
|
101
|
-
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
102
|
-
readonly DateRangePicker: react.FC<FormDateRangePickerProps>;
|
|
103
|
-
readonly TimePicker: react.FC<FormTimePickerProps>;
|
|
104
|
-
readonly TimeRangePicker: react.FC<FormTimeRangePickerProps>;
|
|
105
|
-
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
106
|
-
readonly DateTimeRangePicker: react.FC<FormDateTimeRangePickerProps>;
|
|
107
|
-
}, {
|
|
108
|
-
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
109
|
-
}, TRenderProps>) => (props: react.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
110
|
-
form: _tanstack_react_form.AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [_tanstack_form_core.FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (_tanstack_form_core.FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {
|
|
111
|
-
readonly TextField: react.FC<FormTextFieldProps>;
|
|
112
|
-
readonly NumberField: react.FC<FormNumberFieldProps>;
|
|
113
|
-
readonly Autocomplete: react.FC<FormAutocompleteProps>;
|
|
114
|
-
readonly Checkbox: react.FC<FormCheckboxProps>;
|
|
115
|
-
readonly Switch: react.FC<FormSwitchProps>;
|
|
116
|
-
readonly RadioGroup: react.FC<FormRadioGroupProps>;
|
|
117
|
-
readonly Slider: react.FC<FormSliderProps>;
|
|
118
|
-
readonly DatePicker: react.FC<FormDatePickerProps>;
|
|
119
|
-
readonly DateRangePicker: react.FC<FormDateRangePickerProps>;
|
|
120
|
-
readonly TimePicker: react.FC<FormTimePickerProps>;
|
|
121
|
-
readonly TimeRangePicker: react.FC<FormTimeRangePickerProps>;
|
|
122
|
-
readonly DateTimePicker: react.FC<FormDateTimePickerProps>;
|
|
123
|
-
readonly DateTimeRangePicker: react.FC<FormDateTimeRangePickerProps>;
|
|
124
|
-
}, {
|
|
125
|
-
readonly SubmitButton: react.FC<FormSubmitButtonProps>;
|
|
126
|
-
}>;
|
|
127
|
-
}>) => react.ReactNode;
|
|
128
|
-
|
|
129
|
-
interface OpenDialogOptions<TResult> {
|
|
130
|
-
onClose?: (result: TResult) => Promise<void>;
|
|
131
|
-
}
|
|
132
|
-
interface AlertOptions {
|
|
133
|
-
title?: ReactNode;
|
|
134
|
-
}
|
|
135
|
-
interface ConfirmOptions {
|
|
136
|
-
title?: ReactNode;
|
|
137
|
-
cancelText?: ReactNode;
|
|
138
|
-
}
|
|
139
|
-
interface DialogProps<TPayload = undefined, TResult = void> {
|
|
140
|
-
payload: TPayload;
|
|
141
|
-
open: boolean;
|
|
142
|
-
onClose: (result: TResult) => Promise<void>;
|
|
143
|
-
}
|
|
144
|
-
type OpenAlertDialog = (message: ReactNode, options?: AlertOptions) => Promise<void>;
|
|
145
|
-
type OpenConfirmDialog = (message: ReactNode, options?: ConfirmOptions) => Promise<boolean>;
|
|
146
|
-
type DialogComponent<TPayload, TResult> = React.ComponentType<DialogProps<TPayload, TResult>>;
|
|
147
|
-
interface OpenDialog {
|
|
148
|
-
<TPayload extends undefined, TResult>(Component: DialogComponent<TPayload, TResult>, payload?: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;
|
|
149
|
-
<TPayload, TResult>(Component: DialogComponent<TPayload, TResult>, payload: TPayload, options?: OpenDialogOptions<TResult>): Promise<TResult>;
|
|
150
|
-
}
|
|
151
|
-
type CloseDialog = <TResult>(dialog: Promise<TResult>, result: TResult) => Promise<TResult>;
|
|
152
|
-
interface DialogHook {
|
|
153
|
-
alert: OpenAlertDialog;
|
|
154
|
-
confirm: OpenConfirmDialog;
|
|
155
|
-
open: OpenDialog;
|
|
156
|
-
close: CloseDialog;
|
|
157
|
-
}
|
|
158
|
-
declare function useDialogs(): DialogHook;
|
|
159
|
-
|
|
160
|
-
export { type DialogProps, useDialogs, useFieldContext, useFormContext, useLayoutForm, withLayoutForm };
|