@m4l/components 1.1.0 → 1.1.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 +0 -5
- package/@types/types.d.ts +9 -0
- package/components/AccountPopover/{index.789ca5b9.js → index.84049a50.js} +3 -3
- package/components/AppBar/{index.a1734c3b.js → index.22ed1a0e.js} +4 -4
- package/components/BaseModule/{index.db78c929.js → index.0fc648c5.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.a44544d1.js → index.33cf608e.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.1b921390.js → index.d1359a38.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.624a468b.js → index.415de2bb.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.63222f6a.js → index.0893587b.js} +2 -2
- package/components/CommonActions/components/Actions/{index.46d6c3d1.js → index.2342a37e.js} +2 -2
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.8ba7afb9.js → index.9d6f8597.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.5a93dc9b.js → index.9bcaba12.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.35597c7f.js → index.a58a8712.js} +1 -1
- package/components/DataGrid/formatters/{index.4a07af63.js → index.6698b419.js} +2 -2
- package/components/DataGrid/{index.65f1da52.js → index.b1cac6af.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.1fed83ce.js → index.a60b17d5.js} +11 -11
- package/components/DragResizeWindow/classes/types.d.ts +1 -0
- package/components/DragResizeWindow/helpers/index.d.ts +3 -0
- package/components/DragResizeWindow/{index.ad0da648.js → index.46048367.js} +52 -39
- package/components/DragResizeWindow/types.d.ts +7 -0
- package/components/DynamicFilter/{dictionary.7aeaab97.js → dictionary.da256925.js} +2 -2
- package/components/DynamicFilter/{index.895da58e.js → index.08abfc2c.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots.84150a22.js → dynamicFilterSlots.b02bff6a.js} +6 -6
- package/components/DynamicFilter/store/{index.6ec4c67c.js → index.1e4af8b4.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.42446f8e.js → index.37bcd016.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.621ca411.js → index.2740f285.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.0c3af964.js → index.63102514.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.f92d2a9c.js → index.3824d701.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.aad7a12c.js → index.57ddf344.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.852c4c73.js → index.7beac9f0.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.4beced1d.js → index.e9e1af93.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.17191093.js → index.d27a8bcc.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.10c9c338.js → index.e8f1d8e5.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.7bee6c25.js → index.35014c15.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.85d720be.js → index.f42e9571.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.0fdc8a51.js → index.ada7eb0c.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.3674da6c.js → index.144885cf.js} +2 -2
- package/components/FieldLabel/{index.523aaa62.js → index.59b9b63a.js} +4 -4
- package/components/GridLayout/{index.3b90ce9b.js → index.56c3f4fa.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.83d54714.js → index.02bcb3b3.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.f06bbf5e.js → index.65aeef5e.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.72bfaedb.js → index.0aad6f90.js} +1 -1
- package/components/HelperText/{index.af402ba9.js → index.5c72277a.js} +2 -2
- package/components/Icon/{index.ab280d41.js → index.13aaae3c.js} +3 -3
- package/components/Image/{index.ec13c4a1.js → index.4b51d4ba.js} +2 -2
- package/components/LanguagePopover/{index.6af275d0.js → index.7605fda8.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.6739ff49.js → index.292a4af8.js} +2 -2
- package/components/LoadingError/{index.cfdfb380.js → index.b129b573.js} +5 -5
- package/components/MFIsolationApp/{index.96eb2a32.js → index.9f718621.js} +2 -2
- package/components/MFLoader/{index.9f542136.js → index.5d340e32.js} +2 -2
- package/components/ModalDialog/{index.b975fc7b.js → index.ff275011.js} +4 -4
- package/components/NavLink/{index.9cc3caf4.js → index.506c7827.js} +2 -2
- package/components/NoItemSelected/{index.4ea373aa.js → index.1d7d5a9d.js} +1 -1
- package/components/ObjectLogs/{index.55d93ddb.js → index.473ebd65.js} +9 -9
- package/components/PDFViewer/{index.8d8c9d39.js → index.4e7ffac8.js} +2 -2
- package/components/Page/{index.eb107182.js → index.b75c74e3.js} +1 -1
- package/components/PaperForm/{index.37170e07.js → index.8289409f.js} +2 -2
- package/components/Period/{index.2a193da0.js → index.13e4c351.js} +4 -4
- package/components/PrintingSystem/{index.6d6cd410.js → index.e1535b80.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.2f4b2285.js → index.6b36842d.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.0e11ce1a.js → index.4aab9d2c.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.774c0eb8.js → index.23a9dc95.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.23fb8a3e.js → index.d0e8fd15.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.9cd30c38.js → index.35ff7dab.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.9f4f2196.js → index.9547c826.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.7b78e756.js → index.71afe03e.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.6c924beb.js → index.abbb154c.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.2da2a062.js → index.b3f2ba6c.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.334ff3ef.js → index.809aaad2.js} +1 -1
- package/components/PropertyValue/{index.cec68741.js → index.36555931.js} +3 -3
- package/components/Resizeable/{index.a27cb569.js → index.57363836.js} +1 -1
- package/components/ScrollBar/{index.4e447b30.js → index.236e2aa3.js} +1 -1
- package/components/SideBar/{index.902789b8.js → index.bb6c2c7b.js} +6 -6
- package/components/SplitLayout/{index.e048f8c4.js → index.75953afb.js} +1 -1
- package/components/ToastContainer/{index.319037c5.js → index.bb972338.js} +3 -3
- package/components/animate/LoadingScreen/{index.d22d67a3.js → index.09915798.js} +1 -1
- package/components/animate/{index.271410bf.js → index.5c545243.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.f3a211a4.js → index.42d40964.js} +15 -15
- package/components/areas/components/AreasViewer/{index.8e9d24c2.js → index.266a3815.js} +15 -15
- package/components/areas/components/AreasViewer/styles.d.ts +1 -1
- package/components/areas/contexts/AreasContext/{index.b29fb29f.js → index.c2289888.js} +4 -4
- package/components/areas/hooks/useAreas/{index.5f7f615d.js → index.509c1703.js} +1 -1
- package/components/commercial/AppBarCommercial/{index.8b27200f.js → index.3fd10868.js} +2 -2
- package/components/commercial/SectionCommercial/{index.6ffe7283.js → index.bd45c64e.js} +2 -2
- package/components/commercial/TopBar/{index.67ee203b.js → index.4e55cffa.js} +6 -6
- package/components/commercial/{index.196f2f16.js → index.4bdbb8fe.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.71e5727f.js → index.ac870381.js} +2 -2
- package/components/formatters/{index.6c7fdd6c.js → index.53ad2f51.js} +2 -2
- package/components/hook-form/HelperError/{index.af99c705.js → index.9f93c627.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.b295a0b4.js → index.b8347185.js} +6 -6
- package/components/hook-form/RHFAutocompleteAsync/{index.ad51f3e2.js → index.aeb3bf66.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.4aa49169.js → index.c3b7ce0f.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.6e788803.js → index.c259b8ac.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.4c686856.js → index.4efe48ce.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.7bd17690.js → index.0f912e3e.js} +4 -4
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.d.ts +2 -0
- package/components/hook-form/RHFRadioGroup/index.96c94958.js +52 -0
- package/components/hook-form/RHFRadioGroup/types.d.ts +10 -4
- package/components/hook-form/RHFTextField/{index.ec3f5dd5.js → index.828b30f5.js} +5 -5
- package/components/hook-form/RHFUpload/{index.1275836a.js → index.b664c68b.js} +5 -5
- package/components/maps/components/GpsTools/{index.44b82290.js → index.e759163d.js} +23 -23
- package/components/maps/components/Map/external/Control/index.d.ts +1 -1
- package/components/maps/components/Map/{index.7cb66143.js → index.c568e68d.js} +30 -27
- package/components/modal/{WindowBase.e663941b.js → WindowBase.58f9e2b0.js} +3 -3
- package/components/modal/{WindowConfirm.abcfd142.js → WindowConfirm.60955735.js} +6 -6
- package/components/mui_extended/Accordion/{index.1d692b19.js → index.e6971e30.js} +4 -4
- package/components/mui_extended/Avatar/{index.561ed0f7.js → index.8cc99f13.js} +1 -1
- package/components/mui_extended/Badge/{index.abad2c28.js → index.07fb40c0.js} +1 -1
- package/components/mui_extended/Button/{index.8afd5131.js → index.111f830e.js} +3 -3
- package/components/mui_extended/{CheckBox.d84658da.js → CheckBox.a8958eb8.js} +2 -2
- package/components/mui_extended/IconButton/{index.cb274bbe.js → index.9425bdc5.js} +2 -2
- package/components/mui_extended/MenuActions/{index.8168ad20.js → index.8b0d69b7.js} +5 -5
- package/components/mui_extended/Pager/{index.9184e616.js → index.cb749e65.js} +4 -4
- package/components/mui_extended/Popover/{index.594e3587.js → index.5e78a637.js} +2 -2
- package/components/mui_extended/Stack/{index.6516b2b5.js → index.3674daf7.js} +1 -1
- package/components/mui_extended/Tab/{index.2ac4a667.js → index.a94a92c1.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.94cd32f3.js → index.a55def3b.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.3cb364d1.js → index.cd20de81.js} +1 -1
- package/components/mui_extended/Typography/{index.71fbb5c4.js → index.45e97bdd.js} +1 -1
- package/components/popups/PopupsProvider/{index.07940e4f.js → index.776c62e7.js} +8 -34
- package/components/popups/PopupsViewer/constants.29247547.js +4 -0
- package/components/popups/PopupsViewer/icons.066abd43.js +7 -0
- package/components/popups/PopupsViewer/{index.d8b9a059.js → index.8fe4aa5d.js} +43 -78
- package/components/popups/PopupsViewer/slots/index.154e4e5f.js +14 -0
- package/components/popups/PopupsViewer/slots/popupsViewerSlots.aaf546e2.js +39 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +27 -47
- package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +1 -2
- package/components/popups/components/PopupsViewer/constants.d.ts +1 -1
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +25 -0
- package/components/popups/components/PopupsViewer/slots/slots.d.ts +10 -0
- package/components/popups/components/PopupsViewer/types.d.ts +17 -3
- package/contexts/ModalContext/{index.dd147fa6.js → index.a5c622d6.js} +1 -1
- package/contexts/RHFormContext/{index.cedd3482.js → index.40a9547e.js} +1 -1
- package/hooks/useFormAddEdit/{index.00c86b5b.js → index.b6a3cf63.js} +2 -2
- package/hooks/useModal/{index.84233480.js → index.3ad1e014.js} +1 -1
- package/hooks/useTab/{index.74399f56.js → index.4081b113.js} +1 -1
- package/index.js +126 -122
- package/package.json +1 -1
- package/{react-draggable.079122b0.js → react-draggable.310e3387.js} +1 -1
- package/{react-resizable.330f1499.js → react-resizable.3755959b.js} +2 -2
- package/styles/{DynamicFilter.0713a406.js → DynamicFilter.557ee3a7.js} +1 -1
- package/styles/PopupViewer.styles.d.ts +2 -0
- package/styles/{index.1735a866.js → index.239f949e.js} +100 -10
- package/components/hook-form/RHFRadioGroup/index.11c0add8.js +0 -35
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +0 -7
- package/components/popups/components/PopupsViewer/classes/index.d.ts +0 -17
- package/components/popups/components/PopupsViewer/classes/types.d.ts +0 -15
- package/components/popups/components/PopupsViewer/styled.d.ts +0 -2
- /package/utils/{index.f77cc2ab.js → index.78d1638f.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { a0 as SplitLayoutRoot, a1 as SplitMaster, a2 as SplitDetail } from "../../styles/index.
|
|
2
|
+
import { a0 as SplitLayoutRoot, a1 as SplitMaster, a2 as SplitDetail } from "../../styles/index.239f949e.js";
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import clsx from "clsx";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a3 as ToastContainerRoot } from "../../styles/index.
|
|
2
|
+
import { a3 as ToastContainerRoot } from "../../styles/index.239f949e.js";
|
|
3
3
|
import { ToastContainer as ToastContainer$1 } from "react-toastify";
|
|
4
4
|
import { generateUtilityClasses } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
6
|
+
import { g as getComponentUtilityClass } from "../../utils/index.78d1638f.js";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
8
|
import { useMemo } from "react";
|
|
9
|
-
import { I as Icon } from "../Icon/index.
|
|
9
|
+
import { I as Icon } from "../Icon/index.13aaae3c.js";
|
|
10
10
|
const componentName = "M4LToastContainer";
|
|
11
11
|
const toastClasses = generateUtilityClasses(
|
|
12
12
|
componentName,
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { m } from "framer-motion";
|
|
3
3
|
import { alpha } from "@mui/material/styles";
|
|
4
4
|
import { Box } from "@mui/material";
|
|
5
|
-
import { a4 as RootStyle } from "../../../styles/index.
|
|
5
|
+
import { a4 as RootStyle } from "../../../styles/index.239f949e.js";
|
|
6
6
|
function LoadingScreen(props) {
|
|
7
7
|
const { isDashboard, variant = "fullpage", ...other } = props;
|
|
8
8
|
return /* @__PURE__ */ jsx(Fragment, { children: !isDashboard && /* @__PURE__ */ jsxs(RootStyle, { variant, ...other, children: [
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { m } from "framer-motion";
|
|
3
3
|
import { forwardRef, useRef } from "react";
|
|
4
4
|
import { IconButton, Box } from "@mui/material";
|
|
5
|
-
import { a5 as AnimatedScrollRoot } from "../../styles/index.
|
|
5
|
+
import { a5 as AnimatedScrollRoot } from "../../styles/index.239f949e.js";
|
|
6
6
|
const varSmall = {
|
|
7
7
|
hover: { scale: 1.1 },
|
|
8
8
|
tap: { scale: 0.95 }
|
|
@@ -1,31 +1,31 @@
|
|
|
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.509c1703.js";
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { useState, useRef, useMemo } from "react";
|
|
5
5
|
import * as Yup from "yup";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { generateUtilityClasses, useTheme } from "@mui/material";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
9
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.78d1638f.js";
|
|
10
10
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
11
11
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
12
12
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
13
|
-
import { a6 as EditAreaHeader, a7 as AreasAdminRoot } from "../../../../styles/index.
|
|
13
|
+
import { a6 as EditAreaHeader, a7 as AreasAdminRoot } from "../../../../styles/index.239f949e.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.8b0d69b7.js";
|
|
17
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.40a9547e.js";
|
|
18
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.828b30f5.js";
|
|
19
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.2342a37e.js";
|
|
20
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.33cf608e.js";
|
|
21
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.0893587b.js";
|
|
22
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.9425bdc5.js";
|
|
23
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.5e78a637.js";
|
|
24
|
+
import { T as Typography } from "../../../mui_extended/Typography/index.45e97bdd.js";
|
|
25
|
+
import { S as ScrollBar } from "../../../ScrollBar/index.236e2aa3.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.111f830e.js";
|
|
28
|
+
import { I as Icon } from "../../../Icon/index.13aaae3c.js";
|
|
29
29
|
import { u as useOnClickOutside } from "../../index.4cc6a221.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.239f949e.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.509c1703.js";
|
|
7
7
|
import { generateUtilityClasses, Skeleton } from "@mui/material";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
9
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.78d1638f.js";
|
|
10
10
|
import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
11
11
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
12
|
-
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.
|
|
12
|
+
import { a as MemonizedMenuActions } from "../../../mui_extended/MenuActions/index.8b0d69b7.js";
|
|
13
13
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
14
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
15
15
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
16
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
17
|
-
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.
|
|
18
|
-
import { I as Icon } from "../../../Icon/index.
|
|
19
|
-
import { T as Typography } from "../../../mui_extended/Typography/index.
|
|
20
|
-
import { M as MFLoader } from "../../../MFLoader/index.
|
|
16
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.9425bdc5.js";
|
|
17
|
+
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.292a4af8.js";
|
|
18
|
+
import { I as Icon } from "../../../Icon/index.13aaae3c.js";
|
|
19
|
+
import { T as Typography } from "../../../mui_extended/Typography/index.45e97bdd.js";
|
|
20
|
+
import { M as MFLoader } from "../../../MFLoader/index.5d340e32.js";
|
|
21
21
|
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.992ae7a3.js";
|
|
22
22
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.3d9ad0ad.js";
|
|
23
23
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.4092bb69.js";
|
|
24
24
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
25
25
|
import { g as getNameDataTestId } from "../../../../test/getNameDataTestId.0faeade8.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.
|
|
27
|
-
import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index.
|
|
28
|
-
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/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.c2289888.js";
|
|
27
|
+
import { w as withSizeProvider } from "../../../GridLayout/subcomponents/SizeProvider/index.0aad6f90.js";
|
|
28
|
+
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.65aeef5e.js";
|
|
29
29
|
import { useLocation } from "react-router-dom";
|
|
30
|
-
import { L as LoadingError } from "../../../LoadingError/index.
|
|
31
|
-
import { c as cjs } from "../../../../react-draggable.
|
|
32
|
-
import { R as ResizeableWindow } from "../../../Resizeable/index.
|
|
30
|
+
import { L as LoadingError } from "../../../LoadingError/index.b129b573.js";
|
|
31
|
+
import { c as cjs } from "../../../../react-draggable.310e3387.js";
|
|
32
|
+
import { R as ResizeableWindow } from "../../../Resizeable/index.57363836.js";
|
|
33
33
|
const areasViewerClasses = generateUtilityClasses(
|
|
34
34
|
AREAS_VIEWER_CLASS_NAME,
|
|
35
35
|
[
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const AreasViewerRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const AreasViewerRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -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.266a3815.js";
|
|
10
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.42d40964.js";
|
|
11
11
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.3d9ad0ad.js";
|
|
12
12
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.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.65aeef5e.js";
|
|
14
14
|
import { debounce, cloneDeep } from "lodash";
|
|
15
|
-
import { A as isEqualLayouts } from "../../../GridLayout/index.
|
|
15
|
+
import { A as isEqualLayouts } from "../../../GridLayout/index.56c3f4fa.js";
|
|
16
16
|
import { useNavigate } from "react-router-dom";
|
|
17
17
|
const PADDING_GRIDLAYOUT = 11;
|
|
18
18
|
const MARGIN_GRIDLAYOUT = 11;
|
|
@@ -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.c2289888.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { generateUtilityClasses } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import { g as getComponentUtilityClass } from "../../../utils/index.
|
|
5
|
-
import { ab as AppBarComercialRoot } from "../../../styles/index.
|
|
4
|
+
import { g as getComponentUtilityClass } from "../../../utils/index.78d1638f.js";
|
|
5
|
+
import { ab as AppBarComercialRoot } from "../../../styles/index.239f949e.js";
|
|
6
6
|
const componentName = "M4LAppBarCommercial";
|
|
7
7
|
generateUtilityClasses(
|
|
8
8
|
componentName,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { generateUtilityClasses } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import { g as getComponentUtilityClass } from "../../../utils/index.
|
|
5
|
-
import { ac as SectionCommercialRoot } from "../../../styles/index.
|
|
4
|
+
import { g as getComponentUtilityClass } from "../../../utils/index.78d1638f.js";
|
|
5
|
+
import { ac as SectionCommercialRoot } from "../../../styles/index.239f949e.js";
|
|
6
6
|
const componentName = "M4LSectionCommercial";
|
|
7
7
|
generateUtilityClasses(
|
|
8
8
|
componentName,
|
|
@@ -2,16 +2,16 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
3
3
|
import { generateUtilityClasses, useTheme, Box, Grid, styled } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { g as getComponentUtilityClass } from "../../../utils/index.
|
|
5
|
+
import { g as getComponentUtilityClass } from "../../../utils/index.78d1638f.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.239f949e.js";
|
|
9
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
10
10
|
import clsx from "clsx";
|
|
11
11
|
import { g as getNameDataTestId } from "../../../test/getNameDataTestId.0faeade8.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.e6971e30.js";
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index.111f830e.js";
|
|
14
|
+
import { P as Popover } from "../../mui_extended/Popover/index.5e78a637.js";
|
|
15
15
|
const componentName = "M4LTopBar";
|
|
16
16
|
const TopBarClasses = generateUtilityClasses(componentName, [
|
|
17
17
|
"root",
|
|
@@ -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.239f949e.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.86c553a9.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.bb6c2c7b.js";
|
|
9
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.9425bdc5.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.13aaae3c.js";
|
|
5
5
|
import { W as WrapperComponent } from "../../WrapperComponent/index.57964195.js";
|
|
6
|
-
import { F as FormatterRoot, f as formatterClasses } from "../index.
|
|
6
|
+
import { F as FormatterRoot, f as formatterClasses } from "../index.53ad2f51.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.239f949e.js";
|
|
5
5
|
import { W as WrapperComponent } from "../WrapperComponent/index.57964195.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.ac870381.js";
|
|
8
8
|
const COMPONENT_CLASS_NAME = "M4LFormatter";
|
|
9
9
|
const formatterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
10
10
|
"root",
|
|
@@ -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.5c72277a.js";
|
|
4
4
|
function HelperError(props) {
|
|
5
5
|
const { name } = props;
|
|
6
6
|
const { control } = useFormContext();
|
|
@@ -3,17 +3,17 @@ import { useMemo, useRef, useState, useEffect, createElement } from "react";
|
|
|
3
3
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
4
4
|
import { useFormContext, Controller } from "react-hook-form";
|
|
5
5
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, Chip } from "@mui/material";
|
|
6
|
-
import { ag as WrapperOption, ah as AutocompleteRoot } from "../../../styles/index.
|
|
7
|
-
import { I as Image } from "../../Image/index.
|
|
6
|
+
import { ag as WrapperOption, ah as AutocompleteRoot } from "../../../styles/index.239f949e.js";
|
|
7
|
+
import { I as Image } from "../../Image/index.4b51d4ba.js";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { T as Typography } from "../../mui_extended/Typography/index.
|
|
9
|
+
import { T as Typography } from "../../mui_extended/Typography/index.45e97bdd.js";
|
|
10
10
|
import { unstable_composeClasses } from "@mui/base";
|
|
11
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index.5c72277a.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.59b9b63a.js";
|
|
15
15
|
import { C as CircularProgress } from "../../mui_extended/CircularProgress/index.967e70b7.js";
|
|
16
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
16
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.9425bdc5.js";
|
|
17
17
|
const RHFAUTOCOMPLETE_PREFIX = "RHFAutocomplete";
|
|
18
18
|
const RHFTAUTOCOMPLET_ROOT_TEST_ID = "RHFAutocomplete";
|
|
19
19
|
const getNameDataTestId = (KEY) => {
|
|
@@ -2,11 +2,11 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useCallback, useEffect } from "react";
|
|
3
3
|
import { useNetwork, getPropertyByString } from "@m4l/core";
|
|
4
4
|
import debounce from "lodash/debounce";
|
|
5
|
-
import { ai as RHFAutocompleteAsyncRoot } from "../../../styles/index.
|
|
5
|
+
import { ai as RHFAutocompleteAsyncRoot } from "../../../styles/index.239f949e.js";
|
|
6
6
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.
|
|
9
|
+
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.b8347185.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.239f949e.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.5c72277a.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.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.a8958eb8.js";
|
|
12
12
|
generateUtilityClasses("M4LRHFCheckbox", [
|
|
13
13
|
"root",
|
|
14
14
|
"checkTypography",
|
|
@@ -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.5c72277a.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.239f949e.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 { P as Popover } from "../../mui_extended/Popover/index.
|
|
15
|
-
import { I as Icon } from "../../Icon/index.
|
|
16
|
-
import { B as Button } from "../../mui_extended/Button/index.
|
|
13
|
+
import { F as FieldLabel } from "../../FieldLabel/index.59b9b63a.js";
|
|
14
|
+
import { P as Popover } from "../../mui_extended/Popover/index.5e78a637.js";
|
|
15
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
16
|
+
import { B as Button } from "../../mui_extended/Button/index.111f830e.js";
|
|
17
17
|
const componentName = "M4LRHFColorPicker";
|
|
18
18
|
const colorPickerClasses = generateUtilityClasses(componentName, [
|
|
19
19
|
"root",
|
|
@@ -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.239f949e.js";
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index.5c72277a.js";
|
|
12
12
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.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.59b9b63a.js";
|
|
15
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
16
16
|
const SkeletonRHFDateTime = (props) => {
|
|
17
17
|
const { skeletonWidth, skeletonHeight, className, label } = props;
|
|
18
18
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -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.239f949e.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.5c72277a.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.59b9b63a.js";
|
|
10
|
+
import { P as Period } from "../../Period/index.13e4c351.js";
|
|
11
11
|
const componentName = "M4LRHFPeriod";
|
|
12
12
|
generateUtilityClasses(componentName, [
|
|
13
13
|
"root",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RadioGroupProps, RadioProps } from '@mui/material';
|
|
2
2
|
import { RHFRadioGroupProps } from './types';
|
|
3
|
-
export declare function RHFRadioGroup<TOption extends RadioProps>({ name, options, getOptionLabel, getOptionValue, ...other }: RHFRadioGroupProps<TOption> & RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function RHFRadioGroup<TOption extends RadioProps>({ name, options, getOptionLabel, getOptionValue, getOptionIconUrl, renderOptionLabel, ControlLabel, ...other }: RHFRadioGroupProps<TOption> & RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
+
import { RadioGroup, FormControlLabel, FormHelperText, Radio } from "@mui/material";
|
|
4
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
5
|
+
function OptionIconLabelFormatter(option, getOptionLabel, getOptionIconUrl) {
|
|
6
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
7
|
+
/* @__PURE__ */ jsx(
|
|
8
|
+
Icon,
|
|
9
|
+
{
|
|
10
|
+
src: `${getOptionIconUrl(option)}`
|
|
11
|
+
}
|
|
12
|
+
),
|
|
13
|
+
/* @__PURE__ */ jsx("span", { children: getOptionLabel(option) })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
function RHFRadioGroup({
|
|
17
|
+
name,
|
|
18
|
+
options,
|
|
19
|
+
getOptionLabel,
|
|
20
|
+
getOptionValue,
|
|
21
|
+
getOptionIconUrl,
|
|
22
|
+
renderOptionLabel = OptionIconLabelFormatter,
|
|
23
|
+
ControlLabel = Radio,
|
|
24
|
+
...other
|
|
25
|
+
}) {
|
|
26
|
+
const { control } = useFormContext();
|
|
27
|
+
return /* @__PURE__ */ jsx(
|
|
28
|
+
Controller,
|
|
29
|
+
{
|
|
30
|
+
name,
|
|
31
|
+
control,
|
|
32
|
+
render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsxs("div", { children: [
|
|
33
|
+
/* @__PURE__ */ jsx(RadioGroup, { ...field, row: true, ...other, children: options.map((option) => {
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
FormControlLabel,
|
|
36
|
+
{
|
|
37
|
+
defaultValue: field.value,
|
|
38
|
+
value: getOptionValue(option),
|
|
39
|
+
control: /* @__PURE__ */ jsx(ControlLabel, { ...option }),
|
|
40
|
+
label: renderOptionLabel(option, getOptionLabel, getOptionIconUrl)
|
|
41
|
+
},
|
|
42
|
+
getOptionValue(option)
|
|
43
|
+
);
|
|
44
|
+
}) }),
|
|
45
|
+
!!error && /* @__PURE__ */ jsx(FormHelperText, { error: true, sx: { px: 2 }, children: error.message })
|
|
46
|
+
] })
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
RHFRadioGroup as R
|
|
52
|
+
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { RadioProps } from '@mui/material';
|
|
2
|
-
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export declare type GetOptionStringType<T> = (option: T) => string;
|
|
4
|
+
export declare type RenderOptionLabelType<T> = (option: T, getOptionLabel: GetOptionStringType<T>, getOptionIconUrl: GetOptionStringType<T>) => ReactNode;
|
|
5
|
+
export interface RHFRadioGroupProps<T extends RadioProps> {
|
|
3
6
|
name: string;
|
|
4
7
|
defaultValue?: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
ControlLabel?: (props: RadioProps) => React.ReactElement<any, any>;
|
|
9
|
+
options: T[];
|
|
10
|
+
getOptionLabel: GetOptionStringType<T>;
|
|
11
|
+
getOptionValue: GetOptionStringType<T>;
|
|
12
|
+
getOptionIconUrl: GetOptionStringType<T>;
|
|
13
|
+
renderOptionLabel: RenderOptionLabelType<T>;
|
|
8
14
|
}
|
|
@@ -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.9425bdc5.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.239f949e.js";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
9
|
import { unstable_composeClasses } from "@mui/base";
|
|
10
|
-
import { g as getComponentUtilityClass } from "../../../utils/index.
|
|
11
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
10
|
+
import { g as getComponentUtilityClass } from "../../../utils/index.78d1638f.js";
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index.5c72277a.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.59b9b63a.js";
|
|
15
15
|
const RHFTEXTFIELD_ROOT_TEST_ID = "RHFTextFieldRoot";
|
|
16
16
|
const RHFTEXTFIELD_INPUT_TEST_ID = "RHFTextFieldInput";
|
|
17
17
|
const RHFTEXTFIELD_PREFIX = "RHFTextField";
|
|
@@ -3,15 +3,15 @@ import { useCallback } from "react";
|
|
|
3
3
|
import { useFormContext, Controller } from "react-hook-form";
|
|
4
4
|
import isString from "lodash/isString";
|
|
5
5
|
import { useDropzone } from "react-dropzone";
|
|
6
|
-
import { I as Image } from "../../Image/index.
|
|
6
|
+
import { I as Image } from "../../Image/index.4b51d4ba.js";
|
|
7
7
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
8
|
-
import { as as UploadImageRoot, at as WrapperRHFUploadImage } from "../../../styles/index.
|
|
8
|
+
import { as as UploadImageRoot, at as WrapperRHFUploadImage } from "../../../styles/index.239f949e.js";
|
|
9
9
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
10
10
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
11
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
|
-
import { T as Typography } from "../../mui_extended/Typography/index.
|
|
13
|
-
import { B as Button } from "../../mui_extended/Button/index.
|
|
14
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
12
|
+
import { T as Typography } from "../../mui_extended/Typography/index.45e97bdd.js";
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index.111f830e.js";
|
|
14
|
+
import { H as HelperText } from "../../HelperText/index.5c72277a.js";
|
|
15
15
|
const ICON_PREFIX = "M4LRHFUploadImage";
|
|
16
16
|
const getNameRHFUploadImageDataTestId = (KEY) => {
|
|
17
17
|
return `${ICON_PREFIX}-${KEY}`;
|