@m4l/components 9.2.65 → 9.3.0-B23072025beta.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.
Files changed (74) hide show
  1. package/components/DataGrid/Datagrid.styles.js +112 -9
  2. package/components/DataGrid/formatters/ColumnBooleanFormatter/formatter.d.ts +2 -1
  3. package/components/DataGrid/formatters/ColumnBooleanFormatter/formatter.js +2 -3
  4. package/components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.d.ts +1 -1
  5. package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.d.ts +2 -1
  6. package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js +5 -4
  7. package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.d.ts +1 -1
  8. package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.d.ts +2 -1
  9. package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/formatter.js +11 -4
  10. package/components/DataGrid/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.d.ts +1 -1
  11. package/components/DataGrid/formatters/ColumnDateFormatter/formatter.d.ts +2 -1
  12. package/components/DataGrid/formatters/ColumnDateFormatter/formatter.js +13 -4
  13. package/components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.d.ts +1 -1
  14. package/components/DataGrid/formatters/ColumnIconFormatter/formatter.d.ts +2 -1
  15. package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +2 -2
  16. package/components/DataGrid/formatters/ColumnIconFormatter/useColumnIcon.d.ts +1 -1
  17. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/types.d.ts +2 -2
  18. package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.d.ts +2 -1
  19. package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js +4 -3
  20. package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +1 -1
  21. package/components/DataGrid/formatters/ColumnPointsFormatter/formatter.d.ts +2 -1
  22. package/components/DataGrid/formatters/ColumnPointsFormatter/formatter.js +13 -5
  23. package/components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.d.ts +1 -1
  24. package/components/DataGrid/formatters/ColumnPriceFormatter/formatter.d.ts +2 -1
  25. package/components/DataGrid/formatters/ColumnPriceFormatter/formatter.js +11 -4
  26. package/components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.d.ts +1 -1
  27. package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.d.ts +2 -2
  28. package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js +1 -1
  29. package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.d.ts +1 -1
  30. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.d.ts +2 -1
  31. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.js +15 -6
  32. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.d.ts +1 -1
  33. package/components/DataGrid/index.d.ts +1 -1
  34. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +4 -5
  35. package/components/DataGrid/subcomponents/Table/hooks/getDragHeaderRenderer.d.ts +2 -2
  36. package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.d.ts +2 -2
  37. package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.js +15 -6
  38. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +13 -7
  39. package/components/DataGrid/subcomponents/Table/index.d.ts +3 -1
  40. package/components/DataGrid/subcomponents/Table/index.js +38 -9
  41. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
  42. package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.d.ts +2 -2
  43. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.d.ts +2 -2
  44. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +10 -8
  45. package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
  46. package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +7 -7
  47. package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +15 -5
  48. package/components/DataGrid/types.d.ts +9 -4
  49. package/components/NumberInput/NumberInput.styles.js +1 -0
  50. package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
  51. package/components/PropertyValue/PropertyValue.js +1 -1
  52. package/components/areas/contexts/AreasContext/store.js +2 -2
  53. package/components/formatters/BooleanFormatter/BooleanFormatter.styles.js +1 -1
  54. package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
  55. package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +2 -1
  56. package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +2 -1
  57. package/components/hook-form/RHFNumberInput/RHFNumberInput.styles.js +2 -1
  58. package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +2 -5
  59. package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.d.ts +1 -1
  60. package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js +1 -1
  61. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  62. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js +6 -6
  63. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +13 -11
  64. package/components/hook-form/RHFPeriod/subcomponents/Period/types.d.ts +2 -2
  65. package/components/hook-form/RHFSelect/RHFSelect.styles.js +2 -1
  66. package/components/mui_extended/Button/ButtonStyles.js +1 -0
  67. package/components/mui_extended/MenuItem/MenuItem.js +2 -1
  68. package/components/mui_extended/MenuItem/types.d.ts +4 -0
  69. package/index.js +8 -8
  70. package/package.json +2 -2
  71. package/storybook/components/DataGrid/DataGrid.stories.d.ts +4 -0
  72. package/storybook/components/DataGrid/helpers/types.d.ts +3 -2
  73. package/components/hook-form/RHFDateTime/styles.d.ts +0 -1
  74. package/helpers/getFieldValueWithRow.js +0 -10
@@ -1,7 +1,7 @@
1
1
  var RHFPeriodSlots = /* @__PURE__ */ ((RHFPeriodSlots2) => {
2
2
  RHFPeriodSlots2["root"] = "root";
3
3
  RHFPeriodSlots2["periodRoot"] = "periodRoot";
4
- RHFPeriodSlots2["textField"] = "textField";
4
+ RHFPeriodSlots2["numberInput"] = "numberInput";
5
5
  RHFPeriodSlots2["select"] = "select";
6
6
  return RHFPeriodSlots2;
7
7
  })(RHFPeriodSlots || {});
