@m4l/components 0.1.95 → 0.1.97
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/@types/export.d.ts +13 -4
- package/{commonjs.565e6834.js → commonjs.333e55c7.js} +5 -0
- package/components/AccountPopover/{index.3711d526.js → index.252cc907.js} +2 -4
- package/components/AccountPopover/index.d.ts +1 -0
- package/components/AppBar/AppBar.d.ts +24 -0
- package/components/AppBar/classes/index.d.ts +2 -0
- package/components/AppBar/classes/types.d.ts +2 -0
- package/components/AppBar/{index.512042a9.js → index.f1a995c7.js} +26 -5
- package/components/AppBar/types.d.ts +14 -0
- package/components/CommonActions/components/ActionCancel/{index.bb383946.js → index.918fe98b.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.97ecdeef.js → index.8b12f4b2.js} +5 -14
- package/components/CommonActions/components/ActionFormIntro/{index.3deddb07.js → index.c2e8b360.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.4bc5780e.js → index.ee716861.js} +2 -2
- package/components/CommonActions/components/Actions/{index.ccf731c1.js → index.2f6286eb.js} +1 -1
- package/components/DataGrid/formatters/columnPointsFormatter/{index.5e645334.js → index.a19b7b90.js} +1 -1
- package/components/DataGrid/{index.47a152d0.js → index.227eb189.js} +6 -7
- package/components/DataGrid/subcomponents/Actions/{index.8d9feca6.js → index.1b896eae.js} +9 -9
- package/components/DataGrid/types.d.ts +3 -0
- package/components/DraggableWindow/{index.8f423ed7.js → index.f9f067bd.js} +1 -1
- package/components/DynamicFilter/classes/index.d.ts +1 -1
- package/components/DynamicFilter/classes/types.d.ts +1 -0
- package/components/DynamicFilter/{index.a50a1483.js → index.91f911cc.js} +16 -12
- package/components/GridLayout/{index.4a245d9e.js → index.e8c04242.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.ea745285.js → index.4d38f12e.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.edb59c22.js → index.e25df1dc.js} +1 -1
- package/components/Icon/index.4e424a81.js +248 -0
- package/components/Icon/types.d.ts +1 -0
- package/components/Image/{index.9799dfc0.js → index.8b134b95.js} +44 -2
- package/components/Image/types.d.ts +2 -2
- package/components/LanguagePopover/{index.087b430d.js → index.c5eb0191.js} +2 -2
- package/components/LinearProgressIndeterminate/{index.c46da124.js → index.a0ad2d9e.js} +1 -1
- package/components/LoadingError/{index.08cf9728.js → index.536db030.js} +3 -3
- package/components/MFLoader/{index.4b531d2d.js → index.3ba9d320.js} +1 -1
- package/components/ModalDialog/{index.ec55087e.js → index.89e26413.js} +4 -4
- package/components/NoItemSelected/{index.8a2a13f8.js → index.216d87c8.js} +1 -1
- package/components/ObjectLogs/{index.55b5c933.js → index.882325f1.js} +6 -6
- package/components/Page/{index.49d18c85.js → index.c100afa4.js} +1 -1
- package/components/PaperForm/{index.a2b69977.js → index.b7918854.js} +1 -1
- package/components/Period/{index.8cccbb4b.js → index.5f3af84b.js} +2 -2
- package/components/PrintingSystem/{index.d1fd7818.js → index.2147b2c3.js} +14 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index.f6410daa.js → index.7bed0f05.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.6b30abe0.js → index.c552eb03.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.dcac3bc0.js → index.007d01ab.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.dd21921e.js → index.72ef9241.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.eb5ebe06.js → index.2fac7376.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.48e8769c.js → index.01ae9ede.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.ccec72dc.js → index.cfd86519.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.807e0343.js → index.c4fa3813.js} +1 -1
- package/components/PrintingSystem/subcomponents/QRImageNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/QRImageNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/SectionNode/{index.622df623.js → index.13e656ad.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.f06ac3d5.js → index.0c3db261.js} +1 -1
- package/components/PrintingSystem/types.d.ts +10 -1
- package/components/PropertyValue/classes/index.d.ts +1 -1
- package/components/PropertyValue/classes/types.d.ts +4 -1
- package/components/PropertyValue/index.3d5e8c52.js +206 -0
- package/components/PropertyValue/types.d.ts +5 -7
- package/components/Resizeable/{index.8c53c1fa.js → index.6478d7d8.js} +1 -1
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/{index.ce301edd.js → index.ed0211ba.js} +11 -11
- package/components/SideBar/types.d.ts +3 -3
- package/components/SplitLayout/{index.9ef430f6.js → index.30fd5861.js} +1 -1
- package/components/ToastContainer/ToastContainer.d.ts +3 -0
- package/components/ToastContainer/classes/constants.d.ts +1 -0
- package/components/ToastContainer/classes/index.d.ts +8 -0
- package/components/ToastContainer/classes/types.d.ts +9 -0
- package/components/ToastContainer/index.2343fd28.js +87 -0
- package/components/ToastContainer/index.d.ts +2 -0
- package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +3 -0
- package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +5 -0
- package/components/ToastContainer/types.d.ts +4 -0
- package/components/areas/components/AreasAdmin/{index.3c182644.js → index.917f9ff2.js} +11 -11
- package/components/areas/components/AreasViewer/{index.a0a969e7.js → index.7d3415a5.js} +15 -15
- package/components/areas/contexts/AreasContext/{index.d43aceaf.js → index.e3324e71.js} +4 -4
- package/components/areas/hooks/useAreas/{index.6a1d525c.js → index.c6264add.js} +1 -1
- package/components/formatters/BooleanFormatter/{index.00596be3.js → index.35005602.js} +2 -2
- package/components/formatters/PointsFormatter/{index.80a4e414.js → index.5c94c5e8.js} +2 -2
- package/components/formatters/PointsFormatter/index.d.ts +1 -1
- package/components/formatters/{index.1906141f.js → index.e8bd78a5.js} +1 -1
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/{index.a5f1034a.js → index.b01b97e3.js} +26 -35
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +1 -2
- package/components/hook-form/RHFAutocomplete/types.d.ts +8 -3
- package/components/hook-form/RHFAutocompleteAsync/{index.047ff594.js → index.8241ce18.js} +1 -1
- package/components/hook-form/RHFColorPicker/classes/constants.d.ts +1 -0
- package/components/hook-form/RHFColorPicker/classes/index.d.ts +11 -0
- package/components/hook-form/RHFColorPicker/classes/types.d.ts +11 -0
- package/components/hook-form/RHFColorPicker/index.d.ts +9 -0
- package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +2 -0
- package/components/hook-form/RHFColorPicker/types.d.ts +8 -0
- package/components/hook-form/RHFDateTime/{index.a273293c.js → index.e8ea2555.js} +1 -1
- package/components/hook-form/RHFDateTime/types.d.ts +0 -1
- package/components/hook-form/RHFPeriod/{index.53827a17.js → index.584f515c.js} +1 -1
- package/components/hook-form/RHFTextField/{index.5801338a.js → index.87c99323.js} +2 -2
- package/components/hook-form/RHFUpload/{index.f04df1c9.js → index.f2983d70.js} +4 -4
- package/components/hook-form/index.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/components/modal/{WindowBase.beb2fb3e.js → WindowBase.b1f12376.js} +3 -3
- package/components/modal/{WindowConfirm.477e6f63.js → WindowConfirm.481ef7a0.js} +6 -6
- package/components/mui_extended/Accordion/{index.08ff7e2f.js → index.54101c95.js} +3 -3
- package/components/mui_extended/Button/classes/types.d.ts +2 -0
- package/components/mui_extended/Button/{index.857c2dfe.js → index.158a9a65.js} +3 -3
- package/components/mui_extended/IconButton/{index.5499ffdb.js → index.3c568901.js} +1 -1
- package/components/mui_extended/LoadingButton/classes/constants.d.ts +1 -1
- package/components/mui_extended/MenuActions/{index.d8d0c00e.js → index.4817512a.js} +2 -2
- package/components/mui_extended/Pager/{index.47343062.js → index.ba2163c2.js} +1 -1
- package/components/mui_extended/Tab/{index.2f9a6815.js → index.ed3c7b65.js} +1 -1
- package/contexts/ModalContext/{index.436c2938.js → index.b39d303d.js} +1 -1
- package/hooks/useFormAddEdit/{index.b9ccd95f.js → index.6929cc88.js} +5 -4
- package/hooks/useFormAddEdit/types.d.ts +1 -0
- package/hooks/useModal/{index.05d1821e.js → index.abdc0962.js} +1 -1
- package/index.js +106 -91
- package/node_modules.a40403af.js +6921 -0
- package/package.json +4 -2
- package/{react-draggable.e4725f3a.js → react-draggable.ee21cb7e.js} +4 -4
- package/{react-json-view.57125fcf.js → react-json-view.5636414a.js} +1 -1
- package/{react-resizable.c07d63fb.js → react-resizable.ee028152.js} +5 -5
- package/{react-splitter-layout.8b1655c8.js → react-splitter-layout.c5d98bf7.js} +3 -3
- package/vendor.c4bc5f4d.js +249 -0
- package/components/Icon/index.11a7a77c.js +0 -147
- package/components/PropertyValue/index.4ae0bb21.js +0 -220
- package/components/PropertyValue/skeleton.d.ts +0 -3
- package/vendor.6019bf6e.js +0 -104
- /package/components/GridLayout/subcomponents/{Griditem → GridItem}/index.d.ts +0 -0
- /package/components/GridLayout/subcomponents/{Griditem → GridItem}/types.d.ts +0 -0
- /package/utils/{index.6469f148.js → index.de903261.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.97",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@emotion/react": "^11.9.0",
|
|
@@ -17,12 +17,14 @@
|
|
|
17
17
|
"fast-equals": "^5.0.1",
|
|
18
18
|
"immer": "^9.0.21",
|
|
19
19
|
"install": "^0.13.0",
|
|
20
|
+
"jwt-decode": "^4.0.0",
|
|
20
21
|
"lodash.clonedeep": "^4.5.0",
|
|
21
22
|
"lodash.debounce": "^4.0.8",
|
|
22
|
-
"jwt-decode": "^4.0.0",
|
|
23
23
|
"lodash.throttle": "^4.1.1",
|
|
24
24
|
"npm": "^9.6.2",
|
|
25
|
+
"qrcode.react": "^3.1.0",
|
|
25
26
|
"react-chartjs-2": "^5.2.0",
|
|
27
|
+
"react-color": "^2.19.3",
|
|
26
28
|
"react-dnd": "^16.0.1",
|
|
27
29
|
"react-dnd-html5-backend": "^16.0.1",
|
|
28
30
|
"react-helmet-async": "^1.3.0",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
3
|
import require$$2 from "react-dom";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { d as domFns, s as shims, l as log, p as positionFns } from "./utils/index.
|
|
5
|
+
import { d as domFns, s as shims, l as log, p as positionFns } from "./utils/index.de903261.js";
|
|
6
6
|
var cjs = { exports: {} };
|
|
7
7
|
var Draggable$1 = {};
|
|
8
8
|
var DraggableCore$2 = {};
|
|
@@ -11,7 +11,7 @@ Object.defineProperty(DraggableCore$2, "__esModule", {
|
|
|
11
11
|
});
|
|
12
12
|
DraggableCore$2.default = void 0;
|
|
13
13
|
var React = _interopRequireWildcard(React__default);
|
|
14
|
-
var _propTypes = _interopRequireDefault(
|
|
14
|
+
var _propTypes = _interopRequireDefault(PropTypes);
|
|
15
15
|
var _reactDom = _interopRequireDefault(require$$2);
|
|
16
16
|
var _domFns = domFns;
|
|
17
17
|
var _positionFns = positionFns;
|
|
@@ -316,7 +316,7 @@ _defineProperty(DraggableCore$1, "defaultProps", {
|
|
|
316
316
|
});
|
|
317
317
|
exports.default = void 0;
|
|
318
318
|
var React2 = _interopRequireWildcard2(React__default);
|
|
319
|
-
var _propTypes2 = _interopRequireDefault2(
|
|
319
|
+
var _propTypes2 = _interopRequireDefault2(PropTypes);
|
|
320
320
|
var _reactDom2 = _interopRequireDefault2(require$$2);
|
|
321
321
|
var _clsx = _interopRequireDefault2(clsx);
|
|
322
322
|
var _domFns2 = domFns;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./commonjs.
|
|
1
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./commonjs.333e55c7.js";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
var main = { exports: {} };
|
|
4
4
|
(function(module, exports) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { c as cjs } from "./react-draggable.
|
|
3
|
-
import { u as utils } from "./utils/index.
|
|
4
|
-
import
|
|
2
|
+
import { c as cjs } from "./react-draggable.ee21cb7e.js";
|
|
3
|
+
import { u as utils } from "./utils/index.de903261.js";
|
|
4
|
+
import PropTypes from "prop-types";
|
|
5
5
|
var reactResizable = { exports: {} };
|
|
6
6
|
var Resizable$2 = {};
|
|
7
7
|
var propTypes = {};
|
|
8
8
|
propTypes.__esModule = true;
|
|
9
9
|
propTypes.resizableProps = void 0;
|
|
10
|
-
var _propTypes$2 = _interopRequireDefault$1(
|
|
10
|
+
var _propTypes$2 = _interopRequireDefault$1(PropTypes);
|
|
11
11
|
function _interopRequireDefault$1(obj) {
|
|
12
12
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
13
13
|
}
|
|
@@ -364,7 +364,7 @@ var ResizableBox$2 = {};
|
|
|
364
364
|
ResizableBox$2.__esModule = true;
|
|
365
365
|
ResizableBox$2.default = void 0;
|
|
366
366
|
var React = _interopRequireWildcard(React__default);
|
|
367
|
-
var _propTypes = _interopRequireDefault(
|
|
367
|
+
var _propTypes = _interopRequireDefault(PropTypes);
|
|
368
368
|
var _Resizable = _interopRequireDefault(Resizable$2);
|
|
369
369
|
var _propTypes2 = propTypes;
|
|
370
370
|
var _excluded = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from "./commonjs.
|
|
2
|
-
import
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./commonjs.333e55c7.js";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
3
|
import React__default from "react";
|
|
4
4
|
var lib = { exports: {} };
|
|
5
5
|
(function(module, exports) {
|
|
6
6
|
!function(e, t) {
|
|
7
|
-
module.exports = t(
|
|
7
|
+
module.exports = t(PropTypes, React__default);
|
|
8
8
|
}(window, function(e, t) {
|
|
9
9
|
return function(e2) {
|
|
10
10
|
var t2 = {};
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import "./assets/Logo/index.228dcb5a.js";
|
|
2
|
+
import "./components/DataGrid/index.227eb189.js";
|
|
3
|
+
import "./components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
4
|
+
import "./components/NavLink/index.b75c91e1.js";
|
|
5
|
+
import "./components/ScrollToTop/index.e06f98f6.js";
|
|
6
|
+
import "./components/animate/index.5d4575bc.js";
|
|
7
|
+
import "./components/animate/MotionContainer/index.8d9f9d80.js";
|
|
8
|
+
import "./components/animate/MotionLazyContainer/index.572dd012.js";
|
|
9
|
+
import "./components/animate/LoadingScreen/index.1d0c4307.js";
|
|
10
|
+
import "./components/animate/PropagateLoader/index.7fab43c8.js";
|
|
11
|
+
import "./components/animate/variants/fade.b561c0fc.js";
|
|
12
|
+
import "./components/animate/variants/bounce.784aaaaa.js";
|
|
13
|
+
import "./components/animate/variants/container.11f82b76.js";
|
|
14
|
+
import "./components/animate/variants/transition.bd46b9ce.js";
|
|
15
|
+
import "./components/areas/components/AreasAdmin/index.917f9ff2.js";
|
|
16
|
+
import "./components/areas/components/AreasViewer/index.7d3415a5.js";
|
|
17
|
+
import "./components/areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
18
|
+
import "./components/areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
19
|
+
import "./components/areas/contexts/AreasContext/index.e3324e71.js";
|
|
20
|
+
import "./components/areas/hooks/useDynamicMFParameters/index.e52c5392.js";
|
|
21
|
+
import "./components/areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
22
|
+
import "./components/areas/dictionary.08cfc4c9.js";
|
|
23
|
+
import "./components/hook-form/RHFAutocomplete/index.b01b97e3.js";
|
|
24
|
+
import "./components/hook-form/RHFAutocompleteAsync/index.8241ce18.js";
|
|
25
|
+
import { useState } from "react";
|
|
26
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
27
|
+
import { useModuleSkeleton, useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
28
|
+
import { S as SketchPicker } from "./node_modules.a40403af.js";
|
|
29
|
+
import "lodash-es/debounce";
|
|
30
|
+
import "lodash-es/each";
|
|
31
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
32
|
+
import { H as HelperText } from "./components/HelperText/index.7d2afdb3.js";
|
|
33
|
+
import { generateUtilityClasses, generateUtilityClass, styled, Skeleton as Skeleton$1 } from "@mui/material";
|
|
34
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
35
|
+
import { useTheme } from "@mui/material/styles";
|
|
36
|
+
import { P as Popover } from "./components/mui_extended/Popover/index.b3eca6b1.js";
|
|
37
|
+
import { B as Button } from "./components/mui_extended/Button/index.158a9a65.js";
|
|
38
|
+
import { I as Icon } from "./components/Icon/index.4e424a81.js";
|
|
39
|
+
import "./components/hook-form/RHFDateTime/index.e8ea2555.js";
|
|
40
|
+
import "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
|
|
41
|
+
import "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
|
|
42
|
+
import "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
|
|
43
|
+
import "./components/hook-form/RHFPeriod/index.584f515c.js";
|
|
44
|
+
import "./components/Period/index.5f3af84b.js";
|
|
45
|
+
import "./components/hook-form/RHFCheckbox/index.a38715e3.js";
|
|
46
|
+
import "./components/hook-form/RHFTextField/index.87c99323.js";
|
|
47
|
+
import "./components/hook-form/RHFUpload/index.f2983d70.js";
|
|
48
|
+
import "./components/mui_extended/Accordion/index.54101c95.js";
|
|
49
|
+
import "./components/mui_extended/Avatar/index.75e6ed57.js";
|
|
50
|
+
import "./components/mui_extended/BoxIcon/index.e638ecc8.js";
|
|
51
|
+
import "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
|
|
52
|
+
import "./components/mui_extended/CircularProgress/index.ad569afd.js";
|
|
53
|
+
import "./components/mui_extended/Badge/index.09f5aee5.js";
|
|
54
|
+
import "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
|
|
55
|
+
import "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
|
|
56
|
+
import "./components/mui_extended/MenuActions/index.4817512a.js";
|
|
57
|
+
import "./components/mui_extended/Pager/index.ba2163c2.js";
|
|
58
|
+
import "./components/mui_extended/Tab/index.ed3c7b65.js";
|
|
59
|
+
import "./components/mui_extended/CheckBox.e662d20c.js";
|
|
60
|
+
import "./components/mui_extended/IconButton/index.3c568901.js";
|
|
61
|
+
import "./components/mui_extended/Stack/index.0e53197c.js";
|
|
62
|
+
import "./components/mui_extended/Tooltip/index.24a2bc3f.js";
|
|
63
|
+
import "./components/mui_extended/Typography/index.379dd374.js";
|
|
64
|
+
import "./components/formatters/BooleanFormatter/index.35005602.js";
|
|
65
|
+
import "./components/formatters/DateFormatter/index.578a9f53.js";
|
|
66
|
+
import "./components/formatters/UncertaintyFormatter/index.08e1b79f.js";
|
|
67
|
+
import "./components/formatters/PointsFormatter/index.5c94c5e8.js";
|
|
68
|
+
import "./components/formatters/index.e8bd78a5.js";
|
|
69
|
+
import "./components/formatters/PriceFormatter/index.83cbe7be.js";
|
|
70
|
+
import "./components/DataGrid/formatters/columnUncertaintyFormatter/index.cae2057a.js";
|
|
71
|
+
import "./components/DataGrid/formatters/columnPointsFormatter/index.a19b7b90.js";
|
|
72
|
+
import "./components/DataGrid/formatters/columnNestedValueFormatter/index.b63f7246.js";
|
|
73
|
+
import "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
|
|
74
|
+
import "./components/DynamicFilter/index.91f911cc.js";
|
|
75
|
+
import "./components/CommonActions/components/Actions/index.2f6286eb.js";
|
|
76
|
+
import "./components/CommonActions/components/ActionCancel/index.918fe98b.js";
|
|
77
|
+
import "./components/CommonActions/components/ActionIntro/index.ee716861.js";
|
|
78
|
+
import "./components/CommonActions/components/ActionFormCancel/index.8b12f4b2.js";
|
|
79
|
+
import "./components/CommonActions/components/ActionFormIntro/index.c2e8b360.js";
|
|
80
|
+
import "./components/DraggableWindow/index.f9f067bd.js";
|
|
81
|
+
import "./components/GridLayout/index.e8c04242.js";
|
|
82
|
+
import "./components/GridLayout/subcomponents/Responsive/index.e25df1dc.js";
|
|
83
|
+
import "./components/PrintingSystem/index.2147b2c3.js";
|
|
84
|
+
import "./components/LanguagePopover/index.c5eb0191.js";
|
|
85
|
+
import "./components/LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
86
|
+
import "./components/Image/index.8b134b95.js";
|
|
87
|
+
import "./components/Loadable/index.e994fc3e.js";
|
|
88
|
+
import "./components/ModalDialog/index.89e26413.js";
|
|
89
|
+
import "./components/modal/index.61389369.js";
|
|
90
|
+
import "./components/modal/WindowConfirm.481ef7a0.js";
|
|
91
|
+
import "./components/modal/WindowBase.b1f12376.js";
|
|
92
|
+
import "./components/LoadingError/index.536db030.js";
|
|
93
|
+
import "./components/MFLoader/index.3ba9d320.js";
|
|
94
|
+
import "./components/NoItemSelected/index.216d87c8.js";
|
|
95
|
+
import "./components/ObjectLogs/index.882325f1.js";
|
|
96
|
+
import "./components/PaperForm/index.b7918854.js";
|
|
97
|
+
import "./components/Page/index.c100afa4.js";
|
|
98
|
+
import "./components/PropertyValue/index.3d5e8c52.js";
|
|
99
|
+
import "./components/Resizeable/index.6478d7d8.js";
|
|
100
|
+
import "./components/ScrollBar/index.65bb2930.js";
|
|
101
|
+
import "./components/SplitLayout/index.30fd5861.js";
|
|
102
|
+
import "./components/ToastContainer/index.2343fd28.js";
|
|
103
|
+
import "./components/SideBar/index.ed0211ba.js";
|
|
104
|
+
import "./components/AppBar/index.f1a995c7.js";
|
|
105
|
+
import "./components/AccountPopover/index.252cc907.js";
|
|
106
|
+
import "./contexts/RHFormContext/index.1755b324.js";
|
|
107
|
+
import "./contexts/ModalContext/index.b39d303d.js";
|
|
108
|
+
import "./hooks/useFormAddEdit/index.6929cc88.js";
|
|
109
|
+
import "./hooks/useModal/index.abdc0962.js";
|
|
110
|
+
const getNameDataTestId = (ELEMENT_PREFIX, ELEMENT_KEY, ELEMENT_ID) => {
|
|
111
|
+
return `${ELEMENT_PREFIX}-${[ELEMENT_KEY]}-${ELEMENT_ID}`;
|
|
112
|
+
};
|
|
113
|
+
const componentName = "M4LRHFColorPicker";
|
|
114
|
+
const colorPickerClasses = generateUtilityClasses(componentName, [
|
|
115
|
+
"root",
|
|
116
|
+
"popoverRoot",
|
|
117
|
+
"containerFieldColor",
|
|
118
|
+
"fieldColor",
|
|
119
|
+
"containerPicker",
|
|
120
|
+
"skeleton"
|
|
121
|
+
]);
|
|
122
|
+
function getRHFColorPickerUtilityClass(slot) {
|
|
123
|
+
return generateUtilityClass(componentName, slot);
|
|
124
|
+
}
|
|
125
|
+
const useUtilityClasses = () => {
|
|
126
|
+
const slots = {
|
|
127
|
+
root: ["root"],
|
|
128
|
+
popoverRoot: ["popoverRoot"],
|
|
129
|
+
containerFieldColor: ["containerFieldColor"],
|
|
130
|
+
fieldColor: ["boxColor"],
|
|
131
|
+
containerPicker: ["containerPicker"],
|
|
132
|
+
skeleton: ["skeleton"]
|
|
133
|
+
};
|
|
134
|
+
const composedClasses = unstable_composeClasses(slots, getRHFColorPickerUtilityClass, {});
|
|
135
|
+
return {
|
|
136
|
+
...composedClasses
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
const RHFColorPickerRoot = styled("div")(({ theme }) => ({
|
|
140
|
+
...theme.components?.M4LRHFColorPicker?.styleOverrides
|
|
141
|
+
}));
|
|
142
|
+
const Skeleton = () => {
|
|
143
|
+
return /* @__PURE__ */ jsx(Skeleton$1, {
|
|
144
|
+
className: colorPickerClasses.skeleton,
|
|
145
|
+
variant: "rectangular",
|
|
146
|
+
width: 20,
|
|
147
|
+
height: 20
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
const RHFColorPicker = (props) => {
|
|
151
|
+
const {
|
|
152
|
+
name
|
|
153
|
+
} = props;
|
|
154
|
+
const {
|
|
155
|
+
control,
|
|
156
|
+
setValue,
|
|
157
|
+
getValues
|
|
158
|
+
} = useFormContext();
|
|
159
|
+
const isSkeleton = useModuleSkeleton();
|
|
160
|
+
const {
|
|
161
|
+
host_static_assets,
|
|
162
|
+
environment_assets
|
|
163
|
+
} = useEnvironment();
|
|
164
|
+
const theme = useTheme();
|
|
165
|
+
const currentColor = getValues(name);
|
|
166
|
+
const [tempColor, setTempColor] = useState(() => currentColor || "#ffffff");
|
|
167
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
|
168
|
+
const {
|
|
169
|
+
getLabel
|
|
170
|
+
} = useModuleDictionary();
|
|
171
|
+
const handleColorChange = (color) => {
|
|
172
|
+
setTempColor(color.hex);
|
|
173
|
+
};
|
|
174
|
+
const handleApprove = () => {
|
|
175
|
+
setAnchorEl(null);
|
|
176
|
+
if (tempColor !== currentColor) {
|
|
177
|
+
setValue(name, tempColor);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
const classes = useUtilityClasses();
|
|
181
|
+
if (isSkeleton) {
|
|
182
|
+
return /* @__PURE__ */ jsx(Skeleton, {});
|
|
183
|
+
}
|
|
184
|
+
return /* @__PURE__ */ jsx(Controller, {
|
|
185
|
+
name,
|
|
186
|
+
control,
|
|
187
|
+
defaultValue: "",
|
|
188
|
+
render: ({
|
|
189
|
+
field,
|
|
190
|
+
fieldState: {
|
|
191
|
+
error
|
|
192
|
+
}
|
|
193
|
+
}) => /* @__PURE__ */ jsxs(RHFColorPickerRoot, {
|
|
194
|
+
className: classes.root,
|
|
195
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
196
|
+
className: classes.containerFieldColor,
|
|
197
|
+
onClick: (event) => setAnchorEl(event.currentTarget),
|
|
198
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
199
|
+
className: classes.fieldColor,
|
|
200
|
+
style: {
|
|
201
|
+
backgroundColor: field.value,
|
|
202
|
+
width: "20px",
|
|
203
|
+
height: "20px",
|
|
204
|
+
cursor: "pointer"
|
|
205
|
+
}
|
|
206
|
+
}), /* @__PURE__ */ jsx(Icon, {
|
|
207
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/rhfcolorpicker/assets/icons/chevron_right.svg`
|
|
208
|
+
})]
|
|
209
|
+
}), error?.message && /* @__PURE__ */ jsx(HelperText, {
|
|
210
|
+
variant: "error",
|
|
211
|
+
message: error?.message + ""
|
|
212
|
+
}), /* @__PURE__ */ jsx(Popover, {
|
|
213
|
+
open: Boolean(anchorEl),
|
|
214
|
+
arrowType: "top-center",
|
|
215
|
+
className: classes.popoverRoot,
|
|
216
|
+
anchorEl,
|
|
217
|
+
onClose: () => setAnchorEl(null),
|
|
218
|
+
anchorOrigin: {
|
|
219
|
+
vertical: "bottom",
|
|
220
|
+
horizontal: "center"
|
|
221
|
+
},
|
|
222
|
+
transformOrigin: {
|
|
223
|
+
vertical: "top",
|
|
224
|
+
horizontal: "center"
|
|
225
|
+
},
|
|
226
|
+
sx: {
|
|
227
|
+
mt: "12px",
|
|
228
|
+
...theme.components?.M4LRHFColorPickerPopoverRoot?.styleOverrides
|
|
229
|
+
},
|
|
230
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
231
|
+
className: classes.containerPicker,
|
|
232
|
+
children: [/* @__PURE__ */ jsx(SketchPicker, {
|
|
233
|
+
color: tempColor,
|
|
234
|
+
onChange: handleColorChange,
|
|
235
|
+
disableAlpha: true
|
|
236
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
237
|
+
variant: "contained",
|
|
238
|
+
onClick: handleApprove,
|
|
239
|
+
children: getLabel("rhfcolorpicker.accept")
|
|
240
|
+
})]
|
|
241
|
+
})
|
|
242
|
+
})]
|
|
243
|
+
})
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
export {
|
|
247
|
+
RHFColorPicker as R,
|
|
248
|
+
getNameDataTestId as g
|
|
249
|
+
};
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { useEnvironment } from "@m4l/core";
|
|
2
|
-
import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
3
|
-
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.ce301edd.js";
|
|
4
|
-
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { useState, useEffect } from "react";
|
|
7
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
-
import clsx from "clsx";
|
|
9
|
-
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
10
|
-
const IconRoot = styled("div")(({
|
|
11
|
-
theme
|
|
12
|
-
}) => ({
|
|
13
|
-
...theme.components?.M4LIcon?.styleOverrides
|
|
14
|
-
}));
|
|
15
|
-
const DivIcon = styled("div", {
|
|
16
|
-
shouldForwardProp: (props) => props !== "src" && props !== "rotationAngle"
|
|
17
|
-
})(({
|
|
18
|
-
src,
|
|
19
|
-
rotationAngle
|
|
20
|
-
}) => ({
|
|
21
|
-
maskPosition: "center",
|
|
22
|
-
maskRepeat: "no-repeat",
|
|
23
|
-
maskSize: "cover",
|
|
24
|
-
WebkitMaskRepeat: "no-repeat",
|
|
25
|
-
mask: `url('data:image/svg+xml;base64,${src}')`,
|
|
26
|
-
WebkitMask: `url('data:image/svg+xml;base64,${src}')`,
|
|
27
|
-
WebkitMaskSize: "cover",
|
|
28
|
-
...rotationAngle && {
|
|
29
|
-
transform: `rotate(${rotationAngle}deg)`
|
|
30
|
-
}
|
|
31
|
-
}));
|
|
32
|
-
const componentName = "M4LIcon";
|
|
33
|
-
generateUtilityClasses(componentName, [
|
|
34
|
-
"root",
|
|
35
|
-
"icon",
|
|
36
|
-
"variantSkeleton",
|
|
37
|
-
"sizeExtraSmall",
|
|
38
|
-
"sizeSmall",
|
|
39
|
-
"sizeMedium",
|
|
40
|
-
"sizeLarge",
|
|
41
|
-
"sizeExtraLarge",
|
|
42
|
-
"rotationAngle"
|
|
43
|
-
]);
|
|
44
|
-
function getIconClassesUtilityClass(slot) {
|
|
45
|
-
return generateUtilityClass(componentName, slot);
|
|
46
|
-
}
|
|
47
|
-
const useUtilityClasses = (ownerState) => {
|
|
48
|
-
const slots = {
|
|
49
|
-
root: ["root"],
|
|
50
|
-
icon: ["icon", ownerState.size === "extraSmall" && "sizeExtraSmall", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.size === "large" && "sizeLarge", ownerState.size === "extraLarge" && "sizeExtraLarge", ownerState.rotationAngle ? "rotationAngle" : ""],
|
|
51
|
-
variantSkeleton: ["variantSkeleton", ownerState.size === "extraSmall" && "sizeExtraSmall", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.size === "large" && "sizeLarge", ownerState.size === "extraLarge" && "sizeExtraLarge"]
|
|
52
|
-
};
|
|
53
|
-
const composedClasses = unstable_composeClasses(slots, getIconClassesUtilityClass, {});
|
|
54
|
-
return {
|
|
55
|
-
...composedClasses
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
const ICON_PREFIX = "Icon";
|
|
59
|
-
const getNameDataTestId = (KEY) => {
|
|
60
|
-
return `${ICON_PREFIX}-${KEY}`;
|
|
61
|
-
};
|
|
62
|
-
function Icon(props) {
|
|
63
|
-
const {
|
|
64
|
-
src,
|
|
65
|
-
size = "small",
|
|
66
|
-
rotationAngle,
|
|
67
|
-
testingProps,
|
|
68
|
-
className
|
|
69
|
-
} = props;
|
|
70
|
-
const [resource, setResource] = useState(testingProps?.resource || void 0);
|
|
71
|
-
const isDesktop = useResponsiveDesktop();
|
|
72
|
-
useEffect(() => {
|
|
73
|
-
let mounted = true;
|
|
74
|
-
(async function networkOperation() {
|
|
75
|
-
await fetch(src).then((response) => {
|
|
76
|
-
return response.text() || "";
|
|
77
|
-
}).then((xml) => {
|
|
78
|
-
xml = xml.match(
|
|
79
|
-
/(<svg\b[^>]*\s*(viewBox="(\b[^"]*)").*?>([\s\S]*?)<\/svg>|<svg>([\s\S]*?)<\/svg>)/g
|
|
80
|
-
)?.toString() || "";
|
|
81
|
-
if (mounted) {
|
|
82
|
-
setResource(window.btoa(xml));
|
|
83
|
-
}
|
|
84
|
-
}).catch((_err) => {
|
|
85
|
-
});
|
|
86
|
-
})();
|
|
87
|
-
return function clenUp() {
|
|
88
|
-
mounted = false;
|
|
89
|
-
};
|
|
90
|
-
}, [src]);
|
|
91
|
-
const ownerState = {
|
|
92
|
-
size: isDesktop ? size : "medium",
|
|
93
|
-
rotationAngle
|
|
94
|
-
};
|
|
95
|
-
const classes = useUtilityClasses(ownerState);
|
|
96
|
-
return /* @__PURE__ */ jsx(IconRoot, {
|
|
97
|
-
className: clsx(classes.root, className),
|
|
98
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
99
|
-
[TEST_PROP_ID]: getNameDataTestId("root")
|
|
100
|
-
} : {},
|
|
101
|
-
children: resource ? /* @__PURE__ */ jsx(DivIcon, {
|
|
102
|
-
className: classes.icon,
|
|
103
|
-
src: resource,
|
|
104
|
-
rotationAngle,
|
|
105
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
106
|
-
[TEST_PROP_ID]: getNameDataTestId("icon")
|
|
107
|
-
} : {}
|
|
108
|
-
}) : /* @__PURE__ */ jsx(Skeleton, {
|
|
109
|
-
variant: "rectangular",
|
|
110
|
-
className: classes.variantSkeleton,
|
|
111
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
112
|
-
[TEST_PROP_ID]: getNameDataTestId("variantSkeleton")
|
|
113
|
-
} : {}
|
|
114
|
-
})
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
const ArrowIconRoot = styled("div")(() => ({
|
|
118
|
-
display: "flex",
|
|
119
|
-
alignSelf: "center",
|
|
120
|
-
lineHeight: 0
|
|
121
|
-
}));
|
|
122
|
-
function ArrowIcon(props) {
|
|
123
|
-
const {
|
|
124
|
-
openState
|
|
125
|
-
} = props;
|
|
126
|
-
const {
|
|
127
|
-
host_static_assets,
|
|
128
|
-
environment_assets
|
|
129
|
-
} = useEnvironment();
|
|
130
|
-
const {
|
|
131
|
-
classes
|
|
132
|
-
} = useSideBar();
|
|
133
|
-
return /* @__PURE__ */ jsx(ArrowIconRoot, {
|
|
134
|
-
className: classes.arrowIconRoot,
|
|
135
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
136
|
-
[TEST_PROP_ID]: getNameDataTestId$1("arrowIconRoot")
|
|
137
|
-
} : {},
|
|
138
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
139
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/sidebar/assets/icons/ChevronRight.svg`,
|
|
140
|
-
rotationAngle: openState ? 90 : 0
|
|
141
|
-
})
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
export {
|
|
145
|
-
ArrowIcon as A,
|
|
146
|
-
Icon as I
|
|
147
|
-
};
|