@m4l/components 0.2.3 → 0.2.4
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 +16 -4
- package/{commonjs.565e6834.js → commonjs.333e55c7.js} +5 -0
- package/components/AccountPopover/{index.3f67361e.js → index.2604c389.js} +2 -4
- package/components/AccountPopover/index.d.ts +1 -0
- package/components/AppBar/AppBar.d.ts +24 -0
- package/components/AppBar/classes/index.d.ts +2 -0
- package/components/AppBar/classes/types.d.ts +2 -0
- package/components/AppBar/{index.f78b52c7.js → index.9522f237.js} +26 -5
- package/components/AppBar/types.d.ts +14 -0
- package/components/CommonActions/components/ActionCancel/{index.5916fb86.js → index.06539086.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.dbd002ab.js → index.33fc6c79.js} +5 -14
- package/components/CommonActions/components/ActionFormIntro/{index.c7acf718.js → index.5a719043.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.789d82ed.js → index.3e8a2e60.js} +2 -2
- package/components/CommonActions/components/Actions/{index.ccf731c1.js → index.2f6286eb.js} +1 -1
- package/components/DataGrid/formatters/columnPointsFormatter/{index.5e645334.js → index.a19b7b90.js} +1 -1
- package/components/DataGrid/{index.71fae988.js → index.8fbcf147.js} +8 -9
- package/components/DataGrid/subcomponents/Actions/{index.ea3fb0b2.js → index.bad681dc.js} +9 -9
- package/components/DraggableWindow/{index.8f423ed7.js → index.f9f067bd.js} +1 -1
- package/components/DynamicFilter/classes/index.d.ts +1 -1
- package/components/DynamicFilter/classes/types.d.ts +1 -0
- package/components/DynamicFilter/{index.69c2e381.js → index.cd7691e0.js} +17 -13
- package/components/GridLayout/{index.4a245d9e.js → index.e8c04242.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.ea745285.js → index.4d38f12e.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.edb59c22.js → index.e25df1dc.js} +1 -1
- package/components/Icon/index.05984e7f.js +248 -0
- package/components/Icon/types.d.ts +1 -0
- package/components/Image/{index.9799dfc0.js → index.bf37e923.js} +46 -4
- package/components/Image/types.d.ts +2 -2
- package/components/LanguagePopover/{index.b8fd6ccc.js → index.5ff37dbf.js} +2 -2
- package/components/LinearProgressIndeterminate/{index.c46da124.js → index.a0ad2d9e.js} +1 -1
- package/components/LoadingError/{index.19b6eeb6.js → index.fabad214.js} +3 -3
- package/components/MFLoader/{index.56cd1993.js → index.7b4ee2a4.js} +1 -1
- package/components/ModalDialog/{index.ec55087e.js → index.89e26413.js} +4 -4
- package/components/NoItemSelected/{index.8a2a13f8.js → index.7db73e77.js} +1 -1
- package/components/ObjectLogs/{index.7150b3a9.js → index.9c353020.js} +7 -7
- package/components/PDFViewer/PDFViewer.d.ts +2 -0
- package/components/PDFViewer/classes/constants.d.ts +1 -0
- package/components/PDFViewer/classes/index.d.ts +7 -0
- package/components/PDFViewer/classes/types.d.ts +7 -0
- package/components/PDFViewer/index.5c2db67a.js +63 -0
- package/components/PDFViewer/index.d.ts +1 -0
- package/components/PDFViewer/types.d.ts +3 -0
- package/components/Page/{index.49d18c85.js → index.710cb16f.js} +1 -1
- package/components/PaperForm/{index.637c8cb4.js → index.7ea3883f.js} +1 -1
- package/components/Period/{index.c964884f.js → index.0aa8e507.js} +2 -2
- package/components/PrintingSystem/{index.d1fd7818.js → index.ed3b22b7.js} +15 -43
- package/components/PrintingSystem/subcomponents/BodyNode/{index.f6410daa.js → index.7acc6016.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.6b30abe0.js → index.e4a23bdd.js} +4 -4
- package/components/PrintingSystem/subcomponents/DividerNode/{index.dcac3bc0.js → index.16fff262.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.dd21921e.js → index.6c67dec0.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.eb5ebe06.js → index.f466062b.js} +4 -4
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.48e8769c.js → index.77d3d39a.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.ccec72dc.js → index.2a3d54a3.js} +4 -4
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.807e0343.js → index.e71ad971.js} +1 -1
- package/components/PrintingSystem/subcomponents/QRImageNode/index.d.ts +2 -0
- package/components/PrintingSystem/subcomponents/QRImageNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/SectionNode/{index.622df623.js → index.ce4f6d16.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.f06ac3d5.js → index.850d20a1.js} +3 -3
- package/components/PrintingSystem/types.d.ts +10 -1
- package/components/PropertyValue/classes/index.d.ts +1 -1
- package/components/PropertyValue/classes/types.d.ts +4 -1
- package/components/PropertyValue/index.37d91d0c.js +206 -0
- package/components/PropertyValue/types.d.ts +5 -7
- package/components/Resizeable/{index.8c53c1fa.js → index.6478d7d8.js} +1 -1
- package/components/ScrollBar/{index.65bb2930.js → index.010f1b9d.js} +5 -1
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/{index.83ee1067.js → index.58d29b84.js} +12 -12
- package/components/SideBar/types.d.ts +3 -3
- package/components/SplitLayout/{index.9ef430f6.js → index.30fd5861.js} +1 -1
- package/components/ToastContainer/ToastContainer.d.ts +2 -0
- package/components/ToastContainer/classes/constants.d.ts +1 -0
- package/components/ToastContainer/classes/index.d.ts +8 -0
- package/components/ToastContainer/classes/types.d.ts +9 -0
- package/components/ToastContainer/index.d.ts +2 -0
- package/components/ToastContainer/index.ed440301.js +87 -0
- package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +2 -0
- package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +5 -0
- package/components/ToastContainer/types.d.ts +4 -0
- package/components/areas/components/AreasAdmin/{index.90da0626.js → index.a14ba797.js} +12 -12
- package/components/areas/components/AreasViewer/{index.eb166eca.js → index.c4545f2d.js} +15 -15
- package/components/areas/contexts/AreasContext/{index.1c3f87a7.js → index.54893ef7.js} +4 -4
- package/components/areas/hooks/useAreas/{index.58ac16d2.js → index.a15b3d9c.js} +1 -1
- package/components/formatters/BooleanFormatter/{index.fffdef5e.js → index.4f3cbdce.js} +2 -2
- package/components/formatters/PointsFormatter/{index.80a4e414.js → index.5c94c5e8.js} +2 -2
- package/components/formatters/PointsFormatter/index.d.ts +1 -1
- package/components/formatters/{index.7ee9ae5d.js → index.4ca6946d.js} +1 -1
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/{index.31e92edb.js → index.0ce87ac3.js} +26 -35
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +1 -2
- package/components/hook-form/RHFAutocomplete/types.d.ts +8 -3
- package/components/hook-form/RHFAutocompleteAsync/{index.6c5648f7.js → index.57789d3a.js} +1 -1
- package/components/hook-form/RHFColorPicker/classes/constants.d.ts +1 -0
- package/components/hook-form/RHFColorPicker/classes/index.d.ts +11 -0
- package/components/hook-form/RHFColorPicker/classes/types.d.ts +11 -0
- package/components/hook-form/RHFColorPicker/index.d.ts +6 -0
- package/components/hook-form/RHFColorPicker/index.d00a2b53.js +150 -0
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +1 -0
- package/components/hook-form/RHFColorPicker/types.d.ts +5 -0
- package/components/hook-form/RHFDateTime/{index.a5ba00d5.js → index.ae5d3a39.js} +1 -1
- package/components/hook-form/RHFDateTime/types.d.ts +0 -1
- package/components/hook-form/RHFPeriod/{index.fd29d20c.js → index.ae9bcf41.js} +1 -1
- package/components/hook-form/RHFTextField/{index.22203742.js → index.80cc07e0.js} +2 -2
- package/components/hook-form/RHFUpload/{index.aef0f459.js → index.587aac00.js} +4 -4
- package/components/index.d.ts +2 -0
- package/components/maps/components/GpsTools/{index.ed49dc90.js → index.889b0c39.js} +17 -17
- package/components/maps/components/Map/{index.9fcc381d.js → index.665e5c5d.js} +4 -4
- package/components/modal/{WindowBase.2f29424e.js → WindowBase.ea17cf20.js} +3 -3
- package/components/modal/{WindowConfirm.1d1d9cd2.js → WindowConfirm.19ddbd5d.js} +6 -6
- package/components/mui_extended/Accordion/{index.c8c7d392.js → index.b9b427d7.js} +3 -3
- package/components/mui_extended/Button/classes/types.d.ts +2 -0
- package/components/mui_extended/Button/{index.bd3371a3.js → index.570fd3a4.js} +3 -3
- package/components/mui_extended/IconButton/{index.dd9f297b.js → index.26de70bd.js} +1 -1
- package/components/mui_extended/LoadingButton/classes/constants.d.ts +1 -1
- package/components/mui_extended/MenuActions/{index.46c5f7c7.js → index.8c02ff61.js} +2 -2
- package/components/mui_extended/Pager/{index.e4e66ac8.js → index.5629e82b.js} +1 -1
- package/components/mui_extended/Tab/{index.a85b2dab.js → index.724d5948.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.b030c4ec.js → index.21a1f8e5.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.e0854091.js → index.00f13c40.js} +1 -1
- package/contexts/ModalContext/{index.436c2938.js → index.b39d303d.js} +1 -1
- package/hooks/useFormAddEdit/{index.16083a43.js → index.32aa4f64.js} +2 -2
- package/hooks/useModal/{index.05d1821e.js → index.abdc0962.js} +1 -1
- package/hooks/useTab/{index.19c8a409.js → index.991b13a7.js} +1 -1
- package/index.js +99 -84
- package/node_modules.8f15d11f.js +6921 -0
- package/package.json +5 -2
- package/{react-draggable.e4725f3a.js → react-draggable.ee21cb7e.js} +4 -4
- package/{react-json-view.57125fcf.js → react-json-view.5636414a.js} +1 -1
- package/{react-resizable.c07d63fb.js → react-resizable.ee028152.js} +5 -5
- package/{react-splitter-layout.8b1655c8.js → react-splitter-layout.c5d98bf7.js} +3 -3
- package/{vendor.384f1182.js → vendor.8f8b0ac9.js} +62 -60
- package/components/Icon/index.f1161f32.js +0 -147
- package/components/PrintingSystem/utils/getEvalValue/index.d.ts +0 -1
- package/components/PropertyValue/index.8fcce0c2.js +0 -220
- package/components/PropertyValue/skeleton.d.ts +0 -2
- package/components/hook-form/RHFColorPicker/index.259b6f38.js +0 -61
- /package/components/GridLayout/subcomponents/{Griditem → GridItem}/index.d.ts +0 -0
- /package/components/GridLayout/subcomponents/{Griditem → GridItem}/types.d.ts +0 -0
- /package/utils/{index.6469f148.js → index.de903261.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LToastContainer";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getToastClassesByState } from ".";
|
|
2
|
+
export interface ToastClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
toastMessageContainer: string;
|
|
5
|
+
toastMessageIcon: string;
|
|
6
|
+
toastMessageInfo: string;
|
|
7
|
+
}
|
|
8
|
+
export declare type ToastClassesKey = keyof ToastClassesType;
|
|
9
|
+
export declare type Classes = ReturnType<typeof getToastClassesByState>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { styled, generateUtilityClasses } from "@mui/material";
|
|
2
|
+
import { A } from "../../node_modules.8f15d11f.js";
|
|
3
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
+
import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
|
|
6
|
+
import { useEnvironment } from "@m4l/core";
|
|
7
|
+
import { useMemo } from "react";
|
|
8
|
+
import { I as Icon } from "../Icon/index.05984e7f.js";
|
|
9
|
+
const ToastContainerRoot = styled("div")(({ theme }) => ({
|
|
10
|
+
...theme.components?.M4LToastContainer?.styleOverrides
|
|
11
|
+
}));
|
|
12
|
+
const componentName = "M4LToastContainer";
|
|
13
|
+
const toastClasses = generateUtilityClasses(
|
|
14
|
+
componentName,
|
|
15
|
+
[
|
|
16
|
+
"root",
|
|
17
|
+
"toastMessageContainer",
|
|
18
|
+
"toastMessageIcon",
|
|
19
|
+
"toastMessageInfo"
|
|
20
|
+
]
|
|
21
|
+
);
|
|
22
|
+
const getToastClassesByState = () => {
|
|
23
|
+
const slots = {
|
|
24
|
+
root: ["root"],
|
|
25
|
+
toastMessageContainer: ["toastMessageContainer"],
|
|
26
|
+
toastMessageIcon: ["toastMessageIcon"],
|
|
27
|
+
toastMessageInfo: ["toastMessageInfo"]
|
|
28
|
+
};
|
|
29
|
+
const composedClasses = unstable_composeClasses(slots, getComponentUtilityClass(componentName), {});
|
|
30
|
+
return {
|
|
31
|
+
...composedClasses
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
const ToastContainer = (props) => {
|
|
35
|
+
const {
|
|
36
|
+
children
|
|
37
|
+
} = props;
|
|
38
|
+
const classes = getToastClassesByState();
|
|
39
|
+
return /* @__PURE__ */ jsxs(ToastContainerRoot, {
|
|
40
|
+
className: classes.root,
|
|
41
|
+
children: [/* @__PURE__ */ jsx(A, {}), children]
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
const ToastMessage = (props) => {
|
|
45
|
+
const {
|
|
46
|
+
messageType,
|
|
47
|
+
children
|
|
48
|
+
} = props;
|
|
49
|
+
const {
|
|
50
|
+
host_static_assets,
|
|
51
|
+
environment_assets
|
|
52
|
+
} = useEnvironment();
|
|
53
|
+
const iconSuccess = `${host_static_assets}/${environment_assets}/frontend/components/toast/assets/icons/success.svg`;
|
|
54
|
+
const iconInfo = `${host_static_assets}/${environment_assets}/frontend/components/toast/assets/icons/info.svg`;
|
|
55
|
+
const iconWarning = `${host_static_assets}/${environment_assets}/frontend/components/toast/assets/icons/warning.svg`;
|
|
56
|
+
const iconError = `${host_static_assets}/${environment_assets}/frontend/components/toast/assets/icons/error.svg`;
|
|
57
|
+
const finalIcon = useMemo(() => {
|
|
58
|
+
switch (messageType) {
|
|
59
|
+
case "info":
|
|
60
|
+
return iconInfo;
|
|
61
|
+
case "success":
|
|
62
|
+
return iconSuccess;
|
|
63
|
+
case "warning":
|
|
64
|
+
return iconWarning;
|
|
65
|
+
case "error":
|
|
66
|
+
return iconError;
|
|
67
|
+
default:
|
|
68
|
+
return "";
|
|
69
|
+
}
|
|
70
|
+
}, [messageType]);
|
|
71
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
72
|
+
className: toastClasses.toastMessageContainer,
|
|
73
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
74
|
+
className: toastClasses.toastMessageIcon,
|
|
75
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
76
|
+
src: finalIcon
|
|
77
|
+
})
|
|
78
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
79
|
+
className: toastClasses.toastMessageInfo,
|
|
80
|
+
children
|
|
81
|
+
})]
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
ToastContainer as T,
|
|
86
|
+
ToastMessage as a
|
|
87
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
1
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.a15b3d9c.js";
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { useState, useRef, useMemo } from "react";
|
|
4
4
|
import * as Yup from "yup";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { generateUtilityClasses, useTheme } from "@mui/material";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
8
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.de903261.js";
|
|
9
9
|
import { A as AREAS_ADMIN_CLASS_NAME } from "../../constants.66529246.js";
|
|
10
10
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
11
11
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
@@ -13,19 +13,19 @@ import { styled } from "@mui/material/styles";
|
|
|
13
13
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
14
|
import { shallow } from "zustand/shallow";
|
|
15
15
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
16
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
17
|
-
import { P as Popover } from "../../../mui_extended/Popover/index.b3eca6b1.js";
|
|
16
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.8c02ff61.js";
|
|
18
17
|
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.7769076a.js";
|
|
19
|
-
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.
|
|
20
|
-
import { A as Actions } from "../../../CommonActions/components/Actions/index.
|
|
21
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
22
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
23
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
18
|
+
import { R as RHFTextField } from "../../../hook-form/RHFTextField/index.80cc07e0.js";
|
|
19
|
+
import { A as Actions } from "../../../CommonActions/components/Actions/index.2f6286eb.js";
|
|
20
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.06539086.js";
|
|
21
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.3e8a2e60.js";
|
|
22
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.26de70bd.js";
|
|
23
|
+
import { P as Popover } from "../../../mui_extended/Popover/index.b3eca6b1.js";
|
|
24
24
|
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
25
|
-
import { S as ScrollBar } from "../../../ScrollBar/index.
|
|
25
|
+
import { S as ScrollBar } from "../../../ScrollBar/index.010f1b9d.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.570fd3a4.js";
|
|
28
|
+
import { I as Icon } from "../../../Icon/index.05984e7f.js";
|
|
29
29
|
import { u as useOnClickOutside } from "../../index.4cc6a221.js";
|
|
30
30
|
const areasAdminClasses = generateUtilityClasses(AREAS_ADMIN_CLASS_NAME, [
|
|
31
31
|
"root",
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { r as react_resizable_css } from "../../../../react-resizable.
|
|
2
|
+
import { r as react_resizable_css } from "../../../../react-resizable.ee028152.js";
|
|
3
3
|
import { generateUtilityClasses, Skeleton, Dialog } 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.de903261.js";
|
|
6
6
|
import { a as AREAS_VIEWER_CLASS_NAME } from "../../constants.66529246.js";
|
|
7
7
|
import { shallow } from "zustand/shallow";
|
|
8
8
|
import React__default, { useMemo, useEffect } from "react";
|
|
9
9
|
import clsx from "clsx";
|
|
10
|
-
import { u as useAreasStore } from "../../hooks/useAreas/index.
|
|
10
|
+
import { u as useAreasStore } from "../../hooks/useAreas/index.a15b3d9c.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.8c02ff61.js";
|
|
13
13
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
14
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
15
15
|
import { I as ICONS } from "../../icons.8266ccc8.js";
|
|
16
16
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
17
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
18
|
-
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.
|
|
19
|
-
import { I as Icon } from "../../../Icon/index.
|
|
17
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.26de70bd.js";
|
|
18
|
+
import { L as LinearProgressIndeterminate } from "../../../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
19
|
+
import { I as Icon } from "../../../Icon/index.05984e7f.js";
|
|
20
20
|
import { T as Typography } from "../../../mui_extended/Typography/index.379dd374.js";
|
|
21
|
-
import { M as MFLoader } from "../../../MFLoader/index.
|
|
21
|
+
import { M as MFLoader } from "../../../MFLoader/index.7b4ee2a4.js";
|
|
22
22
|
import { W as WindowToolsMFProvider } from "../../contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
23
23
|
import { D as DynamicMFParmsProvider } from "../../contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
24
24
|
import { L as LinearProgress } from "../../../mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
25
25
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
26
|
-
import { g as getNameDataTestId } from "../../../../vendor.
|
|
27
|
-
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.
|
|
28
|
-
import { S as SizeProvider } from "../../../GridLayout/index.
|
|
29
|
-
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.
|
|
26
|
+
import { g as getNameDataTestId } from "../../../../vendor.8f8b0ac9.js";
|
|
27
|
+
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../contexts/AreasContext/index.54893ef7.js";
|
|
28
|
+
import { S as SizeProvider } from "../../../GridLayout/index.e8c04242.js";
|
|
29
|
+
import { R as Responsive } from "../../../GridLayout/subcomponents/Responsive/index.e25df1dc.js";
|
|
30
30
|
import { useLocation } from "react-router-dom";
|
|
31
|
-
import { L as LoadingError } from "../../../LoadingError/index.
|
|
32
|
-
import { c as cjs } from "../../../../react-draggable.
|
|
33
|
-
import { R as ResizeableWindow } from "../../../Resizeable/index.
|
|
31
|
+
import { L as LoadingError } from "../../../LoadingError/index.fabad214.js";
|
|
32
|
+
import { c as cjs } from "../../../../react-draggable.ee21cb7e.js";
|
|
33
|
+
import { R as ResizeableWindow } from "../../../Resizeable/index.6478d7d8.js";
|
|
34
34
|
const areasViewerClasses = generateUtilityClasses(AREAS_VIEWER_CLASS_NAME, [
|
|
35
35
|
"root",
|
|
36
36
|
"areaRoot",
|
|
@@ -5,13 +5,13 @@ import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
|
5
5
|
import { useHostTools, useModuleDictionary, useNetwork, useModuleSkeleton, EmitEvents } from "@m4l/core";
|
|
6
6
|
import { devtools } from "zustand/middleware";
|
|
7
7
|
import { immer } from "zustand/middleware/immer";
|
|
8
|
-
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.
|
|
9
|
-
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.
|
|
8
|
+
import { u as useAreasViewerUtilityClasses } from "../../components/AreasViewer/index.c4545f2d.js";
|
|
9
|
+
import { u as useAreasAdminUtilityClasses } from "../../components/AreasAdmin/index.a14ba797.js";
|
|
10
10
|
import { c as createDynamicMFStore } from "../DynamicMFParmsContext/index.1607c78e.js";
|
|
11
11
|
import { g as getAreasDictionary, D as DICCTIONARY } from "../../dictionary.08cfc4c9.js";
|
|
12
|
-
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.
|
|
12
|
+
import { a as addLayoutItemToBreakPointIfNoExists, b as addLayoutItemToBreakPoints, c as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/index.e25df1dc.js";
|
|
13
13
|
import { debounce, cloneDeep } from "lodash";
|
|
14
|
-
import { A as isEqualLayouts } from "../../../GridLayout/index.
|
|
14
|
+
import { A as isEqualLayouts } from "../../../GridLayout/index.e8c04242.js";
|
|
15
15
|
import { useNavigate } from "react-router-dom";
|
|
16
16
|
import { jsx } from "react/jsx-runtime";
|
|
17
17
|
const PADDING_GRIDLAYOUT = 4;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import { A as AreasContext } from "../../contexts/AreasContext/index.
|
|
3
|
+
import { A as AreasContext } from "../../contexts/AreasContext/index.54893ef7.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
|
-
import { I as Icon } from "../../Icon/index.
|
|
3
|
+
import { I as Icon } from "../../Icon/index.05984e7f.js";
|
|
4
4
|
import { W as WrapperComponent } from "../../WrapperComponent/index.5e872594.js";
|
|
5
|
-
import { F as FormatterRoot, f as formatterClasses } from "../index.
|
|
5
|
+
import { F as FormatterRoot, f as formatterClasses } from "../index.4ca6946d.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
const BOOLEAN_FORMATTER_DICTIONARY_KEY = `boolean_formatter`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPropertyByString } from "@m4l/core";
|
|
2
2
|
import { W as WrapperComponent } from "../../WrapperComponent/index.5e872594.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
function getFormatPoints(obProps, fieldValue, fieldUnit) {
|
|
4
|
+
function getFormatPoints(obProps, fieldValue, fieldUnit, chainPoint) {
|
|
5
5
|
let result = "";
|
|
6
6
|
const points = getPropertyByString(obProps, fieldValue);
|
|
7
7
|
const unit = getPropertyByString(obProps, fieldUnit) || "";
|
|
@@ -10,7 +10,7 @@ function getFormatPoints(obProps, fieldValue, fieldUnit) {
|
|
|
10
10
|
}
|
|
11
11
|
points.map((point) => {
|
|
12
12
|
if (point) {
|
|
13
|
-
result = result.concat(`[${point}${unit}]`);
|
|
13
|
+
result = !chainPoint ? result.concat(`[${point}${unit}]`) : result.concat(`[${getPropertyByString(point, chainPoint)}${unit}]`);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
return result;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PointsFormatterProps } from './types';
|
|
2
|
-
export declare function getFormatPoints(obProps: any, fieldValue: string, fieldUnit: string): string;
|
|
2
|
+
export declare function getFormatPoints(obProps: any, fieldValue: string, fieldUnit: string, chainPoint?: string): string;
|
|
3
3
|
export declare function PointsFormatter(props: PointsFormatterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import "@mui/base";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { W as WrapperComponent } from "../WrapperComponent/index.5e872594.js";
|
|
5
5
|
import { useModuleDictionary } from "@m4l/core";
|
|
6
|
-
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.
|
|
6
|
+
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.4f3cbdce.js";
|
|
7
7
|
const COMPONENT_CLASS_NAME = "M4LFormatter";
|
|
8
8
|
const formatterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
9
9
|
"root",
|
|
@@ -9,7 +9,9 @@ export interface RHFAutocompleteClassesType {
|
|
|
9
9
|
skeletonContainerText: string;
|
|
10
10
|
iconDown: string;
|
|
11
11
|
variantInfo: string;
|
|
12
|
+
variantImage: string;
|
|
12
13
|
isDisabled: string;
|
|
14
|
+
imageWidthDefined: string;
|
|
13
15
|
variantSuccess: string;
|
|
14
16
|
variantWarning: string;
|
|
15
17
|
variantError: string;
|
|
@@ -2,15 +2,15 @@ import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/cor
|
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, CircularProgress } from "@mui/material";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
|
-
import { I as Image } from "../../Image/index.
|
|
5
|
+
import { I as Image } from "../../Image/index.bf37e923.js";
|
|
6
6
|
import { useMemo, useRef, useState, useEffect } from "react";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
9
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
10
9
|
import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
|
|
10
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
11
11
|
import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
|
|
12
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
13
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
13
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.26de70bd.js";
|
|
14
14
|
const AutocompleteRoot = styled("div")(({
|
|
15
15
|
theme
|
|
16
16
|
}) => ({
|
|
@@ -28,7 +28,7 @@ const RHFTAUTOCOMPLET_ROOT_TEST_ID = "RHFAutocomplete";
|
|
|
28
28
|
const getNameDataTestId = (KEY) => {
|
|
29
29
|
return `${RHFAUTOCOMPLETE_PREFIX}-${KEY}`;
|
|
30
30
|
};
|
|
31
|
-
function withRenderOption(getUrlImage, classes) {
|
|
31
|
+
function withRenderOption(getUrlImage, classes, imageWidth) {
|
|
32
32
|
return function RenderOption(optionProps, option) {
|
|
33
33
|
return /* @__PURE__ */ jsxs(WrapperOption, {
|
|
34
34
|
...optionProps,
|
|
@@ -37,18 +37,19 @@ function withRenderOption(getUrlImage, classes) {
|
|
|
37
37
|
[TEST_PROP_ID]: getNameDataTestId("withImage")
|
|
38
38
|
} : {},
|
|
39
39
|
children: [/* @__PURE__ */ jsx(Image, {
|
|
40
|
-
src: getUrlImage(option)
|
|
41
|
-
|
|
40
|
+
src: getUrlImage(option),
|
|
41
|
+
width: imageWidth,
|
|
42
|
+
height: "100%"
|
|
43
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
44
|
+
variant: "body",
|
|
45
|
+
children: optionProps.key
|
|
46
|
+
})]
|
|
42
47
|
});
|
|
43
48
|
};
|
|
44
49
|
}
|
|
45
50
|
const SkeletonRHFAutocomplete = (props) => {
|
|
46
51
|
const {
|
|
47
52
|
withImage,
|
|
48
|
-
skeletonWidth,
|
|
49
|
-
skeletonHeight,
|
|
50
|
-
imageWidth,
|
|
51
|
-
imageHeight,
|
|
52
53
|
classes,
|
|
53
54
|
hasLabel
|
|
54
55
|
} = props;
|
|
@@ -67,9 +68,7 @@ const SkeletonRHFAutocomplete = (props) => {
|
|
|
67
68
|
children: [/* @__PURE__ */ jsx("div", {
|
|
68
69
|
className: classes.skeletonContainerText,
|
|
69
70
|
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
70
|
-
variant: "text"
|
|
71
|
-
width: skeletonWidth,
|
|
72
|
-
height: skeletonHeight
|
|
71
|
+
variant: "text"
|
|
73
72
|
})
|
|
74
73
|
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
75
74
|
variant: "circular",
|
|
@@ -81,18 +80,11 @@ const SkeletonRHFAutocomplete = (props) => {
|
|
|
81
80
|
})]
|
|
82
81
|
}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
83
82
|
children: [/* @__PURE__ */ jsx(Skeleton, {
|
|
84
|
-
variant: "circular"
|
|
85
|
-
width: imageWidth,
|
|
86
|
-
height: imageHeight,
|
|
87
|
-
sx: {
|
|
88
|
-
minWidth: imageWidth
|
|
89
|
-
}
|
|
83
|
+
variant: "circular"
|
|
90
84
|
}), /* @__PURE__ */ jsx("div", {
|
|
91
85
|
className: classes.skeletonContainerText,
|
|
92
86
|
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
93
|
-
variant: "text"
|
|
94
|
-
width: skeletonWidth,
|
|
95
|
-
height: skeletonHeight
|
|
87
|
+
variant: "text"
|
|
96
88
|
})
|
|
97
89
|
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
98
90
|
variant: "circular",
|
|
@@ -117,7 +109,9 @@ generateUtilityClasses(componentName, [
|
|
|
117
109
|
"skeletonContainerText",
|
|
118
110
|
"iconDown",
|
|
119
111
|
"variantInfo",
|
|
112
|
+
"variantImage",
|
|
120
113
|
"isDisabled",
|
|
114
|
+
"imageWidthDefined",
|
|
121
115
|
"variantSuccess",
|
|
122
116
|
"variantWarning",
|
|
123
117
|
"variantError",
|
|
@@ -130,11 +124,11 @@ function getRHFAutocompleteClassesUtilityClass(slot) {
|
|
|
130
124
|
}
|
|
131
125
|
const useUtilityClasses = (ownerState) => {
|
|
132
126
|
const slots = {
|
|
133
|
-
root: ["root", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.focus && "isFocus", ownerState.disabled && "isDisabled", ownerState.
|
|
127
|
+
root: ["root", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.focus && "isFocus", ownerState.disabled && "isDisabled", ownerState.semantics === "info" && "variantInfo", ownerState.semantics === "success" && "variantSuccess", ownerState.semantics === "warning" && "variantWarning", ownerState.semantics === "error" && "variantError", ownerState.imageWidthDefined && "imageWidthDefined"],
|
|
134
128
|
withImage: ["withImage"],
|
|
135
129
|
skeleton: ["skeleton"],
|
|
136
130
|
label: ["label"],
|
|
137
|
-
popper: ["popper"],
|
|
131
|
+
popper: ["popper", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.imageWidthDefined && "imageWidthDefined"],
|
|
138
132
|
skeletonRoot: ["skeletonRoot"],
|
|
139
133
|
skeletonContainerText: ["SkeletonContainerText"],
|
|
140
134
|
iconDown: ["iconDown"]
|
|
@@ -155,8 +149,6 @@ function RHFAutocomplete(props) {
|
|
|
155
149
|
options,
|
|
156
150
|
disabled,
|
|
157
151
|
getOptionUrlImage,
|
|
158
|
-
imageWidth = "24px",
|
|
159
|
-
imageHeight = "24px",
|
|
160
152
|
onOpen,
|
|
161
153
|
onClose,
|
|
162
154
|
loading,
|
|
@@ -164,6 +156,7 @@ function RHFAutocomplete(props) {
|
|
|
164
156
|
helperMessage,
|
|
165
157
|
size = "small",
|
|
166
158
|
onChangeFilterParmsLocal,
|
|
159
|
+
imageWidth,
|
|
167
160
|
...other
|
|
168
161
|
} = props;
|
|
169
162
|
const {
|
|
@@ -232,8 +225,9 @@ function RHFAutocomplete(props) {
|
|
|
232
225
|
const ownerState = {
|
|
233
226
|
size: !isDesktop ? "medium" : size,
|
|
234
227
|
focus: isFocus,
|
|
235
|
-
|
|
236
|
-
disabled
|
|
228
|
+
semantics: currentVariant,
|
|
229
|
+
disabled,
|
|
230
|
+
imageWidthDefined: imageWidth ? true : false
|
|
237
231
|
};
|
|
238
232
|
const classes = useUtilityClasses(ownerState);
|
|
239
233
|
const theme = useTheme();
|
|
@@ -285,11 +279,12 @@ function RHFAutocomplete(props) {
|
|
|
285
279
|
inputValue,
|
|
286
280
|
clearOnBlur: false,
|
|
287
281
|
PopperComponent: (props2) => {
|
|
282
|
+
console.log("Autocomplete open Popover");
|
|
288
283
|
return /* @__PURE__ */ jsx(Popper, {
|
|
289
284
|
...props2,
|
|
290
285
|
className: classes.popper,
|
|
291
286
|
placement: "bottom-start",
|
|
292
|
-
placeholder:
|
|
287
|
+
placeholder: void 0,
|
|
293
288
|
sx: {
|
|
294
289
|
...theme.components?.M4LRHFAutocompletePopover?.styleOverrides
|
|
295
290
|
}
|
|
@@ -322,7 +317,7 @@ function RHFAutocomplete(props) {
|
|
|
322
317
|
}),
|
|
323
318
|
disabled,
|
|
324
319
|
noOptionsText: getLabel("rhf_autocomplete.no_options"),
|
|
325
|
-
renderOption: withImage ? withRenderOption(getOptionUrlImageLocal, classes) : void 0,
|
|
320
|
+
renderOption: withImage ? withRenderOption(getOptionUrlImageLocal, classes, imageWidth) : void 0,
|
|
326
321
|
renderInput: (params) => {
|
|
327
322
|
return /* @__PURE__ */ jsx(TextField, {
|
|
328
323
|
...params,
|
|
@@ -339,7 +334,7 @@ function RHFAutocomplete(props) {
|
|
|
339
334
|
startAdornment: withImage && value ? /* @__PURE__ */ jsx(Image, {
|
|
340
335
|
src: getOptionUrlImageLocal(value),
|
|
341
336
|
width: imageWidth,
|
|
342
|
-
height:
|
|
337
|
+
height: "100%"
|
|
343
338
|
}, "ImageTextField") : null,
|
|
344
339
|
endAdornment: /* @__PURE__ */ jsx(Fragment, {
|
|
345
340
|
children: loading ? /* @__PURE__ */ jsx(CircularProgress, {
|
|
@@ -366,10 +361,6 @@ function RHFAutocomplete(props) {
|
|
|
366
361
|
}
|
|
367
362
|
}) : /* @__PURE__ */ jsx(SkeletonRHFAutocomplete, {
|
|
368
363
|
withImage,
|
|
369
|
-
skeletonWidth,
|
|
370
|
-
skeletonHeight,
|
|
371
|
-
imageWidth,
|
|
372
|
-
imageHeight,
|
|
373
364
|
classes,
|
|
374
365
|
hasLabel: label
|
|
375
366
|
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { GetOptionString } from '../../types';
|
|
3
|
-
export declare function withRenderOption<T>(getUrlImage: GetOptionString<T>, classes: any): (optionProps: HTMLAttributes<HTMLLIElement>, option: T) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function withRenderOption<T>(getUrlImage: GetOptionString<T>, classes: any, imageWidth: string | number | undefined): (optionProps: HTMLAttributes<HTMLLIElement>, option: T) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Classes } from '../../classes/types';
|
|
2
|
-
|
|
3
|
-
export interface SkeletonRHFAutocompleteProps extends Pick<RHFAutocompleteProps<any>, 'skeletonWidth' | 'skeletonHeight' | 'imageWidth' | 'imageHeight'> {
|
|
2
|
+
export interface SkeletonRHFAutocompleteProps {
|
|
4
3
|
withImage: boolean;
|
|
5
4
|
classes: Classes;
|
|
6
5
|
hasLabel?: string;
|
|
@@ -8,21 +8,26 @@ export declare type RHFAutocompleteProps<T> = {
|
|
|
8
8
|
options: Array<T>;
|
|
9
9
|
getOptionLabel: (option: T) => string;
|
|
10
10
|
getOptionUrlImage?: (option: T) => string;
|
|
11
|
+
/**
|
|
12
|
+
* El valor de tamaño en anchura que va a tener el elemento de imagen.
|
|
13
|
+
*/
|
|
14
|
+
imageWidth?: string | number;
|
|
11
15
|
isOptionEqualToValue: (option: T, value: T) => boolean;
|
|
12
16
|
skeletonWidth?: string | number;
|
|
13
17
|
skeletonHeight?: string | number;
|
|
14
18
|
size?: Pick<RHFTextFieldProps, 'size'>;
|
|
15
19
|
label: string;
|
|
16
|
-
imageWidth?: string;
|
|
17
|
-
imageHeight?: string;
|
|
18
20
|
loading?: boolean;
|
|
19
21
|
variant?: RHFAutocompleteVariants;
|
|
20
22
|
helperMessage?: string;
|
|
21
23
|
onOpen?: (event: React.SyntheticEvent) => void;
|
|
22
24
|
onClose?: (event: React.SyntheticEvent, reason: AutocompleteCloseReason) => void;
|
|
23
25
|
onChangeFilterParmsLocal?: (newValue: string, reason: AutocompleteInputChangeReason) => void;
|
|
26
|
+
imageHeight?: string | number;
|
|
24
27
|
} & TextFieldProps;
|
|
25
28
|
export interface OwnerState extends Pick<RHFTextFieldProps, 'size' | 'disabled'> {
|
|
26
29
|
focus: boolean;
|
|
27
|
-
|
|
30
|
+
semantics: RHFAutocompleteVariants | 'error' | null;
|
|
31
|
+
variant?: 'withImage';
|
|
32
|
+
imageWidthDefined: boolean;
|
|
28
33
|
}
|
|
@@ -6,7 +6,7 @@ import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.
|
|
9
|
+
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.0ce87ac3.js";
|
|
10
10
|
styled("div")(() => ({
|
|
11
11
|
display: "flex",
|
|
12
12
|
width: "100%",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LRHFColorPicker";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RHFColorPickerClassesType } from './types';
|
|
2
|
+
export declare const colorPickerClasses: RHFColorPickerClassesType;
|
|
3
|
+
export declare function getRHFColorPickerUtilityClass(slot: string): string;
|
|
4
|
+
export declare const useUtilityClasses: () => {
|
|
5
|
+
root: string;
|
|
6
|
+
skeleton: string;
|
|
7
|
+
popoverRoot: string;
|
|
8
|
+
containerFieldColor: string;
|
|
9
|
+
containerPicker: string;
|
|
10
|
+
fieldColor: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useUtilityClasses } from ".";
|
|
2
|
+
export interface RHFColorPickerClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
popoverRoot: string;
|
|
5
|
+
containerFieldColor: string;
|
|
6
|
+
fieldColor: string;
|
|
7
|
+
containerPicker: string;
|
|
8
|
+
skeleton: string;
|
|
9
|
+
}
|
|
10
|
+
export declare type RHFColorPickerClassesKey = keyof RHFColorPickerClassesType;
|
|
11
|
+
export declare type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { RHFColorPickerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente RHFColorPicker para seleccionar colores con React Hook Form.
|
|
4
|
+
* @component
|
|
5
|
+
* @param {RHFColorPickerProps} props - Propiedades del componente.
|
|
6
|
+
* @returns {JSX.Element} - Elemento JSX que representa el componente.
|
|
7
|
+
*/
|
|
2
8
|
export declare const RHFColorPicker: (props: RHFColorPickerProps) => import("react/jsx-runtime").JSX.Element;
|