@m4l/components 0.0.11 → 0.0.14

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.
Files changed (35) hide show
  1. package/dist/commonjs.js +1 -1
  2. package/dist/components/CompanyLogo/index.d.ts +3 -0
  3. package/dist/components/CompanyLogo/index.js +83 -0
  4. package/dist/components/CompanyLogo/styles.d.ts +5 -0
  5. package/dist/components/CompanyLogo/types.d.ts +6 -0
  6. package/dist/components/DataGrid/index.js +2 -7
  7. package/dist/components/Image/index.d.ts +3 -0
  8. package/dist/components/Image/index.js +115 -0
  9. package/dist/components/Image/styles.d.ts +5 -0
  10. package/dist/components/Image/types.d.ts +19 -0
  11. package/dist/components/LanguagePopover/index.d.ts +3 -0
  12. package/dist/components/LanguagePopover/index.js +7 -0
  13. package/dist/components/LanguagePopover/types.d.ts +3 -0
  14. package/dist/components/Loadable/index.d.ts +2 -0
  15. package/dist/components/Loadable/index.js +13 -0
  16. package/dist/components/ModalDialog/index.js +1 -1
  17. package/dist/components/ObjectLogs/index.js +1 -2
  18. package/dist/components/PaperForm/index.js +1 -1
  19. package/dist/components/index.d.ts +4 -0
  20. package/dist/components/mui_extended/LinkWithRoute/index.d.ts +3 -0
  21. package/dist/components/mui_extended/LinkWithRoute/index.js +30 -0
  22. package/dist/components/mui_extended/LinkWithRoute/types.d.ts +11 -0
  23. package/dist/components/mui_extended/MenuActions/styles.d.ts +2 -2
  24. package/dist/components/mui_extended/Typography/index.d.ts +3 -0
  25. package/dist/components/mui_extended/Typography/index.js +21 -0
  26. package/dist/components/mui_extended/Typography/types.d.ts +9 -0
  27. package/dist/components/mui_extended/index.d.ts +3 -1
  28. package/dist/core-js.js +7 -4
  29. package/dist/index.js +39 -35
  30. package/dist/react-lazy-load-image-component.js +769 -0
  31. package/dist/style.css +1 -0
  32. package/package.json +15 -9
  33. package/dist/hooks/usePaginate.d.ts +0 -15
  34. package/dist/hooks/useResponsive.d.ts +0 -8
  35. package/dist/vendor.js +0 -134
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,3 @@
1
+ /// <reference types="react" />
2
+ import { CompanyLogoProps } from './types';
3
+ export declare const CompanyLogo: (props: CompanyLogoProps) => JSX.Element;
@@ -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>, {}>;
@@ -0,0 +1,6 @@
1
+ declare type LogoSize = 'small' | 'normal';
2
+ export interface CompanyLogoProps {
3
+ size?: LogoSize;
4
+ isSkeleton?: boolean;
5
+ }
6
+ export {};
@@ -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 { u as useResponsiveDesktop } from "../../vendor.js";
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")(() => ({
@@ -1617,9 +1617,4 @@ function getGridComponentsDictionary() {
1617
1617
  ...defaultPagerDictionary,
1618
1618
  ...defaultModalDialogDictionary
1619
1619
  });
