@m4l/components 0.1.15 → 0.1.16

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.228dcb5a.js +86 -0
  2. package/commonjs.565e6834.js +12 -0
  3. package/components/CommonActions/components/ActionCancel/index.da4bb535.js +17 -0
  4. package/components/CommonActions/components/ActionFormCancel/index.9362b6d7.js +49 -0
  5. package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +31 -0
  6. package/components/CommonActions/components/ActionIntro/index.4f20aab4.js +18 -0
  7. package/components/CommonActions/components/Actions/index.2dd9c528.js +743 -0
  8. package/components/CompanyLogo/{index.js → index.f81c179c.js} +42 -48
  9. package/components/DataGrid/index.551f8e82.js +894 -0
  10. package/components/DynamicFilter/index.1fbc198a.js +1158 -0
  11. package/components/ErrorLabel/index.c8615f16.js +19 -0
  12. package/components/Icon/index.cbca79b0.js +70 -0
  13. package/components/Image/index.e790b50b.js +122 -0
  14. package/components/LanguagePopover/index.f28a7043.js +87 -0
  15. package/components/Loadable/index.f5518558.js +15 -0
  16. package/components/ModalDialog/index.79c802d0.js +168 -0
  17. package/components/NoItemSelected/{index.js → index.12f0ca67.js} +43 -50
  18. package/components/ObjectLogs/index.be4e5cd2.js +266 -0
  19. package/components/Page/index.6d69977e.js +35 -0
  20. package/components/PaperForm/index.d7c74064.js +105 -0
  21. package/components/Period/index.4e2d0244.js +160 -0
  22. package/components/PropertyValue/index.ab3dd7e9.js +116 -0
  23. package/components/Resizeable/{index.js → index.45995d2b.js} +21 -19
  24. package/components/ScrollBar/index.39eeb2de.js +49 -0
  25. package/components/ScrollToTop/index.e06f98f6.js +11 -0
  26. package/components/SplitLayout/{index.js → index.4032673d.js} +35 -35
  27. package/components/animate/LoadingScreen/{index.js → index.f1cec7db.js} +29 -27
  28. package/components/animate/MotionContainer/index.8d9f9d80.js +30 -0
  29. package/components/animate/MotionLazyContainer/index.572dd012.js +15 -0
  30. package/components/animate/features.0fbf41e1.js +5 -0
  31. package/components/animate/variants/{bounce.js → bounce.784aaaaa.js} +15 -16
  32. package/components/animate/variants/container.11f82b76.js +20 -0
  33. package/components/animate/variants/fade.b561c0fc.js +59 -0
  34. package/components/animate/variants/{index.js → index.7a912140.js} +0 -0
  35. package/components/animate/variants/transition.bd46b9ce.js +15 -0
  36. package/components/formatters/BooleanFormatter/index.cca53b7f.js +42 -0
  37. package/components/formatters/DateFormatter/index.ad8d9b8e.js +57 -0
  38. package/components/formatters/index.55856d65.js +106 -0
  39. package/components/hook-form/FormProvider/index.257acd9f.js +55 -0
  40. package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +122 -0
  41. package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +153 -0
  42. package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +59 -0
  43. package/components/hook-form/RHFDateTime/index.fc5cbafe.js +68 -0
  44. package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +34 -0
  45. package/components/hook-form/RHFPeriod/index.342a725f.js +45 -0
  46. package/components/hook-form/RHFRadioGroup/index.b3335e13.js +43 -0
  47. package/components/hook-form/RHFSelect/index.b6ca8bb2.js +36 -0
  48. package/components/hook-form/RHFTextField/index.4c455f75.js +77 -0
  49. package/components/hook-form/RHFUpload/index.ed3d739f.js +244 -0
  50. package/components/mui_extended/Accordion/index.2116e423.js +103 -0
  51. package/components/mui_extended/Avatar/index.0a2a4523.js +32 -0
  52. package/components/mui_extended/BoxIcon/index.e638ecc8.js +22 -0
  53. package/components/mui_extended/Breadcrumbs/index.5e37d903.js +89 -0
  54. package/components/mui_extended/Button/index.ce236540.js +110 -0
  55. package/components/mui_extended/IconButton/index.88f3aadb.js +98 -0
  56. package/components/mui_extended/LinkWithRoute/index.d4b263de.js +28 -0
  57. package/components/mui_extended/MenuPopover/index.488fc536.js +131 -0
  58. package/components/mui_extended/Pager/index.b636ff30.js +126 -0
  59. package/components/mui_extended/Tab/index.e0653a0a.js +28 -0
  60. package/components/mui_extended/Typography/index.0c4604b3.js +22 -0
  61. package/contexts/ModalContext/index.0f9e02ca.js +150 -0
  62. package/hooks/useFormAddEdit/index.d4845f1a.js +26 -0
  63. package/hooks/useModal/index.d72accf7.js +6 -0
  64. package/index.js +163 -71
  65. package/lodash.e09401f0.js +32 -0
  66. package/node_modules.168cb897.js +55 -0
  67. package/package.json +1 -1
  68. package/react-data-grid.d46d625e.js +2115 -0
  69. package/react-draggable.20e95c61.js +714 -0
  70. package/react-json-view.f56a7f8e.js +2762 -0
  71. package/react-lazy-load-image-component.45b56650.js +784 -0
  72. package/react-resizable.5277deaf.js +371 -0
  73. package/react-splitter-layout.7810ac1b.js +165 -0
  74. package/utils/index.214d9542.js +435 -0
  75. package/assets/Logo/index.js +0 -91
  76. package/commonjs.js +0 -9
  77. package/components/CommonActions/components/ActionCancel/index.js +0 -15
  78. package/components/CommonActions/components/ActionFormCancel/index.js +0 -62
  79. package/components/CommonActions/components/ActionFormIntro/index.js +0 -35
  80. package/components/CommonActions/components/ActionIntro/index.js +0 -16
  81. package/components/CommonActions/components/Actions/index.js +0 -859
  82. package/components/DataGrid/index.js +0 -1067
  83. package/components/DynamicFilter/index.js +0 -1573
  84. package/components/ErrorLabel/index.js +0 -18
  85. package/components/Icon/index.js +0 -80
  86. package/components/Image/index.js +0 -128
  87. package/components/LanguagePopover/index.js +0 -93
  88. package/components/Loadable/index.js +0 -13
  89. package/components/ModalDialog/index.js +0 -180
  90. package/components/ObjectLogs/index.js +0 -284
  91. package/components/Page/index.js +0 -36
  92. package/components/PaperForm/index.js +0 -110
  93. package/components/Period/index.js +0 -230
  94. package/components/PropertyValue/index.js +0 -142
  95. package/components/ScrollBar/index.js +0 -52
  96. package/components/ScrollToTop/index.js +0 -10
  97. package/components/animate/MotionContainer/index.js +0 -31
  98. package/components/animate/MotionLazyContainer/index.js +0 -13
  99. package/components/animate/features.js +0 -2
  100. package/components/animate/variants/container.js +0 -20
  101. package/components/animate/variants/fade.js +0 -61
  102. package/components/animate/variants/transition.js +0 -16
  103. package/components/formatters/BooleanFormatter/index.js +0 -52
  104. package/components/formatters/DateFormatter/index.js +0 -66
  105. package/components/formatters/index.js +0 -112
  106. package/components/hook-form/FormProvider/index.js +0 -61
  107. package/components/hook-form/RHFAutocomplete/index.js +0 -144
  108. package/components/hook-form/RHFAutocompleteAsync/index.js +0 -191
  109. package/components/hook-form/RHFCheckbox/index.js +0 -65
  110. package/components/hook-form/RHFDateTime/index.js +0 -79
  111. package/components/hook-form/RHFMultiCheckbox/index.js +0 -32
  112. package/components/hook-form/RHFPeriod/index.js +0 -47
  113. package/components/hook-form/RHFRadioGroup/index.js +0 -41
  114. package/components/hook-form/RHFSelect/index.js +0 -34
  115. package/components/hook-form/RHFTextField/index.js +0 -87
  116. package/components/hook-form/RHFUpload/index.js +0 -255
  117. package/components/mui_extended/Accordion/index.js +0 -105
  118. package/components/mui_extended/Avatar/index.js +0 -33
  119. package/components/mui_extended/BoxIcon/index.js +0 -20
  120. package/components/mui_extended/Breadcrumbs/index.js +0 -92
  121. package/components/mui_extended/Button/index.js +0 -131
  122. package/components/mui_extended/IconButton/index.js +0 -108
  123. package/components/mui_extended/LinkWithRoute/index.js +0 -30
  124. package/components/mui_extended/MenuPopover/index.js +0 -135
  125. package/components/mui_extended/Pager/index.js +0 -137
  126. package/components/mui_extended/Tab/index.js +0 -30
  127. package/components/mui_extended/Typography/index.js +0 -21
  128. package/contexts/ModalContext/index.js +0 -165
  129. package/hooks/useFormAddEdit/index.js +0 -42
  130. package/hooks/useModal/index.js +0 -4
  131. package/lodash.js +0 -62
  132. package/node_modules.js +0 -54
  133. package/react-data-grid.js +0 -2652
  134. package/react-draggable.js +0 -960
  135. package/react-json-view.js +0 -2764
  136. package/react-lazy-load-image-component.js +0 -792
  137. package/react-resizable.js +0 -541
  138. package/react-splitter-layout.js +0 -165
  139. package/utils/index.js +0 -572
