@m4l/components 0.1.84 → 0.1.86
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 +25 -4
- package/components/AccountPopover/{index.bbeb9142.js → index.09f33fee.js} +29 -30
- package/components/AppBar/{index.43f8b54f.js → index.4fac1368.js} +9 -8
- package/components/CommonActions/components/ActionCancel/{index.29517521.js → index.d995d986.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.89f1ac8e.js → index.48e066b3.js} +17 -16
- package/components/CommonActions/components/ActionFormIntro/{index.bbc35e74.js → index.cc97ed0a.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.a9420126.js → index.98eb4b3b.js} +2 -2
- package/components/CommonActions/components/Actions/{index.e70e8779.js → index.99a8e55e.js} +15 -14
- package/components/CommonActions/index.d.ts +1 -0
- package/components/DataGrid/{index.1d0a3dec.js → index.d38e3b49.js} +8 -7
- package/components/DataGrid/subcomponents/Actions/{index.a8fc9f6a.js → index.7015aadc.js} +22 -20
- package/components/DynamicFilter/classes/types.d.ts +1 -0
- package/components/DynamicFilter/contexts/DynamicFilterContext/index.d.ts +6 -2
- package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +4 -0
- package/components/DynamicFilter/{index.912679cc.js → index.fddefc23.js} +44 -31
- package/components/GridLayout/{index.c55f16eb.js → index.2383aaf9.js} +69 -10
- package/components/GridLayout/index.d.ts +1 -1
- package/components/GridLayout/subcomponents/Griditem/{index.6c68811f.js → index.58168132.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.a6e33b8d.js → index.a6642437.js} +1 -1
- package/components/HelperText/{index.a47ff233.js → index.bbbe24c9.js} +9 -8
- package/components/Icon/{index.d1402200.js → index.435df215.js} +1 -1
- package/components/LanguagePopover/{index.807f5272.js → index.7d2ccfe4.js} +9 -8
- package/components/ModalDialog/{index.42e804cf.js → index.b66c43e7.js} +4 -4
- package/components/NavLink/{index.ff5a939c.js → index.abbcb9b2.js} +9 -8
- package/components/NoItemSelected/classes/constants.d.ts +1 -0
- package/components/NoItemSelected/classes/index.d.ts +6 -0
- package/components/NoItemSelected/classes/types.d.ts +6 -0
- package/components/NoItemSelected/{index.23dfc897.js → index.a2807715.js} +46 -31
- package/components/NoItemSelected/index.d.ts +2 -1
- package/components/NoItemSelected/types.d.ts +4 -0
- package/components/ObjectLogs/{index.dc02715d.js → index.ad313913.js} +22 -19
- package/components/PaperForm/{index.249c2404.js → index.ad703ab6.js} +1 -1
- package/components/Period/{index.e129cdec.js → index.32d475b8.js} +16 -15
- package/components/PropertyValue/{index.93e40532.js → index.d52295d9.js} +1 -1
- package/components/ScrollBar/classes/constants.d.ts +1 -0
- package/components/ScrollBar/classes/index.d.ts +6 -0
- package/components/ScrollBar/classes/types.d.ts +6 -0
- package/components/ScrollBar/index.65bb2930.js +121 -0
- package/components/SideBar/{index.327679a6.js → index.387a2fa1.js} +111 -50
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavItemRoot/type.d.ts +5 -0
- package/components/areas/components/AreasAdmin/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/classes/types.d.ts +2 -0
- package/components/areas/components/AreasAdmin/{index.8ab71eb9.js → index.23a09c81.js} +105 -56
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/classes/types.d.ts +1 -1
- package/components/areas/components/AreasViewer/{index.933e506b.js → index.68eb0f6b.js} +72 -126
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/subcomponents/ResizeHandle/index.d.ts +4 -0
- package/components/areas/components/index.296bc2a4.js +31 -0
- package/components/areas/contexts/AreasContext/helper.d.ts +3 -3
- package/components/areas/contexts/AreasContext/{index.230d1584.js → index.8af3058c.js} +91 -78
- package/components/areas/contexts/AreasContext/types.d.ts +20 -8
- package/components/areas/contexts/{index.f494e241.js → index.41c24465.js} +1 -1
- package/components/areas/hooks/useAreas/{index.b8449343.js → index.d1cf9820.js} +1 -1
- package/components/areas/{index.32db4fa7.js → index.fd46ec65.js} +13 -12
- package/components/formatters/BooleanFormatter/{index.b2f02bc4.js → index.14cfcbc7.js} +1 -1
- package/components/formatters/{index.f9ad88b4.js → index.b574dda9.js} +2 -2
- package/components/hook-form/RHFAutocomplete/{index.d5afb409.js → index.60c6f592.js} +10 -9
- package/components/hook-form/RHFAutocompleteAsync/{index.a4f00088.js → index.9a40fb06.js} +1 -1
- package/components/hook-form/RHFCheckbox/{index.9bf6edb0.js → index.da4ebb03.js} +10 -9
- package/components/hook-form/RHFDateTime/{index.a2c1ed2c.js → index.c56219ea.js} +10 -9
- package/components/hook-form/RHFPeriod/{index.b5204ce2.js → index.ee6a3d61.js} +2 -2
- package/components/hook-form/RHFTextField/{index.5a0fa776.js → index.413a74ca.js} +3 -3
- package/components/hook-form/RHFUpload/{index.b36539d6.js → index.03faa7f0.js} +10 -9
- package/components/modal/{WindowBase.37158e8d.js → WindowBase.0eea1a27.js} +27 -13
- package/components/modal/{WindowConfirm.a68aa0f1.js → WindowConfirm.6896f0aa.js} +25 -24
- package/components/modal/{index.6f281ef8.js → index.6cdf65c9.js} +17 -16
- package/components/modal/index.d.ts +1 -1
- package/components/mui_extended/Accordion/{index.46771196.js → index.d15e51bf.js} +3 -3
- package/components/mui_extended/Badge/classes/constants.d.ts +1 -1
- package/components/mui_extended/Badge/{index.cad260fe.js → index.8c2b8b66.js} +1 -1
- package/components/mui_extended/Button/{index.40af964e.js → index.f79eb74e.js} +2 -1
- package/components/mui_extended/IconButton/{index.62aea582.js → index.d88a3f2e.js} +1 -1
- package/components/mui_extended/MenuActions/{index.2493b1b1.js → index.c53370f6.js} +7 -4
- package/components/mui_extended/MenuActions/types.d.ts +1 -0
- package/components/mui_extended/Pager/{index.a7f87c96.js → index.d6c87c44.js} +1 -1
- package/components/mui_extended/Stack/Stack.d.ts +3 -0
- package/components/mui_extended/Stack/classes/constants.d.ts +1 -0
- package/components/mui_extended/Stack/classes/index.d.ts +6 -0
- package/components/mui_extended/Stack/classes/types.d.ts +6 -0
- package/components/mui_extended/Stack/index.0e53197c.js +39 -0
- package/components/mui_extended/Stack/index.d.ts +2 -0
- package/components/mui_extended/Stack/types.d.ts +2 -0
- package/components/mui_extended/Tab/{index.756fe693.js → index.97d04d6b.js} +42 -9
- package/components/mui_extended/Tabs/Tabs.d.ts +3 -0
- package/components/mui_extended/Tabs/classes/constants.d.ts +1 -0
- package/components/mui_extended/Tabs/classes/index.d.ts +6 -0
- package/components/mui_extended/Tabs/classes/types.d.ts +6 -0
- package/components/mui_extended/Tabs/index.d.ts +1 -0
- package/components/mui_extended/{index.ba27649e.js → index.0d5b8e73.js} +9 -8
- package/components/mui_extended/index.d.ts +2 -0
- package/contexts/ModalContext/{index.51da83de.js → index.5c908fe3.js} +1 -1
- package/contexts/RHFormContext/dictionary.d.ts +3 -0
- package/contexts/RHFormContext/{index.b9266262.js → index.ea2758ed.js} +6 -2
- package/contexts/index.d.ts +1 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/useFormAddEdit/dictionary.d.ts +1 -0
- package/hooks/useFormAddEdit/index.16475afe.js +111 -0
- package/hooks/useFormAddEdit/index.d.ts +1 -0
- package/hooks/useModal/{index.7611bf21.js → index.2387ea76.js} +1 -1
- package/index.js +71 -67
- package/package.json +1 -1
- package/{vendor.1af105d6.js → vendor.7751caf6.js} +62 -62
- package/components/GridLayout/subcomponents/SizeProvider/index.bfa05dfa.js +0 -62
- package/components/ScrollBar/index.d4410cb5.js +0 -72
- package/components/areas/components/index.9e48d8ff.js +0 -30
- package/hooks/useFormAddEdit/index.15de3ba8.js +0 -49
- /package/components/GridLayout/subcomponents/{SizeProvider → WidthProvider}/index.d.ts +0 -0
- /package/components/areas/components/{AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header → AreasAdmin}/subcomponents/PanelWindowPopUp/index.d.ts +0 -0
- /package/components/areas/components/{AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header → AreasAdmin}/subcomponents/PanelWindowPopUp/types.d.ts +0 -0
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
import { shallow } from "zustand/shallow";
|
|
2
|
-
import { S as ScrollBar } from "../ScrollBar/index.
|
|
2
|
+
import { S as ScrollBar } from "../ScrollBar/index.65bb2930.js";
|
|
3
3
|
import { useContext, useMemo, useEffect, createContext, useRef, createElement, useState, useCallback } from "react";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
6
6
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
7
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
7
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.d88a3f2e.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.7751caf6.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.c53370f6.js";
|
|
13
13
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
14
|
-
import { I as Icon } from "../Icon/index.
|
|
14
|
+
import { I as Icon } from "../Icon/index.435df215.js";
|
|
15
15
|
import { styled, useTheme } from "@mui/material/styles";
|
|
16
|
-
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.
|
|
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.
|
|
16
|
+
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.ea2758ed.js";
|
|
17
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.99a8e55e.js";
|
|
18
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.d995d986.js";
|
|
19
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.98eb4b3b.js";
|
|
20
20
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
21
21
|
import "@mui/material/Button";
|
|
22
|
-
import "../mui_extended/Button/index.
|
|
23
|
-
import "../../contexts/ModalContext/index.
|
|
22
|
+
import "../mui_extended/Button/index.f79eb74e.js";
|
|
23
|
+
import "../../contexts/ModalContext/index.5c908fe3.js";
|
|
24
24
|
import "../../react-draggable.7abb5d0a.js";
|
|
25
25
|
import "../Resizeable/index.9a9c79a4.js";
|
|
26
|
-
import "../modal/index.
|
|
26
|
+
import "../modal/index.6cdf65c9.js";
|
|
27
27
|
import "../Image/index.c18ebf5a.js";
|
|
28
|
-
import "../mui_extended/Accordion/index.
|
|
28
|
+
import "../mui_extended/Accordion/index.d15e51bf.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";
|
|
32
32
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
33
|
-
import "../mui_extended/Badge/index.
|
|
33
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
34
34
|
import "@mui/lab";
|
|
35
|
-
import "../mui_extended/
|
|
36
|
-
import "../mui_extended/Tab/index.
|
|
35
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
36
|
+
import "../mui_extended/Tab/index.97d04d6b.js";
|
|
37
|
+
import "../mui_extended/Pager/index.d6c87c44.js";
|
|
37
38
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
38
39
|
import { useStore, createStore } from "zustand";
|
|
39
|
-
import "../areas/contexts/AreasContext/index.
|
|
40
|
-
import "../areas/components/AreasAdmin/index.
|
|
41
|
-
import "../areas/components/AreasViewer/index.
|
|
40
|
+
import "../areas/contexts/AreasContext/index.8af3058c.js";
|
|
41
|
+
import "../areas/components/AreasAdmin/index.23a09c81.js";
|
|
42
|
+
import "../areas/components/AreasViewer/index.68eb0f6b.js";
|
|
42
43
|
import "../LinearProgressIndeterminate/index.60dabc06.js";
|
|
43
44
|
import "../areas/contexts/WindowToolsMFContext/index.8f3e2a04.js";
|
|
44
45
|
import "../areas/contexts/DynamicMFParmsContext/index.1607c78e.js";
|
|
@@ -46,19 +47,19 @@ import { unstable_composeClasses } from "@mui/base";
|
|
|
46
47
|
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.c43a95f4.js";
|
|
47
48
|
import { devtools } from "zustand/middleware";
|
|
48
49
|
import { immer } from "zustand/middleware/immer";
|
|
49
|
-
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
50
|
+
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.60c6f592.js";
|
|
50
51
|
import "lodash/debounce";
|
|
51
|
-
import "../hook-form/RHFAutocompleteAsync/index.
|
|
52
|
-
import "../hook-form/RHFCheckbox/index.
|
|
53
|
-
import "../HelperText/index.
|
|
52
|
+
import "../hook-form/RHFAutocompleteAsync/index.9a40fb06.js";
|
|
53
|
+
import "../hook-form/RHFCheckbox/index.da4ebb03.js";
|
|
54
|
+
import "../HelperText/index.bbbe24c9.js";
|
|
54
55
|
import "@mui/x-date-pickers";
|
|
55
|
-
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.
|
|
56
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
57
|
-
import "../hook-form/RHFPeriod/index.
|
|
58
|
-
import "../Period/index.
|
|
56
|
+
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.c56219ea.js";
|
|
57
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.413a74ca.js";
|
|
58
|
+
import "../hook-form/RHFPeriod/index.ee6a3d61.js";
|
|
59
|
+
import "../Period/index.32d475b8.js";
|
|
59
60
|
import "lodash/isString";
|
|
60
61
|
import "react-dropzone";
|
|
61
|
-
import "../hook-form/RHFUpload/index.
|
|
62
|
+
import "../hook-form/RHFUpload/index.03faa7f0.js";
|
|
62
63
|
import * as Yup from "yup";
|
|
63
64
|
const COMPONENT_PREFIX = "M4LDynamicFilter";
|
|
64
65
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
@@ -116,11 +117,12 @@ const dynamicFilterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
|
116
117
|
"inEdition",
|
|
117
118
|
"isDirty",
|
|
118
119
|
"isInvalid",
|
|
119
|
-
"noSetted"
|
|
120
|
+
"noSetted",
|
|
121
|
+
"isEmpty"
|
|
120
122
|
]);
|
|
121
123
|
const useUtilityClasses = (ownerState) => {
|
|
122
124
|
const slots = {
|
|
123
|
-
root: ["root", ownerState.inEdition && "inEdition", ownerState.isDirty && "isDirty", !ownerState.isValid && "isInvalid", ownerState.isMobile && "isMobile", ownerState.isSkeleton && "isSkeleton"],
|
|
125
|
+
root: ["root", ownerState.inEdition && "inEdition", ownerState.isDirty && "isDirty", !ownerState.isValid && "isInvalid", ownerState.isMobile && "isMobile", ownerState.isSkeleton && "isSkeleton", ownerState.isEmpty && "isEmpty"],
|
|
124
126
|
filterButton: ["filterButton"],
|
|
125
127
|
containerFistRow: ["containerFistRow"],
|
|
126
128
|
containerInputFilter: ["containerInputFilter"],
|
|
@@ -897,6 +899,8 @@ const createAreaStore = (initProps) => {
|
|
|
897
899
|
initialFiltersApplyed,
|
|
898
900
|
state.actions.getFieldByName
|
|
899
901
|
);
|
|
902
|
+
state.ownerState.isEmpty = state.applyedFilters.length > 0 ? false : true;
|
|
903
|
+
updateOwnerStateClasses(state);
|
|
900
904
|
updateAutomatic(state);
|
|
901
905
|
});
|
|
902
906
|
},
|
|
@@ -916,6 +920,10 @@ const createAreaStore = (initProps) => {
|
|
|
916
920
|
);
|
|
917
921
|
if (index_to_remove > -1) {
|
|
918
922
|
state.applyedFilters.splice(index_to_remove, 1);
|
|
923
|
+
if (state.applyedFilters.length === 0) {
|
|
924
|
+
state.ownerState.isEmpty = true;
|
|
925
|
+
updateOwnerStateClasses(state);
|
|
926
|
+
}
|
|
919
927
|
updateAutomatic(state);
|
|
920
928
|
}
|
|
921
929
|
});
|
|
@@ -971,6 +979,10 @@ const createAreaStore = (initProps) => {
|
|
|
971
979
|
addFilter: (newFilter) => {
|
|
972
980
|
set((state) => {
|
|
973
981
|
state.applyedFilters.push(newFilter);
|
|
982
|
+
if (state.applyedFilters.length > 0) {
|
|
983
|
+
state.ownerState.isEmpty = false;
|
|
984
|
+
updateOwnerStateClasses(state);
|
|
985
|
+
}
|
|
974
986
|
updateAutomatic(state);
|
|
975
987
|
});
|
|
976
988
|
},
|
|
@@ -1058,7 +1070,8 @@ function DynamicFilterProvider(props) {
|
|
|
1058
1070
|
isDirty: !automatic,
|
|
1059
1071
|
inEdition: false,
|
|
1060
1072
|
isValid: true,
|
|
1061
|
-
isMobile: !isDesktop
|
|
1073
|
+
isMobile: !isDesktop,
|
|
1074
|
+
isEmpty: true
|
|
1062
1075
|
}
|
|
1063
1076
|
});
|
|
1064
1077
|
dynamicFilterStoreRef.current.getState().actions.init(initialApplyedFilters);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useState, useRef, useEffect, useCallback } from "react";
|
|
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.58168132.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { throttle } from "lodash";
|
|
6
|
+
import { useResizeObserver } from "@m4l/graphics";
|
|
5
7
|
import { styled, alpha } from "@mui/material/styles";
|
|
6
8
|
import { r as react_resizable_css } from "../../react-resizable.ba08699a.js";
|
|
7
9
|
import { generateUtilityClasses } from "@mui/material";
|
|
8
10
|
import "@mui/base";
|
|
9
|
-
import "@m4l/graphics";
|
|
10
|
-
import "lodash";
|
|
11
11
|
const COMPONENT_CLASS_NAME = "M4LGridLayout";
|
|
12
12
|
const DEFAULT_COLS = 12;
|
|
13
13
|
const DEFAULT_ROW_HEIGHT = 20;
|
|
@@ -453,8 +453,8 @@ function calcGridItemPosition(positionParams, x, y, w, h, maximize, state) {
|
|
|
453
453
|
out.height = Math.round(state.resizing.height);
|
|
454
454
|
} else {
|
|
455
455
|
if (maximize === "maximize_me") {
|
|
456
|
-
out.width = positionParams.containerWidth - 2 * containerPadding[0] -
|
|
457
|
-
out.height = positionParams.containerHeight - 2 * containerPadding[1] -
|
|
456
|
+
out.width = positionParams.containerWidth - 2 * containerPadding[0] - 0;
|
|
457
|
+
out.height = positionParams.containerHeight - 2 * containerPadding[1] - 0;
|
|
458
458
|
} else {
|
|
459
459
|
out.width = calcGridItemWHPx(w, colWidth, containerMargin[0]);
|
|
460
460
|
out.height = calcGridItemWHPx(h, rowHeight, containerMargin[1]);
|
|
@@ -551,8 +551,8 @@ const GridLayoutRoot = styled("div")`
|
|
|
551
551
|
}
|
|
552
552
|
|
|
553
553
|
.${gridLayoutClasses.gridItemRoot}.${gridLayoutClasses.gridItemPlaceholder} {
|
|
554
|
-
background:
|
|
555
|
-
opacity: 0.
|
|
554
|
+
background: ${(props) => props.theme.palette.state.toneOp};
|
|
555
|
+
opacity: 0.5;
|
|
556
556
|
transition-duration: 100ms;
|
|
557
557
|
z-index: 3000;
|
|
558
558
|
-webkit-user-select: none;
|
|
@@ -961,6 +961,11 @@ function GridLayout(props) {
|
|
|
961
961
|
onResize(newLayout, oldResizeItem, li, newPlaceholder, e, node);
|
|
962
962
|
} catch (error) {
|
|
963
963
|
}
|
|
964
|
+
console.log("GridLayout onresize");
|
|
965
|
+
if (e.type !== "touchmove") {
|
|
966
|
+
e.preventDefault();
|
|
967
|
+
}
|
|
968
|
+
e.stopPropagation();
|
|
964
969
|
}, []);
|
|
965
970
|
const localOnResizeStop = useCallback((i, _w, _h, {
|
|
966
971
|
e,
|
|
@@ -1126,12 +1131,66 @@ function GridLayout(props) {
|
|
|
1126
1131
|
children: [finalLayoutRender.map((li) => processGridItem(li, !!currentState.mounted)), placeholder()]
|
|
1127
1132
|
});
|
|
1128
1133
|
}
|
|
1134
|
+
function SizeProvider(ComposedComponent) {
|
|
1135
|
+
return (props) => {
|
|
1136
|
+
const {
|
|
1137
|
+
measureBeforeMount = true,
|
|
1138
|
+
...rest
|
|
1139
|
+
} = props;
|
|
1140
|
+
const refMounted = useRef(false);
|
|
1141
|
+
const [currentState, setCurrentState] = useState({
|
|
1142
|
+
mounted: false,
|
|
1143
|
+
width: DEFAULT_CONTAINER_WIDTH,
|
|
1144
|
+
height: DEFAULT_CONTAINER_HEIGHT
|
|
1145
|
+
});
|
|
1146
|
+
const onWindowResizeMemo = useMemo(() => () => {
|
|
1147
|
+
const node = elementRef.current;
|
|
1148
|
+
console.log(`oooo`);
|
|
1149
|
+
if (node instanceof HTMLElement && node.clientWidth) {
|
|
1150
|
+
console.log(`onWindowResizeMemo w: ${node.offsetWidth} y:${node.offsetHeight}`);
|
|
1151
|
+
setCurrentState((prev) => ({
|
|
1152
|
+
...prev,
|
|
1153
|
+
width: node.clientWidth,
|
|
1154
|
+
height: node.offsetHeight
|
|
1155
|
+
}));
|
|
1156
|
+
}
|
|
1157
|
+
}, []);
|
|
1158
|
+
const throttleResize = throttle(onWindowResizeMemo, THROTTLE_RESIZE_TIMEOUT, {
|
|
1159
|
+
leading: false,
|
|
1160
|
+
trailing: true
|
|
1161
|
+
});
|
|
1162
|
+
const onResize = useCallback((_target) => {
|
|
1163
|
+
throttleResize();
|
|
1164
|
+
}, []);
|
|
1165
|
+
const elementRef = useResizeObserver(onResize);
|
|
1166
|
+
useEffect(() => {
|
|
1167
|
+
setCurrentState((prev) => ({
|
|
1168
|
+
...prev,
|
|
1169
|
+
mounted: true
|
|
1170
|
+
}));
|
|
1171
|
+
refMounted.current = true;
|
|
1172
|
+
onWindowResizeMemo();
|
|
1173
|
+
}, []);
|
|
1174
|
+
if (measureBeforeMount && !currentState.mounted) {
|
|
1175
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1176
|
+
className: clsx(props.className, COMPONENT_CLASS_NAME),
|
|
1177
|
+
style: props.style,
|
|
1178
|
+
ref: elementRef
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
return /* @__PURE__ */ jsx(ComposedComponent, {
|
|
1182
|
+
innerRef: elementRef,
|
|
1183
|
+
containerWidth: currentState.width,
|
|
1184
|
+
containerHeight: currentState.height,
|
|
1185
|
+
...rest
|
|
1186
|
+
});
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1129
1189
|
export {
|
|
1130
1190
|
noop as A,
|
|
1131
|
-
COMPONENT_CLASS_NAME as C,
|
|
1132
1191
|
DEFAULT_COLS as D,
|
|
1133
1192
|
GridLayout as G,
|
|
1134
|
-
|
|
1193
|
+
SizeProvider as S,
|
|
1135
1194
|
calcGridItemWHPx as a,
|
|
1136
1195
|
calcGridColWidth as b,
|
|
1137
1196
|
calcXY as c,
|
|
@@ -4,4 +4,4 @@ export { addLayoutItemToBreakPoints, addLayoutItemToBreakPointIfNoExists, cloneL
|
|
|
4
4
|
export { isEqualLayouts, isEqualLayout } from './utils';
|
|
5
5
|
export type { GridLayoutProps, LayoutItemRenderProps, Layout, LayoutItem, BaseLayoutItem, Layouts, } from './types';
|
|
6
6
|
export type { ContainerChangeEvent } from './subcomponents/Responsive/types';
|
|
7
|
-
export { SizeProvider } from './subcomponents/
|
|
7
|
+
export { SizeProvider } from './subcomponents/WidthProvider';
|
package/components/GridLayout/subcomponents/Griditem/{index.6c68811f.js → index.58168132.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.2383aaf9.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";
|
package/components/GridLayout/subcomponents/Responsive/{index.a6e33b8d.js → index.a6642437.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, o as DEFAULT_COLAPSED_HEIGHT, i as DEFAULT_ROW_HEIGHT, z as isEqualLayouts, G as GridLayout, A as noop } from "../../index.
|
|
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, o as DEFAULT_COLAPSED_HEIGHT, i as DEFAULT_ROW_HEIGHT, z as isEqualLayouts, G as GridLayout, A as noop } from "../../index.2383aaf9.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";
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@m4l/core";
|
|
4
|
-
import "../Icon/index.
|
|
4
|
+
import "../Icon/index.435df215.js";
|
|
5
5
|
import "clsx";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import "../mui_extended/IconButton/index.
|
|
7
|
+
import "../mui_extended/IconButton/index.d88a3f2e.js";
|
|
8
8
|
import "@m4l/graphics";
|
|
9
|
-
import "../mui_extended/Accordion/index.
|
|
9
|
+
import "../mui_extended/Accordion/index.d15e51bf.js";
|
|
10
10
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
11
11
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
12
12
|
import "react-router-dom";
|
|
13
13
|
import "@mui/material/Button";
|
|
14
|
-
import "../mui_extended/Button/index.
|
|
14
|
+
import "../mui_extended/Button/index.f79eb74e.js";
|
|
15
15
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
16
|
-
import "../mui_extended/Badge/index.
|
|
16
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
17
17
|
import "../Image/index.c18ebf5a.js";
|
|
18
18
|
import "@mui/lab";
|
|
19
|
-
import "../mui_extended/MenuActions/index.
|
|
19
|
+
import "../mui_extended/MenuActions/index.c53370f6.js";
|
|
20
20
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
21
|
-
import "../mui_extended/
|
|
22
|
-
import "../mui_extended/Tab/index.
|
|
21
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
22
|
+
import "../mui_extended/Tab/index.97d04d6b.js";
|
|
23
|
+
import "../mui_extended/Pager/index.d6c87c44.js";
|
|
23
24
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
24
25
|
import { unstable_composeClasses } from "@mui/base";
|
|
25
26
|
const HelperTextRoot = styled("div")(({
|
|
@@ -3,7 +3,7 @@ import { styled, generateUtilityClasses, generateUtilityClass, Skeleton } from "
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useEnvironment } from "@m4l/core";
|
|
6
|
-
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.
|
|
6
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.387a2fa1.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import { unstable_composeClasses } from "@mui/base";
|
|
9
9
|
const IconRoot = styled("div")(({
|
|
@@ -3,25 +3,26 @@ import { styled, generateUtilityClasses, generateUtilityClass, Stack, MenuItem }
|
|
|
3
3
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
4
4
|
import { useLocales } from "@m4l/graphics";
|
|
5
5
|
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
6
|
-
import "../Icon/index.
|
|
6
|
+
import "../Icon/index.435df215.js";
|
|
7
7
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
8
8
|
import "clsx";
|
|
9
9
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
|
-
import "../mui_extended/IconButton/index.
|
|
11
|
-
import "../mui_extended/Accordion/index.
|
|
10
|
+
import "../mui_extended/IconButton/index.d88a3f2e.js";
|
|
11
|
+
import "../mui_extended/Accordion/index.d15e51bf.js";
|
|
12
12
|
import "../mui_extended/Typography/index.443590d6.js";
|
|
13
13
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
14
14
|
import "react-router-dom";
|
|
15
15
|
import "@mui/material/Button";
|
|
16
|
-
import { I as ImageButton } from "../mui_extended/Button/index.
|
|
16
|
+
import { I as ImageButton } from "../mui_extended/Button/index.f79eb74e.js";
|
|
17
17
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
18
18
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
19
|
-
import "../mui_extended/Badge/index.
|
|
19
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
20
20
|
import "@mui/lab";
|
|
21
|
-
import "../mui_extended/MenuActions/index.
|
|
21
|
+
import "../mui_extended/MenuActions/index.c53370f6.js";
|
|
22
22
|
import { P as Popover } from "../mui_extended/Popover/index.9f35d0eb.js";
|
|
23
|
-
import "../mui_extended/
|
|
24
|
-
import "../mui_extended/Tab/index.
|
|
23
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
24
|
+
import "../mui_extended/Tab/index.97d04d6b.js";
|
|
25
|
+
import "../mui_extended/Pager/index.d6c87c44.js";
|
|
25
26
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
26
27
|
import { unstable_composeClasses } from "@mui/base";
|
|
27
28
|
const LanguagePopoverRoot = styled("div")(({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useTheme, Dialog, Paper } from "@mui/material";
|
|
2
2
|
import { c as cjs } from "../../react-draggable.7abb5d0a.js";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.2387ea76.js";
|
|
4
4
|
import { R as ResizeableWindow } from "../Resizeable/index.9a9c79a4.js";
|
|
5
5
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
6
|
-
import { I as Icon } from "../Icon/index.
|
|
6
|
+
import { I as Icon } from "../Icon/index.435df215.js";
|
|
7
7
|
import { useEnvironment } from "@m4l/core";
|
|
8
8
|
import { I as ICONS } from "../areas/icons.8266ccc8.js";
|
|
9
|
-
import { m as modalUtilityClasses } from "../modal/index.
|
|
9
|
+
import { m as modalUtilityClasses } from "../modal/index.6cdf65c9.js";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
11
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.99a8e55e.js";
|
|
12
12
|
const DragabblePaperComponent = (props) => {
|
|
13
13
|
return /* @__PURE__ */ jsx(cjs.exports, {
|
|
14
14
|
handle: ".m4l_draggable_handle",
|
|
@@ -2,25 +2,26 @@ import { NavLink as NavLink$1 } from "react-router-dom";
|
|
|
2
2
|
import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/material";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@m4l/core";
|
|
5
|
-
import "../Icon/index.
|
|
5
|
+
import "../Icon/index.435df215.js";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
9
|
-
import "../mui_extended/IconButton/index.
|
|
9
|
+
import "../mui_extended/IconButton/index.d88a3f2e.js";
|
|
10
10
|
import "@m4l/graphics";
|
|
11
|
-
import "../mui_extended/Accordion/index.
|
|
11
|
+
import "../mui_extended/Accordion/index.d15e51bf.js";
|
|
12
12
|
import { T as Typography } from "../mui_extended/Typography/index.443590d6.js";
|
|
13
13
|
import "../mui_extended/Avatar/index.75e6ed57.js";
|
|
14
14
|
import "@mui/material/Button";
|
|
15
|
-
import "../mui_extended/Button/index.
|
|
15
|
+
import "../mui_extended/Button/index.f79eb74e.js";
|
|
16
16
|
import "../mui_extended/CheckBox.38abccd8.js";
|
|
17
|
-
import "../mui_extended/Badge/index.
|
|
17
|
+
import "../mui_extended/Badge/index.8c2b8b66.js";
|
|
18
18
|
import "../Image/index.c18ebf5a.js";
|
|
19
19
|
import "@mui/lab";
|
|
20
|
-
import "../mui_extended/MenuActions/index.
|
|
20
|
+
import "../mui_extended/MenuActions/index.c53370f6.js";
|
|
21
21
|
import "../mui_extended/Popover/index.9f35d0eb.js";
|
|
22
|
-
import "../mui_extended/
|
|
23
|
-
import "../mui_extended/Tab/index.
|
|
22
|
+
import "../mui_extended/Stack/index.0e53197c.js";
|
|
23
|
+
import "../mui_extended/Tab/index.97d04d6b.js";
|
|
24
|
+
import "../mui_extended/Pager/index.d6c87c44.js";
|
|
24
25
|
import "../mui_extended/Tooltip/index.5a795dcd.js";
|
|
25
26
|
import { unstable_composeClasses } from "@mui/base";
|
|
26
27
|
const componentName = "M4LNavLink";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const componentName = "M4LNoItemSelected";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NoItemSelectedClassesType } from './types';
|
|
2
|
+
export declare const noItemSelectedClasses: NoItemSelectedClassesType;
|
|
3
|
+
export declare function getNoItemSelectedUtilityClass(slot: string): string;
|
|
4
|
+
export declare const useNoItemSelectedUtilityClasses: () => {
|
|
5
|
+
root: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useNoItemSelectedUtilityClasses } from ".";
|
|
2
|
+
export interface NoItemSelectedClassesType {
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type NoItemSelectedClassesKey = keyof NoItemSelectedClassesType;
|
|
6
|
+
export declare type Classes = ReturnType<typeof useNoItemSelectedUtilityClasses>;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { I as Image } from "../Image/index.c18ebf5a.js";
|
|
4
|
-
import { Skeleton } from "@mui/material";
|
|
4
|
+
import { generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
7
8
|
const WrapperNoItemSelected = styled("div")(({
|
|
8
9
|
theme
|
|
9
10
|
}) => ({
|
|
10
|
-
|
|
11
|
-
maxWidth: "400px",
|
|
12
|
-
minWidth: "300px",
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
alignItems: "center",
|
|
16
|
-
justifyContent: "center",
|
|
17
|
-
padding: theme.spacing(3)
|
|
11
|
+
...theme.components?.M4LNoItemSelected?.styleOverrides
|
|
18
12
|
}));
|
|
19
13
|
const Img = styled(Image)(() => ({
|
|
20
14
|
display: "flex"
|
|
@@ -34,7 +28,27 @@ const WrapperSKTNoItemSelected = styled("div")(() => ({
|
|
|
34
28
|
mask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`,
|
|
35
29
|
WebkitMask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`
|
|
36
30
|
}));
|
|
37
|
-
|
|
31
|
+
const componentName = "M4LNoItemSelected";
|
|
32
|
+
generateUtilityClasses(componentName, [
|
|
33
|
+
"root"
|
|
34
|
+
]);
|
|
35
|
+
function getNoItemSelectedUtilityClass(slot) {
|
|
36
|
+
return generateUtilityClass(componentName, slot);
|
|
37
|
+
}
|
|
38
|
+
const useNoItemSelectedUtilityClasses = () => {
|
|
39
|
+
const slots = {
|
|
40
|
+
root: ["root"]
|
|
41
|
+
};
|
|
42
|
+
const composedClasses = unstable_composeClasses(slots, getNoItemSelectedUtilityClass, {});
|
|
43
|
+
return {
|
|
44
|
+
...composedClasses
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
function NoItemSelected(props) {
|
|
48
|
+
const {
|
|
49
|
+
image,
|
|
50
|
+
message
|
|
51
|
+
} = props;
|
|
38
52
|
const {
|
|
39
53
|
host_static_assets,
|
|
40
54
|
environment_assets
|
|
@@ -43,29 +57,30 @@ function NoItemSelected() {
|
|
|
43
57
|
getLabel
|
|
44
58
|
} = useModuleDictionary();
|
|
45
59
|
const isSkeleton = useModuleSkeleton();
|
|
46
|
-
const
|
|
60
|
+
const defaultImage = useMemo(() => {
|
|
47
61
|
return `${host_static_assets}/${environment_assets}/frontend/components/no_item_selected/assets/icons/no_selected.svg`;
|
|
48
62
|
}, []);
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
const classes = useNoItemSelectedUtilityClasses();
|
|
64
|
+
return /* @__PURE__ */ jsx(WrapperNoItemSelected, {
|
|
65
|
+
className: classes.root,
|
|
66
|
+
children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, {
|
|
67
|
+
children: [!image ? /* @__PURE__ */ jsx(Img, {
|
|
68
|
+
src: defaultImage
|
|
69
|
+
}) : /* @__PURE__ */ jsx(Img, {
|
|
70
|
+
src: image
|
|
71
|
+
}), !message ? /* @__PURE__ */ jsx(Label, {
|
|
72
|
+
children: getLabel("no_item_selected.message")
|
|
73
|
+
}) : /* @__PURE__ */ jsx(Label, {
|
|
74
|
+
children: message
|
|
75
|
+
})]
|
|
76
|
+
}) : /* @__PURE__ */ jsx(WrapperSKTNoItemSelected, {
|
|
77
|
+
id: "WrapperSKTNoItemSelected",
|
|
78
|
+
children: /* @__PURE__ */ jsx(Skeleton, {
|
|
79
|
+
variant: "rectangular",
|
|
80
|
+
width: "100%",
|
|
81
|
+
height: "100%"
|
|
59
82
|
})
|
|
60
|
-
})
|
|
61
|
-
}
|
|
62
|
-
return /* @__PURE__ */ jsxs(WrapperNoItemSelected, {
|
|
63
|
-
id: "WrapperNoItemSelected",
|
|
64
|
-
children: [/* @__PURE__ */ jsx(Img, {
|
|
65
|
-
src
|
|
66
|
-
}), /* @__PURE__ */ jsx(Label, {
|
|
67
|
-
children: getLabel("no_item_selected.message")
|
|
68
|
-
})]
|
|
83
|
+
})
|
|
69
84
|
});
|
|
70
85
|
}
|
|
71
86
|
function getNoItemSelectedComponentsDictionary() {
|