@m4l/components 0.2.7 → 0.2.9
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/components/AccountPopover/{index.2604c389.js → index.8a11a7b6.js} +21 -9
- package/components/AppBar/{index.9522f237.js → index.966d5162.js} +22 -5
- package/components/CommonActions/components/ActionCancel/{index.06539086.js → index.68bf349a.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/index.728bb37d.js +146 -0
- package/components/CommonActions/components/ActionFormIntro/{index.5a719043.js → index.a7e8711b.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.3e8a2e60.js → index.7cc0a393.js} +2 -2
- package/components/CommonActions/components/Actions/index.b61826a4.js +163 -0
- package/components/DataGrid/constants.d.ts +2 -0
- package/components/DataGrid/{index.84a4843c.js → index.3a2e683c.js} +92 -92
- package/components/DataGrid/subcomponents/Actions/{index.dbcbee6d.js → index.063a0197.js} +89 -9
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.d.ts +0 -1
- package/components/DynamicFilter/{index.39033eb7.js → index.a5197d85.js} +92 -23
- package/components/GridLayout/{index.e8c04242.js → index.68093cfb.js} +7 -6
- package/components/GridLayout/subcomponents/Griditem/{index.4d38f12e.js → index.8e4af155.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.e25df1dc.js → index.c32210fc.js} +1 -1
- package/components/HelperText/{index.7d2afdb3.js → index.a6a02c79.js} +23 -2
- package/components/Icon/{index.05984e7f.js → index.29065051.js} +5 -5
- package/components/Image/{index.bf37e923.js → index.cf640615.js} +3 -3
- package/components/LanguagePopover/{index.5ff37dbf.js → index.0319d6a8.js} +20 -4
- package/components/LoadingError/{index.fabad214.js → index.1426339a.js} +23 -5
- package/components/MFLoader/{index.7b4ee2a4.js → index.cbd2e5af.js} +21 -5
- package/components/ModalDialog/{index.89e26413.js → index.82ccabcc.js} +3 -3
- package/components/NavLink/{index.b75c91e1.js → index.618dabfb.js} +22 -2
- package/components/NoItemSelected/{index.7db73e77.js → index.50d06852.js} +1 -1
- package/components/ObjectLogs/{index.aeb2540f.js → index.fb34f372.js} +84 -5
- package/components/PDFViewer/{index.5c2db67a.js → index.ec8d0f79.js} +23 -3
- package/components/Page/{index.710cb16f.js → index.5aefe8f7.js} +1 -1
- package/components/PaperForm/classes/index.d.ts +2 -1
- package/components/PaperForm/classes/types.d.ts +1 -0
- package/components/PaperForm/{index.7ea3883f.js → index.6859d4e8.js} +11 -6
- package/components/PaperForm/types.d.ts +4 -1
- package/components/Period/{index.0aa8e507.js → index.df612223.js} +90 -5
- package/components/PrintingSystem/{index.ed3b22b7.js → index.73dd98b3.js} +12 -12
- package/components/PrintingSystem/subcomponents/BodyNode/{index.7acc6016.js → index.d70a5d24.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.e4a23bdd.js → index.4cd7f6d8.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.16fff262.js → index.56efaa0c.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.6c67dec0.js → index.4320bb03.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.f466062b.js → index.6cabbf31.js} +1 -5
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.77d3d39a.js → index.0e23ffd4.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.2a3d54a3.js → index.f97e7aa6.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.e71ad971.js → index.7d3a3c8f.js} +1 -2
- package/components/PrintingSystem/subcomponents/SectionNode/{index.ce4f6d16.js → index.05d1fcf7.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.850d20a1.js → index.3894059c.js} +1 -1
- package/components/PropertyValue/{index.43ac2a71.js → index.df683b35.js} +20 -4
- package/components/SideBar/{index.58d29b84.js → index.f322ee0b.js} +22 -23
- package/components/ToastContainer/{index.ed440301.js → index.f67795cb.js} +7 -5
- package/components/animate/{index.5d4575bc.js → index.4e9774a6.js} +6 -2
- package/components/areas/components/AreasAdmin/{index.d2ce1682.js → index.6024578a.js} +98 -27
- package/components/areas/components/AreasViewer/{index.977d2804.js → index.41e89676.js} +84 -18
- package/components/areas/components/index.198e8954.js +32 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
- package/components/areas/contexts/AreasContext/{index.79ec57d5.js → index.9c8e3b41.js} +10 -17
- package/components/areas/contexts/index.eba30173.js +4 -0
- package/components/areas/hooks/index.0184c6f7.js +4 -0
- package/components/areas/hooks/useAreas/{index.de0591fe.js → index.fb721543.js} +1 -1
- package/components/areas/index.abedae6a.js +56 -0
- package/components/formatters/BooleanFormatter/{index.4f3cbdce.js → index.64ed2d71.js} +2 -3
- package/components/formatters/{index.4ca6946d.js → index.57f0da1b.js} +7 -3
- package/components/hook-form/RHFAutocomplete/{index.0ce87ac3.js → index.e830f749.js} +22 -7
- package/components/hook-form/RHFAutocompleteAsync/{index.57789d3a.js → index.12580722.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.a38715e3.js → index.938321c1.js} +22 -2
- package/components/hook-form/RHFColorPicker/{index.d00a2b53.js → index.e292aa86.js} +21 -5
- package/components/hook-form/RHFDateTime/{index.ae5d3a39.js → index.321e4b87.js} +21 -5
- package/components/hook-form/RHFPeriod/{index.ae9bcf41.js → index.98b2667a.js} +2 -3
- package/components/hook-form/RHFTextField/{index.80cc07e0.js → index.d08c142b.js} +7 -5
- package/components/hook-form/RHFUpload/{index.587aac00.js → index.cdb2e584.js} +22 -5
- package/components/modal/WindowBase.4fe313e7.js +160 -0
- package/components/modal/WindowConfirm.355df4de.js +188 -0
- package/components/modal/index.ea3a21cb.js +148 -0
- package/components/mui_extended/Accordion/{index.eddcfe40.js → index.3e247bd4.js} +4 -4
- package/components/mui_extended/Button/{index.570fd3a4.js → index.f538e360.js} +3 -3
- package/components/mui_extended/{CheckBox.e662d20c.js → CheckBox.38abccd8.js} +1 -1
- package/components/mui_extended/IconButton/{index.26de70bd.js → index.e295aa1f.js} +2 -2
- package/components/mui_extended/MenuActions/{index.8c02ff61.js → index.9b37fadc.js} +19 -5
- package/components/mui_extended/Pager/{index.5629e82b.js → index.78dea971.js} +2 -3
- package/components/mui_extended/Tab/{index.f8795137.js → index.4c797c00.js} +2 -2
- package/components/mui_extended/ToggleButton/{index.21a1f8e5.js → index.43140642.js} +5 -1
- package/components/mui_extended/ToggleIconButton/{index.00f13c40.js → index.3d725376.js} +6 -1
- package/components/mui_extended/index.1da3a53e.js +24 -0
- package/contexts/ModalContext/{index.b39d303d.js → index.6d2dda38.js} +1 -1
- package/hooks/useFormAddEdit/index.0d294209.js +183 -0
- package/hooks/useModal/{index.abdc0962.js → index.97742698.js} +1 -1
- package/hooks/useTab/index.cb48ec45.js +103 -0
- package/index.js +176 -176
- package/{node_modules.8f15d11f.js → node_modules.56dca1cf.js} +1 -1
- package/package.json +1 -1
- package/vendor.3c20510a.js +142 -0
- package/components/CommonActions/components/ActionFormCancel/index.33fc6c79.js +0 -61
- package/components/CommonActions/components/Actions/index.2f6286eb.js +0 -74
- package/components/DataGrid/subcomponents/Table/subcomponents/constants.d.ts +0 -1
- package/components/areas/components/index.558684b3.js +0 -1
- package/components/areas/contexts/index.24025b97.js +0 -1
- package/components/areas/hooks/index.d9dc1e21.js +0 -1
- package/components/areas/index.4cc6a221.js +0 -22
- package/components/modal/WindowBase.ea17cf20.js +0 -74
- package/components/modal/WindowConfirm.19ddbd5d.js +0 -102
- package/components/modal/index.61389369.js +0 -57
- package/components/mui_extended/index.b606cd9d.js +0 -1
- package/hooks/useFormAddEdit/index.32aa4f64.js +0 -96
- package/hooks/useTab/index.9c611b31.js +0 -12
- package/vendor.75facc5e.js +0 -110
- package/components/mui_extended/Badge/{index.09f5aee5.js → index.b09524fe.js} +1 -1
- package/components/mui_extended/Popover/{index.b3eca6b1.js → index.9f35d0eb.js} +2 -2
- package/components/mui_extended/Tooltip/{index.24a2bc3f.js → index.5a795dcd.js} +1 -1
- package/components/mui_extended/Typography/{index.379dd374.js → index.443590d6.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { useStore } from "zustand";
|
|
3
|
-
import { A as AreasContext } from "../../contexts/AreasContext/index.
|
|
3
|
+
import { A as AreasContext } from "../../contexts/AreasContext/index.9c8e3b41.js";
|
|
4
4
|
function useAreasStore(selector, equalityFn) {
|
|
5
5
|
const context = useContext(AreasContext);
|
|
6
6
|
if (!context)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import "@m4l/core";
|
|
3
|
+
import "@mui/material";
|
|
4
|
+
import "../Icon/index.29065051.js";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "@m4l/graphics";
|
|
7
|
+
import "react/jsx-runtime";
|
|
8
|
+
import "../mui_extended/IconButton/index.e295aa1f.js";
|
|
9
|
+
import "zustand";
|
|
10
|
+
import "./contexts/AreasContext/index.9c8e3b41.js";
|
|
11
|
+
import "./components/AreasAdmin/index.6024578a.js";
|
|
12
|
+
import "zustand/shallow";
|
|
13
|
+
import "../ScrollBar/index.010f1b9d.js";
|
|
14
|
+
import "../mui_extended/Accordion/index.3e247bd4.js";
|
|
15
|
+
import "../mui_extended/Typography/index.443590d6.js";
|
|
16
|
+
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
17
|
+
import "react-router-dom";
|
|
18
|
+
import "@mui/material/Button";
|
|
19
|
+
import "../mui_extended/Button/index.f538e360.js";
|
|
20
|
+
import "../mui_extended/CheckBox.38abccd8.js";
|
|
21
|
+
import "../mui_extended/Badge/index.b09524fe.js";
|
|
22
|
+
import "../Image/index.cf640615.js";
|
|
23
|
+
import "@mui/lab";
|
|
24
|
+
import "../mui_extended/MenuActions/index.9b37fadc.js";
|
|
25
|
+
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
27
|
+
import "../mui_extended/Tab/index.4c797c00.js";
|
|
28
|
+
import "../mui_extended/Pager/index.78dea971.js";
|
|
29
|
+
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
30
|
+
import "./components/AreasViewer/index.41e89676.js";
|
|
31
|
+
import "../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
32
|
+
import "../LoadingError/index.1426339a.js";
|
|
33
|
+
import "./contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
34
|
+
import "zustand/middleware/immer";
|
|
35
|
+
import "./contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
36
|
+
function useOnClickOutside(ref, handler, noRef) {
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
const listener = (event) => {
|
|
39
|
+
const el = ref?.current;
|
|
40
|
+
const noEl = noRef?.current;
|
|
41
|
+
if (!el || el.contains(event.target) || noEl && noEl.contains(event.target)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
handler(event);
|
|
45
|
+
};
|
|
46
|
+
document.addEventListener("mousedown", listener);
|
|
47
|
+
document.addEventListener("touchstart", listener);
|
|
48
|
+
return () => {
|
|
49
|
+
document.removeEventListener("mousedown", listener);
|
|
50
|
+
document.removeEventListener("touchstart", listener);
|
|
51
|
+
};
|
|
52
|
+
}, [ref, handler]);
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
useOnClickOutside as u
|
|
56
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
|
-
import { I as Icon } from "../../Icon/index.
|
|
3
|
+
import { I as Icon } from "../../Icon/index.29065051.js";
|
|
4
4
|
import { W as WrapperComponent } from "../../WrapperComponent/index.5e872594.js";
|
|
5
|
-
import { F as FormatterRoot, f as formatterClasses } from "../index.
|
|
5
|
+
import { F as FormatterRoot, f as formatterClasses } from "../index.57f0da1b.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
const BOOLEAN_FORMATTER_DICTIONARY_KEY = `boolean_formatter`;
|
|
@@ -26,7 +26,6 @@ function BooleanFormatter(props) {
|
|
|
26
26
|
const final_value = value ?? false;
|
|
27
27
|
const srcCheckTrue = `${host_static_assets}/${environment_assets}/frontend/components/data_grid/components/boolean_formatter/assets/icons/check_true.svg`;
|
|
28
28
|
const srcCheckFalse = `${host_static_assets}/${environment_assets}/frontend/components/data_grid/components/boolean_formatter/assets/icons/check_false.svg`;
|
|
29
|
-
console.log("srcCheckTrue", srcCheckTrue);
|
|
30
29
|
const memoComponent = useMemo(() => {
|
|
31
30
|
if (presentationType === "string_yes_no") {
|
|
32
31
|
return /* @__PURE__ */ jsx(Component, {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { generateUtilityClasses, styled } from "@mui/material";
|
|
2
|
-
import "@mui/base";
|
|
3
1
|
import { jsx } from "react/jsx-runtime";
|
|
4
2
|
import { W as WrapperComponent } from "../WrapperComponent/index.5e872594.js";
|
|
5
3
|
import { useModuleDictionary } from "@m4l/core";
|
|
6
|
-
import
|
|
4
|
+
import "react";
|
|
5
|
+
import "../Icon/index.29065051.js";
|
|
6
|
+
import { generateUtilityClasses, styled } from "@mui/material";
|
|
7
|
+
import "clsx";
|
|
8
|
+
import "@m4l/graphics";
|
|
9
|
+
import "@mui/base";
|
|
10
|
+
import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.64ed2d71.js";
|
|
7
11
|
const COMPONENT_CLASS_NAME = "M4LFormatter";
|
|
8
12
|
const formatterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
9
13
|
"root",
|
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, CircularProgress } from "@mui/material";
|
|
4
|
-
import {
|
|
5
|
-
import { I as Image } from "../../Image/index.bf37e923.js";
|
|
4
|
+
import { I as Image } from "../../Image/index.cf640615.js";
|
|
6
5
|
import { useMemo, useRef, useState, useEffect } from "react";
|
|
7
6
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
7
|
+
import "../../Icon/index.29065051.js";
|
|
8
|
+
import "clsx";
|
|
9
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
10
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
9
|
-
import {
|
|
11
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.e295aa1f.js";
|
|
12
|
+
import "../../mui_extended/Accordion/index.3e247bd4.js";
|
|
13
|
+
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
14
|
+
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
15
|
+
import "react-router-dom";
|
|
16
|
+
import "@mui/material/Button";
|
|
17
|
+
import "../../mui_extended/Button/index.f538e360.js";
|
|
18
|
+
import "../../mui_extended/CheckBox.38abccd8.js";
|
|
19
|
+
import "../../mui_extended/Badge/index.b09524fe.js";
|
|
20
|
+
import "@mui/lab";
|
|
21
|
+
import "../../mui_extended/MenuActions/index.9b37fadc.js";
|
|
22
|
+
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
|
+
import "../../mui_extended/Stack/index.0e53197c.js";
|
|
24
|
+
import "../../mui_extended/Tab/index.4c797c00.js";
|
|
25
|
+
import "../../mui_extended/Pager/index.78dea971.js";
|
|
26
|
+
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
27
|
+
import { H as HelperText } from "../../HelperText/index.a6a02c79.js";
|
|
28
|
+
import { styled } from "@mui/material/styles";
|
|
10
29
|
import { unstable_composeClasses } from "@mui/base";
|
|
11
|
-
import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
|
|
12
|
-
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
13
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.26de70bd.js";
|
|
14
30
|
const AutocompleteRoot = styled("div")(({
|
|
15
31
|
theme
|
|
16
32
|
}) => ({
|
|
@@ -279,7 +295,6 @@ function RHFAutocomplete(props) {
|
|
|
279
295
|
inputValue,
|
|
280
296
|
clearOnBlur: false,
|
|
281
297
|
PopperComponent: (props2) => {
|
|
282
|
-
console.log("Autocomplete open Popover");
|
|
283
298
|
return /* @__PURE__ */ jsx(Popper, {
|
|
284
299
|
...props2,
|
|
285
300
|
className: classes.popper,
|
|
@@ -5,8 +5,8 @@ import { styled } from "@mui/material/styles";
|
|
|
5
5
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
8
|
+
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.e830f749.js";
|
|
8
9
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.0ce87ac3.js";
|
|
10
10
|
styled("div")(() => ({
|
|
11
11
|
display: "flex",
|
|
12
12
|
width: "100%",
|
|
@@ -2,11 +2,31 @@ import { useFormContext, Controller } from "react-hook-form";
|
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
5
|
+
import { H as HelperText } from "../../HelperText/index.a6a02c79.js";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
|
+
import "react";
|
|
9
|
+
import "@m4l/core";
|
|
10
|
+
import "../../Icon/index.29065051.js";
|
|
11
|
+
import "clsx";
|
|
8
12
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
9
|
-
import
|
|
13
|
+
import "../../mui_extended/IconButton/index.e295aa1f.js";
|
|
14
|
+
import "../../mui_extended/Accordion/index.3e247bd4.js";
|
|
15
|
+
import "../../mui_extended/Typography/index.443590d6.js";
|
|
16
|
+
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
17
|
+
import "react-router-dom";
|
|
18
|
+
import "@mui/material/Button";
|
|
19
|
+
import "../../mui_extended/Button/index.f538e360.js";
|
|
20
|
+
import { C as CheckBox } from "../../mui_extended/CheckBox.38abccd8.js";
|
|
21
|
+
import "../../mui_extended/Badge/index.b09524fe.js";
|
|
22
|
+
import "../../Image/index.cf640615.js";
|
|
23
|
+
import "@mui/lab";
|
|
24
|
+
import "../../mui_extended/MenuActions/index.9b37fadc.js";
|
|
25
|
+
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
|
+
import "../../mui_extended/Stack/index.0e53197c.js";
|
|
27
|
+
import "../../mui_extended/Tab/index.4c797c00.js";
|
|
28
|
+
import "../../mui_extended/Pager/index.78dea971.js";
|
|
29
|
+
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
10
30
|
const RHFCheckboxRoot = styled("div")(({
|
|
11
31
|
theme
|
|
12
32
|
}) => ({
|
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
+
import { B as Button } from "../../mui_extended/Button/index.f538e360.js";
|
|
3
4
|
import { useModuleSkeleton, useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { S as SketchPicker } from "../../../node_modules.
|
|
5
|
+
import { S as SketchPicker } from "../../../node_modules.56dca1cf.js";
|
|
5
6
|
import "lodash-es/debounce";
|
|
6
7
|
import "lodash-es/each";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
9
|
+
import { H as HelperText } from "../../HelperText/index.a6a02c79.js";
|
|
9
10
|
import { generateUtilityClasses, generateUtilityClass, styled, Skeleton as Skeleton$1 } from "@mui/material";
|
|
10
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
11
12
|
import { useTheme } from "@mui/material/styles";
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
13
|
+
import { I as Icon } from "../../Icon/index.29065051.js";
|
|
14
|
+
import "../../mui_extended/IconButton/index.e295aa1f.js";
|
|
15
|
+
import "clsx";
|
|
16
|
+
import "@m4l/graphics";
|
|
17
|
+
import "../../mui_extended/Accordion/index.3e247bd4.js";
|
|
18
|
+
import "../../mui_extended/Typography/index.443590d6.js";
|
|
19
|
+
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
20
|
+
import "react-router-dom";
|
|
21
|
+
import "../../mui_extended/CheckBox.38abccd8.js";
|
|
22
|
+
import "../../mui_extended/Badge/index.b09524fe.js";
|
|
23
|
+
import "../../Image/index.cf640615.js";
|
|
24
|
+
import "@mui/lab";
|
|
25
|
+
import "../../mui_extended/MenuActions/index.9b37fadc.js";
|
|
26
|
+
import { P as Popover } from "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
27
|
+
import "../../mui_extended/Stack/index.0e53197c.js";
|
|
28
|
+
import "../../mui_extended/Tab/index.4c797c00.js";
|
|
29
|
+
import "../../mui_extended/Pager/index.78dea971.js";
|
|
30
|
+
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
15
31
|
const componentName = "M4LRHFColorPicker";
|
|
16
32
|
const colorPickerClasses = generateUtilityClasses(componentName, [
|
|
17
33
|
"root",
|
|
@@ -2,16 +2,32 @@ import { useFormContext, Controller } from "react-hook-form";
|
|
|
2
2
|
import { DateTimePicker } from "@mui/x-date-pickers";
|
|
3
3
|
import { useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
4
4
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
|
|
5
|
-
import { styled } from "@mui/material/styles";
|
|
6
5
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
7
6
|
import { useFormatter, useResponsiveDesktop } from "@m4l/graphics";
|
|
8
7
|
import { useState, useEffect } from "react";
|
|
9
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
10
8
|
import clsx from "clsx";
|
|
11
|
-
import {
|
|
9
|
+
import { I as Icon } from "../../Icon/index.29065051.js";
|
|
10
|
+
import "../../mui_extended/IconButton/index.e295aa1f.js";
|
|
11
|
+
import "../../mui_extended/Accordion/index.3e247bd4.js";
|
|
12
|
+
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
12
13
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
14
|
+
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
15
|
+
import "react-router-dom";
|
|
16
|
+
import "@mui/material/Button";
|
|
17
|
+
import "../../mui_extended/Button/index.f538e360.js";
|
|
18
|
+
import "../../mui_extended/CheckBox.38abccd8.js";
|
|
19
|
+
import "../../mui_extended/Badge/index.b09524fe.js";
|
|
20
|
+
import "../../Image/index.cf640615.js";
|
|
21
|
+
import "@mui/lab";
|
|
22
|
+
import "../../mui_extended/MenuActions/index.9b37fadc.js";
|
|
23
|
+
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
24
|
+
import "../../mui_extended/Stack/index.0e53197c.js";
|
|
25
|
+
import "../../mui_extended/Tab/index.4c797c00.js";
|
|
26
|
+
import "../../mui_extended/Pager/index.78dea971.js";
|
|
27
|
+
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
28
|
+
import { H as HelperText } from "../../HelperText/index.a6a02c79.js";
|
|
29
|
+
import { styled } from "@mui/material/styles";
|
|
30
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
15
31
|
const SKTRHFWrapperTextField = styled("div")(({
|
|
16
32
|
theme
|
|
17
33
|
}) => ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
3
|
+
import { H as HelperText } from "../../HelperText/index.a6a02c79.js";
|
|
4
|
+
import { P as Period } from "../../Period/index.df612223.js";
|
|
4
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { P as Period } from "../../Period/index.0aa8e507.js";
|
|
7
7
|
const RHFPeriodRoot = styled("div")(({
|
|
8
8
|
theme
|
|
9
9
|
}) => ({
|
|
@@ -55,7 +55,6 @@ const RHFPeriod = (props) => {
|
|
|
55
55
|
error
|
|
56
56
|
}
|
|
57
57
|
}) => {
|
|
58
|
-
console.log("value RHFPeriod", value);
|
|
59
58
|
return /* @__PURE__ */ jsxs(RHFPeriodRoot, {
|
|
60
59
|
className: classes.root,
|
|
61
60
|
children: [/* @__PURE__ */ jsx(Period, {
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { useModuleSkeleton, useEnvironment } from "@m4l/core";
|
|
2
2
|
import { styled, Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
|
|
3
3
|
import { forwardRef, useState, useEffect } from "react";
|
|
4
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
5
|
-
import { useFormContext, Controller } from "react-hook-form";
|
|
4
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.e295aa1f.js";
|
|
6
5
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
7
6
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
7
|
+
import "../../Icon/index.29065051.js";
|
|
8
|
+
import "clsx";
|
|
9
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
10
|
+
import { useFormContext, Controller } from "react-hook-form";
|
|
8
11
|
import { styled as styled$1 } from "@mui/material/styles";
|
|
9
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
10
13
|
import { g as getComponentUtilityClass } from "../../../utils/index.de903261.js";
|
|
11
|
-
import { T as Typography } from "../../mui_extended/Typography/index.
|
|
12
|
-
import { H as HelperText } from "../../HelperText/index.
|
|
13
|
-
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
14
|
+
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
15
|
+
import { H as HelperText } from "../../HelperText/index.a6a02c79.js";
|
|
14
16
|
const SkeletonTextFieldRoot = styled("div")(() => ({
|
|
15
17
|
display: "flex",
|
|
16
18
|
flexDirection: "column",
|
|
@@ -2,16 +2,33 @@ import { useCallback } from "react";
|
|
|
2
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
3
3
|
import require$$0 from "lodash/isString";
|
|
4
4
|
import { useDropzone } from "react-dropzone";
|
|
5
|
-
import { I as Image } from "../../Image/index.
|
|
5
|
+
import { I as Image } from "../../Image/index.cf640615.js";
|
|
6
6
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
7
|
-
import { styled } from "@mui/material/styles";
|
|
8
7
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
|
|
9
8
|
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
10
9
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
10
|
+
import { B as Button } from "../../mui_extended/Button/index.f538e360.js";
|
|
11
|
+
import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
|
|
12
|
+
import { H as HelperText } from "../../HelperText/index.a6a02c79.js";
|
|
13
|
+
import "clsx";
|
|
14
|
+
import { styled } from "@mui/material/styles";
|
|
11
15
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
16
|
+
import "@mui/material/Button";
|
|
17
|
+
import "../../Icon/index.29065051.js";
|
|
18
|
+
import "@m4l/graphics";
|
|
19
|
+
import "../../mui_extended/IconButton/index.e295aa1f.js";
|
|
20
|
+
import "../../mui_extended/Accordion/index.3e247bd4.js";
|
|
21
|
+
import "../../mui_extended/Avatar/index.75e6ed57.js";
|
|
22
|
+
import "react-router-dom";
|
|
23
|
+
import "../../mui_extended/CheckBox.38abccd8.js";
|
|
24
|
+
import "../../mui_extended/Badge/index.b09524fe.js";
|
|
25
|
+
import "@mui/lab";
|
|
26
|
+
import "../../mui_extended/MenuActions/index.9b37fadc.js";
|
|
27
|
+
import "../../mui_extended/Popover/index.9f35d0eb.js";
|
|
28
|
+
import "../../mui_extended/Stack/index.0e53197c.js";
|
|
29
|
+
import "../../mui_extended/Tab/index.4c797c00.js";
|
|
30
|
+
import "../../mui_extended/Pager/index.78dea971.js";
|
|
31
|
+
import "../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
15
32
|
const UploadImageRoot = styled("div")(({
|
|
16
33
|
theme
|
|
17
34
|
}) => ({
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { useEnvironment } from "@m4l/core";
|
|
2
|
+
import "react";
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.97742698.js";
|
|
4
|
+
import "@mui/material";
|
|
5
|
+
import "../../react-draggable.ee21cb7e.js";
|
|
6
|
+
import "../Resizeable/index.6478d7d8.js";
|
|
7
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
8
|
+
import "@m4l/graphics";
|
|
9
|
+
import { m as modalUtilityClasses } from "./index.ea3a21cb.js";
|
|
10
|
+
import "../CommonActions/components/Actions/index.b61826a4.js";
|
|
11
|
+
import "@mui/material/Button";
|
|
12
|
+
import "../mui_extended/Button/index.f538e360.js";
|
|
13
|
+
import clsx from "clsx";
|
|
14
|
+
import "react-hook-form";
|
|
15
|
+
import { I as Icon } from "../Icon/index.29065051.js";
|
|
16
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.e295aa1f.js";
|
|
17
|
+
import "zustand";
|
|
18
|
+
import "../areas/contexts/AreasContext/index.9c8e3b41.js";
|
|
19
|
+
import "../areas/components/AreasAdmin/index.6024578a.js";
|
|
20
|
+
import "zustand/shallow";
|
|
21
|
+
import "../ScrollBar/index.010f1b9d.js";
|
|
22
|
+
import "../mui_extended/Accordion/index.3e247bd4.js";
|
|
23
|
+
import "../mui_extended/Typography/index.443590d6.js";
|
|
24
|
+
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
25
|
+
import "react-router-dom";
|
|
26
|
+
import "../mui_extended/CheckBox.38abccd8.js";
|
|
27
|
+
import "../mui_extended/Badge/index.b09524fe.js";
|
|
28
|
+
import "../Image/index.cf640615.js";
|
|
29
|
+
import "@mui/lab";
|
|
30
|
+
import "../mui_extended/MenuActions/index.9b37fadc.js";
|
|
31
|
+
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
32
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
33
|
+
import "../mui_extended/Tab/index.4c797c00.js";
|
|
34
|
+
import "../mui_extended/Pager/index.78dea971.js";
|
|
35
|
+
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
36
|
+
import "../areas/components/AreasViewer/index.41e89676.js";
|
|
37
|
+
import "../LinearProgressIndeterminate/index.a0ad2d9e.js";
|
|
38
|
+
import "../LoadingError/index.1426339a.js";
|
|
39
|
+
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
40
|
+
import "zustand/middleware/immer";
|
|
41
|
+
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
42
|
+
import "../animate/index.4e9774a6.js";
|
|
43
|
+
import "framer-motion";
|
|
44
|
+
import "@mui/material/styles";
|
|
45
|
+
import "../animate/LoadingScreen/index.1d0c4307.js";
|
|
46
|
+
import "../animate/PropagateLoader/index.7fab43c8.js";
|
|
47
|
+
import "../hook-form/RHFAutocomplete/index.e830f749.js";
|
|
48
|
+
import "../HelperText/index.a6a02c79.js";
|
|
49
|
+
import "../../node_modules.56dca1cf.js";
|
|
50
|
+
import "lodash-es/debounce";
|
|
51
|
+
import "lodash-es/each";
|
|
52
|
+
import "../hook-form/RHFColorPicker/index.e292aa86.js";
|
|
53
|
+
import "lodash/debounce";
|
|
54
|
+
import "../hook-form/RHFAutocompleteAsync/index.12580722.js";
|
|
55
|
+
import "../hook-form/RHFCheckbox/index.938321c1.js";
|
|
56
|
+
import "@mui/x-date-pickers";
|
|
57
|
+
import "../hook-form/RHFDateTime/index.321e4b87.js";
|
|
58
|
+
import "../hook-form/RHFTextField/index.d08c142b.js";
|
|
59
|
+
import "../hook-form/RHFPeriod/index.98b2667a.js";
|
|
60
|
+
import "../Period/index.df612223.js";
|
|
61
|
+
import "lodash/isString";
|
|
62
|
+
import "react-dropzone";
|
|
63
|
+
import "../hook-form/RHFUpload/index.cdb2e584.js";
|
|
64
|
+
import "../formatters/index.57f0da1b.js";
|
|
65
|
+
import "../DataGrid/index.3a2e683c.js";
|
|
66
|
+
import "react-dnd";
|
|
67
|
+
import "react-dnd-html5-backend";
|
|
68
|
+
import "../DataGrid/subcomponents/Actions/index.063a0197.js";
|
|
69
|
+
import "../DataGrid/subcomponents/editors/TextEditor/index.91380a55.js";
|
|
70
|
+
import "../DynamicFilter/index.a5197d85.js";
|
|
71
|
+
import "yup";
|
|
72
|
+
import "../../contexts/RHFormContext/index.7769076a.js";
|
|
73
|
+
import "../GridLayout/subcomponents/Griditem/index.8e4af155.js";
|
|
74
|
+
import "../GridLayout/index.68093cfb.js";
|
|
75
|
+
import "fast-equals";
|
|
76
|
+
import "lodash";
|
|
77
|
+
import "../PrintingSystem/index.73dd98b3.js";
|
|
78
|
+
import "../LanguagePopover/index.0319d6a8.js";
|
|
79
|
+
import "../MFLoader/index.cbd2e5af.js";
|
|
80
|
+
import "../NavLink/index.618dabfb.js";
|
|
81
|
+
import "../NoItemSelected/index.50d06852.js";
|
|
82
|
+
import "../ObjectLogs/index.fb34f372.js";
|
|
83
|
+
import "../../react-json-view.5636414a.js";
|
|
84
|
+
import "../PaperForm/index.6859d4e8.js";
|
|
85
|
+
import "../PDFViewer/index.ec8d0f79.js";
|
|
86
|
+
import "../Page/index.5aefe8f7.js";
|
|
87
|
+
import "../PropertyValue/index.df683b35.js";
|
|
88
|
+
import "../SplitLayout/index.30fd5861.js";
|
|
89
|
+
import "../../react-splitter-layout.c5d98bf7.js";
|
|
90
|
+
import "../ToastContainer/index.f67795cb.js";
|
|
91
|
+
import "../SideBar/index.f322ee0b.js";
|
|
92
|
+
import "../AppBar/index.966d5162.js";
|
|
93
|
+
import "../AccountPopover/index.8a11a7b6.js";
|
|
94
|
+
const Header = (props) => {
|
|
95
|
+
const {
|
|
96
|
+
title,
|
|
97
|
+
onClickCancel,
|
|
98
|
+
urlIcon,
|
|
99
|
+
classes
|
|
100
|
+
} = props;
|
|
101
|
+
const {
|
|
102
|
+
host_static_assets,
|
|
103
|
+
environment_assets
|
|
104
|
+
} = useEnvironment();
|
|
105
|
+
const handlerClick = (e) => {
|
|
106
|
+
e.stopPropagation();
|
|
107
|
+
onClickCancel && onClickCancel();
|
|
108
|
+
};
|
|
109
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
110
|
+
id: "Header",
|
|
111
|
+
className: clsx(classes.headerContainer, "m4l_draggable_handle"),
|
|
112
|
+
children: [urlIcon && /* @__PURE__ */ jsx("div", {
|
|
113
|
+
className: classes.iconHeader,
|
|
114
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
115
|
+
src: urlIcon,
|
|
116
|
+
size: "medium"
|
|
117
|
+
})
|
|
118
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
119
|
+
className: classes.titleHeader,
|
|
120
|
+
children: title
|
|
121
|
+
}), /* @__PURE__ */ jsx(IconButton, {
|
|
122
|
+
className: classes.iconCloseHeader,
|
|
123
|
+
src: `${host_static_assets}/${environment_assets}/frontend/components/dialog/assets/icons/close.svg`,
|
|
124
|
+
onClick: (e) => handlerClick(e),
|
|
125
|
+
"aria-label": "click"
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
const WindowBase = (props) => {
|
|
130
|
+
const {
|
|
131
|
+
children,
|
|
132
|
+
onClickCancel,
|
|
133
|
+
...other
|
|
134
|
+
} = props;
|
|
135
|
+
const {
|
|
136
|
+
closeModal,
|
|
137
|
+
variant
|
|
138
|
+
} = useModal();
|
|
139
|
+
const onCloseCancel = () => {
|
|
140
|
+
onClickCancel && onClickCancel();
|
|
141
|
+
closeModal();
|
|
142
|
+
};
|
|
143
|
+
const classes = modalUtilityClasses({
|
|
144
|
+
variant
|
|
145
|
+
});
|
|
146
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
147
|
+
className: classes.windowBaseRoot,
|
|
148
|
+
children: [/* @__PURE__ */ jsx(Header, {
|
|
149
|
+
...other,
|
|
150
|
+
onClickCancel: onCloseCancel,
|
|
151
|
+
classes
|
|
152
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
153
|
+
className: classes.windowContent,
|
|
154
|
+
children
|
|
155
|
+
})]
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
export {
|
|
159
|
+
WindowBase as W
|
|
160
|
+
};
|