@m4l/components 2.0.3 → 2.0.5
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/components/AccountPopover/{index.b8f938bc.js → index.09362223.js} +3 -3
- package/components/AppBar/{index.a6c11abf.js → index.ad5dd74a.js} +4 -4
- package/components/BaseModule/{index.a2748ad4.js → index.0255d08a.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.c9aae474.js → index.f0e87113.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.4f465b17.js → index.19e9426c.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.5b2f9ea3.js → index.77a6fe72.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.606f6965.js → index.f35bee5a.js} +2 -2
- package/components/CommonActions/components/Actions/{index.7ddd8fed.js → index.a31243c7.js} +2 -2
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.d53a08b2.js → index.2dd9a083.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.24871f1a.js → index.989012eb.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.e2028765.js → index.64406a72.js} +1 -1
- package/components/DataGrid/formatters/{index.9f76fa68.js → index.23ae62ba.js} +2 -2
- package/components/DataGrid/{index.83acf2ec.js → index.3b0b896f.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.b2e43df5.js → index.862a2ef4.js} +11 -11
- package/components/DragResizeWindow/{index.71f98a3f.js → index.2d36bbda.js} +3 -3
- package/components/DynamicFilter/{dictionary.0ca834c5.js → dictionary.ad954460.js} +2 -2
- package/components/DynamicFilter/{index.dd9542f7.js → index.4747acfe.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots.fc8ba331.js → dynamicFilterSlots.345fe83a.js} +6 -6
- package/components/DynamicFilter/store/{index.a3881e3f.js → index.8e24684e.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.2c1b4665.js → index.f68c42e6.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.5a48a3f9.js → index.3508775b.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.8cd8e454.js → index.5297577d.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.942393bc.js → index.cce07177.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.6e5db1db.js → index.1fafe2e3.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.8be39e45.js → index.b0b906a1.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.8afc53ef.js → index.1db0c059.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.4c275e36.js → index.7accc2b1.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.25df1e76.js → index.8f88f9d0.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.69d8bda3.js → index.bf41bca8.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.2efc775c.js → index.a2976024.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.1796f1dd.js → index.f247b95a.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.d7e77279.js → index.1467729b.js} +2 -2
- package/components/FieldLabel/{index.bcb6f05d.js → index.c35e5984.js} +4 -4
- package/components/GridLayout/{index.fba6e114.js → index.991206c1.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.24adfcc1.js → index.50663f91.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.41358259.js → index.c10c0af7.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.b2a45435.js → index.e4ef4f10.js} +1 -1
- package/components/HelperText/{index.1d152104.js → index.c0fc2bfb.js} +2 -2
- package/components/Icon/{index.e79efafa.js → index.0378f7b8.js} +3 -3
- package/components/Image/{index.27d3bf2a.js → index.7df7536b.js} +2 -2
- package/components/LanguagePopover/{index.73b2da28.js → index.12cbf486.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.49f4fbd4.js → index.49e62c03.js} +2 -2
- package/components/LoadingError/{index.a4ad865d.js → index.efecda3d.js} +5 -5
- package/components/MFIsolationApp/{index.88ea1147.js → index.71823b4e.js} +2 -2
- package/components/MFLoader/{index.0e50e984.js → index.2b4b60aa.js} +2 -2
- package/components/ModalDialog/{index.de979aa7.js → index.3cf272e0.js} +4 -4
- package/components/NavLink/{index.1229fbb2.js → index.34d04791.js} +2 -2
- package/components/NoItemSelected/{index.4c345906.js → index.6d3880da.js} +1 -1
- package/components/ObjectLogs/{index.af581566.js → index.11c77d6c.js} +9 -9
- package/components/PDFViewer/{index.46aab44b.js → index.c119e76a.js} +2 -2
- package/components/Page/{index.37b8df68.js → index.8b261573.js} +1 -1
- package/components/PaperForm/{index.471089c1.js → index.1b7bf005.js} +2 -2
- package/components/Period/{index.c6c42384.js → index.d08a64dd.js} +4 -4
- package/components/PrintingSystem/{index.7da645cd.js → index.64fb8f9e.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.94eafe80.js → index.58e31c42.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.d1d4df7c.js → index.cfe2f5ae.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.99d66340.js → index.ec939491.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.505dfe08.js → index.9d0d60c7.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.a191c50e.js → index.1f05914c.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.56ddc2c3.js → index.9a488ca7.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.e319581e.js → index.1d4ed8ed.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.d0ddaaf8.js → index.d39efc69.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.6c8ec606.js → index.63c25d75.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.b4bf6aa2.js → index.e6e71c65.js} +1 -1
- package/components/PropertyValue/{index.0f4c6047.js → index.4584a224.js} +3 -3
- package/components/Resizeable/{index.cec51d22.js → index.c48bfe53.js} +1 -1
- package/components/ScrollBar/{index.50d66dbb.js → index.3168cc7d.js} +1 -1
- package/components/SideBar/{index.6b4343bd.js → index.c6664730.js} +6 -6
- package/components/SplitLayout/{index.05f12155.js → index.f73f5f71.js} +1 -1
- package/components/ToastContainer/{index.aeb842ca.js → index.404d68c0.js} +3 -3
- package/components/animate/LoadingScreen/{index.53f75ce6.js → index.d494c5f4.js} +1 -1
- package/components/animate/{index.c32350f3.js → index.35e70d72.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.eb7f0465.js → index.daf5521f.js} +15 -15
- package/components/areas/components/AreasViewer/{index.30c06d82.js → index.dab7e9c9.js} +15 -15
- package/components/areas/contexts/AreasContext/{index.58db339a.js → index.43aadacb.js} +4 -4
- package/components/areas/hooks/useAreas/{index.b155b0dd.js → index.ed67113b.js} +1 -1
- package/components/commercial/AppBarCommercial/{index.eda47057.js → index.4ab283a9.js} +2 -2
- package/components/commercial/SectionCommercial/{index.f04720cd.js → index.5e808beb.js} +2 -2
- package/components/commercial/TopBar/{index.09698b46.js → index.d5fc459d.js} +6 -6
- package/components/commercial/{index.f2615c66.js → index.b17673f0.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.710d2b28.js → index.d792c9f4.js} +2 -2
- package/components/formatters/{index.6ee697c8.js → index.e3314ffd.js} +2 -2
- package/components/hook-form/HelperError/{index.aa7d32dc.js → index.d37b96f4.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.8f569ae5.js → index.e8d47108.js} +58 -29
- package/components/hook-form/RHFAutocomplete/types.d.ts +1 -0
- package/components/hook-form/RHFAutocompleteAsync/{index.9dcde1ca.js → index.10e23560.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.c83df993.js → index.ab66cde5.js} +3 -3
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/{index.959c3cad.js → index.8224d965.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.cf48b018.js → index.af136c35.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.738d7bb0.js → index.cdad3414.js} +4 -4
- package/components/hook-form/RHFRadioGroup/{index.242cda5c.js → index.a3e56551.js} +1 -1
- package/components/hook-form/RHFTextField/{index.9fb17e41.js → index.03fa7ae0.js} +5 -5
- package/components/hook-form/RHFUpload/{index.699268ca.js → index.2209f3a8.js} +5 -5
- package/components/maps/components/GpsTools/{index.c4b62b00.js → index.2f9fdb32.js} +22 -22
- package/components/maps/components/Map/{index.4308fef5.js → index.1130b9e0.js} +13 -13
- package/components/modal/{WindowBase.36d9a627.js → WindowBase.26cb9e19.js} +3 -3
- package/components/modal/{WindowConfirm.402ad54e.js → WindowConfirm.ffee7475.js} +6 -6
- package/components/mui_extended/Accordion/{index.51a15c0e.js → index.56b0bded.js} +4 -4
- package/components/mui_extended/Avatar/{index.79c26d4f.js → index.9e8c8487.js} +1 -1
- package/components/mui_extended/Badge/{index.17eae617.js → index.ef803787.js} +1 -1
- package/components/mui_extended/Button/{index.ab6e0ce4.js → index.67e1ea7f.js} +3 -3
- package/components/mui_extended/Button/styles.d.ts +1 -1
- package/components/mui_extended/{CheckBox.e80fe5f3.js → CheckBox.71c728f8.js} +2 -2
- package/components/mui_extended/IconButton/{index.f0c09b00.js → index.4a12de37.js} +2 -2
- package/components/mui_extended/MenuActions/{index.2597f410.js → index.b19042b5.js} +5 -5
- package/components/mui_extended/Pager/{index.3f25697d.js → index.8da962a5.js} +4 -4
- package/components/mui_extended/Popover/{index.b0bfd9c7.js → index.71389b6e.js} +1 -1
- package/components/mui_extended/Stack/{index.5c75c025.js → index.27af6301.js} +1 -1
- package/components/mui_extended/Tab/{index.5269b568.js → index.0469b44f.js} +1 -1
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/ToggleButton/{index.1317263c.js → index.96ae2da5.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.2e766f5c.js → index.a446e702.js} +1 -1
- package/components/mui_extended/Typography/{index.4ba02863.js → index.978f5554.js} +1 -1
- package/components/popups/PopupsViewer/{index.ea8cf50a.js → index.a4d6eb40.js} +4 -4
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots.2dab56ff.js → popupsViewerSlots.ff398b8d.js} +2 -2
- package/contexts/ModalContext/{index.6e8cbe8a.js → index.49e5d904.js} +1 -1
- package/contexts/RHFormContext/{index.390245ca.js → index.5f9c1c0e.js} +1 -1
- package/hooks/useFormAddEdit/{index.a9d5298d.js → index.000bf636.js} +2 -2
- package/hooks/useModal/{index.a9bf26b8.js → index.3c70915b.js} +1 -1
- package/hooks/useTab/{index.f0bd61d3.js → index.0e62c5a7.js} +1 -1
- package/index.js +122 -122
- package/package.json +1 -1
- package/{react-draggable.1c1ba224.js → react-draggable.df62ccbd.js} +1 -1
- package/{react-resizable.a59c14f4.js → react-resizable.c746880c.js} +2 -2
- package/styles/{DynamicFilter.27c16026.js → DynamicFilter.f317726e.js} +1 -1
- package/styles/{index.dbc66bb9.js → index.b0676d6a.js} +19 -11
- /package/utils/{index.14912462.js → index.ebfbb70f.js} +0 -0
|
@@ -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.dab7e9c9.js";
|
|
10
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.daf5521f.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.c10c0af7.js";
|
|
14
14
|
import { debounce, cloneDeep } from "lodash";
|
|
15
|
-
import { A as isEqualLayouts } from "../../../GridLayout/index.
|
|
15
|
+
import { A as isEqualLayouts } from "../../../GridLayout/index.991206c1.js";
|
|
16
16
|
const PADDING_GRIDLAYOUT = 11;
|
|
17
17
|
const MARGIN_GRIDLAYOUT = 11;
|
|
18
18
|
const DEBOUCED_SAVE_TIME = 500;
|
|
@@ -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.43aadacb.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.ebfbb70f.js";
|
|
5
|
+
import { ab as AppBarComercialRoot } from "../../../styles/index.b0676d6a.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.b0676d6a.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.b0676d6a.js";
|
|
9
|
+
import { I as Icon } from "../../Icon/index.0378f7b8.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.56b0bded.js";
|
|
13
|
+
import { B as Button } from "../../mui_extended/Button/index.67e1ea7f.js";
|
|
14
|
+
import { P as Popover } from "../../mui_extended/Popover/index.71389b6e.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.b0676d6a.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.c6664730.js";
|
|
9
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.4a12de37.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.0378f7b8.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.e3314ffd.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.b0676d6a.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.d792c9f4.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.c0fc2bfb.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.b0676d6a.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.7df7536b.js";
|
|
12
|
+
import { T as Typography } from "../../mui_extended/Typography/index.978f5554.js";
|
|
13
|
+
import { H as HelperText } from "../../HelperText/index.c0fc2bfb.js";
|
|
14
|
+
import { F as FieldLabel } from "../../FieldLabel/index.c35e5984.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.4a12de37.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.b0676d6a.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.e8d47108.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.b0676d6a.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.c0fc2bfb.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.71c728f8.js";
|
|
12
12
|
generateUtilityClasses("M4LRHFCheckbox", [
|
|
13
13
|
"root",
|
|
14
14
|
"checkTypography",
|
|
@@ -3,5 +3,5 @@ export declare const RHFCheckboxRoot: import("@emotion/styled").StyledComponent<
|
|
|
3
3
|
export declare const WrapperSKTRHFCheckbox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
4
|
export declare const SKTCheckSkeleton: import("@emotion/styled").StyledComponent<import("@mui/material").SkeletonOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
5
5
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
6
|
-
}, "style" | "children" | "width" | "className" | "height" | "animation" | "
|
|
6
|
+
}, "style" | "children" | "width" | "className" | "height" | "animation" | "variant" | "sx" | "classes"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
7
7
|
export declare const ContainerCheckTypography: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -3,17 +3,17 @@ import { useState } from "react";
|
|
|
3
3
|
import { useFormContext, useWatch, Controller } from "react-hook-form";
|
|
4
4
|
import { useModuleSkeleton, useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
5
5
|
import { SketchPicker } from "react-color";
|
|
6
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
6
|
+
import { H as HelperText } from "../../HelperText/index.c0fc2bfb.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.b0676d6a.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.c35e5984.js";
|
|
14
|
+
import { P as Popover } from "../../mui_extended/Popover/index.71389b6e.js";
|
|
15
|
+
import { I as Icon } from "../../Icon/index.0378f7b8.js";
|
|
16
|
+
import { B as Button } from "../../mui_extended/Button/index.67e1ea7f.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.b0676d6a.js";
|
|
11
|
+
import { H as HelperText } from "../../HelperText/index.c0fc2bfb.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.c35e5984.js";
|
|
15
|
+
import { I as Icon } from "../../Icon/index.0378f7b8.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.b0676d6a.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.c0fc2bfb.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.c35e5984.js";
|
|
10
|
+
import { P as Period } from "../../Period/index.d08a64dd.js";
|
|
11
11
|
const componentName = "M4LRHFPeriod";
|
|
12
12
|
generateUtilityClasses(componentName, [
|
|
13
13
|
"root",
|