@m4l/components 0.1.90 → 0.1.93
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 +12 -15
- package/components/AccountPopover/AccountPopover.d.ts +2 -1
- package/components/AccountPopover/{index.724828f0.js → index.2ef0bf6d.js} +20 -31
- package/components/AccountPopover/index.d.ts +0 -1
- package/components/AccountPopover/subcomponents/PopOver/types.d.ts +4 -3
- package/components/AccountPopover/types.d.ts +50 -26
- package/components/AppBar/{index.0328abec.js → index.16fe42a1.js} +3 -22
- package/components/CommonActions/components/ActionCancel/{index.441118b5.js → index.c3e23ad4.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.435fcb53.js → index.6da52418.js} +4 -34
- package/components/CommonActions/components/ActionFormIntro/{index.edb131c4.js → index.c3af6d1d.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.24367ed3.js → index.49631fcb.js} +2 -2
- package/components/CommonActions/components/Actions/{index.8dcaba29.js → index.ccf731c1.js} +2 -38
- package/components/DataGrid/classes/index.d.ts +1 -0
- package/components/DataGrid/classes/types.d.ts +1 -0
- package/components/DataGrid/formatters/columnConcatenatedValueFormatter/index.d.ts +2 -2
- package/components/DataGrid/{index.c296f69c.js → index.abedf2c0.js} +44 -14
- package/components/DataGrid/subcomponents/Actions/{index.fadd92f2.js → index.c8408b73.js} +9 -38
- package/components/DraggableWindow/{index.c702d3f2.js → index.8f423ed7.js} +1 -1
- package/components/DynamicFilter/{index.6a22346e.js → index.cb1402aa.js} +23 -56
- package/components/DynamicFilter/index.d.ts +1 -1
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/GridLayout/{index.8ae34c50.js → index.1421f0d4.js} +21 -18
- package/components/GridLayout/subcomponents/Griditem/{index.c7a33781.js → index.b2342897.js} +5 -4
- package/components/GridLayout/subcomponents/Responsive/helper.d.ts +1 -0
- package/components/GridLayout/subcomponents/Responsive/{index.96cdb1b4.js → index.f459804c.js} +33 -12
- 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.31f2a824.js → index.7d2afdb3.js} +2 -23
- package/components/Icon/{index.a70c4729.js → index.3211023d.js} +8 -6
- package/components/Image/{index.c18ebf5a.js → index.611cd930.js} +43 -14
- package/components/LanguagePopover/{index.c9876e63.js → index.b6dc03d0.js} +4 -20
- package/components/LinearProgressIndeterminate/{index.60dabc06.js → index.c46da124.js} +1 -1
- package/components/LoadingError/LoadingError.d.ts +3 -0
- package/components/LoadingError/classes/constants.d.ts +1 -0
- package/components/LoadingError/classes/index.d.ts +14 -0
- package/components/LoadingError/classes/types.d.ts +14 -0
- package/components/LoadingError/dictionary.d.ts +1 -0
- package/components/LoadingError/index.96bdc803.js +106 -0
- package/components/LoadingError/index.d.ts +2 -0
- package/components/LoadingError/types.d.ts +10 -0
- package/components/MFLoader/classes/constants.d.ts +1 -0
- package/components/MFLoader/classes/index.d.ts +7 -0
- package/components/MFLoader/classes/types.d.ts +7 -0
- package/components/MFLoader/dictionary.d.ts +1 -0
- package/components/MFLoader/index.caee87dd.js +296 -0
- package/components/MFLoader/index.d.ts +2 -0
- package/components/MFLoader/types.d.ts +7 -0
- package/components/ModalDialog/{index.7d0d3ea1.js → index.ec55087e.js} +5 -5
- package/components/NavLink/{index.4f927064.js → index.b75c91e1.js} +2 -22
- package/components/NoItemSelected/{index.1eaf72d8.js → index.3e29c208.js} +1 -1
- package/components/ObjectLogs/{index.87438c47.js → index.38fd657f.js} +12 -38
- package/components/Page/index.c4642a29.js +127 -0
- package/components/PaperForm/{index.e02c772c.js → index.cce9ed39.js} +1 -1
- package/components/Period/{index.d1182d4a.js → index.c35c6a6c.js} +5 -37
- package/components/PrintingSystem/PrintingSystem.d.ts +3 -0
- package/components/PrintingSystem/classes/constants.d.ts +1 -0
- package/components/PrintingSystem/classes/index.d.ts +32 -0
- package/components/PrintingSystem/classes/types.d.ts +33 -0
- package/components/PrintingSystem/index.d.ts +2 -0
- package/components/PrintingSystem/index.e18a2fa8.js +634 -0
- package/components/PrintingSystem/subcomponents/BodyNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/BodyNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/ChartNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/ChartNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/DividerNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/DividerNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/FooterNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/FooterNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/GridNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/GridNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/HeaderNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/HeaderNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/ImageNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/ImageNode/types.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PageNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PageNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/Pager/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/Pager/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/PaperNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PaperNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/PropertyValueNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/SectionNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/SectionNode/types.d.ts +5 -0
- package/components/PrintingSystem/subcomponents/TextBoxNode/index.d.ts +3 -0
- package/components/PrintingSystem/subcomponents/TextBoxNode/types.d.ts +3 -0
- package/components/PrintingSystem/types.d.ts +214 -0
- package/components/PrintingSystem/utils/FactoryRender/index.d.ts +3 -0
- package/components/PrintingSystem/utils/FactoryRender/types.d.ts +4 -0
- package/components/PrintingSystem/utils/PageRender/index.d.ts +3 -0
- package/components/PrintingSystem/utils/PageRender/types.d.ts +13 -0
- package/components/PrintingSystem/utils/getEvalValue/index.d.ts +1 -0
- package/components/PrintingSystem/utils/getSize/index.d.ts +1 -0
- package/components/PropertyValue/classes/index.d.ts +3 -2
- package/components/PropertyValue/classes/types.d.ts +2 -0
- package/components/PropertyValue/{index.3ee94e0f.js → index.3ee95452.js} +25 -9
- package/components/PropertyValue/types.d.ts +4 -0
- package/components/Resizeable/{index.676c96fe.js → index.8c53c1fa.js} +1 -1
- package/components/SideBar/{index.2dfc5445.js → index.5fd648d2.js} +44 -39
- package/components/animate/{index.4e9774a6.js → index.5d4575bc.js} +2 -6
- package/components/areas/components/AreasAdmin/{index.98a54515.js → index.ddb384a1.js} +29 -62
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +2 -8
- package/components/areas/components/AreasViewer/{index.ee7170bc.js → index.625bf23b.js} +70 -438
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/index.d.ts +2 -2
- package/components/areas/components/index.558684b3.js +1 -0
- package/components/areas/components/index.d.ts +0 -1
- package/components/areas/contexts/AreasContext/helper.d.ts +14 -1
- package/components/areas/contexts/AreasContext/{index.1950eef9.js → index.646f3c8f.js} +16 -12
- package/components/areas/contexts/index.24025b97.js +1 -0
- package/components/areas/contexts/index.d.ts +1 -0
- package/components/areas/hooks/index.d9dc1e21.js +1 -0
- package/components/areas/hooks/useAreas/{index.ce75bfb5.js → index.ee66240b.js} +1 -1
- package/components/areas/index.4cc6a221.js +22 -0
- package/components/areas/index.d.ts +1 -1
- package/components/formatters/BooleanFormatter/{index.a013b080.js → index.3c2df7a8.js} +10 -4
- package/components/formatters/FormatterRoot/index.d.ts +3 -0
- package/components/formatters/FormatterRoot/types.d.ts +4 -0
- package/components/formatters/classes/index.d.ts +4 -0
- package/components/formatters/classes/types.d.ts +6 -0
- package/components/formatters/constants.d.ts +1 -0
- package/components/formatters/{index.576922c9.js → index.dc77adb7.js} +25 -8
- package/components/hook-form/RHFAutocomplete/{index.8e4ff8d7.js → index.52387f0f.js} +7 -22
- package/components/hook-form/RHFAutocompleteAsync/{index.78f8e4c4.js → index.638bd2ae.js} +3 -2
- package/components/hook-form/RHFCheckbox/{index.bdad2059.js → index.a38715e3.js} +2 -22
- package/components/hook-form/RHFDateTime/{index.73f8a11e.js → index.66e334b0.js} +23 -23
- package/components/hook-form/RHFPeriod/{index.71df31df.js → index.23099265.js} +2 -2
- package/components/hook-form/RHFTextField/{index.6d21060a.js → index.25b3627e.js} +6 -8
- package/components/hook-form/RHFUpload/{index.f04d24ee.js → index.65588e08.js} +5 -22
- package/components/index.d.ts +3 -0
- package/components/modal/{WindowBase.b9dd76a4.js → WindowBase.161ec78a.js} +5 -37
- package/components/modal/{WindowConfirm.d407f47a.js → WindowConfirm.7eed7c35.js} +8 -40
- package/components/modal/{index.764e2723.js → index.61389369.js} +0 -37
- package/components/mui_extended/Accordion/{index.a706b12f.js → index.92aae1a4.js} +4 -4
- package/components/mui_extended/Button/{index.f79eb74e.js → index.94fec33c.js} +3 -3
- package/components/mui_extended/{CheckBox.38abccd8.js → CheckBox.e662d20c.js} +1 -1
- package/components/mui_extended/IconButton/{index.76624519.js → index.53cd6388.js} +2 -2
- package/components/mui_extended/MenuActions/{index.570fbae0.js → index.dd9f65a2.js} +5 -19
- package/components/mui_extended/Pager/{index.ac2a21f0.js → index.de0bd62c.js} +2 -2
- package/components/mui_extended/Tab/{index.d0302c81.js → index.1fcabba2.js} +2 -2
- package/components/mui_extended/index.b606cd9d.js +1 -0
- package/contexts/ModalContext/{index.41fbf6bc.js → index.436c2938.js} +1 -1
- package/contexts/RHFormContext/classes/index.d.ts +1 -1
- package/hooks/useFormAddEdit/{index.0c6b6b68.js → index.3584a29f.js} +2 -26
- package/hooks/useModal/{index.71987a49.js → index.05d1821e.js} +1 -1
- package/index.js +199 -190
- package/node_modules.b55d04d9.js +15267 -0
- package/package.json +5 -1
- package/react-data-grid.d46d625e.js +2 -2
- package/react-draggable.e4725f3a.js +630 -0
- package/{react-resizable.ba08699a.js → react-resizable.c07d63fb.js} +2 -2
- package/utils/{index.c43a95f4.js → index.6469f148.js} +75 -107
- package/vendor.71883626.js +104 -0
- package/components/Page/index.4237c241.js +0 -27
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/types.d.ts +0 -8
- package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/index.d.ts +0 -3
- package/components/areas/components/AreasViewer/subcomponents/AreasLoadingError/types.d.ts +0 -5
- package/components/areas/components/index.431c5397.js +0 -31
- package/components/areas/contexts/index.b846bbcb.js +0 -2
- package/components/areas/hooks/index.0184c6f7.js +0 -4
- package/components/areas/index.5abba006.js +0 -54
- package/components/mui_extended/index.a8d347a9.js +0 -24
- package/node_modules.d73a220d.js +0 -363
- package/react-draggable.7abb5d0a.js +0 -962
- package/vendor.4dedf99e.js +0 -128
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader/index.d.ts → MFLoader/MFLoader.d.ts} +0 -0
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/helper.d.ts +0 -0
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/index.d.ts +0 -0
- package/components/{areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/MicroFrontend/subcomponents/MFLoader → MFLoader}/subcomponents/ProggessLoadingMF/types.d.ts +0 -0
- package/components/mui_extended/Badge/{index.b09524fe.js → index.09f5aee5.js} +1 -1
- package/components/mui_extended/Popover/{index.9f35d0eb.js → index.b3eca6b1.js} +2 -2
- package/components/mui_extended/Tooltip/{index.5a795dcd.js → index.24a2bc3f.js} +1 -1
- package/components/mui_extended/Typography/{index.443590d6.js → index.379dd374.js} +1 -1
|
@@ -1,48 +1,19 @@
|
|
|
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.dd9f65a2.js";
|
|
2
|
+
import { u as useDataGrid, a as useFilters, d as dataGridClasses, D as DataGridRoot, b as dictionary } from "../../index.abedf2c0.js";
|
|
3
3
|
import { useTheme, Checkbox, Skeleton } from "@mui/material";
|
|
4
4
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { P as Pager } from "../../../mui_extended/Pager/index.
|
|
6
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
5
|
+
import { P as Pager } from "../../../mui_extended/Pager/index.de0bd62c.js";
|
|
6
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.53cd6388.js";
|
|
7
7
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
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.
|
|
14
|
-
import "../../../../react-draggable.7abb5d0a.js";
|
|
15
|
-
import "../../../Resizeable/index.676c96fe.js";
|
|
11
|
+
import { u as useModal } from "../../../../hooks/useModal/index.05d1821e.js";
|
|
12
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.c3e23ad4.js";
|
|
13
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.49631fcb.js";
|
|
16
14
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
17
|
-
import "../../../modal/
|
|
18
|
-
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.
|
|
19
|
-
import "react-hook-form";
|
|
20
|
-
import "@mui/material/Button";
|
|
21
|
-
import "../../../mui_extended/Button/index.f79eb74e.js";
|
|
22
|
-
import "clsx";
|
|
23
|
-
import "zustand";
|
|
24
|
-
import "../../../areas/contexts/AreasContext/index.1950eef9.js";
|
|
25
|
-
import "../../../areas/components/AreasAdmin/index.98a54515.js";
|
|
26
|
-
import "zustand/shallow";
|
|
27
|
-
import "../../../ScrollBar/index.65bb2930.js";
|
|
28
|
-
import "../../../mui_extended/Accordion/index.a706b12f.js";
|
|
29
|
-
import "../../../Icon/index.a70c4729.js";
|
|
30
|
-
import "../../../mui_extended/Typography/index.443590d6.js";
|
|
31
|
-
import "../../../mui_extended/Avatar/index.75e6ed57.js";
|
|
32
|
-
import "react-router-dom";
|
|
33
|
-
import "../../../mui_extended/CheckBox.38abccd8.js";
|
|
34
|
-
import "../../../mui_extended/Badge/index.b09524fe.js";
|
|
35
|
-
import "../../../Image/index.c18ebf5a.js";
|
|
36
|
-
import "@mui/lab";
|
|
37
|
-
import "../../../mui_extended/Popover/index.9f35d0eb.js";
|
|
38
|
-
import "../../../mui_extended/Stack/index.0e53197c.js";
|
|
39
|
-
import "../../../mui_extended/Tab/index.d0302c81.js";
|
|
40
|
-
import "../../../mui_extended/Tooltip/index.5a795dcd.js";
|
|
41
|
-
import "../../../areas/components/AreasViewer/index.ee7170bc.js";
|
|
42
|
-
import "../../../LinearProgressIndeterminate/index.60dabc06.js";
|
|
43
|
-
import "../../../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
44
|
-
import "../../../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
45
|
-
import { W as WindowBase } from "../../../modal/WindowBase.b9dd76a4.js";
|
|
15
|
+
import { W as WindowBase } from "../../../modal/WindowBase.161ec78a.js";
|
|
16
|
+
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.ccf731c1.js";
|
|
46
17
|
const ACTIONS_COLUMN_KEY = "actions-row";
|
|
47
18
|
function ActionsFormatter(props) {
|
|
48
19
|
const {
|
|
@@ -1,66 +1,33 @@
|
|
|
1
|
-
import { shallow } from "zustand/shallow";
|
|
2
|
-
import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
|
|
3
1
|
import { useContext, useMemo, useEffect, createContext, useRef, createElement, useState, useCallback } from "react";
|
|
4
|
-
import clsx from "clsx";
|
|
5
2
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
6
|
-
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
7
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.76624519.js";
|
|
8
|
-
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
9
|
-
import { g as getNameDataTestId } from "../../vendor.4dedf99e.js";
|
|
10
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
11
|
-
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
12
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.570fbae0.js";
|
|
13
|
-
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
14
|
-
import { I as Icon } from "../Icon/index.a70c4729.js";
|
|
15
|
-
import { styled, useTheme } from "@mui/material/styles";
|
|
16
|
-
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.1755b324.js";
|
|
17
|
-
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.8dcaba29.js";
|
|
18
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.441118b5.js";
|
|
19
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.24367ed3.js";
|
|
20
|
-
import { useFormContext, useWatch } from "react-hook-form";
|
|
21
|
-
import "@mui/material/Button";
|
|
22
|
-
import "../mui_extended/Button/index.f79eb74e.js";
|
|
23
|
-
import "../../contexts/ModalContext/index.41fbf6bc.js";
|
|
24
|
-
import "../../react-draggable.7abb5d0a.js";
|
|
25
|
-
import "../Resizeable/index.676c96fe.js";
|
|
26
|
-
import "../modal/index.764e2723.js";
|
|
27
|
-
import "../Image/index.c18ebf5a.js";
|
|
28
|
-
import "../mui_extended/Accordion/index.a706b12f.js";
|
|
29
|
-
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
30
|
-
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
31
|
-
import "react-router-dom";
|
|
32
|
-
import "../mui_extended/CheckBox.38abccd8.js";
|
|
33
|
-
import "../mui_extended/Badge/index.b09524fe.js";
|
|
34
|
-
import "@mui/lab";
|
|
35
|
-
import "../mui_extended/Stack/index.0e53197c.js";
|
|
36
|
-
import "../mui_extended/Tab/index.d0302c81.js";
|
|
37
|
-
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
38
|
-
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
39
3
|
import { useStore, createStore } from "zustand";
|
|
40
|
-
import "
|
|
41
|
-
import "../areas/components/AreasAdmin/index.98a54515.js";
|
|
42
|
-
import "../areas/components/AreasViewer/index.ee7170bc.js";
|
|
43
|
-
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
44
|
-
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
45
|
-
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
4
|
+
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
46
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
47
|
-
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.
|
|
6
|
+
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.6469f148.js";
|
|
48
7
|
import { devtools } from "zustand/middleware";
|
|
49
8
|
import { immer } from "zustand/middleware/immer";
|
|
50
|
-
import {
|
|
51
|
-
import "
|
|
52
|
-
import "../hook-form/
|
|
53
|
-
import "
|
|
54
|
-
import "
|
|
55
|
-
import "
|
|
56
|
-
import {
|
|
57
|
-
import { R as
|
|
58
|
-
import "../hook-form/
|
|
59
|
-
import "../Period/index.d1182d4a.js";
|
|
60
|
-
import "lodash/isString";
|
|
61
|
-
import "react-dropzone";
|
|
62
|
-
import "../hook-form/RHFUpload/index.f04d24ee.js";
|
|
9
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.ccf731c1.js";
|
|
11
|
+
import { g as getRHFAutocompleteComponentsDictionary, R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.52387f0f.js";
|
|
12
|
+
import { g as getNameDataTestId } from "../../vendor.71883626.js";
|
|
13
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
14
|
+
import { useFormContext, useWatch } from "react-hook-form";
|
|
15
|
+
import { shallow } from "zustand/shallow";
|
|
16
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.66e334b0.js";
|
|
17
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.25b3627e.js";
|
|
63
18
|
import * as Yup from "yup";
|
|
19
|
+
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
20
|
+
import { styled, useTheme } from "@mui/material/styles";
|
|
21
|
+
import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
|
|
22
|
+
import clsx from "clsx";
|
|
23
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.53cd6388.js";
|
|
24
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.dd9f65a2.js";
|
|
25
|
+
import { P as Popover } from "../mui_extended/Popover/index.b3eca6b1.js";
|
|
26
|
+
import { I as Icon } from "../Icon/index.3211023d.js";
|
|
27
|
+
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.1755b324.js";
|
|
28
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.c3e23ad4.js";
|
|
29
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.49631fcb.js";
|
|
30
|
+
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
64
31
|
const COMPONENT_PREFIX = "M4LDynamicFilter";
|
|
65
32
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
66
33
|
const ASSETS_URL = "frontend/components/dynamic_filter/assets/icons";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './DynamicFilter';
|
|
2
2
|
export { getDynamicFilterComponentsDictionary } from './dictionary';
|
|
3
|
-
export type { FilterFieldApplyed as FilterFieldApply, RawFilterFieldApply, InitialFilterApplyed, } from './types';
|
|
3
|
+
export type { FilterFieldApplyed as FilterFieldApply, RawFilterFieldApply, InitialFilterApplyed, Field, } from './types';
|
|
4
4
|
export type { DynamicFilterClassesKey } from './classes/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GridLayoutClasses } from './types';
|
|
2
2
|
export declare const gridLayoutClasses: GridLayoutClasses;
|
|
3
|
-
export declare const useUtilityClasses: () => Record<"static" | "root" | "
|
|
3
|
+
export declare const useUtilityClasses: () => Record<"static" | "root" | "dragging" | "colapsed" | "resizing" | "invisible" | "gridItemRoot" | "gridItemPlaceholder" | "gridItemFreeMove" | "maximizeMe" | "maximizeOther" | "resizeHide" | "cssTransforms", string>;
|
|
4
4
|
export declare type Classes = ReturnType<typeof useUtilityClasses>;
|
|
@@ -1,13 +1,13 @@
|
|
|
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.
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { throttle } from "lodash";
|
|
6
|
-
import { useResizeObserver } from "@m4l/graphics";
|
|
3
|
+
import { M as MemonizedGridItem } from "./subcomponents/Griditem/index.b2342897.js";
|
|
7
4
|
import { styled, alpha } from "@mui/material/styles";
|
|
8
|
-
import { r as react_resizable_css } from "../../react-resizable.
|
|
5
|
+
import { r as react_resizable_css } from "../../react-resizable.c07d63fb.js";
|
|
9
6
|
import { generateUtilityClasses } from "@mui/material";
|
|
10
7
|
import "@mui/base";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { throttle } from "lodash";
|
|
10
|
+
import { useResizeObserver } from "@m4l/graphics";
|
|
11
11
|
const COMPONENT_CLASS_NAME = "M4LGridLayout";
|
|
12
12
|
const DEFAULT_COLS = 12;
|
|
13
13
|
const DEFAULT_ROW_HEIGHT = 20;
|
|
@@ -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;
|
|
@@ -1196,7 +1199,7 @@ function SizeProvider(ComposedComponent) {
|
|
|
1196
1199
|
};
|
|
1197
1200
|
}
|
|
1198
1201
|
export {
|
|
1199
|
-
|
|
1202
|
+
isEqualLayouts as A,
|
|
1200
1203
|
DEFAULT_COLS as D,
|
|
1201
1204
|
GridLayout as G,
|
|
1202
1205
|
SizeProvider as S,
|
|
@@ -1225,5 +1228,5 @@ export {
|
|
|
1225
1228
|
isEqualLayout as w,
|
|
1226
1229
|
DEFAULT_RESPONSIVE_BREAKPOINTS as x,
|
|
1227
1230
|
DEFAULT_RESPONSIVE_COLS as y,
|
|
1228
|
-
|
|
1231
|
+
noop as z
|
|
1229
1232
|
};
|
package/components/GridLayout/subcomponents/Griditem/{index.c7a33781.js → index.b2342897.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo } from "react";
|
|
2
|
-
import { D as DraggableCore_1 } from "../../../../react-draggable.
|
|
3
|
-
import { R as Resizable } from "../../../../react-resizable.
|
|
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.
|
|
2
|
+
import { D as DraggableCore_1 } from "../../../../react-draggable.e4725f3a.js";
|
|
3
|
+
import { R as Resizable } from "../../../../react-resizable.c07d63fb.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.1421f0d4.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { d as deepEqual } from "../../../../node_modules.
|
|
6
|
+
import { d as deepEqual } from "../../../../node_modules.b55d04d9.js";
|
|
7
7
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
8
8
|
function GridItem(props) {
|
|
9
9
|
const {
|
|
@@ -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.f459804c.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
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 noop, A as isEqualLayouts, G as GridLayout } from "../../index.1421f0d4.js";
|
|
2
2
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
3
3
|
import { useFirstRender } from "@m4l/graphics";
|
|
4
|
-
import { d as deepEqual } from "../../../../node_modules.
|
|
4
|
+
import { d as deepEqual } from "../../../../node_modules.b55d04d9.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
function getBreakpointFromWidth(breakpoints, width) {
|
|
7
7
|
const sorted = sortBreakpoints(breakpoints);
|
|
@@ -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;
|
|
@@ -34,6 +34,14 @@ export declare type ResponsiveState = {
|
|
|
34
34
|
* "contaierPadding" padding del contenedor para el brekpoint actual
|
|
35
35
|
**/
|
|
36
36
|
contaierPadding: Margin;
|
|
37
|
+
/**
|
|
38
|
+
* colapsedHeight: Valor de altura de un grid item colapsado.
|
|
39
|
+
*/
|
|
40
|
+
colapsedHeight: number;
|
|
41
|
+
/**
|
|
42
|
+
* colapsedHeight: Valor de altura de un grid item colapsado.
|
|
43
|
+
*/
|
|
44
|
+
rowHeight: number;
|
|
37
45
|
};
|
|
38
46
|
export declare type OnLayoutChangeCallback = (layout: Layout, layouts: Layouts) => void;
|
|
39
47
|
export declare type LayoutItemResponsive = {
|
|
@@ -81,6 +89,14 @@ export declare type RefResponsiveState = {
|
|
|
81
89
|
* "containerHeight" altura del contendor offsetParent.height (No incluye el contenido oculto )
|
|
82
90
|
*/
|
|
83
91
|
containerHeight: number;
|
|
92
|
+
/**
|
|
93
|
+
* colapsedHeight: Valor de altura de un grid item colapsado.
|
|
94
|
+
*/
|
|
95
|
+
colapsedHeight: number;
|
|
96
|
+
/**
|
|
97
|
+
* colapsedHeight: Valor de altura de un grid item colapsado.
|
|
98
|
+
*/
|
|
99
|
+
rowHeight: number;
|
|
84
100
|
};
|
|
85
101
|
export declare type ContainerChangeEvent = {
|
|
86
102
|
containerWidth: number;
|
|
@@ -92,7 +108,7 @@ export declare type OnContainerChange = (event: ContainerChangeEvent) => void;
|
|
|
92
108
|
export declare type BreakpointCols = {
|
|
93
109
|
[key: Breakpoint]: number;
|
|
94
110
|
};
|
|
95
|
-
export interface ResponsiveProps extends CoreProps {
|
|
111
|
+
export interface ResponsiveProps extends Omit<CoreProps, 'colapsedHeight' | 'rowHeight'> {
|
|
96
112
|
/**
|
|
97
113
|
* "breakpoint" permite configurar a traves de prop el breakpoint a mostrar,
|
|
98
114
|
* por encima del que puede estar detectando en el contenedor root del gridLayout
|
|
@@ -143,6 +159,11 @@ export interface ResponsiveProps extends CoreProps {
|
|
|
143
159
|
* "onLayoutChange" handler que recibirá los cambios asociados a las medidas del contenedor, breakpoint y columnas
|
|
144
160
|
*/
|
|
145
161
|
onContainerChange?: OnContainerChange;
|
|
162
|
+
/**
|
|
163
|
+
* colapsedHeight: Valor de altura de los grid items colapsados.
|
|
164
|
+
*/
|
|
165
|
+
colapsedHeight: number | Record<string, number>;
|
|
166
|
+
rowHeight: number | Record<string, number>;
|
|
146
167
|
}
|
|
147
168
|
/**
|
|
148
169
|
* "ResponsiveInitialStateProps" interfaz usada en la inicialización y conciliación del primer estado del componente
|
|
@@ -174,7 +174,18 @@ export declare type GridLayoutRefState = {
|
|
|
174
174
|
* "oldResizeItem" snapshot de layoutItem cuando inicia el resizzing
|
|
175
175
|
*/
|
|
176
176
|
oldResizeItem?: LayoutItem;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
177
180
|
zIndexes: string[];
|
|
181
|
+
/**
|
|
182
|
+
* colapsedHeight
|
|
183
|
+
*/
|
|
184
|
+
colapsedHeight: number;
|
|
185
|
+
/**
|
|
186
|
+
* rowHeight
|
|
187
|
+
*/
|
|
188
|
+
rowHeight: number;
|
|
178
189
|
};
|
|
179
190
|
export declare type Layout = Array<LayoutItem>;
|
|
180
191
|
/** Tipos de datos para el responsive que es nec */
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
-
import "react";
|
|
3
|
-
import "@m4l/core";
|
|
4
|
-
import "../Icon/index.a70c4729.js";
|
|
5
|
-
import "clsx";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import "../mui_extended/IconButton/index.76624519.js";
|
|
8
|
-
import "@m4l/graphics";
|
|
9
|
-
import "../mui_extended/Accordion/index.a706b12f.js";
|
|
10
|
-
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
|
-
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
12
|
-
import "react-router-dom";
|
|
13
|
-
import "@mui/material/Button";
|
|
14
|
-
import "../mui_extended/Button/index.f79eb74e.js";
|
|
15
|
-
import "../mui_extended/CheckBox.38abccd8.js";
|
|
16
|
-
import "../mui_extended/Badge/index.b09524fe.js";
|
|
17
|
-
import "../Image/index.c18ebf5a.js";
|
|
18
|
-
import "@mui/lab";
|
|
19
|
-
import "../mui_extended/MenuActions/index.570fbae0.js";
|
|
20
|
-
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
21
|
-
import "../mui_extended/Stack/index.0e53197c.js";
|
|
22
|
-
import "../mui_extended/Tab/index.d0302c81.js";
|
|
23
|
-
import "../mui_extended/Pager/index.ac2a21f0.js";
|
|
24
|
-
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
25
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { T as Typography } from "../mui_extended/Typography/index.379dd374.js";
|
|
26
5
|
const HelperTextRoot = styled("div")(({
|
|
27
6
|
theme
|
|
28
7
|
}) => ({
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { useState, useEffect } from "react";
|
|
2
|
-
import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
1
|
import { useEnvironment } from "@m4l/core";
|
|
6
|
-
import {
|
|
2
|
+
import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
3
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.5fd648d2.js";
|
|
7
4
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { useState, useEffect } from "react";
|
|
8
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
+
import clsx from "clsx";
|
|
9
|
+
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
9
10
|
const IconRoot = styled("div")(({
|
|
10
11
|
theme
|
|
11
12
|
}) => ({
|
|
@@ -67,6 +68,7 @@ function Icon(props) {
|
|
|
67
68
|
className
|
|
68
69
|
} = props;
|
|
69
70
|
const [resource, setResource] = useState(testingProps?.resource || void 0);
|
|
71
|
+
const isDesktop = useResponsiveDesktop();
|
|
70
72
|
useEffect(() => {
|
|
71
73
|
let mounted = true;
|
|
72
74
|
(async function networkOperation() {
|
|
@@ -87,7 +89,7 @@ function Icon(props) {
|
|
|
87
89
|
};
|
|
88
90
|
}, [src]);
|
|
89
91
|
const ownerState = {
|
|
90
|
-
size,
|
|
92
|
+
size: isDesktop ? size : "medium",
|
|
91
93
|
rotationAngle
|
|
92
94
|
};
|
|
93
95
|
const classes = useUtilityClasses(ownerState);
|