@m4l/components 1.0.18 → 1.0.19
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.f2226cb9.js → index.9b044daa.js} +3 -3
- package/components/AppBar/{index.50d090b7.js → index.a0029a89.js} +4 -7
- package/components/CommonActions/components/ActionCancel/{index.609a78ca.js → index.cc077569.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.03a5915a.js → index.a446a103.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.34d569d1.js → index.a4d872e3.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.ebac0bc1.js → index.995a344b.js} +2 -2
- package/components/CommonActions/components/Actions/{index.258bf919.js → index.494c618b.js} +1 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.e0dbec18.js → index.dca86907.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.671116f2.js → index.e86a7f66.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.f7b20493.js → index.373b1880.js} +1 -1
- package/components/DataGrid/{index.447c4e44.js → index.7524b3f5.js} +7 -23
- package/components/DataGrid/subcomponents/Actions/{index.aff74341.js → index.f5288cc6.js} +11 -54
- package/components/DragResizeWindow/{index.132406ef.js → index.04160a98.js} +2 -2
- package/components/DynamicFilter/{dictionary.80fc7baf.js → dictionary.ca734fa9.js} +2 -2
- package/components/DynamicFilter/index.0ec944c8.js +117 -0
- package/components/DynamicFilter/slots/{index.e2218307.js → index.bba3ba1e.js} +6 -6
- package/components/DynamicFilter/store/{index.b9c2fe0b.js → index.0cc464be.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.f0fe22f7.js → index.de673d55.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.30d89b6c.js → index.9c6bc54f.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.edd7ed6f.js → index.fc514b86.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.f926af49.js → index.db00ecae.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.2382297a.js → index.2a77b273.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.7b4dccf7.js → index.840bfab2.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.2258fceb.js → index.dfacda9b.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.82ca3e32.js → index.125b714c.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.f4457f31.js → index.9e2e9be9.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.ba70cf6a.js → index.fa9a7fa8.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.c7d72fb4.js → index.8d6b2af3.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.c2014303.js → index.3c2d4a23.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.895fbe45.js → index.89f18def.js} +2 -2
- package/components/FieldLabel/{index.9fd6697a.js → index.8dec5531.js} +4 -6
- package/components/GridLayout/{index.68d907d4.js → index.932b1f7a.js} +2 -160
- package/components/GridLayout/subcomponents/Griditem/{index.8955a794.js → index.27677da0.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.45cecca2.js → index.2bbbfe01.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.7050ac4f.js → index.0af78226.js} +1 -1
- package/components/HelperText/{index.09e80920.js → index.4934c100.js} +2 -5
- package/components/Icon/{index.5cf594aa.js → index.997ca9db.js} +4 -26
- package/components/Image/{index.19aa7ff5.js → index.54e91742.js} +2 -5
- package/components/LanguagePopover/{index.921efd11.js → index.4875286a.js} +4 -24
- package/components/LinearProgressIndeterminate/{index.ea9c8518.js → index.429c171a.js} +2 -4
- package/components/LoadingError/{index.427a569c.js → index.f9be29f1.js} +5 -8
- package/components/MFLoader/{index.12ccba1a.js → index.84bfb72b.js} +3 -5
- package/components/ModalDialog/{index.0dd5af28.js → index.c740247e.js} +3 -3
- package/components/NavLink/{index.ad039baf.js → index.7da464f6.js} +2 -5
- package/components/NoItemSelected/index.8267dd2b.js +52 -0
- package/components/ObjectLogs/{index.a3ed9816.js → index.d3c24da1.js} +9 -38
- package/components/PDFViewer/{index.35f68e67.js → index.ab3cfe38.js} +3 -5
- package/components/Page/{index.f4755eba.js → index.a2d2b98f.js} +1 -1
- package/components/PaperForm/{index.9ed65352.js → index.9d886148.js} +2 -41
- package/components/Period/{index.78867b45.js → index.d860a3be.js} +4 -45
- package/components/PrintingSystem/{index.a69a9d85.js → index.7fd5ffcf.js} +14 -16
- package/components/PrintingSystem/subcomponents/BodyNode/{index.528fcfbf.js → index.8389d56b.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.fbe87257.js → index.2b375c6a.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.f5adab1d.js → index.43e2ab84.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.f42ca7dc.js → index.34950c99.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.041b9cff.js → index.be0aabc4.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.a8140332.js → index.1149d198.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.aabde2bb.js → index.5c60d9fe.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.7f75ca46.js → index.c5d095bb.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.61babb47.js → index.bee3139e.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.4d0e67a3.js → index.8af6a690.js} +1 -1
- package/components/PropertyValue/{index.4f0da54d.js → index.9ad8e8f9.js} +4 -6
- package/components/Resizeable/index.6e2eff97.js +20 -0
- package/components/ScrollBar/index.8de83634.js +33 -0
- package/components/SideBar/{index.0298ead4.js → index.49ad5aaa.js} +6 -128
- package/components/SplitLayout/{index.15756f0f.js → index.ec8d1a77.js} +2 -24
- package/components/ToastContainer/{index.e6d48658.js → index.193d0169.js} +3 -5
- package/components/animate/LoadingScreen/{index.779690a7.js → index.ff08276e.js} +2 -19
- package/components/animate/{index.b8497385.js → index.4edabfc2.js} +2 -39
- package/components/areas/components/AreasAdmin/{index.5af510af.js → index.af6a6611.js} +16 -52
- package/components/areas/components/AreasViewer/{index.343f0452.js → index.0527c2be.js} +18 -247
- package/components/areas/contexts/AreasContext/{index.91e1acfc.js → index.07a979ba.js} +4 -4
- package/components/areas/hooks/useAreas/{index.98ea6788.js → index.d27f97ee.js} +1 -1
- package/components/commercial/AppBarCommercial/{index.cbd55cf8.js → index.7685e1d4.js} +2 -4
- package/components/commercial/SectionCommercial/{index.d22ebbd5.js → index.e9a04cb5.js} +2 -5
- package/components/commercial/TopBar/{index.df994f5f.js → index.e1f7f962.js} +6 -10
- package/components/commercial/{index.73cf794c.js → index.302b64c1.js} +3 -6
- package/components/formatters/BooleanFormatter/{index.699e0aee.js → index.1b4ca0c5.js} +2 -2
- package/components/formatters/{index.8abccc30.js → index.b317b35a.js} +3 -5
- package/components/hook-form/HelperError/{index.c0109d5b.js → index.ab4c23c3.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.1efaddc9.js → index.1a95aa1d.js} +6 -14
- package/components/hook-form/RHFAutocompleteAsync/{index.2f123535.js → index.4d327235.js} +2 -32
- package/components/hook-form/RHFCheckbox/{index.a9cf6faf.js → index.b79256e3.js} +4 -22
- package/components/hook-form/RHFColorPicker/{index.963323e4.js → index.84b77d99.js} +7 -9
- package/components/hook-form/RHFDateTime/{index.b3d0b2de.js → index.ef88c356.js} +5 -7
- package/components/hook-form/RHFPeriod/{index.d1f45273.js → index.7017b940.js} +4 -13
- package/components/hook-form/RHFTextField/{index.97ba17ae.js → index.b959b63e.js} +4 -34
- package/components/hook-form/RHFUpload/{index.7fd23b2a.js → index.2aa4dcee.js} +6 -14
- package/components/maps/components/GpsTools/{index.0c6dff10.js → index.c825dd0d.js} +21 -75
- package/components/maps/components/Map/{index.50447504.js → index.b9c876b4.js} +13 -13
- package/components/modal/{WindowBase.bf119f28.js → WindowBase.5de22950.js} +3 -3
- package/components/modal/{WindowConfirm.b70c4b0f.js → WindowConfirm.7059a58b.js} +6 -6
- package/components/mui_extended/Accordion/{index.427d380a.js → index.b7f847a7.js} +4 -25
- package/components/mui_extended/Avatar/{index.fb9ad158.js → index.8d873242.js} +2 -4
- package/components/mui_extended/Badge/{index.8beaeefc.js → index.1729018e.js} +1 -5
- package/components/mui_extended/Button/{index.d742e9ee.js → index.86ad58f1.js} +4 -16
- package/components/mui_extended/{CheckBox.84c57702.js → CheckBox.bc4e775d.js} +3 -5
- package/components/mui_extended/IconButton/{index.ee45bba2.js → index.6e48e3fc.js} +2 -5
- package/components/mui_extended/MenuActions/{index.06aaa091.js → index.3979e313.js} +8 -17
- package/components/mui_extended/Pager/{index.c77a7694.js → index.509c6c23.js} +4 -7
- package/components/mui_extended/Popover/{index.2348fc4f.js → index.bc28f6d4.js} +3 -5
- package/components/mui_extended/Stack/{index.fe363ca5.js → index.ea662d2e.js} +2 -4
- package/components/mui_extended/Tab/{index.e911930f.js → index.6dce21fc.js} +2 -14
- package/components/mui_extended/ToggleButton/{index.b834f5f0.js → index.eb60a2ff.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.50ce11e4.js → index.c34eeb98.js} +1 -1
- package/components/mui_extended/Typography/{index.642798f1.js → index.116902dc.js} +1 -4
- package/components/popups/PopupsProvider/{index.7ed83556.js → index.28a77d4f.js} +1 -1
- package/components/popups/PopupsViewer/{index.9b734a0a.js → index.237e7f33.js} +4 -4
- package/contexts/ModalContext/{index.ad1fb73b.js → index.f8d78543.js} +1 -1
- package/contexts/RHFormContext/{index.bf3a2812.js → index.78938329.js} +2 -4
- package/hooks/useFormAddEdit/{index.3468c18c.js → index.cb45a92c.js} +2 -2
- package/hooks/useModal/{index.2003c854.js → index.81061efe.js} +1 -1
- package/hooks/useTab/{index.8d1a6e63.js → index.05151df5.js} +1 -1
- package/index.js +135 -133
- package/package.json +1 -1
- package/{components/DynamicFilter/index.a7cb7710.js → styles/DynamicFilter.c74cdedd.js} +2 -117
- package/styles/index.2e92ddf7.js +1444 -0
- package/components/NoItemSelected/index.d10603d7.js +0 -71
- package/components/Resizeable/index.4f75c0b5.js +0 -124
- package/components/ScrollBar/index.21bc5025.js +0 -104
|
@@ -4,10 +4,10 @@ import { useState, useEffect } from "react";
|
|
|
4
4
|
import { generateUtilityClasses, generateUtilityClass, styled, useTheme, ButtonBase } from "@mui/material";
|
|
5
5
|
import { unstable_composeClasses } from "@mui/base";
|
|
6
6
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
7
|
-
import { A as Avatar } from "../mui_extended/Avatar/index.
|
|
7
|
+
import { A as Avatar } from "../mui_extended/Avatar/index.8d873242.js";
|
|
8
8
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.967e70b7.js";
|
|
9
|
-
import { P as Popover } from "../mui_extended/Popover/index.
|
|
10
|
-
import { I as Icon } from "../Icon/index.
|
|
9
|
+
import { P as Popover } from "../mui_extended/Popover/index.bc28f6d4.js";
|
|
10
|
+
import { I as Icon } from "../Icon/index.997ca9db.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
const componentName = "M4LAccountPopover";
|
|
13
13
|
generateUtilityClasses(
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { A as AppBarRoot } from "../../styles/index.2e92ddf7.js";
|
|
3
3
|
import { useResponsiveContainerStore } from "@m4l/graphics";
|
|
4
4
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
5
5
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
6
6
|
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
7
7
|
import { unstable_composeClasses } from "@mui/base";
|
|
8
|
-
import { I as Image } from "../Image/index.
|
|
9
|
-
import { T as Typography } from "../mui_extended/Typography/index.
|
|
10
|
-
import { I as IconButton } from "../mui_extended/IconButton/index.
|
|
11
|
-
const AppBarRoot = styled("header")(({ theme }) => ({
|
|
12
|
-
...theme.components?.M4LAppBar?.styleOverrides
|
|
13
|
-
}));
|
|
8
|
+
import { I as Image } from "../Image/index.54e91742.js";
|
|
9
|
+
import { T as Typography } from "../mui_extended/Typography/index.116902dc.js";
|
|
10
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.6e48e3fc.js";
|
|
14
11
|
const APPBAR_PREFIX = "M4LAppBar";
|
|
15
12
|
const getNameDataTestId = (KEY) => {
|
|
16
13
|
return `${APPBAR_PREFIX}-${KEY}`;
|
package/components/CommonActions/components/ActionCancel/{index.609a78ca.js → index.cc077569.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
4
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
3
|
+
import { B as Button } from "../../../mui_extended/Button/index.86ad58f1.js";
|
|
4
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.494c618b.js";
|
|
5
5
|
const ActionCancel = (props) => {
|
|
6
6
|
const { getLabel } = useModuleDictionary();
|
|
7
7
|
const classes = useCommonActionsUtilityClasses();
|
package/components/CommonActions/components/ActionFormCancel/{index.03a5915a.js → index.a446a103.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
3
3
|
import { useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
4
|
+
import { B as Button } from "../../../mui_extended/Button/index.86ad58f1.js";
|
|
5
5
|
import { useCallback, useEffect } from "react";
|
|
6
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
7
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
6
|
+
import { u as useModal } from "../../../../hooks/useModal/index.81061efe.js";
|
|
7
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.494c618b.js";
|
|
8
8
|
import { u as useWindowToolsMF } from "../../../areas/hooks/useWindowToolsMF/index.2fbae9dc.js";
|
|
9
|
-
import { W as WindowConfirm } from "../../../modal/WindowConfirm.
|
|
9
|
+
import { W as WindowConfirm } from "../../../modal/WindowConfirm.7059a58b.js";
|
|
10
10
|
function ActionFormCancel() {
|
|
11
11
|
const { getLabel } = useModuleDictionary();
|
|
12
12
|
const { openModal } = useModal();
|
package/components/CommonActions/components/ActionFormIntro/{index.34d569d1.js → index.a4d872e3.js}
RENAMED
|
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useFormContext, useFormState } from "react-hook-form";
|
|
3
3
|
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
4
4
|
import { Skeleton } from "@mui/material";
|
|
5
|
-
import { L as LoadingButton } from "../../../mui_extended/Button/index.
|
|
6
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
5
|
+
import { L as LoadingButton } from "../../../mui_extended/Button/index.86ad58f1.js";
|
|
6
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.494c618b.js";
|
|
7
7
|
function ActionFormIntro(props) {
|
|
8
8
|
const { getLabel } = useModuleDictionary();
|
|
9
9
|
const isSkeleton = useModuleSkeleton();
|
package/components/CommonActions/components/ActionIntro/{index.ebac0bc1.js → index.995a344b.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { B as Button } from "../../../mui_extended/Button/index.
|
|
3
|
+
import { B as Button } from "../../../mui_extended/Button/index.86ad58f1.js";
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
5
|
-
import { u as useCommonActionsUtilityClasses } from "../Actions/index.
|
|
5
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.494c618b.js";
|
|
6
6
|
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
7
7
|
const ActionIntro = (props) => {
|
|
8
8
|
const { getLabel } = useModuleDictionary();
|
|
@@ -5,7 +5,7 @@ import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.j
|
|
|
5
5
|
import { generateUtilityClasses } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
7
|
import { g as getComponentUtilityClass } from "../../../../utils/index.14912462.js";
|
|
8
|
-
import {
|
|
8
|
+
import { W as WrapperStandarActions } from "../../../../styles/index.2e92ddf7.js";
|
|
9
9
|
function getCommonActionsDictionary() {
|
|
10
10
|
return ["common_actions"];
|
|
11
11
|
}
|
|
@@ -42,9 +42,6 @@ const useCommonActionsUtilityClasses = () => {
|
|
|
42
42
|
};
|
|
43
43
|
return unstable_composeClasses(slots, getComponentUtilityClass(componentName), {});
|
|
44
44
|
};
|
|
45
|
-
const WrapperStandarActions = styled("div")(({ theme }) => ({
|
|
46
|
-
...theme.components?.M4LCommonActions?.styleOverrides
|
|
47
|
-
}));
|
|
48
45
|
const COMMONACTIONS_PREFIX = "M4LCommonActions";
|
|
49
46
|
const getNameCommonActionsDataTestId = (KEY) => {
|
|
50
47
|
return `${COMMONACTIONS_PREFIX}-${KEY}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/index.
|
|
3
|
+
import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/index.1b4ca0c5.js";
|
|
4
4
|
function ColumnBooleanFormatter(props) {
|
|
5
5
|
const { fieldValue, presentationType, Component } = props;
|
|
6
6
|
return (obProps) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { C as ConcatenatedFormatter } from "../../../formatters/index.
|
|
3
|
+
import { C as ConcatenatedFormatter } from "../../../formatters/index.b317b35a.js";
|
|
4
4
|
function ColumnConcatenatedValueFormatter(props) {
|
|
5
5
|
const { fieldValue, fieldSeparator, Component } = props;
|
|
6
6
|
return (obProps) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Checkbox } from "@mui/material";
|
|
3
|
-
import { d as dataGridClasses } from "../../index.
|
|
3
|
+
import { d as dataGridClasses } from "../../index.7524b3f5.js";
|
|
4
4
|
function ColumnInteractiveCheckFormatter(props) {
|
|
5
5
|
const { row, onRowChange, column } = props;
|
|
6
6
|
const handleChange = () => {
|
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.
|
|
2
|
-
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.
|
|
1
|
+
import { g as getModalDialogComponentsDictionary } from "../ModalDialog/index.c740247e.js";
|
|
2
|
+
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.509c6c23.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
4
|
+
import { a as WrapperSkeleton, D as DataGridRoot } from "../../styles/index.2e92ddf7.js";
|
|
5
5
|
import { forwardRef, createContext, useState, useMemo, useEffect, useCallback, useContext, useRef, useLayoutEffect } from "react";
|
|
6
6
|
import { u as useRowSelection, S as SelectCellFormatter, H as HeaderRenderer, D as DataGrid$1 } from "../../react-data-grid.c5377916.js";
|
|
7
7
|
import { useDrag, useDrop, DndProvider } from "react-dnd";
|
|
8
8
|
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
9
|
-
import { SvgIcon, Checkbox, InputBase,
|
|
9
|
+
import { SvgIcon, Checkbox, InputBase, Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
10
10
|
import { D as DATAGRID_SELECT_COLUMN_KEY, c as componentName, a as DATAGRID_PREFIX_NAME } from "./constants.e334cd50.js";
|
|
11
11
|
import { voidFunction, useModuleDictionary, useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
12
|
-
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.
|
|
12
|
+
import { A as ActionsColumn, a as Actions } from "./subcomponents/Actions/index.f5288cc6.js";
|
|
13
13
|
import { unstable_composeClasses } from "@mui/base";
|
|
14
14
|
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.86c553a9.js";
|
|
15
15
|
import { g as getNameDataTestId } from "../../test/getNameDataTestId.0faeade8.js";
|
|
16
|
-
const DataGridRoot = styled("div")(({ theme }) => ({
|
|
17
|
-
display: "flex",
|
|
18
|
-
flexDirection: "column",
|
|
19
|
-
position: "absolute",
|
|
20
|
-
padding: "0px",
|
|
21
|
-
inset: "0px",
|
|
22
|
-
overflow: "hidden",
|
|
23
|
-
...theme.components?.M4LDataGrid?.styleOverrides
|
|
24
|
-
}));
|
|
25
16
|
function CheckboxIcon(props) {
|
|
26
17
|
return /* @__PURE__ */ jsx(SvgIcon, { ...props, children: /* @__PURE__ */ jsx("path", { d: "M17 3a4 4 0 014 4v10a4 4 0 01-4 4H7a4 4 0 01-4-4V7a4 4 0 014-4h10zm0 2H7a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2z" }) });
|
|
27
18
|
}
|
|
@@ -495,12 +486,6 @@ const getDragHeaderRenderer = (handleColumnsReorder) => {
|
|
|
495
486
|
}
|
|
496
487
|
return HeaderRenderer2;
|
|
497
488
|
};
|
|
498
|
-
const WrapperSkeleton = styled$1("div")(() => ({
|
|
499
|
-
display: "flex",
|
|
500
|
-
width: "100%",
|
|
501
|
-
height: "100%",
|
|
502
|
-
alignItems: "center"
|
|
503
|
-
}));
|
|
504
489
|
function SkeletonFormatter() {
|
|
505
490
|
const { classes } = useDataGrid();
|
|
506
491
|
return /* @__PURE__ */ jsx(WrapperSkeleton, { className: classes.skeletonFormatter, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "100%", height: "12px" }) });
|
|
@@ -904,12 +889,11 @@ const getDataGridRowsFromSet = (set, rows, rowKeyGetter) => {
|
|
|
904
889
|
return rowsFinded;
|
|
905
890
|
};
|
|
906
891
|
export {
|
|
907
|
-
|
|
892
|
+
DataGrid as D,
|
|
908
893
|
useFilters as a,
|
|
909
894
|
dictionary as b,
|
|
910
|
-
|
|
895
|
+
getDataGridRowsFromSet as c,
|
|
911
896
|
dataGridClasses as d,
|
|
912
|
-
getDataGridRowsFromSet as e,
|
|
913
897
|
getDataGridComponentsDictionary as g,
|
|
914
898
|
useDataGrid as u
|
|
915
899
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.
|
|
3
|
-
import { u as useDataGrid, a as useFilters,
|
|
2
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.3979e313.js";
|
|
3
|
+
import { u as useDataGrid, a as useFilters, b as dictionary } from "../../index.7524b3f5.js";
|
|
4
4
|
import { useTheme, Skeleton } from "@mui/material";
|
|
5
5
|
import { b as DATAGRID_ACTIONS_COLUMN_KEY } from "../../constants.e334cd50.js";
|
|
6
|
-
import { P as Pager } from "../../../mui_extended/Pager/index.
|
|
7
|
-
import { I as IconButton } from "../../../mui_extended/IconButton/index.
|
|
6
|
+
import { P as Pager } from "../../../mui_extended/Pager/index.509c6c23.js";
|
|
7
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.6e48e3fc.js";
|
|
8
8
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
9
9
|
import { useIsMobile, useResponsiveContainerStore } from "@m4l/graphics";
|
|
10
10
|
import { forwardRef, useRef, useState, useImperativeHandle, useMemo, useEffect, useCallback } from "react";
|
|
11
|
+
import { b as WrapperColumnsConfig, c as DivSelColumns, d as WrapperDataGrid, C as ColumnActions, D as DataGridRoot } from "../../../../styles/index.2e92ddf7.js";
|
|
11
12
|
import { D as DataGrid$1 } from "../../../../react-data-grid.c5377916.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { A as
|
|
17
|
-
import { A as
|
|
18
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.ebac0bc1.js";
|
|
13
|
+
import { C as ColumnInteractiveCheckFormatter } from "../../formatters/ColumnInteractiveCheckFormatter/index.373b1880.js";
|
|
14
|
+
import { u as useModal } from "../../../../hooks/useModal/index.81061efe.js";
|
|
15
|
+
import { W as WindowBase } from "../../../modal/WindowBase.5de22950.js";
|
|
16
|
+
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.494c618b.js";
|
|
17
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.cc077569.js";
|
|
18
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.995a344b.js";
|
|
19
19
|
import { shallow } from "zustand/shallow";
|
|
20
20
|
function ActionsFormatter(props) {
|
|
21
21
|
const { rowActionsGetter, classes } = useDataGrid();
|
|
@@ -72,49 +72,6 @@ function Filter() {
|
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
|
-
const WrapperColumnsConfig = styled("div")(({ theme }) => ({
|
|
76
|
-
color: theme.vars.palette.text.primary,
|
|
77
|
-
position: "relative",
|
|
78
|
-
display: "flex",
|
|
79
|
-
flexDirection: "column",
|
|
80
|
-
height: "100%",
|
|
81
|
-
width: "100%"
|
|
82
|
-
}));
|
|
83
|
-
styled("div")(({ theme }) => ({
|
|
84
|
-
color: theme.vars.palette.text.primary,
|
|
85
|
-
fontSize: theme.typography.h4.fontSize
|
|
86
|
-
}));
|
|
87
|
-
const DivSelColumns = styled("div")(({ theme }) => ({
|
|
88
|
-
...theme.colorSchemes.finalTheme.typography.bodyDens,
|
|
89
|
-
color: theme.vars.palette.text.primary,
|
|
90
|
-
padding: `16px 8px`
|
|
91
|
-
}));
|
|
92
|
-
const WrapperDataGrid = styled("div")(() => ({
|
|
93
|
-
position: "relative",
|
|
94
|
-
display: "flex",
|
|
95
|
-
flexDirection: "column",
|
|
96
|
-
flexGrow: 1,
|
|
97
|
-
overflow: "auto"
|
|
98
|
-
}));
|
|
99
|
-
styled("div")(() => ({
|
|
100
|
-
display: "flex",
|
|
101
|
-
flexDirection: "row"
|
|
102
|
-
}));
|
|
103
|
-
const ColumnActions = styled("div")(() => ({
|
|
104
|
-
paddingTop: "16px",
|
|
105
|
-
paddingBottom: "8px",
|
|
106
|
-
display: "flex",
|
|
107
|
-
flexDirection: "row"
|
|
108
|
-
}));
|
|
109
|
-
styled("div")(({ theme }) => ({
|
|
110
|
-
paddingTop: theme.spacing(3),
|
|
111
|
-
display: "flex",
|
|
112
|
-
flexDirection: "row",
|
|
113
|
-
justifyContent: "flex-end",
|
|
114
|
-
"& > button": {
|
|
115
|
-
marginLeft: "10px"
|
|
116
|
-
}
|
|
117
|
-
}));
|
|
118
75
|
function getRowsFromColumnsConfig(columnsConfig) {
|
|
119
76
|
return columnsConfig.filter((column) => !column.hidden).map(
|
|
120
77
|
(column) => ({
|
|
@@ -3,9 +3,9 @@ import { forwardRef, useState, useRef, useImperativeHandle, useCallback, useEffe
|
|
|
3
3
|
import { D as DraggableCore_1 } from "../../react-draggable.1c1ba224.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { styled, generateUtilityClasses } from "@mui/material";
|
|
6
|
-
import { M as MAP_ZINDEX_OVER_MAP } from "../maps/components/Map/index.
|
|
6
|
+
import { M as MAP_ZINDEX_OVER_MAP } from "../maps/components/Map/index.b9c876b4.js";
|
|
7
7
|
import "@mui/base";
|
|
8
|
-
import { M as MAP_ZINDEX_OVER_MAP$1 } from "../popups/PopupsViewer/index.
|
|
8
|
+
import { M as MAP_ZINDEX_OVER_MAP$1 } from "../popups/PopupsViewer/index.237e7f33.js";
|
|
9
9
|
import { R as Resizable } from "../../react-resizable.a59c14f4.js";
|
|
10
10
|
const WrapperWindowRoot = styled("div")`
|
|
11
11
|
position: absolute;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
2
|
-
import { g as getRHFAutocompleteComponentsDictionary } from "../hook-form/RHFAutocomplete/index.
|
|
1
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.494c618b.js";
|
|
2
|
+
import { g as getRHFAutocompleteComponentsDictionary } from "../hook-form/RHFAutocomplete/index.1a95aa1d.js";
|
|
3
3
|
const DYNAMIC_FILTER_DICTIONARY_ID = "dynamic_filter";
|
|
4
4
|
function getDynamicFilterComponentsDictionary() {
|
|
5
5
|
return [DYNAMIC_FILTER_DICTIONARY_ID].concat(
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { f as fieldFactory } from "./subcomponents/FieldTypes/index.9e2e9be9.js";
|
|
2
|
+
import { f as filterValidOperandsArraySelect } from "./subcomponents/FieldTypes/SelectFilter/index.dfacda9b.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
5
|
+
import { D as DynamicFilterProvider } from "./store/index.0cc464be.js";
|
|
6
|
+
import { D as DynamicFilterBase } from "./subcomponents/DynamicFilterBase/index.fc514b86.js";
|
|
7
|
+
function getPurgedInitialFiltersApplied(fields, initialFilters, getFieldByName) {
|
|
8
|
+
const newFilters = [];
|
|
9
|
+
const fixedFields = [];
|
|
10
|
+
for (let index = 0; index < initialFilters.length; index++) {
|
|
11
|
+
try {
|
|
12
|
+
const initialFilter = initialFilters[index];
|
|
13
|
+
const field = getFieldByName(initialFilter.name);
|
|
14
|
+
const filter = {
|
|
15
|
+
id: 0,
|
|
16
|
+
isSet: true,
|
|
17
|
+
fixed: false,
|
|
18
|
+
field,
|
|
19
|
+
fieldType: field.type,
|
|
20
|
+
operator: initialFilters[index].operator,
|
|
21
|
+
operand1: initialFilters[index].operand1,
|
|
22
|
+
operand2: initialFilters[index].operand2,
|
|
23
|
+
operandsArray: initialFilters[index].operandsArray
|
|
24
|
+
};
|
|
25
|
+
if (!field)
|
|
26
|
+
continue;
|
|
27
|
+
const canAddField = fieldFactory(field.type).verifyFilter(initialFilter, field);
|
|
28
|
+
if (canAddField) {
|
|
29
|
+
if (filter.fieldType === "datetime") {
|
|
30
|
+
filter.operand1 = new Date(filter.operand1 + "");
|
|
31
|
+
filter.operand2 = new Date(filter.operand2 + "");
|
|
32
|
+
}
|
|
33
|
+
if (field.presence === "fixed") {
|
|
34
|
+
if (fixedFields.findIndex((f) => f === field.name) === -1) {
|
|
35
|
+
filter.fixed = true;
|
|
36
|
+
fixedFields.push(field.name);
|
|
37
|
+
} else {
|
|
38
|
+
filter.fixed = false;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
filter.isSet = true;
|
|
42
|
+
filter.id = newFilters.length + 1;
|
|
43
|
+
newFilters.push(filter);
|
|
44
|
+
}
|
|
45
|
+
} catch (error) {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
for (let index = 0; index < fields.length; index++) {
|
|
49
|
+
const field = fields[index];
|
|
50
|
+
if (field.presence === "initialized" || field.presence === "fixed") {
|
|
51
|
+
if (!initialFilters.find((f) => f.name === field.name)) {
|
|
52
|
+
const newFilter = fieldFactory(field.type).getDefaultFilter(
|
|
53
|
+
field,
|
|
54
|
+
field.presence === "fixed"
|
|
55
|
+
);
|
|
56
|
+
newFilter.id = newFilters.length + 1;
|
|
57
|
+
newFilters.push(newFilter);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return newFilters;
|
|
62
|
+
}
|
|
63
|
+
const formatToRawFilter = (appliedFilters) => {
|
|
64
|
+
return appliedFilters.map((af) => {
|
|
65
|
+
let oa = void 0;
|
|
66
|
+
if (af.field.type === "select" && af.operandsArray) {
|
|
67
|
+
oa = Array.isArray(af.operandsArray) ? af.operandsArray.map(af.field.selectOptions.getOptionId) : [af.field.selectOptions.getOptionId(af.operandsArray)];
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
n: af.field.name,
|
|
71
|
+
o: af.operator,
|
|
72
|
+
o1: af.operand1,
|
|
73
|
+
o2: af.operator === "b" ? af.operand2 : void 0,
|
|
74
|
+
oa
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
function formatToInitialFilters(appliedFilters) {
|
|
79
|
+
return appliedFilters.map((appliedFilter) => {
|
|
80
|
+
const ret = {
|
|
81
|
+
name: appliedFilter.field.name,
|
|
82
|
+
operator: appliedFilter.operator,
|
|
83
|
+
operand1: appliedFilter.operand1,
|
|
84
|
+
operand2: appliedFilter.operator === "b" ? appliedFilter.operand2 : void 0
|
|
85
|
+
};
|
|
86
|
+
if (appliedFilter.fieldType === "datetime") {
|
|
87
|
+
ret.operand1 = appliedFilter.operand1.toISOString();
|
|
88
|
+
ret.operand2 = appliedFilter.operator === "b" ? appliedFilter.operand2.toISOString() : void 0;
|
|
89
|
+
}
|
|
90
|
+
if (appliedFilter.fieldType === "select") {
|
|
91
|
+
const validOperandsArray = filterValidOperandsArraySelect(
|
|
92
|
+
appliedFilter.operandsArray,
|
|
93
|
+
appliedFilter.field
|
|
94
|
+
);
|
|
95
|
+
if (validOperandsArray && validOperandsArray?.length > 0) {
|
|
96
|
+
ret.operandsArray = validOperandsArray;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (ret.operand2 === void 0) {
|
|
100
|
+
delete ret.operand2;
|
|
101
|
+
}
|
|
102
|
+
return ret;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function DynamicFilter(props) {
|
|
106
|
+
const hasPresentFlags = useFlagsPresent([CommonFlags.FLAG_DICTIONARY_LOADED]);
|
|
107
|
+
if (!hasPresentFlags) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
return /* @__PURE__ */ jsx(DynamicFilterProvider, { ...props, children: /* @__PURE__ */ jsx(DynamicFilterBase, {}) });
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
DynamicFilter as D,
|
|
114
|
+
formatToRawFilter as a,
|
|
115
|
+
formatToInitialFilters as f,
|
|
116
|
+
getPurgedInitialFiltersApplied as g
|
|
117
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { D as DYNAMIC_FILTER_KEY_COMPONENT } from "../constants.095f1dbb.js";
|
|
3
3
|
import { D as DynamicFilterSlots } from "./constants.13968194.js";
|
|
4
|
-
import { d as dynamicFilterStyles } from "
|
|
4
|
+
import { d as dynamicFilterStyles } from "../../../styles/DynamicFilter.c74cdedd.js";
|
|
5
5
|
import { MenuItem } from "@mui/material";
|
|
6
|
-
import { A as Actions } from "../../CommonActions/components/Actions/index.
|
|
7
|
-
import { I as Icon } from "../../Icon/index.
|
|
8
|
-
import { I as IconButton } from "../../mui_extended/IconButton/index.
|
|
9
|
-
import { P as Popover } from "../../mui_extended/Popover/index.
|
|
10
|
-
import { T as Typography } from "../../mui_extended/Typography/index.
|
|
6
|
+
import { A as Actions } from "../../CommonActions/components/Actions/index.494c618b.js";
|
|
7
|
+
import { I as Icon } from "../../Icon/index.997ca9db.js";
|
|
8
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.6e48e3fc.js";
|
|
9
|
+
import { P as Popover } from "../../mui_extended/Popover/index.bc28f6d4.js";
|
|
10
|
+
import { T as Typography } from "../../mui_extended/Typography/index.116902dc.js";
|
|
11
11
|
const RootStyled = styled("div", { name: DYNAMIC_FILTER_KEY_COMPONENT, slot: DynamicFilterSlots.root })(
|
|
12
12
|
dynamicFilterStyles?.root
|
|
13
13
|
);
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
6
6
|
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
7
7
|
import { A as ALL_FIELD } from "../constants.095f1dbb.js";
|
|
8
|
-
import { g as getPurgedInitialFiltersApplied, f as formatToInitialFilters, a as formatToRawFilter } from "../index.
|
|
8
|
+
import { g as getPurgedInitialFiltersApplied, f as formatToInitialFilters, a as formatToRawFilter } from "../index.0ec944c8.js";
|
|
9
9
|
import { devtools } from "zustand/middleware";
|
|
10
10
|
import { immer } from "zustand/middleware/immer";
|
|
11
11
|
function useDynamicFilterStore(selector, equalityFn) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { A as AppliedFilterChipStyled, a as AppliedFilterChipIconStyled, b as AppliedFilterChipInfoStyled, c as AppliedFilterChipInfoFieldNameStyled, d as AppliedFilterChipInfoOperatorStyled, e as AppliedFilterChipInfoOperandsStyled, f as AppliedFilterChipRemoveButtonStyled } from "../../slots/index.
|
|
2
|
+
import { A as AppliedFilterChipStyled, a as AppliedFilterChipIconStyled, b as AppliedFilterChipInfoStyled, c as AppliedFilterChipInfoFieldNameStyled, d as AppliedFilterChipInfoOperatorStyled, e as AppliedFilterChipInfoOperandsStyled, f as AppliedFilterChipRemoveButtonStyled } from "../../slots/index.bba3ba1e.js";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
5
5
|
import { useFormatter } from "@m4l/graphics";
|
|
6
|
-
import { u as useDynamicFilterStore } from "../../store/index.
|
|
7
|
-
import { f as fieldFactory } from "../FieldTypes/index.
|
|
6
|
+
import { u as useDynamicFilterStore } from "../../store/index.0cc464be.js";
|
|
7
|
+
import { f as fieldFactory } from "../FieldTypes/index.9e2e9be9.js";
|
|
8
8
|
function useAppliedFilterChip(filter) {
|
|
9
9
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
10
|
const { getLabel } = useModuleDictionary();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { S as ScrollBar } from "../../../ScrollBar/index.
|
|
3
|
-
import { g as AppliedFiltersStyled, h as AppliedFilterInnerContainerStyled } from "../../slots/index.
|
|
4
|
-
import { u as useDynamicFilterStore } from "../../store/index.
|
|
5
|
-
import { A as AppliedFilterChip } from "../AppliedFilterChip/index.
|
|
2
|
+
import { S as ScrollBar } from "../../../ScrollBar/index.8de83634.js";
|
|
3
|
+
import { g as AppliedFiltersStyled, h as AppliedFilterInnerContainerStyled } from "../../slots/index.bba3ba1e.js";
|
|
4
|
+
import { u as useDynamicFilterStore } from "../../store/index.0cc464be.js";
|
|
5
|
+
import { A as AppliedFilterChip } from "../AppliedFilterChip/index.de673d55.js";
|
|
6
6
|
function useAppliedFilters() {
|
|
7
7
|
const appliedFilter = useDynamicFilterStore((state) => state.appliedFilters);
|
|
8
8
|
const isSkeleton = useDynamicFilterStore((state) => state.ownerState.isSkeleton);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { u as useDynamicFilterStore } from "../../store/index.
|
|
3
|
-
import { R as RootStyled, I as InnerContainerStyled } from "../../slots/index.
|
|
2
|
+
import { u as useDynamicFilterStore } from "../../store/index.0cc464be.js";
|
|
3
|
+
import { R as RootStyled, I as InnerContainerStyled } from "../../slots/index.bba3ba1e.js";
|
|
4
4
|
import { a as getPropDataTestId } from "../../../../test/getNameDataTestId.0faeade8.js";
|
|
5
5
|
import { D as DynamicFilterSlots } from "../../slots/constants.13968194.js";
|
|
6
|
-
import { I as InputFilter } from "../InputFilter/index.
|
|
7
|
-
import { A as AppliedFilters } from "../AppliedFilters/index.
|
|
8
|
-
import { F as FilterActions } from "../FilterActions/index.
|
|
9
|
-
import { P as PopoverFilter } from "../PopoverFilter/index.
|
|
6
|
+
import { I as InputFilter } from "../InputFilter/index.8d6b2af3.js";
|
|
7
|
+
import { A as AppliedFilters } from "../AppliedFilters/index.9c6bc54f.js";
|
|
8
|
+
import { F as FilterActions } from "../FilterActions/index.fa9a7fa8.js";
|
|
9
|
+
import { P as PopoverFilter } from "../PopoverFilter/index.3c2d4a23.js";
|
|
10
10
|
function useDynamicFilterBase() {
|
|
11
11
|
const ownerState = useDynamicFilterStore((state) => state.ownerState);
|
|
12
12
|
const dataTestId = useDynamicFilterStore((state) => state.dataTestId);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as Yup from "yup";
|
|
2
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.
|
|
2
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.ca734fa9.js";
|
|
3
3
|
import { B as BOOLEAN_OPERATORS } from "../../../constants.095f1dbb.js";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { useModuleDictionary } from "@m4l/core";
|
|
7
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.
|
|
7
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.1a95aa1d.js";
|
|
8
8
|
function BooleanFilter() {
|
|
9
9
|
const { getLabel } = useModuleDictionary();
|
|
10
10
|
const operators = useMemo(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Yup from "yup";
|
|
2
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.
|
|
2
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.ca734fa9.js";
|
|
3
3
|
import { a as DATE_TIME_OPERATORS } from "../../../constants.095f1dbb.js";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
7
7
|
import { useModuleDictionary } from "@m4l/core";
|
|
8
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.
|
|
9
|
-
import { R as RHFDateTime } from "../../../../hook-form/RHFDateTime/index.
|
|
8
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.1a95aa1d.js";
|
|
9
|
+
import { R as RHFDateTime } from "../../../../hook-form/RHFDateTime/index.ef88c356.js";
|
|
10
10
|
import { i as isValidDate } from "../../../../../utils/index.14912462.js";
|
|
11
11
|
function DateTimeFilter() {
|
|
12
12
|
const { getLabel } = useModuleDictionary();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Yup from "yup";
|
|
2
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.
|
|
2
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.ca734fa9.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
6
6
|
import { useModuleDictionary } from "@m4l/core";
|
|
7
7
|
import { N as NUMBER_OPERATORS } from "../../../constants.095f1dbb.js";
|
|
8
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.
|
|
9
|
-
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.
|
|
8
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.1a95aa1d.js";
|
|
9
|
+
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.b959b63e.js";
|
|
10
10
|
function NumberFilter() {
|
|
11
11
|
const { getLabel } = useModuleDictionary();
|
|
12
12
|
const { control } = useFormContext();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as Yup from "yup";
|
|
2
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.
|
|
2
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.ca734fa9.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
import { useModuleDictionary } from "@m4l/core";
|
|
6
6
|
import { S as SELECT_OPERATORS } from "../../../constants.095f1dbb.js";
|
|
7
|
-
import { u as useDynamicFilterStore } from "../../../store/index.
|
|
8
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.
|
|
9
|
-
import { R as RHFAutocompleteAsync } from "../../../../hook-form/RHFAutocompleteAsync/index.
|
|
7
|
+
import { u as useDynamicFilterStore } from "../../../store/index.0cc464be.js";
|
|
8
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.1a95aa1d.js";
|
|
9
|
+
import { R as RHFAutocompleteAsync } from "../../../../hook-form/RHFAutocompleteAsync/index.4d327235.js";
|
|
10
10
|
function SelectFilter() {
|
|
11
11
|
const { getLabel } = useModuleDictionary();
|
|
12
12
|
const field = useDynamicFilterStore((state) => state.popoverFilterData?.field);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as Yup from "yup";
|
|
2
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.
|
|
2
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.ca734fa9.js";
|
|
3
3
|
import { b as STRING_OPERATORS } from "../../../constants.095f1dbb.js";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { useModuleDictionary } from "@m4l/core";
|
|
7
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.
|
|
8
|
-
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.
|
|
7
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.1a95aa1d.js";
|
|
8
|
+
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.b959b63e.js";
|
|
9
9
|
function StringFilter() {
|
|
10
10
|
const { getLabel } = useModuleDictionary();
|
|
11
11
|
const operators = useMemo(
|
package/components/DynamicFilter/subcomponents/FieldTypes/{index.f4457f31.js → index.9e2e9be9.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { useFormContext } from "react-hook-form";
|
|
4
|
-
import { B as BooleanFilterHelpers } from "./BooleanFilter/index.
|
|
5
|
-
import { S as StringFilterHelpers } from "./StringFilter/index.
|
|
6
|
-
import { D as DateTimeFilterHelpers } from "./DateTimeFilter/index.
|
|
7
|
-
import { N as NumberFilterHelpers } from "./NumberFilter/index.
|
|
8
|
-
import { S as SelectFilterHelpers } from "./SelectFilter/index.
|
|
4
|
+
import { B as BooleanFilterHelpers } from "./BooleanFilter/index.db00ecae.js";
|
|
5
|
+
import { S as StringFilterHelpers } from "./StringFilter/index.125b714c.js";
|
|
6
|
+
import { D as DateTimeFilterHelpers } from "./DateTimeFilter/index.2a77b273.js";
|
|
7
|
+
import { N as NumberFilterHelpers } from "./NumberFilter/index.840bfab2.js";
|
|
8
|
+
import { S as SelectFilterHelpers } from "./SelectFilter/index.dfacda9b.js";
|
|
9
9
|
const helpersStrategies = {
|
|
10
10
|
boolean: new BooleanFilterHelpers(),
|
|
11
11
|
string: new StringFilterHelpers(),
|