@m4l/components 0.1.42 → 0.1.45
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/types.d.ts +117 -0
- package/components/CmpDisenoTest/index.d.ts +4 -0
- package/components/CmpDisenoTest/types.d.ts +20 -0
- package/components/CommonActions/components/ActionCancel/{index.9230c57b.js → index.a81752ef.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.ab514bd9.js → index.7870abce.js} +25 -9
- package/components/CommonActions/components/ActionIntro/{index.a0a341c7.js → index.d567aebb.js} +1 -1
- package/components/CommonActions/components/Actions/{index.d3e1f36e.js → index.a5f70d5d.js} +19 -8
- package/components/DataGrid/formatters/columnConcatenatedValueFormatter/index.d.ts +3 -0
- package/components/DataGrid/formatters/columnConcatenatedValueFormatter/types.d.ts +6 -0
- package/components/DataGrid/formatters/index.d.ts +1 -0
- package/components/DataGrid/{index.67260455.js → index.8333ea44.js} +42 -15
- package/components/DynamicFilter/contexts/BaseContext/types.d.ts +3 -0
- package/components/DynamicFilter/{index.071aa795.js → index.93dfa3e0.js} +208 -110
- package/components/DynamicFilter/index.d.ts +4 -1
- package/components/DynamicFilter/styles.d.ts +4 -6
- package/components/DynamicFilter/subcomponents/PopupEditFilter/styles.d.ts +7 -0
- package/components/DynamicFilter/types.d.ts +4 -0
- package/components/DynamicFilter/utils/Clases/index.d.ts +20 -0
- package/components/DynamicFilter/utils/Clases/types.d.ts +17 -0
- package/components/ErrorLabel/index.73f9362c.js +65 -0
- package/components/ErrorLabel/index.d.ts +8 -1
- package/components/ErrorLabel/styles.d.ts +1 -1
- package/components/ErrorLabel/types.d.ts +2 -1
- package/components/ErrorLabel/utils/Clases/index.d.ts +6 -0
- package/components/ErrorLabel/utils/Clases/types.d.ts +3 -0
- package/components/Icon/Icon.d.ts +8 -0
- package/components/Icon/classes/constants.d.ts +1 -0
- package/components/Icon/classes/index.d.ts +9 -0
- package/components/Icon/classes/types.d.ts +17 -0
- package/components/Icon/index.d.ts +2 -3
- package/components/Icon/{index.8d754623.js → index.f6e8d810.js} +58 -11
- package/components/Icon/styles.d.ts +1 -1
- package/components/Icon/types.d.ts +5 -0
- package/components/Image/Image.d.ts +9 -0
- package/components/Image/{index.93d5f37f.js → index.aa24e982.js} +107 -43
- package/components/Image/index.d.ts +2 -4
- package/components/Image/styles.d.ts +2 -2
- package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +5 -0
- package/components/Image/subcomponents/LazyLoadComponent/styles.d.ts +2 -0
- package/components/Image/types.d.ts +17 -1
- package/components/Image/utils/classes/constant.d.ts +1 -0
- package/components/Image/utils/classes/index.d.ts +12 -0
- package/components/Image/utils/classes/types.d.ts +9 -0
- package/components/LanguagePopover/LanguagePopover.d.ts +8 -0
- package/components/LanguagePopover/classes/constants.d.ts +1 -0
- package/components/LanguagePopover/classes/index.d.ts +9 -0
- package/components/LanguagePopover/classes/types.d.ts +7 -0
- package/components/LanguagePopover/{index.cbc4b282.js → index.26b694ef.js} +57 -16
- package/components/LanguagePopover/index.d.ts +2 -2
- package/components/LanguagePopover/styles.d.ts +1 -0
- package/components/LanguagePopover/types.d.ts +9 -0
- package/components/ModalDialog/{index.a684827f.js → index.c72a6e31.js} +5 -5
- package/components/NoItemSelected/{index.46d2f632.js → index.9636ec8a.js} +1 -1
- package/components/NoItemSelected/styles.d.ts +1 -1
- package/components/ObjectLogs/{index.4a859658.js → index.239e5877.js} +22 -11
- package/components/PaperForm/{index.c5948756.js → index.0114aa9b.js} +1 -1
- package/components/Period/{index.abe445bd.js → index.10dc7de1.js} +20 -9
- package/components/Resizeable/{index.c96c0f09.js → index.8a442a8b.js} +1 -1
- package/components/areas/components/Area/types.d.ts +24 -12
- package/components/areas/components/AreasAdmin/{index.6794b22f.js → index.01739b1f.js} +24 -15
- package/components/areas/components/AreasContainer/{index.a2f8899b.js → index.41fb511e.js} +9 -10
- package/components/areas/components/GridLayout/{index.b9c1e846.js → index.d11ecdd8.js} +28 -18
- package/components/areas/components/Window/{index.252fbf4e.js → index.61f87e9d.js} +105 -85
- package/components/areas/components/Window/styles.d.ts +5 -2
- package/components/areas/components/Window/subcomponents/InnerForHooks/index.d.ts +4 -0
- package/components/areas/components/Window/subcomponents/InnerForHooks/styles.d.ts +2 -0
- package/components/areas/components/Window/subcomponents/{Component → InnerForHooks/subcomponents/Component}/index.d.ts +4 -3
- package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/index.d.ts +1 -1
- package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/index.d.ts +1 -1
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/types.d.ts +8 -0
- package/components/areas/components/WindowPopUp/index.d.ts +2 -1
- package/components/areas/components/WindowPopUp/index.f5fa6cce.js +117 -0
- package/components/areas/components/index.d.ts +2 -1
- package/components/areas/components/{index.7d6cd649.js → index.e9971ebf.js} +18 -13
- package/components/areas/contexts/AreaContext/helper.d.ts +12 -0
- package/components/areas/contexts/AreaContext/index.cb686ae0.js +392 -0
- package/components/areas/contexts/AreaContext/index.d.ts +2 -2
- package/components/areas/contexts/AreaContext/store.d.ts +49 -0
- package/components/areas/contexts/AreaContext/types.d.ts +8 -16
- package/components/areas/contexts/AreasContext/index.1b624579.js +204 -0
- package/components/areas/contexts/AreasContext/index.d.ts +10 -2
- package/components/areas/contexts/AreasContext/store.d.ts +38 -0
- package/components/areas/contexts/AreasContext/types.d.ts +1 -13
- package/components/areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js +43 -0
- package/components/areas/contexts/DynamicMFParmsContext/index.d.ts +13 -4
- package/components/areas/contexts/DynamicMFParmsContext/store.d.ts +20 -0
- package/components/areas/contexts/DynamicMFParmsContext/types.d.ts +4 -16
- package/components/areas/contexts/WindowContext/helper.d.ts +1 -0
- package/components/areas/contexts/WindowContext/index.d.ts +13 -0
- package/components/areas/contexts/WindowContext/store.d.ts +31 -0
- package/components/areas/contexts/WindowContext/types.d.ts +5 -0
- package/components/areas/contexts/WindowToolsMFContext/index.d.ts +6 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +21 -0
- package/components/areas/contexts/index.9c342ce6.js +203 -0
- package/components/areas/contexts/index.d.ts +4 -1
- package/components/areas/hooks/index.4e59c40f.js +27 -0
- package/components/areas/hooks/index.d.ts +2 -0
- package/components/areas/hooks/useArea/index.d.ts +2 -0
- package/components/areas/hooks/useArea/index.df7c7169.js +20 -0
- package/components/areas/hooks/useAreas/index.d.ts +11 -1
- package/components/areas/hooks/useDynamicMFParameters/index.041a666b.js +14 -0
- package/components/areas/hooks/useDynamicMFParameters/index.d.ts +11 -1
- package/components/areas/hooks/useWindow/index.d.ts +11 -0
- package/components/areas/hooks/useWindowToolsMF/index.d.ts +1 -0
- package/components/areas/index.7b430c19.js +21 -0
- package/components/areas/index.d.ts +1 -0
- package/components/formatters/BooleanFormatter/{index.3a9b16c8.js → index.b3fb8a75.js} +1 -1
- package/components/formatters/ConcatenatedFormatter/index.d.ts +8 -0
- package/components/formatters/ConcatenatedFormatter/types.d.ts +11 -0
- package/components/formatters/PeriodFormatter/index.d.ts +8 -0
- package/components/formatters/PeriodFormatter/types.d.ts +13 -0
- package/components/formatters/dictionary.d.ts +9 -0
- package/components/formatters/index.0368bab3.js +127 -0
- package/components/formatters/index.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/{index.de93fe01.js → index.74add0d0.js} +1 -1
- package/components/hook-form/RHFAutocompleteAsync/{index.ca696cce.js → index.0aa3c224.js} +1 -1
- package/components/hook-form/RHFCheckbox/RHFCheckbox.d.ts +8 -0
- package/components/hook-form/RHFCheckbox/classes/index.d.ts +7 -0
- package/components/hook-form/RHFCheckbox/classes/types.d.ts +5 -0
- package/components/hook-form/RHFCheckbox/index.ebfe1e3c.js +110 -0
- package/components/hook-form/RHFCheckbox/styles.d.ts +14 -0
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/index.d.ts +2 -1
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/types.d.ts +3 -0
- package/components/hook-form/RHFPeriod/{index.3772295b.js → index.10c4501a.js} +2 -2
- package/components/hook-form/RHFTextField/RHFTextField.d.ts +8 -0
- package/components/hook-form/RHFTextField/classes/constants.d.ts +1 -0
- package/components/hook-form/RHFTextField/classes/index.d.ts +7 -0
- package/components/hook-form/RHFTextField/classes/types.d.ts +10 -0
- package/components/hook-form/RHFTextField/index.57f138f7.js +219 -0
- package/components/hook-form/RHFTextField/index.d.ts +2 -3
- package/components/hook-form/RHFTextField/styles.d.ts +3 -0
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +6 -1
- package/components/hook-form/RHFTextField/types.d.ts +0 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts +9 -0
- package/components/hook-form/RHFTextFieldPassword/classes/index.d.ts +6 -0
- package/components/hook-form/RHFTextFieldPassword/classes/types.d.ts +4 -0
- package/components/hook-form/RHFTextFieldPassword/index.d.ts +2 -3
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +2 -0
- package/components/hook-form/RHFUpload/{index.d5cc7c13.js → index.7fdff30f.js} +1 -1
- package/components/hook-form/index.d.ts +3 -3
- package/components/index.d.ts +3 -2
- package/components/modal/{WindowBase.04439b8e.js → WindowBase.bed2458c.js} +3 -4
- package/components/modal/{WindowConfirm.0b8a6818.js → WindowConfirm.bde6242f.js} +22 -11
- package/components/modal/index.cb75ce72.js +29 -0
- package/components/mui_extended/Accordion/{index.a541c71c.js → index.1d513477.js} +2 -2
- package/components/mui_extended/Button/Button.d.ts +8 -0
- package/components/mui_extended/Button/classes/constants.d.ts +1 -0
- package/components/mui_extended/Button/classes/index.d.ts +7 -0
- package/components/mui_extended/Button/classes/types.d.ts +5 -0
- package/components/mui_extended/Button/index.8406ed5b.js +150 -0
- package/components/mui_extended/Button/index.d.ts +2 -3
- package/components/mui_extended/Button/styles.d.ts +13 -0
- package/components/mui_extended/IconButton/IconButton.d.ts +9 -0
- package/components/mui_extended/IconButton/classes/constants.d.ts +1 -0
- package/components/mui_extended/IconButton/classes/index.d.ts +7 -0
- package/components/mui_extended/IconButton/classes/types.d.ts +5 -0
- package/components/mui_extended/IconButton/index.1318a283.js +100 -0
- package/components/mui_extended/IconButton/index.d.ts +2 -4
- package/components/mui_extended/IconButton/styles.d.ts +2 -0
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index.d.ts +2 -1
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/types.d.ts +3 -0
- package/components/mui_extended/ImageButton/ImageButton.d.ts +6 -0
- package/components/mui_extended/ImageButton/styles.d.ts +2 -0
- package/components/mui_extended/ImageButton/types.d.ts +0 -2
- package/components/mui_extended/ImageButton/utils/Clases/constants.d.ts +1 -0
- package/components/mui_extended/ImageButton/utils/Clases/index.d.ts +6 -0
- package/components/mui_extended/ImageButton/utils/Clases/types.d.ts +3 -0
- package/components/mui_extended/MenuActions/{index.ee17bddd.js → index.1261168c.js} +2 -2
- package/components/mui_extended/Pager/{index.74d3f5fc.js → index.80ccec47.js} +1 -1
- package/components/mui_extended/Popover/Popover.d.ts +9 -0
- package/components/mui_extended/Popover/classes/index.d.ts +8 -0
- package/components/mui_extended/Popover/classes/types.d.ts +17 -0
- package/components/mui_extended/Popover/{index.53c77d23.js → index.58c49cc0.js} +55 -13
- package/components/mui_extended/Popover/styles.d.ts +1 -0
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +3 -0
- package/components/mui_extended/Popover/types.d.ts +1 -1
- package/components/mui_extended/Typography/index.be3a279a.js +63 -0
- package/components/mui_extended/Typography/index.d.ts +3 -0
- package/components/mui_extended/Typography/styles.d.ts +2 -0
- package/components/mui_extended/Typography/utils/Clases/index.d.ts +6 -0
- package/components/mui_extended/Typography/utils/Clases/types.d.ts +3 -0
- package/components/mui_extended/index.3106c913.js +19 -0
- package/components/mui_extended/index.d.ts +5 -4
- package/contexts/ModalContext/{index.b90eec94.js → index.c8212291.js} +1 -1
- package/contexts/RHFormContext/{index.d88e6e27.js → index.828b60ad.js} +1 -1
- package/contexts/index.d.ts +1 -1
- package/hooks/index.d.ts +0 -1
- package/hooks/useFormAddEdit/{index.d4845f1a.js → index.15de3ba8.js} +5 -0
- package/hooks/useModal/{index.d14edee3.js → index.19172e70.js} +1 -1
- package/index.js +165 -109
- package/package.json +13 -8
- package/{react-draggable.84d6b038.js → react-draggable.0eef011c.js} +1 -1
- package/{react-resizable.1d00271d.js → react-resizable.bb58c8fc.js} +103 -67
- package/utils/{index.899eb67b.js → index.e882b264.js} +26 -18
- package/vite-env.d.ts +2 -1
- package/components/DynamicFilter/components/PopupEditFilter/styles.d.ts +0 -6
- package/components/ErrorLabel/index.c8615f16.js +0 -20
- package/components/areas/components/Window/contexts/WindowContext/index.d.ts +0 -5
- package/components/areas/components/Window/contexts/WindowContext/types.d.ts +0 -13
- package/components/areas/components/Window/hooks/useWindow/index.d.ts +0 -1
- package/components/areas/components/WindowPopUp/index.214cf099.js +0 -120
- package/components/areas/components/WindowPopUp/styles.d.ts +0 -2
- package/components/areas/contexts/AreaContext/index.4894cf23.js +0 -286
- package/components/areas/contexts/AreasContext/index.cd8e4bee.js +0 -158
- package/components/areas/contexts/DynamicMFParmsContext/index.668bc2e2.js +0 -17
- package/components/areas/contexts/index.f9196fb2.js +0 -1
- package/components/areas/hooks/useArea/index.9b85ce24.js +0 -19
- package/components/areas/hooks/useDynamicMFParameters/index.e6a44ae3.js +0 -11
- package/components/areas/index.d1bf612c.js +0 -16
- package/components/formatters/dicctionary.d.ts +0 -3
- package/components/formatters/index.0b5f95d0.js +0 -21
- package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +0 -68
- package/components/hook-form/RHFCheckbox/index.d.ts +0 -4
- package/components/hook-form/RHFTextField/index.b17d68f4.js +0 -146
- package/components/modal/index.8387e90e.js +0 -18
- package/components/mui_extended/Button/index.86a155a2.js +0 -101
- package/components/mui_extended/IconButton/index.82f16572.js +0 -63
- package/components/mui_extended/ImageButton/index.d.ts +0 -3
- package/components/mui_extended/Popover/index.d.ts +0 -4
- package/components/mui_extended/Typography/index.e5494696.js +0 -35
- package/components/mui_extended/index.85dfadf1.js +0 -16
- /package/components/DynamicFilter/{components → subcomponents}/ApplyedFilters/components/ApplyedFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/ApplyedFilters/components/ApplyedFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/ApplyedFilters/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/ApplyedFilters/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/ClearFilters/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/ClearFilters/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/FilterButton/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/FilterButton/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/InputFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/InputFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/PopupEditFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/BooleanFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/BooleanFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/DateTimeFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/DateTimeFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/NumberFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/NumberFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/StringFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/StringFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/factory.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/validations.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{Header → InnerForHooks/subcomponents/Header}/index.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{Header → InnerForHooks/subcomponents/Header}/skeleton.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{Header → InnerForHooks/subcomponents/Header}/styles.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/styles.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/styles.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/types.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/types.d.ts +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface PopoverClassesType {
|
|
2
|
+
root: string;
|
|
3
|
+
arrowStyle: string;
|
|
4
|
+
topLeft: string;
|
|
5
|
+
topCenter: string;
|
|
6
|
+
topRight: string;
|
|
7
|
+
bottomLeft: string;
|
|
8
|
+
bottomCenter: string;
|
|
9
|
+
bottomRight: string;
|
|
10
|
+
leftTop: string;
|
|
11
|
+
leftCenter: string;
|
|
12
|
+
leftBottom: string;
|
|
13
|
+
rightTop: string;
|
|
14
|
+
rightCenter: string;
|
|
15
|
+
rightBottom: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type PopoverClassesKey = keyof PopoverClassesType;
|
|
@@ -1,6 +1,41 @@
|
|
|
1
|
-
import { styled } from "@mui/material
|
|
2
|
-
import {
|
|
1
|
+
import { styled, Popover as Popover$1, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
|
+
const PopoverRoot = styled(Popover$1)(({
|
|
5
|
+
theme
|
|
6
|
+
}) => ({
|
|
7
|
+
...theme.components?.M4LPopover?.styleOverrides
|
|
8
|
+
}));
|
|
9
|
+
generateUtilityClasses("M4LPopover", [
|
|
10
|
+
"root",
|
|
11
|
+
"arrowStyle",
|
|
12
|
+
"noArrow",
|
|
13
|
+
"topLeft",
|
|
14
|
+
"topCenter",
|
|
15
|
+
"topRight",
|
|
16
|
+
"bottomLeft",
|
|
17
|
+
"bottomCenter",
|
|
18
|
+
"bottomRight",
|
|
19
|
+
"leftTop",
|
|
20
|
+
"leftCenter",
|
|
21
|
+
"leftBottom",
|
|
22
|
+
"rightTop",
|
|
23
|
+
"rightCenter",
|
|
24
|
+
"rightBottom"
|
|
25
|
+
]);
|
|
26
|
+
function getPopoverClassesUtilityClass(slot) {
|
|
27
|
+
return generateUtilityClass("M4LPopover", slot);
|
|
28
|
+
}
|
|
29
|
+
const useUtilityClasses = (ownerState) => {
|
|
30
|
+
const slots = {
|
|
31
|
+
root: ["root"],
|
|
32
|
+
arrowStyle: ["arrowStyle", ownerState.arrowType === "top-left" && "topLeft", ownerState.arrowType === "top-center" && "topCenter", ownerState.arrowType === "top-right" && "topRight", ownerState.arrowType === "bottom-left" && "bottomLeft", ownerState.arrowType === "bottom-center" && "bottomCenter", ownerState.arrowType === "bottom-right" && "bottomRight", ownerState.arrowType === "left-top" && "leftTop", ownerState.arrowType === "left-center" && "leftCenter", ownerState.arrowType === "left-bottom" && "leftBottom", ownerState.arrowType === "right-top" && "rightTop", ownerState.arrowType === "right-center" && "rightCenter", ownerState.arrowType === "right-bottom" && "rightBottom"]
|
|
33
|
+
};
|
|
34
|
+
const composedClasses = unstable_composeClasses(slots, getPopoverClassesUtilityClass, {});
|
|
35
|
+
return {
|
|
36
|
+
...composedClasses
|
|
37
|
+
};
|
|
38
|
+
};
|
|
4
39
|
const ArrowStyle = styled("span")(({
|
|
5
40
|
arrowType,
|
|
6
41
|
theme
|
|
@@ -102,15 +137,20 @@ const ArrowStyle = styled("span")(({
|
|
|
102
137
|
}
|
|
103
138
|
};
|
|
104
139
|
});
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
140
|
+
const Popover = (props) => {
|
|
141
|
+
const {
|
|
142
|
+
children,
|
|
143
|
+
arrowType = "top-right",
|
|
144
|
+
sx,
|
|
145
|
+
...other
|
|
146
|
+
} = props;
|
|
147
|
+
const ownerState = {
|
|
148
|
+
arrowType
|
|
149
|
+
};
|
|
150
|
+
const classes = useUtilityClasses(ownerState);
|
|
151
|
+
return /* @__PURE__ */ jsxs(PopoverRoot, {
|
|
152
|
+
className: classes.root,
|
|
153
|
+
"data-testid": "PopoverRoot",
|
|
114
154
|
anchorOrigin: {
|
|
115
155
|
vertical: "bottom",
|
|
116
156
|
horizontal: "right"
|
|
@@ -127,11 +167,13 @@ function Popover({
|
|
|
127
167
|
}
|
|
128
168
|
},
|
|
129
169
|
...other,
|
|
130
|
-
children: [
|
|
170
|
+
children: [/* @__PURE__ */ jsx(ArrowStyle, {
|
|
171
|
+
className: classes.arrowStyle,
|
|
172
|
+
"data-testid": "ArrowStyle",
|
|
131
173
|
arrowType
|
|
132
174
|
}), children]
|
|
133
175
|
});
|
|
134
|
-
}
|
|
176
|
+
};
|
|
135
177
|
export {
|
|
136
178
|
Popover as P
|
|
137
179
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PopoverRoot: import("@emotion/styled").StyledComponent<import("@mui/material").PopoverProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ArrowStyleProps } from '../../types';
|
|
3
|
+
export declare const ArrowStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ArrowStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -3,7 +3,7 @@ export declare type ArrowType = 'no-arrow' | 'top-left' | 'top-center' | 'top-ri
|
|
|
3
3
|
export declare type ArrowStyleProps = {
|
|
4
4
|
arrowType: ArrowType;
|
|
5
5
|
};
|
|
6
|
+
export declare type OwnerState = ArrowStyleProps;
|
|
6
7
|
export interface PopoverProps extends MUIPopeverProps {
|
|
7
|
-
className?: string;
|
|
8
8
|
arrowType?: ArrowType;
|
|
9
9
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
2
|
+
import { styled, Skeleton, generateUtilityClasses, generateUtilityClass, Typography as Typography$1 } from "@mui/material";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
+
const WarpperTypography = styled("div")(({
|
|
6
|
+
theme
|
|
7
|
+
}) => ({
|
|
8
|
+
...theme.components?.M4LTypography?.styleOverrides
|
|
9
|
+
}));
|
|
10
|
+
const SkeletonTypography = (props) => {
|
|
11
|
+
const {
|
|
12
|
+
skeletonWidth,
|
|
13
|
+
skeletongHeight
|
|
14
|
+
} = props;
|
|
15
|
+
return /* @__PURE__ */ jsx(Skeleton, {
|
|
16
|
+
variant: "text",
|
|
17
|
+
width: skeletonWidth,
|
|
18
|
+
height: skeletongHeight
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const typographyClasses = generateUtilityClasses("M4LTypography", [
|
|
22
|
+
"root"
|
|
23
|
+
]);
|
|
24
|
+
function getTypographyClassesUtilityClass(slot) {
|
|
25
|
+
return generateUtilityClass("M4LTypography", slot);
|
|
26
|
+
}
|
|
27
|
+
const useUtilityClasses = () => {
|
|
28
|
+
const slots = {
|
|
29
|
+
root: ["root"]
|
|
30
|
+
};
|
|
31
|
+
const composedClasses = unstable_composeClasses(slots, getTypographyClassesUtilityClass, {});
|
|
32
|
+
return {
|
|
33
|
+
...composedClasses
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
function Typography(props) {
|
|
37
|
+
const {
|
|
38
|
+
skeletonWidth = "100%",
|
|
39
|
+
skeletongHeight = "18px",
|
|
40
|
+
...other
|
|
41
|
+
} = props;
|
|
42
|
+
const isSkeleton = useModuleSkeleton();
|
|
43
|
+
const classes = useUtilityClasses();
|
|
44
|
+
if (isSkeleton) {
|
|
45
|
+
return /* @__PURE__ */ jsx(WarpperTypography, {
|
|
46
|
+
className: classes.root,
|
|
47
|
+
children: /* @__PURE__ */ jsx(SkeletonTypography, {
|
|
48
|
+
skeletonWidth,
|
|
49
|
+
skeletongHeight
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return /* @__PURE__ */ jsx(WarpperTypography, {
|
|
54
|
+
className: classes.root,
|
|
55
|
+
children: /* @__PURE__ */ jsx(Typography$1, {
|
|
56
|
+
...other
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
Typography as T,
|
|
62
|
+
typographyClasses as t
|
|
63
|
+
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TypographyProps } from './types';
|
|
3
|
+
import { TypographyClassesType } from './utils/Clases/types';
|
|
4
|
+
export { typographyClasses } from './utils/Clases/index';
|
|
5
|
+
export declare type TypographyClassesKey = TypographyClassesType;
|
|
3
6
|
export declare function Typography(props: TypographyProps): JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const WarpperTypography: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "@mui/material";
|
|
2
|
+
import "react";
|
|
3
|
+
import "@m4l/core";
|
|
4
|
+
import "../Icon/index.f6e8d810.js";
|
|
5
|
+
import "@mui/material/styles";
|
|
6
|
+
import "react/jsx-runtime";
|
|
7
|
+
import "./IconButton/index.1318a283.js";
|
|
8
|
+
import "./Accordion/index.1d513477.js";
|
|
9
|
+
import "./Avatar/index.fe06afd7.js";
|
|
10
|
+
import "react-router-dom";
|
|
11
|
+
import "@mui/material/Button";
|
|
12
|
+
import "./Button/index.8406ed5b.js";
|
|
13
|
+
import "../Image/index.aa24e982.js";
|
|
14
|
+
import "@mui/lab";
|
|
15
|
+
import "./Popover/index.58c49cc0.js";
|
|
16
|
+
import "./MenuActions/index.1261168c.js";
|
|
17
|
+
import "./Pager/index.80ccec47.js";
|
|
18
|
+
import "./Tab/index.e0653a0a.js";
|
|
19
|
+
import "./Typography/index.be3a279a.js";
|
|
@@ -4,17 +4,18 @@ export { type AvatarProps } from './Avatar/types';
|
|
|
4
4
|
export { BoxIcon } from './BoxIcon';
|
|
5
5
|
export { Breadcrumbs } from './Breadcrumbs';
|
|
6
6
|
export type { TLink } from './Breadcrumbs/types';
|
|
7
|
-
export
|
|
7
|
+
export * from './Button/Button';
|
|
8
8
|
export { CircularProgress } from './CircularProgress';
|
|
9
|
-
export
|
|
9
|
+
export * from './IconButton/IconButton';
|
|
10
|
+
export * from './ImageButton/ImageButton';
|
|
10
11
|
export { LinearProgress } from './LinearProgress';
|
|
11
12
|
export { LinkWithRoute } from './LinkWithRoute';
|
|
12
13
|
export { LoadingButton } from './LoadingButton';
|
|
13
14
|
export { MenuActions } from './MenuActions';
|
|
14
15
|
export type { MenuAction, ComponentActionProps } from './MenuActions/types';
|
|
15
|
-
export
|
|
16
|
+
export * from './Popover/Popover';
|
|
16
17
|
export { Pager } from './Pager';
|
|
17
18
|
export type { PagerProps } from './Pager/types';
|
|
18
19
|
export { getPagerComponentsDictionary } from './Pager/dicctionary';
|
|
19
20
|
export { Tab } from './Tab';
|
|
20
|
-
export
|
|
21
|
+
export * from './Typography';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useState } from "react";
|
|
2
|
-
import { M as ModalDialog } from "../../components/ModalDialog/index.
|
|
2
|
+
import { M as ModalDialog } from "../../components/ModalDialog/index.c72a6e31.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
const ModalContext = createContext(null);
|
|
5
5
|
function ModalProvider({
|
package/contexts/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DynamicMFParmsProvider, DynamicMFParmsContext, } from '../components/areas/contexts/DynamicMFParmsContext';
|
|
1
|
+
export { DynamicMFParmsProvider, DynamicMFParmsContext, MemonizedDynamicMFParmsProvider, } from '../components/areas/contexts/DynamicMFParmsContext';
|
|
2
2
|
export * from './ModalContext/index';
|
|
3
3
|
export * from './ModalContext/types';
|
|
4
4
|
export type { FormInitialValues, FormStatusLoad } from './RHFormContext/types';
|
package/hooks/index.d.ts
CHANGED
|
@@ -37,6 +37,11 @@ const useFormAddEdit = (props) => {
|
|
|
37
37
|
mounted = false;
|
|
38
38
|
};
|
|
39
39
|
}, [statusLoad]);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (statusLoad === "ready" && objectId !== void 0) {
|
|
42
|
+
setStatusLoad("edit");
|
|
43
|
+
}
|
|
44
|
+
}, [objectId]);
|
|
40
45
|
return { formValues, statusLoad };
|
|
41
46
|
};
|
|
42
47
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { M as ModalContext } from "../../contexts/ModalContext/index.
|
|
2
|
+
import { M as ModalContext } from "../../contexts/ModalContext/index.c8212291.js";
|
|
3
3
|
function useModal() {
|
|
4
4
|
const context = useContext(ModalContext);
|
|
5
5
|
if (!context)
|