@m4l/components 0.1.36 → 0.1.37
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.
- package/dist/{commonjs.bcc6b707.js → commonjs.565e6834.js} +0 -1
- package/dist/components/CommonActions/components/ActionCancel/{index.4b36950f.js → index.9230c57b.js} +1 -1
- package/dist/components/CommonActions/components/ActionFormCancel/{index.945e9887.js → index.ab514bd9.js} +9 -7
- package/dist/components/CommonActions/components/ActionIntro/{index.35a0d240.js → index.a0a341c7.js} +1 -1
- package/dist/components/CommonActions/components/Actions/index.d3e1f36e.js +54 -0
- package/dist/components/DataGrid/{index.156cc30c.js → index.67260455.js} +663 -15
- package/dist/components/DynamicFilter/{index.32f84995.js → index.071aa795.js} +92 -18
- package/dist/components/Icon/{index.1dbd3e58.js → index.8d754623.js} +62 -5
- package/dist/components/LanguagePopover/index.cbc4b282.js +144 -0
- package/dist/components/Loadable/{index.8c6006be.js → index.117eaced.js} +1 -1
- package/dist/components/ModalDialog/{index.91777582.js → index.a684827f.js} +5 -5
- package/dist/components/ObjectLogs/{index.9d3fc2ae.js → index.4a859658.js} +12 -10
- package/dist/components/PaperForm/{index.218a6c4b.js → index.c5948756.js} +1 -1
- package/dist/components/Period/{index.74f35862.js → index.abe445bd.js} +9 -7
- package/dist/components/Resizeable/{index.44a0dd46.js → index.c96c0f09.js} +1 -1
- package/dist/components/SplitLayout/{index.81fc4750.js → index.5a8355d8.js} +1 -1
- package/dist/components/animate/PropagateLoader/index.be5b02c3.js +30 -0
- package/dist/components/areas/components/AreasAdmin/index.6794b22f.js +112 -0
- package/dist/components/areas/components/AreasContainer/index.a2f8899b.js +43 -0
- package/dist/components/areas/components/GridLayout/index.b9c1e846.js +92 -0
- package/dist/components/areas/components/Window/index.252fbf4e.js +646 -0
- package/dist/components/areas/components/WindowPopUp/index.214cf099.js +120 -0
- package/dist/components/areas/components/index.7d6cd649.js +67 -0
- package/dist/components/areas/contexts/AreaContext/index.4894cf23.js +286 -0
- package/dist/components/areas/contexts/AreasContext/index.cd8e4bee.js +158 -0
- package/dist/components/areas/contexts/DynamicMFParmsContext/index.668bc2e2.js +17 -0
- package/dist/components/areas/contexts/index.f9196fb2.js +1 -0
- package/dist/components/areas/hooks/useArea/index.9b85ce24.js +19 -0
- package/dist/components/areas/hooks/useDynamicMFParameters/index.e6a44ae3.js +11 -0
- package/dist/components/areas/index.d1bf612c.js +16 -0
- package/dist/components/formatters/BooleanFormatter/{index.efc8ffc2.js → index.3a9b16c8.js} +1 -1
- package/dist/components/formatters/{index.c3f4b687.js → index.0b5f95d0.js} +1 -1
- package/dist/components/hook-form/RHFPeriod/{index.2b8e63a2.js → index.3772295b.js} +1 -1
- package/dist/components/hook-form/RHFTextField/{index.7feaec71.js → index.b17d68f4.js} +1 -1
- package/dist/components/modal/WindowBase.04439b8e.js +120 -0
- package/dist/components/modal/WindowConfirm.0b8a6818.js +115 -0
- package/dist/components/modal/index.8387e90e.js +18 -0
- package/dist/components/mui_extended/Accordion/{index.8e123c57.js → index.a541c71c.js} +2 -2
- package/dist/components/mui_extended/Button/index.86a155a2.js +101 -0
- package/dist/components/mui_extended/IconButton/{index.e3adaa33.js → index.82f16572.js} +5 -62
- package/dist/components/mui_extended/MenuActions/index.ee17bddd.js +112 -0
- package/dist/components/mui_extended/Pager/{index.d245f821.js → index.74d3f5fc.js} +66 -1
- package/dist/components/mui_extended/Popover/index.53c77d23.js +137 -0
- package/dist/components/mui_extended/index.85dfadf1.js +16 -0
- package/dist/contexts/ModalContext/{index.0797eb17.js → index.b90eec94.js} +1 -1
- package/dist/hooks/useModal/{index.32da4dcb.js → index.d14edee3.js} +1 -1
- package/dist/index.js +128 -1691
- package/dist/{components/animate/PropagateLoader/index.eb401503.js → node_modules.416f1da3.js} +59 -28
- package/dist/package.json +2 -1
- package/dist/{react-draggable.3b5b6680.js → react-draggable.84d6b038.js} +1 -1
- package/dist/{react-json-view.03ae95f5.js → react-json-view.57125fcf.js} +1 -1
- package/dist/{react-resizable.6eae0397.js → react-resizable.1d00271d.js} +3 -4
- package/dist/{react-splitter-layout.873aece3.js → react-splitter-layout.8b1655c8.js} +1 -1
- package/dist/style.css +0 -114
- package/dist/utils/{index.9dce2e2f.js → index.899eb67b.js} +28 -460
- package/package.json +3 -1
- package/vite.config.ts +201 -129
- package/dist/components/CommonActions/components/Actions/index.ba86f72f.js +0 -868
- package/dist/components/mui_extended/Button/index.55fc70dc.js +0 -178
- package/dist/components/mui_extended/Popover/index.97cf3a3e.js +0 -275
- package/dist/node_modules.e0b84fac.js +0 -2154
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { Popover as Popover$1 } from "@mui/material";
|
|
3
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
|
+
const ArrowStyle = styled("span")(({
|
|
5
|
+
arrowType,
|
|
6
|
+
theme
|
|
7
|
+
}) => {
|
|
8
|
+
const SIZE = 12;
|
|
9
|
+
const POSITION = -(SIZE / 2);
|
|
10
|
+
const borderStyle = `solid 1px ${theme.palette.grey[50012]}`;
|
|
11
|
+
const topStyle = {
|
|
12
|
+
borderRadius: "0 0 3px 0",
|
|
13
|
+
top: POSITION,
|
|
14
|
+
borderBottom: borderStyle,
|
|
15
|
+
borderRight: borderStyle
|
|
16
|
+
};
|
|
17
|
+
const bottomStyle = {
|
|
18
|
+
borderRadius: "3px 0 0 0",
|
|
19
|
+
bottom: POSITION,
|
|
20
|
+
borderTop: borderStyle,
|
|
21
|
+
borderLeft: borderStyle
|
|
22
|
+
};
|
|
23
|
+
const leftStyle = {
|
|
24
|
+
borderRadius: "0 3px 0 0",
|
|
25
|
+
left: POSITION,
|
|
26
|
+
borderTop: borderStyle,
|
|
27
|
+
borderRight: borderStyle
|
|
28
|
+
};
|
|
29
|
+
const rightStyle = {
|
|
30
|
+
borderRadius: "0 0 0 3px",
|
|
31
|
+
right: POSITION,
|
|
32
|
+
borderBottom: borderStyle,
|
|
33
|
+
borderLeft: borderStyle
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
display: "none",
|
|
37
|
+
[theme.breakpoints.up("sm")]: {
|
|
38
|
+
zIndex: 1,
|
|
39
|
+
width: SIZE,
|
|
40
|
+
height: SIZE,
|
|
41
|
+
content: "''",
|
|
42
|
+
position: "absolute",
|
|
43
|
+
display: "block",
|
|
44
|
+
transform: "rotate(-135deg)",
|
|
45
|
+
background: theme.palette.background.paper
|
|
46
|
+
},
|
|
47
|
+
...arrowType === "top-left" && {
|
|
48
|
+
...topStyle,
|
|
49
|
+
left: 20
|
|
50
|
+
},
|
|
51
|
+
...arrowType === "top-center" && {
|
|
52
|
+
...topStyle,
|
|
53
|
+
left: 0,
|
|
54
|
+
right: 0,
|
|
55
|
+
margin: "auto"
|
|
56
|
+
},
|
|
57
|
+
...arrowType === "top-right" && {
|
|
58
|
+
...topStyle,
|
|
59
|
+
right: 20
|
|
60
|
+
},
|
|
61
|
+
...arrowType === "bottom-left" && {
|
|
62
|
+
...bottomStyle,
|
|
63
|
+
left: 20
|
|
64
|
+
},
|
|
65
|
+
...arrowType === "bottom-center" && {
|
|
66
|
+
...bottomStyle,
|
|
67
|
+
left: 0,
|
|
68
|
+
right: 0,
|
|
69
|
+
margin: "auto"
|
|
70
|
+
},
|
|
71
|
+
...arrowType === "bottom-right" && {
|
|
72
|
+
...bottomStyle,
|
|
73
|
+
right: 20
|
|
74
|
+
},
|
|
75
|
+
...arrowType === "left-top" && {
|
|
76
|
+
...leftStyle,
|
|
77
|
+
top: 20
|
|
78
|
+
},
|
|
79
|
+
...arrowType === "left-center" && {
|
|
80
|
+
...leftStyle,
|
|
81
|
+
top: 0,
|
|
82
|
+
bottom: 0,
|
|
83
|
+
margin: "auto"
|
|
84
|
+
},
|
|
85
|
+
...arrowType === "left-bottom" && {
|
|
86
|
+
...leftStyle,
|
|
87
|
+
bottom: 20
|
|
88
|
+
},
|
|
89
|
+
...arrowType === "right-top" && {
|
|
90
|
+
...rightStyle,
|
|
91
|
+
top: 20
|
|
92
|
+
},
|
|
93
|
+
...arrowType === "right-center" && {
|
|
94
|
+
...rightStyle,
|
|
95
|
+
top: 0,
|
|
96
|
+
bottom: 0,
|
|
97
|
+
margin: "auto"
|
|
98
|
+
},
|
|
99
|
+
...arrowType === "right-bottom" && {
|
|
100
|
+
...rightStyle,
|
|
101
|
+
bottom: 20
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
function Popover({
|
|
106
|
+
children,
|
|
107
|
+
arrowType = "top-right",
|
|
108
|
+
sx,
|
|
109
|
+
className,
|
|
110
|
+
...other
|
|
111
|
+
}) {
|
|
112
|
+
return /* @__PURE__ */ jsxs(Popover$1, {
|
|
113
|
+
className: `m4l_popover ${className ? className : ""}`,
|
|
114
|
+
anchorOrigin: {
|
|
115
|
+
vertical: "bottom",
|
|
116
|
+
horizontal: "right"
|
|
117
|
+
},
|
|
118
|
+
transformOrigin: {
|
|
119
|
+
vertical: "top",
|
|
120
|
+
horizontal: "right"
|
|
121
|
+
},
|
|
122
|
+
PaperProps: {
|
|
123
|
+
sx: {
|
|
124
|
+
p: 1,
|
|
125
|
+
overflow: "inherit",
|
|
126
|
+
...sx
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
...other,
|
|
130
|
+
children: [arrowType !== "no-arrow" && /* @__PURE__ */ jsx(ArrowStyle, {
|
|
131
|
+
arrowType
|
|
132
|
+
}), children]
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
export {
|
|
136
|
+
Popover as P
|
|
137
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "@mui/material";
|
|
2
|
+
import "react";
|
|
3
|
+
import "@m4l/core";
|
|
4
|
+
import "../Icon/index.8d754623.js";
|
|
5
|
+
import "@mui/material/styles";
|
|
6
|
+
import "react/jsx-runtime";
|
|
7
|
+
import "./Accordion/index.a541c71c.js";
|
|
8
|
+
import "./Avatar/index.fe06afd7.js";
|
|
9
|
+
import "react-router-dom";
|
|
10
|
+
import "@mui/material/Button";
|
|
11
|
+
import "@mui/lab";
|
|
12
|
+
import "./Button/index.86a155a2.js";
|
|
13
|
+
import "./Popover/index.53c77d23.js";
|
|
14
|
+
import "./MenuActions/index.ee17bddd.js";
|
|
15
|
+
import "./Pager/index.74d3f5fc.js";
|
|
16
|
+
import "./Tab/index.e0653a0a.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useState } from "react";
|
|
2
|
-
import { M as ModalDialog } from "../../components/ModalDialog/index.
|
|
2
|
+
import { M as ModalDialog } from "../../components/ModalDialog/index.a684827f.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
const ModalContext = createContext(null);
|
|
5
5
|
function ModalProvider({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import { M as ModalContext } from "../../contexts/ModalContext/index.
|
|
2
|
+
import { M as ModalContext } from "../../contexts/ModalContext/index.b90eec94.js";
|
|
3
3
|
function useModal() {
|
|
4
4
|
const context = useContext(ModalContext);
|
|
5
5
|
if (!context)
|