@m4l/components 0.1.76 → 0.1.77
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 +19 -0
- package/components/AccountPopover/{index.47cf6c43.js → index.3a79c395.js} +7 -6
- package/components/AppBar/{index.f04f5e45.js → index.71b38ee9.js} +7 -6
- package/components/CommonActions/components/ActionCancel/{index.453c2d24.js → index.b748a38e.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.c2a2fd55.js → index.27ad09e1.js} +18 -18
- package/components/CommonActions/components/ActionFormIntro/{index.25d33912.js → index.2556f054.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.c653a266.js → index.a7d92e66.js} +2 -2
- package/components/CommonActions/components/Actions/{index.e376a68e.js → index.3eba9d91.js} +16 -17
- package/components/DataGrid/{index.ffaf000e.js → index.545b492f.js} +42 -30
- package/components/DataGrid/types.d.ts +5 -1
- package/components/DraggableWindow/{index.b08af1dc.js → index.c702d3f2.js} +1 -1
- package/components/DynamicFilter/{index.d7c03a61.js → index.d7be0f37.js} +40 -33
- package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +2 -1
- package/components/DynamicFilter/subcomponents/InnerForHooks/types.d.ts +2 -0
- package/components/DynamicFilter/tests/contants.d.ts +1 -1
- package/components/DynamicFilter/types.d.ts +4 -0
- package/components/GridLayout/GridLayout.d.ts +6 -0
- package/components/GridLayout/Responsive/index.a12a8cec.js +335 -0
- package/components/GridLayout/WidthProvider/index.8ff65909.js +67 -0
- package/components/GridLayout/calculateUtils.d.ts +42 -0
- package/components/GridLayout/index.4ba3767a.js +1400 -0
- package/components/GridLayout/index.d.ts +6 -0
- package/components/GridLayout/subcomponents/GridItem/index.d.ts +25 -0
- package/components/GridLayout/subcomponents/GridItem/types.d.ts +76 -0
- package/components/GridLayout/subcomponents/Responsive/index.d.ts +3 -0
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +61 -0
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +71 -0
- package/components/GridLayout/subcomponents/WidthProvider/index.d.ts +16 -0
- package/components/GridLayout/types.d.ts +355 -0
- package/components/GridLayout/utils.d.ts +123 -0
- package/components/HelperText/{index.9864f773.js → index.ef31df1f.js} +7 -6
- package/components/Icon/{index.9dae8337.js → index.ecb63e65.js} +1 -1
- package/components/LanguagePopover/{index.938c6675.js → index.0023d069.js} +7 -6
- package/components/LinearProgressIndeterminate/{index.d34d398f.js → index.60dabc06.js} +1 -1
- package/components/ModalDialog/{index.d9c5d400.js → index.d880e685.js} +8 -56
- package/components/NavLink/{index.21c8fd90.js → index.cd92eceb.js} +7 -6
- package/components/ObjectLogs/{index.a2709fc2.js → index.f174c542.js} +19 -19
- package/components/PaperForm/{index.5e1bc99f.js → index.1bd86ee5.js} +1 -1
- package/components/Period/{index.526791a3.js → index.711db043.js} +21 -22
- package/components/Resizeable/{index.f6e48e56.js → index.9a9c79a4.js} +1 -1
- package/components/SideBar/{index.9e1a5b96.js → index.c5ce0bad.js} +5 -5
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +2 -0
- package/components/areas/components/AreasAdmin/{index.946eebb9.js → index.cc4cbf56.js} +120 -46
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/types.d.ts +0 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/index.d.ts +3 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/PanelWindowPopUp/types.d.ts +3 -0
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/{index.bf4191ea.js → index.9c2aaaeb.js} +258 -259
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/index.d.ts +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.d.ts +1 -7
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/index.d.ts +3 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/WindowPopUpsList/types.d.ts +2 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/types.d.ts +6 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +1 -1
- package/components/areas/components/{index.2bb534cb.js → index.0f7ac464.js} +11 -10
- package/components/areas/contexts/AreasContext/helper.d.ts +6 -16
- package/components/areas/contexts/AreasContext/{index.f0397b7c.js → index.c8147e8e.js} +244 -339
- package/components/areas/contexts/AreasContext/types.d.ts +23 -20
- package/components/areas/contexts/{index.1809650a.js → index.02336412.js} +1 -1
- package/components/areas/{dictionary.3fabae50.js → dictionary.afb7e3d9.js} +5 -2
- package/components/areas/dictionary.d.ts +4 -1
- package/components/areas/hooks/useAreas/{index.40917e99.js → index.3406a6cb.js} +1 -1
- package/components/areas/{icons.19cde4b4.js → icons.8266ccc8.js} +5 -1
- package/components/areas/icons.d.ts +4 -0
- package/components/areas/{index.9bd48013.js → index.6f2e5dab.js} +11 -10
- package/components/areas/types.d.ts +30 -22
- package/components/formatters/BooleanFormatter/{index.431dc923.js → index.5268b024.js} +1 -1
- package/components/formatters/{index.e1af75e6.js → index.137169d8.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.a063dc44.js → index.ac2b1fae.js} +8 -7
- package/components/hook-form/RHFAutocompleteAsync/{index.ddfd9cc9.js → index.8b4ccc8d.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.7e7f220b.js → index.acef119c.js} +1 -1
- package/components/hook-form/RHFDateTime/{index.d330709b.js → index.5b080342.js} +9 -8
- package/components/hook-form/RHFPeriod/{index.e2b1293b.js → index.5304e3bd.js} +2 -2
- package/components/hook-form/RHFTextField/{index.e5336d09.js → index.e751dca7.js} +5 -5
- package/components/hook-form/RHFUpload/{index.17e7f9eb.js → index.25db0511.js} +8 -7
- package/components/index.d.ts +1 -0
- package/components/modal/{WindowBase.7acb9f1d.js → WindowBase.850ea31a.js} +9 -8
- package/components/modal/{WindowConfirm.9b829837.js → WindowConfirm.cb37bc58.js} +18 -18
- package/components/modal/classes/index.d.ts +1 -0
- package/components/modal/classes/types.d.ts +1 -0
- package/components/modal/{index.1b25b61d.js → index.a0978193.js} +18 -16
- package/components/mui_extended/Accordion/{index.3faafd8b.js → index.12b1339a.js} +2 -2
- package/components/mui_extended/Badge/Badge.d.ts +3 -0
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -0
- package/components/mui_extended/Badge/classes/index.d.ts +6 -0
- package/components/mui_extended/Badge/classes/types.d.ts +6 -0
- package/components/mui_extended/Badge/index.8c2b8b66.js +36 -0
- package/components/mui_extended/Badge/index.d.ts +2 -0
- package/components/mui_extended/Badge/tests/constants.d.ts +1 -0
- package/components/mui_extended/Badge/tests/utils.d.ts +2 -0
- package/components/mui_extended/Badge/types.d.ts +4 -0
- package/components/mui_extended/Button/{index.fdb5dcbd.js → index.4288f9fc.js} +8 -3
- package/components/mui_extended/IconButton/{index.1a9d4fa5.js → index.fc5b7c2d.js} +1 -1
- package/components/mui_extended/MenuActions/{index.ba1da3b3.js → index.f5b1c022.js} +28 -9
- package/components/mui_extended/MenuActions/types.d.ts +8 -0
- package/components/mui_extended/Pager/{index.67bda2c5.js → index.435af0df.js} +1 -1
- package/components/mui_extended/{index.73e536de.js → index.83979b6a.js} +7 -6
- package/components/mui_extended/index.d.ts +1 -0
- package/contexts/ModalContext/{index.699f95fa.js → index.dee85a61.js} +1 -1
- package/hooks/useModal/{index.7b7d26ba.js → index.de522a10.js} +1 -1
- package/index.js +94 -83
- package/node_modules.d73a220d.js +363 -0
- package/package.json +4 -3
- package/{react-draggable.6d7949a3.js → react-draggable.7abb5d0a.js} +3 -2
- package/{react-resizable.b6f8e04a.js → react-resizable.ba08699a.js} +13 -12
- package/utils/{index.008b4c2a.js → index.c43a95f4.js} +0 -15
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowPopUp/index.d.ts +0 -4
- package/components/modal/ModalDialog/types.d.ts +0 -7
- /package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/{GridLayout → AreaGridLayout}/types.d.ts +0 -0
package/@types/export.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ import { PeriodClassesKey } from '../components/Period/classes/types';
|
|
|
52
52
|
import { ModalClassesKey } from '..index/components/modal/classes/types';
|
|
53
53
|
import { PaperFormClassesKey } from '../components/PaperForm/classes/types';
|
|
54
54
|
import { TooltipClassesKey } from '../components/mui_extended/Tooltip/classes/types';
|
|
55
|
+
import { BadgeProps } from '../components/mui_extended/Badge';
|
|
55
56
|
|
|
56
57
|
|
|
57
58
|
export {};
|
|
@@ -71,6 +72,7 @@ declare module '@mui/material/styles' {
|
|
|
71
72
|
M4LanguagePopover: undefined;
|
|
72
73
|
M4LImageButton: ImageButtonProps;
|
|
73
74
|
M4LImage: ImageProps;
|
|
75
|
+
M4LBadge: BadgeProps;
|
|
74
76
|
M4LPopover: PopoverProps;
|
|
75
77
|
M4LRHFCheckbox: undefined;
|
|
76
78
|
M4LErrorLabel: HelperTextProps;
|
|
@@ -102,6 +104,7 @@ declare module '@mui/material/styles' {
|
|
|
102
104
|
M4LanguagePopover: LanguagePopoverClassesKey;
|
|
103
105
|
M4LImageButton: ImageButtonClassesKey;
|
|
104
106
|
M4LImage: ImageClassesKey;
|
|
107
|
+
M4LBadge: BadgeProps;
|
|
105
108
|
M4LPopover: PopoverClassesKey;
|
|
106
109
|
M4LRHFCheckbox: RHFCheckboxClassesKey;
|
|
107
110
|
M4LErrorLabel: ErrorLabelClassesKey;
|
|
@@ -115,8 +118,11 @@ declare module '@mui/material/styles' {
|
|
|
115
118
|
M4LSideBarDrawer: SideBarClassesKey;
|
|
116
119
|
M4LRHFDateTime: RHFDateTimeClassesKey;
|
|
117
120
|
M4LAreasViewer: AreasViewerClassesKey;
|
|
121
|
+
M4LAreasViewerWindowPopUpList: AreasViewerClassesKey;
|
|
118
122
|
M4LAreasAdmin: AreasAdminClassesKey;
|
|
119
123
|
M4LAreasAdminEditPopover: AreasAdminClassesKey;
|
|
124
|
+
M4LAreasAdminMobilePopoverOptions: AreasAdminClassesKey;
|
|
125
|
+
M4LAreasAdminPopoverListWindows: AreasAdminClassesKey;
|
|
120
126
|
M4LAvatar: AvatarClassesKey;
|
|
121
127
|
M4LAccountPopover: AccountPopoverClassesKey;
|
|
122
128
|
M4LAccountPopoverPopover: AccountPopoverClassesKey;
|
|
@@ -205,6 +211,10 @@ declare module '@mui/material/styles' {
|
|
|
205
211
|
styleOverrides?: ComponentsOverrides<Theme>['M4LImage'];
|
|
206
212
|
defaultProps?: ComponentsProps['M4LImage'];
|
|
207
213
|
};
|
|
214
|
+
M4LBadge?: {
|
|
215
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LBadge'];
|
|
216
|
+
defaultProps?: ComponentsProps['M4LBadge'];
|
|
217
|
+
};
|
|
208
218
|
M4LPopover?: {
|
|
209
219
|
styleOverrides?: ComponentsOverrides<Theme>['M4LPopover'];
|
|
210
220
|
defaultProps?: ComponentsProps['M4LPopover'];
|
|
@@ -258,12 +268,21 @@ declare module '@mui/material/styles' {
|
|
|
258
268
|
M4LAreasViewerModal?: {
|
|
259
269
|
styleOverrides?: ComponentsOverrides<Theme>['M4LAreasViewerModal'];
|
|
260
270
|
};
|
|
271
|
+
M4LAreasViewerWindowPopUpList?: {
|
|
272
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAreasViewerWindowPopUpList'];
|
|
273
|
+
};
|
|
261
274
|
M4LAreasAdmin?: {
|
|
262
275
|
styleOverrides?: ComponentsOverrides<Theme>['M4LAreasAdmin'];
|
|
263
276
|
};
|
|
264
277
|
M4LAreasAdminEditPopover?: {
|
|
265
278
|
styleOverrides?: ComponentsOverrides<Theme>['M4LAreasAdminEditPopover'];
|
|
266
279
|
};
|
|
280
|
+
M4LAreasAdminMobilePopoverOptions?: {
|
|
281
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAreasAdminMobilePopoverOptions'];
|
|
282
|
+
};
|
|
283
|
+
M4LAreasAdminPopoverListWindows?: {
|
|
284
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LAreasAdminPopoverListWindows'];
|
|
285
|
+
};
|
|
267
286
|
M4LAvatar?: {
|
|
268
287
|
styleOverrides?: ComponentsOverrides<Theme>['M4LAvatar'];
|
|
269
288
|
defaultProps?: ComponentsProps['M4LAvatar'];
|
|
@@ -2,23 +2,24 @@ 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.ecb63e65.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.fc5b7c2d.js";
|
|
9
9
|
import "@m4l/graphics";
|
|
10
|
-
import "../mui_extended/Accordion/index.
|
|
10
|
+
import "../mui_extended/Accordion/index.12b1339a.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";
|
|
14
14
|
import "@mui/material/Button";
|
|
15
|
-
import "../mui_extended/Button/index.
|
|
15
|
+
import "../mui_extended/Button/index.4288f9fc.js";
|
|
16
16
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
17
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
17
18
|
import "../Image/index.c18ebf5a.js";
|
|
18
19
|
import "@mui/lab";
|
|
19
20
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
20
|
-
import "../mui_extended/MenuActions/index.
|
|
21
|
-
import "../mui_extended/Pager/index.
|
|
21
|
+
import "../mui_extended/MenuActions/index.f5b1c022.js";
|
|
22
|
+
import "../mui_extended/Pager/index.435af0df.js";
|
|
22
23
|
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
23
24
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
24
25
|
import { unstable_composeClasses } from "@mui/base";
|
|
@@ -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.fc5b7c2d.js";
|
|
6
|
+
import "../mui_extended/Accordion/index.12b1339a.js";
|
|
7
|
+
import "../Icon/index.ecb63e65.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "clsx";
|
|
10
10
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
@@ -12,12 +12,13 @@ import "../mui_extended/Typography/index.443590d6.js";
|
|
|
12
12
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
13
13
|
import "react-router-dom";
|
|
14
14
|
import "@mui/material/Button";
|
|
15
|
-
import "../mui_extended/Button/index.
|
|
15
|
+
import "../mui_extended/Button/index.4288f9fc.js";
|
|
16
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
16
17
|
import "../Image/index.c18ebf5a.js";
|
|
17
18
|
import "@mui/lab";
|
|
18
19
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
19
|
-
import "../mui_extended/MenuActions/index.
|
|
20
|
-
import "../mui_extended/Pager/index.
|
|
20
|
+
import "../mui_extended/MenuActions/index.f5b1c022.js";
|
|
21
|
+
import "../mui_extended/Pager/index.435af0df.js";
|
|
21
22
|
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
22
23
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
23
24
|
import { styled } from "@mui/material/styles";
|
package/components/CommonActions/components/ActionCancel/{index.453c2d24.js → index.b748a38e.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
3
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
2
|
+
import { B as Button } from "../../../mui_extended/Button/index.4288f9fc.js";
|
|
3
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.3eba9d91.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ActionCancel = (props) => {
|
|
6
6
|
const {
|
package/components/CommonActions/components/ActionFormCancel/{index.c2a2fd55.js → index.27ad09e1.js}
RENAMED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
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.
|
|
7
|
-
import "../../../../react-draggable.
|
|
8
|
-
import "../../../
|
|
9
|
-
import "../../../Resizeable/index.f6e48e56.js";
|
|
6
|
+
import { u as useModal } from "../../../../hooks/useModal/index.de522a10.js";
|
|
7
|
+
import "../../../../react-draggable.7abb5d0a.js";
|
|
8
|
+
import "../../../Resizeable/index.9a9c79a4.js";
|
|
10
9
|
import { jsx } from "react/jsx-runtime";
|
|
11
10
|
import "@m4l/graphics";
|
|
12
|
-
import "../../../Icon/index.
|
|
11
|
+
import "../../../Icon/index.ecb63e65.js";
|
|
13
12
|
import "clsx";
|
|
14
|
-
import "../../../modal/index.
|
|
15
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
16
|
-
import "../../../mui_extended/IconButton/index.
|
|
17
|
-
import "../../../mui_extended/Accordion/index.
|
|
13
|
+
import "../../../modal/index.a0978193.js";
|
|
14
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.cb37bc58.js";
|
|
15
|
+
import "../../../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
16
|
+
import "../../../mui_extended/Accordion/index.12b1339a.js";
|
|
18
17
|
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
19
18
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
20
19
|
import "react-router-dom";
|
|
20
|
+
import "../../../mui_extended/Badge/index.8c2b8b66.js";
|
|
21
21
|
import "../../../Image/index.c18ebf5a.js";
|
|
22
22
|
import "@mui/lab";
|
|
23
23
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
24
|
-
import "../../../mui_extended/MenuActions/index.
|
|
25
|
-
import "../../../mui_extended/Pager/index.
|
|
24
|
+
import "../../../mui_extended/MenuActions/index.f5b1c022.js";
|
|
25
|
+
import "../../../mui_extended/Pager/index.435af0df.js";
|
|
26
26
|
import "../../../mui_extended/Tab/index.9e2f6e34.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.c8147e8e.js";
|
|
30
|
+
import "../../../areas/components/AreasAdmin/index.cc4cbf56.js";
|
|
31
31
|
import "zustand/shallow";
|
|
32
32
|
import "../../../ScrollBar/index.bbe48f4d.js";
|
|
33
|
-
import "../../../areas/components/AreasViewer/index.
|
|
34
|
-
import "../../../LinearProgressIndeterminate/index.
|
|
33
|
+
import "../../../areas/components/AreasViewer/index.9c2aaaeb.js";
|
|
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.3eba9d91.js";
|
|
39
39
|
function ActionFormCancel() {
|
|
40
40
|
const {
|
|
41
41
|
getLabel
|
|
@@ -64,7 +64,7 @@ function ActionFormCancel() {
|
|
|
64
64
|
window: /* @__PURE__ */ jsx(WindowConfirm, {
|
|
65
65
|
variant: "warning",
|
|
66
66
|
title: getLabel("common_actions.confirm_quit_title"),
|
|
67
|
-
msg: getLabel("
|
|
67
|
+
msg: getLabel("common_actions.confirm_quit_msg"),
|
|
68
68
|
onClickIntro: onConfirmQuit
|
|
69
69
|
}),
|
|
70
70
|
variant: "warning"
|
package/components/CommonActions/components/ActionFormIntro/{index.25d33912.js → index.2556f054.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
2
2
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
|
-
import { L as LoadingButton } from "../../../mui_extended/Button/index.
|
|
5
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
4
|
+
import { L as LoadingButton } from "../../../mui_extended/Button/index.4288f9fc.js";
|
|
5
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.3eba9d91.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function ActionFormIntro(props) {
|
|
8
8
|
const {
|
package/components/CommonActions/components/ActionIntro/{index.c653a266.js → index.a7d92e66.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
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.3eba9d91.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
7
7
|
const ActionIntro = (props) => {
|
|
@@ -2,40 +2,40 @@ import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.j
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { generateUtilityClasses } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
5
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.c43a95f4.js";
|
|
6
6
|
import { styled } from "@mui/material/styles";
|
|
7
7
|
import "@m4l/core";
|
|
8
8
|
import "@mui/material/Button";
|
|
9
|
-
import "../../../mui_extended/Button/index.
|
|
9
|
+
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.
|
|
14
|
-
import "../../../../react-draggable.
|
|
15
|
-
import "../../../
|
|
16
|
-
import "../../../Resizeable/index.f6e48e56.js";
|
|
13
|
+
import "../../../../contexts/ModalContext/index.dee85a61.js";
|
|
14
|
+
import "../../../../react-draggable.7abb5d0a.js";
|
|
15
|
+
import "../../../Resizeable/index.9a9c79a4.js";
|
|
17
16
|
import "@m4l/graphics";
|
|
18
|
-
import "../../../Icon/index.
|
|
19
|
-
import "../../../modal/index.
|
|
17
|
+
import "../../../Icon/index.ecb63e65.js";
|
|
18
|
+
import "../../../modal/index.a0978193.js";
|
|
20
19
|
import "@mui/lab";
|
|
21
20
|
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
22
21
|
import "../../../Image/index.c18ebf5a.js";
|
|
23
|
-
import "../../../mui_extended/IconButton/index.
|
|
24
|
-
import "../../../mui_extended/Accordion/index.
|
|
22
|
+
import "../../../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
23
|
+
import "../../../mui_extended/Accordion/index.12b1339a.js";
|
|
25
24
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
26
25
|
import "react-router-dom";
|
|
26
|
+
import "../../../mui_extended/Badge/index.8c2b8b66.js";
|
|
27
27
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
28
|
-
import "../../../mui_extended/MenuActions/index.
|
|
29
|
-
import "../../../mui_extended/Pager/index.
|
|
28
|
+
import "../../../mui_extended/MenuActions/index.f5b1c022.js";
|
|
29
|
+
import "../../../mui_extended/Pager/index.435af0df.js";
|
|
30
30
|
import "../../../mui_extended/Tab/index.9e2f6e34.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.c8147e8e.js";
|
|
34
|
+
import "../../../areas/components/AreasAdmin/index.cc4cbf56.js";
|
|
35
35
|
import "zustand/shallow";
|
|
36
36
|
import "../../../ScrollBar/index.bbe48f4d.js";
|
|
37
|
-
import "../../../areas/components/AreasViewer/index.
|
|
38
|
-
import "../../../LinearProgressIndeterminate/index.
|
|
37
|
+
import "../../../areas/components/AreasViewer/index.9c2aaaeb.js";
|
|
38
|
+
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
39
39
|
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
40
40
|
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
41
41
|
const componentName = "M4LCommonActions";
|
|
@@ -64,7 +64,6 @@ const WrapperStandarActions = styled("div")(({
|
|
|
64
64
|
theme
|
|
65
65
|
}) => ({
|
|
66
66
|
paddingTop: theme.spacing(3),
|
|
67
|
-
margin: theme.spacing(0, 1.5),
|
|
68
67
|
display: "flex",
|
|
69
68
|
flexDirection: "row",
|
|
70
69
|
justifyContent: "flex-end",
|
|
@@ -6,45 +6,46 @@ 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.
|
|
15
|
-
import "../../react-draggable.
|
|
16
|
-
import
|
|
17
|
-
import "../Resizeable/index.f6e48e56.js";
|
|
9
|
+
import { M as MenuActions } from "../mui_extended/MenuActions/index.f5b1c022.js";
|
|
10
|
+
import { g as getPagerComponentsDictionary, P as Pager } from "../mui_extended/Pager/index.435af0df.js";
|
|
11
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.fc5b7c2d.js";
|
|
12
|
+
import { u as useModal } from "../../hooks/useModal/index.de522a10.js";
|
|
13
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.b748a38e.js";
|
|
14
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.a7d92e66.js";
|
|
15
|
+
import "../../react-draggable.7abb5d0a.js";
|
|
16
|
+
import "../Resizeable/index.9a9c79a4.js";
|
|
18
17
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
19
|
-
import "../Icon/index.
|
|
18
|
+
import "../Icon/index.ecb63e65.js";
|
|
20
19
|
import "clsx";
|
|
21
|
-
import "../modal/index.
|
|
22
|
-
import { A as Actions$1 } from "../CommonActions/components/Actions/index.
|
|
20
|
+
import "../modal/index.a0978193.js";
|
|
21
|
+
import { A as Actions$1 } from "../CommonActions/components/Actions/index.3eba9d91.js";
|
|
23
22
|
import "react-hook-form";
|
|
24
23
|
import "@mui/material/Button";
|
|
25
|
-
import "../mui_extended/Button/index.
|
|
24
|
+
import "../mui_extended/Button/index.4288f9fc.js";
|
|
26
25
|
import "zustand";
|
|
27
|
-
import "../areas/contexts/AreasContext/index.
|
|
28
|
-
import "../areas/components/AreasAdmin/index.
|
|
26
|
+
import "../areas/contexts/AreasContext/index.c8147e8e.js";
|
|
27
|
+
import "../areas/components/AreasAdmin/index.cc4cbf56.js";
|
|
29
28
|
import "zustand/shallow";
|
|
30
29
|
import "../ScrollBar/index.bbe48f4d.js";
|
|
31
|
-
import "../mui_extended/Accordion/index.
|
|
30
|
+
import "../mui_extended/Accordion/index.12b1339a.js";
|
|
32
31
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
33
32
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
34
33
|
import "react-router-dom";
|
|
34
|
+
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
38
|
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
39
39
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
40
|
-
import "../areas/components/AreasViewer/index.
|
|
41
|
-
import "../LinearProgressIndeterminate/index.
|
|
40
|
+
import "../areas/components/AreasViewer/index.9c2aaaeb.js";
|
|
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 {
|
|
44
|
+
import { W as WindowBase } from "../modal/WindowBase.850ea31a.js";
|
|
45
|
+
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.d880e685.js";
|
|
46
|
+
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.5268b024.js";
|
|
46
47
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
47
|
-
import { C as ConcatenatedFormatter } from "../formatters/index.
|
|
48
|
+
import { C as ConcatenatedFormatter } from "../formatters/index.137169d8.js";
|
|
48
49
|
const WrapperGrid = styled("div")(() => ({
|
|
49
50
|
display: "flex",
|
|
50
51
|
flexDirection: "column",
|
|
@@ -376,6 +377,8 @@ function DataGridProvider(props) {
|
|
|
376
377
|
setColumnsConfigOptions(newColumnsConfig);
|
|
377
378
|
}, [setColumnsConfigOptions, id]);
|
|
378
379
|
const onChangeColumnsOrder = useCallback((sourceKey, targetKey) => {
|
|
380
|
+
console.log("DataGrid sourceKey", sourceKey);
|
|
381
|
+
console.log("DataGrid targetKey", targetKey);
|
|
379
382
|
if (sourceKey === targetKey)
|
|
380
383
|
return;
|
|
381
384
|
const sourceColumnIndex = columnsConfig.findIndex((c) => c.key === sourceKey);
|
|
@@ -413,19 +416,19 @@ function DataGridProvider(props) {
|
|
|
413
416
|
value: {
|
|
414
417
|
columnsConfig,
|
|
415
418
|
columnsWidths,
|
|
416
|
-
onChangeColumnsConfig,
|
|
417
|
-
onChangeColumnsOrder,
|
|
418
|
-
onChangeColumnWidth,
|
|
419
419
|
rowsCount: rowsFilterCount,
|
|
420
|
-
setRowsCount: setRowFilterCountInternal,
|
|
421
|
-
rowActionsGetter,
|
|
422
420
|
currentRowHeightVariant: currentRowHeightVariant.rowHVariant,
|
|
423
421
|
currentRowHeight: currentRowHeightVariant.rowHeight,
|
|
424
422
|
currentRowHeaderHeight: currentRowHeightVariant.rowHeaderHeight,
|
|
425
|
-
rowHeights: finalRowHeights,
|
|
426
|
-
setRowHeightVariant: setCurrentRowHeightInternal,
|
|
427
423
|
rows,
|
|
424
|
+
rowHeights: finalRowHeights,
|
|
428
425
|
checkedRows,
|
|
426
|
+
onChangeColumnsConfig,
|
|
427
|
+
onChangeColumnsOrder,
|
|
428
|
+
onChangeColumnWidth,
|
|
429
|
+
setRowsCount: setRowFilterCountInternal,
|
|
430
|
+
rowActionsGetter,
|
|
431
|
+
setRowHeightVariant: setCurrentRowHeightInternal,
|
|
429
432
|
onCheckedRowsChange,
|
|
430
433
|
rowKeyGetter
|
|
431
434
|
},
|
|
@@ -1621,6 +1624,9 @@ function Actions(props) {
|
|
|
1621
1624
|
})]
|
|
1622
1625
|
});
|
|
1623
1626
|
}
|
|
1627
|
+
const DATAGRID_TEST_ID = "M4LDatagrid";
|
|
1628
|
+
const PREFIX_TEST_ATTRIBUTE = "data-testid";
|
|
1629
|
+
const TEST_PROP_COLUMNS = `${PREFIX_TEST_ATTRIBUTE}-${DATAGRID_TEST_ID}-columns`;
|
|
1624
1630
|
function DataGrid(props) {
|
|
1625
1631
|
const {
|
|
1626
1632
|
id,
|
|
@@ -1637,10 +1643,16 @@ function DataGrid(props) {
|
|
|
1637
1643
|
rowHeights,
|
|
1638
1644
|
initialRowHeightVariant,
|
|
1639
1645
|
checkedRows,
|
|
1640
|
-
onCheckedRowsChange
|
|
1646
|
+
onCheckedRowsChange,
|
|
1647
|
+
dataTestId
|
|
1641
1648
|
} = props;
|
|
1649
|
+
console.log("test columns", columns);
|
|
1642
1650
|
return /* @__PURE__ */ jsx(WrapperGrid, {
|
|
1643
1651
|
id: `WrapperGrid_${props.id}`,
|
|
1652
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
1653
|
+
[TEST_PROP_COLUMNS]: JSON.stringify(columns),
|
|
1654
|
+
[PREFIX_TEST_ATTRIBUTE]: `M4LDatagrid-${dataTestId}`
|
|
1655
|
+
} : {},
|
|
1644
1656
|
children: /* @__PURE__ */ jsx(DataGridProvider, {
|
|
1645
1657
|
id: props.id,
|
|
1646
1658
|
columns: props.columns,
|
|
@@ -1648,8 +1660,8 @@ function DataGrid(props) {
|
|
|
1648
1660
|
rowHeaderHeights,
|
|
1649
1661
|
initialRowHeightVariant,
|
|
1650
1662
|
rowsCount: rows.length,
|
|
1651
|
-
rowActionsGetter,
|
|
1652
1663
|
checkedRows,
|
|
1664
|
+
rowActionsGetter,
|
|
1653
1665
|
onCheckedRowsChange,
|
|
1654
1666
|
rowKeyGetter,
|
|
1655
1667
|
rows,
|
|
@@ -40,7 +40,7 @@ export declare interface PagerState {
|
|
|
40
40
|
export declare const initialPagerState: PagerState;
|
|
41
41
|
export declare type RowHeightVariants = 'standard' | 'compact' | 'confortable';
|
|
42
42
|
export declare type RowHeights = number | number[];
|
|
43
|
-
export
|
|
43
|
+
export interface GridProps<TRow, TSummaryRow> {
|
|
44
44
|
id: RowKey;
|
|
45
45
|
withActions?: boolean;
|
|
46
46
|
columns: readonly Column<TRow, TSummaryRow>[];
|
|
@@ -56,6 +56,10 @@ export declare 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 = "M4LDatagrid";
|
|
60
|
+
export declare const PREFIX_TEST_ATTRIBUTE = "data-testid";
|
|
61
|
+
export declare const TEST_PROP_COLUMNS: string;
|
|
59
62
|
export declare interface DataGridProps<TRow, TSummaryRow> extends GridProps<TRow, TSummaryRow> {
|
|
60
63
|
actionsProps: ActionsProps;
|
|
64
|
+
dataTestId?: string;
|
|
61
65
|
}
|
|
@@ -4,59 +4,59 @@ 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.fc5b7c2d.js";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
9
9
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
10
10
|
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
11
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.
|
|
11
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.f5b1c022.js";
|
|
12
12
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
13
|
-
import { I as Icon } from "../Icon/index.
|
|
13
|
+
import { I as Icon } from "../Icon/index.ecb63e65.js";
|
|
14
14
|
import { styled, useTheme } from "@mui/material/styles";
|
|
15
15
|
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.
|
|
16
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.3eba9d91.js";
|
|
17
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.b748a38e.js";
|
|
18
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.a7d92e66.js";
|
|
19
19
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
20
20
|
import "@mui/material/Button";
|
|
21
|
-
import "../mui_extended/Button/index.
|
|
22
|
-
import "../../contexts/ModalContext/index.
|
|
23
|
-
import "../../react-draggable.
|
|
24
|
-
import "../
|
|
25
|
-
import "../
|
|
26
|
-
import "../modal/index.1b25b61d.js";
|
|
21
|
+
import "../mui_extended/Button/index.4288f9fc.js";
|
|
22
|
+
import "../../contexts/ModalContext/index.dee85a61.js";
|
|
23
|
+
import "../../react-draggable.7abb5d0a.js";
|
|
24
|
+
import "../Resizeable/index.9a9c79a4.js";
|
|
25
|
+
import "../modal/index.a0978193.js";
|
|
27
26
|
import "../Image/index.c18ebf5a.js";
|
|
28
|
-
import "../mui_extended/Accordion/index.
|
|
27
|
+
import "../mui_extended/Accordion/index.12b1339a.js";
|
|
29
28
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
30
29
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
31
30
|
import "react-router-dom";
|
|
31
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
32
32
|
import "@mui/lab";
|
|
33
|
-
import "../mui_extended/Pager/index.
|
|
33
|
+
import "../mui_extended/Pager/index.435af0df.js";
|
|
34
34
|
import "../mui_extended/Tab/index.9e2f6e34.js";
|
|
35
35
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
36
36
|
import { useStore, createStore } from "zustand";
|
|
37
|
-
import "../areas/contexts/AreasContext/index.
|
|
38
|
-
import "../areas/components/AreasAdmin/index.
|
|
39
|
-
import "../areas/components/AreasViewer/index.
|
|
40
|
-
import "../LinearProgressIndeterminate/index.
|
|
37
|
+
import "../areas/contexts/AreasContext/index.c8147e8e.js";
|
|
38
|
+
import "../areas/components/AreasAdmin/index.cc4cbf56.js";
|
|
39
|
+
import "../areas/components/AreasViewer/index.9c2aaaeb.js";
|
|
40
|
+
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
41
41
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
42
42
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
43
43
|
import { unstable_composeClasses } from "@mui/base";
|
|
44
|
-
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.
|
|
44
|
+
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.c43a95f4.js";
|
|
45
45
|
import { devtools } from "zustand/middleware";
|
|
46
46
|
import { immer } from "zustand/middleware/immer";
|
|
47
|
-
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
47
|
+
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.ac2b1fae.js";
|
|
48
48
|
import "lodash/debounce";
|
|
49
|
-
import "../hook-form/RHFAutocompleteAsync/index.
|
|
50
|
-
import "../hook-form/RHFCheckbox/index.
|
|
51
|
-
import "../HelperText/index.
|
|
49
|
+
import "../hook-form/RHFAutocompleteAsync/index.8b4ccc8d.js";
|
|
50
|
+
import "../hook-form/RHFCheckbox/index.acef119c.js";
|
|
51
|
+
import "../HelperText/index.ef31df1f.js";
|
|
52
52
|
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.
|
|
53
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.5b080342.js";
|
|
54
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.e751dca7.js";
|
|
55
|
+
import "../hook-form/RHFPeriod/index.5304e3bd.js";
|
|
56
|
+
import "../Period/index.711db043.js";
|
|
57
57
|
import "lodash/isString";
|
|
58
58
|
import "react-dropzone";
|
|
59
|
-
import "../hook-form/RHFUpload/index.
|
|
59
|
+
import "../hook-form/RHFUpload/index.25db0511.js";
|
|
60
60
|
import * as Yup from "yup";
|
|
61
61
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
62
62
|
const ASSETS_URL = "frontend/components/dynamic_filter/assets/icons";
|
|
@@ -149,7 +149,7 @@ function useDynamicFilter(selector, equalityFn) {
|
|
|
149
149
|
throw new Error("useDynamicFilterStore context must be use inside DynamicFilterContext");
|
|
150
150
|
return useStore(store, selector, equalityFn);
|
|
151
151
|
}
|
|
152
|
-
const DYNAMICFILTER_TEST_ID = "
|
|
152
|
+
const DYNAMICFILTER_TEST_ID = "M4LDynamicFilter";
|
|
153
153
|
const PREFIX_TEST_ATTRIBUTE = "data-test";
|
|
154
154
|
const TEST_PROP_FIELDS = `${PREFIX_TEST_ATTRIBUTE}-${DYNAMICFILTER_TEST_ID}-fields`;
|
|
155
155
|
function getTestIdByClass(key, detailId) {
|
|
@@ -877,6 +877,7 @@ const updateAutomatic = (state) => {
|
|
|
877
877
|
updateOwnerStateClasses(state);
|
|
878
878
|
};
|
|
879
879
|
const createAreaStore = (initProps) => {
|
|
880
|
+
console.log("valores iniciales de createDinamicFilter store", initProps);
|
|
880
881
|
const startProps = {
|
|
881
882
|
countOnChangeFiltersApplyed: 0,
|
|
882
883
|
applyedFilters: [],
|
|
@@ -1756,17 +1757,21 @@ const PopoverFilter = () => {
|
|
|
1756
1757
|
})
|
|
1757
1758
|
});
|
|
1758
1759
|
};
|
|
1759
|
-
const InnerForHooks = () => {
|
|
1760
|
+
const InnerForHooks = (props) => {
|
|
1761
|
+
const {
|
|
1762
|
+
dataTestId
|
|
1763
|
+
} = props;
|
|
1760
1764
|
const isMobile = useDynamicFilter((state) => state.ownerState.isMobile, shallow);
|
|
1761
1765
|
const classesRoot = useDynamicFilter((state) => state.classes.root, shallow);
|
|
1762
1766
|
const containerClearFilter = useDynamicFilter((state) => state.classes.containerClearFilter, shallow);
|
|
1763
1767
|
const classesContainerFistRow = useDynamicFilter((state) => state.classes.containerFistRow, shallow);
|
|
1764
1768
|
const fields = useDynamicFilter((state) => state.fields, shallow);
|
|
1769
|
+
console.log("fields test data", fields);
|
|
1765
1770
|
return /* @__PURE__ */ jsx(DynamicFilterRoot, {
|
|
1766
1771
|
className: classesRoot,
|
|
1767
1772
|
...process.env.NODE_ENV !== "production" ? {
|
|
1768
|
-
[TEST_PROP_FIELDS]: fields,
|
|
1769
|
-
"data-testid": DYNAMICFILTER_TEST_ID
|
|
1773
|
+
[TEST_PROP_FIELDS]: JSON.stringify(fields),
|
|
1774
|
+
"data-testid": `${DYNAMICFILTER_TEST_ID}-${dataTestId}`
|
|
1770
1775
|
} : {},
|
|
1771
1776
|
children: !isMobile ? /* @__PURE__ */ jsxs(Fragment, {
|
|
1772
1777
|
children: [/* @__PURE__ */ jsx(InputFilter, {}), /* @__PURE__ */ jsx(ApplyedFilters, {}), /* @__PURE__ */ jsx(PopoverFilter, {}), /* @__PURE__ */ jsxs("div", {
|
|
@@ -1791,7 +1796,9 @@ const DynamicFilter = (inProps) => {
|
|
|
1791
1796
|
}
|
|
1792
1797
|
return /* @__PURE__ */ jsx(DynamicFilterProvider, {
|
|
1793
1798
|
...inProps,
|
|
1794
|
-
children: /* @__PURE__ */ jsx(InnerForHooks, {
|
|
1799
|
+
children: /* @__PURE__ */ jsx(InnerForHooks, {
|
|
1800
|
+
dataTestId: inProps.dataTestId
|
|
1801
|
+
})
|
|
1795
1802
|
});
|
|
1796
1803
|
};
|
|
1797
1804
|
export {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { InnerForHooksProps } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* @description InnerForHooks es una estrategia de mover el componente a nivel interno para poder acceder a los hooks que acceden al contexto DynamicFilterProvider
|
|
4
5
|
* @returns Componente DynamicFilter
|
|
5
6
|
*/
|
|
6
|
-
export declare const InnerForHooks: () => import("react").JSX.Element;
|
|
7
|
+
export declare const InnerForHooks: (props: InnerForHooksProps) => import("react").JSX.Element;
|