@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.
Files changed (61) hide show
  1. package/dist/{commonjs.bcc6b707.js → commonjs.565e6834.js} +0 -1
  2. package/dist/components/CommonActions/components/ActionCancel/{index.4b36950f.js → index.9230c57b.js} +1 -1
  3. package/dist/components/CommonActions/components/ActionFormCancel/{index.945e9887.js → index.ab514bd9.js} +9 -7
  4. package/dist/components/CommonActions/components/ActionIntro/{index.35a0d240.js → index.a0a341c7.js} +1 -1
  5. package/dist/components/CommonActions/components/Actions/index.d3e1f36e.js +54 -0
  6. package/dist/components/DataGrid/{index.156cc30c.js → index.67260455.js} +663 -15
  7. package/dist/components/DynamicFilter/{index.32f84995.js → index.071aa795.js} +92 -18
  8. package/dist/components/Icon/{index.1dbd3e58.js → index.8d754623.js} +62 -5
  9. package/dist/components/LanguagePopover/index.cbc4b282.js +144 -0
  10. package/dist/components/Loadable/{index.8c6006be.js → index.117eaced.js} +1 -1
  11. package/dist/components/ModalDialog/{index.91777582.js → index.a684827f.js} +5 -5
  12. package/dist/components/ObjectLogs/{index.9d3fc2ae.js → index.4a859658.js} +12 -10
  13. package/dist/components/PaperForm/{index.218a6c4b.js → index.c5948756.js} +1 -1
  14. package/dist/components/Period/{index.74f35862.js → index.abe445bd.js} +9 -7
  15. package/dist/components/Resizeable/{index.44a0dd46.js → index.c96c0f09.js} +1 -1
  16. package/dist/components/SplitLayout/{index.81fc4750.js → index.5a8355d8.js} +1 -1
  17. package/dist/components/animate/PropagateLoader/index.be5b02c3.js +30 -0
  18. package/dist/components/areas/components/AreasAdmin/index.6794b22f.js +112 -0
  19. package/dist/components/areas/components/AreasContainer/index.a2f8899b.js +43 -0
  20. package/dist/components/areas/components/GridLayout/index.b9c1e846.js +92 -0
  21. package/dist/components/areas/components/Window/index.252fbf4e.js +646 -0
  22. package/dist/components/areas/components/WindowPopUp/index.214cf099.js +120 -0
  23. package/dist/components/areas/components/index.7d6cd649.js +67 -0
  24. package/dist/components/areas/contexts/AreaContext/index.4894cf23.js +286 -0
  25. package/dist/components/areas/contexts/AreasContext/index.cd8e4bee.js +158 -0
  26. package/dist/components/areas/contexts/DynamicMFParmsContext/index.668bc2e2.js +17 -0
  27. package/dist/components/areas/contexts/index.f9196fb2.js +1 -0
  28. package/dist/components/areas/hooks/useArea/index.9b85ce24.js +19 -0
  29. package/dist/components/areas/hooks/useDynamicMFParameters/index.e6a44ae3.js +11 -0
  30. package/dist/components/areas/index.d1bf612c.js +16 -0
  31. package/dist/components/formatters/BooleanFormatter/{index.efc8ffc2.js → index.3a9b16c8.js} +1 -1
  32. package/dist/components/formatters/{index.c3f4b687.js → index.0b5f95d0.js} +1 -1
  33. package/dist/components/hook-form/RHFPeriod/{index.2b8e63a2.js → index.3772295b.js} +1 -1
  34. package/dist/components/hook-form/RHFTextField/{index.7feaec71.js → index.b17d68f4.js} +1 -1
  35. package/dist/components/modal/WindowBase.04439b8e.js +120 -0
  36. package/dist/components/modal/WindowConfirm.0b8a6818.js +115 -0
  37. package/dist/components/modal/index.8387e90e.js +18 -0
  38. package/dist/components/mui_extended/Accordion/{index.8e123c57.js → index.a541c71c.js} +2 -2
  39. package/dist/components/mui_extended/Button/index.86a155a2.js +101 -0
  40. package/dist/components/mui_extended/IconButton/{index.e3adaa33.js → index.82f16572.js} +5 -62
  41. package/dist/components/mui_extended/MenuActions/index.ee17bddd.js +112 -0
  42. package/dist/components/mui_extended/Pager/{index.d245f821.js → index.74d3f5fc.js} +66 -1
  43. package/dist/components/mui_extended/Popover/index.53c77d23.js +137 -0
  44. package/dist/components/mui_extended/index.85dfadf1.js +16 -0
  45. package/dist/contexts/ModalContext/{index.0797eb17.js → index.b90eec94.js} +1 -1
  46. package/dist/hooks/useModal/{index.32da4dcb.js → index.d14edee3.js} +1 -1
  47. package/dist/index.js +128 -1691
  48. package/dist/{components/animate/PropagateLoader/index.eb401503.js → node_modules.416f1da3.js} +59 -28
  49. package/dist/package.json +2 -1
  50. package/dist/{react-draggable.3b5b6680.js → react-draggable.84d6b038.js} +1 -1
  51. package/dist/{react-json-view.03ae95f5.js → react-json-view.57125fcf.js} +1 -1
  52. package/dist/{react-resizable.6eae0397.js → react-resizable.1d00271d.js} +3 -4
  53. package/dist/{react-splitter-layout.873aece3.js → react-splitter-layout.8b1655c8.js} +1 -1
  54. package/dist/style.css +0 -114
  55. package/dist/utils/{index.9dce2e2f.js → index.899eb67b.js} +28 -460
  56. package/package.json +3 -1
  57. package/vite.config.ts +201 -129
  58. package/dist/components/CommonActions/components/Actions/index.ba86f72f.js +0 -868
  59. package/dist/components/mui_extended/Button/index.55fc70dc.js +0 -178
  60. package/dist/components/mui_extended/Popover/index.97cf3a3e.js +0 -275
  61. package/dist/node_modules.e0b84fac.js +0 -2154
