@m4l/components 9.3.10 → 9.3.12-BE010925-beta.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/components/Card/Card.js +49 -0
- package/components/Card/Card.styles.js +56 -0
- package/components/Card/constants.js +17 -0
- package/components/Card/helpers/getSizeSpacing.d.ts +3 -2
- package/components/Card/helpers/getSizeSpacing.js +10 -0
- package/components/Card/index.js +1 -0
- package/components/Card/slots/CardEnum.js +7 -0
- package/components/Card/slots/CardSlots.js +11 -0
- package/components/Card/types.d.ts +6 -4
- package/components/DataGrid/contexts/DataGridContext/index.js +3 -3
- package/components/DataGrid/types.d.ts +1 -2
- package/components/DynamicFilter/types.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Select/Select.js +1 -0
- package/components/mui_extended/Select/Select.styles.js +11 -3
- 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 +1 -0
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +2 -1
- package/index.js +36 -34
- package/package.json +3 -3
- package/storybook/components/DataGrid/subcomponents/DataGridRender.d.ts +0 -2
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { C as CardRootStyled } from "./slots/CardSlots.js";
|
|
3
|
+
import { C as CARD_CLASSES } from "./constants.js";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
const Card = (props) => {
|
|
6
|
+
const {
|
|
7
|
+
className,
|
|
8
|
+
variant = "text",
|
|
9
|
+
gap,
|
|
10
|
+
height = "auto",
|
|
11
|
+
children,
|
|
12
|
+
direction = "row",
|
|
13
|
+
justifyContent = "center",
|
|
14
|
+
alignItems = "center",
|
|
15
|
+
selected = false,
|
|
16
|
+
padding,
|
|
17
|
+
...others
|
|
18
|
+
} = props;
|
|
19
|
+
const ownerState = {
|
|
20
|
+
variant,
|
|
21
|
+
CardGap: gap,
|
|
22
|
+
height,
|
|
23
|
+
direction,
|
|
24
|
+
onClick: !!props.onClick,
|
|
25
|
+
justifyContent,
|
|
26
|
+
alignItems,
|
|
27
|
+
selected,
|
|
28
|
+
CardPadding: padding
|
|
29
|
+
};
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
CardRootStyled,
|
|
32
|
+
{
|
|
33
|
+
ownerState,
|
|
34
|
+
className: clsx(
|
|
35
|
+
CARD_CLASSES.root,
|
|
36
|
+
variant === "outlined" && CARD_CLASSES.outlined,
|
|
37
|
+
variant === "text" && CARD_CLASSES.text,
|
|
38
|
+
selected && CARD_CLASSES.selected,
|
|
39
|
+
className
|
|
40
|
+
),
|
|
41
|
+
role: "card",
|
|
42
|
+
...others,
|
|
43
|
+
children
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
Card as C
|
|
49
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { g as getSizeSpacing } from "./helpers/getSizeSpacing.js";
|
|
2
|
+
const cardStyles = {
|
|
3
|
+
/**
|
|
4
|
+
* Estilos para el contenedor principal del card.
|
|
5
|
+
*/
|
|
6
|
+
root: ({ theme, ownerState }) => {
|
|
7
|
+
const gap = getSizeSpacing(ownerState?.CardGap, theme);
|
|
8
|
+
const padding = getSizeSpacing(ownerState?.CardPadding, theme);
|
|
9
|
+
return {
|
|
10
|
+
display: "flex",
|
|
11
|
+
justifyContent: ownerState?.justifyContent ?? "center",
|
|
12
|
+
alignItems: ownerState?.alignItems ?? "center",
|
|
13
|
+
flexDirection: ownerState?.direction ?? "column",
|
|
14
|
+
gap,
|
|
15
|
+
padding,
|
|
16
|
+
transition: "all 0.2s ease-in-out",
|
|
17
|
+
width: "100%",
|
|
18
|
+
outline: "unset!important",
|
|
19
|
+
borderRadius: theme.vars.size.borderRadius.r2,
|
|
20
|
+
backgroundColor: theme.palette.background.paper,
|
|
21
|
+
height: ownerState?.height ?? "auto",
|
|
22
|
+
minHeight: ownerState?.height ?? "auto",
|
|
23
|
+
maxHeight: ownerState?.height ?? "auto",
|
|
24
|
+
overflow: "hidden",
|
|
25
|
+
...ownerState?.onClick && {
|
|
26
|
+
cursor: "pointer",
|
|
27
|
+
"&:hover": {
|
|
28
|
+
backgroundColor: theme.vars.palette.background.base
|
|
29
|
+
},
|
|
30
|
+
"&:active": {
|
|
31
|
+
backgroundColor: theme.vars.palette.default.activeOpacity
|
|
32
|
+
},
|
|
33
|
+
"&:focus-visible, &:focus-within": {
|
|
34
|
+
border: theme.vars.size.borderStroke.container,
|
|
35
|
+
borderColor: `${theme.vars.palette.primary.focusVisible}!important`,
|
|
36
|
+
outline: "unset!important"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
...ownerState?.variant === "outlined" && {
|
|
40
|
+
border: theme.vars.size.borderStroke.container,
|
|
41
|
+
borderColor: theme.vars.palette.border.disabled
|
|
42
|
+
},
|
|
43
|
+
...ownerState?.variant === "text" && {
|
|
44
|
+
border: theme.vars.size.borderStroke.container,
|
|
45
|
+
borderColor: "transparent"
|
|
46
|
+
},
|
|
47
|
+
...ownerState?.selected && {
|
|
48
|
+
border: theme.vars.size.borderStroke.container,
|
|
49
|
+
borderColor: theme.vars.palette.primary.enabled
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
cardStyles as c
|
|
56
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { C as CardSlots } from "./slots/CardEnum.js";
|
|
3
|
+
const CARD_KEY = "M4LCard";
|
|
4
|
+
const CARD_VARIANTS = {
|
|
5
|
+
text: "text",
|
|
6
|
+
outlined: "outlined"
|
|
7
|
+
};
|
|
8
|
+
const COMBINED_CLASSES = {
|
|
9
|
+
...CARD_VARIANTS,
|
|
10
|
+
...CardSlots,
|
|
11
|
+
selected: "selected"
|
|
12
|
+
};
|
|
13
|
+
const CARD_CLASSES = getComponentClasses(CARD_KEY, COMBINED_CLASSES);
|
|
14
|
+
export {
|
|
15
|
+
CARD_CLASSES as C,
|
|
16
|
+
CARD_KEY as a
|
|
17
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { CardProps } from '../types';
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
2
3
|
/**
|
|
3
4
|
* Obtiene el tamaño del gap de la tarjeta.
|
|
4
|
-
* @param
|
|
5
|
+
* @param spacing - El gap de la tarjeta.
|
|
5
6
|
* @returns El tamaño del gap de la tarjeta.
|
|
6
7
|
*/
|
|
7
|
-
export declare const getSizeSpacing: (
|
|
8
|
+
export declare const getSizeSpacing: (spacing: CardProps["gap"] | number | undefined | null, theme: Theme) => string | number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { a as CARD_KEY } from "../constants.js";
|
|
3
|
+
import { C as CardSlots } from "./CardEnum.js";
|
|
4
|
+
import { c as cardStyles } from "../Card.styles.js";
|
|
5
|
+
const CardRootStyled = styled("div", {
|
|
6
|
+
name: CARD_KEY,
|
|
7
|
+
slot: CardSlots.root
|
|
8
|
+
})(cardStyles?.root);
|
|
9
|
+
export {
|
|
10
|
+
CardRootStyled as C
|
|
11
|
+
};
|
|
@@ -2,6 +2,8 @@ import { Theme } from '@mui/material';
|
|
|
2
2
|
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
3
3
|
import { CARD_KEY } from './constants';
|
|
4
4
|
import { CardSlots } from './slots/CardEnum';
|
|
5
|
+
import { Density } from '@m4l/styles';
|
|
6
|
+
export type SpacingsCard = number | keyof Density;
|
|
5
7
|
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
8
|
/**
|
|
7
9
|
* Contenido de la tarjeta.
|
|
@@ -14,11 +16,11 @@ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
14
16
|
/**
|
|
15
17
|
* Espacio entre los elementos de la tarjeta.
|
|
16
18
|
*/
|
|
17
|
-
gap?:
|
|
19
|
+
gap?: SpacingsCard;
|
|
18
20
|
/**
|
|
19
21
|
* Espacio entre los elementos de la tarjeta.
|
|
20
22
|
*/
|
|
21
|
-
padding?:
|
|
23
|
+
padding?: SpacingsCard;
|
|
22
24
|
/**
|
|
23
25
|
* Dirección de la tarjeta.
|
|
24
26
|
*/
|
|
@@ -47,9 +49,9 @@ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
47
49
|
export type CardSlotsType = keyof typeof CardSlots;
|
|
48
50
|
export type CardOwnerState = {
|
|
49
51
|
variant: CardProps['variant'];
|
|
50
|
-
|
|
52
|
+
CardGap: CardProps['gap'];
|
|
51
53
|
height: CardProps['height'];
|
|
52
|
-
|
|
54
|
+
CardPadding: CardProps['padding'];
|
|
53
55
|
direction: CardProps['direction'];
|
|
54
56
|
onClick: boolean;
|
|
55
57
|
justifyContent: CardProps['justifyContent'];
|
|
@@ -166,7 +166,7 @@ function DataGridProvider(props) {
|
|
|
166
166
|
});
|
|
167
167
|
useEffect(() => {
|
|
168
168
|
const keys = new Set(columns.map((c) => c.key));
|
|
169
|
-
if (sortSettings?.sortsColumns
|
|
169
|
+
if (sortSettings?.sortsColumns) {
|
|
170
170
|
for (const sort of sortSettings.sortsColumns) {
|
|
171
171
|
if (!keys.has(sort)) {
|
|
172
172
|
throw new Error(
|
|
@@ -175,9 +175,9 @@ function DataGridProvider(props) {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
if (filterSettings?.filterColumns
|
|
178
|
+
if (filterSettings?.filterColumns) {
|
|
179
179
|
for (const filterField of filterSettings.filterColumns) {
|
|
180
|
-
if (!keys.has(filterField.name)) {
|
|
180
|
+
if (!filterField.skipColumnValidation && !keys.has(filterField.name)) {
|
|
181
181
|
throw new Error(
|
|
182
182
|
`DataGridProvider: Fields incluye "${filterField.name}", pero no existe ninguna columna con key="${filterField.name}".`
|
|
183
183
|
);
|
|
@@ -88,7 +88,6 @@ export interface SortSettings {
|
|
|
88
88
|
sortsColumns: string[];
|
|
89
89
|
sortsApplied: SortApplied[];
|
|
90
90
|
onChange: (event: SortChangeEvent) => void;
|
|
91
|
-
skipColumnValidation?: boolean;
|
|
92
91
|
}
|
|
93
92
|
/**---------------------------------------------------------------- */
|
|
94
93
|
export type FilterChangeAdd = {
|
|
@@ -102,6 +101,7 @@ export type FilterChangeEvent = FilterChangeAdd | FilterChangeOpenPopover;
|
|
|
102
101
|
interface FilterColumn {
|
|
103
102
|
name: string;
|
|
104
103
|
multiple: boolean;
|
|
104
|
+
skipColumnValidation?: boolean;
|
|
105
105
|
}
|
|
106
106
|
export type FilterApplied = {
|
|
107
107
|
columnKey: string;
|
|
@@ -111,7 +111,6 @@ export interface FilterSettings {
|
|
|
111
111
|
filterColumns: FilterColumn[];
|
|
112
112
|
filtersApplied: FilterApplied[];
|
|
113
113
|
onChange: (event: FilterChangeEvent) => void;
|
|
114
|
-
skipColumnValidation?: boolean;
|
|
115
114
|
}
|
|
116
115
|
/**--------------------Termina tipado de filtros-------------------------------------------- */
|
|
117
116
|
export interface GridProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends Omit<NativeDataGridProps<TRow, TSummaryRow>, 'rowKeyGetter' | 'rows' | 'columns' | 'onRowsChange' | 'selectedRows' | 'onSelectedRowsChange' | 'renderers'> {
|
|
@@ -46,6 +46,7 @@ export interface FieldBase<T extends FieldType = FieldType, TOption = any> {
|
|
|
46
46
|
defaultOperandsArray?: Maybe<FieldTypeOperandsArray<T>>;
|
|
47
47
|
selectOptions?: SelectOptions;
|
|
48
48
|
selectAsyncOptions?: SelectAsyncOptions<TOption>;
|
|
49
|
+
skipColumnValidation?: boolean;
|
|
49
50
|
}
|
|
50
51
|
export interface FieldWithSelectAsync<T extends 'selectAsync', TOption = any> extends FieldBase<T, TOption> {
|
|
51
52
|
selectAsyncOptions: SelectAsyncOptions<TOption>;
|
package/components/index.d.ts
CHANGED
|
@@ -35,7 +35,12 @@ const selectStyles = {
|
|
|
35
35
|
},
|
|
36
36
|
"& .MuiSelect-select": {
|
|
37
37
|
padding: `${theme.vars.size.baseSpacings.sp1}!important`,
|
|
38
|
-
minHeight: "unset"
|
|
38
|
+
minHeight: "unset",
|
|
39
|
+
maxHeight: "80px",
|
|
40
|
+
overflow: "auto",
|
|
41
|
+
boxSizing: "border-box",
|
|
42
|
+
display: "flex",
|
|
43
|
+
flexDirection: "column"
|
|
39
44
|
},
|
|
40
45
|
// Estilos para la variante text
|
|
41
46
|
[`&.${SELECT_CLASSES.text}`]: {
|
|
@@ -69,7 +74,8 @@ const selectStyles = {
|
|
|
69
74
|
(height) => {
|
|
70
75
|
return {
|
|
71
76
|
minHeight: height,
|
|
72
|
-
|
|
77
|
+
height: "fit-content",
|
|
78
|
+
maxHeight: "80px"
|
|
73
79
|
};
|
|
74
80
|
}
|
|
75
81
|
)
|
|
@@ -88,7 +94,9 @@ const selectStyles = {
|
|
|
88
94
|
display: "flex",
|
|
89
95
|
alignItems: "center",
|
|
90
96
|
gap: theme.vars.size.baseSpacings.sp1,
|
|
91
|
-
flexWrap: "wrap"
|
|
97
|
+
flexWrap: "wrap",
|
|
98
|
+
overflow: "auto",
|
|
99
|
+
flexShrink: 1
|
|
92
100
|
}),
|
|
93
101
|
arrowDown: {},
|
|
94
102
|
renderValueTypography: () => ({
|
|
@@ -18,6 +18,7 @@ function Typography(props) {
|
|
|
18
18
|
children,
|
|
19
19
|
disabled,
|
|
20
20
|
ellipsis = false,
|
|
21
|
+
fontFamily = "inter",
|
|
21
22
|
...other
|
|
22
23
|
} = props;
|
|
23
24
|
const isSkeleton = useModuleSkeleton();
|
|
@@ -30,7 +31,8 @@ function Typography(props) {
|
|
|
30
31
|
skeletonRows,
|
|
31
32
|
variant,
|
|
32
33
|
skeleton: isSkeleton,
|
|
33
|
-
ellipsis
|
|
34
|
+
ellipsis,
|
|
35
|
+
fontFamily
|
|
34
36
|
};
|
|
35
37
|
return /* @__PURE__ */ jsx(
|
|
36
38
|
StyledMUITypography,
|
|
@@ -47,6 +47,10 @@ export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'var
|
|
|
47
47
|
* Si se activa, el texto se corta y se muestra un elipsis.
|
|
48
48
|
*/
|
|
49
49
|
ellipsis?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Familia de fuentes a usar para el componente.
|
|
52
|
+
*/
|
|
53
|
+
fontFamily?: 'inter' | 'jura';
|
|
50
54
|
}
|
|
51
55
|
/**
|
|
52
56
|
* Define valores de estado necesarios para estilar el componente.
|
|
@@ -59,6 +63,7 @@ export interface TypographyOwnerState {
|
|
|
59
63
|
skeletonRows: TypographyProps['skeletonRows'];
|
|
60
64
|
skeleton: boolean;
|
|
61
65
|
ellipsis: TypographyProps['ellipsis'];
|
|
66
|
+
fontFamily: TypographyProps['fontFamily'];
|
|
62
67
|
}
|
|
63
68
|
/**
|
|
64
69
|
* Agrupa la lista de slots del componente.
|
|
@@ -8,6 +8,7 @@ const typographyStyles = {
|
|
|
8
8
|
root: ({ ownerState, theme }) => ({
|
|
9
9
|
margin: 0,
|
|
10
10
|
cursor: "default",
|
|
11
|
+
fontFamily: ownerState?.fontFamily === "jura" ? "Jura" : "Inter",
|
|
11
12
|
"&.M4lclassCssSpecificity": {
|
|
12
13
|
// Estilos generales 🌐
|
|
13
14
|
// skeleton spacing when multiple rows 🦴
|
|
@@ -389,7 +389,8 @@ const useDynamicFilterAndSort = (props) => {
|
|
|
389
389
|
return {
|
|
390
390
|
filterColumns: fields.map((filter) => ({
|
|
391
391
|
name: filter.name,
|
|
392
|
-
multiple: filter.multiple || false
|
|
392
|
+
multiple: filter.multiple || false,
|
|
393
|
+
skipColumnValidation: filter.skipColumnValidation || false
|
|
393
394
|
})),
|
|
394
395
|
filtersApplied: getCurrentFilters().map((filter) => ({
|
|
395
396
|
columnKey: filter.field.name,
|
package/index.js
CHANGED
|
@@ -18,7 +18,8 @@ import { a as a2, A as A6 } from "./components/areas/contexts/AreasContext/index
|
|
|
18
18
|
import { u } from "./components/areas/hooks/useAreas/index.js";
|
|
19
19
|
import { A as A7, a as a3, L as L2, b as b2, g as g3 } from "./components/areas/dictionary.js";
|
|
20
20
|
import { B } from "./components/BaseModule/BaseModule.js";
|
|
21
|
-
import { C } from "./components/
|
|
21
|
+
import { C } from "./components/Card/Card.js";
|
|
22
|
+
import { C as C2 } from "./components/Chip/Chip.js";
|
|
22
23
|
import { A as A8 } from "./components/commercial/AppBarCommercial/index.js";
|
|
23
24
|
import { H } from "./components/commercial/HamburgerMenu/HamburgerMenu.js";
|
|
24
25
|
import { T } from "./components/commercial/TopBar/TopBar.js";
|
|
@@ -29,32 +30,32 @@ import { A as A11 } from "./components/CommonActions/components/ActionIntro/Acti
|
|
|
29
30
|
import { A as A12 } from "./components/CommonActions/components/ActionFormCancel/ActionFormCancel.js";
|
|
30
31
|
import { A as A13 } from "./components/CommonActions/components/ActionFormIntro/ActionFormIntro.js";
|
|
31
32
|
import { D, d, g as g4 } from "./components/CommonActions/dictionary.js";
|
|
32
|
-
import { C as
|
|
33
|
+
import { C as C3 } from "./components/ContainerFlow/ContainerFlow.js";
|
|
33
34
|
import { D as D2 } from "./components/DataGrid/DataGrid.js";
|
|
34
35
|
import { g as g5 } from "./components/DataGrid/dictionary.js";
|
|
35
36
|
import { N, T as T2 } from "./components/DataGrid/subcomponents/editors/TextEditor/index.js";
|
|
36
37
|
import { g as g6 } from "./components/DataGrid/utils/getDataGridRowsFromSet.js";
|
|
37
38
|
import { b as b3, a as a4, e } from "./components/DataGrid/constants.js";
|
|
38
|
-
import { C as
|
|
39
|
+
import { C as C4 } from "./components/DataGrid/formatters/ColumnBooleanFormatter/formatter.js";
|
|
39
40
|
import { u as u2 } from "./components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.js";
|
|
40
|
-
import { C as
|
|
41
|
+
import { C as C5 } from "./components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.js";
|
|
41
42
|
import { u as u3 } from "./components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.js";
|
|
42
|
-
import { C as
|
|
43
|
+
import { C as C6 } from "./components/DataGrid/formatters/ColumnDateFormatter/formatter.js";
|
|
43
44
|
import { u as u4 } from "./components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.js";
|
|
44
|
-
import { C as
|
|
45
|
-
import { C as
|
|
45
|
+
import { C as C7 } from "./components/DataGrid/formatters/ColumnIconFormatter/formatter.js";
|
|
46
|
+
import { C as C8 } from "./components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
46
47
|
import { u as u5 } from "./components/DataGrid/formatters/ColumnInteractiveCheckFormatter/useColumnInteractiveCheck.js";
|
|
47
|
-
import { C as
|
|
48
|
+
import { C as C9 } from "./components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js";
|
|
48
49
|
import { u as u6 } from "./components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js";
|
|
49
|
-
import { C as
|
|
50
|
+
import { C as C10 } from "./components/DataGrid/formatters/ColumnPointsFormatter/formatter.js";
|
|
50
51
|
import { u as u7 } from "./components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.js";
|
|
51
|
-
import { C as
|
|
52
|
+
import { C as C11 } from "./components/DataGrid/formatters/ColumnPriceFormatter/formatter.js";
|
|
52
53
|
import { u as u8 } from "./components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.js";
|
|
53
|
-
import { C as
|
|
54
|
+
import { C as C12 } from "./components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js";
|
|
54
55
|
import { u as u9 } from "./components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.js";
|
|
55
|
-
import { C as
|
|
56
|
+
import { C as C13 } from "./components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.js";
|
|
56
57
|
import { u as u10 } from "./components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js";
|
|
57
|
-
import { C as
|
|
58
|
+
import { C as C14 } from "./components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js";
|
|
58
59
|
import { u as u11 } from "./components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js";
|
|
59
60
|
import { D as D3 } from "./components/DragResizeWindowRND/DragResizeWindowRND.js";
|
|
60
61
|
import { d as d2 } from "./components/DragResizeWindowRND/classes/index.js";
|
|
@@ -77,7 +78,7 @@ import { R as R3 } from "./components/extended/React-Json-Viewer/ReactJsonViewer
|
|
|
77
78
|
import { A as A14 } from "./components/mui_extended/Avatar/Avatar.js";
|
|
78
79
|
import { B as B2 } from "./components/mui_extended/BoxIcon/index.js";
|
|
79
80
|
import { B as B3 } from "./components/mui_extended/Breadcrumbs/index.js";
|
|
80
|
-
import { C as
|
|
81
|
+
import { C as C15 } from "./components/mui_extended/CircularProgress/CircularProgress.js";
|
|
81
82
|
import { B as B4 } from "./components/mui_extended/Badge/Badge.js";
|
|
82
83
|
import { L as L3 } from "./components/mui_extended/LinearProgress/index.js";
|
|
83
84
|
import { L as L4 } from "./components/mui_extended/LinkWithRoute/index.js";
|
|
@@ -87,7 +88,7 @@ import { A as A15 } from "./components/mui_extended/Accordion/Accordion.js";
|
|
|
87
88
|
import { T as T3 } from "./components/mui_extended/Tooltip/Tooltip.js";
|
|
88
89
|
import { I as I2 } from "./components/mui_extended/IconButton/IconButton.js";
|
|
89
90
|
import { B as B5 } from "./components/mui_extended/Button/Button.js";
|
|
90
|
-
import { C as
|
|
91
|
+
import { C as C16 } from "./components/mui_extended/CheckBox/CheckBox.js";
|
|
91
92
|
import { I as I3 } from "./components/mui_extended/ImageButton/ImageButton.js";
|
|
92
93
|
import { P as P2 } from "./components/mui_extended/Popover/Popover.js";
|
|
93
94
|
import { S as S4 } from "./components/mui_extended/Select/Select.js";
|
|
@@ -115,10 +116,10 @@ import { B as B6 } from "./components/formatters/BooleanFormatter/BooleanFormatt
|
|
|
115
116
|
import { D as D8, g as g12 } from "./components/formatters/DateFormatter/DateFormatter.js";
|
|
116
117
|
import { U, g as g13 } from "./components/formatters/UncertaintyFormatter/UncertaintyFormatter.js";
|
|
117
118
|
import { P as P3, g as g14 } from "./components/formatters/PointsFormatter/PointsFormatter.js";
|
|
118
|
-
import { C as
|
|
119
|
+
import { C as C17, g as g15 } from "./components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
|
|
119
120
|
import { P as P4, u as u12 } from "./components/formatters/PeriodFormatter/PeriodFormatter.js";
|
|
120
121
|
import { P as P5, g as g16 } from "./components/formatters/PriceFormatter/PriceFormatter.js";
|
|
121
|
-
import { C as
|
|
122
|
+
import { C as C18 } from "./components/formatters/ChipStatusFormatter/ChipStatusFormatter.js";
|
|
122
123
|
import { g as g17 } from "./components/formatters/DistanceToNowFormatter/dictionary.js";
|
|
123
124
|
import { D as D9 } from "./components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js";
|
|
124
125
|
import { g as g18 } from "./components/formatters/dictionary.js";
|
|
@@ -251,23 +252,24 @@ export {
|
|
|
251
252
|
B2 as BoxIcon,
|
|
252
253
|
B3 as Breadcrumbs,
|
|
253
254
|
B5 as Button,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
C5 as
|
|
262
|
-
C6 as
|
|
263
|
-
C7 as
|
|
264
|
-
C8 as
|
|
265
|
-
C9 as
|
|
266
|
-
C10 as
|
|
267
|
-
C11 as
|
|
268
|
-
C12 as
|
|
269
|
-
|
|
270
|
-
|
|
255
|
+
C as Card,
|
|
256
|
+
C16 as CheckBox,
|
|
257
|
+
C2 as Chip,
|
|
258
|
+
C18 as ChipStatusFormatter,
|
|
259
|
+
C15 as CircularProgress,
|
|
260
|
+
C4 as ColumnBooleanFormatter,
|
|
261
|
+
C14 as ColumnChipStatusFormatter,
|
|
262
|
+
C5 as ColumnConcatenatedValueFormatter,
|
|
263
|
+
C6 as ColumnDateFormatter,
|
|
264
|
+
C7 as ColumnIconFormatter,
|
|
265
|
+
C8 as ColumnInteractiveCheckFormatter,
|
|
266
|
+
C9 as ColumnNestedValueFormatter,
|
|
267
|
+
C10 as ColumnPointsFormatter,
|
|
268
|
+
C11 as ColumnPriceFormatter,
|
|
269
|
+
C12 as ColumnSetCheckFormatter,
|
|
270
|
+
C13 as ColumnUncertaintyFormatter,
|
|
271
|
+
C17 as ConcatenatedFormatter,
|
|
272
|
+
C3 as ContainerFlow,
|
|
271
273
|
b3 as DATAGRID_ROW_HEADER_HEIGHTS,
|
|
272
274
|
a4 as DATAGRID_ROW_HEIGHTS,
|
|
273
275
|
e as DATAGRID_SEMANTIC_WIDTHS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.12-BE010925-beta.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": "
|
|
15
|
-
"@m4l/styles": "
|
|
14
|
+
"@m4l/graphics": "7.1.4-BE010925-beta.1",
|
|
15
|
+
"@m4l/styles": "7.1.33-BE010925-beta.1",
|
|
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",
|
|
@@ -10,8 +10,6 @@ interface DataGridRenderProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> {
|
|
|
10
10
|
visibleRefreshFilterSort?: boolean;
|
|
11
11
|
withExternalSortSettings?: boolean;
|
|
12
12
|
withExternalFilterSettings?: boolean;
|
|
13
|
-
skipSortValidation?: boolean;
|
|
14
|
-
skipFilterValidation?: boolean;
|
|
15
13
|
}
|
|
16
14
|
/**
|
|
17
15
|
* Componente que renderiza el DataGrid para el storybook
|