@m4l/components 0.1.6 → 0.1.8

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 (44) hide show
  1. package/components/DataGrid/components/editors/TextEditor/index.d.ts +6 -0
  2. package/components/DataGrid/index.js +66 -4
  3. package/components/DataGrid/types.d.ts +3 -2
  4. package/components/DynamicFilter/index.js +1 -1
  5. package/components/LanguagePopover/index.js +2 -1
  6. package/components/ModalDialog/index.js +1 -1
  7. package/components/NoItemSelected/index.d.ts +1 -2
  8. package/components/NoItemSelected/index.js +3 -5
  9. package/components/PaperForm/index.js +5 -4
  10. package/components/PaperForm/types.d.ts +1 -2
  11. package/components/PropertyValue/index.js +3 -2
  12. package/components/PropertyValue/types.d.ts +0 -1
  13. package/components/ScrollBar/index.js +2 -2
  14. package/components/hook-form/RHFAutocomplete/index.js +4 -2
  15. package/components/hook-form/RHFAutocomplete/types.d.ts +0 -1
  16. package/components/hook-form/RHFAutocompleteAsync/index.js +16 -5
  17. package/components/hook-form/RHFAutocompleteAsync/types.d.ts +1 -2
  18. package/components/hook-form/RHFCheckbox/index.d.ts +2 -1
  19. package/components/hook-form/RHFCheckbox/index.js +24 -8
  20. package/components/hook-form/RHFCheckbox/types.d.ts +0 -1
  21. package/components/hook-form/RHFDateTime/index.js +2 -2
  22. package/components/hook-form/RHFDateTime/types.d.ts +0 -1
  23. package/components/hook-form/RHFTextField/index.js +41 -17
  24. package/components/hook-form/RHFTextField/types.d.ts +0 -1
  25. package/components/hook-form/RHFUpload/index.js +3 -2
  26. package/components/index.d.ts +2 -1
  27. package/components/mui_extended/Accordion/index.js +6 -6
  28. package/components/mui_extended/Accordion/types.d.ts +0 -1
  29. package/components/mui_extended/Button/index.js +25 -25
  30. package/components/mui_extended/Tab/index.js +2 -1
  31. package/components/mui_extended/index.d.ts +1 -0
  32. package/index.js +5 -7
  33. package/lodash.js +23 -512
  34. package/package.json +3 -2
  35. package/react-draggable.js +4 -4
  36. package/react-resizable.js +4 -4
  37. package/react-splitter-layout.js +2 -2
  38. package/utils/index.js +1 -190
  39. package/can-use-dom.js +0 -3
  40. package/components/NoItemSelected/types.d.ts +0 -10
  41. package/core-js.js +0 -2684
  42. package/juggle.js +0 -325
  43. package/simplebar.js +0 -850
  44. package/style.css +0 -1
@@ -1,21 +1,21 @@
1
1
  import { Accordion as Accordion$1, AccordionSummary, Skeleton, AccordionDetails } from "@mui/material";
2
2
  import { I as IconButton } from "../IconButton/index.js";
