@m4l/components 2.0.4 → 2.0.6
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 +269 -269
- package/@types/types.d.ts +37 -37
- package/components/AccountPopover/{index.323b6cf4.js → index.23a1eabd.js} +3 -3
- package/components/AppBar/{index.209841e1.js → index.1956ba23.js} +4 -4
- package/components/BaseModule/{index.aee40a28.js → index.6835e9a6.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.797d8195.js → index.6b060ad1.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.d6776091.js → index.09be1900.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.2af9a15d.js → index.c93b31d4.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.865af0d8.js → index.c8e7ae9e.js} +2 -2
- package/components/CommonActions/components/Actions/{index.841f1da0.js → index.4eb9ca1e.js} +2 -2
- package/components/DataGrid/assets/icons/datagrid.svg +4 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.5dac4b66.js → index.7743ee64.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.12d2461f.js → index.c77f8bfc.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.7234f4b9.js → index.8cab2870.js} +1 -1
- package/components/DataGrid/formatters/{index.93458be0.js → index.ec837142.js} +2 -2
- package/components/DataGrid/{index.fa8634c0.js → index.dc8fa469.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.5ff19f99.js → index.f1fe2bd2.js} +11 -11
- package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
- package/components/DragResizeWindow/{index.c0382188.js → index.44fad985.js} +2 -2
- package/components/DynamicFilter/{dictionary.d36bea70.js → dictionary.8b931250.js} +2 -2
- package/components/DynamicFilter/{index.5d0688b9.js → index.93376b7c.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots.58ee518d.js → dynamicFilterSlots.3143a011.js} +6 -6
- package/components/DynamicFilter/store/{index.2c9704ee.js → index.0b26e781.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.faf637d6.js → index.294d846d.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.e1008442.js → index.d54831ba.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.246c1304.js → index.8b75ee17.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.5c3063f2.js → index.119aa323.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.cc477a59.js → index.090819a9.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.88bb0dee.js → index.69a5da30.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.eec7fa42.js → index.696ea1ff.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.50a0dfb9.js → index.2dfd8e4b.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.06fb696b.js → index.3eea7e61.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.415b11e6.js → index.d2f7e0ac.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.46905747.js → index.03fe887d.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.fe51263d.js → index.f3af7c5e.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.0b52a455.js → index.928b69f1.js} +2 -2
- package/components/FieldLabel/{index.13a833c9.js → index.c191727a.js} +4 -4
- package/components/GridLayout/{index.95c84243.js → index.1efdb6ca.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.99bf4b5c.js → index.ad5e4dd6.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.83d6fc44.js → index.e3ff990a.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.bf9a859a.js → index.5fa6f902.js} +1 -1
- package/components/HelperText/{index.83b28429.js → index.451bc436.js} +2 -2
- package/components/Icon/{index.f9cd9367.js → index.d82723ca.js} +3 -3
- package/components/Image/{index.eec95206.js → index.472191c2.js} +2 -2
- package/components/LanguagePopover/{index.becad7ef.js → index.9cb9f615.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.87be4283.js → index.330dd4d7.js} +2 -2
- package/components/LoadingError/{index.8b7a3162.js → index.8c5c3905.js} +5 -5
- package/components/MFIsolationApp/{index.d20c8218.js → index.7aed6dd6.js} +2 -2
- package/components/MFLoader/{index.3e7b4cb5.js → index.ae54aafb.js} +2 -2
- package/components/ModalDialog/{index.ec0ab622.js → index.238735ec.js} +4 -4
- package/components/NavLink/{index.cca2c605.js → index.52568cdd.js} +2 -2
- package/components/NoItemSelected/{index.fa49cac5.js → index.0038a666.js} +1 -1
- package/components/ObjectLogs/{index.f70e0c0c.js → index.6da63df6.js} +9 -9
- package/components/PDFViewer/{index.cdc90184.js → index.f2394ac9.js} +2 -2
- package/components/Page/{index.4759d66c.js → index.0df91a0d.js} +1 -1
- package/components/PaperForm/{index.5cc98ed7.js → index.3a46ec6c.js} +2 -2
- package/components/Period/{index.6b0b98c1.js → index.cd547147.js} +4 -4
- package/components/PrintingSystem/{index.0acacf1b.js → index.ba908ae6.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.779838e5.js → index.251148ca.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.6a572f3d.js → index.e2882c92.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.a121da0d.js → index.b17898c6.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.0775edc0.js → index.4227795f.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.8d196cc6.js → index.c210ce35.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.1542db42.js → index.cec9df33.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.34e7cd43.js → index.59ab10b9.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.8f42fe69.js → index.5d12fac5.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.9a39e104.js → index.cf0b2bd1.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.73fb8756.js → index.b7beb250.js} +1 -1
- package/components/PropertyValue/{index.d1ca87c1.js → index.de28c147.js} +3 -3
- package/components/Resizeable/{index.c2f229d6.js → index.7df514af.js} +1 -1
- package/components/ScrollBar/{index.424bd908.js → index.3bf5b4b3.js} +1 -1
- package/components/SideBar/{index.2ce72f65.js → index.1c9dc8a5.js} +6 -6
- package/components/SplitLayout/{index.4265a602.js → index.d17f44d2.js} +1 -1
- package/components/ToastContainer/{index.b5413d7f.js → index.6407b2e3.js} +3 -3
- package/components/animate/LoadingScreen/{index.20b1f443.js → index.2be4af69.js} +1 -1
- package/components/animate/{index.680f5895.js → index.08d2e411.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.b41fe898.js → index.cbabcf60.js} +15 -15
- package/components/areas/components/AreasViewer/{index.be5f5a9d.js → index.84bf6e1e.js} +15 -15
- package/components/areas/contexts/AreasContext/{index.e4be3c65.js → index.a6d20b26.js} +4 -4
- package/components/areas/hooks/useAreas/{index.ce08327d.js → index.1ee5d290.js} +1 -1
- package/components/areas/types.d.ts +1 -1
- package/components/commercial/AppBarCommercial/{index.372ea01e.js → index.81279e02.js} +2 -2
- package/components/commercial/SectionCommercial/{index.026cc71f.js → index.d903e9e7.js} +2 -2
- package/components/commercial/TopBar/{index.fff88136.js → index.9d791d27.js} +6 -6
- package/components/commercial/{index.1ea39cc1.js → index.380aa13d.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.c29c63fc.js → index.1f89b011.js} +2 -2
- package/components/formatters/{index.5f44ed46.js → index.9ab0137a.js} +2 -2
- package/components/hook-form/HelperError/{index.f2b943ae.js → index.eb0451a8.js} +1 -1
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/{index.3f11b4dd.js → index.66b8a523.js} +58 -29
- package/components/hook-form/RHFAutocomplete/types.d.ts +1 -0
- package/components/hook-form/RHFAutocompleteAsync/{index.60003c6b.js → index.d0f40f8f.js} +64 -68
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +2 -2
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/{index.3ce32b03.js → index.95d31dea.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.21ae7dca.js → index.6fc44977.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.0d2b3d0a.js → index.8db9d2a6.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.c950b5d0.js → index.febe530f.js} +4 -4
- package/components/hook-form/RHFRadioGroup/{index.87be90b7.js → index.29f49580.js} +1 -1
- package/components/hook-form/RHFTextField/{index.7f95edb6.js → index.6f9bbd80.js} +5 -5
- package/components/hook-form/RHFUpload/{index.13724496.js → index.77519c4c.js} +5 -5
- package/components/maps/components/GpsTools/{index.6da62b64.js → index.c912d7c6.js} +22 -22
- package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
- package/components/maps/components/Map/{index.9c3b3cd0.js → index.765e578d.js} +13 -13
- package/components/maps/leaflet-geoman.d.ts +1476 -1476
- package/components/modal/{WindowBase.6c15797f.js → WindowBase.044659d9.js} +3 -3
- package/components/modal/{WindowConfirm.0d48420b.js → WindowConfirm.08d72905.js} +6 -6
- package/components/mui_extended/Accordion/{index.fd738d87.js → index.7bafa548.js} +4 -4
- package/components/mui_extended/Avatar/{index.c7b7541f.js → index.9f9346ad.js} +1 -1
- package/components/mui_extended/Badge/{index.cb26549b.js → index.182414ed.js} +1 -1
- package/components/mui_extended/Button/{index.19eb272d.js → index.d44027cf.js} +3 -3
- package/components/mui_extended/{CheckBox.d6469bd2.js → CheckBox.a68237b1.js} +2 -2
- package/components/mui_extended/IconButton/{index.4134de6f.js → index.b43ca9c9.js} +2 -2
- package/components/mui_extended/MenuActions/{index.ee8887b7.js → index.0d11f43a.js} +5 -5
- package/components/mui_extended/Pager/{index.015df2f9.js → index.fd0db044.js} +4 -4
- package/components/mui_extended/Popover/{index.ab4709b3.js → index.ea936c4a.js} +1 -1
- package/components/mui_extended/Stack/{index.53be5d28.js → index.f88ee5eb.js} +1 -1
- package/components/mui_extended/Tab/{index.7abd42e8.js → index.cb37d00d.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.a34836ba.js → index.c3a9d691.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.1f4121fa.js → index.fa33051b.js} +1 -1
- package/components/mui_extended/Typography/{index.202945af.js → index.850bc036.js} +1 -1
- package/components/popups/PopupsViewer/{index.fb409d20.js → index.722af14c.js} +4 -4
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots.00d8493c.js → popupsViewerSlots.3fce4e57.js} +2 -2
- package/contexts/ModalContext/{index.eb616dfb.js → index.61e5d598.js} +1 -1
- package/contexts/RHFormContext/{index.2ced89c0.js → index.b5e15835.js} +1 -1
- package/hooks/useFormAddEdit/{index.5f204081.js → index.9b6c5008.js} +2 -2
- package/hooks/useModal/{index.33e4befd.js → index.64d98763.js} +1 -1
- package/hooks/useTab/{index.bcbaa818.js → index.75c252f9.js} +1 -1
- package/index.js +122 -122
- package/package.json +1 -1
- package/{react-draggable.310e3387.js → react-draggable.df62ccbd.js} +1 -1
- package/{react-resizable.3755959b.js → react-resizable.c746880c.js} +2 -2
- package/styles/{DynamicFilter.557ee3a7.js → DynamicFilter.f317726e.js} +1 -1
- package/styles/{index.cabe6a64.js → index.1664b7ed.js} +8 -8
- package/vite-env.d.ts +4 -4
- /package/utils/{index.78d1638f.js → index.ebfbb70f.js} +0 -0
|
@@ -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.ebfbb70f.js";
|
|
5
|
+
import { ab as AppBarComercialRoot } from "../../../styles/index.1664b7ed.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.ebfbb70f.js";
|
|
5
|
+
import { ac as SectionCommercialRoot } from "../../../styles/index.1664b7ed.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.ebfbb70f.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.1664b7ed.js";
|
|
9
|
+
import { I as Icon } from "../../Icon/index.d82723ca.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.7bafa548.js";
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index.d44027cf.js";
|
|
14
|
+
import { P as Popover } from "../../mui_extended/Popover/index.ea936c4a.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.1664b7ed.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.1c9dc8a5.js";
|
|
9
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.b43ca9c9.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.d82723ca.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.9ab0137a.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.1664b7ed.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.1f89b011.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.451bc436.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.1664b7ed.js";
|
|
10
10
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.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.472191c2.js";
|
|
12
|
+
import { T as Typography } from "../../mui_extended/Typography/index.850bc036.js";
|
|
13
|
+
import { H as HelperText } from "../../HelperText/index.451bc436.js";
|
|
14
|
+
import { F as FieldLabel } from "../../FieldLabel/index.c191727a.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.b43ca9c9.js";
|
|
17
17
|
const componentName = "M4LRHFAutocomplete";
|
|
18
18
|
generateUtilityClasses(
|
|
19
19
|
componentName,
|
|
@@ -25,6 +25,8 @@ generateUtilityClasses(
|
|
|
25
25
|
"popper",
|
|
26
26
|
"skeletonRoot",
|
|
27
27
|
"skeletonContainerText",
|
|
28
|
+
"containerRefreshDown",
|
|
29
|
+
"iconRefresh",
|
|
28
30
|
"iconDown",
|
|
29
31
|
"variantInfo",
|
|
30
32
|
"isDisabled",
|
|
@@ -68,6 +70,8 @@ const useUtilityClasses = (ownerState) => {
|
|
|
68
70
|
],
|
|
69
71
|
skeletonRoot: ["skeletonRoot"],
|
|
70
72
|
skeletonContainerText: ["SkeletonContainerText"],
|
|
73
|
+
containerRefreshDown: ["containerRefreshDown"],
|
|
74
|
+
iconRefresh: ["iconRefresh"],
|
|
71
75
|
iconDown: ["iconDown"],
|
|
72
76
|
chip: [
|
|
73
77
|
"chip",
|
|
@@ -144,6 +148,7 @@ function ComponentTypeImage(props) {
|
|
|
144
148
|
multiple,
|
|
145
149
|
imageScale = true,
|
|
146
150
|
imageRepeat,
|
|
151
|
+
refresh,
|
|
147
152
|
...other
|
|
148
153
|
} = props;
|
|
149
154
|
const { getLabel } = useModuleDictionary();
|
|
@@ -160,7 +165,7 @@ function ComponentTypeImage(props) {
|
|
|
160
165
|
onClose(event, reason);
|
|
161
166
|
};
|
|
162
167
|
const onOpenLocal = (event) => {
|
|
163
|
-
setOpen(
|
|
168
|
+
setOpen((currentState) => !currentState);
|
|
164
169
|
if (onOpen)
|
|
165
170
|
onOpen(event);
|
|
166
171
|
};
|
|
@@ -264,7 +269,6 @@ function ComponentTypeImage(props) {
|
|
|
264
269
|
inputValue,
|
|
265
270
|
clearOnBlur: false,
|
|
266
271
|
PopperComponent: (popperProps) => {
|
|
267
|
-
console.log("popper debug");
|
|
268
272
|
return /* @__PURE__ */ jsx(
|
|
269
273
|
Popper,
|
|
270
274
|
{
|
|
@@ -330,16 +334,28 @@ function ComponentTypeImage(props) {
|
|
|
330
334
|
) : null,
|
|
331
335
|
params.InputProps.startAdornment
|
|
332
336
|
] }),
|
|
333
|
-
endAdornment: loading ? /* @__PURE__ */ jsx(CircularProgress, { color: "inherit", size: 18 }) : /* @__PURE__ */
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
337
|
+
endAdornment: loading ? /* @__PURE__ */ jsx(CircularProgress, { color: "inherit", size: 18 }) : /* @__PURE__ */ jsxs("div", { className: classes.containerRefreshDown, children: [
|
|
338
|
+
refresh && /* @__PURE__ */ jsx(
|
|
339
|
+
IconButton,
|
|
340
|
+
{
|
|
341
|
+
className: classes.iconRefresh,
|
|
342
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/RHFAutocompletarAsync/assets/icons/round_refresh.svg`,
|
|
343
|
+
onClick: () => refresh(),
|
|
344
|
+
disabled,
|
|
345
|
+
size
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
/* @__PURE__ */ jsx(
|
|
349
|
+
IconButton,
|
|
350
|
+
{
|
|
351
|
+
className: classes.iconDown,
|
|
352
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/RHFAutocompletarAsync/assets/icons/chevronDown.svg`,
|
|
353
|
+
onClick: (event) => onOpenLocal(event),
|
|
354
|
+
disabled,
|
|
355
|
+
size
|
|
356
|
+
}
|
|
357
|
+
)
|
|
358
|
+
] })
|
|
343
359
|
},
|
|
344
360
|
autoComplete: "off",
|
|
345
361
|
error: !!error,
|
|
@@ -402,6 +418,7 @@ function ComponentTypeText(props) {
|
|
|
402
418
|
mandatory,
|
|
403
419
|
mandatoryMessage,
|
|
404
420
|
multiple,
|
|
421
|
+
refresh,
|
|
405
422
|
...other
|
|
406
423
|
} = props;
|
|
407
424
|
const { getLabel } = useModuleDictionary();
|
|
@@ -417,7 +434,7 @@ function ComponentTypeText(props) {
|
|
|
417
434
|
onClose(event, reason);
|
|
418
435
|
};
|
|
419
436
|
const onOpenLocal = (event) => {
|
|
420
|
-
setOpen(
|
|
437
|
+
setOpen((currentState) => !currentState);
|
|
421
438
|
if (onOpen)
|
|
422
439
|
onOpen(event);
|
|
423
440
|
};
|
|
@@ -569,16 +586,28 @@ function ComponentTypeText(props) {
|
|
|
569
586
|
InputProps: {
|
|
570
587
|
...params.InputProps,
|
|
571
588
|
startAdornment: /* @__PURE__ */ jsx(Fragment, { children: params.InputProps.startAdornment }),
|
|
572
|
-
endAdornment: loading ? /* @__PURE__ */ jsx(CircularProgress, { color: "inherit", size: 18 }) : /* @__PURE__ */
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
589
|
+
endAdornment: loading ? /* @__PURE__ */ jsx(CircularProgress, { color: "inherit", size: 18 }) : /* @__PURE__ */ jsxs("div", { className: classes.containerRefreshDown, children: [
|
|
590
|
+
refresh && /* @__PURE__ */ jsx(
|
|
591
|
+
IconButton,
|
|
592
|
+
{
|
|
593
|
+
className: classes.iconRefresh,
|
|
594
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/RHFAutocompletarAsync/assets/icons/round_refresh.svg`,
|
|
595
|
+
onClick: () => refresh(),
|
|
596
|
+
disabled,
|
|
597
|
+
size
|
|
598
|
+
}
|
|
599
|
+
),
|
|
600
|
+
/* @__PURE__ */ jsx(
|
|
601
|
+
IconButton,
|
|
602
|
+
{
|
|
603
|
+
className: classes.iconDown,
|
|
604
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/RHFAutocompletarAsync/assets/icons/chevronDown.svg`,
|
|
605
|
+
onClick: (event) => onOpenLocal(event),
|
|
606
|
+
disabled,
|
|
607
|
+
size
|
|
608
|
+
}
|
|
609
|
+
)
|
|
610
|
+
] })
|
|
582
611
|
},
|
|
583
612
|
autoComplete: "off",
|
|
584
613
|
error: !!error,
|
|
@@ -18,6 +18,7 @@ export interface RHFAutocompleteBaseProps<T> extends Omit<TextFieldProps, 'label
|
|
|
18
18
|
skeletonWidth?: string | number;
|
|
19
19
|
skeletonHeight?: string | number;
|
|
20
20
|
loading?: boolean;
|
|
21
|
+
refresh?: () => void;
|
|
21
22
|
label?: string;
|
|
22
23
|
variant?: RHFAutocompleteVariants;
|
|
23
24
|
helperMessage?: string;
|
|
@@ -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.1664b7ed.js";
|
|
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.66b8a523.js";
|
|
10
10
|
const componentName = "M4LRHFAutocompleteAsync";
|
|
11
11
|
generateUtilityClasses(
|
|
12
12
|
componentName,
|
|
@@ -40,15 +40,18 @@ function ComponentTypeText(props) {
|
|
|
40
40
|
size,
|
|
41
41
|
isRemote = true,
|
|
42
42
|
onChangeFilterParms,
|
|
43
|
-
type,
|
|
44
43
|
...other
|
|
45
44
|
} = props;
|
|
46
45
|
const { networkOperation } = useNetwork();
|
|
47
46
|
const [options, setOptions] = useState([]);
|
|
48
|
-
const [
|
|
47
|
+
const [firstOpen, setFirstOpen] = useState(0);
|
|
49
48
|
const [loading, setIsloading] = useState(false);
|
|
49
|
+
const [newRefresh, setNewRefresh] = useState(0);
|
|
50
50
|
const [canLoadOptions, setCanLoadOptions] = useState(true);
|
|
51
51
|
const [filterParms, setFilterParms] = useState({});
|
|
52
|
+
const refresh = () => {
|
|
53
|
+
setNewRefresh((current) => current + 1);
|
|
54
|
+
};
|
|
52
55
|
const debouncedFilter = useCallback(
|
|
53
56
|
debounce(
|
|
54
57
|
(newFilterParms) => {
|
|
@@ -67,34 +70,34 @@ function ComponentTypeText(props) {
|
|
|
67
70
|
useEffect(() => {
|
|
68
71
|
setCanLoadOptions(true);
|
|
69
72
|
}, [parms, endPoint]);
|
|
70
|
-
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
+
const hanldeFirstOpen = () => {
|
|
74
|
+
if (firstOpen === 0) {
|
|
75
|
+
setFirstOpen(1);
|
|
73
76
|
}
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
};
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
if (!loading && canLoadOptions) {
|
|
80
|
+
setIsloading(true);
|
|
81
|
+
setOptions([]);
|
|
82
|
+
setCanLoadOptions(false);
|
|
83
|
+
networkOperation({
|
|
84
|
+
method: "GET",
|
|
85
|
+
endPoint,
|
|
86
|
+
timeout,
|
|
87
|
+
parms: { ...parms, ...filterParms },
|
|
88
|
+
isRemote
|
|
89
|
+
}).then((response) => {
|
|
90
|
+
const valueMaybeArray = getPropertyByString(response, resultField);
|
|
91
|
+
const newOptions = Array.isArray(valueMaybeArray) ? valueMaybeArray : [];
|
|
92
|
+
setOptions(newOptions);
|
|
93
|
+
}).finally(() => {
|
|
94
|
+
setIsloading(false);
|
|
95
|
+
setCanLoadOptions(true);
|
|
96
|
+
});
|
|
76
97
|
}
|
|
77
|
-
setIsloading(true);
|
|
78
|
-
setOptions([]);
|
|
79
|
-
setCanLoadOptions(false);
|
|
80
|
-
networkOperation({
|
|
81
|
-
method: "GET",
|
|
82
|
-
endPoint,
|
|
83
|
-
timeout,
|
|
84
|
-
parms: { ...parms, ...filterParms },
|
|
85
|
-
isRemote
|
|
86
|
-
}).then((response) => {
|
|
87
|
-
const valueMaybeArray = getPropertyByString(response, resultField);
|
|
88
|
-
const newOptions = Array.isArray(valueMaybeArray) ? valueMaybeArray : [];
|
|
89
|
-
setOptions(newOptions);
|
|
90
|
-
}).catch(() => {
|
|
91
|
-
setCanLoadOptions(true);
|
|
92
|
-
}).finally(() => {
|
|
93
|
-
setIsloading(false);
|
|
94
|
-
});
|
|
95
98
|
return () => {
|
|
96
99
|
};
|
|
97
|
-
}, [
|
|
100
|
+
}, [firstOpen, parms, filterParms, endPoint, newRefresh]);
|
|
98
101
|
const classes = useUtilityClasses();
|
|
99
102
|
return /* @__PURE__ */ jsx(
|
|
100
103
|
RHFAutocompleteAsyncRoot,
|
|
@@ -104,18 +107,13 @@ function ComponentTypeText(props) {
|
|
|
104
107
|
children: /* @__PURE__ */ jsx(
|
|
105
108
|
RHFAutocomplete,
|
|
106
109
|
{
|
|
107
|
-
type: "text",
|
|
108
110
|
name,
|
|
109
111
|
loading,
|
|
110
112
|
options,
|
|
111
113
|
onChangeFilterParmsLocal: onChangeFilterParms ? onChangeFilterParmsLocal : void 0,
|
|
112
114
|
size,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
onClose: () => {
|
|
117
|
-
setOpen(false);
|
|
118
|
-
},
|
|
115
|
+
refresh: () => refresh(),
|
|
116
|
+
onOpen: () => hanldeFirstOpen(),
|
|
119
117
|
...other
|
|
120
118
|
}
|
|
121
119
|
)
|
|
@@ -132,15 +130,18 @@ function ComponentTypeImage(props) {
|
|
|
132
130
|
size,
|
|
133
131
|
isRemote = true,
|
|
134
132
|
onChangeFilterParms,
|
|
135
|
-
type,
|
|
136
133
|
...other
|
|
137
134
|
} = props;
|
|
138
135
|
const { networkOperation } = useNetwork();
|
|
139
136
|
const [options, setOptions] = useState([]);
|
|
140
|
-
const [
|
|
137
|
+
const [firstOpen, setFirstOpen] = useState(0);
|
|
141
138
|
const [loading, setIsloading] = useState(false);
|
|
139
|
+
const [newRefresh, setNewRefresh] = useState(0);
|
|
142
140
|
const [canLoadOptions, setCanLoadOptions] = useState(true);
|
|
143
141
|
const [filterParms, setFilterParms] = useState({});
|
|
142
|
+
const refresh = () => {
|
|
143
|
+
setNewRefresh((current) => current + 1);
|
|
144
|
+
};
|
|
144
145
|
const debouncedFilter = useCallback(
|
|
145
146
|
debounce(
|
|
146
147
|
(newFilterParms) => {
|
|
@@ -159,34 +160,34 @@ function ComponentTypeImage(props) {
|
|
|
159
160
|
useEffect(() => {
|
|
160
161
|
setCanLoadOptions(true);
|
|
161
162
|
}, [parms, endPoint]);
|
|
162
|
-
|
|
163
|
-
if (
|
|
164
|
-
|
|
163
|
+
const hanldeFirstOpen = () => {
|
|
164
|
+
if (firstOpen === 0) {
|
|
165
|
+
setFirstOpen(1);
|
|
165
166
|
}
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
};
|
|
168
|
+
useEffect(() => {
|
|
169
|
+
if (!loading && canLoadOptions) {
|
|
170
|
+
setIsloading(true);
|
|
171
|
+
setOptions([]);
|
|
172
|
+
setCanLoadOptions(false);
|
|
173
|
+
networkOperation({
|
|
174
|
+
method: "GET",
|
|
175
|
+
endPoint,
|
|
176
|
+
timeout,
|
|
177
|
+
parms: { ...parms, ...filterParms },
|
|
178
|
+
isRemote
|
|
179
|
+
}).then((response) => {
|
|
180
|
+
const valueMaybeArray = getPropertyByString(response, resultField);
|
|
181
|
+
const newOptions = Array.isArray(valueMaybeArray) ? valueMaybeArray : [];
|
|
182
|
+
setOptions(newOptions);
|
|
183
|
+
}).finally(() => {
|
|
184
|
+
setIsloading(false);
|
|
185
|
+
setCanLoadOptions(true);
|
|
186
|
+
});
|
|
168
187
|
}
|
|
169
|
-
setIsloading(true);
|
|
170
|
-
setOptions([]);
|
|
171
|
-
setCanLoadOptions(false);
|
|
172
|
-
networkOperation({
|
|
173
|
-
method: "GET",
|
|
174
|
-
endPoint,
|
|
175
|
-
timeout,
|
|
176
|
-
parms: { ...parms, ...filterParms },
|
|
177
|
-
isRemote
|
|
178
|
-
}).then((response) => {
|
|
179
|
-
const valueMaybeArray = getPropertyByString(response, resultField);
|
|
180
|
-
const newOptions = Array.isArray(valueMaybeArray) ? valueMaybeArray : [];
|
|
181
|
-
setOptions(newOptions);
|
|
182
|
-
}).catch(() => {
|
|
183
|
-
setCanLoadOptions(true);
|
|
184
|
-
}).finally(() => {
|
|
185
|
-
setIsloading(false);
|
|
186
|
-
});
|
|
187
188
|
return () => {
|
|
188
189
|
};
|
|
189
|
-
}, [
|
|
190
|
+
}, [firstOpen, parms, filterParms, endPoint, newRefresh]);
|
|
190
191
|
const classes = useUtilityClasses();
|
|
191
192
|
return /* @__PURE__ */ jsx(
|
|
192
193
|
RHFAutocompleteAsyncRoot,
|
|
@@ -196,18 +197,13 @@ function ComponentTypeImage(props) {
|
|
|
196
197
|
children: /* @__PURE__ */ jsx(
|
|
197
198
|
RHFAutocomplete,
|
|
198
199
|
{
|
|
199
|
-
type: "image",
|
|
200
200
|
name,
|
|
201
201
|
loading,
|
|
202
202
|
options,
|
|
203
203
|
onChangeFilterParmsLocal: onChangeFilterParms ? onChangeFilterParmsLocal : void 0,
|
|
204
204
|
size,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
onClose: () => {
|
|
209
|
-
setOpen(false);
|
|
210
|
-
},
|
|
205
|
+
refresh: () => refresh(),
|
|
206
|
+
onOpen: () => hanldeFirstOpen(),
|
|
211
207
|
...other
|
|
212
208
|
}
|
|
213
209
|
)
|
package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RHFAutocompleteAsyncBaseProps } from
|
|
2
|
-
import { ImageProps, RHFAutocompleteBaseProps } from
|
|
1
|
+
import { RHFAutocompleteAsyncBaseProps } from '../../types';
|
|
2
|
+
import { ImageProps, RHFAutocompleteBaseProps } from '../../../RHFAutocomplete/types';
|
|
3
3
|
export declare function ComponentTypeImage<T>(props: Omit<RHFAutocompleteBaseProps<T>, 'options' | 'get'> & ImageProps<T> & RHFAutocompleteAsyncBaseProps): import("react/jsx-runtime").JSX.Element;
|
package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ComponentTextProps } from
|
|
1
|
+
import { ComponentTextProps } from '../../types';
|
|
2
2
|
export declare function ComponentTypeText<T>(props: ComponentTextProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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.1664b7ed.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.451bc436.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.a68237b1.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.451bc436.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.1664b7ed.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.c191727a.js";
|
|
14
|
+
import { P as Popover } from "../../mui_extended/Popover/index.ea936c4a.js";
|
|
15
|
+
import { I as Icon } from "../../Icon/index.d82723ca.js";
|
|
16
|
+
import { B as Button } from "../../mui_extended/Button/index.d44027cf.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.1664b7ed.js";
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index.451bc436.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.c191727a.js";
|
|
15
|
+
import { I as Icon } from "../../Icon/index.d82723ca.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.1664b7ed.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.451bc436.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.c191727a.js";
|
|
10
|
+
import { P as Period } from "../../Period/index.cd547147.js";
|
|
11
11
|
const componentName = "M4LRHFPeriod";
|
|
12
12
|
generateUtilityClasses(componentName, [
|
|
13
13
|
"root",
|
|
@@ -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.d82723ca.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.b43ca9c9.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.1664b7ed.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.ebfbb70f.js";
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index.451bc436.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.c191727a.js";
|
|
15
15
|
const RHFTEXTFIELD_ROOT_TEST_ID = "RHFTextFieldRoot";
|
|
16
16
|
const RHFTEXTFIELD_INPUT_TEST_ID = "RHFTextFieldInput";
|
|
17
17
|
const RHFTEXTFIELD_PREFIX = "RHFTextField";
|