@m4l/components 9.1.119 → 9.1.121

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 (95) hide show
  1. package/.storybook/decorators/WithAppearanceContext/index.d.ts +0 -0
  2. package/.storybook/utils/getStylesColorsByMode.d.ts +4 -4
  3. package/components/Chip/Chip.js +8 -5
  4. package/components/Chip/ChipStyles.js +21 -18
  5. package/components/Chip/slots/ChipSlots.d.ts +5 -5
  6. package/components/Chip/types.d.ts +14 -7
  7. package/components/DataGrid/contexts/DataGridContext/index.js +3 -5
  8. package/components/DataGrid/contexts/DataGridContext/types.d.ts +1 -3
  9. package/components/DataGrid/contexts/FilterContext/index.d.ts +1 -1
  10. package/components/DataGrid/dictionary.d.ts +18 -0
  11. package/components/DataGrid/dictionary.js +19 -1
  12. package/components/DataGrid/formatters/ColumnBooleanFormatter/index.d.ts +1 -1
  13. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.js +1 -1
  14. package/components/DataGrid/formatters/ColumnDateFormatter/index.d.ts +1 -1
  15. package/components/DataGrid/formatters/ColumnIconFormatter/index.d.ts +1 -1
  16. package/components/DataGrid/formatters/ColumnIconFormatter/index.js +1 -2
  17. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.js +1 -3
  18. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.d.ts +0 -3
  19. package/components/DataGrid/hooks/useDataGrid.d.ts +2 -1
  20. package/components/DataGrid/icons.d.ts +15 -0
  21. package/components/DataGrid/icons.js +18 -0
  22. package/components/DataGrid/index.d.ts +5 -1
  23. package/components/DataGrid/index.js +5 -10
  24. package/components/DataGrid/slots/DataGridEnum.d.ts +30 -0
  25. package/components/DataGrid/slots/DataGridEnum.js +44 -0
  26. package/components/DataGrid/slots/DataGridSlot.d.ts +48 -0
  27. package/components/DataGrid/slots/DataGridSlot.js +97 -0
  28. package/components/DataGrid/styles.d.ts +2 -1
  29. package/components/DataGrid/styles.js +479 -12
  30. package/components/DataGrid/subcomponents/Actions/index.d.ts +1 -1
  31. package/components/DataGrid/subcomponents/Actions/index.js +7 -7
  32. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.d.ts +1 -1
  33. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +13 -12
  34. package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/index.d.ts +1 -1
  35. package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/index.js +5 -6
  36. package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.d.ts +1 -1
  37. package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +14 -13
  38. package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/index.js +7 -6
  39. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index.d.ts +1 -1
  40. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index.js +2 -4
  41. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +28 -27
  42. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +1 -2
  43. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +11 -11
  44. package/components/DataGrid/subcomponents/Actions/types.d.ts +1 -1
  45. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +1 -1
  46. package/components/DataGrid/subcomponents/Table/index.d.ts +1 -1
  47. package/components/DataGrid/subcomponents/Table/index.js +5 -4
  48. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -2
  49. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +12 -43
  50. package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +2 -2
  51. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.d.ts +1 -1
  52. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.js +2 -4
  53. package/components/DataGrid/subcomponents/editors/TextEditor/index.d.ts +0 -1
  54. package/components/DataGrid/subcomponents/editors/TextEditor/index.js +3 -28
  55. package/components/DataGrid/types.d.ts +6 -0
  56. package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +10 -4
  57. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.js +1 -1
  58. package/components/gclick/MyDevice/MyDevice.js +1 -1
  59. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  60. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +0 -1
  61. package/components/hook-form/RHFSelect/RHFSelect.d.ts +1 -1
  62. package/components/hook-form/RHFSelect/RHFSelect.js +21 -3
  63. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  64. package/components/hook-form/RHFSelect/types.d.ts +1 -1
  65. package/components/mui_extended/Select/Select.d.ts +1 -1
  66. package/components/mui_extended/Select/Select.js +195 -145
  67. package/components/mui_extended/Select/Select.styles.js +69 -81
  68. package/components/mui_extended/Select/constants.d.ts +1 -1
  69. package/components/mui_extended/Select/slots/SelectEnum.d.ts +1 -1
  70. package/components/mui_extended/Select/slots/SelectEnum.js +1 -1
  71. package/components/mui_extended/Select/slots/SelectSlots.d.ts +19 -11
  72. package/components/mui_extended/Select/slots/SelectSlots.js +7 -7
  73. package/components/mui_extended/Select/tests/Select.test.d.ts +1 -0
  74. package/components/mui_extended/Select/types.d.ts +26 -16
  75. package/mockServiceWorker.js +1 -1
  76. package/package.json +1 -1
  77. package/components/DataGrid/classes/constants.d.ts +0 -1
  78. package/components/DataGrid/classes/constants.js +0 -4
  79. package/components/DataGrid/classes/index.d.ts +0 -33
  80. package/components/DataGrid/classes/index.js +0 -71
  81. package/components/DataGrid/classes/types.d.ts +0 -30
  82. package/components/DataGrid/formatters/ColumnDateFormatter/styles.d.ts +0 -1
  83. package/components/DataGrid/subcomponents/Actions/styles.d.ts +0 -1
  84. package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/types.d.ts +0 -2
  85. package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/types.d.ts +0 -2
  86. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +0 -7
  87. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.js +0 -50
  88. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.d.ts +0 -1
  89. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/styles.js +0 -10
  90. package/storybook/components/Label/Label.stories.d.ts +0 -16
  91. package/storybook/components/formatters/CourseFormatter/CourseFormatter.stories.d.ts +0 -25
  92. package/storybook/components/formatters/CourseFormatter/constants.d.ts +0 -3
  93. package/storybook/components/formatters/CourseFormatter/types.d.ts +0 -3
  94. /package/components/DataGrid/subcomponents/Actions/subcomponents/{Settings/types.d.ts → types.d.ts} +0 -0
  95. /package/components/{mui_extended/Select/test/Select.test.d.ts → DataGrid/tests/DataGrid.test.d.ts} +0 -0
