@m4l/components 0.1.25 → 0.1.26

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 (21) hide show
  1. package/components/CommonActions/components/ActionCancel/{index.9cfffe65.js → index.6736b782.js} +1 -1
  2. package/components/CommonActions/components/ActionFormCancel/{index.ef60c2ee.js → index.281ee166.js} +2 -2
  3. package/components/CommonActions/components/ActionIntro/{index.f8403e8e.js → index.4665a611.js} +1 -1
  4. package/components/CommonActions/components/Actions/{index.309d3b6f.js → index.cd7b2671.js} +7 -7
  5. package/components/DataGrid/{index.fe073438.js → index.2caf6231.js} +3 -3
  6. package/components/DynamicFilter/{index.d0753667.js → index.f2377369.js} +8 -8
  7. package/components/LanguagePopover/styles.d.ts +2 -0
  8. package/components/ModalDialog/{index.a24ca508.js → index.bee344a5.js} +2 -2
  9. package/components/ObjectLogs/{index.a7d36267.js → index.6b6f95e6.js} +3 -3
  10. package/components/Page/index.4237c241.js +25 -0
  11. package/components/Period/{index.080a987d.js → index.a112ce37.js} +2 -2
  12. package/components/hook-form/RHFPeriod/{index.067790c9.js → index.979d0898.js} +1 -1
  13. package/components/mui_extended/Button/{index.2afaa420.js → index.52d18aea.js} +1 -1
  14. package/components/mui_extended/Pager/{index.a23cf8de.js → index.951b6975.js} +1 -1
  15. package/components/mui_extended/Popover/index.4da8587a.js +252 -0
  16. package/contexts/ModalContext/{index.f17b3653.js → index.5388dfd5.js} +3 -3
  17. package/hooks/useModal/{index.b1f96279.js → index.3b1ff084.js} +1 -1
  18. package/index.js +16 -16
  19. package/package.json +1 -1
  20. package/components/Page/index.fc660ee5.js +0 -27
  21. package/components/mui_extended/Popover/index.12b0ab55.js +0 -218
@@ -1,5 +1,5 @@
1
1
  import { useModuleDictionary as n } from "@m4l/core";
2
- import { B as r } from "../../../mui_extended/Button/index.2afaa420.js";
2
+ import { B as r } from "../../../mui_extended/Button/index.52d18aea.js";
3
3
  import { jsx as i } from "react/jsx-runtime";
