@m4l/components 0.0.12 → 0.0.15
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/dist/commonjs.js +1 -1
- package/dist/components/CompanyLogo/index.d.ts +3 -0
- package/dist/components/CompanyLogo/index.js +83 -0
- package/dist/components/CompanyLogo/styles.d.ts +5 -0
- package/dist/components/CompanyLogo/types.d.ts +6 -0
- package/dist/components/DataGrid/index.js +1 -1
- package/dist/components/Image/index.d.ts +3 -0
- package/dist/components/Image/index.js +115 -0
- package/dist/components/Image/styles.d.ts +5 -0
- package/dist/components/Image/types.d.ts +19 -0
- package/dist/components/LanguagePopover/index.d.ts +3 -0
- package/dist/components/LanguagePopover/index.js +43 -0
- package/dist/components/LanguagePopover/types.d.ts +3 -0
- package/dist/components/Loadable/index.d.ts +2 -0
- package/dist/components/Loadable/index.js +13 -0
- package/dist/components/ModalDialog/index.js +1 -1
- package/dist/components/PaperForm/index.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/mui_extended/LinkWithRoute/index.d.ts +3 -0
- package/dist/components/mui_extended/LinkWithRoute/index.js +30 -0
- package/dist/components/mui_extended/LinkWithRoute/types.d.ts +11 -0
- package/dist/components/mui_extended/MenuActions/styles.d.ts +2 -2
- package/dist/components/mui_extended/Typography/index.d.ts +3 -0
- package/dist/components/mui_extended/Typography/index.js +21 -0
- package/dist/components/mui_extended/Typography/types.d.ts +9 -0
- package/dist/components/mui_extended/index.d.ts +3 -1
- package/dist/index.js +40 -35
- package/dist/react-lazy-load-image-component.js +769 -0
- package/dist/style.css +1 -0
- package/package.json +9 -1
- package/dist/hooks/useResponsive.d.ts +0 -8
- package/dist/vendor.js +0 -71
package/dist/commonjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import "prop-types";
|
|
3
2
|
import "react-dom";
|
|
3
|
+
import "prop-types";
|
|
4
4
|
import "clsx";
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6
6
|
function getDefaultExportFromCjs(x) {
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { useEnvironment } from "@m4l/core";
|
|
2
|
+
import { useResponsive } from "@m4l/graphics";
|
|
3
|
+
import { Skeleton } from "@mui/material";
|
|
4
|
+
import { styled } from "@mui/material/styles";
|
|
5
|
+
import { I as Image } from "../Image/index.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
styled("div")(({
|
|
8
|
+
theme
|
|
9
|
+
}) => ({
|
|
10
|
+
[theme.breakpoints.up("md")]: {
|
|
11
|
+
display: "flex"
|
|
12
|
+
}
|
|
13
|
+
}));
|
|
14
|
+
styled("header")(({
|
|
15
|
+
theme
|
|
16
|
+
}) => ({
|
|
17
|
+
top: 0,
|
|
18
|
+
zIndex: 9,
|
|
19
|
+
lineHeight: 0,
|
|
20
|
+
width: "100%",
|
|
21
|
+
display: "flex",
|
|
22
|
+
alignItems: "center",
|
|
23
|
+
position: "absolute",
|
|
24
|
+
padding: theme.spacing(3),
|
|
25
|
+
justifyContent: "space-between",
|
|
26
|
+
[theme.breakpoints.up("md")]: {
|
|
27
|
+
alignItems: "flex-start",
|
|
28
|
+
padding: theme.spacing(7, 5, 0, 7)
|
|
29
|
+
}
|
|
30
|
+
}));
|
|
31
|
+
styled("div")(({
|
|
32
|
+
theme
|
|
33
|
+
}) => ({
|
|
34
|
+
maxWidth: 480,
|
|
35
|
+
margin: "auto",
|
|
36
|
+
display: "flex",
|
|
37
|
+
minHeight: "100vh",
|
|
38
|
+
flexDirection: "column",
|
|
39
|
+
justifyContent: "center",
|
|
40
|
+
padding: theme.spacing(12, 0)
|
|
41
|
+
}));
|
|
42
|
+
const SKTCompanyLogoMask = styled("div")(({
|
|
43
|
+
theme
|
|
44
|
+
}) => ({
|
|
45
|
+
mask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`,
|
|
46
|
+
WebkitMask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`,
|
|
47
|
+
[theme.breakpoints.up("md")]: {
|
|
48
|
+
mask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 394.6 97' style='enable-background:new 0 0 394.6 97%3B' xml:space='preserve'%3E%3Cpath d='M54.2 35.1c2.2 0 4.3-0.8 5.8-2.3c1.6-1.5 2.5-3.7 2.6-6c-0.1-2.3-1-4.4-2.6-6c-1.6-1.5-3.7-2.4-5.8-2.4c-2.2 0-4.2 0.8-5.8 2.4c-1.5 1.6-2.5 3.7-2.6 6c0.1 2.3 1 4.4 2.6 6C50 34.3 52 35.2 54.2 35.1z'/%3E%3Cpath d='M58 49.6c-0.3-0.5-0.8-0.9-1.3-1.2C56.2 48.1 55.6 48 55 48s-1.3 0.1-1.8 0.4c-0.5 0.3-1 0.7-1.3 1.2l-3.3 5.2c-0.2 0.4-0.5 0.6-0.8 0.8c-0.3 0.2-0.7 0.3-1.1 0.3c-0.4 0-0.8-0.1-1.1-0.3c-0.3-0.2-0.6-0.5-0.8-0.8L32.7 35.5c-0.3-0.5-0.8-0.9-1.3-1.2s-1.1-0.4-1.7-0.4c-0.6 0-1.2 0.1-1.7 0.4s-1 0.7-1.3 1.2L2.5 74C2.2 74.5 2 75 2 75.6c0 0.6 0.2 1.1 0.5 1.6s0.8 0.9 1.3 1.2c0.5 0.3 1.1 0.4 1.7 0.4h64.9c0.6 0 1.2-0.2 1.7-0.4c0.5-0.3 1-0.7 1.3-1.2c0.3-0.5 0.5-1 0.5-1.6c0-0.6-0.2-1.1-0.5-1.6L58 49.6z'/%3E%3Cpath d='M386.6 41.8H107.5c-3.1 0-5.6 2.5-5.6 5.6v9c0 3.1 2.5 5.6 5.6 5.6h279.1c3.1 0 5.6-2.5 5.6-5.6v-9C392.2 44.3 389.7 41.8 386.6 41.8z'/%3E%3C/svg%3E") no-repeat center / contain`,
|
|
49
|
+
WebkitMask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 394.6 97' style='enable-background:new 0 0 394.6 97%3B' xml:space='preserve'%3E%3Cpath d='M54.2 35.1c2.2 0 4.3-0.8 5.8-2.3c1.6-1.5 2.5-3.7 2.6-6c-0.1-2.3-1-4.4-2.6-6c-1.6-1.5-3.7-2.4-5.8-2.4c-2.2 0-4.2 0.8-5.8 2.4c-1.5 1.6-2.5 3.7-2.6 6c0.1 2.3 1 4.4 2.6 6C50 34.3 52 35.2 54.2 35.1z'/%3E%3Cpath d='M58 49.6c-0.3-0.5-0.8-0.9-1.3-1.2C56.2 48.1 55.6 48 55 48s-1.3 0.1-1.8 0.4c-0.5 0.3-1 0.7-1.3 1.2l-3.3 5.2c-0.2 0.4-0.5 0.6-0.8 0.8c-0.3 0.2-0.7 0.3-1.1 0.3c-0.4 0-0.8-0.1-1.1-0.3c-0.3-0.2-0.6-0.5-0.8-0.8L32.7 35.5c-0.3-0.5-0.8-0.9-1.3-1.2s-1.1-0.4-1.7-0.4c-0.6 0-1.2 0.1-1.7 0.4s-1 0.7-1.3 1.2L2.5 74C2.2 74.5 2 75 2 75.6c0 0.6 0.2 1.1 0.5 1.6s0.8 0.9 1.3 1.2c0.5 0.3 1.1 0.4 1.7 0.4h64.9c0.6 0 1.2-0.2 1.7-0.4c0.5-0.3 1-0.7 1.3-1.2c0.3-0.5 0.5-1 0.5-1.6c0-0.6-0.2-1.1-0.5-1.6L58 49.6z'/%3E%3Cpath d='M386.6 41.8H107.5c-3.1 0-5.6 2.5-5.6 5.6v9c0 3.1 2.5 5.6 5.6 5.6h279.1c3.1 0 5.6-2.5 5.6-5.6v-9C392.2 44.3 389.7 41.8 386.6 41.8z'/%3E%3C/svg%3E") no-repeat center / contain`
|
|
50
|
+
}
|
|
51
|
+
}));
|
|
52
|
+
const CompanyLogo = (props) => {
|
|
53
|
+
const {
|
|
54
|
+
size = "small",
|
|
55
|
+
isSkeleton,
|
|
56
|
+
...other
|
|
57
|
+
} = props;
|
|
58
|
+
const height = size === "small" ? "50px" : "auto";
|
|
59
|
+
const width = size === "small" ? "50px" : "380px";
|
|
60
|
+
const {
|
|
61
|
+
host_static_assets,
|
|
62
|
+
environment
|
|
63
|
+
} = useEnvironment();
|
|
64
|
+
const mdUp = useResponsive("up", "md");
|
|
65
|
+
console.log("CompanyLogoSkeleton", isSkeleton);
|
|
66
|
+
if (isSkeleton) {
|
|
67
|
+
return /* @__PURE__ */ jsx(SKTCompanyLogoMask, {
|
|
68
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
69
|
+
variant: "rectangular",
|
|
70
|
+
width: mdUp ? 380 : 50,
|
|
71
|
+
height: mdUp ? 97 : 50
|
|
72
|
+
})
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return /* @__PURE__ */ jsx(Image, {
|
|
76
|
+
src: `${host_static_assets}/${environment}/frontend/commons/assets/icons/${size === "small" ? "isotipo_m4l.svg" : "logotipo_m4l.svg"}`,
|
|
77
|
+
effect: "opacity",
|
|
78
|
+
width,
|
|
79
|
+
height,
|
|
80
|
+
...other
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
export { CompanyLogo as C };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RootStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const HeaderStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
4
|
+
export declare const ContentStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const SKTCompanyLogoMask: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -10,7 +10,7 @@ import { M as MenuActions } from "../mui_extended/MenuActions/index.js";
|
|
|
10
10
|
import { P as Pager, g as getPagerComponentsDictionary, d as defaultPagerDictionary } from "../mui_extended/Pager/index.js";
|
|
11
11
|
import { I as IconButton } from "../mui_extended/IconButton/index.js";
|
|
12
12
|
import { u as useModal } from "../../hooks/useModal/index.js";
|
|
13
|
-
import {
|
|
13
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
14
|
import "date-fns";
|
|
15
15
|
import { g as getModalDialogComponentsDictionary, d as defaultModalDialogDictionary } from "../ModalDialog/index.js";
|
|
16
16
|
const WrapperGrid$1 = styled("div")(() => ({
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { b as build } from "../../react-lazy-load-image-component.js";
|
|
2
|
+
import { Skeleton, Box } from "@mui/material";
|
|
3
|
+
import { styled, useTheme } from "@mui/material/styles";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
const SKTWrapperImage = styled("div")(({
|
|
6
|
+
theme,
|
|
7
|
+
width
|
|
8
|
+
}) => ({
|
|
9
|
+
width,
|
|
10
|
+
height: "100%",
|
|
11
|
+
padding: theme.spacing(3),
|
|
12
|
+
mask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`,
|
|
13
|
+
WebkitMask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`
|
|
14
|
+
}));
|
|
15
|
+
const WrapperLazyLoadImage = styled("div")(({
|
|
16
|
+
width,
|
|
17
|
+
height
|
|
18
|
+
}) => ({
|
|
19
|
+
width,
|
|
20
|
+
height,
|
|
21
|
+
lineHeight: 0,
|
|
22
|
+
display: "block",
|
|
23
|
+
overflow: "hidden",
|
|
24
|
+
"& > span": {
|
|
25
|
+
width: "100%",
|
|
26
|
+
height: "100%"
|
|
27
|
+
},
|
|
28
|
+
"& .LazyLoadImage": {
|
|
29
|
+
width: "100%",
|
|
30
|
+
height: "100%",
|
|
31
|
+
objectFit: "contain"
|
|
32
|
+
}
|
|
33
|
+
}));
|
|
34
|
+
function Image({
|
|
35
|
+
ratio,
|
|
36
|
+
sx,
|
|
37
|
+
isSekeleton = false,
|
|
38
|
+
width,
|
|
39
|
+
height,
|
|
40
|
+
src,
|
|
41
|
+
...other
|
|
42
|
+
}) {
|
|
43
|
+
console.log("ImageSkeleton", isSekeleton);
|
|
44
|
+
const theme = useTheme();
|
|
45
|
+
const themeMode = theme.palette.mode;
|
|
46
|
+
if (isSekeleton) {
|
|
47
|
+
return /* @__PURE__ */ jsx(SKTWrapperImage, {
|
|
48
|
+
width,
|
|
49
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
50
|
+
variant: "rectangular",
|
|
51
|
+
width: "100%",
|
|
52
|
+
height: "100%"
|
|
53
|
+
})
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
if (ratio) {
|
|
57
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
58
|
+
component: "span",
|
|
59
|
+
sx: {
|
|
60
|
+
width: 1,
|
|
61
|
+
lineHeight: 0,
|
|
62
|
+
display: "block",
|
|
63
|
+
overflow: "hidden",
|
|
64
|
+
position: "relative",
|
|
65
|
+
pt: getRatio(ratio),
|
|
66
|
+
"& .wrapper": {
|
|
67
|
+
top: 0,
|
|
68
|
+
left: 0,
|
|
69
|
+
right: 0,
|
|
70
|
+
bottom: 0,
|
|
71
|
+
lineHeight: 0,
|
|
72
|
+
position: "absolute",
|
|
73
|
+
backgroundSize: "cover !important"
|
|
74
|
+
},
|
|
75
|
+
...sx
|
|
76
|
+
},
|
|
77
|
+
children: /* @__PURE__ */ jsx(WrapperLazyLoadImage, {
|
|
78
|
+
width,
|
|
79
|
+
height,
|
|
80
|
+
id: "WrapperLazyLoadImage",
|
|
81
|
+
children: /* @__PURE__ */ jsx(build.exports.LazyLoadImage, {
|
|
82
|
+
className: "LazyLoadImage",
|
|
83
|
+
src,
|
|
84
|
+
placeholderSrc: themeMode === "light" ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy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LjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==",
|
|
85
|
+
...other
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return /* @__PURE__ */ jsx(WrapperLazyLoadImage, {
|
|
91
|
+
width,
|
|
92
|
+
height,
|
|
93
|
+
id: "WrapperLazyLoadImage",
|
|
94
|
+
children: /* @__PURE__ */ jsx(build.exports.LazyLoadImage, {
|
|
95
|
+
className: "LazyLoadImage",
|
|
96
|
+
src,
|
|
97
|
+
placeholderSrc: themeMode === "light" ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwz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TQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==",
|
|
98
|
+
...other
|
|
99
|
+
})
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function getRatio(ratio = "1/1") {
|
|
103
|
+
return {
|
|
104
|
+
"4/3": "calc(100% / 4 * 3)",
|
|
105
|
+
"3/4": "calc(100% / 3 * 4)",
|
|
106
|
+
"6/4": "calc(100% / 6 * 4)",
|
|
107
|
+
"4/6": "calc(100% / 4 * 6)",
|
|
108
|
+
"16/9": "calc(100% / 16 * 9)",
|
|
109
|
+
"9/16": "calc(100% / 9 * 16)",
|
|
110
|
+
"21/9": "calc(100% / 21 * 9)",
|
|
111
|
+
"9/21": "calc(100% / 9 * 21)",
|
|
112
|
+
"1/1": "100%"
|
|
113
|
+
}[ratio];
|
|
114
|
+
}
|
|
115
|
+
export { Image as I };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { styleProps } from './types';
|
|
3
|
+
import { WrapperLazyLoadImageProps } from './types';
|
|
4
|
+
export declare const SKTWrapperImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & styleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const WrapperLazyLoadImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & WrapperLazyLoadImageProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LazyLoadImageProps } from 'react-lazy-load-image-component';
|
|
2
|
+
import { BoxProps, SxProps } from '@mui/material';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
export declare type ImageRato = '4/3' | '3/4' | '6/4' | '4/6' | '16/9' | '9/16' | '21/9' | '9/21' | '1/1';
|
|
5
|
+
export declare type IProps = BoxProps & LazyLoadImageProps;
|
|
6
|
+
export interface Props extends IProps {
|
|
7
|
+
sx?: SxProps<Theme>;
|
|
8
|
+
ratio?: ImageRato;
|
|
9
|
+
isSekeleton?: boolean;
|
|
10
|
+
width?: string;
|
|
11
|
+
height?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface styleProps {
|
|
14
|
+
width?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface WrapperLazyLoadImageProps {
|
|
17
|
+
width?: string | number;
|
|
18
|
+
height?: string | number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { Skeleton, IconButton } from "@mui/material";
|
|
3
|
+
import { I as Image } from "../Image/index.js";
|
|
4
|
+
import { useLocales } from "@m4l/graphics";
|
|
5
|
+
import { jsx, Fragment } from "react/jsx-runtime";
|
|
6
|
+
function LanguagePopover(props) {
|
|
7
|
+
const {
|
|
8
|
+
isSkeleton
|
|
9
|
+
} = props;
|
|
10
|
+
const {
|
|
11
|
+
allLang,
|
|
12
|
+
currentLang,
|
|
13
|
+
onChangeLang
|
|
14
|
+
} = useLocales();
|
|
15
|
+
const [open, setOpen] = useState(null);
|
|
16
|
+
const handleOpen = (event) => {
|
|
17
|
+
setOpen(event.currentTarget);
|
|
18
|
+
};
|
|
19
|
+
if (isSkeleton) {
|
|
20
|
+
return /* @__PURE__ */ jsx(Skeleton, {
|
|
21
|
+
variant: "circular",
|
|
22
|
+
width: 20,
|
|
23
|
+
height: 20
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return /* @__PURE__ */ jsx(Fragment, {
|
|
27
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
28
|
+
onClick: handleOpen,
|
|
29
|
+
sx: {
|
|
30
|
+
width: 40,
|
|
31
|
+
height: 40,
|
|
32
|
+
...open && {
|
|
33
|
+
bgcolor: "action.selected"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
children: /* @__PURE__ */ jsx(Image, {
|
|
37
|
+
src: currentLang.icon,
|
|
38
|
+
alt: currentLang.label
|
|
39
|
+
})
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export { LanguagePopover as L };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Suspense } from "react";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
const Loadable = (Component) => function EmbededLoadable(props) {
|
|
4
|
+
return /* @__PURE__ */ jsx(Suspense, {
|
|
5
|
+
fallback: /* @__PURE__ */ jsx("div", {
|
|
6
|
+
children: "Cargando"
|
|
7
|
+
}),
|
|
8
|
+
children: /* @__PURE__ */ jsx(Component, {
|
|
9
|
+
...props
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export { Loadable as L };
|
|
@@ -3,7 +3,7 @@ import { D as Draggable } from "../../react-draggable.js";
|
|
|
3
3
|
import { u as useModal } from "../../hooks/useModal/index.js";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
5
|
import { R as Resizeable } from "../Resizeable/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
8
|
import { B as BoxIcon } from "../mui_extended/BoxIcon/index.js";
|
|
9
9
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled, useTheme } from "@mui/material/styles";
|
|
2
2
|
import { Skeleton } from "@mui/material";
|
|
3
3
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
-
import { BoxIcon } from "
|
|
4
|
+
import { B as BoxIcon } from "../mui_extended/BoxIcon/index.js";
|
|
5
5
|
const WrapperPaper = styled("div")(({
|
|
6
6
|
theme
|
|
7
7
|
}) => ({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from '../components/CompanyLogo';
|
|
1
2
|
export { DataGrid } from '../components/DataGrid';
|
|
2
3
|
export { DateFormatter, BooleanFormatter } from '../components/DataGrid/formatters';
|
|
3
4
|
export type { Column } from 'react-data-grid';
|
|
@@ -6,6 +7,9 @@ export { getGridComponentsDictionary } from '../components/DataGrid/dictionary';
|
|
|
6
7
|
export * from '../components/FormActions';
|
|
7
8
|
export * from '../components/FormActions/dictionary';
|
|
8
9
|
export * from '../components/hook-form';
|
|
10
|
+
export * from '../components/Image';
|
|
11
|
+
export * from '../components/LanguagePopover';
|
|
12
|
+
export * from '../components/Loadable';
|
|
9
13
|
export * from '../components/ModalDialog';
|
|
10
14
|
export * from '../components/ModalDialog/dictionary';
|
|
11
15
|
export * from '../components/NoItemSelected';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Link as Link$1 } from "react-router-dom";
|
|
2
|
+
import { Skeleton, Link } from "@mui/material";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
const LinkWithRoute = (props) => {
|
|
5
|
+
const {
|
|
6
|
+
to,
|
|
7
|
+
children,
|
|
8
|
+
skeletonProps = {},
|
|
9
|
+
...other
|
|
10
|
+
} = props;
|
|
11
|
+
const {
|
|
12
|
+
isSkeleton = false,
|
|
13
|
+
width = "100%",
|
|
14
|
+
height = "14px"
|
|
15
|
+
} = skeletonProps;
|
|
16
|
+
if (isSkeleton) {
|
|
17
|
+
return /* @__PURE__ */ jsx(Skeleton, {
|
|
18
|
+
variant: "text",
|
|
19
|
+
width,
|
|
20
|
+
height
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
24
|
+
component: Link$1,
|
|
25
|
+
to,
|
|
26
|
+
...other,
|
|
27
|
+
children
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export { LinkWithRoute as L };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LinkProps as MuiLinkProps } from '@mui/material';
|
|
2
|
+
import { To } from 'history';
|
|
3
|
+
export interface SkeletonProps {
|
|
4
|
+
isSkeleton?: boolean;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
height?: string | number;
|
|
7
|
+
}
|
|
8
|
+
export interface LinkWithRouteProps extends MuiLinkProps {
|
|
9
|
+
to: To;
|
|
10
|
+
skeletonProps: SkeletonProps;
|
|
11
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const WrapperMenuActions: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
children?: import("react").ReactNode;
|
|
4
4
|
classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
|
|
5
|
-
color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" |
|
|
5
|
+
color?: "inherit" | "default" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
disableFocusRipple?: boolean | undefined;
|
|
8
8
|
edge?: false | "end" | "start" | undefined;
|
|
@@ -26,5 +26,5 @@ export declare const WrapperMenuActions: import("@emotion/styled").StyledCompone
|
|
|
26
26
|
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
27
27
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
28
28
|
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
29
|
-
}, "
|
|
29
|
+
}, "size" | "color" | "sx" | "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
30
30
|
export declare const LabelMemuItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Skeleton, Typography as Typography$1 } from "@mui/material";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
function Typography(props) {
|
|
4
|
+
const {
|
|
5
|
+
skeletonProps = {},
|
|
6
|
+
...other
|
|
7
|
+
} = props;
|
|
8
|
+
const {
|
|
9
|
+
isSkeleton = "false",
|
|
10
|
+
width = "100%",
|
|
11
|
+
height = "14px"
|
|
12
|
+
} = skeletonProps;
|
|
13
|
+
return isSkeleton ? /* @__PURE__ */ jsx(Skeleton, {
|
|
14
|
+
variant: "text",
|
|
15
|
+
width,
|
|
16
|
+
height
|
|
17
|
+
}) : /* @__PURE__ */ jsx(Typography$1, {
|
|
18
|
+
...other
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export { Typography as T };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TypographyProps as MUITypographyProps } from '@mui/material';
|
|
2
|
+
export interface SkeletonProps {
|
|
3
|
+
isSkeleton?: boolean;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
height?: string | number;
|
|
6
|
+
}
|
|
7
|
+
export interface TypographyProps extends MUITypographyProps {
|
|
8
|
+
skeletonProps?: SkeletonProps;
|
|
9
|
+
}
|
|
@@ -3,13 +3,15 @@ export { BoxIcon } from './BoxIcon';
|
|
|
3
3
|
export { Breadcrumbs } from './Breadcrumbs';
|
|
4
4
|
export type { TLink } from './Breadcrumbs/types';
|
|
5
5
|
export { IconButton } from './IconButton';
|
|
6
|
+
export { LinkWithRoute } from './LinkWithRoute';
|
|
6
7
|
export { MenuActions } from './MenuActions';
|
|
7
8
|
export type { MenuAction, ComponentActionProps } from './MenuActions/types';
|
|
8
9
|
export { MenuPopover } from './MenuPopover';
|
|
9
10
|
export { Pager } from './Pager';
|
|
10
11
|
export type { PagerProps } from './Pager/types';
|
|
11
|
-
export { Tab } from './Tab';
|
|
12
12
|
export { getPagerComponentsDictionary } from './Pager/dicctionary';
|
|
13
|
+
export { Tab } from './Tab';
|
|
14
|
+
export { Typography } from './Typography';
|
|
13
15
|
declare module '@mui/material/styles/createPalette' {
|
|
14
16
|
interface TypeBackground {
|
|
15
17
|
neutral: string;
|
package/dist/index.js
CHANGED
|
@@ -1,58 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { D as DateFormatter } from "./components/DataGrid/formatters/DateFormatter/index.js";
|
|
4
|
-
export { F as FormActions, d as defaultActionsDictionary, g as getActionnsComponentsDictionary } from "./components/FormActions/index.js";
|
|
1
|
+
import "react";
|
|
2
|
+
import "react-hook-form";
|
|
5
3
|
export { F as FormProvider } from "./components/hook-form/FormProvider/index.js";
|
|
4
|
+
import "react-router-dom";
|
|
5
|
+
import "@m4l/core";
|
|
6
|
+
import "@mui/lab";
|
|
7
|
+
import "@mui/material";
|
|
8
|
+
export { M as ModalContext, a as ModalProvider } from "./contexts/ModalContext/index.js";
|
|
9
|
+
import "react/jsx-runtime";
|
|
6
10
|
export { R as RHFAutocompleteAsync } from "./components/hook-form/RHFAutocompleteAsync/index.js";
|
|
7
11
|
export { R as RHFCheckbox } from "./components/hook-form/RHFCheckbox/index.js";
|
|
8
|
-
export { R as RHFMultiCheckbox } from "./components/hook-form/RHFMultiCheckbox/index.js";
|
|
9
|
-
export { R as RHFSelect } from "./components/hook-form/RHFSelect.js";
|
|
10
12
|
export { R as RHFTextField } from "./components/hook-form/RHFTextField/index.js";
|
|
11
|
-
export {
|
|
13
|
+
export { M as MenuPopover } from "./components/mui_extended/MenuPopover/index.js";
|
|
14
|
+
export { M as MenuActions } from "./components/mui_extended/MenuActions/index.js";
|
|
15
|
+
export { P as Pager, g as getPagerComponentsDictionary } from "./components/mui_extended/Pager/index.js";
|
|
16
|
+
export { T as Tab } from "./components/mui_extended/Tab/index.js";
|
|
17
|
+
import "@m4l/graphics";
|
|
18
|
+
export { C as CompanyLogo } from "./components/CompanyLogo/index.js";
|
|
19
|
+
import "./react-lazy-load-image-component.js";
|
|
20
|
+
import "@mui/material/styles";
|
|
21
|
+
export { I as Image } from "./components/Image/index.js";
|
|
22
|
+
export { D as DataGrid, g as getGridComponentsDictionary } from "./components/DataGrid/index.js";
|
|
23
|
+
import "react-dnd";
|
|
24
|
+
import "react-dnd-html5-backend";
|
|
25
|
+
import "date-fns";
|
|
26
|
+
export { F as FormActions, d as defaultActionsDictionary, g as getActionnsComponentsDictionary } from "./components/FormActions/index.js";
|
|
27
|
+
import "./react-draggable.js";
|
|
12
28
|
export { M as ModalDialog, d as defaultModalDialogDictionary, g as getModalDialogComponentsDictionary } from "./components/ModalDialog/index.js";
|
|
29
|
+
export { R as Resizeable } from "./components/Resizeable/index.js";
|
|
13
30
|
export { N as NoItemSelected, d as defaultNoItemSelectedDictionary, g as getNoItemSelectedComponentsDictionary } from "./components/NoItemSelected/index.js";
|
|
31
|
+
import "@mui/x-date-pickers";
|
|
32
|
+
import "@mui/lab/AdapterDateFns";
|
|
14
33
|
export { O as ObjectLogs, d as defaultObjectLogDictionary, g as getObjectLogsComponentsDictionary } from "./components/ObjectLogs/index.js";
|
|
34
|
+
import "./react-json-view.js";
|
|
15
35
|
export { P as PaperForm } from "./components/PaperForm/index.js";
|
|
16
36
|
export { P as PropertyValue } from "./components/PropertyValue/index.js";
|
|
17
|
-
export { R as Resizeable } from "./components/Resizeable/index.js";
|
|
18
37
|
export { S as ScrollBar } from "./components/ScrollBar/index.js";
|
|
38
|
+
import "./react-splitter-layout.js";
|
|
19
39
|
export { S as SplitLayout } from "./components/SplitLayout/index.js";
|
|
40
|
+
export { B as BooleanFormatter } from "./components/DataGrid/formatters/BooleanFormatter/index.js";
|
|
41
|
+
export { D as DateFormatter } from "./components/DataGrid/formatters/DateFormatter/index.js";
|
|
42
|
+
export { R as RHFMultiCheckbox } from "./components/hook-form/RHFMultiCheckbox/index.js";
|
|
43
|
+
export { R as RHFSelect } from "./components/hook-form/RHFSelect.js";
|
|
44
|
+
export { R as RHFRadioGroup } from "./components/hook-form/RHFRadioGroup.js";
|
|
45
|
+
export { L as LanguagePopover } from "./components/LanguagePopover/index.js";
|
|
46
|
+
export { L as Loadable } from "./components/Loadable/index.js";
|
|
20
47
|
export { A as Accordion } from "./components/mui_extended/Accordion/index.js";
|
|
21
48
|
export { B as BoxIcon } from "./components/mui_extended/BoxIcon/index.js";
|
|
22
49
|
export { B as Breadcrumbs } from "./components/mui_extended/Breadcrumbs/index.js";
|
|
23
50
|
export { I as IconButton } from "./components/mui_extended/IconButton/index.js";
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export { P as Pager, g as getPagerComponentsDictionary } from "./components/mui_extended/Pager/index.js";
|
|
27
|
-
export { T as Tab } from "./components/mui_extended/Tab/index.js";
|
|
28
|
-
export { M as ModalContext, a as ModalProvider } from "./contexts/ModalContext/index.js";
|
|
51
|
+
export { L as LinkWithRoute } from "./components/mui_extended/LinkWithRoute/index.js";
|
|
52
|
+
export { T as Typography } from "./components/mui_extended/Typography/index.js";
|
|
29
53
|
export { u as useModal } from "./hooks/useModal/index.js";
|
|
30
|
-
import "
|
|
31
|
-
import "react";
|
|
54
|
+
import "./node_modules.js";
|
|
55
|
+
import "react-dom";
|
|
32
56
|
import "./react-data-grid.js";
|
|
33
57
|
import "clsx";
|
|
34
|
-
import "react/jsx-runtime";
|
|
35
|
-
import "react-dnd";
|
|
36
|
-
import "react-dnd-html5-backend";
|
|
37
|
-
import "@mui/material";
|
|
38
|
-
import "@m4l/core";
|
|
39
|
-
import "./vendor.js";
|
|
40
|
-
import "@mui/material/useMediaQuery";
|
|
41
|
-
import "react-hook-form";
|
|
42
|
-
import "react-router-dom";
|
|
43
|
-
import "@mui/lab";
|
|
44
|
-
import "date-fns";
|
|
45
|
-
import "./react-draggable.js";
|
|
46
58
|
import "prop-types";
|
|
47
|
-
import "react-dom";
|
|
48
|
-
import "@mui/x-date-pickers";
|
|
49
|
-
import "@mui/lab/AdapterDateFns";
|
|
50
|
-
import "./react-json-view.js";
|
|
51
|
-
import "./commonjs.js";
|
|
52
|
-
import "@mui_extended/BoxIcon";
|
|
53
|
-
import "./react-splitter-layout.js";
|
|
54
|
-
import "./node_modules.js";
|
|
55
59
|
import "./react-resizable.js";
|
|
60
|
+
import "./commonjs.js";
|
|
56
61
|
import "./simplebar.js";
|
|
57
62
|
import "./core-js.js";
|
|
58
63
|
import "./lodash.js";
|