@m4l/components 0.1.77 → 0.1.78
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.7e76dbb7.js} +6 -6
- package/components/AppBar/{index.71b38ee9.js → index.06858422.js} +6 -6
- package/components/CommonActions/components/ActionCancel/{index.b748a38e.js → index.d536ccfa.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.27ad09e1.js → index.a915b105.js} +13 -13
- package/components/CommonActions/components/ActionFormIntro/{index.2556f054.js → index.14e65d6c.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.a7d92e66.js → index.aa1648eb.js} +1 -1
- package/components/CommonActions/components/Actions/{index.3eba9d91.js → index.52125041.js} +11 -11
- package/components/DataGrid/{index.545b492f.js → index.9fb3e6a1.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.d1a2e2d1.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.a019742c.js} +6 -6
- package/components/Icon/{index.ecb63e65.js → index.9fcd1476.js} +1 -1
- package/components/LanguagePopover/{index.0023d069.js → index.98b63dcb.js} +6 -6
- package/components/ModalDialog/{index.d880e685.js → index.d9937d46.js} +4 -4
- package/components/NavLink/{index.cd92eceb.js → index.a5dea6d3.js} +6 -6
- package/components/ObjectLogs/{index.f174c542.js → index.d9d20b9d.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.7b94c418.js} +12 -12
- package/components/PropertyValue/constants.d.ts +3 -0
- package/components/PropertyValue/{index.8a1adf3e.js → index.45c73161.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.43ecd998.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.14e62059.js} +143 -161
- package/components/areas/components/{index.0f7ac464.js → index.a87653a9.js} +9 -9
- package/components/areas/contexts/AreasContext/helper.d.ts +3 -1
- package/components/areas/contexts/AreasContext/{index.c8147e8e.js → index.02c4e7be.js} +99 -78
- package/components/areas/contexts/AreasContext/types.d.ts +1 -2
- package/components/areas/contexts/{index.02336412.js → index.1ff9b360.js} +1 -1
- package/components/areas/hooks/useAreas/{index.3406a6cb.js → index.85e4b2e2.js} +1 -1
- package/components/areas/{index.6f2e5dab.js → index.d1dcccf5.js} +9 -9
- package/components/areas/types.d.ts +0 -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.6aa51705.js} +23 -12
- package/components/hook-form/RHFAutocompleteAsync/{index.8b4ccc8d.js → index.1a3dfe5f.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.acef119c.js → index.a08a65b3.js} +1 -1
- package/components/hook-form/RHFDateTime/{index.5b080342.js → index.4d671108.js} +7 -7
- package/components/hook-form/RHFPeriod/{index.5304e3bd.js → index.39b4be49.js} +2 -2
- package/components/hook-form/RHFTextField/{index.e751dca7.js → index.9004e898.js} +3 -3
- package/components/hook-form/RHFUpload/{index.25db0511.js → index.bed8573e.js} +7 -10
- package/components/modal/{WindowBase.850ea31a.js → WindowBase.a0c0b322.js} +8 -8
- package/components/modal/{WindowConfirm.cb37bc58.js → WindowConfirm.6c063f2d.js} +14 -14
- package/components/modal/{index.a0978193.js → index.00efea85.js} +11 -11
- package/components/mui_extended/Accordion/constants.d.ts +1 -0
- package/components/mui_extended/Accordion/{index.12b1339a.js → index.9877f7bf.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.7c82e43d.js} +5 -6
- package/components/mui_extended/Tab/types.d.ts +1 -0
- package/components/mui_extended/{index.83979b6a.js → index.0e2ff642.js} +6 -6
- package/contexts/ModalContext/{index.dee85a61.js → index.e9a7ba4a.js} +1 -1
- package/hooks/useModal/{index.de522a10.js → index.8e85f7ae.js} +1 -1
- package/index.js +220 -217
- package/package.json +1 -1
- package/test/getNameDataTestId.d.ts +1 -0
- package/vendor.e353394b.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.9877f7bf.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.7c82e43d.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.9877f7bf.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.7c82e43d.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.d536ccfa.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.52125041.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.a915b105.js}
RENAMED
|
@@ -3,39 +3,39 @@ 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
5
|
import { useCallback } from "react";
|
|
6
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
6
|
+
import { u as useModal } from "../../../../hooks/useModal/index.8e85f7ae.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.00efea85.js";
|
|
14
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.6c063f2d.js";
|
|
15
|
+
import "../../../mui_extended/IconButton/index.12f1a3c3.js";
|
|
16
|
+
import "../../../mui_extended/Accordion/index.9877f7bf.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.7c82e43d.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.02c4e7be.js";
|
|
30
|
+
import "../../../areas/components/AreasAdmin/index.43ecd998.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.14e62059.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.52125041.js";
|
|
39
39
|
function ActionFormCancel() {
|
|
40
40
|
const {
|
|
41
41
|
getLabel
|
package/components/CommonActions/components/ActionFormIntro/{index.2556f054.js → index.14e65d6c.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.52125041.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.aa1648eb.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.52125041.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.e9a7ba4a.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.00efea85.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.9877f7bf.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.7c82e43d.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.02c4e7be.js";
|
|
34
|
+
import "../../../areas/components/AreasAdmin/index.43ecd998.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.14e62059.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.8e85f7ae.js";
|
|
13
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.d536ccfa.js";
|
|
14
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.aa1648eb.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.00efea85.js";
|
|
21
|
+
import { A as Actions$1 } from "../CommonActions/components/Actions/index.52125041.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.02c4e7be.js";
|
|
27
|
+
import "../areas/components/AreasAdmin/index.43ecd998.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.9877f7bf.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.7c82e43d.js";
|
|
39
39
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
40
|
-
import "../areas/components/AreasViewer/index.
|
|
40
|
+
import "../areas/components/AreasViewer/index.14e62059.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.a0c0b322.js";
|
|
45
|
+
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.d9937d46.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
|
|
@@ -4,39 +4,40 @@ import { useContext, useMemo, useEffect, createContext, useRef, createElement, u
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
6
6
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
7
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
7
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.12f1a3c3.js";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
9
|
+
import { g as getNameDataTestId } from "../../vendor.e353394b.js";
|
|
9
10
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
10
11
|
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
11
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.
|
|
12
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.43a2e1ae.js";
|
|
12
13
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
13
|
-
import { I as Icon } from "../Icon/index.
|
|
14
|
+
import { I as Icon } from "../Icon/index.9fcd1476.js";
|
|
14
15
|
import { styled, useTheme } from "@mui/material/styles";
|
|
15
16
|
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.fe175bab.js";
|
|
16
|
-
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.
|
|
17
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
18
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
17
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.52125041.js";
|
|
18
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.d536ccfa.js";
|
|
19
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.aa1648eb.js";
|
|
19
20
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
20
21
|
import "@mui/material/Button";
|
|
21
22
|
import "../mui_extended/Button/index.4288f9fc.js";
|
|
22
|
-
import "../../contexts/ModalContext/index.
|
|
23
|
+
import "../../contexts/ModalContext/index.e9a7ba4a.js";
|
|
23
24
|
import "../../react-draggable.7abb5d0a.js";
|
|
24
25
|
import "../Resizeable/index.9a9c79a4.js";
|
|
25
|
-
import "../modal/index.
|
|
26
|
+
import "../modal/index.00efea85.js";
|
|
26
27
|
import "../Image/index.c18ebf5a.js";
|
|
27
|
-
import "../mui_extended/Accordion/index.
|
|
28
|
+
import "../mui_extended/Accordion/index.9877f7bf.js";
|
|
28
29
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
29
30
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
30
31
|
import "react-router-dom";
|
|
31
32
|
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
32
33
|
import "@mui/lab";
|
|
33
|
-
import "../mui_extended/Pager/index.
|
|
34
|
-
import "../mui_extended/Tab/index.
|
|
34
|
+
import "../mui_extended/Pager/index.2f6d6d7d.js";
|
|
35
|
+
import "../mui_extended/Tab/index.7c82e43d.js";
|
|
35
36
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
36
37
|
import { useStore, createStore } from "zustand";
|
|
37
|
-
import "../areas/contexts/AreasContext/index.
|
|
38
|
-
import "../areas/components/AreasAdmin/index.
|
|
39
|
-
import "../areas/components/AreasViewer/index.
|
|
38
|
+
import "../areas/contexts/AreasContext/index.02c4e7be.js";
|
|
39
|
+
import "../areas/components/AreasAdmin/index.43ecd998.js";
|
|
40
|
+
import "../areas/components/AreasViewer/index.14e62059.js";
|
|
40
41
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
41
42
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
42
43
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -44,20 +45,21 @@ import { unstable_composeClasses } from "@mui/base";
|
|
|
44
45
|
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.c43a95f4.js";
|
|
45
46
|
import { devtools } from "zustand/middleware";
|
|
46
47
|
import { immer } from "zustand/middleware/immer";
|
|
47
|
-
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
48
|
+
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.6aa51705.js";
|
|
48
49
|
import "lodash/debounce";
|
|
49
|
-
import "../hook-form/RHFAutocompleteAsync/index.
|
|
50
|
-
import "../hook-form/RHFCheckbox/index.
|
|
51
|
-
import "../HelperText/index.
|
|
50
|
+
import "../hook-form/RHFAutocompleteAsync/index.1a3dfe5f.js";
|
|
51
|
+
import "../hook-form/RHFCheckbox/index.a08a65b3.js";
|
|
52
|
+
import "../HelperText/index.a019742c.js";
|
|
52
53
|
import "@mui/x-date-pickers";
|
|
53
|
-
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.
|
|
54
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
55
|
-
import "../hook-form/RHFPeriod/index.
|
|
56
|
-
import "../Period/index.
|
|
54
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.4d671108.js";
|
|
55
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.9004e898.js";
|
|
56
|
+
import "../hook-form/RHFPeriod/index.39b4be49.js";
|
|
57
|
+
import "../Period/index.7b94c418.js";
|
|
57
58
|
import "lodash/isString";
|
|
58
59
|
import "react-dropzone";
|
|
59
|
-
import "../hook-form/RHFUpload/index.
|
|
60
|
+
import "../hook-form/RHFUpload/index.bed8573e.js";
|
|
60
61
|
import * as Yup from "yup";
|
|
62
|
+
const COMPONENT_PREFIX = "m4l-dynamic-filter";
|
|
61
63
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
62
64
|
const ASSETS_URL = "frontend/components/dynamic_filter/assets/icons";
|
|
63
65
|
const ASSETS = {
|
|
@@ -149,12 +151,6 @@ function useDynamicFilter(selector, equalityFn) {
|
|
|
149
151
|
throw new Error("useDynamicFilterStore context must be use inside DynamicFilterContext");
|
|
150
152
|
return useStore(store, selector, equalityFn);
|
|
151
153
|
}
|
|
152
|
-
const DYNAMICFILTER_TEST_ID = "M4LDynamicFilter";
|
|
153
|
-
const PREFIX_TEST_ATTRIBUTE = "data-test";
|
|
154
|
-
const TEST_PROP_FIELDS = `${PREFIX_TEST_ATTRIBUTE}-${DYNAMICFILTER_TEST_ID}-fields`;
|
|
155
|
-
function getTestIdByClass(key, detailId) {
|
|
156
|
-
return `${DYNAMICFILTER_TEST_ID}-${key}` + (detailId ? "-" + detailId : "");
|
|
157
|
-
}
|
|
158
154
|
const DYNAMICFILTER_DICTIONARY_ID = "dynamic_filter";
|
|
159
155
|
function getDynamicFilterComponentsDictionary() {
|
|
160
156
|
return [DYNAMICFILTER_DICTIONARY_ID].concat(getCommonActionsDictionary());
|
|
@@ -191,6 +187,7 @@ const getDynamicFilterDictionary = (key) => {
|
|
|
191
187
|
};
|
|
192
188
|
function BooleanFilter() {
|
|
193
189
|
const classesContainerBooleanFilter = useDynamicFilter((state) => state.classes.containerBooleanFilter);
|
|
190
|
+
const dataTestId = useDynamicFilter((state) => state.classes.containerBooleanFilter);
|
|
194
191
|
const {
|
|
195
192
|
getLabel
|
|
196
193
|
} = useModuleDictionary();
|
|
@@ -207,7 +204,7 @@ function BooleanFilter() {
|
|
|
207
204
|
}], [getLabel]);
|
|
208
205
|
return /* @__PURE__ */ jsxs("div", {
|
|
209
206
|
...process.env.NODE_ENV !== "production" ? {
|
|
210
|
-
[TEST_PROP_ID]:
|
|
207
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "containerBooleanFilter", dataTestId)
|
|
211
208
|
} : {},
|
|
212
209
|
className: classesContainerBooleanFilter,
|
|
213
210
|
children: [/* @__PURE__ */ jsx(RHFAutocomplete, {
|
|
@@ -877,7 +874,6 @@ const updateAutomatic = (state) => {
|
|
|
877
874
|
updateOwnerStateClasses(state);
|
|
878
875
|
};
|
|
879
876
|
const createAreaStore = (initProps) => {
|
|
880
|
-
console.log("valores iniciales de createDinamicFilter store", initProps);
|
|
881
877
|
const startProps = {
|
|
882
878
|
countOnChangeFiltersApplyed: 0,
|
|
883
879
|
applyedFilters: [],
|
|
@@ -1031,7 +1027,8 @@ function DynamicFilterProvider(props) {
|
|
|
1031
1027
|
fields,
|
|
1032
1028
|
initialApplyedFilters = [],
|
|
1033
1029
|
onChangeFilters,
|
|
1034
|
-
children
|
|
1030
|
+
children,
|
|
1031
|
+
dataTestId = ""
|
|
1035
1032
|
} = props;
|
|
1036
1033
|
const {
|
|
1037
1034
|
getLabel
|
|
@@ -1054,6 +1051,7 @@ function DynamicFilterProvider(props) {
|
|
|
1054
1051
|
fields,
|
|
1055
1052
|
automatic,
|
|
1056
1053
|
getLabel,
|
|
1054
|
+
dataTestId,
|
|
1057
1055
|
ownerState: {
|
|
1058
1056
|
isSkeleton,
|
|
1059
1057
|
isDirty: !automatic,
|
|
@@ -1217,6 +1215,7 @@ function ApplyedFilter(props) {
|
|
|
1217
1215
|
hidePopoverFilter: hidePopupEdit,
|
|
1218
1216
|
showPopoverFilterForEdit: showPopupForEdit
|
|
1219
1217
|
} = useDynamicFilter((state) => state.actions);
|
|
1218
|
+
const dataTestId = useDynamicFilter((state) => state.dataTestId);
|
|
1220
1219
|
const labels = useMemo(() => {
|
|
1221
1220
|
return getLabelsFilter(props, getLabel, formatters);
|
|
1222
1221
|
}, [props, getLabel]);
|
|
@@ -1235,7 +1234,7 @@ function ApplyedFilter(props) {
|
|
|
1235
1234
|
return /* @__PURE__ */ jsxs(WrapperApplyedFilter, {
|
|
1236
1235
|
className: clsx(classesApplyedFilter, !isSetted ? `${COMPONENT_CLASS_NAME}-noSetted` : null),
|
|
1237
1236
|
...process.env.NODE_ENV !== "production" ? {
|
|
1238
|
-
[TEST_PROP_ID]:
|
|
1237
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "applyedFilter", `${dataTestId}-${field.name}`)
|
|
1239
1238
|
} : {},
|
|
1240
1239
|
children: [urlIcon && /* @__PURE__ */ jsx(IconButton, {
|
|
1241
1240
|
src: urlIcon,
|
|
@@ -1277,6 +1276,7 @@ const ContainerApplyedFilters = styled("div")(({
|
|
|
1277
1276
|
}));
|
|
1278
1277
|
function ApplyedFilters() {
|
|
1279
1278
|
const classesWrapperApplyedFilters = useDynamicFilter((state) => state.classes.wrapperApplyedFilters, shallow);
|
|
1279
|
+
const dataTestId = useDynamicFilter((state) => state.dataTestId, shallow);
|
|
1280
1280
|
const classesContainerApplyedFilters = useDynamicFilter((state) => state.classes.containerApplyedFilters, shallow);
|
|
1281
1281
|
const applyedFilters = useDynamicFilter((state) => state.applyedFilters, shallow);
|
|
1282
1282
|
const isSkeleton = useDynamicFilter((state) => state.ownerState.isSkeleton, shallow);
|
|
@@ -1288,13 +1288,13 @@ function ApplyedFilters() {
|
|
|
1288
1288
|
return /* @__PURE__ */ jsx(WrapperApplyedFilters, {
|
|
1289
1289
|
className: classesWrapperApplyedFilters,
|
|
1290
1290
|
...process.env.NODE_ENV !== "production" ? {
|
|
1291
|
-
[TEST_PROP_ID]:
|
|
1291
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "wrapperApplyedFilters", dataTestId)
|
|
1292
1292
|
} : {},
|
|
1293
1293
|
children: /* @__PURE__ */ jsx(ScrollBar, {
|
|
1294
1294
|
children: /* @__PURE__ */ jsx(ContainerApplyedFilters, {
|
|
1295
1295
|
className: classesContainerApplyedFilters,
|
|
1296
1296
|
...process.env.NODE_ENV !== "production" ? {
|
|
1297
|
-
[TEST_PROP_ID]:
|
|
1297
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "containerApplyedFilters", dataTestId)
|
|
1298
1298
|
} : {},
|
|
1299
1299
|
children: [...applyedFilters].sort((a, b) => a.isSetted === b.isSetted ? 0 : a.isSetted ? -1 : 1).reverse().map((filter) => /* @__PURE__ */ jsx(ApplyedFilter, {
|
|
1300
1300
|
...filter
|
|
@@ -1363,6 +1363,7 @@ styled("div")(() => ({
|
|
|
1363
1363
|
display: "block"
|
|
1364
1364
|
}));
|
|
1365
1365
|
function FilterButton() {
|
|
1366
|
+
const dataTestId = useDynamicFilter((state) => state.dataTestId);
|
|
1366
1367
|
const automatic = useDynamicFilter((state) => state.automatic);
|
|
1367
1368
|
const isValid = useDynamicFilter((state) => state.ownerState.isValid);
|
|
1368
1369
|
const isDirty = useDynamicFilter((state) => state.ownerState.isDirty);
|
|
@@ -1388,7 +1389,7 @@ function FilterButton() {
|
|
|
1388
1389
|
return /* @__PURE__ */ jsx(IconButton, {
|
|
1389
1390
|
className: classesFilterButton,
|
|
1390
1391
|
...process.env.NODE_ENV !== "production" ? {
|
|
1391
|
-
[TEST_PROP_ID]:
|
|
1392
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "classesFilterButton", dataTestId)
|
|
1392
1393
|
} : {},
|
|
1393
1394
|
dictionaryTooltipId: getDynamicFilterDictionary(isValid ? isDirty ? DICCTIONARY.filter_tooltip_dirty : DICCTIONARY.filter_tooltip_refresh : DICCTIONARY.filter_tooltip_invalid),
|
|
1394
1395
|
onClick: fireOnChangeFilters,
|
|
@@ -1404,6 +1405,7 @@ function PopoverMenuFields(props) {
|
|
|
1404
1405
|
} = props;
|
|
1405
1406
|
const fnAnchorEl = useDynamicFilter((state) => state.fnAnchorEl, shallow);
|
|
1406
1407
|
const classesPopUpMenuFields = useDynamicFilter((state) => state.classes.popoverMenuFields, shallow);
|
|
1408
|
+
const dataTestId = useDynamicFilter((state) => state.dataTestId, shallow);
|
|
1407
1409
|
const classesPopUpMenuFieldsPaper = useDynamicFilter((state) => state.classes.popoverMenuFieldsPaper, shallow);
|
|
1408
1410
|
const classespopoverMenuFieldsItem = useDynamicFilter((state) => state.classes.popoverMenuFieldsItem, shallow);
|
|
1409
1411
|
const classespopoverLabelMemuItem = useDynamicFilter((state) => state.classes.classespopoverLabelMemuItem, shallow);
|
|
@@ -1445,12 +1447,12 @@ function PopoverMenuFields(props) {
|
|
|
1445
1447
|
PaperProps: {
|
|
1446
1448
|
className: classesPopUpMenuFieldsPaper,
|
|
1447
1449
|
...process.env.NODE_ENV !== "production" ? {
|
|
1448
|
-
[TEST_PROP_ID]:
|
|
1450
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "popoverMenuFieldsPaper", dataTestId)
|
|
1449
1451
|
} : {}
|
|
1450
1452
|
},
|
|
1451
1453
|
children: Boolean(fnAnchorEl) && fields.map((field, index) => /* @__PURE__ */ createElement(MenuItem, {
|
|
1452
1454
|
...process.env.NODE_ENV !== "production" ? {
|
|
1453
|
-
[TEST_PROP_ID]:
|
|
1455
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "popoverMenuFieldsItem", `${dataTestId}-${field.name}`)
|
|
1454
1456
|
} : {},
|
|
1455
1457
|
className: classespopoverMenuFieldsItem,
|
|
1456
1458
|
key: `menu_action_${field.label ?? getLabel(field.dictionaryId)}`,
|
|
@@ -1470,6 +1472,7 @@ function InputFilter() {
|
|
|
1470
1472
|
const withAllField = useDynamicFilter((state) => state.withAllField);
|
|
1471
1473
|
const inputData = useDynamicFilter((state) => state.inputData);
|
|
1472
1474
|
const availableFields = useDynamicFilter((state) => state.availableFields, shallow);
|
|
1475
|
+
const dataTestId = useDynamicFilter((state) => state.dataTestId, shallow);
|
|
1473
1476
|
const classesContainerInputFilter = useDynamicFilter((state) => state.classes.containerInputFilter, shallow);
|
|
1474
1477
|
const isSkeleton = useDynamicFilter((state) => state.ownerState.isSkeleton, shallow);
|
|
1475
1478
|
const {
|
|
@@ -1570,7 +1573,7 @@ function InputFilter() {
|
|
|
1570
1573
|
return /* @__PURE__ */ jsxs("div", {
|
|
1571
1574
|
className: classesContainerInputFilter,
|
|
1572
1575
|
...process.env.NODE_ENV !== "production" ? {
|
|
1573
|
-
[TEST_PROP_ID]:
|
|
1576
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "containerInputFilter", dataTestId)
|
|
1574
1577
|
} : {},
|
|
1575
1578
|
children: [!isSkeleton ? /* @__PURE__ */ jsxs(Fragment, {
|
|
1576
1579
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
@@ -1624,6 +1627,7 @@ const PopoverFilter = () => {
|
|
|
1624
1627
|
const refPreviousPopoverFilterData = useRef(popoverFilterData);
|
|
1625
1628
|
const classesPopoverFilter = useDynamicFilter((state) => state.classes.popoverFilter, shallow);
|
|
1626
1629
|
const classesPopoverFilterPapper = useDynamicFilter((state) => state.classes.popoverFilterPaper, shallow);
|
|
1630
|
+
const dataTestId = useDynamicFilter((state) => state.dataTestId, shallow);
|
|
1627
1631
|
const classesPopoverFilterHeader = useDynamicFilter((state) => state.classes.popoverFilterHeader, shallow);
|
|
1628
1632
|
const classesPopoverHeaderTitle = useDynamicFilter((state) => state.classes.popoverHeaderTitle, shallow);
|
|
1629
1633
|
const classesPopoverContainerFields = useDynamicFilter((state) => state.classes.popoverContainerFields, shallow);
|
|
@@ -1723,7 +1727,7 @@ const PopoverFilter = () => {
|
|
|
1723
1727
|
PaperProps: {
|
|
1724
1728
|
className: classesPopoverFilterPapper,
|
|
1725
1729
|
...process.env.NODE_ENV !== "production" ? {
|
|
1726
|
-
[TEST_PROP_ID]:
|
|
1730
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "popoverFilterPaper", dataTestId)
|
|
1727
1731
|
} : {}
|
|
1728
1732
|
},
|
|
1729
1733
|
children: /* @__PURE__ */ jsxs(RHFormProvider, {
|
|
@@ -1757,21 +1761,19 @@ const PopoverFilter = () => {
|
|
|
1757
1761
|
})
|
|
1758
1762
|
});
|
|
1759
1763
|
};
|
|
1760
|
-
const
|
|
1761
|
-
|
|
1762
|
-
dataTestId
|
|
1763
|
-
} = props;
|
|
1764
|
+
const TEST_PROPS_DATA = `data-testing`;
|
|
1765
|
+
const InnerForHooks = () => {
|
|
1764
1766
|
const isMobile = useDynamicFilter((state) => state.ownerState.isMobile, shallow);
|
|
1767
|
+
const dataTestId = useDynamicFilter((state) => state.dataTestId, shallow);
|
|
1765
1768
|
const classesRoot = useDynamicFilter((state) => state.classes.root, shallow);
|
|
1766
1769
|
const containerClearFilter = useDynamicFilter((state) => state.classes.containerClearFilter, shallow);
|
|
1767
1770
|
const classesContainerFistRow = useDynamicFilter((state) => state.classes.containerFistRow, shallow);
|
|
1768
1771
|
const fields = useDynamicFilter((state) => state.fields, shallow);
|
|
1769
|
-
console.log("fields test data", fields);
|
|
1770
1772
|
return /* @__PURE__ */ jsx(DynamicFilterRoot, {
|
|
1771
1773
|
className: classesRoot,
|
|
1772
1774
|
...process.env.NODE_ENV !== "production" ? {
|
|
1773
|
-
[
|
|
1774
|
-
"
|
|
1775
|
+
[TEST_PROPS_DATA]: JSON.stringify(fields),
|
|
1776
|
+
[TEST_PROP_ID]: getNameDataTestId(COMPONENT_PREFIX, "root", dataTestId)
|
|
1775
1777
|
} : {},
|
|
1776
1778
|
children: !isMobile ? /* @__PURE__ */ jsxs(Fragment, {
|
|
1777
1779
|
children: [/* @__PURE__ */ jsx(InputFilter, {}), /* @__PURE__ */ jsx(ApplyedFilters, {}), /* @__PURE__ */ jsx(PopoverFilter, {}), /* @__PURE__ */ jsxs("div", {
|
|
@@ -1796,9 +1798,7 @@ const DynamicFilter = (inProps) => {
|
|
|
1796
1798
|
}
|
|
1797
1799
|
return /* @__PURE__ */ jsx(DynamicFilterProvider, {
|
|
1798
1800
|
...inProps,
|
|
1799
|
-
children: /* @__PURE__ */ jsx(InnerForHooks, {
|
|
1800
|
-
dataTestId: inProps.dataTestId
|
|
1801
|
-
})
|
|
1801
|
+
children: /* @__PURE__ */ jsx(InnerForHooks, {})
|
|
1802
1802
|
});
|
|
1803
1803
|
};
|
|
1804
1804
|
export {
|