@m4l/components 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/export.d.ts +266 -266
- package/@types/types.d.ts +70 -47
- package/components/AccountPopover/{index-BJWLsxYq.js → index-vXlaw69C.js} +3 -3
- package/components/AppBar/{index-BdA-qQyV.js → index-3gXtikUI.js} +4 -4
- package/components/BaseModule/{index-Bl0GPyrz.js → index-CtN6b__U.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index-BlaMdPmp.js → index-D_42VfUR.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index-C5ZI4ZPP.js → index-DL7fDBi6.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index-BbVMcr05.js → index-i3HmOpoU.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index-DGooFqVu.js → index-i5875EXe.js} +2 -2
- package/components/CommonActions/components/Actions/{index-B_vOmNZT.js → index-ChW1FuFf.js} +1 -1
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index-0wqcK8ML.js → index-BjkuIa7y.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index-Ozdfjlt2.js → index-CWQp1KWU.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index-D-98uXfl.js → index-DggW8-4n.js} +1 -1
- package/components/DataGrid/formatters/{index-B5SJg0Qq.js → index-B3AsHKeD.js} +2 -2
- package/components/DataGrid/{index-7vJWvQtu.js → index-EgaRUtbL.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index-C-p5O-cU.js → index-BF4pV_-K.js} +11 -11
- package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
- package/components/DynamicFilter/{dictionary-DbRGLe8j.js → dictionary-B2qYGLOx.js} +2 -2
- package/components/DynamicFilter/{index-D2CmPq_i.js → index-BLjn97jC.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots-BSCWv_Rw.js → dynamicFilterSlots-CaFVu7xW.js} +5 -5
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicFilter/store/{index-BcaPHLdk.js → index-EW1sL9gf.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index-BZAxYAp1.js → index-DjgwIwH9.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index-DIFUGgys.js → index-Cfcgzcw7.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index-D5BGKd5r.js → index-BFcVswNb.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index-DFHDm1e4.js → index-B4mhUk9e.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index-Hn2Rzovd.js → index-CA3JDlD0.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index-B5F1Ji7m.js → index-B4R83Pyi.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index-BQlxIk_N.js → index-1XC3u2dm.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index-DF7EGeSx.js → index-BEMRO3Ng.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index-B6WQUIl7.js → index-Cfs28hud.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index-D5edNMdo.js → index-CYY3cjbX.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index-bbdBrHj0.js → index-CAdtxARw.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index-CD3aGB5S.js → index-COoNIh4L.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index-MiYNpAu0.js → index-Kz-jfM3o.js} +2 -2
- package/components/FieldLabel/{index-BpW2AGJx.js → index-DCAMDJoJ.js} +3 -3
- package/components/GridLayout/{index-HK_hTGnZ.js → index-DUfp2sP_.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index-izY8S7ns.js → index-DEi0Ai1D.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index-bpKDnaCd.js → index-B7v5X9un.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index-OWN-RzRq.js → index-BsKaLKRl.js} +1 -1
- package/components/HelperText/{index-COWCXeJp.js → index-DVV5Jfc8.js} +2 -2
- package/components/Icon/{index-CedboS6y.js → index-CueLDD9j.js} +3 -3
- package/components/Image/{index-B7FhR9uF.js → index-By5vsRzf.js} +2 -2
- package/components/LanguagePopover/{index-4kPWKmxk.js → index-Dn2JPzf1.js} +4 -4
- package/components/LinearProgressIndeterminate/{index-Do7CKcow.js → index-CTlvokQp.js} +1 -1
- package/components/LoadingError/{index-CNh7b1ew.js → index-CXVOiscg.js} +5 -5
- package/components/MFIsolationApp/{index-DJ-MUHoQ.js → index-BfFMo2Q2.js} +3 -3
- package/components/MFLoader/{index-Bcg9TXnJ.js → index-CCtU6zwR.js} +2 -2
- package/components/ModalDialog/{index-BuGRs967.js → index-KryIxH_j.js} +3 -3
- package/components/NavLink/{index-B6Gmzyl0.js → index-D6eiKlc0.js} +2 -2
- package/components/NoItemSelected/{index-CMet73v_.js → index-DKhhgTAH.js} +1 -1
- package/components/ObjectLogs/{index-_8l1PbEQ.js → index-CpBmanv0.js} +9 -9
- package/components/PDFViewer/{index-CV9x1XKR.js → index-3PBUibum.js} +2 -2
- package/components/Page/{index-DKQLs5le.js → index-PXQkJn7v.js} +1 -1
- package/components/PaperForm/{index-DciWfnML.js → index-B6a3-CZt.js} +2 -2
- package/components/Period/{index-DxijnNw6.js → index-DtFWU3y5.js} +4 -4
- package/components/PrintingSystem/{index-sSZkZbrr.js → index-DJmGF2SQ.js} +13 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index-CxYjxWxL.js → index-DorXm6AO.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index-D85qi4Qz.js → index-Cd9H-_3i.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index-BA-IYLWh.js → index-Dm-RAH_l.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index-Bn9eNtAi.js → index-BPg-NpDf.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index-gNEGVptD.js → index-u0ZSP6s4.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index-CiVr-jBF.js → index-C7eFFsTN.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index-BGbvh0Xk.js → index-D7M4YL4C.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index-DvhbyOo3.js → index-Drjfhq-n.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index-Cw8ZUwsm.js → index-Banh4UxX.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index-l9SFQ11V.js → index-OBnZLPEc.js} +1 -1
- package/components/PropertyValue/{index-hcXIE6qk.js → index-Cc7y20oI.js} +3 -3
- package/components/Resizeable/{index-ObbOlXFx.js → index-BwQ6EKCK.js} +1 -1
- package/components/ScrollBar/{index-BpTjE7o3.js → index-P3SkjYOy.js} +1 -1
- package/components/SideBar/{index-Cg1bZn8y.js → index-Ddxe1VvL.js} +5 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
- package/components/SplitLayout/{index-CYnKlhi5.js → index-CwmZT1x6.js} +1 -1
- package/components/ToastContainer/{index-B5VGIn45.js → index-DN3ZHpBT.js} +2 -2
- package/components/animate/LoadingScreen/{index-CzDq3A0i.js → index-CcjW-mkl.js} +1 -1
- package/components/animate/{index-mH4o-crX.js → index-DsolrzTC.js} +1 -1
- package/components/areas/components/AreasAdmin/{index-qqSduaty.js → index-Y6S0Q7TN.js} +14 -14
- package/components/areas/components/AreasViewer/{index-D5If8gFK.js → index-DfcpQwSl.js} +52 -60
- package/components/areas/contexts/AreasContext/{index-Dyj8tCdG.js → index-spCQnOlk.js} +10 -5
- package/components/areas/contexts/AreasContext/types.d.ts +1 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +5 -0
- package/components/areas/hooks/index.d.ts +1 -0
- package/components/areas/hooks/useAreas/{index-o0DvT3xZ.js → index-D6DaWBIP.js} +1 -1
- package/components/areas/hooks/useSetWindowsTitle/index.d.ts +1 -0
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +31 -0
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle.d.ts +3 -0
- package/components/commercial/AppBarCommercial/{index-DvigwCQP.js → index-D1jIOw7M.js} +1 -1
- package/components/commercial/SectionCommercial/{index-CLHGooDg.js → index-C9THYik8.js} +1 -1
- package/components/commercial/TopBar/{index-DJNYXgHq.js → index-DLn3yEcX.js} +5 -5
- package/components/commercial/{index-BLUHQfcA.js → index-D1bCIF7p.js} +3 -3
- package/components/formatters/BooleanFormatter/{index-DpF0x_xp.js → index-Bc2l6GTX.js} +2 -2
- package/components/formatters/{index-CDt8LzvL.js → index-Botdzyt2.js} +2 -2
- package/components/hook-form/HelperError/{index-D-_czK9n.js → index-J-C5u9AH.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index-BhbgwNUz.js → index-erpzYu8W.js} +6 -6
- package/components/hook-form/RHFAutocompleteAsync/{index-BnUgdSnR.js → index-BV0f25eK.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index-ubHFuH1F.js → index-Duf51-pS.js} +3 -3
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/{index-DBpi0Zhe.js → index-C-tITRAx.js} +6 -6
- package/components/hook-form/RHFDateTime/{index-BtfOlX4T.js → index-OdXKdhJS.js} +4 -4
- package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +1 -0
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnnerEnum.d.ts +9 -0
- package/components/hook-form/RHFInputNumberSpinner/types.d.ts +21 -0
- package/components/hook-form/RHFPeriod/{index-BicAIry0.js → index-CjkIGYUY.js} +4 -4
- package/components/hook-form/RHFRadioGroup/{index-Di37rp0B.js → index-Da_2zFu3.js} +1 -1
- package/components/hook-form/RHFTextField/{index-Cz7BMTLe.js → index-BWZWPFn5.js} +4 -4
- package/components/hook-form/RHFUpload/{index-D52JNxDh.js → index-D4nrnFFT.js} +5 -5
- package/components/maps/components/GpsTools/{index-BP1dIwh6.js → index-DPY-BjB8.js} +22 -22
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/{index-CS6xr1Fl.js → index-BRrVIyA-.js} +12 -12
- package/components/maps/leaflet-geoman.d.ts +1476 -1476
- package/components/modal/{WindowBase-CLBER1xc.js → WindowBase-Ce6yRLcN.js} +3 -3
- package/components/modal/{WindowConfirm-DraflAKP.js → WindowConfirm-BaB3Ojgu.js} +6 -6
- package/components/mui_extended/Accordion/{index-ZFpEUCnw.js → index-D1775s1J.js} +4 -4
- package/components/mui_extended/Avatar/{index-Bk4Hq2nk.js → index-n5hK7nJD.js} +1 -1
- package/components/mui_extended/Badge/{index-D6F1o3k2.js → index-Dfdw5Iaq.js} +1 -1
- package/components/mui_extended/Button/{index-DlzpoczE.js → index-CksGG1B8.js} +3 -3
- package/components/mui_extended/Button/styles.d.ts +1 -1
- package/components/mui_extended/{CheckBox-ByxYagHV.js → CheckBox-CjxjIrmN.js} +2 -2
- package/components/mui_extended/IconButton/{index-BfDbi0cC.js → index-OMq0pPK0.js} +2 -2
- package/components/mui_extended/IconButton/types.d.ts +18 -0
- package/components/mui_extended/MenuActions/MenuActions.d.ts +5 -0
- package/components/mui_extended/MenuActions/constant.d.ts +5 -0
- package/components/mui_extended/MenuActions/dictionary.d.ts +7 -0
- package/components/mui_extended/MenuActions/index-De7dpdBH.js +202 -0
- package/components/mui_extended/MenuActions/index.d.ts +2 -5
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +9 -0
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +24 -0
- package/components/mui_extended/MenuActions/slots/index.d.ts +2 -0
- package/components/mui_extended/MenuActions/types.d.ts +11 -2
- package/components/mui_extended/Pager/{index-CRgYDkV8.js → index-k7SRq6Jo.js} +4 -4
- package/components/mui_extended/Popover/{index-C6_2t4L1.js → index-BnKsmvtw.js} +1 -1
- package/components/mui_extended/Stack/{index-CV2W-_eL.js → index-C9YEChZB.js} +1 -1
- package/components/mui_extended/Tab/{index-PyZxxeDt.js → index-CpdHav0V.js} +1 -1
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/ToggleButton/{index-X6htsgfF.js → index-CS1mz-lH.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index-mT-xXWg9.js → index-BNQrQ6-b.js} +1 -1
- package/components/mui_extended/Typography/{index-DKPqV11f.js → index-W88rbpsJ.js} +1 -1
- package/components/popups/PopupsViewer/{index-D8iTb2JJ.js → index-Dn0XOI6q.js} +3 -3
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots-DEQAZ8fq.js → popupsViewerSlots-Db8QAmEE.js} +1 -1
- package/contexts/ModalContext/{index-CMPcjPCy.js → index-DkUBXDpR.js} +1 -1
- package/contexts/RHFormContext/{index-B4a0h0fX.js → index-Ct48jRjb.js} +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/useFormAddEdit/{index-DvRNtaub.js → index-BkBJNq8b.js} +2 -2
- package/hooks/useInterval/index.d.ts +7 -0
- package/hooks/useModal/{index-C9r1LQIz.js → index-CTAwKk5D.js} +1 -1
- package/hooks/useTab/{index-DTbLh_DH.js → index-PXnpiLMx.js} +1 -1
- package/index.js +114 -93
- package/package.json +1 -1
- package/styles/MenuActions.styles.d.ts +2 -0
- package/styles/{index-Cc9p_h7i.js → index-C-MsxWtr.js} +47 -19
- package/vite-env.d.ts +4 -4
- package/components/mui_extended/MenuActions/classes/constants.d.ts +0 -1
- package/components/mui_extended/MenuActions/classes/index.d.ts +0 -7
- package/components/mui_extended/MenuActions/classes/types.d.ts +0 -7
- package/components/mui_extended/MenuActions/icons.d.ts +0 -3
- package/components/mui_extended/MenuActions/index-CUz70BPj.js +0 -171
- package/components/mui_extended/MenuActions/styles.d.ts +0 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useNetwork, useFlagsStore, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
|
-
import { u as useModal } from "../useModal/index-
|
|
5
|
-
import { W as WindowConfirm } from "../../components/modal/WindowConfirm-
|
|
4
|
+
import { u as useModal } from "../useModal/index-CTAwKk5D.js";
|
|
5
|
+
import { W as WindowConfirm } from "../../components/modal/WindowConfirm-BaB3Ojgu.js";
|
|
6
6
|
function useFormAddEdit(props) {
|
|
7
7
|
const {
|
|
8
8
|
initialValues,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { a as ModalContext } from "../../contexts/ModalContext/index-
|
|
2
|
+
import { a as ModalContext } from "../../contexts/ModalContext/index-DkUBXDpR.js";
|
|
3
3
|
function useModal() {
|
|
4
4
|
const context = useContext(ModalContext);
|
|
5
5
|
if (!context) throw new Error("useModal context must be use inside ModalContext");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { d as TabContext } from "../../components/mui_extended/Tab/index-
|
|
2
|
+
import { d as TabContext } from "../../components/mui_extended/Tab/index-CpdHav0V.js";
|
|
3
3
|
const useTab = () => {
|
|
4
4
|
const context = useContext(TabContext);
|
|
5
5
|
if (context === null) {
|
package/index.js
CHANGED
|
@@ -1,125 +1,126 @@
|
|
|
1
|
-
import { T, a, c } from "./components/ToastContainer/index-
|
|
2
|
-
import { D, c as c2, g } from "./components/DataGrid/index-
|
|
1
|
+
import { T, a, c } from "./components/ToastContainer/index-DN3ZHpBT.js";
|
|
2
|
+
import { D, c as c2, g } from "./components/DataGrid/index-EgaRUtbL.js";
|
|
3
3
|
import { N, T as T2 } from "./components/DataGrid/subcomponents/editors/TextEditor/index-BIFm8akr.js";
|
|
4
|
-
import { N as N2 } from "./components/NavLink/index-
|
|
4
|
+
import { N as N2 } from "./components/NavLink/index-D6eiKlc0.js";
|
|
5
5
|
import { S } from "./components/ScrollToTop/index-TxORk5dB.js";
|
|
6
|
-
import { A, I } from "./components/animate/index-
|
|
6
|
+
import { A, I } from "./components/animate/index-DsolrzTC.js";
|
|
7
7
|
import { M } from "./components/animate/MotionContainer/index-eartnWyO.js";
|
|
8
8
|
import { M as M2 } from "./components/animate/MotionLazyContainer/index-Be8osTiG.js";
|
|
9
|
-
import { L } from "./components/animate/LoadingScreen/index-
|
|
9
|
+
import { L } from "./components/animate/LoadingScreen/index-CcjW-mkl.js";
|
|
10
10
|
import { P } from "./components/animate/PropagateLoader/index-Bkq8V2SN.js";
|
|
11
11
|
import { v } from "./components/animate/variants/fade-CAOJNn06.js";
|
|
12
12
|
import { v as v2 } from "./components/animate/variants/bounce-DanQqHAX.js";
|
|
13
13
|
import { v as v3 } from "./components/animate/variants/container-Dmpr6tg5.js";
|
|
14
14
|
import { v as v4, a as a2, b } from "./components/animate/variants/transition-B9W5SWTa.js";
|
|
15
|
-
import { A as A2 } from "./components/areas/components/AreasAdmin/index-
|
|
16
|
-
import { A as A3 } from "./components/areas/components/AreasViewer/index-
|
|
15
|
+
import { A as A2 } from "./components/areas/components/AreasAdmin/index-Y6S0Q7TN.js";
|
|
16
|
+
import { A as A3 } from "./components/areas/components/AreasViewer/index-DfcpQwSl.js";
|
|
17
17
|
import { a as a3, W } from "./components/areas/contexts/WindowToolsMFContext/index-DkE30fhm.js";
|
|
18
18
|
import { a as a4, D as D2, M as M3, c as c3 } from "./components/areas/contexts/DynamicMFParmsContext/index-22c6E7vK.js";
|
|
19
|
-
import { b as b2, A as A4 } from "./components/areas/contexts/AreasContext/index-
|
|
19
|
+
import { b as b2, A as A4 } from "./components/areas/contexts/AreasContext/index-spCQnOlk.js";
|
|
20
20
|
import { u } from "./components/areas/hooks/useDynamicMFParameters/index-DhbcZPs9.js";
|
|
21
21
|
import { u as u2 } from "./components/areas/hooks/useWindowToolsMF/index-BECQfhbC.js";
|
|
22
|
+
import { u as u3 } from "./components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js";
|
|
22
23
|
import { A as A5, D as D3, L as L2, a as a5, g as g2 } from "./components/areas/dictionary-YUsP9beq.js";
|
|
23
|
-
import { R, g as g3 } from "./components/hook-form/RHFAutocomplete/index-
|
|
24
|
-
import { R as R2, g as g4 } from "./components/hook-form/RHFAutocompleteAsync/index-
|
|
25
|
-
import { R as R3 } from "./components/hook-form/RHFDateTime/index-
|
|
24
|
+
import { R, g as g3 } from "./components/hook-form/RHFAutocomplete/index-erpzYu8W.js";
|
|
25
|
+
import { R as R2, g as g4 } from "./components/hook-form/RHFAutocompleteAsync/index-BV0f25eK.js";
|
|
26
|
+
import { R as R3 } from "./components/hook-form/RHFDateTime/index-OdXKdhJS.js";
|
|
26
27
|
import { R as R4 } from "./components/hook-form/RHFMultiCheckbox/index-BARudV1A.js";
|
|
27
28
|
import { R as R5 } from "./components/hook-form/RHFSelect/index-LdwRuFz-.js";
|
|
28
|
-
import { R as R6 } from "./components/hook-form/RHFPeriod/index-
|
|
29
|
-
import { P as P2, g as g5 } from "./components/Period/index-
|
|
30
|
-
import { R as R7 } from "./components/hook-form/RHFRadioGroup/index-
|
|
31
|
-
import { R as R8, g as g6 } from "./components/hook-form/RHFColorPicker/index-
|
|
32
|
-
import { R as R9 } from "./components/hook-form/RHFCheckbox/index-
|
|
33
|
-
import { b as b3, c as c4, a as a6, R as R10, d } from "./components/hook-form/RHFTextField/index-
|
|
34
|
-
import { R as R11 } from "./components/hook-form/RHFUpload/index-
|
|
35
|
-
import { A as A6 } from "./components/mui_extended/Accordion/index-
|
|
36
|
-
import { A as A7 } from "./components/mui_extended/Avatar/index-
|
|
29
|
+
import { R as R6 } from "./components/hook-form/RHFPeriod/index-CjkIGYUY.js";
|
|
30
|
+
import { P as P2, g as g5 } from "./components/Period/index-DtFWU3y5.js";
|
|
31
|
+
import { R as R7 } from "./components/hook-form/RHFRadioGroup/index-Da_2zFu3.js";
|
|
32
|
+
import { R as R8, g as g6 } from "./components/hook-form/RHFColorPicker/index-C-tITRAx.js";
|
|
33
|
+
import { R as R9 } from "./components/hook-form/RHFCheckbox/index-Duf51-pS.js";
|
|
34
|
+
import { b as b3, c as c4, a as a6, R as R10, d } from "./components/hook-form/RHFTextField/index-BWZWPFn5.js";
|
|
35
|
+
import { R as R11 } from "./components/hook-form/RHFUpload/index-D4nrnFFT.js";
|
|
36
|
+
import { A as A6 } from "./components/mui_extended/Accordion/index-D1775s1J.js";
|
|
37
|
+
import { A as A7 } from "./components/mui_extended/Avatar/index-n5hK7nJD.js";
|
|
37
38
|
import { B } from "./components/mui_extended/BoxIcon/index-BUTJ2tKw.js";
|
|
38
39
|
import { B as B2 } from "./components/mui_extended/Breadcrumbs/index-DTS7rOZH.js";
|
|
39
40
|
import { C } from "./components/mui_extended/CircularProgress/index-Bnnti_G6.js";
|
|
40
|
-
import { B as B3 } from "./components/mui_extended/Badge/index-
|
|
41
|
+
import { B as B3 } from "./components/mui_extended/Badge/index-Dfdw5Iaq.js";
|
|
41
42
|
import { L as L3 } from "./components/mui_extended/LinearProgress/index-CGgW8jq2.js";
|
|
42
43
|
import { L as L4 } from "./components/mui_extended/LinkWithRoute/index-BC2miUjR.js";
|
|
43
|
-
import { B as B4, I as I2, L as L5 } from "./components/mui_extended/Button/index-
|
|
44
|
-
import { M as M4 } from "./components/mui_extended/MenuActions/index-
|
|
45
|
-
import { P as P3, g as g7 } from "./components/mui_extended/Pager/index-
|
|
46
|
-
import { a as a7, b as b4, d as d2, c as c5, T as T3 } from "./components/mui_extended/Tab/index-
|
|
47
|
-
import { C as C2 } from "./components/mui_extended/CheckBox-
|
|
48
|
-
import { I as I3 } from "./components/mui_extended/IconButton/index-
|
|
49
|
-
import { P as P4 } from "./components/mui_extended/Popover/index-
|
|
50
|
-
import { S as S2 } from "./components/mui_extended/Stack/index-
|
|
44
|
+
import { B as B4, I as I2, L as L5 } from "./components/mui_extended/Button/index-CksGG1B8.js";
|
|
45
|
+
import { M as M4 } from "./components/mui_extended/MenuActions/index-De7dpdBH.js";
|
|
46
|
+
import { P as P3, g as g7 } from "./components/mui_extended/Pager/index-k7SRq6Jo.js";
|
|
47
|
+
import { a as a7, b as b4, d as d2, c as c5, T as T3 } from "./components/mui_extended/Tab/index-CpdHav0V.js";
|
|
48
|
+
import { C as C2 } from "./components/mui_extended/CheckBox-CjxjIrmN.js";
|
|
49
|
+
import { I as I3 } from "./components/mui_extended/IconButton/index-OMq0pPK0.js";
|
|
50
|
+
import { P as P4 } from "./components/mui_extended/Popover/index-BnKsmvtw.js";
|
|
51
|
+
import { S as S2 } from "./components/mui_extended/Stack/index-C9YEChZB.js";
|
|
51
52
|
import { T as T4 } from "./components/mui_extended/Tooltip/index-B8QUytCK.js";
|
|
52
|
-
import { T as T5 } from "./components/mui_extended/Typography/index-
|
|
53
|
-
import { T as T6 } from "./components/mui_extended/ToggleButton/index-
|
|
54
|
-
import { T as T7 } from "./components/mui_extended/ToggleIconButton/index-
|
|
55
|
-
import { B as B5 } from "./components/formatters/BooleanFormatter/index-
|
|
53
|
+
import { T as T5 } from "./components/mui_extended/Typography/index-W88rbpsJ.js";
|
|
54
|
+
import { T as T6 } from "./components/mui_extended/ToggleButton/index-CS1mz-lH.js";
|
|
55
|
+
import { T as T7 } from "./components/mui_extended/ToggleIconButton/index-BNQrQ6-b.js";
|
|
56
|
+
import { B as B5 } from "./components/formatters/BooleanFormatter/index-Bc2l6GTX.js";
|
|
56
57
|
import { D as D4, g as g8 } from "./components/formatters/DateFormatter/index-CGcRZ8BA.js";
|
|
57
58
|
import { U, g as g9 } from "./components/formatters/UncertaintyFormatter/index-B9ESVEVp.js";
|
|
58
59
|
import { P as P5, g as g10 } from "./components/formatters/PointsFormatter/index-C7sR8iqk.js";
|
|
59
|
-
import { C as C3, P as P6, g as g11, a as a8, b as b5 } from "./components/formatters/index-
|
|
60
|
+
import { C as C3, P as P6, g as g11, a as a8, b as b5 } from "./components/formatters/index-Botdzyt2.js";
|
|
60
61
|
import { P as P7, g as g12 } from "./components/formatters/PriceFormatter/index-CsvRawmc.js";
|
|
61
62
|
import { C as C4 } from "./components/DataGrid/formatters/ColumnUncertaintyFormatter/index-Cq7a-jnE.js";
|
|
62
63
|
import { C as C5 } from "./components/DataGrid/formatters/ColumnPointsFormatter/index-BXGW2CsK.js";
|
|
63
64
|
import { C as C6 } from "./components/DataGrid/formatters/ColumnNestedValueFormatter/index-BslXGK-A.js";
|
|
64
|
-
import { C as C7 } from "./components/DataGrid/formatters/ColumnBooleanFormatter/index-
|
|
65
|
+
import { C as C7 } from "./components/DataGrid/formatters/ColumnBooleanFormatter/index-BjkuIa7y.js";
|
|
65
66
|
import { C as C8 } from "./components/DataGrid/formatters/ColumnDateFormatter/index-CKg8CJ6A.js";
|
|
66
|
-
import { C as C9 } from "./components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index-
|
|
67
|
+
import { C as C9 } from "./components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index-CWQp1KWU.js";
|
|
67
68
|
import { C as C10 } from "./components/DataGrid/formatters/ColumnPriceFormatter/index-O11tBykn.js";
|
|
68
|
-
import { C as C11 } from "./components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index-
|
|
69
|
+
import { C as C11 } from "./components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index-DggW8-4n.js";
|
|
69
70
|
import { C as C12 } from "./components/DataGrid/formatters/ColumnSetCheckFormatter/index-BaCawLr1.js";
|
|
70
|
-
import { a as a9 } from "./components/DynamicFilter/dictionary-
|
|
71
|
-
import { D as D5 } from "./components/DynamicFilter/index-
|
|
72
|
-
import { F } from "./components/FieldLabel/index-
|
|
73
|
-
import { H, e } from "./components/HelperText/index-
|
|
74
|
-
import { A as A8, d as d3, g as g13 } from "./components/CommonActions/components/Actions/index-
|
|
75
|
-
import { A as A9 } from "./components/CommonActions/components/ActionCancel/index-
|
|
76
|
-
import { A as A10 } from "./components/CommonActions/components/ActionIntro/index-
|
|
77
|
-
import { A as A11 } from "./components/CommonActions/components/ActionFormCancel/index-
|
|
78
|
-
import { A as A12 } from "./components/CommonActions/components/ActionFormIntro/index-
|
|
71
|
+
import { a as a9 } from "./components/DynamicFilter/dictionary-B2qYGLOx.js";
|
|
72
|
+
import { D as D5 } from "./components/DynamicFilter/index-BLjn97jC.js";
|
|
73
|
+
import { F } from "./components/FieldLabel/index-DCAMDJoJ.js";
|
|
74
|
+
import { H, e } from "./components/HelperText/index-DVV5Jfc8.js";
|
|
75
|
+
import { A as A8, d as d3, g as g13 } from "./components/CommonActions/components/Actions/index-ChW1FuFf.js";
|
|
76
|
+
import { A as A9 } from "./components/CommonActions/components/ActionCancel/index-D_42VfUR.js";
|
|
77
|
+
import { A as A10 } from "./components/CommonActions/components/ActionIntro/index-i5875EXe.js";
|
|
78
|
+
import { A as A11 } from "./components/CommonActions/components/ActionFormCancel/index-DL7fDBi6.js";
|
|
79
|
+
import { A as A12 } from "./components/CommonActions/components/ActionFormIntro/index-i3HmOpoU.js";
|
|
79
80
|
import { D as D6, d as d4 } from "./components/DragResizeWindow/index-D2jLYExo.js";
|
|
80
|
-
import { G, w, z } from "./components/GridLayout/index-
|
|
81
|
-
import { R as R12, a as a10, b as b6, c as c6 } from "./components/GridLayout/subcomponents/Responsive/index-
|
|
82
|
-
import { w as w2 } from "./components/GridLayout/subcomponents/SizeProvider/index-
|
|
83
|
-
import { P as P8 } from "./components/PrintingSystem/index-
|
|
84
|
-
import { I as I4 } from "./components/Icon/index-
|
|
85
|
-
import { L as L6 } from "./components/LanguagePopover/index-
|
|
86
|
-
import { L as L7 } from "./components/LinearProgressIndeterminate/index-
|
|
87
|
-
import { I as I5 } from "./components/Image/index-
|
|
81
|
+
import { G, w, z } from "./components/GridLayout/index-DUfp2sP_.js";
|
|
82
|
+
import { R as R12, a as a10, b as b6, c as c6 } from "./components/GridLayout/subcomponents/Responsive/index-B7v5X9un.js";
|
|
83
|
+
import { w as w2 } from "./components/GridLayout/subcomponents/SizeProvider/index-BsKaLKRl.js";
|
|
84
|
+
import { P as P8 } from "./components/PrintingSystem/index-DJmGF2SQ.js";
|
|
85
|
+
import { I as I4 } from "./components/Icon/index-CueLDD9j.js";
|
|
86
|
+
import { L as L6 } from "./components/LanguagePopover/index-Dn2JPzf1.js";
|
|
87
|
+
import { L as L7 } from "./components/LinearProgressIndeterminate/index-CTlvokQp.js";
|
|
88
|
+
import { I as I5 } from "./components/Image/index-By5vsRzf.js";
|
|
88
89
|
import { L as L8 } from "./components/Loadable/index-BMbi9ISF.js";
|
|
89
|
-
import { C as C13, M as M5, c as c7, b as b7, d as d5, u as
|
|
90
|
-
import { M as M6, G as G2, u as
|
|
91
|
-
import { M as M7, d as d6, g as g14 } from "./components/ModalDialog/index-
|
|
90
|
+
import { C as C13, M as M5, c as c7, b as b7, d as d5, u as u4 } from "./components/maps/components/Map/index-BRrVIyA-.js";
|
|
91
|
+
import { M as M6, G as G2, u as u5 } from "./components/maps/components/GpsTools/index-DPY-BjB8.js";
|
|
92
|
+
import { M as M7, d as d6, g as g14 } from "./components/ModalDialog/index-KryIxH_j.js";
|
|
92
93
|
import { g as g15 } from "./components/modal/index-CydPIpKZ.js";
|
|
93
|
-
import { W as W2 } from "./components/modal/WindowConfirm-
|
|
94
|
-
import { W as W3 } from "./components/modal/WindowBase-
|
|
95
|
-
import { L as L9, g as g16 } from "./components/LoadingError/index-
|
|
96
|
-
import { M as M8, g as g17 } from "./components/MFLoader/index-
|
|
97
|
-
import { N as N3, d as d7, g as g18 } from "./components/NoItemSelected/index-
|
|
98
|
-
import { O, d as d8, g as g19 } from "./components/ObjectLogs/index-
|
|
99
|
-
import { P as P9 } from "./components/PaperForm/index-
|
|
100
|
-
import { P as P10 } from "./components/PDFViewer/index-
|
|
101
|
-
import { H as H2 } from "./components/Page/index-
|
|
102
|
-
import { P as P11 } from "./components/PropertyValue/index-
|
|
103
|
-
import { R as R13 } from "./components/Resizeable/index-
|
|
104
|
-
import { S as S3 } from "./components/ScrollBar/index-
|
|
105
|
-
import { S as S4 } from "./components/SplitLayout/index-
|
|
106
|
-
import { S as S5 } from "./components/SideBar/index-
|
|
107
|
-
import { A as A13, g as g20 } from "./components/AppBar/index-
|
|
108
|
-
import { A as A14, g as g21 } from "./components/AccountPopover/index-
|
|
109
|
-
import { a as a11, P as P12, u as
|
|
110
|
-
import { P as P13 } from "./components/popups/PopupsViewer/index-
|
|
111
|
-
import { A as A15 } from "./components/commercial/AppBarCommercial/index-
|
|
112
|
-
import { H as H3 } from "./components/commercial/index-
|
|
113
|
-
import { T as T8 } from "./components/commercial/TopBar/index-
|
|
114
|
-
import { S as S6 } from "./components/commercial/SectionCommercial/index-
|
|
115
|
-
import { M as M9 } from "./components/MFIsolationApp/index-
|
|
116
|
-
import { B as B6 } from "./components/BaseModule/index-
|
|
117
|
-
import { R as R14, g as g22 } from "./contexts/RHFormContext/index-
|
|
118
|
-
import { a as a12, M as M10 } from "./contexts/ModalContext/index-
|
|
119
|
-
import { g as g23, u as
|
|
120
|
-
import { u as
|
|
121
|
-
import { u as
|
|
122
|
-
import { useState } from "react";
|
|
94
|
+
import { W as W2 } from "./components/modal/WindowConfirm-BaB3Ojgu.js";
|
|
95
|
+
import { W as W3 } from "./components/modal/WindowBase-Ce6yRLcN.js";
|
|
96
|
+
import { L as L9, g as g16 } from "./components/LoadingError/index-CXVOiscg.js";
|
|
97
|
+
import { M as M8, g as g17 } from "./components/MFLoader/index-CCtU6zwR.js";
|
|
98
|
+
import { N as N3, d as d7, g as g18 } from "./components/NoItemSelected/index-DKhhgTAH.js";
|
|
99
|
+
import { O, d as d8, g as g19 } from "./components/ObjectLogs/index-CpBmanv0.js";
|
|
100
|
+
import { P as P9 } from "./components/PaperForm/index-B6a3-CZt.js";
|
|
101
|
+
import { P as P10 } from "./components/PDFViewer/index-3PBUibum.js";
|
|
102
|
+
import { H as H2 } from "./components/Page/index-PXQkJn7v.js";
|
|
103
|
+
import { P as P11 } from "./components/PropertyValue/index-Cc7y20oI.js";
|
|
104
|
+
import { R as R13 } from "./components/Resizeable/index-BwQ6EKCK.js";
|
|
105
|
+
import { S as S3 } from "./components/ScrollBar/index-P3SkjYOy.js";
|
|
106
|
+
import { S as S4 } from "./components/SplitLayout/index-CwmZT1x6.js";
|
|
107
|
+
import { S as S5 } from "./components/SideBar/index-Ddxe1VvL.js";
|
|
108
|
+
import { A as A13, g as g20 } from "./components/AppBar/index-3gXtikUI.js";
|
|
109
|
+
import { A as A14, g as g21 } from "./components/AccountPopover/index-vXlaw69C.js";
|
|
110
|
+
import { a as a11, P as P12, u as u6 } from "./components/popups/PopupsProvider/index-DhSxmtfJ.js";
|
|
111
|
+
import { P as P13 } from "./components/popups/PopupsViewer/index-Dn0XOI6q.js";
|
|
112
|
+
import { A as A15 } from "./components/commercial/AppBarCommercial/index-D1jIOw7M.js";
|
|
113
|
+
import { H as H3 } from "./components/commercial/index-D1bCIF7p.js";
|
|
114
|
+
import { T as T8 } from "./components/commercial/TopBar/index-DLn3yEcX.js";
|
|
115
|
+
import { S as S6 } from "./components/commercial/SectionCommercial/index-C9THYik8.js";
|
|
116
|
+
import { M as M9 } from "./components/MFIsolationApp/index-BfFMo2Q2.js";
|
|
117
|
+
import { B as B6 } from "./components/BaseModule/index-CtN6b__U.js";
|
|
118
|
+
import { R as R14, g as g22 } from "./contexts/RHFormContext/index-Ct48jRjb.js";
|
|
119
|
+
import { a as a12, M as M10 } from "./contexts/ModalContext/index-DkUBXDpR.js";
|
|
120
|
+
import { g as g23, u as u7 } from "./hooks/useFormAddEdit/index-BkBJNq8b.js";
|
|
121
|
+
import { u as u8 } from "./hooks/useModal/index-CTAwKk5D.js";
|
|
122
|
+
import { u as u9 } from "./hooks/useTab/index-PXnpiLMx.js";
|
|
123
|
+
import { useState, useRef, useEffect } from "react";
|
|
123
124
|
const useFormFocus = () => {
|
|
124
125
|
const [isFocus, setIsFocus] = useState(false);
|
|
125
126
|
const [isTabSelected, setIsTabSelected] = useState(false);
|
|
@@ -137,6 +138,24 @@ const useFormFocus = () => {
|
|
|
137
138
|
};
|
|
138
139
|
return { isFocus, isTabSelected, handlerFocus, handlerOnKeyUp, handlerOnBlur };
|
|
139
140
|
};
|
|
141
|
+
function useInterval(callback, delay) {
|
|
142
|
+
const savedCallback = useRef(() => {
|
|
143
|
+
});
|
|
144
|
+
useEffect(() => {
|
|
145
|
+
savedCallback.current = callback;
|
|
146
|
+
}, [callback]);
|
|
147
|
+
useEffect(() => {
|
|
148
|
+
function tick() {
|
|
149
|
+
savedCallback.current();
|
|
150
|
+
}
|
|
151
|
+
if (delay !== null) {
|
|
152
|
+
const id = setInterval(tick, delay);
|
|
153
|
+
return () => clearInterval(id);
|
|
154
|
+
}
|
|
155
|
+
return () => {
|
|
156
|
+
};
|
|
157
|
+
}, [delay]);
|
|
158
|
+
}
|
|
140
159
|
export {
|
|
141
160
|
A5 as AREAS_DICTIONARY_ID,
|
|
142
161
|
A6 as Accordion,
|
|
@@ -316,13 +335,15 @@ export {
|
|
|
316
335
|
w as isEqualLayout,
|
|
317
336
|
z as isEqualLayouts,
|
|
318
337
|
u as useDynamicMFParametersStore,
|
|
319
|
-
|
|
338
|
+
u7 as useFormAddEdit,
|
|
320
339
|
useFormFocus,
|
|
321
|
-
|
|
322
|
-
u4 as
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
340
|
+
useInterval,
|
|
341
|
+
u4 as useMapStore,
|
|
342
|
+
u5 as useMapToolsStore,
|
|
343
|
+
u8 as useModal,
|
|
344
|
+
u6 as usePopupsStore,
|
|
345
|
+
u3 as useSetWindowsTitle,
|
|
346
|
+
u9 as useTab,
|
|
326
347
|
u2 as useWindowToolsMF,
|
|
327
348
|
v2 as varBounce,
|
|
328
349
|
v3 as varContainer,
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { styled, alpha, Skeleton, Popover,
|
|
1
|
+
import { styled, alpha, Skeleton, Popover, Stack, Tabs, Dialog, ListItemText, ListItemButton } from "@mui/material";
|
|
2
2
|
import { styled as styled$1, alpha as alpha$1 } from "@mui/material/styles";
|
|
3
3
|
import SimpleBarReact from "simplebar-react";
|
|
4
|
-
import { h as gridLayoutClasses } from "../components/GridLayout/index-
|
|
4
|
+
import { h as gridLayoutClasses } from "../components/GridLayout/index-DUfp2sP_.js";
|
|
5
5
|
import { a as ResizableBox } from "../react-resizable-eBbFl2dX.js";
|
|
6
|
-
import { a as areasAdminClasses } from "../components/areas/components/AreasAdmin/index-
|
|
7
|
-
import { a as areasViewerClasses } from "../components/areas/components/AreasViewer/index-
|
|
8
|
-
import { g as gpsToolsClasses } from "../components/maps/components/GpsTools/index-
|
|
9
|
-
import { R as RHFormProvider } from "../contexts/RHFormContext/index-
|
|
10
|
-
import { S as Stack$1 } from "../components/mui_extended/Stack/index-
|
|
11
|
-
import { I as Image } from "../components/Image/index-
|
|
6
|
+
import { a as areasAdminClasses } from "../components/areas/components/AreasAdmin/index-Y6S0Q7TN.js";
|
|
7
|
+
import { a as areasViewerClasses } from "../components/areas/components/AreasViewer/index-DfcpQwSl.js";
|
|
8
|
+
import { g as gpsToolsClasses } from "../components/maps/components/GpsTools/index-DPY-BjB8.js";
|
|
9
|
+
import { R as RHFormProvider } from "../contexts/RHFormContext/index-Ct48jRjb.js";
|
|
10
|
+
import { S as Stack$1 } from "../components/mui_extended/Stack/index-C9YEChZB.js";
|
|
11
|
+
import { I as Image } from "../components/Image/index-By5vsRzf.js";
|
|
12
12
|
const RootStyle$1 = styled("div", {
|
|
13
13
|
shouldForwardProp: (props) => props !== "variant"
|
|
14
14
|
})(({ theme, variant }) => ({
|
|
@@ -300,19 +300,47 @@ const LoadingButtonRoot = styled("div")(({ theme }) => ({
|
|
|
300
300
|
/* Styles overrides of m4l_styles */
|
|
301
301
|
...theme.components?.M4LLoadingButton?.styleOverrides
|
|
302
302
|
}));
|
|
303
|
+
const CONTAINER_QUERY_NAME$1 = "menuActions";
|
|
304
|
+
const menuActionsStyles = {
|
|
305
|
+
root: ({ theme }) => ({
|
|
306
|
+
containerName: CONTAINER_QUERY_NAME$1,
|
|
307
|
+
"& .MuiPaper-root": {
|
|
308
|
+
display: "flex",
|
|
309
|
+
flexDirection: "column",
|
|
310
|
+
background: theme.palette.background.default,
|
|
311
|
+
gap: "8px",
|
|
312
|
+
maxWidth: 300
|
|
313
|
+
}
|
|
314
|
+
}),
|
|
315
|
+
badge: {},
|
|
316
|
+
menuItem: ({ theme, ownerState }) => ({
|
|
317
|
+
display: "flex",
|
|
318
|
+
justifyContent: "center",
|
|
319
|
+
minHeight: "24px",
|
|
320
|
+
minWidth: "24px",
|
|
321
|
+
padding: "0",
|
|
322
|
+
gap: "0px",
|
|
323
|
+
...ownerState.variant === "delete" ? {
|
|
324
|
+
color: theme.palette.state.error.normal
|
|
325
|
+
} : {}
|
|
326
|
+
}),
|
|
327
|
+
menuItemLabel: {},
|
|
328
|
+
menuItemIcon: ({ theme, ownerState }) => ({
|
|
329
|
+
"&.M4LIcon-root": {
|
|
330
|
+
minHeight: "24px",
|
|
331
|
+
minWidth: "24px",
|
|
332
|
+
"& > .M4LIcon-icon": {
|
|
333
|
+
backgroundColor: ownerState.variant === "delete" ? theme.palette.state.error.normal : ""
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}),
|
|
337
|
+
labelEmpty: () => ({
|
|
338
|
+
zIndex: 1
|
|
339
|
+
})
|
|
340
|
+
};
|
|
303
341
|
const PopoverRoot = styled$1(Popover)(({ theme }) => ({
|
|
304
342
|
...theme.components?.M4LPopover?.styleOverrides
|
|
305
343
|
}));
|
|
306
|
-
styled$1(IconButton)(() => ({}));
|
|
307
|
-
const LabelMemuItem = styled$1("div")(({ theme }) => ({
|
|
308
|
-
height: "22px",
|
|
309
|
-
overflow: "hidden",
|
|
310
|
-
wordBreak: "break-all",
|
|
311
|
-
// padding: '0px',
|
|
312
|
-
marginLeft: theme.spacing(1.5),
|
|
313
|
-
display: "flex",
|
|
314
|
-
alignItems: "center"
|
|
315
|
-
}));
|
|
316
344
|
const MUISTack = styled(Stack)(({ theme }) => ({
|
|
317
345
|
...theme.components?.M4LStack?.styleOverrides
|
|
318
346
|
}));
|
|
@@ -1639,7 +1667,7 @@ export {
|
|
|
1639
1667
|
LoadingButtonRoot as aC,
|
|
1640
1668
|
CheckBoxRoot as aD,
|
|
1641
1669
|
IconButtonRoot as aE,
|
|
1642
|
-
|
|
1670
|
+
menuActionsStyles as aF,
|
|
1643
1671
|
PagerRoot as aG,
|
|
1644
1672
|
PopoverRoot as aH,
|
|
1645
1673
|
MUISTack as aI,
|
package/vite-env.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
/// <reference types="vitest" />
|
|
3
|
-
/// <reference types="vitest/globals" />
|
|
4
|
-
/// <reference types="vitest/importMeta" />
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
/// <reference types="vitest" />
|
|
3
|
+
/// <reference types="vitest/globals" />
|
|
4
|
+
/// <reference types="vitest/importMeta" />
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "M4LMenuActions";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MenuActionsClassesType } from './types';
|
|
2
|
-
export declare const menuActionsClasses: MenuActionsClassesType;
|
|
3
|
-
export declare function getMenuActionsUtilityClass(slot: string): string;
|
|
4
|
-
export declare const useMenuActionsUtilityClasses: () => {
|
|
5
|
-
root: string;
|
|
6
|
-
itemDelete: string;
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { useMenuActionsUtilityClasses } from '.';
|
|
2
|
-
export interface MenuActionsClassesType {
|
|
3
|
-
root: string;
|
|
4
|
-
itemDelete: string;
|
|
5
|
-
}
|
|
6
|
-
export declare type StackClassesKey = keyof MenuActionsClassesType;
|
|
7
|
-
export declare type Classes = ReturnType<typeof useMenuActionsUtilityClasses>;
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import React__default, { useState, useEffect, useMemo } from "react";
|
|
3
|
-
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { generateUtilityClasses, generateUtilityClass, useTheme, MenuItem } from "@mui/material";
|
|
5
|
-
import { P as Popover } from "../Popover/index-C6_2t4L1.js";
|
|
6
|
-
import { aF as LabelMemuItem } from "../../../styles/index-Cc9p_h7i.js";
|
|
7
|
-
import { I as Icon } from "../../Icon/index-CedboS6y.js";
|
|
8
|
-
import clsx from "clsx";
|
|
9
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
10
|
-
import { B as Badge } from "../Badge/index-D6F1o3k2.js";
|
|
11
|
-
import { I as IconButton } from "../IconButton/index-BfDbi0cC.js";
|
|
12
|
-
const ICONS = {
|
|
13
|
-
MENU: "menu.svg"
|
|
14
|
-
};
|
|
15
|
-
const componentName = "M4LMenuActions";
|
|
16
|
-
generateUtilityClasses(componentName, [
|
|
17
|
-
/* elements */
|
|
18
|
-
"root",
|
|
19
|
-
"itemDelete"
|
|
20
|
-
/* states or variants of elements */
|
|
21
|
-
]);
|
|
22
|
-
function getMenuActionsUtilityClass(slot) {
|
|
23
|
-
return generateUtilityClass(componentName, slot);
|
|
24
|
-
}
|
|
25
|
-
const useMenuActionsUtilityClasses = () => {
|
|
26
|
-
const slots = {
|
|
27
|
-
root: ["root"],
|
|
28
|
-
itemDelete: ["itemDelete"]
|
|
29
|
-
};
|
|
30
|
-
const composedClasses = unstable_composeClasses(slots, getMenuActionsUtilityClass, {});
|
|
31
|
-
return {
|
|
32
|
-
...composedClasses
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
function MenuActions(props) {
|
|
36
|
-
const {
|
|
37
|
-
menuActions,
|
|
38
|
-
endListElement,
|
|
39
|
-
menuActionSx,
|
|
40
|
-
className,
|
|
41
|
-
iconButtonClassName = "",
|
|
42
|
-
objItem = {},
|
|
43
|
-
urlIcon,
|
|
44
|
-
toolTip = "",
|
|
45
|
-
marginTop = -1,
|
|
46
|
-
marginBottom,
|
|
47
|
-
marginLeft,
|
|
48
|
-
marginRight,
|
|
49
|
-
width = 200,
|
|
50
|
-
withBadge = false,
|
|
51
|
-
badgeContent,
|
|
52
|
-
arrowType = "right-top",
|
|
53
|
-
externalOpen = null,
|
|
54
|
-
externalClose,
|
|
55
|
-
...other
|
|
56
|
-
} = props;
|
|
57
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
58
|
-
const { getLabel } = useModuleDictionary();
|
|
59
|
-
const [open, setOpen] = useState(null);
|
|
60
|
-
const handleOpen = (event) => {
|
|
61
|
-
setOpen(event.currentTarget);
|
|
62
|
-
};
|
|
63
|
-
const theme = useTheme();
|
|
64
|
-
const classes = useMenuActionsUtilityClasses();
|
|
65
|
-
useEffect(() => {
|
|
66
|
-
let mounted = true;
|
|
67
|
-
if (mounted) {
|
|
68
|
-
setOpen(externalOpen);
|
|
69
|
-
}
|
|
70
|
-
return function cleanUp() {
|
|
71
|
-
mounted = false;
|
|
72
|
-
};
|
|
73
|
-
}, [externalOpen]);
|
|
74
|
-
const urlFinalIcon = useMemo(() => {
|
|
75
|
-
if (urlIcon) return urlIcon;
|
|
76
|
-
return `${host_static_assets}/${environment_assets}/frontend/components/menu_actions/assets/icons/${ICONS.MENU}`;
|
|
77
|
-
}, [urlIcon, host_static_assets, environment_assets]);
|
|
78
|
-
const handleClose = (e) => {
|
|
79
|
-
e.stopPropagation();
|
|
80
|
-
setOpen(null);
|
|
81
|
-
externalClose && externalClose(null);
|
|
82
|
-
};
|
|
83
|
-
const handleClick = (e, menuAction) => {
|
|
84
|
-
e.stopPropagation();
|
|
85
|
-
setOpen(null);
|
|
86
|
-
menuAction.onClick();
|
|
87
|
-
};
|
|
88
|
-
const finalActions = useMemo(() => {
|
|
89
|
-
let ret;
|
|
90
|
-
if (typeof menuActions !== "function") {
|
|
91
|
-
ret = menuActions;
|
|
92
|
-
} else {
|
|
93
|
-
ret = menuActions(objItem);
|
|
94
|
-
}
|
|
95
|
-
return ret;
|
|
96
|
-
}, [menuActions, objItem]);
|
|
97
|
-
const IconButtonElement = (
|
|
98
|
-
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
99
|
-
/* @__PURE__ */ jsx(Fragment, { children: withBadge ? /* @__PURE__ */ jsx(Badge, { badgeContent, children: /* @__PURE__ */ jsx(
|
|
100
|
-
IconButton,
|
|
101
|
-
{
|
|
102
|
-
src: urlFinalIcon,
|
|
103
|
-
onClick: handleOpen,
|
|
104
|
-
tooltip: toolTip,
|
|
105
|
-
className: iconButtonClassName
|
|
106
|
-
}
|
|
107
|
-
) }) : /* @__PURE__ */ jsx(
|
|
108
|
-
IconButton,
|
|
109
|
-
{
|
|
110
|
-
src: urlFinalIcon,
|
|
111
|
-
onClick: handleOpen,
|
|
112
|
-
tooltip: toolTip,
|
|
113
|
-
className: iconButtonClassName
|
|
114
|
-
}
|
|
115
|
-
) })
|
|
116
|
-
);
|
|
117
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
118
|
-
IconButtonElement,
|
|
119
|
-
/* @__PURE__ */ jsxs(
|
|
120
|
-
Popover,
|
|
121
|
-
{
|
|
122
|
-
id: "Popover",
|
|
123
|
-
open: Boolean(open),
|
|
124
|
-
anchorEl: open,
|
|
125
|
-
onClose: handleClose,
|
|
126
|
-
arrowType,
|
|
127
|
-
className: clsx(classes.root, className),
|
|
128
|
-
sx: {
|
|
129
|
-
marginTop,
|
|
130
|
-
marginBottom,
|
|
131
|
-
marginLeft,
|
|
132
|
-
marginRight,
|
|
133
|
-
width,
|
|
134
|
-
maxWidth: 300,
|
|
135
|
-
"& .MuiMenuItem-root": { px: 1, typography: "body2", borderRadius: 0.75 },
|
|
136
|
-
...theme.components?.M4LMenuActions?.styleOverrides,
|
|
137
|
-
...menuActionSx
|
|
138
|
-
},
|
|
139
|
-
...other,
|
|
140
|
-
children: [
|
|
141
|
-
finalActions.map((menuAction, index) => /* @__PURE__ */ jsxs(
|
|
142
|
-
MenuItem,
|
|
143
|
-
{
|
|
144
|
-
dense: true,
|
|
145
|
-
onClick: (e) => {
|
|
146
|
-
handleClick(e, menuAction);
|
|
147
|
-
},
|
|
148
|
-
sx: { color: menuAction.color ?? "text.main" },
|
|
149
|
-
disabled: menuAction.disabled,
|
|
150
|
-
className: clsx(
|
|
151
|
-
menuAction?.className,
|
|
152
|
-
menuAction.variant === "delete" && classes.itemDelete
|
|
153
|
-
),
|
|
154
|
-
children: [
|
|
155
|
-
menuAction.urlIcon ? /* @__PURE__ */ jsx(Icon, { src: menuAction.urlIcon }) : null,
|
|
156
|
-
/* @__PURE__ */ jsx(LabelMemuItem, { children: menuAction.label || menuAction.dictionaryId && getLabel(menuAction.dictionaryId) })
|
|
157
|
-
]
|
|
158
|
-
},
|
|
159
|
-
`menu_action_${index}`
|
|
160
|
-
)),
|
|
161
|
-
endListElement ? endListElement : null
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
)
|
|
165
|
-
] });
|
|
166
|
-
}
|
|
167
|
-
const MemonizedMenuActions = React__default.memo(MenuActions);
|
|
168
|
-
export {
|
|
169
|
-
MenuActions as M,
|
|
170
|
-
MemonizedMenuActions as a
|
|
171
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const WrapperMenuActions: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "style" | "disabled" | "children" | "tabIndex" | "className" | "color" | "size" | "action" | "sx" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
-
export declare const LabelMemuItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|