3
- import { useEnvironment } from "@m4l/core";
3
+ import { useEnvironment, useModuleSkeleton } from "@m4l/core";
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
  function Accordion(props) {
6
- const {
7
- host_static_assets,
8
- environment_assets
9
- } = useEnvironment();
10
6
  const {
11
7
  label,
12
- isSkeleton,
13
8
  SKTWidht,
14
9
  SKTHeight,
15
10
  children,
16
11
  accordionProps,
17
12
  summaryProps
18
13
  } = props;
14
+ const {
15
+ host_static_assets,
16
+ environment_assets
17
+ } = useEnvironment();
18
+ const isSkeleton = useModuleSkeleton();
19
19
  return /* @__PURE__ */ jsxs(Accordion$1, {
20
20
  variant: "outlined",
21
21
  square: true,
@@ -5,7 +5,6 @@ export declare type AccordionProps = {
5
5
  children: ReactNode;
6
6
  accordionProps?: MUIAccordionProps;
7
7
  summaryProps?: AccordionSummaryProps;
8
- isSkeleton?: boolean;
9
8
  SKTWidht?: string | number;
10
9
  SKTHeight?: string | number;
11
10
  };
@@ -1,13 +1,31 @@
1
- import { LoadingButton as LoadingButton$1 } from "@mui/lab";
2
- import { Skeleton, styled as styled$1 } from "@mui/material";
3
- import { styled, alpha } from "@mui/material/styles";
4
- import { jsx } from "react/jsx-runtime";
5
1
  import { useModuleSkeleton, useEnvironment } from "@m4l/core";
6
2
  import MuiButton from "@mui/material/Button";
3
+ import { styled, Skeleton } from "@mui/material";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { LoadingButton as LoadingButton$1 } from "@mui/lab";
6
+ import { styled as styled$1, alpha } from "@mui/material/styles";
7
7
  import { I as IconButton } from "../IconButton/index.js";
8
8
  import { u as useBase } from "../../DynamicFilter/index.js";
9
9
  import { useMemo } from "react";
10
- const WrapperSKTLoadingButton = styled("div")(({
10
+ const SKTButton = styled(Skeleton)(({
11
+ theme
12
+ }) => ({
13
+ borderRadius: theme.spacing(0.5)
14
+ }));
15
+ const Button = (props) => {
16
+ const isSkeleton = useModuleSkeleton();
17
+ if (isSkeleton) {
18
+ return /* @__PURE__ */ jsx(SKTButton, {
19
+ variant: "rectangular",
20
+ width: "100px",
21
+ height: "36px"
22
+ });
23
+ }
24
+ return /* @__PURE__ */ jsx(MuiButton, {
25
+ ...props
26
+ });
27
+ };
28
+ const WrapperSKTLoadingButton = styled$1("div")(({
11
29
  theme
12
30
  }) => ({
13
31
  display: "flex",
@@ -37,25 +55,7 @@ const LoadingButton = (props) => {
37
55
  children
38
56
  });
39
57
  };
40
- const SKTButton = styled$1(Skeleton)(({
41
- theme
42
- }) => ({
43
- borderRadius: theme.spacing(0.5)
44
- }));
45
- const Button = (props) => {
46
- const isSkeleton = useModuleSkeleton();
47
- if (isSkeleton) {
48
- return /* @__PURE__ */ jsx(SKTButton, {
49
- variant: "rectangular",
50
- width: "100px",
51
- height: "36px"
52
- });
53
- }
54
- return /* @__PURE__ */ jsx(MuiButton, {
55
- ...props
56
- });
57
- };
58
- const SKTWrapperFilterButton = styled("div")(({
58
+ const SKTWrapperFilterButton = styled$1("div")(({
59
59
  theme
60
60
  }) => ({
61
61
  display: "flex",
@@ -65,7 +65,7 @@ const SKTWrapperFilterButton = styled("div")(({
65
65
  height: theme.spacing(3.75),
66
66
  background: alpha(theme.palette.primary.main, 0.3)
67
67
  }));
68
- const WrapperFilterButton = styled("div")(() => ({
68
+ const WrapperFilterButton = styled$1("div")(() => ({
69
69
  "&.isDirty": {
70
70
  animationName: "dirtyEffect",
71
71
  animationDuration: "1s",
@@ -1,3 +1,4 @@
1
+ import { useModuleSkeleton } from "@m4l/core";
1
2
  import { Skeleton, Tab as Tab$1 } from "@mui/material";
2
3
  import { styled } from "@mui/material/styles";
3
4
  import { jsx } from "react/jsx-runtime";
@@ -8,11 +9,11 @@ const SKTTabWrapper = styled("div")(({
8
9
  }));
9
10
  function Tab(props) {
10
11
  const {
11
- isSkeleton,
12
12
  SKTWidth,
13
13
  SKTHeight,
14
14
  ...other
15
15
  } = props;
16
+ const isSkeleton = useModuleSkeleton();
16
17
  if (isSkeleton) {
17
18
  return /* @__PURE__ */ jsx(SKTTabWrapper, {
18
19
  children: /* @__PURE__ */ jsx(Skeleton, {
@@ -4,6 +4,7 @@ export { type AvatarProps } from './Avatar/types';
4
4
  export { BoxIcon } from './BoxIcon';
5
5
  export { Breadcrumbs } from './Breadcrumbs';
6
6
  export type { TLink } from './Breadcrumbs/types';
7
+ export { Button } from './Button';
7
8
  export { IconButton } from './IconButton';
8
9
  export { LinkWithRoute } from './LinkWithRoute';
9
10
  export { LoadingButton } from './LoadingButton';
package/index.js CHANGED
@@ -22,22 +22,22 @@ export { R as RHFUploadImage } from "./components/hook-form/RHFUpload/index.js";
22
22
  export { I as Icon } from "./components/Icon/index.js";
23
23
  export { A as Avatar } from "./components/mui_extended/Avatar/index.js";
24
24
  import "react-router-dom";
25
+ import "@mui/material/Button";
26
+ export { B as Button, L as LoadingButton } from "./components/mui_extended/Button/index.js";
25
27
  import "@mui/lab";
26
- export { L as LoadingButton } from "./components/mui_extended/Button/index.js";
27
28
  export { M as MenuPopover } from "./components/mui_extended/MenuPopover/index.js";
28
29
  export { b as Actions, M as MenuActions, d as defaultCommonActionsDictionary, g as getCommonActionsDictionary } from "./components/CommonActions/components/Actions/index.js";
29
30
  export { P as Pager, g as getPagerComponentsDictionary } from "./components/mui_extended/Pager/index.js";
30
31
  export { T as Tab } from "./components/mui_extended/Tab/index.js";
31
32
  import "@m4l/graphics";
32
33
  export { C as CompanyLogo } from "./components/CompanyLogo/index.js";
33
- export { D as DataGrid, g as getGridComponentsDictionary } from "./components/DataGrid/index.js";
34
+ export { D as DataGrid, N as NumberEditor, T as TextEditor, g as getGridComponentsDictionary } from "./components/DataGrid/index.js";
34
35
  import "react-dnd";
35
36
  import "react-dnd-html5-backend";
36
37
  export { M as ModalContext, a as ModalProvider } from "./contexts/ModalContext/index.js";
37
- import "@mui/material/Button";
38
38
  export { S as ScrollBar } from "./components/ScrollBar/index.js";
39
39
  export { D as DynamicFilter, d as defaultDynamicFilterDictionary, g as getDynamicFilterComponentsDictionary } from "./components/DynamicFilter/index.js";
40
- import "./simplebar.js";
40
+ import "simplebar/dist/simplebar.min.css";
41
41
  export { L as LanguagePopover } from "./components/LanguagePopover/index.js";
42
42
  import "./react-draggable.js";
43
43
  export { M as ModalDialog, d as defaultModalDialogDictionary, g as getModalDialogComponentsDictionary } from "./components/ModalDialog/index.js";
@@ -81,10 +81,8 @@ import "react-dom";
81
81
  import "prop-types";
82
82
  import "clsx";
83
83
  import "./utils/index.js";
84
- import "./juggle.js";
85
84
  import "./react-data-grid.js";
85
+ import "simplebar-react";
86
86
  import "yup";
87
- import "./core-js.js";
88
- import "./can-use-dom.js";
89
87
  import "./react-resizable.js";
90
88
  import "react-helmet-async";