@m4l/components 9.2.60-24062025.beta.1 → 9.2.60-J18062025.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.
Files changed (199) hide show
  1. package/@types/types.d.ts +0 -8
  2. package/components/Chip/Chip.js +10 -9
  3. package/components/Chip/ChipStyles.js +2 -13
  4. package/components/Chip/constants.d.ts +0 -9
  5. package/components/Chip/constants.js +2 -6
  6. package/components/Chip/slots/ChipEnum.d.ts +0 -3
  7. package/components/Chip/slots/ChipEnum.js +1 -6
  8. package/components/Chip/slots/ChipSlots.js +1 -1
  9. package/components/DataGrid/DataGrid.js +17 -3
  10. package/components/DataGrid/Datagrid.styles.js +67 -27
  11. package/components/DataGrid/constants.d.ts +2 -0
  12. package/components/DataGrid/constants.js +7 -3
  13. package/components/DataGrid/contexts/DataGridContext/index.js +77 -30
  14. package/components/DataGrid/contexts/DataGridContext/types.d.ts +5 -2
  15. package/components/DataGrid/dictionary.d.ts +8 -0
  16. package/components/DataGrid/dictionary.js +26 -17
  17. package/components/DataGrid/icons.d.ts +6 -0
  18. package/components/DataGrid/icons.js +7 -1
  19. package/components/DataGrid/slots/DataGridEnum.d.ts +5 -1
  20. package/components/DataGrid/slots/DataGridEnum.js +4 -0
  21. package/components/DataGrid/slots/DataGridSlot.d.ts +4 -0
  22. package/components/DataGrid/slots/DataGridSlot.js +22 -2
  23. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Filter/index.js +9 -1
  24. package/components/DataGrid/subcomponents/Table/hooks/getDragHeaderRenderer.d.ts +3 -1
  25. package/components/DataGrid/subcomponents/Table/hooks/getDragHeaderRenderer.js +9 -2
  26. package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.d.ts +6 -0
  27. package/components/DataGrid/subcomponents/Table/hooks/useHeaderMenuActions.js +259 -0
  28. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.d.ts +6 -4
  29. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +35 -18
  30. package/components/DataGrid/subcomponents/Table/index.js +97 -34
  31. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
  32. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.d.ts +1 -0
  33. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +42 -3
  34. package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.d.ts +5 -0
  35. package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +136 -0
  36. package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/index.d.ts +1 -0
  37. package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/types.d.ts +131 -0
  38. package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +1 -1
  39. package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
  40. package/components/DataGrid/tests/HeaderRenderClick.test.d.ts +1 -0
  41. package/components/DataGrid/tests/useHeaderMenuActions.test.d.ts +1 -0
  42. package/components/DataGrid/types.d.ts +53 -0
  43. package/components/DynamicFilter/DynamicFilter.styles.js +90 -99
  44. package/components/DynamicFilter/slots/SlotsEnum.d.ts +3 -0
  45. package/components/DynamicFilter/slots/SlotsEnum.js +3 -0
  46. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +9 -0
  47. package/components/DynamicFilter/slots/dynamicFilterSlots.js +19 -3
  48. package/components/DynamicFilter/store/DynamicFilterContext.js +67 -26
  49. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.js +2 -2
  50. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.js +2 -2
  51. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index.js +2 -2
  52. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +2 -2
  53. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +2 -2
  54. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.js +2 -2
  55. package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +1 -1
  56. package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +0 -1
  57. package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +1 -2
  58. package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.js +0 -2
  59. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +18 -23
  60. package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +1 -4
  61. package/components/DynamicFilter/types.d.ts +3 -0
  62. package/components/DynamicSort/DynamicSort.js +10 -6
  63. package/components/DynamicSort/DynamicSort.styles.js +88 -90
  64. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +9 -0
  65. package/components/DynamicSort/slots/DynamicSortSlots.js +21 -5
  66. package/components/DynamicSort/slots/SlotsEnum.d.ts +4 -1
  67. package/components/DynamicSort/slots/SlotsEnum.js +4 -1
  68. package/components/DynamicSort/store/DynamicSortContext.js +96 -67
  69. package/components/DynamicSort/store/DynamicSortStore.js +53 -4
  70. package/components/DynamicSort/store/types.d.ts +11 -0
  71. package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.js +2 -2
  72. package/components/DynamicSort/subcomponents/InputSort/InputSort.js +0 -2
  73. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +17 -21
  74. package/components/DynamicSort/subcomponents/SortActions/SortActions.js +2 -2
  75. package/components/DynamicSort/subcomponents/SortActions/useSortActions.d.ts +0 -2
  76. package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +1 -2
  77. package/components/DynamicSort/types.d.ts +4 -0
  78. package/components/LanguagePopover/LanguagePopover.js +6 -8
  79. package/components/LanguagePopover/LanguagePopover.styles.js +4 -25
  80. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +3 -9
  81. package/components/LanguagePopover/slots/LanguagePopoverSlots.js +3 -1
  82. package/components/LanguagePopover/types.d.ts +1 -6
  83. package/components/PaperForm/styles.js +1 -2
  84. package/components/PropertyValue/PropertyValue.js +1 -2
  85. package/components/PropertyValue/PropertyValue.styles.js +4 -7
  86. package/components/PropertyValue/types.d.ts +0 -4
  87. package/components/SideBar/SideBar.js +2 -4
  88. package/components/SideBar/constants.d.ts +2 -26
  89. package/components/SideBar/constants.js +7 -19
  90. package/components/SideBar/context/sideBarContext/index.js +5 -19
  91. package/components/SideBar/context/sideBarContext/types.d.ts +1 -22
  92. package/components/SideBar/helpers/getMenuDataWithState/index.js +8 -25
  93. package/components/SideBar/slots/SideBarEnum.d.ts +5 -5
  94. package/components/SideBar/slots/SideBarEnum.js +11 -9
  95. package/components/SideBar/slots/SideBarSlots.d.ts +3 -9
  96. package/components/SideBar/slots/SideBarSlots.js +28 -36
  97. package/components/SideBar/styles.js +4 -2
  98. package/components/SideBar/subcomponents/ContentComponent/index.js +19 -39
  99. package/components/SideBar/subcomponents/ContentComponent/style.js +22 -171
  100. package/components/SideBar/subcomponents/ContentGroups/index.d.ts +5 -0
  101. package/components/SideBar/subcomponents/{TreeGroupItems → ContentGroups}/index.js +18 -16
  102. package/components/SideBar/subcomponents/{TreeGroupItems → ContentGroups}/styles.js +7 -5
  103. package/components/SideBar/subcomponents/{TreeGroupItems/subcomponents/NodeMenuItem → ContentGroups/subcomponents/ContainerMenuItemsMain}/index.d.ts +3 -3
  104. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +63 -0
  105. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +2 -0
  106. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +47 -0
  107. package/components/SideBar/subcomponents/{TreeGroupItems → ContentGroups/subcomponents/ContainerMenuItemsMain}/subcomponents/ArrowIcon/index.js +7 -10
  108. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/types.d.ts +7 -0
  109. package/components/SideBar/subcomponents/ContentGroups/types.d.ts +4 -0
  110. package/components/SideBar/subcomponents/{Promotion → FooterSidebar}/index.d.ts +2 -2
  111. package/components/SideBar/subcomponents/{Promotion → FooterSidebar}/index.js +15 -8
  112. package/components/SideBar/subcomponents/{Promotion → FooterSidebar}/styles.js +2 -2
  113. package/components/SideBar/subcomponents/FooterSidebar/types.d.ts +5 -0
  114. package/components/SideBar/subcomponents/HeaderSidebar/index.js +25 -0
  115. package/components/SideBar/subcomponents/SideBarDesktop/index.js +1 -1
  116. package/components/SideBar/subcomponents/SideBarDesktop/styles.js +14 -10
  117. package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
  118. package/components/SideBar/types.d.ts +3 -7
  119. package/components/WindowBase/WindowBase.js +1 -4
  120. package/components/WindowBase/WindowBase.styles.js +13 -48
  121. package/components/WindowBase/constants.d.ts +0 -1
  122. package/components/WindowBase/constants.js +1 -5
  123. package/components/WindowBase/slots/WindowBaseEnum.d.ts +1 -2
  124. package/components/WindowBase/slots/WindowBaseEnum.js +0 -1
  125. package/components/WindowBase/slots/WindowBaseSlots.d.ts +0 -3
  126. package/components/WindowBase/slots/WindowBaseSlots.js +1 -6
  127. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +4 -8
  128. package/components/WindowBase/subcomponents/Header/useButtonActions.js +2 -4
  129. package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
  130. package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +1 -1
  131. package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +0 -5
  132. package/components/WindowBase/types.d.ts +0 -11
  133. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +0 -13
  134. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +20 -21
  135. package/components/extended/React-Resizable/helpers.js +1 -1
  136. package/components/extended/React-resizable-panels/SplitLayout.js +3 -6
  137. package/components/extended/React-resizable-panels/SplitLayout.styles.js +36 -78
  138. package/components/extended/React-resizable-panels/constants.d.ts +0 -6
  139. package/components/extended/React-resizable-panels/constants.js +1 -5
  140. package/components/extended/React-resizable-panels/slots/SplitLayoutEnum.d.ts +1 -2
  141. package/components/extended/React-resizable-panels/slots/SplitLayoutEnum.js +0 -1
  142. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +0 -3
  143. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.js +1 -7
  144. package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +1 -1
  145. package/components/hook-form/RHFTextField/RHFTextField.js +0 -1
  146. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +1 -1
  147. package/components/mui_extended/Accordion/styles.js +2 -10
  148. package/components/mui_extended/Button/Button.js +1 -3
  149. package/components/mui_extended/Button/ButtonStyles.js +1 -6
  150. package/components/mui_extended/Button/types.d.ts +1 -1
  151. package/components/mui_extended/NavLink/NavLink.js +1 -3
  152. package/components/mui_extended/NavLink/NavLink.styles.js +1 -2
  153. package/components/mui_extended/NavLink/types.d.ts +1 -3
  154. package/components/mui_extended/Tab/Tab.styles.js +1 -2
  155. package/components/mui_extended/TabContent/TabContent.styles.js +8 -2
  156. package/components/mui_extended/TextField/TextField.js +1 -1
  157. package/components/mui_extended/TextField/TextField.styles.js +13 -15
  158. package/components/mui_extended/index.d.ts +0 -1
  159. package/hooks/useDynamicFilterAndSort/styles.js +1 -1
  160. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.d.ts +7 -0
  161. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +300 -88
  162. package/index.d.ts +0 -1
  163. package/index.js +20 -23
  164. package/package.json +5 -6
  165. package/storybook/components/DataGrid/DataGrid.stories.d.ts +22 -0
  166. package/storybook/components/DataGrid/MswHandles.d.ts +1 -0
  167. package/storybook/components/DataGrid/helpers/filterFieldsSeedData.d.ts +5 -0
  168. package/storybook/components/DataGrid/helpers/getRows.d.ts +4 -0
  169. package/storybook/components/DataGrid/helpers/getRowsWithBackendSimulation.d.ts +9 -0
  170. package/storybook/components/DataGrid/helpers/sortsSeedData.d.ts +5 -0
  171. package/storybook/components/DataGrid/helpers/types.d.ts +1 -0
  172. package/storybook/components/DataGrid/helpers/useSeed.d.ts +3 -0
  173. package/storybook/components/DataGrid/subcomponents/DataGridRenderWithExternalFiltersAndSorts.d.ts +16 -0
  174. package/storybook/components/DynamicFilter/DynamicFilter.stories.d.ts +11 -27
  175. package/storybook/components/DynamicSort/DynamicSort.stories.d.ts +10 -26
  176. package/storybook/components/extended/mui/IconButton/IconButton.stories.d.ts +0 -1
  177. package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +0 -1
  178. package/utils/index.d.ts +0 -1
  179. package/components/SideBar/hooks/useCollapse/index.d.ts +0 -1
  180. package/components/SideBar/hooks/useCollapse/useCollapse.d.ts +0 -11
  181. package/components/SideBar/hooks/useCollapse/useCollapse.js +0 -23
  182. package/components/SideBar/subcomponents/Promotion/types.d.ts +0 -5
  183. package/components/SideBar/subcomponents/TreeGroupItems/index.d.ts +0 -5
  184. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +0 -69
  185. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +0 -9
  186. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.d.ts +0 -5
  187. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +0 -56
  188. package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/index.d.ts +0 -1
  189. package/components/SideBar/subcomponents/TreeGroupItems/types.d.ts +0 -4
  190. package/components/mui_extended/Divider/index.d.ts +0 -1
  191. package/components/mui_extended/Divider/index.js +0 -1
  192. package/storybook/components/SideBar/subcomponents/FooterPromotion/FooterPromotion.d.ts +0 -4
  193. package/storybook/components/SideBar/subcomponents/FooterPromotion/constants.d.ts +0 -3
  194. package/storybook/components/SideBar/subcomponents/FooterPromotion/index.d.ts +0 -1
  195. /package/components/{SideBar/hooks/useCollapse → DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick}/index.js +0 -0
  196. /package/components/SideBar/subcomponents/{TreeGroupItems → ContentGroups}/styles.d.ts +0 -0
  197. /package/components/SideBar/subcomponents/{TreeGroupItems → ContentGroups/subcomponents/ContainerMenuItemsMain}/subcomponents/ArrowIcon/index.d.ts +0 -0
  198. /package/components/SideBar/subcomponents/{TreeGroupItems → ContentGroups/subcomponents/ContainerMenuItemsMain}/subcomponents/ArrowIcon/types.d.ts +0 -0
  199. /package/components/SideBar/subcomponents/{Promotion → FooterSidebar}/styles.d.ts +0 -0
