@m4l/components 9.2.48 → 9.2.50-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 (171) hide show
  1. package/@types/types.d.ts +8 -1
  2. package/components/Chip/ChipStyles.js +1 -1
  3. package/components/Chip/types.d.ts +2 -1
  4. package/components/DataGrid/contexts/DataGridContext/index.js +1 -1
  5. package/components/DataGrid/contexts/FilterContext/index.js +1 -1
  6. package/components/DataGrid/dictionary.js +0 -3
  7. package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js +4 -3
  8. package/components/DataGrid/formatters/ColumnChipStatusFormatter/types.d.ts +4 -3
  9. package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js +4 -4
  10. package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js +2 -1
  11. package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +1 -1
  12. package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +4 -3
  13. package/components/DataGrid/slots/DataGridEnum.js +2 -2
  14. package/components/DataGrid/slots/DataGridSlot.js +1 -1
  15. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +2 -0
  16. package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.js +1 -1
  17. package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +2 -2
  18. package/components/DragResizeWindowRND/DragResizeWindowRND.js +0 -1
  19. package/components/DynamicFilter/DynamicFilter.styles.js +0 -1
  20. package/components/DynamicFilter/constants.d.ts +5 -2
  21. package/components/DynamicFilter/constants.js +9 -3
  22. package/components/DynamicFilter/dictionary.d.ts +40 -38
  23. package/components/DynamicFilter/dictionary.js +33 -39
  24. package/components/DynamicFilter/helpers/formatToInitialFilters.d.ts +3 -1
  25. package/components/DynamicFilter/helpers/formatToInitialFilters.js +30 -20
  26. package/components/DynamicFilter/helpers/formatToRowFilter.js +15 -6
  27. package/components/DynamicFilter/helpers/getPurgedInitialFiltersApplied.js +1 -1
  28. package/components/DynamicFilter/store/DynamicFilterContext.js +1 -1
  29. package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.d.ts +1 -1
  30. package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.js +4 -3
  31. package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +10 -3
  32. package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
  33. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.js +7 -7
  34. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.js +11 -8
  35. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.js +7 -7
  36. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.js +10 -7
  37. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.js +17 -9
  38. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index.js +13 -9
  39. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.d.ts +7 -7
  40. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.js +121 -46
  41. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +13 -11
  42. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.d.ts +8 -7
  43. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.js +127 -46
  44. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +11 -9
  45. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.js +11 -7
  46. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.js +10 -7
  47. package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.d.ts +1 -1
  48. package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +2 -1
  49. package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +1 -1
  50. package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -4
  51. package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.js +2 -2
  52. package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
  53. package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +28 -14
  54. package/components/DynamicFilter/types.d.ts +60 -18
  55. package/components/DynamicSort/dictionary.d.ts +1 -0
  56. package/components/DynamicSort/dictionary.js +1 -5
  57. package/components/DynamicSort/slots/DynamicSortSlots.js +1 -1
  58. package/components/DynamicSort/store/DynamicSortContext.js +1 -1
  59. package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +1 -1
  60. package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +28 -14
  61. package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
  62. package/components/GridLayout/GridLayout.js +1 -1
  63. package/components/GridLayout/styles.js +1 -1
  64. package/components/GridLayout/subcomponents/GridItem/index.js +1 -1
  65. package/components/GridLayout/subcomponents/Responsive/helper.js +1 -1
  66. package/components/GridLayout/subcomponents/Responsive/index.js +1 -1
  67. package/components/GridLayout/subcomponents/Responsive/responsiveUtils.js +3 -3
  68. package/components/GridLayout/subcomponents/withSizeProvider/index.js +1 -1
  69. package/components/Icon/Icon.js +1 -1
  70. package/components/Icon/constants.js +2 -2
  71. package/components/Icon/slots/IconSlots.js +1 -1
  72. package/components/Image/Image.js +1 -1
  73. package/components/Image/constant.js +2 -2
  74. package/components/Image/slots/ImageSlots.js +1 -1
  75. package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
  76. package/components/LanguagePopover/LanguagePopover.js +1 -1
  77. package/components/LoadingError/LoadingError.js +1 -1
  78. package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
  79. package/components/MFIsolationApp/MFIsolationApp.js +2 -2
  80. package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +1 -1
  81. package/components/NoItemSelected/NoItemSelected.js +1 -1
  82. package/components/NumberInput/hooks/useNumberInput/NumberInputReducer.js +1 -1
  83. package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +5 -3
  84. package/components/ObjectLogs/dictionary.js +1 -1
  85. package/components/Pager/Pager.styles.js +0 -8
  86. package/components/Pager/dicctionary.js +0 -5
  87. package/components/PrintingSystem/subcomponents/ChartNode/index.js +1 -1
  88. package/components/PropertyValue/PropertyValue.js +3 -3
  89. package/components/PropertyValue/PropertyValue.styles.js +4 -2
  90. package/components/PropertyValue/index.d.ts +1 -0
  91. package/components/PropertyValue/types.d.ts +0 -2
  92. package/components/ScrollBar/ScrollBar.js +1 -1
  93. package/components/SideBar/slots/SideBarEnum.js +4 -4
  94. package/components/SideBar/slots/SideBarSlots.js +1 -1
  95. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -1
  96. package/components/ToastContainer/ToastContainer.js +1 -1
  97. package/components/WindowBase/slots/WindowBaseSlots.js +1 -1
  98. package/components/animate/variants/bounce.js +1 -1
  99. package/components/animate/variants/fade.js +1 -1
  100. package/components/animate/variants/transition.js +2 -2
  101. package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
  102. package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
  103. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +1 -1
  104. package/components/areas/contexts/AreasContext/helpers/helper.js +14 -14
  105. package/components/areas/contexts/AreasContext/store.js +5 -5
  106. package/components/areas/icons.js +0 -8
  107. package/components/commercial/HamburgerMenu/classes/index.js +1 -1
  108. package/components/extended/React-Splitter-Layout/slots/SplitLayoutSlots.d.ts +9 -3
  109. package/components/extended/React-resizable-panels/SplitLayout.js +25 -5
  110. package/components/extended/React-resizable-panels/SplitLayout.styles.js +20 -6
  111. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +12 -4
  112. package/components/extended/React-resizable-panels/types.d.ts +7 -0
  113. package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
  114. package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.js +3 -3
  115. package/components/formatters/ChipStatusFormatter/types.d.ts +3 -2
  116. package/components/formatters/PeriodFormatter/PeriodFormatter.js +1 -1
  117. package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.js +2 -2
  118. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.js +1 -1
  119. package/components/hook-form/RHFNumberInput/index.d.ts +1 -0
  120. package/components/hook-form/RHFNumberInput/index.js +1 -0
  121. package/components/hook-form/RHFPeriod/RHFPeriod.js +1 -1
  122. package/components/hook-form/RHFTextField/RHFTextField.styles.js +1 -3
  123. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.js +1 -1
  124. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +1 -1
  125. package/components/hook-form/RHFormContext/classes/index.js +1 -1
  126. package/components/hook-form/RHFormContext/index.js +1 -1
  127. package/components/hook-form/index.d.ts +1 -1
  128. package/components/index.d.ts +1 -1
  129. package/components/mui_extended/Accordion/Accordion.js +1 -1
  130. package/components/mui_extended/Accordion/slots/AccordionSlots.js +2 -2
  131. package/components/mui_extended/Accordion/styles.js +1 -0
  132. package/components/mui_extended/Autocomplete/Autocomplete.js +25 -12
  133. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +1 -1
  134. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +3 -3
  135. package/components/mui_extended/CheckBox/CheckBox.js +1 -1
  136. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.js +2 -2
  137. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.js +1 -1
  138. package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -1
  139. package/components/mui_extended/ImageButton/utils/Clases/index.js +1 -1
  140. package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
  141. package/components/mui_extended/NavLink/NavLink.js +1 -1
  142. package/components/mui_extended/NavLink/constants.js +2 -2
  143. package/components/mui_extended/NavLink/slots/NavLinkSlots.js +1 -1
  144. package/components/mui_extended/Popover/Popover.js +1 -1
  145. package/components/mui_extended/Popover/Popover.styles.js +1 -5
  146. package/components/mui_extended/Popover/constants.js +2 -2
  147. package/components/mui_extended/Select/Select.js +1 -1
  148. package/components/mui_extended/Select/Select.styles.js +1 -1
  149. package/components/mui_extended/Select/constants.js +1 -1
  150. package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
  151. package/components/mui_extended/Tab/Tab.js +1 -1
  152. package/components/mui_extended/TabContent/TabContent.styles.js +2 -1
  153. package/components/mui_extended/TextField/constants.js +1 -1
  154. package/components/mui_extended/Tooltip/Tooltip.js +2 -2
  155. package/components/mui_extended/Tooltip/slots/TooltipSlots.js +2 -2
  156. package/components/mui_extended/Typography/Typography.js +1 -1
  157. package/components/mui_extended/Typography/constants.js +3 -3
  158. package/components/mui_extended/Typography/slots/typographySlots.js +1 -1
  159. package/components/popups/components/PopupsViewer/icons.js +0 -1
  160. package/hooks/useDataGridPersistence/constants.js +2 -2
  161. package/hooks/useDataGridPersistence/useDataGridPersistence.js +1 -1
  162. package/hooks/useDynamicFilterAndSort/styles.js +2 -0
  163. package/hooks/useDynamicFilterAndSort/types.d.ts +1 -0
  164. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +56 -12
  165. package/hooks/useSvgColor/constants.js +2 -2
  166. package/hooks/useSvgColor/helpers.js +1 -1
  167. package/hooks/useSvgColor/useSvgColor.js +1 -1
  168. package/index.js +109 -109
  169. package/mockServiceWorker.js +1 -1
  170. package/package.json +1 -6
  171. package/components/PropertyValue/styles.d.ts +0 -1
