@m4l/components 0.1.13 → 0.1.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.
Files changed (139) hide show
  1. package/assets/Logo/index.js +91 -0
  2. package/commonjs.js +9 -0
  3. package/components/CommonActions/components/ActionCancel/index.js +15 -0
  4. package/components/CommonActions/components/ActionFormCancel/index.js +62 -0
  5. package/components/CommonActions/components/ActionFormIntro/index.js +35 -0
  6. package/components/CommonActions/components/ActionIntro/index.js +16 -0
  7. package/components/CommonActions/components/Actions/index.js +859 -0
  8. package/components/CompanyLogo/{index.f81c179c.js → index.js} +48 -42
  9. package/components/DataGrid/index.js +1067 -0
  10. package/components/DynamicFilter/index.js +1573 -0
  11. package/components/ErrorLabel/index.js +18 -0
  12. package/components/Icon/index.js +80 -0
  13. package/components/Image/index.js +128 -0
  14. package/components/LanguagePopover/index.js +93 -0
  15. package/components/Loadable/index.js +13 -0
  16. package/components/ModalDialog/index.js +180 -0
  17. package/components/NoItemSelected/{index.12f0ca67.js → index.js} +50 -43
  18. package/components/ObjectLogs/index.js +284 -0
  19. package/components/Page/index.js +36 -0
  20. package/components/PaperForm/index.js +110 -0
  21. package/components/Period/index.js +230 -0
  22. package/components/PropertyValue/index.js +142 -0
  23. package/components/Resizeable/{index.45995d2b.js → index.js} +19 -21
  24. package/components/ScrollBar/index.js +52 -0
  25. package/components/ScrollToTop/index.js +10 -0
  26. package/components/SplitLayout/{index.4032673d.js → index.js} +35 -35
  27. package/components/animate/LoadingScreen/{index.f1cec7db.js → index.js} +27 -29
  28. package/components/animate/MotionContainer/index.js +31 -0
  29. package/components/animate/MotionLazyContainer/index.js +13 -0
  30. package/components/animate/features.js +2 -0
  31. package/components/animate/variants/{bounce.784aaaaa.js → bounce.js} +16 -15
  32. package/components/animate/variants/container.js +20 -0
  33. package/components/animate/variants/fade.js +61 -0
  34. package/components/animate/variants/{index.7a912140.js → index.js} +0 -0
  35. package/components/animate/variants/transition.js +16 -0
  36. package/components/formatters/BooleanFormatter/index.js +52 -0
  37. package/components/formatters/DateFormatter/index.js +66 -0
  38. package/components/formatters/index.js +112 -0
  39. package/components/hook-form/FormProvider/index.js +61 -0
  40. package/components/hook-form/RHFAutocomplete/index.js +144 -0
  41. package/components/hook-form/RHFAutocompleteAsync/index.js +191 -0
  42. package/components/hook-form/RHFCheckbox/index.js +65 -0
  43. package/components/hook-form/RHFDateTime/index.js +79 -0
  44. package/components/hook-form/RHFMultiCheckbox/index.js +32 -0
  45. package/components/hook-form/RHFPeriod/index.js +47 -0
  46. package/components/hook-form/RHFRadioGroup/index.js +41 -0
  47. package/components/hook-form/RHFSelect/index.js +34 -0
  48. package/components/hook-form/RHFTextField/index.js +87 -0
  49. package/components/hook-form/RHFUpload/index.js +255 -0
  50. package/components/mui_extended/Accordion/index.js +105 -0
  51. package/components/mui_extended/Avatar/index.js +33 -0
  52. package/components/mui_extended/BoxIcon/index.js +20 -0
  53. package/components/mui_extended/Breadcrumbs/index.js +92 -0
  54. package/components/mui_extended/Button/index.js +131 -0
  55. package/components/mui_extended/IconButton/index.js +108 -0
  56. package/components/mui_extended/LinkWithRoute/index.js +30 -0
  57. package/components/mui_extended/MenuPopover/index.js +135 -0
  58. package/components/mui_extended/Pager/index.js +137 -0
  59. package/components/mui_extended/Tab/index.js +30 -0
  60. package/components/mui_extended/Typography/index.js +21 -0
  61. package/contexts/ModalContext/index.js +165 -0
  62. package/hooks/useFormAddEdit/index.js +42 -0
  63. package/hooks/useModal/index.js +4 -0
  64. package/index.js +70 -162
  65. package/lodash.js +62 -0
  66. package/node_modules.js +54 -0
  67. package/package.json +2 -1
  68. package/react-data-grid.js +2652 -0
  69. package/react-draggable.js +960 -0
  70. package/react-json-view.js +2764 -0
  71. package/react-lazy-load-image-component.js +792 -0
  72. package/react-resizable.js +541 -0
  73. package/react-splitter-layout.js +165 -0
  74. package/utils/index.js +572 -0
  75. package/assets/Logo/index.228dcb5a.js +0 -86
  76. package/commonjs.565e6834.js +0 -12
  77. package/components/CommonActions/components/ActionCancel/index.cba1b460.js +0 -17
  78. package/components/CommonActions/components/ActionFormCancel/index.be2fe891.js +0 -49
  79. package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +0 -31
  80. package/components/CommonActions/components/ActionIntro/index.cc4b1e0e.js +0 -18
  81. package/components/CommonActions/components/Actions/index.e8148d98.js +0 -743
  82. package/components/DataGrid/index.b688877d.js +0 -894
  83. package/components/DynamicFilter/index.82ce857e.js +0 -1158
  84. package/components/ErrorLabel/index.c8615f16.js +0 -19
  85. package/components/Icon/index.cbca79b0.js +0 -70
  86. package/components/Image/index.e790b50b.js +0 -122
  87. package/components/LanguagePopover/index.3d9611cb.js +0 -87
  88. package/components/Loadable/index.f5518558.js +0 -15
  89. package/components/ModalDialog/index.3850c053.js +0 -168
  90. package/components/ObjectLogs/index.27ef875d.js +0 -266
  91. package/components/Page/index.6d69977e.js +0 -35
  92. package/components/PaperForm/index.d7c74064.js +0 -105
  93. package/components/Period/index.5e68286a.js +0 -160
  94. package/components/PropertyValue/index.ab3dd7e9.js +0 -116
  95. package/components/ScrollBar/index.39eeb2de.js +0 -49
  96. package/components/ScrollToTop/index.e06f98f6.js +0 -11
  97. package/components/animate/MotionContainer/index.8d9f9d80.js +0 -30
  98. package/components/animate/MotionLazyContainer/index.572dd012.js +0 -15
  99. package/components/animate/features.0fbf41e1.js +0 -5
  100. package/components/animate/variants/container.11f82b76.js +0 -20
  101. package/components/animate/variants/fade.b561c0fc.js +0 -59
  102. package/components/animate/variants/transition.bd46b9ce.js +0 -15
  103. package/components/formatters/BooleanFormatter/index.cca53b7f.js +0 -42
  104. package/components/formatters/DateFormatter/index.ad8d9b8e.js +0 -57
  105. package/components/formatters/index.55856d65.js +0 -106
  106. package/components/hook-form/FormProvider/index.257acd9f.js +0 -55
  107. package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +0 -122
  108. package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +0 -153
  109. package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +0 -59
  110. package/components/hook-form/RHFDateTime/index.fc5cbafe.js +0 -68
  111. package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +0 -34
  112. package/components/hook-form/RHFPeriod/index.23c254e9.js +0 -45
  113. package/components/hook-form/RHFRadioGroup/index.b3335e13.js +0 -43
  114. package/components/hook-form/RHFSelect/index.b6ca8bb2.js +0 -36
  115. package/components/hook-form/RHFTextField/index.4c455f75.js +0 -77
  116. package/components/hook-form/RHFUpload/index.ed3d739f.js +0 -244
  117. package/components/mui_extended/Accordion/index.2116e423.js +0 -103
  118. package/components/mui_extended/Avatar/index.0a2a4523.js +0 -32
  119. package/components/mui_extended/BoxIcon/index.e638ecc8.js +0 -22
  120. package/components/mui_extended/Breadcrumbs/index.5e37d903.js +0 -89
  121. package/components/mui_extended/Button/index.84d8898c.js +0 -110
  122. package/components/mui_extended/IconButton/index.88f3aadb.js +0 -98
  123. package/components/mui_extended/LinkWithRoute/index.d4b263de.js +0 -28
  124. package/components/mui_extended/MenuPopover/index.488fc536.js +0 -131
  125. package/components/mui_extended/Pager/index.0576814f.js +0 -126
  126. package/components/mui_extended/Tab/index.e0653a0a.js +0 -28
  127. package/components/mui_extended/Typography/index.0c4604b3.js +0 -22
  128. package/contexts/ModalContext/index.2188b69e.js +0 -150
  129. package/hooks/useFormAddEdit/index.d4845f1a.js +0 -26
  130. package/hooks/useModal/index.6571d2d9.js +0 -6
  131. package/lodash.e09401f0.js +0 -32
  132. package/node_modules.168cb897.js +0 -55
  133. package/react-data-grid.d46d625e.js +0 -2115
  134. package/react-draggable.20e95c61.js +0 -714
  135. package/react-json-view.f56a7f8e.js +0 -2762
  136. package/react-lazy-load-image-component.45b56650.js +0 -784
  137. package/react-resizable.5277deaf.js +0 -371
  138. package/react-splitter-layout.7810ac1b.js +0 -165
  139. package/utils/index.214d9542.js +0 -435
