@m4l/components 1.1.0 → 1.1.2
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/@types/export.d.ts +0 -5
- package/@types/types.d.ts +9 -0
- package/components/AccountPopover/{index.789ca5b9.js → index.84049a50.js} +3 -3
- package/components/AppBar/{index.a1734c3b.js → index.22ed1a0e.js} +4 -4
- package/components/BaseModule/{index.db78c929.js → index.0fc648c5.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.a44544d1.js → index.33cf608e.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.1b921390.js → index.d1359a38.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.624a468b.js → index.415de2bb.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.63222f6a.js → index.0893587b.js} +2 -2
- package/components/CommonActions/components/Actions/{index.46d6c3d1.js → index.2342a37e.js} +2 -2
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.8ba7afb9.js → index.9d6f8597.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.5a93dc9b.js → index.9bcaba12.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.35597c7f.js → index.a58a8712.js} +1 -1
- package/components/DataGrid/formatters/{index.4a07af63.js → index.6698b419.js} +2 -2
- package/components/DataGrid/{index.65f1da52.js → index.b1cac6af.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.1fed83ce.js → index.a60b17d5.js} +11 -11
- package/components/DragResizeWindow/classes/types.d.ts +1 -0
- package/components/DragResizeWindow/helpers/index.d.ts +3 -0
- package/components/DragResizeWindow/{index.ad0da648.js → index.46048367.js} +52 -39
- package/components/DragResizeWindow/types.d.ts +7 -0
- package/components/DynamicFilter/{dictionary.7aeaab97.js → dictionary.da256925.js} +2 -2
- package/components/DynamicFilter/{index.895da58e.js → index.08abfc2c.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots.84150a22.js → dynamicFilterSlots.b02bff6a.js} +6 -6
- package/components/DynamicFilter/store/{index.6ec4c67c.js → index.1e4af8b4.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.42446f8e.js → index.37bcd016.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.621ca411.js → index.2740f285.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.0c3af964.js → index.63102514.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.f92d2a9c.js → index.3824d701.js} +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.aad7a12c.js → index.57ddf344.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.852c4c73.js → index.7beac9f0.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.4beced1d.js → index.e9e1af93.js} +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.17191093.js → index.d27a8bcc.js} +3 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.10c9c338.js → index.e8f1d8e5.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.7bee6c25.js → index.35014c15.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.85d720be.js → index.f42e9571.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.0fdc8a51.js → index.ada7eb0c.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.3674da6c.js → index.144885cf.js} +2 -2
- package/components/FieldLabel/{index.523aaa62.js → index.59b9b63a.js} +4 -4
- package/components/GridLayout/{index.3b90ce9b.js → index.56c3f4fa.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.83d54714.js → index.02bcb3b3.js} +3 -3
- package/components/GridLayout/subcomponents/Responsive/{index.f06bbf5e.js → index.65aeef5e.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.72bfaedb.js → index.0aad6f90.js} +1 -1
- package/components/HelperText/{index.af402ba9.js → index.5c72277a.js} +2 -2
- package/components/Icon/{index.ab280d41.js → index.13aaae3c.js} +3 -3
- package/components/Image/{index.ec13c4a1.js → index.4b51d4ba.js} +2 -2
- package/components/LanguagePopover/{index.6af275d0.js → index.7605fda8.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.6739ff49.js → index.292a4af8.js} +2 -2
- package/components/LoadingError/{index.cfdfb380.js → index.b129b573.js} +5 -5
- package/components/MFIsolationApp/{index.96eb2a32.js → index.9f718621.js} +2 -2
- package/components/MFLoader/{index.9f542136.js → index.5d340e32.js} +2 -2
- package/components/ModalDialog/{index.b975fc7b.js → index.ff275011.js} +4 -4
- package/components/NavLink/{index.9cc3caf4.js → index.506c7827.js} +2 -2
- package/components/NoItemSelected/{index.4ea373aa.js → index.1d7d5a9d.js} +1 -1
- package/components/ObjectLogs/{index.55d93ddb.js → index.473ebd65.js} +9 -9
- package/components/PDFViewer/{index.8d8c9d39.js → index.4e7ffac8.js} +2 -2
- package/components/Page/{index.eb107182.js → index.b75c74e3.js} +1 -1
- package/components/PaperForm/{index.37170e07.js → index.8289409f.js} +2 -2
- package/components/Period/{index.2a193da0.js → index.13e4c351.js} +4 -4
- package/components/PrintingSystem/{index.6d6cd410.js → index.e1535b80.js} +14 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.2f4b2285.js → index.6b36842d.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.0e11ce1a.js → index.4aab9d2c.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.774c0eb8.js → index.23a9dc95.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.23fb8a3e.js → index.d0e8fd15.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.9cd30c38.js → index.35ff7dab.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.9f4f2196.js → index.9547c826.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.7b78e756.js → index.71afe03e.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.6c924beb.js → index.abbb154c.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.2da2a062.js → index.b3f2ba6c.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.334ff3ef.js → index.809aaad2.js} +1 -1
- package/components/PropertyValue/{index.cec68741.js → index.36555931.js} +3 -3
- package/components/Resizeable/{index.a27cb569.js → index.57363836.js} +1 -1
- package/components/ScrollBar/{index.4e447b30.js → index.236e2aa3.js} +1 -1
- package/components/SideBar/{index.902789b8.js → index.bb6c2c7b.js} +6 -6
- package/components/SplitLayout/{index.e048f8c4.js → index.75953afb.js} +1 -1
- package/components/ToastContainer/{index.319037c5.js → index.bb972338.js} +3 -3
- package/components/animate/LoadingScreen/{index.d22d67a3.js → index.09915798.js} +1 -1
- package/components/animate/{index.271410bf.js → index.5c545243.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.f3a211a4.js → index.42d40964.js} +15 -15
- package/components/areas/components/AreasViewer/{index.8e9d24c2.js → index.266a3815.js} +15 -15
- package/components/areas/components/AreasViewer/styles.d.ts +1 -1
- package/components/areas/contexts/AreasContext/{index.b29fb29f.js → index.c2289888.js} +4 -4
- package/components/areas/hooks/useAreas/{index.5f7f615d.js → index.509c1703.js} +1 -1
- package/components/commercial/AppBarCommercial/{index.8b27200f.js → index.3fd10868.js} +2 -2
- package/components/commercial/SectionCommercial/{index.6ffe7283.js → index.bd45c64e.js} +2 -2
- package/components/commercial/TopBar/{index.67ee203b.js → index.4e55cffa.js} +6 -6
- package/components/commercial/{index.196f2f16.js → index.4bdbb8fe.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.71e5727f.js → index.ac870381.js} +2 -2
- package/components/formatters/{index.6c7fdd6c.js → index.53ad2f51.js} +2 -2
- package/components/hook-form/HelperError/{index.af99c705.js → index.9f93c627.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.b295a0b4.js → index.b8347185.js} +6 -6
- package/components/hook-form/RHFAutocompleteAsync/{index.ad51f3e2.js → index.aeb3bf66.js} +2 -2
- package/components/hook-form/RHFCheckbox/{index.4aa49169.js → index.c3b7ce0f.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.6e788803.js → index.c259b8ac.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.4c686856.js → index.4efe48ce.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.7bd17690.js → index.0f912e3e.js} +4 -4
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +1 -1
- package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.d.ts +2 -0
- package/components/hook-form/RHFRadioGroup/index.96c94958.js +52 -0
- package/components/hook-form/RHFRadioGroup/types.d.ts +10 -4
- package/components/hook-form/RHFTextField/{index.ec3f5dd5.js → index.828b30f5.js} +5 -5
- package/components/hook-form/RHFUpload/{index.1275836a.js → index.b664c68b.js} +5 -5
- package/components/maps/components/GpsTools/{index.44b82290.js → index.e759163d.js} +23 -23
- package/components/maps/components/Map/external/Control/index.d.ts +1 -1
- package/components/maps/components/Map/{index.7cb66143.js → index.c568e68d.js} +30 -27
- package/components/modal/{WindowBase.e663941b.js → WindowBase.58f9e2b0.js} +3 -3
- package/components/modal/{WindowConfirm.abcfd142.js → WindowConfirm.60955735.js} +6 -6
- package/components/mui_extended/Accordion/{index.1d692b19.js → index.e6971e30.js} +4 -4
- package/components/mui_extended/Avatar/{index.561ed0f7.js → index.8cc99f13.js} +1 -1
- package/components/mui_extended/Badge/{index.abad2c28.js → index.07fb40c0.js} +1 -1
- package/components/mui_extended/Button/{index.8afd5131.js → index.111f830e.js} +3 -3
- package/components/mui_extended/{CheckBox.d84658da.js → CheckBox.a8958eb8.js} +2 -2
- package/components/mui_extended/IconButton/{index.cb274bbe.js → index.9425bdc5.js} +2 -2
- package/components/mui_extended/MenuActions/{index.8168ad20.js → index.8b0d69b7.js} +5 -5
- package/components/mui_extended/Pager/{index.9184e616.js → index.cb749e65.js} +4 -4
- package/components/mui_extended/Popover/{index.594e3587.js → index.5e78a637.js} +2 -2
- package/components/mui_extended/Stack/{index.6516b2b5.js → index.3674daf7.js} +1 -1
- package/components/mui_extended/Tab/{index.2ac4a667.js → index.a94a92c1.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.94cd32f3.js → index.a55def3b.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.3cb364d1.js → index.cd20de81.js} +1 -1
- package/components/mui_extended/Typography/{index.71fbb5c4.js → index.45e97bdd.js} +1 -1
- package/components/popups/PopupsProvider/{index.07940e4f.js → index.776c62e7.js} +8 -34
- package/components/popups/PopupsViewer/constants.29247547.js +4 -0
- package/components/popups/PopupsViewer/icons.066abd43.js +7 -0
- package/components/popups/PopupsViewer/{index.d8b9a059.js → index.8fe4aa5d.js} +43 -78
- package/components/popups/PopupsViewer/slots/index.154e4e5f.js +14 -0
- package/components/popups/PopupsViewer/slots/popupsViewerSlots.aaf546e2.js +39 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +27 -47
- package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +1 -2
- package/components/popups/components/PopupsViewer/constants.d.ts +1 -1
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +25 -0
- package/components/popups/components/PopupsViewer/slots/slots.d.ts +10 -0
- package/components/popups/components/PopupsViewer/types.d.ts +17 -3
- package/contexts/ModalContext/{index.dd147fa6.js → index.a5c622d6.js} +1 -1
- package/contexts/RHFormContext/{index.cedd3482.js → index.40a9547e.js} +1 -1
- package/hooks/useFormAddEdit/{index.00c86b5b.js → index.b6a3cf63.js} +2 -2
- package/hooks/useModal/{index.84233480.js → index.3ad1e014.js} +1 -1
- package/hooks/useTab/{index.74399f56.js → index.4081b113.js} +1 -1
- package/index.js +126 -122
- package/package.json +1 -1
- package/{react-draggable.079122b0.js → react-draggable.310e3387.js} +1 -1
- package/{react-resizable.330f1499.js → react-resizable.3755959b.js} +2 -2
- package/styles/{DynamicFilter.0713a406.js → DynamicFilter.557ee3a7.js} +1 -1
- package/styles/PopupViewer.styles.d.ts +2 -0
- package/styles/{index.1735a866.js → index.239f949e.js} +100 -10
- package/components/hook-form/RHFRadioGroup/index.11c0add8.js +0 -35
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +0 -7
- package/components/popups/components/PopupsViewer/classes/index.d.ts +0 -17
- package/components/popups/components/PopupsViewer/classes/types.d.ts +0 -15
- package/components/popups/components/PopupsViewer/styled.d.ts +0 -2
- /package/utils/{index.f77cc2ab.js → index.78d1638f.js} +0 -0
package/@types/export.d.ts
CHANGED
|
@@ -189,11 +189,6 @@ declare module '@mui/material/styles' {
|
|
|
189
189
|
M4LGridLayout?: {
|
|
190
190
|
styleOverrides?: ComponentsOverrides<Theme>['M4LGridLayout'];
|
|
191
191
|
};
|
|
192
|
-
|
|
193
|
-
M4LPopupsViewer?: {
|
|
194
|
-
styleOverrides?: ComponentsOverrides<Theme>['M4LPopupsViewer'];
|
|
195
|
-
};
|
|
196
|
-
|
|
197
192
|
M4LMap?: {
|
|
198
193
|
styleOverrides?: ComponentsOverrides<Theme>['M4LMap'];
|
|
199
194
|
};
|
package/@types/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentsOverrides, ComponentsVariants, Theme as MuiTheme } from '@mui/material/styles';
|
|
2
2
|
|
|
3
3
|
import { DynamicFilterSlotsType, DynamicFilterOwnerState } from '../components/DynamicFilter/types';
|
|
4
|
+
import { PopupOwnerState, PopupViewerSlotsType, PopupsViewerOwnerState } from '../components/popups/components/PopupsViewer/types';
|
|
4
5
|
|
|
5
6
|
type Theme = Omit<MuiTheme, 'components'>;
|
|
6
7
|
|
|
@@ -8,11 +9,14 @@ declare module '@mui/material/styles' {
|
|
|
8
9
|
// Define the slots in the theme
|
|
9
10
|
interface ComponentNameToClassKey {
|
|
10
11
|
M4LDynamicFilter: DynamicFilterSlotsType;
|
|
12
|
+
M4LPopupsViewer: PopupViewerSlotsType;
|
|
13
|
+
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
interface ComponentsPropsList {
|
|
14
17
|
// Extend ComponentsProps or ComponentsOwnerState(this extend ComponentProps)
|
|
15
18
|
M4LDynamicFilter: Partial<DynamicFilterOwnerState>;
|
|
19
|
+
M4LPopupsViewer: Partial<PopupsViewerOwnerState >;
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
interface Components {
|
|
@@ -21,5 +25,10 @@ declare module '@mui/material/styles' {
|
|
|
21
25
|
styleOverrides?: ComponentsOverrides<Theme>['M4LDynamicFilter'];
|
|
22
26
|
variants?: ComponentsVariants['M4LDynamicFilter'];
|
|
23
27
|
};
|
|
28
|
+
M4LPopupsViewer?: {
|
|
29
|
+
defaultProps?: ComponentsPropsList['M4LPopupsViewer'];
|
|
30
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LPopupsViewer'];
|
|
31
|
+
variants?: ComponentsVariants['M4LPopupsViewer'];
|
|
32
|
+
};
|
|
24
33
|
}
|
|
25
34
|
}
|
|
@@ -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.8cc99f13.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.5e78a637.js";
|
|
10
|
+
import { I as Icon } from "../Icon/index.13aaae3c.js";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
const componentName = "M4LAccountPopover";
|
|
13
13
|
generateUtilityClasses(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { A as AppBarRoot } from "../../styles/index.
|
|
2
|
+
import { A as AppBarRoot } from "../../styles/index.239f949e.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.
|
|
8
|
+
import { I as Image } from "../Image/index.4b51d4ba.js";
|
|
9
|
+
import { T as Typography } from "../mui_extended/Typography/index.45e97bdd.js";
|
|
10
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.9425bdc5.js";
|
|
11
11
|
const APPBAR_PREFIX = "M4LAppBar";
|
|
12
12
|
const getNameDataTestId = (KEY) => {
|
|
13
13
|
return `${APPBAR_PREFIX}-${KEY}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FlagsProvider, ModuleDictionaryProvider, ModuleSkeletonProvider, ModulePrivilegesProvider } from "@m4l/core";
|
|
3
3
|
import { useLocales } from "@m4l/graphics";
|
|
4
|
-
import { M as ModalProvider } from "../../contexts/ModalContext/index.
|
|
4
|
+
import { M as ModalProvider } from "../../contexts/ModalContext/index.a5c622d6.js";
|
|
5
5
|
function BaseModule(props) {
|
|
6
6
|
const {
|
|
7
7
|
children,
|
package/components/CommonActions/components/ActionCancel/{index.a44544d1.js → index.33cf608e.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.111f830e.js";
|
|
4
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2342a37e.js";
|
|
5
5
|
const ActionCancel = (props) => {
|
|
6
6
|
const { getLabel } = useModuleDictionary();
|
|
7
7
|
const classes = useCommonActionsUtilityClasses();
|
package/components/CommonActions/components/ActionFormCancel/{index.1b921390.js → index.d1359a38.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.111f830e.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.3ad1e014.js";
|
|
7
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2342a37e.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.60955735.js";
|
|
10
10
|
function ActionFormCancel() {
|
|
11
11
|
const { getLabel } = useModuleDictionary();
|
|
12
12
|
const { openModal } = useModal();
|
package/components/CommonActions/components/ActionFormIntro/{index.624a468b.js → index.415de2bb.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.111f830e.js";
|
|
6
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.2342a37e.js";
|
|
7
7
|
function ActionFormIntro(props) {
|
|
8
8
|
const { getLabel } = useModuleDictionary();
|
|
9
9
|
const isSkeleton = useModuleSkeleton();
|
package/components/CommonActions/components/ActionIntro/{index.63222f6a.js → index.0893587b.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.111f830e.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.2342a37e.js";
|
|
6
6
|
const ACTIONINTRO_TEST_ID = "m4lactions";
|
|
7
7
|
const ActionIntro = (props) => {
|
|
8
8
|
const { getLabel } = useModuleDictionary();
|
|
@@ -4,8 +4,8 @@ import clsx from "clsx";
|
|
|
4
4
|
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.86c553a9.js";
|
|
5
5
|
import { generateUtilityClasses } from "@mui/material";
|
|
6
6
|
import { unstable_composeClasses } from "@mui/base";
|
|
7
|
-
import { g as getComponentUtilityClass } from "../../../../utils/index.
|
|
8
|
-
import { W as WrapperStandarActions } from "../../../../styles/index.
|
|
7
|
+
import { g as getComponentUtilityClass } from "../../../../utils/index.78d1638f.js";
|
|
8
|
+
import { W as WrapperStandarActions } from "../../../../styles/index.239f949e.js";
|
|
9
9
|
function getCommonActionsDictionary() {
|
|
10
10
|
return ["common_actions"];
|
|
11
11
|
}
|
|
@@ -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.ac870381.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.53ad2f51.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.b1cac6af.js";
|
|
4
4
|
function ColumnInteractiveCheckFormatter(props) {
|
|
5
5
|
const { row, onRowChange, column } = props;
|
|
6
6
|
const handleChange = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { d as dataGridClasses } from "../index.
|
|
3
|
-
import { I as Icon } from "../../Icon/index.
|
|
2
|
+
import { d as dataGridClasses } from "../index.b1cac6af.js";
|
|
3
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
4
4
|
function ColumnIconFormatter(props) {
|
|
5
5
|
const { getIconUrl } = props;
|
|
6
6
|
return (obProps) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
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.ff275011.js";
|
|
2
|
+
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.cb749e65.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import { a as WrapperSkeleton, D as DataGridRoot } from "../../styles/index.
|
|
4
|
+
import { a as WrapperSkeleton, D as DataGridRoot } from "../../styles/index.239f949e.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";
|
|
@@ -9,7 +9,7 @@ import { HTML5Backend } from "react-dnd-html5-backend";
|
|
|
9
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.a60b17d5.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";
|
|
@@ -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, b as dictionary } from "../../index.
|
|
2
|
+
import { M as MenuActions } from "../../../mui_extended/MenuActions/index.8b0d69b7.js";
|
|
3
|
+
import { u as useDataGrid, a as useFilters, b as dictionary } from "../../index.b1cac6af.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.cb749e65.js";
|
|
7
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.9425bdc5.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.
|
|
11
|
+
import { b as WrapperColumnsConfig, c as DivSelColumns, d as WrapperDataGrid, C as ColumnActions, D as DataGridRoot } from "../../../../styles/index.239f949e.js";
|
|
12
12
|
import { D as DataGrid$1 } from "../../../../react-data-grid.c5377916.js";
|
|
13
|
-
import { C as ColumnInteractiveCheckFormatter } from "../../formatters/ColumnInteractiveCheckFormatter/index.
|
|
14
|
-
import { u as useModal } from "../../../../hooks/useModal/index.
|
|
15
|
-
import { W as WindowBase } from "../../../modal/WindowBase.
|
|
16
|
-
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.
|
|
17
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
18
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
13
|
+
import { C as ColumnInteractiveCheckFormatter } from "../../formatters/ColumnInteractiveCheckFormatter/index.a58a8712.js";
|
|
14
|
+
import { u as useModal } from "../../../../hooks/useModal/index.3ad1e014.js";
|
|
15
|
+
import { W as WindowBase } from "../../../modal/WindowBase.58f9e2b0.js";
|
|
16
|
+
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.2342a37e.js";
|
|
17
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.33cf608e.js";
|
|
18
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.0893587b.js";
|
|
19
19
|
import { shallow } from "zustand/shallow";
|
|
20
20
|
function ActionsFormatter(props) {
|
|
21
21
|
const { rowActionsGetter, classes } = useDataGrid();
|
|
@@ -4,6 +4,7 @@ export interface DraggableWindowClasses {
|
|
|
4
4
|
draggableHandle: string;
|
|
5
5
|
draggableCancel: string;
|
|
6
6
|
dragging: string;
|
|
7
|
+
hidden: string;
|
|
7
8
|
}
|
|
8
9
|
export declare type DraggableWindowClassesKey = keyof DraggableWindowClasses;
|
|
9
10
|
export declare type Classes = ReturnType<typeof draggableWindowUtilityClasses>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { forwardRef, useState, useRef, useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import { D as DraggableCore_1 } from "../../react-draggable.
|
|
3
|
+
import { D as DraggableCore_1 } from "../../react-draggable.310e3387.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { styled, generateUtilityClasses, useForkRef } 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.c568e68d.js";
|
|
7
7
|
import "@mui/base";
|
|
8
|
-
import { R as Resizable } from "../../react-resizable.
|
|
8
|
+
import { R as Resizable } from "../../react-resizable.3755959b.js";
|
|
9
9
|
const WrapperDragResizeWindowRoot = styled("div")`
|
|
10
10
|
position: absolute;
|
|
11
11
|
left: 0px;
|
|
@@ -14,6 +14,12 @@ const WrapperDragResizeWindowRoot = styled("div")`
|
|
|
14
14
|
z-index: ${MAP_ZINDEX_OVER_MAP};
|
|
15
15
|
prop2: 2;
|
|
16
16
|
|
|
17
|
+
|
|
18
|
+
&.M4LDraggableWindow-hidden {
|
|
19
|
+
visibility: hidden;
|
|
20
|
+
pointerEvents: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
17
23
|
${(props) => props.theme.components?.M4LDragResizeWindow?.styleOverrides}
|
|
18
24
|
`;
|
|
19
25
|
const COMPONENT_CLASS_NAME = "M4LDraggableWindow";
|
|
@@ -24,7 +30,8 @@ const draggableWindowClasses = generateUtilityClasses(
|
|
|
24
30
|
"root",
|
|
25
31
|
"draggableHandle",
|
|
26
32
|
"draggableCancel",
|
|
27
|
-
"dragging"
|
|
33
|
+
"dragging",
|
|
34
|
+
"hidden"
|
|
28
35
|
]
|
|
29
36
|
);
|
|
30
37
|
function setTransform({ top, left, width, height }) {
|
|
@@ -41,6 +48,41 @@ function setTransform({ top, left, width, height }) {
|
|
|
41
48
|
prop1: 1
|
|
42
49
|
};
|
|
43
50
|
}
|
|
51
|
+
const getInitialSize = (containerSize, defaultPosition) => {
|
|
52
|
+
let top;
|
|
53
|
+
let bottom;
|
|
54
|
+
let height;
|
|
55
|
+
let left;
|
|
56
|
+
let right;
|
|
57
|
+
let width;
|
|
58
|
+
if ("top" in defaultPosition.vertical) {
|
|
59
|
+
top = defaultPosition.vertical.top;
|
|
60
|
+
}
|
|
61
|
+
if ("bottom" in defaultPosition.vertical) {
|
|
62
|
+
bottom = defaultPosition.vertical.bottom;
|
|
63
|
+
}
|
|
64
|
+
if ("height" in defaultPosition.vertical) {
|
|
65
|
+
height = defaultPosition.vertical.height;
|
|
66
|
+
}
|
|
67
|
+
if ("left" in defaultPosition.horizontal) {
|
|
68
|
+
left = defaultPosition.horizontal.left;
|
|
69
|
+
}
|
|
70
|
+
if ("right" in defaultPosition.horizontal) {
|
|
71
|
+
right = defaultPosition.horizontal.right;
|
|
72
|
+
}
|
|
73
|
+
if ("width" in defaultPosition.horizontal) {
|
|
74
|
+
width = defaultPosition.horizontal.width;
|
|
75
|
+
}
|
|
76
|
+
console.log("containerSize", containerSize);
|
|
77
|
+
const containerHeight = containerSize?.containerHeight || 200;
|
|
78
|
+
const containerWidth = containerSize?.containerWidth || 200;
|
|
79
|
+
return {
|
|
80
|
+
top: top ?? (bottom ? containerHeight - bottom - (height || 0) : 0),
|
|
81
|
+
height: height ?? containerHeight - (top || 0) - (bottom || 0),
|
|
82
|
+
left: left ?? (right ? containerWidth - right - (width || 0) : 0),
|
|
83
|
+
width: width ?? containerWidth - (left || 0) - (right || 0)
|
|
84
|
+
};
|
|
85
|
+
};
|
|
44
86
|
const DragResizeWindow = forwardRef((props, ref) => {
|
|
45
87
|
const {
|
|
46
88
|
style,
|
|
@@ -66,42 +108,12 @@ const DragResizeWindow = forwardRef((props, ref) => {
|
|
|
66
108
|
onResizeStart,
|
|
67
109
|
onResize,
|
|
68
110
|
onResizeStop,
|
|
111
|
+
hidden,
|
|
69
112
|
...others
|
|
70
113
|
} = props;
|
|
71
|
-
const [currentState, setCurrentState] = useState(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
let height;
|
|
75
|
-
let left;
|
|
76
|
-
let right;
|
|
77
|
-
let width;
|
|
78
|
-
if ("top" in defaultPosition.vertical) {
|
|
79
|
-
top = defaultPosition.vertical.top;
|
|
80
|
-
}
|
|
81
|
-
if ("bottom" in defaultPosition.vertical) {
|
|
82
|
-
bottom = defaultPosition.vertical.bottom;
|
|
83
|
-
}
|
|
84
|
-
if ("height" in defaultPosition.vertical) {
|
|
85
|
-
height = defaultPosition.vertical.height;
|
|
86
|
-
}
|
|
87
|
-
if ("left" in defaultPosition.horizontal) {
|
|
88
|
-
left = defaultPosition.horizontal.left;
|
|
89
|
-
}
|
|
90
|
-
if ("right" in defaultPosition.horizontal) {
|
|
91
|
-
right = defaultPosition.horizontal.right;
|
|
92
|
-
}
|
|
93
|
-
if ("width" in defaultPosition.horizontal) {
|
|
94
|
-
width = defaultPosition.horizontal.width;
|
|
95
|
-
}
|
|
96
|
-
const containerHeight = containerSize?.containerHeight || 200;
|
|
97
|
-
const containerWidth = containerSize?.containerWidth || 200;
|
|
98
|
-
return {
|
|
99
|
-
top: top || 0,
|
|
100
|
-
height: height ?? containerHeight - (top || 0) - (bottom || 0),
|
|
101
|
-
left: left ?? (right ? containerWidth - right - (width || 0) : 0),
|
|
102
|
-
width: width ?? containerWidth - (left || 0) - (right || 0)
|
|
103
|
-
};
|
|
104
|
-
});
|
|
114
|
+
const [currentState, setCurrentState] = useState(
|
|
115
|
+
getInitialSize(containerSize, defaultPosition)
|
|
116
|
+
);
|
|
105
117
|
const stateRef = useRef({
|
|
106
118
|
bounds,
|
|
107
119
|
data: void 0,
|
|
@@ -447,7 +459,8 @@ const DragResizeWindow = forwardRef((props, ref) => {
|
|
|
447
459
|
[wrapperRef, transformScale, draggableHandle, draggableCancel]
|
|
448
460
|
);
|
|
449
461
|
const classNameFinal = clsx(draggableWindowClasses.root, className, {
|
|
450
|
-
"react-draggable": draggable
|
|
462
|
+
"react-draggable": draggable,
|
|
463
|
+
[draggableWindowClasses.hidden]: hidden
|
|
451
464
|
});
|
|
452
465
|
const styleFinal = {
|
|
453
466
|
...style,
|
|
@@ -74,6 +74,9 @@ export interface DefaultPosition {
|
|
|
74
74
|
} | {
|
|
75
75
|
top: number;
|
|
76
76
|
height: number;
|
|
77
|
+
} | {
|
|
78
|
+
bottom: number;
|
|
79
|
+
height: number;
|
|
77
80
|
};
|
|
78
81
|
horizontal: {
|
|
79
82
|
left: number;
|
|
@@ -180,6 +183,10 @@ export interface DraggableWindowProps extends Partial<Omit<DraggableCoreProps, '
|
|
|
180
183
|
* "onResizeStop" función para el que usa el componente, pueda tomar decisiones en base a este evento
|
|
181
184
|
*/
|
|
182
185
|
onResizeStop?: ResizeCallback;
|
|
186
|
+
/**
|
|
187
|
+
* @description "hidden" permite definir si la ventana está oculta o no. Por defecto es "false"
|
|
188
|
+
*/
|
|
189
|
+
hidden?: boolean;
|
|
183
190
|
}
|
|
184
191
|
export interface StateRef extends Pick<DraggableWindowProps, 'bounds'>, CurrentState {
|
|
185
192
|
data?: DraggableData;
|
|
@@ -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.2342a37e.js";
|
|
2
|
+
import { g as getRHFAutocompleteComponentsDictionary } from "../hook-form/RHFAutocomplete/index.b8347185.js";
|
|
3
3
|
const DYNAMIC_FILTER_DICTIONARY_ID = "dynamic_filter";
|
|
4
4
|
function getDynamicFilterComponentsDictionary() {
|
|
5
5
|
return [DYNAMIC_FILTER_DICTIONARY_ID].concat(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as fieldFactory } from "./subcomponents/FieldTypes/index.
|
|
2
|
-
import { f as filterValidOperandsArraySelect } from "./subcomponents/FieldTypes/SelectFilter/index.
|
|
1
|
+
import { f as fieldFactory } from "./subcomponents/FieldTypes/index.e8f1d8e5.js";
|
|
2
|
+
import { f as filterValidOperandsArraySelect } from "./subcomponents/FieldTypes/SelectFilter/index.e9e1af93.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
5
|
-
import { D as DynamicFilterProvider } from "./store/index.
|
|
6
|
-
import { D as DynamicFilterBase } from "./subcomponents/DynamicFilterBase/index.
|
|
5
|
+
import { D as DynamicFilterProvider } from "./store/index.1e4af8b4.js";
|
|
6
|
+
import { D as DynamicFilterBase } from "./subcomponents/DynamicFilterBase/index.63102514.js";
|
|
7
7
|
function getPurgedInitialFiltersApplied(fields, initialFilters, getFieldByName) {
|
|
8
8
|
const newFilters = [];
|
|
9
9
|
const fixedFields = [];
|
|
@@ -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 "./SlotsEnum.104a03d4.js";
|
|
4
|
-
import { d as dynamicFilterStyles } from "../../../styles/DynamicFilter.
|
|
4
|
+
import { d as dynamicFilterStyles } from "../../../styles/DynamicFilter.557ee3a7.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.2342a37e.js";
|
|
7
|
+
import { I as Icon } from "../../Icon/index.13aaae3c.js";
|
|
8
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.9425bdc5.js";
|
|
9
|
+
import { P as Popover } from "../../mui_extended/Popover/index.5e78a637.js";
|
|
10
|
+
import { T as Typography } from "../../mui_extended/Typography/index.45e97bdd.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.08abfc2c.js";
|
|
9
9
|
import { devtools } from "zustand/middleware";
|
|
10
10
|
import { immer } from "zustand/middleware/immer";
|
|
11
11
|
function useDynamicFilterStore(selector, equalityFn) {
|
|
@@ -2,9 +2,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { useFormatter } from "@m4l/graphics";
|
|
5
|
-
import { u as useDynamicFilterStore } from "../../store/index.
|
|
6
|
-
import { f as fieldFactory } from "../FieldTypes/index.
|
|
7
|
-
import { A as AppliedFilterChipStyled, a as AppliedFilterChipIconStyled, b as AppliedFilterChipInfoStyled, c as AppliedFilterChipInfoFieldNameStyled, d as AppliedFilterChipInfoOperatorStyled, e as AppliedFilterChipInfoOperandsStyled, f as AppliedFilterChipRemoveButtonStyled } from "../../slots/dynamicFilterSlots.
|
|
5
|
+
import { u as useDynamicFilterStore } from "../../store/index.1e4af8b4.js";
|
|
6
|
+
import { f as fieldFactory } from "../FieldTypes/index.e8f1d8e5.js";
|
|
7
|
+
import { A as AppliedFilterChipStyled, a as AppliedFilterChipIconStyled, b as AppliedFilterChipInfoStyled, c as AppliedFilterChipInfoFieldNameStyled, d as AppliedFilterChipInfoOperatorStyled, e as AppliedFilterChipInfoOperandsStyled, f as AppliedFilterChipRemoveButtonStyled } from "../../slots/dynamicFilterSlots.b02bff6a.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 { u as useDynamicFilterStore } from "../../store/index.
|
|
4
|
-
import { g as AppliedFiltersStyled, h as AppliedFilterInnerContainerStyled } from "../../slots/dynamicFilterSlots.
|
|
5
|
-
import { A as AppliedFilterChip } from "../AppliedFilterChip/index.
|
|
2
|
+
import { S as ScrollBar } from "../../../ScrollBar/index.236e2aa3.js";
|
|
3
|
+
import { u as useDynamicFilterStore } from "../../store/index.1e4af8b4.js";
|
|
4
|
+
import { g as AppliedFiltersStyled, h as AppliedFilterInnerContainerStyled } from "../../slots/dynamicFilterSlots.b02bff6a.js";
|
|
5
|
+
import { A as AppliedFilterChip } from "../AppliedFilterChip/index.37bcd016.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.
|
|
2
|
+
import { u as useDynamicFilterStore } from "../../store/index.1e4af8b4.js";
|
|
3
3
|
import { a as getPropDataTestId } from "../../../../test/getNameDataTestId.0faeade8.js";
|
|
4
|
-
import { R as RootStyled, I as InnerContainerStyled } from "../../slots/dynamicFilterSlots.
|
|
4
|
+
import { R as RootStyled, I as InnerContainerStyled } from "../../slots/dynamicFilterSlots.b02bff6a.js";
|
|
5
5
|
import { D as DynamicFilterSlots } from "../../slots/SlotsEnum.104a03d4.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.f42e9571.js";
|
|
7
|
+
import { A as AppliedFilters } from "../AppliedFilters/index.2740f285.js";
|
|
8
|
+
import { F as FilterActions } from "../FilterActions/index.35014c15.js";
|
|
9
|
+
import { P as PopoverFilter } from "../PopoverFilter/index.ada7eb0c.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.da256925.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.b8347185.js";
|
|
8
8
|
function BooleanFilter() {
|
|
9
9
|
const { getLabel } = useModuleDictionary();
|
|
10
10
|
const operators = useMemo(
|
|
@@ -1,13 +1,13 @@
|
|
|
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.da256925.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.
|
|
10
|
-
import { i as isValidDate } from "../../../../../utils/index.
|
|
8
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.b8347185.js";
|
|
9
|
+
import { R as RHFDateTime } from "../../../../hook-form/RHFDateTime/index.4efe48ce.js";
|
|
10
|
+
import { i as isValidDate } from "../../../../../utils/index.78d1638f.js";
|
|
11
11
|
function DateTimeFilter() {
|
|
12
12
|
const { getLabel } = useModuleDictionary();
|
|
13
13
|
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.da256925.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.b8347185.js";
|
|
9
|
+
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.828b30f5.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.da256925.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.1e4af8b4.js";
|
|
8
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.b8347185.js";
|
|
9
|
+
import { R as RHFAutocompleteAsync } from "../../../../hook-form/RHFAutocompleteAsync/index.aeb3bf66.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.da256925.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.b8347185.js";
|
|
8
|
+
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.828b30f5.js";
|
|
9
9
|
function StringFilter() {
|
|
10
10
|
const { getLabel } = useModuleDictionary();
|
|
11
11
|
const operators = useMemo(
|