@@ -31,9 +31,9 @@ const IconStyled = styled(Icon, {
31
31
  })(checkBoxStyles.icon);
32
32
  export {
33
33
  CheckBoxRootStyled as C,
34
- IconCheckedStyled as I,
34
+ IconStyled as I,
35
35
  MUICheckboxStyled as M,
36
36
  SkeletonStyled as S,
37
37
  TypographyStyled as T,
38
- IconStyled as a
38
+ IconCheckedStyled as a
39
39
  };
@@ -1,5 +1,5 @@
1
1
  import { styled, Popper, Paper } from "@mui/material";
2
- import { DesktopDateTimePicker, MobileDateTimePicker, PickersCalendarHeader, PickersDay } from "@mui/x-date-pickers";
2
+ import { PickersCalendarHeader, PickersDay, MobileDateTimePicker, DesktopDateTimePicker } from "@mui/x-date-pickers";
3
3
  import { d as dateTimePickerStyles } from "../DateTimePicker.styles.js";
4
4
  import { D as DATE_TIME_PICKER_KEY_COMPONENT } from "../constants.js";
5
5
  import { D as DateTimePickerEnum } from "./DateTimePickerEnum.js";
@@ -3,8 +3,8 @@ import { styled } from "@mui/material/styles";
3
3
  import { i as iconButtonStyles } from "../IconButton.styles.js";
