@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
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { SkeletonTypographyProps } from './types';
3
+ export declare const SkeletonTypography: (props: SkeletonTypographyProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SkeletonProps } from '../types';
2
+ export declare type SkeletonTypographyProps = SkeletonProps;
@@ -1,9 +1,7 @@
1
1
  import { TypographyProps as MUITypographyProps } from '@mui/material';
2
2
  export interface SkeletonProps {
3
- isSkeleton?: boolean;
4
- width?: string | number;
5
- height?: string | number;
3
+ skeletonWidth?: string | number;
4
+ skeletongHeight?: string | number;
6
5
  }
7
- export interface TypographyProps extends MUITypographyProps {
8
- skeletonProps?: SkeletonProps;
6
+ export interface TypographyProps extends MUITypographyProps, SkeletonProps {
9
7
  }
@@ -10,7 +10,7 @@ export { LinkWithRoute } from './LinkWithRoute';
10
10
  export { LoadingButton } from './LoadingButton';
11
11
  export { MenuActions } from './MenuActions';
12
12
  export type { MenuAction, ComponentActionProps } from './MenuActions/types';
13
- export { MenuPopover } from './MenuPopover';
13
+ export { Popover } from './Popover';
14
14
  export { Pager } from './Pager';
15
15
  export type { PagerProps } from './Pager/types';
16
16
  export { getPagerComponentsDictionary } from './Pager/dicctionary';
@@ -4,9 +4,9 @@ import { Typography as I } from "@mui/material";
4
4
  import { styled as c } from "@mui/material/styles";
5
5
  import { B as _ } from "../../components/mui_extended/BoxIcon/index.e638ecc8.js";
6
6
  import { jsx as t, jsxs as f, Fragment as k } from "react/jsx-runtime";
7
- import { M as $ } from "../../components/ModalDialog/index.0ddffae6.js";
8
- import { A as b } from "../../components/CommonActions/components/ActionIntro/index.bac90f39.js";
9
- import { A } from "../../components/CommonActions/components/ActionCancel/index.7e947996.js";
7
+ import { M as $ } from "../../components/ModalDialog/index.16024a4e.js";
8
+ import { A as b } from "../../components/CommonActions/components/ActionIntro/index.ca7b6952.js";
9
+ import { A } from "../../components/CommonActions/components/ActionCancel/index.3775989f.js";
10
10
  import { b as j } from "../../utils/index.214d9542.js";
11
11
  const D = c("div")(() => ({
12
12
  display: "flex",
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { FormProviderProps } from './types';
3
+ export declare function RHFormProvider(props: FormProviderProps): JSX.Element;
@@ -1,2 +1,4 @@
1
1
  export * from './ModalContext/index';
2
2
  export * from './ModalContext/types';
3
+ export type { FormInitialValues, FormStatusLoad } from './RHFormContext/types';
4
+ export { RHFormProvider } from './RHFormContext';
@@ -1,4 +1,4 @@
1
- import { FormStatusLoad } from '../../components/hook-form/FormProvider/types';
1
+ import { FormStatusLoad } from '../../contexts/RHFormContext/types';
2
2
  import { UseFormAddEditProps } from './types';
3
3
  export declare const useFormAddEdit: (props: UseFormAddEditProps) => {
4
4
  formValues: import("react-hook-form").FieldValues;
@@ -1,5 +1,5 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
- import { FormInitialValues } from '../../components/hook-form/FormProvider/types';
2
+ import { FormInitialValues } from '../../contexts/RHFormContext/types';
3
3
  export interface UseFormAddEditProps {
4
4
  objectId?: number;
5
5
  endPoint: string;
@@ -1,5 +1,5 @@
1
1
  import { useContext as o } from "react";
2
- import { M as t } from "../../contexts/ModalContext/index.1688a07c.js";
2
+ import { M as t } from "../../contexts/ModalContext/index.699767c7.js";
3
3
  const s = () => o(t);
4
4
  export {
5
5
  s as u
package/index.js CHANGED
@@ -1,86 +1,82 @@
1
- import { I as N, a as h } from "./components/mui_extended/IconButton/index.88f3aadb.js";
1
+ import { I as E, a as N } from "./components/mui_extended/IconButton/index.4b5ce8b5.js";
2
2
  import "framer-motion";
3
3
  import "@mui/material";
4
4
  import "react/jsx-runtime";
5
- import { L as U } from "./components/animate/LoadingScreen/index.f1cec7db.js";
6
- import "react";
7
- import "react-hook-form";
8
- import { F as k } from "./components/hook-form/FormProvider/index.936cbb98.js";
5
+ import { L as O } from "./components/animate/LoadingScreen/index.f1cec7db.js";
9
6
  import "@m4l/core";
10
- import { R as z } from "./components/hook-form/RHFAutocomplete/index.6ed76d4c.js";
11
- import { R as W } from "./components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js";
12
- import { R as w } from "./components/hook-form/RHFCheckbox/index.f9ce6c39.js";
13
- import { R as K } from "./components/hook-form/RHFDateTime/index.fc5cbafe.js";
7
+ import "react-hook-form";
8
+ import { R as j } from "./components/hook-form/RHFAutocomplete/index.b7f11146.js";
9
+ import "react";
10
+ import { I as G } from "./components/Image/index.c9da2d5a.js";
11
+ import { R as V } from "./components/hook-form/RHFCheckbox/index.6a40e25f.js";
12
+ import { R as W } from "./components/hook-form/RHFDateTime/index.5ed774e3.js";
14
13
  import "@mui/x-date-pickers";
15
- import { R as X } from "./components/hook-form/RHFTextField/index.4c455f75.js";
16
- import { R as Z } from "./components/hook-form/RHFPeriod/index.0b982ae8.js";
17
- import { E as $ } from "./components/ErrorLabel/index.c8615f16.js";
18
- import { P as ro, g as to } from "./components/Period/index.8423f865.js";
19
- import { I as eo } from "./components/Icon/index.cbca79b0.js";
14
+ import { R as J, a as K } from "./components/hook-form/RHFTextField/index.bab2a2cf.js";
15
+ import { I as X } from "./components/Icon/index.f569765b.js";
20
16
  import "@mui/material/styles";
21
- import { b as so, M as po, d as io, g as no } from "./components/CommonActions/components/Actions/index.6b25caed.js";
17
+ import { R as Z } from "./components/hook-form/RHFPeriod/index.e17b1c72.js";
18
+ import { E as $ } from "./components/ErrorLabel/index.c8615f16.js";
19
+ import { P as ro, g as to } from "./components/Period/index.497b8df4.js";
20
+ import { b as eo, M as mo, d as so, g as io } from "./components/CommonActions/components/Actions/index.a908e4b9.js";
22
21
  import "@mui/material/Button";
23
- import { B as fo, L as co } from "./components/mui_extended/Button/index.3debb608.js";
24
22
  import "react-router-dom";
25
- import { M as go, a as uo } from "./contexts/ModalContext/index.1688a07c.js";
23
+ import { M as no, a as xo } from "./contexts/ModalContext/index.699767c7.js";
26
24
  import "@mui/lab";
27
25
  import "./lodash.e09401f0.js";
28
26
  import "react-dropzone";
29
- import "./react-lazy-load-image-component.45b56650.js";
30
- import { I as Do } from "./components/Image/index.e790b50b.js";
31
- import { R as Ro } from "./components/hook-form/RHFUpload/index.ed3d739f.js";
32
- import { A as Po } from "./components/mui_extended/Accordion/index.2116e423.js";
33
- import { A as Lo } from "./components/mui_extended/Avatar/index.0a2a4523.js";
34
- import { M as vo } from "./components/mui_extended/MenuPopover/index.488fc536.js";
35
- import { P as Bo, g as Io } from "./components/mui_extended/Pager/index.f0911163.js";
36
- import { T as Ho } from "./components/mui_extended/Tab/index.e0653a0a.js";
37
- import "@m4l/graphics";
38
- import { C as Eo } from "./components/CompanyLogo/index.f81c179c.js";
39
- import { D as ho, N as Oo, T as Uo, g as jo } from "./components/DataGrid/index.091572bf.js";
27
+ import { R as co } from "./components/hook-form/RHFUpload/index.cbf11b68.js";
28
+ import { A as go } from "./components/mui_extended/Accordion/index.49f5df8e.js";
29
+ import { A as uo } from "./components/mui_extended/Avatar/index.dadb0528.js";
30
+ import { B as Ro, L as yo } from "./components/mui_extended/Button/index.16591787.js";
31
+ import { L as Ao, P as Co } from "./components/mui_extended/Popover/index.305f2ea5.js";
32
+ import { P as vo, g as Ho } from "./components/mui_extended/Pager/index.80c2f8a0.js";
33
+ import { T as bo } from "./components/mui_extended/Tab/index.e0653a0a.js";
34
+ import { D as Io, N as To, T as So, g as Eo } from "./components/DataGrid/index.5cbf0dd8.js";
40
35
  import "react-dnd";
41
36
  import "react-dnd-html5-backend";
42
- import { S as Go } from "./components/ScrollBar/index.39eeb2de.js";
43
- import { D as Vo, d as Wo, g as qo } from "./components/DynamicFilter/index.7efecd5d.js";
37
+ import "@m4l/graphics";
38
+ import { S as ho } from "./components/ScrollBar/index.39eeb2de.js";
39
+ import { D as Uo, d as jo, g as ko } from "./components/DynamicFilter/index.8a571617.js";
44
40
  import "simplebar/dist/simplebar.min.css";
41
+ import { R as zo } from "./components/contexts/RHFormContext/index.f8241292.js";
45
42
  import "yup";
46
- import { L as Jo } from "./components/LanguagePopover/index.15f7dea7.js";
47
43
  import "./react-draggable.20e95c61.js";
48
- import { M as Qo, d as Xo, g as Yo } from "./components/ModalDialog/index.0ddffae6.js";
49
- import { R as _o } from "./components/Resizeable/index.45995d2b.js";
50
- import { N as or, d as rr, g as tr } from "./components/NoItemSelected/index.12f0ca67.js";
51
- import { O as er, d as mr, g as sr } from "./components/ObjectLogs/index.64f06b3d.js";
44
+ import { M as wo, d as Wo, g as qo } from "./components/ModalDialog/index.16024a4e.js";
45
+ import { R as Ko } from "./components/Resizeable/index.45995d2b.js";
46
+ import { N as Xo, d as Yo, g as Zo } from "./components/NoItemSelected/index.9609a7f7.js";
47
+ import { O as $o, d as or, g as rr } from "./components/ObjectLogs/index.ac2bfa48.js";
52
48
  import "./react-json-view.f56a7f8e.js";
53
- import { P as ir } from "./components/PaperForm/index.d7c74064.js";
54
- import { P as xr } from "./components/Page/index.6d69977e.js";
55
- import { P as cr } from "./components/PropertyValue/index.ab3dd7e9.js";
49
+ import { P as ar } from "./components/PaperForm/index.3f8c7ef2.js";
50
+ import { H as mr } from "./components/Page/index.fc660ee5.js";
51
+ import { P as ir } from "./components/PropertyValue/index.ab3dd7e9.js";
56
52
  import "./react-splitter-layout.7810ac1b.js";
57
- import { S as dr } from "./components/SplitLayout/index.4032673d.js";
58
- import { v as ur } from "./components/animate/variants/fade.b561c0fc.js";
59
- import { v as Dr } from "./components/animate/variants/bounce.784aaaaa.js";
60
- import { v as Rr } from "./components/animate/variants/container.11f82b76.js";
61
- import { v as Pr, a as Cr, b as Lr } from "./components/animate/variants/transition.bd46b9ce.js";
62
- import { M as vr } from "./components/animate/MotionContainer/index.8d9f9d80.js";
63
- import { M as Br } from "./components/animate/MotionLazyContainer/index.572dd012.js";
64
- import { R as Tr } from "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
65
- import { R as Sr } from "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
66
- import { R as Nr } from "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
67
- import { B as Or } from "./components/mui_extended/BoxIcon/index.e638ecc8.js";
68
- import { B as jr } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
69
- import { L as Gr } from "./components/mui_extended/LinkWithRoute/index.d4b263de.js";
70
- import { T as Vr } from "./components/mui_extended/Typography/index.0c4604b3.js";
71
- import { B as qr, c as wr } from "./components/formatters/BooleanFormatter/index.cca53b7f.js";
72
- import { D as Kr, c as Qr } from "./components/formatters/DateFormatter/index.ad8d9b8e.js";
73
- import { P as Yr, a as Zr, U as _r, e as $r, b as ot, c as rt, d as tt, g as at } from "./components/formatters/index.55856d65.js";
74
- import { A as mt } from "./components/CommonActions/components/ActionCancel/index.7e947996.js";
75
- import { A as pt } from "./components/CommonActions/components/ActionIntro/index.bac90f39.js";
76
- import { A as nt } from "./components/CommonActions/components/ActionFormCancel/index.63405f6c.js";
77
- import { A as ft } from "./components/CommonActions/components/ActionFormIntro/index.ca4d2674.js";
78
- import { L as lt } from "./components/Loadable/index.f5518558.js";
79
- import { S as gt } from "./components/ScrollToTop/index.e06f98f6.js";
80
- import { u as Ft } from "./hooks/useFormAddEdit/index.d4845f1a.js";
81
- import { u as yt } from "./hooks/useModal/index.cdd84702.js";
82
- import { L as At } from "./assets/Logo/index.228dcb5a.js";
83
- import "./node_modules.168cb897.js";
53
+ import { S as nr } from "./components/SplitLayout/index.4032673d.js";
54
+ import { v as fr } from "./components/animate/variants/fade.b561c0fc.js";
55
+ import { v as lr } from "./components/animate/variants/bounce.784aaaaa.js";
56
+ import { v as gr } from "./components/animate/variants/container.11f82b76.js";
57
+ import { v as ur, a as Dr, b as Rr } from "./components/animate/variants/transition.bd46b9ce.js";
58
+ import { M as Pr } from "./components/animate/MotionContainer/index.8d9f9d80.js";
59
+ import { M as Cr } from "./components/animate/MotionLazyContainer/index.572dd012.js";
60
+ import { R as vr } from "./components/hook-form/RHFAutocompleteAsync/index.97a5a66e.js";
61
+ import { R as Mr } from "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
62
+ import { R as Br } from "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
63
+ import { R as Tr } from "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
64
+ import { B as Er } from "./components/mui_extended/BoxIcon/index.e638ecc8.js";
65
+ import { B as hr } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
66
+ import { L as Ur } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
67
+ import { T as kr } from "./components/mui_extended/Typography/index.e5494696.js";
68
+ import { B as zr, c as Vr } from "./components/formatters/BooleanFormatter/index.3ec56305.js";
69
+ import { D as Wr, c as qr } from "./components/formatters/DateFormatter/index.08d8823b.js";
70
+ import { P as Kr, a as Qr, U as Xr, e as Yr, b as Zr, c as _r, d as $r, g as ot } from "./components/formatters/index.6959c2de.js";
71
+ import { A as tt } from "./components/CommonActions/components/ActionCancel/index.3775989f.js";
72
+ import { A as et } from "./components/CommonActions/components/ActionIntro/index.ca7b6952.js";
73
+ import { A as st } from "./components/CommonActions/components/ActionFormCancel/index.d69d9e0f.js";
74
+ import { A as pt } from "./components/CommonActions/components/ActionFormIntro/index.ca4d2674.js";
75
+ import { L as xt } from "./components/Loadable/index.f5518558.js";
76
+ import { S as ct } from "./components/ScrollToTop/index.e06f98f6.js";
77
+ import { u as dt } from "./hooks/useFormAddEdit/index.d4845f1a.js";
78
+ import { u as Ft } from "./hooks/useModal/index.8201ccec.js";
79
+ import { L as Dt } from "./assets/Logo/index.228dcb5a.js";
84
80
  import "./utils/index.214d9542.js";
85
81
  import "./react-data-grid.d46d625e.js";
86
82
  import "clsx";
@@ -88,97 +84,98 @@ import "./commonjs.565e6834.js";
88
84
  import "prop-types";
89
85
  import "react-dom";
90
86
  import "simplebar-react";
87
+ import "./node_modules.168cb897.js";
91
88
  import "./react-resizable.5277deaf.js";
92
89
  import "react-helmet-async";
93
90
  export {
94
- Po as Accordion,
95
- mt as ActionCancel,
96
- nt as ActionFormCancel,
97
- ft as ActionFormIntro,
98
- pt as ActionIntro,
99
- so as Actions,
100
- Lo as Avatar,
101
- qr as BooleanFormatter,
102
- Or as BoxIcon,
103
- jr as Breadcrumbs,
104
- fo as Button,
105
- Eo as CompanyLogo,
106
- ho as DataGrid,
107
- Kr as DateFormatter,
108
- Vo as DynamicFilter,
91
+ go as Accordion,
92
+ tt as ActionCancel,
93
+ st as ActionFormCancel,
94
+ pt as ActionFormIntro,
95
+ et as ActionIntro,
96
+ eo as Actions,
97
+ uo as Avatar,
98
+ zr as BooleanFormatter,
99
+ Er as BoxIcon,
100
+ hr as Breadcrumbs,
101
+ Ro as Button,
102
+ Io as DataGrid,
103
+ Wr as DateFormatter,
104
+ Uo as DynamicFilter,
109
105
  $ as ErrorLabel,
110
- k as FormProvider,
111
- eo as Icon,
112
- N as IconButton,
113
- h as IconButtonAnimate,
114
- Do as Image,
115
- Jo as LanguagePopover,
116
- Gr as LinkWithRoute,
117
- lt as Loadable,
118
- co as LoadingButton,
119
- U as LoadingScreen,
120
- At as Logo,
121
- po as MenuActions,
122
- vo as MenuPopover,
123
- go as ModalContext,
124
- Qo as ModalDialog,
125
- uo as ModalProvider,
126
- vr as MotionContainer,
127
- Br as MotionLazyContainer,
128
- or as NoItemSelected,
129
- Oo as NumberEditor,
130
- er as ObjectLogs,
131
- xr as Page,
132
- Bo as Pager,
133
- ir as PaperForm,
106
+ mr as HelmetPage,
107
+ X as Icon,
108
+ E as IconButton,
109
+ N as IconButtonAnimate,
110
+ G as Image,
111
+ Ao as LanguagePopover,
112
+ Ur as LinkWithRoute,
113
+ xt as Loadable,
114
+ yo as LoadingButton,
115
+ O as LoadingScreen,
116
+ Dt as Logo,
117
+ mo as MenuActions,
118
+ no as ModalContext,
119
+ wo as ModalDialog,
120
+ xo as ModalProvider,
121
+ Pr as MotionContainer,
122
+ Cr as MotionLazyContainer,
123
+ Xo as NoItemSelected,
124
+ To as NumberEditor,
125
+ $o as ObjectLogs,
126
+ vo as Pager,
127
+ ar as PaperForm,
134
128
  ro as Period,
135
- Yr as PointsFormatter,
136
- Zr as PriceFormatter,
137
- cr as PropertyValue,
138
- z as RHFAutocomplete,
139
- W as RHFAutocompleteAsync,
140
- w as RHFCheckbox,
141
- K as RHFDateTime,
142
- Tr as RHFMultiCheckbox,
129
+ Kr as PointsFormatter,
130
+ Co as Popover,
131
+ Qr as PriceFormatter,
132
+ ir as PropertyValue,
133
+ j as RHFAutocomplete,
134
+ vr as RHFAutocompleteAsync,
135
+ V as RHFCheckbox,
136
+ W as RHFDateTime,
137
+ Mr as RHFMultiCheckbox,
143
138
  Z as RHFPeriod,
144
- Nr as RHFRadioGroup,
145
- Sr as RHFSelect,
146
- X as RHFTextField,
147
- Ro as RHFUploadImage,
148
- _o as Resizeable,
149
- Go as ScrollBar,
150
- gt as ScrollToTop,
151
- dr as SplitLayout,
152
- Ho as Tab,
153
- Uo as TextEditor,
154
- Vr as Typography,
155
- _r as UncertaintyFormatter,
156
- wr as columnBooleanFormatter,
157
- Qr as columnDateFormatter,
158
- $r as columnNestedValueFormatter,
159
- ot as columnPointsFormatter,
160
- rt as columnUncertaintyFormatter,
161
- io as defaultCommonActionsDictionary,
162
- Wo as defaultDynamicFilterDictionary,
163
- tt as defaultFormattersDictionary,
164
- Xo as defaultModalDialogDictionary,
165
- rr as defaultNoItemSelectedDictionary,
166
- mr as defaultObjectLogDictionary,
167
- no as getCommonActionsDictionary,
168
- qo as getDynamicFilterComponentsDictionary,
169
- at as getFormattersComponentsDictionary,
170
- jo as getGridComponentsDictionary,
171
- Yo as getModalDialogComponentsDictionary,
172
- tr as getNoItemSelectedComponentsDictionary,
173
- sr as getObjectLogsComponentsDictionary,
174
- Io as getPagerComponentsDictionary,
139
+ Tr as RHFRadioGroup,
140
+ Br as RHFSelect,
141
+ J as RHFTextField,
142
+ K as RHFTextFieldPassword,
143
+ co as RHFUploadImage,
144
+ zo as RHFormProvider,
145
+ Ko as Resizeable,
146
+ ho as ScrollBar,
147
+ ct as ScrollToTop,
148
+ nr as SplitLayout,
149
+ bo as Tab,
150
+ So as TextEditor,
151
+ kr as Typography,
152
+ Xr as UncertaintyFormatter,
153
+ Vr as columnBooleanFormatter,
154
+ qr as columnDateFormatter,
155
+ Yr as columnNestedValueFormatter,
156
+ Zr as columnPointsFormatter,
157
+ _r as columnUncertaintyFormatter,
158
+ so as defaultCommonActionsDictionary,
159
+ jo as defaultDynamicFilterDictionary,
160
+ $r as defaultFormattersDictionary,
161
+ Wo as defaultModalDialogDictionary,
162
+ Yo as defaultNoItemSelectedDictionary,
163
+ or as defaultObjectLogDictionary,
164
+ io as getCommonActionsDictionary,
165
+ ko as getDynamicFilterComponentsDictionary,
166
+ ot as getFormattersComponentsDictionary,
167
+ Eo as getGridComponentsDictionary,
168
+ qo as getModalDialogComponentsDictionary,
169
+ Zo as getNoItemSelectedComponentsDictionary,
170
+ rr as getObjectLogsComponentsDictionary,
171
+ Ho as getPagerComponentsDictionary,
175
172
  to as getPeriodComponetsDictionary,
176
- Ft as useFormAddEdit,
177
- yt as useModal,
178
- Dr as varBounce,
179
- Rr as varContainer,
180
- ur as varFade,
181
- Pr as varTranEnter,
182
- Cr as varTranExit,
183
- Lr as varTranHover
173
+ dt as useFormAddEdit,
174
+ Ft as useModal,
175
+ lr as varBounce,
176
+ gr as varContainer,
177
+ fr as varFade,
178
+ ur as varTranEnter,
179
+ Dr as varTranExit,
180
+ Rr as varTranHover
184
181
  };
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@m4l/core": "*",
7
7
  "@m4l/graphics": "*",
8
+ "lodash.debounce": "^4.0.8",
9
+ "lodash.throttle": "^4.1.1",
8
10
  "react-helmet-async": "^1.3.0",
9
11
  "react-hook-form": "^7.33.1",
10
12
  "react-router-dom": "^6.3.0",
package/utils/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Palette, Theme } from '@mui/material/styles';
2
2
  import { VariantColor } from './types';
3
3
  export declare const getPaletteColor: (palette: Palette, s: string) => any;
4
- export declare const getVariantColor: (variant: VariantColor | undefined) => "warning" | "info" | "primary" | "error";
4
+ export declare const getVariantColor: (variant: VariantColor | undefined) => "error" | "warning" | "info" | "primary";
5
5
  export declare const getThemeVariantColor: (theme: Theme, variant: VariantColor | undefined) => string;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { CompanyLogoProps } from './types';
3
- export declare const CompanyLogo: (props: CompanyLogoProps) => JSX.Element;
@@ -1,75 +0,0 @@
1
- import { useEnvironment as g } from "@m4l/core";
2
- import { useResponsive as m } from "@m4l/graphics";
3
- import { Skeleton as x } from "@mui/material";
4
- import { styled as s } from "@mui/material/styles";
5
- import { I as d } from "../Image/index.e790b50b.js";
6
- import { jsx as t } from "react/jsx-runtime";
7
- s("div")(({
8
- theme: c
9
- }) => ({
10
- [c.breakpoints.up("md")]: {
11
- display: "flex"
12
- }
13
- }));
14
- s("header")(({
15
- theme: c
16
- }) => ({
17
- top: 0,
18
- lineHeight: 0,
19
- width: "100%",
20
- display: "flex",
21
- alignItems: "center",
22
- position: "absolute",
23
- padding: c.spacing(3),
24
- justifyContent: "space-between",
25
- [c.breakpoints.up("md")]: {
26
- alignItems: "flex-start",
27
- padding: c.spacing(7, 5, 0, 7)
28
- }
29
- }));
30
- s("div")(({
31
- theme: c
32
- }) => ({
33
- maxWidth: 480,
34
- margin: "auto",
35
- display: "flex",
36
- minHeight: "100vh",
37
- flexDirection: "column",
38
- justifyContent: "center",
39
- padding: c.spacing(12, 0)
40
- }));
41
- const w = s("div")(({
42
- theme: c
43
- }) => ({
44
- 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`,
45
- 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`,
46
- [c.breakpoints.up("md")]: {
47
- 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`,
48
- 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`
49
- }
50
- })), f = (c) => {
51
- const {
52
- size: e = "small",
53
- isSkeleton: a,
54
- ...i
55
- } = c, o = e === "small" ? "50px" : "auto", p = e === "small" ? "50px" : "380px", {
56
- host_static_assets: l,
57
- environment_assets: r
58
- } = g(), n = m("up", "md");
59
- return a ? /* @__PURE__ */ t(w, {
60
- children: /* @__PURE__ */ t(x, {
61
- variant: "rectangular",
62
- width: n ? 380 : 50,
63
- height: n ? 97 : 50
64
- })
65
- }) : /* @__PURE__ */ t(d, {
66
- src: `${l}/${r}/frontend/commons/assets/icons/${e === "small" ? "isotipo_m4l.svg" : "logotipo_m4l.svg"}`,
67
- effect: "opacity",
68
- width: p,
69
- height: o,
70
- ...i
71
- });
72
- };
73
- export {
74
- f as C
75
- };
@@ -1,5 +0,0 @@
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>, {}>;
@@ -1,6 +0,0 @@
1
- declare type LogoSize = 'small' | 'normal';
2
- export interface CompanyLogoProps {
3
- size?: LogoSize;
4
- isSkeleton?: boolean;
5
- }
6
- export {};