@m4l/components 6.0.0 → 7.0.0-alpha1
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 +21 -0
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/Icon/constants.d.ts +1 -0
- package/components/Icon/types.d.ts +12 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +1 -1
- package/components/mui_extended/Badge/Badge.styles.d.ts +2 -0
- package/components/mui_extended/Badge/constants.d.ts +1 -0
- package/components/mui_extended/Badge/slots/BadgeEnum.d.ts +3 -0
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +6 -0
- package/components/mui_extended/Badge/slots/index.d.ts +2 -0
- package/components/mui_extended/Badge/types.d.ts +9 -0
- package/components/mui_extended/IconButton/IconButton.styles.d.ts +2 -0
- package/components/mui_extended/IconButton/constants.d.ts +1 -0
- package/components/mui_extended/IconButton/helpers/evalIconColor.d.ts +7 -0
- package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +5 -0
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +14 -0
- package/components/mui_extended/IconButton/slots/index.d.ts +2 -0
- package/components/mui_extended/IconButton/types.d.ts +18 -26
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/contexts/index.d.ts +3 -3
- package/hooks/useFormAddEdit/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +3 -2
- package/test/getNameDataTestId.d.ts +1 -1
- package/{vendor-BQTRcsle.js → vendor-BLNnjAkx.js} +545 -246
- package/components/mui_extended/Badge/classes/constants.d.ts +0 -1
- package/components/mui_extended/Badge/classes/index.d.ts +0 -6
- package/components/mui_extended/Badge/classes/types.d.ts +0 -6
- package/components/mui_extended/Badge/styles.d.ts +0 -2
- package/components/mui_extended/Badge/tests/constants.d.ts +0 -1
- package/components/mui_extended/Badge/tests/utils.d.ts +0 -2
- package/components/mui_extended/IconButton/classes/constants.d.ts +0 -1
- package/components/mui_extended/IconButton/classes/index.d.ts +0 -8
- package/components/mui_extended/IconButton/classes/types.d.ts +0 -15
- package/components/mui_extended/IconButton/styledIconButton.d.ts +0 -2
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index.d.ts +0 -2
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/types.d.ts +0 -3
- /package/{contexts → components/hook-form}/RHFormContext/classes/constants.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/classes/index.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/classes/types.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/dictionary.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/index.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/styles.d.ts +0 -0
- /package/{contexts → components/hook-form}/RHFormContext/types.d.ts +0 -0
|
@@ -3,16 +3,16 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { m, LazyMotion, domMax } from "framer-motion";
|
|
6
|
-
import React__default, { createContext, useRef, useContext, forwardRef, useMemo,
|
|
7
|
-
import { Tooltip as Tooltip$1, Popper, IconButton as IconButton$1, Box, styled as styled$1, useTheme, alpha as alpha$1,
|
|
6
|
+
import React__default, { createContext, useRef, useContext, forwardRef, useMemo, useEffect, useState, useCallback, createElement, useLayoutEffect, useImperativeHandle, createRef, Suspense } from "react";
|
|
7
|
+
import { Tooltip as Tooltip$1, Popper, IconButton as IconButton$1, Box, styled as styled$1, useTheme, alpha as alpha$1, Badge as Badge$1, generateUtilityClass, generateUtilityClasses, Popover as Popover$1, Skeleton, Typography as Typography$1, Dialog, Paper, CircularProgress as CircularProgress$1, Autocomplete, TextField, Chip, Accordion as Accordion$1, AccordionSummary, AccordionDetails, MenuItem, Avatar as Avatar$1, Link, Breadcrumbs as Breadcrumbs$1, Checkbox, LinearProgress as LinearProgress$1, Stack as Stack$1, Tabs as Tabs$1, Select, InputBase, Tab as Tab$1, FormGroup, FormControlLabel, InputAdornment, RadioGroup, Radio, SvgIcon, useForkRef, FormControl, ListItemText, ListItemButton, Collapse, Drawer as Drawer$1, ButtonBase, Grid } from "@mui/material";
|
|
8
8
|
import { styled, alpha, useTheme as useTheme$1 } from "@mui/material/styles";
|
|
9
9
|
import SimpleBarReact from "simplebar-react";
|
|
10
|
-
import {
|
|
10
|
+
import { getPropertyByString, useModuleDictionary, useHostTools, useNetwork, useModuleSkeleton, EmitEvents, useEnvironment, axiosOperation, useFlagsPresent, CommonFlags, voidFunction, useBase, evaluateWithContext, BaseProvider, useFlagsStore, useModulePrivileges, usePaginate, useAuth, DomainCountryProvider, FlagsProvider, ModuleDictionaryProvider, ModuleSkeletonProvider, ModulePrivilegesProvider, EnvironmentProvider, HostToolsProvider, NetworkProvider, AuthProvider } from "@m4l/core";
|
|
11
11
|
import { Link as Link$1, useLocation, NavLink as NavLink$1, unstable_HistoryRouter } from "react-router-dom";
|
|
12
12
|
import clsx from "clsx";
|
|
13
13
|
import { useForm, FormProvider, useFormContext, Controller, useWatch, useController, useFormState } from "react-hook-form";
|
|
14
14
|
import { unstable_composeClasses } from "@mui/base";
|
|
15
|
-
import {
|
|
15
|
+
import { useFirstRender, useResizeObserver, useResponsiveDesktop, useIsMobile, useResponsiveContainerStore, useFormatter, useHostTheme, useLocales, HostThemeProvider, FormatterProvider, LocalesProvider, getLocaleFromNetwork, ResponsiveContainerProvider } from "@m4l/graphics";
|
|
16
16
|
import isString from "lodash/isString";
|
|
17
17
|
import { useDropzone } from "react-dropzone";
|
|
18
18
|
import * as Yup from "yup";
|
|
@@ -52,7 +52,7 @@ import { inputBaseClasses } from "@mui/material/InputBase";
|
|
|
52
52
|
import { DateTimePicker } from "@mui/x-date-pickers";
|
|
53
53
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
54
54
|
import { Helmet } from "react-helmet-async";
|
|
55
|
-
import {
|
|
55
|
+
import { DEFAULT_SIZE, useResponsive, OUR_THEME, fnComponentsOverrides } from "@m4l/styles";
|
|
56
56
|
import MuiButton from "@mui/material/Button";
|
|
57
57
|
import { createBrowserHistory } from "history";
|
|
58
58
|
import EventEmitter from "eventemitter3";
|
|
@@ -67,6 +67,7 @@ var IconSlots = /* @__PURE__ */ ((IconSlots2) => {
|
|
|
67
67
|
return IconSlots2;
|
|
68
68
|
})(IconSlots || {});
|
|
69
69
|
const ICON_KEY_COMPONENT = "M4LIcon";
|
|
70
|
+
const ICON_PREFIX$2 = "Icon";
|
|
70
71
|
const iconStyles = {
|
|
71
72
|
root: ({ theme, ownerState }) => ({
|
|
72
73
|
display: "flex",
|
|
@@ -90,46 +91,26 @@ const iconStyles = {
|
|
|
90
91
|
...ownerState.rotationAngle && {
|
|
91
92
|
transform: `rotate(${ownerState.rotationAngle}deg)`
|
|
92
93
|
},
|
|
93
|
-
backgroundColor: ownerState.
|
|
94
|
-
...ownerState.size === "large" && {
|
|
95
|
-
...theme.generalSettings.isMobile ? {
|
|
96
|
-
width: 28,
|
|
97
|
-
height: 28,
|
|
98
|
-
minWidth: 28,
|
|
99
|
-
minHeight: 28
|
|
100
|
-
} : {
|
|
101
|
-
width: 20,
|
|
102
|
-
height: 20,
|
|
103
|
-
minWidth: 20,
|
|
104
|
-
minHeight: 20
|
|
105
|
-
}
|
|
106
|
-
},
|
|
94
|
+
backgroundColor: !ownerState.disabled ? getPropertyByString(theme.vars.palette, ownerState.color || "text.primary") : theme.vars.palette.text.disabled,
|
|
107
95
|
...ownerState.size === "medium" && {
|
|
108
96
|
...theme.generalSettings.isMobile ? {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
minWidth: 24,
|
|
112
|
-
minHeight: 24
|
|
97
|
+
minWidth: theme.vars.size.mobile.base.medium,
|
|
98
|
+
minHeight: theme.vars.size.mobile.action.medium
|
|
113
99
|
} : {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
minWidth: 16,
|
|
117
|
-
minHeight: 16
|
|
100
|
+
minWidth: theme.vars.size.desktop.base.medium,
|
|
101
|
+
minHeight: theme.vars.size.desktop.base.medium
|
|
118
102
|
}
|
|
119
103
|
},
|
|
120
104
|
...ownerState.size === "small" && {
|
|
121
105
|
...theme.generalSettings.isMobile ? {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
minWidth: 20,
|
|
125
|
-
minHeight: 20
|
|
106
|
+
minWidth: theme.vars.size.mobile.base.small,
|
|
107
|
+
minHeight: theme.vars.size.mobile.action.small
|
|
126
108
|
} : {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
minWidth: 14,
|
|
130
|
-
minHeight: 14
|
|
109
|
+
minWidth: theme.vars.size.desktop.base.small,
|
|
110
|
+
minHeight: theme.vars.size.desktop.base.small
|
|
131
111
|
}
|
|
132
|
-
}
|
|
112
|
+
},
|
|
113
|
+
variants: []
|
|
133
114
|
})
|
|
134
115
|
};
|
|
135
116
|
var TooltipSlots = /* @__PURE__ */ ((TooltipSlots2) => {
|
|
@@ -278,41 +259,98 @@ const TooltipStyled = styled(Tooltip, {
|
|
|
278
259
|
name: ICON_KEY_COMPONENT,
|
|
279
260
|
slot: IconSlots.tooltip
|
|
280
261
|
})(iconStyles?.tooltip);
|
|
281
|
-
const IconStyled = styled("div", {
|
|
262
|
+
const IconStyled$1 = styled("div", {
|
|
282
263
|
name: ICON_KEY_COMPONENT,
|
|
283
264
|
slot: IconSlots.icon
|
|
284
265
|
})(iconStyles?.icon);
|
|
266
|
+
const TEST_PROP_ID = "data-testid";
|
|
267
|
+
const getNameDataTestId$d = (elementPrefix, elementKey, instaceId) => {
|
|
268
|
+
if (instaceId) {
|
|
269
|
+
return `${elementPrefix}-${[elementKey]}-${instaceId}`;
|
|
270
|
+
}
|
|
271
|
+
return `${elementPrefix}-${[elementKey]}`;
|
|
272
|
+
};
|
|
273
|
+
function getPropDataTestId(prefix, keyName) {
|
|
274
|
+
return process.env.NODE_ENV !== "production" && prefix && keyName ? { ["data-testid"]: `${prefix}-${[keyName]}` } : {};
|
|
275
|
+
}
|
|
285
276
|
const Icon = (props) => {
|
|
286
277
|
const {
|
|
287
278
|
src,
|
|
288
|
-
size,
|
|
279
|
+
size = "small",
|
|
289
280
|
rotationAngle,
|
|
290
281
|
tooltipContent,
|
|
291
282
|
securityArea,
|
|
292
|
-
color,
|
|
283
|
+
color = "text.primary",
|
|
293
284
|
className,
|
|
294
|
-
placement = "bottom"
|
|
285
|
+
placement = "bottom",
|
|
286
|
+
instaceDataTestId,
|
|
287
|
+
disabled
|
|
295
288
|
} = props;
|
|
296
289
|
const { currentSize } = useComponentSize(size);
|
|
297
|
-
return /* @__PURE__ */ jsx(
|
|
298
|
-
|
|
290
|
+
return /* @__PURE__ */ jsx(Fragment, { children: tooltipContent ? /* @__PURE__ */ jsx(
|
|
291
|
+
TooltipStyled,
|
|
299
292
|
{
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
293
|
+
title: tooltipContent,
|
|
294
|
+
ownerState: {},
|
|
295
|
+
placement,
|
|
296
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
297
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
298
|
+
ICON_PREFIX$2,
|
|
299
|
+
IconSlots.tooltip,
|
|
300
|
+
instaceDataTestId
|
|
301
|
+
)
|
|
302
|
+
} : {},
|
|
303
|
+
children: /* @__PURE__ */ jsx(
|
|
304
|
+
RootStyled$7,
|
|
305
|
+
{
|
|
306
|
+
className,
|
|
307
|
+
ownerState: { securityArea, size: currentSize },
|
|
308
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
309
|
+
[TEST_PROP_ID]: getNameDataTestId$d(ICON_PREFIX$2, IconSlots.root, instaceDataTestId)
|
|
310
|
+
} : {},
|
|
311
|
+
children: /* @__PURE__ */ jsx(
|
|
312
|
+
IconStyled$1,
|
|
313
|
+
{
|
|
314
|
+
ownerState: {
|
|
315
|
+
src,
|
|
316
|
+
rotationAngle,
|
|
317
|
+
size: currentSize,
|
|
318
|
+
disabled,
|
|
319
|
+
color
|
|
320
|
+
},
|
|
321
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
322
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
323
|
+
ICON_PREFIX$2,
|
|
324
|
+
IconSlots.icon,
|
|
325
|
+
instaceDataTestId
|
|
326
|
+
)
|
|
327
|
+
} : {}
|
|
328
|
+
}
|
|
329
|
+
)
|
|
330
|
+
}
|
|
331
|
+
)
|
|
306
332
|
}
|
|
307
|
-
)
|
|
308
|
-
|
|
333
|
+
) : /* @__PURE__ */ jsx(
|
|
334
|
+
RootStyled$7,
|
|
309
335
|
{
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
336
|
+
className,
|
|
337
|
+
ownerState: { securityArea, size: currentSize },
|
|
338
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(ICON_PREFIX$2, IconSlots.root, instaceDataTestId) } : {},
|
|
339
|
+
children: /* @__PURE__ */ jsx(
|
|
340
|
+
IconStyled$1,
|
|
341
|
+
{
|
|
342
|
+
ownerState: {
|
|
343
|
+
src,
|
|
344
|
+
rotationAngle,
|
|
345
|
+
size: currentSize,
|
|
346
|
+
color,
|
|
347
|
+
disabled
|
|
348
|
+
},
|
|
349
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
350
|
+
[TEST_PROP_ID]: getNameDataTestId$d(ICON_PREFIX$2, IconSlots.icon, instaceDataTestId)
|
|
351
|
+
} : {}
|
|
352
|
+
}
|
|
353
|
+
)
|
|
316
354
|
}
|
|
317
355
|
) });
|
|
318
356
|
};
|
|
@@ -752,76 +790,366 @@ const AnimatedScroll = (props) => {
|
|
|
752
790
|
}
|
|
753
791
|
);
|
|
754
792
|
};
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
793
|
+
var IconButtonSlots = /* @__PURE__ */ ((IconButtonSlots2) => {
|
|
794
|
+
IconButtonSlots2["styledMUIIconButton"] = "styledMUIIconButton";
|
|
795
|
+
IconButtonSlots2["icon"] = "icon";
|
|
796
|
+
IconButtonSlots2["badgeIconButton"] = "badgeIconButton";
|
|
797
|
+
return IconButtonSlots2;
|
|
798
|
+
})(IconButtonSlots || {});
|
|
799
|
+
const ICON_BUTTON_KEY_COMPONENT = "M4LIconButton";
|
|
800
|
+
const iconButtonStyles = {
|
|
801
|
+
styledMUIIconButton: ({ ownerState, theme }) => ({
|
|
802
|
+
cursor: ownerState.disabled ? "not-allowed" : "pointer",
|
|
803
|
+
color: theme.vars.palette.text.primary,
|
|
804
|
+
borderRadius: theme.size.borderRadius.r1,
|
|
805
|
+
pointerEvents: ownerState.disabled ? "none" : "auto",
|
|
806
|
+
display: "flex",
|
|
807
|
+
justifyContent: "center",
|
|
808
|
+
// Override de estilos de Material UI
|
|
809
|
+
padding: 0,
|
|
810
|
+
// condiciones de tamaño
|
|
811
|
+
// condiciones de tamaño Small
|
|
812
|
+
...ownerState.size === "small" && {
|
|
813
|
+
...theme.generalSettings.isMobile ? {
|
|
814
|
+
width: theme.vars.size.mobile.action.small,
|
|
815
|
+
height: theme.vars.size.mobile.action.small
|
|
816
|
+
} : {
|
|
817
|
+
width: theme.vars.size.desktop.action.small,
|
|
818
|
+
height: theme.vars.size.desktop.action.small
|
|
819
|
+
},
|
|
820
|
+
"& .icon": {
|
|
821
|
+
...theme.generalSettings.isMobile ? {
|
|
822
|
+
width: theme.vars.size.mobile.base.small,
|
|
823
|
+
height: theme.vars.size.mobile.base.small
|
|
824
|
+
} : {
|
|
825
|
+
width: theme.vars.size.desktop.base.small,
|
|
826
|
+
height: theme.vars.size.desktop.base.small
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
// condiciones de tamaño Medium
|
|
831
|
+
...ownerState.size === "medium" && {
|
|
832
|
+
...theme.generalSettings.isMobile ? {
|
|
833
|
+
width: theme.vars.size.mobile.action.medium,
|
|
834
|
+
height: theme.vars.size.mobile.action.medium
|
|
835
|
+
} : {
|
|
836
|
+
width: theme.vars.size.desktop.action.medium,
|
|
837
|
+
height: theme.vars.size.desktop.action.medium
|
|
838
|
+
},
|
|
839
|
+
"& .icon": {
|
|
840
|
+
...theme.generalSettings.isMobile ? {
|
|
841
|
+
width: theme.vars.size.mobile.base.medium,
|
|
842
|
+
height: theme.vars.size.mobile.base.medium
|
|
843
|
+
} : {
|
|
844
|
+
width: theme.vars.size.desktop.base.medium,
|
|
845
|
+
height: theme.vars.size.desktop.base.medium
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
// Variantes contained
|
|
850
|
+
...ownerState.variant === "contained" && ownerState.disabled !== true && {
|
|
851
|
+
backgroundColor: ownerState.paletteColor?.main,
|
|
852
|
+
display: "flex",
|
|
853
|
+
color: "white",
|
|
854
|
+
'& [class*="M4LIcon-icon"]': {
|
|
855
|
+
display: "flex",
|
|
856
|
+
justifyContent: "center",
|
|
857
|
+
backgroundColor: ownerState.paletteColor?.contrastText
|
|
858
|
+
},
|
|
859
|
+
//Estado Hover
|
|
860
|
+
"&:hover": {
|
|
861
|
+
background: ownerState.paletteColor?.hover,
|
|
862
|
+
'& [class*="M4LIcon-icon"]': {
|
|
863
|
+
display: "flex",
|
|
864
|
+
justifyContent: "center",
|
|
865
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
866
|
+
backgroundColor: ownerState.paletteColor?.contrastText
|
|
867
|
+
//backgroundColor: 'white',
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
//Estado Active
|
|
872
|
+
"&:active": {
|
|
873
|
+
background: ownerState.paletteColor?.focusActive,
|
|
874
|
+
'& [class*="M4LIcon-icon"]': {
|
|
875
|
+
display: "flex",
|
|
876
|
+
justifyContent: "center",
|
|
877
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
878
|
+
backgroundColor: ownerState.paletteColor?.contrastText
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
//FocusVisible
|
|
883
|
+
"&:focus-visible": {
|
|
884
|
+
background: ownerState.paletteColor?.main,
|
|
885
|
+
outline: `1px solid ${ownerState.paletteColor?.focusVisible}`,
|
|
886
|
+
outlineOffset: 1,
|
|
887
|
+
'& [class*="M4LIcon-icon"]': {
|
|
888
|
+
display: "flex",
|
|
889
|
+
justifyContent: "center",
|
|
890
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
891
|
+
backgroundColor: ownerState.paletteColor?.contrastText
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
// Variantes contained en disabled
|
|
897
|
+
...ownerState.variant === "contained" && ownerState.disabled === true && {
|
|
898
|
+
background: `${theme.vars.palette.action.disabledBackground} !important`,
|
|
899
|
+
color: theme.vars.palette.action.disabled
|
|
900
|
+
},
|
|
901
|
+
// Variante outline
|
|
902
|
+
...ownerState.variant === "outline" && ownerState.disabled !== true && {
|
|
903
|
+
display: "flex",
|
|
904
|
+
justifyContent: "center",
|
|
905
|
+
alignItems: "center",
|
|
906
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
907
|
+
border: `1px solid ${ownerState.paletteColor?.main}`
|
|
908
|
+
},
|
|
909
|
+
...ownerState.componentPaletteColor === "default" && {
|
|
910
|
+
border: `1px solid ${ownerState.paletteColor?.main}`
|
|
911
|
+
},
|
|
912
|
+
"&:hover": {
|
|
913
|
+
display: "flex",
|
|
914
|
+
justifyContent: "center",
|
|
915
|
+
alignItems: "center",
|
|
916
|
+
border: `1px solid ${ownerState.paletteColor?.hover}`,
|
|
917
|
+
background: ownerState.componentPaletteColor !== "default" ? ownerState.paletteColor?.hoverOpacity : ownerState.paletteColor?.hover,
|
|
918
|
+
'& [class*="M4LIcon-icon"]': {
|
|
919
|
+
display: "flex",
|
|
920
|
+
justifyContent: "center",
|
|
921
|
+
'& [class*="M4LIcon-icon"]': {
|
|
922
|
+
display: "flex",
|
|
923
|
+
justifyContent: "center",
|
|
924
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
925
|
+
backgroundColor: ownerState.paletteColor?.contrastText
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
"&:active": {
|
|
931
|
+
display: "flex",
|
|
932
|
+
justifyContent: "center",
|
|
933
|
+
alignItems: "center",
|
|
934
|
+
background: ownerState.componentPaletteColor !== "default" ? ownerState.paletteColor?.hoverOpacity : ownerState.paletteColor?.focusActive,
|
|
935
|
+
border: `1px solid ${ownerState.paletteColor?.focusActive}`,
|
|
936
|
+
'& [class*="M4LIcon-icon"]': {
|
|
937
|
+
display: "flex",
|
|
938
|
+
justifyContent: "center",
|
|
939
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
940
|
+
backgroundColor: ownerState.paletteColor?.focusActive
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
"&:focus-visible": {
|
|
945
|
+
display: "flex",
|
|
946
|
+
justifyContent: "center",
|
|
947
|
+
alignItems: "center",
|
|
948
|
+
outlineOffset: 1,
|
|
949
|
+
outline: `1px solid ${ownerState.paletteColor?.focusVisible}`,
|
|
950
|
+
border: `1px solid ${ownerState.paletteColor?.main}`,
|
|
951
|
+
"& .MuiButtonBase-root": {
|
|
952
|
+
display: "flex",
|
|
953
|
+
justifyContent: "center",
|
|
954
|
+
alignItems: "center"
|
|
955
|
+
},
|
|
956
|
+
'& [class*="M4LIcon-icon"]': {
|
|
957
|
+
display: "flex",
|
|
958
|
+
justifyContent: "center",
|
|
959
|
+
'& [class*="M4LIcon-icon"]': {
|
|
960
|
+
display: "flex",
|
|
961
|
+
justifyContent: "center",
|
|
962
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
963
|
+
backgroundColor: ownerState.paletteColor?.contrastText
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
// Variantes outline en disabled
|
|
970
|
+
...ownerState.variant === "outline" && ownerState.disabled === true && {
|
|
971
|
+
outline: `1px solid ${theme.vars.palette.action.disabled}`,
|
|
972
|
+
color: ownerState.paletteColor?.main
|
|
973
|
+
},
|
|
974
|
+
// Variante text
|
|
975
|
+
...ownerState.variant === "text" && ownerState.disabled !== true && {
|
|
976
|
+
"&:hover": {
|
|
977
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
978
|
+
backgroundColor: ownerState.paletteColor?.hoverOpacity
|
|
979
|
+
},
|
|
980
|
+
...ownerState.componentPaletteColor === "default" && {
|
|
981
|
+
backgroundColor: ownerState.paletteColor?.hover
|
|
982
|
+
},
|
|
983
|
+
'& [class*="M4LIcon-icon"]': {
|
|
984
|
+
display: "flex",
|
|
985
|
+
justifyContent: "center",
|
|
986
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
987
|
+
alignItems: "center"
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
//FocusActive
|
|
992
|
+
"&:active": {
|
|
993
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
994
|
+
backgroundColor: ownerState.paletteColor?.opacity
|
|
995
|
+
},
|
|
996
|
+
...ownerState.componentPaletteColor === "default" && {
|
|
997
|
+
backgroundColor: ownerState.paletteColor?.focusActive
|
|
998
|
+
},
|
|
999
|
+
'& [class*="M4LIcon-icon"]': {
|
|
1000
|
+
display: "flex",
|
|
1001
|
+
justifyContent: "center",
|
|
1002
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
1003
|
+
backgroundColor: ownerState.paletteColor?.focusActive
|
|
1004
|
+
},
|
|
1005
|
+
...ownerState.componentPaletteColor === "default" && {
|
|
1006
|
+
backgroundColor: ownerState.paletteColor?.contrastText
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
//FocusVisible
|
|
1011
|
+
"&:focus-visible": {
|
|
1012
|
+
outline: `1px solid ${ownerState.paletteColor?.focusVisible}`,
|
|
1013
|
+
// Cambiado a outline
|
|
1014
|
+
outlineOffset: 1,
|
|
1015
|
+
'& [class*="M4LIcon-icon"]': {
|
|
1016
|
+
display: "flex",
|
|
1017
|
+
justifyContent: "center",
|
|
1018
|
+
...ownerState.componentPaletteColor !== "default" && {
|
|
1019
|
+
backgroundColor: ownerState.paletteColor?.main
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
},
|
|
1024
|
+
// Variantes text en disabled
|
|
1025
|
+
...ownerState.variant === "text" && ownerState.disabled === true && {
|
|
1026
|
+
color: theme.vars.palette.action.disabled
|
|
763
1027
|
}
|
|
764
|
-
)
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
}
|
|
1028
|
+
}),
|
|
1029
|
+
icon: ({ ownerState, theme }) => ({
|
|
1030
|
+
// condiciones de tamaño Small
|
|
1031
|
+
...ownerState.size === "small" && {
|
|
1032
|
+
...theme.generalSettings.isMobile ? {
|
|
1033
|
+
width: theme.vars.size.mobile.base.small,
|
|
1034
|
+
height: theme.vars.size.mobile.base.small
|
|
1035
|
+
} : {
|
|
1036
|
+
width: theme.vars.size.desktop.base.small,
|
|
1037
|
+
height: theme.vars.size.desktop.base.small
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
// condiciones de tamaño Medium
|
|
1041
|
+
...ownerState.size === "medium" && {
|
|
1042
|
+
...theme.generalSettings.isMobile ? {
|
|
1043
|
+
width: theme.vars.size.mobile.base.medium,
|
|
1044
|
+
height: theme.vars.size.mobile.base.medium
|
|
1045
|
+
} : {
|
|
1046
|
+
width: theme.vars.size.desktop.base.medium,
|
|
1047
|
+
height: theme.vars.size.desktop.base.medium
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
})
|
|
1051
|
+
//Comentado por el momento, falta de documentación en Figma de Badge
|
|
1052
|
+
// badgeIconButton: ({ ownerState, theme }) => ({
|
|
1053
|
+
// '& [class*="MuiBadge-badge"]': {
|
|
1054
|
+
// display: 'flex',
|
|
1055
|
+
// justifyContent: 'center',
|
|
1056
|
+
// alignItems: 'center',
|
|
1057
|
+
// fontSize: '11px',
|
|
1058
|
+
// backgroundColor: ownerState.paletteColor?.focusActive,
|
|
1059
|
+
// color: ownerState.paletteColor?.contrastText,
|
|
1060
|
+
// // condiciones de tamaño Small
|
|
1061
|
+
// ...(ownerState.size === 'small' && {
|
|
1062
|
+
// ...(theme.generalSettings.isMobile
|
|
1063
|
+
// ? {
|
|
1064
|
+
// width: theme.size.desktop.base.small,
|
|
1065
|
+
// height: theme.size.desktop.base.small,
|
|
1066
|
+
// }
|
|
1067
|
+
// : {
|
|
1068
|
+
// width: theme.size.desktop.base.small,
|
|
1069
|
+
// height: theme.size.desktop.base.small,
|
|
1070
|
+
// }),
|
|
1071
|
+
// }),
|
|
1072
|
+
// // condiciones de tamaño Medium
|
|
1073
|
+
// ...(ownerState.size === 'medium' && {
|
|
1074
|
+
// ...(theme.generalSettings.isMobile
|
|
1075
|
+
// ? {
|
|
1076
|
+
// width: theme.size.mobile.base.medium,
|
|
1077
|
+
// height: theme.size.mobile.base.medium,
|
|
1078
|
+
// }
|
|
1079
|
+
// : {
|
|
1080
|
+
// width: theme.size.desktop.base.medium,
|
|
1081
|
+
// height: theme.size.desktop.base.medium,
|
|
1082
|
+
// }),
|
|
1083
|
+
// }),
|
|
1084
|
+
// },
|
|
1085
|
+
// }),
|
|
1086
|
+
};
|
|
1087
|
+
const StyledMUIIconButton = styled(IconButton$1, {
|
|
1088
|
+
name: ICON_BUTTON_KEY_COMPONENT,
|
|
1089
|
+
slot: IconButtonSlots.styledMUIIconButton
|
|
1090
|
+
})(iconButtonStyles?.styledMUIIconButton);
|
|
1091
|
+
const IconStyled = styled(Icon, {
|
|
1092
|
+
name: ICON_BUTTON_KEY_COMPONENT,
|
|
1093
|
+
slot: IconButtonSlots.icon
|
|
1094
|
+
})(iconButtonStyles?.icon);
|
|
1095
|
+
const BadgeStyled$1 = styled(Badge$1, {
|
|
1096
|
+
name: ICON_BUTTON_KEY_COMPONENT,
|
|
1097
|
+
slot: IconButtonSlots.badgeIconButton
|
|
1098
|
+
})(iconButtonStyles?.badgeIconButton);
|
|
1099
|
+
const evalIconColor = (color, variant) => {
|
|
1100
|
+
console.log("color", color);
|
|
1101
|
+
if (variant === "contained" && color !== "default") {
|
|
1102
|
+
return "primary.contrastText";
|
|
1103
|
+
}
|
|
1104
|
+
if (color === "default") {
|
|
1105
|
+
return "text.primary";
|
|
1106
|
+
}
|
|
1107
|
+
if (color === "primary") {
|
|
1108
|
+
return "primary.main";
|
|
1109
|
+
}
|
|
1110
|
+
if (color === "warning") {
|
|
1111
|
+
return "warning.main";
|
|
1112
|
+
}
|
|
1113
|
+
if (color === "error") {
|
|
1114
|
+
return "error.main";
|
|
1115
|
+
}
|
|
1116
|
+
if (color === "success") {
|
|
1117
|
+
return "success.main";
|
|
1118
|
+
}
|
|
1119
|
+
if (color === "info") {
|
|
1120
|
+
return "info.main";
|
|
1121
|
+
}
|
|
1122
|
+
return "text.primary";
|
|
807
1123
|
};
|
|
808
1124
|
const IconButton = (props) => {
|
|
809
1125
|
const {
|
|
810
1126
|
src,
|
|
811
1127
|
tooltip,
|
|
812
|
-
size = "
|
|
813
|
-
|
|
814
|
-
rotationAngle,
|
|
815
|
-
variant = "line",
|
|
1128
|
+
size = "medium",
|
|
1129
|
+
variant = "text",
|
|
816
1130
|
disabled,
|
|
817
|
-
className,
|
|
818
1131
|
onClick,
|
|
819
|
-
|
|
1132
|
+
badgeContent,
|
|
1133
|
+
withBadge = false,
|
|
1134
|
+
dictionaryTooltipId,
|
|
1135
|
+
componentPaletteColor = "default",
|
|
820
1136
|
...other
|
|
821
1137
|
} = props;
|
|
1138
|
+
const { currentSize } = useComponentSize(size);
|
|
1139
|
+
const theme = useTheme();
|
|
1140
|
+
const paletteColor = getPropertyByString(theme.palette, disabled ? "default" : componentPaletteColor, theme.palette.default);
|
|
1141
|
+
const ownerState = {
|
|
1142
|
+
variant,
|
|
1143
|
+
size,
|
|
1144
|
+
disabled,
|
|
1145
|
+
paletteColor,
|
|
1146
|
+
componentPaletteColor
|
|
1147
|
+
};
|
|
1148
|
+
const iconColor = useMemo(
|
|
1149
|
+
() => evalIconColor(componentPaletteColor, variant),
|
|
1150
|
+
[componentPaletteColor, variant]
|
|
1151
|
+
);
|
|
822
1152
|
const { getLabel } = useModuleDictionary();
|
|
823
|
-
const isDesktop = useResponsiveDesktop();
|
|
824
|
-
const isSkeleton = useModuleSkeleton();
|
|
825
1153
|
const finalTooltip = useMemo(() => {
|
|
826
1154
|
if (disabled) {
|
|
827
1155
|
return void 0;
|
|
@@ -834,58 +1162,46 @@ const IconButton = (props) => {
|
|
|
834
1162
|
}
|
|
835
1163
|
return void 0;
|
|
836
1164
|
}, [tooltip, dictionaryTooltipId, getLabel, disabled]);
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
Icon,
|
|
878
|
-
{
|
|
879
|
-
src,
|
|
880
|
-
size: isDesktop ? size : "medium",
|
|
881
|
-
rotationAngle,
|
|
882
|
-
color
|
|
883
|
-
}
|
|
884
|
-
)
|
|
885
|
-
}
|
|
886
|
-
)
|
|
887
|
-
) })
|
|
888
|
-
) : /* @__PURE__ */ jsx(SkeletonIconButton, { classes: classes2 }) })
|
|
1165
|
+
return /* @__PURE__ */ jsx(
|
|
1166
|
+
StyledMUIIconButton,
|
|
1167
|
+
{
|
|
1168
|
+
ownerState: { ...ownerState },
|
|
1169
|
+
onClick: !disabled ? onClick : void 0,
|
|
1170
|
+
disableRipple: true,
|
|
1171
|
+
disabled,
|
|
1172
|
+
"data-testid": "IconButtonRoot",
|
|
1173
|
+
tabIndex: 0,
|
|
1174
|
+
...other,
|
|
1175
|
+
children: withBadge ? /* @__PURE__ */ jsx(
|
|
1176
|
+
BadgeStyled$1,
|
|
1177
|
+
{
|
|
1178
|
+
ownerState: { ...ownerState },
|
|
1179
|
+
badgeContent,
|
|
1180
|
+
componentPaletteColor,
|
|
1181
|
+
children: /* @__PURE__ */ jsx(
|
|
1182
|
+
IconStyled,
|
|
1183
|
+
{
|
|
1184
|
+
ownerState: { ...ownerState },
|
|
1185
|
+
src,
|
|
1186
|
+
size: currentSize,
|
|
1187
|
+
color: iconColor,
|
|
1188
|
+
disabled,
|
|
1189
|
+
tooltipContent: finalTooltip
|
|
1190
|
+
}
|
|
1191
|
+
)
|
|
1192
|
+
}
|
|
1193
|
+
) : /* @__PURE__ */ jsx(
|
|
1194
|
+
IconStyled,
|
|
1195
|
+
{
|
|
1196
|
+
ownerState: { ...ownerState },
|
|
1197
|
+
src,
|
|
1198
|
+
size: currentSize,
|
|
1199
|
+
color: iconColor,
|
|
1200
|
+
disabled,
|
|
1201
|
+
tooltipContent: finalTooltip
|
|
1202
|
+
}
|
|
1203
|
+
)
|
|
1204
|
+
}
|
|
889
1205
|
);
|
|
890
1206
|
};
|
|
891
1207
|
function isValidDate(d) {
|
|
@@ -4474,9 +4790,8 @@ const useUtilityClasses$d = () => {
|
|
|
4474
4790
|
...composedClasses
|
|
4475
4791
|
};
|
|
4476
4792
|
};
|
|
4477
|
-
const TEST_PROP_ID = "data-testid";
|
|
4478
4793
|
const TYPOGRAPHY_PREFIX = "Typography";
|
|
4479
|
-
const getNameDataTestId$
|
|
4794
|
+
const getNameDataTestId$c = (KEY) => {
|
|
4480
4795
|
return `${TYPOGRAPHY_PREFIX}-${KEY}`;
|
|
4481
4796
|
};
|
|
4482
4797
|
function Typography(props) {
|
|
@@ -4493,7 +4808,7 @@ function Typography(props) {
|
|
|
4493
4808
|
WarpperTypography,
|
|
4494
4809
|
{
|
|
4495
4810
|
className: clsx(classes2.root, className),
|
|
4496
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
4811
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$c("root") } : {},
|
|
4497
4812
|
children: !isSkeleton ? /* @__PURE__ */ jsx(Typography$1, { ...other, variant }) : /* @__PURE__ */ jsx(SkeletonTypography, { skeletonWidth, skeletonHeight })
|
|
4498
4813
|
}
|
|
4499
4814
|
);
|
|
@@ -4530,8 +4845,8 @@ function useModal() {
|
|
|
4530
4845
|
if (!context) throw new Error("useModal context must be use inside ModalContext");
|
|
4531
4846
|
return context;
|
|
4532
4847
|
}
|
|
4533
|
-
const componentName$
|
|
4534
|
-
generateUtilityClasses(componentName$
|
|
4848
|
+
const componentName$D = "M4LModal";
|
|
4849
|
+
generateUtilityClasses(componentName$D, [
|
|
4535
4850
|
/* elements */
|
|
4536
4851
|
"root",
|
|
4537
4852
|
"windowBaseRoot",
|
|
@@ -4555,7 +4870,7 @@ generateUtilityClasses(componentName$E, [
|
|
|
4555
4870
|
"variantPrimary"
|
|
4556
4871
|
]);
|
|
4557
4872
|
function getModalUtilityClass(slot) {
|
|
4558
|
-
return generateUtilityClass(componentName$
|
|
4873
|
+
return generateUtilityClass(componentName$D, slot);
|
|
4559
4874
|
}
|
|
4560
4875
|
const modalUtilityClasses = (ownerState) => {
|
|
4561
4876
|
const slots = {
|
|
@@ -4670,9 +4985,9 @@ function ModalProvider({ children }) {
|
|
|
4670
4985
|
const FormProviderRoot = styled$1("form")(({ theme }) => ({
|
|
4671
4986
|
...theme.components?.M4LRHFormProvider?.styleOverrides
|
|
4672
4987
|
}));
|
|
4673
|
-
const componentName$
|
|
4988
|
+
const componentName$C = "M4LRHFormProvider";
|
|
4674
4989
|
generateUtilityClasses(
|
|
4675
|
-
componentName$
|
|
4990
|
+
componentName$C,
|
|
4676
4991
|
[
|
|
4677
4992
|
/* elements */
|
|
4678
4993
|
"root"
|
|
@@ -4680,7 +4995,7 @@ generateUtilityClasses(
|
|
|
4680
4995
|
]
|
|
4681
4996
|
);
|
|
4682
4997
|
function getRHFormProviderUtilityClass(slot) {
|
|
4683
|
-
return generateUtilityClass(componentName$
|
|
4998
|
+
return generateUtilityClass(componentName$C, slot);
|
|
4684
4999
|
}
|
|
4685
5000
|
const RHFormProviderUtilityClasses = () => {
|
|
4686
5001
|
const slots = {
|
|
@@ -4765,9 +5080,9 @@ const useFormFocus = () => {
|
|
|
4765
5080
|
};
|
|
4766
5081
|
return { isFocus, isTabSelected, handlerFocus, handlerOnKeyUp, handlerOnBlur };
|
|
4767
5082
|
};
|
|
4768
|
-
const componentName$
|
|
5083
|
+
const componentName$B = "M4LRHFAutocomplete";
|
|
4769
5084
|
generateUtilityClasses(
|
|
4770
|
-
componentName$
|
|
5085
|
+
componentName$B,
|
|
4771
5086
|
[
|
|
4772
5087
|
/* elements */
|
|
4773
5088
|
"root",
|
|
@@ -4795,7 +5110,7 @@ generateUtilityClasses(
|
|
|
4795
5110
|
]
|
|
4796
5111
|
);
|
|
4797
5112
|
function getRHFAutocompleteClassesUtilityClass(slot) {
|
|
4798
|
-
return generateUtilityClass(componentName$
|
|
5113
|
+
return generateUtilityClass(componentName$B, slot);
|
|
4799
5114
|
}
|
|
4800
5115
|
const useUtilityClasses$c = (ownerState) => {
|
|
4801
5116
|
const slots = {
|
|
@@ -4915,18 +5230,18 @@ const getRatioValues = (ratio) => {
|
|
|
4915
5230
|
}
|
|
4916
5231
|
};
|
|
4917
5232
|
const IMAGE_PREFIX = "Image";
|
|
4918
|
-
const getNameDataTestId$
|
|
5233
|
+
const getNameDataTestId$b = (KEY) => {
|
|
4919
5234
|
return `${IMAGE_PREFIX}-${KEY}`;
|
|
4920
5235
|
};
|
|
4921
|
-
const componentName$
|
|
4922
|
-
generateUtilityClasses(componentName$
|
|
5236
|
+
const componentName$A = "M4LImage";
|
|
5237
|
+
generateUtilityClasses(componentName$A, [
|
|
4923
5238
|
/* elements */
|
|
4924
5239
|
"root",
|
|
4925
5240
|
"img"
|
|
4926
5241
|
/* states or variants of elements */
|
|
4927
5242
|
]);
|
|
4928
5243
|
function getImagenClassesUtilityClass(slot) {
|
|
4929
|
-
return generateUtilityClass(componentName$
|
|
5244
|
+
return generateUtilityClass(componentName$A, slot);
|
|
4930
5245
|
}
|
|
4931
5246
|
const useUtilityClasses$b = () => {
|
|
4932
5247
|
const slots = {
|
|
@@ -4949,7 +5264,7 @@ function Image(props) {
|
|
|
4949
5264
|
ImageRoot,
|
|
4950
5265
|
{
|
|
4951
5266
|
className: clsx(classes2.root, className),
|
|
4952
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
5267
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$b("root") } : {},
|
|
4953
5268
|
style: width && height ? { minWidth: width, minHeight: height, width, height } : { width: "100%", height: "100%" },
|
|
4954
5269
|
children: /* @__PURE__ */ jsx(
|
|
4955
5270
|
"img",
|
|
@@ -4959,14 +5274,14 @@ function Image(props) {
|
|
|
4959
5274
|
className: classes2.img,
|
|
4960
5275
|
width: !width ? "100%" : ratioImage.width,
|
|
4961
5276
|
height: !height ? "100%" : ratioImage.height,
|
|
4962
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
5277
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$b("img") } : {}
|
|
4963
5278
|
}
|
|
4964
5279
|
)
|
|
4965
5280
|
}
|
|
4966
5281
|
)
|
|
4967
5282
|
);
|
|
4968
5283
|
}
|
|
4969
|
-
const getNameDataTestId$
|
|
5284
|
+
const getNameDataTestId$a = (KEY) => {
|
|
4970
5285
|
return `${RHFAUTOCOMPLETE_PREFIX}-${KEY}`;
|
|
4971
5286
|
};
|
|
4972
5287
|
function withRenderOption(getUrlImage, classes2) {
|
|
@@ -4977,7 +5292,7 @@ function withRenderOption(getUrlImage, classes2) {
|
|
|
4977
5292
|
...optionProps,
|
|
4978
5293
|
key: optionProps.key,
|
|
4979
5294
|
className: classes2.withImage,
|
|
4980
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
5295
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$a("withImage") } : {}
|
|
4981
5296
|
},
|
|
4982
5297
|
/* @__PURE__ */ jsx(Image, { src: getUrlImage(option) }),
|
|
4983
5298
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: optionProps.key })
|
|
@@ -5021,7 +5336,7 @@ const SkeletonRHFAutocomplete = (props) => {
|
|
|
5021
5336
|
"div",
|
|
5022
5337
|
{
|
|
5023
5338
|
className: classes2.skeleton,
|
|
5024
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
5339
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$a("skeleton") } : {},
|
|
5025
5340
|
children: !withImage ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5026
5341
|
/* @__PURE__ */ jsx("div", { className: classes2.skeletonContainerText, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "50%", height: "14px" }) }),
|
|
5027
5342
|
/* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: 16, height: 16, sx: { minWidth: "16px" } })
|
|
@@ -5402,8 +5717,8 @@ function ComponentTypeImage$1(props) {
|
|
|
5402
5717
|
}
|
|
5403
5718
|
);
|
|
5404
5719
|
}
|
|
5405
|
-
const componentName$
|
|
5406
|
-
generateUtilityClasses(componentName$
|
|
5720
|
+
const componentName$z = "M4LAccordion";
|
|
5721
|
+
generateUtilityClasses(componentName$z, [
|
|
5407
5722
|
/* elements */
|
|
5408
5723
|
"root",
|
|
5409
5724
|
"endIcon",
|
|
@@ -5413,7 +5728,7 @@ generateUtilityClasses(componentName$A, [
|
|
|
5413
5728
|
/* states or variants of elements */
|
|
5414
5729
|
]);
|
|
5415
5730
|
function getAccordionUtilityClass(slot) {
|
|
5416
|
-
return generateUtilityClass(componentName$
|
|
5731
|
+
return generateUtilityClass(componentName$z, slot);
|
|
5417
5732
|
}
|
|
5418
5733
|
const accordionUtilityClasses = () => {
|
|
5419
5734
|
const slots = {
|
|
@@ -5449,12 +5764,6 @@ styled("div")(({ theme }) => ({
|
|
|
5449
5764
|
const AccordionRoot = styled("div")(({ theme }) => ({
|
|
5450
5765
|
...theme.components?.M4LAccordion?.styleOverrides
|
|
5451
5766
|
}));
|
|
5452
|
-
const getNameDataTestId$a = (ELEMENT_PREFIX, ELEMENT_KEY, ELEMENT_ID) => {
|
|
5453
|
-
return `${ELEMENT_PREFIX}-${[ELEMENT_KEY]}-${ELEMENT_ID}`;
|
|
5454
|
-
};
|
|
5455
|
-
function getPropDataTestId(prefix, keyName) {
|
|
5456
|
-
return process.env.NODE_ENV !== "production" && prefix && keyName ? { ["data-testid"]: `${prefix}-${[keyName]}` } : {};
|
|
5457
|
-
}
|
|
5458
5767
|
const COMPONENT_PREFIX$2 = "m4l-accordion";
|
|
5459
5768
|
function Accordion(props) {
|
|
5460
5769
|
const {
|
|
@@ -5475,7 +5784,7 @@ function Accordion(props) {
|
|
|
5475
5784
|
{
|
|
5476
5785
|
className: clsx(classes2.root, className),
|
|
5477
5786
|
...process.env.NODE_ENV !== "production" ? {
|
|
5478
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
5787
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
5479
5788
|
COMPONENT_PREFIX$2,
|
|
5480
5789
|
"root",
|
|
5481
5790
|
dataTestId
|
|
@@ -5509,7 +5818,7 @@ function Accordion(props) {
|
|
|
5509
5818
|
{
|
|
5510
5819
|
className: classes2.labelIcon,
|
|
5511
5820
|
...process.env.NODE_ENV !== "production" ? {
|
|
5512
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
5821
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
5513
5822
|
COMPONENT_PREFIX$2,
|
|
5514
5823
|
"labelIcon",
|
|
5515
5824
|
dataTestId
|
|
@@ -5592,27 +5901,25 @@ var MenuActionsSlots = /* @__PURE__ */ ((MenuActionsSlots2) => {
|
|
|
5592
5901
|
MenuActionsSlots2["labelEmpty"] = "labelEmpty";
|
|
5593
5902
|
return MenuActionsSlots2;
|
|
5594
5903
|
})(MenuActionsSlots || {});
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
return `${BADGE_PREFIX}-${ELEMENTKEY}-${ID}`;
|
|
5608
|
-
};
|
|
5904
|
+
var BadgeSlots = /* @__PURE__ */ ((BadgeSlots2) => {
|
|
5905
|
+
BadgeSlots2["rootBadge"] = "rootBadge";
|
|
5906
|
+
return BadgeSlots2;
|
|
5907
|
+
})(BadgeSlots || {});
|
|
5908
|
+
const BADGE_LABEL_KEY_COMPONENT = "M4LBadge";
|
|
5909
|
+
const badgeStyles = {
|
|
5910
|
+
rootBadge: ({}) => ({})
|
|
5911
|
+
};
|
|
5912
|
+
const BadgeRootStyled = styled(Badge$1, {
|
|
5913
|
+
name: BADGE_LABEL_KEY_COMPONENT,
|
|
5914
|
+
slot: BadgeSlots.rootBadge
|
|
5915
|
+
})(badgeStyles?.rootBadge);
|
|
5609
5916
|
const Badge = (props) => {
|
|
5610
|
-
const { children, dataTestId = "", ...others } = props;
|
|
5917
|
+
const { children, size, dataTestId = "", ...others } = props;
|
|
5918
|
+
const { currentSize } = useComponentSize(size);
|
|
5611
5919
|
return /* @__PURE__ */ jsx(
|
|
5612
|
-
|
|
5920
|
+
BadgeRootStyled,
|
|
5613
5921
|
{
|
|
5614
|
-
|
|
5615
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameBadgeDataTestId("root", dataTestId) } : {},
|
|
5922
|
+
ownerState: { size: currentSize },
|
|
5616
5923
|
children: /* @__PURE__ */ jsx(Badge$1, { ...others, children })
|
|
5617
5924
|
}
|
|
5618
5925
|
);
|
|
@@ -5701,10 +6008,9 @@ function MenuActions(props) {
|
|
|
5701
6008
|
setOpen(null);
|
|
5702
6009
|
externalClose && externalClose(null);
|
|
5703
6010
|
};
|
|
5704
|
-
const handleClick = (e,
|
|
6011
|
+
const handleClick = (e, _menuAction) => {
|
|
5705
6012
|
e.stopPropagation();
|
|
5706
6013
|
setOpen(null);
|
|
5707
|
-
menuAction.onClick();
|
|
5708
6014
|
};
|
|
5709
6015
|
const finalActions = useMemo(() => {
|
|
5710
6016
|
let ret;
|
|
@@ -5767,7 +6073,7 @@ function MenuActions(props) {
|
|
|
5767
6073
|
{
|
|
5768
6074
|
dense: true,
|
|
5769
6075
|
onClick: (e) => {
|
|
5770
|
-
handleClick(e
|
|
6076
|
+
handleClick(e);
|
|
5771
6077
|
},
|
|
5772
6078
|
sx: { color: menuAction.color ?? "text.main" },
|
|
5773
6079
|
disabled: menuAction.disabled,
|
|
@@ -6600,14 +6906,14 @@ function Tab(props) {
|
|
|
6600
6906
|
{
|
|
6601
6907
|
className: clsx(classes2.root, className),
|
|
6602
6908
|
...process.env.NODE_ENV !== "production" ? {
|
|
6603
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
6909
|
+
[TEST_PROP_ID]: getNameDataTestId$d(COMPONENT_PREFIX$1, "root", dataTestId)
|
|
6604
6910
|
} : {},
|
|
6605
6911
|
children: !isSkeleton ? /* @__PURE__ */ jsx(Tab$1, { ...other }) : /* @__PURE__ */ jsx(
|
|
6606
6912
|
SKTTabWrapper,
|
|
6607
6913
|
{
|
|
6608
6914
|
className: classes2.skeleton,
|
|
6609
6915
|
...process.env.NODE_ENV !== "production" ? {
|
|
6610
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
6916
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
6611
6917
|
COMPONENT_PREFIX$1,
|
|
6612
6918
|
"skeleton",
|
|
6613
6919
|
dataTestId
|
|
@@ -6667,10 +6973,7 @@ const ToggleAbleIconButton = ({
|
|
|
6667
6973
|
IconButton,
|
|
6668
6974
|
{
|
|
6669
6975
|
onClick: onToggle,
|
|
6670
|
-
...props
|
|
6671
|
-
className: clsx(
|
|
6672
|
-
onToggle ? iconButtonClasses.togglePressed : iconButtonClasses.toggleNotPressed
|
|
6673
|
-
)
|
|
6976
|
+
...props
|
|
6674
6977
|
}
|
|
6675
6978
|
);
|
|
6676
6979
|
};
|
|
@@ -8095,7 +8398,6 @@ const RHFTextFieldPassword = (props) => {
|
|
|
8095
8398
|
IconButton,
|
|
8096
8399
|
{
|
|
8097
8400
|
onClick: () => setShowPassword(!showPassword),
|
|
8098
|
-
variant: "line",
|
|
8099
8401
|
src: showPassword ? `${host_static_assets}/${environment_assets}/frontend/domain/host/login/assets/icons/eye.svg` : `${host_static_assets}/${environment_assets}/frontend/domain/host/login/assets/icons/eye_off.svg`
|
|
8100
8402
|
}
|
|
8101
8403
|
) })
|
|
@@ -11097,7 +11399,7 @@ const Window = (props) => {
|
|
|
11097
11399
|
),
|
|
11098
11400
|
onMouseDown: onTouch,
|
|
11099
11401
|
...process.env.NODE_ENV !== "production" ? {
|
|
11100
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
11402
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
11101
11403
|
AREAS_VIEWER_CLASS_NAME,
|
|
11102
11404
|
"windowRoot",
|
|
11103
11405
|
`${emergeType}`
|
|
@@ -11394,7 +11696,7 @@ function AreasViewer() {
|
|
|
11394
11696
|
{
|
|
11395
11697
|
className: classesRoot,
|
|
11396
11698
|
...process.env.NODE_ENV !== "production" ? {
|
|
11397
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
11699
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
11398
11700
|
AREAS_VIEWER_CLASS_NAME,
|
|
11399
11701
|
"root",
|
|
11400
11702
|
""
|
|
@@ -13387,7 +13689,7 @@ function DataGrid(props) {
|
|
|
13387
13689
|
className: classes2.root,
|
|
13388
13690
|
...process.env.NODE_ENV !== "production" ? {
|
|
13389
13691
|
[TEST_PROP_COLUMNS]: JSON.stringify(columns),
|
|
13390
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
13692
|
+
[TEST_PROP_ID]: getNameDataTestId$d(DATAGRID_PREFIX_NAME, "root", dataTestId)
|
|
13391
13693
|
} : {},
|
|
13392
13694
|
children: /* @__PURE__ */ jsx(
|
|
13393
13695
|
DataGridProvider,
|
|
@@ -21831,7 +22133,6 @@ function GeneralData() {
|
|
|
21831
22133
|
IconButton,
|
|
21832
22134
|
{
|
|
21833
22135
|
src: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCE_DRAW}`,
|
|
21834
|
-
variant: "primary",
|
|
21835
22136
|
onClick: handleDraw,
|
|
21836
22137
|
disabled: inEdition || !geometrTypeIdCached,
|
|
21837
22138
|
tooltip: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_DRAW)
|
|
@@ -21841,7 +22142,6 @@ function GeneralData() {
|
|
|
21841
22142
|
IconButton,
|
|
21842
22143
|
{
|
|
21843
22144
|
src: `${host_static_assets}/${environment_assets}/frontend/components/map_gpstools/assets/icons/${MAP_GPSTOOLS_ICONS.GEOFENCE_FINISH}`,
|
|
21844
|
-
variant: "primary",
|
|
21845
22145
|
onClick: handleFinish,
|
|
21846
22146
|
disabled: !inEdition,
|
|
21847
22147
|
tooltip: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_FINISH)
|
|
@@ -23598,7 +23898,7 @@ function PropertyValue(props) {
|
|
|
23598
23898
|
[TEST_PROPS_DATA]: JSON.stringify([
|
|
23599
23899
|
{ property: property ? true : false, value: value ? true : false }
|
|
23600
23900
|
]),
|
|
23601
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23901
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23602
23902
|
COMPONENT_PREFIX,
|
|
23603
23903
|
"root",
|
|
23604
23904
|
dataTestId
|
|
@@ -23614,7 +23914,7 @@ function PropertyValue(props) {
|
|
|
23614
23914
|
minWidth: propertyWidth && isDesktop ? propertyWidth : "150px"
|
|
23615
23915
|
},
|
|
23616
23916
|
...process.env.NODE_ENV !== "production" ? {
|
|
23617
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23917
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23618
23918
|
COMPONENT_PREFIX,
|
|
23619
23919
|
"property",
|
|
23620
23920
|
dataTestId
|
|
@@ -23644,7 +23944,7 @@ function PropertyValue(props) {
|
|
|
23644
23944
|
height: valueHeight
|
|
23645
23945
|
},
|
|
23646
23946
|
...process.env.NODE_ENV !== "production" ? {
|
|
23647
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23947
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23648
23948
|
COMPONENT_PREFIX,
|
|
23649
23949
|
"value",
|
|
23650
23950
|
dataTestId
|
|
@@ -23666,7 +23966,7 @@ function PropertyValue(props) {
|
|
|
23666
23966
|
[TEST_PROPS_DATA]: JSON.stringify([
|
|
23667
23967
|
{ property: property ? true : false, value: value ? true : false }
|
|
23668
23968
|
]),
|
|
23669
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23969
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23670
23970
|
COMPONENT_PREFIX,
|
|
23671
23971
|
"root",
|
|
23672
23972
|
dataTestId
|
|
@@ -23682,7 +23982,7 @@ function PropertyValue(props) {
|
|
|
23682
23982
|
[TEST_PROPS_DATA]: JSON.stringify([
|
|
23683
23983
|
{ property: property ? true : false, value: value ? true : false }
|
|
23684
23984
|
]),
|
|
23685
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23985
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23686
23986
|
COMPONENT_PREFIX,
|
|
23687
23987
|
"root",
|
|
23688
23988
|
dataTestId
|
|
@@ -23712,7 +24012,7 @@ function PropertyValue(props) {
|
|
|
23712
24012
|
height: valueHeight
|
|
23713
24013
|
},
|
|
23714
24014
|
...process.env.NODE_ENV !== "production" ? {
|
|
23715
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
24015
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23716
24016
|
COMPONENT_PREFIX,
|
|
23717
24017
|
"value",
|
|
23718
24018
|
dataTestId
|
|
@@ -24540,7 +24840,7 @@ const ContentComponent = () => {
|
|
|
24540
24840
|
/* @__PURE__ */ jsx(
|
|
24541
24841
|
IconButton,
|
|
24542
24842
|
{
|
|
24543
|
-
variant: "
|
|
24843
|
+
variant: "text",
|
|
24544
24844
|
rotationAngle: !collapsed ? 180 : 0,
|
|
24545
24845
|
onClick: () => handleButtonClick(),
|
|
24546
24846
|
onMouseEnter: () => handlerOnMouseEnterIconButton(),
|
|
@@ -25202,7 +25502,6 @@ const HamburgerMenu = (props) => {
|
|
|
25202
25502
|
{
|
|
25203
25503
|
src: `${host_static_assets}/${environment_assets}/frontend/web_comercial/menu.svg`,
|
|
25204
25504
|
className: classes2.ImageLogo,
|
|
25205
|
-
variant: "secondary",
|
|
25206
25505
|
onClick: () => handlerOnVisible()
|
|
25207
25506
|
}
|
|
25208
25507
|
),
|
|
@@ -25323,7 +25622,7 @@ const NavItemRoot = (props) => {
|
|
|
25323
25622
|
classes2.ItemSelect,
|
|
25324
25623
|
item.path === window.location.pathname ? TopBarClasses.IsActive : null
|
|
25325
25624
|
),
|
|
25326
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
25625
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(componentName$1, "ItemSelect", dataTestId) } : {},
|
|
25327
25626
|
children: /* @__PURE__ */ jsx(Button, { variant: "text", href: item.path, fullWidth: true, children: item.title })
|
|
25328
25627
|
}
|
|
25329
25628
|
) }, index));
|
|
@@ -25358,7 +25657,7 @@ const NavItemRoot = (props) => {
|
|
|
25358
25657
|
{
|
|
25359
25658
|
className: classes2.ContainerAccordionCase1,
|
|
25360
25659
|
...process.env.NODE_ENV !== "production" ? {
|
|
25361
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
25660
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
25362
25661
|
componentName$1,
|
|
25363
25662
|
"ContainerAccordionCase1",
|
|
25364
25663
|
dataTestId
|
|
@@ -25385,7 +25684,7 @@ const NavItemRoot = (props) => {
|
|
|
25385
25684
|
"div",
|
|
25386
25685
|
{
|
|
25387
25686
|
className: classes2.ContainerAccordion,
|
|
25388
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
25687
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(componentName$1, "ContainerAccordion", dataTestId) } : {},
|
|
25389
25688
|
children: [
|
|
25390
25689
|
/* @__PURE__ */ jsx(
|
|
25391
25690
|
Button,
|
|
@@ -25413,7 +25712,7 @@ const NavItemRoot = (props) => {
|
|
|
25413
25712
|
classes2.ItemRoot,
|
|
25414
25713
|
isActive(itemRootData) || openedPopoverId === itemRootData.module_id ? TopBarClasses.IsActive : null
|
|
25415
25714
|
),
|
|
25416
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
25715
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(componentName$1, "ItemRoot", dataTestId) } : {},
|
|
25417
25716
|
children: render()
|
|
25418
25717
|
}
|
|
25419
25718
|
);
|
|
@@ -25424,7 +25723,7 @@ const ConteinItem = () => {
|
|
|
25424
25723
|
"div",
|
|
25425
25724
|
{
|
|
25426
25725
|
className: classes2.SimplebarComercial,
|
|
25427
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
25726
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(componentName$1, "SimplebarComercial", dataTestId) } : {},
|
|
25428
25727
|
//Map que se encarga de cargar el iNavItemRoot
|
|
25429
25728
|
children: DataMenu.map((group) => /* @__PURE__ */ jsx(NavItemRoot, { itemRootData: group }, group.module_id))
|
|
25430
25729
|
}
|
|
@@ -25440,7 +25739,7 @@ const TopBar = (props) => {
|
|
|
25440
25739
|
TopBarRoot,
|
|
25441
25740
|
{
|
|
25442
25741
|
className: classes2.root,
|
|
25443
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
25742
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(componentName$1, "root", dataTestId) } : {},
|
|
25444
25743
|
children: /* @__PURE__ */ jsx(TopBarProvider, { value: { dataMenu: DataMenu, classes: classes2, dataTestId }, children: /* @__PURE__ */ jsx(ConteinItem, {}) })
|
|
25445
25744
|
}
|
|
25446
25745
|
);
|