@@ -1,4 +1,4 @@
1
1
  export declare const RHFPeriodRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
2
2
  export declare const PeriodRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
3
- export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "dataTestId" | "autoComplete" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "focused" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "minRows" | "SelectProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
3
+ export declare const NumberInputStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../NumberInput/types').NumberInputProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../../NumberInput/types').NumberInputProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
4
4
  export declare const SelectStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/Select').SelectProps<string | number, boolean | undefined>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "onClose" | "title" | "name" | "error" | "input" | "options" | "rows" | "id" | "type" | "disabled" | "components" | "hidden" | "content" | "style" | "open" | "multiple" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "slots" | "slotProps" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "onOpen" | "dataTestId" | "autoComplete" | "placeholder" | "readOnly" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "renderSuffix" | "startAdornment" | "disableUnderline" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "native" | "renderValue" | "SelectDisplayProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
@@ -2,7 +2,7 @@ import { styled } from "@mui/material/styles";
2
2
  import { R as RHF_PERIOD_KEY_COMPONENT } from "../constants.js";
3
3
  import { r as rhfPeriodStyles } from "../RHFPeriod.styles.js";
4
4
  import { R as RHFPeriodSlots } from "./RHFPeriodEnum.js";
5
- import { T as TextField } from "../../../mui_extended/TextField/TextField.js";
5
+ import { N as NumberInput } from "../../../NumberInput/NumberInput.js";
6
6
  import { S as Select } from "../../../mui_extended/Select/Select.js";
