@m4l/components 0.2.21 → 0.2.24
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 +15 -1
- package/components/AccountPopover/classes/index.d.ts +9 -0
- package/components/AccountPopover/classes/types.d.ts +10 -0
- package/components/AccountPopover/{index.b00671fa.js → index.505e278a.js} +1 -1
- package/components/AccountPopover/subcomponents/MyAvatar/index.d.ts +7 -0
- package/components/AccountPopover/subcomponents/MyAvatar/types.d.ts +12 -0
- package/components/AccountPopover/subcomponents/PopOver/index.d.ts +1 -0
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +15 -0
- package/components/AppBar/classes/index.d.ts +17 -0
- package/components/AppBar/{index.3a694645.js → index.7106417d.js} +2 -2
- package/components/AppBar/types.d.ts +6 -0
- package/components/CommonActions/components/ActionCancel/{index.bd595785.js → index.de862adf.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.6fd990b7.js → index.3fd5c858.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.798cb977.js → index.07394f62.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.64498081.js → index.79fc2386.js} +2 -2
- package/components/CommonActions/components/Actions/{index.b8a1d42a.js → index.2f6286eb.js} +1 -1
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.6faecd3c.js → index.36270dd1.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.3cabb920.js → index.8b008692.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.fd1bea19.js → index.cb308086.js} +1 -1
- package/components/DataGrid/{index.660a6e7b.js → index.b1eafce1.js} +3 -3
- package/components/DataGrid/subcomponents/Actions/{index.e07a52bf.js → index.9af87fa1.js} +10 -10
- package/components/DragResizeWindow/{index.7c402375.js → index.62b6a916.js} +3 -3
- package/components/DynamicFilter/{index.0d1fcfa7.js → index.b93e5649.js} +10 -10
- package/components/GridLayout/{index.88b62a5d.js → index.0996cd19.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.5256b153.js → index.ded0e80e.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.dfed4e68.js → index.0fd1b7f8.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.6b5de802.js → index.7669a2cd.js} +1 -1
- package/components/HamburgerMenu/index.25029e23.js +82 -0
- package/components/Icon/{index.770f86ae.js → index.b920baf8.js} +1 -1
- package/components/Image/{index.6dd3b128.js → index.d034ca68.js} +9 -13
- package/components/LanguagePopover/{index.b7f2816d.js → index.e54c5cc7.js} +2 -2
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.d.ts +4 -0
- package/components/LinearProgressIndeterminate/{index.32caeee2.js → index.a0ad2d9e.js} +1 -1
- package/components/Loadable/index.d.ts +5 -0
- package/components/LoadingError/LoadingError.d.ts +12 -0
- package/components/LoadingError/classes/index.d.ts +12 -0
- package/components/LoadingError/{index.3a86956f.js → index.123e16f8.js} +3 -3
- package/components/LoadingError/types.d.ts +7 -0
- package/components/MFLoader/MFLoader.d.ts +11 -0
- package/components/MFLoader/{index.544940c7.js → index.52096ea5.js} +1 -1
- package/components/MFLoader/types.d.ts +12 -0
- package/components/ModalDialog/{index.9ac45602.js → index.2e931b5f.js} +4 -4
- package/components/NoItemSelected/{index.08ec6c48.js → index.1024b856.js} +1 -1
- package/components/ObjectLogs/{index.0d263f80.js → index.d10f4a2f.js} +5 -5
- package/components/PDFViewer/{index.de51408a.js → index.98852f91.js} +1 -1
- package/components/Page/{index.09e28ba1.js → index.def863f2.js} +1 -1
- package/components/PaperForm/{index.130ce6ad.js → index.8a617a66.js} +1 -1
- package/components/Period/{index.3c7e8590.js → index.d80dff10.js} +2 -2
- package/components/PrintingSystem/{index.9dcfb35d.js → index.2e17cae5.js} +13 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index.a3897785.js → index.c5ffe20a.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.ecd5e809.js → index.020c037c.js} +25 -9
- package/components/PrintingSystem/subcomponents/DividerNode/{index.6e177f94.js → index.78b023bb.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.82f1e38f.js → index.b29fc1e9.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.2b8fef69.js → index.11626284.js} +4 -2
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.a5d48adf.js → index.ef44c8ab.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.a4c5c3e6.js → index.d72d224b.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.3764b312.js → index.8e53440c.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.4941ecf4.js → index.0b66458e.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.9cc3b262.js → index.b4c72fef.js} +1 -1
- package/components/PropertyValue/{index.d975c7f3.js → index.3b6670d4.js} +1 -1
- package/components/Resizeable/{index.14ab4804.js → index.0eb66c37.js} +1 -1
- package/components/SideBar/SideBar.d.ts +55 -0
- package/components/SideBar/classes/types.d.ts +2 -0
- package/components/SideBar/context/sideBarContext/index.d.ts +10 -0
- package/components/SideBar/context/sideBarContext/types.d.ts +12 -0
- package/components/SideBar/hooks/useSideBar/index.d.ts +3 -0
- package/components/SideBar/{index.e55c9b7c.js → index.cdb70977.js} +29 -18
- package/components/SideBar/subcomponents/ContentDesktop/index.d.ts +4 -0
- package/components/SideBar/subcomponents/ContentDesktop/subcomponents/CollapseButton/index.d.ts +9 -0
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +4 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/index.d.ts +7 -0
- package/components/SideBar/subcomponents/ContentMobile/index.d.ts +4 -0
- package/components/SideBar/types.d.ts +32 -1
- package/components/SplitLayout/SplitLayout.d.ts +12 -0
- package/components/SplitLayout/classes/index.d.ts +7 -0
- package/components/SplitLayout/types.d.ts +9 -0
- package/components/ToastContainer/{index.b5f27f85.js → index.97fdba82.js} +3 -3
- package/components/animate/AnimatedScroll/animatedScroll.d.ts +5 -0
- package/components/animate/AnimatedScroll/types.d.ts +9 -0
- package/components/animate/IconButtonAnimate/index.d.ts +9 -0
- package/components/animate/IconButtonAnimate/types.d.ts +5 -0
- package/components/animate/LoadingScreen/index.d.ts +5 -0
- package/components/animate/LoadingScreen/types.d.ts +12 -0
- package/components/animate/MotionContainer/index.d.ts +20 -0
- package/components/animate/MotionLazyContainer/index.d.ts +8 -0
- package/components/animate/PropagateLoader/index.d.ts +5 -0
- package/components/animate/type.d.ts +32 -0
- package/components/areas/components/AreasAdmin/classes/index.d.ts +6 -0
- package/components/areas/components/AreasAdmin/classes/types.d.ts +30 -0
- package/components/areas/components/AreasAdmin/index.d.ts +6 -0
- package/components/areas/components/AreasAdmin/{index.c802bb2f.js → index.e4f0ccc1.js} +10 -10
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/{index.214d8c7d.js → index.f87c63ca.js} +14 -14
- package/components/areas/contexts/AreasContext/{index.055ab6e2.js → index.3e3d8c62.js} +4 -4
- package/components/areas/contexts/DynamicMFParmsContext/index.d.ts +11 -0
- package/components/areas/contexts/DynamicMFParmsContext/store.d.ts +14 -0
- package/components/areas/contexts/DynamicMFParmsContext/types.d.ts +12 -0
- package/components/areas/contexts/WindowToolsMFContext/index.d.ts +14 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +51 -0
- package/components/areas/hooks/useAreas/{index.5da0bc90.js → index.b18fe111.js} +1 -1
- package/components/areas/types.d.ts +80 -0
- package/components/commercial/AppBarCommercial/classes/constants.d.ts +1 -0
- package/components/commercial/AppBarCommercial/classes/index.d.ts +4 -0
- package/components/commercial/AppBarCommercial/classes/types.d.ts +6 -0
- package/components/commercial/AppBarCommercial/index.c5022fdd.js +30 -0
- package/components/commercial/AppBarCommercial/index.d.ts +2 -0
- package/components/commercial/AppBarCommercial/types.d.ts +4 -0
- package/components/commercial/HamburgerMenu/HamburgerMenu.d.ts +29 -0
- package/components/commercial/HamburgerMenu/classes/constants.d.ts +1 -0
- package/components/commercial/HamburgerMenu/classes/index.d.ts +7 -0
- package/components/commercial/HamburgerMenu/classes/type.d.ts +7 -0
- package/components/commercial/HamburgerMenu/index.d.ts +2 -0
- package/components/commercial/HamburgerMenu/test/constants.d.ts +1 -0
- package/components/commercial/HamburgerMenu/test/utils.d.ts +2 -0
- package/components/commercial/HamburgerMenu/types.d.ts +5 -0
- package/components/commercial/SectionCommercial/classes/constants.d.ts +1 -0
- package/components/commercial/SectionCommercial/classes/index.d.ts +5 -0
- package/components/commercial/SectionCommercial/classes/types.d.ts +9 -0
- package/components/commercial/SectionCommercial/index.d.ts +2 -0
- package/components/commercial/SectionCommercial/types.d.ts +9 -0
- package/components/commercial/TopBar/TopBar.d.ts +16 -0
- package/components/commercial/TopBar/classes/constants.d.ts +1 -0
- package/components/commercial/TopBar/classes/index.d.ts +12 -0
- package/components/commercial/TopBar/classes/types.d.ts +12 -0
- package/components/commercial/TopBar/component/ConteinItem/index.d.ts +5 -0
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.d.ts +12 -0
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/subcomponents/ArrowIcon/index.d.ts +2 -0
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/subcomponents/ArrowIcon/types.d.ts +4 -0
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/types.d.ts +4 -0
- package/components/commercial/TopBar/context/index.d.ts +16 -0
- package/components/commercial/TopBar/context/type.d.ts +12 -0
- package/components/commercial/TopBar/hook/topBarContext/index.d.ts +5 -0
- package/components/commercial/TopBar/index.1a73fecb.js +275 -0
- package/components/commercial/TopBar/index.d.ts +1 -0
- package/components/commercial/TopBar/type.d.ts +7 -0
- package/components/commercial/TopBar/utils/isActive/index.d.ts +12 -0
- package/components/commercial/index.d.ts +4 -0
- package/components/formatters/BooleanFormatter/{index.7a463493.js → index.b3052107.js} +2 -2
- package/components/formatters/{index.648cf3b0.js → index.95cc337e.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.d05ae217.js → index.cf399b24.js} +6 -2
- package/components/hook-form/RHFAutocompleteAsync/{index.699b8aaf.js → index.b2b75475.js} +1 -1
- package/components/hook-form/RHFColorPicker/{index.c069ef4d.js → index.48a1ee1b.js} +3 -3
- package/components/hook-form/RHFDateTime/{index.97bd36d7.js → index.5a673a96.js} +1 -1
- package/components/hook-form/RHFPeriod/{index.4e10efa3.js → index.4205c8ab.js} +1 -1
- package/components/hook-form/RHFTextField/{index.78934e84.js → index.fbb29ee1.js} +2 -2
- package/components/hook-form/RHFUpload/{index.7178a50b.js → index.05d7e2a7.js} +2 -2
- package/components/index.d.ts +1 -0
- package/components/modal/WindowBase/index.d.ts +5 -0
- package/components/modal/WindowBase/types.d.ts +4 -0
- package/components/modal/{WindowBase.14255209.js → WindowBase.998b8a38.js} +3 -3
- package/components/modal/WindowConfirm/index.d.ts +6 -0
- package/components/modal/WindowConfirm/types.d.ts +33 -0
- package/components/modal/{WindowConfirm.f79ee169.js → WindowConfirm.55ac3c8f.js} +23 -20
- package/components/mui_extended/Accordion/{index.fb6849e8.js → index.fb4eb664.js} +2 -2
- package/components/mui_extended/Button/Button.d.ts +1 -2
- package/components/mui_extended/Button/{index.928f05b7.js → index.e520bd15.js} +1 -1
- package/components/mui_extended/IconButton/{index.023c369f.js → index.9ea23f87.js} +1 -1
- package/components/mui_extended/MenuActions/{index.34293162.js → index.fa7c26a5.js} +2 -2
- package/components/mui_extended/Pager/{index.212ee603.js → index.0c703574.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.cb0fb441.js → index.bcaea74b.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.49390b68.js → index.131772d7.js} +1 -1
- package/contexts/ModalContext/{index.e8f5ad3e.js → index.978a412d.js} +1 -1
- package/hooks/useFormAddEdit/{index.5e748884.js → index.4caddd24.js} +2 -2
- package/hooks/useModal/{index.50b23c06.js → index.786a4439.js} +1 -1
- package/index.js +85 -76
- package/{node_modules.448153f1.js → node_modules.71622512.js} +1 -1
- package/package.json +1 -1
- package/{react-draggable.38b6012b.js → react-draggable.ee21cb7e.js} +1 -1
- package/{react-resizable.3cdda6a7.js → react-resizable.ee028152.js} +2 -2
- package/utils/index.d.ts +7 -5
- package/vendor.2c881bac.js +162 -0
- package/utils/getComponentUtilityClass.d.ts +0 -1
- package/utils/getPaletteColor.d.ts +0 -2
- package/utils/getThemeVariantColor.d.ts +0 -3
- package/utils/getTransformXY.d.ts +0 -4
- package/utils/isValidDate.d.ts +0 -1
- package/vendor.daffbfe5.js +0 -114
- package/utils/{index.79b6a2c1.js → index.de903261.js} +3 -3
package/@types/export.d.ts
CHANGED
|
@@ -391,6 +391,20 @@ declare module '@mui/material/styles' {
|
|
|
391
391
|
M4LPDFViewer?: {
|
|
392
392
|
styleOverrides?: ComponentsOverrides<Theme>['M4LPDFViewer'];
|
|
393
393
|
};
|
|
394
|
-
|
|
394
|
+
M4LTopBar?: {
|
|
395
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LTopBar'];
|
|
396
|
+
};
|
|
397
|
+
M4LPopoverTopBar?: {
|
|
398
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LPopoverTopBar'];
|
|
399
|
+
};
|
|
400
|
+
M4LAppBarCommercial?: {
|
|
401
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAppBarComercial'];
|
|
402
|
+
};
|
|
403
|
+
M4LHamburgerMenuCommercial?: {
|
|
404
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LHamburgerMenuCommercial'];
|
|
405
|
+
};
|
|
406
|
+
M4LSectionCommercial?: {
|
|
407
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LSectionComercial'];
|
|
408
|
+
};
|
|
395
409
|
}
|
|
396
410
|
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { AccountPopoverClassesType } from './types';
|
|
2
2
|
export declare const accountPopoverClasses: AccountPopoverClassesType;
|
|
3
|
+
/**
|
|
4
|
+
* Obtiene el nombre de la clase de utilidad para una ranura específica.
|
|
5
|
+
* @param slot La ranura para la que se desea obtener la clase de utilidad.
|
|
6
|
+
* @returns El nombre de la clase de utilidad para la ranura especificada.
|
|
7
|
+
*/
|
|
3
8
|
export declare function getAccountPopoverClassesUtilityClass(slot: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Hook personalizado para utilizar las clases de utilidad del componente AccountPopover.
|
|
11
|
+
* @returns Las clases de utilidad del componente AccountPopover.
|
|
12
|
+
*/
|
|
4
13
|
export declare const useAccountPopoverUtilityClasses: () => {
|
|
5
14
|
root: string;
|
|
6
15
|
containerUserName: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { useAccountPopoverUtilityClasses } from ".";
|
|
2
|
+
/**
|
|
3
|
+
* Tipos de datos para las clases del componente AccountPopover.
|
|
4
|
+
*/
|
|
2
5
|
export interface AccountPopoverClassesType {
|
|
3
6
|
root: string;
|
|
4
7
|
containerUserName: string;
|
|
@@ -18,5 +21,12 @@ export interface AccountPopoverClassesType {
|
|
|
18
21
|
logOut: string;
|
|
19
22
|
menuItem: string;
|
|
20
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Tipo de dato para las claves de las clases del componente AccountPopover.
|
|
26
|
+
* Utilizado para construir overrides en el objeto del tema.
|
|
27
|
+
*/
|
|
21
28
|
export declare type AccountPopoverClassesKey = keyof AccountPopoverClassesType;
|
|
29
|
+
/**
|
|
30
|
+
* Tipo para las clases del componente AccountPopover.
|
|
31
|
+
*/
|
|
22
32
|
export declare type AccountPopoverClasses = ReturnType<typeof useAccountPopoverUtilityClasses>;
|
|
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import { A as Avatar } from "../mui_extended/Avatar/index.75e6ed57.js";
|
|
8
8
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
9
9
|
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
10
|
-
import { I as Icon } from "../Icon/index.
|
|
10
|
+
import { I as Icon } from "../Icon/index.b920baf8.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
const componentName = "M4LAccountPopover";
|
|
13
13
|
generateUtilityClasses(componentName, [
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { MyAvatarProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente utilizado para mostrar avatares de usuarios.
|
|
4
|
+
* Si se proporciona una URL de imagen para el avatar, se muestra esa imagen.
|
|
5
|
+
* Si no se proporciona una URL de imagen, se generan iniciales a partir del primer nombre y el apellido del usuario.
|
|
6
|
+
* @param {MyAvatarProps} props - Las propiedades del componente MyAvatar.
|
|
7
|
+
* @returns {JSX.Element} El componente MyAvatar.
|
|
8
|
+
*/
|
|
2
9
|
export default function MyAvatar(props: MyAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import { Maybe } from "@m4l/core";
|
|
2
2
|
import { AvatarProps } from "@mui/material";
|
|
3
|
+
/**
|
|
4
|
+
* Propiedades del componente MyAvatar.
|
|
5
|
+
*/
|
|
3
6
|
export interface MyAvatarProps extends AvatarProps {
|
|
7
|
+
/**
|
|
8
|
+
* La URL del avatar.
|
|
9
|
+
*/
|
|
4
10
|
avatarUrl: Maybe<string>;
|
|
11
|
+
/**
|
|
12
|
+
* El primer nombre del usuario.
|
|
13
|
+
*/
|
|
5
14
|
firstName: string;
|
|
15
|
+
/**
|
|
16
|
+
* El apellido del usuario.
|
|
17
|
+
*/
|
|
6
18
|
lastName: string;
|
|
7
19
|
}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import { AccountPopoverClasses } from "../../classes/types";
|
|
2
2
|
import { AccountPopoverProps, AsyncTypes, RightMenuData, UserAuth } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Propiedades extendidas para el componente PopOver.
|
|
5
|
+
*/
|
|
3
6
|
export interface PopOverProps extends Omit<AccountPopoverProps, 'userData'> {
|
|
7
|
+
/**
|
|
8
|
+
* Datos para renderizar los elementos del popover.
|
|
9
|
+
*/
|
|
4
10
|
data: Array<RightMenuData> | [];
|
|
11
|
+
/**
|
|
12
|
+
* Clases personalizadas para el componente.
|
|
13
|
+
*/
|
|
5
14
|
classes: AccountPopoverClasses;
|
|
15
|
+
/**
|
|
16
|
+
* Datos del usuario para el popover.
|
|
17
|
+
*/
|
|
6
18
|
userData: UserAuth | null | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Estado de carga asíncrona.
|
|
21
|
+
*/
|
|
7
22
|
asyncState: AsyncTypes;
|
|
8
23
|
}
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import { AppBarClassesType } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {Object} AppBarClassesType
|
|
4
|
+
* @property {string} root - Clase para el contenedor raíz del AppBar.
|
|
5
|
+
* @property {string} containerChilds - Clase para el contenedor de elementos secundarios del AppBar.
|
|
6
|
+
* @property {string} containerIconMenuToggle - Clase para el contenedor del icono de menú del AppBar.
|
|
7
|
+
* @property {string} iconMenuToggle - Clase para el icono de menú del AppBar.
|
|
8
|
+
*/
|
|
9
|
+
/**Inventario completo de clases del componente. */
|
|
2
10
|
export declare const appBarClasses: AppBarClassesType;
|
|
11
|
+
/**
|
|
12
|
+
* Función que devuelve una clase de utilidad específica según el slot proporcionado.
|
|
13
|
+
* @param {string} slot - El slot para el cual se desea obtener la clase de utilidad.
|
|
14
|
+
* @returns {string} La clase de utilidad correspondiente al slot.
|
|
15
|
+
*/
|
|
3
16
|
export declare function getAppBarClassesUtilityClass(slot: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Función de gancho que proporciona las clases de utilidad compuestas para el componente AppBar.
|
|
19
|
+
* @returns {Object} Un objeto que contiene las clases de utilidad compuestas para el AppBar.
|
|
20
|
+
*/
|
|
4
21
|
export declare const useAppBarUtilityClasses: () => {
|
|
5
22
|
root: string;
|
|
6
23
|
containerChilds: string;
|
|
@@ -5,9 +5,9 @@ import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
|
5
5
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
-
import { I as Image } from "../Image/index.
|
|
8
|
+
import { I as Image } from "../Image/index.d034ca68.js";
|
|
9
9
|
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
10
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
10
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.9ea23f87.js";
|
|
11
11
|
const AppBarRoot = styled("header")(({
|
|
12
12
|
theme
|
|
13
13
|
}) => ({
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Propiedades de estilo para el componente raíz de la barra de aplicaciones.
|
|
4
|
+
*/
|
|
2
5
|
export declare type RootStyleProps = {
|
|
6
|
+
/** Indica si la barra de aplicaciones está colapsada. */
|
|
3
7
|
isCollapse: boolean;
|
|
8
|
+
/** Indica si hay un desplazamiento (offset) aplicado a la barra de aplicaciones. */
|
|
4
9
|
isOffset: boolean;
|
|
10
|
+
/** Indica si la barra lateral está visible.*/
|
|
5
11
|
isSideBarVisible: boolean;
|
|
6
12
|
};
|
|
7
13
|
export interface AppBarProps {
|
package/components/CommonActions/components/ActionCancel/{index.bd595785.js → index.de862adf.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
3
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
2
|
+
import { B as Button } from "../../../mui_extended/Button/index.e520bd15.js";
|
|
3
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2f6286eb.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ActionCancel = (props) => {
|
|
6
6
|
const {
|
package/components/CommonActions/components/ActionFormCancel/{index.6fd990b7.js → index.3fd5c858.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
2
2
|
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
3
|
+
import { B as Button } from "../../../mui_extended/Button/index.e520bd15.js";
|
|
4
4
|
import { useCallback, useEffect } from "react";
|
|
5
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
6
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
5
|
+
import { u as useModal } from "../../../../hooks/useModal/index.786a4439.js";
|
|
6
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2f6286eb.js";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
9
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
9
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.55ac3c8f.js";
|
|
10
10
|
function ActionFormCancel() {
|
|
11
11
|
const {
|
|
12
12
|
getLabel
|
package/components/CommonActions/components/ActionFormIntro/{index.798cb977.js → index.07394f62.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
|
-
import { L as LoadingButton } from "../../../mui_extended/Button/index.
|
|
5
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
4
|
+
import { L as LoadingButton } from "../../../mui_extended/Button/index.e520bd15.js";
|
|
5
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2f6286eb.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function ActionFormIntro(props) {
|
|
8
8
|
const {
|
package/components/CommonActions/components/ActionIntro/{index.64498081.js → index.79fc2386.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
2
|
+
import { B as Button } from "../../../mui_extended/Button/index.e520bd15.js";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
4
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
4
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2f6286eb.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
7
7
|
const ActionIntro = (props) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
2
2
|
import { generateUtilityClasses } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
4
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.de903261.js";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
const componentName = "M4LCommonActions";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getPropertyByString } from "@m4l/core";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/index.
|
|
3
|
+
import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/index.b3052107.js";
|
|
4
4
|
function ColumnBooleanFormatter(props) {
|
|
5
5
|
const {
|
|
6
6
|
fieldValue,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getPropertyByString } from "@m4l/core";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { C as ConcatenatedFormatter } from "../../../formatters/index.
|
|
3
|
+
import { C as ConcatenatedFormatter } from "../../../formatters/index.95cc337e.js";
|
|
4
4
|
function ColumnConcatenatedValueFormatter(props) {
|
|
5
5
|
const {
|
|
6
6
|
fieldValue,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Checkbox } from "@mui/material";
|
|
2
|
-
import { d as dataGridClasses } from "../../index.
|
|
2
|
+
import { d as dataGridClasses } from "../../index.b1eafce1.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
function ColumnInteractiveCheckFormatter(props) {
|
|
5
5
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.
|
|
2
|
-
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.
|
|
1
|
+
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.2e931b5f.js";
|
|
2
|
+
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.0c703574.js";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
4
|
import { forwardRef, createContext, useState, useMemo, useEffect, useCallback, useContext, useRef, useLayoutEffect } from "react";
|
|
5
5
|
import { u as useRowSelection, S as SelectCellFormatter, H as HeaderRenderer, D as DataGrid$1 } from "../../react-data-grid.c5377916.js";
|
|
@@ -9,7 +9,7 @@ import { SvgIcon, Checkbox, InputBase, Skeleton, generateUtilityClasses, generat
|
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { D as DATAGRID_SELECT_COLUMN_KEY, c as componentName, a as DATAGRID_PREFIX_NAME } from "./constants.e334cd50.js";
|
|
11
11
|
import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
12
|
-
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.
|
|
12
|
+
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.9af87fa1.js";
|
|
13
13
|
import { unstable_composeClasses } from "@mui/base";
|
|
14
14
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
15
15
|
import { g as getNameDataTestId } from "../../test/getNameDataTestId.14875ec7.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
2
|
-
import { u as useDataGrid, a as useFilters, D as DataGridRoot, b as dictionary } from "../../index.
|
|
1
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.fa7c26a5.js";
|
|
2
|
+
import { u as useDataGrid, a as useFilters, D as DataGridRoot, b as dictionary } from "../../index.b1eafce1.js";
|
|
3
3
|
import { useTheme, Skeleton } from "@mui/material";
|
|
4
4
|
import { b as DATAGRID_ACTIONS_COLUMN_KEY } from "../../constants.e334cd50.js";
|
|
5
5
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { P as Pager } from "../../../mui_extended/Pager/index.
|
|
7
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
6
|
+
import { P as Pager } from "../../../mui_extended/Pager/index.0c703574.js";
|
|
7
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.9ea23f87.js";
|
|
8
8
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
9
9
|
import { forwardRef, useRef, useState, useImperativeHandle, useMemo, useEffect, useCallback } from "react";
|
|
10
10
|
import { D as DataGrid$1 } from "../../../../react-data-grid.c5377916.js";
|
|
11
11
|
import { styled } from "@mui/material/styles";
|
|
12
|
-
import { C as ColumnInteractiveCheckFormatter } from "../../formatters/ColumnInteractiveCheckFormatter/index.
|
|
13
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
14
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
15
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
12
|
+
import { C as ColumnInteractiveCheckFormatter } from "../../formatters/ColumnInteractiveCheckFormatter/index.cb308086.js";
|
|
13
|
+
import { u as useModal } from "../../../../hooks/useModal/index.786a4439.js";
|
|
14
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.de862adf.js";
|
|
15
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.79fc2386.js";
|
|
16
16
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
17
|
-
import { W as WindowBase } from "../../../modal/WindowBase.
|
|
18
|
-
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.
|
|
17
|
+
import { W as WindowBase } from "../../../modal/WindowBase.998b8a38.js";
|
|
18
|
+
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.2f6286eb.js";
|
|
19
19
|
function ActionsFormatter(props) {
|
|
20
20
|
const {
|
|
21
21
|
rowActionsGetter,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useCallback, useEffect, useMemo } from "react";
|
|
2
|
-
import { D as DraggableCore_1 } from "../../react-draggable.
|
|
2
|
+
import { D as DraggableCore_1 } from "../../react-draggable.ee21cb7e.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
|
-
import { M as MAP_ZINDEX_OVER_MAP } from "../../vendor.
|
|
5
|
+
import { M as MAP_ZINDEX_OVER_MAP } from "../../vendor.2c881bac.js";
|
|
6
6
|
import { generateUtilityClasses } from "@mui/material";
|
|
7
7
|
import "@mui/base";
|
|
8
8
|
import { M as MAP_ZINDEX_OVER_MAP$1 } from "../PopupsProvider/index.3d5ad0ee.js";
|
|
9
|
-
import { R as Resizable } from "../../react-resizable.
|
|
9
|
+
import { R as Resizable } from "../../react-resizable.ee028152.js";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
const DraggeableWindowRoot = styled("div")`
|
|
12
12
|
position: absolute;
|
|
@@ -3,30 +3,30 @@ import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent
|
|
|
3
3
|
import { useStore, createStore } from "zustand";
|
|
4
4
|
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.
|
|
6
|
+
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.de903261.js";
|
|
7
7
|
import { devtools } from "zustand/middleware";
|
|
8
8
|
import { immer } from "zustand/middleware/immer";
|
|
9
9
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
|
-
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.
|
|
11
|
-
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
10
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.2f6286eb.js";
|
|
11
|
+
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.cf399b24.js";
|
|
12
12
|
import { g as getNameDataTestId } from "../../test/getNameDataTestId.14875ec7.js";
|
|
13
13
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
14
14
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
15
15
|
import { shallow } from "zustand/shallow";
|
|
16
|
-
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.
|
|
17
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
16
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.5a673a96.js";
|
|
17
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.fbb29ee1.js";
|
|
18
18
|
import * as Yup from "yup";
|
|
19
19
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
20
20
|
import { styled, useTheme } from "@mui/material/styles";
|
|
21
21
|
import { S as ScrollBar } from "../ScrollBar/index.010f1b9d.js";
|
|
22
22
|
import clsx from "clsx";
|
|
23
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
24
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.
|
|
23
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.9ea23f87.js";
|
|
24
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.fa7c26a5.js";
|
|
25
25
|
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
26
|
-
import { I as Icon } from "../Icon/index.
|
|
26
|
+
import { I as Icon } from "../Icon/index.b920baf8.js";
|
|
27
27
|
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.7769076a.js";
|
|
28
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
29
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
28
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.de862adf.js";
|
|
29
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.79fc2386.js";
|
|
30
30
|
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
31
31
|
const COMPONENT_PREFIX = "M4LDynamicFilter";
|
|
32
32
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.
|
|
3
|
+
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.ded0e80e.js";
|
|
4
4
|
import { styled, alpha } from "@mui/material/styles";
|
|
5
|
-
import { r as react_resizable_css } from "../../react-resizable.
|
|
5
|
+
import { r as react_resizable_css } from "../../react-resizable.ee028152.js";
|
|
6
6
|
import { generateUtilityClasses } from "@mui/material";
|
|
7
7
|
import "@mui/base";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/components/GridLayout/subcomponents/Griditem/{index.5256b153.js → index.ded0e80e.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
2
|
-
import { D as DraggableCore_1 } from "../../../../react-draggable.
|
|
3
|
-
import { R as Resizable } from "../../../../react-resizable.
|
|
4
|
-
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.
|
|
2
|
+
import { D as DraggableCore_1 } from "../../../../react-draggable.ee21cb7e.js";
|
|
3
|
+
import { R as Resizable } from "../../../../react-resizable.ee028152.js";
|
|
4
|
+
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.0996cd19.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { deepEqual } from "fast-equals";
|
|
7
7
|
import { jsx, Fragment } from "react/jsx-runtime";
|
package/components/GridLayout/subcomponents/Responsive/{index.dfed4e68.js → index.0fd1b7f8.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as noop, A as isEqualLayouts, G as GridLayout } from "../../index.
|
|
1
|
+
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as noop, A as isEqualLayouts, G as GridLayout } from "../../index.0996cd19.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import { useFirstRender } from "@m4l/graphics";
|
|
4
4
|
import { deepEqual } from "fast-equals";
|
package/components/GridLayout/subcomponents/SizeProvider/{index.6b5de802.js → index.7669a2cd.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { useRef, useState, useMemo, useCallback, useEffect } from "react";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { throttle } from "lodash";
|
|
4
4
|
import { useResizeObserver } from "@m4l/graphics";
|
|
5
|
-
import { j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../index.
|
|
5
|
+
import { j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../index.0996cd19.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function withSizeProvider(ComposedComponent) {
|
|
8
8
|
return (props) => {
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { styled } from "@mui/material/";
|
|
3
|
+
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
6
|
+
import { useEnvironment } from "@m4l/core";
|
|
7
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
+
import { S as SideBar } from "../SideBar/index.cdb70977.js";
|
|
9
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.9ea23f87.js";
|
|
10
|
+
const HamburgerMenuRoot = styled("header")(({
|
|
11
|
+
theme
|
|
12
|
+
}) => ({
|
|
13
|
+
...theme.components?.M4LHamburgerMenuCommercial?.styleOverrides
|
|
14
|
+
}));
|
|
15
|
+
const componentName = "M4LHamburgerMenuCommercial";
|
|
16
|
+
generateUtilityClasses(componentName, ["root", "ImageLogo"]);
|
|
17
|
+
function getHamburgerMenuComercialClassesUtilityClass(slot) {
|
|
18
|
+
return generateUtilityClass(componentName, slot);
|
|
19
|
+
}
|
|
20
|
+
const useHamburgerMenuComercialUtilityClasses = () => {
|
|
21
|
+
const slots = {
|
|
22
|
+
root: ["root"],
|
|
23
|
+
ImageLogo: ["ImageLogo"]
|
|
24
|
+
};
|
|
25
|
+
const composedClasses = unstable_composeClasses(slots, getHamburgerMenuComercialClassesUtilityClass, {});
|
|
26
|
+
return {
|
|
27
|
+
...composedClasses
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
const HAMBURGER_MENU_PREFIX = "M4LHamburgerMenu";
|
|
31
|
+
const getNameDataTestId = (KEY) => {
|
|
32
|
+
return `${HAMBURGER_MENU_PREFIX}-${KEY}`;
|
|
33
|
+
};
|
|
34
|
+
const HamburgerMenu = (props) => {
|
|
35
|
+
const {
|
|
36
|
+
data,
|
|
37
|
+
itemClick
|
|
38
|
+
} = props;
|
|
39
|
+
const [visible, setVisible] = useState(false);
|
|
40
|
+
const {
|
|
41
|
+
host_static_assets,
|
|
42
|
+
environment_assets
|
|
43
|
+
} = useEnvironment();
|
|
44
|
+
const handlerOnVisible = () => {
|
|
45
|
+
setVisible((val) => !val);
|
|
46
|
+
};
|
|
47
|
+
const handleCollapseToggle = () => {
|
|
48
|
+
if (visible) {
|
|
49
|
+
setVisible(false);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const Classes2 = useHamburgerMenuComercialUtilityClasses();
|
|
53
|
+
const handlerItemActive = (item) => {
|
|
54
|
+
return window.location.pathname === item.path;
|
|
55
|
+
};
|
|
56
|
+
return /* @__PURE__ */ jsxs(HamburgerMenuRoot, {
|
|
57
|
+
className: Classes2.root,
|
|
58
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
59
|
+
[TEST_PROP_ID]: getNameDataTestId("root")
|
|
60
|
+
} : {},
|
|
61
|
+
children: [/* @__PURE__ */ jsx(IconButton, {
|
|
62
|
+
src: `${host_static_assets}/${environment_assets}/frontend/web_comercial/menu.svg`,
|
|
63
|
+
className: Classes2.ImageLogo,
|
|
64
|
+
variant: "secondary",
|
|
65
|
+
onClick: () => handlerOnVisible()
|
|
66
|
+
}), /* @__PURE__ */ jsx(SideBar, {
|
|
67
|
+
menuData: data,
|
|
68
|
+
visible,
|
|
69
|
+
onClick: (item) => itemClick(item),
|
|
70
|
+
isItemActive: handlerItemActive,
|
|
71
|
+
onToggleCollapse: handleCollapseToggle,
|
|
72
|
+
onToggleVisible: handlerOnVisible,
|
|
73
|
+
collapsed: false,
|
|
74
|
+
companyLogoSmallUrl: "",
|
|
75
|
+
companyName: "",
|
|
76
|
+
variantStyle: "variantComercial"
|
|
77
|
+
})]
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
export {
|
|
81
|
+
HamburgerMenu as H
|
|
82
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from "react";
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
4
|
-
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.
|
|
4
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.cdb70977.js";
|
|
5
5
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
@@ -5,8 +5,8 @@ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
import { styled, Skeleton as Skeleton$1, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { c as classes, g as getSize } from "../PrintingSystem/index.
|
|
9
|
-
import { Q as QRCode } from "../../node_modules.
|
|
8
|
+
import { c as classes, g as getSize } from "../PrintingSystem/index.2e17cae5.js";
|
|
9
|
+
import { Q as QRCode } from "../../node_modules.71622512.js";
|
|
10
10
|
function isIntersectionObserverAvailable() {
|
|
11
11
|
return typeof window !== "undefined" && "IntersectionObserver" in window && "IntersectionObserverEntry" in window;
|
|
12
12
|
}
|
|
@@ -276,18 +276,14 @@ function Image(props) {
|
|
|
276
276
|
...process.env.NODE_ENV !== "production" ? {
|
|
277
277
|
[TEST_PROP_ID]: getNameDataTestId("root")
|
|
278
278
|
} : {},
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
height
|
|
285
|
-
}
|
|
279
|
+
style: width && height ? {
|
|
280
|
+
minWidth: width,
|
|
281
|
+
minHeight: height,
|
|
282
|
+
width,
|
|
283
|
+
height
|
|
286
284
|
} : {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
height: "100%"
|
|
290
|
-
}
|
|
285
|
+
width: "100%",
|
|
286
|
+
height: "100%"
|
|
291
287
|
},
|
|
292
288
|
children: /* @__PURE__ */ jsxs(LazyLoadComponent, {
|
|
293
289
|
width: "100%",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem } from "@mui/material";
|
|
3
|
-
import { I as Image } from "../Image/index.
|
|
3
|
+
import { I as Image } from "../Image/index.d034ca68.js";
|
|
4
4
|
import { useLocales } from "@m4l/graphics";
|
|
5
|
-
import { I as ImageButton } from "../mui_extended/Button/index.
|
|
5
|
+
import { I as ImageButton } from "../mui_extended/Button/index.e520bd15.js";
|
|
6
6
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
@@ -1 +1,5 @@
|
|
|
1
|
+
/** @function este componente proporciona una representación visual de una barra de progreso indeterminada con opciones de personalización y soporte para pruebas.
|
|
2
|
+
*
|
|
3
|
+
* @returns {JSX.Element} Elemento JSX que representa el componente.
|
|
4
|
+
*/
|
|
1
5
|
export declare const LinearProgressIndeterminate: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import { generateUtilityClasses, styled } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import { g as getComponentUtilityClass } from "../../utils/index.
|
|
4
|
+
import { g as getComponentUtilityClass } from "../../utils/index.de903261.js";
|
|
5
5
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
const LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME = "M4LinearProgressIndeterminate";
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { ElementType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Función que envuelve un componente en un componente Suspense con un loader de propagación como fallback.
|
|
4
|
+
* @param Component El componente a ser cargado dinámicamente.
|
|
5
|
+
* @returns Un componente funcional que carga dinámicamente el componente proporcionado.
|
|
6
|
+
*/
|
|
2
7
|
export declare const Loadable: (Component: ElementType) => (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
import { AreasLoadingErrorProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param {AreasLoadingErrorProps} props El componente LoadingError espera recibir ciertas propiedades que están definidas en el tipo AreasLoadingErrorProps.
|
|
5
|
+
* @param {status} props.status Indica el estado actual del componente. Puede tener valores como 'error', 'cargando' u otros estados definidos por la aplicación.
|
|
6
|
+
* @param {Function} props.action - Es una función que se ejecutará cuando se presione el botón de error. Esta función puede contener lógica para manejar el error o realizar alguna acción específica cuando ocurra un error.
|
|
7
|
+
* @param {string} props.title - Es una cadena de texto que representa el título del mensaje de error. Este título se mostrará en el componente cuando ocurra un error.
|
|
8
|
+
* @param {string} props.description - Es una cadena de texto que proporciona una descripción detallada del error. Esta descripción se mostrará junto al título en el componente de mensaje de error.
|
|
9
|
+
* @param {string} props.recommendation - Es una cadena de texto que proporciona una recomendación sobre cómo manejar el error o qué acciones tomar para resolverlo.
|
|
10
|
+
* @param {string} props.introMessage - Es una cadena de texto que proporciona un mensaje introductorio adicional. Este mensaje se mostrará en el componente antes de mostrar el título, la descripción y la recomendación del error.
|
|
11
|
+
* @param {string} props.errorIcon - Es una cadena de texto que representa la ruta o el identificador del ícono que se mostrará junto al mensaje de error.
|
|
12
|
+
* @returns {JSX.Element} Elemento JSX que representa el componente.
|
|
13
|
+
*/
|
|
2
14
|
export declare const LoadingError: (props: AreasLoadingErrorProps) => import("react/jsx-runtime").JSX.Element;
|