@m4l/components 0.1.77 → 0.1.79
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 +3 -3
- package/components/AccountPopover/{index.3a79c395.js → index.d541e4e6.js} +6 -6
- package/components/AppBar/{index.71b38ee9.js → index.f90014de.js} +6 -6
- package/components/CommonActions/components/ActionCancel/{index.b748a38e.js → index.92536832.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.27ad09e1.js → index.7fb1ed8d.js} +19 -15
- package/components/CommonActions/components/ActionFormIntro/{index.2556f054.js → index.bebc0c94.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.a7d92e66.js → index.aa4e432e.js} +1 -1
- package/components/CommonActions/components/Actions/{index.3eba9d91.js → index.5732847f.js} +11 -11
- package/components/DataGrid/{index.545b492f.js → index.302080d3.js} +20 -23
- package/components/DataGrid/types.d.ts +1 -1
- package/components/DynamicFilter/constants.d.ts +1 -0
- package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +6 -1
- package/components/DynamicFilter/{index.d7be0f37.js → index.0887320f.js} +50 -50
- package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +1 -2
- package/components/DynamicFilter/tests/contants.d.ts +2 -3
- package/components/GridLayout/Responsive/{index.a12a8cec.js → index.0905a698.js} +61 -43
- package/components/GridLayout/WidthProvider/{index.8ff65909.js → index.9a26dfe4.js} +1 -3
- package/components/GridLayout/index.d.ts +1 -1
- package/components/GridLayout/{index.4ba3767a.js → index.da6fd387.js} +103 -93
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +1 -0
- package/components/GridLayout/subcomponents/GridItem/types.d.ts +2 -0
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +6 -3
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +1 -3
- package/components/HelperText/{index.ef31df1f.js → index.29d5ad65.js} +6 -6
- package/components/Icon/{index.ecb63e65.js → index.9fcd1476.js} +1 -1
- package/components/LanguagePopover/{index.0023d069.js → index.ce84f099.js} +6 -6
- package/components/ModalDialog/{index.d880e685.js → index.ab432b77.js} +4 -4
- package/components/NavLink/{index.cd92eceb.js → index.3bf44e30.js} +6 -6
- package/components/ObjectLogs/{index.f174c542.js → index.c947ded4.js} +22 -16
- package/components/ObjectLogs/types.d.ts +1 -0
- package/components/PaperForm/{index.1bd86ee5.js → index.ba38a0bd.js} +1 -1
- package/components/Period/{index.711db043.js → index.adc328ca.js} +12 -12
- package/components/PropertyValue/constants.d.ts +3 -0
- package/components/PropertyValue/{index.8a1adf3e.js → index.6b583e7a.js} +17 -11
- package/components/PropertyValue/types.d.ts +2 -1
- package/components/SideBar/{index.c5ce0bad.js → index.2f497e6c.js} +2 -2
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +3 -0
- package/components/areas/components/AreasAdmin/{index.cc4cbf56.js → index.31905078.js} +91 -79
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +1 -0
- package/components/areas/components/AreasViewer/{index.9c2aaaeb.js → index.fe18bdbc.js} +151 -163
- package/components/areas/components/{index.0f7ac464.js → index.7ae189ba.js} +9 -9
- package/components/areas/contexts/AreasContext/helper.d.ts +3 -1
- package/components/areas/contexts/AreasContext/{index.c8147e8e.js → index.1213c3ef.js} +104 -78
- package/components/areas/contexts/AreasContext/types.d.ts +2 -2
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +1 -0
- package/components/areas/contexts/{index.02336412.js → index.84d35ffe.js} +1 -1
- package/components/areas/hooks/useAreas/{index.3406a6cb.js → index.cd799cf6.js} +1 -1
- package/components/areas/{index.6f2e5dab.js → index.6ee7a4eb.js} +9 -9
- package/components/areas/types.d.ts +5 -1
- package/components/formatters/BooleanFormatter/{index.5268b024.js → index.e8de8e4c.js} +1 -1
- package/components/formatters/{index.137169d8.js → index.67aeb049.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.ac2b1fae.js → index.e52c1f6a.js} +23 -12
- package/components/hook-form/RHFAutocompleteAsync/{index.8b4ccc8d.js → index.a226b8ac.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.acef119c.js → index.9619debd.js} +1 -1
- package/components/hook-form/RHFDateTime/{index.5b080342.js → index.5da7b839.js} +7 -7
- package/components/hook-form/RHFPeriod/{index.5304e3bd.js → index.7e42c292.js} +2 -2
- package/components/hook-form/RHFTextField/{index.e751dca7.js → index.13447584.js} +3 -3
- package/components/hook-form/RHFUpload/{index.25db0511.js → index.80071782.js} +7 -10
- package/components/modal/{WindowBase.850ea31a.js → WindowBase.90d3c1d5.js} +8 -8
- package/components/modal/{WindowConfirm.cb37bc58.js → WindowConfirm.835f8d13.js} +14 -14
- package/components/modal/{index.a0978193.js → index.cd34ddb3.js} +11 -11
- package/components/mui_extended/Accordion/constants.d.ts +1 -0
- package/components/mui_extended/Accordion/{index.12b1339a.js → index.e8ba0755.js} +8 -9
- package/components/mui_extended/Accordion/types.d.ts +1 -0
- package/components/mui_extended/IconButton/{index.fc5b7c2d.js → index.12f1a3c3.js} +4 -1
- package/components/mui_extended/MenuActions/{index.f5b1c022.js → index.43a2e1ae.js} +15 -6
- package/components/mui_extended/MenuActions/index.d.ts +3 -2
- package/components/mui_extended/MenuActions/types.d.ts +1 -0
- package/components/mui_extended/Pager/{index.435af0df.js → index.2f6d6d7d.js} +1 -1
- package/components/mui_extended/Tab/constant.d.ts +1 -0
- package/components/mui_extended/Tab/{index.9e2f6e34.js → index.3c005df1.js} +5 -6
- package/components/mui_extended/Tab/types.d.ts +1 -0
- package/components/mui_extended/{index.83979b6a.js → index.ff59a512.js} +6 -6
- package/contexts/ModalContext/{index.dee85a61.js → index.feded672.js} +1 -1
- package/hooks/useModal/{index.de522a10.js → index.6d238807.js} +1 -1
- package/index.js +220 -217
- package/package.json +1 -1
- package/test/getNameDataTestId.d.ts +1 -0
- package/vendor.9b969b18.js +124 -0
- package/components/DynamicFilter/subcomponents/InnerForHooks/types.d.ts +0 -2
- package/components/DynamicFilter/tests/types.d.ts +0 -2
- package/components/DynamicFilter/tests/utils.d.ts +0 -2
- package/components/PropertyValue/tests/constants.d.ts +0 -1
- package/components/PropertyValue/tests/utils.d.ts +0 -2
- package/components/mui_extended/Accordion/tests/constants.d.ts +0 -1
- package/components/mui_extended/Accordion/tests/utils.d.ts +0 -2
- package/components/mui_extended/Tab/tests/constants.d.ts +0 -1
- package/components/mui_extended/Tab/tests/utils.d.ts +0 -2
package/@types/export.d.ts
CHANGED
|
@@ -35,9 +35,9 @@ import { RHFDateTimeProps } from '../components/hook-form/RHFDateTime/types';
|
|
|
35
35
|
import { RHFDateTimeClassesKey } from '../components/hook-form/RHFDateTime/classes/types';
|
|
36
36
|
import { AreasAdminClassesKey } from '../components/areas/components/AreasAdmin/classes/types';
|
|
37
37
|
import { AreasViewerClassesKey } from '../components/areas/components/AreasViewer/classes/types';
|
|
38
|
-
import { AppBarProps } from '
|
|
39
|
-
import { AccountPopoverProps } from '
|
|
40
|
-
import { SplitLayoutProps } from '
|
|
38
|
+
import { AppBarProps } from '../components/AppBar/types';
|
|
39
|
+
import { AccountPopoverProps } from '../components/AccountPopover/types';
|
|
40
|
+
import { SplitLayoutProps } from '../components/SplitLayout';
|
|
41
41
|
import { LinearProgressIndeterminateClassesKey } from '../components/LinearProgressIndeterminate/classes/types';
|
|
42
42
|
import { PropertyValueProps } from '../components/PropertyValue/types';
|
|
43
43
|
import { TabClassesKey } from '../components/mui_extended/Tab/classes/types';
|
|
@@ -2,12 +2,12 @@ import { useModuleDictionary, useNetwork } from "@m4l/core";
|
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass, styled, useTheme } from "@mui/material";
|
|
5
|
-
import "../Icon/index.
|
|
5
|
+
import "../Icon/index.9fcd1476.js";
|
|
6
6
|
import "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import "../mui_extended/IconButton/index.
|
|
8
|
+
import "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
9
9
|
import "@m4l/graphics";
|
|
10
|
-
import "../mui_extended/Accordion/index.
|
|
10
|
+
import "../mui_extended/Accordion/index.e8ba0755.js";
|
|
11
11
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
12
12
|
import { A as Avatar } from "../mui_extended/Avatar/index.75e6ed57.js";
|
|
13
13
|
import "react-router-dom";
|
|
@@ -17,10 +17,10 @@ import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad
|
|
|
17
17
|
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
18
18
|
import "../Image/index.c18ebf5a.js";
|
|
19
19
|
import "@mui/lab";
|
|
20
|
+
import "../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
20
21
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
21
|
-
import "../mui_extended/
|
|
22
|
-
import "../mui_extended/
|
|
23
|
-
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
22
|
+
import "../mui_extended/Pager/index.2f6d6d7d.js";
|
|
23
|
+
import "../mui_extended/Tab/index.3c005df1.js";
|
|
24
24
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
25
25
|
import { unstable_composeClasses } from "@mui/base";
|
|
26
26
|
const componentName = "M4LAccountPopover";
|
|
@@ -2,9 +2,9 @@ import { useResponsiveDesktop } from "@m4l/graphics";
|
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
5
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
6
|
-
import "../mui_extended/Accordion/index.
|
|
7
|
-
import "../Icon/index.
|
|
5
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
6
|
+
import "../mui_extended/Accordion/index.e8ba0755.js";
|
|
7
|
+
import "../Icon/index.9fcd1476.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "clsx";
|
|
10
10
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
@@ -16,10 +16,10 @@ import "../mui_extended/Button/index.4288f9fc.js";
|
|
|
16
16
|
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
17
17
|
import "../Image/index.c18ebf5a.js";
|
|
18
18
|
import "@mui/lab";
|
|
19
|
+
import "../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
19
20
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
20
|
-
import "../mui_extended/
|
|
21
|
-
import "../mui_extended/
|
|
22
|
-
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
21
|
+
import "../mui_extended/Pager/index.2f6d6d7d.js";
|
|
22
|
+
import "../mui_extended/Tab/index.3c005df1.js";
|
|
23
23
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
24
24
|
import { styled } from "@mui/material/styles";
|
|
25
25
|
import { unstable_composeClasses } from "@mui/base";
|
package/components/CommonActions/components/ActionCancel/{index.b748a38e.js → index.92536832.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
2
|
import { B as Button } from "../../../mui_extended/Button/index.4288f9fc.js";
|
|
3
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
3
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.5732847f.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ActionCancel = (props) => {
|
|
6
6
|
const {
|
package/components/CommonActions/components/ActionFormCancel/{index.27ad09e1.js → index.7fb1ed8d.js}
RENAMED
|
@@ -2,40 +2,40 @@ import { useFormContext, useFormState } from "react-hook-form";
|
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
4
|
import { B as Button } from "../../../mui_extended/Button/index.4288f9fc.js";
|
|
5
|
-
import { useCallback } from "react";
|
|
6
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
5
|
+
import { useCallback, useEffect } from "react";
|
|
6
|
+
import { u as useModal } from "../../../../hooks/useModal/index.6d238807.js";
|
|
7
7
|
import "../../../../react-draggable.7abb5d0a.js";
|
|
8
8
|
import "../../../Resizeable/index.9a9c79a4.js";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import "@m4l/graphics";
|
|
11
|
-
import "../../../Icon/index.
|
|
11
|
+
import "../../../Icon/index.9fcd1476.js";
|
|
12
12
|
import "clsx";
|
|
13
|
-
import "../../../modal/index.
|
|
14
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
15
|
-
import "../../../mui_extended/IconButton/index.
|
|
16
|
-
import "../../../mui_extended/Accordion/index.
|
|
13
|
+
import "../../../modal/index.cd34ddb3.js";
|
|
14
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.835f8d13.js";
|
|
15
|
+
import "../../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
16
|
+
import "../../../mui_extended/Accordion/index.e8ba0755.js";
|
|
17
17
|
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
18
18
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
19
19
|
import "react-router-dom";
|
|
20
20
|
import "../../../mui_extended/Badge/index.8c2b8b66.js";
|
|
21
21
|
import "../../../Image/index.c18ebf5a.js";
|
|
22
22
|
import "@mui/lab";
|
|
23
|
+
import "../../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
23
24
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
24
|
-
import "../../../mui_extended/
|
|
25
|
-
import "../../../mui_extended/
|
|
26
|
-
import "../../../mui_extended/Tab/index.9e2f6e34.js";
|
|
25
|
+
import "../../../mui_extended/Pager/index.2f6d6d7d.js";
|
|
26
|
+
import "../../../mui_extended/Tab/index.3c005df1.js";
|
|
27
27
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
28
28
|
import "zustand";
|
|
29
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
30
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
29
|
+
import "../../../areas/contexts/AreasContext/index.1213c3ef.js";
|
|
30
|
+
import "../../../areas/components/AreasAdmin/index.31905078.js";
|
|
31
31
|
import "zustand/shallow";
|
|
32
32
|
import "../../../ScrollBar/index.bbe48f4d.js";
|
|
33
|
-
import "../../../areas/components/AreasViewer/index.
|
|
33
|
+
import "../../../areas/components/AreasViewer/index.fe18bdbc.js";
|
|
34
34
|
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
35
35
|
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
36
36
|
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
37
37
|
import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
38
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
38
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.5732847f.js";
|
|
39
39
|
function ActionFormCancel() {
|
|
40
40
|
const {
|
|
41
41
|
getLabel
|
|
@@ -45,7 +45,8 @@ function ActionFormCancel() {
|
|
|
45
45
|
openModal
|
|
46
46
|
} = useModal();
|
|
47
47
|
const {
|
|
48
|
-
close: closeWindow
|
|
48
|
+
close: closeWindow,
|
|
49
|
+
setFnQueryClose: setQueryClose
|
|
49
50
|
} = useWindowToolsMF();
|
|
50
51
|
const {
|
|
51
52
|
control
|
|
@@ -73,6 +74,9 @@ function ActionFormCancel() {
|
|
|
73
74
|
onConfirmQuit();
|
|
74
75
|
}
|
|
75
76
|
}, [getLabel, isDirty, openModal]);
|
|
77
|
+
useEffect(() => {
|
|
78
|
+
setQueryClose(onClickCancel);
|
|
79
|
+
}, [onClickCancel]);
|
|
76
80
|
const classes = useCommonActionsUtilityClasses();
|
|
77
81
|
if (isSkeleton) {
|
|
78
82
|
return /* @__PURE__ */ jsx(Skeleton, {
|
package/components/CommonActions/components/ActionFormIntro/{index.2556f054.js → index.bebc0c94.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { useFormContext, useFormState } from "react-hook-form";
|
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
4
|
import { L as LoadingButton } from "../../../mui_extended/Button/index.4288f9fc.js";
|
|
5
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
5
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.5732847f.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function ActionFormIntro(props) {
|
|
8
8
|
const {
|
package/components/CommonActions/components/ActionIntro/{index.a7d92e66.js → index.aa4e432e.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
2
|
import { B as Button } from "../../../mui_extended/Button/index.4288f9fc.js";
|
|
3
3
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
4
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
4
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.5732847f.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
7
7
|
const ActionIntro = (props) => {
|
|
@@ -10,31 +10,31 @@ import "../../../mui_extended/Button/index.4288f9fc.js";
|
|
|
10
10
|
import "clsx";
|
|
11
11
|
import "react-hook-form";
|
|
12
12
|
import "react";
|
|
13
|
-
import "../../../../contexts/ModalContext/index.
|
|
13
|
+
import "../../../../contexts/ModalContext/index.feded672.js";
|
|
14
14
|
import "../../../../react-draggable.7abb5d0a.js";
|
|
15
15
|
import "../../../Resizeable/index.9a9c79a4.js";
|
|
16
16
|
import "@m4l/graphics";
|
|
17
|
-
import "../../../Icon/index.
|
|
18
|
-
import "../../../modal/index.
|
|
17
|
+
import "../../../Icon/index.9fcd1476.js";
|
|
18
|
+
import "../../../modal/index.cd34ddb3.js";
|
|
19
19
|
import "@mui/lab";
|
|
20
20
|
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
21
21
|
import "../../../Image/index.c18ebf5a.js";
|
|
22
|
-
import "../../../mui_extended/IconButton/index.
|
|
23
|
-
import "../../../mui_extended/Accordion/index.
|
|
22
|
+
import "../../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
23
|
+
import "../../../mui_extended/Accordion/index.e8ba0755.js";
|
|
24
24
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
25
25
|
import "react-router-dom";
|
|
26
26
|
import "../../../mui_extended/Badge/index.8c2b8b66.js";
|
|
27
|
+
import "../../../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
27
28
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
28
|
-
import "../../../mui_extended/
|
|
29
|
-
import "../../../mui_extended/
|
|
30
|
-
import "../../../mui_extended/Tab/index.9e2f6e34.js";
|
|
29
|
+
import "../../../mui_extended/Pager/index.2f6d6d7d.js";
|
|
30
|
+
import "../../../mui_extended/Tab/index.3c005df1.js";
|
|
31
31
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
32
32
|
import "zustand";
|
|
33
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
34
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
33
|
+
import "../../../areas/contexts/AreasContext/index.1213c3ef.js";
|
|
34
|
+
import "../../../areas/components/AreasAdmin/index.31905078.js";
|
|
35
35
|
import "zustand/shallow";
|
|
36
36
|
import "../../../ScrollBar/index.bbe48f4d.js";
|
|
37
|
-
import "../../../areas/components/AreasViewer/index.
|
|
37
|
+
import "../../../areas/components/AreasViewer/index.fe18bdbc.js";
|
|
38
38
|
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
39
39
|
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
40
40
|
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -6,28 +6,28 @@ import { HTML5Backend } from "react-dnd-html5-backend";
|
|
|
6
6
|
import { SvgIcon, Checkbox, InputBase, Skeleton } from "@mui/material";
|
|
7
7
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
8
8
|
import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString, useEnvironment } from "@m4l/core";
|
|
9
|
-
import { M as MenuActions } from "../mui_extended/MenuActions/index.
|
|
10
|
-
import { g as getPagerComponentsDictionary, P as Pager } from "../mui_extended/Pager/index.
|
|
11
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
12
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
13
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
14
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
9
|
+
import { M as MenuActions } from "../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
10
|
+
import { g as getPagerComponentsDictionary, P as Pager } from "../mui_extended/Pager/index.2f6d6d7d.js";
|
|
11
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
12
|
+
import { u as useModal } from "../../hooks/useModal/index.6d238807.js";
|
|
13
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.92536832.js";
|
|
14
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.aa4e432e.js";
|
|
15
15
|
import "../../react-draggable.7abb5d0a.js";
|
|
16
16
|
import "../Resizeable/index.9a9c79a4.js";
|
|
17
17
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
18
|
-
import "../Icon/index.
|
|
18
|
+
import "../Icon/index.9fcd1476.js";
|
|
19
19
|
import "clsx";
|
|
20
|
-
import "../modal/index.
|
|
21
|
-
import { A as Actions$1 } from "../CommonActions/components/Actions/index.
|
|
20
|
+
import "../modal/index.cd34ddb3.js";
|
|
21
|
+
import { A as Actions$1 } from "../CommonActions/components/Actions/index.5732847f.js";
|
|
22
22
|
import "react-hook-form";
|
|
23
23
|
import "@mui/material/Button";
|
|
24
24
|
import "../mui_extended/Button/index.4288f9fc.js";
|
|
25
25
|
import "zustand";
|
|
26
|
-
import "../areas/contexts/AreasContext/index.
|
|
27
|
-
import "../areas/components/AreasAdmin/index.
|
|
26
|
+
import "../areas/contexts/AreasContext/index.1213c3ef.js";
|
|
27
|
+
import "../areas/components/AreasAdmin/index.31905078.js";
|
|
28
28
|
import "zustand/shallow";
|
|
29
29
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
30
|
-
import "../mui_extended/Accordion/index.
|
|
30
|
+
import "../mui_extended/Accordion/index.e8ba0755.js";
|
|
31
31
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
32
32
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
33
33
|
import "react-router-dom";
|
|
@@ -35,17 +35,17 @@ import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
|
35
35
|
import "../Image/index.c18ebf5a.js";
|
|
36
36
|
import "@mui/lab";
|
|
37
37
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
38
|
-
import "../mui_extended/Tab/index.
|
|
38
|
+
import "../mui_extended/Tab/index.3c005df1.js";
|
|
39
39
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
40
|
-
import "../areas/components/AreasViewer/index.
|
|
40
|
+
import "../areas/components/AreasViewer/index.fe18bdbc.js";
|
|
41
41
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
42
42
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
43
43
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
44
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
45
|
-
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.
|
|
46
|
-
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.
|
|
44
|
+
import { W as WindowBase } from "../modal/WindowBase.90d3c1d5.js";
|
|
45
|
+
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.ab432b77.js";
|
|
46
|
+
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.e8de8e4c.js";
|
|
47
47
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
48
|
-
import { C as ConcatenatedFormatter } from "../formatters/index.
|
|
48
|
+
import { C as ConcatenatedFormatter } from "../formatters/index.67aeb049.js";
|
|
49
49
|
const WrapperGrid = styled("div")(() => ({
|
|
50
50
|
display: "flex",
|
|
51
51
|
flexDirection: "column",
|
|
@@ -377,8 +377,6 @@ function DataGridProvider(props) {
|
|
|
377
377
|
setColumnsConfigOptions(newColumnsConfig);
|
|
378
378
|
}, [setColumnsConfigOptions, id]);
|
|
379
379
|
const onChangeColumnsOrder = useCallback((sourceKey, targetKey) => {
|
|
380
|
-
console.log("DataGrid sourceKey", sourceKey);
|
|
381
|
-
console.log("DataGrid targetKey", targetKey);
|
|
382
380
|
if (sourceKey === targetKey)
|
|
383
381
|
return;
|
|
384
382
|
const sourceColumnIndex = columnsConfig.findIndex((c) => c.key === sourceKey);
|
|
@@ -1624,7 +1622,7 @@ function Actions(props) {
|
|
|
1624
1622
|
})]
|
|
1625
1623
|
});
|
|
1626
1624
|
}
|
|
1627
|
-
const DATAGRID_TEST_ID = "
|
|
1625
|
+
const DATAGRID_TEST_ID = "m4ldatagrid";
|
|
1628
1626
|
const PREFIX_TEST_ATTRIBUTE = "data-testid";
|
|
1629
1627
|
const TEST_PROP_COLUMNS = `${PREFIX_TEST_ATTRIBUTE}-${DATAGRID_TEST_ID}-columns`;
|
|
1630
1628
|
function DataGrid(props) {
|
|
@@ -1646,12 +1644,11 @@ function DataGrid(props) {
|
|
|
1646
1644
|
onCheckedRowsChange,
|
|
1647
1645
|
dataTestId
|
|
1648
1646
|
} = props;
|
|
1649
|
-
console.log("test columns", columns);
|
|
1650
1647
|
return /* @__PURE__ */ jsx(WrapperGrid, {
|
|
1651
1648
|
id: `WrapperGrid_${props.id}`,
|
|
1652
1649
|
...process.env.NODE_ENV !== "production" ? {
|
|
1653
1650
|
[TEST_PROP_COLUMNS]: JSON.stringify(columns),
|
|
1654
|
-
[PREFIX_TEST_ATTRIBUTE]: `
|
|
1651
|
+
[PREFIX_TEST_ATTRIBUTE]: `m4ldatagrid-${dataTestId}`
|
|
1655
1652
|
} : {},
|
|
1656
1653
|
children: /* @__PURE__ */ jsx(DataGridProvider, {
|
|
1657
1654
|
id: props.id,
|
|
@@ -56,7 +56,7 @@ export interface GridProps<TRow, TSummaryRow> {
|
|
|
56
56
|
onCheckedRowsChange?: (mapRowsSelected: ReadonlySet<RowKey>) => void;
|
|
57
57
|
onRowsChange?: Maybe<(rows: TRow[], data: RowsChangeData<TRow, TSummaryRow>) => void>;
|
|
58
58
|
}
|
|
59
|
-
export declare const DATAGRID_TEST_ID = "
|
|
59
|
+
export declare const DATAGRID_TEST_ID = "m4ldatagrid";
|
|
60
60
|
export declare const PREFIX_TEST_ATTRIBUTE = "data-testid";
|
|
61
61
|
export declare const TEST_PROP_COLUMNS: string;
|
|
62
62
|
export declare interface DataGridProps<TRow, TSummaryRow> extends GridProps<TRow, TSummaryRow> {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BooleanOperator, DateTimeOperator, Field, NumberOperator, Operator, StringOperator } from './types';
|
|
2
2
|
export declare const COMPONENT_TEST_ID = "M4LDynamicFilter";
|
|
3
|
+
export declare const COMPONENT_PREFIX = "m4l-dynamic-filter";
|
|
3
4
|
export declare const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
4
5
|
export declare const ASSETS_URL = "frontend/components/dynamic_filter/assets/icons";
|
|
5
6
|
export declare const ASSETS: {
|
|
@@ -118,6 +118,11 @@ export interface DynamicFilterState {
|
|
|
118
118
|
popoverFilterData?: PopoverFilterData;
|
|
119
119
|
classes: Classes;
|
|
120
120
|
getLabel: GetLabelType;
|
|
121
|
+
/**
|
|
122
|
+
* dataTestId:
|
|
123
|
+
* Esta propiedad sirve para generar identificadores únicos.
|
|
124
|
+
*/
|
|
125
|
+
dataTestId: string;
|
|
121
126
|
}
|
|
122
127
|
export interface DynamicFilterStateWithActions extends DynamicFilterState {
|
|
123
128
|
actions: {
|
|
@@ -211,7 +216,7 @@ export interface DynamicFilterStateWithActions extends DynamicFilterState {
|
|
|
211
216
|
closePopoverMenuFields: (newInEdition?: boolean) => void;
|
|
212
217
|
};
|
|
213
218
|
}
|
|
214
|
-
declare type InitialStoreProps = Pick<DynamicFilterState, 'automatic' | 'fields' | 'withAllField' | 'getLabel' | 'allField' | 'ownerState'>;
|
|
219
|
+
declare type InitialStoreProps = Pick<DynamicFilterState, 'automatic' | 'fields' | 'withAllField' | 'getLabel' | 'allField' | 'ownerState' | 'dataTestId'>;
|
|
215
220
|
/**
|
|
216
221
|
* @description Crea el store de zustand para el componente DynamicFilter
|
|
217
222
|
* @param initProps Variables iniciales que necesita store para poder inicializarlo
|