@m4l/components 9.2.62-B08072025beta.2 → 9.2.62-B09072025beta.1
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 +8 -0
- package/components/AppBar/AppBar.js +10 -12
- package/components/AppBar/constants.d.ts +1 -1
- package/components/AppBar/constants.js +1 -1
- package/components/AppBar/slots/AppBarEnum.d.ts +5 -1
- package/components/AppBar/slots/AppBarEnum.js +4 -0
- package/components/AppBar/slots/AppBarSlots.d.ts +18 -4
- package/components/AppBar/slots/AppBarSlots.js +27 -3
- package/components/AppBar/styles.js +42 -0
- package/components/AppBar/types.d.ts +0 -8
- package/components/ContainerFlow/ContainerFlow.d.ts +7 -0
- package/components/ContainerFlow/ContainerFlow.js +25 -0
- package/components/ContainerFlow/ContainerFlow.styles.d.ts +2 -0
- package/components/ContainerFlow/ContainerFlow.styles.js +46 -0
- package/components/ContainerFlow/constants.d.ts +8 -0
- package/components/ContainerFlow/constants.js +19 -0
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.d.ts +7 -0
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.js +10 -0
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.test.d.ts +1 -0
- package/components/ContainerFlow/index.d.ts +2 -0
- package/components/ContainerFlow/slots/ContainerFlowEnum.d.ts +4 -0
- package/components/ContainerFlow/slots/ContainerFlowEnum.js +8 -0
- package/components/ContainerFlow/slots/ContainerFlowSlots.d.ts +6 -0
- package/components/ContainerFlow/slots/ContainerFlowSlots.js +16 -0
- package/components/ContainerFlow/slots/index.d.ts +0 -0
- package/components/ContainerFlow/tests/ContainerFlow.test.d.ts +1 -0
- package/components/ContainerFlow/types.d.ts +41 -0
- package/components/Image/Image.js +4 -2
- package/components/Image/image.styles.js +6 -3
- package/components/Image/types.d.ts +2 -0
- package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/PropertyValue/PropertyValue.styles.js +1 -1
- package/components/SideBar/SideBar.js +2 -6
- package/components/SideBar/constants.d.ts +6 -7
- package/components/SideBar/constants.js +7 -7
- package/components/SideBar/context/sideBarContext/index.js +10 -9
- package/components/SideBar/context/sideBarContext/types.d.ts +10 -2
- package/components/SideBar/slots/SideBarEnum.d.ts +7 -7
- package/components/SideBar/slots/SideBarEnum.js +5 -5
- package/components/SideBar/slots/SideBarSlots.d.ts +9 -9
- package/components/SideBar/slots/SideBarSlots.js +28 -31
- package/components/SideBar/styles.js +3 -3
- package/components/SideBar/subcomponents/ContentComponent/index.js +68 -12
- package/components/SideBar/subcomponents/ContentComponent/style.js +103 -103
- package/components/SideBar/subcomponents/HeaderSidebar/index.d.ts +6 -0
- package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +2 -0
- package/components/SideBar/subcomponents/HeaderSidebar/styles.js +24 -0
- package/components/SideBar/subcomponents/HeaderSidebar/types.d.ts +5 -0
- package/components/SideBar/subcomponents/{FooterComponent → Promotion}/index.d.ts +1 -1
- package/components/SideBar/subcomponents/{FooterComponent → Promotion}/index.js +4 -4
- package/components/SideBar/subcomponents/{FooterComponent → Promotion}/styles.js +1 -7
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +3 -4
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +32 -4
- package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/index.js +3 -4
- package/components/SideBar/subcomponents/TreeGroupItems/styles.js +2 -90
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +4 -6
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +0 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +3 -8
- package/components/SideBar/types.d.ts +7 -12
- package/components/commercial/HamburgerMenu/HamburgerMenu.js +2 -1
- package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +4 -5
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Accordion/styles.js +3 -5
- package/components/mui_extended/TabContent/TabContent.js +2 -2
- package/components/mui_extended/TabContent/TabContent.styles.js +4 -1
- package/components/mui_extended/TabContent/constants.d.ts +1 -0
- package/components/mui_extended/TabContent/constants.js +2 -0
- package/components/mui_extended/TabContent/types.d.ts +1 -1
- package/components/mui_extended/Typography/Typography.js +3 -1
- package/components/mui_extended/Typography/types.d.ts +5 -0
- package/components/mui_extended/Typography/typography.styles.js +7 -1
- package/index.js +32 -30
- package/package.json +3 -3
- package/storybook/components/ContainerFlow/ContainerFlow.stories.d.ts +32 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn1Wrappers/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn2Wrappers/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexColumn3Wrappers/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderFlexWrap/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/subcomponents/RenderGridLayout/index.d.ts +5 -0
- package/storybook/components/ContainerFlow/wrapperItems/index.d.ts +10 -0
- package/storybook/components/SideBar/SideBar.stories.d.ts +11 -5
- package/storybook/components/SideBar/subcomponents/FooterPromotion/FooterPromotion.d.ts +4 -0
- package/storybook/components/SideBar/subcomponents/FooterPromotion/index.d.ts +1 -0
- package/utils/getSizeStyles/getSizeStyles.d.ts +1 -1
- package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.d.ts +0 -5
- package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.js +0 -37
- package/components/SideBar/subcomponents/HeaderComponent/index.d.ts +0 -1
- package/components/SideBar/subcomponents/HeaderComponent/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/HeaderComponent/styles.js +0 -44
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.d.ts +0 -7
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.js +0 -12
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/types.d.ts +0 -4
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/FooterComponentHost.d.ts +0 -4
- package/storybook/components/SideBar/subcomponents/FooterComponentHost/index.d.ts +0 -1
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.d.ts +0 -4
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/FooterComponentMicrofrontend.stories.d.ts +0 -14
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/constants.d.ts +0 -1
- package/storybook/components/SideBar/subcomponents/FooterComponentMicrofrontend/index.d.ts +0 -1
- package/storybook/components/SideBar/subcomponents/HeaderComponentHost/HeaderComponentHost.d.ts +0 -5
- package/storybook/components/SideBar/subcomponents/HeaderComponentHost/constants.d.ts +0 -1
- package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/HeaderComponentMicrofrontend.d.ts +0 -5
- package/storybook/components/SideBar/subcomponents/HeaderComponentMicrofrontend/constants.d.ts +0 -1
- /package/components/{SideBar/subcomponents/HeaderComponent → ContainerFlow}/index.js +0 -0
- /package/components/SideBar/subcomponents/{FooterComponent → Promotion}/styles.d.ts +0 -0
- /package/components/SideBar/subcomponents/{FooterComponent → Promotion}/types.d.ts +0 -0
- /package/storybook/components/SideBar/subcomponents/{FooterComponentHost → FooterPromotion}/constants.d.ts +0 -0
|
@@ -5,16 +5,13 @@ import { T as TEST_PROP_ID } from "../../../../../../test/constants_no_mock.js";
|
|
|
5
5
|
import { A as ArrowIcon } from "../ArrowIcon/index.js";
|
|
6
6
|
import { Collapse } from "@mui/material";
|
|
7
7
|
import { N as NodeMenuItem } from "../NodeMenuItem/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { b as CLASS_NAME_IS_ROOT } from "../../../../constants.js";
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
import { useModuleSkeleton } from "@m4l/core";
|
|
11
|
-
import { u as useSideBar } from "../../../../hooks/useSideBar/index.js";
|
|
12
|
-
import { A as AdornmentIcon } from "../AdormentIcon/AdormentIcon.js";
|
|
13
11
|
import { u as useComponentSize } from "../../../../../../hooks/useComponentSize/useComponentSize.js";
|
|
14
12
|
import { u as useCollapse } from "../../../../hooks/useCollapse/useCollapse.js";
|
|
15
13
|
const NodeMenuItemMain = (props) => {
|
|
16
14
|
const { item, size, defaultOpen = false } = props;
|
|
17
|
-
const { urlIconPrefix } = useSideBar();
|
|
18
15
|
const { currentSize } = useComponentSize(size);
|
|
19
16
|
const { isOpen, handlerClick, hasChildren } = useCollapse(item, defaultOpen);
|
|
20
17
|
const isSkeleton = useModuleSkeleton();
|
|
@@ -34,8 +31,7 @@ const NodeMenuItemMain = (props) => {
|
|
|
34
31
|
MenuItemMainStyled,
|
|
35
32
|
{
|
|
36
33
|
label: item.title,
|
|
37
|
-
startIcon: /* @__PURE__ */ jsx(
|
|
38
|
-
endIcon: hasChildren ? /* @__PURE__ */ jsx(ArrowIcon, { openState: isOpen, active: item.active }) : null,
|
|
34
|
+
startIcon: hasChildren ? /* @__PURE__ */ jsx(ArrowIcon, { openState: isOpen, active: item.active }) : null,
|
|
39
35
|
onClick: () => handlerClick(),
|
|
40
36
|
size: currentSize
|
|
41
37
|
}
|
|
@@ -47,8 +43,7 @@ const NodeMenuItemMain = (props) => {
|
|
|
47
43
|
size: currentSize,
|
|
48
44
|
className: clsx(CLASS_NAME_IS_ROOT),
|
|
49
45
|
defaultOpen: isSkeleton ? false : true,
|
|
50
|
-
isLastSibling: item.children?.length === index + 1
|
|
51
|
-
isRoot: true
|
|
46
|
+
isLastSibling: item.children?.length === index + 1
|
|
52
47
|
},
|
|
53
48
|
child.title
|
|
54
49
|
)) })
|
|
@@ -51,6 +51,10 @@ export interface SideBarProps {
|
|
|
51
51
|
* Slogan de la empresa
|
|
52
52
|
*/
|
|
53
53
|
companySlogan?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Indica la variación de estilo del componente
|
|
56
|
+
*/
|
|
57
|
+
variantStyle?: 'variantDefault' | 'variantComercial';
|
|
54
58
|
moduleSelectedId?: string | undefined;
|
|
55
59
|
onMenuItemClick: (item: MenuDataType) => void;
|
|
56
60
|
/**
|
|
@@ -70,19 +74,10 @@ export interface SideBarProps {
|
|
|
70
74
|
*/
|
|
71
75
|
urlIconPrefix?: string;
|
|
72
76
|
/**
|
|
73
|
-
*
|
|
74
|
-
*/
|
|
75
|
-
variant?: SidebarVariants;
|
|
76
|
-
/**
|
|
77
|
-
* Componente que se renderiza en el encabezado del sidebar
|
|
78
|
-
*/
|
|
79
|
-
headerComponent?: ReactElement;
|
|
80
|
-
/**
|
|
81
|
-
* Componente que se renderiza en el pie de página del sidebar
|
|
77
|
+
* Promoción del sidebar, se renderiza en el footer del sidebar
|
|
82
78
|
*/
|
|
83
|
-
|
|
79
|
+
promotion?: ReactElement;
|
|
84
80
|
}
|
|
85
|
-
export type SidebarVariants = 'host' | 'microfrontend';
|
|
86
81
|
/**
|
|
87
82
|
* Interface que representa el estado de un elemento de menú en la barra lateral.
|
|
88
83
|
*/
|
|
@@ -101,7 +96,7 @@ export type SideBarOwnerState = Pick<IMenuDataWithState, 'active' | 'itemInTreeA
|
|
|
101
96
|
export type SideBarStyles = M4LOverridesStyleRules<SideBarSlotsType, typeof SIDEBAR_KEY_COMPONENT, Theme>;
|
|
102
97
|
export type SideBarDesktopStyles = M4LOverridesStyleRules<SideBarDesktopSlots, typeof SIDEBAR_KEY_COMPONENT, Theme>;
|
|
103
98
|
export type ContentGroupsStyles = M4LOverridesStyleRules<ContentGroupsSlots, typeof SIDEBAR_KEY_COMPONENT, Theme>;
|
|
104
|
-
export type
|
|
99
|
+
export type HeaderSidebarStyles = M4LOverridesStyleRules<HeaderSidebarSlots, typeof SIDEBAR_KEY_COMPONENT, Theme>;
|
|
105
100
|
export type SideBarFooterStyles = M4LOverridesStyleRules<SideBarFooterSlots, typeof SIDEBAR_KEY_COMPONENT, Theme>;
|
|
106
101
|
export type SideBarMobileStyles = M4LOverridesStyleRules<SideBarMobileSlots, typeof SIDEBAR_KEY_COMPONENT, Theme>;
|
|
107
102
|
export type ContentComponentStyles = M4LOverridesStyleRules<ContentComponentSlots, typeof SIDEBAR_KEY_COMPONENT, Theme>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { g as getCommonActionsDictionary } from "../../../../CommonActions/dictionary.js";
|
|
2
|
-
const DICTIONARY_KEY = "rhf_period";
|
|
3
2
|
const dictionary = {
|
|
4
|
-
LABEL_YEARS:
|
|
5
|
-
LABEL_MONTHS:
|
|
6
|
-
LABEL_DAYS:
|
|
3
|
+
LABEL_YEARS: "period.label_years",
|
|
4
|
+
LABEL_MONTHS: "period.label_months",
|
|
5
|
+
LABEL_DAYS: "period.label_days"
|
|
7
6
|
};
|
|
8
7
|
function getPeriodComponetsDictionary() {
|
|
9
|
-
return [
|
|
8
|
+
return ["period"].concat(getCommonActionsDictionary());
|
|
10
9
|
}
|
|
11
10
|
export {
|
|
12
11
|
dictionary as d,
|
package/components/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './BaseModule';
|
|
|
7
7
|
export * from './Chip';
|
|
8
8
|
export * from './commercial';
|
|
9
9
|
export * from './CommonActions/';
|
|
10
|
+
export * from './ContainerFlow';
|
|
10
11
|
export * from './CommonActions/dictionary';
|
|
11
12
|
export * from './DataGrid';
|
|
12
13
|
export * from './DragResizeWindowRND';
|
|
@@ -16,7 +16,8 @@ const accordionStyles = {
|
|
|
16
16
|
borderRadius: "unset"
|
|
17
17
|
},
|
|
18
18
|
margin: "unset",
|
|
19
|
-
overflow: "visible"
|
|
19
|
+
overflow: "visible",
|
|
20
|
+
height: "min-content"
|
|
20
21
|
}
|
|
21
22
|
}),
|
|
22
23
|
/**
|
|
@@ -102,10 +103,7 @@ const accordionStyles = {
|
|
|
102
103
|
* **************************************************************
|
|
103
104
|
*/
|
|
104
105
|
accordionDetails: ({ theme, ownerState }) => ({
|
|
105
|
-
|
|
106
|
-
paddingRight: theme.vars.size.baseSpacings.sp3,
|
|
107
|
-
paddingTop: theme.vars.size.baseSpacings.sp1,
|
|
108
|
-
paddingBottom: theme.vars.size.baseSpacings.sp1,
|
|
106
|
+
padding: theme.vars.size.baseSpacings.sp4,
|
|
109
107
|
background: theme.vars.palette.background.default,
|
|
110
108
|
display: "flex",
|
|
111
109
|
flexDirection: "column",
|
|
@@ -3,9 +3,9 @@ import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.j
|
|
|
3
3
|
import { T as TAB_CONTENT_KEY_COMPONENT } from "./constants.js";
|
|
4
4
|
import { T as TabContentRootStyled } from "./slots/TabContentSlots.js";
|
|
5
5
|
const TabContent = (props) => {
|
|
6
|
-
const { children, className,
|
|
6
|
+
const { children, className, background = false, ...others } = props;
|
|
7
7
|
const root = getComponentSlotRoot(TAB_CONTENT_KEY_COMPONENT);
|
|
8
|
-
return /* @__PURE__ */ jsx(TabContentRootStyled, { className: root, ownerState: {
|
|
8
|
+
return /* @__PURE__ */ jsx(TabContentRootStyled, { className: root, ownerState: { background }, ...others, children });
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
TabContent as T
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { C as CONTAINER_QUERY_NAME } from "./constants.js";
|
|
1
2
|
const tabContentStyles = {
|
|
2
3
|
/**
|
|
3
4
|
* Elemento root referencia a `TabContent`
|
|
@@ -9,6 +10,8 @@ const tabContentStyles = {
|
|
|
9
10
|
paddingRight: 0,
|
|
10
11
|
display: "flex",
|
|
11
12
|
overflow: "auto",
|
|
13
|
+
containerName: CONTAINER_QUERY_NAME,
|
|
14
|
+
containerType: "inline-size",
|
|
12
15
|
// height: '100%',
|
|
13
16
|
flexDirection: "column",
|
|
14
17
|
gap: theme.vars.size.baseSpacings.sp2,
|
|
@@ -20,7 +23,7 @@ const tabContentStyles = {
|
|
|
20
23
|
boxSizing: "border-box",
|
|
21
24
|
zIndex: "0",
|
|
22
25
|
top: "-1px",
|
|
23
|
-
...ownerState?.
|
|
26
|
+
...ownerState?.background ? {
|
|
24
27
|
backgroundColor: theme.vars.palette.background.base,
|
|
25
28
|
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
26
29
|
paddingRight: theme.vars.size.baseSpacings.sp2,
|
|
@@ -7,6 +7,6 @@ export interface TabContentProps extends Omit<React.HTMLAttributes<HTMLDivElemen
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
key?: Key | null | undefined;
|
|
10
|
-
|
|
10
|
+
background?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export type TabContentStyles = M4LOverridesStyleRules<keyof typeof TabContentSlots, typeof TABS_KEY_COMPONENT, Theme>;
|
|
@@ -17,6 +17,7 @@ function Typography(props) {
|
|
|
17
17
|
dataTestid,
|
|
18
18
|
children,
|
|
19
19
|
disabled,
|
|
20
|
+
ellipsis = false,
|
|
20
21
|
...other
|
|
21
22
|
} = props;
|
|
22
23
|
const isSkeleton = useModuleSkeleton();
|
|
@@ -28,7 +29,8 @@ function Typography(props) {
|
|
|
28
29
|
size: adjustedSize,
|
|
29
30
|
skeletonRows,
|
|
30
31
|
variant,
|
|
31
|
-
skeleton: isSkeleton
|
|
32
|
+
skeleton: isSkeleton,
|
|
33
|
+
ellipsis
|
|
32
34
|
};
|
|
33
35
|
return /* @__PURE__ */ jsx(
|
|
34
36
|
StyledMUITypography,
|
|
@@ -43,6 +43,10 @@ export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'var
|
|
|
43
43
|
htmlFor?: string | undefined;
|
|
44
44
|
/** Si esta disabled, el texto pasa a text.disabled */
|
|
45
45
|
disabled?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Si se activa, el texto se corta y se muestra un elipsis.
|
|
48
|
+
*/
|
|
49
|
+
ellipsis?: boolean;
|
|
46
50
|
}
|
|
47
51
|
/**
|
|
48
52
|
* Define valores de estado necesarios para estilar el componente.
|
|
@@ -54,6 +58,7 @@ export interface TypographyOwnerState {
|
|
|
54
58
|
size: TypographyProps['size'];
|
|
55
59
|
skeletonRows: TypographyProps['skeletonRows'];
|
|
56
60
|
skeleton: boolean;
|
|
61
|
+
ellipsis: TypographyProps['ellipsis'];
|
|
57
62
|
}
|
|
58
63
|
/**
|
|
59
64
|
* Agrupa la lista de slots del componente.
|
|
@@ -32,7 +32,13 @@ const typographyStyles = {
|
|
|
32
32
|
theme.generalSettings.isMobile,
|
|
33
33
|
ownerState?.size || "medium",
|
|
34
34
|
ownerState?.variant || "body"
|
|
35
|
-
)
|
|
35
|
+
),
|
|
36
|
+
// ellipsis 🔤
|
|
37
|
+
...ownerState?.ellipsis && {
|
|
38
|
+
overflow: "hidden",
|
|
39
|
+
textOverflow: "ellipsis",
|
|
40
|
+
whiteSpace: "nowrap"
|
|
41
|
+
}
|
|
36
42
|
},
|
|
37
43
|
...ownerState?.skeleton ? {
|
|
38
44
|
width: ownerState?.width ? ownerState?.width : "100%"
|
package/index.js
CHANGED
|
@@ -29,31 +29,32 @@ import { A as A11 } from "./components/CommonActions/components/ActionIntro/Acti
|
|
|
29
29
|
import { A as A12 } from "./components/CommonActions/components/ActionFormCancel/ActionFormCancel.js";
|
|
30
30
|
import { A as A13 } from "./components/CommonActions/components/ActionFormIntro/ActionFormIntro.js";
|
|
31
31
|
import { D, d, g as g4 } from "./components/CommonActions/dictionary.js";
|
|
32
|
+
import { C as C2 } from "./components/ContainerFlow/ContainerFlow.js";
|
|
32
33
|
import { D as D2 } from "./components/DataGrid/DataGrid.js";
|
|
33
34
|
import { g as g5 } from "./components/DataGrid/dictionary.js";
|
|
34
35
|
import { N, T as T2 } from "./components/DataGrid/subcomponents/editors/TextEditor/index.js";
|
|
35
36
|
import { g as g6 } from "./components/DataGrid/utils/getDataGridRowsFromSet.js";
|
|
36
37
|
import { b as b3, a as a4, e } from "./components/DataGrid/constants.js";
|
|
37
|
-
import { C as
|
|
38
|
+
import { C as C3 } from "./components/DataGrid/formatters/ColumnBooleanFormatter/formatter.js";
|
|
38
39
|
import { u as u2 } from "./components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.js";
|
|
39
|
-
import { C as
|
|
40
|
+
import { C as C4 } from "./components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.js";
|
|
40
41
|
import { u as u3 } from "./components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.js";
|
|
41
|
-
import { C as
|
|
42
|
+
import { C as C5 } from "./components/DataGrid/formatters/ColumnDateFormatter/formatter.js";
|
|
42
43
|
import { u as u4 } from "./components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.js";
|
|
43
|
-
import { C as
|
|
44
|
-
import { C as
|
|
44
|
+
import { C as C6 } from "./components/DataGrid/formatters/ColumnIconFormatter/formatter.js";
|
|
45
|
+
import { C as C7 } from "./components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
45
46
|
import { u as u5 } from "./components/DataGrid/formatters/ColumnInteractiveCheckFormatter/useColumnInteractiveCheck.js";
|
|
46
|
-
import { C as
|
|
47
|
+
import { C as C8 } from "./components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js";
|
|
47
48
|
import { u as u6 } from "./components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js";
|
|
48
|
-
import { C as
|
|
49
|
+
import { C as C9 } from "./components/DataGrid/formatters/ColumnPointsFormatter/formatter.js";
|
|
49
50
|
import { u as u7 } from "./components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.js";
|
|
50
|
-
import { C as
|
|
51
|
+
import { C as C10 } from "./components/DataGrid/formatters/ColumnPriceFormatter/formatter.js";
|
|
51
52
|
import { u as u8 } from "./components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.js";
|
|
52
|
-
import { C as
|
|
53
|
+
import { C as C11 } from "./components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js";
|
|
53
54
|
import { u as u9 } from "./components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.js";
|
|
54
|
-
import { C as
|
|
55
|
+
import { C as C12 } from "./components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.js";
|
|
55
56
|
import { u as u10 } from "./components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js";
|
|
56
|
-
import { C as
|
|
57
|
+
import { C as C13 } from "./components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js";
|
|
57
58
|
import { u as u11 } from "./components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js";
|
|
58
59
|
import { D as D3 } from "./components/DragResizeWindowRND/DragResizeWindowRND.js";
|
|
59
60
|
import { d as d2 } from "./components/DragResizeWindowRND/classes/index.js";
|
|
@@ -74,7 +75,7 @@ import { V } from "./components/extended/React-Window/VariableSizeList/VariableS
|
|
|
74
75
|
import { A as A14 } from "./components/mui_extended/Avatar/Avatar.js";
|
|
75
76
|
import { B as B2 } from "./components/mui_extended/BoxIcon/index.js";
|
|
76
77
|
import { B as B3 } from "./components/mui_extended/Breadcrumbs/index.js";
|
|
77
|
-
import { C as
|
|
78
|
+
import { C as C14 } from "./components/mui_extended/CircularProgress/CircularProgress.js";
|
|
78
79
|
import { B as B4 } from "./components/mui_extended/Badge/Badge.js";
|
|
79
80
|
import { L as L3 } from "./components/mui_extended/LinearProgress/index.js";
|
|
80
81
|
import { L as L4 } from "./components/mui_extended/LinkWithRoute/index.js";
|
|
@@ -84,7 +85,7 @@ import { A as A15 } from "./components/mui_extended/Accordion/Accordion.js";
|
|
|
84
85
|
import { T as T3 } from "./components/mui_extended/Tooltip/Tooltip.js";
|
|
85
86
|
import { I as I2 } from "./components/mui_extended/IconButton/IconButton.js";
|
|
86
87
|
import { B as B5 } from "./components/mui_extended/Button/Button.js";
|
|
87
|
-
import { C as
|
|
88
|
+
import { C as C15 } from "./components/mui_extended/CheckBox/CheckBox.js";
|
|
88
89
|
import { I as I3 } from "./components/mui_extended/ImageButton/ImageButton.js";
|
|
89
90
|
import { P as P2 } from "./components/mui_extended/Popover/Popover.js";
|
|
90
91
|
import { S as S4 } from "./components/mui_extended/Skeleton/Skeleton.js";
|
|
@@ -111,10 +112,10 @@ import { B as B6 } from "./components/formatters/BooleanFormatter/BooleanFormatt
|
|
|
111
112
|
import { D as D8, g as g12 } from "./components/formatters/DateFormatter/DateFormatter.js";
|
|
112
113
|
import { U, g as g13 } from "./components/formatters/UncertaintyFormatter/UncertaintyFormatter.js";
|
|
113
114
|
import { P as P3, g as g14 } from "./components/formatters/PointsFormatter/PointsFormatter.js";
|
|
114
|
-
import { C as
|
|
115
|
+
import { C as C16, g as g15 } from "./components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
|
|
115
116
|
import { P as P4, u as u12 } from "./components/formatters/PeriodFormatter/PeriodFormatter.js";
|
|
116
117
|
import { P as P5, g as g16 } from "./components/formatters/PriceFormatter/PriceFormatter.js";
|
|
117
|
-
import { C as
|
|
118
|
+
import { C as C17 } from "./components/formatters/ChipStatusFormatter/ChipStatusFormatter.js";
|
|
118
119
|
import { g as g17 } from "./components/formatters/DistanceToNowFormatter/dictionary.js";
|
|
119
120
|
import { D as D9 } from "./components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js";
|
|
120
121
|
import { g as g18 } from "./components/formatters/dictionary.js";
|
|
@@ -241,22 +242,23 @@ export {
|
|
|
241
242
|
B2 as BoxIcon,
|
|
242
243
|
B3 as Breadcrumbs,
|
|
243
244
|
B5 as Button,
|
|
244
|
-
|
|
245
|
+
C15 as CheckBox,
|
|
245
246
|
C as Chip,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
247
|
+
C17 as ChipStatusFormatter,
|
|
248
|
+
C14 as CircularProgress,
|
|
249
|
+
C3 as ColumnBooleanFormatter,
|
|
250
|
+
C13 as ColumnChipStatusFormatter,
|
|
251
|
+
C4 as ColumnConcatenatedValueFormatter,
|
|
252
|
+
C5 as ColumnDateFormatter,
|
|
253
|
+
C6 as ColumnIconFormatter,
|
|
254
|
+
C7 as ColumnInteractiveCheckFormatter,
|
|
255
|
+
C8 as ColumnNestedValueFormatter,
|
|
256
|
+
C9 as ColumnPointsFormatter,
|
|
257
|
+
C10 as ColumnPriceFormatter,
|
|
258
|
+
C11 as ColumnSetCheckFormatter,
|
|
259
|
+
C12 as ColumnUncertaintyFormatter,
|
|
260
|
+
C16 as ConcatenatedFormatter,
|
|
261
|
+
C2 as ContainerFlow,
|
|
260
262
|
b3 as DATAGRID_ROW_HEADER_HEIGHTS,
|
|
261
263
|
a4 as DATAGRID_ROW_HEIGHTS,
|
|
262
264
|
e as DATAGRID_SEMANTIC_WIDTHS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.2.62-
|
|
3
|
+
"version": "9.2.62-B09072025beta.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "M4L Components",
|
|
6
6
|
"lint-staged": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@googlemaps/js-api-loader": "^1.16.6",
|
|
12
12
|
"@hookform/resolvers": "2.9.11",
|
|
13
13
|
"@m4l/core": "^2.0.0",
|
|
14
|
-
"@m4l/graphics": "7.
|
|
15
|
-
"@m4l/styles": "7.
|
|
14
|
+
"@m4l/graphics": "^7.0.0",
|
|
15
|
+
"@m4l/styles": "^7.0.0",
|
|
16
16
|
"@microlink/react-json-view": "^1.23.3",
|
|
17
17
|
"@mui/lab": "5.0.0-alpha.173",
|
|
18
18
|
"@mui/material": "5.16.7",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ContainerFlow } from '../../../src/components/ContainerFlow/ContainerFlow';
|
|
3
|
+
/**
|
|
4
|
+
* Renderiza un chip para cada color
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof ContainerFlow>;
|
|
7
|
+
type Story = StoryObj<typeof ContainerFlow>;
|
|
8
|
+
/**
|
|
9
|
+
* FlexColumn
|
|
10
|
+
*/
|
|
11
|
+
export declare const H001_FlexColumn: Story;
|
|
12
|
+
/**
|
|
13
|
+
* variante column-flex con 3 wrappers
|
|
14
|
+
*/
|
|
15
|
+
export declare const H002_FlexColumn3Wrappers: Story;
|
|
16
|
+
/**
|
|
17
|
+
* variante column-flex con 2 wrappers
|
|
18
|
+
*/
|
|
19
|
+
export declare const H003_FlexColumn2Wrappers: Story;
|
|
20
|
+
/**
|
|
21
|
+
* variante column-flex con 1 wrapper
|
|
22
|
+
*/
|
|
23
|
+
export declare const H004_FlexColumn1Wrappers: Story;
|
|
24
|
+
/**
|
|
25
|
+
* variante flex-wrap
|
|
26
|
+
*/
|
|
27
|
+
export declare const H005_FlexWrap: Story;
|
|
28
|
+
/**
|
|
29
|
+
* variante grid-layout
|
|
30
|
+
*/
|
|
31
|
+
export declare const H006_GridLayout: Story;
|
|
32
|
+
export default meta;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
+
/**
|
|
3
|
+
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RenderFlexColumn: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
+
/**
|
|
3
|
+
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RenderFlexColumn1Wrappers: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
+
/**
|
|
3
|
+
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RenderFlexColumn2Wrappers: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
+
/**
|
|
3
|
+
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RenderFlexColumn3Wrappers: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
+
/**
|
|
3
|
+
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RenderFlexWrap: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ContainerFlowProps } from '../../../../../src/components/ContainerFlow/types';
|
|
2
|
+
/**
|
|
3
|
+
* Renderiza el componente ContainerFlow con los props pasados.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RenderGridLayout: (args: ContainerFlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Componente que se encarga de envolver los items del contenedor de items.
|
|
3
|
+
* @param children - Los items del contenedor de items.
|
|
4
|
+
* @returns Un componente de tipo div con los estilos del contenedor de items.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WrapperItems: ({ children, width, style }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
width?: string | number;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,13 +5,19 @@ type Story = StoryObj<typeof SideBar>;
|
|
|
5
5
|
/**
|
|
6
6
|
* SideBar por defecto sin ningún item seleccionado
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const Default: Story;
|
|
9
9
|
/**
|
|
10
|
-
* SideBar por
|
|
10
|
+
* SideBar colapsado por medio del botón de anclaje
|
|
11
|
+
*/
|
|
12
|
+
export declare const CollapsedWithAnchorButton: Story;
|
|
13
|
+
/**
|
|
14
|
+
* SideBar colapsado con hover sobre el menú
|
|
15
|
+
*/
|
|
16
|
+
export declare const CollapsedWithHoverOnMenu: Story;
|
|
17
|
+
/**
|
|
18
|
+
* SideBar colapsado retirando hover sobre el menú
|
|
11
19
|
*/
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const H003_VariantMicrofrontend: Story;
|
|
14
|
-
export declare const H004_VariantMicrofrontend_Collapsed: Story;
|
|
20
|
+
export declare const CollapsedWithHoverRemoved: Story;
|
|
15
21
|
/**
|
|
16
22
|
* SideBar con items en el menu, con un item seleccionado y 5 anidaciones incluyendo la sección padre de los menu items
|
|
17
23
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FooterPromotion } from './FooterPromotion';
|
|
@@ -24,4 +24,4 @@ export declare const getHeightSizeStyles: (isMobile: boolean, size: Extract<Size
|
|
|
24
24
|
* @param property - Propiedad CSS que se desea aplicar (por defecto es 'height').
|
|
25
25
|
* @returns Objeto con los estilos calculados.
|
|
26
26
|
*/
|
|
27
|
-
export declare const getSizeStyles: (theme: Theme, size: Sizes, variantSize: SizesComponentsTypes, css?: Record<string, any> | ((sizeValue: string | number) => Record<string, any>), property?: "height" | "width") => any;
|
|
27
|
+
export declare const getSizeStyles: (theme: Theme, size: Extract<Sizes, "small" | "medium">, variantSize: SizesComponentsTypes, css?: Record<string, any> | ((sizeValue: string | number) => Record<string, any>), property?: "height" | "width") => any;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { u as useSideBar } from "../../hooks/useSideBar/index.js";
|
|
3
|
-
import { H as HeaderContainerComponentStyled, B as ButtonAnchoredStyled } from "../../slots/SideBarSlots.js";
|
|
4
|
-
import { useEnvironment } from "@m4l/core";
|
|
5
|
-
import { e as PATH_ARROW_RIGHT_ICON } from "../../constants.js";
|
|
6
|
-
import { useIsMobile } from "@m4l/graphics";
|
|
7
|
-
const HeaderComponent = () => {
|
|
8
|
-
const {
|
|
9
|
-
headerComponent,
|
|
10
|
-
onToggleAnchored,
|
|
11
|
-
anchored,
|
|
12
|
-
variant,
|
|
13
|
-
classes
|
|
14
|
-
} = useSideBar();
|
|
15
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
16
|
-
const isDesktop = !useIsMobile();
|
|
17
|
-
const handleToggleAnchored = () => {
|
|
18
|
-
onToggleAnchored(!anchored);
|
|
19
|
-
};
|
|
20
|
-
return /* @__PURE__ */ jsxs(HeaderContainerComponentStyled, { ownerState: { anchored, variant }, children: [
|
|
21
|
-
headerComponent && headerComponent,
|
|
22
|
-
variant === "microfrontend" && isDesktop && /* @__PURE__ */ jsx(
|
|
23
|
-
ButtonAnchoredStyled,
|
|
24
|
-
{
|
|
25
|
-
icon: `${host_static_assets}/${environment_assets}/${PATH_ARROW_RIGHT_ICON}`,
|
|
26
|
-
onClick: handleToggleAnchored,
|
|
27
|
-
rotationAngle: anchored ? 0 : 180,
|
|
28
|
-
className: classes.buttonAnchored,
|
|
29
|
-
variant: "outline",
|
|
30
|
-
role: "anchored-button"
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
] });
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
HeaderComponent as H
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HeaderComponent } from './HeaderComponent';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const headerComponentStyles = {
|
|
2
|
-
/**
|
|
3
|
-
* Wrapper para el encabezado del sidebar
|
|
4
|
-
*/
|
|
5
|
-
headerContainerComponent: ({ theme, ownerState }) => ({
|
|
6
|
-
display: "flex",
|
|
7
|
-
flexDirection: "row",
|
|
8
|
-
justifyContent: "space-between",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
width: "100%",
|
|
11
|
-
gap: theme.vars.size.baseSpacings.sp3,
|
|
12
|
-
paddingLeft: theme.vars.size.baseSpacings.sp4,
|
|
13
|
-
paddingRight: theme.vars.size.baseSpacings.sp4,
|
|
14
|
-
paddingBottom: theme.vars.size.baseSpacings.sp3,
|
|
15
|
-
transition: "all 0.5s",
|
|
16
|
-
"& > div": {
|
|
17
|
-
transition: "all 0.5s"
|
|
18
|
-
},
|
|
19
|
-
"& > div:first-of-type .M4LImage-root": {
|
|
20
|
-
//minWidth: '140px',
|
|
21
|
-
minHeight: theme.vars.size.baseSpacings.sp10
|
|
22
|
-
},
|
|
23
|
-
...!ownerState?.anchored && ownerState?.variant !== "host" && {
|
|
24
|
-
transition: "all 0.5s",
|
|
25
|
-
height: theme.vars.size.baseSpacings.sp14,
|
|
26
|
-
justifyContent: "center",
|
|
27
|
-
alignItems: "center",
|
|
28
|
-
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
29
|
-
paddingRight: theme.vars.size.baseSpacings.sp2,
|
|
30
|
-
gap: "unset",
|
|
31
|
-
"& > div:not(.M4LSideBar-buttonAnchored)": {
|
|
32
|
-
visibility: "hidden",
|
|
33
|
-
transition: "all 0.5s"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}),
|
|
37
|
-
/**
|
|
38
|
-
* Styles applied to the button anchored in the header component
|
|
39
|
-
*/
|
|
40
|
-
buttonAnchored: {}
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
headerComponentStyles as h
|
|
44
|
-
};
|
package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AdornmentIconProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Adornment icon component
|
|
4
|
-
* @param props - Adornment icon props
|
|
5
|
-
* @returns Adornment icon component
|
|
6
|
-
*/
|
|
7
|
-
export declare const AdornmentIcon: (props: AdornmentIconProps) => import("react/jsx-runtime").JSX.Element;
|