@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.
- package/@types/types.d.ts +8 -1
- package/components/Chip/ChipStyles.js +1 -1
- package/components/Chip/types.d.ts +2 -1
- package/components/DataGrid/contexts/DataGridContext/index.js +1 -1
- package/components/DataGrid/contexts/FilterContext/index.js +1 -1
- package/components/DataGrid/dictionary.js +0 -3
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/formatter.js +4 -3
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/types.d.ts +4 -3
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js +4 -4
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js +2 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +4 -3
- package/components/DataGrid/slots/DataGridEnum.js +2 -2
- package/components/DataGrid/slots/DataGridSlot.js +1 -1
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +2 -0
- package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +2 -2
- package/components/DragResizeWindowRND/DragResizeWindowRND.js +0 -1
- package/components/DynamicFilter/DynamicFilter.styles.js +0 -1
- package/components/DynamicFilter/constants.d.ts +5 -2
- package/components/DynamicFilter/constants.js +9 -3
- package/components/DynamicFilter/dictionary.d.ts +40 -38
- package/components/DynamicFilter/dictionary.js +33 -39
- package/components/DynamicFilter/helpers/formatToInitialFilters.d.ts +3 -1
- package/components/DynamicFilter/helpers/formatToInitialFilters.js +30 -20
- package/components/DynamicFilter/helpers/formatToRowFilter.js +15 -6
- package/components/DynamicFilter/helpers/getPurgedInitialFiltersApplied.js +1 -1
- package/components/DynamicFilter/store/DynamicFilterContext.js +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.js +4 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +10 -3
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.js +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.js +11 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.js +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.js +10 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.js +17 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index.js +13 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.d.ts +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.js +121 -46
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +13 -11
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.d.ts +8 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.js +127 -46
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +11 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.js +11 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.js +10 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +2 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -4
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.js +2 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +28 -14
- package/components/DynamicFilter/types.d.ts +60 -18
- package/components/DynamicSort/dictionary.d.ts +1 -0
- package/components/DynamicSort/dictionary.js +1 -5
- package/components/DynamicSort/slots/DynamicSortSlots.js +1 -1
- package/components/DynamicSort/store/DynamicSortContext.js +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +1 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +28 -14
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/GridLayout/GridLayout.js +1 -1
- package/components/GridLayout/styles.js +1 -1
- package/components/GridLayout/subcomponents/GridItem/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/helper.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/index.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.js +3 -3
- package/components/GridLayout/subcomponents/withSizeProvider/index.js +1 -1
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/constants.js +2 -2
- package/components/Icon/slots/IconSlots.js +1 -1
- package/components/Image/Image.js +1 -1
- package/components/Image/constant.js +2 -2
- package/components/Image/slots/ImageSlots.js +1 -1
- package/components/Image/subcomponents/IntersectComponent/index.js +1 -1
- package/components/LanguagePopover/LanguagePopover.js +1 -1
- package/components/LoadingError/LoadingError.js +1 -1
- package/components/LoadingError/slots/LoadingErrorSlots.js +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +2 -2
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +1 -1
- package/components/NoItemSelected/NoItemSelected.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/NumberInputReducer.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +5 -3
- package/components/ObjectLogs/dictionary.js +1 -1
- package/components/Pager/Pager.styles.js +0 -8
- package/components/Pager/dicctionary.js +0 -5
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +1 -1
- package/components/PropertyValue/PropertyValue.js +3 -3
- package/components/PropertyValue/PropertyValue.styles.js +4 -2
- package/components/PropertyValue/index.d.ts +1 -0
- package/components/PropertyValue/types.d.ts +0 -2
- package/components/ScrollBar/ScrollBar.js +1 -1
- package/components/SideBar/slots/SideBarEnum.js +4 -4
- package/components/SideBar/slots/SideBarSlots.js +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -1
- package/components/ToastContainer/ToastContainer.js +1 -1
- package/components/WindowBase/slots/WindowBaseSlots.js +1 -1
- package/components/animate/variants/bounce.js +1 -1
- package/components/animate/variants/fade.js +1 -1
- package/components/animate/variants/transition.js +2 -2
- package/components/areas/components/AreasAdmin/AreasAdmin.js +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +14 -14
- package/components/areas/contexts/AreasContext/store.js +5 -5
- package/components/areas/icons.js +0 -8
- package/components/commercial/HamburgerMenu/classes/index.js +1 -1
- package/components/extended/React-Splitter-Layout/slots/SplitLayoutSlots.d.ts +9 -3
- package/components/extended/React-resizable-panels/SplitLayout.js +25 -5
- package/components/extended/React-resizable-panels/SplitLayout.styles.js +20 -6
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +12 -4
- package/components/extended/React-resizable-panels/types.d.ts +7 -0
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.js +3 -3
- package/components/formatters/ChipStatusFormatter/types.d.ts +3 -2
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +1 -1
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.js +2 -2
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.js +1 -1
- package/components/hook-form/RHFNumberInput/index.d.ts +1 -0
- package/components/hook-form/RHFNumberInput/index.js +1 -0
- package/components/hook-form/RHFPeriod/RHFPeriod.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +1 -3
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +1 -1
- package/components/hook-form/RHFormContext/classes/index.js +1 -1
- package/components/hook-form/RHFormContext/index.js +1 -1
- package/components/hook-form/index.d.ts +1 -1
- package/components/index.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Accordion/slots/AccordionSlots.js +2 -2
- package/components/mui_extended/Accordion/styles.js +1 -0
- package/components/mui_extended/Autocomplete/Autocomplete.js +25 -12
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +1 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +3 -3
- package/components/mui_extended/CheckBox/CheckBox.js +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.js +2 -2
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.js +1 -1
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -1
- package/components/mui_extended/ImageButton/utils/Clases/index.js +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
- package/components/mui_extended/NavLink/NavLink.js +1 -1
- package/components/mui_extended/NavLink/constants.js +2 -2
- package/components/mui_extended/NavLink/slots/NavLinkSlots.js +1 -1
- package/components/mui_extended/Popover/Popover.js +1 -1
- package/components/mui_extended/Popover/Popover.styles.js +1 -5
- package/components/mui_extended/Popover/constants.js +2 -2
- package/components/mui_extended/Select/Select.js +1 -1
- package/components/mui_extended/Select/Select.styles.js +1 -1
- package/components/mui_extended/Select/constants.js +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Tab/Tab.js +1 -1
- package/components/mui_extended/TabContent/TabContent.styles.js +2 -1
- package/components/mui_extended/TextField/constants.js +1 -1
- package/components/mui_extended/Tooltip/Tooltip.js +2 -2
- package/components/mui_extended/Tooltip/slots/TooltipSlots.js +2 -2
- package/components/mui_extended/Typography/Typography.js +1 -1
- package/components/mui_extended/Typography/constants.js +3 -3
- package/components/mui_extended/Typography/slots/typographySlots.js +1 -1
- package/components/popups/components/PopupsViewer/icons.js +0 -1
- package/hooks/useDataGridPersistence/constants.js +2 -2
- package/hooks/useDataGridPersistence/useDataGridPersistence.js +1 -1
- package/hooks/useDynamicFilterAndSort/styles.js +2 -0
- package/hooks/useDynamicFilterAndSort/types.d.ts +1 -0
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +56 -12
- package/hooks/useSvgColor/constants.js +2 -2
- package/hooks/useSvgColor/helpers.js +1 -1
- package/hooks/useSvgColor/useSvgColor.js +1 -1
- package/index.js +109 -109
- package/mockServiceWorker.js +1 -1
- package/package.json +1 -6
- 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
|
-
|
|
34
|
+
IconStyled as I,
|
|
35
35
|
MUICheckboxStyled as M,
|
|
36
36
|
SkeletonStyled as S,
|
|
37
37
|
TypographyStyled as T,
|
|
38
|
-
|
|
38
|
+
IconCheckedStyled as a
|
|
39
39
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled, Popper, Paper } from "@mui/material";
|
|
2
|
-
import {
|
|
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 {
|
|
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 {
|
|
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
|
-
|
|
8
|
-
|
|
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 {
|
|
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
|
|
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";
|
|
@@ -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
|
-
|
|
6
|
-
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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,
|
|
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:
|
|
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 {
|
|
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
|
|
3
|
-
import {
|
|
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) => {
|
|
@@ -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
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 {
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { useState, useCallback } from "react";
|
|
2
2
|
import { g as getColumnsConfigCookie } from "./helpers.js";
|
|
3
|
-
import { C as
|
|
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
|
|
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
|
-
|
|
80
|
-
|
|
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
|
-
|
|
89
|
-
|
|
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:
|
|
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,
|
|
126
|
+
), [dataTestId, rightActions, refreshIconUrl, onRefresh]);
|
|
113
127
|
const dynamicsFiltersSorts = useMemo(() => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
114
|
-
/* @__PURE__ */ jsx(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
35
|
-
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
|
-
import { b as SVG_ICON_ERROR,
|
|
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;
|