@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
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import React__default from "react";
|
|
|
2
2
|
import require$$1 from "prop-types";
|
|
3
3
|
import require$$2 from "react-dom";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { d as domFns, s as shims, l as log, p as positionFns } from "./utils/index.
|
|
5
|
+
import { d as domFns, s as shims, l as log, p as positionFns } from "./utils/index.14912462.js";
|
|
6
6
|
var cjs = { exports: {} };
|
|
7
7
|
var Draggable$1 = {};
|
|
8
8
|
var DraggableCore$2 = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
|
-
import { c as cjs } from "./react-draggable.
|
|
3
|
-
import { u as utils } from "./utils/index.
|
|
2
|
+
import { c as cjs } from "./react-draggable.1c1ba224.js";
|
|
3
|
+
import { u as utils } from "./utils/index.14912462.js";
|
|
4
4
|
import require$$1 from "prop-types";
|
|
5
5
|
var reactResizable = { exports: {} };
|
|
6
6
|
var Resizable$2 = {};
|
|
@@ -5,6 +5,6 @@ function getPropDataTestId(prefix, keyName) {
|
|
|
5
5
|
return process.env.NODE_ENV !== "production" && prefix && keyName ? { ["data-testid"]: `${prefix}-${[keyName]}` } : {};
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
getPropDataTestId as a,
|
|
9
|
+
getNameDataTestId as g
|
|
10
10
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { generateUtilityClass } from "@mui/material";
|
|
2
|
-
import React__default
|
|
3
|
-
import { ah as RHFAUTOCOMPLETE_PREFIX } from "../components/areas/constants.0d3ba950.js";
|
|
2
|
+
import React__default from "react";
|
|
4
3
|
function isValidDate(d) {
|
|
5
4
|
return d && d instanceof Date && !isNaN(d.getTime());
|
|
6
5
|
}
|
|
@@ -513,64 +512,12 @@ function cloneElement(element, props) {
|
|
|
513
512
|
}
|
|
514
513
|
return /* @__PURE__ */ _react.default.cloneElement(element, props);
|
|
515
514
|
}
|
|
516
|
-
const getNameDataTestId = (KEY) => {
|
|
517
|
-
return `${RHFAUTOCOMPLETE_PREFIX}-${KEY}`;
|
|
518
|
-
};
|
|
519
|
-
function useOnClickOutside(ref, handler, noRef) {
|
|
520
|
-
useEffect(() => {
|
|
521
|
-
const listener = (event) => {
|
|
522
|
-
const el = ref?.current;
|
|
523
|
-
const noEl = noRef?.current;
|
|
524
|
-
if (!el || el.contains(event.target) || noEl && noEl.contains(event.target)) {
|
|
525
|
-
return;
|
|
526
|
-
}
|
|
527
|
-
handler(event);
|
|
528
|
-
};
|
|
529
|
-
document.addEventListener("mousedown", listener);
|
|
530
|
-
document.addEventListener("touchstart", listener);
|
|
531
|
-
return () => {
|
|
532
|
-
document.removeEventListener("mousedown", listener);
|
|
533
|
-
document.removeEventListener("touchstart", listener);
|
|
534
|
-
};
|
|
535
|
-
}, [ref, handler]);
|
|
536
|
-
}
|
|
537
|
-
const getDataGridRowsFromSet = (set, rows, rowKeyGetter) => {
|
|
538
|
-
const rowsFinded = [];
|
|
539
|
-
if (set) {
|
|
540
|
-
if (set.size > 0) {
|
|
541
|
-
const iterator = set.entries();
|
|
542
|
-
for (let i = 0; i < set.size; i++) {
|
|
543
|
-
const entry = iterator.next().value;
|
|
544
|
-
const key = entry[1];
|
|
545
|
-
const row = rows.find((frow) => rowKeyGetter(frow) === key);
|
|
546
|
-
if (row) {
|
|
547
|
-
rowsFinded.push(row);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
return rowsFinded;
|
|
553
|
-
};
|
|
554
515
|
function containerQuery(breakpoints, containerName = "", size = "sm") {
|
|
555
516
|
return breakpoints.down(size).replace("@media ", `@container ${containerName} `);
|
|
556
517
|
}
|
|
557
|
-
const isActive = (data) => {
|
|
558
|
-
const path = window.location.pathname;
|
|
559
|
-
if (data.path === path) {
|
|
560
|
-
return true;
|
|
561
|
-
}
|
|
562
|
-
if (data.children) {
|
|
563
|
-
return data.children.some((item) => isActive(item));
|
|
564
|
-
}
|
|
565
|
-
return false;
|
|
566
|
-
};
|
|
567
518
|
export {
|
|
568
|
-
getNameDataTestId as a,
|
|
569
|
-
useOnClickOutside as b,
|
|
570
519
|
containerQuery as c,
|
|
571
520
|
domFns as d,
|
|
572
|
-
isActive as e,
|
|
573
|
-
getDataGridRowsFromSet as f,
|
|
574
521
|
getComponentUtilityClass as g,
|
|
575
522
|
isValidDate as i,
|
|
576
523
|
log$1 as l,
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useCallback, useEffect } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { T as TEST_PROP_ID } from "../areas/constants.0d3ba950.js";
|
|
5
|
-
import { styled } from "@mui/material/styles";
|
|
6
|
-
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
7
|
-
import { B as Button, L as LoadingButton } from "../mui_extended/Button/index.52852c42.js";
|
|
8
|
-
import { useFormContext, useFormState } from "react-hook-form";
|
|
9
|
-
import { u as useModal } from "../../hooks/useModal/index.d14c7e46.js";
|
|
10
|
-
import { u as useWindowToolsMF } from "../areas/hooks/useWindowToolsMF/index.09801b66.js";
|
|
11
|
-
import { W as WindowConfirm } from "../modal/WindowConfirm.243e1bef.js";
|
|
12
|
-
import { generateUtilityClasses, Skeleton } from "@mui/material";
|
|
13
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
14
|
-
import { g as getComponentUtilityClass } from "../../utils/index.c64c2dd1.js";
|
|
15
|
-
function getCommonActionsDictionary() {
|
|
16
|
-
return ["common_actions"];
|
|
17
|
-
}
|
|
18
|
-
const defaultCommonActionsDictionary = {
|
|
19
|
-
common_actions: {
|
|
20
|
-
cancel: "Cancel",
|
|
21
|
-
intro: "Intro",
|
|
22
|
-
confirm_quit_title: "Confirm",
|
|
23
|
-
confirm_quit_msg: "Are your sure exit?"
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
const componentName = "M4LCommonActions";
|
|
27
|
-
generateUtilityClasses(
|
|
28
|
-
componentName,
|
|
29
|
-
[
|
|
30
|
-
"root",
|
|
31
|
-
"skeleton",
|
|
32
|
-
"actionCancel",
|
|
33
|
-
"actionFormCancel",
|
|
34
|
-
"actionFormIntro",
|
|
35
|
-
"actionIntro",
|
|
36
|
-
"wrapperActions"
|
|
37
|
-
]
|
|
38
|
-
);
|
|
39
|
-
const useCommonActionsUtilityClasses = () => {
|
|
40
|
-
const slots = {
|
|
41
|
-
root: ["root"],
|
|
42
|
-
skeleton: ["skeleton"],
|
|
43
|
-
actionCancel: ["actionCancel"],
|
|
44
|
-
actionFormCancel: ["actionFormCancel"],
|
|
45
|
-
actionFormIntro: ["actionFormIntro"],
|
|
46
|
-
actionIntro: ["actionIntro"],
|
|
47
|
-
wrapperActions: ["wrapperActions"]
|
|
48
|
-
};
|
|
49
|
-
return unstable_composeClasses(slots, getComponentUtilityClass(componentName), {});
|
|
50
|
-
};
|
|
51
|
-
const WrapperStandarActions = styled("div")(({ theme }) => ({
|
|
52
|
-
...theme.components?.M4LCommonActions?.styleOverrides
|
|
53
|
-
}));
|
|
54
|
-
const COMMONACTIONS_PREFIX = "M4LCommonActions";
|
|
55
|
-
const getNameCommonActionsDataTestId = (KEY) => {
|
|
56
|
-
return `${COMMONACTIONS_PREFIX}-${KEY}`;
|
|
57
|
-
};
|
|
58
|
-
const Actions = forwardRef(function ActionsForwarded(props, ref) {
|
|
59
|
-
const { children, ...restProps } = props;
|
|
60
|
-
const classes = useCommonActionsUtilityClasses();
|
|
61
|
-
return /* @__PURE__ */ jsx(
|
|
62
|
-
WrapperStandarActions,
|
|
63
|
-
{
|
|
64
|
-
...restProps,
|
|
65
|
-
ref,
|
|
66
|
-
className: clsx(classes.root, restProps?.className),
|
|
67
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameCommonActionsDataTestId("root") } : {},
|
|
68
|
-
children
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
});
|
|
72
|
-
const ActionCancel = (props) => {
|
|
73
|
-
const { getLabel } = useModuleDictionary();
|
|
74
|
-
const classes = useCommonActionsUtilityClasses();
|
|
75
|
-
return /* @__PURE__ */ jsx(Button, { variant: "outlined", color: "inherit", ...props, className: classes.actionCancel, children: getLabel("common_actions.cancel") });
|
|
76
|
-
};
|
|
77
|
-
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
78
|
-
const ActionIntro = (props) => {
|
|
79
|
-
const { getLabel } = useModuleDictionary();
|
|
80
|
-
const classes = useCommonActionsUtilityClasses();
|
|
81
|
-
return /* @__PURE__ */ jsx(
|
|
82
|
-
Button,
|
|
83
|
-
{
|
|
84
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: ACTIONINTRO_TEST_ID } : {},
|
|
85
|
-
variant: "contained",
|
|
86
|
-
type: "submit",
|
|
87
|
-
color: "primary",
|
|
88
|
-
className: classes.actionIntro,
|
|
89
|
-
...props,
|
|
90
|
-
children: getLabel("common_actions.intro")
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
};
|
|
94
|
-
function ActionFormCancel() {
|
|
95
|
-
const { getLabel } = useModuleDictionary();
|
|
96
|
-
const { openModal } = useModal();
|
|
97
|
-
const { close: closeWindow, setFnQueryClose: setQueryClose } = useWindowToolsMF();
|
|
98
|
-
const { control } = useFormContext();
|
|
99
|
-
const { isDirty } = useFormState({
|
|
100
|
-
control
|
|
101
|
-
});
|
|
102
|
-
const onConfirmQuit = useCallback(() => {
|
|
103
|
-
closeWindow();
|
|
104
|
-
}, []);
|
|
105
|
-
const onClickCancel = useCallback(() => {
|
|
106
|
-
if (isDirty) {
|
|
107
|
-
openModal({
|
|
108
|
-
window: /* @__PURE__ */ jsx(
|
|
109
|
-
WindowConfirm,
|
|
110
|
-
{
|
|
111
|
-
variant: "warning",
|
|
112
|
-
title: getLabel("common_actions.confirm_quit_title"),
|
|
113
|
-
msg: getLabel("common_actions.confirm_quit_msg"),
|
|
114
|
-
onClickIntro: onConfirmQuit
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
variant: "warning"
|
|
118
|
-
});
|
|
119
|
-
} else {
|
|
120
|
-
onConfirmQuit();
|
|
121
|
-
}
|
|
122
|
-
}, [getLabel, isDirty, openModal]);
|
|
123
|
-
useEffect(() => {
|
|
124
|
-
setQueryClose(onClickCancel);
|
|
125
|
-
}, [onClickCancel]);
|
|
126
|
-
const classes = useCommonActionsUtilityClasses();
|
|
127
|
-
return /* @__PURE__ */ jsx(
|
|
128
|
-
Button,
|
|
129
|
-
{
|
|
130
|
-
variant: "outlined",
|
|
131
|
-
color: "inherit",
|
|
132
|
-
onClick: onClickCancel,
|
|
133
|
-
className: classes.actionFormCancel,
|
|
134
|
-
children: getLabel("common_actions.cancel")
|
|
135
|
-
}
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
function ActionFormIntro(props) {
|
|
139
|
-
const { getLabel } = useModuleDictionary();
|
|
140
|
-
const isSkeleton = useModuleSkeleton();
|
|
141
|
-
const { control } = useFormContext();
|
|
142
|
-
const { isSubmitting } = useFormState({
|
|
143
|
-
control
|
|
144
|
-
});
|
|
145
|
-
const classes = useCommonActionsUtilityClasses();
|
|
146
|
-
if (isSkeleton) {
|
|
147
|
-
return /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: 57, height: 30 });
|
|
148
|
-
}
|
|
149
|
-
return /* @__PURE__ */ jsx(
|
|
150
|
-
LoadingButton,
|
|
151
|
-
{
|
|
152
|
-
variant: "contained",
|
|
153
|
-
type: "submit",
|
|
154
|
-
color: "primary",
|
|
155
|
-
loading: isSubmitting,
|
|
156
|
-
className: classes.actionFormIntro,
|
|
157
|
-
...props,
|
|
158
|
-
children: getLabel("common_actions.intro")
|
|
159
|
-
}
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
export {
|
|
163
|
-
Actions as A,
|
|
164
|
-
ActionCancel as a,
|
|
165
|
-
ActionIntro as b,
|
|
166
|
-
ActionFormIntro as c,
|
|
167
|
-
ActionFormCancel as d,
|
|
168
|
-
defaultCommonActionsDictionary as e,
|
|
169
|
-
getCommonActionsDictionary as g
|
|
170
|
-
};
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
const componentName$l = "M4LIcon";
|
|
2
|
-
const TEST_PROP_ID = "data-testid";
|
|
3
|
-
const ICON_PREFIX = "Icon";
|
|
4
|
-
const AREAS_VIEWER_CLASS_NAME = "M4LAreasViewer";
|
|
5
|
-
const AREAS_ADMIN_CLASS_NAME = "M4LAreasAdmin";
|
|
6
|
-
const COMPONENT_CLASS_NAME$5 = "M4LGridLayout";
|
|
7
|
-
const DEFAULT_COLS = 12;
|
|
8
|
-
const DEFAULT_ROW_HEIGHT = 20;
|
|
9
|
-
const DEFAULT_CONTAINER_WIDTH = 1280;
|
|
10
|
-
const DEFAULT_CONTAINER_HEIGHT = 480;
|
|
11
|
-
const DEFAULT_RESPONSIVE_COLS = { lg: 12, md: 10, sm: 6, xs: 4, xxs: 1 };
|
|
12
|
-
const DEFAULT_RESPONSIVE_BREAKPOINTS = { lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 };
|
|
13
|
-
const DEFAULT_CONTAINER_PADDING = [10, 10];
|
|
14
|
-
const DEFAULT_MARGIN = [10, 10];
|
|
15
|
-
const DEFAULT_TRANSFORM_SCALE$1 = 1;
|
|
16
|
-
const DEFAULT_COLAPSED_HEIGHT = 35;
|
|
17
|
-
const THROTTLE_RESIZE_TIMEOUT = 200;
|
|
18
|
-
const componentName$k = "M4LFieldLabel";
|
|
19
|
-
const IMAGE_PREFIX = "Image";
|
|
20
|
-
const componentName$j = "M4LMenuActions";
|
|
21
|
-
const componentName$i = "M4LModal";
|
|
22
|
-
const componentName$h = "M4LRHFormProvider";
|
|
23
|
-
const RHFAUTOCOMPLETE_PREFIX = "RHFAutocomplete";
|
|
24
|
-
const RHFTAUTOCOMPLET_ROOT_TEST_ID = "RHFAutocomplete";
|
|
25
|
-
const componentName$g = "M4LPeriod";
|
|
26
|
-
const PERIOD_PREFIX = "M4LPeriod";
|
|
27
|
-
const componentName$f = "M4LScrollBar";
|
|
28
|
-
const componentName$e = "M4LMFLoader";
|
|
29
|
-
const componentName$d = "M4LoadingError";
|
|
30
|
-
const COMPONENT_CLASS_NAME$4 = "M4LFormatter";
|
|
31
|
-
const DATAGRID_PREFIX_NAME = "M4LDataGrid";
|
|
32
|
-
const DATAGRID_SELECT_COLUMN_KEY = "M4LDataGrid-CheckedColumn";
|
|
33
|
-
const DATAGRID_ACTIONS_COLUMN_KEY = "M4LDataGrid-ActionsColumn";
|
|
34
|
-
const componentName$c = "M4LDataGrid";
|
|
35
|
-
const DYNAMIC_FILTER_KEY_COMPONENT = "M4LDynamicFilter";
|
|
36
|
-
const ALL_FIELD = {
|
|
37
|
-
name: "all",
|
|
38
|
-
dictionaryId: "dynamic_filter.all_fields",
|
|
39
|
-
urlIcon: "",
|
|
40
|
-
type: "string",
|
|
41
|
-
multiple: true,
|
|
42
|
-
presence: "optional"
|
|
43
|
-
};
|
|
44
|
-
const STRING_OPERATORS = ["c", "nc"];
|
|
45
|
-
const NUMBER_OPERATORS = ["b", "e", "ne", "gt", "gte", "lt", "lte"];
|
|
46
|
-
const BOOLEAN_OPERATORS = ["e", "ne"];
|
|
47
|
-
const SELECT_OPERATORS = ["in", "nin"];
|
|
48
|
-
const DATE_TIME_OPERATORS = [
|
|
49
|
-
"b",
|
|
50
|
-
"e",
|
|
51
|
-
"ne",
|
|
52
|
-
"gt",
|
|
53
|
-
"gte",
|
|
54
|
-
"lt",
|
|
55
|
-
"lte"
|
|
56
|
-
];
|
|
57
|
-
const COMPONENT_CLASS_NAME$3 = "M4LMap";
|
|
58
|
-
const MAP_ZINDEX_DEFAULT = 0;
|
|
59
|
-
const MAP_ZINDEX_OVER_MAP$1 = 1100;
|
|
60
|
-
const TIME_DOUBLE_CLICK = 250;
|
|
61
|
-
const MARKER_COLOR_DEFAULT = "#1E96DC";
|
|
62
|
-
const LABEL_BK_COLOR_DEFAULT = "#1E96DC";
|
|
63
|
-
const LABEL_COLOR_DEFAULT = "#FFFFFF";
|
|
64
|
-
const GPS_TOOLS_POPUP_DEFAULT_POSITION = {
|
|
65
|
-
vertical: { top: 50, bottom: 50 },
|
|
66
|
-
horizontal: { right: 50, width: 380 }
|
|
67
|
-
};
|
|
68
|
-
const MESURE_POPUP_DEFAULT_POSITION = {
|
|
69
|
-
vertical: { top: 50, height: 250 },
|
|
70
|
-
horizontal: { right: 50, width: 300 }
|
|
71
|
-
};
|
|
72
|
-
const SVG_ICON_DEFAULT = `<svg viewBox="0 0 640 640" height="32" width="32" xmlns="http://www.w3.org/2000/svg">
|
|
73
|
-
<g>
|
|
74
|
-
<circle
|
|
75
|
-
cx="320"
|
|
76
|
-
cy="320"
|
|
77
|
-
r="280"
|
|
78
|
-
fill="#1E96DC"
|
|
79
|
-
/>
|
|
80
|
-
<text
|
|
81
|
-
x="320"
|
|
82
|
-
y="320"
|
|
83
|
-
font-size="320"
|
|
84
|
-
font-family="sans-serif"
|
|
85
|
-
fill="#FFFFFF"
|
|
86
|
-
text-anchor="middle"
|
|
87
|
-
alignment-baseline="central"
|
|
88
|
-
dominant-baseline="central"
|
|
89
|
-
>P</text>
|
|
90
|
-
</g>
|
|
91
|
-
</svg>`;
|
|
92
|
-
const COMPONENT_CLASS_NAME$2 = "M4LDraggableWindow";
|
|
93
|
-
const DEFAULT_TRANSFORM_SCALE = 1;
|
|
94
|
-
const COMPONENT_CLASS_NAME$1 = "M4LPopupsViewer";
|
|
95
|
-
const MAP_ZINDEX_OVER_MAP = 1100;
|
|
96
|
-
const componentName$b = "M4LPrintingSystem";
|
|
97
|
-
const INITIAL_FORM_VALUES = {
|
|
98
|
-
statusLoad: "ready",
|
|
99
|
-
reInits: 0,
|
|
100
|
-
value: "0",
|
|
101
|
-
measureTypeId: "distance",
|
|
102
|
-
magnitudFactor: {
|
|
103
|
-
id: "m_kilometers",
|
|
104
|
-
name: "Kilometers",
|
|
105
|
-
symbol: "k",
|
|
106
|
-
factor_x0: 0,
|
|
107
|
-
factor_x1: 1,
|
|
108
|
-
factor_x2: 0
|
|
109
|
-
},
|
|
110
|
-
unitArea: null,
|
|
111
|
-
statusEdition: "initial"
|
|
112
|
-
};
|
|
113
|
-
const STYLE_MEASURE_OPTIONS = {
|
|
114
|
-
strokeLineColor: "#1E96DC",
|
|
115
|
-
strokeLineWeight: 5,
|
|
116
|
-
markerHeight: 37,
|
|
117
|
-
markerWidth: 26,
|
|
118
|
-
labelMarkerHeight: 0,
|
|
119
|
-
labelMarkerWidth: 0,
|
|
120
|
-
labelMarkerAnchorY: 0,
|
|
121
|
-
labelMarkerAnchorX: 0
|
|
122
|
-
};
|
|
123
|
-
const COMPONENT_CLASS_NAME = "M4LGpsTools";
|
|
124
|
-
const COMPONENT_MAP_TOOLS_ID = "gps_tools";
|
|
125
|
-
const STYLE_OPACITIES = [
|
|
126
|
-
{
|
|
127
|
-
value: 0,
|
|
128
|
-
label: "0%"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
value: 0.1,
|
|
132
|
-
label: "10%"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
value: 0.2,
|
|
136
|
-
label: "20%"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
value: 0.3,
|
|
140
|
-
label: "30%"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
value: 0.4,
|
|
144
|
-
label: "40%"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
value: 0.5,
|
|
148
|
-
label: "50%"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
value: 1,
|
|
152
|
-
label: "100%"
|
|
153
|
-
}
|
|
154
|
-
];
|
|
155
|
-
const STYLE_WHEIGHTS = [
|
|
156
|
-
{
|
|
157
|
-
value: 0,
|
|
158
|
-
label: "0px"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
value: 1,
|
|
162
|
-
label: "1px"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
value: 2,
|
|
166
|
-
label: "2px"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
value: 3,
|
|
170
|
-
label: "3px"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
value: 4,
|
|
174
|
-
label: "4px"
|
|
175
|
-
}
|
|
176
|
-
];
|
|
177
|
-
const STYLE_PATTERNS = [
|
|
178
|
-
{
|
|
179
|
-
value: "",
|
|
180
|
-
label: "------"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
value: "4 1 2",
|
|
184
|
-
label: "-- - - --"
|
|
185
|
-
}
|
|
186
|
-
];
|
|
187
|
-
const NAVLINK_PREFIX = "Navlink";
|
|
188
|
-
const componentName$a = "M4LNoItemSelected";
|
|
189
|
-
const componentName$9 = "M4LPaperForm";
|
|
190
|
-
const componentName$8 = "M4LPDFViewer";
|
|
191
|
-
const componentName$7 = "M4LPropertyValue";
|
|
192
|
-
const COMPONENT_PREFIX = "m4l-property-value";
|
|
193
|
-
const TEST_PROPS_DATA = `${COMPONENT_PREFIX}-data`;
|
|
194
|
-
const componentName$6 = "M4LSplitLayout";
|
|
195
|
-
const SPLITLAYOUT_PREFIX = "M4LSplitLayout";
|
|
196
|
-
const componentName$5 = "M4LToastContainer";
|
|
197
|
-
const componentName$4 = "M4LSideBar";
|
|
198
|
-
const SIDEBAR_PREFIX = "M4LSideBar";
|
|
199
|
-
const MENU_COLLAPSED_SIZE = "14px";
|
|
200
|
-
const MENU_COLLAPSED_CONTAINER_SIZE = "15px";
|
|
201
|
-
const componentName$3 = "M4LAppBarCommercial";
|
|
202
|
-
const componentName$2 = "M4LHamburgerMenuCommercial";
|
|
203
|
-
const HAMBURGER_MENU_PREFIX = "M4LHamburgerMenu";
|
|
204
|
-
const componentName$1 = "M4LTopBar";
|
|
205
|
-
const componentName = "M4LSectionCommercial";
|
|
206
|
-
export {
|
|
207
|
-
COMPONENT_CLASS_NAME$3 as $,
|
|
208
|
-
ALL_FIELD as A,
|
|
209
|
-
BOOLEAN_OPERATORS as B,
|
|
210
|
-
COMPONENT_CLASS_NAME$2 as C,
|
|
211
|
-
DEFAULT_TRANSFORM_SCALE as D,
|
|
212
|
-
componentName$9 as E,
|
|
213
|
-
componentName$g as F,
|
|
214
|
-
componentName$b as G,
|
|
215
|
-
HAMBURGER_MENU_PREFIX as H,
|
|
216
|
-
ICON_PREFIX as I,
|
|
217
|
-
componentName$7 as J,
|
|
218
|
-
TEST_PROPS_DATA as K,
|
|
219
|
-
LABEL_BK_COLOR_DEFAULT as L,
|
|
220
|
-
MAP_ZINDEX_OVER_MAP$1 as M,
|
|
221
|
-
NUMBER_OPERATORS as N,
|
|
222
|
-
COMPONENT_PREFIX as O,
|
|
223
|
-
PERIOD_PREFIX as P,
|
|
224
|
-
componentName$f as Q,
|
|
225
|
-
componentName$4 as R,
|
|
226
|
-
STRING_OPERATORS as S,
|
|
227
|
-
TEST_PROP_ID as T,
|
|
228
|
-
SIDEBAR_PREFIX as U,
|
|
229
|
-
MENU_COLLAPSED_CONTAINER_SIZE as V,
|
|
230
|
-
MENU_COLLAPSED_SIZE as W,
|
|
231
|
-
componentName$6 as X,
|
|
232
|
-
SPLITLAYOUT_PREFIX as Y,
|
|
233
|
-
componentName$5 as Z,
|
|
234
|
-
COMPONENT_CLASS_NAME as _,
|
|
235
|
-
MAP_ZINDEX_OVER_MAP as a,
|
|
236
|
-
STYLE_MEASURE_OPTIONS as a0,
|
|
237
|
-
MAP_ZINDEX_DEFAULT as a1,
|
|
238
|
-
INITIAL_FORM_VALUES as a2,
|
|
239
|
-
GPS_TOOLS_POPUP_DEFAULT_POSITION as a3,
|
|
240
|
-
MESURE_POPUP_DEFAULT_POSITION as a4,
|
|
241
|
-
TIME_DOUBLE_CLICK as a5,
|
|
242
|
-
MARKER_COLOR_DEFAULT as a6,
|
|
243
|
-
SVG_ICON_DEFAULT as a7,
|
|
244
|
-
componentName$i as a8,
|
|
245
|
-
DATAGRID_SELECT_COLUMN_KEY as a9,
|
|
246
|
-
DATAGRID_ACTIONS_COLUMN_KEY as aa,
|
|
247
|
-
COMPONENT_MAP_TOOLS_ID as ab,
|
|
248
|
-
STYLE_OPACITIES as ac,
|
|
249
|
-
STYLE_WHEIGHTS as ad,
|
|
250
|
-
STYLE_PATTERNS as ae,
|
|
251
|
-
COMPONENT_CLASS_NAME$1 as af,
|
|
252
|
-
componentName$h as ag,
|
|
253
|
-
RHFAUTOCOMPLETE_PREFIX as ah,
|
|
254
|
-
AREAS_VIEWER_CLASS_NAME as ai,
|
|
255
|
-
AREAS_ADMIN_CLASS_NAME as aj,
|
|
256
|
-
componentName$j as ak,
|
|
257
|
-
RHFTAUTOCOMPLET_ROOT_TEST_ID as al,
|
|
258
|
-
COMPONENT_CLASS_NAME$4 as am,
|
|
259
|
-
componentName$c as an,
|
|
260
|
-
DATAGRID_PREFIX_NAME as ao,
|
|
261
|
-
componentName$3 as ap,
|
|
262
|
-
componentName$1 as aq,
|
|
263
|
-
componentName as ar,
|
|
264
|
-
DATE_TIME_OPERATORS as b,
|
|
265
|
-
SELECT_OPERATORS as c,
|
|
266
|
-
DYNAMIC_FILTER_KEY_COMPONENT as d,
|
|
267
|
-
componentName$k as e,
|
|
268
|
-
DEFAULT_ROW_HEIGHT as f,
|
|
269
|
-
COMPONENT_CLASS_NAME$5 as g,
|
|
270
|
-
DEFAULT_COLS as h,
|
|
271
|
-
DEFAULT_CONTAINER_PADDING as i,
|
|
272
|
-
DEFAULT_MARGIN as j,
|
|
273
|
-
DEFAULT_COLAPSED_HEIGHT as k,
|
|
274
|
-
DEFAULT_CONTAINER_WIDTH as l,
|
|
275
|
-
DEFAULT_CONTAINER_HEIGHT as m,
|
|
276
|
-
DEFAULT_TRANSFORM_SCALE$1 as n,
|
|
277
|
-
DEFAULT_RESPONSIVE_BREAKPOINTS as o,
|
|
278
|
-
DEFAULT_RESPONSIVE_COLS as p,
|
|
279
|
-
THROTTLE_RESIZE_TIMEOUT as q,
|
|
280
|
-
componentName$2 as r,
|
|
281
|
-
componentName$l as s,
|
|
282
|
-
LABEL_COLOR_DEFAULT as t,
|
|
283
|
-
IMAGE_PREFIX as u,
|
|
284
|
-
componentName$d as v,
|
|
285
|
-
componentName$e as w,
|
|
286
|
-
NAVLINK_PREFIX as x,
|
|
287
|
-
componentName$a as y,
|
|
288
|
-
componentName$8 as z
|
|
289
|
-
};
|