@m4l/components 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +31 -8
- package/components/AccountPopover/{index.af5aae0e.js → index-vXlaw69C.js} +7 -5
- package/components/AppBar/{index.b8f22046.js → index-3gXtikUI.js} +7 -5
- package/components/BaseModule/{index.f7a04fe7.js → index-CtN6b__U.js} +1 -1
- package/components/CommonActions/components/ActionCancel/{index.e67885bc.js → index-D_42VfUR.js} +2 -2
- package/components/CommonActions/components/ActionFormCancel/{index.92988013.js → index-DL7fDBi6.js} +5 -5
- package/components/CommonActions/components/ActionFormIntro/{index.f8867ae9.js → index-i3HmOpoU.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.e58eb0c4.js → index-i5875EXe.js} +3 -3
- package/components/CommonActions/components/Actions/{index.f674be30.js → index-ChW1FuFf.js} +5 -3
- package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.89a59c52.js → index-BjkuIa7y.js} +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.d619d1db.js → index-CWQp1KWU.js} +1 -1
- package/components/DataGrid/formatters/ColumnDateFormatter/{index.e00d0cf2.js → index-CKg8CJ6A.js} +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.557bc8a5.js → index-DggW8-4n.js} +1 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/{index.880e743b.js → index-BslXGK-A.js} +1 -1
- package/components/DataGrid/formatters/ColumnPointsFormatter/{index.ab152484.js → index-BXGW2CsK.js} +1 -1
- package/components/DataGrid/formatters/ColumnPriceFormatter/{index.bf9d9e60.js → index-O11tBykn.js} +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.4045b2f2.js → index-BaCawLr1.js} +1 -1
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/{index.a87302d1.js → index-Cq7a-jnE.js} +1 -1
- package/components/DataGrid/formatters/{index.06c18753.js → index-B3AsHKeD.js} +2 -2
- package/components/DataGrid/{index.b37d6cab.js → index-EgaRUtbL.js} +33 -26
- package/components/DataGrid/subcomponents/Actions/{index.c3b1c1e2.js → index-BF4pV_-K.js} +22 -26
- package/components/DataGrid/subcomponents/editors/TextEditor/{index.3f0d9e28.js → index-BIFm8akr.js} +4 -0
- package/components/DragResizeWindow/{index.a4bcaab8.js → index-D2jLYExo.js} +25 -6
- package/components/DynamicFilter/{dictionary.94a74eb3.js → dictionary-B2qYGLOx.js} +2 -2
- package/components/DynamicFilter/{index.b07b567a.js → index-BLjn97jC.js} +7 -8
- package/components/DynamicFilter/slots/{dynamicFilterSlots.dd5824d5.js → dynamicFilterSlots-CaFVu7xW.js} +8 -8
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicFilter/store/{index.49d1b77f.js → index-EW1sL9gf.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.9e8fcc8c.js → index-DjgwIwH9.js} +3 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/{index.3e52c5d7.js → index-Cfcgzcw7.js} +4 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.68d855e9.js → index-BFcVswNb.js} +8 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.11f588b4.js → index-B4mhUk9e.js} +4 -3
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.77555163.js → index-CA3JDlD0.js} +10 -9
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.1c8454db.js → index-B4R83Pyi.js} +5 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.cb31333a.js → index-1XC3u2dm.js} +6 -6
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.0ae3d439.js → index-BEMRO3Ng.js} +5 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/{index.5a0c7b12.js → index-Cfs28hud.js} +5 -5
- package/components/DynamicFilter/subcomponents/FilterActions/{index.50c175e7.js → index-CYY3cjbX.js} +3 -3
- package/components/DynamicFilter/subcomponents/InputFilter/{index.82d4ac5a.js → index-CAdtxARw.js} +33 -13
- package/components/DynamicFilter/subcomponents/PopoverFilter/{index.fa62a6c3.js → index-COoNIh4L.js} +7 -6
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.e5e439f1.js → index-Kz-jfM3o.js} +2 -2
- package/components/FieldLabel/{index.9a979def.js → index-DCAMDJoJ.js} +6 -4
- package/components/GridLayout/{index.dd291886.js → index-DUfp2sP_.js} +51 -72
- package/components/GridLayout/subcomponents/Griditem/{index.10278655.js → index-DEi0Ai1D.js} +11 -13
- package/components/GridLayout/subcomponents/Responsive/{index.24857a52.js → index-B7v5X9un.js} +7 -7
- package/components/GridLayout/subcomponents/SizeProvider/{index.2f762118.js → index-BsKaLKRl.js} +15 -9
- package/components/HelperText/{index.6818980e.js → index-DVV5Jfc8.js} +10 -3
- package/components/Icon/{index.c06685f4.js → index-CueLDD9j.js} +9 -4
- package/components/Image/{index.ae542f70.js → index-By5vsRzf.js} +40 -31
- package/components/LanguagePopover/index-Dn2JPzf1.js +179 -0
- package/components/LinearProgressIndeterminate/{index.ca78fd37.js → index-CTlvokQp.js} +5 -3
- package/components/Loadable/{index.e83cdb4e.js → index-BMbi9ISF.js} +1 -1
- package/components/LoadingError/{index.765ff885.js → index-CXVOiscg.js} +8 -6
- package/components/MFIsolationApp/{index.677d9e93.js → index-BfFMo2Q2.js} +5 -5
- package/components/MFLoader/{index.6af7729c.js → index-CCtU6zwR.js} +36 -15
- package/components/ModalDialog/{index.a57ee020.js → index-KryIxH_j.js} +6 -6
- package/components/NavLink/{index.dd723dfd.js → index-D6eiKlc0.js} +5 -3
- package/components/NoItemSelected/{index.b3e365b1.js → index-DKhhgTAH.js} +3 -1
- package/components/ObjectLogs/{index.54fdee14.js → index-CpBmanv0.js} +19 -12
- package/components/PDFViewer/{index.7932d07b.js → index-3PBUibum.js} +4 -2
- package/components/Page/{index.5f2963f3.js → index-PXQkJn7v.js} +11 -8
- package/components/PaperForm/{index.cdb1f846.js → index-B6a3-CZt.js} +4 -2
- package/components/Period/{index.b0b2a03b.js → index-DtFWU3y5.js} +20 -31
- package/components/PrintingSystem/{index.800a7957.js → index-DJmGF2SQ.js} +16 -14
- package/components/PrintingSystem/subcomponents/BodyNode/{index.60ad80bd.js → index-DorXm6AO.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.d4aa116e.js → index-Cd9H-_3i.js} +3 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.142bbf1a.js → index-Dm-RAH_l.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.d16d2c5e.js → index-BPg-NpDf.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.044363bf.js → index-u0ZSP6s4.js} +6 -2
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.5581a84d.js → index-C7eFFsTN.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.2994c128.js → index-D7M4YL4C.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.166d7264.js → index-Drjfhq-n.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.642ab1b7.js → index-Banh4UxX.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.d8a2a0af.js → index-OBnZLPEc.js} +1 -1
- package/components/PropertyValue/{index.d81eae0a.js → index-Cc7y20oI.js} +7 -5
- package/components/Resizeable/{index.df2f3bb8.js → index-BwQ6EKCK.js} +1 -1
- package/components/ScrollBar/{index.11feff65.js → index-P3SkjYOy.js} +3 -1
- package/components/SideBar/{index.990e8667.js → index-Ddxe1VvL.js} +100 -74
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
- package/components/SplitLayout/{index.b247de95.js → index-CwmZT1x6.js} +5 -3
- package/components/ToastContainer/{index.c1657bde.js → index-DN3ZHpBT.js} +3 -3
- package/components/animate/LoadingScreen/{index.36a63311.js → index-CcjW-mkl.js} +1 -1
- package/components/animate/MotionContainer/{index.3032bd8f.js → index-eartnWyO.js} +1 -1
- package/components/animate/MotionLazyContainer/{index.d2902a6c.js → index-Be8osTiG.js} +1 -1
- package/components/animate/PropagateLoader/{index.a9da8d00.js → index-Bkq8V2SN.js} +1 -1
- package/components/animate/{index.ceb7669a.js → index-DsolrzTC.js} +1 -1
- package/components/animate/variants/{bounce.784aaaaa.js → bounce-DanQqHAX.js} +3 -1
- package/components/animate/variants/{fade.b561c0fc.js → fade-CAOJNn06.js} +3 -1
- package/components/areas/components/AreasAdmin/{index.b232384d.js → index-Y6S0Q7TN.js} +21 -19
- package/components/areas/components/AreasViewer/{index.d45bfcd2.js → index-DfcpQwSl.js} +67 -64
- package/components/areas/contexts/AreasContext/{index.9edd84c3.js → index-spCQnOlk.js} +180 -16
- package/components/areas/contexts/AreasContext/types.d.ts +1 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +5 -0
- package/components/areas/hooks/index.d.ts +1 -0
- package/components/areas/hooks/useAreas/{index.5a57ab76.js → index-D6DaWBIP.js} +2 -3
- package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index-DhbcZPs9.js} +1 -1
- package/components/areas/hooks/useSetWindowsTitle/index.d.ts +1 -0
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +31 -0
- package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle.d.ts +3 -0
- package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index-BECQfhbC.js} +2 -3
- package/components/commercial/AppBarCommercial/{index.b4f6147e.js → index-D1jIOw7M.js} +4 -2
- package/components/commercial/SectionCommercial/{index.a250338c.js → index-C9THYik8.js} +4 -2
- package/components/commercial/TopBar/{index.4fdd66e5.js → index-DLn3yEcX.js} +13 -11
- package/components/commercial/{index.be1af158.js → index-D1bCIF7p.js} +4 -4
- package/components/formatters/BooleanFormatter/{index.91435984.js → index-Bc2l6GTX.js} +3 -3
- package/components/formatters/DateFormatter/{index.2ef6f261.js → index-CGcRZ8BA.js} +1 -1
- package/components/formatters/PointsFormatter/{index.51cd6774.js → index-C7sR8iqk.js} +1 -1
- package/components/formatters/PriceFormatter/{index.97f75b4b.js → index-CsvRawmc.js} +1 -1
- package/components/formatters/UncertaintyFormatter/{index.c3ffdebc.js → index-B9ESVEVp.js} +4 -4
- package/components/formatters/{index.64017cc1.js → index-Botdzyt2.js} +13 -19
- package/components/hook-form/HelperError/{index.360f8fb7.js → index-J-C5u9AH.js} +1 -1
- package/components/hook-form/RHFAutocomplete/{index.089af1b8.js → index-erpzYu8W.js} +20 -20
- package/components/hook-form/RHFAutocompleteAsync/{index.f05b6fe3.js → index-BV0f25eK.js} +5 -3
- package/components/hook-form/RHFCheckbox/{index.4cefbad2.js → index-Duf51-pS.js} +53 -46
- package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/{index.ed380b30.js → index-C-tITRAx.js} +8 -6
- package/components/hook-form/RHFDateTime/{index.118ebe6d.js → index-OdXKdhJS.js} +7 -5
- package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +1 -0
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnnerEnum.d.ts +9 -0
- package/components/hook-form/RHFInputNumberSpinner/types.d.ts +21 -0
- package/components/hook-form/RHFPeriod/{index.404ba4c6.js → index-CjkIGYUY.js} +6 -4
- package/components/hook-form/RHFRadioGroup/{index.591f779d.js → index-Da_2zFu3.js} +1 -1
- package/components/hook-form/RHFTextField/index-BWZWPFn5.js +337 -0
- package/components/hook-form/RHFUpload/{index.7b7ee732.js → index-D4nrnFFT.js} +10 -8
- package/components/maps/components/GpsTools/{index.c1198f79.js → index-DPY-BjB8.js} +102 -32
- package/components/maps/components/Map/{index.8c947175.js → index-BRrVIyA-.js} +263 -73
- package/components/modal/{WindowBase.00b9e5f1.js → WindowBase-Ce6yRLcN.js} +4 -4
- package/components/modal/{WindowConfirm.abf49573.js → WindowConfirm-BaB3Ojgu.js} +8 -7
- package/components/modal/{index.81eb6def.js → index-CydPIpKZ.js} +2 -0
- package/components/mui_extended/Accordion/{index.26524ecd.js → index-D1775s1J.js} +8 -6
- package/components/mui_extended/Avatar/{index.e7bcc850.js → index-n5hK7nJD.js} +5 -2
- package/components/mui_extended/Badge/{index.48948839.js → index-Dfdw5Iaq.js} +4 -2
- package/components/mui_extended/Breadcrumbs/{index.4a44883c.js → index-DTS7rOZH.js} +1 -2
- package/components/mui_extended/Button/{index.3d14e3e9.js → index-CksGG1B8.js} +33 -13
- package/components/mui_extended/Button/styles.d.ts +1 -1
- package/components/mui_extended/{CheckBox.5dc01b37.js → CheckBox-CjxjIrmN.js} +4 -2
- package/components/mui_extended/IconButton/{index.7b6c1ee3.js → index-OMq0pPK0.js} +42 -22
- package/components/mui_extended/IconButton/types.d.ts +18 -0
- package/components/mui_extended/MenuActions/MenuActions.d.ts +5 -0
- package/components/mui_extended/MenuActions/constant.d.ts +5 -0
- package/components/mui_extended/MenuActions/dictionary.d.ts +7 -0
- package/components/mui_extended/MenuActions/index-De7dpdBH.js +202 -0
- package/components/mui_extended/MenuActions/index.d.ts +2 -5
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +9 -0
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +24 -0
- package/components/mui_extended/MenuActions/slots/index.d.ts +2 -0
- package/components/mui_extended/MenuActions/types.d.ts +11 -2
- package/components/mui_extended/Pager/{index.b28a2103.js → index-k7SRq6Jo.js} +8 -5
- package/components/mui_extended/Popover/{index.a7da93f1.js → index-BnKsmvtw.js} +39 -27
- package/components/mui_extended/Stack/{index.99de8138.js → index-C9YEChZB.js} +3 -1
- package/components/mui_extended/Tab/{index.5c6a6801.js → index-CpdHav0V.js} +9 -3
- package/components/mui_extended/Tabs/styles.d.ts +1 -1
- package/components/mui_extended/ToggleButton/{index.86098567.js → index-CS1mz-lH.js} +2 -2
- package/components/mui_extended/ToggleIconButton/{index.cbfe1cad.js → index-BNQrQ6-b.js} +3 -2
- package/components/mui_extended/Tooltip/{index.49bb5ee1.js → index-B8QUytCK.js} +2 -0
- package/components/mui_extended/Typography/{index.8c0801e4.js → index-W88rbpsJ.js} +4 -2
- package/components/popups/PopupsProvider/{index.9a23e1d0.js → index-DhSxmtfJ.js} +1 -2
- package/components/popups/PopupsViewer/{index.52653047.js → index-Dn0XOI6q.js} +10 -7
- package/components/popups/PopupsViewer/slots/{popupsViewerSlots.69dd2614.js → popupsViewerSlots-Db8QAmEE.js} +4 -4
- package/contexts/ModalContext/{index.799110fe.js → index-DkUBXDpR.js} +1 -1
- package/contexts/RHFormContext/{index.f9d41b99.js → index-Ct48jRjb.js} +3 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/useFormAddEdit/{index.8947ee59.js → index-BkBJNq8b.js} +2 -2
- package/hooks/useInterval/index.d.ts +7 -0
- package/hooks/useModal/{index.eb857f6e.js → index-CTAwKk5D.js} +2 -3
- package/hooks/useSizeContainer/{index.3c48670c.js → index-D4hDjM1P.js} +2 -0
- package/hooks/useTab/{index.9ad15247.js → index-PXnpiLMx.js} +1 -1
- package/index.js +153 -244
- package/package.json +1 -1
- package/{react-data-grid.c5377916.js → react-data-grid-BfYuZ6AK.js} +59 -110
- package/{react-draggable.079122b0.js → react-draggable-DsCPdgQP.js} +238 -57
- package/{react-json-view.57125fcf.js → react-json-view-bhqIAaNg.js} +277 -467
- package/{react-resizable.330f1499.js → react-resizable-eBbFl2dX.js} +75 -37
- package/{react-spinners.342a6578.js → react-spinners-TpKN9lZg.js} +6 -8
- package/{react-splitter-layout.8b1655c8.js → react-splitter-layout-C-JTsNGs.js} +14 -23
- package/style.css +1 -65
- package/styles/{DynamicFilter.0713a406.js → DynamicFilter-CJFsIegc.js} +1 -1
- package/styles/MenuActions.styles.d.ts +2 -0
- package/styles/{index.db9e7ddb.js → index-C-MsxWtr.js} +90 -25
- package/utils/{index.f77cc2ab.js → index-DiMrtgIu.js} +26 -51
- package/components/LanguagePopover/index.2a7e40fc.js +0 -168
- package/components/hook-form/RHFTextField/index.80b98b98.js +0 -296
- package/components/mui_extended/MenuActions/classes/constants.d.ts +0 -1
- package/components/mui_extended/MenuActions/classes/index.d.ts +0 -7
- package/components/mui_extended/MenuActions/classes/types.d.ts +0 -7
- package/components/mui_extended/MenuActions/icons.d.ts +0 -3
- package/components/mui_extended/MenuActions/index.11d777bb.js +0 -167
- package/components/mui_extended/MenuActions/styles.d.ts +0 -5
- /package/{commonjs.565e6834.js → commonjs-BfYxJMv3.js} +0 -0
- /package/components/DataGrid/{constants.e334cd50.js → constants-8L7QgBKi.js} +0 -0
- /package/components/DynamicFilter/{constants.095f1dbb.js → constants-ByqmFATV.js} +0 -0
- /package/components/DynamicFilter/slots/{SlotsEnum.104a03d4.js → SlotsEnum-cawFeNzx.js} +0 -0
- /package/components/DynamicFilter/slots/{index.36b12be1.js → index-l0sNRNKZ.js} +0 -0
- /package/components/ScrollToTop/{index.e06f98f6.js → index-TxORk5dB.js} +0 -0
- /package/components/WrapperComponent/{index.57964195.js → index-BHV-CsDU.js} +0 -0
- /package/components/animate/{features.0fbf41e1.js → features-BbnE33u3.js} +0 -0
- /package/components/animate/variants/{container.11f82b76.js → container-Dmpr6tg5.js} +0 -0
- /package/components/animate/variants/{index.7a912140.js → index-l0sNRNKZ.js} +0 -0
- /package/components/animate/variants/{transition.bd46b9ce.js → transition-B9W5SWTa.js} +0 -0
- /package/components/areas/components/{index.558684b3.js → index-l0sNRNKZ.js} +0 -0
- /package/components/areas/{constants.66529246.js → constants-rqODZNZe.js} +0 -0
- /package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index-22c6E7vK.js} +0 -0
- /package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index-DkE30fhm.js} +0 -0
- /package/components/areas/contexts/{index.24025b97.js → index-l0sNRNKZ.js} +0 -0
- /package/components/areas/{dictionary.08cfc4c9.js → dictionary-YUsP9beq.js} +0 -0
- /package/components/areas/hooks/{index.d9dc1e21.js → index-l0sNRNKZ.js} +0 -0
- /package/components/areas/{icons.01fa3bcc.js → icons-CwFr-alN.js} +0 -0
- /package/components/areas/{index.4cc6a221.js → index-B_Odny9h.js} +0 -0
- /package/components/hook-form/RHFMultiCheckbox/{index.437e6ba3.js → index-BARudV1A.js} +0 -0
- /package/components/hook-form/RHFSelect/{index.c6c60ecc.js → index-LdwRuFz-.js} +0 -0
- /package/components/maps/{index.13bb982c.js → index-Ci-7-FHg.js} +0 -0
- /package/components/mui_extended/BoxIcon/{index.d61e7ac5.js → index-BUTJ2tKw.js} +0 -0
- /package/components/mui_extended/CircularProgress/{index.967e70b7.js → index-Bnnti_G6.js} +0 -0
- /package/components/mui_extended/LinearProgress/{index.4092bb69.js → index-CGgW8jq2.js} +0 -0
- /package/components/mui_extended/LinkWithRoute/{index.288c51f3.js → index-BC2miUjR.js} +0 -0
- /package/components/mui_extended/{index.b606cd9d.js → index-l0sNRNKZ.js} +0 -0
- /package/components/popups/PopupsViewer/{constants.29247547.js → constants-DuyD7aCn.js} +0 -0
- /package/components/popups/PopupsViewer/{icons.066abd43.js → icons-BUujqqbu.js} +0 -0
- /package/components/popups/PopupsViewer/slots/{index.37ef2263.js → index-B98CiRLa.js} +0 -0
- /package/components/popups/{index.c5eae682.js → index-l0sNRNKZ.js} +0 -0
- /package/hocs/withToggle/{index.548aeace.js → index-C1_DMZD3.js} +0 -0
- /package/hooks/useFormReadyForUpdate/{index.f60f500e.js → index-B3HygFCM.js} +0 -0
- /package/hooks/useStateRef/{index.538edb89.js → index-C3P6ZK3m.js} +0 -0
- /package/test/{constants_no_mock.86c553a9.js → constants_no_mock-CF-669v-.js} +0 -0
- /package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId-BaBTWhBr.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { forwardRef, useState, useRef, useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import { D as DraggableCore_1 } from "../../react-draggable.
|
|
3
|
+
import { D as DraggableCore_1 } from "../../react-draggable-DsCPdgQP.js";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { styled, generateUtilityClasses, useForkRef } from "@mui/material";
|
|
6
6
|
import "@mui/base";
|
|
7
|
-
import { R as Resizable } from "../../react-resizable.
|
|
7
|
+
import { R as Resizable } from "../../react-resizable-eBbFl2dX.js";
|
|
8
8
|
const WrapperDragResizeWindowRoot = styled("div")`
|
|
9
9
|
position: absolute;
|
|
10
10
|
left: 0px;
|
|
@@ -24,9 +24,11 @@ const DEFAULT_TRANSFORM_SCALE = 1;
|
|
|
24
24
|
const draggableWindowClasses = generateUtilityClasses(
|
|
25
25
|
COMPONENT_CLASS_NAME,
|
|
26
26
|
[
|
|
27
|
+
/* elements */
|
|
27
28
|
"root",
|
|
28
29
|
"draggableHandle",
|
|
29
30
|
"draggableCancel",
|
|
31
|
+
// state
|
|
30
32
|
"dragging",
|
|
31
33
|
"hidden"
|
|
32
34
|
]
|
|
@@ -76,12 +78,15 @@ const getInitialSize = (containerSize, defaultPosition) => {
|
|
|
76
78
|
return {
|
|
77
79
|
top: top ?? (bottom ? containerHeight - bottom - (height || 0) : 0),
|
|
78
80
|
height: height ?? containerHeight - (top || 0) - (bottom || 0),
|
|
81
|
+
// top: top || 0,
|
|
82
|
+
// height: height ?? containerHeight - (top || 0) - (bottom || 0),
|
|
79
83
|
left: left ?? (right ? containerWidth - right - (width || 0) : 0),
|
|
80
84
|
width: width ?? containerWidth - (left || 0) - (right || 0)
|
|
81
85
|
};
|
|
82
86
|
};
|
|
83
87
|
const DragResizeWindow = forwardRef((props, ref) => {
|
|
84
88
|
const {
|
|
89
|
+
//Comunes
|
|
85
90
|
style,
|
|
86
91
|
className,
|
|
87
92
|
children,
|
|
@@ -92,6 +97,7 @@ const DragResizeWindow = forwardRef((props, ref) => {
|
|
|
92
97
|
bounds = { left: 5, top: 5, right: -5, bottom: -5 },
|
|
93
98
|
minWindowWidth = 200,
|
|
94
99
|
minWindowHeight = 100,
|
|
100
|
+
//Draggable
|
|
95
101
|
draggableHandle = `.${draggableWindowClasses.draggableHandle}`,
|
|
96
102
|
draggableCancel = `.${draggableWindowClasses.draggableCancel}`,
|
|
97
103
|
draggable = true,
|
|
@@ -99,13 +105,18 @@ const DragResizeWindow = forwardRef((props, ref) => {
|
|
|
99
105
|
onDrag,
|
|
100
106
|
onDragStop,
|
|
101
107
|
onMouseDown,
|
|
108
|
+
//ResizeAble
|
|
102
109
|
resizeable = true,
|
|
103
110
|
resizeHandles = ["se", "nw"],
|
|
104
111
|
resizeHandle,
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
105
113
|
onResizeStart,
|
|
114
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
106
115
|
onResize,
|
|
116
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
107
117
|
onResizeStop,
|
|
108
118
|
hidden,
|
|
119
|
+
//Otras
|
|
109
120
|
...others
|
|
110
121
|
} = props;
|
|
111
122
|
const [currentState, setCurrentState] = useState(
|
|
@@ -144,9 +155,13 @@ const DragResizeWindow = forwardRef((props, ref) => {
|
|
|
144
155
|
...prev,
|
|
145
156
|
...newPosition,
|
|
146
157
|
shrinkLeftAt: void 0,
|
|
158
|
+
//Cancelar los flags de memoria de encogimiento del contenedor padre
|
|
147
159
|
shrinkTopAt: void 0,
|
|
160
|
+
//Cancelar los flags de memoria de encogimiento del contenedor padre
|
|
148
161
|
overflowWidthAt: void 0,
|
|
162
|
+
//Cancelar los flags de memoria de encogimiento del contenedor padre
|
|
149
163
|
overflowHeightAt: void 0,
|
|
164
|
+
//Cancelar los flags de memoria de encogimiento del contenedor padre
|
|
150
165
|
dragging: newPosition
|
|
151
166
|
}));
|
|
152
167
|
}, []);
|
|
@@ -201,9 +216,13 @@ const DragResizeWindow = forwardRef((props, ref) => {
|
|
|
201
216
|
...size,
|
|
202
217
|
...handlerName === "onResizeStart" ? {
|
|
203
218
|
shrinkLeftAt: void 0,
|
|
219
|
+
//Cancelar los flags de memoria de encogimiento del contenedor padre
|
|
204
220
|
shrinkTopAt: void 0,
|
|
221
|
+
//Cancelar los flags de memoria de encogimiento del contenedor padre
|
|
205
222
|
overflowWidthAt: void 0,
|
|
223
|
+
//Cancelar los flags de memoria de encogimiento del contenedor padre
|
|
206
224
|
overflowHeightAt: void 0
|
|
225
|
+
//Cancelar los flags de memoria de encogimiento del contenedor padre
|
|
207
226
|
} : {},
|
|
208
227
|
resizing
|
|
209
228
|
}));
|
|
@@ -293,8 +312,7 @@ const DragResizeWindow = forwardRef((props, ref) => {
|
|
|
293
312
|
const boundsRigthBottom = dimension === "Width" ? bounds?.right || 0 : bounds?.bottom || 0;
|
|
294
313
|
const maxDimensionWithoutBounds = containerDimension - boundsLefTop + boundsRigthBottom;
|
|
295
314
|
let rightBottomBoundary = containerDimension - newState[lDimension] + boundsRigthBottom;
|
|
296
|
-
if (newState[lDimension] !== divRoot[`client${dimension}`])
|
|
297
|
-
;
|
|
315
|
+
if (newState[lDimension] !== divRoot[`client${dimension}`]) ;
|
|
298
316
|
if (newState.resizing && stateRef.current.initialPostion) {
|
|
299
317
|
if (!newState.resizing.handle.includes("w")) {
|
|
300
318
|
if (newState[leftTop] + newState[lDimension] > containerDimension + boundsRigthBottom) {
|
|
@@ -309,8 +327,7 @@ const DragResizeWindow = forwardRef((props, ref) => {
|
|
|
309
327
|
if (newState[leftTop] - dif >= boundsLefTop) {
|
|
310
328
|
newState[lDimension] = stateRef.current.initialPostion[lDimension] + dif;
|
|
311
329
|
newState[leftTop] = newState[leftTop] - dif;
|
|
312
|
-
if (newState[leftTop] + newState[lDimension] > maxDimensionWithoutBounds)
|
|
313
|
-
;
|
|
330
|
+
if (newState[leftTop] + newState[lDimension] > maxDimensionWithoutBounds) ;
|
|
314
331
|
} else {
|
|
315
332
|
newState[leftTop] = boundsLefTop;
|
|
316
333
|
newState[lDimension] = stateRef.current.initialPostion[lDimension];
|
|
@@ -457,7 +474,9 @@ const DragResizeWindow = forwardRef((props, ref) => {
|
|
|
457
474
|
);
|
|
458
475
|
const classNameFinal = clsx(draggableWindowClasses.root, className, {
|
|
459
476
|
"react-draggable": draggable,
|
|
477
|
+
//Requerido para el componente Draggable
|
|
460
478
|
[draggableWindowClasses.hidden]: hidden
|
|
479
|
+
// dropping: Boolean(droppingPosition),
|
|
461
480
|
});
|
|
462
481
|
const styleFinal = {
|
|
463
482
|
...style,
|
|
@@ -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-ChW1FuFf.js";
|
|
2
|
+
import { g as getRHFAutocompleteComponentsDictionary } from "../hook-form/RHFAutocomplete/index-erpzYu8W.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-Cfs28hud.js";
|
|
2
|
+
import { f as filterValidOperandsArraySelect } from "./subcomponents/FieldTypes/SelectFilter/index-1XC3u2dm.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-EW1sL9gf.js";
|
|
6
|
+
import { D as DynamicFilterBase } from "./subcomponents/DynamicFilterBase/index-BFcVswNb.js";
|
|
7
7
|
function getPurgedInitialFiltersApplied(fields, initialFilters, getFieldByName) {
|
|
8
8
|
const newFilters = [];
|
|
9
9
|
const fixedFields = [];
|
|
@@ -22,13 +22,12 @@ function getPurgedInitialFiltersApplied(fields, initialFilters, getFieldByName)
|
|
|
22
22
|
operand2: initialFilters[index].operand2,
|
|
23
23
|
operandsArray: initialFilters[index].operandsArray
|
|
24
24
|
};
|
|
25
|
-
if (!field)
|
|
26
|
-
continue;
|
|
25
|
+
if (!field) continue;
|
|
27
26
|
const canAddField = fieldFactory(field.type).verifyFilter(initialFilter, field);
|
|
28
27
|
if (canAddField) {
|
|
29
28
|
if (filter.fieldType === "datetime") {
|
|
30
|
-
filter.operand1 = new Date(filter.operand1 + "");
|
|
31
|
-
filter.operand2 = new Date(filter.operand2 + "");
|
|
29
|
+
filter.operand1 = /* @__PURE__ */ new Date(filter.operand1 + "");
|
|
30
|
+
filter.operand2 = /* @__PURE__ */ new Date(filter.operand2 + "");
|
|
32
31
|
}
|
|
33
32
|
if (field.presence === "fixed") {
|
|
34
33
|
if (fixedFields.findIndex((f) => f === field.name) === -1) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { D as DYNAMIC_FILTER_KEY_COMPONENT } from "../constants.
|
|
3
|
-
import { D as DynamicFilterSlots } from "./SlotsEnum.
|
|
4
|
-
import { d as dynamicFilterStyles } from "../../../styles/DynamicFilter.
|
|
2
|
+
import { D as DYNAMIC_FILTER_KEY_COMPONENT } from "../constants-ByqmFATV.js";
|
|
3
|
+
import { D as DynamicFilterSlots } from "./SlotsEnum-cawFeNzx.js";
|
|
4
|
+
import { d as dynamicFilterStyles } from "../../../styles/DynamicFilter-CJFsIegc.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-ChW1FuFf.js";
|
|
7
|
+
import { I as Icon } from "../../Icon/index-CueLDD9j.js";
|
|
8
|
+
import { I as IconButton } from "../../mui_extended/IconButton/index-OMq0pPK0.js";
|
|
9
|
+
import { P as Popover } from "../../mui_extended/Popover/index-BnKsmvtw.js";
|
|
10
|
+
import { T as Typography } from "../../mui_extended/Typography/index-W88rbpsJ.js";
|
|
11
11
|
const RootStyled = styled("div", { name: DYNAMIC_FILTER_KEY_COMPONENT, slot: DynamicFilterSlots.root })(
|
|
12
12
|
dynamicFilterStyles?.root
|
|
13
13
|
);
|
|
@@ -58,7 +58,7 @@ export declare const PopoverMenuStyled: import("@emotion/styled").StyledComponen
|
|
|
58
58
|
}, {}, {}>;
|
|
59
59
|
export declare const PopoverMenuItemStyled: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
60
60
|
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
61
|
-
}, "style" | "disabled" | "children" | "tabIndex" | "className" | "action" | "divider" | "dense" | "sx" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "
|
|
61
|
+
}, "style" | "disabled" | "children" | "tabIndex" | "className" | "action" | "divider" | "dense" | "sx" | "classes" | "autoFocus" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters">, "value" | "dir" | "slot" | "style" | "title" | "onChange" | "disabled" | "ref" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "color" | "hidden" | "action" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "content" | "translate" | "divider" | "dense" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
62
62
|
ownerState: Partial<import("../types").DynamicFilterOwnerState> & Record<string, unknown>;
|
|
63
63
|
}, {}, {}>;
|
|
64
64
|
export declare const PopoverMenuItemIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
@@ -4,15 +4,15 @@ import { shallow } from "zustand/shallow";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
6
6
|
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
7
|
-
import { A as ALL_FIELD } from "../constants.
|
|
8
|
-
import { g as getPurgedInitialFiltersApplied, f as formatToInitialFilters, a as formatToRawFilter } from "../index.
|
|
7
|
+
import { A as ALL_FIELD } from "../constants-ByqmFATV.js";
|
|
8
|
+
import { g as getPurgedInitialFiltersApplied, f as formatToInitialFilters, a as formatToRawFilter } from "../index-BLjn97jC.js";
|
|
9
9
|
import { devtools } from "zustand/middleware";
|
|
10
10
|
import { immer } from "zustand/middleware/immer";
|
|
11
11
|
function useDynamicFilterStore(selector, equalityFn) {
|
|
12
12
|
const store = useContext(DynamicFilterContext);
|
|
13
13
|
if (!store)
|
|
14
14
|
throw new Error("useDynamicFilterStore context must be use inside DynamicFilterContext");
|
|
15
|
-
return useStore(store, selector,
|
|
15
|
+
return useStore(store, selector, shallow);
|
|
16
16
|
}
|
|
17
17
|
function updateAvailableFields(state) {
|
|
18
18
|
state.availableFields = state.fields.filter((field) => {
|
|
@@ -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-EW1sL9gf.js";
|
|
6
|
+
import { f as fieldFactory } from "../FieldTypes/index-Cfs28hud.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-CaFVu7xW.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-P3SkjYOy.js";
|
|
3
|
+
import { u as useDynamicFilterStore } from "../../store/index-EW1sL9gf.js";
|
|
4
|
+
import { g as AppliedFiltersStyled, h as AppliedFilterInnerContainerStyled } from "../../slots/dynamicFilterSlots-CaFVu7xW.js";
|
|
5
|
+
import { A as AppliedFilterChip } from "../AppliedFilterChip/index-DjgwIwH9.js";
|
|
6
6
|
function useAppliedFilters() {
|
|
7
7
|
const appliedFilter = useDynamicFilterStore((state) => state.appliedFilters);
|
|
8
8
|
const isSkeleton = useDynamicFilterStore((state) => state.ownerState.isSkeleton);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { u as useDynamicFilterStore } from "../../store/index.
|
|
3
|
-
import { a as getPropDataTestId } from "../../../../test/getNameDataTestId.
|
|
4
|
-
import { R as RootStyled, I as InnerContainerStyled } from "../../slots/dynamicFilterSlots.
|
|
5
|
-
import { D as DynamicFilterSlots } from "../../slots/SlotsEnum.
|
|
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.
|
|
2
|
+
import { u as useDynamicFilterStore } from "../../store/index-EW1sL9gf.js";
|
|
3
|
+
import { a as getPropDataTestId } from "../../../../test/getNameDataTestId-BaBTWhBr.js";
|
|
4
|
+
import { R as RootStyled, I as InnerContainerStyled } from "../../slots/dynamicFilterSlots-CaFVu7xW.js";
|
|
5
|
+
import { D as DynamicFilterSlots } from "../../slots/SlotsEnum-cawFeNzx.js";
|
|
6
|
+
import { I as InputFilter } from "../InputFilter/index-CAdtxARw.js";
|
|
7
|
+
import { A as AppliedFilters } from "../AppliedFilters/index-Cfcgzcw7.js";
|
|
8
|
+
import { F as FilterActions } from "../FilterActions/index-CYY3cjbX.js";
|
|
9
|
+
import { P as PopoverFilter } from "../PopoverFilter/index-COoNIh4L.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.
|
|
3
|
-
import { B as BOOLEAN_OPERATORS } from "../../../constants.
|
|
2
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary-B2qYGLOx.js";
|
|
3
|
+
import { B as BOOLEAN_OPERATORS } from "../../../constants-ByqmFATV.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-erpzYu8W.js";
|
|
8
8
|
function BooleanFilter() {
|
|
9
9
|
const { getLabel } = useModuleDictionary();
|
|
10
10
|
const operators = useMemo(
|
|
@@ -113,6 +113,7 @@ class BooleanFilterHelpers {
|
|
|
113
113
|
formValueOperand1: Yup.object().nullable().required(getLabel(`dynamic_filter.error_operand_required`))
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
116
117
|
verifyFilter(filter, _field) {
|
|
117
118
|
if (typeof filter.operator !== "string") {
|
|
118
119
|
return false;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as Yup from "yup";
|
|
2
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.
|
|
3
|
-
import { a as DATE_TIME_OPERATORS } from "../../../constants.
|
|
2
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary-B2qYGLOx.js";
|
|
3
|
+
import { a as DATE_TIME_OPERATORS } from "../../../constants-ByqmFATV.js";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
7
7
|
import { useModuleDictionary } from "@m4l/core";
|
|
8
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.
|
|
9
|
-
import { R as RHFDateTime } from "../../../../hook-form/RHFDateTime/index.
|
|
10
|
-
import { i as isValidDate } from "../../../../../utils/index.
|
|
8
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index-erpzYu8W.js";
|
|
9
|
+
import { R as RHFDateTime } from "../../../../hook-form/RHFDateTime/index-OdXKdhJS.js";
|
|
10
|
+
import { i as isValidDate } from "../../../../../utils/index-DiMrtgIu.js";
|
|
11
11
|
function DateTimeFilter() {
|
|
12
12
|
const { getLabel } = useModuleDictionary();
|
|
13
13
|
const { control } = useFormContext();
|
|
@@ -56,8 +56,8 @@ class DateTimeFilterHelpers {
|
|
|
56
56
|
return DateTimeFilter;
|
|
57
57
|
}
|
|
58
58
|
getDefaultFilter(field, fixed) {
|
|
59
|
-
const defaultStartDate = new Date();
|
|
60
|
-
const defaultEndDate = new Date();
|
|
59
|
+
const defaultStartDate = /* @__PURE__ */ new Date();
|
|
60
|
+
const defaultEndDate = /* @__PURE__ */ new Date();
|
|
61
61
|
defaultStartDate.setHours(0, 0, 0, 0);
|
|
62
62
|
defaultEndDate.setHours(23, 59, 59, 999);
|
|
63
63
|
const defaultOperand1 = field.defaultOperand1 && field.defaultOperand1 instanceof Date ? field.defaultOperand1 : defaultStartDate;
|
|
@@ -76,8 +76,8 @@ class DateTimeFilterHelpers {
|
|
|
76
76
|
getFormValue(field, getLabel, filterValueDateTime) {
|
|
77
77
|
const filterValue = filterValueDateTime;
|
|
78
78
|
const operator = filterValue ? filterValue.operator : field.defaultOperator ?? "b";
|
|
79
|
-
const defaultStartDate = new Date();
|
|
80
|
-
const defaultEndDate = new Date();
|
|
79
|
+
const defaultStartDate = /* @__PURE__ */ new Date();
|
|
80
|
+
const defaultEndDate = /* @__PURE__ */ new Date();
|
|
81
81
|
const defaultOperand1 = field.defaultOperand1 && field.defaultOperand1 instanceof Date ? field.defaultOperand1 : defaultStartDate;
|
|
82
82
|
const defaultOperand2 = field.defaultOperand2 && field.defaultOperand2 instanceof Date ? field.defaultOperand2 : defaultEndDate;
|
|
83
83
|
const formValueOperand1 = filterValue ? filterValue.operand1 : defaultOperand1;
|
|
@@ -141,6 +141,7 @@ class DateTimeFilterHelpers {
|
|
|
141
141
|
})
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
144
145
|
verifyFilter(filter, _field) {
|
|
145
146
|
if (typeof filter.operator !== "string") {
|
|
146
147
|
return false;
|
|
@@ -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-B2qYGLOx.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
|
-
import { N as NUMBER_OPERATORS } from "../../../constants.
|
|
8
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.
|
|
9
|
-
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.
|
|
7
|
+
import { N as NUMBER_OPERATORS } from "../../../constants-ByqmFATV.js";
|
|
8
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index-erpzYu8W.js";
|
|
9
|
+
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index-BWZWPFn5.js";
|
|
10
10
|
function NumberFilter() {
|
|
11
11
|
const { getLabel } = useModuleDictionary();
|
|
12
12
|
const { control } = useFormContext();
|
|
@@ -131,6 +131,7 @@ class NumberFilterHelpers {
|
|
|
131
131
|
})
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
134
135
|
verifyFilter(filter, _field) {
|
|
135
136
|
if (typeof filter.operator !== "number") {
|
|
136
137
|
return false;
|
|
@@ -1,17 +1,17 @@
|
|
|
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-B2qYGLOx.js";
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
import { useMemo } from "react";
|
|
5
5
|
import { useModuleDictionary } from "@m4l/core";
|
|
6
|
-
import { S as SELECT_OPERATORS } from "../../../constants.
|
|
7
|
-
import { u as useDynamicFilterStore } from "../../../store/index.
|
|
8
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.
|
|
9
|
-
import { R as RHFAutocompleteAsync } from "../../../../hook-form/RHFAutocompleteAsync/index.
|
|
6
|
+
import { S as SELECT_OPERATORS } from "../../../constants-ByqmFATV.js";
|
|
7
|
+
import { u as useDynamicFilterStore } from "../../../store/index-EW1sL9gf.js";
|
|
8
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index-erpzYu8W.js";
|
|
9
|
+
import { R as RHFAutocompleteAsync } from "../../../../hook-form/RHFAutocompleteAsync/index-BV0f25eK.js";
|
|
10
10
|
function SelectFilter() {
|
|
11
11
|
const { getLabel } = useModuleDictionary();
|
|
12
12
|
const field = useDynamicFilterStore((state) => state.popoverFilterData?.field);
|
|
13
13
|
if (!field?.selectOptions?.endPoint) {
|
|
14
|
-
throw new Error("El filtro tipo Select requiere la
|
|
14
|
+
throw new Error("El filtro tipo Select requiere la configuración del Endpoint");
|
|
15
15
|
}
|
|
16
16
|
const autocompleteProps = field?.selectOptions;
|
|
17
17
|
const operators = useMemo(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as Yup from "yup";
|
|
2
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.
|
|
3
|
-
import { b as STRING_OPERATORS } from "../../../constants.
|
|
2
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary-B2qYGLOx.js";
|
|
3
|
+
import { b as STRING_OPERATORS } from "../../../constants-ByqmFATV.js";
|
|
4
4
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
import { useModuleDictionary } from "@m4l/core";
|
|
7
|
-
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.
|
|
8
|
-
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.
|
|
7
|
+
import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index-erpzYu8W.js";
|
|
8
|
+
import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index-BWZWPFn5.js";
|
|
9
9
|
function StringFilter() {
|
|
10
10
|
const { getLabel } = useModuleDictionary();
|
|
11
11
|
const operators = useMemo(
|
|
@@ -95,6 +95,7 @@ class StringFilterHelpers {
|
|
|
95
95
|
)
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
98
99
|
verifyFilter(filter, _field) {
|
|
99
100
|
if (typeof filter.operator !== "string") {
|
|
100
101
|
return false;
|
package/components/DynamicFilter/subcomponents/FieldTypes/{index.5a0c7b12.js → index-Cfs28hud.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { useFormContext } from "react-hook-form";
|
|
4
|
-
import { B as BooleanFilterHelpers } from "./BooleanFilter/index.
|
|
5
|
-
import { S as StringFilterHelpers } from "./StringFilter/index.
|
|
6
|
-
import { D as DateTimeFilterHelpers } from "./DateTimeFilter/index.
|
|
7
|
-
import { N as NumberFilterHelpers } from "./NumberFilter/index.
|
|
8
|
-
import { S as SelectFilterHelpers } from "./SelectFilter/index.
|
|
4
|
+
import { B as BooleanFilterHelpers } from "./BooleanFilter/index-B4mhUk9e.js";
|
|
5
|
+
import { S as StringFilterHelpers } from "./StringFilter/index-BEMRO3Ng.js";
|
|
6
|
+
import { D as DateTimeFilterHelpers } from "./DateTimeFilter/index-CA3JDlD0.js";
|
|
7
|
+
import { N as NumberFilterHelpers } from "./NumberFilter/index-B4R83Pyi.js";
|
|
8
|
+
import { S as SelectFilterHelpers } from "./SelectFilter/index-1XC3u2dm.js";
|
|
9
9
|
const helpersStrategies = {
|
|
10
10
|
boolean: new BooleanFilterHelpers(),
|
|
11
11
|
string: new StringFilterHelpers(),
|
package/components/DynamicFilter/subcomponents/FilterActions/{index.50c175e7.js → index-CYY3cjbX.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
|
-
import { u as useDynamicFilterStore } from "../../store/index.
|
|
4
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../dictionary.
|
|
3
|
+
import { u as useDynamicFilterStore } from "../../store/index-EW1sL9gf.js";
|
|
4
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../dictionary-B2qYGLOx.js";
|
|
5
5
|
import { Skeleton } from "@mui/material";
|
|
6
|
-
import { i as ActionsSkeletonButtonStyled, j as ActionsStyled, k as ActionsClearButtonStyled, l as ActionsSubmitButtonStyled } from "../../slots/dynamicFilterSlots.
|
|
6
|
+
import { i as ActionsSkeletonButtonStyled, j as ActionsStyled, k as ActionsClearButtonStyled, l as ActionsSubmitButtonStyled } from "../../slots/dynamicFilterSlots-CaFVu7xW.js";
|
|
7
7
|
const ASSETS_URL = "frontend/components/dynamic_filter/assets/icons";
|
|
8
8
|
const ASSETS = {
|
|
9
9
|
refresh: "restart.svg",
|
package/components/DynamicFilter/subcomponents/InputFilter/{index.82d4ac5a.js → index-CAdtxARw.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
4
|
-
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../dictionary.
|
|
5
|
-
import { u as useDynamicFilterStore } from "../../store/index.
|
|
6
|
-
import { A as ALL_FIELD } from "../../constants.
|
|
4
|
+
import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../dictionary-B2qYGLOx.js";
|
|
5
|
+
import { u as useDynamicFilterStore } from "../../store/index-EW1sL9gf.js";
|
|
6
|
+
import { A as ALL_FIELD } from "../../constants-ByqmFATV.js";
|
|
7
7
|
import { Skeleton } from "@mui/material";
|
|
8
|
-
import { m as InputFilterStyled, n as InputFilterIconStyled, o as InputFilterInputStyled } from "../../slots/dynamicFilterSlots.
|
|
9
|
-
import { P as PopoverMenuFields } from "../PopoverMenuFields/index.
|
|
8
|
+
import { m as InputFilterStyled, n as InputFilterIconStyled, o as InputFilterInputStyled } from "../../slots/dynamicFilterSlots-CaFVu7xW.js";
|
|
9
|
+
import { P as PopoverMenuFields } from "../PopoverMenuFields/index-Kz-jfM3o.js";
|
|
10
10
|
function useInputFilter() {
|
|
11
11
|
const [selectedFieldIndex, setSelectedFieldIndex] = useState(-1);
|
|
12
12
|
const [filteredFields, setFilteredFields] = useState([]);
|
|
@@ -42,8 +42,7 @@ function useInputFilter() {
|
|
|
42
42
|
}, [anchorEl, inputData, availableFields, getLabel]);
|
|
43
43
|
function handleOpenPopUpClickItem(field) {
|
|
44
44
|
closePopoverMenuFields();
|
|
45
|
-
if (anchorEl)
|
|
46
|
-
showPopoverFilterForAdd(anchorEl(), field);
|
|
45
|
+
if (anchorEl) showPopoverFilterForAdd(anchorEl(), field);
|
|
47
46
|
}
|
|
48
47
|
const inputHandlersProps = {
|
|
49
48
|
onFocus: (event) => {
|
|
@@ -81,8 +80,7 @@ function useInputFilter() {
|
|
|
81
80
|
if (event.key === "Escape") {
|
|
82
81
|
closePopoverMenuFields();
|
|
83
82
|
}
|
|
84
|
-
if (event.key !== "Enter")
|
|
85
|
-
return;
|
|
83
|
+
if (event.key !== "Enter") return;
|
|
86
84
|
if (selectedFieldIndex === -1) {
|
|
87
85
|
if (inputData.trim() === "") {
|
|
88
86
|
closePopoverMenuFields();
|
|
@@ -107,13 +105,37 @@ function useInputFilter() {
|
|
|
107
105
|
}
|
|
108
106
|
};
|
|
109
107
|
return {
|
|
108
|
+
/**
|
|
109
|
+
* URL del icono del inputFilter
|
|
110
|
+
*/
|
|
110
111
|
iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/dynamic_filter/assets/icons/filter.svg`,
|
|
112
|
+
/**
|
|
113
|
+
* Si es esqueleto mostrar la versión de esqueleton
|
|
114
|
+
*/
|
|
111
115
|
isSkeleton,
|
|
116
|
+
/**
|
|
117
|
+
* Texto de placeholder del inputFilter
|
|
118
|
+
*/
|
|
112
119
|
inputPlaceHolder: getLabel(getDynamicFilterDictionary(DICCTIONARY.input_placeholder)),
|
|
120
|
+
/**
|
|
121
|
+
* Texto del inputFilter
|
|
122
|
+
*/
|
|
113
123
|
inputData,
|
|
124
|
+
/**
|
|
125
|
+
* Props para el handler de eventos del inputFilter
|
|
126
|
+
*/
|
|
114
127
|
inputHandlersProps,
|
|
128
|
+
/**
|
|
129
|
+
* Si no hay campos disponibles y no se permite filtrar por todos, no se renderiza el inputFilter
|
|
130
|
+
*/
|
|
115
131
|
canRender: !(!withAllField && availableFields.length === 0),
|
|
132
|
+
/**
|
|
133
|
+
* Campos filtrados por el inputFilter
|
|
134
|
+
*/
|
|
116
135
|
filteredFields,
|
|
136
|
+
/**
|
|
137
|
+
* Indice del campo seleccionado
|
|
138
|
+
*/
|
|
117
139
|
selectedFieldIndex
|
|
118
140
|
};
|
|
119
141
|
}
|
|
@@ -142,8 +164,7 @@ const InputFilter = () => {
|
|
|
142
164
|
filteredFields,
|
|
143
165
|
selectedFieldIndex
|
|
144
166
|
} = useInputFilter();
|
|
145
|
-
if (!canRender)
|
|
146
|
-
return null;
|
|
167
|
+
if (!canRender) return null;
|
|
147
168
|
if (isSkeleton) {
|
|
148
169
|
return /* @__PURE__ */ jsx(InputFilterStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(InputFilterSkeleton, {}) });
|
|
149
170
|
}
|
|
@@ -162,7 +183,6 @@ const InputFilter = () => {
|
|
|
162
183
|
/* @__PURE__ */ jsx(PopoverMenuFields, { fields: filteredFields, selectFieldIndex: selectedFieldIndex })
|
|
163
184
|
] });
|
|
164
185
|
};
|
|
165
|
-
const InputFilter$1 = InputFilter;
|
|
166
186
|
export {
|
|
167
|
-
InputFilter
|
|
187
|
+
InputFilter as I
|
|
168
188
|
};
|
package/components/DynamicFilter/subcomponents/PopoverFilter/{index.fa62a6c3.js → index-COoNIh4L.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useMemo, useCallback } from "react";
|
|
3
3
|
import { useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { u as useDynamicFilterStore } from "../../store/index.
|
|
5
|
-
import { f as fieldFactory, D as DataTypeComponent } from "../FieldTypes/index.
|
|
6
|
-
import { P as PopoverStyled, p as PopoverHeaderStyled, q as PopoverHeaderIconStyled, r as PopoverHeaderTitleStyled, s as PopoverContainerFieldsStyled, t as PopoverHeaderActionsStyled } from "../../slots/dynamicFilterSlots.
|
|
7
|
-
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.
|
|
8
|
-
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.
|
|
9
|
-
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.
|
|
4
|
+
import { u as useDynamicFilterStore } from "../../store/index-EW1sL9gf.js";
|
|
5
|
+
import { f as fieldFactory, D as DataTypeComponent } from "../FieldTypes/index-Cfs28hud.js";
|
|
6
|
+
import { P as PopoverStyled, p as PopoverHeaderStyled, q as PopoverHeaderIconStyled, r as PopoverHeaderTitleStyled, s as PopoverContainerFieldsStyled, t as PopoverHeaderActionsStyled } from "../../slots/dynamicFilterSlots-CaFVu7xW.js";
|
|
7
|
+
import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index-Ct48jRjb.js";
|
|
8
|
+
import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index-D_42VfUR.js";
|
|
9
|
+
import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index-i5875EXe.js";
|
|
10
10
|
function usePopoverFilter() {
|
|
11
11
|
let anchorEl;
|
|
12
12
|
let field;
|
|
@@ -72,6 +72,7 @@ function usePopoverFilter() {
|
|
|
72
72
|
const filterField = { ...filterFormValue, ...dataFieldValues };
|
|
73
73
|
const newFilter = {
|
|
74
74
|
...formFilter,
|
|
75
|
+
// todo: mejorar el tipado que se le envía a getFilterFromFormValue
|
|
75
76
|
...fieldFactory(filterField.fieldType).getFilterFromFormValue(filterField),
|
|
76
77
|
isSet: true
|
|
77
78
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { u as useDynamicFilterStore } from "../../store/index.
|
|
4
|
-
import { u as PopoverMenuStyled, v as PopoverMenuItemStyled, w as PopoverMenuItemIconStyled, x as PopoverMenuItemLabelStyled } from "../../slots/dynamicFilterSlots.
|
|
3
|
+
import { u as useDynamicFilterStore } from "../../store/index-EW1sL9gf.js";
|
|
4
|
+
import { u as PopoverMenuStyled, v as PopoverMenuItemStyled, w as PopoverMenuItemIconStyled, x as PopoverMenuItemLabelStyled } from "../../slots/dynamicFilterSlots-CaFVu7xW.js";
|
|
5
5
|
function usePopoverMenuFields() {
|
|
6
6
|
const { getLabel } = useModuleDictionary();
|
|
7
7
|
const fnAnchorEl = useDynamicFilterStore((state) => state.fnAnchorEl);
|