@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,92 @@
|
|
|
1
|
+
import { WidthProvider, Responsive } from "react-grid-layout";
|
|
2
|
+
import { a as useArea } from "../../hooks/useArea/index.9b85ce24.js";
|
|
3
|
+
import { styled } from "@mui/material/styles";
|
|
4
|
+
import { W as WindowPopUp } from "../WindowPopUp/index.214cf099.js";
|
|
5
|
+
import { M as MemonizedWindow } from "../Window/index.252fbf4e.js";
|
|
6
|
+
import "react-grid-layout/css/styles.css";
|
|
7
|
+
import "../../../../react-resizable.1d00271d.js";
|
|
8
|
+
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
9
|
+
const WrapperPoups = styled("div")(() => ({
|
|
10
|
+
zIndex: 1,
|
|
11
|
+
" .react-draggable": {
|
|
12
|
+
position: "absolute"
|
|
13
|
+
}
|
|
14
|
+
}));
|
|
15
|
+
const ResponsiveGridLayout = WidthProvider(Responsive);
|
|
16
|
+
const GridLayout = () => {
|
|
17
|
+
const {
|
|
18
|
+
status,
|
|
19
|
+
allLayouts,
|
|
20
|
+
layouts,
|
|
21
|
+
hashWindowsLayouts,
|
|
22
|
+
windowsPopUps,
|
|
23
|
+
onLayoutChange
|
|
24
|
+
} = useArea();
|
|
25
|
+
function onBreakpointChange(_newBreakpoint, _newCols) {
|
|
26
|
+
}
|
|
27
|
+
if (status === "init") {
|
|
28
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
29
|
+
} else if (status === "load") {
|
|
30
|
+
return /* @__PURE__ */ jsx("div", {
|
|
31
|
+
children: "Loading..."
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return /* @__PURE__ */ jsxs(ResponsiveGridLayout, {
|
|
35
|
+
className: "layout",
|
|
36
|
+
onLayoutChange,
|
|
37
|
+
onBreakpointChange,
|
|
38
|
+
breakpoints: {
|
|
39
|
+
lg: 1200,
|
|
40
|
+
md: 996,
|
|
41
|
+
sm: 768,
|
|
42
|
+
xs: 480,
|
|
43
|
+
xxs: 0
|
|
44
|
+
},
|
|
45
|
+
cols: {
|
|
46
|
+
lg: 24,
|
|
47
|
+
md: 20,
|
|
48
|
+
sm: 12,
|
|
49
|
+
xs: 8,
|
|
50
|
+
xxs: 2
|
|
51
|
+
},
|
|
52
|
+
rowHeight: 100,
|
|
53
|
+
margin: [5, 5],
|
|
54
|
+
containerPadding: [3, 3],
|
|
55
|
+
draggableHandle: ".m4l_draggable_handle",
|
|
56
|
+
compactType: "horizontal",
|
|
57
|
+
layouts: allLayouts,
|
|
58
|
+
children: [/* @__PURE__ */ jsx(WrapperPoups, {
|
|
59
|
+
id: "WrapperPoups",
|
|
60
|
+
"data-grid": {
|
|
61
|
+
i: "none",
|
|
62
|
+
x: 0,
|
|
63
|
+
y: 0,
|
|
64
|
+
w: 0,
|
|
65
|
+
h: 0,
|
|
66
|
+
maxW: 0,
|
|
67
|
+
maxH: 0,
|
|
68
|
+
minW: 0,
|
|
69
|
+
minH: 0,
|
|
70
|
+
static: true,
|
|
71
|
+
isDraggable: false,
|
|
72
|
+
isResizable: false
|
|
73
|
+
},
|
|
74
|
+
children: windowsPopUps.map((wp) => /* @__PURE__ */ jsx(WindowPopUp, {
|
|
75
|
+
...wp
|
|
76
|
+
}, wp.container_id))
|
|
77
|
+
}, "none"), layouts.map((l) => {
|
|
78
|
+
if (hashWindowsLayouts[l.i]) {
|
|
79
|
+
return /* @__PURE__ */ jsx("div", {
|
|
80
|
+
"data-grid": l,
|
|
81
|
+
children: /* @__PURE__ */ jsx(MemonizedWindow, {
|
|
82
|
+
...hashWindowsLayouts[l.i]
|
|
83
|
+
})
|
|
84
|
+
}, l.i);
|
|
85
|
+
}
|
|
86
|
+
return null;
|
|
87
|
+
})]
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
GridLayout as G
|
|
92
|
+
};
|