4
4
  import { a as ICON_BUTTON_KEY_COMPONENT } from "../constants.js";
5
5
  import { I as IconButtonSlots } from "./IconButtonEnum.js";
6
- import { S as Skeleton } from "../../Skeleton/Skeleton.js";
7
6
  import { I as Icon } from "../../../Icon/Icon.js";
7
+ import { S as Skeleton } from "../../Skeleton/Skeleton.js";
8
8
  const StyledMUIIconButton = styled(IconButton, {
9
9
  name: ICON_BUTTON_KEY_COMPONENT,
10
10
  slot: IconButtonSlots.styledMUIIconButton
@@ -1,4 +1,4 @@
1
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
1
+ import { generateUtilityClass, generateUtilityClasses } from "@mui/material";
2
2
  import { unstable_composeClasses } from "@mui/base";
3
3
  import { c as componentName } from "./constants.js";
4
4
  generateUtilityClasses(componentName, [
@@ -3,8 +3,8 @@ import { MenuItem } from "@mui/material";
3
3
  import { a as MENUITEM_KEY_COMPONENT } from "../constants.js";
4
4
  import { m as menuItemStyles } from "../MenuItem.styles.js";
5
5
  import { M as MenuItemSlots } from "./MenuItemEnum.js";
6
- import { T as Typography } from "../../Typography/Typography.js";
7
6
  import { S as Skeleton } from "../../Skeleton/Skeleton.js";
7
+ import { T as Typography } from "../../Typography/Typography.js";
8
8
  import { I as Icon } from "../../../Icon/Icon.js";
9
9
  const MenuItemRootStyled = styled(MenuItem, {
10
10
  name: MENUITEM_KEY_COMPONENT,
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { R as RouterNavLinkRootStyled, a as RouterNavLinkStyled, T as TypographyStyled, S as SkeletonStyled } from "./slots/NavLinkSlots.js";
3
3
  import { useModuleSkeleton } from "@m4l/core";
4
- import { N as NAV_LINK_KEY_COMPONENT, c as classNavLinkRoot, a as NAV_LINK_SPECIFY } from "./constants.js";
4
+ import { c as classNavLinkRoot, N as NAV_LINK_SPECIFY, a as NAV_LINK_KEY_COMPONENT } from "./constants.js";
5
5
  import { N as NavLinkSlots } from "./slots/NavLinkEnum.js";
6
6
  import { clsx } from "clsx";
7
7
  import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
@@ -4,7 +4,7 @@ const NAV_LINK_KEY_COMPONENT = "M4LNavLink";
4
4
  const NAV_LINK_SPECIFY = "M4lclassCssSpecificity";
5
5
  const classNavLinkRoot = getComponentClasses(NAV_LINK_KEY_COMPONENT, NavLinkSlots);
6
6
  export {
7
- NAV_LINK_KEY_COMPONENT as N,
8
- NAV_LINK_SPECIFY as a,
7
+ NAV_LINK_SPECIFY as N,
8
+ NAV_LINK_KEY_COMPONENT as a,
9
9
  classNavLinkRoot as c
10
10
  };
@@ -1,7 +1,7 @@
1
1
  import { NavLink } from "react-router-dom";
2
2
  import { styled } from "@mui/material/styles";
3
3
  import { N as NavLinkSlots } from "./NavLinkEnum.js";
4
- import { N as NAV_LINK_KEY_COMPONENT } from "../constants.js";
4
+ import { a as NAV_LINK_KEY_COMPONENT } from "../constants.js";
5
5
  import { S as Skeleton } from "../../Skeleton/Skeleton.js";
6
6
  import { n as navLinkStyles } from "../NavLink.styles.js";
7
7
  import { T as Typography } from "../../Typography/Typography.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
3
- import { P as POPOVER_CLASS_NAME_SPECIFY, a as POPOVER_PREFIX } from "./constants.js";
3
+ import { P as POPOVER_PREFIX, a as POPOVER_CLASS_NAME_SPECIFY } from "./constants.js";
4
4
  import clsx from "clsx";
5
5
  import { P as PopoverRootStyled } from "./slots/PopoverSlots.js";
6
6
  import { P as PopoverSlots } from "./slots/PopoverEnum.js";
@@ -9,11 +9,7 @@ const popoverStyles = {
9
9
  borderRadius: theme.vars.size.borderRadius.r1
10
10
  }
11
11
  }
12
- }),
13
- /**
14
- * Styles applied to the Popover arrow element.
15
- */
16
- arrow: () => ({})
12
+ })
17
13
  };
