@m4l/components 9.2.49 → 9.2.50-beta.2
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/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/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/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/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/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/package.json +3 -3
- package/components/PropertyValue/styles.d.ts +0 -1
|
@@ -6,7 +6,7 @@ import clsx from "clsx";
|
|
|
6
6
|
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { B as BOOLEAN_FORMATTER_KEY_COMPONENT } from "./constants.js";
|
|
8
8
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
9
|
-
import { B as
|
|
9
|
+
import { B as BooleanFormatterRootStyled, a as BooleanFormatterIconStyled, b as BooleanFormatterChipStyled } from "./slots/BooleanFormatterSlots.js";
|
|
10
10
|
import { B as BooleanFormatterSlots } from "./slots/BooleanFormatterEnum.js";
|
|
11
11
|
function getFormatBoolean(presentationType, value = false, getLabel) {
|
|
12
12
|
if (presentationType === "string_yes_no") {
|
|
@@ -18,7 +18,7 @@ const BooleanFormatterChipStyled = styled(Chip, {
|
|
|
18
18
|
slot: BooleanFormatterSlots.chip
|
|
19
19
|
})(booleanFormatterStyles?.chip);
|
|
20
20
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
BooleanFormatterRootStyled as B,
|
|
22
|
+
BooleanFormatterIconStyled as a,
|
|
23
|
+
BooleanFormatterChipStyled as b
|
|
24
24
|
};
|
|
@@ -6,8 +6,8 @@ import clsx from "clsx";
|
|
|
6
6
|
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
8
8
|
import { d as dictionary } from "./dictionary.js";
|
|
9
|
+
import { P as PeriodFormatterRootStyled, a as PeriodFormatterSkeletonStyled } from "./slots/PeriodFormatterSlots.js";
|
|
9
10
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
10
|
-
import { P as PeriodFormatterSkeletonStyled, a as PeriodFormatterRootStyled } from "./slots/PeriodFormatterSlots.js";
|
|
11
11
|
import { P as PeriodFormatterSlots } from "./slots/PeriodFomatterEnum.js";
|
|
12
12
|
function useFormatPeriod(years, months, days) {
|
|
13
13
|
const { getLabel } = useModuleDictionary();
|
|
@@ -13,6 +13,6 @@ const PeriodFormatterSkeletonStyled = styled(Skeleton, {
|
|
|
13
13
|
slot: PeriodFormatterSlots.skeleton
|
|
14
14
|
})(periodFormatterStyles?.skeleton);
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
PeriodFormatterRootStyled as P,
|
|
17
|
+
PeriodFormatterSkeletonStyled as a
|
|
18
18
|
};
|
|
@@ -2,8 +2,8 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { r as rhfCheckBoxStyles } from "../RHFCheckBox.styles.js";
|
|
3
3
|
import { R as RHFCheckBoxSlots } from "./RHFCheckBoxEnum.js";
|
|
4
4
|
import { R as RHF_CHECKBOX_KEY_COMPONENT } from "../constants.js";
|
|
5
|
-
import { C as CheckBox } from "../../../mui_extended/CheckBox/CheckBox.js";
|
|
6
5
|
import { L as Label } from "../../../Label/Label.js";
|
|
6
|
+
import { C as CheckBox } from "../../../mui_extended/CheckBox/CheckBox.js";
|
|
7
7
|
const RHFCheckboxRoot = styled("div", {
|
|
8
8
|
name: RHF_CHECKBOX_KEY_COMPONENT,
|
|
9
9
|
slot: RHFCheckBoxSlots.root
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RHFNumberInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -9,8 +9,8 @@ import { R as RHF_PERIOD_KEY_COMPONENT } from "./constants.js";
|
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
11
11
|
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
12
|
-
import { R as RHFPeriodSlots } from "./slots/RHFPeriodEnum.js";
|
|
13
12
|
import { H as HelperError } from "../../HelperError/HelperError.js";
|
|
13
|
+
import { R as RHFPeriodSlots } from "./slots/RHFPeriodEnum.js";
|
|
14
14
|
const RHFPeriod = (props) => {
|
|
15
15
|
const {
|
|
16
16
|
name,
|
|
@@ -18,9 +18,7 @@ const rhfTextFieldStyles = {
|
|
|
18
18
|
/**
|
|
19
19
|
* Estilos personalizados para el componente Skeleton.
|
|
20
20
|
*/
|
|
21
|
-
helperErrorStyled: {}
|
|
22
|
-
skeletonTextFieldRoot: {},
|
|
23
|
-
wrapperSkeletonRHFTextField: {}
|
|
21
|
+
helperErrorStyled: {}
|
|
24
22
|
};
|
|
25
23
|
export {
|
|
26
24
|
rhfTextFieldStyles as r
|
|
@@ -2,9 +2,9 @@ import { styled } from "@mui/material";
|
|
|
2
2
|
import { R as RHFTextFieldPasswordSlots } from "./RHFTextFieldPasswordEnum.js";
|
|
3
3
|
import { R as RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT } from "../constanst.js";
|
|
4
4
|
import { r as rhfTextFieldPasswordStyles } from "../RHFTextFieldPassword.styles.js";
|
|
5
|
+
import { L as Label } from "../../../Label/Label.js";
|
|
5
6
|
import { T as TextField } from "../../../mui_extended/TextField/TextField.js";
|
|
6
7
|
import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
|
|
7
|
-
import { L as Label } from "../../../Label/Label.js";
|
|
8
8
|
const RHFTextFieldPasswordRoot = styled("div", {
|
|
9
9
|
name: RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT,
|
|
10
10
|
slot: RHFTextFieldPasswordSlots.root
|
|
@@ -3,7 +3,7 @@ import { useFormContext, Controller } from "react-hook-form";
|
|
|
3
3
|
import { U as UploadSingleFile } from "./subcomponents/UploadSingleFile/index.js";
|
|
4
4
|
import { R as RHFUploadSingleFileRootStyled, L as LabelStyled, H as HelperErrorStyled } from "./slots/RHFUploadSingleFileSlots.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import {
|
|
6
|
+
import { D as DEFAULT_MAX_FILE_SIZE, R as RHF_UPLOAD_SINGLE_FILE_KEY_COMPONENT } from "./constants.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
8
8
|
import { R as RHFUploadSingleFileSlots } from "./slots/RHFUploadSingleFileEnum.js";
|
|
9
9
|
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -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(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
4
|
+
import { FormProvider, useForm } from "react-hook-form";
|
|
5
5
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
6
6
|
import { F as FormProviderRoot } from "./styles.js";
|
|
7
7
|
import { R as RHFormProviderUtilityClasses } from "./classes/index.js";
|
|
@@ -12,6 +12,6 @@ export * from './RHFTextField';
|
|
|
12
12
|
export * from './RHFTextFieldPassword';
|
|
13
13
|
export * from './RHFPeriod';
|
|
14
14
|
export { RHFRadioGroup } from './RHFRadioGroup';
|
|
15
|
-
export
|
|
15
|
+
export * from './RHFNumberInput';
|
|
16
16
|
export { RHFUploadSingleFile } from './RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile';
|
|
17
17
|
export * from './RHFUpload';
|
package/components/index.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export * from './PaperForm/PaperForm';
|
|
|
38
38
|
export * from './PDFViewer';
|
|
39
39
|
export * from './popups';
|
|
40
40
|
export * from './PrintingSystem';
|
|
41
|
-
export * from './PropertyValue
|
|
41
|
+
export * from './PropertyValue';
|
|
42
42
|
export * from './ScrollBar/ScrollBar';
|
|
43
43
|
export * from './SideBar';
|
|
44
44
|
export * from './ToastContainer';
|
|
@@ -3,7 +3,7 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.js";
|
|
|
3
3
|
import { a as getNameDataTestId } from "../../../test/getNameDataTestId.js";
|
|
4
4
|
import { P as PATH_EXPANDED_ICON, A as ACCORDION_KEY } from "./constants.js";
|
|
5
5
|
import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
6
|
-
import { A as AccordionRootStyled, a as AccordionSummaryStyled, I as
|
|
6
|
+
import { A as AccordionRootStyled, a as AccordionSummaryStyled, I as IconLabelStyled, L as LabelStyled, b as IconExpandedStyled, c as AccordionDetailsStyled } from "./slots/AccordionSlots.js";
|
|
7
7
|
import { forwardRef } from "react";
|
|
8
8
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
9
9
|
const Accordion = forwardRef((props, ref) => {
|
|
@@ -31,9 +31,9 @@ const AccordionDetailsStyled = styled(AccordionDetails, {
|
|
|
31
31
|
})(accordionStyles?.accordionDetails);
|
|
32
32
|
export {
|
|
33
33
|
AccordionRootStyled as A,
|
|
34
|
-
|
|
34
|
+
IconLabelStyled as I,
|
|
35
35
|
LabelStyled as L,
|
|
36
36
|
AccordionSummaryStyled as a,
|
|
37
|
-
|
|
37
|
+
IconExpandedStyled as b,
|
|
38
38
|
AccordionDetailsStyled as c
|
|
39
39
|
};
|
|
@@ -27,6 +27,7 @@ const accordionStyles = {
|
|
|
27
27
|
height: `${theme.vars.size[theme.generalSettings.isMobile ? "mobile" : "desktop"][ownerState.size ?? "medium"].container} !important`,
|
|
28
28
|
minHeight: `${theme.vars.size[theme.generalSettings.isMobile ? "mobile" : "desktop"][ownerState.size ?? "medium"].container} !important`,
|
|
29
29
|
background: theme.vars.palette.background.neutral,
|
|
30
|
+
overflow: "hidden",
|
|
30
31
|
"&:hover": {
|
|
31
32
|
background: theme.vars.palette.primary.hoverOpacity
|
|
32
33
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
3
|
-
import { forwardRef, useState,
|
|
3
|
+
import { forwardRef, useState, useCallback, useEffect, useMemo } from "react";
|
|
4
4
|
import { r as renderOption } from "./renderOptions/index.js";
|
|
5
5
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
6
|
-
import { C as ChipStyled, I as ImageStyled, A as AdormentsStyled, a as CircularProgressStyled, b as IconButtonStyled, S as SkeletonAutocompleteStyled, c as AutocompleteRootStyled,
|
|
6
|
+
import { C as ChipStyled, I as ImageStyled, A as AdormentsStyled, a as CircularProgressStyled, b as IconButtonStyled, S as SkeletonAutocompleteStyled, c as AutocompleteRootStyled, R as RenderInputStyled, P as PopperComponentStyled } from "./slots/AutocompleteSlots.js";
|
|
7
7
|
import { T as Typography } from "../Typography/Typography.js";
|
|
8
8
|
const Autocomplete = forwardRef(function Autocomplete2(props, ref) {
|
|
9
9
|
const {
|
|
@@ -34,16 +34,6 @@ const Autocomplete = forwardRef(function Autocomplete2(props, ref) {
|
|
|
34
34
|
const [selectedValue, setSelectedValue] = useState(
|
|
35
35
|
value || (multiple ? [] : null)
|
|
36
36
|
);
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
if (!multiple && value) {
|
|
39
|
-
setInputValue(getOptionLabel(value));
|
|
40
|
-
} else if (multiple && Array.isArray(value)) {
|
|
41
|
-
setInputValue("");
|
|
42
|
-
} else {
|
|
43
|
-
setInputValue("");
|
|
44
|
-
}
|
|
45
|
-
setSelectedValue(value || (multiple ? [] : null));
|
|
46
|
-
}, [value, multiple, getOptionLabel]);
|
|
47
37
|
const isOptionEqualToValueLocal = useCallback(
|
|
48
38
|
(option, val) => {
|
|
49
39
|
if (val === null || val === void 0) {
|
|
@@ -53,6 +43,29 @@ const Autocomplete = forwardRef(function Autocomplete2(props, ref) {
|
|
|
53
43
|
},
|
|
54
44
|
[isOptionEqualToValue]
|
|
55
45
|
);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
if (!multiple && value) {
|
|
48
|
+
setInputValue(getOptionLabel(value));
|
|
49
|
+
} else if (multiple && Array.isArray(value)) {
|
|
50
|
+
setInputValue("");
|
|
51
|
+
} else {
|
|
52
|
+
setInputValue("");
|
|
53
|
+
}
|
|
54
|
+
if (multiple) {
|
|
55
|
+
if (Array.isArray(value)) {
|
|
56
|
+
setSelectedValue(value.filter((option) => options.some((opt) => isOptionEqualToValueLocal(opt, option))));
|
|
57
|
+
} else {
|
|
58
|
+
setSelectedValue([]);
|
|
59
|
+
}
|
|
60
|
+
} else {
|
|
61
|
+
if (value) {
|
|
62
|
+
const option = options.find((opt) => isOptionEqualToValueLocal(opt, value));
|
|
63
|
+
setSelectedValue(option || null);
|
|
64
|
+
} else {
|
|
65
|
+
setSelectedValue(null);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, [value, multiple, getOptionLabel, options, isOptionEqualToValueLocal]);
|
|
56
69
|
const handleDelete = useCallback((optionToDelete) => {
|
|
57
70
|
if (Array.isArray(selectedValue)) {
|
|
58
71
|
const updatedValue = selectedValue.filter(
|
|
@@ -6,12 +6,12 @@ import { a as autocompleteSyles } from "../Autocomplete.styles.js";
|
|
|
6
6
|
import { A as AUTOCOMPLETE_KEY_COMPONENT } from "../constants.js";
|
|
7
7
|
import { A as AutocompleteSlots } from "./AutocompleteEnum.js";
|
|
8
8
|
import { I as IconButton } from "../../IconButton/IconButton.js";
|
|
9
|
-
import { T as TextField } from "../../TextField/TextField.js";
|
|
10
|
-
import { T as Typography } from "../../Typography/Typography.js";
|
|
11
9
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
10
|
+
import { T as TextField } from "../../TextField/TextField.js";
|
|
12
11
|
import { P as Popper } from "../../Popper/Popper.js";
|
|
13
|
-
import {
|
|
12
|
+
import { T as Typography } from "../../Typography/Typography.js";
|
|
14
13
|
import { C as CircularProgress } from "../../CircularProgress/CircularProgress.js";
|
|
14
|
+
import { M as MenuItem } from "../../MenuItem/MenuItem.js";
|
|
15
15
|
const AutocompleteRootStyled = styled(Autocomplete, {
|
|
16
16
|
name: AUTOCOMPLETE_KEY_COMPONENT,
|
|
17
17
|
slot: AutocompleteSlots.root
|
|
@@ -5,7 +5,7 @@ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js
|
|
|
5
5
|
import { C as CHECK_BOX_KEY_COMPONENT } from "./constants.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
|
-
import { C as CheckBoxRootStyled, M as MUICheckboxStyled, I as
|
|
8
|
+
import { C as CheckBoxRootStyled, M as MUICheckboxStyled, I as IconStyled, a as IconCheckedStyled, T as TypographyStyled, S as SkeletonStyled } from "./slots/CheckBoxSlots.js";
|
|
9
9
|
import { C as CheckBoxSlots } from "./slots/CheckBoxEnum.js";
|
|
10
10
|
const CheckBox = forwardRef((props, ref) => {
|
|
11
11
|
const {
|
|
@@ -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;
|