@m4l/components 9.1.107 → 9.1.109
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/components/LanguagePopover/LanguagePopover.js +2 -2
- package/components/NoItemSelected/dictionary.js +5 -1
- package/components/NoItemSelected/index.d.ts +2 -0
- package/components/NoItemSelected/index.js +1 -0
- package/components/NumberInput/NumberInput.styles.js +8 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +39 -34
- package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +5 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.js +1 -1
- package/components/areas/contexts/AreasContext/helpers/helper.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploaMultipleFile/components/UploadMultiple/index.d.ts +5 -0
- package/components/hook-form/RHFUpload/RHFUploaMultipleFile/index.d.ts +8 -0
- package/components/hook-form/RHFUpload/RHFUploaMultipleFile/types.d.ts +2 -1
- package/components/hook-form/RHFUpload/RHFUploadFile/components/UploadSingleFile/index.d.ts +13 -0
- package/components/hook-form/RHFUpload/RHFUploadFile/components/UploadSingleFile/index.js +84 -0
- package/components/hook-form/RHFUpload/RHFUploadFile/index.d.ts +9 -0
- package/components/hook-form/RHFUpload/RHFUploadFile/index.js +31 -0
- package/components/hook-form/RHFUpload/components/UploadComponents/BlockContent.d.ts +4 -0
- package/components/hook-form/RHFUpload/components/UploadComponents/BlockContent.js +36 -0
- package/components/hook-form/RHFUpload/components/UploadComponents/MultiFilePreview.d.ts +5 -0
- package/components/hook-form/RHFUpload/components/UploadComponents/RejectionFiles.d.ts +9 -0
- package/components/hook-form/RHFUpload/components/UploadComponents/RejectionFiles.js +31 -0
- package/components/hook-form/RHFUpload/components/UploadComponents/types.d.ts +10 -0
- package/components/hook-form/index.d.ts +1 -0
- package/components/index.d.ts +1 -1
- package/index.js +44 -40
- package/package.json +1 -1
|
@@ -70,7 +70,7 @@ function LanguagePopover(props) {
|
|
|
70
70
|
height: 28,
|
|
71
71
|
...open && { bgcolor: "action.selected" }
|
|
72
72
|
},
|
|
73
|
-
src: currentLocale?.
|
|
73
|
+
src: currentLocale?.urlIcon || "",
|
|
74
74
|
width: "24px",
|
|
75
75
|
dataTestId
|
|
76
76
|
}
|
|
@@ -121,7 +121,7 @@ function LanguagePopover(props) {
|
|
|
121
121
|
Image,
|
|
122
122
|
{
|
|
123
123
|
alt: option.name,
|
|
124
|
-
src: option.
|
|
124
|
+
src: option.urlIcon
|
|
125
125
|
}
|
|
126
126
|
) }),
|
|
127
127
|
/* @__PURE__ */ jsx(
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
function getNoItemSelectedComponentsDictionary() {
|
|
2
|
+
return ["no_item_selected"];
|
|
3
|
+
}
|
|
1
4
|
const DICTIONARY = {
|
|
2
5
|
LABEL_TITLE: "no_item_selected.title",
|
|
3
6
|
LABEL_DETAIL: "no_item_selected.detail"
|
|
4
7
|
};
|
|
5
8
|
export {
|
|
6
|
-
DICTIONARY as D
|
|
9
|
+
DICTIONARY as D,
|
|
10
|
+
getNoItemSelectedComponentsDictionary as g
|
|
7
11
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { g as getTypographyStyles } from "../../utils/getTypographyStyles.js";
|
|
1
2
|
import { g as getHeightSizeStyles } from "../../utils/getHeightSizeStyles.js";
|
|
2
3
|
const numberInputStyles = {
|
|
3
4
|
/**
|
|
@@ -64,7 +65,13 @@ const numberInputStyles = {
|
|
|
64
65
|
width: "100%",
|
|
65
66
|
...ownerState.focusError && {
|
|
66
67
|
color: theme.vars.palette.error.main
|
|
67
|
-
}
|
|
68
|
+
},
|
|
69
|
+
...getTypographyStyles(
|
|
70
|
+
theme.generalSettings.isMobile,
|
|
71
|
+
ownerState.size || "small",
|
|
72
|
+
"body"
|
|
73
|
+
),
|
|
74
|
+
fontFamily: theme.typography.fontFamily
|
|
68
75
|
}),
|
|
69
76
|
/**
|
|
70
77
|
* Estilos para envoltorio de boton y endAdornment
|
|
@@ -50,6 +50,12 @@ const AreasAdmin = (props) => {
|
|
|
50
50
|
}) ?? [],
|
|
51
51
|
shallow
|
|
52
52
|
);
|
|
53
|
+
const moduleCounts = useAreasStore((state) => {
|
|
54
|
+
return windowsLayouts.reduce((acc, element) => {
|
|
55
|
+
acc[element.i] = state.hashWindows[element.i]?.moduleCount;
|
|
56
|
+
return acc;
|
|
57
|
+
}, {});
|
|
58
|
+
}, shallow);
|
|
53
59
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
54
60
|
const { getLabel } = useModuleDictionary();
|
|
55
61
|
const divRef = useRef(null);
|
|
@@ -66,10 +72,11 @@ const AreasAdmin = (props) => {
|
|
|
66
72
|
maximizeLayout(currentAreaId, layoutId);
|
|
67
73
|
};
|
|
68
74
|
const menuActions = windowsLayouts.map((element) => {
|
|
75
|
+
const moduleCount = moduleCounts[element.i];
|
|
69
76
|
return {
|
|
70
77
|
type: "menuItem",
|
|
71
78
|
onClick: () => onTouched(element.i),
|
|
72
|
-
label: element.title
|
|
79
|
+
label: `${element.title}${moduleCount ? `:${moduleCount}` : ""}`,
|
|
73
80
|
urlIcon: element.url_icon,
|
|
74
81
|
checkable: true,
|
|
75
82
|
checked: maximizedId === element.i
|
|
@@ -102,39 +109,37 @@ const AreasAdmin = (props) => {
|
|
|
102
109
|
size: normalizedSize,
|
|
103
110
|
ownerState: {},
|
|
104
111
|
children: !isMobile ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
105
|
-
/* @__PURE__ */ jsx(
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
] }) }),
|
|
137
|
-
maximizedId && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(ContainerAdminWindowsStyled, { size: normalizedSize, ownerState, children: [
|
|
112
|
+
/* @__PURE__ */ jsx(
|
|
113
|
+
IconButtonAddAreaStyled,
|
|
114
|
+
{
|
|
115
|
+
"aria-label": "Agregar área",
|
|
116
|
+
size: normalizedSize,
|
|
117
|
+
variant: "contained",
|
|
118
|
+
ownerState,
|
|
119
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.ADD_AREA}`,
|
|
120
|
+
onClick: addArea,
|
|
121
|
+
tooltip: getLabel(getAreasDictionary(AREAS_DICCTIONARY.area_add_new))
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
/* @__PURE__ */ jsx(ScrollBar, { children: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
125
|
+
AreaContentChipStyled,
|
|
126
|
+
{
|
|
127
|
+
size: normalizedSize,
|
|
128
|
+
ownerState: {},
|
|
129
|
+
children: Array.isArray(areas) && areas.length > 0 && areas.map((areaId) => /* @__PURE__ */ jsx(
|
|
130
|
+
AreaChip,
|
|
131
|
+
{
|
|
132
|
+
size: normalizedSize,
|
|
133
|
+
color,
|
|
134
|
+
areaId,
|
|
135
|
+
selected: areaId === currentAreaId,
|
|
136
|
+
disabled: areasLength === 1
|
|
137
|
+
},
|
|
138
|
+
areaId
|
|
139
|
+
))
|
|
140
|
+
}
|
|
141
|
+
) }) }),
|
|
142
|
+
maximizedId && windowsLayouts.length > 1 && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(ContainerAdminWindowsStyled, { size: normalizedSize, ownerState, children: [
|
|
138
143
|
/* @__PURE__ */ jsx(Typography, { size: normalizedSize, children: getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_window)) }),
|
|
139
144
|
/* @__PURE__ */ jsx(
|
|
140
145
|
MenuActions,
|
|
@@ -12,6 +12,9 @@ const areasAdminStyles = {
|
|
|
12
12
|
flexDirection: "row",
|
|
13
13
|
gap: theme.vars.size.baseSpacings.sp2,
|
|
14
14
|
alignItems: "center"
|
|
15
|
+
},
|
|
16
|
+
"& .simplebar-placeholder": {
|
|
17
|
+
width: "100% !important"
|
|
15
18
|
}
|
|
16
19
|
}),
|
|
17
20
|
/**
|
|
@@ -39,7 +42,8 @@ const areasAdminStyles = {
|
|
|
39
42
|
*/
|
|
40
43
|
areaContainerContentChips: () => ({
|
|
41
44
|
display: "flex",
|
|
42
|
-
flexDirection: "row"
|
|
45
|
+
flexDirection: "row",
|
|
46
|
+
alignItems: "center"
|
|
43
47
|
}),
|
|
44
48
|
/**
|
|
45
49
|
* Root area content chip Styles
|
package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.js
CHANGED
|
@@ -33,7 +33,7 @@ const Window = (props) => {
|
|
|
33
33
|
return /* @__PURE__ */ jsx(
|
|
34
34
|
WindowBase,
|
|
35
35
|
{
|
|
36
|
-
title: `${title}${moduleCount ? `:${moduleCount}` :
|
|
36
|
+
title: `${title}${moduleCount ? `:${moduleCount}` : ""}`,
|
|
37
37
|
iconUrl,
|
|
38
38
|
isLoading: loading,
|
|
39
39
|
onClose: () => windowTools.close(),
|
|
@@ -134,7 +134,7 @@ function getDataFromResponse(data, state, areaId) {
|
|
|
134
134
|
if (windows) {
|
|
135
135
|
for (const key in windows) {
|
|
136
136
|
const element = windows[key];
|
|
137
|
-
if (element && // element['layoutProps'] && //Garantizar que venga con los LayoutProps de la venta
|
|
137
|
+
if (element && element.moduleCount && // element['layoutProps'] && //Garantizar que venga con los LayoutProps de la venta
|
|
138
138
|
element["mfProps"] && //Garantizar que venga con los mfProps de la venta
|
|
139
139
|
element["emergeType"] === "layout" && element["winType"] === "microfrontend") {
|
|
140
140
|
newWindowsLayoutsIds.push(key);
|
package/components/hook-form/RHFUpload/RHFUploaMultipleFile/components/UploadMultiple/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UploadMultiFileProps } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* todo: document this component
|
|
4
|
+
*/
|
|
5
|
+
export default function UploadMultiFile({ error, showPreview, files, onRemove, onRemoveAll, helperText, sx, ...other }: UploadMultiFileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UploadMultiFileProps } from './types';
|
|
2
|
+
export interface RHFUploadMultiFileProps extends Omit<UploadMultiFileProps, 'files'> {
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* todo: document this component
|
|
7
|
+
*/
|
|
8
|
+
export declare function RHFUploadMultiFile({ name, ...other }: RHFUploadMultiFileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,9 +2,10 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { DropzoneOptions } from 'react-dropzone';
|
|
3
3
|
import { SxProps } from '@mui/material';
|
|
4
4
|
import { Theme } from '@mui/material/styles';
|
|
5
|
+
import { CustomFile } from '../components/UploadComponents/types';
|
|
5
6
|
export interface UploadMultiFileProps extends DropzoneOptions {
|
|
6
7
|
error?: boolean;
|
|
7
|
-
files:
|
|
8
|
+
files: CustomFile[];
|
|
8
9
|
showPreview: boolean;
|
|
9
10
|
onRemove: (file: File | string) => void;
|
|
10
11
|
onRemoveAll: VoidFunction;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DropzoneProps } from 'react-dropzone';
|
|
2
|
+
interface UploadProps extends DropzoneProps {
|
|
3
|
+
error?: boolean;
|
|
4
|
+
file: any;
|
|
5
|
+
helperText?: React.ReactNode;
|
|
6
|
+
sx?: any;
|
|
7
|
+
onChange?: (...event: any[]) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* todo: document this component
|
|
11
|
+
*/
|
|
12
|
+
export default function UploadSingleFile({ error, file, helperText, sx, accept, onChange, ...other }: UploadProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import isString from "lodash-es/isString";
|
|
3
|
+
import { useDropzone } from "react-dropzone";
|
|
4
|
+
import { useState, useEffect } from "react";
|
|
5
|
+
import { styled } from "@mui/material/styles";
|
|
6
|
+
import { Box } from "@mui/material";
|
|
7
|
+
import { B as BlockContent } from "../../../components/UploadComponents/BlockContent.js";
|
|
8
|
+
import { R as RejectionFiles } from "../../../components/UploadComponents/RejectionFiles.js";
|
|
9
|
+
import { I as Image } from "../../../../../Image/Image.js";
|
|
10
|
+
const DropZoneStyle = styled("div")(({ theme }) => ({
|
|
11
|
+
outline: "none",
|
|
12
|
+
overflow: "hidden",
|
|
13
|
+
position: "relative",
|
|
14
|
+
padding: theme.spacing(5, 1),
|
|
15
|
+
borderRadius: theme.shape.borderRadius,
|
|
16
|
+
transition: theme.transitions.create("padding"),
|
|
17
|
+
backgroundColor: theme.vars.palette.background.neutral,
|
|
18
|
+
border: `1px dashed ${theme.vars.palette.grey[50032]}`,
|
|
19
|
+
"&:hover": { opacity: 0.72, cursor: "pointer" }
|
|
20
|
+
}));
|
|
21
|
+
function UploadSingleFile({
|
|
22
|
+
error = false,
|
|
23
|
+
file,
|
|
24
|
+
helperText,
|
|
25
|
+
sx,
|
|
26
|
+
accept,
|
|
27
|
+
onChange,
|
|
28
|
+
...other
|
|
29
|
+
}) {
|
|
30
|
+
const { getRootProps, getInputProps, isDragActive, isDragReject, fileRejections } = useDropzone({
|
|
31
|
+
multiple: false,
|
|
32
|
+
accept,
|
|
33
|
+
/**
|
|
34
|
+
* todo: document this component
|
|
35
|
+
*/
|
|
36
|
+
onDrop: (acceptedFiles) => {
|
|
37
|
+
if (acceptedFiles.length > 0) {
|
|
38
|
+
onChange?.(acceptedFiles[0]);
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
...other
|
|
42
|
+
});
|
|
43
|
+
const [preview, setPreview] = useState(null);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (file instanceof File) {
|
|
46
|
+
const objectUrl = URL.createObjectURL(file);
|
|
47
|
+
setPreview(objectUrl);
|
|
48
|
+
return () => URL.revokeObjectURL(objectUrl);
|
|
49
|
+
} else if (isString(file)) {
|
|
50
|
+
setPreview(file);
|
|
51
|
+
} else {
|
|
52
|
+
setPreview(null);
|
|
53
|
+
}
|
|
54
|
+
}, [file]);
|
|
55
|
+
return /* @__PURE__ */ jsxs(Box, { sx: { width: "100%", ...sx }, children: [
|
|
56
|
+
/* @__PURE__ */ jsxs(
|
|
57
|
+
DropZoneStyle,
|
|
58
|
+
{
|
|
59
|
+
...getRootProps(),
|
|
60
|
+
sx: {
|
|
61
|
+
...isDragActive && { opacity: 0.72 },
|
|
62
|
+
...(isDragReject || error) && {
|
|
63
|
+
color: "error.main",
|
|
64
|
+
borderColor: "error.light",
|
|
65
|
+
bgcolor: "error.lighter"
|
|
66
|
+
},
|
|
67
|
+
...file && {
|
|
68
|
+
padding: "12% 0"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
children: [
|
|
72
|
+
!preview && /* @__PURE__ */ jsx(BlockContent, {}),
|
|
73
|
+
/* @__PURE__ */ jsx("input", { ...getInputProps() }),
|
|
74
|
+
preview && /* @__PURE__ */ jsx(Image, { alt: "file preview", src: preview })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
fileRejections.length > 0 && /* @__PURE__ */ jsx(RejectionFiles, { fileRejections }),
|
|
79
|
+
helperText && helperText
|
|
80
|
+
] });
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
UploadSingleFile as U
|
|
84
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
+
import { U as UploadSingleFile } from "./components/UploadSingleFile/index.js";
|
|
4
|
+
import { FormHelperText } from "@mui/material";
|
|
5
|
+
function RHFUploadFile({ name, ...other }) {
|
|
6
|
+
const { control } = useFormContext();
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Controller,
|
|
9
|
+
{
|
|
10
|
+
name,
|
|
11
|
+
control,
|
|
12
|
+
render: ({ field: { value, onChange }, fieldState: { error } }) => {
|
|
13
|
+
const checkError = !!error && !value;
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
UploadSingleFile,
|
|
16
|
+
{
|
|
17
|
+
accept: { "image/png": [".png"] },
|
|
18
|
+
file: value,
|
|
19
|
+
error: checkError,
|
|
20
|
+
onChange,
|
|
21
|
+
helperText: checkError && /* @__PURE__ */ jsx(FormHelperText, { error: true, sx: { px: 2 }, children: error.message }),
|
|
22
|
+
...other
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
RHFUploadFile as R
|
|
31
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Stack, Box, Typography } from "@mui/material";
|
|
3
|
+
function BlockContent() {
|
|
4
|
+
return /* @__PURE__ */ jsxs(
|
|
5
|
+
Stack,
|
|
6
|
+
{
|
|
7
|
+
spacing: 2,
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
justifyContent: "center",
|
|
10
|
+
direction: { xs: "column", md: "row" },
|
|
11
|
+
sx: { width: 1, textAlign: { xs: "center", md: "left" } },
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ jsx("img", { src: "\nhttps://s3.amazonaws.com/static.made4labs/environments/d1/frontend/components/sidebar/assets/icons/arrow_right.svg", alt: "upload" }),
|
|
14
|
+
/* @__PURE__ */ jsxs(Box, { sx: { p: 3 }, children: [
|
|
15
|
+
/* @__PURE__ */ jsx(Typography, { gutterBottom: true, variant: "h5", children: "Drop or Select file" }),
|
|
16
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "body2", sx: { color: "text.secondary" }, children: [
|
|
17
|
+
"Drop files here or click ",
|
|
18
|
+
/* @__PURE__ */ jsx(
|
|
19
|
+
Typography,
|
|
20
|
+
{
|
|
21
|
+
variant: "body2",
|
|
22
|
+
component: "span",
|
|
23
|
+
sx: { color: "primary.main", textDecoration: "underline" },
|
|
24
|
+
children: "browse"
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
" thorough your machine"
|
|
28
|
+
] })
|
|
29
|
+
] })
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
BlockContent as B
|
|
36
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FileRejection } from 'react-dropzone';
|
|
2
|
+
type Props = {
|
|
3
|
+
fileRejections: readonly FileRejection[];
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* todo: document this component
|
|
7
|
+
*/
|
|
8
|
+
export default function RejectionFiles({ fileRejections }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { alpha } from "@mui/material/styles";
|
|
3
|
+
import { Paper, Box, Typography } from "@mui/material";
|
|
4
|
+
function RejectionFiles({ fileRejections }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
Paper,
|
|
7
|
+
{
|
|
8
|
+
variant: "outlined",
|
|
9
|
+
sx: {
|
|
10
|
+
py: 1,
|
|
11
|
+
px: 2,
|
|
12
|
+
mt: 3,
|
|
13
|
+
borderColor: "error.light",
|
|
14
|
+
bgcolor: (theme) => alpha(theme.colorSchemes.finalTheme.palette.error.main, 0.08)
|
|
15
|
+
},
|
|
16
|
+
children: fileRejections.map(({ file, errors }) => {
|
|
17
|
+
const { path } = file;
|
|
18
|
+
return /* @__PURE__ */ jsxs(Box, { sx: { my: 1 }, children: [
|
|
19
|
+
/* @__PURE__ */ jsx(Typography, { variant: "subtitle2", noWrap: true, children: path }),
|
|
20
|
+
errors.map((error) => /* @__PURE__ */ jsxs(Typography, { variant: "caption", component: "p", children: [
|
|
21
|
+
"- ",
|
|
22
|
+
error.message
|
|
23
|
+
] }, error.code))
|
|
24
|
+
] }, path);
|
|
25
|
+
})
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
RejectionFiles as R
|
|
31
|
+
};
|
|
@@ -13,4 +13,5 @@ export * from './RHFTextFieldPassword';
|
|
|
13
13
|
export * from './RHFPeriod';
|
|
14
14
|
export { RHFRadioGroup } from './RHFRadioGroup';
|
|
15
15
|
export { RHFNumberInput } from './RHFNumberInput/RHFNumberInput';
|
|
16
|
+
export { RHFUploadFile } from './RHFUpload/RHFUploadFile';
|
|
16
17
|
export * from './RHFUpload';
|
package/components/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export * from './modal';
|
|
|
29
29
|
export * from './LoadingError';
|
|
30
30
|
export * from './MFLoader';
|
|
31
31
|
export { NavLink } from './mui_extended/NavLink';
|
|
32
|
-
export * from './NoItemSelected
|
|
32
|
+
export * from './NoItemSelected';
|
|
33
33
|
export * from './ObjectLogs';
|
|
34
34
|
export * from './ObjectLogs/dictionary';
|
|
35
35
|
export * from './PaperForm/PaperForm';
|
package/index.js
CHANGED
|
@@ -35,17 +35,18 @@ import { R as R5 } from "./components/hook-form/RHFSelect/RHFSelect.js";
|
|
|
35
35
|
import { R as R6 } from "./components/hook-form/RHFHelperError/index.js";
|
|
36
36
|
import { R as R7 } from "./components/hook-form/RHFRadioGroup/RHFRadioGroup.js";
|
|
37
37
|
import { R as R8 } from "./components/hook-form/RHFNumberInput/RHFNumberInput.js";
|
|
38
|
-
import { R as R9 } from "./components/hook-form/
|
|
39
|
-
import { R as R10 } from "./components/hook-form/
|
|
40
|
-
import { R as R11 } from "./components/hook-form/
|
|
41
|
-
import { R as R12 } from "./components/hook-form/
|
|
38
|
+
import { R as R9 } from "./components/hook-form/RHFUpload/RHFUploadFile/index.js";
|
|
39
|
+
import { R as R10 } from "./components/hook-form/RHFColorPicker/RFHColorPicker.js";
|
|
40
|
+
import { R as R11 } from "./components/hook-form/RHFCheckbox/RHFCheckbox.js";
|
|
41
|
+
import { R as R12 } from "./components/hook-form/RHFTextField/RHFTextField.js";
|
|
42
|
+
import { R as R13 } from "./components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js";
|
|
42
43
|
import { g as g6 } from "./components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js";
|
|
43
44
|
import { r } from "./components/hook-form/RHFPeriod/RHFPeriod.styles.js";
|
|
44
|
-
import { R as
|
|
45
|
-
import { R as
|
|
46
|
-
import { R as
|
|
47
|
-
import { P as P2, R as
|
|
48
|
-
import { R as
|
|
45
|
+
import { R as R14 } from "./components/hook-form/RHFPeriod/RHFPeriod.js";
|
|
46
|
+
import { R as R15 } from "./components/hook-form/RHFPeriod/constants.js";
|
|
47
|
+
import { R as R16 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js";
|
|
48
|
+
import { P as P2, R as R17, S as S2, T as T2 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
|
|
49
|
+
import { R as R18 } from "./components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js";
|
|
49
50
|
import { B } from "./components/formatters/BooleanFormatter/BooleanFormatter.js";
|
|
50
51
|
import { D as D2, u as u4 } from "./components/formatters/DateFormatter/DateFormatter.js";
|
|
51
52
|
import { U, g as g7 } from "./components/formatters/UncertaintyFormatter/UncertaintyFormatter.js";
|
|
@@ -78,7 +79,7 @@ import { D as D5, d, g as g13 } from "./components/CommonActions/dictionary.js";
|
|
|
78
79
|
import { D as D6 } from "./components/DragResizeWindow/DragResizeWindow.js";
|
|
79
80
|
import { d as d2 } from "./components/DragResizeWindow/classes/index.js";
|
|
80
81
|
import { G } from "./components/GridLayout/GridLayout.js";
|
|
81
|
-
import { R as
|
|
82
|
+
import { R as R19 } from "./components/GridLayout/subcomponents/Responsive/index.js";
|
|
82
83
|
import { c as c3, d as d3, e } from "./components/GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
83
84
|
import { i, k } from "./components/GridLayout/utils.js";
|
|
84
85
|
import { w } from "./components/GridLayout/subcomponents/withSizeProvider/index.js";
|
|
@@ -122,25 +123,26 @@ import { g as g19 } from "./components/LoadingError/dictionary.js";
|
|
|
122
123
|
import { M as M10 } from "./components/MFLoader/MFLoader.js";
|
|
123
124
|
import { g as g20 } from "./components/MFLoader/dictionary.js";
|
|
124
125
|
import { N as N3 } from "./components/NoItemSelected/NoItemSelected.js";
|
|
126
|
+
import { g as g21 } from "./components/NoItemSelected/dictionary.js";
|
|
125
127
|
import { O } from "./components/ObjectLogs/index.js";
|
|
126
|
-
import { d as d6, g as
|
|
128
|
+
import { d as d6, g as g22 } from "./components/ObjectLogs/dictionary.js";
|
|
127
129
|
import { P as P9 } from "./components/PaperForm/PaperForm.js";
|
|
128
130
|
import { P as P10 } from "./components/PDFViewer/PDFViewer.js";
|
|
129
131
|
import { H as H4 } from "./components/HelmetPage/index.js";
|
|
130
132
|
import { P as P11 } from "./components/PropertyValue/PropertyValue.js";
|
|
131
133
|
import { a as a9 } from "./components/MenuActions/dictionary.js";
|
|
132
134
|
import { a as a10, M as M11 } from "./components/MenuActions/MenuActions.js";
|
|
133
|
-
import { R as
|
|
134
|
-
import { R as
|
|
135
|
+
import { R as R20 } from "./components/extended/React-Resizable/Resizable/Resizable.js";
|
|
136
|
+
import { R as R21 } from "./components/extended/React-Resizable/ResizableBox/ResizableBox.js";
|
|
135
137
|
import { S as S4 } from "./components/ScrollBar/ScrollBar.js";
|
|
136
138
|
import { S as S5 } from "./components/extended/React-Splitter/SplitLayout/SplitLayout.js";
|
|
137
139
|
import { T as T4 } from "./components/ToastContainer/ToastContainer.js";
|
|
138
140
|
import { T as T5 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
|
|
139
141
|
import { S as S6 } from "./components/SideBar/SideBar.js";
|
|
140
142
|
import { A as A11 } from "./components/AppBar/AppBar.js";
|
|
141
|
-
import { g as
|
|
143
|
+
import { g as g23 } from "./components/AppBar/dictionary.js";
|
|
142
144
|
import { A as A12 } from "./components/AccountPopover/AccountPopover.js";
|
|
143
|
-
import { g as
|
|
145
|
+
import { g as g24 } from "./components/AccountPopover/dictionary.js";
|
|
144
146
|
import { u as u8 } from "./components/popups/components/PopupsProvider/hooks/usePopupsStore/index.js";
|
|
145
147
|
import { a as a11, P as P12 } from "./components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js";
|
|
146
148
|
import { P as P13 } from "./components/popups/components/PopupsViewer/PopupsViewer.js";
|
|
@@ -160,7 +162,7 @@ import { L as L9 } from "./components/mui_extended/LinearProgress/index.js";
|
|
|
160
162
|
import { L as L10 } from "./components/mui_extended/LinkWithRoute/index.js";
|
|
161
163
|
import { L as L11 } from "./components/mui_extended/LoadingButton/LoadingButton.js";
|
|
162
164
|
import { P as P14 } from "./components/Pager/Pager.js";
|
|
163
|
-
import { g as
|
|
165
|
+
import { g as g25 } from "./components/Pager/dicctionary.js";
|
|
164
166
|
import { T as T7 } from "./components/mui_extended/Tab/Tab.js";
|
|
165
167
|
import { T as T8 } from "./components/mui_extended/Tooltip/Tooltip.js";
|
|
166
168
|
import { I as I6 } from "./components/mui_extended/IconButton/IconButton.js";
|
|
@@ -185,16 +187,16 @@ import { T as T18 } from "./components/mui_extended/ToggleIconButton/constants.j
|
|
|
185
187
|
import { T as T19 } from "./components/mui_extended/ToggleIconButton/slots/ToggleIconButtonEnum.js";
|
|
186
188
|
import { T as T20 } from "./components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.js";
|
|
187
189
|
import { a as a13, D as D7, M as M13 } from "./components/areas/contexts/DynamicMFParmsContext/index.js";
|
|
188
|
-
import { F, R as
|
|
189
|
-
import { g as
|
|
190
|
+
import { F, R as R22, u as u9 } from "./components/hook-form/RHFormContext/index.js";
|
|
191
|
+
import { g as g26 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
190
192
|
import { u as u10 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
191
193
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
192
194
|
import { a as a14, M as M14 } from "./contexts/ModalContext/index.js";
|
|
193
|
-
import { a as a15, R as
|
|
195
|
+
import { a as a15, R as R23 } from "./contexts/RealTimeContext/RealTimeContext.js";
|
|
194
196
|
import { u as u11 } from "./hooks/useFormAddEdit/index.js";
|
|
195
197
|
import { u as u12 } from "./hooks/useModal/index.js";
|
|
196
198
|
import { u as u13 } from "./hooks/useTab/index.js";
|
|
197
|
-
import { g as
|
|
199
|
+
import { g as g27 } from "./hooks/useFormAddEdit/dictionary.js";
|
|
198
200
|
import { u as u14 } from "./hooks/useFormFocus/index.js";
|
|
199
201
|
import { u as u15 } from "./hooks/useInterval/index.js";
|
|
200
202
|
import { u as u16 } from "./hooks/useComponentSize/useComponentSize.js";
|
|
@@ -314,27 +316,28 @@ export {
|
|
|
314
316
|
P11 as PropertyValue,
|
|
315
317
|
R as RHFAutocomplete,
|
|
316
318
|
R2 as RHFAutocompleteAsync,
|
|
317
|
-
|
|
318
|
-
|
|
319
|
+
R11 as RHFCheckbox,
|
|
320
|
+
R10 as RHFColorPicker,
|
|
319
321
|
R3 as RHFDateTime,
|
|
320
322
|
R6 as RHFHelperError,
|
|
321
323
|
R4 as RHFMultiCheckbox,
|
|
322
324
|
R8 as RHFNumberInput,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
325
|
+
R14 as RHFPeriod,
|
|
326
|
+
R17 as RHFPeriodRootStyled,
|
|
327
|
+
R16 as RHFPeriodSlots,
|
|
326
328
|
R7 as RHFRadioGroup,
|
|
327
329
|
R5 as RHFSelect,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
R12 as RHFTextField,
|
|
331
|
+
R13 as RHFTextFieldPassword,
|
|
332
|
+
R9 as RHFUploadFile,
|
|
333
|
+
R18 as RHFUploadImage,
|
|
334
|
+
R15 as RHF_PERIOD_KEY_COMPONENT,
|
|
335
|
+
R22 as RHFormProvider,
|
|
333
336
|
a15 as RealTimeContext,
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
337
|
+
R23 as RealTimeProvider,
|
|
338
|
+
R20 as Resizable,
|
|
339
|
+
R21 as ResizableBox,
|
|
340
|
+
R19 as Responsive,
|
|
338
341
|
S4 as ScrollBar,
|
|
339
342
|
S as ScrollToTop,
|
|
340
343
|
S7 as SectionCommercial,
|
|
@@ -385,8 +388,8 @@ export {
|
|
|
385
388
|
d4 as defaultModalDialogDictionary,
|
|
386
389
|
d6 as defaultObjectLogDictionary,
|
|
387
390
|
d2 as draggableWindowClasses,
|
|
388
|
-
|
|
389
|
-
|
|
391
|
+
g24 as getAccountPopoverDictionary,
|
|
392
|
+
g23 as getAppBarDictionary,
|
|
390
393
|
b2 as getAreasComponentsDictionary,
|
|
391
394
|
g3 as getAreasDictionary,
|
|
392
395
|
g13 as getCommonActionsDictionary,
|
|
@@ -394,7 +397,7 @@ export {
|
|
|
394
397
|
g2 as getDataGridRowsFromSet,
|
|
395
398
|
g11 as getDistanceToNowFormatterComponentsDictionary,
|
|
396
399
|
a5 as getDynamicFilterComponentsDictionary,
|
|
397
|
-
|
|
400
|
+
g26 as getFormComponentsDictionary,
|
|
398
401
|
g9 as getFormatConcatenated,
|
|
399
402
|
u4 as getFormatDate,
|
|
400
403
|
g8 as getFormatPoints,
|
|
@@ -408,13 +411,14 @@ export {
|
|
|
408
411
|
a9 as getMenuActionsComponentsDictionary,
|
|
409
412
|
g18 as getModalDialogComponentsDictionary,
|
|
410
413
|
g17 as getModalDictionary,
|
|
411
|
-
g21 as
|
|
412
|
-
|
|
414
|
+
g21 as getNoItemSelectedComponentsDictionary,
|
|
415
|
+
g22 as getObjectLogsComponentsDictionary,
|
|
416
|
+
g25 as getPagerComponentsDictionary,
|
|
413
417
|
g6 as getPeriodComponetsDictionary,
|
|
414
418
|
g5 as getRHFAutocompleteAsyncComponentsDictionary,
|
|
415
419
|
g4 as getRHFAutocompleteComponentsDictionary,
|
|
416
420
|
g7 as getUncertaintyFormat,
|
|
417
|
-
|
|
421
|
+
g27 as getformAddEditDictionary,
|
|
418
422
|
i as isEqualLayout,
|
|
419
423
|
k as isEqualLayouts,
|
|
420
424
|
i2 as isFeature,
|