@m4l/components 9.3.0-B23072025beta.2 → 9.3.0-BE25072025-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.
@@ -17,6 +17,7 @@ function getComparator(columns, sortColumn) {
17
17
  return column.customSort;
18
18
  }
19
19
  switch (typeOrder) {
20
+ //Si el tipo de dato de la columna es un numerico, retorna una función de ordenamiento numérica
20
21
  case "number":
21
22
  return (a, b) => {
22
23
  try {
@@ -25,6 +26,7 @@ function getComparator(columns, sortColumn) {
25
26
  return -1;
26
27
  }
27
28
  };
29
+ //Por defecto retorna una función de ordenamiento de string
28
30
  default:
29
31
  return (a, b) => {
30
32
  try {
@@ -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;
@@ -441,8 +441,8 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
441
441
  bounds: {
442
442
  left: MARGIN_GRIDLAYOUT,
443
443
  top: MARGIN_GRIDLAYOUT,
444
- right: -10,
445
- bottom: -10
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
  }
@@ -1,5 +1,5 @@
1
1
  import { g as getCommonActionsDictionary } from "../../../../CommonActions/dictionary.js";
2
- const DICTIONARY_KEY = "rhf_period";
2
+ const DICTIONARY_KEY = "period";
3
3
  const DICTIONARY = {
4
4
  LABEL_YEARS: `${DICTIONARY_KEY}.label_years`,
5
5
  LABEL_MONTHS: `${DICTIONARY_KEY}.label_months`,
@@ -104,7 +104,7 @@ const buttonStyles = {
104
104
  textOverflow: "ellipsis"
105
105
  },
106
106
  ...ownerState.variant === "contained" && {
107
- color: ownerState.paletteColor?.contrastText
107
+ color: ownerState.color === "default" ? ownerState.paletteColor?.semanticText : ownerState.paletteColor?.contrastText
108
108
  },
109
109
  ...(ownerState?.variant === "outlined" || ownerState?.variant === "text") && {
110
110
  color: ownerState?.paletteColor?.semanticText
@@ -128,7 +128,7 @@ const iconButtonStyles = {
128
128
  backgroundColor: paletteColor.enabled,
129
129
  // 🖼️ Color del icono
130
130
  "&&& .M4LIcon-icon": {
131
- backgroundColor: paletteColor.contrastText
131
+ backgroundColor: paletteColor.semanticText
132
132
  },
133
133
  // 🖱️ Estado Hover
134
134
  "&:hover": {
@@ -1,10 +1,10 @@
1
- import { TexFieldComplementaryClasses, TextFieldSlots } from './slots';
1
+ import { TextFieldComplementaryClasses, TextFieldSlots } from './slots';
2
2
  export declare const TEXT_FIELD_KEY_COMPONENT = "M4LTextField";
3
3
  export declare const COMBINATED_TEXTFIELD_ENUMS: {
4
- outlined: TexFieldComplementaryClasses.outlined;
5
- text: TexFieldComplementaryClasses.text;
6
- contained: TexFieldComplementaryClasses.contained;
7
- readOnly: TexFieldComplementaryClasses.readOnly;
4
+ outlined: TextFieldComplementaryClasses.outlined;
5
+ text: TextFieldComplementaryClasses.text;
6
+ contained: TextFieldComplementaryClasses.contained;
7
+ readOnly: TextFieldComplementaryClasses.readOnly;
8
8
  root: TextFieldSlots.root;
9
9
  skeleton: TextFieldSlots.skeleton;
10
10
  };
@@ -1,9 +1,9 @@
1
1
  import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
2
- import { a as TexFieldComplementaryClasses, T as TextFieldSlots } from "./slots/TextFieldEnum.js";
2
+ import { a as TextFieldComplementaryClasses, T as TextFieldSlots } from "./slots/TextFieldEnum.js";
3
3
  const TEXT_FIELD_KEY_COMPONENT = "M4LTextField";
4
4
  const COMBINATED_TEXTFIELD_ENUMS = {
5
5
  ...TextFieldSlots,
6
- ...TexFieldComplementaryClasses
6
+ ...TextFieldComplementaryClasses
7
7
  };
8
8
  const TEXT_FIELD_CLASSES = getComponentClasses(TEXT_FIELD_KEY_COMPONENT, COMBINATED_TEXTFIELD_ENUMS);
9
9
  export {
@@ -2,7 +2,7 @@ export declare enum TextFieldSlots {
2
2
  root = "root",
3
3
  skeleton = "skeleton"
4
4
  }
5
- export declare enum TexFieldComplementaryClasses {
5
+ export declare enum TextFieldComplementaryClasses {
6
6
  outlined = "outlined",
7
7
  text = "text",
8
8
  contained = "contained",
@@ -3,14 +3,14 @@ var TextFieldSlots = /* @__PURE__ */ ((TextFieldSlots2) => {
3
3
  TextFieldSlots2["skeleton"] = "skeleton";
4
4
  return TextFieldSlots2;
5
5
  })(TextFieldSlots || {});
6
- var TexFieldComplementaryClasses = /* @__PURE__ */ ((TexFieldComplementaryClasses2) => {
7
- TexFieldComplementaryClasses2["outlined"] = "outlined";
8
- TexFieldComplementaryClasses2["text"] = "text";
9
- TexFieldComplementaryClasses2["contained"] = "contained";
10
- TexFieldComplementaryClasses2["readOnly"] = "readOnly";
11
- return TexFieldComplementaryClasses2;
12
- })(TexFieldComplementaryClasses || {});
6
+ var TextFieldComplementaryClasses = /* @__PURE__ */ ((TextFieldComplementaryClasses2) => {
7
+ TextFieldComplementaryClasses2["outlined"] = "outlined";
8
+ TextFieldComplementaryClasses2["text"] = "text";
9
+ TextFieldComplementaryClasses2["contained"] = "contained";
10
+ TextFieldComplementaryClasses2["readOnly"] = "readOnly";
11
+ return TextFieldComplementaryClasses2;
12
+ })(TextFieldComplementaryClasses || {});
13
13
  export {
14
14
  TextFieldSlots as T,
15
- TexFieldComplementaryClasses as a
15
+ TextFieldComplementaryClasses as a
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.3.0-B23072025beta.2",
3
+ "version": "9.3.0-BE25072025-beta.1",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {