@m4l/components 9.2.63-JT14072025.beta.1 → 9.2.64
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/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 +9 -0
- package/components/ContainerFlow/constants.js +21 -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/index.js +1 -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/DataGrid/Datagrid.styles.js +2 -22
- package/components/DataGrid/formatters/ColumnBooleanFormatter/formatter.d.ts +1 -2
- package/components/DataGrid/formatters/ColumnBooleanFormatter/formatter.js +3 -2
- package/components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.d.ts +1 -2
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js +4 -5
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.d.ts +1 -2
- package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.js +4 -11
- package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnDateFormatter/formatter.d.ts +1 -2
- package/components/DataGrid/formatters/ColumnDateFormatter/formatter.js +4 -13
- package/components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnIconFormatter/formatter.d.ts +1 -2
- package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +2 -2
- package/components/DataGrid/formatters/ColumnIconFormatter/useColumnIcon.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/types.d.ts +2 -2
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.d.ts +1 -2
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js +3 -4
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnPointsFormatter/formatter.d.ts +1 -2
- package/components/DataGrid/formatters/ColumnPointsFormatter/formatter.js +5 -13
- package/components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnPriceFormatter/formatter.d.ts +1 -2
- package/components/DataGrid/formatters/ColumnPriceFormatter/formatter.js +4 -11
- package/components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.d.ts +2 -2
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.d.ts +1 -2
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.js +6 -15
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.d.ts +1 -1
- package/components/DataGrid/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +5 -4
- package/components/DataGrid/subcomponents/Table/hooks/getDragHeaderRenderer.d.ts +2 -2
- package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.d.ts +2 -2
- package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.js +6 -15
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +7 -9
- package/components/DataGrid/subcomponents/Table/index.d.ts +1 -3
- package/components/DataGrid/subcomponents/Table/index.js +9 -39
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.d.ts +2 -2
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.d.ts +2 -2
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +8 -10
- package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +7 -7
- package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +3 -3
- package/components/DataGrid/types.d.ts +4 -5
- package/components/Image/Image.js +4 -2
- package/components/Image/image.styles.js +6 -3
- package/components/Image/types.d.ts +5 -0
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- package/components/PropertyValue/PropertyValue.styles.js +1 -1
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Accordion/styles.js +3 -5
- package/components/mui_extended/MenuItem/MenuItem.js +1 -2
- package/components/mui_extended/MenuItem/types.d.ts +0 -4
- package/components/mui_extended/TabContent/TabContent.styles.js +3 -0
- package/components/mui_extended/TabContent/constants.d.ts +1 -0
- package/components/mui_extended/TabContent/constants.js +2 -0
- 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/helpers/getFieldValueWithRow.js +10 -0
- package/index.js +32 -30
- package/package.json +2 -2
- 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/DataGrid/helpers/types.d.ts +2 -2
|
@@ -31,9 +31,14 @@ export interface ImageProps extends Omit<IntersectComponentProps, 'setIsVisible'
|
|
|
31
31
|
enableIntersectionObserver?: boolean;
|
|
32
32
|
className?: string;
|
|
33
33
|
dataTestId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Si es verdadero, la imagen se ajusta al contenedor y se recorta si es necesario.
|
|
36
|
+
*/
|
|
37
|
+
cover?: boolean;
|
|
34
38
|
}
|
|
35
39
|
export type ImageSlotsType = keyof typeof ImageSlots;
|
|
36
40
|
export interface ImageOwnerState {
|
|
37
41
|
isSkeleton?: boolean;
|
|
42
|
+
cover?: boolean;
|
|
38
43
|
}
|
|
39
44
|
export type ImageStyles = M4LOverridesStyleRules<ImageSlots, typeof IMAGE_KEY_COMPONENT, Theme>;
|
|
@@ -56,9 +56,11 @@ const useNumberInput = (parameters) => {
|
|
|
56
56
|
(event, field, fieldValue, reason) => {
|
|
57
57
|
if (field === "value" && typeof fieldValue !== "string") {
|
|
58
58
|
switch (reason) {
|
|
59
|
+
// only a blur event will dispatch `numberInput:clamp`
|
|
59
60
|
case "numberInput:inputChange":
|
|
60
61
|
onChange?.(event, fieldValue);
|
|
61
62
|
break;
|
|
63
|
+
// only a blur event will dispatch `numberInput:clamp`
|
|
62
64
|
case "numberInput:clamp":
|
|
63
65
|
onChange?.(event, fieldValue);
|
|
64
66
|
break;
|
|
@@ -85,7 +85,7 @@ const propertyValueStyles = {
|
|
|
85
85
|
width: "100%",
|
|
86
86
|
display: "flex",
|
|
87
87
|
justifyContent: "flex-start",
|
|
88
|
-
alignItems: "
|
|
88
|
+
alignItems: "flex-start",
|
|
89
89
|
overflow: "hidden",
|
|
90
90
|
height: ownerState?.valueHeight ? ownerState?.valueHeight : "auto",
|
|
91
91
|
...ownerState?.isForm && {
|
|
@@ -441,8 +441,8 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
441
441
|
bounds: {
|
|
442
442
|
left: MARGIN_GRIDLAYOUT,
|
|
443
443
|
top: MARGIN_GRIDLAYOUT,
|
|
444
|
-
right: -
|
|
445
|
-
bottom: -
|
|
444
|
+
right: -MARGIN_GRIDLAYOUT,
|
|
445
|
+
bottom: -MARGIN_GRIDLAYOUT
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
}
|
|
@@ -65,6 +65,11 @@ const RHFAutocompleteAsyncReducer = (onChangeFilterParms) => (state, action) =>
|
|
|
65
65
|
...state,
|
|
66
66
|
isOpen: false
|
|
67
67
|
};
|
|
68
|
+
// case actionsType.SET_SELECTED_OPTIONS_TO_AUTOCOMPLETE:
|
|
69
|
+
// return {
|
|
70
|
+
// ...state,
|
|
71
|
+
// selectedOptions: action.payload,
|
|
72
|
+
// };
|
|
68
73
|
default:
|
|
69
74
|
return state;
|
|
70
75
|
}
|
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",
|
|
@@ -20,7 +20,6 @@ const MenuItem = (props) => {
|
|
|
20
20
|
checked = false,
|
|
21
21
|
checkable = false,
|
|
22
22
|
className,
|
|
23
|
-
dataTestId,
|
|
24
23
|
...other
|
|
25
24
|
} = props;
|
|
26
25
|
const { currentSize } = useComponentSize(size);
|
|
@@ -84,7 +83,7 @@ const MenuItem = (props) => {
|
|
|
84
83
|
disableRipple: true,
|
|
85
84
|
size: adjustedSize,
|
|
86
85
|
className: clsx(className, MENUITEM_CLASSES.root),
|
|
87
|
-
"data-testid":
|
|
86
|
+
"data-testid": "MenuItemRoot",
|
|
88
87
|
children: [
|
|
89
88
|
checkable && /* @__PURE__ */ jsx(
|
|
90
89
|
MenuItemIconCheckedStyled,
|
|
@@ -53,10 +53,6 @@ export interface MenuItemProps extends Omit<MUIMenuItemProps, 'size' | 'color'>
|
|
|
53
53
|
* indica si debe aparecer el icono de check
|
|
54
54
|
*/
|
|
55
55
|
checkable?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* ID para pruebas que se pasará como data-testid
|
|
58
|
-
*/
|
|
59
|
-
dataTestId?: string;
|
|
60
56
|
}
|
|
61
57
|
/**
|
|
62
58
|
* Estado del propietario del `MenuItem` utilizado para definir propiedades internas de estilo y comportamiento.
|
|
@@ -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,
|
|
@@ -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.
|
|
3
|
+
"version": "9.2.64",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "M4L Components",
|
|
6
6
|
"lint-staged": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"react": "18.3.1",
|
|
35
35
|
"react-chartjs-2": "^5.2.0",
|
|
36
36
|
"react-color": "^2.19.3",
|
|
37
|
-
"react-data-grid": "7.0.0-beta.
|
|
37
|
+
"react-data-grid": "7.0.0-beta.13",
|
|
38
38
|
"react-dnd": "^16.0.1",
|
|
39
39
|
"react-dnd-html5-backend": "^16.0.1",
|
|
40
40
|
"react-dom": "18.3.1",
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HeaderRendererProps } from 'react-data-grid';
|
|
2
2
|
import { ChipStatusFormatterProps } from '../../../../src/components/formatters/ChipStatusFormatter/types';
|
|
3
3
|
import { DeepKeyOf } from '../../../../src/utils/types';
|
|
4
4
|
import { ColumnAlign } from '../../../../src/components/DataGrid/types';
|
|
@@ -74,7 +74,7 @@ export interface Column<TRow, TSummaryRow> {
|
|
|
74
74
|
type: ColumnType;
|
|
75
75
|
formatter?: (props: any) => JSX.Element;
|
|
76
76
|
width?: number;
|
|
77
|
-
withinHeaderRenderer?: React.FunctionComponent<
|
|
77
|
+
withinHeaderRenderer?: React.FunctionComponent<HeaderRendererProps<TRow, TSummaryRow>>;
|
|
78
78
|
customFilter?: (row: TRow, value: string) => boolean;
|
|
79
79
|
customSort?: (a: TRow, b: TRow) => number;
|
|
80
80
|
}
|