@m4l/components 1.0.11 → 1.0.13
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.62b1290b.js → index.f22ad364.js} +4 -4
- package/components/AppBar/{index.b48343d8.js → index.8d90ce87.js} +4 -4
- package/components/CommonActions/components/ActionCancel/index.609a78ca.js +12 -0
- package/components/CommonActions/components/ActionFormCancel/index.a1318eac.js +56 -0
- package/components/CommonActions/components/ActionFormIntro/index.34d569d1.js +33 -0
- package/components/CommonActions/components/ActionIntro/index.ebac0bc1.js +25 -0
- package/components/CommonActions/components/Actions/index.258bf919.js +71 -0
- package/components/DataGrid/constants.e334cd50.js +10 -0
- package/components/DataGrid/formatters/ColumnBooleanFormatter/index.7fb1ebaa.js +26 -0
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.0ee10612.js +22 -0
- package/components/DataGrid/formatters/ColumnDateFormatter/index.e00d0cf2.js +19 -0
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.dce9ada8.js +23 -0
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/index.880e743b.js +14 -0
- package/components/DataGrid/formatters/ColumnPointsFormatter/index.226cc583.js +10 -0
- package/components/DataGrid/formatters/ColumnPriceFormatter/index.bf9d9e60.js +10 -0
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js +36 -0
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index.a87302d1.js +10 -0
- package/components/DataGrid/formatters/index.2c2f0ae4.js +1 -0
- package/components/DataGrid/index.68e19254.js +915 -0
- package/components/DataGrid/subcomponents/Actions/index.6b044e84.js +596 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/index.3f0d9e28.js +76 -0
- package/components/DragResizeWindow/{index.8b3e79f7.js → index.a358789f.js} +6 -3
- package/components/DynamicFilter/constants.1dddd09c.js +31 -0
- package/components/DynamicFilter/dictionary.d28d39ef.js +51 -0
- package/components/DynamicFilter/helpers/{index.609b3915.js → index.11ed2896.js} +4 -4
- package/components/DynamicFilter/{index.0f04f223.js → index.056a99c7.js} +3 -3
- package/components/DynamicFilter/slots/{index.00b68384.js → index.82d7eaf2.js} +31 -31
- package/components/DynamicFilter/store/{index.85a2812f.js → index.9b5121d6.js} +2 -2
- package/components/DynamicFilter/subcomponents/{index.86c6fda2.js → index.778c93cc.js} +217 -15
- package/components/FieldLabel/{index.1577ac9c.js → index.6b6f708e.js} +4 -4
- package/components/GridLayout/{index.656840a5.js → index.68d907d4.js} +34 -11
- package/components/GridLayout/subcomponents/Griditem/{index.b23625d7.js → index.8955a794.js} +3 -4
- package/components/GridLayout/subcomponents/Responsive/{index.97505a31.js → index.45cecca2.js} +1 -2
- package/components/GridLayout/subcomponents/SizeProvider/{index.36cb4139.js → index.7050ac4f.js} +1 -1
- package/components/HelperText/{index.ebb53dac.js → index.09e80920.js} +1 -1
- package/components/Icon/{index.8ecfb193.js → index.83867398.js} +10 -26
- package/components/Image/{index.4a822ede.js → index.19aa7ff5.js} +3 -2
- package/components/LanguagePopover/index.921efd11.js +188 -0
- package/components/{mui_extended/LinearProgress/index.e9455b2e.js → LinearProgressIndeterminate/index.ea9c8518.js} +4 -9
- package/components/LoadingError/{index.9e829e8d.js → index.aee18b24.js} +11 -7
- package/components/MFLoader/{index.29f445e2.js → index.c975666e.js} +8 -4
- package/components/ModalDialog/{index.96c4aba3.js → index.0dd5af28.js} +14 -5
- package/components/NavLink/{index.9f5d5670.js → index.ad039baf.js} +3 -2
- package/components/NoItemSelected/{index.0ae9f28f.js → index.d10603d7.js} +13 -3
- package/components/ObjectLogs/{index.40c5047f.js → index.a3e42b21.js} +26 -8
- package/components/PDFViewer/{index.651cc4b6.js → index.35f68e67.js} +2 -2
- package/components/Page/{index.1d08818c.js → index.f4755eba.js} +18 -2
- package/components/PaperForm/{index.1a8b10d4.js → index.007ef4cf.js} +2 -2
- package/components/Period/{index.236971ae.js → index.9647181b.js} +15 -54
- package/components/PrintingSystem/{index.9fdae551.js → index.a69a9d85.js} +14 -15
- package/components/PrintingSystem/subcomponents/BodyNode/{index.794dbc69.js → index.528fcfbf.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.6bbf7d75.js → index.fbe87257.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.015a2212.js → index.f5adab1d.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.08eeb1d2.js → index.f42ca7dc.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.23995699.js → index.041b9cff.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.3fa36620.js → index.a8140332.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.8b7d43f4.js → index.aabde2bb.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.9856c572.js → index.7f75ca46.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.89b3a4e0.js → index.61babb47.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.dc6e9dc2.js → index.4d0e67a3.js} +1 -1
- package/components/PropertyValue/{index.646a7e8b.js → index.51faabb5.js} +7 -4
- package/components/Resizeable/{index.414ff687.js → index.4f75c0b5.js} +1 -1
- package/components/ScrollBar/{index.1e89bb44.js → index.21bc5025.js} +1 -1
- package/components/SideBar/{index.d221254d.js → index.4075c562.js} +36 -7
- package/components/SplitLayout/{index.7d9edf4e.js → index.15756f0f.js} +3 -1
- package/components/ToastContainer/{index.7f246bbd.js → index.2a7d304e.js} +3 -3
- package/components/animate/variants/index.7a912140.js +1 -0
- package/components/areas/components/AreasAdmin/index.325bac22.js +733 -0
- package/components/areas/components/AreasViewer/index.6e30ec72.js +1072 -0
- package/components/areas/components/index.558684b3.js +1 -0
- package/components/areas/constants.66529246.js +6 -0
- package/components/areas/contexts/AreasContext/{index.0815f278.js → index.3311cbf9.js} +6 -5
- package/components/areas/contexts/DynamicMFParmsContext/{index.37d1d444.js → index.3d9ad0ad.js} +2 -2
- package/components/areas/contexts/WindowToolsMFContext/{index.69d95c15.js → index.992ae7a3.js} +2 -2
- package/components/areas/contexts/index.24025b97.js +1 -0
- package/components/areas/dictionary.08cfc4c9.js +36 -0
- package/components/areas/hooks/index.d9dc1e21.js +1 -0
- package/components/areas/hooks/useAreas/{index.4039e30d.js → index.f81493ef.js} +1 -1
- package/components/areas/hooks/useDynamicMFParameters/{index.03ce6078.js → index.9e09e1e3.js} +1 -1
- package/components/areas/hooks/useWindowToolsMF/{index.09801b66.js → index.2fbae9dc.js} +1 -1
- package/components/areas/icons.8266ccc8.js +26 -0
- package/components/areas/index.4cc6a221.js +22 -0
- package/components/commercial/AppBarCommercial/index.cbd55cf8.js +28 -0
- package/components/commercial/SectionCommercial/index.d22ebbd5.js +57 -0
- package/components/commercial/TopBar/index.410fffa8.js +234 -0
- package/components/{HamburgerMenu/index.6c82741d.js → commercial/index.07638f52.js} +5 -3
- package/components/formatters/BooleanFormatter/index.cbf9cd6e.js +44 -0
- package/components/formatters/DateFormatter/index.2ef6f261.js +43 -0
- package/components/formatters/PointsFormatter/index.d8a4ee54.js +25 -0
- package/components/formatters/PriceFormatter/index.97f75b4b.js +35 -0
- package/components/formatters/UncertaintyFormatter/index.c3ffdebc.js +29 -0
- package/components/formatters/index.63a3e08e.js +117 -0
- package/components/hook-form/HelperError/{index.2ed03a3c.js → index.c0109d5b.js} +1 -1
- package/components/hook-form/RHFAutocomplete/index.2991d444.js +404 -0
- package/components/hook-form/RHFAutocompleteAsync/{index.69f5661d.js → index.d97c727b.js} +2 -3
- package/components/hook-form/RHFCheckbox/{index.13de27db.js → index.b57e3131.js} +4 -4
- package/components/hook-form/RHFColorPicker/{index.66004599.js → index.310f6ff0.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.dfe07e18.js → index.5689a29f.js} +5 -5
- package/components/hook-form/RHFPeriod/{index.d852649b.js → index.019e61ae.js} +4 -4
- package/components/hook-form/RHFTextField/{index.d207efc1.js → index.10e57945.js} +6 -6
- package/components/hook-form/RHFUpload/{index.955a4ba5.js → index.7fd23b2a.js} +5 -5
- package/components/{mui_extended/Tab/index.37d588d6.js → maps/components/GpsTools/index.20f83559.js} +331 -645
- package/components/maps/{index.a1bf63f2.js → components/Map/index.c37f3304.js} +737 -28
- package/components/maps/index.13bb982c.js +7 -0
- package/components/modal/{WindowBase.390b0910.js → WindowBase.cfbb0c9e.js} +4 -4
- package/components/modal/{WindowConfirm.243e1bef.js → WindowConfirm.300bd34b.js} +10 -6
- package/components/modal/{index.5bce430d.js → index.81eb6def.js} +5 -1
- package/components/mui_extended/Accordion/{index.f7a17c83.js → index.0843a609.js} +5 -5
- package/components/mui_extended/Avatar/{index.12b96914.js → index.fb9ad158.js} +1 -1
- package/components/mui_extended/Badge/{index.4737c113.js → index.8beaeefc.js} +1 -1
- package/components/mui_extended/Button/{index.52852c42.js → index.d742e9ee.js} +6 -81
- package/components/mui_extended/{CheckBox/index.01218423.js → CheckBox.21c25705.js} +1 -1
- package/components/mui_extended/IconButton/{index.d5b273e6.js → index.b4532b85.js} +1 -1
- package/components/mui_extended/LinearProgress/index.4092bb69.js +9 -0
- package/components/mui_extended/MenuActions/index.eae97857.js +176 -0
- package/components/mui_extended/Pager/{index.8960227c.js → index.3926c835.js} +22 -40
- package/components/mui_extended/Popover/index.2348fc4f.js +143 -0
- package/components/mui_extended/Tab/index.e911930f.js +135 -0
- package/components/mui_extended/ToggleButton/{index.c441b949.js → index.b834f5f0.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.8a84f25e.js → index.fcd5205c.js} +1 -1
- package/components/mui_extended/Typography/{index.463f613f.js → index.642798f1.js} +1 -1
- package/components/mui_extended/index.b606cd9d.js +1 -0
- package/components/popups/PopupsProvider/{index.d4caacc3.js → index.d7c9efce.js} +1 -1
- package/components/popups/PopupsViewer/{index.42312806.js → index.f3677ab1.js} +10 -6
- package/contexts/ModalContext/{index.5f77a463.js → index.ad1fb73b.js} +1 -1
- package/contexts/RHFormContext/{index.95ebabc9.js → index.bf3a2812.js} +6 -2
- package/hooks/useFormAddEdit/{index.ecb77e67.js → index.6d983cd8.js} +6 -2
- package/hooks/useModal/index.2003c854.js +11 -0
- package/hooks/useTab/index.8d1a6e63.js +12 -0
- package/index.js +328 -273
- package/package.json +1 -1
- package/{react-draggable.0cc9b257.js → react-draggable.1c1ba224.js} +1 -1
- package/{react-resizable.837c446d.js → react-resizable.a59c14f4.js} +2 -2
- package/test/constants_no_mock.86c553a9.js +4 -0
- package/test/{getNameDataTestId.aee44365.js → getNameDataTestId.0faeade8.js} +2 -2
- package/utils/{index.c64c2dd1.js → index.14912462.js} +1 -54
- package/components/CommonActions/index.19f39dca.js +0 -170
- package/components/areas/constants.0d3ba950.js +0 -289
- package/components/areas/dictionary.6168209a.js +0 -266
- package/components/areas/icons.504ec098.js +0 -83
- package/components/maps/components/GpsTools/index.01acaf3e.js +0 -251
- package/components/mui_extended/Popover/index.146ded9e.js +0 -1044
- package/hooks/useModal/index.d14c7e46.js +0 -67
- package/vendor.5b266106.js +0 -3952
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { m as modalUtilityClasses } from "./index.
|
|
2
|
+
import { m as modalUtilityClasses } from "./index.81eb6def.js";
|
|
3
3
|
import { useEnvironment } from "@m4l/core";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { I as Icon } from "../Icon/index.
|
|
6
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
7
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
5
|
+
import { I as Icon } from "../Icon/index.83867398.js";
|
|
6
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.b4532b85.js";
|
|
7
|
+
import { u as useModal } from "../../hooks/useModal/index.2003c854.js";
|
|
8
8
|
const Header = (props) => {
|
|
9
9
|
const { title, onClickCancel, urlIcon, classes } = props;
|
|
10
10
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { A as Actions
|
|
2
|
+
import { A as Actions } from "../CommonActions/components/Actions/index.258bf919.js";
|
|
3
3
|
import { Typography } from "@mui/material";
|
|
4
4
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { u as useModal } from "../../hooks/useModal/index.2003c854.js";
|
|
6
|
+
import { I as Image } from "../Image/index.19aa7ff5.js";
|
|
7
|
+
import { m as modalUtilityClasses } from "./index.81eb6def.js";
|
|
8
|
+
import { W as WindowBase } from "./WindowBase.cfbb0c9e.js";
|
|
9
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.609a78ca.js";
|
|
10
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.ebac0bc1.js";
|
|
11
|
+
const dictionary = {
|
|
12
|
+
MESSAGE: "common_actions.confirm_quit_msg"
|
|
13
|
+
};
|
|
10
14
|
const MessageIlustration = (props) => {
|
|
11
15
|
const { getLabel } = useModuleDictionary();
|
|
12
16
|
const { variant } = useModal();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
2
|
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
-
|
|
3
|
+
const componentName = "M4LModal";
|
|
4
4
|
generateUtilityClasses(componentName, [
|
|
5
5
|
"root",
|
|
6
6
|
"windowBaseRoot",
|
|
@@ -54,6 +54,10 @@ const modalUtilityClasses = (ownerState) => {
|
|
|
54
54
|
...composedClasses
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
+
const getModalDictionary = () => {
|
|
58
|
+
return "modal_dialog";
|
|
59
|
+
};
|
|
57
60
|
export {
|
|
61
|
+
getModalDictionary as g,
|
|
58
62
|
modalUtilityClasses as m
|
|
59
63
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { generateUtilityClasses, generateUtilityClass, Accordion as Accordion$1, AccordionSummary, AccordionDetails } from "@mui/material";
|
|
3
|
-
import { I as IconButton } from "../IconButton/index.
|
|
3
|
+
import { I as IconButton } from "../IconButton/index.b4532b85.js";
|
|
4
4
|
import { useEnvironment } from "@m4l/core";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
6
|
import { styled } from "@mui/material/styles";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { T as TEST_PROP_ID } from "
|
|
9
|
-
import {
|
|
10
|
-
import { I as Icon } from "../../Icon/index.
|
|
11
|
-
import { T as Typography } from "../Typography/index.
|
|
8
|
+
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
9
|
+
import { g as getNameDataTestId } from "../../../test/getNameDataTestId.0faeade8.js";
|
|
10
|
+
import { I as Icon } from "../../Icon/index.83867398.js";
|
|
11
|
+
import { T as Typography } from "../Typography/index.642798f1.js";
|
|
12
12
|
const componentName = "M4LAccordion";
|
|
13
13
|
generateUtilityClasses(componentName, [
|
|
14
14
|
"root",
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, styled, Avatar as Avatar$1 } from "@mui/material";
|
|
4
4
|
import { useModuleSkeleton } from "@m4l/core";
|
|
5
|
-
import { T as TEST_PROP_ID } from "
|
|
5
|
+
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
const AVATAR_PREFIX = "M4LAvatar";
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { generateUtilityClasses, Badge as Badge$1 } from "@mui/material";
|
|
3
3
|
import "@mui/base";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
|
-
import { T as TEST_PROP_ID } from "
|
|
5
|
+
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
6
6
|
const componentName = "M4LBadge";
|
|
7
7
|
const badgeClasses = generateUtilityClasses(componentName, [
|
|
8
8
|
"root"
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import { jsx
|
|
2
|
-
import { useModuleSkeleton
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, IconButton, Tooltip, styled as styled$1 } from "@mui/material";
|
|
4
4
|
import MuiButton from "@mui/material/Button";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { useMemo
|
|
9
|
-
import { I as Image } from "../../Image/index.
|
|
10
|
-
import { T as TEST_PROP_ID } from "
|
|
8
|
+
import { useMemo } from "react";
|
|
9
|
+
import { I as Image } from "../../Image/index.19aa7ff5.js";
|
|
10
|
+
import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
|
|
11
11
|
import { LoadingButton as LoadingButton$1 } from "@mui/lab";
|
|
12
|
-
import { T as Typography } from "../Typography/index.
|
|
13
|
-
import { useMap } from "react-leaflet";
|
|
14
|
-
import { M as MAP_ICONS } from "../../areas/icons.504ec098.js";
|
|
15
|
-
import { m as mapClasses } from "../../maps/index.a1bf63f2.js";
|
|
16
|
-
import { I as IconButton$1 } from "../IconButton/index.d5b273e6.js";
|
|
17
|
-
import { u as useSideBar, g as getNameDataTestId$2 } from "../../SideBar/index.d221254d.js";
|
|
12
|
+
import { T as Typography } from "../Typography/index.642798f1.js";
|
|
18
13
|
const ButtonRoot = styled("div")(({ theme }) => ({
|
|
19
14
|
...theme.components?.M4LButton?.styleOverrides
|
|
20
15
|
}));
|
|
@@ -211,79 +206,9 @@ const LoadingButton = (props) => {
|
|
|
211
206
|
}
|
|
212
207
|
);
|
|
213
208
|
};
|
|
214
|
-
function ZoomButtons() {
|
|
215
|
-
const map = useMap();
|
|
216
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
217
|
-
const [, setZoomInDisabled] = useState(false);
|
|
218
|
-
const [, setZoomOutDisabled] = useState(false);
|
|
219
|
-
useEffect(() => {
|
|
220
|
-
const updateButtonState = () => {
|
|
221
|
-
const currentZoom = map.getZoom();
|
|
222
|
-
const maxZoom = map.getMaxZoom();
|
|
223
|
-
const minZoom = map.getMinZoom();
|
|
224
|
-
setZoomInDisabled(currentZoom === maxZoom);
|
|
225
|
-
setZoomOutDisabled(currentZoom === minZoom);
|
|
226
|
-
};
|
|
227
|
-
map.on("zoomend", updateButtonState);
|
|
228
|
-
updateButtonState();
|
|
229
|
-
return () => {
|
|
230
|
-
map.off("zoomend", updateButtonState);
|
|
231
|
-
};
|
|
232
|
-
}, [map]);
|
|
233
|
-
const handleZoomIn = () => {
|
|
234
|
-
map.zoomIn();
|
|
235
|
-
};
|
|
236
|
-
const handleZoomOut = () => {
|
|
237
|
-
map.zoomOut();
|
|
238
|
-
};
|
|
239
|
-
return /* @__PURE__ */ jsxs("div", { className: mapClasses.zoomButtons, children: [
|
|
240
|
-
/* @__PURE__ */ jsx(
|
|
241
|
-
IconButton$1,
|
|
242
|
-
{
|
|
243
|
-
onClick: handleZoomIn,
|
|
244
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_ZOOM_IN}`
|
|
245
|
-
}
|
|
246
|
-
),
|
|
247
|
-
/* @__PURE__ */ jsx(
|
|
248
|
-
IconButton$1,
|
|
249
|
-
{
|
|
250
|
-
onClick: handleZoomOut,
|
|
251
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_ZOOM_OUT}`
|
|
252
|
-
}
|
|
253
|
-
)
|
|
254
|
-
] });
|
|
255
|
-
}
|
|
256
|
-
const CollapseButtonRoot = styled$1("div")(() => ({
|
|
257
|
-
display: "flex"
|
|
258
|
-
}));
|
|
259
|
-
styled$1("div")(() => ({
|
|
260
|
-
display: "flex"
|
|
261
|
-
}));
|
|
262
|
-
function FooterSidebar(_props) {
|
|
263
|
-
const { classes, companyLogoNormalUrl } = useSideBar();
|
|
264
|
-
return /* @__PURE__ */ jsx(
|
|
265
|
-
CollapseButtonRoot,
|
|
266
|
-
{
|
|
267
|
-
className: classes.footer,
|
|
268
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$2("footer") } : {},
|
|
269
|
-
children: /* @__PURE__ */ jsx("div", { className: classes.wrapperLogoFooter, children: /* @__PURE__ */ jsx("div", { className: classes.containerLogoButtonLogo, children: /* @__PURE__ */ jsx(
|
|
270
|
-
Image,
|
|
271
|
-
{
|
|
272
|
-
width: "192px",
|
|
273
|
-
height: "28px",
|
|
274
|
-
src: companyLogoNormalUrl || "",
|
|
275
|
-
alt: "logo"
|
|
276
|
-
},
|
|
277
|
-
"Logo"
|
|
278
|
-
) }) })
|
|
279
|
-
}
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
209
|
export {
|
|
283
210
|
Button as B,
|
|
284
|
-
FooterSidebar as F,
|
|
285
211
|
ImageButton as I,
|
|
286
212
|
LoadingButton as L,
|
|
287
|
-
ZoomButtons as Z,
|
|
288
213
|
buttonClasses as b
|
|
289
214
|
};
|
|
@@ -5,7 +5,7 @@ import { useResponsiveDesktop } from "@m4l/graphics";
|
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
6
|
import { useModuleSkeleton } from "@m4l/core";
|
|
7
7
|
import { forwardRef } from "react";
|
|
8
|
-
import { F as FieldLabel } from "
|
|
8
|
+
import { F as FieldLabel } from "../FieldLabel/index.6b6f708e.js";
|
|
9
9
|
const COMPONENT_CLASS_NAME = "M4LCheckBox";
|
|
10
10
|
generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
11
11
|
"root",
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
3
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
4
4
|
import { Skeleton, generateUtilityClasses, generateUtilityClass, Tooltip, IconButton as IconButton$1 } from "@mui/material";
|
|
5
|
-
import { I as Icon } from "../../Icon/index.
|
|
5
|
+
import { I as Icon } from "../../Icon/index.83867398.js";
|
|
6
6
|
import { styled } from "@mui/material/styles";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
8
|
import clsx from "clsx";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { LinearProgress as LinearProgress$1 } from "@mui/material";
|
|
3
|
+
const LinearProgress = (props) => {
|
|
4
|
+
const { ...other } = props;
|
|
5
|
+
return /* @__PURE__ */ jsx(LinearProgress$1, { ...other });
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
LinearProgress as L
|
|
9
|
+
};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default, { useState, useEffect, useMemo } from "react";
|
|
3
|
+
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
+
import { IconButton, generateUtilityClasses, generateUtilityClass, useTheme, MenuItem } from "@mui/material";
|
|
5
|
+
import { P as Popover } from "../Popover/index.2348fc4f.js";
|
|
6
|
+
import { styled } from "@mui/material/styles";
|
|
7
|
+
import { I as Icon } from "../../Icon/index.83867398.js";
|
|
8
|
+
import clsx from "clsx";
|
|
9
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
10
|
+
import { B as Badge } from "../Badge/index.8beaeefc.js";
|
|
11
|
+
import { I as IconButton$1 } from "../IconButton/index.b4532b85.js";
|
|
12
|
+
styled(IconButton)(() => ({}));
|
|
13
|
+
const LabelMemuItem = styled("div")(({ theme }) => ({
|
|
14
|
+
height: "22px",
|
|
15
|
+
overflow: "hidden",
|
|
16
|
+
wordBreak: "break-all",
|
|
17
|
+
marginLeft: theme.spacing(1.5),
|
|
18
|
+
display: "flex",
|
|
19
|
+
alignItems: "center"
|
|
20
|
+
}));
|
|
21
|
+
const ICONS = {
|
|
22
|
+
MENU: "menu.svg"
|
|
23
|
+
};
|
|
24
|
+
const componentName = "M4LMenuActions";
|
|
25
|
+
generateUtilityClasses(componentName, [
|
|
26
|
+
"root",
|
|
27
|
+
"itemDelete"
|
|
28
|
+
]);
|
|
29
|
+
function getMenuActionsUtilityClass(slot) {
|
|
30
|
+
return generateUtilityClass(componentName, slot);
|
|
31
|
+
}
|
|
32
|
+
const useMenuActionsUtilityClasses = () => {
|
|
33
|
+
const slots = {
|
|
34
|
+
root: ["root"],
|
|
35
|
+
itemDelete: ["itemDelete"]
|
|
36
|
+
};
|
|
37
|
+
const composedClasses = unstable_composeClasses(slots, getMenuActionsUtilityClass, {});
|
|
38
|
+
return {
|
|
39
|
+
...composedClasses
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
function MenuActions(props) {
|
|
43
|
+
const {
|
|
44
|
+
menuActions,
|
|
45
|
+
endListElement,
|
|
46
|
+
menuActionSx,
|
|
47
|
+
className,
|
|
48
|
+
iconButtonClassName = "",
|
|
49
|
+
objItem = {},
|
|
50
|
+
urlIcon,
|
|
51
|
+
toolTip = "",
|
|
52
|
+
marginTop = -1,
|
|
53
|
+
marginBottom,
|
|
54
|
+
marginLeft,
|
|
55
|
+
marginRight,
|
|
56
|
+
width = 200,
|
|
57
|
+
withBadge = false,
|
|
58
|
+
badgeContent,
|
|
59
|
+
arrowType = "right-top",
|
|
60
|
+
externalOpen = null,
|
|
61
|
+
externalClose,
|
|
62
|
+
...other
|
|
63
|
+
} = props;
|
|
64
|
+
const { host_static_assets, environment_assets } = useEnvironment();
|
|
65
|
+
const { getLabel } = useModuleDictionary();
|
|
66
|
+
const [open, setOpen] = useState(null);
|
|
67
|
+
const handleOpen = (event) => {
|
|
68
|
+
setOpen(event.currentTarget);
|
|
69
|
+
};
|
|
70
|
+
const theme = useTheme();
|
|
71
|
+
const classes = useMenuActionsUtilityClasses();
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
let mounted = true;
|
|
74
|
+
if (mounted) {
|
|
75
|
+
setOpen(externalOpen);
|
|
76
|
+
}
|
|
77
|
+
return function cleanUp() {
|
|
78
|
+
mounted = false;
|
|
79
|
+
};
|
|
80
|
+
}, [externalOpen]);
|
|
81
|
+
const urlFinalIcon = useMemo(() => {
|
|
82
|
+
if (urlIcon)
|
|
83
|
+
return urlIcon;
|
|
84
|
+
return `${host_static_assets}/${environment_assets}/frontend/components/menu_actions/assets/icons/${ICONS.MENU}`;
|
|
85
|
+
}, [urlIcon, host_static_assets, environment_assets]);
|
|
86
|
+
const handleClose = (e) => {
|
|
87
|
+
e.stopPropagation();
|
|
88
|
+
setOpen(null);
|
|
89
|
+
externalClose && externalClose(null);
|
|
90
|
+
};
|
|
91
|
+
const handleClick = (e, menuAction) => {
|
|
92
|
+
e.stopPropagation();
|
|
93
|
+
setOpen(null);
|
|
94
|
+
menuAction.onClick();
|
|
95
|
+
};
|
|
96
|
+
const finalActions = useMemo(() => {
|
|
97
|
+
let ret;
|
|
98
|
+
if (typeof menuActions !== "function") {
|
|
99
|
+
ret = menuActions;
|
|
100
|
+
} else {
|
|
101
|
+
ret = menuActions(objItem);
|
|
102
|
+
}
|
|
103
|
+
return ret;
|
|
104
|
+
}, [menuActions, objItem]);
|
|
105
|
+
const IconButtonElement = /* @__PURE__ */ jsx(Fragment, { children: withBadge ? /* @__PURE__ */ jsx(Badge, { badgeContent, children: /* @__PURE__ */ jsx(
|
|
106
|
+
IconButton$1,
|
|
107
|
+
{
|
|
108
|
+
src: urlFinalIcon,
|
|
109
|
+
onClick: handleOpen,
|
|
110
|
+
tooltip: toolTip,
|
|
111
|
+
className: iconButtonClassName
|
|
112
|
+
}
|
|
113
|
+
) }) : /* @__PURE__ */ jsx(
|
|
114
|
+
IconButton$1,
|
|
115
|
+
{
|
|
116
|
+
src: urlFinalIcon,
|
|
117
|
+
onClick: handleOpen,
|
|
118
|
+
tooltip: toolTip,
|
|
119
|
+
className: iconButtonClassName
|
|
120
|
+
}
|
|
121
|
+
) });
|
|
122
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
123
|
+
IconButtonElement,
|
|
124
|
+
/* @__PURE__ */ jsxs(
|
|
125
|
+
Popover,
|
|
126
|
+
{
|
|
127
|
+
id: "Popover",
|
|
128
|
+
open: Boolean(open),
|
|
129
|
+
anchorEl: open,
|
|
130
|
+
onClose: handleClose,
|
|
131
|
+
arrowType,
|
|
132
|
+
className: clsx(classes.root, className),
|
|
133
|
+
sx: {
|
|
134
|
+
marginTop,
|
|
135
|
+
marginBottom,
|
|
136
|
+
marginLeft,
|
|
137
|
+
marginRight,
|
|
138
|
+
width,
|
|
139
|
+
maxWidth: 300,
|
|
140
|
+
"& .MuiMenuItem-root": { px: 1, typography: "body2", borderRadius: 0.75 },
|
|
141
|
+
...theme.components?.M4LMenuActions?.styleOverrides,
|
|
142
|
+
...menuActionSx
|
|
143
|
+
},
|
|
144
|
+
...other,
|
|
145
|
+
children: [
|
|
146
|
+
finalActions.map((menuAction, index) => /* @__PURE__ */ jsxs(
|
|
147
|
+
MenuItem,
|
|
148
|
+
{
|
|
149
|
+
dense: true,
|
|
150
|
+
onClick: (e) => {
|
|
151
|
+
handleClick(e, menuAction);
|
|
152
|
+
},
|
|
153
|
+
sx: { color: menuAction.color ?? "text.main" },
|
|
154
|
+
disabled: menuAction.disabled,
|
|
155
|
+
className: clsx(
|
|
156
|
+
menuAction?.className,
|
|
157
|
+
menuAction.variant === "delete" && classes.itemDelete
|
|
158
|
+
),
|
|
159
|
+
children: [
|
|
160
|
+
menuAction.urlIcon ? /* @__PURE__ */ jsx(Icon, { src: menuAction.urlIcon }) : null,
|
|
161
|
+
/* @__PURE__ */ jsx(LabelMemuItem, { children: menuAction.label || menuAction.dictionaryId && getLabel(menuAction.dictionaryId) })
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
`menu_action_${index}`
|
|
165
|
+
)),
|
|
166
|
+
endListElement ? endListElement : null
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
] });
|
|
171
|
+
}
|
|
172
|
+
const MemonizedMenuActions = React__default.memo(MenuActions);
|
|
173
|
+
export {
|
|
174
|
+
MenuActions as M,
|
|
175
|
+
MemonizedMenuActions as a
|
|
176
|
+
};
|
|
@@ -3,14 +3,12 @@ import { useMemo } from "react";
|
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass, useTheme, Select, InputBase, MenuItem } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { I as IconButton } from "../IconButton/index.
|
|
7
|
-
import { useEnvironment
|
|
6
|
+
import { I as IconButton } from "../IconButton/index.b4532b85.js";
|
|
7
|
+
import { useEnvironment } from "@m4l/core";
|
|
8
8
|
import { useResponsiveContainerStore } from "@m4l/graphics";
|
|
9
9
|
import { shallow } from "zustand/shallow";
|
|
10
|
-
import { T as Typography } from "../Typography/index.
|
|
11
|
-
import { I as Icon } from "../../Icon/index.
|
|
12
|
-
import { c as classes } from "../../PrintingSystem/index.9fdae551.js";
|
|
13
|
-
import clsx from "clsx";
|
|
10
|
+
import { T as Typography } from "../Typography/index.642798f1.js";
|
|
11
|
+
import { I as Icon } from "../../Icon/index.83867398.js";
|
|
14
12
|
const PagerRoot = styled("div")(({ theme }) => ({
|
|
15
13
|
...theme.components?.M4LPager?.styleOverrides
|
|
16
14
|
}));
|
|
@@ -63,7 +61,7 @@ const pagerUtilityClasses = () => {
|
|
|
63
61
|
};
|
|
64
62
|
};
|
|
65
63
|
function PagerActions(props) {
|
|
66
|
-
const { count, page, rowsPerPage, onPageChange, classes
|
|
64
|
+
const { count, page, rowsPerPage, onPageChange, classes } = props;
|
|
67
65
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
68
66
|
const handleFirstPageButtonClick = (event) => {
|
|
69
67
|
onPageChange(event, 0);
|
|
@@ -77,7 +75,7 @@ function PagerActions(props) {
|
|
|
77
75
|
const handleLastPageButtonClick = (event) => {
|
|
78
76
|
onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
|
|
79
77
|
};
|
|
80
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
78
|
+
return /* @__PURE__ */ jsxs("div", { className: classes.pagerActions, children: [
|
|
81
79
|
/* @__PURE__ */ jsx(
|
|
82
80
|
IconButton,
|
|
83
81
|
{
|
|
@@ -85,7 +83,7 @@ function PagerActions(props) {
|
|
|
85
83
|
onClick: handleFirstPageButtonClick,
|
|
86
84
|
disabled: page === 0,
|
|
87
85
|
"aria-label": "first page",
|
|
88
|
-
className:
|
|
86
|
+
className: classes.actionIconFirstPage,
|
|
89
87
|
src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/first.svg`
|
|
90
88
|
}
|
|
91
89
|
),
|
|
@@ -96,7 +94,7 @@ function PagerActions(props) {
|
|
|
96
94
|
onClick: handleBackButtonClick,
|
|
97
95
|
disabled: page === 0,
|
|
98
96
|
"aria-label": "first page",
|
|
99
|
-
className:
|
|
97
|
+
className: classes.actionIconPrevious,
|
|
100
98
|
src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/previous.svg`
|
|
101
99
|
}
|
|
102
100
|
),
|
|
@@ -107,7 +105,7 @@ function PagerActions(props) {
|
|
|
107
105
|
onClick: handleNextButtonClick,
|
|
108
106
|
disabled: page >= Math.ceil(count / rowsPerPage) - 1,
|
|
109
107
|
"aria-label": "next page",
|
|
110
|
-
className:
|
|
108
|
+
className: classes.actionIconNextPage,
|
|
111
109
|
src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/next.svg`
|
|
112
110
|
}
|
|
113
111
|
),
|
|
@@ -118,7 +116,7 @@ function PagerActions(props) {
|
|
|
118
116
|
onClick: handleLastPageButtonClick,
|
|
119
117
|
disabled: page >= Math.ceil(count / rowsPerPage) - 1,
|
|
120
118
|
"aria-label": "last page",
|
|
121
|
-
className:
|
|
119
|
+
className: classes.actionIconLastPage,
|
|
122
120
|
src: `${host_static_assets}/${environment_assets}/frontend/components/pager/assets/icons/last.svg`
|
|
123
121
|
}
|
|
124
122
|
)
|
|
@@ -131,7 +129,7 @@ const CustomTablePagination = (props) => {
|
|
|
131
129
|
rowsPerPage,
|
|
132
130
|
rowsPerPageOptions = [10, 25, 50, 100],
|
|
133
131
|
labelRowsPerPage,
|
|
134
|
-
classes
|
|
132
|
+
classes,
|
|
135
133
|
onRowsPerPageChange,
|
|
136
134
|
onPageChange,
|
|
137
135
|
SelectProps,
|
|
@@ -161,7 +159,7 @@ const CustomTablePagination = (props) => {
|
|
|
161
159
|
}
|
|
162
160
|
);
|
|
163
161
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
164
|
-
rowsPerPageOptions?.length > 1 ? /* @__PURE__ */ jsxs("div", { className:
|
|
162
|
+
rowsPerPageOptions?.length > 1 ? /* @__PURE__ */ jsxs("div", { className: classes.labelRowsPerPageContainer, children: [
|
|
165
163
|
isUpSm ? /* @__PURE__ */ jsx(Typography, { variant: "body", children: labelRowsPerPage }) : null,
|
|
166
164
|
/* @__PURE__ */ jsx(
|
|
167
165
|
Select,
|
|
@@ -172,9 +170,9 @@ const CustomTablePagination = (props) => {
|
|
|
172
170
|
onChange: (e) => {
|
|
173
171
|
onRowsPerPageChange(e);
|
|
174
172
|
},
|
|
175
|
-
className:
|
|
173
|
+
className: classes.select,
|
|
176
174
|
MenuProps: {
|
|
177
|
-
className:
|
|
175
|
+
className: classes.selectMenuPopover,
|
|
178
176
|
sx: { ...theme.components?.M4LPagerMenuPopover?.styleOverrides }
|
|
179
177
|
},
|
|
180
178
|
IconComponent: CustomIconComponent,
|
|
@@ -182,16 +180,16 @@ const CustomTablePagination = (props) => {
|
|
|
182
180
|
children: rowsPerPageOptions.map((item, idx) => /* @__PURE__ */ jsx(
|
|
183
181
|
MenuItem,
|
|
184
182
|
{
|
|
185
|
-
className:
|
|
183
|
+
className: classes.selectMenuItem,
|
|
186
184
|
value: item,
|
|
187
185
|
children: item
|
|
188
186
|
},
|
|
189
|
-
`${
|
|
187
|
+
`${classes.selectMenuItem}-${idx}`
|
|
190
188
|
))
|
|
191
189
|
}
|
|
192
190
|
)
|
|
193
191
|
] }) : null,
|
|
194
|
-
/* @__PURE__ */ jsx(Typography, { variant: "body", className:
|
|
192
|
+
/* @__PURE__ */ jsx(Typography, { variant: "body", className: classes.labelDisplayRows, children: labelDisplayedRows({
|
|
195
193
|
from: count === 0 ? 0 : page * rowsPerPage + 1,
|
|
196
194
|
to: getLabelDisplayedRowsTo(),
|
|
197
195
|
count: count === -1 ? -1 : count,
|
|
@@ -204,7 +202,7 @@ const CustomTablePagination = (props) => {
|
|
|
204
202
|
page,
|
|
205
203
|
rowsPerPage,
|
|
206
204
|
onPageChange,
|
|
207
|
-
classes
|
|
205
|
+
classes
|
|
208
206
|
}
|
|
209
207
|
)
|
|
210
208
|
] });
|
|
@@ -234,14 +232,14 @@ function Pager(props) {
|
|
|
234
232
|
const handleChangePage = (_event, newPage) => {
|
|
235
233
|
onPageChange(newPage);
|
|
236
234
|
};
|
|
237
|
-
const
|
|
238
|
-
return /* @__PURE__ */ jsx(PagerRoot, { className:
|
|
235
|
+
const classes = pagerUtilityClasses();
|
|
236
|
+
return /* @__PURE__ */ jsx(PagerRoot, { className: classes.root, children: /* @__PURE__ */ jsx(
|
|
239
237
|
CustomTablePagination,
|
|
240
238
|
{
|
|
241
239
|
rowsPerPageOptions,
|
|
242
240
|
count: totalRecords,
|
|
243
241
|
rowsPerPage,
|
|
244
|
-
classes
|
|
242
|
+
classes,
|
|
245
243
|
labelRowsPerPage: labelRows,
|
|
246
244
|
page: currentPage,
|
|
247
245
|
onPageChange: handleChangePage,
|
|
@@ -253,23 +251,7 @@ function Pager(props) {
|
|
|
253
251
|
function getPagerComponentsDictionary() {
|
|
254
252
|
return ["pager"];
|
|
255
253
|
}
|
|
256
|
-
const PagerNode = (props) => {
|
|
257
|
-
const { style = {}, className = "" } = props;
|
|
258
|
-
const { mainColor, countPages, pageId } = useBase();
|
|
259
|
-
return /* @__PURE__ */ jsx(
|
|
260
|
-
"div",
|
|
261
|
-
{
|
|
262
|
-
className: clsx(classes.pagerNodeRoot, className),
|
|
263
|
-
style: {
|
|
264
|
-
...style,
|
|
265
|
-
color: mainColor
|
|
266
|
-
},
|
|
267
|
-
children: ` ${pageId} / ${countPages}`
|
|
268
|
-
}
|
|
269
|
-
);
|
|
270
|
-
};
|
|
271
254
|
export {
|
|
272
|
-
|
|
273
|
-
Pager as a,
|
|
255
|
+
Pager as P,
|
|
274
256
|
getPagerComponentsDictionary as g
|
|
275
257
|
};
|