1620
- const initialPagerState = {
1621
- page: 0,
1622
- rowsPerPage: 25,
1623
- totalRecords: 0
1624
- };
1625
- export { DataGrid as D, getGridComponentsDictionary as g, initialPagerState as i };
1620
+ export { DataGrid as D, getGridComponentsDictionary as g };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { Props } from './types';
3
+ export default function Image({ ratio, sx, isSekeleton, width, height, src, ...other }: Props): JSX.Element;
@@ -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,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGlu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MtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+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,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhd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TIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+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,3 @@
1
+ /// <reference types="react" />
2
+ import { defaultProps } from './types';
3
+ export default function LanguagePopover(props: defaultProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ import "react";
2
+ import "@mui/material";
3
+ import "../../react-lazy-load-image-component.js";
4
+ import "@mui/material/styles";
5
+ import "../Image/index.js";
6
+ import "react/jsx-runtime";
7
+ import "@m4l/graphics";
@@ -0,0 +1,3 @@
1
+ export interface defaultProps {
2
+ isSkeleton?: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ import { ElementType } from 'react';
2
+ export declare const Loadable: (Component: ElementType) => (props: any) => JSX.Element;
@@ -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 { u as useResponsiveDesktop } from "../../vendor.js";
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,5 +1,5 @@
1
1
  import { useState, useEffect, useCallback, useMemo } from "react";
2
- import { useNetwork, useModuleDictionary } from "@m4l/core";
2
+ import { useNetwork, useModuleDictionary, usePaginate } from "@m4l/core";
3
3
  import { Tooltip, IconButton, TextField } from "@mui/material";
4
4
  import { LocalizationProvider, DateTimePicker } from "@mui/x-date-pickers";
5
5
  import AdapterDateFns from "@mui/lab/AdapterDateFns";
@@ -11,7 +11,6 @@ import { D as DateFormatter } from "../DataGrid/formatters/DateFormatter/index.j
11
11
  import { R as ReactJson } from "../../react-json-view.js";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
13
  import { u as useModal } from "../../hooks/useModal/index.js";
14
- import { a as usePaginate } from "../../vendor.js";
15
14
  const Container$1 = styled("div")(() => ({
16
15
  height: "100%",
17
16
  width: "100%",
@@ -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 "@mui_extended/BoxIcon";
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,3 @@
1
+ /// <reference types="react" />
2
+ import { LinkWithRouteProps } from './types';
3
+ export declare const LinkWithRoute: (props: LinkWithRouteProps) => JSX.Element;
@@ -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" | "default" | undefined;
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
- }, "color" | "children" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "size" | "edge"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
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,3 @@
1
+ /// <reference types="react" />
2
+ import { TypographyProps } from './types';
3
+ export declare function Typography(props: TypographyProps): JSX.Element;
@@ -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/core-js.js CHANGED
@@ -198,10 +198,10 @@ var store$2 = sharedStore;
198
198
  (shared$4.exports = function(key, value) {
199
199
  return store$2[key] || (store$2[key] = value !== void 0 ? value : {});
200
200
  })("versions", []).push({
201
- version: "3.23.3",
201
+ version: "3.23.4",
202
202
  mode: "global",
203
203
  copyright: "\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",
204
- license: "https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",
204
+ license: "https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",
205
205
  source: "https://github.com/zloirock/core-js"
206
206
  });
207
207
  var requireObjectCoercible$4 = requireObjectCoercible$6;
@@ -1685,6 +1685,7 @@ var ResultPrototype = Result.prototype;
1685
1685
  var iterate$2 = function(iterable, unboundFunction, options) {
1686
1686
  var that = options && options.that;
1687
1687
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1688
+ var IS_RECORD = !!(options && options.IS_RECORD);
1688
1689
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1689
1690
  var INTERRUPTED = !!(options && options.INTERRUPTED);
1690
1691
  var fn = bind(unboundFunction, that);
@@ -1701,7 +1702,9 @@ var iterate$2 = function(iterable, unboundFunction, options) {
1701
1702
  }
1702
1703
  return INTERRUPTED ? fn(value, stop) : fn(value);
1703
1704
  };
1704
- if (IS_ITERATOR) {
1705
+ if (IS_RECORD) {
1706
+ iterator = iterable.iterator;
1707
+ } else if (IS_ITERATOR) {
1705
1708
  iterator = iterable;
1706
1709
  } else {
1707
1710
  iterFn = getIteratorMethod(iterable);
@@ -1717,7 +1720,7 @@ var iterate$2 = function(iterable, unboundFunction, options) {
1717
1720
  }
1718
1721
  iterator = getIterator(iterable, iterFn);
1719
1722
  }
1720
- next2 = iterator.next;
1723
+ next2 = IS_RECORD ? iterable.next : iterator.next;
1721
1724
  while (!(step = call$5(next2, iterator)).done) {
1722
1725
  try {
1723
1726
  result = callFn(step.value);