@m4l/components 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/export.d.ts +0 -5
- package/@types/types.d.ts +9 -0
- package/components/AccountPopover/{index.dde11a5c.js → index.493dbab5.js} +3 -3
- package/components/AppBar/{index.19b11c19.js → index.4b2c02da.js} +4 -4
- package/components/BaseModule/{index.4b725d16.js → index.dba0d174.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.c3cddacf.js → index.ce196f96.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.3ec840af.js → index.d63f6a23.js} +4 -4
- package/components/CommonActions/components/ActionFormIntro/{index.3187e7a7.js → index.0daa98b8.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.db2b2999.js → index.1c40d33b.js} +2 -2
- package/components/CommonActions/components/Actions/{index.84b8fd47.js → index.434f4824.js} +1 -1
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.ea1b882e.js → index.0a3660c0.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.cff633f6.js → index.4b1df4ab.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.d2e656a0.js → index.37f4f359.js} +1 -1
- package/components/DataGrid/formatters/{index.4b65c281.js → index.91129d5e.js} +2 -2
- package/components/DataGrid/{index.9aa088f6.js → index.d538cef8.js} +4 -4
- package/components/DataGrid/subcomponents/Actions/{index.9416e750.js → index.8d2e96e7.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.8f5a2e3e.js → index.17e7059d.js} +50 -37
- package/components/DragResizeWindow/types.d.ts +7 -0
- package/components/DynamicFilter/{dictionary.e9ad0f7c.js → dictionary.f471309f.js} +2 -2
- package/components/DynamicFilter/{index.e737845f.js → index.a7e772f7.js} +4 -4
- package/components/DynamicFilter/slots/{dynamicFilterSlots.c6d731f1.js → dynamicFilterSlots.1e2dc145.js} +5 -5
- package/components/DynamicFilter/store/{index.7a5e5f6a.js → index.3733c18e.js} +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.f714d323.js → index.5b952ba7.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.c4131ff0.js → index.e38ed08e.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.9be8d255.js → index.bbc1b1c0.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.5caf5b34.js → index.b0a2c96e.js} +4 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.f5262ca2.js → index.2036b257.js} +4 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.f48b4af1.js → index.d7559fb2.js} +4 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.86de8517.js → index.d628de04.js} +5 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.1ba1cc22.js → index.804bb474.js} +4 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.8d2e925e.js → index.de33ba0a.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.066a32f4.js → index.c8c90968.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.f3f01ebc.js → index.1b95c167.js} +4 -4
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.7805f621.js → index.fd8a2421.js} +6 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.d5efe247.js → index.9f07285e.js} +2 -2
- package/components/DynamicFilter/types.d.ts +1 -1
- package/components/FieldLabel/{index.a6235bcc.js → index.44f3e099.js} +3 -3
- package/components/GridLayout/{index.14b734d6.js → index.a9f419d8.js} +2 -2
- package/components/GridLayout/subcomponents/Griditem/{index.5c8546c8.js → index.c9f8165b.js} +1 -1
- package/components/GridLayout/subcomponents/Responsive/{index.6646c077.js → index.ad80dae3.js} +1 -1
- package/components/GridLayout/subcomponents/SizeProvider/{index.1108dd01.js → index.6ebe8790.js} +1 -1
- package/components/HelperText/{index.b1961313.js → index.e9eddfe4.js} +2 -2
- package/components/Icon/{index.e06c693f.js → index.2b591dd6.js} +3 -3
- package/components/Image/{index.8a3d05d3.js → index.fb9e71ba.js} +2 -2
- package/components/LanguagePopover/{index.25266514.js → index.f495b317.js} +4 -4
- package/components/LinearProgressIndeterminate/{index.80f8b74d.js → index.8a0b3615.js} +1 -1
- package/components/LoadingError/{index.81979bb3.js → index.2675dde0.js} +5 -5
- package/components/MFIsolationApp/{index.3125cd12.js → index.359ce9ec.js} +2 -2
- package/components/MFLoader/{index.952a3fee.js → index.49a6bd2c.js} +2 -2
- package/components/ModalDialog/{index.0dba90d3.js → index.3571068b.js} +3 -3
- package/components/NavLink/{index.0c844a30.js → index.82f5f2f4.js} +2 -2
- package/components/NoItemSelected/{index.dd2cee48.js → index.437fb106.js} +1 -1
- package/components/ObjectLogs/{index.f98e884b.js → index.5d260f34.js} +9 -9
- package/components/PDFViewer/{index.1b7068e5.js → index.9f1d12c4.js} +2 -2
- package/components/Page/{index.fa45b3d5.js → index.4e1e1b9b.js} +1 -1
- package/components/PaperForm/{index.f1467e34.js → index.d6293e64.js} +2 -2
- package/components/Period/{index.732248a8.js → index.f0095a0a.js} +4 -4
- package/components/PrintingSystem/{index.7aed44a2.js → index.88fbf9ec.js} +13 -13
- package/components/PrintingSystem/subcomponents/BodyNode/{index.3e82f72e.js → index.79cb87c7.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.8d4e4894.js → index.a5d910d6.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.f9343c1f.js → index.350c25de.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.1cdf54cf.js → index.8c2f7536.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.32a2e08a.js → index.b02b56db.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.715f4e49.js → index.462d6322.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.92df744d.js → index.a5e25147.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.4316a07a.js → index.430bd242.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.21b9d770.js → index.d76d27d3.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.03e73c9d.js → index.2dcd8991.js} +1 -1
- package/components/PropertyValue/{index.f85c4118.js → index.5d847b88.js} +3 -3
- package/components/Resizeable/{index.305dae8c.js → index.f22bccb6.js} +1 -1
- package/components/ScrollBar/{index.9c677335.js → index.3f1ca3da.js} +1 -1
- package/components/SideBar/{index.d33d87f4.js → index.f15b9904.js} +5 -5
- package/components/SplitLayout/{index.a5414b61.js → index.4b247e0c.js} +1 -1
- package/components/ToastContainer/{index.ce752150.js → index.dec47e74.js} +2 -2
- package/components/animate/LoadingScreen/{index.881ca784.js → index.db36f970.js} +1 -1
- package/components/animate/{index.d6f073fe.js → index.14aa2d3c.js} +1 -1
- package/components/areas/components/AreasAdmin/{index.80da2678.js → index.55c40f0c.js} +14 -14
- package/components/areas/components/AreasViewer/{index.7836a623.js → index.8a568629.js} +13 -13
- package/components/areas/contexts/AreasContext/{index.c4e41ac3.js → index.c677ccfa.js} +4 -4
- package/components/areas/hooks/useAreas/{index.cf3f35fa.js → index.2d10f64c.js} +1 -1
- package/components/commercial/AppBarCommercial/{index.00571293.js → index.85de55bb.js} +1 -1
- package/components/commercial/SectionCommercial/{index.c3f56cb3.js → index.47c0cb0c.js} +1 -1
- package/components/commercial/TopBar/{index.56ade547.js → index.ec7a6cc6.js} +5 -5
- package/components/commercial/{index.788464b6.js → index.90e72726.js} +3 -3
- package/components/formatters/BooleanFormatter/{index.6f664715.js → index.5243a181.js} +2 -2
- package/components/formatters/{index.d1846e98.js → index.1b738709.js} +2 -2
- package/components/hook-form/HelperError/{index.a0faefe4.js → index.c6f8f840.js} +1 -1
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -2
- package/components/hook-form/RHFAutocomplete/classes/types.d.ts +0 -1
- package/components/hook-form/RHFAutocomplete/{index.dab5e2d6.js → index.c8bcfed8.js} +302 -70
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeText/index.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/types.d.ts +17 -9
- package/components/hook-form/RHFAutocompleteAsync/{index.a61e7dda.js → index.2b2ff592.js} +102 -5
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeImage/index.d.ts +3 -0
- package/components/hook-form/RHFAutocompleteAsync/subcomponents/ComponentTypeText/index.d.ts +2 -0
- package/components/hook-form/RHFAutocompleteAsync/types.d.ts +6 -3
- package/components/hook-form/RHFCheckbox/{index.71751a9d.js → index.06c0b776.js} +3 -3
- package/components/hook-form/RHFColorPicker/{index.3a8f36b1.js → index.f606dce6.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.2f4ce21c.js → index.fb4867fa.js} +4 -4
- package/components/hook-form/RHFPeriod/{index.acf46fb2.js → index.75e07583.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.a0a28a48.js +52 -0
- package/components/hook-form/RHFRadioGroup/types.d.ts +10 -4
- package/components/hook-form/RHFTextField/{index.06342648.js → index.257c6486.js} +4 -4
- package/components/hook-form/RHFUpload/{index.ef58c607.js → index.a6954d0d.js} +5 -5
- package/components/maps/components/GpsTools/{index.3cc627c5.js → index.30fe41d1.js} +28 -25
- package/components/maps/components/Map/external/Control/index.d.ts +1 -1
- package/components/maps/components/Map/{index.c50fc538.js → index.14f082d4.js} +30 -26
- package/components/modal/{WindowBase.af49e2e8.js → WindowBase.0dc3b3ea.js} +3 -3
- package/components/modal/{WindowConfirm.141e19a9.js → WindowConfirm.b8a431dd.js} +6 -6
- package/components/mui_extended/Accordion/{index.e76a8701.js → index.bb0cd2ab.js} +4 -4
- package/components/mui_extended/Avatar/{index.fc674f4b.js → index.bcf4d669.js} +1 -1
- package/components/mui_extended/Badge/{index.615959af.js → index.89ca5b23.js} +1 -1
- package/components/mui_extended/Button/{index.a391ee9f.js → index.24b9496b.js} +3 -3
- package/components/mui_extended/{CheckBox.ae30825c.js → CheckBox.4d930bed.js} +2 -2
- package/components/mui_extended/IconButton/{index.97e91dae.js → index.f5dcf537.js} +2 -2
- package/components/mui_extended/MenuActions/{index.1092605e.js → index.540d82fd.js} +5 -5
- package/components/mui_extended/Pager/classes/index.d.ts +1 -1
- package/components/mui_extended/Pager/{index.4d510ef5.js → index.f3a6c94b.js} +4 -4
- package/components/mui_extended/Popover/{index.82970357.js → index.6d8fe229.js} +1 -1
- package/components/mui_extended/Stack/{index.e64a379b.js → index.9d6ed8c2.js} +1 -1
- package/components/mui_extended/Tab/{index.f31eb904.js → index.0941bb3a.js} +1 -1
- package/components/mui_extended/ToggleButton/{index.4afacb33.js → index.d45c7a60.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.621ff8bc.js → index.c51670d1.js} +1 -1
- package/components/mui_extended/Typography/{index.8a0f958b.js → index.dbc44e77.js} +1 -1
- package/components/popups/PopupsProvider/{index.6591c56e.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.caf23a5d.js → index.6a175b73.js} +43 -78
- package/components/popups/PopupsViewer/slots/index.154e4e5f.js +14 -0
- package/components/popups/PopupsViewer/slots/popupsViewerSlots.be9219c7.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.8281527d.js → index.26017754.js} +1 -1
- package/contexts/RHFormContext/{index.939811b3.js → index.54d30cb2.js} +1 -1
- package/hooks/useFormAddEdit/{index.dfb5570d.js → index.bd4ae2a5.js} +2 -2
- package/hooks/useModal/{index.538e8219.js → index.d3c18b29.js} +1 -1
- package/hooks/useTab/{index.bc8d38fc.js → index.da9b5a24.js} +1 -1
- package/index.js +123 -119
- package/package.json +1 -1
- package/styles/PopupViewer.styles.d.ts +2 -0
- package/styles/{index.7868464e.js → index.d972f170.js} +101 -11
- 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/@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.bcf4d669.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.6d8fe229.js";
|
|
10
|
+
import { I as Icon } from "../Icon/index.2b591dd6.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.d972f170.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.fb9e71ba.js";
|
|
9
|
+
import { T as Typography } from "../mui_extended/Typography/index.dbc44e77.js";
|
|
10
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.f5dcf537.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.26017754.js";
|
|
5
5
|
function BaseModule(props) {
|
|
6
6
|
const {
|
|
7
7
|
children,
|
package/components/CommonActions/components/ActionCancel/{index.c3cddacf.js → index.ce196f96.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.24b9496b.js";
|
|
4
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.434f4824.js";
|
|
5
5
|
const ActionCancel = (props) => {
|
|
6
6
|
const { getLabel } = useModuleDictionary();
|
|
7
7
|
const classes = useCommonActionsUtilityClasses();
|
package/components/CommonActions/components/ActionFormCancel/{index.3ec840af.js → index.d63f6a23.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.24b9496b.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.d3c18b29.js";
|
|
7
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.434f4824.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.b8a431dd.js";
|
|
10
10
|
function ActionFormCancel() {
|
|
11
11
|
const { getLabel } = useModuleDictionary();
|
|
12
12
|
const { openModal } = useModal();
|
package/components/CommonActions/components/ActionFormIntro/{index.3187e7a7.js → index.0daa98b8.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.24b9496b.js";
|
|
6
|
+
import { u as useCommonActionsUtilityClasses } from "../Actions/index.434f4824.js";
|
|
7
7
|
function ActionFormIntro(props) {
|
|
8
8
|
const { getLabel } = useModuleDictionary();
|
|
9
9
|
const isSkeleton = useModuleSkeleton();
|
package/components/CommonActions/components/ActionIntro/{index.db2b2999.js → index.1c40d33b.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.24b9496b.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.434f4824.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 { W as WrapperStandarActions } from "../../../../styles/index.
|
|
8
|
+
import { W as WrapperStandarActions } from "../../../../styles/index.d972f170.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.5243a181.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.1b738709.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.d538cef8.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.d538cef8.js";
|
|
3
|
+
import { I as Icon } from "../../Icon/index.2b591dd6.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.3571068b.js";
|
|
2
|
+
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.f3a6c94b.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.d972f170.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.8d2e96e7.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.540d82fd.js";
|
|
3
|
+
import { u as useDataGrid, a as useFilters, b as dictionary } from "../../index.d538cef8.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.f3a6c94b.js";
|
|
7
|
+
import { I as IconButton } from "../../../mui_extended/IconButton/index.f5dcf537.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.d972f170.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.37f4f359.js";
|
|
14
|
+
import { u as useModal } from "../../../../hooks/useModal/index.d3c18b29.js";
|
|
15
|
+
import { W as WindowBase } from "../../../modal/WindowBase.0dc3b3ea.js";
|
|
16
|
+
import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.434f4824.js";
|
|
17
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.ce196f96.js";
|
|
18
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.1c40d33b.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>;
|
|
@@ -3,7 +3,7 @@ import React__default, { forwardRef, useState, useRef, useCallback, useEffect, u
|
|
|
3
3
|
import { D as DraggableCore_1 } from "../../react-draggable.1c1ba224.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.14f082d4.js";
|
|
7
7
|
import "@mui/base";
|
|
8
8
|
import { R as Resizable } from "../../react-resizable.a59c14f4.js";
|
|
9
9
|
const WrapperDragResizeWindowRoot = styled("div")`
|
|
@@ -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.434f4824.js";
|
|
2
|
+
import { g as getRHFAutocompleteComponentsDictionary } from "../hook-form/RHFAutocomplete/index.c8bcfed8.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.de33ba0a.js";
|
|
2
|
+
import { f as filterValidOperandsArraySelect } from "./subcomponents/FieldTypes/SelectFilter/index.d628de04.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.3733c18e.js";
|
|
6
|
+
import { D as DynamicFilterBase } from "./subcomponents/DynamicFilterBase/index.bbc1b1c0.js";
|
|
7
7
|
function getPurgedInitialFiltersApplied(fields, initialFilters, getFieldByName) {
|
|
8
8
|
const newFilters = [];
|
|
9
9
|
const fixedFields = [];
|
|
@@ -3,11 +3,11 @@ import { D as DYNAMIC_FILTER_KEY_COMPONENT } from "../constants.095f1dbb.js";
|
|
|
3
3
|
import { D as DynamicFilterSlots } from "./SlotsEnum.104a03d4.js";
|
|
4
4
|
import { d as dynamicFilterStyles } from "../../../styles/DynamicFilter.27c16026.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.434f4824.js";
|
|
7
|
+
import { I as Icon } from "../../Icon/index.2b591dd6.js";
|
|
8
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index.f5dcf537.js";
|
|
9
|
+
import { P as Popover } from "../../mui_extended/Popover/index.6d8fe229.js";
|
|
10
|
+
import { T as Typography } from "../../mui_extended/Typography/index.dbc44e77.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.a7e772f7.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.3733c18e.js";
|
|
6
|
+
import { f as fieldFactory } from "../FieldTypes/index.de33ba0a.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.1e2dc145.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.3f1ca3da.js";
|
|
3
|
+
import { u as useDynamicFilterStore } from "../../store/index.3733c18e.js";
|
|
4
|
+
import { g as AppliedFiltersStyled, h as AppliedFilterInnerContainerStyled } from "../../slots/dynamicFilterSlots.1e2dc145.js";
|
|
5
|
+
import { A as AppliedFilterChip } from "../AppliedFilterChip/index.5b952ba7.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.3733c18e.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.1e2dc145.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.1b95c167.js";
|
|
7
|
+
import { A as AppliedFilters } from "../AppliedFilters/index.e38ed08e.js";
|
|
8
|
+
import { F as FilterActions } from "../FilterActions/index.c8c90968.js";
|
|
9
|
+
import { P as PopoverFilter } from "../PopoverFilter/index.fd8a2421.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.f471309f.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.c8bcfed8.js";
|
|
8
8
|
function BooleanFilter() {
|
|
9
9
|
const { getLabel } = useModuleDictionary();
|
|
10
10
|
const operators = useMemo(
|
|
@@ -31,6 +31,7 @@ function BooleanFilter() {
|
|
|
31
31
|
/* @__PURE__ */ jsx(
|
|
32
32
|
RHFAutocomplete,
|
|
33
33
|
{
|
|
34
|
+
type: "text",
|
|
34
35
|
name: "formValueOperator",
|
|
35
36
|
autoComplete: "off",
|
|
36
37
|
options: operators,
|
|
@@ -42,6 +43,7 @@ function BooleanFilter() {
|
|
|
42
43
|
/* @__PURE__ */ jsx(
|
|
43
44
|
RHFAutocomplete,
|
|
44
45
|
{
|
|
46
|
+
type: "text",
|
|
45
47
|
name: "formValueOperand1",
|
|
46
48
|
autoComplete: "off",
|
|
47
49
|
options: optionsYesNo,
|
|
@@ -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.f471309f.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.c8bcfed8.js";
|
|
9
|
+
import { R as RHFDateTime } from "../../../../hook-form/RHFDateTime/index.fb4867fa.js";
|
|
10
10
|
import { i as isValidDate } from "../../../../../utils/index.14912462.js";
|
|
11
11
|
function DateTimeFilter() {
|
|
12
12
|
const { getLabel } = useModuleDictionary();
|
|
@@ -26,6 +26,7 @@ function DateTimeFilter() {
|
|
|
26
26
|
/* @__PURE__ */ jsx(
|
|
27
27
|
RHFAutocomplete,
|
|
28
28
|
{
|
|
29
|
+
type: "text",
|
|
29
30
|
name: "formValueOperator",
|
|
30
31
|
autoComplete: "off",
|
|
31
32
|
options: operators,
|
|
@@ -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.f471309f.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.c8bcfed8.js";
|
|
9
|
+
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.257c6486.js";
|
|
10
10
|
function NumberFilter() {
|
|
11
11
|
const { getLabel } = useModuleDictionary();
|
|
12
12
|
const { control } = useFormContext();
|
|
@@ -25,6 +25,7 @@ function NumberFilter() {
|
|
|
25
25
|
/* @__PURE__ */ jsx(
|
|
26
26
|
RHFAutocomplete,
|
|
27
27
|
{
|
|
28
|
+
type: "text",
|
|
28
29
|
name: "formValueOperator",
|
|
29
30
|
autoComplete: "off",
|
|
30
31
|
options: operators,
|