@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,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RHFTextFieldPasswordProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Provee de un campo de texto de tipo contraseña vinculado al formulario de hook-forms, aporta su versión provisional
|
|
5
|
+
* de carga en red y el funcionamiento para ocultar y visualizar la contraseña.
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const RHFTextFieldPassword: (props: RHFTextFieldPasswordProps) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RHFTextFieldPasswordClassesType } from './types';
|
|
2
|
+
export declare const RHFTextFieldPasswordClasses: RHFTextFieldPasswordClassesType;
|
|
3
|
+
export declare function getRHFTextFieldPasswordUtilityClass(slot: string): string;
|
|
4
|
+
export declare const useUtilityClasses: () => {
|
|
5
|
+
root: string;
|
|
6
|
+
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const RHFTextFieldPassword: (props: RHFTextFieldPasswordProps) => JSX.Element;
|
|
1
|
+
export * from './RHFTextFieldPassword';
|
|
2
|
+
export * from './types';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RHFTextFieldPasswordRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -4,7 +4,7 @@ import { useFormContext, Controller } from "react-hook-form";
|
|
|
4
4
|
import isString from "lodash/isString";
|
|
5
5
|
import { useDropzone } from "react-dropzone";
|
|
6
6
|
import { styled, alpha } from "@mui/material/styles";
|
|
7
|
-
import { I as Image } from "../../Image/index.
|
|
7
|
+
import { I as Image } from "../../Image/index.aa24e982.js";
|
|
8
8
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
9
9
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
10
10
|
const WrapperUploadImage = styled("div")(({
|
|
@@ -2,12 +2,12 @@ export { RHFAutocomplete } from './RHFAutocomplete';
|
|
|
2
2
|
export { getRHFAutocompleteComponentsDictionary } from './RHFAutocomplete/dictionary';
|
|
3
3
|
export { RHFAutocompleteAsync } from './RHFAutocompleteAsync';
|
|
4
4
|
export { getRHFAutocompleteAsyncComponentsDictionary } from './RHFAutocompleteAsync/dictionary';
|
|
5
|
-
export
|
|
5
|
+
export * from './RHFCheckbox/RHFCheckbox';
|
|
6
6
|
export { RHFDateTime } from './RHFDateTime';
|
|
7
7
|
export { RHFMultiCheckbox } from './RHFMultiCheckbox';
|
|
8
8
|
export { RHFSelect } from './RHFSelect';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export * from './RHFTextField';
|
|
10
|
+
export * from './RHFTextFieldPassword';
|
|
11
11
|
export { RHFRadioGroup } from './RHFRadioGroup';
|
|
12
12
|
export { RHFPeriod } from './RHFPeriod';
|
|
13
13
|
export { getPeriodComponetsDictionary } from '../Period/dictionary';
|
package/components/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './hook-form';
|
|
|
4
4
|
export * from './mui_extended';
|
|
5
5
|
export * from './formatters';
|
|
6
6
|
export * from './formatters/types';
|
|
7
|
-
export * from './formatters/
|
|
7
|
+
export * from './formatters/dictionary';
|
|
8
8
|
export { DataGrid } from './DataGrid';
|
|
9
9
|
export * from './DataGrid/formatters';
|
|
10
10
|
export type { Column, EditorProps, FormatterProps } from 'react-data-grid';
|
|
@@ -17,11 +17,12 @@ export * from './DynamicFilter/dictionary';
|
|
|
17
17
|
export * from './ErrorLabel';
|
|
18
18
|
export type { FilterFieldApply, RawFilterFieldApply, InitialFilterFieldApply, } from './DynamicFilter/types';
|
|
19
19
|
export * from './CommonActions/';
|
|
20
|
+
export * from './CmpDisenoTest';
|
|
20
21
|
export * from './CommonActions/dictionary';
|
|
21
22
|
export * from './DraggableWindow';
|
|
22
23
|
export * from './Icon';
|
|
23
|
-
export * from './Image';
|
|
24
24
|
export * from './LanguagePopover';
|
|
25
|
+
export * from './Image/Image';
|
|
25
26
|
export * from './Loadable';
|
|
26
27
|
export * from './modal';
|
|
27
28
|
export * from './NoItemSelected';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useEnvironment } from "@m4l/core";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
4
|
-
import "../areas/contexts/DynamicMFParmsContext/index.668bc2e2.js";
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.19172e70.js";
|
|
5
4
|
import { styled } from "@mui/material/styles";
|
|
6
|
-
import { a as getThemeVariantColor } from "../../utils/index.
|
|
5
|
+
import { a as getThemeVariantColor } from "../../utils/index.e882b264.js";
|
|
7
6
|
import { IconButton } from "@mui/material";
|
|
8
|
-
import { I as Icon } from "../Icon/index.
|
|
7
|
+
import { I as Icon } from "../Icon/index.f6e8d810.js";
|
|
9
8
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
9
|
const WrapperWindowBase = styled("div")(({ theme }) => ({
|
|
11
10
|
display: "flex",
|
|
@@ -1,22 +1,33 @@
|
|
|
1
1
|
import { useEnvironment } from "@m4l/core";
|
|
2
2
|
import "react";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
4
|
-
import "../
|
|
5
|
-
import { A as
|
|
6
|
-
import { A as
|
|
7
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.a0a341c7.js";
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.19172e70.js";
|
|
4
|
+
import { A as Actions } from "../CommonActions/components/Actions/index.a5f70d5d.js";
|
|
5
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.a81752ef.js";
|
|
6
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.d567aebb.js";
|
|
8
7
|
import "react-hook-form";
|
|
9
8
|
import { Typography } from "@mui/material";
|
|
10
9
|
import "@mui/material/Button";
|
|
10
|
+
import "../mui_extended/Button/index.8406ed5b.js";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
import "../../react-draggable.
|
|
13
|
-
import "../ModalDialog/index.
|
|
14
|
-
import "../Resizeable/index.
|
|
12
|
+
import "../../react-draggable.0eef011c.js";
|
|
13
|
+
import "../ModalDialog/index.c72a6e31.js";
|
|
14
|
+
import "../Resizeable/index.8a442a8b.js";
|
|
15
15
|
import "@m4l/graphics";
|
|
16
16
|
import { styled } from "@mui/material/styles";
|
|
17
|
-
import { I as Icon } from "../Icon/index.
|
|
18
|
-
import { b as getVariantColor } from "../../utils/index.
|
|
19
|
-
import { W as WindowBase } from "./WindowBase.
|
|
17
|
+
import { I as Icon } from "../Icon/index.f6e8d810.js";
|
|
18
|
+
import { b as getVariantColor } from "../../utils/index.e882b264.js";
|
|
19
|
+
import { W as WindowBase } from "./WindowBase.bed2458c.js";
|
|
20
|
+
import "../areas/components/index.e9971ebf.js";
|
|
21
|
+
import "../areas/components/AreasAdmin/index.01739b1f.js";
|
|
22
|
+
import "../mui_extended/IconButton/index.1318a283.js";
|
|
23
|
+
import "zustand";
|
|
24
|
+
import "../areas/contexts/AreasContext/index.1b624579.js";
|
|
25
|
+
import "zustand/shallow";
|
|
26
|
+
import "../areas/components/AreasContainer/index.41fb511e.js";
|
|
27
|
+
import "react-grid-layout/css/styles.css";
|
|
28
|
+
import "../../react-resizable.bb58c8fc.js";
|
|
29
|
+
import "../areas/contexts/index.9c342ce6.js";
|
|
30
|
+
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
20
31
|
import "@mui/lab";
|
|
21
32
|
const WrapperMessageIlustration = styled("div")(() => ({
|
|
22
33
|
display: "flex",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "@mui/material";
|
|
2
|
+
import "../../react-draggable.0eef011c.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../contexts/ModalContext/index.c8212291.js";
|
|
5
|
+
import "../ModalDialog/index.c72a6e31.js";
|
|
6
|
+
import "../Resizeable/index.8a442a8b.js";
|
|
7
|
+
import "react/jsx-runtime";
|
|
8
|
+
import "@m4l/graphics";
|
|
9
|
+
import "@m4l/core";
|
|
10
|
+
import "../CommonActions/components/Actions/index.a5f70d5d.js";
|
|
11
|
+
import "@mui/material/Button";
|
|
12
|
+
import "../mui_extended/Button/index.8406ed5b.js";
|
|
13
|
+
import "react-hook-form";
|
|
14
|
+
import "./WindowBase.bed2458c.js";
|
|
15
|
+
import "../Icon/index.f6e8d810.js";
|
|
16
|
+
import "@mui/material/styles";
|
|
17
|
+
import "../areas/components/index.e9971ebf.js";
|
|
18
|
+
import "../areas/components/AreasAdmin/index.01739b1f.js";
|
|
19
|
+
import "../mui_extended/IconButton/index.1318a283.js";
|
|
20
|
+
import "zustand";
|
|
21
|
+
import "../areas/contexts/AreasContext/index.1b624579.js";
|
|
22
|
+
import "zustand/shallow";
|
|
23
|
+
import "../areas/components/AreasContainer/index.41fb511e.js";
|
|
24
|
+
import "react-grid-layout/css/styles.css";
|
|
25
|
+
import "../../react-resizable.bb58c8fc.js";
|
|
26
|
+
import "../areas/contexts/index.9c342ce6.js";
|
|
27
|
+
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
28
|
+
import "@mui/lab";
|
|
29
|
+
import "./WindowConfirm.bde6242f.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Skeleton, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
|
|
2
|
-
import { I as IconButton } from "../IconButton/index.
|
|
2
|
+
import { I as IconButton } from "../IconButton/index.1318a283.js";
|
|
3
3
|
import { useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
4
|
-
import { I as Icon } from "../../Icon/index.
|
|
4
|
+
import { I as Icon } from "../../Icon/index.f6e8d810.js";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
styled("div")(({
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ExtendButtonProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Provee un botón para que los clientes ejecuten acciones en la plataforma web. Aporta su versión provisional de carga en red.
|
|
5
|
+
* @param props
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare const Button: (props: ExtendButtonProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LButton";
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
2
|
+
import { styled, Skeleton, generateUtilityClasses, generateUtilityClass, IconButton, Tooltip } from "@mui/material";
|
|
3
|
+
import MuiButton from "@mui/material/Button";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
import { I as Image } from "../../Image/index.aa24e982.js";
|
|
7
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
+
import { LoadingButton as LoadingButton$1 } from "@mui/lab";
|
|
9
|
+
const ButtonRoot = styled("div")(({
|
|
10
|
+
theme
|
|
11
|
+
}) => ({
|
|
12
|
+
...theme.components?.M4LButton?.styleOverrides
|
|
13
|
+
}));
|
|
14
|
+
styled(Skeleton)(({
|
|
15
|
+
theme
|
|
16
|
+
}) => ({
|
|
17
|
+
borderRadius: theme.spacing(0.5)
|
|
18
|
+
}));
|
|
19
|
+
const componentName$1 = "M4LButton";
|
|
20
|
+
generateUtilityClasses(componentName$1, [
|
|
21
|
+
"root",
|
|
22
|
+
"skeleton"
|
|
23
|
+
]);
|
|
24
|
+
function getButtonUtilityClass(slot) {
|
|
25
|
+
return generateUtilityClass(componentName$1, slot);
|
|
26
|
+
}
|
|
27
|
+
const useUtilityClasses$1 = () => {
|
|
28
|
+
const slots = {
|
|
29
|
+
root: ["root"],
|
|
30
|
+
skeleton: ["skeleton"]
|
|
31
|
+
};
|
|
32
|
+
const composedClasses = unstable_composeClasses(slots, getButtonUtilityClass, {});
|
|
33
|
+
return {
|
|
34
|
+
...composedClasses
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
const Button = (props) => {
|
|
38
|
+
const isSkeleton = useModuleSkeleton();
|
|
39
|
+
const classes = useUtilityClasses$1();
|
|
40
|
+
return /* @__PURE__ */ jsx(ButtonRoot, {
|
|
41
|
+
className: classes.root,
|
|
42
|
+
"data-testid": "ButtonRoot",
|
|
43
|
+
children: !isSkeleton ? /* @__PURE__ */ jsx(MuiButton, {
|
|
44
|
+
...props
|
|
45
|
+
}) : /* @__PURE__ */ jsx(Skeleton, {
|
|
46
|
+
className: classes.skeleton,
|
|
47
|
+
"data-testid": "MuiSkeleton",
|
|
48
|
+
sx: {
|
|
49
|
+
borderRadius: 2
|
|
50
|
+
},
|
|
51
|
+
variant: "rectangular",
|
|
52
|
+
width: "100px",
|
|
53
|
+
height: "36px"
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
const WrapperImageButton = styled("div")(({
|
|
58
|
+
theme
|
|
59
|
+
}) => ({
|
|
60
|
+
...theme.components?.M4LImageButton?.styleOverrides
|
|
61
|
+
}));
|
|
62
|
+
const componentName = "M4LImageButton";
|
|
63
|
+
const imageButtonClasses = generateUtilityClasses(componentName, [
|
|
64
|
+
"root"
|
|
65
|
+
]);
|
|
66
|
+
function getImageButtonUtilityClass(slot) {
|
|
67
|
+
return generateUtilityClass(componentName, slot);
|
|
68
|
+
}
|
|
69
|
+
const useUtilityClasses = () => {
|
|
70
|
+
const slots = {
|
|
71
|
+
root: ["root"]
|
|
72
|
+
};
|
|
73
|
+
const composedClasses = unstable_composeClasses(slots, getImageButtonUtilityClass, {});
|
|
74
|
+
return {
|
|
75
|
+
...composedClasses
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
function ImageButton({
|
|
79
|
+
src,
|
|
80
|
+
width,
|
|
81
|
+
height,
|
|
82
|
+
useIntersectionObserver,
|
|
83
|
+
skeletonVariant = "circle",
|
|
84
|
+
tooltip,
|
|
85
|
+
sx = {
|
|
86
|
+
width: 40,
|
|
87
|
+
height: 40
|
|
88
|
+
},
|
|
89
|
+
...other
|
|
90
|
+
}) {
|
|
91
|
+
const finalTooltip = tooltip;
|
|
92
|
+
const classes = useUtilityClasses();
|
|
93
|
+
const imageButton = useMemo(() => {
|
|
94
|
+
return /* @__PURE__ */ jsx(IconButton, {
|
|
95
|
+
sx,
|
|
96
|
+
...other,
|
|
97
|
+
children: /* @__PURE__ */ jsx(Image, {
|
|
98
|
+
src,
|
|
99
|
+
width,
|
|
100
|
+
height,
|
|
101
|
+
useIntersectionObserver,
|
|
102
|
+
skeletonVariant
|
|
103
|
+
})
|
|
104
|
+
});
|
|
105
|
+
}, [src, width, height, useIntersectionObserver, skeletonVariant, sx]);
|
|
106
|
+
return /* @__PURE__ */ jsx(WrapperImageButton, {
|
|
107
|
+
className: classes.root,
|
|
108
|
+
"data-testid": "WrapperImageButton",
|
|
109
|
+
children: finalTooltip ? /* @__PURE__ */ jsx(Tooltip, {
|
|
110
|
+
title: finalTooltip || "",
|
|
111
|
+
children: imageButton
|
|
112
|
+
}) : imageButton
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
const WrapperSkeleton = styled("div")(({
|
|
116
|
+
theme
|
|
117
|
+
}) => ({
|
|
118
|
+
display: "flex",
|
|
119
|
+
width: "100%",
|
|
120
|
+
borderRadius: theme.spacing(1),
|
|
121
|
+
overflow: "hidden"
|
|
122
|
+
}));
|
|
123
|
+
const SkeletonLoadingButton = () => /* @__PURE__ */ jsx(WrapperSkeleton, {
|
|
124
|
+
id: "WrapperSKTLoadingButton",
|
|
125
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
126
|
+
variant: "rectangular",
|
|
127
|
+
width: "100%",
|
|
128
|
+
height: "48px"
|
|
129
|
+
})
|
|
130
|
+
});
|
|
131
|
+
const LoadingButton = (props) => {
|
|
132
|
+
const {
|
|
133
|
+
children,
|
|
134
|
+
...other
|
|
135
|
+
} = props;
|
|
136
|
+
const isSkeleton = useModuleSkeleton();
|
|
137
|
+
if (isSkeleton) {
|
|
138
|
+
return /* @__PURE__ */ jsx(SkeletonLoadingButton, {});
|
|
139
|
+
}
|
|
140
|
+
return /* @__PURE__ */ jsx(LoadingButton$1, {
|
|
141
|
+
...other,
|
|
142
|
+
children
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
export {
|
|
146
|
+
Button as B,
|
|
147
|
+
ImageButton as I,
|
|
148
|
+
LoadingButton as L,
|
|
149
|
+
imageButtonClasses as i
|
|
150
|
+
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const Button: (props: ExtendButtonProps) => JSX.Element;
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ButtonRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const SKTButton: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
animation?: false | "pulse" | "wave" | undefined;
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
classes?: Partial<import("@mui/material").SkeletonClasses> | undefined;
|
|
7
|
+
height?: string | number | undefined;
|
|
8
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
9
|
+
variant?: "text" | "rectangular" | "rounded" | "circular" | undefined;
|
|
10
|
+
width?: string | number | undefined;
|
|
11
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
12
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
13
|
+
}, "children" | "width" | "height" | keyof import("@mui/material/OverridableComponent").CommonProps | "animation" | "sx" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
|
|
3
|
+
import { IconButtonProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Provee un botón con un icono para que los clientes ejecuten acciones en la plataforma web. Aporta su versión provisional de carga en red.
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const IconButton: (props: IconButtonProps & MUIIconButtonProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LIconButton";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IconButtonClassesType } from './types';
|
|
2
|
+
export declare const IconButtonClasses: IconButtonClassesType;
|
|
3
|
+
export declare function getIconButtonUtilityClass(slot: string): string;
|
|
4
|
+
export declare const useUtilityClasses: () => {
|
|
5
|
+
root: string;
|
|
6
|
+
skeleton: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
|
+
import { Skeleton, styled, generateUtilityClasses, generateUtilityClass, Tooltip, IconButton as IconButton$1 } from "@mui/material";
|
|
4
|
+
import { I as Icon } from "../../Icon/index.f6e8d810.js";
|
|
5
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
6
|
+
import "@mui/material/styles";
|
|
7
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
+
const SkeletonIconButton = (props) => {
|
|
9
|
+
const {
|
|
10
|
+
classes
|
|
11
|
+
} = props;
|
|
12
|
+
return /* @__PURE__ */ jsx(Skeleton, {
|
|
13
|
+
variant: "circular",
|
|
14
|
+
width: "30px",
|
|
15
|
+
height: "30px",
|
|
16
|
+
className: classes.skeleton,
|
|
17
|
+
"data-testid": "SkeletonIconButton"
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
const IconButtonRoot = styled("div")(({
|
|
21
|
+
theme
|
|
22
|
+
}) => ({
|
|
23
|
+
...theme.components?.M4LIconButton?.styleOverrides
|
|
24
|
+
}));
|
|
25
|
+
const componentName = "M4LIconButton";
|
|
26
|
+
generateUtilityClasses(componentName, [
|
|
27
|
+
"root",
|
|
28
|
+
"skeleton"
|
|
29
|
+
]);
|
|
30
|
+
function getIconButtonUtilityClass(slot) {
|
|
31
|
+
return generateUtilityClass(componentName, slot);
|
|
32
|
+
}
|
|
33
|
+
const useUtilityClasses = () => {
|
|
34
|
+
const slots = {
|
|
35
|
+
root: ["root"],
|
|
36
|
+
skeleton: ["skeleton"]
|
|
37
|
+
};
|
|
38
|
+
const composedClasses = unstable_composeClasses(slots, getIconButtonUtilityClass, {});
|
|
39
|
+
return {
|
|
40
|
+
...composedClasses
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
const IconButton = (props) => {
|
|
44
|
+
const {
|
|
45
|
+
src,
|
|
46
|
+
tooltip,
|
|
47
|
+
size = "small",
|
|
48
|
+
dictionaryTooltip,
|
|
49
|
+
bgColor = "primary.active",
|
|
50
|
+
rotationAngle,
|
|
51
|
+
angleTransition,
|
|
52
|
+
...other
|
|
53
|
+
} = props;
|
|
54
|
+
const {
|
|
55
|
+
getLabel
|
|
56
|
+
} = useModuleDictionary();
|
|
57
|
+
const isSkeleton = useModuleSkeleton();
|
|
58
|
+
const finalTooltip = useMemo(() => {
|
|
59
|
+
if (other.disabled) {
|
|
60
|
+
return void 0;
|
|
61
|
+
}
|
|
62
|
+
if (dictionaryTooltip && getLabel) {
|
|
63
|
+
return getLabel(dictionaryTooltip);
|
|
64
|
+
}
|
|
65
|
+
return tooltip;
|
|
66
|
+
}, [dictionaryTooltip, getLabel, other.disabled]);
|
|
67
|
+
const classes = useUtilityClasses();
|
|
68
|
+
return /* @__PURE__ */ jsx(IconButtonRoot, {
|
|
69
|
+
className: classes.root,
|
|
70
|
+
"data-testid": "IconButtonRoot",
|
|
71
|
+
children: !isSkeleton ? /* @__PURE__ */ jsx(Fragment, {
|
|
72
|
+
children: finalTooltip ? /* @__PURE__ */ jsx(Tooltip, {
|
|
73
|
+
title: finalTooltip || "",
|
|
74
|
+
children: /* @__PURE__ */ jsx(IconButton$1, {
|
|
75
|
+
size,
|
|
76
|
+
...other,
|
|
77
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
78
|
+
src,
|
|
79
|
+
bgColor: other.disabled ? "action.disabled" : bgColor,
|
|
80
|
+
rotationAngle
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
}) : /* @__PURE__ */ jsx(IconButton$1, {
|
|
84
|
+
size,
|
|
85
|
+
...other,
|
|
86
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
87
|
+
src,
|
|
88
|
+
bgColor: other.disabled ? "action.disabled" : bgColor,
|
|
89
|
+
rotationAngle,
|
|
90
|
+
angleTransition
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
}) : /* @__PURE__ */ jsx(SkeletonIconButton, {
|
|
94
|
+
classes
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
export {
|
|
99
|
+
IconButton as I
|
|
100
|
+
};
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { IconButtonProps } from './types';
|
|
4
|
-
export declare function IconButton({ src, tooltip, size, dictionaryTooltip, bgColor, rotationAngle, angleTransition, ...other }: IconButtonProps & MUIIconButtonProps): JSX.Element;
|
|
1
|
+
export * from './IconButton';
|
|
2
|
+
export * from './types';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const IconButtonRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ImageButtonProps } from './types';
|
|
3
|
+
import { ImageButtonClassesType } from './utils/Clases/types';
|
|
4
|
+
export { imageButtonClasses } from './utils/Clases/index';
|
|
5
|
+
export declare type ImageButtonClassesKey = keyof ImageButtonClassesType;
|
|
6
|
+
export declare function ImageButton({ src, width, height, useIntersectionObserver, skeletonVariant, tooltip, sx, ...other }: ImageButtonProps): JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const WrapperImageButton: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -2,6 +2,4 @@ import { ImageProps } from '../../Image/types';
|
|
|
2
2
|
import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
|
|
3
3
|
export interface ImageButtonProps extends ImageProps, MUIIconButtonProps {
|
|
4
4
|
tooltip?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
dictionaryTooltip?: string;
|
|
7
5
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LImageButton";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useState, useMemo } from "react";
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { IconButton, Tooltip, MenuItem } from "@mui/material";
|
|
4
|
-
import { P as Popover } from "../Popover/index.
|
|
4
|
+
import { P as Popover } from "../Popover/index.58c49cc0.js";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
|
-
import { I as Icon } from "../../Icon/index.
|
|
6
|
+
import { I as Icon } from "../../Icon/index.f6e8d810.js";
|
|
7
7
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
8
8
|
const WrapperMenuActions = styled(IconButton)(() => ({}));
|
|
9
9
|
const LabelMemuItem = styled("div")(({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { Skeleton, TablePagination } from "@mui/material";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { I as IconButton } from "../IconButton/index.
|
|
4
|
+
import { I as IconButton } from "../IconButton/index.1318a283.js";
|
|
5
5
|
import { useEnvironment } from "@m4l/core";
|
|
6
6
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
7
7
|
const WrapperPagerActions = styled("div")(({ theme }) => ({
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopoverProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Provee de un componente que genera un contenedor desacoplado del flujo del documento de tipo ventana emergente,
|
|
5
|
+
usado hacer énfasis en información, comunmente contiene texto, elementos interactivos y acciones de usuario.
|
|
6
|
+
* @param props
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const Popover: (props: PopoverProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PopoverClassesType } from './types';
|
|
2
|
+
import { OwnerState } from '../types';
|
|
3
|
+
export declare const popoverClasses: PopoverClassesType;
|
|
4
|
+
export declare function getPopoverClassesUtilityClass(slot: string): string;
|
|
5
|
+
export declare const useUtilityClasses: (ownerState: OwnerState) => {
|
|
6
|
+
root: string;
|
|
7
|
+
arrowStyle: string;
|
|
8
|
+
};
|