@@ -56,99 +56,57 @@ const splitLayoutStyles = {
56
56
  */
57
57
  splitResizeHandle: ({ theme, ownerState }) => ({
58
58
  position: "relative",
59
- display: "flex",
60
- alignItems: "center",
61
- justifyContent: "center",
62
59
  ...ownerState?.splitPosition === "none" && {
63
60
  display: "none"
64
61
  //Garantiza que no se muestre el splitResizeHandle cuando el splitPosition es none
65
62
  },
66
63
  "&.M4LSplitLayout-splitResizeHandle-horizontal": {
67
- width: theme.vars.size.baseSpacings.sp3,
64
+ width: "1px",
68
65
  margin: "1px 0px",
69
- "& .M4LIcon-root": {
70
- opacity: 0,
71
- zIndex: "1",
72
- transform: "rotate(90deg)",
73
- width: theme.vars.size.baseSpacings.sp5,
74
- height: theme.vars.size.baseSpacings.sp5,
75
- "& .M4LIcon-icon": {
76
- backgroundColor: theme.vars.palette.primary.focusVisible
77
- },
78
- "&::before": {
79
- content: `""`,
80
- position: "absolute",
81
- left: `calc(50% - ${theme.vars.size.baseSpacings.sp5} / 2)`,
82
- right: `calc(50% - ${theme.vars.size.baseSpacings.sp5} / 2)`,
83
- width: theme.vars.size.baseSpacings.sp5,
84
- height: theme.vars.size.baseSpacings.sp5,
85
- backgroundColor: theme.vars.palette.background.default,
86
- borderRadius: "50%",
87
- zIndex: "0"
88
- }
89
- },
90
- "&:after": {
91
- content: `""`,
92
- zIndex: "0",
93
- width: "2px",
94
- boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.border.disabled}`,
66
+ background: theme.vars.palette.border.default,
67
+ "&:before": {
95
68
  position: "absolute",
96
- height: "100%",
97
- left: "50%"
69
+ display: "flex",
70
+ content: `""`,
71
+ width: "4px",
72
+ height: "56px",
73
+ left: "-1px",
74
+ top: "calc(50% - 30.5px)",
75
+ background: theme.vars.palette.primary.enabled,
76
+ borderRadius: theme.vars.size.borderRadius["r0-5"],
77
+ zIndex: "1"
78
+ },
79
+ "&:hover:before": {
80
+ background: theme.vars.palette.primary.hover
81
+ },
82
+ "&:active:before": {
83
+ background: theme.vars.palette.primary.hover
98
84
  }
99
85
  },
100
86
  "&.M4LSplitLayout-splitResizeHandle-vertical": {
101
- position: "relative",
102
- // asegúrate de que sea el contenedor para posicionar bien los pseudo-elementos
103
- height: theme.vars.size.baseSpacings.sp3,
104
- "& .M4LIcon-root": {
105
- opacity: 0,
106
- zIndex: "1",
107
- width: theme.vars.size.baseSpacings.sp5,
108
- height: theme.vars.size.baseSpacings.sp5,
109
- "& .M4LIcon-icon": {
110
- backgroundColor: theme.vars.palette.primary.main
111
- },
112
- "&::before": {
113
- content: `""`,
114
- position: "absolute",
115
- top: `calc(50% - ${theme.vars.size.baseSpacings.sp5} / 2)`,
116
- bottom: `calc(50% - ${theme.vars.size.baseSpacings.sp5} / 2)`,
117
- width: theme.vars.size.baseSpacings.sp5,
118
- height: theme.vars.size.baseSpacings.sp5,
119
- backgroundColor: theme.vars.palette.background.default,
120
- borderRadius: "50%",
121
- zIndex: "0"
122
- }
123
- },
124
- "&::after": {
125
- content: `""`,
126
- zIndex: "0",
127
- height: "2px",
128
- boxShadow: `inset 0px 1px 0px 0px ${theme.vars.palette.border.disabled}`,
87
+ height: "1px",
88
+ margin: "0px 1px",
89
+ background: theme.vars.palette.border.default,
90
+ "&:before": {
129
91
  position: "absolute",
130
- width: "100%",
131
- top: "50%"
132
- }
133
- },
134
- // Aquí controlas ambos con hover del root
135
- "&:active, &:hover": {
136
- "& .M4LIcon-root": {
137
- opacity: 1
92
+ display: "flex",
93
+ content: `""`,
94
+ width: "56px",
95
+ height: "4px",
96
+ top: "-1px",
97
+ left: "calc(50% - 22.5px)",
98
+ background: theme.vars.palette.primary.enabled,
99
+ borderRadius: theme.vars.size.borderRadius["r0-5"],
100
+ zIndex: "1"
138
101
  },
139
- "&.M4LSplitLayout-splitResizeHandle-vertical": {
140
- "&:after": {
141
- boxShadow: `inset 0px 1px 0px 0px ${theme.vars.palette.primary.focusVisible}`
142
- }
102
+ "&:hover:before": {
103
+ background: theme.vars.palette.primary.hover
143
104
  },
144
- "&.M4LSplitLayout-splitResizeHandle-horizontal": {
145
- "&:after": {
146
- boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.primary.focusVisible}`
147
- }
105
+ "&:active:before": {
106
+ background: theme.vars.palette.primary.hover
148
107
  }
149
108
  }
150
- }),
151
- splitResizeHandleIcon: {}
109
+ })
152
110
  };
