@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,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-C-MsxWtr.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-D6DaWBIP.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-OMq0pPK0.js";
|
|
16
|
+
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index-CTlvokQp.js";
|
|
17
|
+
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index-De7dpdBH.js";
|
|
18
|
+
import { I as Icon } from "../../../Icon/index-CueLDD9j.js";
|
|
19
|
+
import { T as Typography } from "../../../mui_extended/Typography/index-W88rbpsJ.js";
|
|
20
|
+
import { M as MFLoader } from "../../../MFLoader/index-CCtU6zwR.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-DN3ZHpBT.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-spCQnOlk.js";
|
|
27
|
+
import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index-BsKaLKRl.js";
|
|
28
|
+
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index-B7v5X9un.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-CXVOiscg.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-BwQ6EKCK.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-DfcpQwSl.js";
|
|
10
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index-Y6S0Q7TN.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-B7v5X9un.js";
|
|
14
14
|
import { debounce, cloneDeep } from "lodash";
|
|
15
|
-
import { z as isEqualLayouts } from "../../../GridLayout/index-
|
|
15
|
+
import { z as isEqualLayouts } from "../../../GridLayout/index-DUfp2sP_.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-spCQnOlk.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-C-MsxWtr.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-C-MsxWtr.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-C-MsxWtr.js";
|
|
9
|
+
import { I as Icon } from "../../Icon/index-CueLDD9j.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-D1775s1J.js";
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index-CksGG1B8.js";
|
|
14
|
+
import { P as Popover } from "../../mui_extended/Popover/index-BnKsmvtw.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-C-MsxWtr.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-Ddxe1VvL.js";
|
|
9
|
+
import { I as IconButton } from "../mui_extended/IconButton/index-OMq0pPK0.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-CueLDD9j.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-Botdzyt2.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-C-MsxWtr.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-Bc2l6GTX.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-DVV5Jfc8.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-C-MsxWtr.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-By5vsRzf.js";
|
|
12
|
+
import { T as Typography } from "../../mui_extended/Typography/index-W88rbpsJ.js";
|
|
13
|
+
import { H as HelperText } from "../../HelperText/index-DVV5Jfc8.js";
|
|
14
|
+
import { F as FieldLabel } from "../../FieldLabel/index-DCAMDJoJ.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-OMq0pPK0.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-C-MsxWtr.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-erpzYu8W.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-C-MsxWtr.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-DVV5Jfc8.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-CjxjIrmN.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-DVV5Jfc8.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-C-MsxWtr.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-DCAMDJoJ.js";
|
|
14
|
+
import { I as Icon } from "../../Icon/index-CueLDD9j.js";
|
|
15
|
+
import { P as Popover } from "../../mui_extended/Popover/index-BnKsmvtw.js";
|
|
16
|
+
import { B as Button } from "../../mui_extended/Button/index-CksGG1B8.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-C-MsxWtr.js";
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index-DVV5Jfc8.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-DCAMDJoJ.js";
|
|
15
|
+
import { I as Icon } from "../../Icon/index-CueLDD9j.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;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { an as RHFPeriodRoot } from "../../../styles/index-
|
|
2
|
+
import { an as RHFPeriodRoot } from "../../../styles/index-C-MsxWtr.js";
|
|
3
3
|
import { useFormContext, Controller } from "react-hook-form";
|
|
4
|
-
import { H as HelperText } from "../../HelperText/index-
|
|
4
|
+
import { H as HelperText } from "../../HelperText/index-DVV5Jfc8.js";
|
|
5
5
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { useModuleSkeleton } from "@m4l/core";
|
|
8
8
|
import { useFormFocus } from "../../../index.js";
|
|
9
|
-
import { F as FieldLabel } from "../../FieldLabel/index-
|
|
10
|
-
import { P as Period } from "../../Period/index-
|
|
9
|
+
import { F as FieldLabel } from "../../FieldLabel/index-DCAMDJoJ.js";
|
|
10
|
+
import { P as Period } from "../../Period/index-DtFWU3y5.js";
|
|
11
11
|
const componentName = "M4LRHFPeriod";
|
|
12
12
|
generateUtilityClasses(componentName, [
|
|
13
13
|
/* elements */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
3
|
import { RadioGroup, FormControlLabel, FormHelperText, Radio } from "@mui/material";
|
|
4
|
-
import { I as Icon } from "../../Icon/index-
|
|
4
|
+
import { I as Icon } from "../../Icon/index-CueLDD9j.js";
|
|
5
5
|
function OptionIconLabelFormatter(option, getOptionLabel, getOptionIconUrl) {
|
|
6
6
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
7
7
|
/* @__PURE__ */ jsx(
|
|
@@ -2,16 +2,16 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
|
|
4
4
|
import { forwardRef, useState, useEffect } from "react";
|
|
5
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index-
|
|
5
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index-OMq0pPK0.js";
|
|
6
6
|
import { useFormContext, Controller } from "react-hook-form";
|
|
7
|
-
import { ao as SkeletonTextFieldRoot, ap as WrapperSkeletonRHFTextField, aq as RHFTextFieldRoot, ar as RHFTextFieldPasswordRoot } from "../../../styles/index-
|
|
7
|
+
import { ao as SkeletonTextFieldRoot, ap as WrapperSkeletonRHFTextField, aq as RHFTextFieldRoot, ar as RHFTextFieldPasswordRoot } from "../../../styles/index-C-MsxWtr.js";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock-CF-669v-.js";
|
|
9
9
|
import { unstable_composeClasses } from "@mui/base";
|
|
10
10
|
import { g as getComponentUtilityClass } from "../../../utils/index-DiMrtgIu.js";
|
|
11
|
-
import { H as HelperText } from "../../HelperText/index-
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index-DVV5Jfc8.js";
|
|
12
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
13
13
|
import { useFormFocus } from "../../../index.js";
|
|
14
|
-
import { F as FieldLabel } from "../../FieldLabel/index-
|
|
14
|
+
import { F as FieldLabel } from "../../FieldLabel/index-DCAMDJoJ.js";
|
|
15
15
|
const RHFTEXTFIELD_ROOT_TEST_ID = "RHFTextFieldRoot";
|
|
16
16
|
const RHFTEXTFIELD_INPUT_TEST_ID = "RHFTextFieldInput";
|
|
17
17
|
const RHFTEXTFIELD_PREFIX = "RHFTextField";
|