@m4l/components 3.1.8 → 3.1.9
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/export.d.ts +0 -3
- package/@types/types.d.ts +29 -11
- package/components/DynamicSort/constants.d.ts +12 -0
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +84 -0
- package/components/DynamicSort/slots/SlotsEnum.d.ts +30 -0
- package/components/DynamicSort/slots/index.d.ts +2 -0
- package/components/DynamicSort/types.d.ts +183 -0
- package/components/FieldLabel/types.d.ts +1 -0
- package/components/ObjectLogs/types.d.ts +1 -1
- package/components/areas/contexts/AreasContext/helper.d.ts +3 -0
- package/components/hook-form/RHFTextField/constant.d.ts +1 -0
- package/components/hook-form/RHFTextField/index.d.ts +0 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldEnum.d.ts +7 -0
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +18 -0
- package/components/hook-form/RHFTextField/slots/index.d.ts +2 -0
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +3 -4
- package/components/hook-form/RHFTextField/types.d.ts +11 -3
- package/helpers/cookies/cookies.d.ts +4 -0
- package/helpers/cookies/index.d.ts +1 -0
- package/helpers/cookies/types.d.ts +42 -0
- package/index.js +145 -148
- package/package.json +1 -1
- package/styles/DynamicSort.styles.d.ts +2 -0
- package/styles/MenuActions.styles.d.ts +1 -1
- package/styles/RHFTextField.styles.d.ts +2 -0
- package/utils/index.d.ts +1 -1
- package/{vendor-AfIOyqRr.js → vendor-BDLrgGjq.js} +575 -519
- package/components/hook-form/RHFTextField/classes/constants.d.ts +0 -1
- package/components/hook-form/RHFTextField/classes/index.d.ts +0 -8
- package/components/hook-form/RHFTextField/classes/types.d.ts +0 -17
- package/components/hook-form/RHFTextField/styles.d.ts +0 -3
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +0 -3
- package/components/hook-form/RHFTextField/tests/constants.d.ts +0 -3
- package/components/hook-form/RHFTextField/tests/utils.d.ts +0 -2
|
@@ -45,6 +45,9 @@ import { SketchPicker } from "react-color";
|
|
|
45
45
|
import "leaflet-polylinedecorator";
|
|
46
46
|
import { useDrag, useDrop, DndProvider } from "react-dnd";
|
|
47
47
|
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
48
|
+
import "simplebar-react/dist/simplebar.min.css";
|
|
49
|
+
import { inputBaseClasses } from "@mui/material/InputBase";
|
|
50
|
+
import { typographyClasses } from "@mui/material/Typography";
|
|
48
51
|
import { DateTimePicker } from "@mui/x-date-pickers";
|
|
49
52
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
50
53
|
import { Helmet } from "react-helmet-async";
|
|
@@ -513,8 +516,8 @@ const DivIcon = styled$1("div", {
|
|
|
513
516
|
transition: `transform ${angleTransition}s ease-in-out`,
|
|
514
517
|
}), */
|
|
515
518
|
}));
|
|
516
|
-
const componentName$
|
|
517
|
-
generateUtilityClasses(componentName$
|
|
519
|
+
const componentName$J = "M4LIcon";
|
|
520
|
+
generateUtilityClasses(componentName$J, [
|
|
518
521
|
/* elements */
|
|
519
522
|
"root",
|
|
520
523
|
"icon",
|
|
@@ -528,7 +531,7 @@ generateUtilityClasses(componentName$K, [
|
|
|
528
531
|
"rotationAngle"
|
|
529
532
|
]);
|
|
530
533
|
function getIconClassesUtilityClass(slot) {
|
|
531
|
-
return generateUtilityClass(componentName$
|
|
534
|
+
return generateUtilityClass(componentName$J, slot);
|
|
532
535
|
}
|
|
533
536
|
const useUtilityClasses$i = (ownerState) => {
|
|
534
537
|
const slots = {
|
|
@@ -558,7 +561,7 @@ const useUtilityClasses$i = (ownerState) => {
|
|
|
558
561
|
};
|
|
559
562
|
const TEST_PROP_ID = "data-testid";
|
|
560
563
|
const ICON_PREFIX$2 = "Icon";
|
|
561
|
-
const getNameDataTestId$
|
|
564
|
+
const getNameDataTestId$e = (KEY) => {
|
|
562
565
|
return `${ICON_PREFIX$2}-${KEY}`;
|
|
563
566
|
};
|
|
564
567
|
function Icon(props) {
|
|
@@ -573,14 +576,14 @@ function Icon(props) {
|
|
|
573
576
|
IconRoot,
|
|
574
577
|
{
|
|
575
578
|
className: clsx(classes2.root, className),
|
|
576
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
579
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$e("root") } : {},
|
|
577
580
|
children: /* @__PURE__ */ jsx(
|
|
578
581
|
DivIcon,
|
|
579
582
|
{
|
|
580
583
|
className: classes2.icon,
|
|
581
584
|
src,
|
|
582
585
|
rotationAngle,
|
|
583
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
586
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$e("icon") } : {}
|
|
584
587
|
}
|
|
585
588
|
)
|
|
586
589
|
}
|
|
@@ -600,8 +603,8 @@ const SkeletonIconButton = (props) => {
|
|
|
600
603
|
const IconButtonRoot = styled$1("div")(({ theme }) => ({
|
|
601
604
|
...theme.components?.M4LIconButton?.styleOverrides
|
|
602
605
|
}));
|
|
603
|
-
const componentName$
|
|
604
|
-
const iconButtonClasses = generateUtilityClasses(componentName$
|
|
606
|
+
const componentName$I = "M4LIconButton";
|
|
607
|
+
const iconButtonClasses = generateUtilityClasses(componentName$I, [
|
|
605
608
|
/* elements */
|
|
606
609
|
"root",
|
|
607
610
|
"skeleton",
|
|
@@ -618,7 +621,7 @@ const iconButtonClasses = generateUtilityClasses(componentName$J, [
|
|
|
618
621
|
"toggleNotPressed"
|
|
619
622
|
]);
|
|
620
623
|
function getIconButtonUtilityClass(slot) {
|
|
621
|
-
return generateUtilityClass(componentName$
|
|
624
|
+
return generateUtilityClass(componentName$I, slot);
|
|
622
625
|
}
|
|
623
626
|
const useUtilityClasses$h = (ownerState) => {
|
|
624
627
|
const slots = {
|
|
@@ -2866,6 +2869,8 @@ function withSizeProvider(ComposedComponent) {
|
|
|
2866
2869
|
const PADDING_GRIDLAYOUT = 11;
|
|
2867
2870
|
const MARGIN_GRIDLAYOUT = 11;
|
|
2868
2871
|
const DEBOUCED_SAVE_TIME = 500;
|
|
2872
|
+
const COOKIE_AREAS_ADMIN_CONTAINER_ID = "areas";
|
|
2873
|
+
const COOKIE_AREAS_ADMIN_ID = "admin";
|
|
2869
2874
|
const COOKIE_BREAKPOINT_LAYOUTS = "layoutPros";
|
|
2870
2875
|
const COOKIE_WINDOWS = "windows";
|
|
2871
2876
|
const BREAKPOINT_SIZES = { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 1 };
|
|
@@ -3052,6 +3057,49 @@ function getCookiesContainer(data, containerId) {
|
|
|
3052
3057
|
}
|
|
3053
3058
|
return cookies;
|
|
3054
3059
|
}
|
|
3060
|
+
function getSelectedAreaIdFromCookies(cookiesResponse) {
|
|
3061
|
+
return typeof cookiesResponse?.data?.[0]?.value === "string" && JSON.parse(cookiesResponse?.data?.[0]?.value || "{}")?.selectedAreaId;
|
|
3062
|
+
}
|
|
3063
|
+
function getCookie({
|
|
3064
|
+
networkOperation,
|
|
3065
|
+
params,
|
|
3066
|
+
withToast = {}
|
|
3067
|
+
}) {
|
|
3068
|
+
return networkOperation({
|
|
3069
|
+
method: "GET",
|
|
3070
|
+
endPoint: "cookies",
|
|
3071
|
+
parms: params ?? {},
|
|
3072
|
+
toastSuccess: withToast?.success ?? false,
|
|
3073
|
+
toastError: withToast?.error ?? false
|
|
3074
|
+
});
|
|
3075
|
+
}
|
|
3076
|
+
function setCookie({
|
|
3077
|
+
networkOperation,
|
|
3078
|
+
endPoint,
|
|
3079
|
+
value,
|
|
3080
|
+
withToast = {}
|
|
3081
|
+
}) {
|
|
3082
|
+
return networkOperation({
|
|
3083
|
+
method: "PUT",
|
|
3084
|
+
endPoint: `cookies/${endPoint}`,
|
|
3085
|
+
data: { value: JSON.stringify(value) },
|
|
3086
|
+
toastSuccess: withToast?.success ?? false,
|
|
3087
|
+
toastError: withToast?.error ?? false
|
|
3088
|
+
});
|
|
3089
|
+
}
|
|
3090
|
+
function deleteCookie({
|
|
3091
|
+
networkOperation,
|
|
3092
|
+
data,
|
|
3093
|
+
withToast = {}
|
|
3094
|
+
}) {
|
|
3095
|
+
return networkOperation({
|
|
3096
|
+
method: "DELETE",
|
|
3097
|
+
endPoint: "cookies",
|
|
3098
|
+
data,
|
|
3099
|
+
toastSuccess: withToast?.success ?? false,
|
|
3100
|
+
toastError: withToast?.error ?? false
|
|
3101
|
+
});
|
|
3102
|
+
}
|
|
3055
3103
|
const createAreasStore = (initProps) => {
|
|
3056
3104
|
const startProps = {
|
|
3057
3105
|
viwerClasses: useAreasViewerUtilityClasses(initProps.ownerState),
|
|
@@ -3086,35 +3134,53 @@ const createAreasStore = (initProps) => {
|
|
|
3086
3134
|
state.ownerState.status = "loading";
|
|
3087
3135
|
updateOwnerStateClasses(state);
|
|
3088
3136
|
});
|
|
3089
|
-
|
|
3137
|
+
const cookiePromise = getCookie({
|
|
3138
|
+
networkOperation: get().networkOperation,
|
|
3139
|
+
params: {
|
|
3140
|
+
f: [
|
|
3141
|
+
{ n: "container_id", o: "e", o1: COOKIE_AREAS_ADMIN_CONTAINER_ID },
|
|
3142
|
+
{ n: "id", o: "e", o1: COOKIE_AREAS_ADMIN_ID }
|
|
3143
|
+
]
|
|
3144
|
+
}
|
|
3145
|
+
});
|
|
3146
|
+
const areasPromise = get().networkOperation({
|
|
3090
3147
|
method: "GET",
|
|
3091
3148
|
endPoint: `areas`,
|
|
3092
3149
|
parms: {},
|
|
3093
3150
|
toastSuccess: false
|
|
3094
|
-
})
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3151
|
+
});
|
|
3152
|
+
let selectedAreaIdCookie;
|
|
3153
|
+
Promise.allSettled([areasPromise, cookiePromise]).then(([areasResponse, cookieResponse]) => {
|
|
3154
|
+
if (areasResponse?.status === "fulfilled") {
|
|
3155
|
+
const areasData = areasResponse?.value?.data;
|
|
3156
|
+
set((state) => {
|
|
3157
|
+
if (areasData && Array.isArray(areasData) && areasData.length > 0) {
|
|
3158
|
+
for (let i = 0; i < areasData.length; i++) {
|
|
3159
|
+
const newArea = {
|
|
3160
|
+
...DEFAULT_AREA,
|
|
3161
|
+
...areasData[i],
|
|
3162
|
+
loadWindows: true
|
|
3163
|
+
//Se indica que si se carguen las ventas debido a que viene de la API
|
|
3164
|
+
};
|
|
3165
|
+
state.hashAreas[newArea.id] = newArea;
|
|
3166
|
+
state.areasIds.push(newArea.id);
|
|
3167
|
+
}
|
|
3168
|
+
} else {
|
|
3169
|
+
addArea(state);
|
|
3106
3170
|
}
|
|
3107
|
-
}
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3171
|
+
});
|
|
3172
|
+
}
|
|
3173
|
+
if (cookieResponse.status === "fulfilled") {
|
|
3174
|
+
selectedAreaIdCookie = getSelectedAreaIdFromCookies(cookieResponse?.value);
|
|
3175
|
+
}
|
|
3111
3176
|
}).finally(() => {
|
|
3112
3177
|
set((state) => {
|
|
3113
3178
|
state.ownerState.status = "loaded";
|
|
3114
3179
|
updateOwnerStateClasses(state);
|
|
3115
3180
|
});
|
|
3116
3181
|
if (get().areasIds.length > 0 && get().currentAreaId === "") {
|
|
3117
|
-
get().
|
|
3182
|
+
const selectedAreaId = selectedAreaIdCookie && get().areasIds?.includes?.(selectedAreaIdCookie) ? selectedAreaIdCookie : get().areasIds[0];
|
|
3183
|
+
get().areasActions.selectArea(selectedAreaId);
|
|
3118
3184
|
}
|
|
3119
3185
|
});
|
|
3120
3186
|
},
|
|
@@ -3195,6 +3261,11 @@ const createAreasStore = (initProps) => {
|
|
|
3195
3261
|
}
|
|
3196
3262
|
}
|
|
3197
3263
|
if (get().hashAreas[areaId].maximizedId !== void 0) ;
|
|
3264
|
+
setCookie({
|
|
3265
|
+
networkOperation: get().networkOperation,
|
|
3266
|
+
endPoint: `${COOKIE_AREAS_ADMIN_CONTAINER_ID}/${COOKIE_AREAS_ADMIN_ID}`,
|
|
3267
|
+
value: { selectedAreaId: areaId }
|
|
3268
|
+
});
|
|
3198
3269
|
},
|
|
3199
3270
|
setHandlerGetLabel: (newHandler) => {
|
|
3200
3271
|
set((state) => {
|
|
@@ -3341,22 +3412,15 @@ const createAreasStore = (initProps) => {
|
|
|
3341
3412
|
}
|
|
3342
3413
|
}
|
|
3343
3414
|
if (nrKeys > 0) {
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
endPoint:
|
|
3347
|
-
|
|
3348
|
-
value: JSON.stringify(saveObjetc)
|
|
3349
|
-
},
|
|
3350
|
-
toastSuccess: false,
|
|
3351
|
-
toastError: false
|
|
3415
|
+
setCookie({
|
|
3416
|
+
networkOperation: get().networkOperation,
|
|
3417
|
+
endPoint: `${area.id}/${COOKIE_WINDOWS}`,
|
|
3418
|
+
value: saveObjetc
|
|
3352
3419
|
});
|
|
3353
3420
|
} else {
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
data: { f: [{ n: "container_id", o: "c", o1: area.id }] },
|
|
3358
|
-
toastSuccess: false,
|
|
3359
|
-
toastError: false
|
|
3421
|
+
deleteCookie({
|
|
3422
|
+
networkOperation: get().networkOperation,
|
|
3423
|
+
data: { f: [{ n: "container_id", o: "c", o1: area.id }] }
|
|
3360
3424
|
});
|
|
3361
3425
|
}
|
|
3362
3426
|
},
|
|
@@ -3410,14 +3474,10 @@ const createAreasStore = (initProps) => {
|
|
|
3410
3474
|
}
|
|
3411
3475
|
}
|
|
3412
3476
|
if (Object.keys(finalLayouts).length > 0) {
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
endPoint:
|
|
3416
|
-
|
|
3417
|
-
value: JSON.stringify(finalLayouts)
|
|
3418
|
-
},
|
|
3419
|
-
toastSuccess: false,
|
|
3420
|
-
toastError: false
|
|
3477
|
+
setCookie({
|
|
3478
|
+
networkOperation: get().networkOperation,
|
|
3479
|
+
endPoint: `${get().hashAreas[areaId].id}/${COOKIE_BREAKPOINT_LAYOUTS}`,
|
|
3480
|
+
value: finalLayouts
|
|
3421
3481
|
});
|
|
3422
3482
|
}
|
|
3423
3483
|
},
|
|
@@ -3524,13 +3584,9 @@ const createAreasStore = (initProps) => {
|
|
|
3524
3584
|
set((state) => {
|
|
3525
3585
|
state.hashAreas[areaId].status = "loading";
|
|
3526
3586
|
});
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
parms: { f: [{ n: "container_id", o: "e", o1: areaId }] },
|
|
3531
|
-
toastSuccess: false,
|
|
3532
|
-
toastError: false
|
|
3533
|
-
// isRemote: false
|
|
3587
|
+
getCookie({
|
|
3588
|
+
networkOperation: get().networkOperation,
|
|
3589
|
+
params: { f: [{ n: "container_id", o: "e", o1: areaId }] }
|
|
3534
3590
|
}).then((response) => {
|
|
3535
3591
|
const area2 = get().hashAreas[areaId];
|
|
3536
3592
|
if (!area2) {
|
|
@@ -3735,14 +3791,10 @@ const createAreasStore = (initProps) => {
|
|
|
3735
3791
|
set((state) => {
|
|
3736
3792
|
const hW = state.hashWindows[windowId];
|
|
3737
3793
|
if (hW) {
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
endPoint:
|
|
3741
|
-
|
|
3742
|
-
value: JSON.stringify(cookie)
|
|
3743
|
-
},
|
|
3744
|
-
toastSuccess: false,
|
|
3745
|
-
toastError: false
|
|
3794
|
+
setCookie({
|
|
3795
|
+
networkOperation: get().networkOperation,
|
|
3796
|
+
endPoint: `${type === "module" ? hW.moduleId : windowId}/${id}`,
|
|
3797
|
+
value: cookie
|
|
3746
3798
|
});
|
|
3747
3799
|
if (type === "window") {
|
|
3748
3800
|
hW.cookies.windowCookies[id] = cookie;
|
|
@@ -3782,18 +3834,14 @@ const createAreasStore = (initProps) => {
|
|
|
3782
3834
|
set((state) => {
|
|
3783
3835
|
state.hashWindows[windowId].status = "loading";
|
|
3784
3836
|
});
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
parms: {
|
|
3837
|
+
getCookie({
|
|
3838
|
+
networkOperation: get().networkOperation,
|
|
3839
|
+
params: {
|
|
3789
3840
|
f: [
|
|
3790
3841
|
{ n: "container_id", o: "e", o1: hW.windowId },
|
|
3791
3842
|
{ n: "container_id", o: "e", o1: hW.moduleId }
|
|
3792
3843
|
]
|
|
3793
|
-
}
|
|
3794
|
-
toastSuccess: false,
|
|
3795
|
-
toastError: false
|
|
3796
|
-
// isRemote: false
|
|
3844
|
+
}
|
|
3797
3845
|
}).then((response) => {
|
|
3798
3846
|
set((state) => {
|
|
3799
3847
|
const hWs = state.hashWindows[windowId];
|
|
@@ -3821,14 +3869,10 @@ const createAreasStore = (initProps) => {
|
|
|
3821
3869
|
if (hW) {
|
|
3822
3870
|
for (const key in hW.cookies.windowCookies) {
|
|
3823
3871
|
const cookie = hW.cookies.windowCookies[key];
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
endPoint:
|
|
3827
|
-
|
|
3828
|
-
value: JSON.stringify(cookie)
|
|
3829
|
-
},
|
|
3830
|
-
toastSuccess: false,
|
|
3831
|
-
toastError: false
|
|
3872
|
+
setCookie({
|
|
3873
|
+
networkOperation: get().networkOperation,
|
|
3874
|
+
endPoint: `${hW.moduleId}/${key}`,
|
|
3875
|
+
value: cookie
|
|
3832
3876
|
});
|
|
3833
3877
|
}
|
|
3834
3878
|
}
|
|
@@ -3836,9 +3880,8 @@ const createAreasStore = (initProps) => {
|
|
|
3836
3880
|
resetModuleCookies: (windowId) => {
|
|
3837
3881
|
const hW = get().hashWindows[windowId];
|
|
3838
3882
|
if (hW) {
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
endPoint: `cookies`,
|
|
3883
|
+
deleteCookie({
|
|
3884
|
+
networkOperation: get().networkOperation,
|
|
3842
3885
|
data: {
|
|
3843
3886
|
f: [
|
|
3844
3887
|
{
|
|
@@ -3847,9 +3890,7 @@ const createAreasStore = (initProps) => {
|
|
|
3847
3890
|
o1: hW.moduleId
|
|
3848
3891
|
}
|
|
3849
3892
|
]
|
|
3850
|
-
}
|
|
3851
|
-
toastSuccess: false,
|
|
3852
|
-
toastError: false
|
|
3893
|
+
}
|
|
3853
3894
|
});
|
|
3854
3895
|
}
|
|
3855
3896
|
},
|
|
@@ -3955,8 +3996,8 @@ function useAreasStore(selector, equalityFn) {
|
|
|
3955
3996
|
if (!context) throw new Error("useAreasStore context must be use inside AreasContext");
|
|
3956
3997
|
return useStore(context, selector, equalityFn);
|
|
3957
3998
|
}
|
|
3958
|
-
const componentName$
|
|
3959
|
-
generateUtilityClasses(componentName$
|
|
3999
|
+
const componentName$H = "M4LAccordion";
|
|
4000
|
+
generateUtilityClasses(componentName$H, [
|
|
3960
4001
|
/* elements */
|
|
3961
4002
|
"root",
|
|
3962
4003
|
"endIcon",
|
|
@@ -3966,7 +4007,7 @@ generateUtilityClasses(componentName$I, [
|
|
|
3966
4007
|
/* states or variants of elements */
|
|
3967
4008
|
]);
|
|
3968
4009
|
function getAccordionUtilityClass(slot) {
|
|
3969
|
-
return generateUtilityClass(componentName$
|
|
4010
|
+
return generateUtilityClass(componentName$H, slot);
|
|
3970
4011
|
}
|
|
3971
4012
|
const accordionUtilityClasses = () => {
|
|
3972
4013
|
const slots = {
|
|
@@ -4027,7 +4068,7 @@ const useUtilityClasses$g = () => {
|
|
|
4027
4068
|
};
|
|
4028
4069
|
};
|
|
4029
4070
|
const TYPOGRAPHY_PREFIX = "Typography";
|
|
4030
|
-
const getNameDataTestId$
|
|
4071
|
+
const getNameDataTestId$d = (KEY) => {
|
|
4031
4072
|
return `${TYPOGRAPHY_PREFIX}-${KEY}`;
|
|
4032
4073
|
};
|
|
4033
4074
|
function Typography(props) {
|
|
@@ -4044,12 +4085,12 @@ function Typography(props) {
|
|
|
4044
4085
|
WarpperTypography,
|
|
4045
4086
|
{
|
|
4046
4087
|
className: clsx(classes2.root, className),
|
|
4047
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
4088
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d("root") } : {},
|
|
4048
4089
|
children: !isSkeleton ? /* @__PURE__ */ jsx(Typography$1, { ...other, variant }) : /* @__PURE__ */ jsx(SkeletonTypography, { skeletonWidth, skeletongHeight })
|
|
4049
4090
|
}
|
|
4050
4091
|
);
|
|
4051
4092
|
}
|
|
4052
|
-
const getNameDataTestId$
|
|
4093
|
+
const getNameDataTestId$c = (ELEMENT_PREFIX, ELEMENT_KEY, ELEMENT_ID) => {
|
|
4053
4094
|
return `${ELEMENT_PREFIX}-${[ELEMENT_KEY]}-${ELEMENT_ID}`;
|
|
4054
4095
|
};
|
|
4055
4096
|
function getPropDataTestId(prefix, keyName) {
|
|
@@ -4075,7 +4116,7 @@ function Accordion(props) {
|
|
|
4075
4116
|
{
|
|
4076
4117
|
className: clsx(classes2.root, className),
|
|
4077
4118
|
...process.env.NODE_ENV !== "production" ? {
|
|
4078
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
4119
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
4079
4120
|
COMPONENT_PREFIX$2,
|
|
4080
4121
|
"root",
|
|
4081
4122
|
dataTestId
|
|
@@ -4109,7 +4150,7 @@ function Accordion(props) {
|
|
|
4109
4150
|
{
|
|
4110
4151
|
className: classes2.labelIcon,
|
|
4111
4152
|
...process.env.NODE_ENV !== "production" ? {
|
|
4112
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
4153
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
4113
4154
|
COMPONENT_PREFIX$2,
|
|
4114
4155
|
"labelIcon",
|
|
4115
4156
|
dataTestId
|
|
@@ -4156,15 +4197,15 @@ const SkeletonAvatar = (props) => {
|
|
|
4156
4197
|
}
|
|
4157
4198
|
);
|
|
4158
4199
|
};
|
|
4159
|
-
const componentName$
|
|
4160
|
-
generateUtilityClasses(componentName$
|
|
4200
|
+
const componentName$G = "M4LAvatar";
|
|
4201
|
+
generateUtilityClasses(componentName$G, [
|
|
4161
4202
|
/* elements */
|
|
4162
4203
|
"root",
|
|
4163
4204
|
"skeleton"
|
|
4164
4205
|
/* states or variants of elements */
|
|
4165
4206
|
]);
|
|
4166
4207
|
function getAvatarUtilityClass(slot) {
|
|
4167
|
-
return generateUtilityClass(componentName$
|
|
4208
|
+
return generateUtilityClass(componentName$G, slot);
|
|
4168
4209
|
}
|
|
4169
4210
|
const useAvatarUtilityClasses = () => {
|
|
4170
4211
|
const slots = {
|
|
@@ -4297,8 +4338,8 @@ const ButtonRoot = styled$1("div")(({ theme }) => ({
|
|
|
4297
4338
|
styled$1(Skeleton)(({ theme }) => ({
|
|
4298
4339
|
borderRadius: theme.spacing(0.5)
|
|
4299
4340
|
}));
|
|
4300
|
-
const componentName$
|
|
4301
|
-
const buttonClasses = generateUtilityClasses(componentName$
|
|
4341
|
+
const componentName$F = "M4LButton";
|
|
4342
|
+
const buttonClasses = generateUtilityClasses(componentName$F, [
|
|
4302
4343
|
/* elements */
|
|
4303
4344
|
"root",
|
|
4304
4345
|
"skeleton",
|
|
@@ -4317,7 +4358,7 @@ const buttonClasses = generateUtilityClasses(componentName$G, [
|
|
|
4317
4358
|
"toggleNotPressed"
|
|
4318
4359
|
]);
|
|
4319
4360
|
function getButtonUtilityClass(slot) {
|
|
4320
|
-
return generateUtilityClass(componentName$
|
|
4361
|
+
return generateUtilityClass(componentName$F, slot);
|
|
4321
4362
|
}
|
|
4322
4363
|
const useUtilityClasses$f = (onwerState) => {
|
|
4323
4364
|
const slots = {
|
|
@@ -4417,8 +4458,8 @@ const SkeletonCheckBox = (props) => {
|
|
|
4417
4458
|
const FieldLabelRoot = styled("label")(({ theme }) => ({
|
|
4418
4459
|
...theme.components?.M4LFieldLabel?.styleOverrides
|
|
4419
4460
|
}));
|
|
4420
|
-
const componentName$
|
|
4421
|
-
generateUtilityClasses(componentName$
|
|
4461
|
+
const componentName$E = "M4LFieldLabel";
|
|
4462
|
+
generateUtilityClasses(componentName$E, [
|
|
4422
4463
|
/* elements */
|
|
4423
4464
|
"root",
|
|
4424
4465
|
"label",
|
|
@@ -4437,17 +4478,25 @@ const useUtilityClasses$d = () => {
|
|
|
4437
4478
|
containerIcon: ["containerIcon"],
|
|
4438
4479
|
mandatory: ["mandatory"]
|
|
4439
4480
|
};
|
|
4440
|
-
const composedClasses = unstable_composeClasses(slots, getComponentUtilityClass(componentName$
|
|
4481
|
+
const composedClasses = unstable_composeClasses(slots, getComponentUtilityClass(componentName$E), {});
|
|
4441
4482
|
return {
|
|
4442
4483
|
...composedClasses
|
|
4443
4484
|
};
|
|
4444
4485
|
};
|
|
4445
4486
|
const FieldLabel = (props) => {
|
|
4446
|
-
const {
|
|
4487
|
+
const {
|
|
4488
|
+
helperMessage: message,
|
|
4489
|
+
label,
|
|
4490
|
+
mandatory,
|
|
4491
|
+
mandatoryMessage,
|
|
4492
|
+
htmlFor,
|
|
4493
|
+
className,
|
|
4494
|
+
id
|
|
4495
|
+
} = props;
|
|
4447
4496
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
4448
4497
|
const classes2 = useUtilityClasses$d();
|
|
4449
4498
|
const isSkeleton = useModuleSkeleton();
|
|
4450
|
-
return /* @__PURE__ */ jsx(FieldLabelRoot, { htmlFor, className: clsx(classes2.root, className), children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4499
|
+
return /* @__PURE__ */ jsx(FieldLabelRoot, { htmlFor, className: clsx(classes2.root, className), id, children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4451
4500
|
/* @__PURE__ */ jsx(Typography, { variant: "body", className: classes2.label, children: label }),
|
|
4452
4501
|
mandatory && /* @__PURE__ */ jsx(Typography, { variant: "body", className: classes2.mandatory, children: mandatoryMessage ? `(${mandatoryMessage})` : "*" }),
|
|
4453
4502
|
message && /* @__PURE__ */ jsx(Tooltip$1, { title: message, className: classes2.tooltip, children: /* @__PURE__ */ jsx("div", { className: classes2.containerIcon, children: /* @__PURE__ */ jsx(
|
|
@@ -4497,8 +4546,8 @@ const CheckBox = forwardRef((props, ref) => {
|
|
|
4497
4546
|
const CircularProgress = (props) => {
|
|
4498
4547
|
return /* @__PURE__ */ jsx(CircularProgress$1, { ...props });
|
|
4499
4548
|
};
|
|
4500
|
-
const componentName$
|
|
4501
|
-
const badgeClasses = generateUtilityClasses(componentName$
|
|
4549
|
+
const componentName$D = "M4LBadge";
|
|
4550
|
+
const badgeClasses = generateUtilityClasses(componentName$D, [
|
|
4502
4551
|
/* elements */
|
|
4503
4552
|
"root"
|
|
4504
4553
|
/* states or variants of elements */
|
|
@@ -4587,18 +4636,18 @@ const getRatioValues = (ratio) => {
|
|
|
4587
4636
|
}
|
|
4588
4637
|
};
|
|
4589
4638
|
const IMAGE_PREFIX = "Image";
|
|
4590
|
-
const getNameDataTestId$
|
|
4639
|
+
const getNameDataTestId$b = (KEY) => {
|
|
4591
4640
|
return `${IMAGE_PREFIX}-${KEY}`;
|
|
4592
4641
|
};
|
|
4593
|
-
const componentName$
|
|
4594
|
-
generateUtilityClasses(componentName$
|
|
4642
|
+
const componentName$C = "M4LImage";
|
|
4643
|
+
generateUtilityClasses(componentName$C, [
|
|
4595
4644
|
/* elements */
|
|
4596
4645
|
"root",
|
|
4597
4646
|
"img"
|
|
4598
4647
|
/* states or variants of elements */
|
|
4599
4648
|
]);
|
|
4600
4649
|
function getImagenClassesUtilityClass(slot) {
|
|
4601
|
-
return generateUtilityClass(componentName$
|
|
4650
|
+
return generateUtilityClass(componentName$C, slot);
|
|
4602
4651
|
}
|
|
4603
4652
|
const useUtilityClasses$c = () => {
|
|
4604
4653
|
const slots = {
|
|
@@ -4621,7 +4670,7 @@ function Image(props) {
|
|
|
4621
4670
|
ImageRoot,
|
|
4622
4671
|
{
|
|
4623
4672
|
className: clsx(classes2.root, className),
|
|
4624
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
4673
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$b("root") } : {},
|
|
4625
4674
|
style: width && height ? { minWidth: width, minHeight: height, width, height } : { width: "100%", height: "100%" },
|
|
4626
4675
|
children: /* @__PURE__ */ jsx(
|
|
4627
4676
|
"img",
|
|
@@ -4631,7 +4680,7 @@ function Image(props) {
|
|
|
4631
4680
|
className: classes2.img,
|
|
4632
4681
|
width: !width ? "100%" : ratioImage.width,
|
|
4633
4682
|
height: !height ? "100%" : ratioImage.height,
|
|
4634
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
4683
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$b("img") } : {}
|
|
4635
4684
|
}
|
|
4636
4685
|
)
|
|
4637
4686
|
}
|
|
@@ -4641,14 +4690,14 @@ function Image(props) {
|
|
|
4641
4690
|
const WrapperImageButton = styled$1("div")(({ theme }) => ({
|
|
4642
4691
|
...theme.components?.M4LImageButton?.styleOverrides
|
|
4643
4692
|
}));
|
|
4644
|
-
const componentName$
|
|
4645
|
-
generateUtilityClasses(componentName$
|
|
4693
|
+
const componentName$B = "M4LImageButton";
|
|
4694
|
+
generateUtilityClasses(componentName$B, [
|
|
4646
4695
|
/* elements */
|
|
4647
4696
|
"root"
|
|
4648
4697
|
/* states or variants of elements */
|
|
4649
4698
|
]);
|
|
4650
4699
|
function getImageButtonUtilityClass(slot) {
|
|
4651
|
-
return generateUtilityClass(componentName$
|
|
4700
|
+
return generateUtilityClass(componentName$B, slot);
|
|
4652
4701
|
}
|
|
4653
4702
|
const useUtilityClasses$b = () => {
|
|
4654
4703
|
const slots = {
|
|
@@ -4660,7 +4709,7 @@ const useUtilityClasses$b = () => {
|
|
|
4660
4709
|
};
|
|
4661
4710
|
};
|
|
4662
4711
|
const IMAGEBUTTON_PREFIX = "ImageButton";
|
|
4663
|
-
const getNameDataTestId$
|
|
4712
|
+
const getNameDataTestId$a = (KEY) => {
|
|
4664
4713
|
return `${IMAGEBUTTON_PREFIX}-${KEY}`;
|
|
4665
4714
|
};
|
|
4666
4715
|
function ImageButton({
|
|
@@ -4680,7 +4729,7 @@ function ImageButton({
|
|
|
4680
4729
|
WrapperImageButton,
|
|
4681
4730
|
{
|
|
4682
4731
|
className: classes2.root,
|
|
4683
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
4732
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$a("root") } : {},
|
|
4684
4733
|
children: finalTooltip ? /* @__PURE__ */ jsx(Tooltip$1, { title: finalTooltip || "", children: imageButton }) : imageButton
|
|
4685
4734
|
}
|
|
4686
4735
|
);
|
|
@@ -4697,9 +4746,9 @@ const LinkWithRoute = (props) => {
|
|
|
4697
4746
|
}
|
|
4698
4747
|
return /* @__PURE__ */ jsx(Link, { component: Link$1, to, ...other, children });
|
|
4699
4748
|
};
|
|
4700
|
-
const componentName$
|
|
4749
|
+
const componentName$A = "M4LLoadingButton";
|
|
4701
4750
|
generateUtilityClasses(
|
|
4702
|
-
componentName$
|
|
4751
|
+
componentName$A,
|
|
4703
4752
|
[
|
|
4704
4753
|
/* elements */
|
|
4705
4754
|
"root",
|
|
@@ -4714,7 +4763,7 @@ generateUtilityClasses(
|
|
|
4714
4763
|
]
|
|
4715
4764
|
);
|
|
4716
4765
|
function getLoadingButtonUtilityClass(slot) {
|
|
4717
|
-
return generateUtilityClass(componentName$
|
|
4766
|
+
return generateUtilityClass(componentName$A, slot);
|
|
4718
4767
|
}
|
|
4719
4768
|
const useUtilityClasses$a = (onwerState) => {
|
|
4720
4769
|
const slots = {
|
|
@@ -4739,7 +4788,7 @@ const LoadingButtonRoot = styled("div")(({ theme }) => ({
|
|
|
4739
4788
|
...theme.components?.M4LLoadingButton?.styleOverrides
|
|
4740
4789
|
}));
|
|
4741
4790
|
const LOADINGBUTTON_PREFIX = "M4LoadingButton";
|
|
4742
|
-
const getNameDataTestId$
|
|
4791
|
+
const getNameDataTestId$9 = (KEY) => {
|
|
4743
4792
|
return `${LOADINGBUTTON_PREFIX}-${KEY}`;
|
|
4744
4793
|
};
|
|
4745
4794
|
const LoadingButton = (props) => {
|
|
@@ -4763,12 +4812,12 @@ const LoadingButton = (props) => {
|
|
|
4763
4812
|
LoadingButtonRoot,
|
|
4764
4813
|
{
|
|
4765
4814
|
className: clsx(classes2.root, className),
|
|
4766
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
4815
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$9("root") } : {},
|
|
4767
4816
|
children: !isSkeleton ? /* @__PURE__ */ jsx(LoadingButton$1, { ...other, variant, size, children: /* @__PURE__ */ jsx(Typography, { variant: "action", children }) }) : /* @__PURE__ */ jsx(
|
|
4768
4817
|
Skeleton,
|
|
4769
4818
|
{
|
|
4770
4819
|
className: classes2.skeleton,
|
|
4771
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
4820
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$9("skeleton") } : {},
|
|
4772
4821
|
variant: "rectangular",
|
|
4773
4822
|
width: skeletonWidth
|
|
4774
4823
|
}
|
|
@@ -4794,7 +4843,6 @@ const menuActionsStyles = {
|
|
|
4794
4843
|
}
|
|
4795
4844
|
}),
|
|
4796
4845
|
badge: {},
|
|
4797
|
-
iconButton: {},
|
|
4798
4846
|
menuItem: ({ theme, ownerState }) => ({
|
|
4799
4847
|
display: "flex",
|
|
4800
4848
|
justifyContent: "center",
|
|
@@ -5150,14 +5198,14 @@ function MenuActions(props) {
|
|
|
5150
5198
|
] });
|
|
5151
5199
|
}
|
|
5152
5200
|
const MemonizedMenuActions = React__default.memo(MenuActions);
|
|
5153
|
-
const componentName$
|
|
5154
|
-
generateUtilityClasses(componentName$
|
|
5201
|
+
const componentName$z = "M4LStack";
|
|
5202
|
+
generateUtilityClasses(componentName$z, [
|
|
5155
5203
|
/* elements */
|
|
5156
5204
|
"root"
|
|
5157
5205
|
/* states or variants of elements */
|
|
5158
5206
|
]);
|
|
5159
5207
|
function getStackUtilityClass(slot) {
|
|
5160
|
-
return generateUtilityClass(componentName$
|
|
5208
|
+
return generateUtilityClass(componentName$z, slot);
|
|
5161
5209
|
}
|
|
5162
5210
|
const useStackUtilityClasses = () => {
|
|
5163
5211
|
const slots = {
|
|
@@ -5176,14 +5224,14 @@ const Stack = (props) => {
|
|
|
5176
5224
|
const { children, className, ...others } = props;
|
|
5177
5225
|
return /* @__PURE__ */ jsx(MUISTack, { ...others, className: clsx(classes$3.root, className), children });
|
|
5178
5226
|
};
|
|
5179
|
-
const componentName$
|
|
5180
|
-
generateUtilityClasses(componentName$
|
|
5227
|
+
const componentName$y = "M4LTabs";
|
|
5228
|
+
generateUtilityClasses(componentName$y, [
|
|
5181
5229
|
/* elements */
|
|
5182
5230
|
"root"
|
|
5183
5231
|
/* states or variants of elements */
|
|
5184
5232
|
]);
|
|
5185
5233
|
function getTabsUtilityClass(slot) {
|
|
5186
|
-
return generateUtilityClass(componentName$
|
|
5234
|
+
return generateUtilityClass(componentName$y, slot);
|
|
5187
5235
|
}
|
|
5188
5236
|
const useTabsUtilityClasses = () => {
|
|
5189
5237
|
const slots = {
|
|
@@ -5202,14 +5250,14 @@ const Tabs = (props) => {
|
|
|
5202
5250
|
const classes2 = useTabsUtilityClasses();
|
|
5203
5251
|
return /* @__PURE__ */ jsx(MUITabs, { className: clsx(classes2.root, className), ...others, children });
|
|
5204
5252
|
};
|
|
5205
|
-
const componentName$
|
|
5206
|
-
generateUtilityClasses(componentName$
|
|
5253
|
+
const componentName$x = "M4LTabContent";
|
|
5254
|
+
generateUtilityClasses(componentName$x, [
|
|
5207
5255
|
/* elements */
|
|
5208
5256
|
"root"
|
|
5209
5257
|
/* states or variants of elements */
|
|
5210
5258
|
]);
|
|
5211
5259
|
function getTabContentUtilityClass(slot) {
|
|
5212
|
-
return generateUtilityClass(componentName$
|
|
5260
|
+
return generateUtilityClass(componentName$x, slot);
|
|
5213
5261
|
}
|
|
5214
5262
|
const useTabContentUtilityClasses = () => {
|
|
5215
5263
|
const slots = {
|
|
@@ -5231,8 +5279,8 @@ const TabContent = (props) => {
|
|
|
5231
5279
|
const PagerRoot = styled$1("div")(({ theme }) => ({
|
|
5232
5280
|
...theme.components?.M4LPager?.styleOverrides
|
|
5233
5281
|
}));
|
|
5234
|
-
const componentName$
|
|
5235
|
-
generateUtilityClasses(componentName$
|
|
5282
|
+
const componentName$w = "M4LPager";
|
|
5283
|
+
generateUtilityClasses(componentName$w, [
|
|
5236
5284
|
/* elements */
|
|
5237
5285
|
"root",
|
|
5238
5286
|
"labelRowsPerPageContainer",
|
|
@@ -5254,7 +5302,7 @@ generateUtilityClasses(componentName$x, [
|
|
|
5254
5302
|
/* states or variants of elements */
|
|
5255
5303
|
]);
|
|
5256
5304
|
function getPagerUtilityClass(slot) {
|
|
5257
|
-
return generateUtilityClass(componentName$
|
|
5305
|
+
return generateUtilityClass(componentName$w, slot);
|
|
5258
5306
|
}
|
|
5259
5307
|
const pagerUtilityClasses = () => {
|
|
5260
5308
|
const slots = {
|
|
@@ -5479,15 +5527,15 @@ const TabRoot = styled$1("div")(({ theme }) => ({
|
|
|
5479
5527
|
const SKTTabWrapper = styled$1("div")(({ theme }) => ({
|
|
5480
5528
|
padding: theme.spacing(1.5, 2)
|
|
5481
5529
|
}));
|
|
5482
|
-
const componentName$
|
|
5483
|
-
generateUtilityClasses(componentName$
|
|
5530
|
+
const componentName$v = "M4LTab";
|
|
5531
|
+
generateUtilityClasses(componentName$v, [
|
|
5484
5532
|
/* elements */
|
|
5485
5533
|
"root",
|
|
5486
5534
|
"skeleton"
|
|
5487
5535
|
/* states or variants of elements */
|
|
5488
5536
|
]);
|
|
5489
5537
|
function getTabUtilityClass(slot) {
|
|
5490
|
-
return generateUtilityClass(componentName$
|
|
5538
|
+
return generateUtilityClass(componentName$v, slot);
|
|
5491
5539
|
}
|
|
5492
5540
|
const tabUtilityClasses = () => {
|
|
5493
5541
|
const slots = {
|
|
@@ -5509,14 +5557,14 @@ function Tab(props) {
|
|
|
5509
5557
|
{
|
|
5510
5558
|
className: clsx(classes2.root, className),
|
|
5511
5559
|
...process.env.NODE_ENV !== "production" ? {
|
|
5512
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
5560
|
+
[TEST_PROP_ID]: getNameDataTestId$c(COMPONENT_PREFIX$1, "root", dataTestId)
|
|
5513
5561
|
} : {},
|
|
5514
5562
|
children: !isSkeleton ? /* @__PURE__ */ jsx(Tab$1, { ...other }) : /* @__PURE__ */ jsx(
|
|
5515
5563
|
SKTTabWrapper,
|
|
5516
5564
|
{
|
|
5517
5565
|
className: classes2.skeleton,
|
|
5518
5566
|
...process.env.NODE_ENV !== "production" ? {
|
|
5519
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
5567
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
5520
5568
|
COMPONENT_PREFIX$1,
|
|
5521
5569
|
"skeleton",
|
|
5522
5570
|
dataTestId
|
|
@@ -5546,14 +5594,14 @@ function TabProvider(props) {
|
|
|
5546
5594
|
}
|
|
5547
5595
|
);
|
|
5548
5596
|
}
|
|
5549
|
-
const componentName$
|
|
5550
|
-
generateUtilityClasses(componentName$
|
|
5597
|
+
const componentName$u = "M4LTooltip";
|
|
5598
|
+
generateUtilityClasses(componentName$u, [
|
|
5551
5599
|
/* elements */
|
|
5552
5600
|
"root"
|
|
5553
5601
|
/* states or variants of elements */
|
|
5554
5602
|
]);
|
|
5555
5603
|
function getTooltipUtilityClass(slot) {
|
|
5556
|
-
return generateUtilityClass(componentName$
|
|
5604
|
+
return generateUtilityClass(componentName$u, slot);
|
|
5557
5605
|
}
|
|
5558
5606
|
const tooltipUtilityClasses = () => {
|
|
5559
5607
|
const slots = {
|
|
@@ -5773,8 +5821,8 @@ function ResizeableWindow(props) {
|
|
|
5773
5821
|
}
|
|
5774
5822
|
);
|
|
5775
5823
|
}
|
|
5776
|
-
const componentName$
|
|
5777
|
-
generateUtilityClasses(componentName$
|
|
5824
|
+
const componentName$t = "M4LModal";
|
|
5825
|
+
generateUtilityClasses(componentName$t, [
|
|
5778
5826
|
/* elements */
|
|
5779
5827
|
"root",
|
|
5780
5828
|
"windowBaseRoot",
|
|
@@ -5798,7 +5846,7 @@ generateUtilityClasses(componentName$u, [
|
|
|
5798
5846
|
"variantPrimary"
|
|
5799
5847
|
]);
|
|
5800
5848
|
function getModalUtilityClass(slot) {
|
|
5801
|
-
return generateUtilityClass(componentName$
|
|
5849
|
+
return generateUtilityClass(componentName$t, slot);
|
|
5802
5850
|
}
|
|
5803
5851
|
const modalUtilityClasses = (ownerState) => {
|
|
5804
5852
|
const slots = {
|
|
@@ -5921,9 +5969,9 @@ function ModalProvider({ children }) {
|
|
|
5921
5969
|
const FormProviderRoot = styled("form")(({ theme }) => ({
|
|
5922
5970
|
...theme.components?.M4LRHFormProvider?.styleOverrides
|
|
5923
5971
|
}));
|
|
5924
|
-
const componentName$
|
|
5972
|
+
const componentName$s = "M4LRHFormProvider";
|
|
5925
5973
|
generateUtilityClasses(
|
|
5926
|
-
componentName$
|
|
5974
|
+
componentName$s,
|
|
5927
5975
|
[
|
|
5928
5976
|
/* elements */
|
|
5929
5977
|
"root"
|
|
@@ -5931,7 +5979,7 @@ generateUtilityClasses(
|
|
|
5931
5979
|
]
|
|
5932
5980
|
);
|
|
5933
5981
|
function getRHFormProviderUtilityClass(slot) {
|
|
5934
|
-
return generateUtilityClass(componentName$
|
|
5982
|
+
return generateUtilityClass(componentName$s, slot);
|
|
5935
5983
|
}
|
|
5936
5984
|
const RHFormProviderUtilityClasses = () => {
|
|
5937
5985
|
const slots = {
|
|
@@ -6004,9 +6052,9 @@ const useFormFocus = () => {
|
|
|
6004
6052
|
};
|
|
6005
6053
|
return { isFocus, isTabSelected, handlerFocus, handlerOnKeyUp, handlerOnBlur };
|
|
6006
6054
|
};
|
|
6007
|
-
const componentName$
|
|
6055
|
+
const componentName$r = "M4LRHFAutocomplete";
|
|
6008
6056
|
generateUtilityClasses(
|
|
6009
|
-
componentName$
|
|
6057
|
+
componentName$r,
|
|
6010
6058
|
[
|
|
6011
6059
|
/* elements */
|
|
6012
6060
|
"root",
|
|
@@ -6034,7 +6082,7 @@ generateUtilityClasses(
|
|
|
6034
6082
|
]
|
|
6035
6083
|
);
|
|
6036
6084
|
function getRHFAutocompleteClassesUtilityClass(slot) {
|
|
6037
|
-
return generateUtilityClass(componentName$
|
|
6085
|
+
return generateUtilityClass(componentName$r, slot);
|
|
6038
6086
|
}
|
|
6039
6087
|
const useUtilityClasses$8 = (ownerState) => {
|
|
6040
6088
|
const slots = {
|
|
@@ -6086,7 +6134,7 @@ const WrapperOption = styled$1("li")(({ theme }) => ({
|
|
|
6086
6134
|
marginRight: theme.spacing(1.5)
|
|
6087
6135
|
}
|
|
6088
6136
|
}));
|
|
6089
|
-
const getNameDataTestId$
|
|
6137
|
+
const getNameDataTestId$8 = (KEY) => {
|
|
6090
6138
|
return `${RHFAUTOCOMPLETE_PREFIX}-${KEY}`;
|
|
6091
6139
|
};
|
|
6092
6140
|
function withRenderOption(getUrlImage, classes2) {
|
|
@@ -6097,7 +6145,7 @@ function withRenderOption(getUrlImage, classes2) {
|
|
|
6097
6145
|
...optionProps,
|
|
6098
6146
|
key: optionProps.key,
|
|
6099
6147
|
className: classes2.withImage,
|
|
6100
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
6148
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$8("withImage") } : {}
|
|
6101
6149
|
},
|
|
6102
6150
|
/* @__PURE__ */ jsx(Image, { src: getUrlImage(option) }),
|
|
6103
6151
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: optionProps.key })
|
|
@@ -6107,8 +6155,8 @@ function withRenderOption(getUrlImage, classes2) {
|
|
|
6107
6155
|
const HelperTextRoot = styled$1("div")(({ theme }) => ({
|
|
6108
6156
|
...theme.components?.M4LErrorLabel?.styleOverrides
|
|
6109
6157
|
}));
|
|
6110
|
-
const componentName$
|
|
6111
|
-
const errorLabelClasses = generateUtilityClasses(componentName$
|
|
6158
|
+
const componentName$q = "M4LHelperText";
|
|
6159
|
+
const errorLabelClasses = generateUtilityClasses(componentName$q, [
|
|
6112
6160
|
/* elements */
|
|
6113
6161
|
"root",
|
|
6114
6162
|
/* states or variants of elements */
|
|
@@ -6118,7 +6166,7 @@ const errorLabelClasses = generateUtilityClasses(componentName$r, [
|
|
|
6118
6166
|
"variantError"
|
|
6119
6167
|
]);
|
|
6120
6168
|
function getHelperTextUtilityClass(slot) {
|
|
6121
|
-
return generateUtilityClass(componentName$
|
|
6169
|
+
return generateUtilityClass(componentName$q, slot);
|
|
6122
6170
|
}
|
|
6123
6171
|
const useUtilityClasses$7 = (ownerSate) => {
|
|
6124
6172
|
const slots = {
|
|
@@ -6156,7 +6204,7 @@ const SkeletonRHFAutocomplete = (props) => {
|
|
|
6156
6204
|
"div",
|
|
6157
6205
|
{
|
|
6158
6206
|
className: classes2.skeleton,
|
|
6159
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
6207
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$8("skeleton") } : {},
|
|
6160
6208
|
children: !withImage ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6161
6209
|
/* @__PURE__ */ jsx("div", { className: classes2.skeletonContainerText, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "50%", height: "14px" }) }),
|
|
6162
6210
|
/* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: 16, height: 16, sx: { minWidth: "16px" } })
|
|
@@ -6690,8 +6738,8 @@ function ComponentTypeText$1(props) {
|
|
|
6690
6738
|
function RHFAutocomplete(props) {
|
|
6691
6739
|
return /* @__PURE__ */ jsx(Fragment, { children: props.type === "image" ? /* @__PURE__ */ jsx(ComponentTypeImage$1, { ...props }) : /* @__PURE__ */ jsx(ComponentTypeText$1, { ...props }) });
|
|
6692
6740
|
}
|
|
6693
|
-
const componentName$
|
|
6694
|
-
const colorPickerClasses = generateUtilityClasses(componentName$
|
|
6741
|
+
const componentName$p = "M4LRHFColorPicker";
|
|
6742
|
+
const colorPickerClasses = generateUtilityClasses(componentName$p, [
|
|
6695
6743
|
/* elements */
|
|
6696
6744
|
"root",
|
|
6697
6745
|
"popoverRoot",
|
|
@@ -6706,7 +6754,7 @@ const colorPickerClasses = generateUtilityClasses(componentName$q, [
|
|
|
6706
6754
|
"isTabSelected"
|
|
6707
6755
|
]);
|
|
6708
6756
|
function getRHFColorPickerUtilityClass(slot) {
|
|
6709
|
-
return generateUtilityClass(componentName$
|
|
6757
|
+
return generateUtilityClass(componentName$p, slot);
|
|
6710
6758
|
}
|
|
6711
6759
|
const useUtilityClasses$6 = (owmerState) => {
|
|
6712
6760
|
const slots = {
|
|
@@ -6867,9 +6915,9 @@ function getRHFColorPickerComponentsDictionary() {
|
|
|
6867
6915
|
function getRHFAutocompleteComponentsDictionary() {
|
|
6868
6916
|
return ["rhf_autocomplete"];
|
|
6869
6917
|
}
|
|
6870
|
-
const componentName$
|
|
6918
|
+
const componentName$o = "M4LRHFAutocompleteAsync";
|
|
6871
6919
|
generateUtilityClasses(
|
|
6872
|
-
componentName$
|
|
6920
|
+
componentName$o,
|
|
6873
6921
|
[
|
|
6874
6922
|
/* elements */
|
|
6875
6923
|
"root"
|
|
@@ -6877,7 +6925,7 @@ generateUtilityClasses(
|
|
|
6877
6925
|
]
|
|
6878
6926
|
);
|
|
6879
6927
|
function getRHFAutocompleteAsyncClassesUtilityClass(slot) {
|
|
6880
|
-
return generateUtilityClass(componentName$
|
|
6928
|
+
return generateUtilityClass(componentName$o, slot);
|
|
6881
6929
|
}
|
|
6882
6930
|
const useUtilityClasses$5 = () => {
|
|
6883
6931
|
const slots = {
|
|
@@ -6919,7 +6967,7 @@ const RHFAutocompleteAsyncRoot = styled$1("div")(({ theme }) => ({
|
|
|
6919
6967
|
...theme.components?.M4LRHFAutocompleteAsync?.styleOverrides
|
|
6920
6968
|
}));
|
|
6921
6969
|
const RHFAUTOCOMPLETEASYNC_PREFIX = "RHFAutocompleteAsync";
|
|
6922
|
-
const getNameDataTestId$
|
|
6970
|
+
const getNameDataTestId$7 = (KEY) => {
|
|
6923
6971
|
return `${RHFAUTOCOMPLETEASYNC_PREFIX}-${KEY}`;
|
|
6924
6972
|
};
|
|
6925
6973
|
function ComponentTypeText(props) {
|
|
@@ -6996,7 +7044,7 @@ function ComponentTypeText(props) {
|
|
|
6996
7044
|
RHFAutocompleteAsyncRoot,
|
|
6997
7045
|
{
|
|
6998
7046
|
className: classes2.root,
|
|
6999
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
7047
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$7("root") } : {},
|
|
7000
7048
|
children: /* @__PURE__ */ jsx(
|
|
7001
7049
|
RHFAutocomplete,
|
|
7002
7050
|
{
|
|
@@ -7087,7 +7135,7 @@ function ComponentTypeImage(props) {
|
|
|
7087
7135
|
RHFAutocompleteAsyncRoot,
|
|
7088
7136
|
{
|
|
7089
7137
|
className: classes2.root,
|
|
7090
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
7138
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$7("root") } : {},
|
|
7091
7139
|
children: /* @__PURE__ */ jsx(
|
|
7092
7140
|
RHFAutocomplete,
|
|
7093
7141
|
{
|
|
@@ -7168,7 +7216,7 @@ const useUtilityClasses$4 = (ownerState) => {
|
|
|
7168
7216
|
};
|
|
7169
7217
|
};
|
|
7170
7218
|
const RHFCHEKCBOX_PREFIX = "RHFCheckbox";
|
|
7171
|
-
const getNameDataTestId$
|
|
7219
|
+
const getNameDataTestId$6 = (KEY, NAME) => {
|
|
7172
7220
|
return `${RHFCHEKCBOX_PREFIX}-${NAME}-${KEY}`;
|
|
7173
7221
|
};
|
|
7174
7222
|
function getCommonActionsDictionary() {
|
|
@@ -7188,9 +7236,9 @@ function getModalDialogComponentsDictionary() {
|
|
|
7188
7236
|
const defaultModalDialogDictionary = {
|
|
7189
7237
|
modal_dialog: {}
|
|
7190
7238
|
};
|
|
7191
|
-
const componentName$
|
|
7239
|
+
const componentName$n = "M4LCommonActions";
|
|
7192
7240
|
generateUtilityClasses(
|
|
7193
|
-
componentName$
|
|
7241
|
+
componentName$n,
|
|
7194
7242
|
[
|
|
7195
7243
|
/* elements */
|
|
7196
7244
|
"root",
|
|
@@ -7213,7 +7261,7 @@ const useCommonActionsUtilityClasses = () => {
|
|
|
7213
7261
|
actionIntro: ["actionIntro"],
|
|
7214
7262
|
wrapperActions: ["wrapperActions"]
|
|
7215
7263
|
};
|
|
7216
|
-
return unstable_composeClasses(slots, getComponentUtilityClass(componentName$
|
|
7264
|
+
return unstable_composeClasses(slots, getComponentUtilityClass(componentName$n), {});
|
|
7217
7265
|
};
|
|
7218
7266
|
const WrapperStandarActions = styled$1("div")(({ theme }) => ({
|
|
7219
7267
|
// paddingTop: theme.spacing(3),
|
|
@@ -7572,7 +7620,7 @@ function RHFCheckbox(props) {
|
|
|
7572
7620
|
onFocus: handlerFocus,
|
|
7573
7621
|
onBlur: handlerOnBlur,
|
|
7574
7622
|
onKeyUp: handlerOnKeyUp,
|
|
7575
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
7623
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$6("root", name) } : {},
|
|
7576
7624
|
children: /* @__PURE__ */ jsx(
|
|
7577
7625
|
Controller,
|
|
7578
7626
|
{
|
|
@@ -7584,7 +7632,7 @@ function RHFCheckbox(props) {
|
|
|
7584
7632
|
ContainerCheckTypography,
|
|
7585
7633
|
{
|
|
7586
7634
|
className: classes2.checkTypography,
|
|
7587
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
7635
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$6("checkTypography", name) } : {},
|
|
7588
7636
|
children: /* @__PURE__ */ jsx(
|
|
7589
7637
|
CheckBox,
|
|
7590
7638
|
{
|
|
@@ -7621,8 +7669,8 @@ const SkeletonRHFDateTime = (props) => {
|
|
|
7621
7669
|
] })
|
|
7622
7670
|
] });
|
|
7623
7671
|
};
|
|
7624
|
-
const componentName$
|
|
7625
|
-
generateUtilityClasses(componentName$
|
|
7672
|
+
const componentName$m = "M4LRHFDateTime";
|
|
7673
|
+
generateUtilityClasses(componentName$m, [
|
|
7626
7674
|
/* elements */
|
|
7627
7675
|
"root",
|
|
7628
7676
|
"skeleton",
|
|
@@ -7638,7 +7686,7 @@ generateUtilityClasses(componentName$n, [
|
|
|
7638
7686
|
"variantError"
|
|
7639
7687
|
]);
|
|
7640
7688
|
function getRHFCheckboxUtilityClass(slot) {
|
|
7641
|
-
return generateUtilityClass(componentName$
|
|
7689
|
+
return generateUtilityClass(componentName$m, slot);
|
|
7642
7690
|
}
|
|
7643
7691
|
const useUtilityClasses$3 = (ownerState) => {
|
|
7644
7692
|
const slots = {
|
|
@@ -7837,38 +7885,149 @@ function RHFSelect({ name, children, ...other }) {
|
|
|
7837
7885
|
}
|
|
7838
7886
|
);
|
|
7839
7887
|
}
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7888
|
+
var RHFTextFieldSlots = /* @__PURE__ */ ((RHFTextFieldSlots2) => {
|
|
7889
|
+
RHFTextFieldSlots2["root"] = "root";
|
|
7890
|
+
RHFTextFieldSlots2["fieldLabel"] = "fieldLabel";
|
|
7891
|
+
RHFTextFieldSlots2["textField"] = "textField";
|
|
7892
|
+
RHFTextFieldSlots2["skeletonTextFieldRoot"] = "skeletonTextFieldRoot";
|
|
7893
|
+
RHFTextFieldSlots2["wrapperSkeletonRHFTextField"] = "wrapperSkeletonRHFTextField";
|
|
7894
|
+
return RHFTextFieldSlots2;
|
|
7895
|
+
})(RHFTextFieldSlots || {});
|
|
7896
|
+
const RHF_TEXT_FIELD_KEY_COMPONENT = "RHFTextField";
|
|
7897
|
+
const rhfTextFieldStyles = {
|
|
7898
|
+
root: {
|
|
7899
|
+
display: "flex",
|
|
7900
|
+
flexDirection: "column",
|
|
7901
|
+
width: "100%",
|
|
7902
|
+
gap: "2px",
|
|
7903
|
+
outline: "unset",
|
|
7904
|
+
height: "auto",
|
|
7905
|
+
"& .MuiFormControl-root": {
|
|
7906
|
+
minHeight: "24px",
|
|
7907
|
+
height: "auto",
|
|
7908
|
+
"& .MuiInputBase-multiline": {
|
|
7909
|
+
minHeight: "24px",
|
|
7910
|
+
height: "auto",
|
|
7911
|
+
"& .MuiInputBase-input": {
|
|
7912
|
+
padding: "4px"
|
|
7913
|
+
},
|
|
7914
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
7915
|
+
height: "100%",
|
|
7916
|
+
padding: "4px"
|
|
7917
|
+
}
|
|
7918
|
+
}
|
|
7919
|
+
}
|
|
7920
|
+
},
|
|
7921
|
+
fieldLabel: ({ theme }) => ({
|
|
7922
|
+
[`& > .M4LFieldLabel-label > .${typographyClasses.root}`]: {
|
|
7923
|
+
color: theme.vars.palette.text.secondary,
|
|
7924
|
+
transition: "all .5s ease"
|
|
7925
|
+
}
|
|
7926
|
+
}),
|
|
7927
|
+
textField: ({ theme, ownerState }) => ({
|
|
7928
|
+
[`& .${inputBaseClasses.root}`]: {
|
|
7929
|
+
borderRadius: "4px",
|
|
7930
|
+
...ownerState.size === "small" && {
|
|
7931
|
+
height: "24px",
|
|
7932
|
+
padding: "0px 8px",
|
|
7933
|
+
borderdRadius: "4px",
|
|
7934
|
+
[`& .${inputBaseClasses.inputMultiline}`]: {
|
|
7935
|
+
minHeight: "24px",
|
|
7936
|
+
height: "100%"
|
|
7937
|
+
},
|
|
7938
|
+
[theme.breakpoints.up("sm")]: {
|
|
7939
|
+
height: "20px",
|
|
7940
|
+
padding: "0px 8px"
|
|
7941
|
+
}
|
|
7942
|
+
},
|
|
7943
|
+
// Estilos específicos para el tamaño medium
|
|
7944
|
+
...ownerState.size === "medium" && {
|
|
7945
|
+
height: "36px",
|
|
7946
|
+
padding: "0px 8px",
|
|
7947
|
+
[`& .${inputBaseClasses.inputMultiline}`]: {
|
|
7948
|
+
minHeight: "36px",
|
|
7949
|
+
height: "100%"
|
|
7950
|
+
},
|
|
7951
|
+
[theme.breakpoints.up("sm")]: {
|
|
7952
|
+
height: "24px",
|
|
7953
|
+
padding: "0px 8px"
|
|
7954
|
+
}
|
|
7955
|
+
}
|
|
7956
|
+
},
|
|
7957
|
+
"& .MuiInputBase-input": {
|
|
7958
|
+
fontSize: "0.875rem",
|
|
7959
|
+
padding: "0px 8px",
|
|
7960
|
+
height: "100%"
|
|
7961
|
+
},
|
|
7962
|
+
"& .MuiOutlinedInput-root": {
|
|
7963
|
+
"&:not(.Mui-focused,input:disabled):hover fieldset": {
|
|
7964
|
+
transition: "all .3s ease",
|
|
7965
|
+
borderColor: ownerState?.error === true ? theme.vars.palette.error.main : theme.vars.palette.primary.light,
|
|
7966
|
+
color: theme.vars.palette.state?.active,
|
|
7967
|
+
background: theme.vars.palette.state?.active12
|
|
7968
|
+
},
|
|
7969
|
+
"&:has(:disabled) fieldset": {
|
|
7970
|
+
color: theme.vars.palette.text.disabled
|
|
7971
|
+
},
|
|
7972
|
+
"&:focus-within": {
|
|
7973
|
+
borderColor: !ownerState.isValid ? theme.palette.state.error.normal : theme.palette.state?.focus
|
|
7974
|
+
},
|
|
7975
|
+
...ownerState.isValid === false ? {
|
|
7976
|
+
borderColor: theme.palette.state.error.normal
|
|
7977
|
+
} : {}
|
|
7978
|
+
}
|
|
7979
|
+
}),
|
|
7980
|
+
/* SkeletonTextField Styles */
|
|
7981
|
+
skeletonTextFieldRoot: {
|
|
7982
|
+
display: "flex",
|
|
7983
|
+
flexDirection: "column",
|
|
7984
|
+
width: "100%",
|
|
7985
|
+
gap: "4px"
|
|
7986
|
+
},
|
|
7987
|
+
wrapperSkeletonRHFTextField: ({ theme }) => ({
|
|
7988
|
+
display: "flex",
|
|
7989
|
+
width: "100%",
|
|
7990
|
+
alignItems: "center",
|
|
7991
|
+
justifyContent: "space-between",
|
|
7992
|
+
padding: "12px 14px",
|
|
7993
|
+
borderRadius: theme.spacing(1),
|
|
7994
|
+
gap: "4px",
|
|
7995
|
+
backgroundColor: theme.vars.palette.background.neutral,
|
|
7996
|
+
height: "20px"
|
|
7997
|
+
})
|
|
7861
7998
|
};
|
|
7999
|
+
const RHFTextFieldRootStyled = styled$1("div", {
|
|
8000
|
+
name: RHF_TEXT_FIELD_KEY_COMPONENT,
|
|
8001
|
+
slot: RHFTextFieldSlots.root
|
|
8002
|
+
})(rhfTextFieldStyles?.root);
|
|
8003
|
+
const FieldLabelStyled = styled$1(FieldLabel, {
|
|
8004
|
+
name: RHF_TEXT_FIELD_KEY_COMPONENT,
|
|
8005
|
+
slot: RHFTextFieldSlots.fieldLabel
|
|
8006
|
+
})(rhfTextFieldStyles?.fieldLabel);
|
|
8007
|
+
const TextFieldStyled = styled$1(TextField, {
|
|
8008
|
+
name: RHF_TEXT_FIELD_KEY_COMPONENT,
|
|
8009
|
+
slot: RHFTextFieldSlots.textField
|
|
8010
|
+
})(rhfTextFieldStyles?.textField);
|
|
8011
|
+
const SkeletonTextFieldRootStyled = styled$1("div", {
|
|
8012
|
+
name: RHF_TEXT_FIELD_KEY_COMPONENT,
|
|
8013
|
+
slot: RHFTextFieldSlots.skeletonTextFieldRoot
|
|
8014
|
+
})(rhfTextFieldStyles?.skeletonTextFieldRoot);
|
|
8015
|
+
const WrapperSkeletonRHFTextFieldStyled = styled$1("div", {
|
|
8016
|
+
name: RHF_TEXT_FIELD_KEY_COMPONENT,
|
|
8017
|
+
slot: RHFTextFieldSlots.wrapperSkeletonRHFTextField
|
|
8018
|
+
})(rhfTextFieldStyles?.wrapperSkeletonRHFTextField);
|
|
7862
8019
|
const SkeletonTextField = (props) => {
|
|
7863
|
-
const { skeletonWidth, skeletonHeight,
|
|
7864
|
-
|
|
7865
|
-
return /* @__PURE__ */ jsxs(SkeletonTextFieldRoot, { children: [
|
|
8020
|
+
const { skeletonWidth, skeletonHeight, hasLabel, variant } = props;
|
|
8021
|
+
return /* @__PURE__ */ jsxs(SkeletonTextFieldRootStyled, { ownerState: {}, children: [
|
|
7866
8022
|
(hasLabel || hasLabel?.length === 0) && /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "30%", height: "16px" }),
|
|
7867
8023
|
/* @__PURE__ */ jsx(
|
|
7868
|
-
|
|
8024
|
+
WrapperSkeletonRHFTextFieldStyled,
|
|
7869
8025
|
{
|
|
7870
|
-
|
|
7871
|
-
...
|
|
8026
|
+
ownerState: {},
|
|
8027
|
+
...getPropDataTestId(
|
|
8028
|
+
RHF_TEXT_FIELD_KEY_COMPONENT,
|
|
8029
|
+
RHFTextFieldSlots.wrapperSkeletonRHFTextField
|
|
8030
|
+
),
|
|
7872
8031
|
children: variant === "text" ? /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: skeletonWidth, height: skeletonHeight }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7873
8032
|
/* @__PURE__ */ jsx(Skeleton, { variant: "text", width: skeletonWidth, height: skeletonHeight }),
|
|
7874
8033
|
/* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: "16px", height: "16px" })
|
|
@@ -7877,78 +8036,6 @@ const SkeletonTextField = (props) => {
|
|
|
7877
8036
|
)
|
|
7878
8037
|
] });
|
|
7879
8038
|
};
|
|
7880
|
-
const RHFTextFieldRoot = styled$1("div")(({ theme }) => ({
|
|
7881
|
-
/* Styles overrides of m4l_styles */
|
|
7882
|
-
...theme.components?.M4LRHFTextField?.styleOverrides
|
|
7883
|
-
}));
|
|
7884
|
-
styled$1("div")(({ theme }) => ({
|
|
7885
|
-
display: "flex",
|
|
7886
|
-
width: "100%",
|
|
7887
|
-
alignItems: "center",
|
|
7888
|
-
border: `1px solid ${theme.vars.palette.divider}`,
|
|
7889
|
-
padding: "12px 14px",
|
|
7890
|
-
borderRadius: theme.spacing(1)
|
|
7891
|
-
}));
|
|
7892
|
-
const componentName$m = "M4LRHFTextField";
|
|
7893
|
-
generateUtilityClasses(
|
|
7894
|
-
componentName$m,
|
|
7895
|
-
[
|
|
7896
|
-
/* elements */
|
|
7897
|
-
"root",
|
|
7898
|
-
"label",
|
|
7899
|
-
"skeleton",
|
|
7900
|
-
/* states or variants of elements */
|
|
7901
|
-
"variantText",
|
|
7902
|
-
"variantPassword",
|
|
7903
|
-
"variantInfo",
|
|
7904
|
-
"isDisabled",
|
|
7905
|
-
"variantSuccess",
|
|
7906
|
-
"variantWarning",
|
|
7907
|
-
"variantError",
|
|
7908
|
-
"sizeSmall",
|
|
7909
|
-
"sizeMedium",
|
|
7910
|
-
"isFocus",
|
|
7911
|
-
"isTabSelected"
|
|
7912
|
-
]
|
|
7913
|
-
/* returna un objeto igual a:
|
|
7914
|
-
{
|
|
7915
|
-
root: 'M4LRHFTextField-root',
|
|
7916
|
-
skeleton: 'M4LRHFTextField-skeleton',
|
|
7917
|
-
variantText: 'M4LRHFTextField-variantText',
|
|
7918
|
-
variantPassword: 'M4LRHFTextField-variantPassword',
|
|
7919
|
-
}
|
|
7920
|
-
*/
|
|
7921
|
-
);
|
|
7922
|
-
const getRHFTextFieldClassesByState = (ownerState) => {
|
|
7923
|
-
const slots = {
|
|
7924
|
-
root: [
|
|
7925
|
-
"root",
|
|
7926
|
-
ownerState.type === "password" ? "variantPassword" : "variantText",
|
|
7927
|
-
ownerState.size === "small" && "sizeSmall",
|
|
7928
|
-
ownerState.size === "medium" && "sizeMedium",
|
|
7929
|
-
ownerState.isFocus && "isFocus",
|
|
7930
|
-
ownerState.isTabSelected && "isTabSelected",
|
|
7931
|
-
ownerState.disabled && "isDisabled",
|
|
7932
|
-
ownerState.variant === "info" && "variantInfo",
|
|
7933
|
-
ownerState.variant === "success" && "variantSuccess",
|
|
7934
|
-
ownerState.variant === "warning" && "variantWarning",
|
|
7935
|
-
ownerState.variant === "error" && "variantError"
|
|
7936
|
-
],
|
|
7937
|
-
label: ["label"],
|
|
7938
|
-
skeleton: ["skeleton"]
|
|
7939
|
-
};
|
|
7940
|
-
const composedClasses = unstable_composeClasses(slots, getComponentUtilityClass(componentName$m), {});
|
|
7941
|
-
return {
|
|
7942
|
-
...composedClasses
|
|
7943
|
-
/* retorna un objeto para una variante de tipo = 'password':
|
|
7944
|
-
{
|
|
7945
|
-
input : "M4LRHFTextField-input"
|
|
7946
|
-
root: "M4LRHFTextField-root M4LRHFTextField-variantPassword"
|
|
7947
|
-
skeleton: "M4LRHFTextField-skeleton"
|
|
7948
|
-
};
|
|
7949
|
-
*/
|
|
7950
|
-
};
|
|
7951
|
-
};
|
|
7952
8039
|
const RHFTextField = forwardRef((props, ref) => {
|
|
7953
8040
|
const {
|
|
7954
8041
|
name: nameRHF,
|
|
@@ -7966,15 +8053,17 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
7966
8053
|
mandatory,
|
|
7967
8054
|
mandatoryMessage,
|
|
7968
8055
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7969
|
-
helperText,
|
|
8056
|
+
helperText = true,
|
|
8057
|
+
isInteger = true,
|
|
7970
8058
|
...other
|
|
7971
8059
|
} = props;
|
|
8060
|
+
const ariaLabelledById = `field-label-${nameRHF}`;
|
|
7972
8061
|
const {
|
|
7973
8062
|
control,
|
|
7974
8063
|
formState: { errors }
|
|
7975
8064
|
} = useFormContext();
|
|
7976
8065
|
const [currentVariant, setCurrentVariant] = useState(null);
|
|
7977
|
-
const {
|
|
8066
|
+
const { handlerFocus, handlerOnKeyUp, handlerOnBlur } = useFormFocus();
|
|
7978
8067
|
const isDesktop = useResponsiveDesktop();
|
|
7979
8068
|
const isSkeleton = useModuleSkeleton();
|
|
7980
8069
|
useEffect(() => {
|
|
@@ -7987,28 +8076,27 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
7987
8076
|
}
|
|
7988
8077
|
}, [errors[nameRHF], variant, control]);
|
|
7989
8078
|
const ownerState = {
|
|
7990
|
-
|
|
8079
|
+
name: nameRHF,
|
|
8080
|
+
isInteger,
|
|
8081
|
+
type: type ?? "text",
|
|
7991
8082
|
size: !isDesktop ? "medium" : size,
|
|
7992
|
-
isFocus: !isSkeleton ? isFocus : false,
|
|
7993
|
-
isTabSelected: !isSkeleton ? isTabSelected : false,
|
|
7994
|
-
variant: currentVariant,
|
|
7995
8083
|
disabled
|
|
7996
8084
|
};
|
|
7997
|
-
const classes2 = getRHFTextFieldClassesByState(ownerState);
|
|
7998
8085
|
return (
|
|
7999
8086
|
/* RHFTextFieldRoot: Contenedor principal del componente, es usado para aplicar los estilos css de los overrides
|
|
8000
8087
|
que provienen del objeto del tema. Se usa para garantizar de que estos estilos no se propaguen a otros
|
|
8001
8088
|
componentes de la plataforna web. */
|
|
8002
8089
|
/* @__PURE__ */ jsx(
|
|
8003
|
-
|
|
8090
|
+
RHFTextFieldRootStyled,
|
|
8004
8091
|
{
|
|
8005
|
-
|
|
8092
|
+
ownerState: { ...ownerState },
|
|
8006
8093
|
tabIndex: 0,
|
|
8007
8094
|
onFocus: handlerFocus,
|
|
8008
8095
|
onBlur: handlerOnBlur,
|
|
8009
8096
|
onKeyUp: handlerOnKeyUp,
|
|
8010
8097
|
role: "textbox",
|
|
8011
|
-
|
|
8098
|
+
htmlFor: nameRHF,
|
|
8099
|
+
...getPropDataTestId(RHF_TEXT_FIELD_KEY_COMPONENT, RHFTextFieldSlots.root),
|
|
8012
8100
|
children: !isSkeleton ? (
|
|
8013
8101
|
/* controller: Componente usado para suscribir el componente al contexto de hook-form */
|
|
8014
8102
|
/* @__PURE__ */ jsx(
|
|
@@ -8016,42 +8104,48 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
8016
8104
|
{
|
|
8017
8105
|
name: nameRHF,
|
|
8018
8106
|
control,
|
|
8019
|
-
render: ({ field: { onChange, value,
|
|
8107
|
+
render: ({ field: { onChange, value, ref: inputRef }, fieldState: { error } }) => {
|
|
8020
8108
|
const onInternalChange = (event) => {
|
|
8109
|
+
let newValue = event.target.value;
|
|
8021
8110
|
if (type === "number") {
|
|
8022
|
-
if (
|
|
8023
|
-
|
|
8024
|
-
|
|
8111
|
+
if (isInteger) {
|
|
8112
|
+
newValue = newValue ? parseInt(newValue, 10) : 0;
|
|
8113
|
+
} else {
|
|
8114
|
+
newValue = newValue ? Number(newValue) : 0;
|
|
8025
8115
|
}
|
|
8116
|
+
newValue = isNaN(newValue) ? 0 : newValue;
|
|
8026
8117
|
}
|
|
8027
|
-
onChange(
|
|
8118
|
+
onChange(newValue);
|
|
8028
8119
|
};
|
|
8029
8120
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
8030
8121
|
label && /* @__PURE__ */ jsx(
|
|
8031
|
-
|
|
8122
|
+
FieldLabelStyled,
|
|
8032
8123
|
{
|
|
8124
|
+
ownerState: { ...ownerState },
|
|
8033
8125
|
label,
|
|
8126
|
+
id: ariaLabelledById,
|
|
8034
8127
|
mandatory,
|
|
8035
8128
|
mandatoryMessage,
|
|
8036
|
-
helperMessage
|
|
8129
|
+
helperMessage,
|
|
8130
|
+
className: "Ejemplo"
|
|
8037
8131
|
}
|
|
8038
8132
|
),
|
|
8039
8133
|
/* @__PURE__ */ jsx(
|
|
8040
|
-
|
|
8134
|
+
TextFieldStyled,
|
|
8041
8135
|
{
|
|
8042
|
-
|
|
8136
|
+
ownerState: { ...ownerState, error: !!error || other.error },
|
|
8043
8137
|
disabled,
|
|
8044
8138
|
ref,
|
|
8045
8139
|
inputRef,
|
|
8046
8140
|
InputLabelProps: { shrink: true },
|
|
8047
8141
|
autoComplete,
|
|
8048
8142
|
onChange: onInternalChange,
|
|
8049
|
-
value: type === "number" ? isNaN(value) ? 0 : value : value || "",
|
|
8050
|
-
name,
|
|
8143
|
+
value: type === "number" && isInteger ? isNaN(parseInt(value, 10)) ? 0 : parseInt(value, 10) : value || "",
|
|
8051
8144
|
inputProps: {
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8145
|
+
name: nameRHF,
|
|
8146
|
+
id: nameRHF,
|
|
8147
|
+
"aria-labelledby": ariaLabelledById,
|
|
8148
|
+
...getPropDataTestId(RHF_TEXT_FIELD_KEY_COMPONENT, RHFTextFieldSlots.textField)
|
|
8055
8149
|
},
|
|
8056
8150
|
fullWidth: true,
|
|
8057
8151
|
error: !!error,
|
|
@@ -8082,19 +8176,14 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
8082
8176
|
}
|
|
8083
8177
|
}
|
|
8084
8178
|
)
|
|
8085
|
-
) : (
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
skeletonHeight,
|
|
8094
|
-
ownerState,
|
|
8095
|
-
hasLabel: label
|
|
8096
|
-
}
|
|
8097
|
-
)
|
|
8179
|
+
) : /* @__PURE__ */ jsx(
|
|
8180
|
+
SkeletonTextField,
|
|
8181
|
+
{
|
|
8182
|
+
variant: variant || void 0,
|
|
8183
|
+
skeletonWidth,
|
|
8184
|
+
skeletonHeight,
|
|
8185
|
+
hasLabel: label
|
|
8186
|
+
}
|
|
8098
8187
|
)
|
|
8099
8188
|
}
|
|
8100
8189
|
)
|
|
@@ -9102,34 +9191,6 @@ const SimpleBarStyle = styled$1(SimpleBarReact)`
|
|
|
9102
9191
|
height: 100%;
|
|
9103
9192
|
overflow: hidden; */
|
|
9104
9193
|
height: 100%;
|
|
9105
|
-
|
|
9106
|
-
.simplebar-scrollbar {
|
|
9107
|
-
.simplebar-visible:before {
|
|
9108
|
-
opacity: 1;
|
|
9109
|
-
}
|
|
9110
|
-
}
|
|
9111
|
-
.simplebar-track.simplebar-vertical {
|
|
9112
|
-
width: 30;
|
|
9113
|
-
}
|
|
9114
|
-
.simplebar-track.simplebar-horizontal .simplebar-scrollbar {
|
|
9115
|
-
height: 6;
|
|
9116
|
-
}
|
|
9117
|
-
|
|
9118
|
-
.simplebar-mask {
|
|
9119
|
-
z-index: 'inherit';
|
|
9120
|
-
}
|
|
9121
|
-
|
|
9122
|
-
.simplebar-content {
|
|
9123
|
-
// display: 'flex',
|
|
9124
|
-
// flexDirection: 'column',
|
|
9125
|
-
// height: '100%',
|
|
9126
|
-
}
|
|
9127
|
-
|
|
9128
|
-
.simplebar-content-wrapper[style*='overflow: hidden scroll;'] {
|
|
9129
|
-
.simplebar-content {
|
|
9130
|
-
margin-right: 16px;
|
|
9131
|
-
}
|
|
9132
|
-
}
|
|
9133
9194
|
`;
|
|
9134
9195
|
styled$1(SimpleBarReact)(({ theme }) => ({
|
|
9135
9196
|
height: "100%",
|
|
@@ -10497,31 +10558,25 @@ const toastStyles = {
|
|
|
10497
10558
|
"--toastify-z-index": "9999",
|
|
10498
10559
|
"--toastify-text-color-light": "#757575",
|
|
10499
10560
|
"--toastify-text-color-dark": "#fff",
|
|
10561
|
+
//Used only for colored theme
|
|
10500
10562
|
"--toastify-text-color-info": "#fff",
|
|
10501
10563
|
"--toastify-text-color-success": "#fff",
|
|
10502
10564
|
"--toastify-text-color-warning": "#fff",
|
|
10503
10565
|
"--toastify-text-color-error": "#fff",
|
|
10504
10566
|
"--toastify-spinner-color": "#616161",
|
|
10505
10567
|
"--toastify-spinner-color-empty-area": "#e0e0e0",
|
|
10568
|
+
// Used when no type is provided
|
|
10569
|
+
// toast("**hello**")
|
|
10506
10570
|
"--toastify-color-progress-light": "var(--toastify-color-info)",
|
|
10571
|
+
// Used when no type is provided
|
|
10507
10572
|
"--toastify-color-progress-dark": "var(--toastify-color-info)",
|
|
10508
10573
|
"--toastify-color-progress-info": "var(--toastify-color-info)",
|
|
10509
10574
|
"--toastify-color-progress-success": "var(--toastify-color-success)",
|
|
10510
10575
|
"--toastify-color-progress-warning": "var(--toastify-color-warning)",
|
|
10511
10576
|
"--toastify-color-progress-error": "var(--toastify-color-error)",
|
|
10512
10577
|
"--toastify-toast-bd-radius": "8px",
|
|
10578
|
+
// used to control the opacity of the progress trail
|
|
10513
10579
|
"--toastify-color-progress-bgo": ".2",
|
|
10514
|
-
// Aplicar estilos del CSS Module directamente
|
|
10515
|
-
/* ...Object.keys(styles).reduce(
|
|
10516
|
-
(acc, key) => ({
|
|
10517
|
-
...acc,
|
|
10518
|
-
[`.${styles[key]}`]: {
|
|
10519
|
-
// Aquí puedes añadir estilos específicos si es necesario
|
|
10520
|
-
},
|
|
10521
|
-
}),
|
|
10522
|
-
{},
|
|
10523
|
-
),
|
|
10524
|
-
*/
|
|
10525
10580
|
...ownerState?.fixed === false ? {
|
|
10526
10581
|
top: 0,
|
|
10527
10582
|
position: "absolute",
|
|
@@ -10549,6 +10604,7 @@ const toastStyles = {
|
|
|
10549
10604
|
padding: "0"
|
|
10550
10605
|
}
|
|
10551
10606
|
},
|
|
10607
|
+
/** Used to define the position of the ToastContainer **/
|
|
10552
10608
|
".Toastify__toast-container--top-left": {},
|
|
10553
10609
|
".Toastify__toast-container--top-center": {},
|
|
10554
10610
|
".Toastify__toast-container--top-right": {},
|
|
@@ -10558,6 +10614,7 @@ const toastStyles = {
|
|
|
10558
10614
|
"& .Toastify__toast--stacked[data-collapsed=true]:not(:last-child) > *": {
|
|
10559
10615
|
opacity: 0.2
|
|
10560
10616
|
},
|
|
10617
|
+
/** Classes for the displayed toast **/
|
|
10561
10618
|
"& .Toastify__toast": {
|
|
10562
10619
|
minHeight: "min-content",
|
|
10563
10620
|
margin: "0",
|
|
@@ -10575,7 +10632,9 @@ const toastStyles = {
|
|
|
10575
10632
|
margin: "0px",
|
|
10576
10633
|
padding: "0px"
|
|
10577
10634
|
},
|
|
10635
|
+
/** Used to position the icon **/
|
|
10578
10636
|
"& .Toastify__toast-icon": {},
|
|
10637
|
+
/** handle the notification color and the text color based on the theme **/
|
|
10579
10638
|
"& .Toastify__toast-theme--dark": {},
|
|
10580
10639
|
"& .Toastify__toast-theme--light": {},
|
|
10581
10640
|
"& .Toastify__toast-theme--colored.Toastify__toast--default": {},
|
|
@@ -10862,9 +10921,9 @@ const Window = (props) => {
|
|
|
10862
10921
|
);
|
|
10863
10922
|
const {
|
|
10864
10923
|
setActions,
|
|
10865
|
-
getCookie,
|
|
10924
|
+
getCookie: getCookie2,
|
|
10866
10925
|
getCookies,
|
|
10867
|
-
setCookie,
|
|
10926
|
+
setCookie: setCookie2,
|
|
10868
10927
|
close: close2,
|
|
10869
10928
|
startProgress,
|
|
10870
10929
|
stopProgress,
|
|
@@ -10884,10 +10943,10 @@ const Window = (props) => {
|
|
|
10884
10943
|
setActions: (newActions, version) => {
|
|
10885
10944
|
setActions(windowId, newActions, version);
|
|
10886
10945
|
},
|
|
10887
|
-
getCookie: (id) =>
|
|
10946
|
+
getCookie: (id) => getCookie2(windowId, id),
|
|
10888
10947
|
getCookies: (type) => getCookies(windowId, type),
|
|
10889
10948
|
setCookie: (id, type, cookie) => {
|
|
10890
|
-
|
|
10949
|
+
setCookie2(windowId, id, type, cookie);
|
|
10891
10950
|
},
|
|
10892
10951
|
close: () => close2(windowId),
|
|
10893
10952
|
startProgress: () => startProgress(windowId),
|
|
@@ -10921,7 +10980,7 @@ const Window = (props) => {
|
|
|
10921
10980
|
),
|
|
10922
10981
|
onMouseDown: onTouch,
|
|
10923
10982
|
...process.env.NODE_ENV !== "production" ? {
|
|
10924
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
10983
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
10925
10984
|
AREAS_VIEWER_CLASS_NAME,
|
|
10926
10985
|
"windowRoot",
|
|
10927
10986
|
`${emergeType}`
|
|
@@ -11243,7 +11302,7 @@ function AreasViewer() {
|
|
|
11243
11302
|
{
|
|
11244
11303
|
className: classesRoot,
|
|
11245
11304
|
...process.env.NODE_ENV !== "production" ? {
|
|
11246
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
11305
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
11247
11306
|
AREAS_VIEWER_CLASS_NAME,
|
|
11248
11307
|
"root",
|
|
11249
11308
|
""
|
|
@@ -13070,7 +13129,7 @@ function DataGrid(props) {
|
|
|
13070
13129
|
className: classes2.root,
|
|
13071
13130
|
...process.env.NODE_ENV !== "production" ? {
|
|
13072
13131
|
[TEST_PROP_COLUMNS]: JSON.stringify(columns),
|
|
13073
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
13132
|
+
[TEST_PROP_ID]: getNameDataTestId$c(DATAGRID_PREFIX_NAME, "root", dataTestId)
|
|
13074
13133
|
} : {},
|
|
13075
13134
|
children: /* @__PURE__ */ jsx(
|
|
13076
13135
|
DataGridProvider,
|
|
@@ -22366,7 +22425,7 @@ function PropertyValue(props) {
|
|
|
22366
22425
|
[TEST_PROPS_DATA]: JSON.stringify([
|
|
22367
22426
|
{ property: property ? true : false, value: value ? true : false }
|
|
22368
22427
|
]),
|
|
22369
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
22428
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
22370
22429
|
COMPONENT_PREFIX,
|
|
22371
22430
|
"root",
|
|
22372
22431
|
dataTestId
|
|
@@ -22382,7 +22441,7 @@ function PropertyValue(props) {
|
|
|
22382
22441
|
minWidth: propertyWidth && isDesktop ? propertyWidth : "150px"
|
|
22383
22442
|
},
|
|
22384
22443
|
...process.env.NODE_ENV !== "production" ? {
|
|
22385
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
22444
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
22386
22445
|
COMPONENT_PREFIX,
|
|
22387
22446
|
"property",
|
|
22388
22447
|
dataTestId
|
|
@@ -22412,7 +22471,7 @@ function PropertyValue(props) {
|
|
|
22412
22471
|
height: valueHeight
|
|
22413
22472
|
},
|
|
22414
22473
|
...process.env.NODE_ENV !== "production" ? {
|
|
22415
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
22474
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
22416
22475
|
COMPONENT_PREFIX,
|
|
22417
22476
|
"value",
|
|
22418
22477
|
dataTestId
|
|
@@ -22439,7 +22498,7 @@ function PropertyValue(props) {
|
|
|
22439
22498
|
[TEST_PROPS_DATA]: JSON.stringify([
|
|
22440
22499
|
{ property: property ? true : false, value: value ? true : false }
|
|
22441
22500
|
]),
|
|
22442
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
22501
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
22443
22502
|
COMPONENT_PREFIX,
|
|
22444
22503
|
"root",
|
|
22445
22504
|
dataTestId
|
|
@@ -22455,7 +22514,7 @@ function PropertyValue(props) {
|
|
|
22455
22514
|
[TEST_PROPS_DATA]: JSON.stringify([
|
|
22456
22515
|
{ property: property ? true : false, value: value ? true : false }
|
|
22457
22516
|
]),
|
|
22458
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
22517
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
22459
22518
|
COMPONENT_PREFIX,
|
|
22460
22519
|
"root",
|
|
22461
22520
|
dataTestId
|
|
@@ -22485,7 +22544,7 @@ function PropertyValue(props) {
|
|
|
22485
22544
|
height: valueHeight
|
|
22486
22545
|
},
|
|
22487
22546
|
...process.env.NODE_ENV !== "production" ? {
|
|
22488
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
22547
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
22489
22548
|
COMPONENT_PREFIX,
|
|
22490
22549
|
"value",
|
|
22491
22550
|
dataTestId
|
|
@@ -24084,7 +24143,7 @@ const NavItemRoot = (props) => {
|
|
|
24084
24143
|
classes2.ItemSelect,
|
|
24085
24144
|
item.path === window.location.pathname ? TopBarClasses.IsActive : null
|
|
24086
24145
|
),
|
|
24087
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
24146
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$c(componentName$1, "ItemSelect", dataTestId) } : {},
|
|
24088
24147
|
children: /* @__PURE__ */ jsx(Button, { variant: "text", href: item.path, fullWidth: true, children: item.title })
|
|
24089
24148
|
}
|
|
24090
24149
|
) }, index));
|
|
@@ -24119,7 +24178,7 @@ const NavItemRoot = (props) => {
|
|
|
24119
24178
|
{
|
|
24120
24179
|
className: classes2.ContainerAccordionCase1,
|
|
24121
24180
|
...process.env.NODE_ENV !== "production" ? {
|
|
24122
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
24181
|
+
[TEST_PROP_ID]: getNameDataTestId$c(
|
|
24123
24182
|
componentName$1,
|
|
24124
24183
|
"ContainerAccordionCase1",
|
|
24125
24184
|
dataTestId
|
|
@@ -24146,7 +24205,7 @@ const NavItemRoot = (props) => {
|
|
|
24146
24205
|
"div",
|
|
24147
24206
|
{
|
|
24148
24207
|
className: classes2.ContainerAccordion,
|
|
24149
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
24208
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$c(componentName$1, "ContainerAccordion", dataTestId) } : {},
|
|
24150
24209
|
children: [
|
|
24151
24210
|
/* @__PURE__ */ jsx(
|
|
24152
24211
|
Button,
|
|
@@ -24174,7 +24233,7 @@ const NavItemRoot = (props) => {
|
|
|
24174
24233
|
classes2.ItemRoot,
|
|
24175
24234
|
isActive(itemRootData) || openedPopoverId === itemRootData.module_id ? TopBarClasses.IsActive : null
|
|
24176
24235
|
),
|
|
24177
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
24236
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$c(componentName$1, "ItemRoot", dataTestId) } : {},
|
|
24178
24237
|
children: render()
|
|
24179
24238
|
}
|
|
24180
24239
|
);
|
|
@@ -24185,7 +24244,7 @@ const ConteinItem = () => {
|
|
|
24185
24244
|
"div",
|
|
24186
24245
|
{
|
|
24187
24246
|
className: classes2.SimplebarComercial,
|
|
24188
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
24247
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$c(componentName$1, "SimplebarComercial", dataTestId) } : {},
|
|
24189
24248
|
//Map que se encarga de cargar el iNavItemRoot
|
|
24190
24249
|
children: DataMenu.map((group) => /* @__PURE__ */ jsx(NavItemRoot, { itemRootData: group }, group.module_id))
|
|
24191
24250
|
}
|
|
@@ -24201,7 +24260,7 @@ const TopBar = (props) => {
|
|
|
24201
24260
|
TopBarRoot,
|
|
24202
24261
|
{
|
|
24203
24262
|
className: classes2.root,
|
|
24204
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
24263
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$c(componentName$1, "root", dataTestId) } : {},
|
|
24205
24264
|
children: /* @__PURE__ */ jsx(TopBarProvider, { value: { dataMenu: DataMenu, classes: classes2, dataTestId }, children: /* @__PURE__ */ jsx(ConteinItem, {}) })
|
|
24206
24265
|
}
|
|
24207
24266
|
);
|
|
@@ -24438,7 +24497,7 @@ const features = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
24438
24497
|
default: domMax
|
|
24439
24498
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
24440
24499
|
export {
|
|
24441
|
-
|
|
24500
|
+
Breadcrumbs as $,
|
|
24442
24501
|
AnimatedScroll as A,
|
|
24443
24502
|
getRHFAutocompleteAsyncComponentsDictionary as B,
|
|
24444
24503
|
RHFDateTime as C,
|
|
@@ -24460,156 +24519,153 @@ export {
|
|
|
24460
24519
|
ScrollToTop as S,
|
|
24461
24520
|
TextEditor as T,
|
|
24462
24521
|
RHFTextField as U,
|
|
24463
|
-
|
|
24522
|
+
RHFTextFieldPassword as V,
|
|
24464
24523
|
WindowToolsMFProvider as W,
|
|
24465
|
-
|
|
24466
|
-
|
|
24467
|
-
|
|
24468
|
-
|
|
24524
|
+
RHFUploadImage as X,
|
|
24525
|
+
Accordion as Y,
|
|
24526
|
+
Avatar as Z,
|
|
24527
|
+
BoxIcon as _,
|
|
24469
24528
|
getDataGridRowsFromSet as a,
|
|
24470
|
-
|
|
24471
|
-
|
|
24472
|
-
|
|
24473
|
-
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24487
|
-
|
|
24488
|
-
|
|
24489
|
-
|
|
24490
|
-
|
|
24491
|
-
|
|
24492
|
-
|
|
24493
|
-
|
|
24494
|
-
|
|
24495
|
-
|
|
24496
|
-
|
|
24497
|
-
|
|
24498
|
-
|
|
24499
|
-
|
|
24500
|
-
|
|
24501
|
-
|
|
24502
|
-
|
|
24503
|
-
|
|
24504
|
-
|
|
24505
|
-
|
|
24506
|
-
|
|
24507
|
-
|
|
24508
|
-
|
|
24509
|
-
|
|
24510
|
-
|
|
24511
|
-
|
|
24512
|
-
|
|
24513
|
-
|
|
24514
|
-
|
|
24515
|
-
|
|
24516
|
-
|
|
24517
|
-
|
|
24518
|
-
|
|
24519
|
-
|
|
24520
|
-
|
|
24521
|
-
|
|
24522
|
-
|
|
24523
|
-
|
|
24524
|
-
|
|
24525
|
-
|
|
24526
|
-
|
|
24527
|
-
|
|
24528
|
-
|
|
24529
|
-
|
|
24530
|
-
|
|
24531
|
-
|
|
24532
|
-
|
|
24533
|
-
|
|
24529
|
+
addLayoutItemToBreakPointIfNoExists as a$,
|
|
24530
|
+
CircularProgress as a0,
|
|
24531
|
+
Badge as a1,
|
|
24532
|
+
LinearProgress as a2,
|
|
24533
|
+
LinkWithRoute as a3,
|
|
24534
|
+
LoadingButton as a4,
|
|
24535
|
+
MenuActions as a5,
|
|
24536
|
+
Pager as a6,
|
|
24537
|
+
getPagerComponentsDictionary as a7,
|
|
24538
|
+
Tab as a8,
|
|
24539
|
+
Button as a9,
|
|
24540
|
+
getFormattersComponentsDictionary as aA,
|
|
24541
|
+
ColumnUncertaintyFormatter as aB,
|
|
24542
|
+
ColumnPointsFormatter as aC,
|
|
24543
|
+
ColumnNestedValueFormatter as aD,
|
|
24544
|
+
ColumnBooleanFormatter as aE,
|
|
24545
|
+
ColumnDateFormatter as aF,
|
|
24546
|
+
ColumnConcatenatedValueFormatter as aG,
|
|
24547
|
+
ColumnPriceFormatter as aH,
|
|
24548
|
+
ColumnInteractiveCheckFormatter as aI,
|
|
24549
|
+
ColumnSetCheckFormatter as aJ,
|
|
24550
|
+
getDynamicFilterComponentsDictionary as aK,
|
|
24551
|
+
DynamicFilter as aL,
|
|
24552
|
+
FieldLabel as aM,
|
|
24553
|
+
HelperText as aN,
|
|
24554
|
+
errorLabelClasses as aO,
|
|
24555
|
+
Actions$2 as aP,
|
|
24556
|
+
ActionCancel as aQ,
|
|
24557
|
+
ActionIntro as aR,
|
|
24558
|
+
ActionFormCancel as aS,
|
|
24559
|
+
ActionFormIntro as aT,
|
|
24560
|
+
getCommonActionsDictionary as aU,
|
|
24561
|
+
defaultCommonActionsDictionary as aV,
|
|
24562
|
+
DragResizeWindow as aW,
|
|
24563
|
+
draggableWindowClasses as aX,
|
|
24564
|
+
GridLayout as aY,
|
|
24565
|
+
Responsive as aZ,
|
|
24566
|
+
addLayoutItemToBreakPoints as a_,
|
|
24567
|
+
CheckBox as aa,
|
|
24568
|
+
IconButton as ab,
|
|
24569
|
+
ImageButton as ac,
|
|
24570
|
+
Popover as ad,
|
|
24571
|
+
Stack as ae,
|
|
24572
|
+
Tabs as af,
|
|
24573
|
+
TabContent as ag,
|
|
24574
|
+
TabProvider as ah,
|
|
24575
|
+
TabContext as ai,
|
|
24576
|
+
Tooltip as aj,
|
|
24577
|
+
Typography as ak,
|
|
24578
|
+
ToggleButton as al,
|
|
24579
|
+
ToggleIconButton as am,
|
|
24580
|
+
BooleanFormatter as an,
|
|
24581
|
+
getFormatDate as ao,
|
|
24582
|
+
DateFormatter as ap,
|
|
24583
|
+
UncertaintyFormatter as aq,
|
|
24584
|
+
getUncertaintyFormat as ar,
|
|
24585
|
+
PointsFormatter as as,
|
|
24586
|
+
getFormatPoints as at,
|
|
24587
|
+
getFormatConcatenated as au,
|
|
24588
|
+
ConcatenatedFormatter as av,
|
|
24589
|
+
getFormatPeriod as aw,
|
|
24590
|
+
PeriodFormatter as ax,
|
|
24591
|
+
PriceFormatter as ay,
|
|
24592
|
+
getFormatPrice as az,
|
|
24534
24593
|
NavLink as b,
|
|
24535
|
-
|
|
24536
|
-
|
|
24537
|
-
|
|
24538
|
-
|
|
24539
|
-
|
|
24540
|
-
|
|
24541
|
-
|
|
24542
|
-
|
|
24543
|
-
|
|
24544
|
-
|
|
24545
|
-
|
|
24546
|
-
|
|
24547
|
-
|
|
24548
|
-
|
|
24549
|
-
|
|
24550
|
-
|
|
24551
|
-
|
|
24552
|
-
|
|
24553
|
-
|
|
24554
|
-
|
|
24555
|
-
|
|
24556
|
-
|
|
24557
|
-
|
|
24558
|
-
|
|
24559
|
-
|
|
24560
|
-
|
|
24561
|
-
|
|
24562
|
-
|
|
24563
|
-
|
|
24564
|
-
|
|
24565
|
-
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
|
|
24569
|
-
|
|
24570
|
-
|
|
24571
|
-
|
|
24572
|
-
|
|
24573
|
-
|
|
24574
|
-
|
|
24575
|
-
|
|
24576
|
-
|
|
24577
|
-
|
|
24578
|
-
|
|
24579
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24591
|
-
|
|
24592
|
-
|
|
24593
|
-
|
|
24594
|
-
|
|
24595
|
-
|
|
24596
|
-
|
|
24597
|
-
|
|
24598
|
-
|
|
24594
|
+
MemonizedDynamicMFParmsProvider as b$,
|
|
24595
|
+
cloneLayouts as b0,
|
|
24596
|
+
isEqualLayouts as b1,
|
|
24597
|
+
isEqualLayout as b2,
|
|
24598
|
+
withSizeProvider as b3,
|
|
24599
|
+
PrintingSystem as b4,
|
|
24600
|
+
Icon as b5,
|
|
24601
|
+
LanguagePopover as b6,
|
|
24602
|
+
LinearProgressIndeterminate as b7,
|
|
24603
|
+
Image as b8,
|
|
24604
|
+
Loadable as b9,
|
|
24605
|
+
PDFViewer as bA,
|
|
24606
|
+
Period as bB,
|
|
24607
|
+
HelmetPage as bC,
|
|
24608
|
+
PropertyValue as bD,
|
|
24609
|
+
ResizeableWindow as bE,
|
|
24610
|
+
ScrollBar as bF,
|
|
24611
|
+
SplitLayout as bG,
|
|
24612
|
+
ToastContainer as bH,
|
|
24613
|
+
createToaster as bI,
|
|
24614
|
+
ToastMessage as bJ,
|
|
24615
|
+
SideBar as bK,
|
|
24616
|
+
AppBar as bL,
|
|
24617
|
+
getAppBarDictionary as bM,
|
|
24618
|
+
AccountPopover as bN,
|
|
24619
|
+
getAccountPopoverDictionary as bO,
|
|
24620
|
+
usePopupsStore as bP,
|
|
24621
|
+
PopupsProvider as bQ,
|
|
24622
|
+
PopupsContext as bR,
|
|
24623
|
+
PopupsViewer as bS,
|
|
24624
|
+
AppBarComercial as bT,
|
|
24625
|
+
HamburgerMenu as bU,
|
|
24626
|
+
TopBar as bV,
|
|
24627
|
+
SectionCommercial as bW,
|
|
24628
|
+
MFIsolationApp as bX,
|
|
24629
|
+
BaseModule as bY,
|
|
24630
|
+
DynamicMFParmsProvider as bZ,
|
|
24631
|
+
DynamicMFParmsContext as b_,
|
|
24632
|
+
Map$1 as ba,
|
|
24633
|
+
MapProvider as bb,
|
|
24634
|
+
MapContext as bc,
|
|
24635
|
+
useMapStore as bd,
|
|
24636
|
+
MarkerFeatureRender as be,
|
|
24637
|
+
CommonFeatureRender as bf,
|
|
24638
|
+
MapGpsTools as bg,
|
|
24639
|
+
useGpsToolsStore as bh,
|
|
24640
|
+
GpsToolsProvider as bi,
|
|
24641
|
+
ModalDialog as bj,
|
|
24642
|
+
getModalDictionary as bk,
|
|
24643
|
+
getModalDialogComponentsDictionary as bl,
|
|
24644
|
+
defaultModalDialogDictionary as bm,
|
|
24645
|
+
WindowConfirm as bn,
|
|
24646
|
+
WindowBase as bo,
|
|
24647
|
+
LoadingError as bp,
|
|
24648
|
+
getLoadingErrorComponentsDictionary as bq,
|
|
24649
|
+
MFLoader as br,
|
|
24650
|
+
getMFLoaderComponentsDictionary as bs,
|
|
24651
|
+
NoItemSelected as bt,
|
|
24652
|
+
getNoItemSelectedComponentsDictionary as bu,
|
|
24653
|
+
defaultNoItemSelectedDictionary as bv,
|
|
24654
|
+
ObjectLogs as bw,
|
|
24655
|
+
getObjectLogsComponentsDictionary as bx,
|
|
24656
|
+
defaultObjectLogDictionary as by,
|
|
24657
|
+
PaperForm as bz,
|
|
24599
24658
|
MotionLazyContainer as c,
|
|
24600
|
-
|
|
24601
|
-
|
|
24602
|
-
|
|
24603
|
-
|
|
24604
|
-
|
|
24605
|
-
|
|
24606
|
-
|
|
24607
|
-
|
|
24608
|
-
|
|
24609
|
-
|
|
24610
|
-
getformAddEditDictionary as ca,
|
|
24611
|
-
useFormFocus as cb,
|
|
24612
|
-
useInterval as cc,
|
|
24659
|
+
RHFormProvider as c0,
|
|
24660
|
+
getFormComponentsDictionary as c1,
|
|
24661
|
+
ModalProvider as c2,
|
|
24662
|
+
ModalContext as c3,
|
|
24663
|
+
useFormAddEdit as c4,
|
|
24664
|
+
useModal as c5,
|
|
24665
|
+
useTab as c6,
|
|
24666
|
+
getformAddEditDictionary as c7,
|
|
24667
|
+
useFormFocus as c8,
|
|
24668
|
+
useInterval as c9,
|
|
24613
24669
|
varBounce as d,
|
|
24614
24670
|
varContainer as e,
|
|
24615
24671
|
varTranHover as f,
|