153
111
  export {
154
112
  splitLayoutStyles as s
@@ -2,9 +2,3 @@
2
2
  * Clave del componente SplitLayout
3
3
  */
4
4
  export declare const SPLIT_LAYOUT_KEY_COMPONENT = "M4LSplitLayout";
5
- /**
6
- * Iconos del componente SplitLayout
7
- */
8
- export declare const SPLIT_LAYOUT_ICONS: {
9
- handleIcon: string;
10
- };
@@ -1,8 +1,4 @@
1
1
  const SPLIT_LAYOUT_KEY_COMPONENT = "M4LSplitLayout";
2
- const SPLIT_LAYOUT_ICONS = {
3
- handleIcon: "frontend/components/split_layout/assets/icons/CaretCircleUpDown.svg"
4
- };
5
2
  export {
6
- SPLIT_LAYOUT_KEY_COMPONENT as S,
7
- SPLIT_LAYOUT_ICONS as a
3
+ SPLIT_LAYOUT_KEY_COMPONENT as S
8
4
  };
@@ -2,6 +2,5 @@ export declare enum SplitLayoutSlots {
2
2
  root = "root",
3
3
  splitMaster = "splitMaster",
4
4
  splitDetail = "splitDetail",
5
- splitResizeHandle = "splitResizeHandle",
6
- splitResizeHandleIcon = "splitResizeHandleIcon"
5
+ splitResizeHandle = "splitResizeHandle"
7
6
  }
@@ -3,7 +3,6 @@ var SplitLayoutSlots = /* @__PURE__ */ ((SplitLayoutSlots2) => {
3
3
  SplitLayoutSlots2["splitMaster"] = "splitMaster";
4
4
  SplitLayoutSlots2["splitDetail"] = "splitDetail";
5
5
  SplitLayoutSlots2["splitResizeHandle"] = "splitResizeHandle";
6
- SplitLayoutSlots2["splitResizeHandleIcon"] = "splitResizeHandleIcon";
7
6
  return SplitLayoutSlots2;
8
7
  })(SplitLayoutSlots || {});
9
8
  export {
@@ -71,6 +71,3 @@ export declare const SplitResizeHandleStyled: import('@emotion/styled').StyledCo
71
71
  }, "children" | "title" | "id" | "disabled" | "hidden" | "color" | "content" | "style" | "translate" | "className" | "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" | "tagName" | "hitAreaMargins" | "onDragging"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
72
72
  ownerState?: (Partial<import('../types').SplitLayoutOwnerState> & Record<string, unknown>) | undefined;
73
73
  }, {}, {}>;
