@m4l/components 0.2.36 → 1.0.0
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.a9dc9f92.js → index.efc74d5c.js} +3 -5
- package/components/AppBar/{index.7dee7427.js → index.fc126a22.js} +6 -5
- package/components/AppBar/styles.d.ts +1 -1
- package/components/CommonActions/components/Actions/styles.d.ts +1 -1
- package/components/DataGrid/styles.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/styles.d.ts +7 -7
- package/components/DragResizeWindow/{index.a9f25040.js → index.46b380e1.js} +3 -6
- package/components/DynamicFilter/dynamicFilterSlots.d.ts +76 -101
- package/components/DynamicFilter/{index.48d809e2.js → index.d9168c12.js} +22 -96
- package/components/FieldLabel/{index.2622ee40.js → index.f9cdcc27.js} +4 -4
- package/components/GridLayout/{index.b9c47a4c.js → index.bb3b7769.js} +23 -46
- package/components/GridLayout/subcomponents/Griditem/{index.69bc14e5.js → index.bb23f651.js} +4 -3
- package/components/GridLayout/subcomponents/Responsive/{index.094c1d09.js → index.b8a2a121.js} +2 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.e1d2df80.js → index.094bc6b5.js} +1 -1
- package/components/{commercial/index.b90488db.js → HamburgerMenu/index.5997af31.js} +4 -6
- package/components/HelperText/{index.81c5d349.js → index.be949cdf.js} +3 -2
- package/components/HelperText/styles.d.ts +1 -1
- package/components/Icon/index.d5fed418.js +420 -0
- package/components/Icon/styles.d.ts +2 -2
- package/components/{hook-form/RHFUpload/index.c5e5c61c.js → Image/index.36a3d440.js} +233 -32
- package/components/Image/styles.d.ts +1 -1
- package/components/LanguagePopover/{index.72f316fc.js → index.e6fa2336.js} +5 -8
- package/components/LanguagePopover/styles.d.ts +5 -5
- package/components/LinearProgressIndeterminate/{index.2ecd571e.js → index.de9d447c.js} +2 -4
- package/components/Loadable/{index.97fe63f9.js → index.e83cdb4e.js} +1 -1
- package/components/LoadingError/{index.7aaba1cf.js → index.9f00c83c.js} +8 -12
- package/components/LoadingError/styles.d.ts +1 -1
- package/components/MFLoader/{index.40c419c0.js → index.402c1acc.js} +4 -8
- package/components/ModalDialog/{index.42349189.js → index.ea9189c3.js} +5 -14
- package/components/NavLink/{index.9e847eb5.js → index.4e548cee.js} +4 -4
- package/components/NavLink/styles.d.ts +1 -1
- package/components/NoItemSelected/{index.5a8160fd.js → index.418c8316.js} +6 -15
- package/components/NoItemSelected/styles.d.ts +4 -4
- package/components/ObjectLogs/{index.6955149e.js → index.bfa7dad3.js} +10 -27
- package/components/ObjectLogs/styles.d.ts +3 -3
- package/components/PDFViewer/{index.47bb0928.js → index.bb2eca5a.js} +2 -2
- package/components/{mui_extended/Pager/index.1ba2d52b.js → Page/index.fdf04592.js} +134 -26
- package/components/PaperForm/{index.9f6fd02d.js → index.8121e3da.js} +8 -7
- package/components/PaperForm/styles.d.ts +6 -6
- package/components/Period/{index.c6d1a95a.js → index.5233694b.js} +157 -22
- package/components/Period/styles.d.ts +5 -5
- package/components/PrintingSystem/{index.f51a00f8.js → index.fb176a93.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.6792c353.js → index.c1d61038.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.eec6b4cd.js → index.18bd9bad.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.e58467c9.js → index.67d9f1b4.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.920b75c9.js → index.eaee152a.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.6c1ad53c.js → index.f5f63a2a.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.e8b151ad.js → index.7de4e411.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.bf199422.js → index.f9ccf22b.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.44d436b9.js → index.f2f2e903.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.879cf13d.js → index.540a4b19.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.eb6af0ca.js → index.41e7fcb0.js} +1 -1
- package/components/PropertyValue/{index.5e59580c.js → index.9572c347.js} +4 -7
- package/components/Resizeable/{index.5e8e48b1.js → index.1f0c1359.js} +7 -7
- package/components/ResizeableWindow/styles.d.ts +1 -1
- package/components/ScrollBar/{index.4b965665.js → index.adf0eade.js} +2 -4
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/SideBar/{index.5d1f4a23.js → index.629ba840.js} +24 -26
- package/components/SideBar/styles.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +3 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/styles.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +2 -18
- package/components/SplitLayout/{index.15756f0f.js → index.74091a81.js} +1 -3
- package/components/ToastContainer/{index.dbd78941.js → index.f9b507b9.js} +3 -3
- package/components/animate/LoadingScreen/{index.1a83615a.js → index.779690a7.js} +3 -5
- package/components/animate/PropagateLoader/{index.76d7ea70.js → index.a9da8d00.js} +3 -2
- package/components/animate/PropagateLoader/syles.d.ts +1 -1
- package/components/animate/{index.87296638.js → index.b8497385.js} +3 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/styles.d.ts +3 -3
- package/components/areas/constants.5387d83e.js +412 -0
- package/components/areas/contexts/AreasContext/{index.19c7b906.js → index.bb316000.js} +5 -6
- package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index.37d1d444.js} +2 -2
- package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index.69d95c15.js} +2 -2
- package/components/areas/dictionary.7e74022a.js +286 -0
- package/components/areas/hooks/useAreas/{index.cedd30ee.js → index.e24bd74d.js} +1 -1
- package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index.03ce6078.js} +1 -1
- package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index.09801b66.js} +1 -1
- package/components/areas/icons.504ec098.js +83 -0
- package/components/commercial/HamburgerMenu/styles.d.ts +1 -1
- package/components/commercial/SectionCommercial/styles.d.ts +4 -9
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/styles.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/styles.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/styles.d.ts +4 -4
- package/components/hook-form/RHFCheckbox/styles.d.ts +2 -10
- package/components/hook-form/RHFPeriod/styles.d.ts +1 -1
- package/components/hook-form/RHFTextField/styles.d.ts +2 -2
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +2 -2
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +1 -1
- package/components/maps/components/GpsTools/{index.4ea69dd1.js → index.75880ce0.js} +14 -136
- package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +4 -9
- package/components/maps/{components/Map/index.62b7d09b.js → index.8ec46ce4.js} +19 -194
- package/components/modal/{WindowBase.2414cd02.js → WindowBase.a3ac7adc.js} +3 -4
- package/components/modal/{WindowConfirm.48140481.js → WindowConfirm.e35da619.js} +6 -10
- package/components/modal/{index.81eb6def.js → index.a0e30c8b.js} +1 -5
- package/components/mui_extended/Accordion/styles.d.ts +3 -3
- package/components/mui_extended/Badge/styles.d.ts +1 -1
- package/components/mui_extended/Button/styles.d.ts +2 -10
- package/components/mui_extended/IconButton/styles.d.ts +1 -1
- package/components/mui_extended/ImageButton/styles.d.ts +1 -1
- package/components/mui_extended/MenuActions/styles.d.ts +2 -27
- package/components/mui_extended/Pager/styles.d.ts +1 -1
- package/components/mui_extended/Stack/styles.d.ts +2 -9
- package/components/mui_extended/Tab/styles.d.ts +2 -2
- package/components/mui_extended/Tabs/styles.d.ts +3 -58
- package/components/mui_extended/Typography/styles.d.ts +1 -1
- package/components/popups/PopupsProvider/{index.8fb6232a.js → index.18669fb4.js} +1 -1
- package/components/popups/PopupsViewer/{index.813854e4.js → index.ba354267.js} +5 -10
- package/contexts/ModalContext/{index.45c275cd.js → index.cf02e6bd.js} +1 -1
- package/contexts/RHFormContext/{index.bf3a2812.js → index.dc955a09.js} +2 -6
- package/hooks/useFormAddEdit/{index.9b27ca02.js → index.f156a2cd.js} +4 -8
- package/hooks/useModal/index.ef54bcf2.js +66 -0
- package/hooks/useTab/{index.f7973779.js → index.bce8b99e.js} +1 -1
- package/index.d.ts +0 -1
- package/index.js +276 -360
- package/package.json +3 -2
- package/{react-draggable.79b4c69a.js → react-draggable.5331add7.js} +1 -1
- package/{react-resizable.af1f31c1.js → react-resizable.37bfb965.js} +3 -5
- package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId.aee44365.js} +2 -2
- package/test/index.6d4b98b9.js +4 -0
- package/utils/{index.0718eeac.js → index.9ee4c99a.js} +113 -3
- package/vendor.a1ce6777.js +6352 -0
- package/assets/Logo/index.109a182d.js +0 -38
- package/assets/Logo.d.ts +0 -6
- package/components/CommonActions/components/ActionCancel/index.46f636e9.js +0 -12
- package/components/CommonActions/components/ActionFormCancel/index.2b0bd50d.js +0 -56
- package/components/CommonActions/components/ActionFormIntro/index.4f212c39.js +0 -33
- package/components/CommonActions/components/ActionIntro/index.7406bd47.js +0 -25
- package/components/CommonActions/components/Actions/index.273645af.js +0 -70
- package/components/DataGrid/constants.e334cd50.js +0 -10
- package/components/DataGrid/formatters/ColumnBooleanFormatter/index.cee6b676.js +0 -26
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.708f3fb5.js +0 -22
- package/components/DataGrid/formatters/ColumnDateFormatter/index.e00d0cf2.js +0 -19
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.c064bb07.js +0 -23
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/index.880e743b.js +0 -14
- package/components/DataGrid/formatters/ColumnPointsFormatter/index.226cc583.js +0 -10
- package/components/DataGrid/formatters/ColumnPriceFormatter/index.bf9d9e60.js +0 -10
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js +0 -36
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index.a87302d1.js +0 -10
- package/components/DataGrid/formatters/index.2c2f0ae4.js +0 -1
- package/components/DataGrid/index.304437ee.js +0 -917
- package/components/DataGrid/subcomponents/Actions/index.f14590d2.js +0 -595
- package/components/DataGrid/subcomponents/editors/TextEditor/index.3f0d9e28.js +0 -76
- package/components/Icon/index.ee7b85c9.js +0 -192
- package/components/Image/index.8cc036b1.js +0 -168
- package/components/Page/index.c1d4a319.js +0 -114
- package/components/animate/variants/index.7a912140.js +0 -1
- package/components/areas/components/AreasAdmin/index.f239c717.js +0 -733
- package/components/areas/components/AreasViewer/index.61e0538b.js +0 -1071
- package/components/areas/components/index.558684b3.js +0 -1
- package/components/areas/constants.66529246.js +0 -6
- package/components/areas/contexts/index.24025b97.js +0 -1
- package/components/areas/dictionary.08cfc4c9.js +0 -36
- package/components/areas/hooks/index.d9dc1e21.js +0 -1
- package/components/areas/icons.8266ccc8.js +0 -26
- package/components/areas/index.4cc6a221.js +0 -22
- package/components/commercial/AppBarCommercial/index.9f654f8e.js +0 -28
- package/components/commercial/SectionCommercial/index.3df4685b.js +0 -57
- package/components/commercial/TopBar/index.7aeb6ec0.js +0 -234
- package/components/formatters/BooleanFormatter/index.0c2d8e35.js +0 -44
- package/components/formatters/DateFormatter/index.2ef6f261.js +0 -43
- package/components/formatters/PointsFormatter/index.d8a4ee54.js +0 -25
- package/components/formatters/PriceFormatter/index.97f75b4b.js +0 -35
- package/components/formatters/UncertaintyFormatter/index.c3ffdebc.js +0 -29
- package/components/formatters/index.b816c6b6.js +0 -117
- package/components/hook-form/HelperError/index.c8b046b7.js +0 -19
- package/components/hook-form/RHFAutocomplete/index.ea2ac2b1.js +0 -408
- package/components/hook-form/RHFAutocompleteAsync/index.98dcf0de.js +0 -158
- package/components/hook-form/RHFCheckbox/index.c32278fa.js +0 -142
- package/components/hook-form/RHFColorPicker/index.8c939bfd.js +0 -191
- package/components/hook-form/RHFDateTime/index.ac27deab.js +0 -190
- package/components/hook-form/RHFMultiCheckbox/index.437e6ba3.js +0 -34
- package/components/hook-form/RHFPeriod/index.70cfc422.js +0 -104
- package/components/hook-form/RHFRadioGroup/index.11c0add8.js +0 -35
- package/components/hook-form/RHFSelect/index.c6c60ecc.js +0 -29
- package/components/hook-form/RHFTextField/index.fa97889a.js +0 -325
- package/components/maps/index.13bb982c.js +0 -7
- package/components/mui_extended/Accordion/index.d08a0361.js +0 -142
- package/components/mui_extended/Avatar/index.fb9ad158.js +0 -63
- package/components/mui_extended/Badge/index.2a3aef2c.js +0 -30
- package/components/mui_extended/BoxIcon/index.d61e7ac5.js +0 -22
- package/components/mui_extended/Breadcrumbs/index.4a44883c.js +0 -87
- package/components/mui_extended/Button/index.5395d101.js +0 -213
- package/components/mui_extended/CheckBox.256169f0.js +0 -76
- package/components/mui_extended/CircularProgress/index.967e70b7.js +0 -8
- package/components/mui_extended/IconButton/index.b0ee4965.js +0 -119
- package/components/mui_extended/LinearProgress/index.4092bb69.js +0 -9
- package/components/mui_extended/LinkWithRoute/index.288c51f3.js +0 -15
- package/components/mui_extended/MenuActions/index.d92ed0d6.js +0 -175
- package/components/mui_extended/Popover/index.4e7340b4.js +0 -142
- package/components/mui_extended/Stack/index.fe363ca5.js +0 -31
- package/components/mui_extended/Tab/index.c5ad86e2.js +0 -134
- package/components/mui_extended/ToggleButton/index.7fbc8614.js +0 -18
- package/components/mui_extended/ToggleIconButton/index.0cd347b4.js +0 -24
- package/components/mui_extended/Tooltip/index.49bb5ee1.js +0 -40
- package/components/mui_extended/Typography/index.a1e774a2.js +0 -54
- package/components/mui_extended/index.b606cd9d.js +0 -1
- package/hooks/useModal/index.30674bb7.js +0 -11
- package/style.css +0 -65
- package/test/constants_no_mock.86c553a9.js +0 -4
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Link } from "react-router-dom";
|
|
3
|
-
import { useTheme } from "@mui/material/styles";
|
|
4
|
-
import { Box } from "@mui/material";
|
|
5
|
-
function Logo({ disabledLink = false, sx }) {
|
|
6
|
-
const theme = useTheme();
|
|
7
|
-
const PRIMARY_LIGHT = theme.palette.primary.light;
|
|
8
|
-
const PRIMARY_MAIN = theme.palette.primary.main;
|
|
9
|
-
const PRIMARY_DARK = theme.palette.primary.dark;
|
|
10
|
-
const logo = /* @__PURE__ */ jsx(Box, { sx: { width: 40, height: 40, ...sx }, children: /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 512 512", children: [
|
|
11
|
-
/* @__PURE__ */ jsxs("defs", { children: [
|
|
12
|
-
/* @__PURE__ */ jsxs("linearGradient", { id: "BG1", x1: "100%", x2: "50%", y1: "9.946%", y2: "50%", children: [
|
|
13
|
-
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: PRIMARY_DARK }),
|
|
14
|
-
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: PRIMARY_MAIN })
|
|
15
|
-
] }),
|
|
16
|
-
/* @__PURE__ */ jsxs("linearGradient", { id: "BG2", x1: "50%", x2: "50%", y1: "0%", y2: "100%", children: [
|
|
17
|
-
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: PRIMARY_LIGHT }),
|
|
18
|
-
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: PRIMARY_MAIN })
|
|
19
|
-
] }),
|
|
20
|
-
/* @__PURE__ */ jsxs("linearGradient", { id: "BG3", x1: "50%", x2: "50%", y1: "0%", y2: "100%", children: [
|
|
21
|
-
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: PRIMARY_LIGHT }),
|
|
22
|
-
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: PRIMARY_MAIN })
|
|
23
|
-
] })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ jsxs("g", { fillRule: "evenodd", clipRule: "evenodd", children: [
|
|
26
|
-
/* @__PURE__ */ jsx("path", { fill: "url(#BG1)", d: "m1.9 136.9 208.3 120.3v240.5L1.9 377.5z" }),
|
|
27
|
-
/* @__PURE__ */ jsx("path", { fill: "url(#BG2)", d: "m226.8 257.2 208.5-120.3v240.6L226.8 497.8z" }),
|
|
28
|
-
/* @__PURE__ */ jsx("path", { fill: "url(#BG3)", d: "M218.6 242.8 10.2 122.5 218.6 2.2 427 122.5z" })
|
|
29
|
-
] })
|
|
30
|
-
] }) });
|
|
31
|
-
if (disabledLink) {
|
|
32
|
-
return /* @__PURE__ */ jsx(Fragment, { children: logo });
|
|
33
|
-
}
|
|
34
|
-
return /* @__PURE__ */ jsx(Link, { to: "/", children: logo });
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
Logo as L
|
|
38
|
-
};
|
package/assets/Logo.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { B as Button } from "../../../mui_extended/Button/index.5395d101.js";
|
|
4
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.273645af.js";
|
|
5
|
-
const ActionCancel = (props) => {
|
|
6
|
-
const { getLabel } = useModuleDictionary();
|
|
7
|
-
const classes = useCommonActionsUtilityClasses();
|
|
8
|
-
return /* @__PURE__ */ jsx(Button, { variant: "outlined", color: "inherit", ...props, className: classes.actionCancel, children: getLabel("common_actions.cancel") });
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
ActionCancel as A
|
|
12
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useFormContext, useFormState } from "react-hook-form";
|
|
3
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { B as Button } from "../../../mui_extended/Button/index.5395d101.js";
|
|
5
|
-
import { useCallback, useEffect } from "react";
|
|
6
|
-
import { u as useModal } from "../../../../hooks/useModal/index.30674bb7.js";
|
|
7
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.273645af.js";
|
|
8
|
-
import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.2fbae9dc.js";
|
|
9
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.48140481.js";
|
|
10
|
-
function ActionFormCancel() {
|
|
11
|
-
const { getLabel } = useModuleDictionary();
|
|
12
|
-
const { openModal } = useModal();
|
|
13
|
-
const { close: closeWindow, setFnQueryClose: setQueryClose } = useWindowToolsMF();
|
|
14
|
-
const { control } = useFormContext();
|
|
15
|
-
const { isDirty } = useFormState({
|
|
16
|
-
control
|
|
17
|
-
});
|
|
18
|
-
const onConfirmQuit = useCallback(() => {
|
|
19
|
-
closeWindow();
|
|
20
|
-
}, []);
|
|
21
|
-
const onClickCancel = useCallback(() => {
|
|
22
|
-
if (isDirty) {
|
|
23
|
-
openModal({
|
|
24
|
-
window: /* @__PURE__ */ jsx(
|
|
25
|
-
WindowConfirm,
|
|
26
|
-
{
|
|
27
|
-
variant: "warning",
|
|
28
|
-
title: getLabel("common_actions.confirm_quit_title"),
|
|
29
|
-
msg: getLabel("common_actions.confirm_quit_msg"),
|
|
30
|
-
onClickIntro: onConfirmQuit
|
|
31
|
-
}
|
|
32
|
-
),
|
|
33
|
-
variant: "warning"
|
|
34
|
-
});
|
|
35
|
-
} else {
|
|
36
|
-
onConfirmQuit();
|
|
37
|
-
}
|
|
38
|
-
}, [getLabel, isDirty, openModal]);
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
setQueryClose(onClickCancel);
|
|
41
|
-
}, [onClickCancel]);
|
|
42
|
-
const classes = useCommonActionsUtilityClasses();
|
|
43
|
-
return /* @__PURE__ */ jsx(
|
|
44
|
-
Button,
|
|
45
|
-
{
|
|
46
|
-
variant: "outlined",
|
|
47
|
-
color: "inherit",
|
|
48
|
-
onClick: onClickCancel,
|
|
49
|
-
className: classes.actionFormCancel,
|
|
50
|
-
children: getLabel("common_actions.cancel")
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
export {
|
|
55
|
-
ActionFormCancel as A
|
|
56
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useFormContext, useFormState } from "react-hook-form";
|
|
3
|
-
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
4
|
-
import { Skeleton } from "@mui/material";
|
|
5
|
-
import { L as LoadingButton } from "../../../mui_extended/Button/index.5395d101.js";
|
|
6
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.273645af.js";
|
|
7
|
-
function ActionFormIntro(props) {
|
|
8
|
-
const { getLabel } = useModuleDictionary();
|
|
9
|
-
const isSkeleton = useModuleSkeleton();
|
|
10
|
-
const { control } = useFormContext();
|
|
11
|
-
const { isSubmitting } = useFormState({
|
|
12
|
-
control
|
|
13
|
-
});
|
|
14
|
-
const classes = useCommonActionsUtilityClasses();
|
|
15
|
-
if (isSkeleton) {
|
|
16
|
-
return /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: 57, height: 30 });
|
|
17
|
-
}
|
|
18
|
-
return /* @__PURE__ */ jsx(
|
|
19
|
-
LoadingButton,
|
|
20
|
-
{
|
|
21
|
-
variant: "contained",
|
|
22
|
-
type: "submit",
|
|
23
|
-
color: "primary",
|
|
24
|
-
loading: isSubmitting,
|
|
25
|
-
className: classes.actionFormIntro,
|
|
26
|
-
...props,
|
|
27
|
-
children: getLabel("common_actions.intro")
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
ActionFormIntro as A
|
|
33
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { B as Button } from "../../../mui_extended/Button/index.5395d101.js";
|
|
4
|
-
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
5
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.273645af.js";
|
|
6
|
-
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
7
|
-
const ActionIntro = (props) => {
|
|
8
|
-
const { getLabel } = useModuleDictionary();
|
|
9
|
-
const classes = useCommonActionsUtilityClasses();
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
-
Button,
|
|
12
|
-
{
|
|
13
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: ACTIONINTRO_TEST_ID } : {},
|
|
14
|
-
variant: "contained",
|
|
15
|
-
type: "submit",
|
|
16
|
-
color: "primary",
|
|
17
|
-
className: classes.actionIntro,
|
|
18
|
-
...props,
|
|
19
|
-
children: getLabel("common_actions.intro")
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
ActionIntro as A
|
|
25
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
5
|
-
import { generateUtilityClasses, styled } from "@mui/material";
|
|
6
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.0718eeac.js";
|
|
8
|
-
function getCommonActionsDictionary() {
|
|
9
|
-
return ["common_actions"];
|
|
10
|
-
}
|
|
11
|
-
const defaultCommonActionsDictionary = {
|
|
12
|
-
common_actions: {
|
|
13
|
-
cancel: "Cancel",
|
|
14
|
-
intro: "Intro",
|
|
15
|
-
confirm_quit_title: "Confirm",
|
|
16
|
-
confirm_quit_msg: "Are your sure exit?"
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
const componentName = "M4LCommonActions";
|
|
20
|
-
generateUtilityClasses(
|
|
21
|
-
componentName,
|
|
22
|
-
[
|
|
23
|
-
"root",
|
|
24
|
-
"skeleton",
|
|
25
|
-
"actionCancel",
|
|
26
|
-
"actionFormCancel",
|
|
27
|
-
"actionFormIntro",
|
|
28
|
-
"actionIntro",
|
|
29
|
-
"wrapperActions"
|
|
30
|
-
]
|
|
31
|
-
);
|
|
32
|
-
const useCommonActionsUtilityClasses = () => {
|
|
33
|
-
const slots = {
|
|
34
|
-
root: ["root"],
|
|
35
|
-
skeleton: ["skeleton"],
|
|
36
|
-
actionCancel: ["actionCancel"],
|
|
37
|
-
actionFormCancel: ["actionFormCancel"],
|
|
38
|
-
actionFormIntro: ["actionFormIntro"],
|
|
39
|
-
actionIntro: ["actionIntro"],
|
|
40
|
-
wrapperActions: ["wrapperActions"]
|
|
41
|
-
};
|
|
42
|
-
return unstable_composeClasses(slots, getComponentUtilityClass(componentName), {});
|
|
43
|
-
};
|
|
44
|
-
const WrapperStandarActions = styled("div")(({ theme }) => ({
|
|
45
|
-
...theme.components?.M4LCommonActions?.styleOverrides
|
|
46
|
-
}));
|
|
47
|
-
const COMMONACTIONS_PREFIX = "M4LCommonActions";
|
|
48
|
-
const getNameCommonActionsDataTestId = (KEY) => {
|
|
49
|
-
return `${COMMONACTIONS_PREFIX}-${KEY}`;
|
|
50
|
-
};
|
|
51
|
-
const Actions = forwardRef(function ActionsForwarded(props, ref) {
|
|
52
|
-
const { children, ...restProps } = props;
|
|
53
|
-
const classes = useCommonActionsUtilityClasses();
|
|
54
|
-
return /* @__PURE__ */ jsx(
|
|
55
|
-
WrapperStandarActions,
|
|
56
|
-
{
|
|
57
|
-
...restProps,
|
|
58
|
-
ref,
|
|
59
|
-
className: clsx(classes.root, restProps?.className),
|
|
60
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameCommonActionsDataTestId("root") } : {},
|
|
61
|
-
children
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
});
|
|
65
|
-
export {
|
|
66
|
-
Actions as A,
|
|
67
|
-
defaultCommonActionsDictionary as d,
|
|
68
|
-
getCommonActionsDictionary as g,
|
|
69
|
-
useCommonActionsUtilityClasses as u
|
|
70
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
const DATAGRID_PREFIX_NAME = "M4LDataGrid";
|
|
2
|
-
const DATAGRID_SELECT_COLUMN_KEY = "M4LDataGrid-CheckedColumn";
|
|
3
|
-
const DATAGRID_ACTIONS_COLUMN_KEY = "M4LDataGrid-ActionsColumn";
|
|
4
|
-
const componentName = "M4LDataGrid";
|
|
5
|
-
export {
|
|
6
|
-
DATAGRID_SELECT_COLUMN_KEY as D,
|
|
7
|
-
DATAGRID_PREFIX_NAME as a,
|
|
8
|
-
DATAGRID_ACTIONS_COLUMN_KEY as b,
|
|
9
|
-
componentName as c
|
|
10
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/index.0c2d8e35.js";
|
|
4
|
-
function ColumnBooleanFormatter(props) {
|
|
5
|
-
const { fieldValue, presentationType, Component } = props;
|
|
6
|
-
return (obProps) => {
|
|
7
|
-
const valueMaybeString = getPropertyByString(obProps, fieldValue);
|
|
8
|
-
let fixedValue;
|
|
9
|
-
if (typeof valueMaybeString === "boolean") {
|
|
10
|
-
fixedValue = valueMaybeString;
|
|
11
|
-
} else {
|
|
12
|
-
fixedValue = void 0;
|
|
13
|
-
}
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
15
|
-
BooleanFormatter,
|
|
16
|
-
{
|
|
17
|
-
presentationType,
|
|
18
|
-
value: fixedValue,
|
|
19
|
-
Component
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
ColumnBooleanFormatter as C
|
|
26
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { C as ConcatenatedFormatter } from "../../../formatters/index.b816c6b6.js";
|
|
4
|
-
function ColumnConcatenatedValueFormatter(props) {
|
|
5
|
-
const { fieldValue, fieldSeparator, Component } = props;
|
|
6
|
-
return (obProps) => {
|
|
7
|
-
const values = fieldValue.map((element) => {
|
|
8
|
-
const valueMaybeString = getPropertyByString(obProps, element);
|
|
9
|
-
let fixedValue;
|
|
10
|
-
if (typeof valueMaybeString === "string" || typeof valueMaybeString === "number") {
|
|
11
|
-
fixedValue = valueMaybeString;
|
|
12
|
-
} else {
|
|
13
|
-
fixedValue = "";
|
|
14
|
-
}
|
|
15
|
-
return fixedValue;
|
|
16
|
-
});
|
|
17
|
-
return /* @__PURE__ */ jsx(ConcatenatedFormatter, { values, separator: fieldSeparator, Component });
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
ColumnConcatenatedValueFormatter as C
|
|
22
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { D as DateFormatter } from "../../../formatters/DateFormatter/index.2ef6f261.js";
|
|
4
|
-
function ColumnDateFormatter(props) {
|
|
5
|
-
const { fieldValue, presentationType, Component } = props;
|
|
6
|
-
return (obProps) => {
|
|
7
|
-
const valueMaybeDateStringNumber = getPropertyByString(obProps, fieldValue);
|
|
8
|
-
let fixedValue;
|
|
9
|
-
if (typeof valueMaybeDateStringNumber === "string" || typeof valueMaybeDateStringNumber === "number" || valueMaybeDateStringNumber instanceof Date) {
|
|
10
|
-
fixedValue = valueMaybeDateStringNumber;
|
|
11
|
-
} else {
|
|
12
|
-
fixedValue = "";
|
|
13
|
-
}
|
|
14
|
-
return /* @__PURE__ */ jsx(DateFormatter, { presentationType, value: fixedValue, Component });
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
ColumnDateFormatter as C
|
|
19
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Checkbox } from "@mui/material";
|
|
3
|
-
import { d as dataGridClasses } from "../../index.304437ee.js";
|
|
4
|
-
function ColumnInteractiveCheckFormatter(props) {
|
|
5
|
-
const { row, onRowChange, column } = props;
|
|
6
|
-
const handleChange = () => {
|
|
7
|
-
const newRow = { ...row };
|
|
8
|
-
newRow[column.key] = !row[column.key];
|
|
9
|
-
onRowChange(newRow);
|
|
10
|
-
};
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
-
Checkbox,
|
|
13
|
-
{
|
|
14
|
-
size: "small",
|
|
15
|
-
checked: row[column.key] || false,
|
|
16
|
-
onChange: handleChange,
|
|
17
|
-
className: dataGridClasses.formatterColumn
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
ColumnInteractiveCheckFormatter as C
|
|
23
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { W as WrapperComponent } from "../../../WrapperComponent/index.57964195.js";
|
|
4
|
-
function ColumnNestedValueFormatter(props) {
|
|
5
|
-
const { fieldValue, Component = WrapperComponent } = props;
|
|
6
|
-
return (obProps) => {
|
|
7
|
-
const property = getPropertyByString(obProps, fieldValue);
|
|
8
|
-
const value = typeof property === "object" ? "" : property;
|
|
9
|
-
return /* @__PURE__ */ jsx(Component, { children: value });
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
ColumnNestedValueFormatter as C
|
|
14
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { P as PointsFormatter } from "../../../formatters/PointsFormatter/index.d8a4ee54.js";
|
|
3
|
-
function ColumnPointsFormatter(props) {
|
|
4
|
-
return (obProps) => {
|
|
5
|
-
return /* @__PURE__ */ jsx(PointsFormatter, { obProps, ...props });
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
ColumnPointsFormatter as C
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { P as PriceFormatter } from "../../../formatters/PriceFormatter/index.97f75b4b.js";
|
|
3
|
-
function ColumnPriceFormatter(props) {
|
|
4
|
-
return (obProps) => {
|
|
5
|
-
return /* @__PURE__ */ jsx(PriceFormatter, { obProps, ...props });
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
ColumnPriceFormatter as C
|
|
10
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { S as SelectCellFormatter } from "../../../../react-data-grid.c5377916.js";
|
|
3
|
-
function ColumnSetCheckFormatter(parameters) {
|
|
4
|
-
const { field, disabledGetter, rowKeyGetter, useHook } = parameters;
|
|
5
|
-
const formatter = (props) => {
|
|
6
|
-
const { row } = props;
|
|
7
|
-
const [checkedRows, setCheckedRows] = useHook(field);
|
|
8
|
-
const onChange = (checked, _isShiftClick) => {
|
|
9
|
-
const newCheckedRows = new Set(checkedRows);
|
|
10
|
-
if (checked) {
|
|
11
|
-
newCheckedRows.add(rowKeyGetter(props.row));
|
|
12
|
-
} else {
|
|
13
|
-
newCheckedRows.delete(rowKeyGetter(props.row));
|
|
14
|
-
}
|
|
15
|
-
setCheckedRows(newCheckedRows);
|
|
16
|
-
};
|
|
17
|
-
let disabled = false;
|
|
18
|
-
if (disabledGetter) {
|
|
19
|
-
disabled = disabledGetter(row);
|
|
20
|
-
}
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
-
SelectCellFormatter,
|
|
23
|
-
{
|
|
24
|
-
value: checkedRows.has(rowKeyGetter(row)) || false,
|
|
25
|
-
disabled,
|
|
26
|
-
isCellSelected: props.isCellSelected,
|
|
27
|
-
onChange,
|
|
28
|
-
"aria-label": "Select"
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
return formatter;
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
ColumnSetCheckFormatter as C
|
|
36
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { U as UncertaintyFormatter } from "../../../formatters/UncertaintyFormatter/index.c3ffdebc.js";
|
|
3
|
-
function ColumnUncertaintyFormatter(props) {
|
|
4
|
-
return (obProps) => {
|
|
5
|
-
return /* @__PURE__ */ jsx(UncertaintyFormatter, { obProps, ...props });
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
ColumnUncertaintyFormatter as C
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|