@m4l/components 3.0.1 → 3.0.3
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/types.d.ts +31 -8
- package/components/AccountPopover/{index-BJWLsxYq.js → index-C1SHV3XZ.js} +3 -3
- package/components/AppBar/{index-BdA-qQyV.js → index-CpiDi7W9.js} +4 -4
- package/components/BaseModule/{index-Bl0GPyrz.js → index-C3PN52OU.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index-BlaMdPmp.js → index-GS4HJIdE.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index-C5ZI4ZPP.js → index-CX2I9LHt.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index-BbVMcr05.js → index-w0_c4nBH.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index-DGooFqVu.js → index-iGNIvcsn.js} +2 -2
- package/components/CommonActions/components/Actions/{index-B_vOmNZT.js → index-BKkqUxgb.js} +1 -1
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index-0wqcK8ML.js → index-C5oGRz2u.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index-Ozdfjlt2.js → index-D3U8qNWy.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index-D-98uXfl.js → index-BiSoxUSc.js} +1 -1
- package/components/DataGrid/formatters/{index-B5SJg0Qq.js → index-CBg-w3uZ.js} +2 -2
- package/components/DataGrid/{index-7vJWvQtu.js → index-BagYcO5M.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index-C-p5O-cU.js → index-D3XaKBc9.js} +11 -11
- package/components/DynamicFilter/{dictionary-DbRGLe8j.js → dictionary-CZftQwMz.js} +2 -2
- package/components/DynamicFilter/{index-D2CmPq_i.js → index-ZWC-ymw6.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots-BSCWv_Rw.js → dynamicFilterSlots-BJg8NW69.js} +5 -5
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicFilter/store/{index-BcaPHLdk.js → index-B8EJidMA.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index-BZAxYAp1.js → index-BxXqpZ2r.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index-DIFUGgys.js → index-BsusIn_U.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index-D5BGKd5r.js → index-BDQlXUiN.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index-DFHDm1e4.js → index-JLN5ZRhw.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index-Hn2Rzovd.js → index-BYqh8Qr6.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index-B5F1Ji7m.js → index-CjcL1o1V.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index-BQlxIk_N.js → index-tYDNVMc6.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index-DF7EGeSx.js → index-BFUVXE4A.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index-B6WQUIl7.js → index-BNi-tpG7.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index-D5edNMdo.js → index-BATOWnYB.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index-bbdBrHj0.js → index-yfPsp685.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index-CD3aGB5S.js → index-C7ntxhq7.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index-MiYNpAu0.js → index-DrgdahUr.js} +2 -2
- package/components/FieldLabel/{index-BpW2AGJx.js → index-uRWxFkWU.js} +3 -3
- package/components/GridLayout/{index-HK_hTGnZ.js → index-CRsM-v5t.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index-izY8S7ns.js → index-D7RPlp1E.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index-bpKDnaCd.js → index-uchivok8.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index-OWN-RzRq.js → index-HZgs6M75.js} +1 -1
- package/components/HelperText/{index-COWCXeJp.js → index-D2yPRkGD.js} +2 -2
- package/components/Icon/{index-CedboS6y.js → index-94Yiv115.js} +3 -3
- package/components/Image/{index-B7FhR9uF.js → index-D0wxe0iA.js} +2 -2
- package/components/LanguagePopover/{index-4kPWKmxk.js → index-BvbgbVe2.js} +4 -4
- package/components/LinearProgressIndeterminate/{index-Do7CKcow.js → index-DOKrJpZ4.js} +1 -1
- package/components/LoadingError/{index-CNh7b1ew.js → index-DbVvt8Og.js} +5 -5
- package/components/MFIsolationApp/{index-DJ-MUHoQ.js → index-CzX8pqYQ.js} +3 -3
- package/components/MFLoader/{index-Bcg9TXnJ.js → index-B4k4mKvG.js} +2 -2
- package/components/ModalDialog/{index-BuGRs967.js → index-D8uF8eMi.js} +3 -3
- package/components/NavLink/{index-B6Gmzyl0.js → index-mHY1nBUC.js} +2 -2
- package/components/NoItemSelected/{index-CMet73v_.js → index-B1BsnTIa.js} +1 -1
- package/components/ObjectLogs/{index-_8l1PbEQ.js → index-CNAZX4Ww.js} +9 -9
- package/components/PDFViewer/{index-CV9x1XKR.js → index-D_ICdj18.js} +2 -2
- package/components/Page/{index-DKQLs5le.js → index-BjeY10EA.js} +1 -1
- package/components/PaperForm/{index-DciWfnML.js → index-B1W7MP_K.js} +2 -2
- package/components/Period/{index-DxijnNw6.js → index-Dvul8haj.js} +4 -4
- package/components/PrintingSystem/{index-sSZkZbrr.js → index-B56vJjAF.js} +13 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index-CxYjxWxL.js → index-D5KO0QfW.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index-D85qi4Qz.js → index-Ba_7C2wF.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index-BA-IYLWh.js → index-BNNGCXzD.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index-Bn9eNtAi.js → index-DJkRhg7I.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index-gNEGVptD.js → index-BheH6Pxb.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index-CiVr-jBF.js → index-D10NbTfK.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index-BGbvh0Xk.js → index-eDLVQIAt.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index-DvhbyOo3.js → index-G_ggggdA.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index-Cw8ZUwsm.js → index-Ct4ZH9_9.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index-l9SFQ11V.js → index-CC3kIul5.js} +1 -1
- package/components/PropertyValue/{index-hcXIE6qk.js → index-C8XbXuPK.js} +3 -3
- package/components/Resizeable/{index-ObbOlXFx.js → index-enxKr_xx.js} +1 -1
- package/components/ScrollBar/{index-BpTjE7o3.js → index-CHwim4Ga.js} +1 -1
- package/components/SideBar/{index-Cg1bZn8y.js → index-Bi1cZIrX.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-CKvln8Em.js} +1 -1
- package/components/ToastContainer/{index-B5VGIn45.js → index-CcDbkO5x.js} +2 -2
- package/components/animate/LoadingScreen/{index-CzDq3A0i.js → index-CxwaarhX.js} +1 -1
- package/components/animate/{index-mH4o-crX.js → index-C2MciKBn.js} +1 -1
- package/components/areas/components/AreasAdmin/{index-qqSduaty.js → index-w4ZiYbUn.js} +14 -14
- package/components/areas/components/AreasViewer/{index-D5If8gFK.js → index-C_Doyhlf.js} +52 -60
- package/components/areas/contexts/AreasContext/{index-Dyj8tCdG.js → index-BhgVSihv.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-D9svmsAV.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-C2XuD_Di.js} +1 -1
- package/components/commercial/SectionCommercial/{index-CLHGooDg.js → index-CQ909EmI.js} +1 -1
- package/components/commercial/TopBar/{index-DJNYXgHq.js → index-C3oRupMz.js} +5 -5
- package/components/commercial/{index-BLUHQfcA.js → index-D8V8uETc.js} +3 -3
- package/components/formatters/BooleanFormatter/{index-DpF0x_xp.js → index-Cgmuw-1G.js} +2 -2
- package/components/formatters/{index-CDt8LzvL.js → index-D52mbpAz.js} +2 -2
- package/components/hook-form/HelperError/{index-D-_czK9n.js → index-B6yzmaGZ.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index-BhbgwNUz.js → index-BAUo34ue.js} +6 -6
- package/components/hook-form/RHFAutocompleteAsync/{index-BnUgdSnR.js → index-C7qy6PHH.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index-ubHFuH1F.js → index-Dmsakuyn.js} +3 -3
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/{index-DBpi0Zhe.js → index-DCTeXEXx.js} +6 -6
- package/components/hook-form/RHFDateTime/{index-BtfOlX4T.js → index-Cn5PXhkh.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-BeUY33Fb.js} +4 -4
- package/components/hook-form/RHFRadioGroup/{index-Di37rp0B.js → index-DCq9ErFn.js} +1 -1
- package/components/hook-form/RHFTextField/{index-Cz7BMTLe.js → index-BcOjGk_X.js} +4 -4
- package/components/hook-form/RHFUpload/{index-D52JNxDh.js → index-B9Yv-1cI.js} +5 -5
- package/components/maps/components/GpsTools/{index-BP1dIwh6.js → index-CPthTXb6.js} +22 -22
- package/components/maps/components/Map/{index-CS6xr1Fl.js → index-h_YuCA40.js} +12 -12
- package/components/modal/{WindowBase-CLBER1xc.js → WindowBase-CbvNt18-.js} +3 -3
- package/components/modal/{WindowConfirm-DraflAKP.js → WindowConfirm-BcBjlBYB.js} +6 -6
- package/components/mui_extended/Accordion/{index-ZFpEUCnw.js → index-CImLE2c2.js} +4 -4
- package/components/mui_extended/Avatar/{index-Bk4Hq2nk.js → index-QcHxAObO.js} +1 -1
- package/components/mui_extended/Badge/{index-D6F1o3k2.js → index-CkxVcDch.js} +1 -1
- package/components/mui_extended/Button/{index-DlzpoczE.js → index-CeKWngaw.js} +3 -3
- package/components/mui_extended/Button/styles.d.ts +1 -1
- package/components/mui_extended/{CheckBox-ByxYagHV.js → CheckBox-D4lOF2ZN.js} +2 -2
- package/components/mui_extended/IconButton/{index-BfDbi0cC.js → index-8KJAFQdk.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-DUH9jcY3.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-CPojTM6X.js} +4 -4
- package/components/mui_extended/Popover/{index-C6_2t4L1.js → index-ADNJKYaU.js} +1 -1
- package/components/mui_extended/Stack/{index-CV2W-_eL.js → index-COSPZIcB.js} +1 -1
- package/components/mui_extended/Tab/{index-PyZxxeDt.js → index-DIBG_fln.js} +1 -1
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/ToggleButton/{index-X6htsgfF.js → index-iPblHkXQ.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index-mT-xXWg9.js → index-C-84m9IF.js} +1 -1
- package/components/mui_extended/Typography/{index-DKPqV11f.js → index-DdbNIn5v.js} +1 -1
- package/components/popups/PopupsViewer/{index-D8iTb2JJ.js → index-CZGtpMc5.js} +3 -3
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots-DEQAZ8fq.js → popupsViewerSlots-a4Hanx4W.js} +1 -1
- package/contexts/ModalContext/{index-CMPcjPCy.js → index-5DJdcEm0.js} +1 -1
- package/contexts/RHFormContext/{index-B4a0h0fX.js → index-D-Aek3pv.js} +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/useFormAddEdit/{index-DvRNtaub.js → index-DfH0uOq9.js} +2 -2
- package/hooks/useInterval/index.d.ts +7 -0
- package/hooks/useModal/{index-C9r1LQIz.js → index-CHufWxiG.js} +1 -1
- package/hooks/useTab/{index-DTbLh_DH.js → index-B9UPdit5.js} +1 -1
- package/index.js +114 -93
- package/package.json +1 -1
- package/style.css +65 -1
- package/styles/MenuActions.styles.d.ts +2 -0
- package/styles/{index-Cc9p_h7i.js → index-DITv2ClE.js} +49 -19
- 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,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index-
|
|
2
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index-D9svmsAV.js";
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { useState, useRef, useMemo } from "react";
|
|
5
5
|
import * as Yup from "yup";
|
|
@@ -10,22 +10,22 @@ import { g as getComponentUtilityClass } from "../../../../utils/index-DiMrtgIu.
|
|
|
10
10
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants-rqODZNZe.js";
|
|
11
11
|
import { I as ICONS } from "../../icons-CwFr-alN.js";
|
|
12
12
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary-YUsP9beq.js";
|
|
13
|
-
import { a6 as EditAreaHeader, a7 as AreasAdminRoot } from "../../../../styles/index-
|
|
13
|
+
import { a6 as EditAreaHeader, a7 as AreasAdminRoot } from "../../../../styles/index-DITv2ClE.js";
|
|
14
14
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
15
15
|
import { shallow } from "zustand/shallow";
|
|
16
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index-
|
|
17
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index-
|
|
18
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index-
|
|
19
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index-
|
|
20
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index-
|
|
21
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index-
|
|
22
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index-
|
|
23
|
-
import { P as Popover } from "../../../mui_extended/Popover/index-
|
|
24
|
-
import { T as Typography } from "../../../mui_extended/Typography/index-
|
|
25
|
-
import { S as ScrollBar } from "../../../ScrollBar/index-
|
|
16
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index-DUH9jcY3.js";
|
|
17
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index-D-Aek3pv.js";
|
|
18
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index-BcOjGk_X.js";
|
|
19
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index-BKkqUxgb.js";
|
|
20
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index-GS4HJIdE.js";
|
|
21
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index-iGNIvcsn.js";
|
|
22
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index-8KJAFQdk.js";
|
|
23
|
+
import { P as Popover } from "../../../mui_extended/Popover/index-ADNJKYaU.js";
|
|
24
|
+
import { T as Typography } from "../../../mui_extended/Typography/index-DdbNIn5v.js";
|
|
25
|
+
import { S as ScrollBar } from "../../../ScrollBar/index-CHwim4Ga.js";
|
|
26
26
|
import TouchRipple from "@mui/material/ButtonBase/TouchRipple";
|
|
27
|
-
import { B as Button } from "../../../mui_extended/Button/index-
|
|
28
|
-
import { I as Icon } from "../../../Icon/index-
|
|
27
|
+
import { B as Button } from "../../../mui_extended/Button/index-CeKWngaw.js";
|
|
28
|
+
import { I as Icon } from "../../../Icon/index-94Yiv115.js";
|
|
29
29
|
import { u as useOnClickOutside } from "../../index-B_Odny9h.js";
|
|
30
30
|
const areasAdminClasses = generateUtilityClasses(
|
|
31
31
|
AREAS_ADMIN_CLASS_NAME,
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { a8 as WindowRoot, a9 as WrapperWindowModal, aa as AreasViewerRoot } from "../../../../styles/index-
|
|
2
|
+
import { a8 as WindowRoot, a9 as WrapperWindowModal, aa as AreasViewerRoot } from "../../../../styles/index-DITv2ClE.js";
|
|
3
3
|
import { shallow } from "zustand/shallow";
|
|
4
4
|
import React__default, { useMemo, useEffect } from "react";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index-
|
|
6
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index-D9svmsAV.js";
|
|
7
7
|
import { generateUtilityClasses, Skeleton } from "@mui/material";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
9
|
import { g as getComponentUtilityClass } from "../../../../utils/index-DiMrtgIu.js";
|
|
10
10
|
import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants-rqODZNZe.js";
|
|
11
11
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
12
|
-
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index-CUz70BPj.js";
|
|
13
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
13
|
import { I as ICONS } from "../../icons-CwFr-alN.js";
|
|
15
14
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary-YUsP9beq.js";
|
|
16
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index-
|
|
17
|
-
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
15
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index-8KJAFQdk.js";
|
|
16
|
+
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index-DOKrJpZ4.js";
|
|
17
|
+
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index-DUH9jcY3.js";
|
|
18
|
+
import { I as Icon } from "../../../Icon/index-94Yiv115.js";
|
|
19
|
+
import { T as Typography } from "../../../mui_extended/Typography/index-DdbNIn5v.js";
|
|
20
|
+
import { M as MFLoader } from "../../../MFLoader/index-B4k4mKvG.js";
|
|
21
21
|
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index-DkE30fhm.js";
|
|
22
22
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index-22c6E7vK.js";
|
|
23
23
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock-CF-669v-.js";
|
|
24
24
|
import { g as getNameDataTestId } from "../../../../test/getNameDataTestId-BaBTWhBr.js";
|
|
25
|
-
import { c as createToaster, T as ToastContainer } from "../../../ToastContainer/index-
|
|
26
|
-
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index-
|
|
27
|
-
import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index-
|
|
28
|
-
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index-
|
|
25
|
+
import { c as createToaster, T as ToastContainer } from "../../../ToastContainer/index-CcDbkO5x.js";
|
|
26
|
+
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index-BhgVSihv.js";
|
|
27
|
+
import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index-HZgs6M75.js";
|
|
28
|
+
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index-uchivok8.js";
|
|
29
29
|
import { useLocation } from "react-router-dom";
|
|
30
|
-
import { L as LoadingError } from "../../../LoadingError/index-
|
|
30
|
+
import { L as LoadingError } from "../../../LoadingError/index-DbVvt8Og.js";
|
|
31
31
|
import { a as Draggable } from "../../../../react-draggable-DsCPdgQP.js";
|
|
32
|
-
import { R as ResizeableWindow } from "../../../Resizeable/index-
|
|
32
|
+
import { R as ResizeableWindow } from "../../../Resizeable/index-enxKr_xx.js";
|
|
33
33
|
const areasViewerClasses = generateUtilityClasses(
|
|
34
34
|
AREAS_VIEWER_CLASS_NAME,
|
|
35
35
|
[
|
|
@@ -268,7 +268,6 @@ function Header(props) {
|
|
|
268
268
|
window.version,
|
|
269
269
|
window.windowOptions,
|
|
270
270
|
window.fnQueryClose
|
|
271
|
-
// window.colapsed,
|
|
272
271
|
];
|
|
273
272
|
}, shallow);
|
|
274
273
|
const { saveModuleCookies, resetModuleCookies } = useAreasStore(
|
|
@@ -276,7 +275,7 @@ function Header(props) {
|
|
|
276
275
|
shallow
|
|
277
276
|
);
|
|
278
277
|
const maximizedId = useAreasStore((state) => state.hashAreas[areaId].maximizedId, shallow);
|
|
279
|
-
const
|
|
278
|
+
const collapsed = useAreasStore((state) => {
|
|
280
279
|
const currentBreakpoint = state.hashAreas[areaId].currentBreakpoint;
|
|
281
280
|
if (currentBreakpoint) {
|
|
282
281
|
return state.hashAreas[areaId].layouts[currentBreakpoint].find((li) => li.i === windowId)?.colapsed;
|
|
@@ -314,8 +313,8 @@ function Header(props) {
|
|
|
314
313
|
}
|
|
315
314
|
e.stopPropagation();
|
|
316
315
|
};
|
|
317
|
-
const
|
|
318
|
-
if (!
|
|
316
|
+
const collapsedToggle = (e) => {
|
|
317
|
+
if (!collapsed) {
|
|
319
318
|
colapseLayoutItem(areaId, windowId);
|
|
320
319
|
} else {
|
|
321
320
|
unColapseLayoutItem(areaId, windowId);
|
|
@@ -329,10 +328,10 @@ function Header(props) {
|
|
|
329
328
|
/* @__PURE__ */ jsx(LinearProgressIndeterminate, {}),
|
|
330
329
|
/* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowHeaderContent, children: [
|
|
331
330
|
/* @__PURE__ */ jsx(Icon, { src: url_icon, size: "medium" }),
|
|
332
|
-
/* @__PURE__ */ jsx(Typography, { className: areasViewerClasses.windowHeaderTitle, variant: "h5", children:
|
|
331
|
+
/* @__PURE__ */ jsx(Typography, { className: areasViewerClasses.windowHeaderTitle, variant: "h5", children: title }),
|
|
333
332
|
/* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowHeaderCancelHandle, children: [
|
|
334
|
-
!
|
|
335
|
-
!
|
|
333
|
+
!collapsed && /* @__PURE__ */ jsx(MainActions, { windowId }),
|
|
334
|
+
!collapsed && menuActions.length > 0 && /* @__PURE__ */ jsx(
|
|
336
335
|
MemonizedMenuActions,
|
|
337
336
|
{
|
|
338
337
|
arrowType: "no-arrow",
|
|
@@ -344,7 +343,7 @@ function Header(props) {
|
|
|
344
343
|
toolTip: getLabel(getAreasDictionary(DICCTIONARY.label_module_actions))
|
|
345
344
|
}
|
|
346
345
|
),
|
|
347
|
-
!
|
|
346
|
+
!collapsed && (emergeType === "layout" || emergeType === "popup") && /* @__PURE__ */ jsx(
|
|
348
347
|
IconButton,
|
|
349
348
|
{
|
|
350
349
|
className: "m4l_draggableCancel",
|
|
@@ -362,12 +361,12 @@ function Header(props) {
|
|
|
362
361
|
IconButton,
|
|
363
362
|
{
|
|
364
363
|
className: "m4l_draggableCancel",
|
|
365
|
-
onClick:
|
|
364
|
+
onClick: collapsedToggle,
|
|
366
365
|
"aria-label": "click",
|
|
367
|
-
src: !
|
|
366
|
+
src: !collapsed ? `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.COLAPSE}` : `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.UNCOLPASE}`,
|
|
368
367
|
tooltip: getLabel(
|
|
369
368
|
getAreasDictionary(
|
|
370
|
-
!
|
|
369
|
+
!collapsed ? DICCTIONARY.label_collapse_window : DICCTIONARY.label_uncollapse_window
|
|
371
370
|
)
|
|
372
371
|
)
|
|
373
372
|
}
|
|
@@ -426,7 +425,8 @@ const Window = (props) => {
|
|
|
426
425
|
close,
|
|
427
426
|
startProgress,
|
|
428
427
|
stopProgress,
|
|
429
|
-
setFnQueryClose
|
|
428
|
+
setFnQueryClose,
|
|
429
|
+
setWindowTitle
|
|
430
430
|
} = useAreasStore((state) => state.windowActions, shallow);
|
|
431
431
|
const { selectLayout } = useAreasStore((state) => state.areaActions, shallow);
|
|
432
432
|
const { loadCookiesFromApi } = useAreasStore((state) => state.windowActions, shallow);
|
|
@@ -452,7 +452,8 @@ const Window = (props) => {
|
|
|
452
452
|
setFnQueryClose: (fnQueryClose) => {
|
|
453
453
|
setFnQueryClose(windowId, fnQueryClose);
|
|
454
454
|
},
|
|
455
|
-
toast: createToaster(windowId)
|
|
455
|
+
toast: createToaster(windowId),
|
|
456
|
+
setWindowTitle: (title) => setWindowTitle(windowId, title)
|
|
456
457
|
}),
|
|
457
458
|
[]
|
|
458
459
|
);
|
|
@@ -486,39 +487,30 @@ const Window = (props) => {
|
|
|
486
487
|
children: /* @__PURE__ */ jsxs("div", { className: areasViewerClasses.windowRootContainer, children: [
|
|
487
488
|
/* @__PURE__ */ jsx(Header, { areaId, windowId, emergeType }),
|
|
488
489
|
/* @__PURE__ */ jsx(ToastContainer, { fixed: false, position: "top-center", containerId: windowId }),
|
|
489
|
-
/* @__PURE__ */ jsxs(
|
|
490
|
-
"
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
moduleId,
|
|
514
|
-
dynamicMFStore,
|
|
515
|
-
windowTools,
|
|
516
|
-
component
|
|
517
|
-
}
|
|
518
|
-
) : null
|
|
519
|
-
]
|
|
520
|
-
}
|
|
521
|
-
)
|
|
490
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(areasViewerClasses.windowContent), children: [
|
|
491
|
+
status === "init" ? (
|
|
492
|
+
/* validar uso */
|
|
493
|
+
/* Todo: Validar agregar nuevo componente de carga. */
|
|
494
|
+
/* @__PURE__ */ jsx(Fragment, { children: "Cargando..." })
|
|
495
|
+
) : null,
|
|
496
|
+
status === "loaded" ? winType === "microfrontend" ? /* @__PURE__ */ jsx(
|
|
497
|
+
MemonizedMicroFrontend,
|
|
498
|
+
{
|
|
499
|
+
moduleId,
|
|
500
|
+
dynamicMFStore,
|
|
501
|
+
windowTools,
|
|
502
|
+
...mfProps
|
|
503
|
+
}
|
|
504
|
+
) : /* @__PURE__ */ jsx(
|
|
505
|
+
Component,
|
|
506
|
+
{
|
|
507
|
+
moduleId,
|
|
508
|
+
dynamicMFStore,
|
|
509
|
+
windowTools,
|
|
510
|
+
component
|
|
511
|
+
}
|
|
512
|
+
) : null
|
|
513
|
+
] })
|
|
522
514
|
] })
|
|
523
515
|
}
|
|
524
516
|
);
|
|
@@ -6,13 +6,13 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
6
6
|
import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
|
|
7
7
|
import { devtools } from "zustand/middleware";
|
|
8
8
|
import { immer } from "zustand/middleware/immer";
|
|
9
|
-
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index-
|
|
10
|
-
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index-
|
|
9
|
+
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index-C_Doyhlf.js";
|
|
10
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index-w4ZiYbUn.js";
|
|
11
11
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index-22c6E7vK.js";
|
|
12
12
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary-YUsP9beq.js";
|
|
13
|
-
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index-
|
|
13
|
+
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index-uchivok8.js";
|
|
14
14
|
import { debounce, cloneDeep } from "lodash";
|
|
15
|
-
import { z as isEqualLayouts } from "../../../GridLayout/index-
|
|
15
|
+
import { z as isEqualLayouts } from "../../../GridLayout/index-CRsM-v5t.js";
|
|
16
16
|
const PADDING_GRIDLAYOUT = 11;
|
|
17
17
|
const MARGIN_GRIDLAYOUT = 11;
|
|
18
18
|
const DEBOUCED_SAVE_TIME = 500;
|
|
@@ -369,7 +369,7 @@ const createAreasStore = (initProps) => {
|
|
|
369
369
|
},
|
|
370
370
|
addLayout: (areaId, windowId, newWindowProps) => {
|
|
371
371
|
let previousId = windowId;
|
|
372
|
-
const freeMove = newWindowProps.emergeType === "popup"
|
|
372
|
+
const freeMove = newWindowProps.emergeType === "popup";
|
|
373
373
|
const newLayoutItem = {
|
|
374
374
|
...newWindowProps.layoutProps,
|
|
375
375
|
i: windowId,
|
|
@@ -1007,6 +1007,11 @@ const createAreasStore = (initProps) => {
|
|
|
1007
1007
|
set((state) => {
|
|
1008
1008
|
state.hashWindows[windowId].fnQueryClose = fnQueryClose;
|
|
1009
1009
|
});
|
|
1010
|
+
},
|
|
1011
|
+
setWindowTitle: (windowId, title) => {
|
|
1012
|
+
set((state) => {
|
|
1013
|
+
state.hashWindows[windowId].title = title;
|
|
1014
|
+
});
|
|
1010
1015
|
}
|
|
1011
1016
|
},
|
|
1012
1017
|
areaAdminActions: {
|
|
@@ -205,6 +205,7 @@ export interface AreasStateWithActions extends AreasState {
|
|
|
205
205
|
saveModuleCookies: (windowId: string) => void;
|
|
206
206
|
resetModuleCookies: (windowId: string) => void;
|
|
207
207
|
setFnQueryClose: (windowId: string, fnQueryClose: () => void) => void;
|
|
208
|
+
setWindowTitle: (windowId: string, title: string) => void;
|
|
208
209
|
};
|
|
209
210
|
areaAdminActions: {
|
|
210
211
|
setFocus: (value: boolean) => void;
|
|
@@ -57,6 +57,11 @@ export interface WindowToolsMF {
|
|
|
57
57
|
* @param fnQueryClose La función de consulta de cierre de la ventana que se desea establecer.
|
|
58
58
|
*/
|
|
59
59
|
setFnQueryClose: (fnQueryClose: () => void) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Método para setear el titulo de la ventana y que pueda cambiar de idioma
|
|
62
|
+
* @param {string} title Titulo que se visulizará en la ventana del módulo
|
|
63
|
+
*/
|
|
64
|
+
setWindowTitle: (title: string) => void;
|
|
60
65
|
}
|
|
61
66
|
/**
|
|
62
67
|
* Props del componente WindowToolsMFProvider que incluyen las herramientas de ventana proporcionadas por la interfaz WindowToolsMF.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import { b as AreasContext } from "../../contexts/AreasContext/index-
|
|
3
|
+
import { b as AreasContext } from "../../contexts/AreasContext/index-BhgVSihv.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context) throw new Error("useAreasStore context must be use inside AreasContext");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useSetWindowsTitle';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { shallow } from "zustand/shallow";
|
|
3
|
+
import { useFlagsPresent, CommonFlags, useModuleDictionary } from "@m4l/core";
|
|
4
|
+
import { u as useWindowToolsMF } from "../useWindowToolsMF/index-BECQfhbC.js";
|
|
5
|
+
import { u as useDynamicMFParametersStore } from "../useDynamicMFParameters/index-DhbcZPs9.js";
|
|
6
|
+
const titleLabels = {
|
|
7
|
+
moduleName: "module_name",
|
|
8
|
+
moduleNameAdd: "module_name_add",
|
|
9
|
+
moduleNameEdit: "module_name_edit"
|
|
10
|
+
};
|
|
11
|
+
function useSetWindowsTitle({
|
|
12
|
+
isAddEditModule = false
|
|
13
|
+
} = {}) {
|
|
14
|
+
const isFlagPresent = useFlagsPresent([CommonFlags.FLAG_DICTIONARY_LOADED]);
|
|
15
|
+
const { getLabel } = useModuleDictionary();
|
|
16
|
+
const { setWindowTitle } = useWindowToolsMF();
|
|
17
|
+
const id = useDynamicMFParametersStore(
|
|
18
|
+
// objectId or id puede ser el nombre del parametro del con el Id que se está editando en los modulos add/edit
|
|
19
|
+
(state) => state.dynamicMFParameters?.objectId || state.dynamicMFParameters?.id,
|
|
20
|
+
shallow
|
|
21
|
+
);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
if (isFlagPresent) {
|
|
24
|
+
const labelKey = isAddEditModule ? id ? titleLabels.moduleNameEdit : titleLabels.moduleNameAdd : titleLabels.moduleName;
|
|
25
|
+
setWindowTitle(getLabel(labelKey));
|
|
26
|
+
}
|
|
27
|
+
}, [getLabel, isFlagPresent]);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
useSetWindowsTitle as u
|
|
31
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { generateUtilityClasses } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
4
|
import { g as getComponentUtilityClass } from "../../../utils/index-DiMrtgIu.js";
|
|
5
|
-
import { ab as AppBarComercialRoot } from "../../../styles/index-
|
|
5
|
+
import { ab as AppBarComercialRoot } from "../../../styles/index-DITv2ClE.js";
|
|
6
6
|
const componentName = "M4LAppBarCommercial";
|
|
7
7
|
generateUtilityClasses(
|
|
8
8
|
componentName,
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { generateUtilityClasses } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
4
|
import { g as getComponentUtilityClass } from "../../../utils/index-DiMrtgIu.js";
|
|
5
|
-
import { ac as SectionCommercialRoot } from "../../../styles/index-
|
|
5
|
+
import { ac as SectionCommercialRoot } from "../../../styles/index-DITv2ClE.js";
|
|
6
6
|
const componentName = "M4LSectionCommercial";
|
|
7
7
|
generateUtilityClasses(
|
|
8
8
|
componentName,
|
|
@@ -5,13 +5,13 @@ import { unstable_composeClasses } from "@mui/base";
|
|
|
5
5
|
import { g as getComponentUtilityClass } from "../../../utils/index-DiMrtgIu.js";
|
|
6
6
|
import { createContext, useContext, useState } from "react";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
|
-
import { ad as ArrowIconRoot } from "../../../styles/index-
|
|
9
|
-
import { I as Icon } from "../../Icon/index-
|
|
8
|
+
import { ad as ArrowIconRoot } from "../../../styles/index-DITv2ClE.js";
|
|
9
|
+
import { I as Icon } from "../../Icon/index-94Yiv115.js";
|
|
10
10
|
import clsx from "clsx";
|
|
11
11
|
import { g as getNameDataTestId } from "../../../test/getNameDataTestId-BaBTWhBr.js";
|
|
12
|
-
import { A as Accordion } from "../../mui_extended/Accordion/index-
|
|
13
|
-
import { B as Button } from "../../mui_extended/Button/index-
|
|
14
|
-
import { P as Popover } from "../../mui_extended/Popover/index-
|
|
12
|
+
import { A as Accordion } from "../../mui_extended/Accordion/index-CImLE2c2.js";
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index-CeKWngaw.js";
|
|
14
|
+
import { P as Popover } from "../../mui_extended/Popover/index-ADNJKYaU.js";
|
|
15
15
|
const componentName = "M4LTopBar";
|
|
16
16
|
const TopBarClasses = generateUtilityClasses(componentName, [
|
|
17
17
|
/* elements */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { ae as HamburgerMenuRoot } from "../../styles/index-
|
|
3
|
+
import { ae as HamburgerMenuRoot } from "../../styles/index-DITv2ClE.js";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock-CF-669v-.js";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
|
-
import { S as SideBar } from "../SideBar/index-
|
|
9
|
-
import { I as IconButton } from "../mui_extended/IconButton/index-
|
|
8
|
+
import { S as SideBar } from "../SideBar/index-Bi1cZIrX.js";
|
|
9
|
+
import { I as IconButton } from "../mui_extended/IconButton/index-8KJAFQdk.js";
|
|
10
10
|
const componentName = "M4LHamburgerMenuCommercial";
|
|
11
11
|
generateUtilityClasses(componentName, ["root", "ImageLogo"]);
|
|
12
12
|
function getHamburgerMenuComercialClassesUtilityClass(slot) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
|
-
import { I as Icon } from "../../Icon/index-
|
|
4
|
+
import { I as Icon } from "../../Icon/index-94Yiv115.js";
|
|
5
5
|
import { W as WrapperComponent } from "../../WrapperComponent/index-BHV-CsDU.js";
|
|
6
|
-
import { F as FormatterRoot, f as formatterClasses } from "../index-
|
|
6
|
+
import { F as FormatterRoot, f as formatterClasses } from "../index-D52mbpAz.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
const BOOLEAN_FORMATTER_DICTIONARY_KEY = `boolean_formatter`;
|
|
9
9
|
const LABEL_BOOLEAN_YES = `${BOOLEAN_FORMATTER_DICTIONARY_KEY}.boolean_yes`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { generateUtilityClasses } from "@mui/material";
|
|
3
3
|
import "@mui/base";
|
|
4
|
-
import { af as FormatterRootContainer } from "../../styles/index-
|
|
4
|
+
import { af as FormatterRootContainer } from "../../styles/index-DITv2ClE.js";
|
|
5
5
|
import { W as WrapperComponent } from "../WrapperComponent/index-BHV-CsDU.js";
|
|
6
6
|
import { useModuleDictionary } from "@m4l/core";
|
|
7
|
-
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index-
|
|
7
|
+
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index-Cgmuw-1G.js";
|
|
8
8
|
const COMPONENT_CLASS_NAME = "M4LFormatter";
|
|
9
9
|
const formatterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
10
10
|
/* elements */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useFormContext, useController } from "react-hook-form";
|
|
3
|
-
import { H as HelperText } from "../../HelperText/index-
|
|
3
|
+
import { H as HelperText } from "../../HelperText/index-D2yPRkGD.js";
|
|
4
4
|
function HelperError(props) {
|
|
5
5
|
const { name } = props;
|
|
6
6
|
const { control } = useFormContext();
|
|
@@ -6,14 +6,14 @@ import { generateUtilityClasses, generateUtilityClass, Skeleton, useTheme, Autoc
|
|
|
6
6
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
7
7
|
import { useFormContext, Controller } from "react-hook-form";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
|
-
import { ag as WrapperOption, ah as AutocompleteRoot } from "../../../styles/index-
|
|
9
|
+
import { ag as WrapperOption, ah as AutocompleteRoot } from "../../../styles/index-DITv2ClE.js";
|
|
10
10
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
|
|
11
|
-
import { I as Image } from "../../Image/index-
|
|
12
|
-
import { T as Typography } from "../../mui_extended/Typography/index-
|
|
13
|
-
import { H as HelperText } from "../../HelperText/index-
|
|
14
|
-
import { F as FieldLabel } from "../../FieldLabel/index-
|
|
11
|
+
import { I as Image } from "../../Image/index-D0wxe0iA.js";
|
|
12
|
+
import { T as Typography } from "../../mui_extended/Typography/index-DdbNIn5v.js";
|
|
13
|
+
import { H as HelperText } from "../../HelperText/index-D2yPRkGD.js";
|
|
14
|
+
import { F as FieldLabel } from "../../FieldLabel/index-uRWxFkWU.js";
|
|
15
15
|
import { C as CircularProgress } from "../../mui_extended/CircularProgress/index-Bnnti_G6.js";
|
|
16
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index-
|
|
16
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index-8KJAFQdk.js";
|
|
17
17
|
const componentName = "M4LRHFAutocomplete";
|
|
18
18
|
generateUtilityClasses(
|
|
19
19
|
componentName,
|
|
@@ -4,9 +4,9 @@ import { useState, useCallback, useEffect } from "react";
|
|
|
4
4
|
import debounce from "lodash/debounce";
|
|
5
5
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
-
import { ai as RHFAutocompleteAsyncRoot } from "../../../styles/index-
|
|
7
|
+
import { ai as RHFAutocompleteAsyncRoot } from "../../../styles/index-DITv2ClE.js";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
|
|
9
|
-
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index-
|
|
9
|
+
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index-BAUo34ue.js";
|
|
10
10
|
const componentName = "M4LRHFAutocompleteAsync";
|
|
11
11
|
generateUtilityClasses(
|
|
12
12
|
componentName,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
-
import { aj as RHFCheckboxRoot, ak as ContainerCheckTypography } from "../../../styles/index-
|
|
3
|
+
import { aj as RHFCheckboxRoot, ak as ContainerCheckTypography } from "../../../styles/index-DITv2ClE.js";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { H as HelperText } from "../../HelperText/index-
|
|
6
|
+
import { H as HelperText } from "../../HelperText/index-D2yPRkGD.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
|
|
8
8
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
9
9
|
import { useModuleSkeleton } from "@m4l/core";
|
|
10
10
|
import { useFormFocus } from "../../../index.js";
|
|
11
|
-
import { C as CheckBox } from "../../mui_extended/CheckBox-
|
|
11
|
+
import { C as CheckBox } from "../../mui_extended/CheckBox-D4lOF2ZN.js";
|
|
12
12
|
generateUtilityClasses("M4LRHFCheckbox", [
|
|
13
13
|
/* elements */
|
|
14
14
|
"root",
|
|
@@ -3,5 +3,5 @@ export declare const RHFCheckboxRoot: import("@emotion/styled").StyledComponent<
|
|
|
3
3
|
export declare const WrapperSKTRHFCheckbox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
4
|
export declare const SKTCheckSkeleton: import("@emotion/styled").StyledComponent<import("@mui/material").SkeletonOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
5
5
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
6
|
-
}, "style" | "children" | "width" | "className" | "height" | "animation" | "
|
|
6
|
+
}, "style" | "children" | "width" | "className" | "height" | "animation" | "sx" | "classes" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
7
7
|
export declare const ContainerCheckTypography: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -3,17 +3,17 @@ import { useState } from "react";
|
|
|
3
3
|
import { useFormContext, useWatch, Controller } from "react-hook-form";
|
|
4
4
|
import { useModuleSkeleton, useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
5
5
|
import { SketchPicker } from "react-color";
|
|
6
|
-
import { H as HelperText } from "../../HelperText/index-
|
|
6
|
+
import { H as HelperText } from "../../HelperText/index-D2yPRkGD.js";
|
|
7
7
|
import { generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
|
-
import { al as RHFColorPickerRoot } from "../../../styles/index-
|
|
9
|
+
import { al as RHFColorPickerRoot } from "../../../styles/index-DITv2ClE.js";
|
|
10
10
|
import { useTheme } from "@mui/material/styles";
|
|
11
11
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
12
12
|
import { useFormFocus } from "../../../index.js";
|
|
13
|
-
import { F as FieldLabel } from "../../FieldLabel/index-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { B as Button } from "../../mui_extended/Button/index-
|
|
13
|
+
import { F as FieldLabel } from "../../FieldLabel/index-uRWxFkWU.js";
|
|
14
|
+
import { I as Icon } from "../../Icon/index-94Yiv115.js";
|
|
15
|
+
import { P as Popover } from "../../mui_extended/Popover/index-ADNJKYaU.js";
|
|
16
|
+
import { B as Button } from "../../mui_extended/Button/index-CeKWngaw.js";
|
|
17
17
|
const componentName = "M4LRHFColorPicker";
|
|
18
18
|
const colorPickerClasses = generateUtilityClasses(componentName, [
|
|
19
19
|
/* elements */
|
|
@@ -7,12 +7,12 @@ import { useFormatter, useResponsiveDesktop } from "@m4l/graphics";
|
|
|
7
7
|
import { useState, useEffect } from "react";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
9
|
import clsx from "clsx";
|
|
10
|
-
import { am as RHFDateTimeRoot } from "../../../styles/index-
|
|
11
|
-
import { H as HelperText } from "../../HelperText/index-
|
|
10
|
+
import { am as RHFDateTimeRoot } from "../../../styles/index-DITv2ClE.js";
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index-D2yPRkGD.js";
|
|
12
12
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
|
|
13
13
|
import { useFormFocus } from "../../../index.js";
|
|
14
|
-
import { F as FieldLabel } from "../../FieldLabel/index-
|
|
15
|
-
import { I as Icon } from "../../Icon/index-
|
|
14
|
+
import { F as FieldLabel } from "../../FieldLabel/index-uRWxFkWU.js";
|
|
15
|
+
import { I as Icon } from "../../Icon/index-94Yiv115.js";
|
|
16
16
|
const SkeletonRHFDateTime = (props) => {
|
|
17
17
|
const { skeletonWidth, skeletonHeight, className, label } = props;
|
|
18
18
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RHF_INPUTNUMBER_SPINNER_KEY_COMPONENT = "M4LRHFInputNumberSpinner";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
3
|
+
import { RHFInputNumberSpinnerSlots } from './slots/RHFInputNumberSpinnnerEnum';
|
|
4
|
+
import { RHF_INPUTNUMBER_SPINNER_KEY_COMPONENT } from './constants';
|
|
5
|
+
import { TextFieldProps } from '@mui/material';
|
|
6
|
+
export interface RHFInputNumberSpinnerProps extends Omit<TextFieldProps, 'variant' | 'onChange'> {
|
|
7
|
+
steps: number;
|
|
8
|
+
maxLength: number;
|
|
9
|
+
valueType: 'pt' | '%';
|
|
10
|
+
onChange?: (value: number) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface OwnerState {
|
|
13
|
+
/**
|
|
14
|
+
* Variable para el cambio a error
|
|
15
|
+
*/
|
|
16
|
+
isValid?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface RHFInputNumberSpinnerOwnerState extends RHFInputNumberSpinnerProps, OwnerState {
|
|
19
|
+
}
|
|
20
|
+
export declare type RHFInputNumberSpinnerSlotsType = keyof typeof RHFInputNumberSpinnerSlots;
|
|
21
|
+
export declare type RHFInputNumberSpinnerStyles = Partial<OverridesStyleRules<RHFInputNumberSpinnerSlots, typeof RHF_INPUTNUMBER_SPINNER_KEY_COMPONENT, Theme> | undefined> | undefined;
|