wcz-test 6.22.2 → 6.23.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/_virtual/compiler-runtime.js +6 -0
- package/dist/_virtual/compiler-runtime.js.map +1 -0
- package/dist/_virtual/compiler-runtime2.js +5 -0
- package/dist/_virtual/compiler-runtime2.js.map +1 -0
- package/dist/_virtual/jsx-runtime.js +6 -0
- package/dist/_virtual/jsx-runtime.js.map +1 -0
- package/dist/_virtual/jsx-runtime2.js +5 -0
- package/dist/_virtual/jsx-runtime2.js.map +1 -0
- package/dist/_virtual/react-compiler-runtime.development.js +5 -0
- package/dist/_virtual/react-compiler-runtime.development.js.map +1 -0
- package/dist/_virtual/react-compiler-runtime.production.js +5 -0
- package/dist/_virtual/react-compiler-runtime.production.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.js +5 -0
- package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.js +5 -0
- package/dist/_virtual/react-jsx-runtime.production.js.map +1 -0
- package/dist/client.js +4 -4
- package/dist/components/core/AppTitle.d.ts +2 -0
- package/dist/components/core/AppTitle.js +23 -0
- package/dist/components/core/AppTitle.js.map +1 -0
- package/dist/components/core/Fullscreen.d.ts +3 -0
- package/dist/components/core/Fullscreen.js +104 -0
- package/dist/components/core/Fullscreen.js.map +1 -0
- package/dist/components/core/Layout.d.ts +8 -0
- package/dist/components/core/Layout.js +215 -0
- package/dist/components/core/Layout.js.map +1 -0
- package/dist/components/core/ToolbarAccount.d.ts +2 -0
- package/dist/components/core/ToolbarAccount.js +602 -0
- package/dist/components/core/ToolbarAccount.js.map +1 -0
- package/dist/components/core/TypographyWithIcon.d.ts +7 -0
- package/dist/components/core/TypographyWithIcon.js +117 -0
- package/dist/components/core/TypographyWithIcon.js.map +1 -0
- package/dist/components/core/navigation/NavigationList.d.ts +22 -0
- package/dist/components/core/navigation/NavigationList.js +166 -0
- package/dist/components/core/navigation/NavigationList.js.map +1 -0
- package/dist/components/core/navigation/NavigationListItem.d.ts +16 -0
- package/dist/components/core/navigation/NavigationListItem.js +467 -0
- package/dist/components/core/navigation/NavigationListItem.js.map +1 -0
- package/dist/components/core/navigation/NavigationRail.d.ts +12 -0
- package/dist/components/core/navigation/NavigationRail.js +141 -0
- package/dist/components/core/navigation/NavigationRail.js.map +1 -0
- package/dist/components/data-grid/ChipInputCell.d.ts +9 -0
- package/dist/components/data-grid/ChipInputCell.js +95 -0
- package/dist/components/data-grid/ChipInputCell.js.map +1 -0
- package/dist/components/data-grid/EditableColumnHeader.d.ts +2 -0
- package/dist/components/data-grid/EditableColumnHeader.js +30 -0
- package/dist/components/data-grid/EditableColumnHeader.js.map +1 -0
- package/dist/components/file/Dropzone.d.ts +8 -0
- package/dist/components/file/Dropzone.js +151 -0
- package/dist/components/file/Dropzone.js.map +1 -0
- package/dist/components/file/FileViewer.d.ts +20 -0
- package/dist/components/file/FileViewer.js +127 -0
- package/dist/components/file/FileViewer.js.map +1 -0
- package/dist/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
- package/dist/components/file/fileViewer/FileViewerGrid.js +282 -0
- package/dist/components/file/fileViewer/FileViewerGrid.js.map +1 -0
- package/dist/components/file/fileViewer/FileViewerList.d.ts +12 -0
- package/dist/components/file/fileViewer/FileViewerList.js +191 -0
- package/dist/components/file/fileViewer/FileViewerList.js.map +1 -0
- package/dist/components/file/fileViewer/ImageViewer.d.ts +6 -0
- package/dist/components/file/fileViewer/ImageViewer.js +75 -0
- package/dist/components/file/fileViewer/ImageViewer.js.map +1 -0
- package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
- package/dist/components/file/fileViewer/common/ActionsMenu.js +159 -0
- package/dist/components/file/fileViewer/common/ActionsMenu.js.map +1 -0
- package/dist/components/form/FormAutocomplete.d.ts +7 -0
- package/dist/components/form/FormAutocomplete.js +80 -0
- package/dist/components/form/FormAutocomplete.js.map +1 -0
- package/dist/components/form/FormCheckbox.d.ts +7 -0
- package/dist/components/form/FormCheckbox.js +81 -0
- package/dist/components/form/FormCheckbox.js.map +1 -0
- package/dist/components/form/FormDatePicker.d.ts +8 -0
- package/dist/components/form/FormDatePicker.js +77 -0
- package/dist/components/form/FormDatePicker.js.map +1 -0
- package/dist/components/form/FormDateRangePicker.d.ts +8 -0
- package/dist/components/form/FormDateRangePicker.js +77 -0
- package/dist/components/form/FormDateRangePicker.js.map +1 -0
- package/dist/components/form/FormDateTimePicker.d.ts +8 -0
- package/dist/components/form/FormDateTimePicker.js +77 -0
- package/dist/components/form/FormDateTimePicker.js.map +1 -0
- package/dist/components/form/FormDateTimeRangePicker.d.ts +8 -0
- package/dist/components/form/FormDateTimeRangePicker.js +77 -0
- package/dist/components/form/FormDateTimeRangePicker.js.map +1 -0
- package/dist/components/form/FormNumberField.d.ts +9 -0
- package/dist/components/form/FormNumberField.js +73 -0
- package/dist/components/form/FormNumberField.js.map +1 -0
- package/dist/components/form/FormRadioGroup.d.ts +13 -0
- package/dist/components/form/FormRadioGroup.js +113 -0
- package/dist/components/form/FormRadioGroup.js.map +1 -0
- package/dist/components/form/FormSlider.d.ts +7 -0
- package/dist/components/form/FormSlider.js +94 -0
- package/dist/components/form/FormSlider.js.map +1 -0
- package/dist/components/form/FormSubmitButton.d.ts +4 -0
- package/dist/components/form/FormSubmitButton.js +50 -0
- package/dist/components/form/FormSubmitButton.js.map +1 -0
- package/dist/components/form/FormSwitch.d.ts +7 -0
- package/dist/components/form/FormSwitch.js +81 -0
- package/dist/components/form/FormSwitch.js.map +1 -0
- package/dist/components/form/FormTextField.d.ts +7 -0
- package/dist/components/form/FormTextField.js +52 -0
- package/dist/components/form/FormTextField.js.map +1 -0
- package/dist/components/form/FormTimePicker.d.ts +8 -0
- package/dist/components/form/FormTimePicker.js +77 -0
- package/dist/components/form/FormTimePicker.js.map +1 -0
- package/dist/components/form/FormTimeRangePicker.d.ts +8 -0
- package/dist/components/form/FormTimeRangePicker.js +77 -0
- package/dist/components/form/FormTimeRangePicker.js.map +1 -0
- package/dist/components/router/RouterButton.d.ts +6 -0
- package/dist/components/router/RouterButton.js +35 -0
- package/dist/components/router/RouterButton.js.map +1 -0
- package/dist/components/router/RouterError.d.ts +7 -0
- package/dist/components/router/RouterError.js +62 -0
- package/dist/components/router/RouterError.js.map +1 -0
- package/dist/components/router/RouterGridActionsCellItem.d.ts +6 -0
- package/dist/components/router/RouterGridActionsCellItem.js +35 -0
- package/dist/components/router/RouterGridActionsCellItem.js.map +1 -0
- package/dist/components/router/RouterIconButton.d.ts +6 -0
- package/dist/components/router/RouterIconButton.js +35 -0
- package/dist/components/router/RouterIconButton.js.map +1 -0
- package/dist/components/router/RouterLink.d.ts +6 -0
- package/dist/components/router/RouterLink.js +35 -0
- package/dist/components/router/RouterLink.js.map +1 -0
- package/dist/components/router/RouterListItemButton.d.ts +6 -0
- package/dist/{RouterListItemButton-CagMd8F_.js → components/router/RouterListItemButton.js} +4 -4
- package/dist/components/router/RouterListItemButton.js.map +1 -0
- package/dist/components/router/RouterNotFound.d.ts +1 -0
- package/dist/components/router/RouterNotFound.js +53 -0
- package/dist/components/router/RouterNotFound.js.map +1 -0
- package/dist/components/router/RouterTab.d.ts +6 -0
- package/dist/components/router/RouterTab.js +35 -0
- package/dist/components/router/RouterTab.js.map +1 -0
- package/dist/components.js +15 -1486
- package/dist/components.js.map +1 -1
- package/dist/contexts/DialogsContext.d.ts +6 -0
- package/dist/contexts/DialogsContext.js +6 -0
- package/dist/contexts/DialogsContext.js.map +1 -0
- package/dist/contexts/FileContext.d.ts +13 -0
- package/dist/contexts/FileContext.js +14 -0
- package/dist/contexts/FileContext.js.map +1 -0
- package/dist/contexts/UserContext.d.ts +7 -0
- package/dist/contexts/UserContext.js +6 -0
- package/dist/contexts/UserContext.js.map +1 -0
- package/dist/env.d.ts +10 -0
- package/dist/env.js +26 -0
- package/dist/env.js.map +1 -0
- package/dist/exports/client.d.ts +4 -0
- package/dist/exports/components.d.ts +14 -0
- package/dist/exports/hooks.d.ts +5 -0
- package/dist/exports/index.d.ts +3 -0
- package/dist/exports/models.d.ts +24 -0
- package/dist/exports/queries.d.ts +4 -0
- package/dist/exports/server.d.ts +1 -0
- package/dist/exports/utils.d.ts +3 -0
- package/dist/exports/vite.d.ts +1 -0
- package/dist/hooks/DialogsHooks.d.ts +42 -0
- package/dist/{DialogsHooks-BEZgPVSk.js → hooks/DialogsHooks.js} +7 -4
- package/dist/hooks/DialogsHooks.js.map +1 -0
- package/dist/hooks/FormHooks.d.ts +52 -0
- package/dist/hooks/FormHooks.js +55 -0
- package/dist/hooks/FormHooks.js.map +1 -0
- package/dist/hooks/UseHook.d.ts +2 -0
- package/dist/hooks/UseHook.js +12 -0
- package/dist/hooks/UseHook.js.map +1 -0
- package/dist/hooks.js +5 -1002
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +3 -1962
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/client.d.ts +13 -0
- package/dist/lib/auth/client.js +63 -0
- package/dist/lib/auth/client.js.map +1 -0
- package/dist/lib/auth/server.d.ts +9 -0
- package/dist/lib/utils.d.ts +52 -0
- package/dist/{utils-CCjnelFb.js → lib/utils.js} +9 -24
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/vite-plugin.d.ts +2 -0
- package/dist/lib/vite-plugin.js +65 -0
- package/dist/lib/vite-plugin.js.map +1 -0
- package/dist/middleware/auth.d.ts +13 -0
- package/dist/models/Navigation.d.ts +18 -0
- package/dist/models/User.d.ts +11 -0
- package/dist/models/approval/Approval.d.ts +177 -0
- package/dist/models/approval/Approval.js +81 -0
- package/dist/models/approval/Approval.js.map +1 -0
- package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
- package/dist/models/approval/ApprovalEmployee.js +10 -0
- package/dist/models/approval/ApprovalEmployee.js.map +1 -0
- package/dist/models/approval/ApprovalFlow.d.ts +49 -0
- package/dist/models/approval/ApprovalFlow.js +15 -0
- package/dist/models/approval/ApprovalFlow.js.map +1 -0
- package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
- package/dist/models/approval/ApprovalFlowStep.js +17 -0
- package/dist/models/approval/ApprovalFlowStep.js.map +1 -0
- package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
- package/dist/models/approval/ApprovalRequestType.js +6 -0
- package/dist/models/approval/ApprovalRequestType.js.map +1 -0
- package/dist/models/approval/ApprovalStatus.d.ts +9 -0
- package/dist/models/approval/ApprovalStatus.js +6 -0
- package/dist/models/approval/ApprovalStatus.js.map +1 -0
- package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
- package/dist/models/approval/ApprovalStepResult.js +6 -0
- package/dist/models/approval/ApprovalStepResult.js.map +1 -0
- package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
- package/dist/models/approval/StepApprovalOrder.js +6 -0
- package/dist/models/approval/StepApprovalOrder.js.map +1 -0
- package/dist/models/email/Email.d.ts +13 -0
- package/dist/models/email/Email.js +14 -0
- package/dist/models/email/Email.js.map +1 -0
- package/dist/models/email/EmailAttachment.d.ts +6 -0
- package/dist/models/email/EmailAttachment.js +9 -0
- package/dist/models/email/EmailAttachment.js.map +1 -0
- package/dist/models/file/FileActions.d.ts +6 -0
- package/dist/models/file/FileMeta.d.ts +15 -0
- package/dist/{FileMeta-G1oT3mYK.js → models/file/FileMeta.js} +2 -2
- package/dist/models/file/FileMeta.js.map +1 -0
- package/dist/models/peoplesoft/Department.d.ts +58 -0
- package/dist/models/peoplesoft/Department.js +19 -0
- package/dist/models/peoplesoft/Department.js.map +1 -0
- package/dist/models/peoplesoft/Employee.d.ts +46 -0
- package/dist/models/peoplesoft/Employee.js +43 -0
- package/dist/models/peoplesoft/Employee.js.map +1 -0
- package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
- package/dist/models/peoplesoft/EmployeeCategoryGroup.js +6 -0
- package/dist/models/peoplesoft/EmployeeCategoryGroup.js.map +1 -0
- package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
- package/dist/models/peoplesoft/EmployeeStatus.js +6 -0
- package/dist/models/peoplesoft/EmployeeStatus.js.map +1 -0
- package/dist/models.js +10 -159
- package/dist/models.js.map +1 -1
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +22 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js.map +1 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +16 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js.map +1 -0
- package/dist/{DialogsContext-DMZRefiY.js → node_modules/react/cjs/react-jsx-runtime.development.js} +4 -48
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +33 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +1 -0
- package/dist/node_modules/react/compiler-runtime.js +18 -0
- package/dist/node_modules/react/compiler-runtime.js.map +1 -0
- package/dist/node_modules/react/jsx-runtime.js +18 -0
- package/dist/node_modules/react/jsx-runtime.js.map +1 -0
- package/dist/providers/DialogsProvider.d.ts +5 -0
- package/dist/providers/DialogsProvider.js +79 -0
- package/dist/providers/DialogsProvider.js.map +1 -0
- package/dist/providers/LayoutProvider.d.ts +11 -0
- package/dist/providers/LayoutProvider.js +101 -0
- package/dist/providers/LayoutProvider.js.map +1 -0
- package/dist/providers/UserProvider.d.ts +4 -0
- package/dist/providers/UserProvider.js +94 -0
- package/dist/providers/UserProvider.js.map +1 -0
- package/dist/queries/Approval.d.ts +585 -0
- package/dist/queries/Approval.js +91 -0
- package/dist/queries/Approval.js.map +1 -0
- package/dist/queries/ApprovalHooks.d.ts +315 -0
- package/dist/queries/ApprovalHooks.js +243 -0
- package/dist/queries/ApprovalHooks.js.map +1 -0
- package/dist/queries/FileHooks.d.ts +151 -0
- package/dist/{FileHooks-BJdvBvBr.js → queries/FileHooks.js} +14 -13
- package/dist/queries/FileHooks.js.map +1 -0
- package/dist/queries/PeopleSoftHooks.d.ts +537 -0
- package/dist/queries/PeopleSoftHooks.js +586 -0
- package/dist/queries/PeopleSoftHooks.js.map +1 -0
- package/dist/queries/UserHooks.d.ts +11 -0
- package/dist/queries/UserHooks.js +157 -0
- package/dist/queries/UserHooks.js.map +1 -0
- package/dist/queries.js +13 -886
- package/dist/queries.js.map +1 -1
- package/dist/utils.js +2 -2
- package/dist/vite.js +1 -61
- package/dist/vite.js.map +1 -1
- package/package.json +34 -32
- package/dist/ApprovalStatus-BtAVFn5p.js +0 -8
- package/dist/ApprovalStatus-BtAVFn5p.js.map +0 -1
- package/dist/DialogsContext-DMZRefiY.js.map +0 -1
- package/dist/DialogsHooks-BEZgPVSk.js.map +0 -1
- package/dist/FileHooks-BJdvBvBr.js.map +0 -1
- package/dist/FileMeta-G1oT3mYK.js.map +0 -1
- package/dist/RouterListItemButton-CagMd8F_.js.map +0 -1
- package/dist/UseHook-CGSDGsbk.js +0 -13
- package/dist/UseHook-CGSDGsbk.js.map +0 -1
- package/dist/client.d.ts +0 -20
- package/dist/compiler-runtime-BGHur82y.js +0 -46
- package/dist/compiler-runtime-BGHur82y.js.map +0 -1
- package/dist/components.d.ts +0 -134
- package/dist/hooks.d.ts +0 -208
- package/dist/index.d.ts +0 -74
- package/dist/models.d.ts +0 -467
- package/dist/queries.d.ts +0 -1956
- package/dist/server.d.ts +0 -5
- package/dist/utils-CCjnelFb.js.map +0 -1
- package/dist/utils.d.ts +0 -11
- package/dist/vite.d.ts +0 -5
package/dist/hooks.js
CHANGED
|
@@ -1,1011 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Autocomplete, TextField, Checkbox, FormControlLabel, FormHelperText, FormControl, RadioGroup, Radio, FormLabel, Slider, Button, Switch } from "@mui/material";
|
|
5
|
-
import { g as getFieldStatus } from "./utils-CCjnelFb.js";
|
|
6
|
-
import { DatePicker, DateRangePicker, TimePicker, TimeRangePicker, DateTimePicker, DateTimeRangePicker } from "@mui/x-date-pickers-pro";
|
|
7
|
-
import { NumericFormat } from "react-number-format";
|
|
8
|
-
import { u } from "./DialogsHooks-BEZgPVSk.js";
|
|
9
|
-
import { u as u2 } from "./UseHook-CGSDGsbk.js";
|
|
1
|
+
import { useFieldContext, useFormContext, useLayoutForm, withLayoutForm } from "./hooks/FormHooks.js";
|
|
2
|
+
import { useDialogs } from "./hooks/DialogsHooks.js";
|
|
3
|
+
import { useUser } from "./hooks/UseHook.js";
|
|
10
4
|
import { useInView } from "react-intersection-observer";
|
|
11
|
-
const FormAutocomplete = (t0) => {
|
|
12
|
-
const $ = compilerRuntimeExports.c(23);
|
|
13
|
-
let autocompleteProps;
|
|
14
|
-
let textFieldProps;
|
|
15
|
-
if ($[0] !== t0) {
|
|
16
|
-
({
|
|
17
|
-
textFieldProps,
|
|
18
|
-
...autocompleteProps
|
|
19
|
-
} = t0);
|
|
20
|
-
$[0] = t0;
|
|
21
|
-
$[1] = autocompleteProps;
|
|
22
|
-
$[2] = textFieldProps;
|
|
23
|
-
} else {
|
|
24
|
-
autocompleteProps = $[1];
|
|
25
|
-
textFieldProps = $[2];
|
|
26
|
-
}
|
|
27
|
-
const field = useFieldContext();
|
|
28
|
-
let t1;
|
|
29
|
-
if ($[3] !== field) {
|
|
30
|
-
t1 = getFieldStatus(field);
|
|
31
|
-
$[3] = field;
|
|
32
|
-
$[4] = t1;
|
|
33
|
-
} else {
|
|
34
|
-
t1 = $[4];
|
|
35
|
-
}
|
|
36
|
-
const {
|
|
37
|
-
isTouched,
|
|
38
|
-
hasError,
|
|
39
|
-
helperText
|
|
40
|
-
} = t1;
|
|
41
|
-
let t2;
|
|
42
|
-
let t3;
|
|
43
|
-
if ($[5] !== autocompleteProps.freeSolo || $[6] !== field) {
|
|
44
|
-
t2 = (_, value) => !autocompleteProps.freeSolo && field.handleChange(value);
|
|
45
|
-
t3 = (__0, value_0, reason) => reason !== "reset" && autocompleteProps.freeSolo && field.handleChange(value_0);
|
|
46
|
-
$[5] = autocompleteProps.freeSolo;
|
|
47
|
-
$[6] = field;
|
|
48
|
-
$[7] = t2;
|
|
49
|
-
$[8] = t3;
|
|
50
|
-
} else {
|
|
51
|
-
t2 = $[7];
|
|
52
|
-
t3 = $[8];
|
|
53
|
-
}
|
|
54
|
-
let t4;
|
|
55
|
-
if ($[9] !== field.name || $[10] !== hasError || $[11] !== helperText || $[12] !== isTouched || $[13] !== textFieldProps) {
|
|
56
|
-
t4 = (parameters) => /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, { ...parameters, name: field.name, error: isTouched && hasError, helperText: isTouched && helperText, ...textFieldProps });
|
|
57
|
-
$[9] = field.name;
|
|
58
|
-
$[10] = hasError;
|
|
59
|
-
$[11] = helperText;
|
|
60
|
-
$[12] = isTouched;
|
|
61
|
-
$[13] = textFieldProps;
|
|
62
|
-
$[14] = t4;
|
|
63
|
-
} else {
|
|
64
|
-
t4 = $[14];
|
|
65
|
-
}
|
|
66
|
-
let t5;
|
|
67
|
-
if ($[15] !== autocompleteProps || $[16] !== field.handleBlur || $[17] !== field.name || $[18] !== field.state.value || $[19] !== t2 || $[20] !== t3 || $[21] !== t4) {
|
|
68
|
-
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(Autocomplete, { value: field.state.value, onChange: t2, onInputChange: t3, onBlur: field.handleBlur, "aria-label": field.name, ...autocompleteProps, renderInput: t4 });
|
|
69
|
-
$[15] = autocompleteProps;
|
|
70
|
-
$[16] = field.handleBlur;
|
|
71
|
-
$[17] = field.name;
|
|
72
|
-
$[18] = field.state.value;
|
|
73
|
-
$[19] = t2;
|
|
74
|
-
$[20] = t3;
|
|
75
|
-
$[21] = t4;
|
|
76
|
-
$[22] = t5;
|
|
77
|
-
} else {
|
|
78
|
-
t5 = $[22];
|
|
79
|
-
}
|
|
80
|
-
return t5;
|
|
81
|
-
};
|
|
82
|
-
const FormCheckbox = (props) => {
|
|
83
|
-
const $ = compilerRuntimeExports.c(20);
|
|
84
|
-
const field = useFieldContext();
|
|
85
|
-
let t0;
|
|
86
|
-
if ($[0] !== field) {
|
|
87
|
-
t0 = getFieldStatus(field);
|
|
88
|
-
$[0] = field;
|
|
89
|
-
$[1] = t0;
|
|
90
|
-
} else {
|
|
91
|
-
t0 = $[1];
|
|
92
|
-
}
|
|
93
|
-
const {
|
|
94
|
-
isTouched,
|
|
95
|
-
hasError,
|
|
96
|
-
helperText
|
|
97
|
-
} = t0;
|
|
98
|
-
const t1 = field.name;
|
|
99
|
-
const t2 = Boolean(field.state.value);
|
|
100
|
-
let t3;
|
|
101
|
-
if ($[2] !== field) {
|
|
102
|
-
t3 = (event) => field.handleChange(event.target.checked);
|
|
103
|
-
$[2] = field;
|
|
104
|
-
$[3] = t3;
|
|
105
|
-
} else {
|
|
106
|
-
t3 = $[3];
|
|
107
|
-
}
|
|
108
|
-
let t4;
|
|
109
|
-
if ($[4] !== field.handleBlur || $[5] !== field.name || $[6] !== props || $[7] !== t2 || $[8] !== t3) {
|
|
110
|
-
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Checkbox, { name: t1, checked: t2, onChange: t3, onBlur: field.handleBlur, "aria-label": field.name, ...props });
|
|
111
|
-
$[4] = field.handleBlur;
|
|
112
|
-
$[5] = field.name;
|
|
113
|
-
$[6] = props;
|
|
114
|
-
$[7] = t2;
|
|
115
|
-
$[8] = t3;
|
|
116
|
-
$[9] = t4;
|
|
117
|
-
} else {
|
|
118
|
-
t4 = $[9];
|
|
119
|
-
}
|
|
120
|
-
const t5 = props.label ?? "";
|
|
121
|
-
let t6;
|
|
122
|
-
if ($[10] !== t4 || $[11] !== t5) {
|
|
123
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, { control: t4, label: t5 });
|
|
124
|
-
$[10] = t4;
|
|
125
|
-
$[11] = t5;
|
|
126
|
-
$[12] = t6;
|
|
127
|
-
} else {
|
|
128
|
-
t6 = $[12];
|
|
129
|
-
}
|
|
130
|
-
let t7;
|
|
131
|
-
if ($[13] !== hasError || $[14] !== helperText || $[15] !== isTouched) {
|
|
132
|
-
t7 = isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText });
|
|
133
|
-
$[13] = hasError;
|
|
134
|
-
$[14] = helperText;
|
|
135
|
-
$[15] = isTouched;
|
|
136
|
-
$[16] = t7;
|
|
137
|
-
} else {
|
|
138
|
-
t7 = $[16];
|
|
139
|
-
}
|
|
140
|
-
let t8;
|
|
141
|
-
if ($[17] !== t6 || $[18] !== t7) {
|
|
142
|
-
t8 = /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
|
|
143
|
-
t6,
|
|
144
|
-
t7
|
|
145
|
-
] });
|
|
146
|
-
$[17] = t6;
|
|
147
|
-
$[18] = t7;
|
|
148
|
-
$[19] = t8;
|
|
149
|
-
} else {
|
|
150
|
-
t8 = $[19];
|
|
151
|
-
}
|
|
152
|
-
return t8;
|
|
153
|
-
};
|
|
154
|
-
const FormDatePicker = (props) => {
|
|
155
|
-
const $ = compilerRuntimeExports.c(18);
|
|
156
|
-
const field = useFieldContext();
|
|
157
|
-
let t0;
|
|
158
|
-
if ($[0] !== field) {
|
|
159
|
-
t0 = getFieldStatus(field);
|
|
160
|
-
$[0] = field;
|
|
161
|
-
$[1] = t0;
|
|
162
|
-
} else {
|
|
163
|
-
t0 = $[1];
|
|
164
|
-
}
|
|
165
|
-
const {
|
|
166
|
-
isTouched,
|
|
167
|
-
hasError,
|
|
168
|
-
helperText
|
|
169
|
-
} = t0;
|
|
170
|
-
let t1;
|
|
171
|
-
if ($[2] !== field) {
|
|
172
|
-
t1 = (value) => field.handleChange(value);
|
|
173
|
-
$[2] = field;
|
|
174
|
-
$[3] = t1;
|
|
175
|
-
} else {
|
|
176
|
-
t1 = $[3];
|
|
177
|
-
}
|
|
178
|
-
const t2 = isTouched && hasError;
|
|
179
|
-
const t3 = isTouched && helperText;
|
|
180
|
-
let t4;
|
|
181
|
-
if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
|
|
182
|
-
t4 = {
|
|
183
|
-
onBlur: field.handleBlur,
|
|
184
|
-
error: t2,
|
|
185
|
-
helperText: t3,
|
|
186
|
-
...props.textFieldProps
|
|
187
|
-
};
|
|
188
|
-
$[4] = field.handleBlur;
|
|
189
|
-
$[5] = props.textFieldProps;
|
|
190
|
-
$[6] = t2;
|
|
191
|
-
$[7] = t3;
|
|
192
|
-
$[8] = t4;
|
|
193
|
-
} else {
|
|
194
|
-
t4 = $[8];
|
|
195
|
-
}
|
|
196
|
-
let t5;
|
|
197
|
-
if ($[9] !== props.slotProps || $[10] !== t4) {
|
|
198
|
-
t5 = {
|
|
199
|
-
textField: t4,
|
|
200
|
-
...props.slotProps
|
|
201
|
-
};
|
|
202
|
-
$[9] = props.slotProps;
|
|
203
|
-
$[10] = t4;
|
|
204
|
-
$[11] = t5;
|
|
205
|
-
} else {
|
|
206
|
-
t5 = $[11];
|
|
207
|
-
}
|
|
208
|
-
let t6;
|
|
209
|
-
if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
|
|
210
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(DatePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
|
|
211
|
-
$[12] = field.name;
|
|
212
|
-
$[13] = field.state.value;
|
|
213
|
-
$[14] = props;
|
|
214
|
-
$[15] = t1;
|
|
215
|
-
$[16] = t5;
|
|
216
|
-
$[17] = t6;
|
|
217
|
-
} else {
|
|
218
|
-
t6 = $[17];
|
|
219
|
-
}
|
|
220
|
-
return t6;
|
|
221
|
-
};
|
|
222
|
-
const FormDateRangePicker = (props) => {
|
|
223
|
-
const $ = compilerRuntimeExports.c(18);
|
|
224
|
-
const field = useFieldContext();
|
|
225
|
-
let t0;
|
|
226
|
-
if ($[0] !== field) {
|
|
227
|
-
t0 = getFieldStatus(field);
|
|
228
|
-
$[0] = field;
|
|
229
|
-
$[1] = t0;
|
|
230
|
-
} else {
|
|
231
|
-
t0 = $[1];
|
|
232
|
-
}
|
|
233
|
-
const {
|
|
234
|
-
isTouched,
|
|
235
|
-
hasError,
|
|
236
|
-
helperText
|
|
237
|
-
} = t0;
|
|
238
|
-
let t1;
|
|
239
|
-
if ($[2] !== field) {
|
|
240
|
-
t1 = (value) => field.handleChange(value);
|
|
241
|
-
$[2] = field;
|
|
242
|
-
$[3] = t1;
|
|
243
|
-
} else {
|
|
244
|
-
t1 = $[3];
|
|
245
|
-
}
|
|
246
|
-
const t2 = isTouched && hasError;
|
|
247
|
-
const t3 = isTouched && helperText;
|
|
248
|
-
let t4;
|
|
249
|
-
if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
|
|
250
|
-
t4 = {
|
|
251
|
-
onBlur: field.handleBlur,
|
|
252
|
-
error: t2,
|
|
253
|
-
helperText: t3,
|
|
254
|
-
...props.textFieldProps
|
|
255
|
-
};
|
|
256
|
-
$[4] = field.handleBlur;
|
|
257
|
-
$[5] = props.textFieldProps;
|
|
258
|
-
$[6] = t2;
|
|
259
|
-
$[7] = t3;
|
|
260
|
-
$[8] = t4;
|
|
261
|
-
} else {
|
|
262
|
-
t4 = $[8];
|
|
263
|
-
}
|
|
264
|
-
let t5;
|
|
265
|
-
if ($[9] !== props.slotProps || $[10] !== t4) {
|
|
266
|
-
t5 = {
|
|
267
|
-
textField: t4,
|
|
268
|
-
...props.slotProps
|
|
269
|
-
};
|
|
270
|
-
$[9] = props.slotProps;
|
|
271
|
-
$[10] = t4;
|
|
272
|
-
$[11] = t5;
|
|
273
|
-
} else {
|
|
274
|
-
t5 = $[11];
|
|
275
|
-
}
|
|
276
|
-
let t6;
|
|
277
|
-
if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
|
|
278
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(DateRangePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
|
|
279
|
-
$[12] = field.name;
|
|
280
|
-
$[13] = field.state.value;
|
|
281
|
-
$[14] = props;
|
|
282
|
-
$[15] = t1;
|
|
283
|
-
$[16] = t5;
|
|
284
|
-
$[17] = t6;
|
|
285
|
-
} else {
|
|
286
|
-
t6 = $[17];
|
|
287
|
-
}
|
|
288
|
-
return t6;
|
|
289
|
-
};
|
|
290
|
-
const FormTimePicker = (props) => {
|
|
291
|
-
const $ = compilerRuntimeExports.c(18);
|
|
292
|
-
const field = useFieldContext();
|
|
293
|
-
let t0;
|
|
294
|
-
if ($[0] !== field) {
|
|
295
|
-
t0 = getFieldStatus(field);
|
|
296
|
-
$[0] = field;
|
|
297
|
-
$[1] = t0;
|
|
298
|
-
} else {
|
|
299
|
-
t0 = $[1];
|
|
300
|
-
}
|
|
301
|
-
const {
|
|
302
|
-
isTouched,
|
|
303
|
-
hasError,
|
|
304
|
-
helperText
|
|
305
|
-
} = t0;
|
|
306
|
-
let t1;
|
|
307
|
-
if ($[2] !== field) {
|
|
308
|
-
t1 = (value) => field.handleChange(value);
|
|
309
|
-
$[2] = field;
|
|
310
|
-
$[3] = t1;
|
|
311
|
-
} else {
|
|
312
|
-
t1 = $[3];
|
|
313
|
-
}
|
|
314
|
-
const t2 = isTouched && hasError;
|
|
315
|
-
const t3 = isTouched && helperText;
|
|
316
|
-
let t4;
|
|
317
|
-
if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
|
|
318
|
-
t4 = {
|
|
319
|
-
onBlur: field.handleBlur,
|
|
320
|
-
error: t2,
|
|
321
|
-
helperText: t3,
|
|
322
|
-
...props.textFieldProps
|
|
323
|
-
};
|
|
324
|
-
$[4] = field.handleBlur;
|
|
325
|
-
$[5] = props.textFieldProps;
|
|
326
|
-
$[6] = t2;
|
|
327
|
-
$[7] = t3;
|
|
328
|
-
$[8] = t4;
|
|
329
|
-
} else {
|
|
330
|
-
t4 = $[8];
|
|
331
|
-
}
|
|
332
|
-
let t5;
|
|
333
|
-
if ($[9] !== props.slotProps || $[10] !== t4) {
|
|
334
|
-
t5 = {
|
|
335
|
-
textField: t4,
|
|
336
|
-
...props.slotProps
|
|
337
|
-
};
|
|
338
|
-
$[9] = props.slotProps;
|
|
339
|
-
$[10] = t4;
|
|
340
|
-
$[11] = t5;
|
|
341
|
-
} else {
|
|
342
|
-
t5 = $[11];
|
|
343
|
-
}
|
|
344
|
-
let t6;
|
|
345
|
-
if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
|
|
346
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(TimePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
|
|
347
|
-
$[12] = field.name;
|
|
348
|
-
$[13] = field.state.value;
|
|
349
|
-
$[14] = props;
|
|
350
|
-
$[15] = t1;
|
|
351
|
-
$[16] = t5;
|
|
352
|
-
$[17] = t6;
|
|
353
|
-
} else {
|
|
354
|
-
t6 = $[17];
|
|
355
|
-
}
|
|
356
|
-
return t6;
|
|
357
|
-
};
|
|
358
|
-
const FormTimeRangePicker = (props) => {
|
|
359
|
-
const $ = compilerRuntimeExports.c(18);
|
|
360
|
-
const field = useFieldContext();
|
|
361
|
-
let t0;
|
|
362
|
-
if ($[0] !== field) {
|
|
363
|
-
t0 = getFieldStatus(field);
|
|
364
|
-
$[0] = field;
|
|
365
|
-
$[1] = t0;
|
|
366
|
-
} else {
|
|
367
|
-
t0 = $[1];
|
|
368
|
-
}
|
|
369
|
-
const {
|
|
370
|
-
isTouched,
|
|
371
|
-
hasError,
|
|
372
|
-
helperText
|
|
373
|
-
} = t0;
|
|
374
|
-
let t1;
|
|
375
|
-
if ($[2] !== field) {
|
|
376
|
-
t1 = (value) => field.handleChange(value);
|
|
377
|
-
$[2] = field;
|
|
378
|
-
$[3] = t1;
|
|
379
|
-
} else {
|
|
380
|
-
t1 = $[3];
|
|
381
|
-
}
|
|
382
|
-
const t2 = isTouched && hasError;
|
|
383
|
-
const t3 = isTouched && helperText;
|
|
384
|
-
let t4;
|
|
385
|
-
if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
|
|
386
|
-
t4 = {
|
|
387
|
-
onBlur: field.handleBlur,
|
|
388
|
-
error: t2,
|
|
389
|
-
helperText: t3,
|
|
390
|
-
...props.textFieldProps
|
|
391
|
-
};
|
|
392
|
-
$[4] = field.handleBlur;
|
|
393
|
-
$[5] = props.textFieldProps;
|
|
394
|
-
$[6] = t2;
|
|
395
|
-
$[7] = t3;
|
|
396
|
-
$[8] = t4;
|
|
397
|
-
} else {
|
|
398
|
-
t4 = $[8];
|
|
399
|
-
}
|
|
400
|
-
let t5;
|
|
401
|
-
if ($[9] !== props.slotProps || $[10] !== t4) {
|
|
402
|
-
t5 = {
|
|
403
|
-
textField: t4,
|
|
404
|
-
...props.slotProps
|
|
405
|
-
};
|
|
406
|
-
$[9] = props.slotProps;
|
|
407
|
-
$[10] = t4;
|
|
408
|
-
$[11] = t5;
|
|
409
|
-
} else {
|
|
410
|
-
t5 = $[11];
|
|
411
|
-
}
|
|
412
|
-
let t6;
|
|
413
|
-
if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
|
|
414
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(TimeRangePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
|
|
415
|
-
$[12] = field.name;
|
|
416
|
-
$[13] = field.state.value;
|
|
417
|
-
$[14] = props;
|
|
418
|
-
$[15] = t1;
|
|
419
|
-
$[16] = t5;
|
|
420
|
-
$[17] = t6;
|
|
421
|
-
} else {
|
|
422
|
-
t6 = $[17];
|
|
423
|
-
}
|
|
424
|
-
return t6;
|
|
425
|
-
};
|
|
426
|
-
const FormDateTimePicker = (props) => {
|
|
427
|
-
const $ = compilerRuntimeExports.c(18);
|
|
428
|
-
const field = useFieldContext();
|
|
429
|
-
let t0;
|
|
430
|
-
if ($[0] !== field) {
|
|
431
|
-
t0 = getFieldStatus(field);
|
|
432
|
-
$[0] = field;
|
|
433
|
-
$[1] = t0;
|
|
434
|
-
} else {
|
|
435
|
-
t0 = $[1];
|
|
436
|
-
}
|
|
437
|
-
const {
|
|
438
|
-
isTouched,
|
|
439
|
-
hasError,
|
|
440
|
-
helperText
|
|
441
|
-
} = t0;
|
|
442
|
-
let t1;
|
|
443
|
-
if ($[2] !== field) {
|
|
444
|
-
t1 = (value) => field.handleChange(value);
|
|
445
|
-
$[2] = field;
|
|
446
|
-
$[3] = t1;
|
|
447
|
-
} else {
|
|
448
|
-
t1 = $[3];
|
|
449
|
-
}
|
|
450
|
-
const t2 = isTouched && hasError;
|
|
451
|
-
const t3 = isTouched && helperText;
|
|
452
|
-
let t4;
|
|
453
|
-
if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
|
|
454
|
-
t4 = {
|
|
455
|
-
onBlur: field.handleBlur,
|
|
456
|
-
error: t2,
|
|
457
|
-
helperText: t3,
|
|
458
|
-
...props.textFieldProps
|
|
459
|
-
};
|
|
460
|
-
$[4] = field.handleBlur;
|
|
461
|
-
$[5] = props.textFieldProps;
|
|
462
|
-
$[6] = t2;
|
|
463
|
-
$[7] = t3;
|
|
464
|
-
$[8] = t4;
|
|
465
|
-
} else {
|
|
466
|
-
t4 = $[8];
|
|
467
|
-
}
|
|
468
|
-
let t5;
|
|
469
|
-
if ($[9] !== props.slotProps || $[10] !== t4) {
|
|
470
|
-
t5 = {
|
|
471
|
-
textField: t4,
|
|
472
|
-
...props.slotProps
|
|
473
|
-
};
|
|
474
|
-
$[9] = props.slotProps;
|
|
475
|
-
$[10] = t4;
|
|
476
|
-
$[11] = t5;
|
|
477
|
-
} else {
|
|
478
|
-
t5 = $[11];
|
|
479
|
-
}
|
|
480
|
-
let t6;
|
|
481
|
-
if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
|
|
482
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(DateTimePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
|
|
483
|
-
$[12] = field.name;
|
|
484
|
-
$[13] = field.state.value;
|
|
485
|
-
$[14] = props;
|
|
486
|
-
$[15] = t1;
|
|
487
|
-
$[16] = t5;
|
|
488
|
-
$[17] = t6;
|
|
489
|
-
} else {
|
|
490
|
-
t6 = $[17];
|
|
491
|
-
}
|
|
492
|
-
return t6;
|
|
493
|
-
};
|
|
494
|
-
const FormDateTimeRangePicker = (props) => {
|
|
495
|
-
const $ = compilerRuntimeExports.c(18);
|
|
496
|
-
const field = useFieldContext();
|
|
497
|
-
let t0;
|
|
498
|
-
if ($[0] !== field) {
|
|
499
|
-
t0 = getFieldStatus(field);
|
|
500
|
-
$[0] = field;
|
|
501
|
-
$[1] = t0;
|
|
502
|
-
} else {
|
|
503
|
-
t0 = $[1];
|
|
504
|
-
}
|
|
505
|
-
const {
|
|
506
|
-
isTouched,
|
|
507
|
-
hasError,
|
|
508
|
-
helperText
|
|
509
|
-
} = t0;
|
|
510
|
-
let t1;
|
|
511
|
-
if ($[2] !== field) {
|
|
512
|
-
t1 = (value) => field.handleChange(value);
|
|
513
|
-
$[2] = field;
|
|
514
|
-
$[3] = t1;
|
|
515
|
-
} else {
|
|
516
|
-
t1 = $[3];
|
|
517
|
-
}
|
|
518
|
-
const t2 = isTouched && hasError;
|
|
519
|
-
const t3 = isTouched && helperText;
|
|
520
|
-
let t4;
|
|
521
|
-
if ($[4] !== field.handleBlur || $[5] !== props.textFieldProps || $[6] !== t2 || $[7] !== t3) {
|
|
522
|
-
t4 = {
|
|
523
|
-
onBlur: field.handleBlur,
|
|
524
|
-
error: t2,
|
|
525
|
-
helperText: t3,
|
|
526
|
-
...props.textFieldProps
|
|
527
|
-
};
|
|
528
|
-
$[4] = field.handleBlur;
|
|
529
|
-
$[5] = props.textFieldProps;
|
|
530
|
-
$[6] = t2;
|
|
531
|
-
$[7] = t3;
|
|
532
|
-
$[8] = t4;
|
|
533
|
-
} else {
|
|
534
|
-
t4 = $[8];
|
|
535
|
-
}
|
|
536
|
-
let t5;
|
|
537
|
-
if ($[9] !== props.slotProps || $[10] !== t4) {
|
|
538
|
-
t5 = {
|
|
539
|
-
textField: t4,
|
|
540
|
-
...props.slotProps
|
|
541
|
-
};
|
|
542
|
-
$[9] = props.slotProps;
|
|
543
|
-
$[10] = t4;
|
|
544
|
-
$[11] = t5;
|
|
545
|
-
} else {
|
|
546
|
-
t5 = $[11];
|
|
547
|
-
}
|
|
548
|
-
let t6;
|
|
549
|
-
if ($[12] !== field.name || $[13] !== field.state.value || $[14] !== props || $[15] !== t1 || $[16] !== t5) {
|
|
550
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(DateTimeRangePicker, { name: field.name, value: field.state.value, onChange: t1, slotProps: t5, "aria-label": field.name, ...props });
|
|
551
|
-
$[12] = field.name;
|
|
552
|
-
$[13] = field.state.value;
|
|
553
|
-
$[14] = props;
|
|
554
|
-
$[15] = t1;
|
|
555
|
-
$[16] = t5;
|
|
556
|
-
$[17] = t6;
|
|
557
|
-
} else {
|
|
558
|
-
t6 = $[17];
|
|
559
|
-
}
|
|
560
|
-
return t6;
|
|
561
|
-
};
|
|
562
|
-
const FormNumberField = (t0) => {
|
|
563
|
-
const $ = compilerRuntimeExports.c(16);
|
|
564
|
-
let options;
|
|
565
|
-
let props;
|
|
566
|
-
if ($[0] !== t0) {
|
|
567
|
-
({
|
|
568
|
-
options,
|
|
569
|
-
...props
|
|
570
|
-
} = t0);
|
|
571
|
-
$[0] = t0;
|
|
572
|
-
$[1] = options;
|
|
573
|
-
$[2] = props;
|
|
574
|
-
} else {
|
|
575
|
-
options = $[1];
|
|
576
|
-
props = $[2];
|
|
577
|
-
}
|
|
578
|
-
const field = useFieldContext();
|
|
579
|
-
let t1;
|
|
580
|
-
if ($[3] !== field) {
|
|
581
|
-
t1 = getFieldStatus(field);
|
|
582
|
-
$[3] = field;
|
|
583
|
-
$[4] = t1;
|
|
584
|
-
} else {
|
|
585
|
-
t1 = $[4];
|
|
586
|
-
}
|
|
587
|
-
const {
|
|
588
|
-
isTouched,
|
|
589
|
-
hasError,
|
|
590
|
-
helperText
|
|
591
|
-
} = t1;
|
|
592
|
-
const t2 = field.state.value ?? "";
|
|
593
|
-
let t3;
|
|
594
|
-
if ($[5] !== field) {
|
|
595
|
-
t3 = (t42) => {
|
|
596
|
-
const {
|
|
597
|
-
floatValue
|
|
598
|
-
} = t42;
|
|
599
|
-
return field.handleChange(floatValue);
|
|
600
|
-
};
|
|
601
|
-
$[5] = field;
|
|
602
|
-
$[6] = t3;
|
|
603
|
-
} else {
|
|
604
|
-
t3 = $[6];
|
|
605
|
-
}
|
|
606
|
-
const t4 = isTouched && hasError;
|
|
607
|
-
const t5 = isTouched && helperText;
|
|
608
|
-
let t6;
|
|
609
|
-
if ($[7] !== field.handleBlur || $[8] !== field.name || $[9] !== options || $[10] !== props || $[11] !== t2 || $[12] !== t3 || $[13] !== t4 || $[14] !== t5) {
|
|
610
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(NumericFormat, { customInput: TextField, name: field.name, value: t2, onValueChange: t3, onBlur: field.handleBlur, error: t4, helperText: t5, "aria-label": field.name, ...props, ...options });
|
|
611
|
-
$[7] = field.handleBlur;
|
|
612
|
-
$[8] = field.name;
|
|
613
|
-
$[9] = options;
|
|
614
|
-
$[10] = props;
|
|
615
|
-
$[11] = t2;
|
|
616
|
-
$[12] = t3;
|
|
617
|
-
$[13] = t4;
|
|
618
|
-
$[14] = t5;
|
|
619
|
-
$[15] = t6;
|
|
620
|
-
} else {
|
|
621
|
-
t6 = $[15];
|
|
622
|
-
}
|
|
623
|
-
return t6;
|
|
624
|
-
};
|
|
625
|
-
const FormRadioGroup = (t0) => {
|
|
626
|
-
const $ = compilerRuntimeExports.c(27);
|
|
627
|
-
let label;
|
|
628
|
-
let options;
|
|
629
|
-
let props;
|
|
630
|
-
if ($[0] !== t0) {
|
|
631
|
-
({
|
|
632
|
-
label,
|
|
633
|
-
options,
|
|
634
|
-
...props
|
|
635
|
-
} = t0);
|
|
636
|
-
$[0] = t0;
|
|
637
|
-
$[1] = label;
|
|
638
|
-
$[2] = options;
|
|
639
|
-
$[3] = props;
|
|
640
|
-
} else {
|
|
641
|
-
label = $[1];
|
|
642
|
-
options = $[2];
|
|
643
|
-
props = $[3];
|
|
644
|
-
}
|
|
645
|
-
const field = useFieldContext();
|
|
646
|
-
let t1;
|
|
647
|
-
if ($[4] !== field) {
|
|
648
|
-
t1 = getFieldStatus(field);
|
|
649
|
-
$[4] = field;
|
|
650
|
-
$[5] = t1;
|
|
651
|
-
} else {
|
|
652
|
-
t1 = $[5];
|
|
653
|
-
}
|
|
654
|
-
const {
|
|
655
|
-
isTouched,
|
|
656
|
-
hasError,
|
|
657
|
-
helperText
|
|
658
|
-
} = t1;
|
|
659
|
-
let t2;
|
|
660
|
-
if ($[6] !== label) {
|
|
661
|
-
t2 = label && /* @__PURE__ */ jsxRuntimeExports.jsx(FormLabel, { component: "legend", children: label });
|
|
662
|
-
$[6] = label;
|
|
663
|
-
$[7] = t2;
|
|
664
|
-
} else {
|
|
665
|
-
t2 = $[7];
|
|
666
|
-
}
|
|
667
|
-
const t3 = field.name;
|
|
668
|
-
const t4 = field.state.value ?? "";
|
|
669
|
-
let t5;
|
|
670
|
-
if ($[8] !== field) {
|
|
671
|
-
t5 = (event) => field.handleChange(event.target.value);
|
|
672
|
-
$[8] = field;
|
|
673
|
-
$[9] = t5;
|
|
674
|
-
} else {
|
|
675
|
-
t5 = $[9];
|
|
676
|
-
}
|
|
677
|
-
const t6 = field.handleBlur;
|
|
678
|
-
const t7 = field.name;
|
|
679
|
-
let t8;
|
|
680
|
-
if ($[10] !== options) {
|
|
681
|
-
t8 = options.map(_temp$1);
|
|
682
|
-
$[10] = options;
|
|
683
|
-
$[11] = t8;
|
|
684
|
-
} else {
|
|
685
|
-
t8 = $[11];
|
|
686
|
-
}
|
|
687
|
-
let t9;
|
|
688
|
-
if ($[12] !== field.handleBlur || $[13] !== field.name || $[14] !== props || $[15] !== t4 || $[16] !== t5 || $[17] !== t8) {
|
|
689
|
-
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx(RadioGroup, { name: t3, value: t4, onChange: t5, onBlur: t6, "aria-label": t7, ...props, children: t8 });
|
|
690
|
-
$[12] = field.handleBlur;
|
|
691
|
-
$[13] = field.name;
|
|
692
|
-
$[14] = props;
|
|
693
|
-
$[15] = t4;
|
|
694
|
-
$[16] = t5;
|
|
695
|
-
$[17] = t8;
|
|
696
|
-
$[18] = t9;
|
|
697
|
-
} else {
|
|
698
|
-
t9 = $[18];
|
|
699
|
-
}
|
|
700
|
-
let t10;
|
|
701
|
-
if ($[19] !== hasError || $[20] !== helperText || $[21] !== isTouched) {
|
|
702
|
-
t10 = isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText });
|
|
703
|
-
$[19] = hasError;
|
|
704
|
-
$[20] = helperText;
|
|
705
|
-
$[21] = isTouched;
|
|
706
|
-
$[22] = t10;
|
|
707
|
-
} else {
|
|
708
|
-
t10 = $[22];
|
|
709
|
-
}
|
|
710
|
-
let t11;
|
|
711
|
-
if ($[23] !== t10 || $[24] !== t2 || $[25] !== t9) {
|
|
712
|
-
t11 = /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
|
|
713
|
-
t2,
|
|
714
|
-
t9,
|
|
715
|
-
t10
|
|
716
|
-
] });
|
|
717
|
-
$[23] = t10;
|
|
718
|
-
$[24] = t2;
|
|
719
|
-
$[25] = t9;
|
|
720
|
-
$[26] = t11;
|
|
721
|
-
} else {
|
|
722
|
-
t11 = $[26];
|
|
723
|
-
}
|
|
724
|
-
return t11;
|
|
725
|
-
};
|
|
726
|
-
function _temp$1(option) {
|
|
727
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, { value: option.value, control: /* @__PURE__ */ jsxRuntimeExports.jsx(Radio, {}), label: option.label }, option.value);
|
|
728
|
-
}
|
|
729
|
-
const FormSlider = (t0) => {
|
|
730
|
-
const $ = compilerRuntimeExports.c(23);
|
|
731
|
-
let label;
|
|
732
|
-
let props;
|
|
733
|
-
if ($[0] !== t0) {
|
|
734
|
-
({
|
|
735
|
-
label,
|
|
736
|
-
...props
|
|
737
|
-
} = t0);
|
|
738
|
-
$[0] = t0;
|
|
739
|
-
$[1] = label;
|
|
740
|
-
$[2] = props;
|
|
741
|
-
} else {
|
|
742
|
-
label = $[1];
|
|
743
|
-
props = $[2];
|
|
744
|
-
}
|
|
745
|
-
const field = useFieldContext();
|
|
746
|
-
let t1;
|
|
747
|
-
if ($[3] !== field) {
|
|
748
|
-
t1 = getFieldStatus(field);
|
|
749
|
-
$[3] = field;
|
|
750
|
-
$[4] = t1;
|
|
751
|
-
} else {
|
|
752
|
-
t1 = $[4];
|
|
753
|
-
}
|
|
754
|
-
const {
|
|
755
|
-
isTouched,
|
|
756
|
-
hasError,
|
|
757
|
-
helperText
|
|
758
|
-
} = t1;
|
|
759
|
-
let t2;
|
|
760
|
-
if ($[5] !== label) {
|
|
761
|
-
t2 = label && /* @__PURE__ */ jsxRuntimeExports.jsx(FormLabel, { children: label });
|
|
762
|
-
$[5] = label;
|
|
763
|
-
$[6] = t2;
|
|
764
|
-
} else {
|
|
765
|
-
t2 = $[6];
|
|
766
|
-
}
|
|
767
|
-
const t3 = field.state.value ?? 0;
|
|
768
|
-
let t4;
|
|
769
|
-
if ($[7] !== field) {
|
|
770
|
-
t4 = (_, value) => field.handleChange(Array.isArray(value) ? value[0] : value);
|
|
771
|
-
$[7] = field;
|
|
772
|
-
$[8] = t4;
|
|
773
|
-
} else {
|
|
774
|
-
t4 = $[8];
|
|
775
|
-
}
|
|
776
|
-
let t5;
|
|
777
|
-
if ($[9] !== field.handleBlur || $[10] !== field.name || $[11] !== props || $[12] !== t3 || $[13] !== t4) {
|
|
778
|
-
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(Slider, { name: field.name, value: t3, onChange: t4, onBlur: field.handleBlur, "aria-label": field.name, ...props });
|
|
779
|
-
$[9] = field.handleBlur;
|
|
780
|
-
$[10] = field.name;
|
|
781
|
-
$[11] = props;
|
|
782
|
-
$[12] = t3;
|
|
783
|
-
$[13] = t4;
|
|
784
|
-
$[14] = t5;
|
|
785
|
-
} else {
|
|
786
|
-
t5 = $[14];
|
|
787
|
-
}
|
|
788
|
-
let t6;
|
|
789
|
-
if ($[15] !== hasError || $[16] !== helperText || $[17] !== isTouched) {
|
|
790
|
-
t6 = isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText });
|
|
791
|
-
$[15] = hasError;
|
|
792
|
-
$[16] = helperText;
|
|
793
|
-
$[17] = isTouched;
|
|
794
|
-
$[18] = t6;
|
|
795
|
-
} else {
|
|
796
|
-
t6 = $[18];
|
|
797
|
-
}
|
|
798
|
-
let t7;
|
|
799
|
-
if ($[19] !== t2 || $[20] !== t5 || $[21] !== t6) {
|
|
800
|
-
t7 = /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
|
|
801
|
-
t2,
|
|
802
|
-
t5,
|
|
803
|
-
t6
|
|
804
|
-
] });
|
|
805
|
-
$[19] = t2;
|
|
806
|
-
$[20] = t5;
|
|
807
|
-
$[21] = t6;
|
|
808
|
-
$[22] = t7;
|
|
809
|
-
} else {
|
|
810
|
-
t7 = $[22];
|
|
811
|
-
}
|
|
812
|
-
return t7;
|
|
813
|
-
};
|
|
814
|
-
const FormSubmitButton = (props) => {
|
|
815
|
-
const $ = compilerRuntimeExports.c(8);
|
|
816
|
-
const form = useFormContext();
|
|
817
|
-
let t0;
|
|
818
|
-
if ($[0] !== form) {
|
|
819
|
-
t0 = (event) => {
|
|
820
|
-
event.preventDefault();
|
|
821
|
-
event.stopPropagation();
|
|
822
|
-
form.handleSubmit();
|
|
823
|
-
};
|
|
824
|
-
$[0] = form;
|
|
825
|
-
$[1] = t0;
|
|
826
|
-
} else {
|
|
827
|
-
t0 = $[1];
|
|
828
|
-
}
|
|
829
|
-
const handleClick = t0;
|
|
830
|
-
let t1;
|
|
831
|
-
if ($[2] !== handleClick || $[3] !== props) {
|
|
832
|
-
t1 = (t22) => {
|
|
833
|
-
const [canSubmit, isSubmitting] = t22;
|
|
834
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { loading: isSubmitting, disabled: !canSubmit, onClick: handleClick, type: "submit", "aria-label": "submit", ...props });
|
|
835
|
-
};
|
|
836
|
-
$[2] = handleClick;
|
|
837
|
-
$[3] = props;
|
|
838
|
-
$[4] = t1;
|
|
839
|
-
} else {
|
|
840
|
-
t1 = $[4];
|
|
841
|
-
}
|
|
842
|
-
let t2;
|
|
843
|
-
if ($[5] !== form.Subscribe || $[6] !== t1) {
|
|
844
|
-
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(form.Subscribe, { selector: _temp, children: t1 });
|
|
845
|
-
$[5] = form.Subscribe;
|
|
846
|
-
$[6] = t1;
|
|
847
|
-
$[7] = t2;
|
|
848
|
-
} else {
|
|
849
|
-
t2 = $[7];
|
|
850
|
-
}
|
|
851
|
-
return t2;
|
|
852
|
-
};
|
|
853
|
-
function _temp(state) {
|
|
854
|
-
return [state.canSubmit, state.isSubmitting];
|
|
855
|
-
}
|
|
856
|
-
const FormSwitch = (props) => {
|
|
857
|
-
const $ = compilerRuntimeExports.c(20);
|
|
858
|
-
const field = useFieldContext();
|
|
859
|
-
let t0;
|
|
860
|
-
if ($[0] !== field) {
|
|
861
|
-
t0 = getFieldStatus(field);
|
|
862
|
-
$[0] = field;
|
|
863
|
-
$[1] = t0;
|
|
864
|
-
} else {
|
|
865
|
-
t0 = $[1];
|
|
866
|
-
}
|
|
867
|
-
const {
|
|
868
|
-
isTouched,
|
|
869
|
-
hasError,
|
|
870
|
-
helperText
|
|
871
|
-
} = t0;
|
|
872
|
-
const t1 = field.name;
|
|
873
|
-
const t2 = Boolean(field.state.value);
|
|
874
|
-
let t3;
|
|
875
|
-
if ($[2] !== field) {
|
|
876
|
-
t3 = (event) => field.handleChange(event.target.checked);
|
|
877
|
-
$[2] = field;
|
|
878
|
-
$[3] = t3;
|
|
879
|
-
} else {
|
|
880
|
-
t3 = $[3];
|
|
881
|
-
}
|
|
882
|
-
let t4;
|
|
883
|
-
if ($[4] !== field.handleBlur || $[5] !== field.name || $[6] !== props || $[7] !== t2 || $[8] !== t3) {
|
|
884
|
-
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Switch, { name: t1, checked: t2, onChange: t3, onBlur: field.handleBlur, "aria-label": field.name, ...props });
|
|
885
|
-
$[4] = field.handleBlur;
|
|
886
|
-
$[5] = field.name;
|
|
887
|
-
$[6] = props;
|
|
888
|
-
$[7] = t2;
|
|
889
|
-
$[8] = t3;
|
|
890
|
-
$[9] = t4;
|
|
891
|
-
} else {
|
|
892
|
-
t4 = $[9];
|
|
893
|
-
}
|
|
894
|
-
const t5 = props.label ?? "";
|
|
895
|
-
let t6;
|
|
896
|
-
if ($[10] !== t4 || $[11] !== t5) {
|
|
897
|
-
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlLabel, { control: t4, label: t5 });
|
|
898
|
-
$[10] = t4;
|
|
899
|
-
$[11] = t5;
|
|
900
|
-
$[12] = t6;
|
|
901
|
-
} else {
|
|
902
|
-
t6 = $[12];
|
|
903
|
-
}
|
|
904
|
-
let t7;
|
|
905
|
-
if ($[13] !== hasError || $[14] !== helperText || $[15] !== isTouched) {
|
|
906
|
-
t7 = isTouched && hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(FormHelperText, { error: hasError, children: helperText });
|
|
907
|
-
$[13] = hasError;
|
|
908
|
-
$[14] = helperText;
|
|
909
|
-
$[15] = isTouched;
|
|
910
|
-
$[16] = t7;
|
|
911
|
-
} else {
|
|
912
|
-
t7 = $[16];
|
|
913
|
-
}
|
|
914
|
-
let t8;
|
|
915
|
-
if ($[17] !== t6 || $[18] !== t7) {
|
|
916
|
-
t8 = /* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl, { component: "fieldset", children: [
|
|
917
|
-
t6,
|
|
918
|
-
t7
|
|
919
|
-
] });
|
|
920
|
-
$[17] = t6;
|
|
921
|
-
$[18] = t7;
|
|
922
|
-
$[19] = t8;
|
|
923
|
-
} else {
|
|
924
|
-
t8 = $[19];
|
|
925
|
-
}
|
|
926
|
-
return t8;
|
|
927
|
-
};
|
|
928
|
-
const FormTextField = (props) => {
|
|
929
|
-
const $ = compilerRuntimeExports.c(12);
|
|
930
|
-
const field = useFieldContext();
|
|
931
|
-
let t0;
|
|
932
|
-
if ($[0] !== field) {
|
|
933
|
-
t0 = getFieldStatus(field);
|
|
934
|
-
$[0] = field;
|
|
935
|
-
$[1] = t0;
|
|
936
|
-
} else {
|
|
937
|
-
t0 = $[1];
|
|
938
|
-
}
|
|
939
|
-
const {
|
|
940
|
-
isTouched,
|
|
941
|
-
hasError,
|
|
942
|
-
helperText
|
|
943
|
-
} = t0;
|
|
944
|
-
const t1 = field.state.value ?? "";
|
|
945
|
-
let t2;
|
|
946
|
-
if ($[2] !== field) {
|
|
947
|
-
t2 = (event) => field.handleChange(event.target.value);
|
|
948
|
-
$[2] = field;
|
|
949
|
-
$[3] = t2;
|
|
950
|
-
} else {
|
|
951
|
-
t2 = $[3];
|
|
952
|
-
}
|
|
953
|
-
const t3 = isTouched && hasError;
|
|
954
|
-
const t4 = isTouched && helperText;
|
|
955
|
-
let t5;
|
|
956
|
-
if ($[4] !== field.handleBlur || $[5] !== field.name || $[6] !== props || $[7] !== t1 || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
|
|
957
|
-
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(TextField, { name: field.name, value: t1, onChange: t2, onBlur: field.handleBlur, error: t3, helperText: t4, "aria-label": field.name, ...props });
|
|
958
|
-
$[4] = field.handleBlur;
|
|
959
|
-
$[5] = field.name;
|
|
960
|
-
$[6] = props;
|
|
961
|
-
$[7] = t1;
|
|
962
|
-
$[8] = t2;
|
|
963
|
-
$[9] = t3;
|
|
964
|
-
$[10] = t4;
|
|
965
|
-
$[11] = t5;
|
|
966
|
-
} else {
|
|
967
|
-
t5 = $[11];
|
|
968
|
-
}
|
|
969
|
-
return t5;
|
|
970
|
-
};
|
|
971
|
-
const {
|
|
972
|
-
fieldContext,
|
|
973
|
-
useFieldContext,
|
|
974
|
-
formContext,
|
|
975
|
-
useFormContext
|
|
976
|
-
} = createFormHookContexts();
|
|
977
|
-
const {
|
|
978
|
-
useAppForm: useLayoutForm,
|
|
979
|
-
withForm: withLayoutForm
|
|
980
|
-
} = createFormHook({
|
|
981
|
-
fieldComponents: {
|
|
982
|
-
TextField: FormTextField,
|
|
983
|
-
NumberField: FormNumberField,
|
|
984
|
-
Autocomplete: FormAutocomplete,
|
|
985
|
-
Checkbox: FormCheckbox,
|
|
986
|
-
Switch: FormSwitch,
|
|
987
|
-
RadioGroup: FormRadioGroup,
|
|
988
|
-
Slider: FormSlider,
|
|
989
|
-
DatePicker: FormDatePicker,
|
|
990
|
-
DateRangePicker: FormDateRangePicker,
|
|
991
|
-
TimePicker: FormTimePicker,
|
|
992
|
-
TimeRangePicker: FormTimeRangePicker,
|
|
993
|
-
DateTimePicker: FormDateTimePicker,
|
|
994
|
-
DateTimeRangePicker: FormDateTimeRangePicker
|
|
995
|
-
},
|
|
996
|
-
formComponents: {
|
|
997
|
-
SubmitButton: FormSubmitButton
|
|
998
|
-
},
|
|
999
|
-
fieldContext,
|
|
1000
|
-
formContext
|
|
1001
|
-
});
|
|
1002
5
|
export {
|
|
1003
|
-
|
|
6
|
+
useDialogs,
|
|
1004
7
|
useFieldContext,
|
|
1005
8
|
useFormContext,
|
|
1006
9
|
useInView,
|
|
1007
10
|
useLayoutForm,
|
|
1008
|
-
|
|
11
|
+
useUser,
|
|
1009
12
|
withLayoutForm
|
|
1010
13
|
};
|
|
1011
14
|
//# sourceMappingURL=hooks.js.map
|