18
14
  export {
19
15
  popoverStyles as p
@@ -2,7 +2,7 @@ const POPOVER_KEY_COMPONENT = "M4LPopover";
2
2
  const POPOVER_PREFIX = "Popover";
3
3
  const POPOVER_CLASS_NAME_SPECIFY = "M4lclassCssSpecificity";
4
4
  export {
5
- POPOVER_CLASS_NAME_SPECIFY as P,
6
- POPOVER_PREFIX as a,
5
+ POPOVER_PREFIX as P,
6
+ POPOVER_CLASS_NAME_SPECIFY as a,
7
7
  POPOVER_KEY_COMPONENT as b
8
8
  };
@@ -4,7 +4,7 @@ import { useTheme } from "@mui/material";
4
4
  import clsx from "clsx";
5
5
  import { forwardRef, useMemo, useState, useCallback } from "react";
6
6
  import { A as ArrowDownStyled, a as AdormentStyled, S as SelectRootStyled, b as SkeletonSelectStyled, M as MenuItemListStyled, c as MenuItemNoOptionStyled, L as LabelPlaceholerStyled, R as RenderValueContainerStyled, d as RenderValueTypography } from "./slots/SelectSlots.js";
7
- import { S as SELECT_CLASSES, a as SELECT_KEY_COMPONENT, I as ICON_ARROW_DOWN } from "./constants.js";
7
+ import { I as ICON_ARROW_DOWN, S as SELECT_CLASSES, a as SELECT_KEY_COMPONENT } from "./constants.js";
8
8
  import { S as SELECT_DICTIONARY } from "./dictionary.js";
9
9
  import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
10
10
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
@@ -1,5 +1,5 @@
1
1
  import { S as SELECT_CLASSES } from "./constants.js";
2
- import { a as getHeightSizeStyles, g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
2
+ import { g as getSizeStyles, a as getHeightSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
3
3
  const selectStyles = {
4
4
  /**
5
5
  * Estilos para el componente Select
@@ -1,5 +1,5 @@
1
1
  import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
2
- import { S as SelectSlots, a as SelectComplementaryClasses } from "./slots/SelectEnum.js";
2
+ import { a as SelectComplementaryClasses, S as SelectSlots } from "./slots/SelectEnum.js";
3
3
  const SELECT_KEY_COMPONENT = "M4LSelect";
4
4
  const ICON_ARROW_DOWN = "frontend/components/select/arrow_down.svg";
5
5
  const COMBINATED_TEXTFIELD_ENUMS = {
@@ -4,8 +4,8 @@ import { a as SELECT_KEY_COMPONENT } from "../constants.js";
4
4
  import { s as selectStyles } from "../Select.styles.js";
5
5
  import { S as SelectSlots } from "./SelectEnum.js";
6
6
  import { I as IconButton } from "../../IconButton/IconButton.js";
7
- import { M as MenuItem } from "../../MenuItem/MenuItem.js";
8
7
  import { S as Skeleton } from "../../Skeleton/Skeleton.js";
8
+ import { M as MenuItem } from "../../MenuItem/MenuItem.js";
9
9
  import { T as Typography } from "../../Typography/Typography.js";
10
10
  import { I as Icon } from "../../../Icon/Icon.js";
11
11
  const SelectRootStyled = () => styled(Select, {
@@ -5,7 +5,7 @@ import { T as TabSlots } from "./Slots/TabEnum.js";
5
5
  import { T as TAB_KEY_COMPONENT } from "./constants.js";
6
6
  import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
7
7
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
8
- import { R as RootStyled, T as TypographyStyled, I as IconStyled } from "./Slots/TabSlots.js";
8
+ import { R as RootStyled, I as IconStyled, T as TypographyStyled } from "./Slots/TabSlots.js";
9
9
  function Tab(props) {
10
10
  const {
11
11
  size = "medium",
@@ -6,7 +6,7 @@ const tabContentStyles = {
6
6
  padding: theme.vars.size.baseSpacings.sp3,
7
7
  display: "flex",
8
8
  overflow: "hidden",
9
- height: "100%",
9
+ // height: '100%',
10
10
  flexDirection: "column",
11
11
  gap: theme.vars.size.baseSpacings.sp2,
12
12
  background: theme.vars.palette.background.default,
@@ -14,6 +14,7 @@ const tabContentStyles = {
14
14
  borderTopLeftRadius: theme.vars.size.borderRadius.r0,
15
15
  position: "relative",
16
16
  flex: 1,
17
+ flexGrow: 1,
17
18
  border: theme.vars.size.borderStroke.container,
18
19
  borderColor: theme.vars.palette?.border.secondary,
19
20
  boxSizing: "border-box",
@@ -1,5 +1,5 @@
1
1
  import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
2
- import { T as TextFieldSlots, a as TexFieldComplementaryClasses } from "./slots/TextFieldEnum.js";
2
+ import { a as TexFieldComplementaryClasses, T as TextFieldSlots } from "./slots/TextFieldEnum.js";
3
3
  const TEXT_FIELD_KEY_COMPONENT = "M4LTextField";
4
4
  const COMBINATED_TEXTFIELD_ENUMS = {
5
5
  ...TextFieldSlots,
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { R as RootStyled, T as TextStyled, a as TooltipStyled } from "./slots/TooltipSlots.js";
3
- import { T as TOOLTIP_CLASSES, D as DEFAULT_TOOLTIP_OFFSET } from "./constants.js";
2
+ import { R as RootStyled, T as TooltipStyled, a as TextStyled } from "./slots/TooltipSlots.js";
3
+ import { D as DEFAULT_TOOLTIP_OFFSET, T as TOOLTIP_CLASSES } from "./constants.js";
4
4
  import clsx from "clsx";
5
5
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
6
6
  const Tooltip = (props) => {
@@ -17,6 +17,6 @@ const TooltipStyled = styled("div", {
17
17
  })(tooltipStyles?.tooltip);
18
18
  export {
19
19
  RootStyled as R,
20
- TextStyled as T,
21
- TooltipStyled as a
20
+ TooltipStyled as T,
21
+ TextStyled as a
22
22
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
3
  import { useModuleSkeleton } from "@m4l/core";
4
- import { T as TYPOGRAPHY_CLASS_NAME_SPECIFY, a as TYPOGRAPHY_CLASSES, b as TYPOGRAPHY_KEY_COMPONENT } from "./constants.js";
4
+ import { T as TYPOGRAPHY_CLASSES, a as TYPOGRAPHY_KEY_COMPONENT, b as TYPOGRAPHY_CLASS_NAME_SPECIFY } from "./constants.js";
5
5
  import { T as TypographySlots } from "./slots/typographyEnum.js";
6
6
  import { S as StyledMUITypography, a as StyledSkeleton } from "./slots/typographySlots.js";
7
7
  import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
@@ -4,7 +4,7 @@ const TYPOGRAPHY_KEY_COMPONENT = "M4LTypography";
4
4
  const TYPOGRAPHY_CLASS_NAME_SPECIFY = "M4lclassCssSpecificity";
5
5
  const TYPOGRAPHY_CLASSES = getComponentClasses(TYPOGRAPHY_KEY_COMPONENT, TypographySlots);
6
6
  export {
7
- TYPOGRAPHY_CLASS_NAME_SPECIFY as T,
8
- TYPOGRAPHY_CLASSES as a,
9
- TYPOGRAPHY_KEY_COMPONENT as b
7
+ TYPOGRAPHY_CLASSES as T,
8
+ TYPOGRAPHY_KEY_COMPONENT as a,
9
+ TYPOGRAPHY_CLASS_NAME_SPECIFY as b
10
10
  };
@@ -1,6 +1,6 @@
1
1
  import { Typography } from "@mui/material";
2
2
  import { styled } from "@mui/material/styles";
3
- import { b as TYPOGRAPHY_KEY_COMPONENT } from "../constants.js";
3
+ import { a as TYPOGRAPHY_KEY_COMPONENT } from "../constants.js";
4
4
  import { T as TypographySlots } from "./typographyEnum.js";
5
5
  import { t as typographyStyles } from "../typography.styles.js";
6
6
  import { S as Skeleton } from "../../Skeleton/Skeleton.js";
@@ -1,5 +1,4 @@
1
1
  const POPUPS_ICONS = {
2
- CLOSE: "close.svg",
3
2
  EDITION_INFO: "edition_info.svg"
4
3
  };
5
4
  export {
@@ -1,6 +1,6 @@
1
1
  const COOKIE_COLUMNS_WIDTHS = "columns_widths";
2
2
  const COOKIE_COLUMNS_CONFIG = "columns_config";
3
3
  export {
4
- COOKIE_COLUMNS_WIDTHS as C,
5
- COOKIE_COLUMNS_CONFIG as a
4
+ COOKIE_COLUMNS_CONFIG as C,
5
+ COOKIE_COLUMNS_WIDTHS as a
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { useState, useCallback } from "react";
2
2
  import { g as getColumnsConfigCookie } from "./helpers.js";
3
- import { C as COOKIE_COLUMNS_WIDTHS, a as COOKIE_COLUMNS_CONFIG } from "./constants.js";
3
+ import { C as COOKIE_COLUMNS_CONFIG, a as COOKIE_COLUMNS_WIDTHS } from "./constants.js";
4
4
  import { u as useWindowToolsMF } from "../../components/WindowBase/hooks/useWindowToolsMF/index.js";
5
5
  const useDataGridPersistence = (props) => {
6
6
  const { prefixCookie } = props;
@@ -21,6 +21,8 @@ const dynamicFilterAndSortStyles = {
21
21
  flexDirection: theme.generalSettings.isMobile ? "column" : "row",
22
22
  gap: theme.vars.size.baseSpacings.sp3,
23
23
  padding: `0 ${theme.vars.size.baseSpacings.sp1}`,
24
+ height: "auto",
25
+ alignItems: "center",
24
26
  [`& [class*="${DYNAMIC_FILTER_KEY_COMPONENT}-root"]`]: {
25
27
  display: ownerState.showDynamicFilter ? "block" : "none",
26
28
  width: "auto",
@@ -28,6 +28,7 @@ export interface UseDynamicFilterAndSortProps extends Pick<DynamicFilterProps, '
28
28
  dataTestId?: string;
29
29
  sorts?: DynamicSortProps['fields'];
30
30
  filterSortAutomatic?: boolean;
31
+ withExternalRefresh?: boolean;
31
32
  }
32
33
  export interface DynamicFilterAndSortOwnerState {
33
34
  showDynamicFilter: boolean;
@@ -27,7 +27,8 @@ const useDynamicFilterAndSort = (props) => {
27
27
  setCookie,
28
28
  getCookie,
29
29
  filterSortAutomatic = true,
30
- visibleRefresh
30
+ visibleRefresh,
31
+ withExternalRefresh
31
32
  } = props;
32
33
  const { host_static_assets, environment_assets } = useEnvironment();
33
34
  const [togglesLeftActions, setTogglesLeftActions] = useState(() => ({ filter: initialFilterToggleed, sort: initialSortToggleed }));
@@ -45,7 +46,7 @@ const useDynamicFilterAndSort = (props) => {
45
46
  sort: initialAppliedSorts?.length === 0
46
47
  }));
47
48
  const visibleCustomHeader = useMemo(() => togglesLeftActions.filter || togglesLeftActions.sort, [togglesLeftActions]);
48
- const sortIconUrl = `${host_static_assets}/${environment_assets}/${ASSETS.refresh}`;
49
+ const refreshIconUrl = `${host_static_assets}/${environment_assets}/${ASSETS.refresh}`;
49
50
  const eventRefs = useRef({
50
51
  eventFilters: { filters: initialAppliedFilters, rawFilters: [] },
51
52
  eventSorts: { sorts: initialAppliedSorts, rawSorts: [] }
@@ -53,6 +54,13 @@ const useDynamicFilterAndSort = (props) => {
53
54
  const handleToggles = (key) => {
54
55
  setTogglesLeftActions((prev) => ({ ...prev, [key]: !prev[key] }));
55
56
  };
57
+ const isValidFilters = useCallback(() => {
58
+ if (fields.some((field) => field.presence === "fixed")) {
59
+ const filters = eventRefs.current?.eventFilters?.filters;
60
+ return !(!filters || filters.length === 0);
61
+ }
62
+ return true;
63
+ }, [eventRefs, fields]);
56
64
  const handleChangeFilters = useCallback((filters, rawFilters) => {
57
65
  setInvisibleBadge((prev) => ({ ...prev, filter: filters.length === 0 }));
58
66
  if (eventRefs.current?.eventFilters?.filters && !deepEqual(eventRefs.current?.eventFilters?.filters, filters)) {
@@ -76,8 +84,12 @@ const useDynamicFilterAndSort = (props) => {
76
84
  ...eventRefs.current,
77
85
  eventSorts: { sorts: Sorts, rawSorts }
78
86
  };
79
- onChangeFilterSort(eventRefs.current);
80
- }, [onChangeFilterSort, prefixCookie, setCookie, setInvisibleBadge]);
87
+ if (isValidFilters()) {
88
+ onChangeFilterSort(eventRefs.current);
89
+ } else {
90
+ refOnChangeFilterSort.current++;
91
+ }
92
+ }, [onChangeFilterSort, prefixCookie, setCookie, setInvisibleBadge, isValidFilters]);
81
93
  const onRefresh = useCallback(() => {
82
94
  if (fireOnChangeFilterRef.current) {
83
95
  fireOnChangeFilterRef.current.fireOnChangeFilter();
@@ -85,8 +97,10 @@ const useDynamicFilterAndSort = (props) => {
85
97
  if (fireOnChangeSortRef.current) {
86
98
  fireOnChangeSortRef.current.fireOnChangeSort();
87
99
  }
88
- onChangeFilterSort(eventRefs.current);
89
- }, [onChangeFilterSort, fireOnChangeFilterRef]);
100
+ if (isValidFilters()) {
101
+ onChangeFilterSort(eventRefs.current);
102
+ }
103
+ }, [onChangeFilterSort, fireOnChangeFilterRef, isValidFilters]);
90
104
  const leftActions = useMemo(() => /* @__PURE__ */ jsxs(StackLeftActionsStyled, { direction: "row", ownerState: {}, ...getPropDataTestId(M4LDYNAMIC_KEY_FILTER_AND_SORT, DynamicFilterAndSortSlots.stackLeftActions, dataTestId), children: [
91
105
  /* @__PURE__ */ jsx(Badge, { badgeContent: "", size: "small", color: "primary", invisible: invisibleBadge.filter, children: /* @__PURE__ */ jsx(ToggleIconButton, { icon: `${host_static_assets}/${environment_assets}/${ICON_PATH_FILTER}`, isToggled: togglesLeftActions.filter, onToggle: () => handleToggles("filter") }) }),
92
106
  /* @__PURE__ */ jsx(Badge, { badgeContent: "", size: "small", color: "primary", invisible: invisibleBadge.sort, children: /* @__PURE__ */ jsx(ToggleIconButton, { icon: `${host_static_assets}/${environment_assets}/${ICON_PATH_SORT}`, isToggled: togglesLeftActions.sort, onToggle: () => handleToggles("sort") }) })
@@ -101,7 +115,7 @@ const useDynamicFilterAndSort = (props) => {
101
115
  /* @__PURE__ */ jsx(
102
116
  IconButton,
103
117
  {
104
- icon: sortIconUrl,
118
+ icon: refreshIconUrl,
105
119
  "aria-label": "refresh",
106
120
  onClick: onRefresh
107
121
  }
@@ -109,12 +123,42 @@ const useDynamicFilterAndSort = (props) => {
109
123
  rightActions
110
124
  ]
111
125
  }
112
- ), [dataTestId, rightActions, sortIconUrl, onRefresh]);
126
+ ), [dataTestId, rightActions, refreshIconUrl, onRefresh]);
113
127
  const dynamicsFiltersSorts = useMemo(() => /* @__PURE__ */ jsxs(Fragment, { children: [
114
- /* @__PURE__ */ jsx(DynamicFilter, { ref: fireOnChangeFilterRef, visibleRefresh, automatic: filterSortAutomatic, fields, initialAppliedFilters, onChangeFilters: handleChangeFilters, withAllField }),
115
- sorts ? /* @__PURE__ */ jsx(DynamicSort, { ref: fireOnChangeSortRef, visibleRefresh, automatic: filterSortAutomatic, fields: sorts, initialAppliedSorts, onChangeSorts: handleChangeSorts }) : null
116
- ] }), [fields, sorts, initialAppliedFilters, initialAppliedSorts, handleChangeFilters, handleChangeSorts, withAllField, filterSortAutomatic, visibleRefresh]);
117
- const customHeaderComponent = useMemo(() => /* @__PURE__ */ jsx(StackCustomHeaderStyled, { direction: "row", ownerState: { showDynamicFilter: togglesLeftActions.filter, showDynamicSort: togglesLeftActions.sort }, ...getPropDataTestId(M4LDYNAMIC_KEY_FILTER_AND_SORT, DynamicFilterAndSortSlots.stackCustomHeader, dataTestId), children: dynamicsFiltersSorts }), [togglesLeftActions]);
128
+ /* @__PURE__ */ jsx(
129
+ DynamicFilter,
130
+ {
131
+ ref: fireOnChangeFilterRef,
132
+ visibleRefresh,
133
+ automatic: filterSortAutomatic,
134
+ fields,
135
+ initialAppliedFilters,
136
+ onChangeFilters: handleChangeFilters,
137
+ withAllField
138
+ }
139
+ ),
140
+ sorts ? /* @__PURE__ */ jsx(
141
+ DynamicSort,
142
+ {
143
+ ref: fireOnChangeSortRef,
144
+ visibleRefresh,
145
+ automatic: filterSortAutomatic,
146
+ fields: sorts,
147
+ initialAppliedSorts,
148
+ onChangeSorts: handleChangeSorts
149
+ }
150
+ ) : null,
151
+ withExternalRefresh && /* @__PURE__ */ jsx(IconButton, { icon: refreshIconUrl, "aria-label": "refresh", onClick: onRefresh })
152
+ ] }), [visibleRefresh, filterSortAutomatic, fields, initialAppliedFilters, handleChangeFilters, withAllField, sorts, initialAppliedSorts, handleChangeSorts, withExternalRefresh, refreshIconUrl, onRefresh]);
153
+ const customHeaderComponent = useMemo(() => /* @__PURE__ */ jsx(
154
+ StackCustomHeaderStyled,
155
+ {
156
+ direction: "row",
157
+ ownerState: { showDynamicFilter: togglesLeftActions.filter, showDynamicSort: togglesLeftActions.sort },
158
+ ...getPropDataTestId(M4LDYNAMIC_KEY_FILTER_AND_SORT, DynamicFilterAndSortSlots.stackCustomHeader, dataTestId),
159
+ children: dynamicsFiltersSorts
160
+ }
161
+ ), [togglesLeftActions]);
118
162
  return {
119
163
  leftActions,
120
164
  rightActions: finalRightActions,
@@ -31,8 +31,8 @@ const SVG_ICON_ERROR = "data:image/svg+xml;base64," + btoa(`<svg viewBox="0 0 64
31
31
  </svg>`);
32
32
  export {
33
33
  REPLACEMENT_PRYMARY_COLOR as R,
34
- SVG_CACHE_PREFIX as S,
35
- SKELETON_SVG_ICON as a,
34
+ SKELETON_SVG_ICON as S,
35
+ SVG_CACHE_PREFIX as a,
36
36
  SVG_ICON_ERROR as b,
37
37
  REPLACEMENT_SECONDARY_COLOR as c
38
38
  };
@@ -1,4 +1,4 @@
1
- import { S as SVG_CACHE_PREFIX, a as SKELETON_SVG_ICON } from "./constants.js";
1
+ import { S as SKELETON_SVG_ICON, a as SVG_CACHE_PREFIX } from "./constants.js";
2
2
  function purgedColor(color) {
3
3
  return color.replace(/[#\s]/g, "");
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { useState, useEffect } from "react";
2
- import { b as SVG_ICON_ERROR, S as SVG_CACHE_PREFIX, R as REPLACEMENT_PRYMARY_COLOR, c as REPLACEMENT_SECONDARY_COLOR } from "./constants.js";
2
+ import { b as SVG_ICON_ERROR, a as SVG_CACHE_PREFIX, R as REPLACEMENT_PRYMARY_COLOR, c as REPLACEMENT_SECONDARY_COLOR } from "./constants.js";
3
3
  import { g as getSVG, p as purgedColor } from "./helpers.js";
4
4
  function useSvgColor(props) {
5
5
  const { src, cacheKey, primaryColor, secondaryColor = "#FFFFFF", skeletonIcon, fallBackIcon = SVG_ICON_ERROR } = props;