4
4
  const m = (o) => {
5
5
  const {
@@ -2,9 +2,9 @@ import { useFormContext as f, useFormState as p } from "react-hook-form";
2
2
  import { useNavigate as C } from "react-router-dom";
3
3
  import { useModuleDictionary as g, useModuleSkeleton as d } from "@m4l/core";
4
4
  import { Skeleton as k } from "@mui/material";
5
- import { B as _ } from "../../../mui_extended/Button/index.2afaa420.js";
5
+ import { B as _ } from "../../../mui_extended/Button/index.52d18aea.js";
6
6
  import { useCallback as v } from "react";
7
- import { u as h } from "../../../../hooks/useModal/index.b1f96279.js";
7
+ import { u as h } from "../../../../hooks/useModal/index.3b1ff084.js";
8
8
  import { jsx as r } from "react/jsx-runtime";
9
9
  function A(n) {
10
10
  const {
@@ -1,5 +1,5 @@
1
1
  import { useModuleDictionary as r } from "@m4l/core";
2
- import { B as n } from "../../../mui_extended/Button/index.2afaa420.js";
2
+ import { B as n } from "../../../mui_extended/Button/index.52d18aea.js";
3
3
  import { jsx as i } from "react/jsx-runtime";
4
4
  const e = (o) => {
5
5
  const {
@@ -6,16 +6,16 @@ import "@mui/material/Button";
6
6
  import "react-hook-form";
7
7
  import "react-router-dom";
8
8
  import { useState as W, useMemo as w, forwardRef as st, useRef as B, useImperativeHandle as rt, useEffect as at, useCallback as j } from "react";
9
- import "../../../../contexts/ModalContext/index.f17b3653.js";
9
+ import "../../../../contexts/ModalContext/index.5388dfd5.js";
10
10
  import "@mui/lab";
11
11
  import { I as y } from "../../../mui_extended/IconButton/index.4b5ce8b5.js";
12
- import { u as I, a as lt, O as ct } from "../../../DataGrid/index.fe073438.js";
13
- import { P as dt } from "../../../mui_extended/Pager/index.a23cf8de.js";
12
+ import { u as I, a as lt, O as ct } from "../../../DataGrid/index.2caf6231.js";
13
+ import { P as dt } from "../../../mui_extended/Pager/index.951b6975.js";
14
14
  import { D as pt } from "../../../../react-data-grid.d46d625e.js";
15
- import { u as gt } from "../../../../hooks/useModal/index.b1f96279.js";
16
- import { A as ft } from "../ActionCancel/index.9cfffe65.js";
17
- import { A as ut } from "../ActionIntro/index.f8403e8e.js";
18
- import { P as mt } from "../../../mui_extended/Popover/index.12b0ab55.js";
15
+ import { u as gt } from "../../../../hooks/useModal/index.3b1ff084.js";
16
+ import { A as ft } from "../ActionCancel/index.6736b782.js";
17
+ import { A as ut } from "../ActionIntro/index.4665a611.js";
18
+ import { P as mt } from "../../../mui_extended/Popover/index.4da8587a.js";
19
19
  import { I as N } from "../../../Icon/index.f569765b.js";
20
20
  import { useResponsiveDesktop as ht } from "@m4l/graphics";
21
21
  const _t = p("div")(({
@@ -6,9 +6,9 @@ import { HTML5Backend as ge } from "react-dnd-html5-backend";
6
6
  import { SvgIcon as B, Checkbox as fe, InputBase as he, Skeleton as pe } from "@mui/material";
7
7
  import { jsx as d, jsxs as Q } from "react/jsx-runtime";
8
8
  import { voidFunction as I, useModuleDictionary as we, useModuleSkeleton as me } from "@m4l/core";
9
- import { A as ye, a as Ce } from "../CommonActions/components/Actions/index.309d3b6f.js";
10
- import { g as be, d as ve } from "../ModalDialog/index.a24ca508.js";
11
- import { g as xe, d as Re } from "../mui_extended/Pager/index.a23cf8de.js";
9
+ import { A as ye, a as Ce } from "../CommonActions/components/Actions/index.cd7b2671.js";
10
+ import { g as be, d as ve } from "../ModalDialog/index.bee344a5.js";
11
+ import { g as xe, d as Re } from "../mui_extended/Pager/index.951b6975.js";
12
12
  const Se = A("div")(() => ({
13
13
  display: "flex",
14
14
  flexDirection: "column",
@@ -13,13 +13,13 @@ import "@mui/x-date-pickers";
13
13
  import { R as ee } from "../hook-form/RHFDateTime/index.9231a7c7.js";
14
14
  import { R as Y } from "../hook-form/RHFTextField/index.ba2a8f67.js";
15
15
  import { I as he } from "../Icon/index.f569765b.js";
16
- import "../hook-form/RHFPeriod/index.067790c9.js";
16
+ import "../hook-form/RHFPeriod/index.979d0898.js";
17
17
  import "../ErrorLabel/index.c8615f16.js";
18
- import "../Period/index.080a987d.js";
19
- import { L as Ue, b as Je, g as Qe } from "../CommonActions/components/Actions/index.309d3b6f.js";
18
+ import "../Period/index.a112ce37.js";
19
+ import { L as Ue, b as Je, g as Qe } from "../CommonActions/components/Actions/index.cd7b2671.js";
20
20
  import "@mui/material/Button";
21
21
  import "react-router-dom";
22
- import "../../contexts/ModalContext/index.f17b3653.js";
22
+ import "../../contexts/ModalContext/index.5388dfd5.js";
23
23
  import "@mui/lab";
24
24
  import "lodash/isString";
25
25
  import "react-dropzone";
@@ -27,11 +27,11 @@ import "../Image/index.c9da2d5a.js";
27
27
  import "../hook-form/RHFUpload/index.6347159a.js";
28
28
  import { I as G } from "../mui_extended/IconButton/index.4b5ce8b5.js";
29
29
  import "simplebar/dist/simplebar.min.css";
30
- import { F as te } from "../mui_extended/Button/index.2afaa420.js";
31
- import { P as Xe } from "../mui_extended/Popover/index.12b0ab55.js";
30
+ import { F as te } from "../mui_extended/Button/index.52d18aea.js";
31
+ import { P as Xe } from "../mui_extended/Popover/index.4da8587a.js";
32
32
  import { R as Ze } from "../contexts/RHFormContext/index.33dba822.js";
33
- import { A as et } from "../CommonActions/components/ActionCancel/index.9cfffe65.js";
34
- import { A as tt } from "../CommonActions/components/ActionIntro/index.f8403e8e.js";
33
+ import { A as et } from "../CommonActions/components/ActionCancel/index.6736b782.js";
34
+ import { A as tt } from "../CommonActions/components/ActionIntro/index.4665a611.js";
35
35
  import { useResponsiveDesktop as rt } from "@m4l/graphics";
36
36
  const re = h("div")(({
37
37
  theme: e
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const LabelItem: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
+ export declare const ContainerProgress: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
+ export declare const ContainerMenuItems: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,6 +1,6 @@
1
1
  import { Dialog as b, IconButton as w, Paper as v } from "@mui/material";
2
2
  import { c as D } from "../../react-draggable.20e95c61.js";
3
- import { u as $ } from "../../hooks/useModal/index.b1f96279.js";
3
+ import { u as $ } from "../../hooks/useModal/index.3b1ff084.js";
4
4
  import { styled as s } from "@mui/material/styles";
5
5
  import { a as x } from "../../utils/index.214d9542.js";
6
6
  import { R as M } from "../Resizeable/index.45995d2b.js";
@@ -8,7 +8,7 @@ import { useResponsiveDesktop as H } from "@m4l/graphics";
8
8
  import { useEnvironment as I } from "@m4l/core";
9
9
  import { I as C } from "../Icon/index.f569765b.js";
10
10
  import { jsxs as h, jsx as n } from "react/jsx-runtime";
11
- import { b as W, g as _ } from "../CommonActions/components/Actions/index.309d3b6f.js";
11
+ import { b as W, g as _ } from "../CommonActions/components/Actions/index.cd7b2671.js";
12
12
  const j = s(b)(() => ({})), k = s("div")(({ theme: o }) => ({
13
13
  display: "flex",
14
14
  flexDirection: "column",
@@ -1,14 +1,14 @@
1
1
  import { useState as _, useEffect as f, useCallback as d, useMemo as $ } from "react";
2
2
  import { useNetwork as k, useModuleDictionary as y, useEnvironment as h, usePaginate as O } from "@m4l/core";
3
3
  import { styled as g } from "@mui/material/styles";
4
- import { D as R, g as I } from "../DataGrid/index.fe073438.js";
4
+ import { D as R, g as I } from "../DataGrid/index.2caf6231.js";
5
5
  import { D as L } from "../formatters/DateFormatter/index.08d8823b.js";
6
6
  import { Tooltip as G, IconButton as M } from "@mui/material";
7
7
  import { R as S } from "../../react-json-view.f56a7f8e.js";
8
8
  import { jsx as t, jsxs as A } from "react/jsx-runtime";
9
- import { u as T } from "../../hooks/useModal/index.b1f96279.js";
9
+ import { u as T } from "../../hooks/useModal/index.3b1ff084.js";
10
10
  import { I as u } from "../Icon/index.f569765b.js";
11
- import { D as E, g as K } from "../DynamicFilter/index.d0753667.js";
11
+ import { D as E, g as K } from "../DynamicFilter/index.f2377369.js";
12
12
  const q = g("div")(() => ({
13
13
  height: "100%",
14
14
  width: "100%",
@@ -0,0 +1,25 @@
1
+ import { Helmet as c } from "react-helmet-async";
2
+ import { useLocales as a } from "@m4l/graphics";
3
+ import { useModuleSkeleton as d } from "@m4l/core";
4
+ import { jsxs as t, Fragment as g, jsx as l } from "react/jsx-runtime";
5
+ const p = (o) => {
6
+ const {
7
+ children: r,
8
+ title: n,
9
+ meta: i,
10
+ subtitle: e
11
+ } = o, m = a().currentLocale?.localeString, s = d();
12
+ return /* @__PURE__ */ t(g, {
13
+ children: [!s && /* @__PURE__ */ t(c, {
14
+ children: [/* @__PURE__ */ l("title", {
15
+ children: `${n}${e ? ` | ${e}` : ""} `
16
+ }), /* @__PURE__ */ l("html", {
17
+ lang: m
18
+ }), i]
19
+ }), r]
20
+ });
21
+ };
22
+ p.displayName = "Page";
23
+ export {
24
+ p as H
25
+ };
@@ -3,11 +3,11 @@ import { styled as a, Skeleton as u, Autocomplete as T, TextField as b } from "@
3
3
  import { useMemo as $ } from "react";
4
4
  import { I as A } from "../Icon/index.f569765b.js";
5
5
  import { jsxs as c, jsx as n } from "react/jsx-runtime";
6
- import { g as w } from "../CommonActions/components/Actions/index.309d3b6f.js";
6
+ import { g as w } from "../CommonActions/components/Actions/index.cd7b2671.js";
7
7
  import "@mui/material/Button";
8
8
  import "react-hook-form";
9
9
  import "react-router-dom";
10
- import "../../contexts/ModalContext/index.f17b3653.js";
10
+ import "../../contexts/ModalContext/index.5388dfd5.js";
11
11
  import "@mui/lab";
12
12
  const M = a("div")(({
13
13
  theme: t,
@@ -1,7 +1,7 @@
1
1
  import { styled as d } from "@mui/material";
2
2
  import { useFormContext as f, Controller as p } from "react-hook-form";
3
3
  import { E as c } from "../../ErrorLabel/index.c8615f16.js";
4
- import { P as x } from "../../Period/index.080a987d.js";
4
+ import { P as x } from "../../Period/index.a112ce37.js";
5
5
  import { jsx as r, jsxs as g } from "react/jsx-runtime";
6
6
  const u = d("div")(({
7
7
  theme: e
@@ -5,7 +5,7 @@ import { jsx as i } from "react/jsx-runtime";
5
5
  import { LoadingButton as b } from "@mui/lab";
6
6
  import { I as x } from "../IconButton/index.4b5ce8b5.js";
7
7
  import { styled as h, alpha as F } from "@mui/material/styles";
8
- import { u as L } from "../../DynamicFilter/index.d0753667.js";
8
+ import { u as L } from "../../DynamicFilter/index.f2377369.js";
9
9
  import { useMemo as u } from "react";
10
10
  import { I as $ } from "../../Image/index.c9da2d5a.js";
11
11
  const G = (t) => g() ? /* @__PURE__ */ i(m, {
@@ -1,6 +1,6 @@
1
1
  import { useMemo as y } from "react";
2
2
  import { Skeleton as i, TablePagination as R } from "@mui/material";
3
- import { P as S } from "../../CommonActions/components/Actions/index.309d3b6f.js";
3
+ import { P as S } from "../../CommonActions/components/Actions/index.cd7b2671.js";
4
4
  import { styled as a } from "@mui/material/styles";
5
5
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
6
6
  a("div")(() => ({
@@ -0,0 +1,252 @@
1
+ import { useState as d, useEffect as I } from "react";
2
+ import { Popover as x, styled as h, Stack as O, MenuItem as S } from "@mui/material";
3
+ import { I as P } from "../../Image/index.c9da2d5a.js";
4
+ import { useLocales as v } from "@m4l/graphics";
5
+ import { useEnvironment as L, useNetwork as k } from "@m4l/core";
6
+ import "../../Icon/index.f569765b.js";
7
+ import { styled as C } from "@mui/material/styles";
8
+ import { jsxs as m, jsx as i, Fragment as R } from "react/jsx-runtime";
9
+ import "../Accordion/index.49f5df8e.js";
10
+ import "../Avatar/index.dadb0528.js";
11
+ import "react-router-dom";
12
+ import "@mui/material/Button";
13
+ import { C as E } from "../CircularProgress/index.ad569afd.js";
14
+ import "@mui/lab";
15
+ import { I as N } from "../Button/index.52d18aea.js";
16
+ import "../../CommonActions/components/Actions/index.cd7b2671.js";
17
+ import "../Pager/index.951b6975.js";
18
+ import "../Tab/index.e0653a0a.js";
19
+ const y = C("span")(({
20
+ arrowType: t,
21
+ theme: n
22
+ }) => {
23
+ const o = `solid 1px ${n.palette.grey[50012]}`, a = {
24
+ borderRadius: "0 0 3px 0",
25
+ top: -6,
26
+ borderBottom: o,
27
+ borderRight: o
28
+ }, l = {
29
+ borderRadius: "3px 0 0 0",
30
+ bottom: -6,
31
+ borderTop: o,
32
+ borderLeft: o
33
+ }, s = {
34
+ borderRadius: "0 3px 0 0",
35
+ left: -6,
36
+ borderTop: o,
37
+ borderRight: o
38
+ }, r = {
39
+ borderRadius: "0 0 0 3px",
40
+ right: -6,
41
+ borderBottom: o,
42
+ borderLeft: o
43
+ };
44
+ return {
45
+ display: "none",
46
+ [n.breakpoints.up("sm")]: {
47
+ zIndex: 1,
48
+ width: 12,
49
+ height: 12,
50
+ content: "''",
51
+ position: "absolute",
52
+ display: "block",
53
+ transform: "rotate(-135deg)",
54
+ background: n.palette.background.paper
55
+ },
56
+ ...t === "top-left" && {
57
+ ...a,
58
+ left: 20
59
+ },
60
+ ...t === "top-center" && {
61
+ ...a,
62
+ left: 0,
63
+ right: 0,
64
+ margin: "auto"
65
+ },
66
+ ...t === "top-right" && {
67
+ ...a,
68
+ right: 20
69
+ },
70
+ ...t === "bottom-left" && {
71
+ ...l,
72
+ left: 20
73
+ },
74
+ ...t === "bottom-center" && {
75
+ ...l,
76
+ left: 0,
77
+ right: 0,
78
+ margin: "auto"
79
+ },
80
+ ...t === "bottom-right" && {
81
+ ...l,
82
+ right: 20
83
+ },
84
+ ...t === "left-top" && {
85
+ ...s,
86
+ top: 20
87
+ },
88
+ ...t === "left-center" && {
89
+ ...s,
90
+ top: 0,
91
+ bottom: 0,
92
+ margin: "auto"
93
+ },
94
+ ...t === "left-bottom" && {
95
+ ...s,
96
+ bottom: 20
97
+ },
98
+ ...t === "right-top" && {
99
+ ...r,
100
+ top: 20
101
+ },
102
+ ...t === "right-center" && {
103
+ ...r,
104
+ top: 0,
105
+ bottom: 0,
106
+ margin: "auto"
107
+ },
108
+ ...t === "right-bottom" && {
109
+ ...r,
110
+ bottom: 20
111
+ }
112
+ };
113
+ });
114
+ function _({
115
+ children: t,
116
+ arrowType: n = "top-right",
117
+ sx: p,
118
+ className: c,
119
+ ...o
120
+ }) {
121
+ return /* @__PURE__ */ m(x, {
122
+ className: `m4l_popover ${c || ""}`,
123
+ anchorOrigin: {
124
+ vertical: "bottom",
125
+ horizontal: "right"
126
+ },
127
+ transformOrigin: {
128
+ vertical: "top",
129
+ horizontal: "right"
130
+ },
131
+ PaperProps: {
132
+ sx: {
133
+ p: 1,
134
+ overflow: "inherit",
135
+ ...p
136
+ }
137
+ },
138
+ ...o,
139
+ children: [n !== "no-arrow" && /* @__PURE__ */ i(y, {
140
+ arrowType: n
141
+ }), t]
142
+ });
143
+ }
144
+ const z = h("span")(({
145
+ theme: t
146
+ }) => ({
147
+ marginLeft: t.spacing(1)
148
+ })), B = h("div")(({
149
+ theme: t
150
+ }) => ({
151
+ padding: t.spacing(0.75, 0),
152
+ margin: t.spacing(0, 1.25)
153
+ })), M = h("div")(() => ({
154
+ display: "flex",
155
+ flexDirection: "column"
156
+ }));
157
+ function T() {
158
+ const {
159
+ currentLocale: t,
160
+ onChangeLocale: n
161
+ } = v(), {
162
+ domain_token: p
163
+ } = L(), {
164
+ networkOperation: c
165
+ } = k(), [o, a] = d(null), [l, s] = d(!1), [r, f] = d([]), b = (e) => {
166
+ console.log("handleOpen", r, l), a(e.currentTarget);
167
+ }, u = () => {
168
+ a(null);
169
+ };
170
+ return I(() => {
171
+ let e = !0;
172
+ if (!(o === null || l || r.length > 0))
173
+ return s(!0), c({
174
+ method: "GET",
175
+ endPoint: "na/locales",
176
+ parms: {
177
+ domain_token: p
178
+ }
179
+ }).then((g) => {
180
+ console.log("Response", g.data), e && f(g.data);
181
+ }).finally(() => {
182
+ s(!1);
183
+ }), function() {
184
+ e = !1;
185
+ };
186
+ }, [o]), console.log("Render lang", r, l), /* @__PURE__ */ m(R, {
187
+ children: [/* @__PURE__ */ i(N, {
188
+ className: "m4l_language_popover",
189
+ onClick: b,
190
+ sx: {
191
+ width: 40,
192
+ height: 40,
193
+ ...o && {
194
+ bgcolor: "action.selected"
195
+ }
196
+ },
197
+ src: t?.url_icon || "",
198
+ alt: t?.name,
199
+ width: "24px",
200
+ height: "24px",
201
+ skeletonVariant: "circle",
202
+ tooltip: "dddd"
203
+ }), /* @__PURE__ */ i(_, {
204
+ arrowType: "top-right",
205
+ open: Boolean(o),
206
+ anchorEl: o,
207
+ anchorOrigin: {
208
+ vertical: "bottom",
209
+ horizontal: "right"
210
+ },
211
+ onClose: u,
212
+ sx: {
213
+ mt: 1.5,
214
+ ml: 0.75,
215
+ width: 180,
216
+ rowGap: "100px",
217
+ "& .MuiMenuItem-root": {
218
+ px: 1,
219
+ typography: "body2",
220
+ borderRadius: 0.75
221
+ }
222
+ },
223
+ children: /* @__PURE__ */ m(M, {
224
+ children: [r.length === 0 && /* @__PURE__ */ i(B, {
225
+ children: /* @__PURE__ */ i(E, {
226
+ size: "20px"
227
+ })
228
+ }), r.length > 0 && /* @__PURE__ */ i(O, {
229
+ spacing: 0.75,
230
+ children: r.map((e) => /* @__PURE__ */ m(S, {
231
+ selected: e.lang === t?.lang && e?.script === t?.script && e?.region === t?.region,
232
+ onClick: () => {
233
+ n(e), u();
234
+ },
235
+ children: [/* @__PURE__ */ i(P, {
236
+ alt: e.name,
237
+ src: e.url_icon,
238
+ width: "24px",
239
+ height: "24px"
240
+ }), /* @__PURE__ */ i(z, {
241
+ children: e.name
242
+ })]
243
+ }, e.lang || e.script || e.region))
244
+ })]
245
+ })
246
+ })]
247
+ });
248
+ }
249
+ export {
250
+ T as L,
251
+ _ as P
252
+ };
@@ -4,9 +4,9 @@ import { Typography as M } from "@mui/material";
4
4
  import { styled as l } from "@mui/material/styles";
5
5
  import { B as I } from "../../components/mui_extended/BoxIcon/index.e638ecc8.js";
6
6
  import { jsx as t, jsxs as p, Fragment as _ } from "react/jsx-runtime";
7
- import { M as k } from "../../components/ModalDialog/index.a24ca508.js";
8
- import { A as $ } from "../../components/CommonActions/components/ActionIntro/index.f8403e8e.js";
9
- import { A as b } from "../../components/CommonActions/components/ActionCancel/index.9cfffe65.js";
7
+ import { M as k } from "../../components/ModalDialog/index.bee344a5.js";
8
+ import { A as $ } from "../../components/CommonActions/components/ActionIntro/index.4665a611.js";
9
+ import { A as b } from "../../components/CommonActions/components/ActionCancel/index.6736b782.js";
10
10
  import { b as A } from "../../utils/index.214d9542.js";
11
11
  const j = l("div")(() => ({
12
12
  display: "flex",
@@ -1,5 +1,5 @@
1
1
  import { useContext as t } from "react";
2
- import { M as e } from "../../contexts/ModalContext/index.f17b3653.js";
2
+ import { M as e } from "../../contexts/ModalContext/index.5388dfd5.js";
3
3
  function s() {
4
4
  const o = t(e);
5
5
  if (!o)
package/index.js CHANGED
@@ -16,39 +16,39 @@ import "@mui/x-date-pickers";
16
16
  import { R as J } from "./components/hook-form/RHFDateTime/index.9231a7c7.js";
17
17
  import { R as Q, a as X } from "./components/hook-form/RHFTextField/index.ba2a8f67.js";
18
18
  import { I as Z } from "./components/Icon/index.f569765b.js";
19
- import { R as $ } from "./components/hook-form/RHFPeriod/index.067790c9.js";
19
+ import { R as $ } from "./components/hook-form/RHFPeriod/index.979d0898.js";
20
20
  import { E as ro } from "./components/ErrorLabel/index.c8615f16.js";
21
- import { P as ao, g as eo } from "./components/Period/index.080a987d.js";
22
- import { b as so, M as io, d as po, g as no } from "./components/CommonActions/components/Actions/index.309d3b6f.js";
21
+ import { P as ao, g as eo } from "./components/Period/index.a112ce37.js";
22
+ import { b as so, M as io, d as po, g as no } from "./components/CommonActions/components/Actions/index.cd7b2671.js";
23
23
  import "@mui/material/Button";
24
- import { M as xo, a as fo } from "./contexts/ModalContext/index.f17b3653.js";
24
+ import { M as xo, a as fo } from "./contexts/ModalContext/index.5388dfd5.js";
25
25
  import "@mui/lab";
26
26
  import "lodash/isString";
27
27
  import "react-dropzone";
28
28
  import { R as go } from "./components/hook-form/RHFUpload/index.6347159a.js";
29
29
  import { A as uo } from "./components/mui_extended/Accordion/index.49f5df8e.js";
30
30
  import { A as yo } from "./components/mui_extended/Avatar/index.dadb0528.js";
31
- import { B as Ao, L as Po } from "./components/mui_extended/Button/index.2afaa420.js";
32
- import { L as Lo, P as Ho } from "./components/mui_extended/Popover/index.12b0ab55.js";
33
- import { P as Mo, g as bo } from "./components/mui_extended/Pager/index.a23cf8de.js";
31
+ import { B as Ao, L as Po } from "./components/mui_extended/Button/index.52d18aea.js";
32
+ import { L as Lo, P as Ho } from "./components/mui_extended/Popover/index.4da8587a.js";
33
+ import { P as Mo, g as bo } from "./components/mui_extended/Pager/index.951b6975.js";
34
34
  import { T as Io } from "./components/mui_extended/Tab/index.e0653a0a.js";
35
- import { D as So, N as Eo, T as No, g as ho } from "./components/DataGrid/index.fe073438.js";
35
+ import { D as So, N as Eo, T as No, g as ho } from "./components/DataGrid/index.2caf6231.js";
36
36
  import "react-dnd";
37
37
  import "react-dnd-html5-backend";
38
38
  import "@m4l/graphics";
39
39
  import { S as Uo } from "./components/ScrollBar/index.39eeb2de.js";
40
- import { D as ko, d as Go, g as zo } from "./components/DynamicFilter/index.d0753667.js";
40
+ import { D as ko, d as Go, g as zo } from "./components/DynamicFilter/index.f2377369.js";
41
41
  import "simplebar/dist/simplebar.min.css";
42
42
  import { R as wo } from "./components/contexts/RHFormContext/index.33dba822.js";
43
43
  import "yup";
44
44
  import "./react-draggable.20e95c61.js";
45
- import { M as qo, d as Jo, g as Ko } from "./components/ModalDialog/index.a24ca508.js";
45
+ import { M as qo, d as Jo, g as Ko } from "./components/ModalDialog/index.bee344a5.js";
46
46
  import { R as Xo } from "./components/Resizeable/index.45995d2b.js";
47
47
  import { N as Zo, d as _o, g as $o } from "./components/NoItemSelected/index.9609a7f7.js";
48
- import { O as rr, d as tr, g as ar } from "./components/ObjectLogs/index.a7d36267.js";
48
+ import { O as rr, d as tr, g as ar } from "./components/ObjectLogs/index.6b6f95e6.js";
49
49
  import "./react-json-view.f56a7f8e.js";
50
50
  import { P as mr } from "./components/PaperForm/index.3f8c7ef2.js";
51
- import { H as ir } from "./components/Page/index.fc660ee5.js";
51
+ import { H as ir } from "./components/Page/index.4237c241.js";
52
52
  import { P as nr } from "./components/PropertyValue/index.ab3dd7e9.js";
53
53
  import "./react-splitter-layout.7810ac1b.js";
54
54
  import { S as xr } from "./components/SplitLayout/index.4032673d.js";
@@ -70,14 +70,14 @@ import { T as Wr } from "./components/mui_extended/Typography/index.e5494696.js"
70
70
  import { B as Jr, c as Kr } from "./components/formatters/BooleanFormatter/index.3ec56305.js";
71
71
  import { D as Xr, c as Yr } from "./components/formatters/DateFormatter/index.08d8823b.js";
72
72
  import { P as _r, a as $r, U as ot, e as rt, b as tt, c as at, d as et, g as mt } from "./components/formatters/index.6959c2de.js";
73
- import { A as it } from "./components/CommonActions/components/ActionCancel/index.9cfffe65.js";
74
- import { A as nt } from "./components/CommonActions/components/ActionIntro/index.f8403e8e.js";
75
- import { A as xt } from "./components/CommonActions/components/ActionFormCancel/index.ef60c2ee.js";
73
+ import { A as it } from "./components/CommonActions/components/ActionCancel/index.6736b782.js";
74
+ import { A as nt } from "./components/CommonActions/components/ActionIntro/index.4665a611.js";
75
+ import { A as xt } from "./components/CommonActions/components/ActionFormCancel/index.281ee166.js";
76
76
  import { A as lt } from "./components/CommonActions/components/ActionFormIntro/index.ca4d2674.js";
77
77
  import { L as gt } from "./components/Loadable/index.f5518558.js";
78
78
  import { S as ut } from "./components/ScrollToTop/index.e06f98f6.js";
79
79
  import { u as yt } from "./hooks/useFormAddEdit/index.d4845f1a.js";
80
- import { u as At } from "./hooks/useModal/index.b1f96279.js";
80
+ import { u as At } from "./hooks/useModal/index.3b1ff084.js";
81
81
  import { L as Ct } from "./assets/Logo/index.228dcb5a.js";
82
82
  import "./utils/index.214d9542.js";
83
83
  import "./react-data-grid.d46d625e.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@m4l/core": "*",
@@ -1,27 +0,0 @@
1
- import { Helmet as a } from "react-helmet-async";
2
- import { useLocales as c } from "@m4l/graphics";
3
- import { useModuleSkeleton as u } from "@m4l/core";
4
- import { jsxs as t, Fragment as d, jsx as r } from "react/jsx-runtime";
5
- const p = (l) => {
6
- const {
7
- children: o,
8
- title: n,
9
- meta: m,
10
- subtitle: e
11
- } = l, {
12
- currentLang: s
13
- } = c(), i = u();
14
- return /* @__PURE__ */ t(d, {
15
- children: [!i && /* @__PURE__ */ t(a, {
16
- children: [/* @__PURE__ */ r("title", {
17
- children: `${n}${e ? ` | ${e}` : ""} `
18
- }), /* @__PURE__ */ r("html", {
19
- lang: s.value
20
- }), m]
21
- }), o]
22
- });
23
- };
24
- p.displayName = "Page";
25
- export {
26
- p as H
27
- };
@@ -1,218 +0,0 @@
1
- import { useState as c } from "react";
2
- import { Popover as g, styled as d, Stack as h, MenuItem as b } from "@mui/material";
3
- import { I as u } from "../../Image/index.c9da2d5a.js";
4
- import { useLocales as f } from "@m4l/graphics";
5
- import "@m4l/core";
6
- import "../../Icon/index.f569765b.js";
7
- import { styled as I } from "@mui/material/styles";
8
- import { jsxs as m, jsx as l, Fragment as x } from "react/jsx-runtime";
9
- import "../Accordion/index.49f5df8e.js";
10
- import "../Avatar/index.dadb0528.js";
11
- import "react-router-dom";
12
- import "@mui/material/Button";
13
- import "@mui/lab";
14
- import { I as S } from "../Button/index.2afaa420.js";
15
- import "../../CommonActions/components/Actions/index.309d3b6f.js";
16
- import "../Pager/index.a23cf8de.js";
17
- import "../Tab/index.e0653a0a.js";
18
- const O = I("span")(({
19
- arrowType: t,
20
- theme: e
21
- }) => {
22
- const o = `solid 1px ${e.palette.grey[50012]}`, a = {
23
- borderRadius: "0 0 3px 0",
24
- top: -6,
25
- borderBottom: o,
26
- borderRight: o
27
- }, n = {
28
- borderRadius: "3px 0 0 0",
29
- bottom: -6,
30
- borderTop: o,
31
- borderLeft: o
32
- }, r = {
33
- borderRadius: "0 3px 0 0",
34
- left: -6,
35
- borderTop: o,
36
- borderRight: o
37
- }, s = {
38
- borderRadius: "0 0 0 3px",
39
- right: -6,
40
- borderBottom: o,
41
- borderLeft: o
42
- };
43
- return {
44
- display: "none",
45
- [e.breakpoints.up("sm")]: {
46
- zIndex: 1,
47
- width: 12,
48
- height: 12,
49
- content: "''",
50
- position: "absolute",
51
- display: "block",
52
- transform: "rotate(-135deg)",
53
- background: e.palette.background.paper
54
- },
55
- ...t === "top-left" && {
56
- ...a,
57
- left: 20
58
- },
59
- ...t === "top-center" && {
60
- ...a,
61
- left: 0,
62
- right: 0,
63
- margin: "auto"
64
- },
65
- ...t === "top-right" && {
66
- ...a,
67
- right: 20
68
- },
69
- ...t === "bottom-left" && {
70
- ...n,
71
- left: 20
72
- },
73
- ...t === "bottom-center" && {
74
- ...n,
75
- left: 0,
76
- right: 0,
77
- margin: "auto"
78
- },
79
- ...t === "bottom-right" && {
80
- ...n,
81
- right: 20
82
- },
83
- ...t === "left-top" && {
84
- ...r,
85
- top: 20
86
- },
87
- ...t === "left-center" && {
88
- ...r,
89
- top: 0,
90
- bottom: 0,
91
- margin: "auto"
92
- },
93
- ...t === "left-bottom" && {
94
- ...r,
95
- bottom: 20
96
- },
97
- ...t === "right-top" && {
98
- ...s,
99
- top: 20
100
- },
101
- ...t === "right-center" && {
102
- ...s,
103
- top: 0,
104
- bottom: 0,
105
- margin: "auto"
106
- },
107
- ...t === "right-bottom" && {
108
- ...s,
109
- bottom: 20
110
- }
111
- };
112
- });
113
- function v({
114
- children: t,
115
- arrowType: e = "top-right",
116
- sx: p,
117
- className: i,
118
- ...o
119
- }) {
120
- return /* @__PURE__ */ m(g, {
121
- className: `m4l_popover ${i || ""}`,
122
- anchorOrigin: {
123
- vertical: "bottom",
124
- horizontal: "right"
125
- },
126
- transformOrigin: {
127
- vertical: "top",
128
- horizontal: "right"
129
- },
130
- PaperProps: {
131
- sx: {
132
- p: 1,
133
- overflow: "inherit",
134
- ...p
135
- }
136
- },
137
- ...o,
138
- children: [e !== "no-arrow" && /* @__PURE__ */ l(O, {
139
- arrowType: e
140
- }), t]
141
- });
142
- }
143
- const P = d("span")(({
144
- theme: t
145
- }) => ({
146
- marginLeft: t.spacing(1)
147
- }));
148
- function V() {
149
- const {
150
- allLang: t,
151
- currentLang: e,
152
- onChangeLang: p
153
- } = f(), [i, o] = c(null), a = (r) => {
154
- o(r.currentTarget);
155
- }, n = () => {
156
- o(null);
157
- };
158
- return /* @__PURE__ */ m(x, {
159
- children: [/* @__PURE__ */ l(S, {
160
- className: "m4l_language_popover",
161
- onClick: a,
162
- sx: {
163
- width: 40,
164
- height: 40,
165
- ...i && {
166
- bgcolor: "action.selected"
167
- }
168
- },
169
- src: e.icon,
170
- alt: e.label,
171
- width: "24px",
172
- height: "24px",
173
- skeletonVariant: "circle",
174
- tooltip: "dddd"
175
- }), /* @__PURE__ */ l(v, {
176
- arrowType: "top-right",
177
- open: Boolean(i),
178
- anchorEl: i,
179
- anchorOrigin: {
180
- vertical: "bottom",
181
- horizontal: "right"
182
- },
183
- onClose: n,
184
- sx: {
185
- mt: 1.5,
186
- ml: 0.75,
187
- width: 180,
188
- rowGap: "100px",
189
- "& .MuiMenuItem-root": {
190
- px: 1,
191
- typography: "body2",
192
- borderRadius: 0.75
193
- }
194
- },
195
- children: /* @__PURE__ */ l(h, {
196
- spacing: 0.75,
197
- children: t.map((r) => /* @__PURE__ */ m(b, {
198
- selected: r.value === e.value,
199
- onClick: () => {
200
- p(r.value), n();
201
- },
202
- children: [/* @__PURE__ */ l(u, {
203
- alt: r.label,
204
- src: r.icon,
205
- width: "24px",
206
- height: "24px"
207
- }), /* @__PURE__ */ l(P, {
208
- children: r.label
209
- })]
210
- }, r.value))
211
- })
212
- })]
213
- });
214
- }
215
- export {
216
- V as L,
217
- v as P
218
- };