@m4l/components 0.1.41 → 0.1.44
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/types.d.ts +117 -0
- package/components/CmpDisenoTest/index.d.ts +4 -0
- package/components/CmpDisenoTest/types.d.ts +20 -0
- package/components/CommonActions/components/ActionCancel/{index.9230c57b.js → index.a81752ef.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.ab514bd9.js → index.82569769.js} +25 -9
- package/components/CommonActions/components/ActionIntro/{index.a0a341c7.js → index.d567aebb.js} +1 -1
- package/components/CommonActions/components/Actions/{index.d3e1f36e.js → index.c8754d33.js} +19 -8
- package/components/DataGrid/formatters/columnConcatenatedValueFormatter/index.d.ts +3 -0
- package/components/DataGrid/formatters/columnConcatenatedValueFormatter/types.d.ts +6 -0
- package/components/DataGrid/formatters/index.d.ts +1 -0
- package/components/DataGrid/{index.67260455.js → index.fd736623.js} +42 -15
- package/components/DynamicFilter/contexts/BaseContext/types.d.ts +3 -0
- package/components/DynamicFilter/{index.071aa795.js → index.4c43cc99.js} +208 -110
- package/components/DynamicFilter/index.d.ts +4 -1
- package/components/DynamicFilter/styles.d.ts +4 -6
- package/components/DynamicFilter/subcomponents/PopupEditFilter/styles.d.ts +7 -0
- package/components/DynamicFilter/types.d.ts +4 -0
- package/components/DynamicFilter/utils/Clases/index.d.ts +20 -0
- package/components/DynamicFilter/utils/Clases/types.d.ts +17 -0
- package/components/ErrorLabel/index.73f9362c.js +65 -0
- package/components/ErrorLabel/index.d.ts +8 -1
- package/components/ErrorLabel/styles.d.ts +1 -1
- package/components/ErrorLabel/types.d.ts +2 -1
- package/components/ErrorLabel/utils/Clases/index.d.ts +6 -0
- package/components/ErrorLabel/utils/Clases/types.d.ts +3 -0
- package/components/Icon/Icon.d.ts +8 -0
- package/components/Icon/classes/constants.d.ts +1 -0
- package/components/Icon/classes/index.d.ts +9 -0
- package/components/Icon/classes/types.d.ts +17 -0
- package/components/Icon/index.d.ts +2 -3
- package/components/Icon/{index.8d754623.js → index.f6e8d810.js} +58 -11
- package/components/Icon/styles.d.ts +1 -1
- package/components/Icon/types.d.ts +5 -0
- package/components/Image/Image.d.ts +9 -0
- package/components/Image/{index.93d5f37f.js → index.aa24e982.js} +107 -43
- package/components/Image/index.d.ts +2 -4
- package/components/Image/styles.d.ts +2 -2
- package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +5 -0
- package/components/Image/subcomponents/LazyLoadComponent/styles.d.ts +2 -0
- package/components/Image/types.d.ts +17 -1
- package/components/Image/utils/classes/constant.d.ts +1 -0
- package/components/Image/utils/classes/index.d.ts +12 -0
- package/components/Image/utils/classes/types.d.ts +9 -0
- package/components/LanguagePopover/LanguagePopover.d.ts +8 -0
- package/components/LanguagePopover/classes/constants.d.ts +1 -0
- package/components/LanguagePopover/classes/index.d.ts +9 -0
- package/components/LanguagePopover/classes/types.d.ts +7 -0
- package/components/LanguagePopover/{index.cbc4b282.js → index.26b694ef.js} +57 -16
- package/components/LanguagePopover/index.d.ts +2 -2
- package/components/LanguagePopover/styles.d.ts +1 -0
- package/components/LanguagePopover/types.d.ts +9 -0
- package/components/ModalDialog/{index.a684827f.js → index.d605b574.js} +5 -5
- package/components/NoItemSelected/{index.46d2f632.js → index.9636ec8a.js} +1 -1
- package/components/NoItemSelected/styles.d.ts +1 -1
- package/components/ObjectLogs/{index.4a859658.js → index.91d29e9e.js} +22 -11
- package/components/PaperForm/{index.c5948756.js → index.0114aa9b.js} +1 -1
- package/components/Period/{index.abe445bd.js → index.c439d1ed.js} +20 -9
- package/components/Resizeable/{index.c96c0f09.js → index.8a442a8b.js} +1 -1
- package/components/areas/components/Area/types.d.ts +24 -12
- package/components/areas/components/AreasAdmin/{index.6794b22f.js → index.7a526b73.js} +24 -15
- package/components/areas/components/AreasContainer/{index.a2f8899b.js → index.ca690110.js} +9 -10
- package/components/areas/components/GridLayout/{index.b9c1e846.js → index.4fb84fff.js} +28 -18
- package/components/areas/components/Window/{index.252fbf4e.js → index.76143c30.js} +105 -85
- package/components/areas/components/Window/styles.d.ts +5 -2
- package/components/areas/components/Window/subcomponents/InnerForHooks/index.d.ts +4 -0
- package/components/areas/components/Window/subcomponents/InnerForHooks/styles.d.ts +2 -0
- package/components/areas/components/Window/subcomponents/{Component → InnerForHooks/subcomponents/Component}/index.d.ts +4 -3
- package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/index.d.ts +1 -1
- package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/index.d.ts +1 -1
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/types.d.ts +8 -0
- package/components/areas/components/WindowPopUp/index.33bc0a5a.js +117 -0
- package/components/areas/components/WindowPopUp/index.d.ts +2 -1
- package/components/areas/components/{index.7d6cd649.js → index.4b828081.js} +18 -13
- package/components/areas/components/index.d.ts +2 -1
- package/components/areas/contexts/AreaContext/helper.d.ts +12 -0
- package/components/areas/contexts/AreaContext/index.d.ts +2 -2
- package/components/areas/contexts/AreaContext/index.ec85aee7.js +392 -0
- package/components/areas/contexts/AreaContext/store.d.ts +49 -0
- package/components/areas/contexts/AreaContext/types.d.ts +8 -16
- package/components/areas/contexts/AreasContext/index.d.ts +10 -2
- package/components/areas/contexts/AreasContext/index.e65fd347.js +204 -0
- package/components/areas/contexts/AreasContext/store.d.ts +38 -0
- package/components/areas/contexts/AreasContext/types.d.ts +1 -13
- package/components/areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js +43 -0
- package/components/areas/contexts/DynamicMFParmsContext/index.d.ts +13 -4
- package/components/areas/contexts/DynamicMFParmsContext/store.d.ts +20 -0
- package/components/areas/contexts/DynamicMFParmsContext/types.d.ts +4 -16
- package/components/areas/contexts/WindowContext/helper.d.ts +1 -0
- package/components/areas/contexts/WindowContext/index.d.ts +13 -0
- package/components/areas/contexts/WindowContext/store.d.ts +31 -0
- package/components/areas/contexts/WindowContext/types.d.ts +5 -0
- package/components/areas/contexts/WindowToolsMFContext/index.d.ts +6 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +21 -0
- package/components/areas/contexts/index.137257b8.js +203 -0
- package/components/areas/contexts/index.d.ts +4 -1
- package/components/areas/hooks/index.b8c93059.js +27 -0
- package/components/areas/hooks/index.d.ts +2 -0
- package/components/areas/hooks/useArea/index.89306f6a.js +20 -0
- package/components/areas/hooks/useArea/index.d.ts +2 -0
- package/components/areas/hooks/useAreas/index.d.ts +11 -1
- package/components/areas/hooks/useDynamicMFParameters/index.041a666b.js +14 -0
- package/components/areas/hooks/useDynamicMFParameters/index.d.ts +11 -1
- package/components/areas/hooks/useWindow/index.d.ts +11 -0
- package/components/areas/hooks/useWindowToolsMF/index.d.ts +1 -0
- package/components/areas/index.a2586fb3.js +21 -0
- package/components/areas/index.d.ts +1 -0
- package/components/formatters/BooleanFormatter/{index.3a9b16c8.js → index.b3fb8a75.js} +1 -1
- package/components/formatters/ConcatenatedFormatter/index.d.ts +8 -0
- package/components/formatters/ConcatenatedFormatter/types.d.ts +11 -0
- package/components/formatters/PeriodFormatter/index.d.ts +8 -0
- package/components/formatters/PeriodFormatter/types.d.ts +13 -0
- package/components/formatters/dictionary.d.ts +9 -0
- package/components/formatters/index.0368bab3.js +127 -0
- package/components/formatters/index.d.ts +2 -0
- package/components/hook-form/RHFAutocomplete/{index.de93fe01.js → index.74add0d0.js} +1 -1
- package/components/hook-form/RHFAutocompleteAsync/{index.ca696cce.js → index.0aa3c224.js} +1 -1
- package/components/hook-form/RHFCheckbox/RHFCheckbox.d.ts +8 -0
- package/components/hook-form/RHFCheckbox/classes/index.d.ts +7 -0
- package/components/hook-form/RHFCheckbox/classes/types.d.ts +5 -0
- package/components/hook-form/RHFCheckbox/index.ebfe1e3c.js +110 -0
- package/components/hook-form/RHFCheckbox/styles.d.ts +14 -0
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/index.d.ts +2 -1
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/types.d.ts +3 -0
- package/components/hook-form/RHFPeriod/{index.3772295b.js → index.3c5e5fb7.js} +2 -2
- package/components/hook-form/RHFTextField/RHFTextField.d.ts +8 -0
- package/components/hook-form/RHFTextField/classes/constants.d.ts +1 -0
- package/components/hook-form/RHFTextField/classes/index.d.ts +7 -0
- package/components/hook-form/RHFTextField/classes/types.d.ts +10 -0
- package/components/hook-form/RHFTextField/index.57f138f7.js +219 -0
- package/components/hook-form/RHFTextField/index.d.ts +2 -3
- package/components/hook-form/RHFTextField/styles.d.ts +3 -0
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +6 -1
- package/components/hook-form/RHFTextField/types.d.ts +0 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts +9 -0
- package/components/hook-form/RHFTextFieldPassword/classes/index.d.ts +6 -0
- package/components/hook-form/RHFTextFieldPassword/classes/types.d.ts +4 -0
- package/components/hook-form/RHFTextFieldPassword/index.d.ts +2 -3
- package/components/hook-form/RHFTextFieldPassword/styles.d.ts +2 -0
- package/components/hook-form/RHFUpload/{index.d5cc7c13.js → index.7fdff30f.js} +1 -1
- package/components/hook-form/index.d.ts +3 -3
- package/components/index.d.ts +3 -2
- package/components/modal/{WindowBase.04439b8e.js → WindowBase.ff74f597.js} +3 -4
- package/components/modal/{WindowConfirm.0b8a6818.js → WindowConfirm.f2cc1072.js} +22 -11
- package/components/modal/index.f62c55c7.js +29 -0
- package/components/mui_extended/Accordion/{index.a541c71c.js → index.1d513477.js} +2 -2
- package/components/mui_extended/Button/Button.d.ts +8 -0
- package/components/mui_extended/Button/classes/constants.d.ts +1 -0
- package/components/mui_extended/Button/classes/index.d.ts +7 -0
- package/components/mui_extended/Button/classes/types.d.ts +5 -0
- package/components/mui_extended/Button/index.8406ed5b.js +150 -0
- package/components/mui_extended/Button/index.d.ts +2 -3
- package/components/mui_extended/Button/styles.d.ts +13 -0
- package/components/mui_extended/IconButton/IconButton.d.ts +9 -0
- package/components/mui_extended/IconButton/classes/constants.d.ts +1 -0
- package/components/mui_extended/IconButton/classes/index.d.ts +7 -0
- package/components/mui_extended/IconButton/classes/types.d.ts +5 -0
- package/components/mui_extended/IconButton/index.1318a283.js +100 -0
- package/components/mui_extended/IconButton/index.d.ts +2 -4
- package/components/mui_extended/IconButton/styles.d.ts +2 -0
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index.d.ts +2 -1
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/types.d.ts +3 -0
- package/components/mui_extended/ImageButton/ImageButton.d.ts +6 -0
- package/components/mui_extended/ImageButton/styles.d.ts +2 -0
- package/components/mui_extended/ImageButton/types.d.ts +0 -2
- package/components/mui_extended/ImageButton/utils/Clases/constants.d.ts +1 -0
- package/components/mui_extended/ImageButton/utils/Clases/index.d.ts +6 -0
- package/components/mui_extended/ImageButton/utils/Clases/types.d.ts +3 -0
- package/components/mui_extended/MenuActions/{index.ee17bddd.js → index.1261168c.js} +2 -2
- package/components/mui_extended/Pager/{index.74d3f5fc.js → index.80ccec47.js} +1 -1
- package/components/mui_extended/Popover/Popover.d.ts +9 -0
- package/components/mui_extended/Popover/classes/index.d.ts +8 -0
- package/components/mui_extended/Popover/classes/types.d.ts +17 -0
- package/components/mui_extended/Popover/{index.53c77d23.js → index.58c49cc0.js} +55 -13
- package/components/mui_extended/Popover/styles.d.ts +1 -0
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +3 -0
- package/components/mui_extended/Popover/types.d.ts +1 -1
- package/components/mui_extended/Typography/index.be3a279a.js +63 -0
- package/components/mui_extended/Typography/index.d.ts +3 -0
- package/components/mui_extended/Typography/styles.d.ts +2 -0
- package/components/mui_extended/Typography/utils/Clases/index.d.ts +6 -0
- package/components/mui_extended/Typography/utils/Clases/types.d.ts +3 -0
- package/components/mui_extended/index.3106c913.js +19 -0
- package/components/mui_extended/index.d.ts +5 -4
- package/contexts/ModalContext/{index.b90eec94.js → index.4442afd9.js} +1 -1
- package/contexts/RHFormContext/{index.d88e6e27.js → index.828b60ad.js} +1 -1
- package/contexts/index.d.ts +1 -1
- package/hooks/index.d.ts +0 -1
- package/hooks/useFormAddEdit/{index.d4845f1a.js → index.15de3ba8.js} +5 -0
- package/hooks/useModal/{index.d14edee3.js → index.2f5abe84.js} +1 -1
- package/index.js +165 -109
- package/package.json +12 -6
- package/{react-draggable.84d6b038.js → react-draggable.0eef011c.js} +1 -1
- package/{react-resizable.1d00271d.js → react-resizable.bb58c8fc.js} +103 -67
- package/utils/{index.899eb67b.js → index.e882b264.js} +26 -18
- package/vite-env.d.ts +2 -1
- package/components/DynamicFilter/components/PopupEditFilter/styles.d.ts +0 -6
- package/components/ErrorLabel/index.c8615f16.js +0 -20
- package/components/areas/components/Window/contexts/WindowContext/index.d.ts +0 -5
- package/components/areas/components/Window/contexts/WindowContext/types.d.ts +0 -13
- package/components/areas/components/Window/hooks/useWindow/index.d.ts +0 -1
- package/components/areas/components/WindowPopUp/index.214cf099.js +0 -120
- package/components/areas/components/WindowPopUp/styles.d.ts +0 -2
- package/components/areas/contexts/AreaContext/index.4894cf23.js +0 -286
- package/components/areas/contexts/AreasContext/index.cd8e4bee.js +0 -158
- package/components/areas/contexts/DynamicMFParmsContext/index.668bc2e2.js +0 -17
- package/components/areas/contexts/index.f9196fb2.js +0 -1
- package/components/areas/hooks/useArea/index.9b85ce24.js +0 -19
- package/components/areas/hooks/useDynamicMFParameters/index.e6a44ae3.js +0 -11
- package/components/areas/index.d1bf612c.js +0 -16
- package/components/formatters/dicctionary.d.ts +0 -3
- package/components/formatters/index.0b5f95d0.js +0 -21
- package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +0 -68
- package/components/hook-form/RHFCheckbox/index.d.ts +0 -4
- package/components/hook-form/RHFTextField/index.b17d68f4.js +0 -146
- package/components/modal/index.8387e90e.js +0 -18
- package/components/mui_extended/Button/index.86a155a2.js +0 -101
- package/components/mui_extended/IconButton/index.82f16572.js +0 -63
- package/components/mui_extended/ImageButton/index.d.ts +0 -3
- package/components/mui_extended/Popover/index.d.ts +0 -4
- package/components/mui_extended/Typography/index.e5494696.js +0 -35
- package/components/mui_extended/index.85dfadf1.js +0 -16
- /package/components/DynamicFilter/{components → subcomponents}/ApplyedFilters/components/ApplyedFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/ApplyedFilters/components/ApplyedFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/ApplyedFilters/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/ApplyedFilters/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/ClearFilters/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/ClearFilters/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/FilterButton/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/FilterButton/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/InputFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/InputFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/PopupEditFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/BooleanFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/BooleanFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/DateTimeFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/DateTimeFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/NumberFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/NumberFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/StringFilter/index.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/StringFilter/styles.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/factory.d.ts +0 -0
- /package/components/DynamicFilter/{components → subcomponents}/fieldstypes/validations.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{Header → InnerForHooks/subcomponents/Header}/index.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{Header → InnerForHooks/subcomponents/Header}/skeleton.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{Header → InnerForHooks/subcomponents/Header}/styles.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/styles.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/styles.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/types.d.ts +0 -0
- /package/components/areas/components/Window/subcomponents/{MicroFrontend → InnerForHooks/subcomponents/MicroFrontend}/subcomponents/MFLoader/subcomponents/LoadingMF/types.d.ts +0 -0
|
@@ -4,40 +4,58 @@ import { useRef, useState, useMemo, useCallback, useEffect, createContext, useCo
|
|
|
4
4
|
import { useModuleDictionary, voidFunction, useEnvironment, useHostTools, useFlagsPresent } from "@m4l/core";
|
|
5
5
|
import * as Yup from "yup";
|
|
6
6
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
7
|
-
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
7
|
+
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.74add0d0.js";
|
|
8
8
|
import "lodash/debounce";
|
|
9
9
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
10
|
-
import "
|
|
11
|
-
import
|
|
10
|
+
import { generateUtilityClasses, generateUtilityClass, alpha, unstable_composeClasses as unstable_composeClasses$1, styled as styled$1, Skeleton, MenuItem, Popover as Popover$1, Popper, ClickAwayListener } from "@mui/material";
|
|
11
|
+
import "../hook-form/RHFCheckbox/index.ebfe1e3c.js";
|
|
12
|
+
import { I as Icon } from "../Icon/index.f6e8d810.js";
|
|
13
|
+
import { I as IconButton } from "../mui_extended/IconButton/index.1318a283.js";
|
|
14
|
+
import "../mui_extended/Accordion/index.1d513477.js";
|
|
15
|
+
import "../mui_extended/Avatar/index.fe06afd7.js";
|
|
16
|
+
import "react-router-dom";
|
|
17
|
+
import "@mui/material/Button";
|
|
18
|
+
import "../mui_extended/Button/index.8406ed5b.js";
|
|
19
|
+
import "../Image/index.aa24e982.js";
|
|
20
|
+
import "@mui/lab";
|
|
21
|
+
import { P as Popover } from "../mui_extended/Popover/index.58c49cc0.js";
|
|
22
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.1261168c.js";
|
|
23
|
+
import "../mui_extended/Pager/index.80ccec47.js";
|
|
24
|
+
import "../mui_extended/Tab/index.e0653a0a.js";
|
|
25
|
+
import "../mui_extended/Typography/index.be3a279a.js";
|
|
26
|
+
import "../ErrorLabel/index.73f9362c.js";
|
|
12
27
|
import "@mui/x-date-pickers";
|
|
13
28
|
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.7f1cbd85.js";
|
|
14
29
|
import { useFormatter, useResponsiveDesktop } from "@m4l/graphics";
|
|
15
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
16
|
-
import
|
|
17
|
-
import "../
|
|
18
|
-
import "../
|
|
19
|
-
import "
|
|
20
|
-
import
|
|
21
|
-
import "
|
|
22
|
-
import "
|
|
23
|
-
import "
|
|
24
|
-
import "../
|
|
25
|
-
import "../
|
|
26
|
-
import "../areas/
|
|
27
|
-
import "
|
|
28
|
-
import "../
|
|
29
|
-
import "
|
|
30
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.57f138f7.js";
|
|
31
|
+
import "../hook-form/RHFPeriod/index.3c5e5fb7.js";
|
|
32
|
+
import "../Period/index.c439d1ed.js";
|
|
33
|
+
import { A as Actions, g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.c8754d33.js";
|
|
34
|
+
import "../../contexts/ModalContext/index.4442afd9.js";
|
|
35
|
+
import "../../react-draggable.0eef011c.js";
|
|
36
|
+
import "../ModalDialog/index.d605b574.js";
|
|
37
|
+
import "../Resizeable/index.8a442a8b.js";
|
|
38
|
+
import "../modal/WindowConfirm.f2cc1072.js";
|
|
39
|
+
import "../modal/WindowBase.ff74f597.js";
|
|
40
|
+
import "../areas/components/index.4b828081.js";
|
|
41
|
+
import "../areas/components/AreasAdmin/index.7a526b73.js";
|
|
42
|
+
import "zustand";
|
|
43
|
+
import "../areas/contexts/AreasContext/index.e65fd347.js";
|
|
44
|
+
import "zustand/shallow";
|
|
45
|
+
import "../areas/components/AreasContainer/index.ca690110.js";
|
|
46
|
+
import "react-grid-layout/css/styles.css";
|
|
47
|
+
import "../../react-resizable.bb58c8fc.js";
|
|
48
|
+
import "../areas/contexts/index.137257b8.js";
|
|
49
|
+
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
30
50
|
import "lodash/isString";
|
|
31
51
|
import "react-dropzone";
|
|
32
|
-
import "../
|
|
33
|
-
import "
|
|
34
|
-
import
|
|
52
|
+
import "../hook-form/RHFUpload/index.7fdff30f.js";
|
|
53
|
+
import { unstable_composeClasses } from "@mui/base";
|
|
54
|
+
import clsx from "clsx";
|
|
35
55
|
import "simplebar/dist/simplebar.min.css";
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.9230c57b.js";
|
|
40
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.a0a341c7.js";
|
|
56
|
+
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.828b60ad.js";
|
|
57
|
+
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.a81752ef.js";
|
|
58
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.d567aebb.js";
|
|
41
59
|
const WrapperApplyedFilters = styled("div")(({
|
|
42
60
|
theme
|
|
43
61
|
}) => ({
|
|
@@ -119,7 +137,8 @@ function StringFilter() {
|
|
|
119
137
|
},
|
|
120
138
|
setPoupEditValidationSchema,
|
|
121
139
|
setFnTransformFormValuesIntoValues: setTransformFunctionFormValuesToValues,
|
|
122
|
-
getLabelOperator
|
|
140
|
+
getLabelOperator,
|
|
141
|
+
classes
|
|
123
142
|
} = useBase();
|
|
124
143
|
const {
|
|
125
144
|
getLabel
|
|
@@ -168,6 +187,7 @@ function StringFilter() {
|
|
|
168
187
|
inputRef.current?.focus();
|
|
169
188
|
}, [isLoaded]);
|
|
170
189
|
return /* @__PURE__ */ jsx(WrapperStringFilter$1, {
|
|
190
|
+
className: classes.stringFilter,
|
|
171
191
|
children: isLoaded && /* @__PURE__ */ jsxs(Fragment, {
|
|
172
192
|
children: [/* @__PURE__ */ jsx(WrapperAutoComplete$3, {
|
|
173
193
|
children: /* @__PURE__ */ jsx(RHFAutocomplete, {
|
|
@@ -226,7 +246,8 @@ function BooleanFilter() {
|
|
|
226
246
|
const {
|
|
227
247
|
setPoupEditValidationSchema,
|
|
228
248
|
setFnTransformFormValuesIntoValues: setTransformFunctionFormValuesToValues,
|
|
229
|
-
getLabelOperator
|
|
249
|
+
getLabelOperator,
|
|
250
|
+
classes
|
|
230
251
|
} = useBase();
|
|
231
252
|
const {
|
|
232
253
|
getLabel
|
|
@@ -287,7 +308,7 @@ function BooleanFilter() {
|
|
|
287
308
|
setIsLoaded(true);
|
|
288
309
|
}, [getLabel]);
|
|
289
310
|
return /* @__PURE__ */ jsx(WrapperAllFieldsFilter$1, {
|
|
290
|
-
|
|
311
|
+
className: classes.booleanFilter,
|
|
291
312
|
children: isLoaded && /* @__PURE__ */ jsxs(Fragment, {
|
|
292
313
|
children: [/* @__PURE__ */ jsx(WrapperAutoComplete$2, {
|
|
293
314
|
children: /* @__PURE__ */ jsx(RHFAutocomplete, {
|
|
@@ -444,7 +465,8 @@ function DateTimeFilter() {
|
|
|
444
465
|
popupData: {
|
|
445
466
|
filter,
|
|
446
467
|
field
|
|
447
|
-
}
|
|
468
|
+
},
|
|
469
|
+
classes
|
|
448
470
|
} = useBase();
|
|
449
471
|
const {
|
|
450
472
|
control,
|
|
@@ -506,6 +528,7 @@ function DateTimeFilter() {
|
|
|
506
528
|
setIsLoaded(true);
|
|
507
529
|
}, [getLabel, filter, field]);
|
|
508
530
|
return /* @__PURE__ */ jsx(WrapperAllFieldsFilter, {
|
|
531
|
+
className: classes.dateTimeFilter,
|
|
509
532
|
children: isLoaded && /* @__PURE__ */ jsxs(Fragment, {
|
|
510
533
|
children: [/* @__PURE__ */ jsx(WrapperAutoComplete$1, {
|
|
511
534
|
children: /* @__PURE__ */ jsx(RHFAutocomplete, {
|
|
@@ -576,7 +599,8 @@ function NumberFilter() {
|
|
|
576
599
|
},
|
|
577
600
|
setPoupEditValidationSchema,
|
|
578
601
|
setFnTransformFormValuesIntoValues: setTransformFunctionFormValuesToValues,
|
|
579
|
-
getLabelOperator
|
|
602
|
+
getLabelOperator,
|
|
603
|
+
classes
|
|
580
604
|
} = useBase();
|
|
581
605
|
const {
|
|
582
606
|
getLabel
|
|
@@ -651,6 +675,7 @@ function NumberFilter() {
|
|
|
651
675
|
inputRef.current?.focus();
|
|
652
676
|
}, [isLoaded]);
|
|
653
677
|
return /* @__PURE__ */ jsx(WrapperStringFilter, {
|
|
678
|
+
className: classes.numberFilter,
|
|
654
679
|
children: isLoaded && /* @__PURE__ */ jsxs(Fragment, {
|
|
655
680
|
children: [/* @__PURE__ */ jsx(WrapperAutoComplete, {
|
|
656
681
|
children: /* @__PURE__ */ jsx(RHFAutocomplete, {
|
|
@@ -704,6 +729,48 @@ const PopupEditFilterComponent = (props) => {
|
|
|
704
729
|
const Component = strategiesEditFilterComponent[field.type] ?? strategiesEditFilterComponent.__default__;
|
|
705
730
|
return /* @__PURE__ */ jsx(Component, {});
|
|
706
731
|
};
|
|
732
|
+
const DynamicFilterClassess = generateUtilityClasses("M4LDynamicFilter", [
|
|
733
|
+
"root",
|
|
734
|
+
"containerDesktop",
|
|
735
|
+
"containerMobile",
|
|
736
|
+
"containerFistRow",
|
|
737
|
+
"containerFilterButton",
|
|
738
|
+
"inputFilter",
|
|
739
|
+
"applyedFilters",
|
|
740
|
+
"applyedFilter",
|
|
741
|
+
"PopupEditFilter",
|
|
742
|
+
"booleanFilter",
|
|
743
|
+
"dateTimeFilter",
|
|
744
|
+
"numberFilter",
|
|
745
|
+
"inEdition",
|
|
746
|
+
"filterIsDirty",
|
|
747
|
+
"noSetted"
|
|
748
|
+
]);
|
|
749
|
+
function getDynamicFiltertUtilityClass(slot) {
|
|
750
|
+
return generateUtilityClass("M4LDynamicFilter", slot);
|
|
751
|
+
}
|
|
752
|
+
const useUtilityClasses = (ownerState) => {
|
|
753
|
+
const slots = {
|
|
754
|
+
root: ["root"],
|
|
755
|
+
containerDesktop: ["containerDesktop", ownerState.inEdition && "inEdition"],
|
|
756
|
+
containerMobile: ["containerMobile", ownerState.inEdition && "inEdition"],
|
|
757
|
+
containerFistRow: ["containerFistRow"],
|
|
758
|
+
containerFilterButton: ["containerFilterButton", ownerState.isDirty && ownerState.isValid ? "filterIsDirty" : ""],
|
|
759
|
+
inputFilter: ["inputFilter"],
|
|
760
|
+
applyedFilters: ["applyedFilters"],
|
|
761
|
+
applyedFilter: ["applyedFilter"],
|
|
762
|
+
popupEditFilter: ["popupEditFilter"],
|
|
763
|
+
clearFilters: ["clearFilters"],
|
|
764
|
+
booleanFilter: ["booleanFilter"],
|
|
765
|
+
dateTimeFilter: ["dateTimeFilter"],
|
|
766
|
+
numberFilter: ["numberFilter"],
|
|
767
|
+
stringFilter: ["stringFilter"]
|
|
768
|
+
};
|
|
769
|
+
const composedClasses = unstable_composeClasses(slots, getDynamicFiltertUtilityClass, {});
|
|
770
|
+
return {
|
|
771
|
+
...composedClasses
|
|
772
|
+
};
|
|
773
|
+
};
|
|
707
774
|
const initialState = {
|
|
708
775
|
fields: [],
|
|
709
776
|
withAllField: true,
|
|
@@ -735,7 +802,9 @@ const initialState = {
|
|
|
735
802
|
setInEdition: voidFunction,
|
|
736
803
|
inEdition: false,
|
|
737
804
|
setFnTransformFormValuesIntoValues: voidFunction,
|
|
738
|
-
fnTransformFormValuesIntoRawValues: () => void 0
|
|
805
|
+
fnTransformFormValuesIntoRawValues: () => void 0,
|
|
806
|
+
ownerState: {},
|
|
807
|
+
classes: {}
|
|
739
808
|
};
|
|
740
809
|
const BaseContext = createContext(initialState);
|
|
741
810
|
const getMaxId = (applyedFilters) => {
|
|
@@ -1008,6 +1077,12 @@ function BaseProvider(props) {
|
|
|
1008
1077
|
const setFnTransformFormValuesIntoValues = useCallback((fn) => {
|
|
1009
1078
|
setInternalfnTransormFormValuesIntoRawValues(() => fn);
|
|
1010
1079
|
}, []);
|
|
1080
|
+
const ownerState = {
|
|
1081
|
+
inEdition,
|
|
1082
|
+
isDirty,
|
|
1083
|
+
isValid
|
|
1084
|
+
};
|
|
1085
|
+
const classes = useUtilityClasses(ownerState);
|
|
1011
1086
|
return /* @__PURE__ */ jsx(BaseContext.Provider, {
|
|
1012
1087
|
value: {
|
|
1013
1088
|
isSkeleton,
|
|
@@ -1037,7 +1112,9 @@ function BaseProvider(props) {
|
|
|
1037
1112
|
setInEdition,
|
|
1038
1113
|
setPoupEditValidationSchema,
|
|
1039
1114
|
fnTransformFormValuesIntoRawValues,
|
|
1040
|
-
setFnTransformFormValuesIntoValues
|
|
1115
|
+
setFnTransformFormValuesIntoValues,
|
|
1116
|
+
ownerState,
|
|
1117
|
+
classes: classes || ""
|
|
1041
1118
|
},
|
|
1042
1119
|
children
|
|
1043
1120
|
});
|
|
@@ -1057,10 +1134,7 @@ const WrapperApplyedFilter = styled("div")(({
|
|
|
1057
1134
|
border: "1px solid",
|
|
1058
1135
|
borderColor: alpha(`${theme.palette.divider}`, 0.1),
|
|
1059
1136
|
overflow: "visible",
|
|
1060
|
-
borderRadius: theme.spacing(1)
|
|
1061
|
-
"&.waf_no_setted": {
|
|
1062
|
-
border: `1px solid ${theme.palette.error.main}`
|
|
1063
|
-
}
|
|
1137
|
+
borderRadius: theme.spacing(1)
|
|
1064
1138
|
}));
|
|
1065
1139
|
const AplyedFilterStyled = styled("div")(({
|
|
1066
1140
|
theme
|
|
@@ -1106,7 +1180,8 @@ function ApplyedFilter(props) {
|
|
|
1106
1180
|
removeFilter,
|
|
1107
1181
|
showPopupForEditFilter,
|
|
1108
1182
|
hidePopupEdit,
|
|
1109
|
-
getFieldByName
|
|
1183
|
+
getFieldByName,
|
|
1184
|
+
classes
|
|
1110
1185
|
} = useBase();
|
|
1111
1186
|
const {
|
|
1112
1187
|
host_static_assets,
|
|
@@ -1134,8 +1209,9 @@ function ApplyedFilter(props) {
|
|
|
1134
1209
|
return /* @__PURE__ */ jsx(Fragment, {});
|
|
1135
1210
|
}
|
|
1136
1211
|
return /* @__PURE__ */ jsxs(WrapperApplyedFilter, {
|
|
1137
|
-
|
|
1138
|
-
|
|
1212
|
+
className: clsx(classes.applyedFilter, !isSetted && unstable_composeClasses$1({
|
|
1213
|
+
noSetted: ["noSetted"]
|
|
1214
|
+
}, getDynamicFiltertUtilityClass, {})),
|
|
1139
1215
|
children: [urlIcon && /* @__PURE__ */ jsx(IconButton, {
|
|
1140
1216
|
src: urlIcon,
|
|
1141
1217
|
onClick
|
|
@@ -1159,15 +1235,16 @@ function ApplyedFilter(props) {
|
|
|
1159
1235
|
function ApplyedFilters() {
|
|
1160
1236
|
const {
|
|
1161
1237
|
applyedFilters,
|
|
1162
|
-
isSkeleton
|
|
1238
|
+
isSkeleton,
|
|
1239
|
+
classes
|
|
1163
1240
|
} = useBase();
|
|
1164
1241
|
if (isSkeleton) {
|
|
1165
1242
|
return /* @__PURE__ */ jsx(WrapperApplyedFilters, {
|
|
1166
|
-
|
|
1243
|
+
className: classes.applyedFilters
|
|
1167
1244
|
});
|
|
1168
1245
|
}
|
|
1169
1246
|
return /* @__PURE__ */ jsx(WrapperApplyedFilters, {
|
|
1170
|
-
className:
|
|
1247
|
+
className: classes.applyedFilters,
|
|
1171
1248
|
children: /* @__PURE__ */ jsx(ScrollBar, {
|
|
1172
1249
|
children: /* @__PURE__ */ jsx(ContainerApplyedFilters, {
|
|
1173
1250
|
id: "WrapperApplyedFilters",
|
|
@@ -1201,7 +1278,8 @@ const ClearFilters = () => {
|
|
|
1201
1278
|
const {
|
|
1202
1279
|
clearFilters,
|
|
1203
1280
|
isSkeleton,
|
|
1204
|
-
applyedFilters
|
|
1281
|
+
applyedFilters,
|
|
1282
|
+
classes
|
|
1205
1283
|
} = useBase();
|
|
1206
1284
|
if (isSkeleton) {
|
|
1207
1285
|
return /* @__PURE__ */ jsx(SKTClearFilters, {
|
|
@@ -1214,6 +1292,7 @@ const ClearFilters = () => {
|
|
|
1214
1292
|
}
|
|
1215
1293
|
if (applyedFilters.findIndex((f) => f.fixed == false) > -1) {
|
|
1216
1294
|
return /* @__PURE__ */ jsx(WrapperClearFilters, {
|
|
1295
|
+
className: classes.clearFilters,
|
|
1217
1296
|
children: /* @__PURE__ */ jsx(IconButton, {
|
|
1218
1297
|
src: `${host_static_assets}/${environment_assets}/frontend/components/dynamic_filter/assets/icons/clear.svg`,
|
|
1219
1298
|
onClick: clearFilters,
|
|
@@ -1234,25 +1313,7 @@ const SKTWrapperFilterButton = styled("div")(({
|
|
|
1234
1313
|
background: alpha$1(theme.palette.primary.main, 0.3)
|
|
1235
1314
|
}));
|
|
1236
1315
|
const WrapperFilterButton = styled("div")(() => ({
|
|
1237
|
-
"
|
|
1238
|
-
animationName: "dirtyEffect",
|
|
1239
|
-
animationDuration: "1s",
|
|
1240
|
-
animationFillMode: "both",
|
|
1241
|
-
animationIterationCount: "infinite",
|
|
1242
|
-
transition: "all .3s",
|
|
1243
|
-
"@keyframes dirtyEffect": {
|
|
1244
|
-
"20%": {
|
|
1245
|
-
opacity: 1
|
|
1246
|
-
},
|
|
1247
|
-
"50%": {
|
|
1248
|
-
opacity: 0.5
|
|
1249
|
-
},
|
|
1250
|
-
"100%": {
|
|
1251
|
-
opacity: 1
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
},
|
|
1255
|
-
"&.isDirtyError": {}
|
|
1316
|
+
display: "block"
|
|
1256
1317
|
}));
|
|
1257
1318
|
function FilterButton() {
|
|
1258
1319
|
const {
|
|
@@ -1260,7 +1321,8 @@ function FilterButton() {
|
|
|
1260
1321
|
fireOnChangeFilters,
|
|
1261
1322
|
automatic,
|
|
1262
1323
|
isDirty,
|
|
1263
|
-
isValid
|
|
1324
|
+
isValid,
|
|
1325
|
+
classes
|
|
1264
1326
|
} = useBase();
|
|
1265
1327
|
const {
|
|
1266
1328
|
host_static_assets,
|
|
@@ -1286,7 +1348,7 @@ function FilterButton() {
|
|
|
1286
1348
|
}, [automatic, isValid, isDirty]);
|
|
1287
1349
|
return /* @__PURE__ */ jsx(WrapperFilterButton, {
|
|
1288
1350
|
id: "WrapperFilterButton",
|
|
1289
|
-
className:
|
|
1351
|
+
className: classes.containerFilterButton,
|
|
1290
1352
|
children: /* @__PURE__ */ jsx(IconButton, {
|
|
1291
1353
|
bgColor: color,
|
|
1292
1354
|
dictionaryTooltip: "dynamic_filter.filter_tooltip",
|
|
@@ -1320,10 +1382,8 @@ const StyledInputFilter = styled("input")(({
|
|
|
1320
1382
|
alignItems: "center",
|
|
1321
1383
|
minWidth: theme.spacing(3.75),
|
|
1322
1384
|
width: "100%",
|
|
1323
|
-
"
|
|
1324
|
-
|
|
1325
|
-
border: "none"
|
|
1326
|
-
},
|
|
1385
|
+
outline: "none",
|
|
1386
|
+
border: "none",
|
|
1327
1387
|
[theme.breakpoints.up("sm")]: {
|
|
1328
1388
|
width: "auto"
|
|
1329
1389
|
}
|
|
@@ -1338,7 +1398,8 @@ function InputFilter() {
|
|
|
1338
1398
|
openAnchorEl,
|
|
1339
1399
|
openMenuFields,
|
|
1340
1400
|
closeMenuFields,
|
|
1341
|
-
hidePopupEdit
|
|
1401
|
+
hidePopupEdit,
|
|
1402
|
+
classes
|
|
1342
1403
|
} = useBase();
|
|
1343
1404
|
const [valueFilter, setValueFilter] = useState("");
|
|
1344
1405
|
const finalFields = useMemo(() => {
|
|
@@ -1398,7 +1459,7 @@ function InputFilter() {
|
|
|
1398
1459
|
return /* @__PURE__ */ jsx(Fragment, {});
|
|
1399
1460
|
}
|
|
1400
1461
|
return /* @__PURE__ */ jsxs(WrapperInputFilter, {
|
|
1401
|
-
|
|
1462
|
+
className: classes.inputFilter,
|
|
1402
1463
|
children: [/* @__PURE__ */ jsx(StyledInputFilter, {
|
|
1403
1464
|
type: "text",
|
|
1404
1465
|
value: valueFilter,
|
|
@@ -1432,6 +1493,12 @@ function InputFilter() {
|
|
|
1432
1493
|
})]
|
|
1433
1494
|
});
|
|
1434
1495
|
}
|
|
1496
|
+
styled(Popover$1)(({
|
|
1497
|
+
theme
|
|
1498
|
+
}) => ({
|
|
1499
|
+
boxShadow: theme.customShadows.dropdown,
|
|
1500
|
+
borderRadius: 1
|
|
1501
|
+
}));
|
|
1435
1502
|
const WrapperPopupEditFilter = styled("div")(({
|
|
1436
1503
|
theme
|
|
1437
1504
|
}) => ({
|
|
@@ -1489,9 +1556,9 @@ const PopupEditFilter = () => {
|
|
|
1489
1556
|
addFilter,
|
|
1490
1557
|
updateFilter,
|
|
1491
1558
|
getLabelOperator,
|
|
1492
|
-
fnTransformFormValuesIntoRawValues
|
|
1559
|
+
fnTransformFormValuesIntoRawValues,
|
|
1560
|
+
classes
|
|
1493
1561
|
} = useBase();
|
|
1494
|
-
const theme = useTheme();
|
|
1495
1562
|
const {
|
|
1496
1563
|
getLabel
|
|
1497
1564
|
} = useModuleDictionary();
|
|
@@ -1526,13 +1593,10 @@ const PopupEditFilter = () => {
|
|
|
1526
1593
|
return /* @__PURE__ */ jsx(Popper, {
|
|
1527
1594
|
open: Boolean(popupAnchorEl),
|
|
1528
1595
|
anchorEl: popupAnchorEl,
|
|
1529
|
-
sx: {
|
|
1530
|
-
boxShadow: theme.customShadows.dropdown,
|
|
1531
|
-
borderRadius: 1
|
|
1532
|
-
},
|
|
1533
1596
|
children: /* @__PURE__ */ jsx(ClickAwayListener, {
|
|
1534
1597
|
onClickAway: onClose,
|
|
1535
1598
|
children: /* @__PURE__ */ jsx(WrapperEditFilter, {
|
|
1599
|
+
className: classes.popupEditFilter,
|
|
1536
1600
|
children: filter && /* @__PURE__ */ jsx(RHFormProvider, {
|
|
1537
1601
|
onSubmit,
|
|
1538
1602
|
values,
|
|
@@ -1557,11 +1621,49 @@ const PopupEditFilter = () => {
|
|
|
1557
1621
|
})
|
|
1558
1622
|
});
|
|
1559
1623
|
};
|
|
1560
|
-
const
|
|
1561
|
-
shouldForwardProp: (prop) => prop !== "inEdition"
|
|
1562
|
-
})(({
|
|
1624
|
+
const WrapperDynamicFilter = styled("div", {})(({
|
|
1563
1625
|
theme,
|
|
1564
|
-
|
|
1626
|
+
ownerState
|
|
1627
|
+
}) => ({
|
|
1628
|
+
[`&.${DynamicFilterClassess.root}`]: {
|
|
1629
|
+
display: "flex",
|
|
1630
|
+
width: "100%",
|
|
1631
|
+
heigth: "100%"
|
|
1632
|
+
},
|
|
1633
|
+
[`&.${DynamicFilterClassess.root} .${DynamicFilterClassess.containerDesktop},
|
|
1634
|
+
&.${DynamicFilterClassess.root} .${DynamicFilterClassess.containerMobile}`]: {
|
|
1635
|
+
border: ownerState.inEdition ? `1px solid ${theme.palette.primary.main}` : `1px solid ${theme.palette.divider}`
|
|
1636
|
+
},
|
|
1637
|
+
[`&.${DynamicFilterClassess.containerMobile} .${DynamicFilterClassess.applyedFilters}`]: {
|
|
1638
|
+
margin: "0px",
|
|
1639
|
+
padding: "0px",
|
|
1640
|
+
border: "0px"
|
|
1641
|
+
},
|
|
1642
|
+
[`&.${DynamicFilterClassess.containerFilterButton}.${DynamicFilterClassess.filterIsDirty}`]: {
|
|
1643
|
+
animationName: "dirtyEffect",
|
|
1644
|
+
animationDuration: "1s",
|
|
1645
|
+
animationFillMode: "both",
|
|
1646
|
+
animationIterationCount: "infinite",
|
|
1647
|
+
transition: "all .3s",
|
|
1648
|
+
"@keyframes dirtyEffect": {
|
|
1649
|
+
"20%": {
|
|
1650
|
+
opacity: 1
|
|
1651
|
+
},
|
|
1652
|
+
"50%": {
|
|
1653
|
+
opacity: 0.5
|
|
1654
|
+
},
|
|
1655
|
+
"100%": {
|
|
1656
|
+
opacity: 1
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
[`&.${DynamicFilterClassess.containerFilterButton} .${DynamicFilterClassess.applyedFilter}.${DynamicFilterClassess.noSetted}`]: {
|
|
1661
|
+
border: `1px solid ${theme.palette.error.main}`
|
|
1662
|
+
},
|
|
1663
|
+
...theme.components?.M4LDynamicFilter?.styleOverrides
|
|
1664
|
+
}));
|
|
1665
|
+
const ContainerFilterDesktop = styled("div", {})(({
|
|
1666
|
+
theme
|
|
1565
1667
|
}) => ({
|
|
1566
1668
|
display: "flex",
|
|
1567
1669
|
alignItems: "center",
|
|
@@ -1569,14 +1671,10 @@ const WrapperFilter = styled("div", {
|
|
|
1569
1671
|
height: "auto",
|
|
1570
1672
|
width: "100%",
|
|
1571
1673
|
padding: theme.spacing(0.5),
|
|
1572
|
-
borderRadius: theme.spacing(1)
|
|
1573
|
-
border: inEdition ? `1px solid ${theme.palette.primary.main}` : `1px solid ${theme.palette.divider}`
|
|
1674
|
+
borderRadius: theme.spacing(1)
|
|
1574
1675
|
}));
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1577
|
-
})(({
|
|
1578
|
-
theme,
|
|
1579
|
-
inEdition
|
|
1676
|
+
const ContainerFilterMobile = styled("div")(({
|
|
1677
|
+
theme
|
|
1580
1678
|
}) => ({
|
|
1581
1679
|
display: "flex",
|
|
1582
1680
|
flexDirection: "column",
|
|
@@ -1587,42 +1685,41 @@ const WrapperFilterMobile = styled("div", {
|
|
|
1587
1685
|
width: "100%",
|
|
1588
1686
|
padding: theme.spacing(0.5),
|
|
1589
1687
|
borderRadius: theme.spacing(1),
|
|
1590
|
-
|
|
1591
|
-
gap: theme.spacing(0.75),
|
|
1592
|
-
"& .WrapperApplyedFilters": {
|
|
1593
|
-
margin: "0px",
|
|
1594
|
-
padding: "0px",
|
|
1595
|
-
border: "0px"
|
|
1596
|
-
}
|
|
1688
|
+
gap: theme.spacing(0.75)
|
|
1597
1689
|
}));
|
|
1598
1690
|
const ContainerFistRow = styled("div")(() => ({
|
|
1599
1691
|
width: "100%",
|
|
1600
1692
|
display: "flex",
|
|
1601
1693
|
justifyContent: "space-between"
|
|
1602
1694
|
}));
|
|
1603
|
-
const DynamicFilter = (
|
|
1695
|
+
const DynamicFilter = (inProps) => {
|
|
1604
1696
|
const isDesktop = useResponsiveDesktop();
|
|
1605
1697
|
const render = useFlagsPresent(["dictionary_loaded"]);
|
|
1606
1698
|
if (!render) {
|
|
1607
1699
|
return /* @__PURE__ */ jsx(Fragment, {});
|
|
1608
1700
|
}
|
|
1609
1701
|
return /* @__PURE__ */ jsx(BaseProvider, {
|
|
1610
|
-
...
|
|
1702
|
+
...inProps,
|
|
1611
1703
|
children: /* @__PURE__ */ jsx(BaseContext.Consumer, {
|
|
1612
1704
|
children: ({
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1705
|
+
ownerState,
|
|
1706
|
+
classes
|
|
1707
|
+
}) => {
|
|
1708
|
+
return /* @__PURE__ */ jsx(WrapperDynamicFilter, {
|
|
1709
|
+
ownerState,
|
|
1710
|
+
className: classes.root,
|
|
1711
|
+
children: isDesktop ? /* @__PURE__ */ jsxs(ContainerFilterDesktop, {
|
|
1712
|
+
className: classes.containerDesktop,
|
|
1713
|
+
children: [/* @__PURE__ */ jsx(FilterButton, {}), /* @__PURE__ */ jsx(InputFilter, {}), /* @__PURE__ */ jsx(ApplyedFilters, {}), /* @__PURE__ */ jsx(PopupEditFilter, {}), /* @__PURE__ */ jsx(ClearFilters, {})]
|
|
1714
|
+
}) : /* @__PURE__ */ jsxs(ContainerFilterMobile, {
|
|
1715
|
+
className: classes.containerMobile,
|
|
1716
|
+
children: [/* @__PURE__ */ jsxs(ContainerFistRow, {
|
|
1717
|
+
className: classes.ContainerFistRow,
|
|
1718
|
+
children: [/* @__PURE__ */ jsx(FilterButton, {}), /* @__PURE__ */ jsx(InputFilter, {}), /* @__PURE__ */ jsx(ClearFilters, {})]
|
|
1719
|
+
}), /* @__PURE__ */ jsx(ApplyedFilters, {}), /* @__PURE__ */ jsx(PopupEditFilter, {})]
|
|
1720
|
+
})
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1626
1723
|
})
|
|
1627
1724
|
});
|
|
1628
1725
|
};
|
|
@@ -1653,6 +1750,7 @@ const defaultDynamicFilterDictionary = {
|
|
|
1653
1750
|
};
|
|
1654
1751
|
export {
|
|
1655
1752
|
DynamicFilter as D,
|
|
1753
|
+
DynamicFilterClassess as a,
|
|
1656
1754
|
defaultDynamicFilterDictionary as d,
|
|
1657
1755
|
getDynamicFilterComponentsDictionary as g
|
|
1658
1756
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DynamicFilterProps } from './types';
|
|
3
|
-
|
|
3
|
+
import { DynamicFilterClasses } from './utils/Clases/types';
|
|
4
|
+
export { DynamicFilterClassess } from './utils/Clases';
|
|
5
|
+
export declare type DynamicFilterClassesKey = keyof DynamicFilterClasses;
|
|
6
|
+
export declare const DynamicFilter: (inProps: DynamicFilterProps) => JSX.Element;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const WrapperFilterMobile: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & WrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
import { WrapperDynamicFilterProps } from './types';
|
|
3
|
+
export declare const WrapperDynamicFilter: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & WrapperDynamicFilterProps, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const ContainerFilterDesktop: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("react").ClassAttributes<HTMLDivElement> | keyof import("react").HTMLAttributes<HTMLDivElement>>, {}>;
|
|
5
|
+
export declare const ContainerFilterMobile: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
6
|
export declare const ContainerFistRow: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
-
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const MUIPopover: import("@emotion/styled").StyledComponent<import("@mui/material").PopoverProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
3
|
+
export declare const WrapperPopupEditFilter: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
|
+
export declare const PopperActionsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const TitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const HeaderContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const WrapperEditFilter: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Maybe } from '@m4l/core';
|
|
2
|
+
import { OwnerState } from './contexts/BaseContext/types';
|
|
3
|
+
export interface WrapperDynamicFilterProps {
|
|
4
|
+
ownerState: OwnerState | Record<string, unknown>;
|
|
5
|
+
}
|
|
2
6
|
export declare type FieldType = 'number' | 'string' | 'boolean' | 'datetime';
|
|
3
7
|
export declare type OperandType = number | string | boolean | Date | [] | object;
|
|
4
8
|
export declare type Operator = 'b' | 'e' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'c' | 'nc';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OwnerState } from '../../contexts/BaseContext/types';
|
|
2
|
+
import { DynamicFilterClasses } from './types';
|
|
3
|
+
export declare const DynamicFilterClassess: DynamicFilterClasses;
|
|
4
|
+
export declare function getDynamicFiltertUtilityClass(slot: string): string;
|
|
5
|
+
export declare const useUtilityClasses: (ownerState: OwnerState) => {
|
|
6
|
+
root: string;
|
|
7
|
+
containerDesktop: string;
|
|
8
|
+
containerMobile: string;
|
|
9
|
+
containerFistRow: string;
|
|
10
|
+
containerFilterButton: string;
|
|
11
|
+
inputFilter: string;
|
|
12
|
+
applyedFilters: string;
|
|
13
|
+
applyedFilter: string;
|
|
14
|
+
booleanFilter: string;
|
|
15
|
+
dateTimeFilter: string;
|
|
16
|
+
numberFilter: string;
|
|
17
|
+
popupEditFilter: string;
|
|
18
|
+
clearFilters: string;
|
|
19
|
+
stringFilter: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface DynamicFilterClasses {
|
|
2
|
+
root: string;
|
|
3
|
+
containerDesktop: string;
|
|
4
|
+
containerMobile: string;
|
|
5
|
+
containerFistRow: string;
|
|
6
|
+
containerFilterButton: string;
|
|
7
|
+
inputFilter: string;
|
|
8
|
+
applyedFilters: string;
|
|
9
|
+
applyedFilter: string;
|
|
10
|
+
PopupEditFilter: string;
|
|
11
|
+
booleanFilter: string;
|
|
12
|
+
dateTimeFilter: string;
|
|
13
|
+
numberFilter: string;
|
|
14
|
+
inEdition: string;
|
|
15
|
+
filterIsDirty: string;
|
|
16
|
+
noSetted: string;
|
|
17
|
+
}
|