@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,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Marker } from "react-leaflet";
|
|
3
3
|
import L__default from "leaflet";
|
|
4
|
-
import {
|
|
5
|
-
import { m as mapClasses } from "../maps/index.a1bf63f2.js";
|
|
4
|
+
import { m as mapClasses, L as LABEL_BK_COLOR_DEFAULT, a as LABEL_COLOR_DEFAULT } from "../maps/components/Map/index.c37f3304.js";
|
|
6
5
|
import clsx from "clsx";
|
|
7
6
|
import { useEnvironment } from "@m4l/core";
|
|
8
7
|
import { generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
|
|
9
|
-
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.
|
|
8
|
+
import { u as useSideBar, g as getNameDataTestId$1 } from "../SideBar/index.4075c562.js";
|
|
9
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
10
10
|
import { styled } from "@mui/material/styles";
|
|
11
11
|
import { unstable_composeClasses } from "@mui/base";
|
|
12
12
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
@@ -27,6 +27,7 @@ const DivIcon = styled("div", {
|
|
|
27
27
|
transform: `rotate(${rotationAngle}deg)`
|
|
28
28
|
}
|
|
29
29
|
}));
|
|
30
|
+
const componentName = "M4LIcon";
|
|
30
31
|
generateUtilityClasses(componentName, [
|
|
31
32
|
"root",
|
|
32
33
|
"icon",
|
|
@@ -67,6 +68,7 @@ const useUtilityClasses = (ownerState) => {
|
|
|
67
68
|
...composedClasses
|
|
68
69
|
};
|
|
69
70
|
};
|
|
71
|
+
const ICON_PREFIX = "Icon";
|
|
70
72
|
const getNameDataTestId = (KEY) => {
|
|
71
73
|
return `${ICON_PREFIX}-${KEY}`;
|
|
72
74
|
};
|
|
@@ -160,17 +162,17 @@ const MarkerIconLabel = (props) => {
|
|
|
160
162
|
Math.random()
|
|
161
163
|
);
|
|
162
164
|
};
|
|
163
|
-
const ArrowIconRoot
|
|
165
|
+
const ArrowIconRoot = styled$1("div")(() => ({
|
|
164
166
|
display: "flex",
|
|
165
167
|
alignSelf: "center",
|
|
166
168
|
lineHeight: 0
|
|
167
169
|
}));
|
|
168
|
-
function ArrowIcon
|
|
170
|
+
function ArrowIcon(props) {
|
|
169
171
|
const { openState } = props;
|
|
170
172
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
171
173
|
const { classes } = useSideBar();
|
|
172
174
|
return /* @__PURE__ */ jsx(
|
|
173
|
-
ArrowIconRoot
|
|
175
|
+
ArrowIconRoot,
|
|
174
176
|
{
|
|
175
177
|
className: classes.arrowIconRoot,
|
|
176
178
|
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$1("arrowIconRoot") } : {},
|
|
@@ -184,26 +186,8 @@ function ArrowIcon$1(props) {
|
|
|
184
186
|
}
|
|
185
187
|
);
|
|
186
188
|
}
|
|
187
|
-
const ArrowIconRoot = styled$1("div")(() => ({
|
|
188
|
-
display: "flex",
|
|
189
|
-
alignSelf: "center",
|
|
190
|
-
lineHeight: 0
|
|
191
|
-
}));
|
|
192
|
-
function ArrowIcon(props) {
|
|
193
|
-
const { openState } = props;
|
|
194
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
195
|
-
return /* @__PURE__ */ jsx(ArrowIconRoot, { className: "", children: /* @__PURE__ */ jsx(
|
|
196
|
-
Icon,
|
|
197
|
-
{
|
|
198
|
-
src: `${host_static_assets}/${environment_assets}/frontend/components/sidebar/assets/icons/ChevronRight.svg`,
|
|
199
|
-
rotationAngle: openState ? 270 : 90,
|
|
200
|
-
size: "medium"
|
|
201
|
-
}
|
|
202
|
-
) });
|
|
203
|
-
}
|
|
204
189
|
export {
|
|
205
|
-
ArrowIcon
|
|
190
|
+
ArrowIcon as A,
|
|
206
191
|
Icon as I,
|
|
207
|
-
MarkerIconLabel as M
|
|
208
|
-
ArrowIcon as a
|
|
192
|
+
MarkerIconLabel as M
|
|
209
193
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
|
-
import {
|
|
3
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { useBase, useEnvironment, evaluateWithContext } from "@m4l/core";
|
|
8
|
-
import { c as classes, g as getSize } from "../PrintingSystem/index.
|
|
8
|
+
import { c as classes, g as getSize } from "../PrintingSystem/index.a69a9d85.js";
|
|
9
9
|
import QRCode from "qrcode.react";
|
|
10
10
|
const ImageRoot = styled("div")(({ theme }) => ({
|
|
11
11
|
...theme.components?.M4LImage?.styleOverrides
|
|
@@ -71,6 +71,7 @@ const getRatioValues = (ratio) => {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
+
const IMAGE_PREFIX = "Image";
|
|
74
75
|
const getNameDataTestId = (KEY) => {
|
|
75
76
|
return `${IMAGE_PREFIX}-${KEY}`;
|
|
76
77
|
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import { generateUtilityClasses, generateUtilityClass, Stack, MenuItem } from "@mui/material";
|
|
4
|
+
import { I as Image } from "../Image/index.19aa7ff5.js";
|
|
5
|
+
import { useLocales } from "@m4l/graphics";
|
|
6
|
+
import { styled } from "@mui/material/styles";
|
|
7
|
+
import { I as ImageButton } from "../mui_extended/Button/index.d742e9ee.js";
|
|
8
|
+
import { useEnvironment, useNetwork } from "@m4l/core";
|
|
9
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
10
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
11
|
+
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.967e70b7.js";
|
|
12
|
+
import { P as Popover } from "../mui_extended/Popover/index.2348fc4f.js";
|
|
13
|
+
const LanguagePopoverRoot = styled("div")(({ theme }) => ({
|
|
14
|
+
...theme.components?.M4LanguagePopover?.styleOverrides
|
|
15
|
+
}));
|
|
16
|
+
const LabelItem = styled("div")(({ theme }) => ({
|
|
17
|
+
marginLeft: theme.spacing(1)
|
|
18
|
+
}));
|
|
19
|
+
const ContainerProgress = styled("div")(({ theme }) => ({
|
|
20
|
+
padding: theme.spacing(0.75, 0),
|
|
21
|
+
margin: theme.spacing(0, 1.25)
|
|
22
|
+
}));
|
|
23
|
+
const ContainerMenuItems = styled("div")(() => ({
|
|
24
|
+
display: "flex",
|
|
25
|
+
flexDirection: "column"
|
|
26
|
+
}));
|
|
27
|
+
const ContainerImage = styled("div")(() => ({
|
|
28
|
+
display: "flex",
|
|
29
|
+
gap: "4px",
|
|
30
|
+
width: "16px",
|
|
31
|
+
height: "16px"
|
|
32
|
+
}));
|
|
33
|
+
const componentName = "M4LanguagePopover";
|
|
34
|
+
generateUtilityClasses(
|
|
35
|
+
componentName,
|
|
36
|
+
[
|
|
37
|
+
"root",
|
|
38
|
+
"containerItems",
|
|
39
|
+
"containerProgress",
|
|
40
|
+
"labelItem",
|
|
41
|
+
"imageButton"
|
|
42
|
+
]
|
|
43
|
+
);
|
|
44
|
+
function getM4LanguagePopoverClassesUtilityClass(slot) {
|
|
45
|
+
return generateUtilityClass(componentName, slot);
|
|
46
|
+
}
|
|
47
|
+
const useUtilityClasses = () => {
|
|
48
|
+
const slots = {
|
|
49
|
+
root: ["root"],
|
|
50
|
+
containerItems: ["containerItems"],
|
|
51
|
+
containerProgress: ["containerProgress"],
|
|
52
|
+
labelItem: ["labelItem"]
|
|
53
|
+
};
|
|
54
|
+
const composedClasses = unstable_composeClasses(slots, getM4LanguagePopoverClassesUtilityClass, {});
|
|
55
|
+
return {
|
|
56
|
+
...composedClasses
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
const LANGUAGEPOPOVER_PREFIX = "LanguagePopover";
|
|
60
|
+
const getNameDataTestId = (KEY) => {
|
|
61
|
+
return `${LANGUAGEPOPOVER_PREFIX}-${KEY}`;
|
|
62
|
+
};
|
|
63
|
+
function LanguagePopover(props) {
|
|
64
|
+
const { testingProps } = props;
|
|
65
|
+
const { currentLocale, onChangeLocale } = useLocales();
|
|
66
|
+
const { domain_token } = useEnvironment();
|
|
67
|
+
const { networkOperation } = useNetwork();
|
|
68
|
+
const [open, setOpen] = useState(testingProps?.open || null);
|
|
69
|
+
const [loading, setLoading] = useState(testingProps?.loading || false);
|
|
70
|
+
const [allLocales, setAllLocales] = useState(
|
|
71
|
+
testingProps?.allLocales || []
|
|
72
|
+
);
|
|
73
|
+
const handleOpen = (event) => {
|
|
74
|
+
setOpen(event.currentTarget);
|
|
75
|
+
};
|
|
76
|
+
const handleClose = () => {
|
|
77
|
+
setOpen(null);
|
|
78
|
+
};
|
|
79
|
+
useEffect(() => {
|
|
80
|
+
let mounted = true;
|
|
81
|
+
if (open === null || loading || allLocales.length > 0) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
setLoading(true);
|
|
85
|
+
networkOperation({
|
|
86
|
+
method: "GET",
|
|
87
|
+
endPoint: `na/locales`,
|
|
88
|
+
parms: { domain_token }
|
|
89
|
+
}).then((response) => {
|
|
90
|
+
if (mounted) {
|
|
91
|
+
!testingProps && setAllLocales(response.data);
|
|
92
|
+
}
|
|
93
|
+
}).finally(() => {
|
|
94
|
+
setLoading(false);
|
|
95
|
+
});
|
|
96
|
+
return function cleanUp() {
|
|
97
|
+
mounted = false;
|
|
98
|
+
};
|
|
99
|
+
}, [open]);
|
|
100
|
+
const classes = useUtilityClasses();
|
|
101
|
+
return /* @__PURE__ */ jsxs(
|
|
102
|
+
LanguagePopoverRoot,
|
|
103
|
+
{
|
|
104
|
+
className: classes.root,
|
|
105
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ jsx(
|
|
108
|
+
ImageButton,
|
|
109
|
+
{
|
|
110
|
+
className: classes.imageButton,
|
|
111
|
+
onClick: handleOpen,
|
|
112
|
+
sx: {
|
|
113
|
+
width: 28,
|
|
114
|
+
height: 28,
|
|
115
|
+
...open && { bgcolor: "action.selected" }
|
|
116
|
+
},
|
|
117
|
+
src: currentLocale?.url_icon || "",
|
|
118
|
+
alt: currentLocale?.name,
|
|
119
|
+
width: "24px",
|
|
120
|
+
height: "24px",
|
|
121
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("imageButton") } : {}
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
/* @__PURE__ */ jsx(
|
|
125
|
+
Popover,
|
|
126
|
+
{
|
|
127
|
+
arrowType: "top-right",
|
|
128
|
+
open: Boolean(open),
|
|
129
|
+
anchorEl: open,
|
|
130
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
131
|
+
onClose: handleClose,
|
|
132
|
+
sx: {
|
|
133
|
+
mt: 1.5,
|
|
134
|
+
ml: 0.75,
|
|
135
|
+
width: 180,
|
|
136
|
+
rowGap: "100px",
|
|
137
|
+
"& .MuiMenuItem-root": { px: 1, typography: "body2", borderRadius: 0.75 }
|
|
138
|
+
},
|
|
139
|
+
children: /* @__PURE__ */ jsxs(
|
|
140
|
+
ContainerMenuItems,
|
|
141
|
+
{
|
|
142
|
+
className: classes.containerItems,
|
|
143
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("containerItems") } : {},
|
|
144
|
+
children: [
|
|
145
|
+
allLocales.length === 0 && /* @__PURE__ */ jsx(
|
|
146
|
+
ContainerProgress,
|
|
147
|
+
{
|
|
148
|
+
className: classes.containerProgress,
|
|
149
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("containerProgress") } : {},
|
|
150
|
+
children: /* @__PURE__ */ jsx(CircularProgress, { size: "20px" })
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
allLocales.length > 0 && /* @__PURE__ */ jsx(Stack, { spacing: 0.75, children: allLocales.map((option) => /* @__PURE__ */ jsxs(
|
|
154
|
+
MenuItem,
|
|
155
|
+
{
|
|
156
|
+
selected: option.lang === currentLocale?.lang && option?.script === currentLocale?.script && option?.region === currentLocale?.region,
|
|
157
|
+
onClick: () => {
|
|
158
|
+
onChangeLocale(option);
|
|
159
|
+
handleClose();
|
|
160
|
+
},
|
|
161
|
+
children: [
|
|
162
|
+
/* @__PURE__ */ jsx(ContainerImage, { children: /* @__PURE__ */ jsx(Image, { alt: option.name, src: option.url_icon, ratio: "1:1" }) }),
|
|
163
|
+
/* @__PURE__ */ jsx(
|
|
164
|
+
LabelItem,
|
|
165
|
+
{
|
|
166
|
+
className: classes.labelItem,
|
|
167
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
168
|
+
[TEST_PROP_ID]: getNameDataTestId("labelItem")
|
|
169
|
+
} : {},
|
|
170
|
+
children: option.name
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
option.lang || option.script || option.region
|
|
176
|
+
)) })
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
export {
|
|
187
|
+
LanguagePopover as L
|
|
188
|
+
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { LinearProgress as LinearProgress$1, generateUtilityClasses, styled } from "@mui/material";
|
|
3
2
|
import clsx from "clsx";
|
|
3
|
+
import { generateUtilityClasses, styled } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
|
-
import { g as getComponentUtilityClass } from "
|
|
6
|
-
import { T as TEST_PROP_ID } from "../../
|
|
7
|
-
const LinearProgress = (props) => {
|
|
8
|
-
const { ...other } = props;
|
|
9
|
-
return /* @__PURE__ */ jsx(LinearProgress$1, { ...other });
|
|
10
|
-
};
|
|
5
|
+
import { g as getComponentUtilityClass } from "../../utils/index.14912462.js";
|
|
6
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
11
7
|
const LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME = "M4LinearProgressIndeterminate";
|
|
12
8
|
generateUtilityClasses(
|
|
13
9
|
LINEAR_PROGRESS_INDETERMINATE_CLASS_NAME,
|
|
@@ -55,6 +51,5 @@ const LinearProgressIndeterminate = () => {
|
|
|
55
51
|
);
|
|
56
52
|
};
|
|
57
53
|
export {
|
|
58
|
-
LinearProgressIndeterminate as L
|
|
59
|
-
LinearProgress as a
|
|
54
|
+
LinearProgressIndeterminate as L
|
|
60
55
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { I as ICONS } from "../areas/icons.
|
|
3
|
+
import { I as ICONS } from "../areas/icons.8266ccc8.js";
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
|
-
import { v as componentName } from "../areas/constants.0d3ba950.js";
|
|
7
6
|
import { styled } from "@mui/material/styles";
|
|
8
|
-
import { L as LinearProgressIndeterminate } from "../
|
|
9
|
-
import { I as Icon } from "../Icon/index.
|
|
10
|
-
import { T as Typography } from "../mui_extended/Typography/index.
|
|
11
|
-
import { B as Button } from "../mui_extended/Button/index.
|
|
7
|
+
import { L as LinearProgressIndeterminate } from "../LinearProgressIndeterminate/index.ea9c8518.js";
|
|
8
|
+
import { I as Icon } from "../Icon/index.83867398.js";
|
|
9
|
+
import { T as Typography } from "../mui_extended/Typography/index.642798f1.js";
|
|
10
|
+
import { B as Button } from "../mui_extended/Button/index.d742e9ee.js";
|
|
11
|
+
const componentName = "M4LoadingError";
|
|
12
12
|
generateUtilityClasses(componentName, [
|
|
13
13
|
"root",
|
|
14
14
|
"loadingErrorLoading",
|
|
@@ -81,6 +81,10 @@ const LoadingError = (props) => {
|
|
|
81
81
|
/* @__PURE__ */ jsx(Button, { onClick: action, children: introMessage ? introMessage : getLabel("loading_error.label_error_intro") })
|
|
82
82
|
] }) });
|
|
83
83
|
};
|
|
84
|
+
const getLoadingErrorComponentsDictionary = () => {
|
|
85
|
+
return ["loading_error"];
|
|
86
|
+
};
|
|
84
87
|
export {
|
|
85
|
-
LoadingError as L
|
|
88
|
+
LoadingError as L,
|
|
89
|
+
getLoadingErrorComponentsDictionary as g
|
|
86
90
|
};
|
|
@@ -11,9 +11,9 @@ import { useHostTheme, useFormatter, useLocales, useFirstRender } from "@m4l/gra
|
|
|
11
11
|
import debounce from "lodash/debounce";
|
|
12
12
|
import { generateUtilityClasses, generateUtilityClass, styled } from "@mui/material";
|
|
13
13
|
import { unstable_composeClasses } from "@mui/base";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
14
|
+
import { L as LinearProgress } from "../mui_extended/LinearProgress/index.4092bb69.js";
|
|
15
|
+
import { L as LoadingError } from "../LoadingError/index.aee18b24.js";
|
|
16
|
+
const componentName = "M4LMFLoader";
|
|
17
17
|
const mfLoaderClasses = generateUtilityClasses(componentName, [
|
|
18
18
|
"root",
|
|
19
19
|
"containerLinearProgress"
|
|
@@ -275,6 +275,10 @@ MFLoader.defaultProps = {
|
|
|
275
275
|
document,
|
|
276
276
|
window
|
|
277
277
|
};
|
|
278
|
+
function getMFLoaderComponentsDictionary() {
|
|
279
|
+
return ["mf_loader"];
|
|
280
|
+
}
|
|
278
281
|
export {
|
|
279
|
-
MFLoader as M
|
|
282
|
+
MFLoader as M,
|
|
283
|
+
getMFLoaderComponentsDictionary as g
|
|
280
284
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTheme, Dialog, Paper } from "@mui/material";
|
|
3
|
-
import { c as cjs } from "../../react-draggable.
|
|
4
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
5
|
-
import { R as ResizeableWindow } from "../Resizeable/index.
|
|
3
|
+
import { c as cjs } from "../../react-draggable.1c1ba224.js";
|
|
4
|
+
import { u as useModal } from "../../hooks/useModal/index.2003c854.js";
|
|
5
|
+
import { R as ResizeableWindow } from "../Resizeable/index.4f75c0b5.js";
|
|
6
6
|
import { useIsMobile } from "@m4l/graphics";
|
|
7
|
-
import { m as modalUtilityClasses } from "../modal/index.
|
|
7
|
+
import { m as modalUtilityClasses } from "../modal/index.81eb6def.js";
|
|
8
8
|
import { useState, useEffect } from "react";
|
|
9
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.258bf919.js";
|
|
9
10
|
const DragabblePaperComponent = (props) => {
|
|
10
11
|
return /* @__PURE__ */ jsx(cjs.exports, { handle: ".m4l_draggable_handle", cancel: '[class*="MuiDialogContent-root"]', children: /* @__PURE__ */ jsx(Paper, { sx: { maxHeight: "unset", maxWidth: "unset" }, ...props }) });
|
|
11
12
|
};
|
|
@@ -63,6 +64,14 @@ const ModalDialog = () => {
|
|
|
63
64
|
}
|
|
64
65
|
);
|
|
65
66
|
};
|
|
67
|
+
function getModalDialogComponentsDictionary() {
|
|
68
|
+
return ["modal_dialog"].concat(getCommonActionsDictionary());
|
|
69
|
+
}
|
|
70
|
+
const defaultModalDialogDictionary = {
|
|
71
|
+
modal_dialog: {}
|
|
72
|
+
};
|
|
66
73
|
export {
|
|
67
|
-
ModalDialog as M
|
|
74
|
+
ModalDialog as M,
|
|
75
|
+
defaultModalDialogDictionary as d,
|
|
76
|
+
getModalDialogComponentsDictionary as g
|
|
68
77
|
};
|
|
@@ -3,8 +3,8 @@ import { NavLink as NavLink$1 } from "react-router-dom";
|
|
|
3
3
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
4
4
|
import { unstable_composeClasses } from "@mui/base";
|
|
5
5
|
import { styled } from "@mui/material/styles";
|
|
6
|
-
import {
|
|
7
|
-
import { T as Typography } from "../mui_extended/Typography/index.
|
|
6
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
7
|
+
import { T as Typography } from "../mui_extended/Typography/index.642798f1.js";
|
|
8
8
|
const componentName = "M4LNavLink";
|
|
9
9
|
generateUtilityClasses(componentName, [
|
|
10
10
|
"root"
|
|
@@ -24,6 +24,7 @@ const useUtilityClasses = () => {
|
|
|
24
24
|
const NavLinkRoot = styled("div")(({ theme }) => ({
|
|
25
25
|
...theme.components?.M4LNavLink?.styleOverrides
|
|
26
26
|
}));
|
|
27
|
+
const NAVLINK_PREFIX = "Navlink";
|
|
27
28
|
const getNameDataTestId = (KEY) => {
|
|
28
29
|
return `${NAVLINK_PREFIX}-${KEY}`;
|
|
29
30
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
3
|
-
import { I as Image } from "../Image/index.
|
|
3
|
+
import { I as Image } from "../Image/index.19aa7ff5.js";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
5
|
import { generateUtilityClasses, generateUtilityClass, Skeleton } from "@mui/material";
|
|
6
6
|
import { useMemo } from "react";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
-
import { y as componentName } from "../areas/constants.0d3ba950.js";
|
|
9
8
|
const WrapperNoItemSelected = styled("div")(({ theme }) => ({
|
|
10
9
|
...theme.components?.M4LNoItemSelected?.styleOverrides
|
|
11
10
|
}));
|
|
@@ -24,6 +23,7 @@ const WrapperSKTNoItemSelected = styled("div")(() => ({
|
|
|
24
23
|
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`,
|
|
25
24
|
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`
|
|
26
25
|
}));
|
|
26
|
+
const componentName = "M4LNoItemSelected";
|
|
27
27
|
generateUtilityClasses(
|
|
28
28
|
componentName,
|
|
29
29
|
[
|
|
@@ -56,6 +56,16 @@ function NoItemSelected(props) {
|
|
|
56
56
|
!image ? /* @__PURE__ */ jsx(Img, { src: defaultImage }) : /* @__PURE__ */ jsx(Img, { src: image })
|
|
57
57
|
] }) : /* @__PURE__ */ jsx(WrapperSKTNoItemSelected, { id: "WrapperSKTNoItemSelected", children: /* @__PURE__ */ jsx(Skeleton, { variant: "rectangular", width: "100%", height: "100%" }) }) });
|
|
58
58
|
}
|
|
59
|
+
function getNoItemSelectedComponentsDictionary() {
|
|
60
|
+
return ["no_item_selected"];
|
|
61
|
+
}
|
|
62
|
+
const defaultNoItemSelectedDictionary = {
|
|
63
|
+
no_item_selected: {
|
|
64
|
+
message: "Please select a item to show detail"
|
|
65
|
+
}
|
|
66
|
+
};
|
|
59
67
|
export {
|
|
60
|
-
NoItemSelected as N
|
|
68
|
+
NoItemSelected as N,
|
|
69
|
+
defaultNoItemSelectedDictionary as d,
|
|
70
|
+
getNoItemSelectedComponentsDictionary as g
|
|
61
71
|
};
|
|
@@ -2,17 +2,19 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useEffect, useCallback, useMemo } from "react";
|
|
3
3
|
import { useNetwork, useModuleDictionary, useEnvironment, usePaginate } from "@m4l/core";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
|
-
import {
|
|
5
|
+
import { c as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.68e19254.js";
|
|
6
|
+
import { D as DateFormatter } from "../formatters/DateFormatter/index.2ef6f261.js";
|
|
6
7
|
import { Tooltip, IconButton } from "@mui/material";
|
|
7
8
|
import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
|
|
8
9
|
import { R as ReactJson } from "../../react-json-view.57125fcf.js";
|
|
9
|
-
import { S as ScrollBar } from "../ScrollBar/index.
|
|
10
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
11
|
-
import { I as Icon } from "../Icon/index.
|
|
10
|
+
import { S as ScrollBar } from "../ScrollBar/index.21bc5025.js";
|
|
11
|
+
import { u as useModal } from "../../hooks/useModal/index.2003c854.js";
|
|
12
|
+
import { I as Icon } from "../Icon/index.83867398.js";
|
|
12
13
|
import { S as Stack } from "../mui_extended/Stack/index.fe363ca5.js";
|
|
13
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
14
|
-
import { a as DynamicFilter } from "../DynamicFilter/index.
|
|
15
|
-
import { T as TEST_PROP_ID } from "
|
|
14
|
+
import { W as WindowBase } from "../modal/WindowBase.cfbb0c9e.js";
|
|
15
|
+
import { a as DynamicFilter } from "../DynamicFilter/index.056a99c7.js";
|
|
16
|
+
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
17
|
+
import { a as getDynamicFilterComponentsDictionary } from "../DynamicFilter/dictionary.d28d39ef.js";
|
|
16
18
|
const Container = styled("div")(() => ({
|
|
17
19
|
height: "100%",
|
|
18
20
|
width: "100%",
|
|
@@ -232,6 +234,22 @@ function ObjectLogs(props) {
|
|
|
232
234
|
}
|
|
233
235
|
);
|
|
234
236
|
}
|
|
237
|
+
function getObjectLogsComponentsDictionary() {
|
|
238
|
+
return ["object_logs"].concat(getDataGridComponentsDictionary()).concat(getDynamicFilterComponentsDictionary());
|
|
239
|
+
}
|
|
240
|
+
const defaultObjectLogDictionary = {
|
|
241
|
+
object_logs: {
|
|
242
|
+
created_at: "Start date",
|
|
243
|
+
user: "User/email",
|
|
244
|
+
resource_name: "Resource",
|
|
245
|
+
privilege_name: "Privilege",
|
|
246
|
+
log_preview: "Log",
|
|
247
|
+
log_detail: "Detail",
|
|
248
|
+
ip: "Ip"
|
|
249
|
+
}
|
|
250
|
+
};
|
|
235
251
|
export {
|
|
236
|
-
ObjectLogs as O
|
|
252
|
+
ObjectLogs as O,
|
|
253
|
+
defaultObjectLogDictionary as d,
|
|
254
|
+
getObjectLogsComponentsDictionary as g
|
|
237
255
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
3
3
|
import { unstable_composeClasses } from "@mui/base";
|
|
4
|
-
import {
|
|
5
|
-
import { B as Button } from "../mui_extended/Button/index.52852c42.js";
|
|
4
|
+
import { B as Button } from "../mui_extended/Button/index.d742e9ee.js";
|
|
6
5
|
const PDFVeiwerRoot = styled("div")(({ theme }) => ({
|
|
7
6
|
...theme.components?.M4LPDFViewer?.styleOverrides
|
|
8
7
|
}));
|
|
8
|
+
const componentName = "M4LPDFViewer";
|
|
9
9
|
generateUtilityClasses(componentName, [
|
|
10
10
|
"root",
|
|
11
11
|
"buttonDownload"
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useBase, BaseProvider, useModuleSkeleton } from "@m4l/core";
|
|
3
|
-
import { c as classes, g as getSize, F as FactoryRender } from "../PrintingSystem/index.
|
|
3
|
+
import { c as classes, g as getSize, F as FactoryRender } from "../PrintingSystem/index.a69a9d85.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import React__default from "react";
|
|
6
6
|
import { Helmet } from "react-helmet-async";
|
|
7
7
|
import { useLocales } from "@m4l/graphics";
|
|
8
|
+
const PagerNode = (props) => {
|
|
9
|
+
const { style = {}, className = "" } = props;
|
|
10
|
+
const { mainColor, countPages, pageId } = useBase();
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: clsx(classes.pagerNodeRoot, className),
|
|
15
|
+
style: {
|
|
16
|
+
...style,
|
|
17
|
+
color: mainColor
|
|
18
|
+
},
|
|
19
|
+
children: ` ${pageId} / ${countPages}`
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
};
|
|
8
23
|
const PageNode = (props) => {
|
|
9
24
|
const {
|
|
10
25
|
children,
|
|
@@ -94,5 +109,6 @@ const HelmetPage = (props) => {
|
|
|
94
109
|
HelmetPage.displayName = "Page";
|
|
95
110
|
export {
|
|
96
111
|
HelmetPage as H,
|
|
97
|
-
|
|
112
|
+
PagerNode as P,
|
|
113
|
+
PageRender as a
|
|
98
114
|
};
|
|
@@ -2,9 +2,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { useModuleSkeleton } from "@m4l/core";
|
|
4
4
|
import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
5
|
-
import { I as Icon } from "../Icon/index.
|
|
5
|
+
import { I as Icon } from "../Icon/index.83867398.js";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
-
import { E as componentName } from "../areas/constants.0d3ba950.js";
|
|
8
7
|
const PaperFormRoot = styled("div")(({ theme }) => ({
|
|
9
8
|
...theme.components?.M4LPaperForm?.styleOverrides
|
|
10
9
|
}));
|
|
@@ -55,6 +54,7 @@ const Header = (props) => {
|
|
|
55
54
|
/* @__PURE__ */ jsx(Skeleton, { variant: "text", width: 68, height: 14 })
|
|
56
55
|
] }) });
|
|
57
56
|
};
|
|
57
|
+
const componentName = "M4LPaperForm";
|
|
58
58
|
generateUtilityClasses(componentName, [
|
|
59
59
|
"root",
|
|
60
60
|
"headerContainer",
|