74
- export declare const SplitResizeHandleIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
75
- ownerState?: (Partial<import('../types').SplitLayoutOwnerState> & Record<string, unknown>) | undefined;
76
- }, {}, {}>;
@@ -3,7 +3,6 @@ import { PanelGroup, Panel, PanelResizeHandle } from "react-resizable-panels";
3
3
  import { S as SPLIT_LAYOUT_KEY_COMPONENT } from "../constants.js";
4
4
  import { s as splitLayoutStyles } from "../SplitLayout.styles.js";
5
5
  import { S as SplitLayoutSlots } from "./SplitLayoutEnum.js";
6
- import { I as Icon } from "../../../Icon/Icon.js";
7
6
  const SplitLayoutRootStyled = styled(PanelGroup, {
8
7
  slot: SplitLayoutSlots.root,
9
8
  name: SPLIT_LAYOUT_KEY_COMPONENT
@@ -20,14 +19,9 @@ const SplitResizeHandleStyled = styled(PanelResizeHandle, {
20
19
  slot: SplitLayoutSlots.splitResizeHandle,
21
20
  name: SPLIT_LAYOUT_KEY_COMPONENT
22
21
  })(splitLayoutStyles.splitResizeHandle);
23
- const SplitResizeHandleIconStyled = styled(Icon, {
24
- slot: SplitLayoutSlots.splitResizeHandleIcon,
25
- name: SPLIT_LAYOUT_KEY_COMPONENT
26
- })(splitLayoutStyles.splitResizeHandleIcon);
27
22
  export {
28
23
  SplitLayoutRootStyled as S,
29
24
  SplitMasterStyled as a,
30
25
  SplitResizeHandleStyled as b,
31
- SplitResizeHandleIconStyled as c,
32
- SplitDetailStyled as d
26
+ SplitDetailStyled as c
33
27
  };
@@ -16,7 +16,7 @@ const rhfAutocompleteSyles = {
16
16
  */
17
17
  label: ({ theme, ownerState }) => ({
18
18
  ...ownerState?.disabled === true && {
19
- theme: theme.vars.palette.text.disabled
19
+ theme: theme.palette.text.disabled
20
20
  }
21
21
  })
22
22
  };
@@ -87,7 +87,6 @@ const RHFTextField = forwardRef((props, ref) => {
87
87
  InputLabelProps: { shrink: true },
88
88
  autoComplete,
89
89
  onChange: onInternalChange,
90
- variant,
91
90
  value: type === "number" ? isNaN(parseFloat(value)) ? "" : value : value || "",
92
91
  fullWidth: true,
93
92
  error: !!error,
@@ -6,8 +6,8 @@ const rhfTextFieldPasswordStyles = {
6
6
  root: ({ theme, ownerState }) => ({
7
7
  display: "flex",
8
8
  flexDirection: "column",
9
+ borderAlingment: "center",
9
10
  gap: theme.vars.size.baseSpacings["sp0-5"],
10
- width: "100%",
11
11
  "& .MuiFormControl-root": {
12
12
  minHeight: "100%",
13
13
  ...getHeightSizeStyles(
@@ -84,8 +84,7 @@ const accordionStyles = {
84
84
  * *******************************************************************
85
85
  */
86
86
  accordionLabel: ({ theme }) => ({
87
- color: theme.vars.palette.text.primary,
88
- paddingLeft: theme.vars.size.baseSpacings.sp1
87
+ color: theme.vars.palette.text.primary
89
88
  }),
90
89
  /**
91
90
  * *************************************************
@@ -102,22 +101,15 @@ const accordionStyles = {
102
101
  * **************************************************************
103
102
  */
104
103
  accordionDetails: ({ theme, ownerState }) => ({
105
- paddingLeft: theme.vars.size.baseSpacings.sp3,
106
- paddingRight: theme.vars.size.baseSpacings.sp3,
107
- paddingTop: theme.vars.size.baseSpacings.sp1,
108
- paddingBottom: theme.vars.size.baseSpacings.sp1,
104
+ padding: theme.vars.size.baseSpacings.sp3,
109
105
  background: theme.vars.palette.background.default,
110
106
  display: "flex",
111
107
  flexDirection: "column",
112
108
  alignItems: "flex-start",
113
109
  alignSelf: "stretch",
114
- overflow: "hidden",
115
110
  ...ownerState?.variant === "outlined" && {
116
111
  borderBottomLeftRadius: theme.size.borderRadius["r1-5"],
117
112
  borderBottomRightRadius: theme.size.borderRadius["r1-5"]
118
- },
119
- "& .MuiStack-root .M4LPropertyValue-root:last-of-type": {
120
- borderBottom: "unset"
121
113
  }
122
114
  })
123
115
  };
@@ -16,7 +16,6 @@ const Button = forwardRef((props, ref) => {
16
16
  size,
17
17
  variant = "contained",
18
18
  skeletonWidth = "15%",
19
- fullWidth = false,
20
19
  ...others
21
20
  } = props;
22
21
  const { currentSize } = useComponentSize(size);
@@ -32,8 +31,7 @@ const Button = forwardRef((props, ref) => {
32
31
  variant,
33
32
  disabled,
34
33
  paletteColor,
35
- color,
36
- fullWidth
34
+ color
37
35
  };
38
36
  if (isSkeleton) {
39
37
  return /* @__PURE__ */ jsx(SkeletonButtonStyled, { "data-testid": "SkeletonButton", width: skeletonWidth, ownerState: { ...ownerState } });
@@ -74,12 +74,7 @@ const buttonStyles = {
74
74
  minHeight: size
75
75
  };
76
76
  }
77
- ),
78
- ...ownerState?.fullWidth && {
79
- width: "100%",
80
- maxWidth: "unset",
81
- minWidth: "unset"
82
- }
77
+ )
83
78
  }),
84
79
  /**
85
80
  * Styles for the text of the button component.
@@ -21,7 +21,7 @@ export interface ButtonProps extends Omit<MUIButtonProps, 'size' | 'variant' | '
21
21
  /**
22
22
  * Owner state of the `Button` used to define internal style and behavior properties.
23
23
  */
24
- export interface ButtonOwnerState extends Pick<ButtonProps, 'size' | 'variant' | 'color' | 'disabled' | 'fullWidth'> {
24
+ export interface ButtonOwnerState extends Pick<ButtonProps, 'size' | 'variant' | 'color' | 'disabled'> {
25
25
  disabled?: boolean;
26
26
  paletteColor: PaletteColor;
27
27
  }
@@ -15,7 +15,6 @@ const NavLink = (props) => {
15
15
  skeletonWidth,
16
16
  color,
17
17
  dataTestId,
18
- whiteSpace = false,
19
18
  ...others
20
19
  } = props;
21
20
  const isSkeleton = useModuleSkeleton();
@@ -23,8 +22,7 @@ const NavLink = (props) => {
23
22
  const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
24
23
  const ownerState = {
25
24
  disabled,
26
- size,
27
- whiteSpace
25
+ size
28
26
  };
29
27
  return /* @__PURE__ */ jsx(
30
28
  RouterNavLinkRootStyled,
@@ -25,8 +25,7 @@ const navLinkStyles = {
25
25
  theme.generalSettings.isMobile,
26
26
  ownerState?.size || "small",
27
27
  "body"
28
- ),
29
- whiteSpace: ownerState?.whiteSpace ? "normal" : "nowrap"
28
+ )
30
29
  }
31
30
  }),
32
31
  /**
@@ -22,11 +22,9 @@ export interface NavLinkProps extends RouterNavLinkProps, Pick<TypographyProps,
22
22
  disabled?: boolean;
23
23
  /** Estilos personalizados para el componente. */
24
24
  dataTestId?: string;
25
- /** Define el white space del texto. Por defecto es 'normal'. */
26
- whiteSpace?: boolean;
27
25
  }
28
26
  /** Estado del propietario del NavLink.*/
29
- export type NavLinkOwnerState = Pick<NavLinkProps, 'color' | 'whiteSpace'> & {
27
+ export type NavLinkOwnerState = Pick<NavLinkProps, 'color'> & {
30
28
  /** Indica si el NavLink está deshabilitado. */
31
29
  disabled?: boolean;
32
30
  /** Define el tamaño de la etiqueta. Puede ser 'small' o 'medium'. Por defecto es 'medium'.*/
@@ -124,9 +124,8 @@ const tabStyles = {
124
124
  * Slot de Tipografía:
125
125
  * - **Estilos Generales**: Configura el color base del texto, aplicando especificidad para clases específicas.
126
126
  */
127
- tipography: ({ theme, ownerState }) => ({
127
+ tipography: ({ ownerState }) => ({
128
128
  cursor: "pointer",
129
- paddingLeft: theme.vars.size.baseSpacings.sp1,
130
129
  ...ownerState?.tabSkeleton && {
131
130
  width: "32px"
132
131
  }
@@ -21,11 +21,17 @@ const tabContentStyles = {
21
21
  zIndex: "0",
22
22
  top: "-1px",
23
23
  ...ownerState?.background ? {
24
- backgroundColor: theme.vars.palette.background.base,
24
+ backgroundColor: theme.vars.palette.background.neutral,
25
25
  paddingLeft: theme.vars.size.baseSpacings.sp2,
26
26
  paddingRight: theme.vars.size.baseSpacings.sp2,
27
27
  paddingBottom: theme.vars.size.baseSpacings.sp2
28
- } : {}
28
+ } : {},
29
+ "& .M4LStack-root": {
30
+ gap: `${theme.vars.size.baseSpacings.sp2} !important`
31
+ },
32
+ "&.M4LTabContent-root > div": {
33
+ gap: theme.vars.size.baseSpacings.sp2
34
+ }
29
35
  })
30
36
  };
31
37
  export {
@@ -25,7 +25,7 @@ const TextField = forwardRef(function TextField2(props, ref) {
25
25
  const { currentSize } = useComponentSize(size);
26
26
  const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
27
27
  const theme = useTheme();
28
- const paletteColor = error && theme.vars.palette.error || theme.vars.palette.primary;
28
+ const paletteColor = error && theme.palette.error || theme.palette.primary;
29
29
  const ownerState = {
30
30
  size: adjustedSize,
31
31
  disabled,
@@ -1,5 +1,5 @@
1
1
  import { g as getTypographyStyles } from "../../../utils/getTypographyStyles.js";
2
- import { a as getHeightSizeStyles, g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
2
+ import { a as getHeightSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
3
3
  import { T as TEXT_FIELD_CLASSES } from "./constants.js";
4
4
  const textFieldStyles = {
5
5
  /**
@@ -28,19 +28,17 @@ const textFieldStyles = {
28
28
  // transición
29
29
  transition: "all 0.2s ease",
30
30
  // Espaciado entre elementos
31
- ...getSizeStyles(
32
- theme,
31
+ ...getHeightSizeStyles(
32
+ theme.generalSettings.isMobile,
33
33
  ownerState?.size || "medium",
34
34
  "action",
35
- (size) => ({
36
- height: "auto",
37
- minHeight: size
38
- })
35
+ (height) => {
36
+ return {
37
+ height: "auto",
38
+ minHeight: height
39
+ };
40
+ }
39
41
  ),
40
- "& .MuiInputBase-input.MuiInputBase-inputMultiline": {
41
- paddingTop: theme.vars.size.baseSpacings.sp1,
42
- paddingBottom: theme.vars.size.baseSpacings.sp1
43
- },
44
42
  ...ownerState?.readOnly ? {
45
43
  backgroundColor: theme.vars.palette.background.neutral
46
44
  } : {}
@@ -61,7 +59,7 @@ const textFieldStyles = {
61
59
  "body"
62
60
  ),
63
61
  "&::placeholder": {
64
- color: theme.vars.palette.text.disabled
62
+ color: theme.palette.text.disabled
65
63
  },
66
64
  "&:-webkit-autofill": {
67
65
  backgroundColor: "transparent!important"
@@ -92,7 +90,7 @@ const textFieldStyles = {
92
90
  }
93
91
  },
94
92
  "&:not(.M4LTextField-readOnly ) .MuiInputBase-root:hover": {
95
- backgroundColor: theme.vars.palette.default.hoverOpacity,
93
+ backgroundColor: ownerState?.paletteColor?.hoverOpacity,
96
94
  ...ownerState?.error && {
97
95
  borderColor: `${ownerState?.paletteColor?.hover}!important`,
98
96
  "& .MuiInputAdornment-root .M4LIcon-icon": {
@@ -127,13 +125,13 @@ const textFieldStyles = {
127
125
  ...ownerState?.variant === "contained" && {
128
126
  [`&.${TEXT_FIELD_CLASSES.contained} .MuiInputBase-root`]: {
129
127
  border: "none",
130
- backgroundColor: ownerState?.readOnly ? theme.vars.palette.background.neutral : theme.vars.palette[ownerState?.color || "default"][ownerState?.error ? "toneOpacity" : "enabledOpacity"]
128
+ backgroundColor: ownerState?.readOnly ? theme.vars.palette.background.neutral : theme.vars.palette[ownerState?.color || "default"][ownerState?.error ? "toneOpacity" : "enabled"]
131
129
  },
132
130
  ...ownerState?.error && !ownerState?.readOnly && {
133
131
  border: theme.vars.size.borderStroke.actionInput,
134
132
  borderColor: `${ownerState?.paletteColor?.enabled}!important`
135
133
  },
136
- "&:not(.M4LTextField-readOnly) .MuiInputBase-root:focus-within": {
134
+ "&:not(.M4LTextField-readOnly ) .MuiInputBase-root:focus-within": {
137
135
  border: theme.vars.size.borderStroke.actionInput,
138
136
  borderColor: `${ownerState?.paletteColor?.enabled}!important`
139
137
  }
@@ -27,4 +27,3 @@ export * from './ToggleButton';
27
27
  export * from './ToggleIconButton';
28
28
  export * from './NavLink';
29
29
  export * from './Dialog';
30
- export * from './Divider';
@@ -32,7 +32,7 @@ const dynamicFilterAndSortStyles = {
32
32
  */
33
33
  stackRightActions: ({ theme }) => ({
34
34
  alignItems: "center",
35
- gap: theme.vars.size.baseSpacings.sp3,
35
+ gap: theme.vars.size.baseSpacings.sp1,
36
36
  width: "fit-content"
37
37
  })
38
38
  };
@@ -1,4 +1,7 @@
1
+ import { FilterFieldApplied } from '../../components/DynamicFilter/types';
2
+ import { SortFieldApplied } from '../../components/DynamicSort/types';
1
3
  import { UseDynamicFilterAndSortProps } from './types';
4
+ import { SortChangeEvent, FilterChangeEvent } from '../../components/DataGrid/types';
2
5
  /**
3
6
  * Hook para manejar los filtros y ordenamientos dinamicos
4
7
  */
@@ -7,4 +10,8 @@ export declare const useDynamicFilterAndSort: (props: UseDynamicFilterAndSortPro
7
10
  rightActions: import("react/jsx-runtime").JSX.Element;
8
11
  visibleCustomHeader: boolean;
9
12
  customHeaderComponent: import("react/jsx-runtime").JSX.Element;
13
+ getCurrentSorts: () => SortFieldApplied[];
14
+ handleChangeSortExternal: (sortApplied: SortChangeEvent) => void;
15
+ handleChangeFilterExternal: (event: FilterChangeEvent) => void;
16
+ getCurrentFilters: () => FilterFieldApplied[];
10
17
  };