@m4l/layouts 9.1.8 → 9.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MFHostApp/index.d.ts +0 -4
- package/components/MFNoAuthApp/index.d.ts +0 -4
- package/components/MFWindowsTitle/MFWindowsTitle.d.ts +0 -4
- package/contexts/AuthContext/index.d.ts +0 -4
- package/hooks/useAuth/index.d.ts +0 -4
- package/hooks/useModule/index.d.ts +0 -4
- package/layouts/MasterDetailLayout/MasterDetailLayout.d.ts +0 -4
- package/layouts/MasterDetailLayout/classes/index.d.ts +0 -4
- package/layouts/MasterDetailLayout/components/ButtonDetail/index.d.ts +0 -4
- package/layouts/MasterDetailLayout/contexts/MasterDetailContext/index.d.ts +0 -4
- package/layouts/ModuleLayout/ModuleLayout.js +2 -3
- package/layouts/ModuleLayout/constants.d.ts +1 -0
- package/layouts/ModuleLayout/constants.js +4 -0
- package/layouts/ModuleLayout/contexts/ModuleContext/index.d.ts +0 -4
- package/layouts/ModuleLayout/contexts/ModuleContext/index.js +0 -5
- package/layouts/ModuleLayout/slots/ModuleLayoutEnum.d.ts +3 -0
- package/layouts/ModuleLayout/slots/ModuleLayoutEnum.js +7 -0
- package/layouts/ModuleLayout/slots/ModuleLayoutSlots.d.ts +1 -0
- package/layouts/ModuleLayout/slots/ModuleLayoutSlots.js +11 -0
- package/layouts/ModuleLayout/styles.d.ts +2 -0
- package/layouts/ModuleLayout/styles.js +16 -0
- package/layouts/ModuleLayout/subcomponents/BaseModuleLayout/index.d.ts +2 -0
- package/layouts/ModuleLayout/subcomponents/BaseModuleLayout/index.js +19 -0
- package/layouts/ModuleLayout/types.d.ts +7 -1
- package/layouts/NoAuthModuleLayout/constants.d.ts +1 -0
- package/layouts/NoAuthModuleLayout/constants.js +4 -0
- package/layouts/NoAuthModuleLayout/index.d.ts +4 -5
- package/layouts/NoAuthModuleLayout/index.js +4 -5
- package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutEnum.d.ts +25 -0
- package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutEnum.js +33 -0
- package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutSlots.d.ts +19 -0
- package/layouts/NoAuthModuleLayout/slots/NoAuthModuleLayoutSlots.js +100 -0
- package/layouts/NoAuthModuleLayout/styles.d.ts +2 -0
- package/layouts/NoAuthModuleLayout/styles.js +314 -0
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/index.d.ts +4 -0
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/index.js +16 -0
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/DesktopContent/index.d.ts +4 -0
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/DesktopContent/index.js +47 -0
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/MobileContent/index.d.ts +4 -0
- package/layouts/NoAuthModuleLayout/subcomponents/BaseNoAuthModuleLayout/subcomponents/MobileContent/index.js +43 -0
- package/layouts/NoAuthModuleLayout/tests/NoAuthModuleLayout.test.d.ts +1 -0
- package/layouts/NoAuthModuleLayout/types.d.ts +45 -0
- package/package.json +8 -3
- package/test/HostThemeProviderMock.d.ts +10 -0
- package/test/TestAppWrapper.d.ts +29 -0
- package/test/TestFormAutoValidation.d.ts +4 -0
- package/test/constants.d.ts +69 -0
- package/test/constants_no_mock.d.ts +1 -0
- package/test/getNameDataTestId.d.ts +15 -0
- package/test/index.d.ts +4 -0
- package/test/mocks.d.ts +24 -0
- package/test/types.d.ts +4 -0
- package/test/utils.d.ts +23 -10
- package/layouts/ModuleLayout/classes/constants.d.ts +0 -1
- package/layouts/ModuleLayout/classes/constants.js +0 -4
- package/layouts/ModuleLayout/classes/index.d.ts +0 -14
- package/layouts/ModuleLayout/classes/index.js +0 -25
- package/layouts/ModuleLayout/classes/types.d.ts +0 -7
- package/layouts/ModuleLayout/subcomponents/InnerModule/index.d.ts +0 -2
- package/layouts/ModuleLayout/subcomponents/InnerModule/index.js +0 -20
- package/layouts/ModuleLayout/subcomponents/InnerModule/styles.d.ts +0 -1
- package/layouts/ModuleLayout/subcomponents/InnerModule/styles.js +0 -7
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/index.d.ts +0 -8
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/index.js +0 -16
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/styles.d.ts +0 -1
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/styles.js +0 -15
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/DesktopContent/index.d.ts +0 -8
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/DesktopContent/index.js +0 -47
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/DesktopContent/styles.d.ts +0 -9
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/DesktopContent/styles.js +0 -115
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/MobileContent/index.d.ts +0 -8
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/MobileContent/index.js +0 -43
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/MobileContent/styles.d.ts +0 -8
- package/layouts/NoAuthModuleLayout/subcomponents/InnerModule/subcomponents/MobileContent/styles.js +0 -96
- /package/layouts/ModuleLayout/subcomponents/{InnerModule → BaseModuleLayout}/types.d.ts +0 -0
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { MFHostAppProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Componente que envuelve la aplicación de un microfrontend
|
|
4
|
-
* @author Juan Escobar - automatic
|
|
5
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
6
|
-
* @updatedAt 2024-10-09 20:00:30 - automatic
|
|
7
|
-
* @updatedUser Juan Escobar - automatic
|
|
8
4
|
*/
|
|
9
5
|
export declare function MFHostApp(props: MFHostAppProps): import("react/jsx-runtime").JSX.Element;
|
|
10
6
|
export default MFHostApp;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { MFNoAuthAppProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Componente que envuelve la aplicación de un microfrontend sin autenticación
|
|
4
|
-
* @author Juan Escobar - automatic
|
|
5
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
6
|
-
* @updatedAt 2024-10-17 15:37:19 - automatic
|
|
7
|
-
* @updatedUser Juan Escobar - automatic
|
|
8
4
|
*/
|
|
9
5
|
export declare function MFNoAuthApp(props: MFNoAuthAppProps): import("react/jsx-runtime").JSX.Element;
|
|
10
6
|
export default MFNoAuthApp;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { MFWindowsTitleProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Titulo de la ventana del microfrontend
|
|
4
|
-
* @author Juan Escobar - automatic
|
|
5
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
6
|
-
* @updatedAt 2024-10-09 20:00:30 - automatic
|
|
7
|
-
* @updatedUser Juan Escobar - automatic
|
|
8
4
|
*/
|
|
9
5
|
export declare function MFWindowsTitle({ isAddEditModule, children }: MFWindowsTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,10 +2,6 @@ import { AuthProviderProps, SessionContextType } from './types';
|
|
|
2
2
|
declare const AuthContext: import('react').Context<SessionContextType | null>;
|
|
3
3
|
/**
|
|
4
4
|
* Proveedor de autenticación
|
|
5
|
-
* @author Juan Escobar - automatic
|
|
6
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
7
|
-
* @updatedAt 2024-10-09 20:00:30 - automatic
|
|
8
|
-
* @updatedUser Juan Escobar - automatic
|
|
9
5
|
*/
|
|
10
6
|
declare function AuthProvider(props: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
7
|
export { AuthContext, AuthProvider };
|
package/hooks/useAuth/index.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hook para obtener el contexto de autenticación
|
|
3
|
-
* @author Juan Escobar - automatic
|
|
4
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
5
|
-
* @updatedAt 2024-10-09 20:00:30 - automatic
|
|
6
|
-
* @updatedUser Juan Escobar - automatic
|
|
7
3
|
*/
|
|
8
4
|
export declare const useAuth: () => import('../../contexts/AuthContext/types').SessionContextType;
|
|
9
5
|
export default useAuth;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hook para obtener el contexto de un módulo
|
|
3
|
-
* @author Juan Escobar - automatic
|
|
4
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
5
|
-
* @updatedAt 2024-10-09 20:00:30 - automatic
|
|
6
|
-
* @updatedUser Juan Escobar - automatic
|
|
7
3
|
*/
|
|
8
4
|
export declare const useModule: () => import('../../layouts/ModuleLayout/contexts/ModuleContext/types').ModuleLayoutContextProps;
|
|
9
5
|
export default useModule;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { MasterDetailLayoutProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Layout de maestro detalle
|
|
4
|
-
* @author Juan Escobar - automatic
|
|
5
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
6
|
-
* @updatedAt 2024-12-05 10:48:46 - automatic
|
|
7
|
-
* @updatedUser Bruce Escobar - automatic
|
|
8
4
|
*/
|
|
9
5
|
export declare function MasterDetailLayout(props: MasterDetailLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,10 +3,6 @@ export declare const masterDetailLayoutClasses: MasterDetailLayoutClassesType;
|
|
|
3
3
|
export declare function getMasterDetailLayoutUtilityClass(slot: string): string;
|
|
4
4
|
/**
|
|
5
5
|
* Hook para obtener las clases del componente MasterDetailLayout
|
|
6
|
-
* @author Juan Escobar - automatic
|
|
7
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
8
|
-
* @updatedAt 2024-10-09 20:00:30 - automatic
|
|
9
|
-
* @updatedUser Juan Escobar - automatic
|
|
10
6
|
*/
|
|
11
7
|
export declare const getMasterDetailLayoutUtilityClasses: () => {
|
|
12
8
|
root: string;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ComponentActionProps } from '@m4l/components';
|
|
2
2
|
/**
|
|
3
3
|
* Botón de detalle
|
|
4
|
-
* @author Juan Escobar - automatic
|
|
5
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
6
|
-
* @updatedAt 2024-10-09 20:00:30 - automatic
|
|
7
|
-
* @updatedUser Juan Escobar - automatic
|
|
8
4
|
*/
|
|
9
5
|
export declare function ButtonDetail(props: ComponentActionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,10 +2,6 @@ import { MasterDetailContextProps, MasterDetailProviderProps } from './types';
|
|
|
2
2
|
declare const MasterDetailContext: import('react').Context<MasterDetailContextProps>;
|
|
3
3
|
/**
|
|
4
4
|
* Proveedor de contexto para el layout de maestro detalle
|
|
5
|
-
* @author Juan Escobar - automatic
|
|
6
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
7
|
-
* @updatedAt 2024-11-28 16:23:20 - automatic
|
|
8
|
-
* @updatedUser Diego Betancur - automatic
|
|
9
5
|
*/
|
|
10
6
|
declare function MasterDetailProvider(props: MasterDetailProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
7
|
export { MasterDetailProvider, MasterDetailContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ModalProvider } from "@m4l/components";
|
|
3
3
|
import { forwardRef, useRef, useImperativeHandle } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { B as BaseModuleLayout } from "./subcomponents/BaseModuleLayout/index.js";
|
|
5
5
|
import { a as ModuleProvider } from "./contexts/ModuleContext/index.js";
|
|
6
6
|
const ModuleLayout = forwardRef((props, ref) => {
|
|
7
7
|
const { moduleId, moduleActions, version, children } = props;
|
|
@@ -13,9 +13,8 @@ const ModuleLayout = forwardRef((props, ref) => {
|
|
|
13
13
|
openModal,
|
|
14
14
|
current: moduleRef.current
|
|
15
15
|
}));
|
|
16
|
-
return /* @__PURE__ */ jsx(ModuleProvider, { moduleId, moduleActions, version, children: /* @__PURE__ */ jsx(ModalProvider, { children: /* @__PURE__ */ jsx(
|
|
16
|
+
return /* @__PURE__ */ jsx(ModuleProvider, { moduleId, moduleActions, version, children: /* @__PURE__ */ jsx(ModalProvider, { children: /* @__PURE__ */ jsx(BaseModuleLayout, { ref: moduleRef, children }) }) });
|
|
17
17
|
});
|
|
18
|
-
ModuleLayout.displayName = "ModuleLayout";
|
|
19
18
|
export {
|
|
20
19
|
ModuleLayout as M
|
|
21
20
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MODULE_LAYOUT_KEY = "M4LModuleLayout";
|
|
@@ -2,10 +2,6 @@ import { ModuleLayoutContextProps, ModuleLayoutProviderProps } from './types';
|
|
|
2
2
|
declare const ModuleContext: import('react').Context<ModuleLayoutContextProps | null>;
|
|
3
3
|
/**
|
|
4
4
|
* Proveedor de contexto para el layout de modulo
|
|
5
|
-
* @author Juan Escobar - automatic
|
|
6
|
-
* @createdAt 2024-10-09 19:56:26 - automatic
|
|
7
|
-
* @updatedAt 2024-10-09 20:00:30 - automatic
|
|
8
|
-
* @updatedUser Juan Escobar - automatic
|
|
9
5
|
*/
|
|
10
6
|
declare function ModuleProvider(props: ModuleLayoutProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
7
|
export { ModuleProvider, ModuleContext };
|
|
@@ -20,13 +20,8 @@ function ModuleProvider(props) {
|
|
|
20
20
|
ModuleContext.Provider,
|
|
21
21
|
{
|
|
22
22
|
value: {
|
|
23
|
-
// moduleActions: finalModuleActions,
|
|
24
|
-
// dynamicActions,
|
|
25
23
|
setDynamicActions,
|
|
26
24
|
moduleId: configOptions.moduleId
|
|
27
|
-
// moduleNameField: configOptions.moduleNameField,
|
|
28
|
-
// urlIcon: configOptions.urlIcon,
|
|
29
|
-
// breadcrumbLinks: configOptions.breadcrumbLinks,
|
|
30
25
|
},
|
|
31
26
|
children
|
|
32
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModuleLayoutRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { M as MODULE_LAYOUT_KEY } from "../constants.js";
|
|
3
|
+
import { M as ModuleLayoutSlots } from "./ModuleLayoutEnum.js";
|
|
4
|
+
import { m as moduleLayoutStyles } from "../styles.js";
|
|
5
|
+
const ModuleLayoutRootStyled = styled("div", {
|
|
6
|
+
name: MODULE_LAYOUT_KEY,
|
|
7
|
+
slot: ModuleLayoutSlots.BaseModuleLayoutRoot
|
|
8
|
+
})(moduleLayoutStyles.BaseModuleLayoutRoot);
|
|
9
|
+
export {
|
|
10
|
+
ModuleLayoutRootStyled as M
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const moduleLayoutStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Estilos para el componente BaseModuleLayout.
|
|
4
|
+
*/
|
|
5
|
+
BaseModuleLayoutRoot: () => ({
|
|
6
|
+
"&.M4LModuleLayout-root": {
|
|
7
|
+
display: "flex",
|
|
8
|
+
width: "100%",
|
|
9
|
+
height: "100%",
|
|
10
|
+
overflow: "auto"
|
|
11
|
+
}
|
|
12
|
+
})
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
moduleLayoutStyles as m
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useRef, useImperativeHandle } from "react";
|
|
3
|
+
import { useModal, getComponentSlotRoot } from "@m4l/components";
|
|
4
|
+
import { M as ModuleLayoutRootStyled } from "../../slots/ModuleLayoutSlots.js";
|
|
5
|
+
import { M as MODULE_LAYOUT_KEY } from "../../constants.js";
|
|
6
|
+
const BaseModuleLayout = forwardRef((props, ref) => {
|
|
7
|
+
const { children } = props;
|
|
8
|
+
const { openModal } = useModal();
|
|
9
|
+
const divRef = useRef(null);
|
|
10
|
+
useImperativeHandle(ref, () => ({
|
|
11
|
+
openModal,
|
|
12
|
+
current: divRef.current
|
|
13
|
+
}));
|
|
14
|
+
const classRoot = getComponentSlotRoot(MODULE_LAYOUT_KEY);
|
|
15
|
+
return /* @__PURE__ */ jsx(ModuleLayoutRootStyled, { className: classRoot, ref: divRef, children });
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
BaseModuleLayout as B
|
|
19
|
+
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ModalOpenOptions, ModuleAction } from '@m4l/components';
|
|
3
|
-
import { ModuleRef } from './subcomponents/
|
|
3
|
+
import { ModuleRef } from './subcomponents/BaseModuleLayout/types';
|
|
4
|
+
import { ModuleLayoutSlots } from './slots/ModuleLayoutEnum';
|
|
5
|
+
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
6
|
+
import { MODULE_LAYOUT_KEY } from './constants';
|
|
7
|
+
import { Theme } from '@mui/material/styles';
|
|
4
8
|
export interface ContainerProps {
|
|
5
9
|
vertical: boolean;
|
|
6
10
|
}
|
|
@@ -14,3 +18,5 @@ export interface ModuleLayoutProps {
|
|
|
14
18
|
children: ReactNode;
|
|
15
19
|
version: string;
|
|
16
20
|
}
|
|
21
|
+
export type ModuleLayoutSlotsType = keyof typeof ModuleLayoutSlots;
|
|
22
|
+
export type ModuleLayoutStyles = OverridesStyleRules<ModuleLayoutSlotsType, typeof MODULE_LAYOUT_KEY, Theme>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NOT_AUTH_MODULE_LAYOUT_KEY = "M4LNoAuthModuleLayout";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { NoAuthModuleLayoutProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @updatedUser Juan Escobar - automatic
|
|
3
|
+
* Este componente representa el layout de un módulo sin autenticación.
|
|
4
|
+
* ### Dependencias:
|
|
5
|
+
* - **`useEnvironment:`** Hook que devuelve el estado del entorno de la aplicación.
|
|
6
|
+
* - **`useLocales:`** Hook que devuelve el estado de las herramientas locales de la aplicación.
|
|
8
7
|
*/
|
|
9
8
|
export declare const NoAuthModuleLayout: (props: NoAuthModuleLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { B as BaseNoAuthModuleLayout } from "./subcomponents/BaseNoAuthModuleLayout/index.js";
|
|
3
3
|
import { useEnvironment, BaseProvider, FlagsProvider, ModuleDictionaryProvider, ModuleSkeletonProvider } from "@m4l/core";
|
|
4
|
-
import { useLocales
|
|
4
|
+
import { useLocales } from "@m4l/graphics";
|
|
5
5
|
const NoAuthModuleLayout = (props) => {
|
|
6
6
|
const {
|
|
7
7
|
moduleId,
|
|
@@ -13,8 +13,7 @@ const NoAuthModuleLayout = (props) => {
|
|
|
13
13
|
companyLogoSmallUrl,
|
|
14
14
|
companyLogoNormalUrl,
|
|
15
15
|
moduleIlustrationUrl,
|
|
16
|
-
handleSetting
|
|
17
|
-
observedDivRef
|
|
16
|
+
handleSetting
|
|
18
17
|
} = props;
|
|
19
18
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
20
19
|
const localeString = useLocales().currentLocale?.localeString;
|
|
@@ -44,7 +43,7 @@ const NoAuthModuleLayout = (props) => {
|
|
|
44
43
|
moduleNameField,
|
|
45
44
|
componentsDictionary,
|
|
46
45
|
currentLang: localeString,
|
|
47
|
-
children: /* @__PURE__ */ jsx(ModuleSkeletonProvider, { flags: finalSkeletonFlags, children: /* @__PURE__ */ jsx(
|
|
46
|
+
children: /* @__PURE__ */ jsx(ModuleSkeletonProvider, { flags: finalSkeletonFlags, children: /* @__PURE__ */ jsx(BaseNoAuthModuleLayout, {}) })
|
|
48
47
|
}
|
|
49
48
|
) })
|
|
50
49
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum InnerModuleSlots {
|
|
2
|
+
baseNoAuthModuleLayoutRoot = "baseNoAuthModuleLayoutRoot"
|
|
3
|
+
}
|
|
4
|
+
export declare enum MobileContentSlots {
|
|
5
|
+
mobileContentRoot = "mobileContentRoot",
|
|
6
|
+
mobileBanner = "mobileBanner",
|
|
7
|
+
containerImageLanguage = "containerImageLanguage",
|
|
8
|
+
containerLogo = "containerLogo",
|
|
9
|
+
companyName = "companyName",
|
|
10
|
+
formContent = "formContent",
|
|
11
|
+
wrapperFormContent = "wrapperFormContent",
|
|
12
|
+
containerModuleName = "containerModuleName"
|
|
13
|
+
}
|
|
14
|
+
export declare enum DesktopContentSlots {
|
|
15
|
+
desktopContentRoot = "desktopContentRoot",
|
|
16
|
+
desktopBanner = "desktopBanner",
|
|
17
|
+
containerLogoDesktop = "containerLogoDesktop",
|
|
18
|
+
companyNameDesktop = "companyNameDesktop",
|
|
19
|
+
companyLeyendDesktop = "companyLeyendDesktop",
|
|
20
|
+
formContentDesktop = "formContentDesktop",
|
|
21
|
+
wrapperFormContentDesktop = "wrapperFormContentDesktop",
|
|
22
|
+
containerModuleNameDesktop = "containerModuleNameDesktop",
|
|
23
|
+
contentFormDesktop = "contentFormDesktop",
|
|
24
|
+
typographyBanner = "typographyBanner"
|
|
25
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var InnerModuleSlots = /* @__PURE__ */ ((InnerModuleSlots2) => {
|
|
2
|
+
InnerModuleSlots2["baseNoAuthModuleLayoutRoot"] = "baseNoAuthModuleLayoutRoot";
|
|
3
|
+
return InnerModuleSlots2;
|
|
4
|
+
})(InnerModuleSlots || {});
|
|
5
|
+
var MobileContentSlots = /* @__PURE__ */ ((MobileContentSlots2) => {
|
|
6
|
+
MobileContentSlots2["mobileContentRoot"] = "mobileContentRoot";
|
|
7
|
+
MobileContentSlots2["mobileBanner"] = "mobileBanner";
|
|
8
|
+
MobileContentSlots2["containerImageLanguage"] = "containerImageLanguage";
|
|
9
|
+
MobileContentSlots2["containerLogo"] = "containerLogo";
|
|
10
|
+
MobileContentSlots2["companyName"] = "companyName";
|
|
11
|
+
MobileContentSlots2["formContent"] = "formContent";
|
|
12
|
+
MobileContentSlots2["wrapperFormContent"] = "wrapperFormContent";
|
|
13
|
+
MobileContentSlots2["containerModuleName"] = "containerModuleName";
|
|
14
|
+
return MobileContentSlots2;
|
|
15
|
+
})(MobileContentSlots || {});
|
|
16
|
+
var DesktopContentSlots = /* @__PURE__ */ ((DesktopContentSlots2) => {
|
|
17
|
+
DesktopContentSlots2["desktopContentRoot"] = "desktopContentRoot";
|
|
18
|
+
DesktopContentSlots2["desktopBanner"] = "desktopBanner";
|
|
19
|
+
DesktopContentSlots2["containerLogoDesktop"] = "containerLogoDesktop";
|
|
20
|
+
DesktopContentSlots2["companyNameDesktop"] = "companyNameDesktop";
|
|
21
|
+
DesktopContentSlots2["companyLeyendDesktop"] = "companyLeyendDesktop";
|
|
22
|
+
DesktopContentSlots2["formContentDesktop"] = "formContentDesktop";
|
|
23
|
+
DesktopContentSlots2["wrapperFormContentDesktop"] = "wrapperFormContentDesktop";
|
|
24
|
+
DesktopContentSlots2["containerModuleNameDesktop"] = "containerModuleNameDesktop";
|
|
25
|
+
DesktopContentSlots2["contentFormDesktop"] = "contentFormDesktop";
|
|
26
|
+
DesktopContentSlots2["typographyBanner"] = "typographyBanner";
|
|
27
|
+
return DesktopContentSlots2;
|
|
28
|
+
})(DesktopContentSlots || {});
|
|
29
|
+
export {
|
|
30
|
+
DesktopContentSlots as D,
|
|
31
|
+
InnerModuleSlots as I,
|
|
32
|
+
MobileContentSlots as M
|
|
33
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const BaseNoAuthModuleLayoutRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
2
|
+
export declare const MobileContentRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
3
|
+
export declare const MobileBannerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const ContainerImageLanguageStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
5
|
+
export declare const ContainerLogoStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
6
|
+
export declare const CompanyNameStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
7
|
+
export declare const FormContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
8
|
+
export declare const WrapperFormContentStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
9
|
+
export declare const ContainerModuleNameStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
10
|
+
export declare const DesktopContentRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
11
|
+
export declare const DesktopBannerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
12
|
+
export declare const ContainerLogoDesktopStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
13
|
+
export declare const CompanyNameDesktopStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
14
|
+
export declare const CompanyLeyendDesktopStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
15
|
+
export declare const FormContentDesktopStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
16
|
+
export declare const WrapperFormContentDesktopStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
17
|
+
export declare const ContainerModuleNameDesktopStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
18
|
+
export declare const ContentFormDesktopStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
19
|
+
export declare const TypographyBannerStyled: import('@emotion/styled').StyledComponent<Pick<import('@m4l/components/src/components/mui_extended/Typography/types').TypographyProps, keyof import('@m4l/components/src/components/mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { I as InnerModuleSlots, M as MobileContentSlots, D as DesktopContentSlots } from "./NoAuthModuleLayoutEnum.js";
|
|
3
|
+
import { N as NOT_AUTH_MODULE_LAYOUT_KEY } from "../constants.js";
|
|
4
|
+
import { Typography } from "@m4l/components";
|
|
5
|
+
import { n as noAuthModuleLayoutStyles } from "../styles.js";
|
|
6
|
+
const BaseNoAuthModuleLayoutRootStyled = styled("div", {
|
|
7
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
8
|
+
slot: InnerModuleSlots.baseNoAuthModuleLayoutRoot
|
|
9
|
+
})(noAuthModuleLayoutStyles?.baseNoAuthModuleLayoutRoot);
|
|
10
|
+
const MobileContentRootStyled = styled("div", {
|
|
11
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
12
|
+
slot: MobileContentSlots.mobileContentRoot
|
|
13
|
+
})(noAuthModuleLayoutStyles.mobileContentRoot);
|
|
14
|
+
const MobileBannerStyled = styled("div", {
|
|
15
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
16
|
+
slot: MobileContentSlots.mobileBanner
|
|
17
|
+
})(noAuthModuleLayoutStyles.mobileBanner);
|
|
18
|
+
styled("div", {
|
|
19
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
20
|
+
slot: MobileContentSlots.containerImageLanguage
|
|
21
|
+
})(noAuthModuleLayoutStyles.containerImageLanguage);
|
|
22
|
+
const ContainerLogoStyled = styled("div", {
|
|
23
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
24
|
+
slot: MobileContentSlots.containerLogo
|
|
25
|
+
})(noAuthModuleLayoutStyles.containerLogo);
|
|
26
|
+
const CompanyNameStyled = styled("div", {
|
|
27
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
28
|
+
slot: MobileContentSlots.companyName
|
|
29
|
+
})(noAuthModuleLayoutStyles.companyName);
|
|
30
|
+
const FormContentStyled = styled("div", {
|
|
31
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
32
|
+
slot: MobileContentSlots.formContent
|
|
33
|
+
})(noAuthModuleLayoutStyles.formContent);
|
|
34
|
+
const WrapperFormContentStyled = styled("div", {
|
|
35
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
36
|
+
slot: MobileContentSlots.wrapperFormContent
|
|
37
|
+
})(noAuthModuleLayoutStyles.wrapperFormContent);
|
|
38
|
+
const ContainerModuleNameStyled = styled("div", {
|
|
39
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
40
|
+
slot: MobileContentSlots.containerModuleName
|
|
41
|
+
})(noAuthModuleLayoutStyles.containerModuleName);
|
|
42
|
+
const DesktopContentRootStyled = styled("div", {
|
|
43
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
44
|
+
slot: DesktopContentSlots.desktopContentRoot
|
|
45
|
+
})(noAuthModuleLayoutStyles.desktopContentRoot);
|
|
46
|
+
const DesktopBannerStyled = styled("div", {
|
|
47
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
48
|
+
slot: DesktopContentSlots.desktopBanner
|
|
49
|
+
})(noAuthModuleLayoutStyles.desktopBanner);
|
|
50
|
+
const ContainerLogoDesktopStyled = styled("div", {
|
|
51
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
52
|
+
slot: DesktopContentSlots.containerLogoDesktop
|
|
53
|
+
})(noAuthModuleLayoutStyles.containerLogoDesktop);
|
|
54
|
+
const CompanyNameDesktopStyled = styled("div", {
|
|
55
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
56
|
+
slot: DesktopContentSlots.companyNameDesktop
|
|
57
|
+
})(noAuthModuleLayoutStyles.companyNameDesktop);
|
|
58
|
+
const CompanyLeyendDesktopStyled = styled("div", {
|
|
59
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
60
|
+
slot: DesktopContentSlots.companyLeyendDesktop
|
|
61
|
+
})(noAuthModuleLayoutStyles.companyLeyendDesktop);
|
|
62
|
+
const FormContentDesktopStyled = styled("div", {
|
|
63
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
64
|
+
slot: DesktopContentSlots.formContentDesktop
|
|
65
|
+
})(noAuthModuleLayoutStyles.formContentDesktop);
|
|
66
|
+
const WrapperFormContentDesktopStyled = styled("div", {
|
|
67
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
68
|
+
slot: DesktopContentSlots.wrapperFormContentDesktop
|
|
69
|
+
})(noAuthModuleLayoutStyles.wrapperFormContentDesktop);
|
|
70
|
+
const ContainerModuleNameDesktopStyled = styled("div", {
|
|
71
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
72
|
+
slot: DesktopContentSlots.containerModuleNameDesktop
|
|
73
|
+
})(noAuthModuleLayoutStyles.containerModuleNameDesktop);
|
|
74
|
+
styled("div", {
|
|
75
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
76
|
+
slot: DesktopContentSlots.contentFormDesktop
|
|
77
|
+
})(noAuthModuleLayoutStyles.contentFormDesktop);
|
|
78
|
+
const TypographyBannerStyled = styled(Typography, {
|
|
79
|
+
name: NOT_AUTH_MODULE_LAYOUT_KEY,
|
|
80
|
+
slot: DesktopContentSlots.typographyBanner
|
|
81
|
+
})(noAuthModuleLayoutStyles.typographyBanner);
|
|
82
|
+
export {
|
|
83
|
+
BaseNoAuthModuleLayoutRootStyled as B,
|
|
84
|
+
ContainerLogoDesktopStyled as C,
|
|
85
|
+
DesktopContentRootStyled as D,
|
|
86
|
+
FormContentDesktopStyled as F,
|
|
87
|
+
MobileContentRootStyled as M,
|
|
88
|
+
TypographyBannerStyled as T,
|
|
89
|
+
WrapperFormContentDesktopStyled as W,
|
|
90
|
+
DesktopBannerStyled as a,
|
|
91
|
+
CompanyNameDesktopStyled as b,
|
|
92
|
+
CompanyLeyendDesktopStyled as c,
|
|
93
|
+
ContainerModuleNameDesktopStyled as d,
|
|
94
|
+
MobileBannerStyled as e,
|
|
95
|
+
ContainerLogoStyled as f,
|
|
96
|
+
CompanyNameStyled as g,
|
|
97
|
+
WrapperFormContentStyled as h,
|
|
98
|
+
FormContentStyled as i,
|
|
99
|
+
ContainerModuleNameStyled as j
|
|
100
|
+
};
|