@@ -0,0 +1,86 @@
1
+ import { Link as d } from "react-router-dom";
2
+ import { useTheme as f } from "@mui/material/styles";
3
+ import { Box as h } from "@mui/material";
4
+ import { jsx as o, jsxs as t, Fragment as a } from "react/jsx-runtime";
5
+ function G({
6
+ disabledLink: s = !1,
7
+ sx: n
8
+ }) {
9
+ const e = f(), i = e.palette.primary.light, r = e.palette.primary.main, p = e.palette.primary.dark, l = /* @__PURE__ */ o(h, {
10
+ sx: {
11
+ width: 40,
12
+ height: 40,
13
+ ...n
14
+ },
15
+ children: /* @__PURE__ */ t("svg", {
16
+ xmlns: "http://www.w3.org/2000/svg",
17
+ width: "100%",
18
+ height: "100%",
19
+ viewBox: "0 0 512 512",
20
+ children: [/* @__PURE__ */ t("defs", {
21
+ children: [/* @__PURE__ */ t("linearGradient", {
22
+ id: "BG1",
23
+ x1: "100%",
24
+ x2: "50%",
25
+ y1: "9.946%",
26
+ y2: "50%",
27
+ children: [/* @__PURE__ */ o("stop", {
28
+ offset: "0%",
29
+ stopColor: p
30
+ }), /* @__PURE__ */ o("stop", {
31
+ offset: "100%",
32
+ stopColor: r
33
+ })]
34
+ }), /* @__PURE__ */ t("linearGradient", {
35
+ id: "BG2",
36
+ x1: "50%",
37
+ x2: "50%",
38
+ y1: "0%",
39
+ y2: "100%",
40
+ children: [/* @__PURE__ */ o("stop", {
41
+ offset: "0%",
42
+ stopColor: i
43
+ }), /* @__PURE__ */ o("stop", {
44
+ offset: "100%",
45
+ stopColor: r
46
+ })]
47
+ }), /* @__PURE__ */ t("linearGradient", {
48
+ id: "BG3",
49
+ x1: "50%",
50
+ x2: "50%",
51
+ y1: "0%",
52
+ y2: "100%",
53
+ children: [/* @__PURE__ */ o("stop", {
54
+ offset: "0%",
55
+ stopColor: i
56
+ }), /* @__PURE__ */ o("stop", {
57
+ offset: "100%",
58
+ stopColor: r
59
+ })]
60
+ })]
61
+ }), /* @__PURE__ */ t("g", {
62
+ fillRule: "evenodd",
63
+ clipRule: "evenodd",
64
+ children: [/* @__PURE__ */ o("path", {
65
+ fill: "url(#BG1)",
66
+ d: "m1.9 136.9 208.3 120.3v240.5L1.9 377.5z"
67
+ }), /* @__PURE__ */ o("path", {
68
+ fill: "url(#BG2)",
69
+ d: "m226.8 257.2 208.5-120.3v240.6L226.8 497.8z"
70
+ }), /* @__PURE__ */ o("path", {
71
+ fill: "url(#BG3)",
72
+ d: "M218.6 242.8 10.2 122.5 218.6 2.2 427 122.5z"
73
+ })]
74
+ })]
75
+ })
76
+ });
77
+ return s ? /* @__PURE__ */ o(a, {
78
+ children: l
79
+ }) : /* @__PURE__ */ o(d, {
80
+ to: "/",
81
+ children: l
82
+ });
83
+ }
84
+ export {
85
+ G as L
86
+ };
@@ -0,0 +1,12 @@
1
+ import "react";
2
+ import "prop-types";
3
+ import "react-dom";
4
+ import "clsx";
5
+ var f = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
+ function a(e) {
7
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
8
+ }
9
+ export {
10
+ f as c,
11
+ a as g
12
+ };
@@ -0,0 +1,17 @@
1
+ import { useModuleDictionary as n } from "@m4l/core";
2
+ import { B as r } from "../../../mui_extended/Button/index.ce236540.js";
3
+ import { jsx as i } from "react/jsx-runtime";
4
+ const m = (o) => {
5
+ const {
6
+ getLabel: t
7
+ } = n();
8
+ return /* @__PURE__ */ i(r, {
9
+ variant: "outlined",
10
+ color: "inherit",
11
+ ...o,
12
+ children: t("common_actions.cancel")
13
+ });
14
+ };
15
+ export {
16
+ m as A
17
+ };
@@ -0,0 +1,49 @@
1
+ import { useFormContext as f, useFormState as p } from "react-hook-form";
2
+ import { useNavigate as C } from "react-router-dom";
3
+ import { useModuleDictionary as g, useModuleSkeleton as d } from "@m4l/core";
4
+ import { Skeleton as k } from "@mui/material";
5
+ import { B as _ } from "../../../mui_extended/Button/index.ce236540.js";
6
+ import { useCallback as v } from "react";
7
+ import { u as h } from "../../../../hooks/useModal/index.d72accf7.js";
8
+ import { jsx as r } from "react/jsx-runtime";
9
+ function A(n) {
10
+ const {
11
+ to: c,
12
+ navigateOptions: a = {
13
+ replace: !1
14
+ }
15
+ } = n, {
16
+ getLabel: o
17
+ } = g(), m = d(), {
18
+ openModalConfirm: i
19
+ } = h(), s = C(), {
20
+ control: l
21
+ } = f(), {
22
+ isDirty: e
23
+ } = p({
24
+ control: l
25
+ }), t = () => {
26
+ s(c, a);
27
+ }, u = v(() => {
28
+ e ? i({
29
+ variant: "warning",
30
+ title: o("common_actions.confirm_quit_title"),
31
+ msg: o("common_actions.confirm_quit_msg"),
32
+ onClickIntro: t
33
+ }) : t();
34
+ }, [o, e, t, i]);
35
+ return m ? /* @__PURE__ */ r(k, {
36
+ variant: "text",
37
+ width: 57,
38
+ height: 30
39
+ }) : /* @__PURE__ */ r(_, {
40
+ variant: "outlined",
41
+ color: "inherit",
42
+ onClick: u,
43
+ ...n,
44
+ children: o("common_actions.cancel")
45
+ });
46
+ }
47
+ export {
48
+ A
49
+ };
@@ -0,0 +1,31 @@
1
+ import { useFormContext as m, useFormState as s } from "react-hook-form";
2
+ import { useModuleDictionary as a, useModuleSkeleton as c } from "@m4l/core";
3
+ import { LoadingButton as u } from "@mui/lab";
4
+ import { Skeleton as l } from "@mui/material";
5
+ import { jsx as o } from "react/jsx-runtime";
6
+ function h(t) {
7
+ const {
8
+ getLabel: n
9
+ } = a(), r = c(), {
10
+ control: i
11
+ } = m(), {
12
+ isSubmitting: e
13
+ } = s({
14
+ control: i
15
+ });
16
+ return r ? /* @__PURE__ */ o(l, {
17
+ variant: "text",
18
+ width: 57,
19
+ height: 30
20
+ }) : /* @__PURE__ */ o(u, {
21
+ variant: "contained",
22
+ type: "submit",
23
+ color: "primary",
24
+ loading: e,
25
+ ...t,
26
+ children: n("common_actions.intro")
27
+ });
28
+ }
29
+ export {
30
+ h as A
31
+ };
@@ -0,0 +1,18 @@
1
+ import { useModuleDictionary as r } from "@m4l/core";
2
+ import { B as n } from "../../../mui_extended/Button/index.ce236540.js";
3
+ import { jsx as i } from "react/jsx-runtime";
4
+ const e = (o) => {
5
+ const {
6
+ getLabel: t
7
+ } = r();
8
+ return /* @__PURE__ */ i(n, {
9
+ variant: "contained",
10
+ type: "submit",
11
+ color: "primary",
12
+ ...o,
13
+ children: t("common_actions.intro")
14
+ });
15
+ };
16
+ export {
17
+ e as A
18
+ };