@m4l/components 0.1.18 → 0.1.20

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 (129) hide show
  1. package/components/CommonActions/components/ActionCancel/{index.7e947996.js → index.3775989f.js} +1 -1
  2. package/components/CommonActions/components/ActionFormCancel/{index.63405f6c.js → index.d69d9e0f.js} +2 -2
  3. package/components/CommonActions/components/ActionIntro/{index.bac90f39.js → index.ca7b6952.js} +1 -1
  4. package/components/CommonActions/components/Actions/{index.6b25caed.js → index.a908e4b9.js} +170 -171
  5. package/components/DataGrid/{index.091572bf.js → index.5cbf0dd8.js} +3 -3
  6. package/components/DynamicFilter/{index.7efecd5d.js → index.8a571617.js} +80 -82
  7. package/components/HelmetPage/index.d.ts +6 -0
  8. package/components/{Page → HelmetPage}/types.d.ts +2 -2
  9. package/components/Icon/{index.cbca79b0.js → index.f569765b.js} +41 -29
  10. package/components/Icon/types.d.ts +1 -0
  11. package/components/Image/index.c9da2d5a.js +152 -0
  12. package/components/Image/index.d.ts +2 -2
  13. package/components/Image/styles.d.ts +2 -4
  14. package/components/Image/subcomponents/BasicIntersectComponent/index.d.ts +3 -0
  15. package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +3 -0
  16. package/components/Image/subcomponents/Skeleton/index.d.ts +3 -0
  17. package/components/Image/subcomponents/Skeleton/styles.d.ts +2 -0
  18. package/components/Image/subcomponents/Skeleton/types.d.ts +4 -0
  19. package/components/Image/types.d.ts +30 -15
  20. package/components/Image/utils/isIntersectionObserverAvailable.d.ts +1 -0
  21. package/components/LanguagePopover/styles.d.ts +1 -1
  22. package/components/ModalDialog/{index.0ddffae6.js → index.16024a4e.js} +3 -3
  23. package/components/NoItemSelected/{index.12f0ca67.js → index.9609a7f7.js} +1 -1
  24. package/components/NoItemSelected/styles.d.ts +1 -1
  25. package/components/ObjectLogs/{index.64f06b3d.js → index.ac2bfa48.js} +5 -5
  26. package/components/Page/index.fc660ee5.js +27 -0
  27. package/components/PaperForm/{index.d7c74064.js → index.3f8c7ef2.js} +1 -1
  28. package/components/Period/{index.8423f865.js → index.497b8df4.js} +7 -8
  29. package/components/animate/IconButtonAnimate/index.d.ts +1 -1
  30. package/components/animate/features.d.ts +2 -0
  31. package/components/animate/variants/bounce.d.ts +10 -10
  32. package/components/animate/variants/container.d.ts +1 -1
  33. package/components/animate/variants/fade.d.ts +21 -21
  34. package/components/animate/variants/transition.d.ts +6 -6
  35. package/components/{hook-form/FormProvider/index.936cbb98.js → contexts/RHFormContext/index.f8241292.js} +17 -16
  36. package/components/formatters/BooleanFormatter/{index.cca53b7f.js → index.3ec56305.js} +1 -1
  37. package/components/formatters/DateFormatter/{index.ad8d9b8e.js → index.08d8823b.js} +1 -1
  38. package/components/formatters/{index.55856d65.js → index.6959c2de.js} +1 -1
  39. package/components/hook-form/RHFAutocomplete/index.b7f11146.js +146 -0
  40. package/components/hook-form/RHFAutocomplete/index.d.ts +1 -2
  41. package/components/hook-form/RHFAutocomplete/styles.d.ts +0 -1
  42. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +3 -0
  43. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +2 -0
  44. package/components/hook-form/RHFAutocomplete/types.d.ts +13 -7
  45. package/components/hook-form/RHFAutocompleteAsync/index.97a5a66e.js +51 -0
  46. package/components/hook-form/RHFAutocompleteAsync/index.d.ts +1 -2
  47. package/components/hook-form/RHFAutocompleteAsync/types.d.ts +3 -11
  48. package/components/hook-form/RHFCheckbox/index.6a40e25f.js +55 -0
  49. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/index.d.ts +2 -0
  50. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/styles.d.ts +2 -0
  51. package/components/hook-form/RHFDateTime/{index.fc5cbafe.js → index.5ed774e3.js} +24 -26
  52. package/components/hook-form/RHFDateTime/types.d.ts +2 -5
  53. package/components/hook-form/RHFPeriod/{index.0b982ae8.js → index.e17b1c72.js} +1 -1
  54. package/components/hook-form/RHFTextField/index.bab2a2cf.js +113 -0
  55. package/components/hook-form/RHFTextField/index.d.ts +1 -1
  56. package/components/hook-form/RHFTextField/subcomponents/Skeleton/index.d.ts +3 -0
  57. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +2 -0
  58. package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +4 -0
  59. package/components/hook-form/RHFTextField/types.d.ts +2 -5
  60. package/components/hook-form/RHFTextFieldPassword/index.d.ts +3 -0
  61. package/components/hook-form/RHFTextFieldPassword/types.d.ts +4 -0
  62. package/components/hook-form/RHFUpload/{index.ed3d739f.js → index.cbf11b68.js} +31 -36
  63. package/components/hook-form/index.d.ts +1 -2
  64. package/components/index.d.ts +2 -3
  65. package/components/mui_extended/Accordion/{index.2116e423.js → index.49f5df8e.js} +2 -2
  66. package/components/mui_extended/Avatar/index.d.ts +1 -1
  67. package/components/mui_extended/Avatar/index.dadb0528.js +37 -0
  68. package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +2 -0
  69. package/components/mui_extended/Button/index.16591787.js +144 -0
  70. package/components/mui_extended/IconButton/index.4b5ce8b5.js +103 -0
  71. package/components/mui_extended/IconButton/index.d.ts +1 -1
  72. package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index.d.ts +2 -0
  73. package/components/mui_extended/ImageButton/index.d.ts +3 -0
  74. package/components/mui_extended/ImageButton/types.d.ts +7 -0
  75. package/components/mui_extended/LinkWithRoute/index.16436ab8.js +26 -0
  76. package/components/mui_extended/LinkWithRoute/types.d.ts +2 -6
  77. package/components/mui_extended/LoadingButton/subcomponents/Skeleton/index.d.ts +2 -0
  78. package/components/mui_extended/LoadingButton/subcomponents/Skeleton/styles.d.ts +2 -0
  79. package/components/mui_extended/LoadingButton/types.d.ts +2 -2
  80. package/components/mui_extended/MenuActions/styles.d.ts +2 -2
  81. package/components/mui_extended/MenuActions/types.d.ts +2 -2
  82. package/components/mui_extended/Pager/{index.f0911163.js → index.80c2f8a0.js} +1 -1
  83. package/components/mui_extended/Popover/index.305f2ea5.js +218 -0
  84. package/components/mui_extended/Popover/index.d.ts +4 -0
  85. package/components/mui_extended/Popover/types.d.ts +9 -0
  86. package/components/mui_extended/Typography/index.e5494696.js +31 -0
  87. package/components/mui_extended/Typography/subcomponents/index.d.ts +3 -0
  88. package/components/mui_extended/Typography/subcomponents/types.d.ts +2 -0
  89. package/components/mui_extended/Typography/types.d.ts +3 -5
  90. package/components/mui_extended/index.d.ts +1 -1
  91. package/contexts/ModalContext/{index.1688a07c.js → index.699767c7.js} +3 -3
  92. package/contexts/RHFormContext/index.d.ts +3 -0
  93. package/{components/hook-form/FormProvider → contexts/RHFormContext}/styles.d.ts +0 -0
  94. package/{components/hook-form/FormProvider → contexts/RHFormContext}/types.d.ts +0 -0
  95. package/contexts/index.d.ts +2 -0
  96. package/hooks/useFormAddEdit/index.d.ts +1 -1
  97. package/hooks/useFormAddEdit/types.d.ts +1 -1
  98. package/hooks/useModal/{index.cdd84702.js → index.8201ccec.js} +1 -1
  99. package/index.js +148 -151
  100. package/package.json +3 -1
  101. package/utils/index.d.ts +1 -1
  102. package/components/CompanyLogo/index.d.ts +0 -3
  103. package/components/CompanyLogo/index.f81c179c.js +0 -75
  104. package/components/CompanyLogo/styles.d.ts +0 -5
  105. package/components/CompanyLogo/types.d.ts +0 -6
  106. package/components/Image/index.e790b50b.js +0 -122
  107. package/components/LanguagePopover/index.15f7dea7.js +0 -87
  108. package/components/Page/index.6d69977e.js +0 -35
  109. package/components/Page/index.d.ts +0 -3
  110. package/components/hook-form/FormProvider/index.d.ts +0 -3
  111. package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +0 -122
  112. package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +0 -153
  113. package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +0 -4
  114. package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +0 -59
  115. package/components/hook-form/RHFCheckbox/styles.d.ts +0 -13
  116. package/components/hook-form/RHFTextField/index.4c455f75.js +0 -77
  117. package/components/hook-form/RHFTextField/styles.d.ts +0 -2
  118. package/components/mui_extended/Avatar/index.0a2a4523.js +0 -32
  119. package/components/mui_extended/Button/index.3debb608.js +0 -110
  120. package/components/mui_extended/Button/styles.d.ts +0 -12
  121. package/components/mui_extended/IconButton/index.88f3aadb.js +0 -98
  122. package/components/mui_extended/LinkWithRoute/index.d4b263de.js +0 -28
  123. package/components/mui_extended/LoadingButton/skeleton.d.ts +0 -2
  124. package/components/mui_extended/LoadingButton/styles.d.ts +0 -2
  125. package/components/mui_extended/MenuPopover/index.488fc536.js +0 -131
  126. package/components/mui_extended/MenuPopover/index.d.ts +0 -4
  127. package/components/mui_extended/MenuPopover/types.d.ts +0 -9
  128. package/components/mui_extended/Typography/index.0c4604b3.js +0 -22
  129. package/react-lazy-load-image-component.45b56650.js +0 -784
