@m4l/components 0.2.25 → 0.2.26
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 +3 -0
- package/components/AccountPopover/{index.505e278a.js → index.e31fc908.js} +2 -2
- package/components/AppBar/{index.7106417d.js → index.4945897e.js} +3 -4
- package/components/CommonActions/components/ActionCancel/{index.de862adf.js → index.33a748be.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.3fd5c858.js → index.9a965204.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.07394f62.js → index.7add0125.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.79fc2386.js → index.ac7cd0ee.js} +2 -2
- package/components/CommonActions/components/Actions/{index.2f6286eb.js → index.389f9b28.js} +1 -2
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.36270dd1.js → index.f731d23f.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.8b008692.js → index.ad82747c.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.cb308086.js → index.64854fdd.js} +1 -1
- package/components/DataGrid/formatters/ColumnPointsFormatter/{index.f3d6036f.js → index.4335c26b.js} +1 -1
- package/components/DataGrid/{index.b1eafce1.js → index.1c695ed3.js} +4 -5
- package/components/DataGrid/subcomponents/Actions/{index.9af87fa1.js → index.4a402633.js} +11 -12
- package/components/DataGrid/subcomponents/editors/TextEditor/{index.91380a55.js → index.eac1749c.js} +12 -1
- package/components/DragResizeWindow/{index.051c743d.js → index.f84451f8.js} +2 -3
- package/components/DynamicFilter/{index.b93e5649.js → index.22ba3195.js} +16 -16
- package/components/FieldLabel/FieldLabel.d.ts +2 -0
- package/components/FieldLabel/classes/constants.d.ts +1 -0
- package/components/FieldLabel/classes/index.d.ts +10 -0
- package/components/FieldLabel/classes/types.d.ts +11 -0
- package/components/FieldLabel/index.1da2a28d.js +82 -0
- package/components/FieldLabel/index.d.ts +1 -0
- package/components/FieldLabel/types.d.ts +8 -0
- package/components/HamburgerMenu/{index.25029e23.js → index.1663edef.js} +2 -2
- package/components/Icon/{index.b920baf8.js → index.8c744412.js} +1 -1
- package/components/Image/{index.d034ca68.js → index.39b3b9d9.js} +3 -4
- package/components/LanguagePopover/{index.e54c5cc7.js → index.80896e49.js} +3 -3
- package/components/LoadingError/{index.123e16f8.js → index.9c64680a.js} +2 -2
- package/components/MFLoader/{index.52096ea5.js → index.7cd7c372.js} +1 -1
- package/components/ModalDialog/{index.2e931b5f.js → index.ce0f4d16.js} +3 -3
- package/components/NoItemSelected/{index.1024b856.js → index.ffba558b.js} +2 -3
- package/components/ObjectLogs/{index.d10f4a2f.js → index.dd6a5009.js} +7 -8
- package/components/PDFViewer/{index.98852f91.js → index.093ddd35.js} +1 -1
- package/components/Page/{index.def863f2.js → index.1b20a73e.js} +1 -1
- package/components/PaperForm/{index.8a617a66.js → index.42e78a24.js} +2 -3
- package/components/Period/classes/index.d.ts +3 -1
- package/components/Period/classes/types.d.ts +6 -1
- package/components/Period/{index.d80dff10.js → index.6e8d92dc.js} +76 -61
- package/components/Period/subcomponents/SkeletonPeriod/index.d.ts +2 -0
- package/components/Period/subcomponents/SkeletonPeriod/types.d.ts +4 -0
- package/components/Period/types.d.ts +4 -1
- package/components/PrintingSystem/{index.2e17cae5.js → index.c2d21657.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.c5ffe20a.js → index.c7b59f3f.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.020c037c.js → index.263f02f0.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.78b023bb.js → index.f00c44f3.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.b29fc1e9.js → index.fb323704.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.11626284.js → index.1ed935be.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.ef44c8ab.js → index.5173c74a.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.d72d224b.js → index.fad64696.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.8e53440c.js → index.3a3e5fd0.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.0b66458e.js → index.2890fc12.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.b4c72fef.js → index.148708e6.js} +1 -1
- package/components/PropertyValue/{index.3b6670d4.js → index.4ea5af0f.js} +2 -3
- package/components/Resizeable/{index.0eb66c37.js → index.8db8f77d.js} +1 -1
- package/components/ScrollBar/{index.010f1b9d.js → index.7dfc2f29.js} +4 -3
- package/components/ScrollBar/index.d.ts +2 -2
- package/components/SideBar/classes/index.d.ts +7 -2
- package/components/SideBar/classes/types.d.ts +6 -1
- package/components/SideBar/constants.d.ts +2 -0
- package/components/SideBar/context/sideBarContext/types.d.ts +3 -1
- package/components/SideBar/{index.cdb70977.js → index.141dac10.js} +251 -410
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/ContentComponent/index.d.ts +1 -0
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +1 -1
- package/components/SideBar/types.d.ts +1 -4
- package/components/SplitLayout/{index.30fd5861.js → index.3856385c.js} +1 -2
- package/components/ToastContainer/{index.97fdba82.js → index.98c4873e.js} +2 -2
- package/components/areas/components/AreasAdmin/{index.e4f0ccc1.js → index.debe3e3d.js} +13 -14
- package/components/areas/components/AreasViewer/{index.f87c63ca.js → index.82a22acb.js} +9 -10
- package/components/areas/contexts/AreasContext/{index.3e3d8c62.js → index.0dc69929.js} +2 -2
- package/components/areas/hooks/useAreas/{index.b18fe111.js → index.ca15a4b6.js} +1 -1
- package/components/commercial/TopBar/{index.8e2163f7.js → index.32a332c4.js} +5 -18
- package/components/formatters/BooleanFormatter/{index.b3052107.js → index.0703a256.js} +2 -2
- package/components/formatters/PointsFormatter/{index.5c94c5e8.js → index.8a4fa393.js} +4 -4
- package/components/formatters/{index.95cc337e.js → index.94be7098.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.cf399b24.js → index.993794f8.js} +22 -11
- package/components/hook-form/RHFAutocomplete/types.d.ts +5 -6
- package/components/hook-form/RHFAutocompleteAsync/{index.b2b75475.js → index.924c6473.js} +2 -3
- package/components/hook-form/RHFCheckbox/{index.a38715e3.js → index.f1fd5789.js} +18 -8
- package/components/hook-form/RHFCheckbox/types.d.ts +2 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.d.ts +8 -0
- package/components/hook-form/RHFColorPicker/classes/index.d.ts +2 -1
- package/components/hook-form/RHFColorPicker/classes/types.d.ts +2 -0
- package/components/hook-form/RHFColorPicker/dictionary.d.ts +1 -0
- package/components/hook-form/RHFColorPicker/index.60b50052.js +188 -0
- package/components/hook-form/RHFColorPicker/index.d.ts +2 -8
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +2 -1
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/types.d.ts +3 -0
- package/components/hook-form/RHFColorPicker/types.d.ts +11 -2
- package/components/hook-form/RHFDateTime/classes/types.d.ts +2 -0
- package/components/hook-form/RHFDateTime/{index.5a673a96.js → index.2396ea4a.js} +35 -37
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/types.d.ts +3 -2
- package/components/hook-form/RHFDateTime/types.d.ts +2 -1
- package/components/hook-form/RHFPeriod/{index.4205c8ab.js → index.011965ef.js} +18 -4
- package/components/hook-form/RHFPeriod/types.d.ts +3 -1
- package/components/hook-form/RHFTextField/{index.fbb29ee1.js → index.fb0d1cac.js} +21 -12
- package/components/hook-form/RHFTextField/types.d.ts +2 -2
- package/components/hook-form/RHFTextFieldPassword/types.d.ts +0 -1
- package/components/hook-form/RHFUpload/{index.05d7e2a7.js → index.e5f734b8.js} +4 -5
- package/components/hook-form/index.d.ts +1 -1
- package/components/index.d.ts +1 -0
- package/components/modal/{WindowBase.998b8a38.js → WindowBase.dd1d2d7b.js} +3 -3
- package/components/modal/{WindowConfirm.55ac3c8f.js → WindowConfirm.4501497a.js} +6 -6
- package/components/mui_extended/Accordion/{index.fb4eb664.js → index.4393eca9.js} +2 -2
- package/components/mui_extended/Button/{index.e520bd15.js → index.93389adb.js} +1 -1
- package/components/mui_extended/CheckBox/types.d.ts +2 -1
- package/components/mui_extended/{CheckBox.e662d20c.js → CheckBox.840a443f.js} +21 -23
- package/components/mui_extended/IconButton/{index.9ea23f87.js → index.383f5496.js} +1 -1
- package/components/mui_extended/MenuActions/{index.fa7c26a5.js → index.e6e3aac8.js} +4 -5
- package/components/mui_extended/Pager/{index.0c703574.js → index.5791276c.js} +2 -3
- package/components/mui_extended/Popover/{index.b3eca6b1.js → index.d85de73b.js} +1 -2
- package/components/mui_extended/Tab/{index.409b9c74.js → index.2068925d.js} +2 -3
- package/components/mui_extended/ToggleButton/{index.bcaea74b.js → index.4ac1f974.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.131772d7.js → index.8ca0114f.js} +1 -1
- package/contexts/ModalContext/{index.978a412d.js → index.dde4e35a.js} +1 -1
- package/contexts/RHFormContext/{index.7769076a.js → index.7b2a8723.js} +1 -2
- package/hooks/useFormAddEdit/{index.4caddd24.js → index.7fdad61d.js} +2 -2
- package/hooks/useModal/{index.786a4439.js → index.2f1d6a07.js} +1 -1
- package/hooks/useTab/{index.eee18a49.js → index.c0564138.js} +1 -1
- package/index.js +118 -115
- package/{node_modules.71622512.js → node_modules.585eab0e.js} +1 -1
- package/package.json +1 -1
- package/{vendor.a735310a.js → vendor.173d0b89.js} +68 -67
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/Skeleton/types.d.ts +0 -3
- package/components/SideBar/subcomponents/ContentGroups/type.d.ts +0 -7
- package/components/hook-form/RHFColorPicker/index.48a1ee1b.js +0 -153
- package/components/mui_extended/Popover/index.d.ts +0 -2
package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ declare type CollapseButtonProps = {
|
|
|
11
11
|
* @param {VoidFunction} props.collapsed - Variable que guarda el estado de colapsado en desktop
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
|
-
export default function
|
|
14
|
+
export default function FooterSidebar(_props: CollapseButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
package/components/SideBar/subcomponents/ContentDesktop/subcomponents/ContentComponent/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ContentComponent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,8 +9,6 @@ export interface LogoConainerProps {
|
|
|
9
9
|
* Propiedades para el componente WrapperSideBar.
|
|
10
10
|
*/
|
|
11
11
|
export interface WrapperSideBarProps {
|
|
12
|
-
/** Ancho de la barra lateral.*/
|
|
13
|
-
width: string | number;
|
|
14
12
|
/** Indica si la barra lateral está visible.*/
|
|
15
13
|
visible: boolean;
|
|
16
14
|
}
|
|
@@ -47,8 +45,7 @@ export interface SideBarProps {
|
|
|
47
45
|
visible: boolean;
|
|
48
46
|
companyLogoSmallUrl?: string;
|
|
49
47
|
companyLogoNormalUrl?: string;
|
|
50
|
-
|
|
51
|
-
unCollapsedWidht?: string | number;
|
|
48
|
+
expandedWidth?: string | number;
|
|
52
49
|
companyName?: string;
|
|
53
50
|
variantStyle?: 'variantDefault' | 'variantComercial';
|
|
54
51
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { styled } from "@mui/material
|
|
2
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
1
|
+
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
3
|
import clsx from "clsx";
|
|
5
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses } from "@mui/material";
|
|
2
|
-
import { A } from "../../node_modules.
|
|
2
|
+
import { A } from "../../node_modules.585eab0e.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
|
|
6
6
|
import { useEnvironment } from "@m4l/core";
|
|
7
7
|
import { useMemo } from "react";
|
|
8
|
-
import { I as Icon } from "../Icon/index.
|
|
8
|
+
import { I as Icon } from "../Icon/index.8c744412.js";
|
|
9
9
|
const ToastContainerRoot = styled("div")(({ theme }) => ({
|
|
10
10
|
...theme.components?.M4LToastContainer?.styleOverrides
|
|
11
11
|
}));
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
1
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.ca15a4b6.js";
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { useState, useRef, useMemo } from "react";
|
|
4
4
|
import * as Yup from "yup";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { generateUtilityClasses, useTheme } from "@mui/material";
|
|
6
|
+
import { generateUtilityClasses, styled, useTheme } from "@mui/material";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
8
|
import { g as getComponentUtilityClass } from "../../../../utils/index.de903261.js";
|
|
9
9
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
10
10
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
11
11
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
12
|
-
import { styled } from "@mui/material/styles";
|
|
13
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
13
|
import { shallow } from "zustand/shallow";
|
|
15
14
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
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.
|
|
15
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.e6e3aac8.js";
|
|
16
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.7b2a8723.js";
|
|
17
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.fb0d1cac.js";
|
|
18
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.389f9b28.js";
|
|
19
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.33a748be.js";
|
|
20
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.ac7cd0ee.js";
|
|
21
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.383f5496.js";
|
|
22
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.d85de73b.js";
|
|
24
23
|
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
25
|
-
import { S as ScrollBar } from "../../../ScrollBar/index.
|
|
24
|
+
import { S as ScrollBar } from "../../../ScrollBar/index.7dfc2f29.js";
|
|
26
25
|
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.
|
|
26
|
+
import { B as Button } from "../../../mui_extended/Button/index.93389adb.js";
|
|
27
|
+
import { I as Icon } from "../../../Icon/index.8c744412.js";
|
|
29
28
|
import { u as useOnClickOutside } from "../../index.4cc6a221.js";
|
|
30
29
|
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
31
30
|
"root",
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { styled } from "@mui/material
|
|
1
|
+
import { generateUtilityClasses, styled, Skeleton, Dialog } from "@mui/material";
|
|
2
2
|
import { r as react_resizable_css } from "../../../../react-resizable.ee028152.js";
|
|
3
|
-
import { generateUtilityClasses, Skeleton, Dialog } from "@mui/material";
|
|
4
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
4
|
import { g as getComponentUtilityClass } from "../../../../utils/index.de903261.js";
|
|
6
5
|
import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
7
6
|
import { shallow } from "zustand/shallow";
|
|
8
7
|
import React__default, { useMemo, useEffect } from "react";
|
|
9
8
|
import clsx from "clsx";
|
|
10
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
9
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.ca15a4b6.js";
|
|
11
10
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
12
|
-
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.
|
|
11
|
+
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.e6e3aac8.js";
|
|
13
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
13
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
15
14
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
16
15
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
17
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
16
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.383f5496.js";
|
|
18
17
|
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
19
|
-
import { I as Icon } from "../../../Icon/index.
|
|
18
|
+
import { I as Icon } from "../../../Icon/index.8c744412.js";
|
|
20
19
|
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
21
|
-
import { M as MFLoader } from "../../../MFLoader/index.
|
|
20
|
+
import { M as MFLoader } from "../../../MFLoader/index.7cd7c372.js";
|
|
22
21
|
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
23
22
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
24
23
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
25
24
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
26
25
|
import { g as getNameDataTestId } from "../../../../test/getNameDataTestId.14875ec7.js";
|
|
27
|
-
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/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.0dc69929.js";
|
|
28
27
|
import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index.7669a2cd.js";
|
|
29
28
|
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.0fd1b7f8.js";
|
|
30
29
|
import { useLocation } from "react-router-dom";
|
|
31
|
-
import { L as LoadingError } from "../../../LoadingError/index.
|
|
30
|
+
import { L as LoadingError } from "../../../LoadingError/index.9c64680a.js";
|
|
32
31
|
import { c as cjs } from "../../../../react-draggable.ee21cb7e.js";
|
|
33
|
-
import { R as ResizeableWindow } from "../../../Resizeable/index.
|
|
32
|
+
import { R as ResizeableWindow } from "../../../Resizeable/index.8db8f77d.js";
|
|
34
33
|
const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
|
|
35
34
|
"root",
|
|
36
35
|
"areaRoot",
|
|
@@ -5,8 +5,8 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
5
5
|
import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
|
|
6
6
|
import { devtools } from "zustand/middleware";
|
|
7
7
|
import { immer } from "zustand/middleware/immer";
|
|
8
|
-
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.
|
|
9
|
-
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.
|
|
8
|
+
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.82a22acb.js";
|
|
9
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.debe3e3d.js";
|
|
10
10
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.1607c78e.js";
|
|
11
11
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
12
12
|
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.0fd1b7f8.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import { A as AreasContext } from "../../contexts/AreasContext/index.
|
|
3
|
+
import { A as AreasContext } from "../../contexts/AreasContext/index.0dc69929.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context)
|
|
@@ -5,12 +5,12 @@ import { g as getComponentUtilityClass } from "../../../utils/index.de903261.js"
|
|
|
5
5
|
import { createContext, useContext, useState } from "react";
|
|
6
6
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
|
-
import { I as Icon } from "../../Icon/index.
|
|
8
|
+
import { I as Icon } from "../../Icon/index.8c744412.js";
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
import { g as getNameDataTestId } from "../../../test/getNameDataTestId.14875ec7.js";
|
|
11
|
-
import { A as Accordion } from "../../mui_extended/Accordion/index.
|
|
12
|
-
import { B as Button } from "../../mui_extended/Button/index.
|
|
13
|
-
import { P as Popover } from "../../mui_extended/Popover/index.
|
|
11
|
+
import { A as Accordion } from "../../mui_extended/Accordion/index.4393eca9.js";
|
|
12
|
+
import { B as Button } from "../../mui_extended/Button/index.93389adb.js";
|
|
13
|
+
import { P as Popover } from "../../mui_extended/Popover/index.d85de73b.js";
|
|
14
14
|
const componentName = "M4LTopBar";
|
|
15
15
|
const TopBarClasses = generateUtilityClasses(componentName, [
|
|
16
16
|
"root",
|
|
@@ -110,8 +110,7 @@ const NavItemRoot = (props) => {
|
|
|
110
110
|
const {
|
|
111
111
|
title,
|
|
112
112
|
children,
|
|
113
|
-
module_id
|
|
114
|
-
icon_url
|
|
113
|
+
module_id
|
|
115
114
|
} = itemRootData;
|
|
116
115
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
117
116
|
const [openedPopoverId, setOpenedPopoverId] = useState(null);
|
|
@@ -181,9 +180,6 @@ const NavItemRoot = (props) => {
|
|
|
181
180
|
size: "medium",
|
|
182
181
|
variant: "text",
|
|
183
182
|
href: itemRootData.path,
|
|
184
|
-
startIcon: /* @__PURE__ */ jsx(Icon, {
|
|
185
|
-
src: `${icon_url}`
|
|
186
|
-
}),
|
|
187
183
|
children: title
|
|
188
184
|
}), /* @__PURE__ */ jsx(Button, {
|
|
189
185
|
variant: "text",
|
|
@@ -191,9 +187,6 @@ const NavItemRoot = (props) => {
|
|
|
191
187
|
onClick: (e) => handleClick(e, module_id),
|
|
192
188
|
endIcon: /* @__PURE__ */ jsx(ArrowIcon, {
|
|
193
189
|
openState: openedPopoverId === module_id ? true : false
|
|
194
|
-
}),
|
|
195
|
-
startIcon: /* @__PURE__ */ jsx(Icon, {
|
|
196
|
-
src: `${icon_url}`
|
|
197
190
|
})
|
|
198
191
|
}), renderPopover()]
|
|
199
192
|
});
|
|
@@ -212,9 +205,6 @@ const NavItemRoot = (props) => {
|
|
|
212
205
|
endIcon: /* @__PURE__ */ jsx(ArrowIcon, {
|
|
213
206
|
openState: openedPopoverId === module_id ? true : false
|
|
214
207
|
}),
|
|
215
|
-
startIcon: /* @__PURE__ */ jsx(Icon, {
|
|
216
|
-
src: `${icon_url}`
|
|
217
|
-
}),
|
|
218
208
|
children: title
|
|
219
209
|
}), renderPopover()]
|
|
220
210
|
});
|
|
@@ -225,9 +215,6 @@ const NavItemRoot = (props) => {
|
|
|
225
215
|
size: "medium",
|
|
226
216
|
href: itemRootData.path,
|
|
227
217
|
"aria-describedby": module_id,
|
|
228
|
-
startIcon: /* @__PURE__ */ jsx(Icon, {
|
|
229
|
-
src: `${icon_url}`
|
|
230
|
-
}),
|
|
231
218
|
children: /* @__PURE__ */ jsx("div", {
|
|
232
219
|
children: title
|
|
233
220
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
|
-
import { I as Icon } from "../../Icon/index.
|
|
3
|
+
import { I as Icon } from "../../Icon/index.8c744412.js";
|
|
4
4
|
import { W as WrapperComponent } from "../../WrapperComponent/index.5e872594.js";
|
|
5
|
-
import { F as FormatterRoot, f as formatterClasses } from "../index.
|
|
5
|
+
import { F as FormatterRoot, f as formatterClasses } from "../index.94be7098.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
const BOOLEAN_FORMATTER_DICTIONARY_KEY = `boolean_formatter`;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { evaluateWithContext } from "@m4l/core";
|
|
2
2
|
import { W as WrapperComponent } from "../../WrapperComponent/index.5e872594.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
function getFormatPoints(obProps, fieldValue, fieldUnit, chainPoint) {
|
|
5
5
|
let result = "";
|
|
6
|
-
const points =
|
|
7
|
-
const unit =
|
|
6
|
+
const points = evaluateWithContext(obProps, fieldValue);
|
|
7
|
+
const unit = evaluateWithContext(obProps, fieldUnit) || "";
|
|
8
8
|
if (points === void 0 || points === null || !Array.isArray(points)) {
|
|
9
9
|
return "[]";
|
|
10
10
|
}
|
|
11
11
|
points.map((point) => {
|
|
12
12
|
if (point) {
|
|
13
|
-
result = !chainPoint ? result.concat(`[${point}${unit}]`) : result.concat(`[${
|
|
13
|
+
result = !chainPoint ? result.concat(`[${point}${unit}]`) : result.concat(`[${evaluateWithContext(point, chainPoint)}${unit}]`);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
return result;
|
|
@@ -3,7 +3,7 @@ import "@mui/base";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { W as WrapperComponent } from "../WrapperComponent/index.5e872594.js";
|
|
5
5
|
import { useModuleDictionary } from "@m4l/core";
|
|
6
|
-
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.
|
|
6
|
+
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.0703a256.js";
|
|
7
7
|
const COMPONENT_CLASS_NAME = "M4LFormatter";
|
|
8
8
|
const formatterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
9
9
|
"root",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
-
import { Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, CircularProgress } from "@mui/material";
|
|
4
|
-
import {
|
|
5
|
-
import { I as Image } from "../../Image/index.d034ca68.js";
|
|
3
|
+
import { styled, Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, CircularProgress } from "@mui/material";
|
|
4
|
+
import { I as Image } from "../../Image/index.39b3b9d9.js";
|
|
6
5
|
import { useMemo, useRef, useState, useEffect } from "react";
|
|
7
6
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
7
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
@@ -10,7 +9,8 @@ import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js
|
|
|
10
9
|
import { unstable_composeClasses } from "@mui/base";
|
|
11
10
|
import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
|
|
12
11
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
13
|
-
import {
|
|
12
|
+
import { F as FieldLabel } from "../../FieldLabel/index.1da2a28d.js";
|
|
13
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.383f5496.js";
|
|
14
14
|
const AutocompleteRoot = styled("div")(({
|
|
15
15
|
theme
|
|
16
16
|
}) => ({
|
|
@@ -68,7 +68,9 @@ const SkeletonRHFAutocomplete = (props) => {
|
|
|
68
68
|
children: [/* @__PURE__ */ jsx("div", {
|
|
69
69
|
className: classes.skeletonContainerText,
|
|
70
70
|
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
71
|
-
variant: "text"
|
|
71
|
+
variant: "text",
|
|
72
|
+
width: "50%",
|
|
73
|
+
height: "14px"
|
|
72
74
|
})
|
|
73
75
|
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
74
76
|
variant: "circular",
|
|
@@ -84,7 +86,9 @@ const SkeletonRHFAutocomplete = (props) => {
|
|
|
84
86
|
}), /* @__PURE__ */ jsx("div", {
|
|
85
87
|
className: classes.skeletonContainerText,
|
|
86
88
|
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
87
|
-
variant: "text"
|
|
89
|
+
variant: "text",
|
|
90
|
+
width: "50%",
|
|
91
|
+
height: "14px"
|
|
88
92
|
})
|
|
89
93
|
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
90
94
|
variant: "circular",
|
|
@@ -157,12 +161,17 @@ function RHFAutocomplete(props) {
|
|
|
157
161
|
size = "small",
|
|
158
162
|
onChangeFilterParmsLocal,
|
|
159
163
|
imageWidth,
|
|
164
|
+
mandatory,
|
|
165
|
+
mandatoryMessage,
|
|
160
166
|
...other
|
|
161
167
|
} = props;
|
|
162
168
|
const {
|
|
163
169
|
getLabel
|
|
164
170
|
} = useModuleDictionary();
|
|
165
171
|
const isSkeleton = useModuleSkeleton();
|
|
172
|
+
console.log("RHFAutocomplete mandatory", mandatory);
|
|
173
|
+
console.log("RHFAutocomplete mandatoryMessage", mandatoryMessage);
|
|
174
|
+
console.log("RHFAutocomplete label", label);
|
|
166
175
|
const withImage = useMemo(() => getOptionUrlImage !== void 0, [getOptionUrlImage]);
|
|
167
176
|
const {
|
|
168
177
|
host_static_assets,
|
|
@@ -262,10 +271,12 @@ function RHFAutocomplete(props) {
|
|
|
262
271
|
e.preventDefault();
|
|
263
272
|
};
|
|
264
273
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
265
|
-
children: [/* @__PURE__ */ jsx(
|
|
266
|
-
variant: "body",
|
|
274
|
+
children: [label && /* @__PURE__ */ jsx(FieldLabel, {
|
|
267
275
|
className: classes.label,
|
|
268
|
-
|
|
276
|
+
label,
|
|
277
|
+
mandatory,
|
|
278
|
+
mandatoryMessage,
|
|
279
|
+
helperMessage
|
|
269
280
|
}), /* @__PURE__ */ jsx(Autocomplete, {
|
|
270
281
|
onKeyDown: checkKeyDown,
|
|
271
282
|
autoComplete: true,
|
|
@@ -356,9 +367,9 @@ function RHFAutocomplete(props) {
|
|
|
356
367
|
...other
|
|
357
368
|
});
|
|
358
369
|
}
|
|
359
|
-
}), currentVariant ? /* @__PURE__ */ jsx(HelperText, {
|
|
370
|
+
}), currentVariant === "error" ? /* @__PURE__ */ jsx(HelperText, {
|
|
360
371
|
variant: currentVariant,
|
|
361
|
-
message:
|
|
372
|
+
message: error?.message
|
|
362
373
|
}) : null]
|
|
363
374
|
});
|
|
364
375
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AutocompleteCloseReason, AutocompleteInputChangeReason, TextFieldProps } from '@mui/material';
|
|
3
|
-
import {
|
|
3
|
+
import { FieldLabelProps } from '../../FieldLabel/types';
|
|
4
4
|
export declare type GetOptionString<T> = (option: T | null) => string;
|
|
5
5
|
export declare type RHFAutocompleteVariants = 'info' | 'success' | 'warning';
|
|
6
|
-
export
|
|
6
|
+
export interface RHFAutocompleteProps<T> extends Omit<TextFieldProps, 'label' | 'variant'>, Omit<FieldLabelProps, 'label'> {
|
|
7
7
|
name: string;
|
|
8
8
|
options: Array<T>;
|
|
9
9
|
getOptionLabel: (option: T) => string;
|
|
@@ -15,17 +15,16 @@ export declare type RHFAutocompleteProps<T> = {
|
|
|
15
15
|
isOptionEqualToValue: (option: T, value: T) => boolean;
|
|
16
16
|
skeletonWidth?: string | number;
|
|
17
17
|
skeletonHeight?: string | number;
|
|
18
|
-
size?: Pick<RHFTextFieldProps, 'size'>;
|
|
19
|
-
label: string;
|
|
20
18
|
loading?: boolean;
|
|
19
|
+
label?: string;
|
|
21
20
|
variant?: RHFAutocompleteVariants;
|
|
22
21
|
helperMessage?: string;
|
|
23
22
|
onOpen?: (event: React.SyntheticEvent) => void;
|
|
24
23
|
onClose?: (event: React.SyntheticEvent, reason: AutocompleteCloseReason) => void;
|
|
25
24
|
onChangeFilterParmsLocal?: (newValue: string, reason: AutocompleteInputChangeReason) => void;
|
|
26
25
|
imageHeight?: string | number;
|
|
27
|
-
}
|
|
28
|
-
export interface OwnerState extends Pick<
|
|
26
|
+
}
|
|
27
|
+
export interface OwnerState extends Pick<RHFAutocompleteProps<any>, 'size' | 'disabled'> {
|
|
29
28
|
focus: boolean;
|
|
30
29
|
semantics: RHFAutocompleteVariants | 'error' | null;
|
|
31
30
|
variant?: 'withImage';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { useState, useCallback, useEffect } from "react";
|
|
2
2
|
import { useNetwork, getPropertyByString } from "@m4l/core";
|
|
3
3
|
import debounce from "lodash/debounce";
|
|
4
|
-
import { styled } from "@mui/material
|
|
5
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
|
+
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
6
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
7
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.
|
|
8
|
+
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.993794f8.js";
|
|
10
9
|
styled("div")(() => ({
|
|
11
10
|
display: "flex",
|
|
12
11
|
width: "100%",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { useFormContext, Controller } from "react-hook-form";
|
|
2
|
-
import { styled } from "@mui/material
|
|
3
|
-
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
+
import { styled, Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
4
|
import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
|
|
6
5
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
7
6
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
7
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
9
|
-
import { C as CheckBox } from "../../mui_extended/CheckBox.
|
|
8
|
+
import { C as CheckBox } from "../../mui_extended/CheckBox.840a443f.js";
|
|
10
9
|
const RHFCheckboxRoot = styled("div")(({
|
|
11
10
|
theme
|
|
12
11
|
}) => ({
|
|
@@ -59,7 +58,10 @@ function RHFCheckbox(props) {
|
|
|
59
58
|
name,
|
|
60
59
|
sizeCheck = "small",
|
|
61
60
|
label,
|
|
62
|
-
disabled = false
|
|
61
|
+
disabled = false,
|
|
62
|
+
mandatory,
|
|
63
|
+
mandatoryMessage,
|
|
64
|
+
helperMessage
|
|
63
65
|
} = props;
|
|
64
66
|
const {
|
|
65
67
|
control,
|
|
@@ -83,11 +85,15 @@ function RHFCheckbox(props) {
|
|
|
83
85
|
name,
|
|
84
86
|
control,
|
|
85
87
|
render: ({
|
|
86
|
-
field
|
|
88
|
+
field: {
|
|
89
|
+
onChange,
|
|
90
|
+
value
|
|
91
|
+
},
|
|
87
92
|
fieldState: {
|
|
88
93
|
error
|
|
89
94
|
}
|
|
90
95
|
}) => {
|
|
96
|
+
console.log("checkBox Field value", value);
|
|
91
97
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
92
98
|
children: [/* @__PURE__ */ jsx(ContainerCheckTypography, {
|
|
93
99
|
className: classes.checkTypography,
|
|
@@ -96,11 +102,15 @@ function RHFCheckbox(props) {
|
|
|
96
102
|
} : {},
|
|
97
103
|
children: /* @__PURE__ */ jsx(CheckBox, {
|
|
98
104
|
size: sizeCheck,
|
|
99
|
-
|
|
100
|
-
checked:
|
|
105
|
+
onChange,
|
|
106
|
+
checked: value,
|
|
101
107
|
disabled: disabled ? true : false,
|
|
102
108
|
disableRipple: true,
|
|
103
|
-
label
|
|
109
|
+
label,
|
|
110
|
+
mandatory,
|
|
111
|
+
mandatoryMessage,
|
|
112
|
+
helperMessage,
|
|
113
|
+
htmlFor: name
|
|
104
114
|
})
|
|
105
115
|
}), error?.message && /* @__PURE__ */ jsx(HelperText, {
|
|
106
116
|
variant: "error",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FormControlLabelProps } from '@mui/material';
|
|
2
|
-
|
|
2
|
+
import { FieldLabelProps } from '../../FieldLabel/types';
|
|
3
|
+
export interface RHFCheckboxProps extends Omit<FormControlLabelProps, 'control' | 'label'>, Omit<FieldLabelProps, 'label'> {
|
|
3
4
|
name: string;
|
|
4
5
|
sizeCheck?: 'small' | 'medium';
|
|
5
6
|
label?: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RHFColorPickerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente RHFColorPicker para seleccionar colores con React Hook Form.
|
|
4
|
+
* @component
|
|
5
|
+
* @param {RHFColorPickerProps} props - Propiedades del componente.
|
|
6
|
+
* @returns {JSX.Element} - Elemento JSX que representa el componente.
|
|
7
|
+
*/
|
|
8
|
+
export declare const RHFColorPicker: (props: RHFColorPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { RHFColorPickerClassesType } from './types';
|
|
2
|
+
import type { OwnerState } from '../types';
|
|
2
3
|
export declare const colorPickerClasses: RHFColorPickerClassesType;
|
|
3
4
|
export declare function getRHFColorPickerUtilityClass(slot: string): string;
|
|
4
|
-
export declare const useUtilityClasses: () => {
|
|
5
|
+
export declare const useUtilityClasses: (owmerState: OwnerState) => {
|
|
5
6
|
root: string;
|
|
6
7
|
skeleton: string;
|
|
7
8
|
popoverRoot: string;
|
|
@@ -6,6 +6,8 @@ export interface RHFColorPickerClassesType {
|
|
|
6
6
|
fieldColor: string;
|
|
7
7
|
containerPicker: string;
|
|
8
8
|
skeleton: string;
|
|
9
|
+
sizeSmall: string;
|
|
10
|
+
sizeMedium: string;
|
|
9
11
|
}
|
|
10
12
|
export declare type RHFColorPickerClassesKey = keyof RHFColorPickerClassesType;
|
|
11
13
|
export declare type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRHFColorPickerComponentsDictionary(): string[];
|