@m4l/components 9.2.51-beta.1 → 9.2.52
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/.storybook/test-utils/index.d.ts +1 -0
- package/.storybook/test-utils/waitForHelpers.d.ts +4 -0
- package/.storybook/utils/getStylesColorsByMode.d.ts +98 -70
- 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 +3 -0
- package/components/DataGrid/slots/DataGridEnum.js +2 -2
- package/components/DataGrid/slots/DataGridSlot.js +1 -1
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +0 -2
- 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 +1 -0
- package/components/DynamicFilter/dictionary.js +12 -0
- package/components/DynamicFilter/store/DynamicFilterContext.js +1 -1
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicSort/dictionary.js +5 -0
- 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/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/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 +0 -2
- package/components/ObjectLogs/dictionary.js +3 -0
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +1 -1
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +1 -1
- package/components/Pager/Pager.styles.js +8 -0
- package/components/Pager/dicctionary.js +5 -0
- package/components/PrintingSystem/subcomponents/ChartNode/index.js +1 -1
- package/components/PropertyValue/PropertyValue.js +2 -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 +8 -0
- package/components/commercial/HamburgerMenu/classes/index.js +1 -1
- 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/RHFPeriod/RHFPeriod.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +3 -1
- 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/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Accordion/slots/AccordionSlots.js +2 -2
- package/components/mui_extended/Autocomplete/Autocomplete.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 +5 -1
- 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/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 +1 -0
- package/hooks/useDataGridPersistence/constants.js +2 -2
- package/hooks/useDataGridPersistence/useDataGridPersistence.js +1 -1
- package/hooks/useSvgColor/constants.js +2 -2
- package/hooks/useSvgColor/helpers.js +1 -1
- package/hooks/useSvgColor/useSvgColor.js +1 -1
- package/index.js +12 -12
- package/package.json +1 -1
- package/storybook/components/SideBar/SideBar.stories.d.ts +17 -5
|
@@ -3,7 +3,7 @@ import { forwardRef, useRef, useState, useMemo, useCallback, useEffect } from "r
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import throttle from "lodash-es/throttle";
|
|
5
5
|
import { useResizeObserver } from "@m4l/graphics";
|
|
6
|
-
import {
|
|
6
|
+
import { e as DEFAULT_CONTAINER_WIDTH, f as DEFAULT_CONTAINER_HEIGHT, T as THROTTLE_RESIZE_TIMEOUT, C as COMPONENT_CLASS_NAME } from "../../constants.js";
|
|
7
7
|
function withSizeProvider(ComposedComponent) {
|
|
8
8
|
const WithSizeProvider = forwardRef((props, ref) => {
|
|
9
9
|
const { measureBeforeMount = true, ...rest } = props;
|
package/components/Icon/Icon.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
5
|
-
import { I as
|
|
5
|
+
import { I as ICON_KEY_COMPONENT, a as ICON_PREFIX } from "./constants.js";
|
|
6
6
|
import { g as getComponentClasses, a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
8
8
|
import { I as IconSlots } from "./slots/IconEnum.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { I as IconSlots } from "./IconEnum.js";
|
|
3
|
-
import {
|
|
3
|
+
import { I as ICON_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { i as iconStyles } from "../Icon.styles.js";
|
|
5
5
|
import { T as Tooltip } from "../../mui_extended/Tooltip/Tooltip.js";
|
|
6
6
|
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
@@ -5,7 +5,7 @@ import clsx from "clsx";
|
|
|
5
5
|
import { L as LazyLoadComponent } from "./subcomponents/LazyLoadComponent/index.js";
|
|
6
6
|
import { D as DivContainerSkeletonStyled, I as ImgSkeleton, a as ImgStyled } from "./slots/ImageSlots.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
|
-
import { s as svgDataUriSkeleton, I as
|
|
8
|
+
import { s as svgDataUriSkeleton, I as IMAGE_KEY_COMPONENT, a as IMAGE_CLASSES } from "./constant.js";
|
|
9
9
|
import { I as ImageSlots } from "./slots/ImageEnum.js";
|
|
10
10
|
function Image(props) {
|
|
11
11
|
const {
|
|
@@ -4,7 +4,7 @@ const IMAGE_KEY_COMPONENT = "M4LImage";
|
|
|
4
4
|
const svgDataUriSkeleton = `data:image/svg+xml,%3Csvg width='36' height='37' viewBox='0 0 36 37' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Union'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M25.0001 14.7416C24.26 15.2361 23.39 15.5 22.5 15.5C21.3065 15.5 20.1619 15.0259 19.318 14.182C18.4741 13.3381 18 12.1935 18 11C18 10.11 18.2639 9.23996 18.7584 8.49994C19.2529 7.75992 19.9557 7.18314 20.7779 6.84254C21.6002 6.50195 22.505 6.41283 23.3779 6.58647C24.2508 6.7601 25.0526 7.18868 25.682 7.81802C26.3113 8.44736 26.7399 9.24918 26.9135 10.1221C27.0872 10.995 26.9981 11.8998 26.6575 12.7221C26.3169 13.5443 25.7401 14.2471 25.0001 14.7416ZM23.3334 9.7528C23.0867 9.58798 22.7967 9.5 22.5 9.5C22.1022 9.5 21.7206 9.65804 21.4393 9.93934C21.158 10.2206 21 10.6022 21 11C21 11.2967 21.088 11.5867 21.2528 11.8334C21.4176 12.08 21.6519 12.2723 21.926 12.3858C22.2001 12.4994 22.5017 12.5291 22.7926 12.4712C23.0836 12.4133 23.3509 12.2704 23.5607 12.0607C23.7704 11.8509 23.9133 11.5836 23.9712 11.2926C24.0291 11.0017 23.9994 10.7001 23.8858 10.426C23.7723 10.1519 23.58 9.91762 23.3334 9.7528Z' fill='%23091E42' fill-opacity='0.08'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 0.5H33C33.7957 0.5 34.5587 0.81607 35.1213 1.37868C35.6839 1.94129 36 2.70435 36 3.5V33.5C36 34.2957 35.6839 35.0587 35.1213 35.6213C34.5587 36.1839 33.7957 36.5 33 36.5H3C2.20435 36.5 1.44129 36.1839 0.87868 35.6213C0.31607 35.0587 0 34.2957 0 33.5V3.5C0 2.70435 0.31607 1.94129 0.87868 1.37868C1.44129 0.81607 2.20435 0.5 3 0.5ZM3 24.5V33.5H33V30.5L25.5 23L23.115 25.385C22.5529 25.9438 21.7926 26.2574 21 26.2574C20.2074 26.2574 19.4471 25.9438 18.885 25.385L10.5 17L3 24.5ZM27.615 20.87L33 26.255V3.5H3V20.255L8.385 14.87C8.94709 14.3112 9.70744 13.9976 10.5 13.9976C11.2926 13.9976 12.0529 14.3112 12.615 14.87L21 23.255L23.385 20.87C23.9471 20.3112 24.7074 19.9976 25.5 19.9976C26.2926 19.9976 27.0529 20.3112 27.615 20.87Z' fill='%23091E42' fill-opacity='0.08'/%3E%3C/g%3E%3C/svg%3E%0A`;
|
|
5
5
|
const IMAGE_CLASSES = getComponentClasses(IMAGE_KEY_COMPONENT, ImageSlots);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
IMAGE_KEY_COMPONENT as I,
|
|
8
|
+
IMAGE_CLASSES as a,
|
|
9
9
|
svgDataUriSkeleton as s
|
|
10
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import {
|
|
2
|
+
import { I as IMAGE_KEY_COMPONENT } from "../constant.js";
|
|
3
3
|
import { I as ImageSlots } from "./ImageEnum.js";
|
|
4
4
|
import { i as imageStyles } from "../image.styles.js";
|
|
5
5
|
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
3
3
|
import { b as IntersectComponentStyled } from "../../slots/ImageSlots.js";
|
|
4
4
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
5
|
-
import {
|
|
5
|
+
import { I as IMAGE_KEY_COMPONENT } from "../../constant.js";
|
|
6
6
|
import { I as ImageSlots } from "../../slots/ImageEnum.js";
|
|
7
7
|
const checkIntersections = (entries) => {
|
|
8
8
|
entries.forEach((entry) => {
|
|
@@ -5,7 +5,7 @@ import { useEnvironment, useNetwork } from "@m4l/core";
|
|
|
5
5
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
6
6
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { I as Image } from "../Image/Image.js";
|
|
8
|
-
import { L as LanguagePopoverRootStyled,
|
|
8
|
+
import { L as LanguagePopoverRootStyled, I as ImageStyled, P as PaperStyled } from "./slots/LanguagePopoverSlots.js";
|
|
9
9
|
import { L as LANGUAGE_POPOVER_KEY_COMPONENT } from "./constants.js";
|
|
10
10
|
import { L as LanguagePopoverSlots } from "./slots/LanguagePopoverEnum.js";
|
|
11
11
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -8,8 +8,8 @@ import clsx from "clsx";
|
|
|
8
8
|
import { d as dictionary } from "./dictionary.js";
|
|
9
9
|
import { useRef, useState, useEffect } from "react";
|
|
10
10
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
11
|
-
import { T as Typography } from "../mui_extended/Typography/Typography.js";
|
|
12
11
|
import { L as LoadingErrorSlots } from "./slots/LoadingErrorEnum.js";
|
|
12
|
+
import { T as Typography } from "../mui_extended/Typography/Typography.js";
|
|
13
13
|
import { B as Button } from "../mui_extended/Button/Button.js";
|
|
14
14
|
const LoadingError = (props) => {
|
|
15
15
|
const { status, action, title, description, recommendation, introMessage, errorIcon, className, dataTestId, size = "medium" } = props;
|
|
@@ -2,8 +2,8 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { L as LOADING_ERROR_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { L as LoadingErrorSlots } from "./LoadingErrorEnum.js";
|
|
4
4
|
import { l as loadingErrorStyles } from "../LoadingError.styles.js";
|
|
5
|
-
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
6
5
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
6
|
+
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
7
7
|
import { I as Image } from "../../Image/Image.js";
|
|
8
8
|
const LoadingErrorRootStyled = styled("div", {
|
|
9
9
|
name: LOADING_ERROR_KEY_COMPONENT,
|
|
@@ -3,7 +3,7 @@ import { useEffect } from "react";
|
|
|
3
3
|
import { format } from "date-fns";
|
|
4
4
|
import { useAuth, DomainCountryProvider } from "@m4l/core";
|
|
5
5
|
import { HostThemeProvider, FormatterProvider } from "@m4l/graphics";
|
|
6
|
-
import {
|
|
6
|
+
import { getUserThemeOptions, fnComponentsOverrides } from "@m4l/styles";
|
|
7
7
|
function MFAuthApp(props) {
|
|
8
8
|
const { children, user, pwd } = props;
|
|
9
9
|
const { isAuthenticated, isInitialized, login, user: authUser } = useAuth();
|
|
@@ -3,7 +3,7 @@ import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
|
3
3
|
import { useMemo, useRef, useState, useEffect } from "react";
|
|
4
4
|
import { W as WrapperNoItemSelectedStyled, N as NoItemSelectedContainer, I as ImgStyled, a as WrapperTpography, T as TypographyStyledTitle, b as TypographyStyledDetail, L as LabelDetail } from "./slots/NoItemSelectedSlots.js";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
|
-
import {
|
|
6
|
+
import { N as NO_ITEM_SELECT_KEY_COMPONENT, c as classNoItemSelected } from "./constant.js";
|
|
7
7
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
8
|
import { N as NoItemSelectedSlots } from "./slots/NoItemSelectedEnum.js";
|
|
9
9
|
import { D as DICTIONARY } from "./dictionary.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as clampStepwise, i as isNumber } from "../../utils.js";
|
|
2
2
|
import { N as NumberInputActionTypes } from "./NumberInputActions.js";
|
|
3
3
|
function getClampedValues(rawValue, context) {
|
|
4
4
|
const { min, max, step, withDecimal } = context;
|
|
@@ -56,11 +56,9 @@ const useNumberInput = (parameters) => {
|
|
|
56
56
|
(event, field, fieldValue, reason) => {
|
|
57
57
|
if (field === "value" && typeof fieldValue !== "string") {
|
|
58
58
|
switch (reason) {
|
|
59
|
-
// only a blur event will dispatch `numberInput:clamp`
|
|
60
59
|
case "numberInput:inputChange":
|
|
61
60
|
onChange?.(event, fieldValue);
|
|
62
61
|
break;
|
|
63
|
-
// only a blur event will dispatch `numberInput:clamp`
|
|
64
62
|
case "numberInput:clamp":
|
|
65
63
|
onChange?.(event, fieldValue);
|
|
66
64
|
break;
|
|
@@ -5,10 +5,13 @@ function getObjectLogsComponentsDictionary() {
|
|
|
5
5
|
return [DICTIONARY_OBJECT_LOGS_ID].concat(getDataGridComponentsDictionary()).concat(getDynamicFilterComponentsDictionary());
|
|
6
6
|
}
|
|
7
7
|
const DICTIONARY = {
|
|
8
|
+
LABEL_RESOURCE_TYPE_ID: `${DICTIONARY_OBJECT_LOGS_ID}.resource_type_id`,
|
|
9
|
+
LABEL_RESOURCE_SERIAL_ID: `${DICTIONARY_OBJECT_LOGS_ID}.resource_serial_id`,
|
|
8
10
|
LABEL_CREATED_AT: `${DICTIONARY_OBJECT_LOGS_ID}.created_at`,
|
|
9
11
|
LABEL_USER: `${DICTIONARY_OBJECT_LOGS_ID}.email`,
|
|
10
12
|
LABEL_RESOURCE_NAME: `${DICTIONARY_OBJECT_LOGS_ID}.resource_name`,
|
|
11
13
|
LABEL_SERVICE_ID: `${DICTIONARY_OBJECT_LOGS_ID}.service_id`,
|
|
14
|
+
LABEL_PRIVILEGE_NAME: `${DICTIONARY_OBJECT_LOGS_ID}.privilege_name`,
|
|
12
15
|
LABEL_LOG_PREVIEW: `${DICTIONARY_OBJECT_LOGS_ID}.log_preview`,
|
|
13
16
|
LABEL_LOG_DETAIL: `${DICTIONARY_OBJECT_LOGS_ID}.log_detail`,
|
|
14
17
|
LABEL_IP: `${DICTIONARY_OBJECT_LOGS_ID}.ip`
|
|
@@ -10,7 +10,7 @@ import { usePaginate } from "@m4l/graphics";
|
|
|
10
10
|
import { u as useObjectLogsColumns } from "../../hooks/useObjectLogsColumns.js";
|
|
11
11
|
import { a as OBJECT_LOGS_M4L_END_POINT, O as OBJECT_LOGS_KEY_COMPONENT } from "../../constants.js";
|
|
12
12
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
13
|
-
import {
|
|
13
|
+
import { startOfMonth, endOfDay } from "date-fns";
|
|
14
14
|
import { O as ObjectLogsSlots } from "../../slots/ObjectLogsEnum.js";
|
|
15
15
|
function ObjectLogsByM4L(props) {
|
|
16
16
|
const { resourceId, objectId, dataTestId = "" } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { startOfDay, endOfDay } from "date-fns";
|
|
4
4
|
import { D as DataGrid } from "../../../DataGrid/DataGrid.js";
|
|
5
5
|
import { useEnvironment } from "@m4l/core";
|
|
6
6
|
import { D as DynamicFilter } from "../../../DynamicFilter/DynamicFilter.js";
|
|
@@ -25,6 +25,14 @@ const pagerStyles = {
|
|
|
25
25
|
height: theme.vars.size.baseSpacings.sp8
|
|
26
26
|
}
|
|
27
27
|
}),
|
|
28
|
+
/**
|
|
29
|
+
* Rows Per Page Container Styles
|
|
30
|
+
*/
|
|
31
|
+
rowsPerPageContainer: () => ({
|
|
32
|
+
display: "flex",
|
|
33
|
+
flexDirection: "row",
|
|
34
|
+
alignItems: "center"
|
|
35
|
+
}),
|
|
28
36
|
/**
|
|
29
37
|
* Label Select Container Styles
|
|
30
38
|
*/
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
const PAGER_DICTIONARY = {
|
|
2
2
|
rows_per_page: "pager.rows_per_page",
|
|
3
|
+
first: "pager.first",
|
|
4
|
+
previous: "pager.previous",
|
|
5
|
+
before: "pager.before",
|
|
6
|
+
last: "pager.last",
|
|
3
7
|
of: "pager.of",
|
|
4
8
|
page: "pager.page",
|
|
5
9
|
no_records: "pager.no_records",
|
|
10
|
+
total_rows: "pager.total_rows",
|
|
6
11
|
rows: "pager.rows"
|
|
7
12
|
};
|
|
8
13
|
function getPagerComponentsDictionary() {
|
|
@@ -3,7 +3,7 @@ import { c as classes } from "../../classes/index.js";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { createRef, useEffect } from "react";
|
|
5
5
|
import { Chart, registerables } from "chart.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ScatterWithErrorBarsController, LineWithErrorBarsChart, PointWithErrorBar } from "chartjs-chart-error-bars";
|
|
7
7
|
import { useBase, getPropertyByString, evaluateWithContext } from "@m4l/core";
|
|
8
8
|
import { C as ChartNodeRootStyled } from "../../slots/PrintingSystemSlots.js";
|
|
9
9
|
Chart.register(
|
|
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useId } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { P as PROPERTY_VALUE_KEY_COMPONENT, T as TEST_PROPS_DATA, C as COMPONENT_PREFIX } from "./constants.js";
|
|
6
|
+
import { g as getPropDataTestId, a as getNameDataTestId } from "../../test/getNameDataTestId.js";
|
|
7
7
|
import { P as PropertyValueRootStyled, N as NameStyled, V as ValueStyled } from "./slots/PropertyValueSlots.js";
|
|
8
8
|
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
9
9
|
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
@@ -4,7 +4,7 @@ import clsx from "clsx";
|
|
|
4
4
|
import { Box } from "@mui/material";
|
|
5
5
|
import { useIsMobile } from "@m4l/graphics";
|
|
6
6
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
7
|
-
import {
|
|
7
|
+
import { c as classScrollRoot, S as SCROLL_KEY_COMPONENT } from "./constants.js";
|
|
8
8
|
import { R as RootScrollBar, S as SimpleBarStyled } from "./slots/ScrollBarSlots.js";
|
|
9
9
|
import { S as ScrollBarSlots } from "./slots/ScrollBarEnum.js";
|
|
10
10
|
function ScrollBar(props) {
|
|
@@ -37,11 +37,11 @@ var ContainerMenuItemsMainSlots = /* @__PURE__ */ ((ContainerMenuItemsMainSlots2
|
|
|
37
37
|
return ContainerMenuItemsMainSlots2;
|
|
38
38
|
})(ContainerMenuItemsMainSlots || {});
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
ContentGroupsSlots as C,
|
|
41
41
|
HeaderSidebarSlots as H,
|
|
42
42
|
SideBarDesktopSlots as S,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
SideBarFooterSlots as a,
|
|
44
|
+
SideBarMobileSlots as b,
|
|
45
|
+
ContentComponentSlots as c,
|
|
46
46
|
ContainerMenuItemsMainSlots as d
|
|
47
47
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { S as SideBarDesktopSlots,
|
|
2
|
+
import { S as SideBarDesktopSlots, C as ContentGroupsSlots, H as HeaderSidebarSlots, a as SideBarFooterSlots, b as SideBarMobileSlots, c as ContentComponentSlots, d as ContainerMenuItemsMainSlots } from "./SideBarEnum.js";
|
|
3
3
|
import { S as SIDEBAR_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { s as sideBarStyles } from "../styles.js";
|
|
5
5
|
const ContainerDesktopRootStyled = styled("section", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as getHeightSizeStyles } from "../../../../../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
|
-
import {
|
|
2
|
+
import { b as ITEM_IN_TREE_ACTIVE, I as ITEM_ACTIVE } from "../../../../constants.js";
|
|
3
3
|
const containerMenuItemsMainStyles = {
|
|
4
4
|
/**
|
|
5
5
|
* Style aplicado al contenedor de los items del menú
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ToastContainer as ToastContainer$1 } from "react-toastify";
|
|
3
|
-
import {
|
|
3
|
+
import { T as TOAST_KEY_COMPONENT, D as DEFAULT_CLOSE_TIME } from "./constants.js";
|
|
4
4
|
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
5
5
|
import { ModuleSkeletonProvider } from "@m4l/core";
|
|
6
6
|
import "react-toastify/dist/ReactToastify.min.css";
|
|
@@ -2,9 +2,9 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { W as WINDOW_BASE_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { W as WindowBaseSlots } from "./WindowBaseEnum.js";
|
|
4
4
|
import { w as windowBaseStyles } from "../WindowBase.styles.js";
|
|
5
|
-
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
6
5
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
7
6
|
import { M as MenuActions } from "../../MenuActions/MenuActions.js";
|
|
7
|
+
import { L as LinearProgressIndeterminate } from "../../LinearProgressIndeterminate/LinearProgressIndeterminate.js";
|
|
8
8
|
import { I as Icon } from "../../Icon/Icon.js";
|
|
9
9
|
const WindowBaseStyled = styled("div", {
|
|
10
10
|
name: WINDOW_BASE_KEY_COMPONENT,
|
|
@@ -15,9 +15,9 @@ import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoo
|
|
|
15
15
|
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
16
16
|
import { S as ScrollBar } from "../../../ScrollBar/ScrollBar.js";
|
|
17
17
|
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
18
|
+
import { A as AreasAdminSlots } from "./slots/AreasAdminEnum.js";
|
|
18
19
|
import { T as Typography } from "../../../mui_extended/Typography/Typography.js";
|
|
19
20
|
import { M as MenuActions } from "../../../MenuActions/MenuActions.js";
|
|
20
|
-
import { A as AreasAdminSlots } from "./slots/AreasAdminEnum.js";
|
|
21
21
|
const AreasAdmin = (props) => {
|
|
22
22
|
const {
|
|
23
23
|
color = "primary",
|
|
@@ -4,7 +4,7 @@ import { u as useAreasStore } from "../../hooks/useAreas/index.js";
|
|
|
4
4
|
import { A as AreaMemonizedWindowModal } from "./subcomponents/Area/subcomponents/WindowModal/WindowModal.js";
|
|
5
5
|
import { shallow } from "zustand/shallow";
|
|
6
6
|
import { L as LoadingError } from "../../../LoadingError/LoadingError.js";
|
|
7
|
-
import {
|
|
7
|
+
import { g as getPropDataTestId, a as getNameDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
8
8
|
import { A as AREAS_VIEWER_CLASS_NAME } from "../../constants.js";
|
|
9
9
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
|
|
10
10
|
import { A as AreasViewerRootStyled } from "./slots/AreasViewerSlots.js";
|
|
@@ -4,7 +4,7 @@ import { W as Window } from "../Window/Window.js";
|
|
|
4
4
|
import { u as useAreasStore } from "../../../../../../hooks/useAreas/index.js";
|
|
5
5
|
import { a as areasViewerClasses } from "../../../../classes/index.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
|
-
import {
|
|
7
|
+
import { R as RESPONSIVE_COLAPSED_HEIGHTS, a as RESPONSIVE_ROW_HEIGHTS, M as MARGIN_GRIDLAYOUT, P as PADDING_GRIDLAYOUT } from "../../../../../../contexts/AreasContext/helpers/helper.js";
|
|
8
8
|
import { M as MemonizePopupsViewer } from "../../../../../../../popups/components/PopupsViewer/PopupsViewer.js";
|
|
9
9
|
import { useState } from "react";
|
|
10
10
|
import { d as dragResizeWindowRNDClasses } from "../../../../../../../DragResizeWindowRND/classes/index.js";
|
|
@@ -192,23 +192,23 @@ function getSelectedAreaIdFromCookies(cookiesResponse) {
|
|
|
192
192
|
}
|
|
193
193
|
export {
|
|
194
194
|
COOKIE_WINDOW_SELECTED as C,
|
|
195
|
-
|
|
195
|
+
DEFAULT_AREA as D,
|
|
196
196
|
MARGIN_GRIDLAYOUT as M,
|
|
197
197
|
NORMALIZED_COLS as N,
|
|
198
198
|
PADDING_GRIDLAYOUT as P,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
199
|
+
RESPONSIVE_COLAPSED_HEIGHTS as R,
|
|
200
|
+
RESPONSIVE_ROW_HEIGHTS as a,
|
|
201
|
+
COOKIE_AREAS_ADMIN_CONTAINER_ID as b,
|
|
202
|
+
COOKIE_AREAS_ADMIN_ID as c,
|
|
203
|
+
addArea as d,
|
|
204
204
|
DEFAULT_WINDOW as e,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
205
|
+
deleteLayoutFromBreakPoints as f,
|
|
206
|
+
getSelectedAreaIdFromCookies as g,
|
|
207
|
+
COOKIE_WINDOWS as h,
|
|
208
|
+
COOKIE_BREAKPOINT_LAYOUTS as i,
|
|
209
|
+
DEBOUCED_SAVE_TIME as j,
|
|
210
|
+
getDataFromResponse as k,
|
|
211
|
+
getParmsFromValue as l,
|
|
212
|
+
getCookiesContainer as m,
|
|
213
213
|
setColapsedLayoutBreakPoints as s
|
|
214
214
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createStore } from "zustand";
|
|
2
2
|
import { devtools } from "zustand/middleware";
|
|
3
3
|
import { immer } from "zustand/middleware/immer";
|
|
4
|
-
import {
|
|
4
|
+
import { b as COOKIE_AREAS_ADMIN_CONTAINER_ID, c as COOKIE_AREAS_ADMIN_ID, D as DEFAULT_AREA, d as addArea, g as getSelectedAreaIdFromCookies, e as DEFAULT_WINDOW, a as RESPONSIVE_ROW_HEIGHTS, P as PADDING_GRIDLAYOUT, M as MARGIN_GRIDLAYOUT, N as NORMALIZED_COLS, f as deleteLayoutFromBreakPoints, h as COOKIE_WINDOWS, i as COOKIE_BREAKPOINT_LAYOUTS, j as DEBOUCED_SAVE_TIME, s as setColapsedLayoutBreakPoints, k as getDataFromResponse, l as getParmsFromValue, m as getCookiesContainer, C as COOKIE_WINDOW_SELECTED } from "./helpers/helper.js";
|
|
5
5
|
import { c as createDynamicMFStore } from "../../../WindowBase/contexts/DynamicMFParmsContext/store.js";
|
|
6
6
|
import cloneDeep from "lodash-es/cloneDeep";
|
|
7
7
|
import debounce from "lodash-es/debounce";
|
|
8
8
|
import { g as generateModuleCount } from "./helpers/generateModuleCount.js";
|
|
9
9
|
import { a as AREAS_STORE_ID } from "../../constants.js";
|
|
10
10
|
import { h as helperSelectLayout } from "./helpers/selectLayout.js";
|
|
11
|
-
import {
|
|
11
|
+
import { g as getCookie, d as deleteCookie, s as setCookie } from "../../../../helpers/cookies/cookies.js";
|
|
12
|
+
import { d as addLayoutItemToBreakPoints, e as cloneLayouts } from "../../../GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
12
13
|
import { k as isEqualLayouts } from "../../../GridLayout/utils.js";
|
|
13
|
-
import { d as cloneLayouts, e as addLayoutItemToBreakPoints } from "../../../GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
14
14
|
const createDevtools = (immerMiddlewere, config) => {
|
|
15
15
|
const { enabled = false } = config;
|
|
16
16
|
if (enabled && process.env.NODE_ENV === "development") {
|
|
@@ -441,8 +441,8 @@ const createAreasStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
441
441
|
bounds: {
|
|
442
442
|
left: MARGIN_GRIDLAYOUT,
|
|
443
443
|
top: MARGIN_GRIDLAYOUT,
|
|
444
|
-
right: -
|
|
445
|
-
bottom: -
|
|
444
|
+
right: -MARGIN_GRIDLAYOUT,
|
|
445
|
+
bottom: -MARGIN_GRIDLAYOUT
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const ICONS = {
|
|
2
|
+
CLOSE: "close.svg",
|
|
2
3
|
MAXIMIZE: "maximize.svg",
|
|
3
4
|
NORMALIZE: "normalize.svg",
|
|
4
5
|
COLAPSE: "colapse.svg",
|
|
@@ -7,9 +8,16 @@ const ICONS = {
|
|
|
7
8
|
SAVE_COOKIES: "save_cookies.svg",
|
|
8
9
|
DELETE_AREA: "delete_area.svg",
|
|
9
10
|
ADD_AREA: "add_area.svg",
|
|
11
|
+
LAYERS: "layers.svg",
|
|
12
|
+
NAVIGATE_ERROR: "navegate_error.svg",
|
|
10
13
|
EDIT_AREA: "edit.svg",
|
|
11
14
|
CHECK: "checkmarkInCircle.svg",
|
|
15
|
+
RESIZE: "controlSize.svg",
|
|
16
|
+
VERSION: "version.svg",
|
|
17
|
+
SHOW_OPTIONS: "showMoreVertical.svg",
|
|
12
18
|
CHEVRON_DOWN: "chevronDown.svg",
|
|
19
|
+
MODULE: "module.svg",
|
|
20
|
+
POPUP: "popup.svg",
|
|
13
21
|
PENDING_ORDER: "pending_order.svg",
|
|
14
22
|
MORE_VERTICAL: "more_vertical.svg"
|
|
15
23
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
3
|
import { c as componentName } from "./constants.js";
|
|
4
4
|
generateUtilityClasses(componentName, ["root", "ImageLogo"]);
|
|
@@ -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 BooleanFormatterIconStyled, a as BooleanFormatterChipStyled, b as BooleanFormatterRootStyled } 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
|
+
BooleanFormatterIconStyled as B,
|
|
22
|
+
BooleanFormatterChipStyled as a,
|
|
23
|
+
BooleanFormatterRootStyled 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";
|
|
10
9
|
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
|
+
PeriodFormatterSkeletonStyled as P,
|
|
17
|
+
PeriodFormatterRootStyled 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 { L as Label } from "../../../Label/Label.js";
|
|
6
5
|
import { C as CheckBox } from "../../../mui_extended/CheckBox/CheckBox.js";
|
|
6
|
+
import { L as Label } from "../../../Label/Label.js";
|
|
7
7
|
const RHFCheckboxRoot = styled("div", {
|
|
8
8
|
name: RHF_CHECKBOX_KEY_COMPONENT,
|
|
9
9
|
slot: RHFCheckBoxSlots.root
|
|
@@ -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 { H as HelperError } from "../../HelperError/HelperError.js";
|
|
13
12
|
import { R as RHFPeriodSlots } from "./slots/RHFPeriodEnum.js";
|
|
13
|
+
import { H as HelperError } from "../../HelperError/HelperError.js";
|
|
14
14
|
const RHFPeriod = (props) => {
|
|
15
15
|
const {
|
|
16
16
|
name,
|
|
@@ -18,7 +18,9 @@ const rhfTextFieldStyles = {
|
|
|
18
18
|
/**
|
|
19
19
|
* Estilos personalizados para el componente Skeleton.
|
|
20
20
|
*/
|
|
21
|
-
helperErrorStyled: {}
|
|
21
|
+
helperErrorStyled: {},
|
|
22
|
+
skeletonTextFieldRoot: {},
|
|
23
|
+
wrapperSkeletonRHFTextField: {}
|
|
22
24
|
};
|
|
23
25
|
export {
|
|
24
26
|
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";
|
|
6
5
|
import { T as TextField } from "../../../mui_extended/TextField/TextField.js";
|
|
7
6
|
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 { R as RHF_UPLOAD_SINGLE_FILE_KEY_COMPONENT, D as DEFAULT_MAX_FILE_SIZE } 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 { generateUtilityClasses, generateUtilityClass } 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 { useForm, FormProvider } 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";
|