@@ -1,7 +1,62 @@
1
- import { styled, useTheme } from "@mui/material";
2
- import { jsx } from "react/jsx-runtime";
3
1
  import * as React from "react";
4
- import { c as createAnimation, p as parseLengthAndUnit } from "../../../node_modules.e0b84fac.js";
2
+ var cssUnit = {
3
+ cm: true,
4
+ mm: true,
5
+ in: true,
6
+ px: true,
7
+ pt: true,
8
+ pc: true,
9
+ em: true,
10
+ ex: true,
11
+ ch: true,
12
+ rem: true,
13
+ vw: true,
14
+ vh: true,
15
+ vmin: true,
16
+ vmax: true,
17
+ "%": true
18
+ };
19
+ function parseLengthAndUnit(size) {
20
+ if (typeof size === "number") {
21
+ return {
22
+ value: size,
23
+ unit: "px"
24
+ };
25
+ }
26
+ var value;
27
+ var valueString = (size.match(/^[0-9.]*/) || "").toString();
28
+ if (valueString.includes(".")) {
29
+ value = parseFloat(valueString);
30
+ } else {
31
+ value = parseInt(valueString, 10);
32
+ }
33
+ var unit = (size.match(/[^0-9]*$/) || "").toString();
34
+ if (cssUnit[unit]) {
35
+ return {
36
+ value,
37
+ unit
38
+ };
39
+ }
40
+ console.warn("React Spinners: ".concat(size, " is not a valid css value. Defaulting to ").concat(value, "px."));
41
+ return {
42
+ value,
43
+ unit: "px"
44
+ };
45
+ }
46
+ var createAnimation = function(loaderName, frames, suffix) {
47
+ var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
48
+ if (typeof window == "undefined" || !window.document) {
49
+ return animationName;
50
+ }
51
+ var styleEl = document.createElement("style");
52
+ document.head.appendChild(styleEl);
53
+ var styleSheet = styleEl.sheet;
54
+ var keyFrames = "\n @keyframes ".concat(animationName, " {\n ").concat(frames, "\n }\n ");
55
+ if (styleSheet) {
56
+ styleSheet.insertRule(keyFrames, 0);
57
+ }
58
+ return animationName;
59
+ };
5
60
  var __assign = globalThis && globalThis.__assign || function() {
6
61
  __assign = Object.assign || function(t) {
7
62
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -35,7 +90,7 @@ var propagate = [
35
90
  createAnimation("PropagateLoader", "25% {transform: translateX(".concat(distance[0], "rem) scale(0.75)}\n 50% {transform: translateX(").concat(distance[1], "rem) scale(0.6)}\n 75% {transform: translateX(").concat(distance[1], "rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-4"),
36
91
  createAnimation("PropagateLoader", "25% {transform: translateX(".concat(distance[0], "rem) scale(0.75)}\n 50% {transform: translateX(").concat(distance[1], "rem) scale(0.6)}\n 75% {transform: translateX(").concat(distance[2], "rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"), "propogate-5")
37
92
  ];
38
- function PropagateLoader$1(_a) {
93
+ function PropagateLoader(_a) {
39
94
  var _b = _a.loading, loading = _b === void 0 ? true : _b, _c = _a.color, color = _c === void 0 ? "#000000" : _c, _d = _a.speedMultiplier, speedMultiplier = _d === void 0 ? 1 : _d, _e = _a.cssOverride, cssOverride = _e === void 0 ? {} : _e, _f = _a.size, size = _f === void 0 ? 15 : _f, additionalprops = __rest(_a, ["loading", "color", "speedMultiplier", "cssOverride", "size"]);
40
95
  var _g = parseLengthAndUnit(size), value = _g.value, unit = _g.unit;
41
96
  var wrapper = __assign({ display: "inherit", position: "relative" }, cssOverride);
@@ -65,30 +120,6 @@ function PropagateLoader$1(_a) {
65
120
  React.createElement("span", { style: style(5) })
66
121
  );
67
122
  }
68
- const WrapperPropageteLoader = styled("div")(({
69
- theme
70
- }) => ({
71
- right: 0,
72
- bottom: 0,
73
- zIndex: 99999,
74
- width: "100%",
75
- height: "100%",
76
- position: "fixed",
77
- display: "flex",
78
- alignItems: "center",
79
- justifyContent: "center",
80
- background: theme.palette.background.default
81
- }));
82
- const PropagateLoader = () => {
83
- const {
84
- palette
85
- } = useTheme();
86
- return /* @__PURE__ */ jsx(WrapperPropageteLoader, {
87
- children: /* @__PURE__ */ jsx(PropagateLoader$1, {
88
- color: palette.primary.main
89
- })
90
- });
91
- };
92
123
  export {
93
124
  PropagateLoader as P
94
125
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.1.36",
3
+ "version": "0.1.37",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@hookform/resolvers": "^2.9.10",
@@ -8,6 +8,7 @@
8
8
  "@m4l/graphics": "*",
9
9
  "lodash.debounce": "^4.0.8",
10
10
  "lodash.throttle": "^4.1.1",
11
+ "react-grid-layout": "^1.3.4",
11
12
  "react-helmet-async": "^1.3.0",
12
13
  "react-hook-form": "^7.33.1",
13
14
  "react-router-dom": "6.3.0",
@@ -2,7 +2,7 @@ import React__default from "react";
2
2
  import require$$1 from "prop-types";
3
3
  import require$$2 from "react-dom";
4
4
  import clsx from "clsx";
5
- import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.9dce2e2f.js";
5
+ import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.899eb67b.js";
6
6
  var cjs = { exports: {} };
7
7
  var Draggable$1 = {};
8
8
  var DraggableCore$2 = {};
@@ -1,4 +1,4 @@
1
- import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./commonjs.bcc6b707.js";
1
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./commonjs.565e6834.js";
2
2
  import React__default from "react";
3
3
  var main = { exports: {} };
4
4
  (function(module, exports) {
@@ -1,6 +1,6 @@
1
1
  import React__default from "react";
2
- import { c as cjs } from "./react-draggable.3b5b6680.js";
3
- import { b as utils } from "./utils/index.9dce2e2f.js";
2
+ import { c as cjs } from "./react-draggable.84d6b038.js";
3
+ import { u as utils } from "./utils/index.899eb67b.js";
4
4
  import require$$1 from "prop-types";
5
5
  var reactResizable = { exports: {} };
6
6
  var Resizable$1 = {};
@@ -540,6 +540,5 @@ reactResizable.exports.Resizable = Resizable$1.default;
540
540
  var ResizableBox = reactResizable.exports.ResizableBox = ResizableBox$2.default;
541
541
  const styles = "";
542
542
  export {
543
- ResizableBox as R,
544
- reactResizable as r
543
+ ResizableBox as R
545
544
  };
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from "./commonjs.bcc6b707.js";
1
+ import { g as getDefaultExportFromCjs } from "./commonjs.565e6834.js";
2
2
  import require$$1 from "prop-types";
3
3
  import React__default from "react";
4
4
  var lib = { exports: {} };
package/dist/style.css CHANGED
@@ -1,117 +1,3 @@
1
- .react-grid-layout {
2
- position: relative;
3
- transition: height 200ms ease;
4
- }
5
- .react-grid-item {
6
- transition: all 200ms ease;
7
- transition-property: left, top;
8
- }
9
- .react-grid-item img {
10
- pointer-events: none;
11
- user-select: none;
12
- }
13
- .react-grid-item.cssTransforms {
14
- transition-property: transform;
15
- }
16
- .react-grid-item.resizing {
17
- z-index: 1;
18
- will-change: width, height;
19
- }
20
-
21
- .react-grid-item.react-draggable-dragging {
22
- transition: none;
23
- z-index: 3;
24
- will-change: transform;
25
- }
26
-
27
- .react-grid-item.dropping {
28
- visibility: hidden;
29
- }
30
-
31
- .react-grid-item.react-grid-placeholder {
32
- background: red;
33
- opacity: 0.2;
34
- transition-duration: 100ms;
35
- z-index: 2;
36
- -webkit-user-select: none;
37
- -moz-user-select: none;
38
- -ms-user-select: none;
39
- -o-user-select: none;
40
- user-select: none;
41
- }
42
-
43
- .react-grid-item > .react-resizable-handle {
44
- position: absolute;
45
- width: 20px;
46
- height: 20px;
47
- }
48
-
49
- .react-grid-item > .react-resizable-handle::after {
50
- content: "";
51
- position: absolute;
52
- right: 3px;
53
- bottom: 3px;
54
- width: 5px;
55
- height: 5px;
56
- border-right: 2px solid rgba(0, 0, 0, 0.4);
57
- border-bottom: 2px solid rgba(0, 0, 0, 0.4);
58
- }
59
-
60
- .react-resizable-hide > .react-resizable-handle {
61
- display: none;
62
- }
63
-
64
- .react-grid-item > .react-resizable-handle.react-resizable-handle-sw {
65
- bottom: 0;
66
- left: 0;
67
- cursor: sw-resize;
68
- transform: rotate(90deg);
69
- }
70
- .react-grid-item > .react-resizable-handle.react-resizable-handle-se {
71
- bottom: 0;
72
- right: 0;
73
- cursor: se-resize;
74
- }
75
- .react-grid-item > .react-resizable-handle.react-resizable-handle-nw {
76
- top: 0;
77
- left: 0;
78
- cursor: nw-resize;
79
- transform: rotate(180deg);
80
- }
81
- .react-grid-item > .react-resizable-handle.react-resizable-handle-ne {
82
- top: 0;
83
- right: 0;
84
- cursor: ne-resize;
85
- transform: rotate(270deg);
86
- }
87
- .react-grid-item > .react-resizable-handle.react-resizable-handle-w,
88
- .react-grid-item > .react-resizable-handle.react-resizable-handle-e {
89
- top: 50%;
90
- margin-top: -10px;
91
- cursor: ew-resize;
92
- }
93
- .react-grid-item > .react-resizable-handle.react-resizable-handle-w {
94
- left: 0;
95
- transform: rotate(135deg);
96
- }
97
- .react-grid-item > .react-resizable-handle.react-resizable-handle-e {
98
- right: 0;
99
- transform: rotate(315deg);
100
- }
101
- .react-grid-item > .react-resizable-handle.react-resizable-handle-n,
102
- .react-grid-item > .react-resizable-handle.react-resizable-handle-s {
103
- left: 50%;
104
- margin-left: -10px;
105
- cursor: ns-resize;
106
- }
107
- .react-grid-item > .react-resizable-handle.react-resizable-handle-n {
108
- top: 0;
109
- transform: rotate(225deg);
110
- }
111
- .react-grid-item > .react-resizable-handle.react-resizable-handle-s {
112
- bottom: 0;
113
- transform: rotate(45deg);
114
- }
115
1
  .react-resizable {
116
2
  position: relative;
117
3
  }