@m4l/components 0.1.89 → 0.1.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AccountPopover/{index.bb2c369d.js → index.eebea1c5.js} +3 -3
- package/components/AppBar/{index.58233583.js → index.90cceb7d.js} +3 -3
- package/components/CommonActions/components/ActionCancel/{index.ffc5618a.js → index.54588e5b.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.baa35ca3.js → index.7907e6f4.js} +10 -10
- package/components/CommonActions/components/ActionFormIntro/{index.906d46a0.js → index.f7cd515b.js} +1 -1
- package/components/CommonActions/components/ActionIntro/{index.81d2648b.js → index.f20cffae.js} +1 -1
- package/components/CommonActions/components/Actions/{index.366cb775.js → index.7a196c44.js} +8 -8
- package/components/DataGrid/{index.8c887df9.js → index.95cea2ca.js} +3 -3
- package/components/DataGrid/subcomponents/Actions/{index.895fc73f.js → index.5b0b1fbf.js} +13 -13
- package/components/DynamicFilter/{index.d2e7bdcc.js → index.e9192ebd.js} +21 -21
- package/components/GridLayout/{index.8ae34c50.js → index.5e43414d.js} +15 -12
- package/components/GridLayout/subcomponents/Griditem/{index.c7a33781.js → index.d6f326d2.js} +2 -1
- package/components/GridLayout/subcomponents/Responsive/helper.d.ts +1 -0
- package/components/GridLayout/subcomponents/Responsive/{index.96cdb1b4.js → index.d41e31ca.js} +32 -11
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.d.ts +2 -2
- package/components/GridLayout/subcomponents/Responsive/types.d.ts +22 -1
- package/components/GridLayout/types.d.ts +11 -0
- package/components/HelperText/{index.69791151.js → index.191348cc.js} +3 -3
- package/components/LanguagePopover/{index.349d359c.js → index.a74f2065.js} +3 -3
- package/components/ModalDialog/{index.302a87c9.js → index.99745527.js} +3 -3
- package/components/NavLink/{index.8fe407ef.js → index.f12bba32.js} +3 -3
- package/components/ObjectLogs/{index.98d3400e.js → index.9bbac2a0.js} +12 -12
- package/components/Period/{index.972dbe64.js → index.ebd5e3b7.js} +9 -9
- package/components/PropertyValue/{index.d3d71d50.js → index.76fa6a12.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.cb3d7bd6.js → index.cd054608.js} +21 -21
- package/components/areas/components/AreasViewer/{index.1eef603d.js → index.62abf0bb.js} +32 -31
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index.d.ts +2 -2
- package/components/areas/components/{index.44ec162f.js → index.ea2f9914.js} +6 -6
- package/components/areas/contexts/AreasContext/helper.d.ts +14 -1
- package/components/areas/contexts/AreasContext/{index.7a2d5394.js → index.d528f6e7.js} +12 -10
- package/components/areas/contexts/{index.7bae4208.js → index.6e9bbc64.js} +1 -1
- package/components/areas/hooks/useAreas/{index.1f112e0b.js → index.d417e4b2.js} +1 -1
- package/components/areas/{index.aaaa1f62.js → index.8d6d8969.js} +6 -6
- package/components/hook-form/RHFAutocomplete/{index.5c23bd25.js → index.29a4c62c.js} +4 -4
- package/components/hook-form/RHFAutocompleteAsync/{index.85b11f3a.js → index.647c3f9c.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.a136882e.js → index.0b89ea5c.js} +4 -4
- package/components/hook-form/RHFDateTime/{index.1ca795b0.js → index.1adc88ad.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.90777c53.js → index.a4476d23.js} +2 -2
- package/components/hook-form/RHFTextField/{index.ccea64e7.js → index.a1a240b1.js} +2 -2
- package/components/hook-form/RHFUpload/{index.85e59119.js → index.a4582341.js} +4 -4
- package/components/modal/{WindowBase.39a70f35.js → WindowBase.a4752aa1.js} +9 -9
- package/components/modal/{WindowConfirm.f53c02f6.js → WindowConfirm.7a9c12c0.js} +12 -12
- package/components/modal/{index.dbdb6ac0.js → index.b434146b.js} +8 -8
- package/components/mui_extended/Accordion/{index.0e0090ca.js → index.cdedddba.js} +1 -1
- package/components/mui_extended/MenuActions/{index.4c2e48d4.js → index.7669b8af.js} +2 -2
- package/components/mui_extended/Tab/{index.3db2e0c7.js → index.5f09e16a.js} +1 -1
- package/components/mui_extended/{index.9e8aeca8.js → index.fe189e7d.js} +3 -3
- package/contexts/ModalContext/{index.1fc9f5d9.js → index.347f6738.js} +1 -1
- package/hooks/useFormAddEdit/{index.4906dbb4.js → index.e8e7f758.js} +9 -10
- package/hooks/useModal/{index.6457198c.js → index.fa6dfaa1.js} +1 -1
- package/index.js +59 -59
- package/package.json +1 -1
- package/{vendor.92191f81.js → vendor.e14dec76.js} +39 -39
|
@@ -7,7 +7,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
7
7
|
import "../mui_extended/IconButton/index.76624519.js";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import "@m4l/graphics";
|
|
10
|
-
import "../mui_extended/Accordion/index.
|
|
10
|
+
import "../mui_extended/Accordion/index.cdedddba.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";
|
|
@@ -18,10 +18,10 @@ import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad
|
|
|
18
18
|
import "../mui_extended/Badge/index.b09524fe.js";
|
|
19
19
|
import "../Image/index.c18ebf5a.js";
|
|
20
20
|
import "@mui/lab";
|
|
21
|
-
import "../mui_extended/MenuActions/index.
|
|
21
|
+
import "../mui_extended/MenuActions/index.7669b8af.js";
|
|
22
22
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
23
|
import "../mui_extended/Stack/index.0e53197c.js";
|
|
24
|
-
import "../mui_extended/Tab/index.
|
|
24
|
+
import "../mui_extended/Tab/index.5f09e16a.js";
|
|
25
25
|
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
26
26
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
27
27
|
import { unstable_composeClasses } from "@mui/base";
|
|
@@ -3,7 +3,7 @@ import { useEnvironment, useModuleDictionary } 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
5
|
import { I as IconButton } from "../mui_extended/IconButton/index.76624519.js";
|
|
6
|
-
import "../mui_extended/Accordion/index.
|
|
6
|
+
import "../mui_extended/Accordion/index.cdedddba.js";
|
|
7
7
|
import "../Icon/index.a70c4729.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "clsx";
|
|
@@ -17,10 +17,10 @@ import "../mui_extended/CheckBox.38abccd8.js";
|
|
|
17
17
|
import "../mui_extended/Badge/index.b09524fe.js";
|
|
18
18
|
import "../Image/index.c18ebf5a.js";
|
|
19
19
|
import "@mui/lab";
|
|
20
|
-
import "../mui_extended/MenuActions/index.
|
|
20
|
+
import "../mui_extended/MenuActions/index.7669b8af.js";
|
|
21
21
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
22
22
|
import "../mui_extended/Stack/index.0e53197c.js";
|
|
23
|
-
import "../mui_extended/Tab/index.
|
|
23
|
+
import "../mui_extended/Tab/index.5f09e16a.js";
|
|
24
24
|
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
25
25
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
26
26
|
import { styled } from "@mui/material/styles";
|
package/components/CommonActions/components/ActionCancel/{index.ffc5618a.js → index.54588e5b.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
2
|
import { B as Button } from "../../../mui_extended/Button/index.f79eb74e.js";
|
|
3
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
3
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.7a196c44.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
const ActionCancel = (props) => {
|
|
6
6
|
const {
|
package/components/CommonActions/components/ActionFormCancel/{index.baa35ca3.js → index.7907e6f4.js}
RENAMED
|
@@ -3,17 +3,17 @@ import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
|
3
3
|
import { Skeleton } from "@mui/material";
|
|
4
4
|
import { B as Button } from "../../../mui_extended/Button/index.f79eb74e.js";
|
|
5
5
|
import { useCallback, useEffect } from "react";
|
|
6
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
6
|
+
import { u as useModal } from "../../../../hooks/useModal/index.fa6dfaa1.js";
|
|
7
7
|
import "../../../../react-draggable.7abb5d0a.js";
|
|
8
8
|
import "../../../Resizeable/index.676c96fe.js";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import "@m4l/graphics";
|
|
11
|
-
import "../../../modal/index.
|
|
12
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
11
|
+
import "../../../modal/index.b434146b.js";
|
|
12
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.7a9c12c0.js";
|
|
13
13
|
import "../../../Icon/index.a70c4729.js";
|
|
14
14
|
import "clsx";
|
|
15
15
|
import "../../../mui_extended/IconButton/index.76624519.js";
|
|
16
|
-
import "../../../mui_extended/Accordion/index.
|
|
16
|
+
import "../../../mui_extended/Accordion/index.cdedddba.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";
|
|
@@ -21,23 +21,23 @@ import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
|
21
21
|
import "../../../mui_extended/Badge/index.b09524fe.js";
|
|
22
22
|
import "../../../Image/index.c18ebf5a.js";
|
|
23
23
|
import "@mui/lab";
|
|
24
|
-
import "../../../mui_extended/MenuActions/index.
|
|
24
|
+
import "../../../mui_extended/MenuActions/index.7669b8af.js";
|
|
25
25
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
26
26
|
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
27
|
-
import "../../../mui_extended/Tab/index.
|
|
27
|
+
import "../../../mui_extended/Tab/index.5f09e16a.js";
|
|
28
28
|
import "../../../mui_extended/Pager/index.ac2a21f0.js";
|
|
29
29
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
30
30
|
import "zustand";
|
|
31
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
32
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
31
|
+
import "../../../areas/contexts/AreasContext/index.d528f6e7.js";
|
|
32
|
+
import "../../../areas/components/AreasAdmin/index.cd054608.js";
|
|
33
33
|
import "zustand/shallow";
|
|
34
34
|
import "../../../ScrollBar/index.65bb2930.js";
|
|
35
|
-
import "../../../areas/components/AreasViewer/index.
|
|
35
|
+
import "../../../areas/components/AreasViewer/index.62abf0bb.js";
|
|
36
36
|
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
37
37
|
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
38
38
|
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
39
39
|
import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.b7afaf88.js";
|
|
40
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
40
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.7a196c44.js";
|
|
41
41
|
function ActionFormCancel() {
|
|
42
42
|
const {
|
|
43
43
|
getLabel
|
package/components/CommonActions/components/ActionFormIntro/{index.906d46a0.js → index.f7cd515b.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.f79eb74e.js";
|
|
5
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
5
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.7a196c44.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
function ActionFormIntro(props) {
|
|
8
8
|
const {
|
package/components/CommonActions/components/ActionIntro/{index.81d2648b.js → index.f20cffae.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
2
|
import { B as Button } from "../../../mui_extended/Button/index.f79eb74e.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.7a196c44.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
7
7
|
const ActionIntro = (props) => {
|
|
@@ -10,33 +10,33 @@ import "../../../mui_extended/Button/index.f79eb74e.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.347f6738.js";
|
|
14
14
|
import "../../../../react-draggable.7abb5d0a.js";
|
|
15
15
|
import "../../../Resizeable/index.676c96fe.js";
|
|
16
16
|
import "@m4l/graphics";
|
|
17
|
-
import "../../../modal/index.
|
|
17
|
+
import "../../../modal/index.b434146b.js";
|
|
18
18
|
import "@mui/lab";
|
|
19
19
|
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
20
20
|
import "../../../Image/index.c18ebf5a.js";
|
|
21
21
|
import "../../../Icon/index.a70c4729.js";
|
|
22
22
|
import "../../../mui_extended/IconButton/index.76624519.js";
|
|
23
|
-
import "../../../mui_extended/Accordion/index.
|
|
23
|
+
import "../../../mui_extended/Accordion/index.cdedddba.js";
|
|
24
24
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
25
25
|
import "react-router-dom";
|
|
26
26
|
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
27
27
|
import "../../../mui_extended/Badge/index.b09524fe.js";
|
|
28
|
-
import "../../../mui_extended/MenuActions/index.
|
|
28
|
+
import "../../../mui_extended/MenuActions/index.7669b8af.js";
|
|
29
29
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
30
30
|
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
31
|
-
import "../../../mui_extended/Tab/index.
|
|
31
|
+
import "../../../mui_extended/Tab/index.5f09e16a.js";
|
|
32
32
|
import "../../../mui_extended/Pager/index.ac2a21f0.js";
|
|
33
33
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
34
34
|
import "zustand";
|
|
35
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
36
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
35
|
+
import "../../../areas/contexts/AreasContext/index.d528f6e7.js";
|
|
36
|
+
import "../../../areas/components/AreasAdmin/index.cd054608.js";
|
|
37
37
|
import "zustand/shallow";
|
|
38
38
|
import "../../../ScrollBar/index.65bb2930.js";
|
|
39
|
-
import "../../../areas/components/AreasViewer/index.
|
|
39
|
+
import "../../../areas/components/AreasViewer/index.62abf0bb.js";
|
|
40
40
|
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
41
41
|
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
42
42
|
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.
|
|
1
|
+
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.99745527.js";
|
|
2
2
|
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.ac2a21f0.js";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
4
|
import { forwardRef, createContext, useState, useMemo, useEffect, useCallback, useContext, useRef, useLayoutEffect } from "react";
|
|
@@ -8,10 +8,10 @@ import { HTML5Backend } from "react-dnd-html5-backend";
|
|
|
8
8
|
import { SvgIcon, Checkbox, InputBase, Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
11
|
-
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.
|
|
11
|
+
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.5b0b1fbf.js";
|
|
12
12
|
import { unstable_composeClasses } from "@mui/base";
|
|
13
13
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
14
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
14
|
+
import { g as getNameDataTestId } from "../../vendor.e14dec76.js";
|
|
15
15
|
import { B as BooleanFormatter } from "../formatters/BooleanFormatter/index.a013b080.js";
|
|
16
16
|
import "@m4l/graphics";
|
|
17
17
|
import "../Icon/index.a70c4729.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
2
|
-
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.
|
|
1
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.7669b8af.js";
|
|
2
|
+
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.95cea2ca.js";
|
|
3
3
|
import { useTheme, Checkbox, Skeleton } from "@mui/material";
|
|
4
4
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { P as Pager } from "../../../mui_extended/Pager/index.ac2a21f0.js";
|
|
@@ -8,24 +8,24 @@ import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/cor
|
|
|
8
8
|
import { forwardRef, useRef, useState, useImperativeHandle, useMemo, useEffect, useCallback } from "react";
|
|
9
9
|
import { D as DataGrid$1 } from "../../../../react-data-grid.d46d625e.js";
|
|
10
10
|
import { styled } from "@mui/material/styles";
|
|
11
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
12
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
13
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
11
|
+
import { u as useModal } from "../../../../hooks/useModal/index.fa6dfaa1.js";
|
|
12
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.54588e5b.js";
|
|
13
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.f20cffae.js";
|
|
14
14
|
import "../../../../react-draggable.7abb5d0a.js";
|
|
15
15
|
import "../../../Resizeable/index.676c96fe.js";
|
|
16
16
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
17
|
-
import "../../../modal/index.
|
|
18
|
-
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.
|
|
17
|
+
import "../../../modal/index.b434146b.js";
|
|
18
|
+
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.7a196c44.js";
|
|
19
19
|
import "react-hook-form";
|
|
20
20
|
import "@mui/material/Button";
|
|
21
21
|
import "../../../mui_extended/Button/index.f79eb74e.js";
|
|
22
22
|
import "clsx";
|
|
23
23
|
import "zustand";
|
|
24
|
-
import "../../../areas/contexts/AreasContext/index.
|
|
25
|
-
import "../../../areas/components/AreasAdmin/index.
|
|
24
|
+
import "../../../areas/contexts/AreasContext/index.d528f6e7.js";
|
|
25
|
+
import "../../../areas/components/AreasAdmin/index.cd054608.js";
|
|
26
26
|
import "zustand/shallow";
|
|
27
27
|
import "../../../ScrollBar/index.65bb2930.js";
|
|
28
|
-
import "../../../mui_extended/Accordion/index.
|
|
28
|
+
import "../../../mui_extended/Accordion/index.cdedddba.js";
|
|
29
29
|
import "../../../Icon/index.a70c4729.js";
|
|
30
30
|
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
31
31
|
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
@@ -36,13 +36,13 @@ import "../../../Image/index.c18ebf5a.js";
|
|
|
36
36
|
import "@mui/lab";
|
|
37
37
|
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
38
38
|
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
39
|
-
import "../../../mui_extended/Tab/index.
|
|
39
|
+
import "../../../mui_extended/Tab/index.5f09e16a.js";
|
|
40
40
|
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
41
|
-
import "../../../areas/components/AreasViewer/index.
|
|
41
|
+
import "../../../areas/components/AreasViewer/index.62abf0bb.js";
|
|
42
42
|
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
43
43
|
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
44
44
|
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
45
|
-
import { W as WindowBase } from "../../../modal/WindowBase.
|
|
45
|
+
import { W as WindowBase } from "../../../modal/WindowBase.a4752aa1.js";
|
|
46
46
|
const ACTIONS_COLUMN_KEY = "actions-row";
|
|
47
47
|
function ActionsFormatter(props) {
|
|
48
48
|
const {
|
|
@@ -6,26 +6,26 @@ import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent
|
|
|
6
6
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
7
7
|
import { I as IconButton } from "../mui_extended/IconButton/index.76624519.js";
|
|
8
8
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { g as getNameDataTestId } from "../../vendor.
|
|
9
|
+
import { g as getNameDataTestId } from "../../vendor.e14dec76.js";
|
|
10
10
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
11
11
|
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
12
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.
|
|
12
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.7669b8af.js";
|
|
13
13
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
14
14
|
import { I as Icon } from "../Icon/index.a70c4729.js";
|
|
15
15
|
import { styled, useTheme } from "@mui/material/styles";
|
|
16
16
|
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.1755b324.js";
|
|
17
|
-
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.
|
|
18
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.
|
|
19
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
17
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.7a196c44.js";
|
|
18
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.54588e5b.js";
|
|
19
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.f20cffae.js";
|
|
20
20
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
21
21
|
import "@mui/material/Button";
|
|
22
22
|
import "../mui_extended/Button/index.f79eb74e.js";
|
|
23
|
-
import "../../contexts/ModalContext/index.
|
|
23
|
+
import "../../contexts/ModalContext/index.347f6738.js";
|
|
24
24
|
import "../../react-draggable.7abb5d0a.js";
|
|
25
25
|
import "../Resizeable/index.676c96fe.js";
|
|
26
|
-
import "../modal/index.
|
|
26
|
+
import "../modal/index.b434146b.js";
|
|
27
27
|
import "../Image/index.c18ebf5a.js";
|
|
28
|
-
import "../mui_extended/Accordion/index.
|
|
28
|
+
import "../mui_extended/Accordion/index.cdedddba.js";
|
|
29
29
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
30
30
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
31
31
|
import "react-router-dom";
|
|
@@ -33,13 +33,13 @@ import "../mui_extended/CheckBox.38abccd8.js";
|
|
|
33
33
|
import "../mui_extended/Badge/index.b09524fe.js";
|
|
34
34
|
import "@mui/lab";
|
|
35
35
|
import "../mui_extended/Stack/index.0e53197c.js";
|
|
36
|
-
import "../mui_extended/Tab/index.
|
|
36
|
+
import "../mui_extended/Tab/index.5f09e16a.js";
|
|
37
37
|
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
38
38
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
39
39
|
import { useStore, createStore } from "zustand";
|
|
40
|
-
import "../areas/contexts/AreasContext/index.
|
|
41
|
-
import "../areas/components/AreasAdmin/index.
|
|
42
|
-
import "../areas/components/AreasViewer/index.
|
|
40
|
+
import "../areas/contexts/AreasContext/index.d528f6e7.js";
|
|
41
|
+
import "../areas/components/AreasAdmin/index.cd054608.js";
|
|
42
|
+
import "../areas/components/AreasViewer/index.62abf0bb.js";
|
|
43
43
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
44
44
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
45
45
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -47,19 +47,19 @@ import { unstable_composeClasses } from "@mui/base";
|
|
|
47
47
|
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.c43a95f4.js";
|
|
48
48
|
import { devtools } from "zustand/middleware";
|
|
49
49
|
import { immer } from "zustand/middleware/immer";
|
|
50
|
-
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
50
|
+
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.29a4c62c.js";
|
|
51
51
|
import "lodash/debounce";
|
|
52
|
-
import "../hook-form/RHFAutocompleteAsync/index.
|
|
53
|
-
import "../hook-form/RHFCheckbox/index.
|
|
54
|
-
import "../HelperText/index.
|
|
52
|
+
import "../hook-form/RHFAutocompleteAsync/index.647c3f9c.js";
|
|
53
|
+
import "../hook-form/RHFCheckbox/index.0b89ea5c.js";
|
|
54
|
+
import "../HelperText/index.191348cc.js";
|
|
55
55
|
import "@mui/x-date-pickers";
|
|
56
|
-
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.
|
|
57
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
58
|
-
import "../hook-form/RHFPeriod/index.
|
|
59
|
-
import "../Period/index.
|
|
56
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.1adc88ad.js";
|
|
57
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.a1a240b1.js";
|
|
58
|
+
import "../hook-form/RHFPeriod/index.a4476d23.js";
|
|
59
|
+
import "../Period/index.ebd5e3b7.js";
|
|
60
60
|
import "lodash/isString";
|
|
61
61
|
import "react-dropzone";
|
|
62
|
-
import "../hook-form/RHFUpload/index.
|
|
62
|
+
import "../hook-form/RHFUpload/index.a4582341.js";
|
|
63
63
|
import * as Yup from "yup";
|
|
64
64
|
const COMPONENT_PREFIX = "M4LDynamicFilter";
|
|
65
65
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.
|
|
3
|
+
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.d6f326d2.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { throttle } from "lodash";
|
|
6
6
|
import { useResizeObserver } from "@m4l/graphics";
|
|
@@ -676,10 +676,10 @@ function GridLayout(props) {
|
|
|
676
676
|
containerPadding = DEFAULT_CONTAINER_PADDING,
|
|
677
677
|
margin = DEFAULT_MARGIN,
|
|
678
678
|
rowHeight = DEFAULT_ROW_HEIGHT,
|
|
679
|
+
colapsedHeight = DEFAULT_COLAPSED_HEIGHT,
|
|
679
680
|
containerWidth = DEFAULT_CONTAINER_WIDTH,
|
|
680
681
|
containerHeight = DEFAULT_CONTAINER_HEIGHT,
|
|
681
682
|
transformScale = DEFAULT_TRANSFORM_SCALE,
|
|
682
|
-
colapsedHeight = DEFAULT_COLAPSED_HEIGHT,
|
|
683
683
|
className = "",
|
|
684
684
|
style = {},
|
|
685
685
|
draggableHandle = "",
|
|
@@ -717,8 +717,12 @@ function GridLayout(props) {
|
|
|
717
717
|
oldDragItem: void 0,
|
|
718
718
|
oldLayout: void 0,
|
|
719
719
|
oldResizeItem: void 0,
|
|
720
|
-
zIndexes
|
|
720
|
+
zIndexes,
|
|
721
|
+
colapsedHeight,
|
|
722
|
+
rowHeight
|
|
721
723
|
});
|
|
724
|
+
refState.current.colapsedHeight = colapsedHeight;
|
|
725
|
+
refState.current.rowHeight = rowHeight;
|
|
722
726
|
useEffect(() => {
|
|
723
727
|
setCurrentState({
|
|
724
728
|
mounted: true
|
|
@@ -794,7 +798,7 @@ function GridLayout(props) {
|
|
|
794
798
|
return;
|
|
795
799
|
const newPlaceholder = {
|
|
796
800
|
w: li.w,
|
|
797
|
-
h: getLayoutItemH(li, colapsedHeight, rowHeight),
|
|
801
|
+
h: getLayoutItemH(li, refState.current.colapsedHeight, refState.current.rowHeight),
|
|
798
802
|
x: li.x,
|
|
799
803
|
y: li.y,
|
|
800
804
|
placeholder: true,
|
|
@@ -804,7 +808,7 @@ function GridLayout(props) {
|
|
|
804
808
|
try {
|
|
805
809
|
let newLayout;
|
|
806
810
|
if (!li.freeMove) {
|
|
807
|
-
newLayout = moveElement(layout2, li, x, y, isUserAction, preventCollision, compactType, cols, colapsedHeight, rowHeight, allowOverlap);
|
|
811
|
+
newLayout = moveElement(layout2, li, x, y, isUserAction, preventCollision, compactType, cols, refState.current.colapsedHeight, refState.current.rowHeight, allowOverlap);
|
|
808
812
|
} else {
|
|
809
813
|
li.x = x;
|
|
810
814
|
li.y = y;
|
|
@@ -812,7 +816,7 @@ function GridLayout(props) {
|
|
|
812
816
|
newPlaceholder.y = y;
|
|
813
817
|
newLayout = cloneLayout(layout2);
|
|
814
818
|
}
|
|
815
|
-
const finalLayout = allowOverlap || li.freeMove ? newLayout : compact(newLayout, compactType, cols, colapsedHeight, rowHeight, allowOverlap);
|
|
819
|
+
const finalLayout = allowOverlap || li.freeMove ? newLayout : compact(newLayout, compactType, cols, refState.current.colapsedHeight, refState.current.rowHeight, allowOverlap);
|
|
816
820
|
refState.current = {
|
|
817
821
|
...refState.current,
|
|
818
822
|
layout: finalLayout,
|
|
@@ -850,13 +854,13 @@ function GridLayout(props) {
|
|
|
850
854
|
let newLayout;
|
|
851
855
|
const isUserAction = true;
|
|
852
856
|
if (!li.freeMove) {
|
|
853
|
-
newLayout = moveElement(layout2, li, x, y, isUserAction, preventCollision, compactType, cols, colapsedHeight, rowHeight, allowOverlap);
|
|
857
|
+
newLayout = moveElement(layout2, li, x, y, isUserAction, preventCollision, compactType, cols, refState.current.colapsedHeight, refState.current.rowHeight, allowOverlap);
|
|
854
858
|
} else {
|
|
855
859
|
li.x = x;
|
|
856
860
|
li.y = y;
|
|
857
861
|
newLayout = cloneLayout(layout2);
|
|
858
862
|
}
|
|
859
|
-
const finalLayout = allowOverlap ? newLayout || li.freeMove : compact(newLayout, compactType, cols, colapsedHeight, rowHeight, allowOverlap);
|
|
863
|
+
const finalLayout = allowOverlap ? newLayout || li.freeMove : compact(newLayout, compactType, cols, refState.current.colapsedHeight, refState.current.rowHeight, allowOverlap);
|
|
860
864
|
setCurrentState((prev) => ({
|
|
861
865
|
...prev,
|
|
862
866
|
activeDrag: void 0
|
|
@@ -914,7 +918,7 @@ function GridLayout(props) {
|
|
|
914
918
|
...cbLi,
|
|
915
919
|
w,
|
|
916
920
|
h
|
|
917
|
-
}, colapsedHeight, rowHeight).filter((layoutItem) => layoutItem.i !== cbLi.i);
|
|
921
|
+
}, refState.current.colapsedHeight, refState.current.rowHeight).filter((layoutItem) => layoutItem.i !== cbLi.i);
|
|
918
922
|
hasCollisions = collisions.length > 0;
|
|
919
923
|
if (hasCollisions) {
|
|
920
924
|
let leastX = Infinity, leastY = Infinity;
|
|
@@ -958,7 +962,7 @@ function GridLayout(props) {
|
|
|
958
962
|
i
|
|
959
963
|
};
|
|
960
964
|
try {
|
|
961
|
-
const finalLayout = allowOverlap || li.freeMove ? newLayout : compact(newLayout, compactType, cols, colapsedHeight, rowHeight, allowOverlap);
|
|
965
|
+
const finalLayout = allowOverlap || li.freeMove ? newLayout : compact(newLayout, compactType, cols, refState.current.colapsedHeight, refState.current.rowHeight, allowOverlap);
|
|
962
966
|
refState.current = {
|
|
963
967
|
...refState.current,
|
|
964
968
|
layout: finalLayout,
|
|
@@ -972,7 +976,6 @@ function GridLayout(props) {
|
|
|
972
976
|
onResize(newLayout, oldResizeItem, li, newPlaceholder, e, node);
|
|
973
977
|
} catch (error) {
|
|
974
978
|
}
|
|
975
|
-
console.log("GridLayout onresize");
|
|
976
979
|
if (e.type !== "touchmove") {
|
|
977
980
|
e.preventDefault();
|
|
978
981
|
}
|
|
@@ -1123,7 +1126,7 @@ function GridLayout(props) {
|
|
|
1123
1126
|
colapsedHeight,
|
|
1124
1127
|
style: style2
|
|
1125
1128
|
}, l.i);
|
|
1126
|
-
}, [containerWidth, containerHeight, cols, margin, containerPadding, maxRows, rowHeight, draggableCancel, draggableHandle, isDraggable, isResizable, isBounded, useCSSTransforms, transformScale, resizeHandles, resizeHandle, maximizeId, zIndexes]);
|
|
1129
|
+
}, [containerWidth, containerHeight, cols, margin, containerPadding, maxRows, rowHeight, draggableCancel, draggableHandle, isDraggable, isResizable, isBounded, useCSSTransforms, transformScale, resizeHandles, resizeHandle, maximizeId, zIndexes, colapsedHeight, rowHeight]);
|
|
1127
1130
|
const containerAutoSizeHeight = useCallback(() => {
|
|
1128
1131
|
if (!autoSize)
|
|
1129
1132
|
return;
|
package/components/GridLayout/subcomponents/Griditem/{index.c7a33781.js → index.d6f326d2.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
2
2
|
import { D as DraggableCore_1 } from "../../../../react-draggable.7abb5d0a.js";
|
|
3
3
|
import { R as Resizable } from "../../../../react-resizable.ba08699a.js";
|
|
4
|
-
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.
|
|
4
|
+
import { g as getH, c as calcXY, a as calcGridItemWHPx, b as calcGridColWidth, d as calcWH, e as clamp, f as calcGridItemPosition, h as gridLayoutClasses, D as DEFAULT_COLS, i as DEFAULT_ROW_HEIGHT, j as DEFAULT_CONTAINER_WIDTH, k as DEFAULT_CONTAINER_HEIGHT, l as DEFAULT_MARGIN, m as DEFAULT_CONTAINER_PADDING, n as DEFAULT_TRANSFORM_SCALE, o as DEFAULT_COLAPSED_HEIGHT, p as perc, s as setTransform, q as setTopLeft } from "../../index.5e43414d.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { d as deepEqual } from "../../../../node_modules.d73a220d.js";
|
|
7
7
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
@@ -328,6 +328,7 @@ function GridItem(props) {
|
|
|
328
328
|
[gridLayoutClasses.maximizeMe]: maximize === "maximize_me",
|
|
329
329
|
[gridLayoutClasses.maximizeOther]: maximize === "maximize_other",
|
|
330
330
|
[gridLayoutClasses.colapsed]: colapsed,
|
|
331
|
+
[`${gridLayoutClasses.colapsed}-${colapsedHeight}`]: colapsed,
|
|
331
332
|
[gridLayoutClasses.gridItemFreeMove]: freeMove,
|
|
332
333
|
[gridLayoutClasses.resizeHide]: colapsed,
|
|
333
334
|
[gridLayoutClasses.invisible]: !visible,
|
|
@@ -8,3 +8,4 @@ import { ResponsiveState, ResponsiveInitialStateProps } from './types';
|
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
10
|
export declare function generateInitialState(props: ResponsiveInitialStateProps): ResponsiveState;
|
|
11
|
+
export declare const getHeight: (objectOrHeight: number | Record<string, number>, currentBreakpoint: string) => number;
|
package/components/GridLayout/subcomponents/Responsive/{index.96cdb1b4.js → index.d41e31ca.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS,
|
|
1
|
+
import { r as cloneLayoutItem, t as cloneLayout, u as compact, v as correctBounds, w as isEqualLayout, o as DEFAULT_COLAPSED_HEIGHT, x as DEFAULT_RESPONSIVE_BREAKPOINTS, m as DEFAULT_CONTAINER_PADDING, l as DEFAULT_MARGIN, y as DEFAULT_RESPONSIVE_COLS, i as DEFAULT_ROW_HEIGHT, z as isEqualLayouts, G as GridLayout, A as noop } from "../../index.5e43414d.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import { useFirstRender } from "@m4l/graphics";
|
|
4
4
|
import { d as deepEqual } from "../../../../node_modules.d73a220d.js";
|
|
@@ -61,7 +61,7 @@ function findOrGenerateResponsiveLayout(layouts, breakpoints, breakpoint, lastBr
|
|
|
61
61
|
}
|
|
62
62
|
layout = cloneLayout(layout);
|
|
63
63
|
const ret = compact(
|
|
64
|
-
correctBounds(layout, { cols }, colapsedHeight,
|
|
64
|
+
correctBounds(layout, { cols }, colapsedHeight, colapsedHeight),
|
|
65
65
|
compactType,
|
|
66
66
|
cols,
|
|
67
67
|
colapsedHeight,
|
|
@@ -85,7 +85,8 @@ function addLayoutItemToBreakPointIfNoExists(layouts, breakpoint, layoutItem, co
|
|
|
85
85
|
return;
|
|
86
86
|
if (layouts[breakpoint].findIndex((l) => l.i === layoutItem.i) === -1) {
|
|
87
87
|
const l = cloneLayoutItem(layoutItem);
|
|
88
|
-
const
|
|
88
|
+
const rowHeightBreakpoint = typeof rowHeight === "number" ? rowHeight : rowHeight[breakpoint];
|
|
89
|
+
const heigthUnits = containerHeight !== void 0 ? (containerHeight + getIndentationValue(margin, breakpoint)[1] - 2 * getIndentationValue(containerPadding, breakpoint)[1]) / (rowHeightBreakpoint + getIndentationValue(margin, breakpoint)[1]) : l.h;
|
|
89
90
|
if (l.freeMove) {
|
|
90
91
|
l.x = Math.round(cols[breakpoint] / 4);
|
|
91
92
|
l.y = Math.round(heigthUnits / 4);
|
|
@@ -155,6 +156,8 @@ function generateInitialState(props) {
|
|
|
155
156
|
const newBreakpoint = breakpoint || getBreakpointFromWidth(breakpoints, containerWidth);
|
|
156
157
|
const newCols = getColsFromBreakpoint(newBreakpoint, cols);
|
|
157
158
|
let fireOnLoadLayoutChange = true;
|
|
159
|
+
const initialColapsedHeight = getHeight(colapsedHeight, newBreakpoint);
|
|
160
|
+
const initialrowHeight = getHeight(rowHeight, newBreakpoint);
|
|
158
161
|
const initialLayout = findOrGenerateResponsiveLayout(
|
|
159
162
|
defaultLayouts,
|
|
160
163
|
breakpoints,
|
|
@@ -163,8 +166,8 @@ function generateInitialState(props) {
|
|
|
163
166
|
newCols,
|
|
164
167
|
compactType,
|
|
165
168
|
{ [newBreakpoint]: newCols },
|
|
166
|
-
|
|
167
|
-
|
|
169
|
+
initialColapsedHeight,
|
|
170
|
+
initialrowHeight
|
|
168
171
|
);
|
|
169
172
|
if (defaultLayouts[newBreakpoint]) {
|
|
170
173
|
if (isEqualLayout(defaultLayouts[newBreakpoint], initialLayout)) {
|
|
@@ -177,10 +180,21 @@ function generateInitialState(props) {
|
|
|
177
180
|
cols: newCols,
|
|
178
181
|
contaierMargin: getIndentationValue(containerMargin, newBreakpoint),
|
|
179
182
|
contaierPadding: getIndentationValue(containerPadding, newBreakpoint),
|
|
180
|
-
fireOnLoadLayoutChange
|
|
183
|
+
fireOnLoadLayoutChange,
|
|
184
|
+
colapsedHeight: initialColapsedHeight,
|
|
185
|
+
rowHeight: initialrowHeight
|
|
181
186
|
};
|
|
182
187
|
return ret;
|
|
183
188
|
}
|
|
189
|
+
const getHeight = (objectOrHeight, currentBreakpoint) => {
|
|
190
|
+
if (typeof objectOrHeight == "number") {
|
|
191
|
+
return objectOrHeight;
|
|
192
|
+
}
|
|
193
|
+
if (objectOrHeight[currentBreakpoint]) {
|
|
194
|
+
return objectOrHeight[currentBreakpoint];
|
|
195
|
+
}
|
|
196
|
+
return DEFAULT_COLAPSED_HEIGHT;
|
|
197
|
+
};
|
|
184
198
|
function Responsive(props) {
|
|
185
199
|
const {
|
|
186
200
|
layoutItemRender,
|
|
@@ -210,7 +224,9 @@ function Responsive(props) {
|
|
|
210
224
|
currentBreakpoint: currentState.breakpoint,
|
|
211
225
|
breakpoints,
|
|
212
226
|
containerWidth,
|
|
213
|
-
containerHeight
|
|
227
|
+
containerHeight,
|
|
228
|
+
colapsedHeight: currentState.colapsedHeight,
|
|
229
|
+
rowHeight: currentState.rowHeight
|
|
214
230
|
});
|
|
215
231
|
const isFirstRenderFull = useFirstRender([containerWidth, containerHeight, layouts, breakpoint, breakpoints, cols]);
|
|
216
232
|
const isFirstRenderBreakpointLayout = useFirstRender([currentState.breakpointLayout]);
|
|
@@ -249,22 +265,27 @@ function Responsive(props) {
|
|
|
249
265
|
if (newBreakpoint !== lastBreakpoint || newCols !== lastBreakpointCols || !deepEqual(cols, refState.current.cols) || !deepEqual(breakpoints, refState.current.breakpoints) || !isEqualLayouts(layouts, refState.current.layouts)) {
|
|
250
266
|
newContainerMargin = getIndentationValue(containerMargin, newBreakpoint);
|
|
251
267
|
newContainerPadding = getIndentationValue(containerPadding, newBreakpoint);
|
|
268
|
+
const newColapsedHeight = getHeight(colapsedHeight, newBreakpoint);
|
|
269
|
+
const newRowHeight = getHeight(rowHeight, newBreakpoint);
|
|
252
270
|
if (!(lastBreakpoint in newLayouts)) {
|
|
253
271
|
console.error("useEffect casi imposible", lastBreakpoint, newLayouts);
|
|
254
272
|
newLayouts[lastBreakpoint] = cloneLayout(currentState.breakpointLayout);
|
|
255
273
|
}
|
|
256
|
-
const layout = findOrGenerateResponsiveLayout(newLayouts, breakpoints, newBreakpoint, lastBreakpoint, newCols, compactType, cols,
|
|
274
|
+
const layout = findOrGenerateResponsiveLayout(newLayouts, breakpoints, newBreakpoint, lastBreakpoint, newCols, compactType, cols, newColapsedHeight, newRowHeight);
|
|
257
275
|
newLayouts[newBreakpoint] = layout;
|
|
258
276
|
refState.current.layouts = newLayouts;
|
|
259
277
|
refState.current.breakpoints = breakpoints;
|
|
260
278
|
refState.current.currentBreakpoint = newBreakpoint;
|
|
261
279
|
refState.current.currentBreakpointCols = newCols;
|
|
280
|
+
refState.current.colapsedHeight = newColapsedHeight;
|
|
262
281
|
setCurrentState({
|
|
263
282
|
breakpoint: newBreakpoint,
|
|
264
283
|
breakpointLayout: layout,
|
|
265
284
|
cols: newCols,
|
|
266
285
|
contaierMargin: newContainerMargin,
|
|
267
|
-
contaierPadding: newContainerPadding
|
|
286
|
+
contaierPadding: newContainerPadding,
|
|
287
|
+
colapsedHeight: newColapsedHeight,
|
|
288
|
+
rowHeight: newRowHeight
|
|
268
289
|
});
|
|
269
290
|
}
|
|
270
291
|
if (newBreakpoint !== lastBreakpoint || newCols !== lastBreakpointCols || lastContainerWidth !== containerWidth || lastContainerHeight != containerHeight) {
|
|
@@ -285,10 +306,10 @@ function Responsive(props) {
|
|
|
285
306
|
}));
|
|
286
307
|
}, [onLayoutChange]);
|
|
287
308
|
return /* @__PURE__ */ jsx(GridLayout, {
|
|
288
|
-
rowHeight,
|
|
309
|
+
rowHeight: currentState.rowHeight,
|
|
289
310
|
containerWidth,
|
|
290
311
|
containerHeight,
|
|
291
|
-
colapsedHeight,
|
|
312
|
+
colapsedHeight: currentState.colapsedHeight,
|
|
292
313
|
layoutItemRender,
|
|
293
314
|
margin: currentState.contaierMargin,
|
|
294
315
|
containerPadding: getIndentationValue(containerPadding, currentState.breakpoint),
|
|
@@ -51,11 +51,11 @@ export declare function getIndentationValue(param: ResponsiveMargin, breakpoint:
|
|
|
51
51
|
* @param layouts
|
|
52
52
|
* @param layoutItem
|
|
53
53
|
*/
|
|
54
|
-
export declare function addLayoutItemToBreakPointIfNoExists(layouts: Layouts, breakpoint: string, layoutItem: LayoutItem, cols: BreakpointCols, margin: ResponsiveMargin, containerPadding: ResponsiveMargin, rowHeight: number, containerHeight?: number, currentBreakpoint?: Breakpoint): void;
|
|
54
|
+
export declare function addLayoutItemToBreakPointIfNoExists(layouts: Layouts, breakpoint: string, layoutItem: LayoutItem, cols: BreakpointCols, margin: ResponsiveMargin, containerPadding: ResponsiveMargin, rowHeight: number | Record<string, number>, containerHeight?: number, currentBreakpoint?: Breakpoint): void;
|
|
55
55
|
/**
|
|
56
56
|
* Modifica el layout y le arega el item a todos los breakpoints
|
|
57
57
|
* @param layouts
|
|
58
58
|
* @param layoutItem
|
|
59
59
|
*/
|
|
60
|
-
export declare function addLayoutItemToBreakPoints(layouts: Layouts, layoutItem: LayoutItem, cols: BreakpointCols, margin: ResponsiveMargin, containerPadding: ResponsiveMargin, rowHeight: number, containerHeight?: number, currentBreakpoint?: Breakpoint): Layouts;
|
|
60
|
+
export declare function addLayoutItemToBreakPoints(layouts: Layouts, layoutItem: LayoutItem, cols: BreakpointCols, margin: ResponsiveMargin, containerPadding: ResponsiveMargin, rowHeight: number | Record<string, number>, containerHeight?: number, currentBreakpoint?: Breakpoint): Layouts;
|
|
61
61
|
export declare function cloneLayouts(layouts: Layouts, layoutItemReplaceProps?: Partial<Exclude<LayoutItem, 'i'>>): Layouts;
|