@@ -0,0 +1,18 @@
1
+ import { styled } from "@mui/material";
2
+ import { jsx } from "react/jsx-runtime";
3
+ const Wrapper = styled("p")(({
4
+ theme
5
+ }) => ({
6
+ ...theme.typography.caption,
7
+ color: theme.palette.error.main,
8
+ margin: "8px 14px 0 14px"
9
+ }));
10
+ const ErrorLabel = (props) => {
11
+ const {
12
+ message
13
+ } = props;
14
+ return /* @__PURE__ */ jsx(Wrapper, {
15
+ children: message
16
+ });
17
+ };
18
+ export { ErrorLabel as E };
@@ -0,0 +1,80 @@
1
+ import { styled } from "@mui/material";
2
+ import { useState, useMemo, useEffect } from "react";
3
+ import { useTheme } from "@mui/material/styles";
4
+ import { g as getPaletteColor } from "../../utils/index.js";
5
+ import { jsx } from "react/jsx-runtime";
6
+ const DivIcon = styled("div", {
7
+ shouldForwardProp: (props) => props !== "src" && props !== "sizeIcon" && props !== "bgColor"
8
+ })(({
9
+ size,
10
+ src,
11
+ bgColor
12
+ }) => ({
13
+ maskPosition: "center!important",
14
+ maskRepeat: "no-repeat!important",
15
+ WebkitMaskRepeat: "no-repeat!important",
16
+ width: size,
17
+ height: size,
18
+ backgroundColor: bgColor,
19
+ mask: `url('data:image/svg+xml;base64,${src}')`,
20
+ WebkitMask: `url('data:image/svg+xml;base64,${src}')`
21
+ }));
22
+ const WrapperPlaceHolder = styled("div")(() => ({
23
+ display: "flex",
24
+ justifyContent: "center",
25
+ alignItems: "center"
26
+ }));
27
+ function Icon(props) {
28
+ const {
29
+ src,
30
+ size = "small",
31
+ bgColor = "action.active"
32
+ } = props;
33
+ const [resource, setResource] = useState(void 0);
34
+ const theme = useTheme();
35
+ const finalSize = useMemo(() => {
36
+ switch (size) {
37
+ case "extra-small":
38
+ return "12px";
39
+ case "small":
40
+ return "16px";
41
+ case "medium":
42
+ return "18px";
43
+ case "large":
44
+ return "22px";
45
+ }
46
+ return size;
47
+ }, [size]);
48
+ useEffect(() => {
49
+ let mounted = true;
50
+ (async function networkOperation() {
51
+ await fetch(src).then((response) => {
52
+ return response.text() || "";
53
+ }).then((xml) => {
54
+ xml = xml.match(
55
+ /(<svg\b[^>]*\s*(viewBox="(\b[^"]*)").*?>([\s\S]*?)<\/svg>|<svg>([\s\S]*?)<\/svg>)/g
56
+ )?.toString() || "";
57
+ if (mounted) {
58
+ setResource(window.btoa(xml));
59
+ }
60
+ }).catch((_err) => {
61
+ });
62
+ })();
63
+ return function clenUp() {
64
+ mounted = false;
65
+ };
66
+ }, [src]);
67
+ const placeHolder = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==";
68
+ return /* @__PURE__ */ jsx(WrapperPlaceHolder, {
69
+ className: "m4l_icon",
70
+ children: resource ? /* @__PURE__ */ jsx(DivIcon, {
71
+ src: resource,
72
+ size: finalSize,
73
+ bgColor: getPaletteColor(theme.palette, bgColor)
74
+ }) : /* @__PURE__ */ jsx("img", {
75
+ src: placeHolder,
76
+ alt: "icon_svg"
77
+ })
78
+ });
79
+ }
80
+ export { Icon as I };
@@ -0,0 +1,128 @@
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: `zurl("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
+ ".lazy-load-image-background.blur": {
20
+ filter: "blur(15px)"
21
+ },
22
+ ".lazy-load-image-background.blur.lazy-load-image-loaded": {
23
+ filter: "blur(0)",
24
+ transition: "filter .3s;"
25
+ },
26
+ ".lazy-load-image-background.blur > img": {
27
+ opacity: "0"
28
+ },
29
+ ".lazy-load-image-background.blur.lazy-load-image-loaded > img": {
30
+ opacity: 1,
31
+ transition: "opacity .3s"
32
+ },
33
+ width,
34
+ height,
35
+ lineHeight: 0,
36
+ display: "block",
37
+ overflow: "hidden",
38
+ "& > span": {
39
+ width: "100%",
40
+ height: "100%"
41
+ },
42
+ "& .LazyLoadImage": {
43
+ width: "100%",
44
+ height: "100%",
45
+ objectFit: "contain"
46
+ }
47
+ }));
48
+ function Image({
49
+ ratio,
50
+ sx,
51
+ isSkeleton = false,
52
+ width = "100%",
53
+ height = "100%",
54
+ src,
55
+ ...other
56
+ }) {
57
+ const theme = useTheme();
58
+ const themeMode = theme.palette.mode;
59
+ if (isSkeleton) {
60
+ return /* @__PURE__ */ jsx(SKTWrapperImage, {
61
+ width,
62
+ children: /* @__PURE__ */ jsx(Skeleton, {
63
+ variant: "rectangular",
64
+ width: "100%",
65
+ height: "100%"
66
+ })
67
+ });
68
+ }
69
+ if (ratio) {
70
+ return /* @__PURE__ */ jsx(Box, {
71
+ component: "span",
72
+ sx: {
73
+ width: 1,
74
+ lineHeight: 0,
75
+ display: "block",
76
+ overflow: "hidden",
77
+ position: "relative",
78
+ pt: getRatio(ratio),
79
+ "& .wrapper": {
80
+ top: 0,
81
+ left: 0,
82
+ right: 0,
83
+ bottom: 0,
84
+ lineHeight: 0,
85
+ position: "absolute",
86
+ backgroundSize: "cover !important"
87
+ },
88
+ ...sx
89
+ },
90
+ children: /* @__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,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4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0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==",
98
+ ...other
99
+ })
100
+ })
101
+ });
102
+ }
103
+ return /* @__PURE__ */ jsx(WrapperLazyLoadImage, {
104
+ width,
105
+ height,
106
+ id: "WrapperLazyLoadImage",
107
+ children: /* @__PURE__ */ jsx(build.exports.LazyLoadImage, {
108
+ className: "LazyLoadImage",
109
+ src,
110
+ placeholderSrc: themeMode === "light" ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PS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40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==",
111
+ ...other
112
+ })
113
+ });
114
+ }
115
+ function getRatio(ratio = "1/1") {
116
+ return {
117
+ "4/3": "calc(100% / 4 * 3)",
118
+ "3/4": "calc(100% / 3 * 4)",
119
+ "6/4": "calc(100% / 6 * 4)",
120
+ "4/6": "calc(100% / 4 * 6)",
121
+ "16/9": "calc(100% / 16 * 9)",
122
+ "9/16": "calc(100% / 9 * 16)",
123
+ "21/9": "calc(100% / 21 * 9)",
124
+ "9/21": "calc(100% / 9 * 21)",
125
+ "1/1": "100%"
126
+ }[ratio];
127
+ }
128
+ export { Image as I };
@@ -0,0 +1,93 @@
1
+ import { useState } from "react";
2
+ import { styled, Skeleton, IconButton, Stack, MenuItem } from "@mui/material";
3
+ import { I as Image } from "../Image/index.js";
4
+ import { useLocales } from "@m4l/graphics";
5
+ import { useModuleSkeleton } from "@m4l/core";
6
+ import "../Icon/index.js";
7
+ import "@mui/material/styles";
8
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
9
+ import "../mui_extended/Accordion/index.js";
10
+ import "../mui_extended/Avatar/index.js";
11
+ import "react-router-dom";
12
+ import "@mui/material/Button";
13
+ import "../mui_extended/Button/index.js";
14
+ import "@mui/lab";
15
+ import { M as MenuPopover } from "../mui_extended/MenuPopover/index.js";
16
+ import "../CommonActions/components/Actions/index.js";
17
+ import "../mui_extended/Pager/index.js";
18
+ import "../mui_extended/Tab/index.js";
19
+ const LabelItem = styled("div")(({
20
+ theme
21
+ }) => ({
22
+ marginLeft: theme.spacing(1)
23
+ }));
24
+ function LanguagePopover() {
25
+ const isSkeleton = useModuleSkeleton();
26
+ const {
27
+ allLang,
28
+ currentLang,
29
+ onChangeLang
30
+ } = useLocales();
31
+ const [open, setOpen] = useState(null);
32
+ const handleOpen = (event) => {
33
+ setOpen(event.currentTarget);
34
+ };
35
+ const handleClose = () => {
36
+ setOpen(null);
37
+ };
38
+ if (isSkeleton) {
39
+ return /* @__PURE__ */ jsx(Skeleton, {
40
+ variant: "circular",
41
+ width: 20,
42
+ height: 20
43
+ });
44
+ }
45
+ return /* @__PURE__ */ jsxs(Fragment, {
46
+ children: [/* @__PURE__ */ jsx(IconButton, {
47
+ onClick: handleOpen,
48
+ sx: {
49
+ width: 40,
50
+ height: 40,
51
+ ...open && {
52
+ bgcolor: "action.selected"
53
+ }
54
+ },
55
+ children: /* @__PURE__ */ jsx(Image, {
56
+ src: currentLang.icon,
57
+ alt: currentLang.label
58
+ })
59
+ }), /* @__PURE__ */ jsx(MenuPopover, {
60
+ open: Boolean(open),
61
+ anchorEl: open,
62
+ onClose: handleClose,
63
+ sx: {
64
+ mt: 1.5,
65
+ ml: 0.75,
66
+ width: 180,
67
+ "& .MuiMenuItem-root": {
68
+ px: 1,
69
+ typography: "body2",
70
+ borderRadius: 0.75
71
+ }
72
+ },
73
+ children: /* @__PURE__ */ jsx(Stack, {
74
+ spacing: 0.75,
75
+ children: allLang.map((option) => /* @__PURE__ */ jsxs(MenuItem, {
76
+ selected: option.value === currentLang.value,
77
+ onClick: () => {
78
+ onChangeLang(option.value);
79
+ handleClose();
80
+ },
81
+ children: [/* @__PURE__ */ jsx(Image, {
82
+ alt: option.label,
83
+ src: option.icon,
84
+ width: "24px"
85
+ }), /* @__PURE__ */ jsx(LabelItem, {
86
+ children: option.label
87
+ })]
88
+ }, option.value))
89
+ })
90
+ })]
91
+ });
92
+ }
93
+ 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 };
@@ -0,0 +1,180 @@
1
+ import { Dialog, IconButton, Paper } from "@mui/material";
2
+ import { D as Draggable } from "../../react-draggable.js";
3
+ import { u as useModal } from "../../hooks/useModal/index.js";
4
+ import { styled } from "@mui/material/styles";
5
+ import { a as getThemeVariantColor } from "../../utils/index.js";
6
+ import { R as Resizeable } from "../Resizeable/index.js";
7
+ import { useResponsiveDesktop } from "@m4l/graphics";
8
+ import { useEnvironment } from "@m4l/core";
9
+ import { I as Icon } from "../Icon/index.js";
10
+ import { jsxs, jsx } from "react/jsx-runtime";
11
+ import { b as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.js";
12
+ const WrapperDialog = styled(Dialog)(() => ({}));
13
+ const Container = styled("div")(({ theme }) => ({
14
+ display: "flex",
15
+ flexDirection: "column",
16
+ height: "100%",
17
+ overflow: "hidden",
18
+ padding: theme.spacing(3)
19
+ }));
20
+ const Header$1 = styled("div")(({ theme }) => ({
21
+ display: "flex",
22
+ alignItems: "center",
23
+ justifyContent: "space-between",
24
+ minHeight: theme.spacing(5),
25
+ borderBottom: `1px solid ${theme.palette.divider}`,
26
+ overflow: "hidden"
27
+ }));
28
+ styled("div")(({ theme }) => ({
29
+ display: "flex",
30
+ flexDirection: "row",
31
+ flexGrow: 1,
32
+ alignItems: "center",
33
+ cursor: "move",
34
+ ...theme.typography.subtitle1,
35
+ color: theme.palette.text.primary
36
+ }));
37
+ const IconHeader = styled("div")(({ theme, variant }) => ({
38
+ display: "flex",
39
+ alignItems: "center",
40
+ justifyContent: "center",
41
+ marginRight: theme.spacing(1.5),
42
+ "& > span": {
43
+ background: getThemeVariantColor(theme, variant)
44
+ }
45
+ }));
46
+ const Content = styled("div")(() => ({
47
+ flexGrow: 1,
48
+ position: "relative",
49
+ overflow: "auto"
50
+ }));
51
+ const ModalTitle = styled("div")(({ theme, variant }) => ({
52
+ ...theme.typography.subtitle1,
53
+ color: getThemeVariantColor(theme, variant),
54
+ width: "100%",
55
+ whiteSpace: "nowrap",
56
+ textOverflow: "ellipsis",
57
+ overflow: "hidden"
58
+ }));
59
+ const Header = (props) => {
60
+ const {
61
+ host_static_assets,
62
+ environment_assets
63
+ } = useEnvironment();
64
+ const {
65
+ variant,
66
+ title,
67
+ iconComponent,
68
+ withClose,
69
+ onCloseModal
70
+ } = props;
71
+ const iconSrcWarning = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/warning.svg`;
72
+ const iconSrcError = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/error.svg`;
73
+ const iconSrcInfo = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/info.svg`;
74
+ const iconDefault = `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/icon_bar_title.svg`;
75
+ return /* @__PURE__ */ jsxs(Header$1, {
76
+ id: "Header",
77
+ className: "draggable-dialog-title",
78
+ children: [/* @__PURE__ */ jsx(IconHeader, {
79
+ variant,
80
+ children: !iconComponent ? /* @__PURE__ */ jsx(Icon, {
81
+ src: variant === "warning" ? iconSrcWarning : variant === "delete" ? iconSrcError : variant === "info" ? iconSrcInfo : iconDefault
82
+ }) : iconComponent
83
+ }), /* @__PURE__ */ jsx(ModalTitle, {
84
+ variant,
85
+ children: title
86
+ }), withClose && /* @__PURE__ */ jsx(IconButton, {
87
+ onClick: onCloseModal,
88
+ "aria-label": "click",
89
+ children: /* @__PURE__ */ jsx(Icon, {
90
+ src: `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/close.svg`
91
+ })
92
+ })]
93
+ });
94
+ };
95
+ const DragabblePaperComponent = (props) => {
96
+ return /* @__PURE__ */ jsx(Draggable, {
97
+ handle: ".draggable-dialog-title",
98
+ cancel: '[class*="MuiDialogContent-root"]',
99
+ children: /* @__PURE__ */ jsx(Paper, {
100
+ sx: {
101
+ maxHeight: "unset",
102
+ maxWidth: "unset"
103
+ },
104
+ ...props
105
+ })
106
+ });
107
+ };
108
+ function PaperComponent(props) {
109
+ return /* @__PURE__ */ jsx(Paper, {
110
+ sx: {
111
+ maxHeight: "unset",
112
+ maxWidth: "unset",
113
+ height: "100%"
114
+ },
115
+ ...props
116
+ });
117
+ }
118
+ const ModalDialog = () => {
119
+ const {
120
+ open,
121
+ initialWidth = 600,
122
+ initialHeigth = 400,
123
+ maxWidth,
124
+ maxHeigth,
125
+ withClose = true,
126
+ onQueryClose,
127
+ contentComponent,
128
+ title,
129
+ closeModal,
130
+ iconComponent,
131
+ actions,
132
+ variant
133
+ } = useModal();
134
+ const isDesktop = useResponsiveDesktop();
135
+ const onCloseModal = () => {
136
+ closeModal();
137
+ };
138
+ const contentComnponent = /* @__PURE__ */ jsxs(Container, {
139
+ id: "Container",
140
+ children: [
141
+ /* @__PURE__ */ jsx(Header, {
142
+ variant,
143
+ title,
144
+ iconComponent,
145
+ withClose,
146
+ onCloseModal
147
+ }),
148
+ /* @__PURE__ */ jsx(Content, {
149
+ id: "Content",
150
+ children: typeof contentComponent === "function" ? contentComponent() : contentComponent
151
+ }),
152
+ actions && /* @__PURE__ */ jsx(Actions, {
153
+ children: actions
154
+ })
155
+ ]
156
+ });
157
+ return /* @__PURE__ */ jsxs(WrapperDialog, {
158
+ open,
159
+ onClose: onQueryClose,
160
+ "aria-labelledby": "child-modal-title",
161
+ "aria-describedby": "child-modal-description",
162
+ PaperComponent: isDesktop ? DragabblePaperComponent : PaperComponent,
163
+ maxWidth: false,
164
+ fullWidth: !isDesktop,
165
+ children: [isDesktop && /* @__PURE__ */ jsx(Resizeable, {
166
+ width: initialWidth,
167
+ height: initialHeigth,
168
+ maxWidth,
169
+ maxHeigth,
170
+ children: contentComnponent
171
+ }), !isDesktop && contentComnponent]
172
+ });
173
+ };
174
+ function getModalDialogComponentsDictionary() {
175
+ return ["modal_dialog"].concat(getCommonActionsDictionary());
176
+ }
177
+ const defaultModalDialogDictionary = {
178
+ modal_dialog: {}
179
+ };
180
+ export { ModalDialog as M, defaultModalDialogDictionary as d, getModalDialogComponentsDictionary as g };
@@ -1,11 +1,11 @@
1
- import { useEnvironment as r, useModuleDictionary as l, useModuleSkeleton as p } from "@m4l/core";
2
- import { styled as c } from "@mui/material/styles";
3
- import { I as d } from "../Image/index.e790b50b.js";
4
- import { Skeleton as m } from "@mui/material";
5
- import { useMemo as g } from "react";
6
- import { jsx as t, jsxs as x } from "react/jsx-runtime";
7
- const s = c("div")(({
8
- theme: e
1
+ import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
2
+ import { styled } from "@mui/material/styles";
3
+ import { I as Image } from "../Image/index.js";
4
+ import { Skeleton } from "@mui/material";
5
+ import { useMemo } from "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ const WrapperNoItemSelected = styled("div")(({
8
+ theme
9
9
  }) => ({
10
10
  width: "100%",
11
11
  maxWidth: "400px",
@@ -14,16 +14,19 @@ const s = c("div")(({
14
14
  flexDirection: "column",
15
15
  alignItems: "center",
16
16
  justifyContent: "center",
17
- padding: e.spacing(3)
18
- })), w = c(d)(() => ({
17
+ padding: theme.spacing(3)
18
+ }));
19
+ const Img = styled(Image)(() => ({
19
20
  display: "flex"
20
- })), h = c("span")(({
21
- theme: e
21
+ }));
22
+ const Label = styled("span")(({
23
+ theme
22
24
  }) => ({
23
- ...e.typography.body2,
24
- padding: `${e.spacing(1.5)} ${e.spacing(1)} ${e.spacing(1)} ${e.spacing(1)}`,
25
- color: e.palette.text.primary
26
- })), u = c("div")(() => ({
25
+ ...theme.typography.body2,
26
+ padding: `${theme.spacing(1.5)} ${theme.spacing(1)} ${theme.spacing(1)} ${theme.spacing(1)}`,
27
+ color: theme.palette.text.primary
28
+ }));
29
+ const WrapperSKTNoItemSelected = styled("div")(() => ({
27
30
  display: "flex",
28
31
  width: "100%",
29
32
  minWidth: "100%",
@@ -31,44 +34,48 @@ const s = c("div")(({
31
34
  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`,
32
35
  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`
33
36
  }));
34
- function E() {
37
+ function NoItemSelected() {
35
38
  const {
36
- host_static_assets: e,
37
- environment_assets: n
38
- } = r(), {
39
- getLabel: i
40
- } = l(), o = p(), a = g(() => `${e}/${n}/frontend/components/no_item_selected/assets/icons/no_selected.svg`, []);
41
- return o ? /* @__PURE__ */ t(s, {
42
- id: "WrapperNoItemSelected",
43
- children: /* @__PURE__ */ t(u, {
44
- id: "WrapperSKTNoItemSelected",
45
- children: /* @__PURE__ */ t(m, {
46
- variant: "rectangular",
47
- width: "100%",
48
- height: "100%"
39
+ host_static_assets,
40
+ environment_assets
41
+ } = useEnvironment();
42
+ const {
43
+ getLabel
44
+ } = useModuleDictionary();
45
+ const isSkeleton = useModuleSkeleton();
46
+ const src = useMemo(() => {
47
+ return `${host_static_assets}/${environment_assets}/frontend/components/no_item_selected/assets/icons/no_selected.svg`;
48
+ }, []);
49
+ if (isSkeleton) {
50
+ return /* @__PURE__ */ jsx(WrapperNoItemSelected, {
51
+ id: "WrapperNoItemSelected",
52
+ children: /* @__PURE__ */ jsx(WrapperSKTNoItemSelected, {
53
+ id: "WrapperSKTNoItemSelected",
54
+ children: /* @__PURE__ */ jsx(Skeleton, {
55
+ variant: "rectangular",
56
+ width: "100%",
57
+ height: "100%"
58
+ })
49
59
  })
50
- })
51
- }) : /* @__PURE__ */ x(s, {
60
+ });
61
+ }
62
+ return /* @__PURE__ */ jsxs(WrapperNoItemSelected, {
52
63
  id: "WrapperNoItemSelected",
53
- children: [/* @__PURE__ */ t(w, {
54
- src: a,
64
+ children: [/* @__PURE__ */ jsx(Img, {
65
+ src,
55
66
  width: "100%",
56
67
  height: "100%"
57
- }), /* @__PURE__ */ t(h, {
58
- children: i("no_item_selected.message")
68
+ }), /* @__PURE__ */ jsx(Label, {
69
+ children: getLabel("no_item_selected.message")
59
70
  })]
60
71
  });
61
72
  }
62
- function k() {
73
+ function getNoItemSelectedComponentsDictionary() {
63
74
  return ["no_item_selected"];
64
75
  }
65
- const I = {
76
+ const defaultNoItemSelectedDictionary = {
66
77
  no_item_selected: {
67
78
  message: "Please select a item to show detail"
68
79
  }
69
80
  };
70
- export {
71
- E as N,
72
- I as d,
73
- k as g
74
- };
81
+ export { NoItemSelected as N, defaultNoItemSelectedDictionary as d, getNoItemSelectedComponentsDictionary as g };