7
7
  const RHFPeriodRootStyled = styled("div", {
8
8
  name: RHF_PERIOD_KEY_COMPONENT,
@@ -12,17 +12,17 @@ const PeriodRootStyled = styled("div", {
12
12
  name: RHF_PERIOD_KEY_COMPONENT,
13
13
  slot: RHFPeriodSlots.periodRoot
14
14
  })(rhfPeriodStyles?.periodRoot);
15
- const TextFieldStyled = styled(TextField, {
15
+ const NumberInputStyled = styled(NumberInput, {
16
16
  name: RHF_PERIOD_KEY_COMPONENT,
17
- slot: RHFPeriodSlots.textField
18
- })(rhfPeriodStyles?.textField);
17
+ slot: RHFPeriodSlots.numberInput
18
+ })(rhfPeriodStyles?.numberInput);
19
19
  const SelectStyled = styled(Select, {
20
20
  name: RHF_PERIOD_KEY_COMPONENT,
21
21
  slot: RHFPeriodSlots.select
22
22
  })(rhfPeriodStyles?.select);
23
23
  export {
24
+ NumberInputStyled as N,
24
25
  PeriodRootStyled as P,
25
26
  RHFPeriodRootStyled as R,
26
- SelectStyled as S,
27
- TextFieldStyled as T
27
+ SelectStyled as S
28
28
  };
@@ -4,7 +4,7 @@ import { E as ETimePeriods } from "./types.js";
4
4
  import { D as DICTIONARY } from "./dictionary.js";
5
5
  import { useMemo } from "react";
6
6
  import { u as useComponentSize } from "../../../../../hooks/useComponentSize/useComponentSize.js";
7
- import { P as PeriodRootStyled, S as SelectStyled, T as TextFieldStyled } from "../../slots/RHFPeriodSlots.js";
7
+ import { P as PeriodRootStyled, S as SelectStyled, N as NumberInputStyled } from "../../slots/RHFPeriodSlots.js";
8
8
  import { I as Icon } from "../../../../Icon/Icon.js";
9
9
  const Period = (props) => {
10
10
  const {
@@ -27,7 +27,7 @@ const Period = (props) => {
27
27
  );
28
28
  const getSingleValue = (period) => {
29
29
  if (!period) {
30
- return "";
30
+ return null;
31
31
  }
32
32
  if (period.singleValue !== void 0) {
33
33
  return period.singleValue;
@@ -41,7 +41,7 @@ const Period = (props) => {
41
41
  if (period.days && period.days > 0) {
42
42
  return period.days;
43
43
  }
44
- return "";
44
+ return null;
45
45
  };
46
46
  const getSelPeriodTime = (period) => {
47
47
  if (!period) {
@@ -64,21 +64,22 @@ const Period = (props) => {
64
64
  const singleValue = getSingleValue(value);
65
65
  const selPeriodTime = getSelPeriodTime(value);
66
66
  const onTotalChange = (newPeriodTime, newValue) => {
67
+ const newPeriodTimeInt = typeof newPeriodTime === "string" ? parseInt(newPeriodTime) : newPeriodTime;
67
68
  const newPeriod = {
68
- selPeriodTime: newPeriodTime,
69
+ selPeriodTime: newPeriodTimeInt,
69
70
  singleValue: newValue
70
71
  };
71
- if (newValue !== "" && newValue > 0) {
72
+ if (newValue && newValue > 0) {
72
73
  newPeriod.years = 0;
73
74
  newPeriod.months = 0;
74
75
  newPeriod.days = 0;
75
- if (newPeriodTime === ETimePeriods.YEARS) {
76
+ if (newPeriodTimeInt === ETimePeriods.YEARS) {
76
77
  newPeriod.years = newValue;
77
78
  }
78
- if (newPeriodTime === ETimePeriods.MONTHS) {
79
+ if (newPeriodTimeInt === ETimePeriods.MONTHS) {
79
80
  newPeriod.months = newValue;
80
81
  }
81
- if (newPeriodTime === ETimePeriods.DAYS) {
82
+ if (newPeriodTimeInt === ETimePeriods.DAYS) {
82
83
  newPeriod.days = newValue;
83
84
  }
84
85
  }
@@ -117,13 +118,14 @@ const Period = (props) => {
117
118
  }
118
119
  ),
119
120
  /* @__PURE__ */ jsx(
120
- TextFieldStyled,
121
+ NumberInputStyled,
121
122
  {
122
123
  type: "number",
123
124
  variant: "outlined",
124
125
  value: singleValue,
125
- onChange: (e) => {
126
- onTotalChange(selPeriodTime, e.target.value === "" ? "" : parseInt(e.target.value));
126
+ withDecimal: true,
127
+ onChange: (_event, newValue) => {
128
+ onTotalChange(selPeriodTime, newValue);
127
129
  }
128
130
  }
129
131
  )
@@ -9,8 +9,8 @@ export type PeriodTime = {
9
9
  label: string;
10
10
  };
11
11
  export type PeriodType = {
12
- selPeriodTime: '' | ETimePeriods | undefined;
13
- singleValue: number | '';
12
+ selPeriodTime: null | ETimePeriods | undefined;
13
+ singleValue: number | null;
14
14
  years?: number;
15
15
  months?: number;
16
16
  days?: number;
@@ -5,7 +5,8 @@ const rhfSelectStyles = {
5
5
  root: ({ theme }) => ({
6
6
  display: "flex",
7
7
  flexDirection: "column",
8
- gap: theme.vars.size.baseSpacings.sp1
8
+ gap: theme.vars.size.baseSpacings.sp1,
9
+ width: "100%"
9
10
  }),
10
11
  /**
11
12
  * Estilos del Label.
@@ -13,6 +13,7 @@ const buttonStyles = {
13
13
  borderRadius: theme.vars.size.borderRadius.r1,
14
14
  maxWidth: "200px",
15
15
  minWidth: "0",
16
+ flexShrink: 0,
16
17
  "&:hover": {
17
18
  backgroundColor: ownerState?.paletteColor?.hoverOpacity,
18
19
  borderColor: ownerState?.paletteColor?.hover
@@ -20,6 +20,7 @@ const MenuItem = (props) => {
20
20
  checked = false,
21
21
  checkable = false,
22
22
  className,
23
+ dataTestId,
23
24
  ...other
24
25
  } = props;
25
26
  const { currentSize } = useComponentSize(size);
@@ -83,7 +84,7 @@ const MenuItem = (props) => {
83
84
  disableRipple: true,
84
85
  size: adjustedSize,
85
86
  className: clsx(className, MENUITEM_CLASSES.root),
86
- "data-testid": "MenuItemRoot",
87
+ "data-testid": dataTestId || "MenuItemRoot",
87
88
  children: [
88
89
  checkable && /* @__PURE__ */ jsx(
89
90
  MenuItemIconCheckedStyled,
@@ -53,6 +53,10 @@ 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;
56
60
  }
57
61
  /**
58
62
  * Estado del propietario del `MenuItem` utilizado para definir propiedades internas de estilo y comportamiento.
package/index.js CHANGED
@@ -145,7 +145,7 @@ import { r } from "./components/hook-form/RHFPeriod/RHFPeriod.styles.js";
145
145
  import { R as R16 } from "./components/hook-form/RHFPeriod/RHFPeriod.js";
146
146
  import { R as R17 } from "./components/hook-form/RHFPeriod/constants.js";
147
147
  import { R as R18 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js";
148
- import { P as P6, R as R19, S as S6, T as T17 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
148
+ import { N as N3, P as P6, R as R19, S as S6 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
149
149
  import { R as R20 } from "./components/hook-form/RHFNumberInput/RHFNumberInput.js";
150
150
  import { R as R21 } from "./components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js";
151
151
  import { I as I4 } from "./components/Icon/Icon.js";
@@ -161,7 +161,7 @@ import { a as a9, M as M3 } from "./components/MenuActions/MenuActions.js";
161
161
  import { M as M4 } from "./components/MFIsolationApp/MFIsolationApp.js";
162
162
  import { M as M5 } from "./components/MFLoader/MFLoader.js";
163
163
  import { g as g24 } from "./components/MFLoader/dictionary.js";
164
- import { N as N3 } from "./components/NoItemSelected/NoItemSelected.js";
164
+ import { N as N4 } from "./components/NoItemSelected/NoItemSelected.js";
165
165
  import { g as g25 } from "./components/NoItemSelected/dictionary.js";
166
166
  import { g as g26 } from "./components/ObjectLogs/dictionary.js";
167
167
  import { O } from "./components/ObjectLogs/ObjectLogs.js";
@@ -174,8 +174,8 @@ import { P as P11 } from "./components/PrintingSystem/PrintingSystem.js";
174
174
  import { P as P12 } from "./components/PropertyValue/PropertyValue.js";
175
175
  import { S as S7 } from "./components/ScrollBar/ScrollBar.js";
176
176
  import { S as S8 } from "./components/SideBar/SideBar.js";
177
- import { T as T18 } from "./components/ToastContainer/ToastContainer.js";
178
- import { T as T19 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
177
+ import { T as T17 } from "./components/ToastContainer/ToastContainer.js";
178
+ import { T as T18 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
179
179
  import { W } from "./components/WindowBase/WindowBase.js";
180
180
  import { u as u14 } from "./components/WindowBase/hooks/useWindowToolsMF/index.js";
181
181
  import { u as u15, a as a11 } from "./components/WindowBase/hooks/useDynamicMFParameters/index.js";
@@ -306,8 +306,9 @@ export {
306
306
  M as MotionContainer,
307
307
  M2 as MotionLazyContainer,
308
308
  N2 as NavLink,
309
- N3 as NoItemSelected,
309
+ N4 as NoItemSelected,
310
310
  N as NumberEditor,
311
+ N3 as NumberInputStyled,
311
312
  O as ObjectLogs,
312
313
  O2 as ObjectQueue,
313
314
  P8 as PDFViewer,
@@ -364,9 +365,8 @@ export {
364
365
  a7 as TabProvider,
365
366
  T5 as Tabs,
366
367
  T2 as TextEditor,
367
- T17 as TextFieldStyled,
368
- T18 as ToastContainer,
369
- T19 as ToastMessage,
368
+ T17 as ToastContainer,
369
+ T18 as ToastMessage,
370
370
  T9 as ToggleButton,
371
371
  T12 as ToggleButtonRootStyled,
372
372
  T11 as ToggleButtonSlots,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.2.65",
3
+ "version": "9.3.0-B23072025beta.1",
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.13",
37
+ "react-data-grid": "7.0.0-beta.47",
38
38
  "react-dnd": "^16.0.1",
39
39
  "react-dnd-html5-backend": "^16.0.1",
40
40
  "react-dom": "18.3.1",
@@ -19,6 +19,10 @@ export declare const DataGridWithEventChangeUserColumn: Story;
19
19
  * DataGrid con columns formatters
20
20
  */
21
21
  export declare const DatagridWithFormatters: Story;
22
+ /**
23
+ * DataGrid con columns editors
24
+ */
25
+ export declare const DatagridWithEditors: Story;
22
26
  /**
23
27
  * DataGrid con columns with actions
24
28
  */
@@ -1,4 +1,4 @@
1
- import { HeaderRendererProps } from 'react-data-grid';
1
+ import { RenderHeaderCellProps } 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';
@@ -21,6 +21,7 @@ export interface SeedProps {
21
21
  withActionsUser?: boolean;
22
22
  withBooleanStatus?: boolean;
23
23
  withUserType?: boolean;
24
+ withEditors?: boolean;
24
25
  aligns?: Record<string, ColumnAlign>;
25
26
  names?: Record<string, string>;
26
27
  }
@@ -74,7 +75,7 @@ export interface Column<TRow, TSummaryRow> {
74
75
  type: ColumnType;
75
76
  formatter?: (props: any) => JSX.Element;
76
77
  width?: number;
77
- withinHeaderRenderer?: React.FunctionComponent<HeaderRendererProps<TRow, TSummaryRow>>;
78
+ withinHeaderRenderer?: React.FunctionComponent<RenderHeaderCellProps<TRow, TSummaryRow>>;
78
79
  customFilter?: (row: TRow, value: string) => boolean;
79
80
  customSort?: (a: TRow, b: TRow) => number;
80
81
  }
@@ -1 +0,0 @@
1
- export declare const RHFDateTimeRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,10 +0,0 @@
1
- const getFieldValueWithRow = (fieldValue) => {
2
- const row = "row";
3
- if (fieldValue.includes(row)) {
4
- return fieldValue;
5
- }
6
- return `${row}.${fieldValue}`;
7
- };
8
- export {
9
- getFieldValueWithRow as g
10
- };