@@ -25,11 +25,11 @@ export declare const colorsLight: {
25
25
  readonly selected: string;
26
26
  readonly selectedOpacity: string;
27
27
  readonly focusVisible: string;
28
- readonly contrastText: string;
29
28
  readonly focus: string;
30
29
  readonly light: string;
31
30
  readonly dark: string;
32
31
  readonly main: string;
32
+ readonly contrastText: string;
33
33
  readonly enabled: string;
34
34
  readonly enabledOpacity: string;
35
35
  readonly hover: string;
@@ -180,11 +180,11 @@ export declare const colorsLight: {
180
180
  readonly selected: string;
181
181
  readonly selectedOpacity: string;
182
182
  readonly focusVisible: string;
183
- readonly contrastText: string;
184
183
  readonly focus: string;
185
184
  readonly light: string;
186
185
  readonly dark: string;
187
186
  readonly main: string;
187
+ readonly contrastText: string;
188
188
  readonly enabled: string;
189
189
  readonly enabledOpacity: string;
190
190
  readonly hover: string;
@@ -336,11 +336,11 @@ export declare const colorsDark: {
336
336
  readonly selected: string;
337
337
  readonly selectedOpacity: string;
338
338
  readonly focusVisible: string;
339
- readonly contrastText: string;
340
339
  readonly focus: string;
341
340
  readonly light: string;
342
341
  readonly dark: string;
343
342
  readonly main: string;
343
+ readonly contrastText: string;
344
344
  readonly enabled: string;
345
345
  readonly enabledOpacity: string;
346
346
  readonly hover: string;
@@ -491,11 +491,11 @@ export declare const colorsDark: {
491
491
  readonly selected: string;
492
492
  readonly selectedOpacity: string;
493
493
  readonly focusVisible: string;
494
- readonly contrastText: string;
495
494
  readonly focus: string;
496
495
  readonly light: string;
497
496
  readonly dark: string;
498
497
  readonly main: string;
498
+ readonly contrastText: string;
499
499
  readonly enabled: string;
500
500
  readonly enabledOpacity: string;
501
501
  readonly hover: string;
@@ -19,6 +19,7 @@ const Chip = forwardRef((props, ref) => {
19
19
  hasIconClose = true,
20
20
  onClick,
21
21
  onDeleted,
22
+ iconButtonProps,
22
23
  className,
23
24
  ...others
24
25
  } = props;
@@ -27,12 +28,17 @@ const Chip = forwardRef((props, ref) => {
27
28
  const { host_static_assets, environment_assets } = useEnvironment();
28
29
  const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
29
30
  const ownerState = {
30
- chipSize: adjustedSize,
31
+ interactive: !!onClick,
32
+ size: adjustedSize,
31
33
  variant,
32
34
  color,
33
35
  opacity,
34
36
  externalColor
35
37
  };
38
+ const handleDelete = (e) => {
39
+ e.stopPropagation();
40
+ onDeleted?.(e);
41
+ };
36
42
  if (isSkeleton) {
37
43
  return /* @__PURE__ */ jsx(
38
44
  SkeletonChipStyled,
@@ -63,10 +69,6 @@ const Chip = forwardRef((props, ref) => {
63
69
  );
64
70
  }
65
71
  };
66
- const handleDelete = (e) => {
67
- e.stopPropagation();
68
- onDeleted?.(e);
69
- };
70
72
  return /* @__PURE__ */ jsxs(
71
73
  ChipRootStyled,
72
74
  {
@@ -85,6 +87,7 @@ const Chip = forwardRef((props, ref) => {
85
87
  hasIconClose && /* @__PURE__ */ jsx(
86
88
  IconButtonStyled,
87
89
  {
90
+ ...iconButtonProps,
88
91
  src: iconClose,
89
92
  size: adjustedSize,
90
93
  ownerState: { ...ownerState },
@@ -25,27 +25,30 @@ const chipStyles = {
25
25
  },
26
26
  ...getHeightSizeStyles(
27
27
  theme.generalSettings.isMobile,
28
- ownerState.chipSize || "medium",
28
+ ownerState.size || "medium",
29
29
  "base"
30
30
  ),
31
- "&:hover": {
32
- backgroundColor: bgHover
33
- },
34
- "&:active": {
35
- backgroundColor: bgActive
36
- // '& .M4LIcon-icon': {
37
- // backgroundColor: color,
38
- // },
31
+ //TODO: OJO no OLVIDAR interactive ************ JUAN
32
+ ...ownerState.interactive && {
33
+ "&:hover": {
34
+ backgroundColor: bgHover
35
+ },
36
+ "&:active": {
37
+ backgroundColor: bgActive
38
+ // '& .M4LIcon-icon': {
39
+ // backgroundColor: color,
40
+ // },
41
+ },
42
+ "&:focus-visible": {
43
+ boxShadow: "none",
44
+ outline: `${theme.vars.size.borderStroke.container} ${theme.vars.palette.border.main}`,
45
+ backgroundColor: bgActive
46
+ }
39
47
  },
40
48
  ...ownerState.variant === "outlined" && {
41
49
  border: `${theme.vars.size.borderStroke.container}`,
42
50
  borderColor: bgColor
43
51
  },
44
- "&:focus-visible": {
45
- boxShadow: "none",
46
- outline: `${theme.vars.size.borderStroke.container} ${theme.vars.palette.border.main}`,
47
- backgroundColor: bgActive
48
- },
49
52
  variants: []
50
53
  };
51
54
  },
@@ -66,7 +69,7 @@ const chipStyles = {
66
69
  */
67
70
  iconButton: ({ theme, ownerState }) => ({
68
71
  // Estilos específicos para el tamaño small
69
- ...ownerState.chipSize === "small" && {
72
+ ...ownerState.size === "small" && {
70
73
  ...theme.generalSettings.isMobile ? {
71
74
  height: theme.vars.size.mobile.small.base,
72
75
  width: theme.vars.size.mobile.small.base,
@@ -78,7 +81,7 @@ const chipStyles = {
78
81
  }
79
82
  },
80
83
  // Estilos específicos para el tamaño medium
81
- ...ownerState.chipSize === "medium" && {
84
+ ...ownerState.size === "medium" && {
82
85
  ...theme.generalSettings.isMobile ? {
83
86
  height: theme.vars.size.mobile.medium.base,
84
87
  width: theme.vars.size.mobile.medium.base,
@@ -97,7 +100,7 @@ const chipStyles = {
97
100
  width: "100%",
98
101
  background: theme.vars.palette.skeleton.transition,
99
102
  // Estilos específicos para el tamaño small
100
- ...ownerState.chipSize === "small" && {
103
+ ...ownerState.size === "small" && {
101
104
  ...theme.generalSettings.isMobile ? {
102
105
  height: theme.vars.size.mobile.small.base,
103
106
  minHeight: theme.vars.size.mobile.small.base
@@ -107,7 +110,7 @@ const chipStyles = {
107
110
  }
108
111
  },
109
112
  // Estilos específicos para el tamaño medium
110
- ...ownerState.chipSize === "medium" && {
113
+ ...ownerState.size === "medium" && {
111
114
  ...theme.generalSettings.isMobile ? {
112
115
  height: theme.vars.size.mobile.medium.base,
113
116
  minHeight: theme.vars.size.mobile.medium.base
@@ -1,16 +1,16 @@
1
- declare const ChipRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ChipOwnerState> & Record<string, unknown> & {
1
+ declare const ChipRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
2
2
  ownerState: Partial<import('..').ChipOwnerState> & Record<string, unknown>;
3
3
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
4
- declare const SkeletonChipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Skeleton/types').SkeletonProps, keyof import('../../mui_extended/Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ChipOwnerState> & Record<string, unknown> & {
4
+ declare const SkeletonChipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Skeleton/types').SkeletonProps, keyof import('../../mui_extended/Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
5
5
  ownerState: Partial<import('..').ChipOwnerState> & Record<string, unknown>;
6
6
  }, {}, {}>;
7
- declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ChipOwnerState> & Record<string, unknown> & {
7
+ declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
8
8
  ownerState: Partial<import('..').ChipOwnerState> & Record<string, unknown>;
9
9
  }, {}, {}>;
10
- declare const TextChipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ChipOwnerState> & Record<string, unknown> & {
10
+ declare const TextChipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
11
11
  ownerState: Partial<import('..').ChipOwnerState> & Record<string, unknown>;
12
12
  }, {}, {}>;
13
- declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "selected" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "disabled" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "placement" | "form" | "src" | "rotationAngle" | "tooltipContent" | "instaceDataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "componentPaletteColor" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').ChipOwnerState> & Record<string, unknown> & {
13
+ declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "selected" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "disabled" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "placement" | "form" | "src" | "rotationAngle" | "tooltipContent" | "instaceDataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "componentPaletteColor" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
14
14
  ownerState: Partial<import('..').ChipOwnerState> & Record<string, unknown>;
15
15
  }, {}, {}>;
16
16
  export { ChipRootStyled, SkeletonChipStyled, IconStyled, TextChipStyled, IconButtonStyled };
@@ -1,9 +1,10 @@
1
1
  import { ChipColor, ComponentPalletColor, Sizes } from '@m4l/styles';
2
- import { Theme } from '@mui/material';
3
- import { OverridesStyleRules } from '@mui/material/styles/overrides';
2
+ import { Theme } from '@mui/material/styles';
4
3
  import { EventHandler, ReactNode } from 'react';
5
4
  import { CHIP_KEY_COMPONENT } from './constants';
6
5
  import { ChipSlots } from './slots';
6
+ import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
7
+ import { M4LOverridesStyleRules } from '../../@types/augmentations';
7
8
  type ChipVariants = 'contained' | 'outlined';
8
9
  /**
9
10
  * Propiedades del componente `Chip`.
@@ -53,6 +54,10 @@ export interface ChipProps {
53
54
  * Function to be executed when the `Chip` is clicked.
54
55
  */
55
56
  onClick?: () => void;
57
+ /**
58
+ * Props for the close icon button.
59
+ */
60
+ iconButtonProps?: Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled' | 'src'>;
56
61
  /**
57
62
  * Function to be executed when the `Chip` is deleted.
58
63
  */
@@ -61,14 +66,16 @@ export interface ChipProps {
61
66
  * Class name for the `Chip`.
62
67
  */
63
68
  className?: string;
69
+ /**
70
+ * Focusable `Chip`.
71
+ */
72
+ focusable?: boolean;
64
73
  }
65
74
  /**
66
75
  * Owner state of the `Chip` used to define internal style and behavior properties.
67
76
  */
68
- export interface ChipOwnerState extends Pick<ChipProps, 'variant' | 'externalColor'> {
69
- opacity?: boolean;
70
- chipSize: ChipProps['size'];
71
- color: Exclude<ComponentPalletColor, 'primary'> | 'forest' | 'disabled';
77
+ export interface ChipOwnerState extends Pick<ChipProps, 'variant' | 'externalColor' | 'opacity' | 'size' | 'color'> {
78
+ interactive: boolean;
72
79
  }
73
80
  /**
74
81
  * Defines the types of Slots available for the `Chip`.
@@ -77,5 +84,5 @@ export type ChipSlotsType = keyof typeof ChipSlots;
77
84
  /**
78
85
  * Styles applicable to the `Chip` using themes and custom slots.
79
86
  */
80
- export type ChipStyles = OverridesStyleRules<ChipSlotsType, typeof CHIP_KEY_COMPONENT, Theme>;
87
+ export type ChipStyles = M4LOverridesStyleRules<ChipSlotsType, typeof CHIP_KEY_COMPONENT, Theme>;
81
88
  export {};
@@ -96,13 +96,12 @@ function DataGridProvider(props) {
96
96
  rows,
97
97
  rowsCount,
98
98
  rowActionsGetter,
99
- rowHeights = [28, 32, 36],
100
- rowHeaderHeights = [28, 32, 36],
99
+ rowHeights = [28, 32, 40],
100
+ rowHeaderHeights = [28, 32, 40],
101
101
  initialRowHeightVariant = "compact",
102
102
  checkedRows,
103
103
  onCheckedRowsChange,
104
- rowKeyGetter,
105
- classes
104
+ rowKeyGetter
106
105
  } = props;
107
106
  const [columnsWidths, setColumnsWidths] = useState(
108
107
  /* @__PURE__ */ new Map()
@@ -215,7 +214,6 @@ function DataGridProvider(props) {
215
214
  onChangeColumnWidth,
216
215
  setRowsCount: setRowFilterCountInternal,
217
216
  rowActionsGetter,
218
- classes,
219
217
  setRowHeightVariant: setCurrentRowHeightInternal,
220
218
  onCheckedRowsChange,
221
219
  rowKeyGetter
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Maybe } from '@m4l/core';
3
3
  import { RowKey, RowHeightVariants, GridProps } from '../../types';
4
- import { Classes } from '../../classes/types';
5
4
  export interface IConfigColumn {
6
5
  key: string;
7
6
  visible: boolean;
@@ -22,14 +21,13 @@ export interface DataGridProviderProps<TRow, TSummaryRow, TKey extends RowKey =
22
21
  children: ReactNode;
23
22
  remoteConfig?: IGridConfig;
24
23
  rowsCount: number;
25
- classes: Classes;
26
24
  }
27
25
  export type RowHeightState = {
28
26
  rowHVariant: RowHeightVariants;
29
27
  rowHeight: number;
30
28
  rowHeaderHeight: number;
31
29
  };
32
- export interface DataGridContextProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends IGridConfig, Pick<DataGridProviderProps<TRow, TSummaryRow, TKey>, 'rows' | 'checkedRows' | 'onCheckedRowsChange' | 'rowHeights' | 'rowsCount' | 'rowActionsGetter' | 'rowKeyGetter' | 'classes'> {
30
+ export interface DataGridContextProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends IGridConfig, Pick<DataGridProviderProps<TRow, TSummaryRow, TKey>, 'rows' | 'checkedRows' | 'onCheckedRowsChange' | 'rowHeights' | 'rowsCount' | 'rowActionsGetter' | 'rowKeyGetter'> {
33
31
  setRowsCount: (newRowsCount: number) => void;
34
32
  currentRowHeaderHeight: number;
35
33
  currentRowHeight: number;
@@ -6,7 +6,7 @@ type FilterProviderProps = {
6
6
  initialActiveFilters: boolean;
7
7
  };
8
8
  /**
9
- * TODO: Documentar
9
+ * Proveedor de contexto para los filtros de la tabla
10
10
  */
11
11
  declare function FilterProvider({ children, initialActiveFilters }: FilterProviderProps): import("react/jsx-runtime").JSX.Element;
12
12
  export { FilterProvider, FilterContext };
@@ -6,4 +6,22 @@ export declare const dictionary: {
6
6
  LABEL_ACTIONS: string;
7
7
  LABEL_ROWS_PER_PAGE: string;
8
8
  LABEL_OF: string;
9
+ DENSITY_COMPACT: string;
10
+ DENSITY_STANDARD: string;
11
+ DENSITY_CONFORTABLE: string;
12
+ DENSITY_TOOLTIP: string;
13
+ TOOLTIP_FILTER_HIDE: string;
14
+ TOOLTIP_FILTER_SHOW: string;
15
+ SETTINGS_COLUMN_NAME: string;
16
+ SETTINGS_COLUMN_POSITION: string;
17
+ SETTINGS_COLUMN_VISIBLE: string;
18
+ SETTINGS_COLUMNS_FROZEN: string;
19
+ SETTINGS_SEL_COLUMNS: string;
20
+ SETTINGS_MOVE_FIRST: string;
21
+ SETTINGS_MOVE_UP: string;
22
+ SETTINGS_MOVE_LAST: string;
23
+ SETTINGS_MOVE_DOWN: string;
24
+ SETTINGS_VISIBLE_ALL: string;
25
+ SETTINGS_NO_VISIBLE_ALL: string;
26
+ SETTINGS_RESTORE: string;
9
27
  };
@@ -6,7 +6,25 @@ function getDataGridComponentsDictionary() {
6
6
  const dictionary = {
7
7
  LABEL_ACTIONS: "actions",
8
8
  LABEL_ROWS_PER_PAGE: "pager.rows_per_page",
9
- LABEL_OF: "pager.of"
9
+ LABEL_OF: "pager.of",
10
+ DENSITY_COMPACT: `${getDataGridComponentsDictionary()[0]}.density_compact`,
11
+ DENSITY_STANDARD: `${getDataGridComponentsDictionary()[0]}.density_standard`,
12
+ DENSITY_CONFORTABLE: `${getDataGridComponentsDictionary()[0]}.density_confortable`,
13
+ DENSITY_TOOLTIP: `${getDataGridComponentsDictionary()[0]}.tooltip_density`,
14
+ TOOLTIP_FILTER_HIDE: `${getDataGridComponentsDictionary()[0]}.tooltip_filter_hide`,
15
+ TOOLTIP_FILTER_SHOW: `${getDataGridComponentsDictionary()[0]}.tooltip_filter_show`,
16
+ SETTINGS_COLUMN_NAME: `${getDataGridComponentsDictionary()[0]}.settings_column_name`,
17
+ SETTINGS_COLUMN_POSITION: `${getDataGridComponentsDictionary()[0]}.settings_column_position`,
18
+ SETTINGS_COLUMN_VISIBLE: `${getDataGridComponentsDictionary()[0]}.settings_column_visible`,
19
+ SETTINGS_COLUMNS_FROZEN: `${getDataGridComponentsDictionary()[0]}.settings_column_frozen`,
20
+ SETTINGS_SEL_COLUMNS: `${getDataGridComponentsDictionary()[0]}.settings_sel_columns`,
21
+ SETTINGS_MOVE_FIRST: `${getDataGridComponentsDictionary()[0]}.settings_move_first`,
22
+ SETTINGS_MOVE_UP: `${getDataGridComponentsDictionary()[0]}.settings_move_up`,
23
+ SETTINGS_MOVE_LAST: `${getDataGridComponentsDictionary()[0]}.settings_move_last`,
24
+ SETTINGS_MOVE_DOWN: `${getDataGridComponentsDictionary()[0]}.settings_move_down`,
25
+ SETTINGS_VISIBLE_ALL: `${getDataGridComponentsDictionary()[0]}.settings_visible_all`,
26
+ SETTINGS_NO_VISIBLE_ALL: `${getDataGridComponentsDictionary()[0]}.settings_no_visible_all`,
27
+ SETTINGS_RESTORE: `${getDataGridComponentsDictionary()[0]}.settings_restore`
10
28
  };
11
29
  export {
12
30
  dictionary as d,
@@ -1,5 +1,5 @@
1
1
  import { ColumnBooleanFormatterProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Función para formatear un booleano en una columna de un DataGrid
4
4
  */
5
5
  export declare function ColumnBooleanFormatter(props: ColumnBooleanFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
@@ -8,7 +8,7 @@ function ColumnConcatenatedValueFormatter(props) {
8
8
  const valueMaybeString = getPropertyByString(obProps, element);
9
9
  let fixedValue;
10
10
  if (typeof valueMaybeString === "string" || typeof valueMaybeString === "number") {
11
- fixedValue = valueMaybeString;
11
+ fixedValue = valueMaybeString.toString();
12
12
  } else {
13
13
  fixedValue = "";
14
14
  }
@@ -1,5 +1,5 @@
1
1
  import { ColumnDateFormatterProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Función para formatear una fecha en una columna de un DataGrid
4
4
  */
5
5
  export declare function ColumnDateFormatter(props: ColumnDateFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { ColumnIconFormatterProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Función para formatear un icono en una columna de un DataGrid
4
4
  */
5
5
  export declare function ColumnIconFormatter(props: ColumnIconFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { d as dataGridClasses } from "../../classes/index.js";
3
2
  import { I as Icon } from "../../../Icon/Icon.js";
4
3
  function ColumnIconFormatter(props) {
5
4
  const { getIconUrl } = props;
6
5
  return (obProps) => {
7
6
  const { iconUrl } = getIconUrl(obProps);
8
- return /* @__PURE__ */ jsx("div", { className: dataGridClasses.iconFormatter, children: /* @__PURE__ */ jsx(Icon, { src: iconUrl }) });
7
+ return /* @__PURE__ */ jsx(Icon, { src: iconUrl });
9
8
  };
10
9
  }
11
10
  export {
@@ -1,6 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Checkbox } from "@mui/material";
3
- import { d as dataGridClasses } from "../../classes/index.js";
4
3
  function ColumnInteractiveCheckFormatter(props) {
5
4
  const { row, onRowChange, column } = props;
6
5
  const handleChange = () => {
@@ -13,8 +12,7 @@ function ColumnInteractiveCheckFormatter(props) {
13
12
  {
14
13
  size: "small",
15
14
  checked: row[column.key] || false,
16
- onChange: handleChange,
17
- className: dataGridClasses.formatterColumn
15
+ onChange: handleChange
18
16
  }
19
17
  );
20
18
  }
@@ -6,7 +6,4 @@ import { RowKey } from '../../types';
6
6
  * acualizando un Set/Setter por medio de un hook generico el cual es invocado con el argumento field para ,
7
7
  * sin la necesidad de entrar en edición como lo hace un editor
8
8
  */
9
- /**
10
- * TODO: Documentar
11
- */
12
9
  export declare function ColumnSetCheckFormatter<Row, TKey extends RowKey = RowKey>(parameters: ColumnSetCheckFormatterProps<Row, TKey>): (props: FormatterProps<Row>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { DataGridContextProps } from '../contexts/DataGridContext/types';
2
2
  /**
3
- * TODO: Documentar
3
+ * Hook para obtener el contexto de DataGrid
4
+ * @returns DataGridContextProps
4
5
  */
5
6
  export declare function useDataGrid<TRow, TSummaryRow>(): DataGridContextProps<TRow, TSummaryRow>;
6
7
  export default useDataGrid;
@@ -0,0 +1,15 @@
1
+ export declare const pathIcons: {
2
+ compact: string;
3
+ standard: string;
4
+ confortable: string;
5
+ filter: string;
6
+ configuration: string;
7
+ menu: string;
8
+ moveFirstPlace: string;
9
+ moveUpPlace: string;
10
+ moveLastPlace: string;
11
+ moveDownPlace: string;
12
+ checkAll: string;
13
+ uncheckAll: string;
14
+ restoreColumns: string;
15
+ };
@@ -0,0 +1,18 @@
1
+ const pathIcons = {
2
+ compact: "frontend/components/data_grid/assets/icons/compact.svg",
3
+ standard: "frontend/components/data_grid/assets/icons/standard.svg",
4
+ confortable: "frontend/components/data_grid/assets/icons/confortable.svg",
5
+ filter: "frontend/components/data_grid/assets/icons/filter.svg",
6
+ configuration: "frontend/components/data_grid/assets/icons/configuration.svg",
7
+ menu: "frontend/components/data_grid/assets/icons/menu.svg",
8
+ moveFirstPlace: "frontend/components/data_grid/assets/icons/move_first_place.svg",
9
+ moveUpPlace: "frontend/components/data_grid/assets/icons/move_up_place.svg",
10
+ moveLastPlace: "frontend/components/data_grid/assets/icons/move_last_place.svg",
11
+ moveDownPlace: "frontend/components/data_grid/assets/icons/move_down_place.svg",
12
+ checkAll: "frontend/components/data_grid/assets/icons/check_all.svg",
13
+ uncheckAll: "frontend/components/data_grid/assets/icons/uncheck_all.svg",
14
+ restoreColumns: "frontend/components/data_grid/assets/icons/restore_columns.svg"
15
+ };
16
+ export {
17
+ pathIcons as p
18
+ };
@@ -1,5 +1,9 @@
1
1
  import { DataGridProps, RowKey } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * DataGrid es un componente encargado de mostrar información en una tabla
4
+ * con funcionalidades de paginación, filtros y acciones.
5
+ * ### Dependencies:
6
+ * - **`useResponsiveContainerStore:`** Hook que permite obtener el tamaño del contenedor.
7
+ * - **`useModuleDictionary:`** Hook que permite manejar la internacionalización de los textos.
4
8
  */
5
9
  export declare function DataGrid<TRow, TSummaryRow, TKey extends RowKey = RowKey>(props: DataGridProps<TRow, TSummaryRow, TKey>): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,14 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { D as DataGridRoot } from "./styles.js";
3
2
  import { T as Table } from "./subcomponents/Table/index.js";
4
3
  import { A as Actions } from "./subcomponents/Actions/index.js";
5
4
  import { a as FilterProvider } from "./contexts/FilterContext/index.js";
6
5
  import { a as DataGridProvider } from "./contexts/DataGridContext/index.js";
7
6
  import { T as TEST_PROP_COLUMNS } from "./types.js";
8
- import { a as dataGridUtilityClasses } from "./classes/index.js";
9
7
  import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
10
8
  import { a as getNameDataTestId } from "../../test/getNameDataTestId.js";
11
9
  import { D as DATAGRID_PREFIX_NAME } from "./constants.js";
10
+ import { D as DataGridRootStyled } from "./slots/DataGridSlot.js";
11
+ import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
12
12
  function DataGrid(props) {
13
13
  const {
14
14
  id,
@@ -28,15 +28,11 @@ function DataGrid(props) {
28
28
  onCheckedRowsChange,
29
29
  dataTestId = ""
30
30
  } = props;
31
- const ownerState = {
32
- actionsProps,
33
- withActions
34
- };
35
- const classes = dataGridUtilityClasses(ownerState);
31
+ const classRoot = getComponentSlotRoot(DATAGRID_PREFIX_NAME);
36
32
  return /* @__PURE__ */ jsx(
37
- DataGridRoot,
33
+ DataGridRootStyled,
38
34
  {
39
- className: classes.root,
35
+ className: classRoot,
40
36
  ...process.env.NODE_ENV !== "production" ? {
41
37
  [TEST_PROP_COLUMNS]: JSON.stringify(columns),
42
38
  [TEST_PROP_ID]: getNameDataTestId(DATAGRID_PREFIX_NAME, "root", dataTestId)
@@ -55,7 +51,6 @@ function DataGrid(props) {
55
51
  onCheckedRowsChange,
56
52
  rowKeyGetter,
57
53
  rows,
58
- classes,
59
54
  children: /* @__PURE__ */ jsxs(FilterProvider, { initialActiveFilters: false, children: [
60
55
  withActions && actionsProps && /* @__PURE__ */ jsx(
61
56
  Actions,
@@ -0,0 +1,30 @@
1
+ export declare enum DataGridSlots {
2
+ datagridRoot = "datagridRoot"
3
+ }
4
+ export declare enum ActionsSlots {
5
+ actionsRoot = "actionsRoot",
6
+ actionsConfigContainer = "actionsConfigContainer"
7
+ }
8
+ export declare enum RowsCountSlots {
9
+ rowsCountRoot = "rowsCountRoot",
10
+ rowsCountLabel = "rowsCountLabel",
11
+ rowsCountValue = "rowsCountValue"
12
+ }
13
+ export declare enum TableSlots {
14
+ tableContaniner = "tableContaniner",
15
+ tableWrapperDataGrid = "tableWrapperDataGrid",
16
+ draggableHeaderRoot = "draggableHeaderRoot",
17
+ draggableWrapperInputBase = "draggableWrapperInputBase",
18
+ headerInputBase = "headerInputBase",
19
+ wrapperSkeleton = "wrapperSkeleton",
20
+ contentModalSetting = "contentModalSetting"
21
+ }
22
+ export declare enum TextEditorSlots {
23
+ inputTexEditor = "inputTexEditor"
24
+ }
25
+ export declare enum ColumnsConfigSlots {
26
+ columnsConfigWrapper = "columnsConfigWrapper",
27
+ columnsConfigSelColumns = "columnsConfigSelColumns",
28
+ columnsConfigDataGrid = "columnsConfigDataGrid",
29
+ columnsConfigActios = "columnsConfigActios"
30
+ }