@@ -1,122 +0,0 @@
1
- import { b as s } from "../../react-lazy-load-image-component.45b56650.js";
2
- import { Skeleton as N, Box as l } from "@mui/material";
3
- import { styled as I, useTheme as g } from "@mui/material/styles";
4
- import { jsx as L } from "react/jsx-runtime";
5
- const z = I("div")(({
6
- theme: M,
7
- width: w
8
- }) => ({
9
- width: w,
10
- height: "100%",
11
- padding: M.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
- })), t = I("div")(({
15
- width: M,
16
- height: w
17
- }) => ({
18
- ".lazy-load-image-background.blur": {
19
- filter: "blur(15px)"
20
- },
21
- ".lazy-load-image-background.blur.lazy-load-image-loaded": {
22
- filter: "blur(0)",
23
- transition: "filter .3s;"
24
- },
25
- ".lazy-load-image-background.blur > img": {
26
- opacity: "0"
27
- },
28
- ".lazy-load-image-background.blur.lazy-load-image-loaded > img": {
29
- opacity: 1,
30
- transition: "opacity .3s"
31
- },
32
- width: M,
33
- height: w,
34
- lineHeight: 0,
35
- display: "block",
36
- overflow: "hidden",
37
- "& > span": {
38
- width: "100%",
39
- height: "100%"
40
- },
41
- "& .LazyLoadImage": {
42
- width: "100%",
43
- height: "100%",
44
- objectFit: "contain"
45
- }
46
- }));
47
- function A({
48
- ratio: M,
49
- sx: w,
50
- isSkeleton: D = !1,
51
- width: u = "100%",
52
- height: j = "100%",
53
- src: C,
54
- ...i
55
- }) {
56
- const c = g().palette.mode;
57
- return D ? /* @__PURE__ */ L(z, {
58
- width: u,
59
- children: /* @__PURE__ */ L(N, {
60
- variant: "rectangular",
61
- width: "100%",
62
- height: "100%"
63
- })
64
- }) : M ? /* @__PURE__ */ L(l, {
65
- component: "span",
66
- sx: {
67
- width: 1,
68
- lineHeight: 0,
69
- display: "block",
70
- overflow: "hidden",
71
- position: "relative",
72
- pt: a(M),
73
- "& .wrapper": {
74
- top: 0,
75
- left: 0,
76
- right: 0,
77
- bottom: 0,
78
- lineHeight: 0,
79
- position: "absolute",
80
- backgroundSize: "cover !important"
81
- },
82
- ...w
83
- },
84
- children: /* @__PURE__ */ L(t, {
85
- width: u,
86
- height: j,
87
- id: "WrapperLazyLoadImage",
88
- children: /* @__PURE__ */ L(s.exports.LazyLoadImage, {
89
- className: "LazyLoadImage",
90
- src: C,
91
- placeholderSrc: c === "light" ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4y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g==",
92
- ...i
93
- })
94
- })
95
- }) : /* @__PURE__ */ L(t, {
96
- width: u,
97
- height: j,
98
- id: "WrapperLazyLoadImage",
99
- children: /* @__PURE__ */ L(s.exports.LazyLoadImage, {
100
- className: "LazyLoadImage",
101
- src: C,
102
- placeholderSrc: c === "light" ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS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 * 4)",
111
- "6/4": "calc(100% / 6 * 4)",
112
- "4/6": "calc(100% / 4 * 6)",
113
- "16/9": "calc(100% / 16 * 9)",
114
- "9/16": "calc(100% / 9 * 16)",
115
- "21/9": "calc(100% / 21 * 9)",
116
- "9/21": "calc(100% / 9 * 21)",
117
- "1/1": "100%"
118
- }[M];
119
- }
120
- export {
121
- A as I
122
- };
@@ -1,87 +0,0 @@
1
- import { useState as u } from "react";
2
- import { styled as d, Skeleton as h, IconButton as g, Stack as f, MenuItem as v } from "@mui/material";
3
- import { I as a } from "../Image/index.e790b50b.js";
4
- import { useLocales as L } from "@m4l/graphics";
5
- import { useModuleSkeleton as b } from "@m4l/core";
6
- import "../Icon/index.cbca79b0.js";
7
- import "@mui/material/styles";
8
- import { jsx as r, jsxs as m, Fragment as x } from "react/jsx-runtime";
9
- import "../mui_extended/Accordion/index.2116e423.js";
10
- import "../mui_extended/Avatar/index.0a2a4523.js";
11
- import "react-router-dom";
12
- import "@mui/material/Button";
13
- import "../mui_extended/Button/index.3debb608.js";
14
- import "@mui/lab";
15
- import { M as k } from "../mui_extended/MenuPopover/index.488fc536.js";
16
- import "../CommonActions/components/Actions/index.6b25caed.js";
17
- import "../mui_extended/Pager/index.f0911163.js";
18
- import "../mui_extended/Tab/index.e0653a0a.js";
19
- const I = d("div")(({
20
- theme: t
21
- }) => ({
22
- marginLeft: t.spacing(1)
23
- }));
24
- function H() {
25
- const t = b(), {
26
- allLang: c,
27
- currentLang: o,
28
- onChangeLang: s
29
- } = L(), [n, l] = u(null), p = (e) => {
30
- l(e.currentTarget);
31
- }, i = () => {
32
- l(null);
33
- };
34
- return t ? /* @__PURE__ */ r(h, {
35
- variant: "circular",
36
- width: 20,
37
- height: 20
38
- }) : /* @__PURE__ */ m(x, {
39
- children: [/* @__PURE__ */ r(g, {
40
- onClick: p,
41
- sx: {
42
- width: 40,
43
- height: 40,
44
- ...n && {
45
- bgcolor: "action.selected"
46
- }
47
- },
48
- children: /* @__PURE__ */ r(a, {
49
- src: o.icon,
50
- alt: o.label
51
- })
52
- }), /* @__PURE__ */ r(k, {
53
- open: Boolean(n),
54
- anchorEl: n,
55
- onClose: i,
56
- sx: {
57
- mt: 1.5,
58
- ml: 0.75,
59
- width: 180,
60
- "& .MuiMenuItem-root": {
61
- px: 1,
62
- typography: "body2",
63
- borderRadius: 0.75
64
- }
65
- },
66
- children: /* @__PURE__ */ r(f, {
67
- spacing: 0.75,
68
- children: c.map((e) => /* @__PURE__ */ m(v, {
69
- selected: e.value === o.value,
70
- onClick: () => {
71
- s(e.value), i();
72
- },
73
- children: [/* @__PURE__ */ r(a, {
74
- alt: e.label,
75
- src: e.icon,
76
- width: "24px"
77
- }), /* @__PURE__ */ r(I, {
78
- children: e.label
79
- })]
80
- }, e.value))
81
- })
82
- })]
83
- });
84
- }
85
- export {
86
- H as L
87
- };
@@ -1,35 +0,0 @@
1
- import { forwardRef as d } from "react";
2
- import { Helmet as f } from "react-helmet-async";
3
- import { Box as p } from "@mui/material";
4
- import { useLocales as u } from "@m4l/graphics";
5
- import { useDomain as h, useModuleSkeleton as g } from "@m4l/core";
6
- import { jsxs as o, Fragment as x, jsx as e } from "react/jsx-runtime";
7
- const P = d((r, t) => {
8
- const {
9
- children: m,
10
- title: n,
11
- meta: a,
12
- ...i
13
- } = r, {
14
- currentLang: l
15
- } = u(), {
16
- name: s
17
- } = h(), c = g();
18
- return /* @__PURE__ */ o(x, {
19
- children: [!c && /* @__PURE__ */ o(f, {
20
- children: [/* @__PURE__ */ e("title", {
21
- children: `${n} | ${s}`
22
- }), /* @__PURE__ */ e("html", {
23
- lang: l.value
24
- }), a]
25
- }), /* @__PURE__ */ e(p, {
26
- ref: t,
27
- ...i,
28
- children: m
29
- })]
30
- });
31
- });
32
- P.displayName = "Page";
33
- export {
34
- P
35
- };
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { PageProps } from './types';
3
- export declare const Page: import("react").ForwardRefExoticComponent<Pick<PageProps, "className" | "style" | "classes" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "translate" | "meta" | "slot" | "title" | "children" | "component" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { FormProviderProps } from './types';
3
- export declare function FormProvider(props: FormProviderProps): JSX.Element;
@@ -1,122 +0,0 @@
1
- import { useModuleDictionary as S, useModuleSkeleton as L } from "@m4l/core";
2
- import { useFormContext as V, Controller as _ } from "react-hook-form";
3
- import { Skeleton as s, Autocomplete as $, TextField as I } from "@mui/material";
4
- import { styled as l } from "@mui/material/styles";
5
- import { jsx as o, jsxs as R } from "react/jsx-runtime";
6
- const j = l("div")(() => ({
7
- display: "flex",
8
- width: "100%",
9
- flexDirection: "column"
10
- }));
11
- l("div")(({
12
- theme: t
13
- }) => ({
14
- display: "flex",
15
- justifyContent: "flex-end",
16
- paddingRight: `${t.spacing(2)}`,
17
- [t.breakpoints.down("md")]: {
18
- justifyContent: "flex-start"
19
- }
20
- }));
21
- const A = l("div")(({
22
- theme: t
23
- }) => ({
24
- width: "100%",
25
- display: "grid",
26
- gridTemplateColumns: "1fr auto",
27
- gridGap: t.spacing(2),
28
- alignItems: "center",
29
- height: `${t.spacing(4.5)}`,
30
- border: `1px solid ${t.palette.divider}`,
31
- borderRadius: `${t.spacing(1)}`,
32
- padding: `0 ${t.spacing(2)}`,
33
- [t.breakpoints.down("md")]: {
34
- width: "100%"
35
- }
36
- }));
37
- l("div")(() => ({
38
- display: "flex",
39
- width: "100%",
40
- "& .MuiAutocomplete-root": {
41
- width: "100%"
42
- }
43
- }));
44
- function D(t) {
45
- const {
46
- name: r,
47
- getOptionLabel: d,
48
- isOptionEqualToValue: u,
49
- label: p,
50
- skeletonProps: c = {},
51
- options: f,
52
- disabled: g,
53
- ...x
54
- } = t, {
55
- width: m = 100,
56
- height: h = "18px"
57
- } = c, {
58
- getLabel: b
59
- } = S(), T = L(), {
60
- control: v,
61
- getValues: w
62
- } = V(), y = w(r), k = (e) => e == null ? "" : d(e), C = (e, i) => i == null || e === null ? !1 : u(e, i);
63
- return T ? /* @__PURE__ */ o(j, {
64
- children: /* @__PURE__ */ R(A, {
65
- children: [/* @__PURE__ */ o(s, {
66
- variant: "text",
67
- width: m,
68
- height: h
69
- }, "sk1"), /* @__PURE__ */ o(s, {
70
- variant: "circular",
71
- width: 16,
72
- height: 16
73
- }, "sk2")]
74
- })
75
- }) : /* @__PURE__ */ o(_, {
76
- name: r,
77
- control: v,
78
- render: ({
79
- field: {
80
- onChange: e,
81
- value: i
82
- },
83
- fieldState: {
84
- error: a
85
- }
86
- }) => /* @__PURE__ */ o(
87
- $,
88
- {
89
- options: f,
90
- getOptionLabel: k,
91
- defaultValue: y,
92
- isOptionEqualToValue: C,
93
- disableClearable: !0,
94
- value: i || null,
95
- onChange: (n, O) => {
96
- e(O);
97
- },
98
- loadingText: "",
99
- disabled: g,
100
- noOptionsText: b("rhf_autocomplete.component_no_options"),
101
- renderInput: (n) => /* @__PURE__ */ o(I, {
102
- ...n,
103
- label: p,
104
- fullWidth: !0,
105
- SelectProps: {
106
- native: !0
107
- },
108
- InputProps: {
109
- ...n.InputProps
110
- },
111
- autoComplete: "off",
112
- error: !!a,
113
- helperText: a?.message,
114
- ...x
115
- }, `tx_async_${n.id}`)
116
- }
117
- )
118
- });
119
- }
120
- export {
121
- D as R
122
- };
@@ -1,153 +0,0 @@
1
- import { useState as p, useEffect as c, Fragment as K } from "react";
2
- import { useModuleDictionary as M, useModuleSkeleton as W, useNetwork as z, getPropertyByString as B } from "@m4l/core";
3
- import { useFormContext as N, Controller as J } from "react-hook-form";
4
- import { Skeleton as b, Autocomplete as Q, TextField as U, CircularProgress as X } from "@mui/material";
5
- import { styled as f } from "@mui/material/styles";
6
- import { jsx as i, jsxs as O } from "react/jsx-runtime";
7
- const Y = f("div")(() => ({
8
- display: "flex",
9
- width: "100%",
10
- flexDirection: "column"
11
- }));
12
- f("div")(({
13
- theme: e
14
- }) => ({
15
- display: "flex",
16
- justifyContent: "flex-end",
17
- paddingRight: `${e.spacing(2)}`,
18
- [e.breakpoints.down("md")]: {
19
- justifyContent: "flex-start"
20
- }
21
- }));
22
- const Z = f("div")(({
23
- theme: e
24
- }) => ({
25
- width: "100%",
26
- display: "grid",
27
- gridTemplateColumns: "1fr auto",
28
- gridGap: e.spacing(2),
29
- alignItems: "center",
30
- height: `${e.spacing(4.5)}`,
31
- border: `1px solid ${e.palette.divider}`,
32
- borderRadius: `${e.spacing(1)}`,
33
- padding: `0 ${e.spacing(2)}`,
34
- [e.breakpoints.down("md")]: {
35
- width: "100%"
36
- }
37
- }));
38
- function le(e) {
39
- const {
40
- name: a,
41
- getOptionLabel: T,
42
- isOptionEqualToValue: k,
43
- label: C,
44
- endPoint: d,
45
- timeout: _ = 5e3,
46
- parms: g,
47
- resultField: v = "data",
48
- skeletonProps: w = {},
49
- isRemote: S = !0,
50
- disabled: L,
51
- ...P
52
- } = e, {
53
- width: $ = 100,
54
- height: A = "18px"
55
- } = w, {
56
- getLabel: V
57
- } = M(), m = W(), {
58
- control: F,
59
- getValues: I,
60
- setValue: R
61
- } = N(), {
62
- networkOperation: E
63
- } = z(), r = I(a), [j, u] = p(r === null ? [] : [r]), [q, x] = p(!1), [l, h] = p(!1), s = q && !l && !!d && !m;
64
- c(() => {
65
- l && (h(!1), u([]), R(a, null));
66
- }, [g, d]), c(() => {
67
- !l && r && u([r]);
68
- }, [r, l]);
69
- const D = (t) => t == null ? "" : T(t), G = (t, n) => n == null || t === null ? !1 : k(t, n);
70
- return c(() => {
71
- let t = !0;
72
- if (!!s)
73
- return E({
74
- method: "GET",
75
- endPoint: d,
76
- timeout: _,
77
- parms: g,
78
- isRemote: S
79
- }).then((n) => {
80
- t && (u(B(n, v)), h(!0));
81
- }), () => {
82
- t = !1;
83
- };
84
- }, [s]), m ? /* @__PURE__ */ i(Y, {
85
- children: /* @__PURE__ */ O(Z, {
86
- children: [/* @__PURE__ */ i(b, {
87
- variant: "text",
88
- width: $,
89
- height: A
90
- }, "sk1"), /* @__PURE__ */ i(b, {
91
- variant: "circular",
92
- width: 16,
93
- height: 16
94
- }, "sk2")]
95
- })
96
- }) : /* @__PURE__ */ i(J, {
97
- name: a,
98
- control: F,
99
- render: ({
100
- field: {
101
- onChange: t,
102
- value: n
103
- },
104
- fieldState: {
105
- error: y
106
- }
107
- }) => /* @__PURE__ */ i(Q, {
108
- options: j,
109
- getOptionLabel: D,
110
- defaultValue: r,
111
- isOptionEqualToValue: G,
112
- disableClearable: !0,
113
- value: n || null,
114
- onOpen: () => {
115
- x(!0);
116
- },
117
- onClose: () => {
118
- x(!1);
119
- },
120
- onChange: (o, H) => {
121
- t(H);
122
- },
123
- disabled: L,
124
- loading: s,
125
- loadingText: "",
126
- noOptionsText: V("rhf_autocomplete.component_no_options"),
127
- renderInput: (o) => /* @__PURE__ */ i(U, {
128
- ...o,
129
- label: C,
130
- fullWidth: !0,
131
- SelectProps: {
132
- native: !0
133
- },
134
- InputProps: {
135
- ...o.InputProps,
136
- endAdornment: /* @__PURE__ */ O(K, {
137
- children: [s ? /* @__PURE__ */ i(X, {
138
- color: "primary",
139
- size: 20
140
- }, `cp_async${o.id}`) : null, o.InputProps.endAdornment]
141
- }, `fr_async_${o.id}`)
142
- },
143
- autoComplete: "off",
144
- error: !!y,
145
- helperText: y?.message,
146
- ...P
147
- }, `tx_async_${o.id}`)
148
- }, "at_async")
149
- });
150
- }
151
- export {
152
- le as R
153
- };
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SKTRHFAutocompleteAsyncWrapper: 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 PropertieValueLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
- export declare const SKTInputText: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,59 +0,0 @@
1
- import { useFormContext as c, Controller as m } from "react-hook-form";
2
- import { styled as t } from "@mui/material/styles";
3
- import { Skeleton as p, FormControlLabel as d, Checkbox as h } from "@mui/material";
4
- import { useModuleSkeleton as x } from "@m4l/core";
5
- import { jsx as e, jsxs as g, Fragment as u } from "react/jsx-runtime";
6
- const f = t("div")(() => ({
7
- display: "flex",
8
- justifyContent: "center",
9
- alignItems: "center",
10
- padding: "8px"
11
- })), k = t(p)(() => ({
12
- width: "20px",
13
- height: "20px",
14
- borderRadius: "4px"
15
- })), C = t("p")(({
16
- theme: r
17
- }) => ({
18
- ...r.typography.caption,
19
- color: r.palette.error.main,
20
- marginRight: 14,
21
- marginLeft: 14
22
- }));
23
- function j({
24
- name: r,
25
- sizeCheck: i = "small",
26
- ...l
27
- }) {
28
- const {
29
- control: a
30
- } = c(), s = x();
31
- return /* @__PURE__ */ e(d, {
32
- control: /* @__PURE__ */ e(m, {
33
- name: r,
34
- control: a,
35
- render: ({
36
- field: o,
37
- fieldState: {
38
- error: n
39
- }
40
- }) => s ? /* @__PURE__ */ e(f, {
41
- children: /* @__PURE__ */ e(k, {
42
- variant: "rectangular"
43
- })
44
- }) : /* @__PURE__ */ g(u, {
45
- children: [/* @__PURE__ */ e(h, {
46
- size: i,
47
- ...o,
48
- checked: o.value
49
- }), n?.message && /* @__PURE__ */ e(C, {
50
- children: n?.message + ""
51
- })]
52
- })
53
- }),
54
- ...l
55
- });
56
- }
57
- export {
58
- j as R
59
- };
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const WrapperSKTRHFCheckbox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
- export declare const SKTCheckSkeleton: import("@emotion/styled").StyledComponent<{
4
- animation?: false | "wave" | "pulse" | undefined;
5
- children?: import("react").ReactNode;
6
- classes?: Partial<import("@mui/material").SkeletonClasses> | undefined;
7
- height?: string | number | undefined;
8
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
9
- variant?: "text" | "rectangular" | "rounded" | "circular" | undefined;
10
- width?: string | number | undefined;
11
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
12
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
13
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "width" | "height" | "animation" | "children" | "sx" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;