@m4l/components 0.2.8 → 0.2.9
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/components/AccountPopover/{index.2604c389.js → index.8a11a7b6.js} +21 -9
- package/components/AppBar/{index.9522f237.js → index.966d5162.js} +22 -5
- package/components/CommonActions/components/ActionCancel/{index.06539086.js → index.68bf349a.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/index.728bb37d.js +146 -0
- package/components/CommonActions/components/ActionFormIntro/{index.5a719043.js → index.a7e8711b.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.3e8a2e60.js → index.7cc0a393.js} +2 -2
- package/components/CommonActions/components/Actions/index.b61826a4.js +163 -0
- package/components/DataGrid/constants.d.ts +2 -0
- package/components/DataGrid/{index.fbda09b5.js → index.3a2e683c.js} +21 -18
- package/components/DataGrid/subcomponents/Actions/{index.a3282769.js → index.063a0197.js} +90 -10
- package/components/DynamicFilter/{index.07734f95.js → index.a5197d85.js} +92 -23
- package/components/GridLayout/{index.e8c04242.js → index.68093cfb.js} +7 -6
- package/components/GridLayout/subcomponents/Griditem/{index.4d38f12e.js → index.8e4af155.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.e25df1dc.js → index.c32210fc.js} +1 -1
- package/components/HelperText/{index.7d2afdb3.js → index.a6a02c79.js} +23 -2
- package/components/Icon/{index.05984e7f.js → index.29065051.js} +5 -5
- package/components/Image/{index.bf37e923.js → index.cf640615.js} +3 -3
- package/components/LanguagePopover/{index.5ff37dbf.js → index.0319d6a8.js} +20 -4
- package/components/LoadingError/{index.fabad214.js → index.1426339a.js} +23 -5
- package/components/MFLoader/{index.7b4ee2a4.js → index.cbd2e5af.js} +21 -5
- package/components/ModalDialog/{index.89e26413.js → index.82ccabcc.js} +3 -3
- package/components/NavLink/{index.b75c91e1.js → index.618dabfb.js} +22 -2
- package/components/NoItemSelected/{index.7db73e77.js → index.50d06852.js} +1 -1
- package/components/ObjectLogs/{index.9521ca72.js → index.fb34f372.js} +84 -5
- package/components/PDFViewer/{index.5c2db67a.js → index.ec8d0f79.js} +23 -3
- package/components/Page/{index.710cb16f.js → index.5aefe8f7.js} +1 -1
- package/components/PaperForm/classes/index.d.ts +2 -1
- package/components/PaperForm/classes/types.d.ts +1 -0
- package/components/PaperForm/{index.7ea3883f.js → index.6859d4e8.js} +11 -6
- package/components/PaperForm/types.d.ts +4 -1
- package/components/Period/{index.0aa8e507.js → index.df612223.js} +90 -5
- package/components/PrintingSystem/{index.ed3b22b7.js → index.73dd98b3.js} +12 -12
- package/components/PrintingSystem/subcomponents/BodyNode/{index.7acc6016.js → index.d70a5d24.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.e4a23bdd.js → index.4cd7f6d8.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.16fff262.js → index.56efaa0c.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.6c67dec0.js → index.4320bb03.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.f466062b.js → index.6cabbf31.js} +1 -5
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.77d3d39a.js → index.0e23ffd4.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.2a3d54a3.js → index.f97e7aa6.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.e71ad971.js → index.7d3a3c8f.js} +1 -2
- package/components/PrintingSystem/subcomponents/SectionNode/{index.ce4f6d16.js → index.05d1fcf7.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.850d20a1.js → index.3894059c.js} +1 -1
- package/components/PropertyValue/{index.711d80ae.js → index.df683b35.js} +20 -4
- package/components/SideBar/{index.58d29b84.js → index.f322ee0b.js} +22 -23
- package/components/ToastContainer/{index.ed440301.js → index.f67795cb.js} +7 -5
- package/components/animate/{index.5d4575bc.js → index.4e9774a6.js} +6 -2
- package/components/areas/components/AreasAdmin/{index.d3f818ae.js → index.6024578a.js} +98 -27
- package/components/areas/components/AreasViewer/{index.796a9d98.js → index.41e89676.js} +84 -18
- package/components/areas/components/index.198e8954.js +32 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.3d7cf850.js → index.9c8e3b41.js} +10 -17
- package/components/areas/contexts/index.eba30173.js +4 -0
- package/components/areas/hooks/index.0184c6f7.js +4 -0
- package/components/areas/hooks/useAreas/{index.08ece0b8.js → index.fb721543.js} +1 -1
- package/components/areas/index.abedae6a.js +56 -0
- package/components/formatters/BooleanFormatter/{index.4f3cbdce.js → index.64ed2d71.js} +2 -3
- package/components/formatters/{index.4ca6946d.js → index.57f0da1b.js} +7 -3
- package/components/hook-form/RHFAutocomplete/{index.0ce87ac3.js → index.e830f749.js} +22 -7
- package/components/hook-form/RHFAutocompleteAsync/{index.57789d3a.js → index.12580722.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.a38715e3.js → index.938321c1.js} +22 -2
- package/components/hook-form/RHFColorPicker/{index.d00a2b53.js → index.e292aa86.js} +21 -5
- package/components/hook-form/RHFDateTime/{index.ae5d3a39.js → index.321e4b87.js} +21 -5
- package/components/hook-form/RHFPeriod/{index.ae9bcf41.js → index.98b2667a.js} +2 -3
- package/components/hook-form/RHFTextField/{index.80cc07e0.js → index.d08c142b.js} +7 -5
- package/components/hook-form/RHFUpload/{index.587aac00.js → index.cdb2e584.js} +22 -5
- package/components/modal/WindowBase.4fe313e7.js +160 -0
- package/components/modal/WindowConfirm.355df4de.js +188 -0
- package/components/modal/index.ea3a21cb.js +148 -0
- package/components/mui_extended/Accordion/{index.4d39e652.js → index.3e247bd4.js} +4 -4
- package/components/mui_extended/Button/{index.570fd3a4.js → index.f538e360.js} +3 -3
- package/components/mui_extended/{CheckBox.e662d20c.js → CheckBox.38abccd8.js} +1 -1
- package/components/mui_extended/IconButton/{index.26de70bd.js → index.e295aa1f.js} +2 -2
- package/components/mui_extended/MenuActions/{index.8c02ff61.js → index.9b37fadc.js} +19 -5
- package/components/mui_extended/Pager/{index.5629e82b.js → index.78dea971.js} +2 -3
- package/components/mui_extended/Tab/{index.ff5075c5.js → index.4c797c00.js} +2 -2
- package/components/mui_extended/ToggleButton/{index.21a1f8e5.js → index.43140642.js} +5 -1
- package/components/mui_extended/ToggleIconButton/{index.00f13c40.js → index.3d725376.js} +6 -1
- package/components/mui_extended/index.1da3a53e.js +24 -0
- package/contexts/ModalContext/{index.b39d303d.js → index.6d2dda38.js} +1 -1
- package/hooks/useFormAddEdit/index.0d294209.js +183 -0
- package/hooks/useModal/{index.abdc0962.js → index.97742698.js} +1 -1
- package/hooks/useTab/index.cb48ec45.js +103 -0
- package/index.js +187 -187
- package/{node_modules.8f15d11f.js → node_modules.56dca1cf.js} +1 -1
- package/package.json +1 -1
- package/vendor.3c20510a.js +142 -0
- package/components/CommonActions/components/ActionFormCancel/index.33fc6c79.js +0 -61
- package/components/CommonActions/components/Actions/index.2f6286eb.js +0 -74
- package/components/areas/components/index.558684b3.js +0 -1
- package/components/areas/contexts/index.24025b97.js +0 -1
- package/components/areas/hooks/index.d9dc1e21.js +0 -1
- package/components/areas/index.4cc6a221.js +0 -22
- package/components/modal/WindowBase.ea17cf20.js +0 -74
- package/components/modal/WindowConfirm.19ddbd5d.js +0 -102
- package/components/modal/index.61389369.js +0 -57
- package/components/mui_extended/index.b606cd9d.js +0 -1
- package/hooks/useFormAddEdit/index.32aa4f64.js +0 -96
- package/hooks/useTab/index.a97c10ec.js +0 -12
- package/vendor.c026edad.js +0 -110
- package/components/mui_extended/Badge/{index.09f5aee5.js → index.b09524fe.js} +1 -1
- package/components/mui_extended/Popover/{index.b3eca6b1.js → index.9f35d0eb.js} +2 -2
- package/components/mui_extended/Tooltip/{index.24a2bc3f.js → index.5a795dcd.js} +1 -1
- package/components/mui_extended/Typography/{index.379dd374.js → index.443590d6.js} +1 -1
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { useNetwork, useFlags, useModuleDictionary } from "@m4l/core";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import { u as useModal } from "../useModal/index.97742698.js";
|
|
4
|
+
import "@mui/material";
|
|
5
|
+
import "../../react-draggable.ee21cb7e.js";
|
|
6
|
+
import "../../components/Resizeable/index.6478d7d8.js";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import "@m4l/graphics";
|
|
9
|
+
import "../../components/modal/index.ea3a21cb.js";
|
|
10
|
+
import { W as WindowConfirm } from "../../components/modal/WindowConfirm.355df4de.js";
|
|
11
|
+
import "../../components/animate/index.4e9774a6.js";
|
|
12
|
+
import "framer-motion";
|
|
13
|
+
import "@mui/material/styles";
|
|
14
|
+
import "react-router-dom";
|
|
15
|
+
import "../../components/animate/LoadingScreen/index.1d0c4307.js";
|
|
16
|
+
import "../../components/animate/PropagateLoader/index.7fab43c8.js";
|
|
17
|
+
import "../../components/Icon/index.29065051.js";
|
|
18
|
+
import "clsx";
|
|
19
|
+
import "../../components/mui_extended/IconButton/index.e295aa1f.js";
|
|
20
|
+
import "zustand";
|
|
21
|
+
import "../../components/areas/contexts/AreasContext/index.9c8e3b41.js";
|
|
22
|
+
import "../../components/areas/components/AreasAdmin/index.6024578a.js";
|
|
23
|
+
import "zustand/shallow";
|
|
24
|
+
import "../../components/ScrollBar/index.010f1b9d.js";
|
|
25
|
+
import "../../components/mui_extended/Accordion/index.3e247bd4.js";
|
|
26
|
+
import "../../components/mui_extended/Typography/index.443590d6.js";
|
|
27
|
+
import "../../components/mui_extended/Avatar/index.75e6ed57.js";
|
|
28
|
+
import "@mui/material/Button";
|
|
29
|
+
import "../../components/mui_extended/Button/index.f538e360.js";
|
|
30
|
+
import "../../components/mui_extended/CheckBox.38abccd8.js";
|
|
31
|
+
import "../../components/mui_extended/Badge/index.b09524fe.js";
|
|
32
|
+
import "../../components/Image/index.cf640615.js";
|
|
33
|
+
import "@mui/lab";
|
|
34
|
+
import "../../components/mui_extended/MenuActions/index.9b37fadc.js";
|
|
35
|
+
import "../../components/mui_extended/Popover/index.9f35d0eb.js";
|
|
36
|
+
import "../../components/mui_extended/Stack/index.0e53197c.js";
|
|
37
|
+
import "../../components/mui_extended/Tab/index.4c797c00.js";
|
|
38
|
+
import "../../components/mui_extended/Pager/index.78dea971.js";
|
|
39
|
+
import "../../components/mui_extended/Tooltip/index.5a795dcd.js";
|
|
40
|
+
import "../../components/areas/components/AreasViewer/index.41e89676.js";
|
|
41
|
+
import "../../components/LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
42
|
+
import "../../components/LoadingError/index.1426339a.js";
|
|
43
|
+
import "../../components/areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
44
|
+
import "zustand/middleware/immer";
|
|
45
|
+
import "../../components/areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
46
|
+
import "react-hook-form";
|
|
47
|
+
import "../../components/hook-form/RHFAutocomplete/index.e830f749.js";
|
|
48
|
+
import "../../components/HelperText/index.a6a02c79.js";
|
|
49
|
+
import "../../node_modules.56dca1cf.js";
|
|
50
|
+
import "lodash-es/debounce";
|
|
51
|
+
import "lodash-es/each";
|
|
52
|
+
import "../../components/hook-form/RHFColorPicker/index.e292aa86.js";
|
|
53
|
+
import "lodash/debounce";
|
|
54
|
+
import "../../components/hook-form/RHFAutocompleteAsync/index.12580722.js";
|
|
55
|
+
import "../../components/hook-form/RHFCheckbox/index.938321c1.js";
|
|
56
|
+
import "@mui/x-date-pickers";
|
|
57
|
+
import "../../components/hook-form/RHFDateTime/index.321e4b87.js";
|
|
58
|
+
import "../../components/hook-form/RHFTextField/index.d08c142b.js";
|
|
59
|
+
import "../../components/hook-form/RHFPeriod/index.98b2667a.js";
|
|
60
|
+
import "../../components/Period/index.df612223.js";
|
|
61
|
+
import "../../components/CommonActions/components/Actions/index.b61826a4.js";
|
|
62
|
+
import "lodash/isString";
|
|
63
|
+
import "react-dropzone";
|
|
64
|
+
import "../../components/hook-form/RHFUpload/index.cdb2e584.js";
|
|
65
|
+
import "../../components/formatters/index.57f0da1b.js";
|
|
66
|
+
import "../../components/DataGrid/index.3a2e683c.js";
|
|
67
|
+
import "react-dnd";
|
|
68
|
+
import "react-dnd-html5-backend";
|
|
69
|
+
import "../../components/DataGrid/subcomponents/Actions/index.063a0197.js";
|
|
70
|
+
import "../../components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
71
|
+
import "../../components/DynamicFilter/index.a5197d85.js";
|
|
72
|
+
import "yup";
|
|
73
|
+
import "../../contexts/RHFormContext/index.7769076a.js";
|
|
74
|
+
import "../../components/GridLayout/subcomponents/Griditem/index.8e4af155.js";
|
|
75
|
+
import "../../components/GridLayout/index.68093cfb.js";
|
|
76
|
+
import "fast-equals";
|
|
77
|
+
import "lodash";
|
|
78
|
+
import "../../components/PrintingSystem/index.73dd98b3.js";
|
|
79
|
+
import "../../components/LanguagePopover/index.0319d6a8.js";
|
|
80
|
+
import "../../components/MFLoader/index.cbd2e5af.js";
|
|
81
|
+
import "../../components/NavLink/index.618dabfb.js";
|
|
82
|
+
import "../../components/NoItemSelected/index.50d06852.js";
|
|
83
|
+
import "../../components/ObjectLogs/index.fb34f372.js";
|
|
84
|
+
import "../../react-json-view.5636414a.js";
|
|
85
|
+
import "../../components/PaperForm/index.6859d4e8.js";
|
|
86
|
+
import "../../components/PDFViewer/index.ec8d0f79.js";
|
|
87
|
+
import "../../components/Page/index.5aefe8f7.js";
|
|
88
|
+
import "../../components/PropertyValue/index.df683b35.js";
|
|
89
|
+
import "../../components/SplitLayout/index.30fd5861.js";
|
|
90
|
+
import "../../react-splitter-layout.c5d98bf7.js";
|
|
91
|
+
import "../../components/ToastContainer/index.f67795cb.js";
|
|
92
|
+
import "../../components/SideBar/index.f322ee0b.js";
|
|
93
|
+
import "../../components/AppBar/index.966d5162.js";
|
|
94
|
+
import "../../components/AccountPopover/index.8a11a7b6.js";
|
|
95
|
+
function useFormAddEdit(props) {
|
|
96
|
+
const {
|
|
97
|
+
initialValues,
|
|
98
|
+
objectId,
|
|
99
|
+
endPoint,
|
|
100
|
+
formatDataEnpoint,
|
|
101
|
+
queryParamas,
|
|
102
|
+
isRemote = true,
|
|
103
|
+
omitCallEnpoint = false
|
|
104
|
+
} = props;
|
|
105
|
+
const {
|
|
106
|
+
openModal
|
|
107
|
+
} = useModal();
|
|
108
|
+
const [formValues, setFormValues] = useState(initialValues);
|
|
109
|
+
const [statusLoad, setStatusLoad] = useState(objectId === void 0 ? "new" : "edit");
|
|
110
|
+
const {
|
|
111
|
+
networkOperation
|
|
112
|
+
} = useNetwork();
|
|
113
|
+
const {
|
|
114
|
+
addFlag
|
|
115
|
+
} = useFlags();
|
|
116
|
+
const {
|
|
117
|
+
getLabel
|
|
118
|
+
} = useModuleDictionary();
|
|
119
|
+
const setRefresh = () => {
|
|
120
|
+
if (statusLoad === "ready") {
|
|
121
|
+
setStatusLoad("edit");
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
let mounted = true;
|
|
126
|
+
if (statusLoad === "edit") {
|
|
127
|
+
if (omitCallEnpoint) {
|
|
128
|
+
addFlag("form_loaded");
|
|
129
|
+
setStatusLoad("ready");
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
networkOperation({
|
|
133
|
+
method: "GET",
|
|
134
|
+
endPoint: queryParamas ? `${endPoint}/${objectId}?${queryParamas}` : `${endPoint}/${objectId}`,
|
|
135
|
+
isRemote
|
|
136
|
+
}).then((response) => {
|
|
137
|
+
if (mounted) {
|
|
138
|
+
if (formatDataEnpoint) {
|
|
139
|
+
setFormValues(formatDataEnpoint(response));
|
|
140
|
+
} else {
|
|
141
|
+
setFormValues(response.data);
|
|
142
|
+
}
|
|
143
|
+
setStatusLoad("reload_values_provider");
|
|
144
|
+
}
|
|
145
|
+
}, () => {
|
|
146
|
+
setStatusLoad("error");
|
|
147
|
+
openModal({
|
|
148
|
+
window: /* @__PURE__ */ jsx(WindowConfirm, {
|
|
149
|
+
variant: "delete",
|
|
150
|
+
title: getLabel("form_add_edit.label_error_title"),
|
|
151
|
+
msg: getLabel("form_add_edit.error_authorization_message"),
|
|
152
|
+
onClickIntro: () => close()
|
|
153
|
+
}),
|
|
154
|
+
variant: "delete"
|
|
155
|
+
});
|
|
156
|
+
addFlag("form_loaded");
|
|
157
|
+
});
|
|
158
|
+
} else if (statusLoad === "new" || statusLoad === "reload_values_provider") {
|
|
159
|
+
addFlag("form_loaded");
|
|
160
|
+
setStatusLoad("ready");
|
|
161
|
+
}
|
|
162
|
+
return () => {
|
|
163
|
+
mounted = false;
|
|
164
|
+
};
|
|
165
|
+
}, [statusLoad]);
|
|
166
|
+
useEffect(() => {
|
|
167
|
+
if (statusLoad === "ready" && objectId !== void 0) {
|
|
168
|
+
setStatusLoad("edit");
|
|
169
|
+
}
|
|
170
|
+
}, [objectId]);
|
|
171
|
+
return {
|
|
172
|
+
formValues,
|
|
173
|
+
statusLoad,
|
|
174
|
+
setRefresh
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
const getformAddEditDictionary = () => {
|
|
178
|
+
return "form_add_edit";
|
|
179
|
+
};
|
|
180
|
+
export {
|
|
181
|
+
getformAddEditDictionary as g,
|
|
182
|
+
useFormAddEdit as u
|
|
183
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { M as ModalContext } from "../../contexts/ModalContext/index.
|
|
2
|
+
import { M as ModalContext } from "../../contexts/ModalContext/index.6d2dda38.js";
|
|
3
3
|
function useModal() {
|
|
4
4
|
const context = useContext(ModalContext);
|
|
5
5
|
if (!context)
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { useContext } from "react";
|
|
2
|
+
import "../../components/animate/index.4e9774a6.js";
|
|
3
|
+
import "framer-motion";
|
|
4
|
+
import "@mui/material";
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
import "@mui/material/styles";
|
|
7
|
+
import "react-router-dom";
|
|
8
|
+
import "../../components/animate/LoadingScreen/index.1d0c4307.js";
|
|
9
|
+
import "../../components/animate/PropagateLoader/index.7fab43c8.js";
|
|
10
|
+
import "@m4l/core";
|
|
11
|
+
import "../../components/Icon/index.29065051.js";
|
|
12
|
+
import "clsx";
|
|
13
|
+
import "@m4l/graphics";
|
|
14
|
+
import "../../components/mui_extended/IconButton/index.e295aa1f.js";
|
|
15
|
+
import "zustand";
|
|
16
|
+
import "../../components/areas/contexts/AreasContext/index.9c8e3b41.js";
|
|
17
|
+
import "../../components/areas/components/AreasAdmin/index.6024578a.js";
|
|
18
|
+
import "zustand/shallow";
|
|
19
|
+
import "../../components/ScrollBar/index.010f1b9d.js";
|
|
20
|
+
import "../../components/mui_extended/Accordion/index.3e247bd4.js";
|
|
21
|
+
import "../../components/mui_extended/Typography/index.443590d6.js";
|
|
22
|
+
import "../../components/mui_extended/Avatar/index.75e6ed57.js";
|
|
23
|
+
import "@mui/material/Button";
|
|
24
|
+
import "../../components/mui_extended/Button/index.f538e360.js";
|
|
25
|
+
import "../../components/mui_extended/CheckBox.38abccd8.js";
|
|
26
|
+
import "../../components/mui_extended/Badge/index.b09524fe.js";
|
|
27
|
+
import "../../components/Image/index.cf640615.js";
|
|
28
|
+
import "@mui/lab";
|
|
29
|
+
import "../../components/mui_extended/MenuActions/index.9b37fadc.js";
|
|
30
|
+
import "../../components/mui_extended/Popover/index.9f35d0eb.js";
|
|
31
|
+
import "../../components/mui_extended/Stack/index.0e53197c.js";
|
|
32
|
+
import { T as TabContext } from "../../components/mui_extended/Tab/index.4c797c00.js";
|
|
33
|
+
import "../../components/mui_extended/Pager/index.78dea971.js";
|
|
34
|
+
import "../../components/mui_extended/Tooltip/index.5a795dcd.js";
|
|
35
|
+
import "../../components/areas/components/AreasViewer/index.41e89676.js";
|
|
36
|
+
import "../../components/LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
37
|
+
import "../../components/LoadingError/index.1426339a.js";
|
|
38
|
+
import "../../components/areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
39
|
+
import "zustand/middleware/immer";
|
|
40
|
+
import "../../components/areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
41
|
+
import "react-hook-form";
|
|
42
|
+
import "../../components/hook-form/RHFAutocomplete/index.e830f749.js";
|
|
43
|
+
import "../../components/HelperText/index.a6a02c79.js";
|
|
44
|
+
import "../../node_modules.56dca1cf.js";
|
|
45
|
+
import "lodash-es/debounce";
|
|
46
|
+
import "lodash-es/each";
|
|
47
|
+
import "../../components/hook-form/RHFColorPicker/index.e292aa86.js";
|
|
48
|
+
import "lodash/debounce";
|
|
49
|
+
import "../../components/hook-form/RHFAutocompleteAsync/index.12580722.js";
|
|
50
|
+
import "../../components/hook-form/RHFCheckbox/index.938321c1.js";
|
|
51
|
+
import "@mui/x-date-pickers";
|
|
52
|
+
import "../../components/hook-form/RHFDateTime/index.321e4b87.js";
|
|
53
|
+
import "../../components/hook-form/RHFTextField/index.d08c142b.js";
|
|
54
|
+
import "../../components/hook-form/RHFPeriod/index.98b2667a.js";
|
|
55
|
+
import "../../components/Period/index.df612223.js";
|
|
56
|
+
import "../../components/CommonActions/components/Actions/index.b61826a4.js";
|
|
57
|
+
import "../../contexts/ModalContext/index.6d2dda38.js";
|
|
58
|
+
import "../../react-draggable.ee21cb7e.js";
|
|
59
|
+
import "../../components/Resizeable/index.6478d7d8.js";
|
|
60
|
+
import "../../components/modal/index.ea3a21cb.js";
|
|
61
|
+
import "lodash/isString";
|
|
62
|
+
import "react-dropzone";
|
|
63
|
+
import "../../components/hook-form/RHFUpload/index.cdb2e584.js";
|
|
64
|
+
import "../../components/formatters/index.57f0da1b.js";
|
|
65
|
+
import "../../components/DataGrid/index.3a2e683c.js";
|
|
66
|
+
import "react-dnd";
|
|
67
|
+
import "react-dnd-html5-backend";
|
|
68
|
+
import "../../components/DataGrid/subcomponents/Actions/index.063a0197.js";
|
|
69
|
+
import "../../components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
70
|
+
import "../../components/DynamicFilter/index.a5197d85.js";
|
|
71
|
+
import "yup";
|
|
72
|
+
import "../../contexts/RHFormContext/index.7769076a.js";
|
|
73
|
+
import "../../components/GridLayout/subcomponents/Griditem/index.8e4af155.js";
|
|
74
|
+
import "../../components/GridLayout/index.68093cfb.js";
|
|
75
|
+
import "fast-equals";
|
|
76
|
+
import "lodash";
|
|
77
|
+
import "../../components/PrintingSystem/index.73dd98b3.js";
|
|
78
|
+
import "../../components/LanguagePopover/index.0319d6a8.js";
|
|
79
|
+
import "../../components/MFLoader/index.cbd2e5af.js";
|
|
80
|
+
import "../../components/NavLink/index.618dabfb.js";
|
|
81
|
+
import "../../components/NoItemSelected/index.50d06852.js";
|
|
82
|
+
import "../../components/ObjectLogs/index.fb34f372.js";
|
|
83
|
+
import "../../react-json-view.5636414a.js";
|
|
84
|
+
import "../../components/PaperForm/index.6859d4e8.js";
|
|
85
|
+
import "../../components/PDFViewer/index.ec8d0f79.js";
|
|
86
|
+
import "../../components/Page/index.5aefe8f7.js";
|
|
87
|
+
import "../../components/PropertyValue/index.df683b35.js";
|
|
88
|
+
import "../../components/SplitLayout/index.30fd5861.js";
|
|
89
|
+
import "../../react-splitter-layout.c5d98bf7.js";
|
|
90
|
+
import "../../components/ToastContainer/index.f67795cb.js";
|
|
91
|
+
import "../../components/SideBar/index.f322ee0b.js";
|
|
92
|
+
import "../../components/AppBar/index.966d5162.js";
|
|
93
|
+
import "../../components/AccountPopover/index.8a11a7b6.js";
|
|
94
|
+
const useTab = () => {
|
|
95
|
+
const context = useContext(TabContext);
|
|
96
|
+
if (context === null) {
|
|
97
|
+
throw new Error("useTab must be used within a TabProvider");
|
|
98
|
+
}
|
|
99
|
+
return context;
|
|
100
|
+
};
|
|
101
|
+
export {
|
|
102
|
+
useTab as u
|
|
103
|
+
};
|