@m4l/components 9.1.125 → 9.1.127
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/.storybook/constants.d.ts +1 -0
- package/.storybook/utils/getStylesColorsByMode.d.ts +4 -4
- package/@types/export.d.ts +0 -3
- package/@types/types.d.ts +19 -9
- package/components/Chip/Chip.js +1 -2
- package/components/Chip/ChipStyles.js +49 -35
- package/components/Chip/types.d.ts +0 -4
- package/components/CommonActions/classes/index.js +1 -1
- package/components/DataGrid/formatters/index.d.ts +1 -0
- package/components/DragResizeWindow/index.d.ts +1 -2
- package/components/DynamicFilter/DynamicFIlter.styles.js +1 -1
- package/components/DynamicFilter/constants.d.ts +3 -2
- package/components/DynamicFilter/constants.js +4 -2
- package/components/DynamicFilter/helpers/formatToInitialFilters.js +3 -3
- package/components/DynamicFilter/helpers/formatToRowFilter.js +6 -2
- package/components/DynamicFilter/helpers/getPurgedInitialFiltersApplied.d.ts +2 -2
- package/components/DynamicFilter/index.d.ts +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +28 -28
- package/components/DynamicFilter/store/DynamicFilterContext.d.ts +1 -9
- package/components/DynamicFilter/store/DynamicFilterContext.js +7 -4
- package/components/DynamicFilter/store/DynamicFilterStore.d.ts +3 -199
- package/components/DynamicFilter/store/DynamicFilterStore.js +28 -14
- package/components/DynamicFilter/store/DynamicFilterStoreTypes.d.ts +200 -0
- package/components/DynamicFilter/store/useDynamicFilterStore.d.ts +1 -1
- package/components/DynamicFilter/store/useDynamicFilterStore.js +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.js +2 -2
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.js +4 -3
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/helpers.d.ts +5 -5
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.d.ts +5 -5
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/FieldTypeInterface.d.ts +5 -5
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/helpers.d.ts +5 -5
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.d.ts +42 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.js +121 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.d.ts +5 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +49 -0
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.d.ts +7 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.js +8 -12
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +5 -8
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.d.ts +5 -5
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.d.ts +2 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.js +2 -0
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.js +8 -1
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.d.ts +7 -3
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.js +15 -14
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +4 -3
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.js +3 -2
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +2 -2
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +5 -4
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/usePopoverMenuFields.d.ts +6 -4
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/usePopoverMenuFields.js +8 -5
- package/components/DynamicFilter/types.d.ts +52 -25
- package/components/DynamicSort/DynamicSort.js +14 -0
- package/components/DynamicSort/DynamicSort.styles.js +365 -0
- package/components/DynamicSort/constants.js +16 -0
- package/components/DynamicSort/dictionary.js +28 -0
- package/components/DynamicSort/helpers/formatToInitialSorts.js +12 -0
- package/components/DynamicSort/helpers/formatToRowSort.js +10 -0
- package/components/DynamicSort/helpers/getPurgedInitialSortApplyed.d.ts +2 -2
- package/components/DynamicSort/helpers/getPurgedInitialSortApplyed.js +55 -0
- package/components/DynamicSort/index.d.ts +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.js +146 -0
- package/components/DynamicSort/slots/SlotsEnum.js +34 -0
- package/components/DynamicSort/store/DynamicSortContext.js +76 -0
- package/components/DynamicSort/store/DynamicSortStore.d.ts +6 -6
- package/components/DynamicSort/store/DynamicSortStore.js +227 -0
- package/components/DynamicSort/store/useDynamicSortStore.js +14 -0
- package/components/DynamicSort/subcomponents/AppliedSortChip/AppliedSortChip.js +27 -0
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.js +37 -0
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +15 -0
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.js +15 -0
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +35 -0
- package/components/DynamicSort/subcomponents/DynamicSortBase/useDynamicSortBase.js +9 -0
- package/components/DynamicSort/subcomponents/FieldTypes/DataTypeComponent.js +16 -0
- package/components/DynamicSort/subcomponents/FieldTypes/FieldTypeInterface.d.ts +5 -5
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/helpers.d.ts +5 -5
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/helpers.js +84 -0
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.js +36 -0
- package/components/DynamicSort/subcomponents/FieldTypes/fieldFactory.js +17 -0
- package/components/DynamicSort/subcomponents/InputSort/InputSort.js +36 -0
- package/components/DynamicSort/subcomponents/InputSort/InputSortSkeleton.js +19 -0
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.d.ts +2 -2
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.js +132 -0
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +2 -2
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +38 -0
- package/components/DynamicSort/subcomponents/PopoverMenuFields/usePopoverMenuFields.d.ts +3 -3
- package/components/DynamicSort/subcomponents/PopoverMenuFields/usePopoverMenuFields.js +29 -0
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +64 -0
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +2 -2
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.js +99 -0
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +44 -0
- package/components/DynamicSort/subcomponents/SortActions/SortActionsSkeleton.js +12 -0
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +39 -0
- package/components/DynamicSort/types.d.ts +3 -3
- package/components/Icon/Icon.js +1 -1
- package/components/Icon/constants.js +2 -2
- package/components/Icon/slots/IconSlots.js +1 -1
- package/components/LanguagePopover/LanguagePopover.d.ts +14 -7
- package/components/LanguagePopover/LanguagePopover.js +67 -134
- package/components/LanguagePopover/LanguagePopover.styles.d.ts +2 -0
- package/components/LanguagePopover/LanguagePopover.styles.js +19 -0
- package/components/LanguagePopover/constants.d.ts +1 -0
- package/components/LanguagePopover/constants.js +4 -0
- package/components/LanguagePopover/slots/LanguagePopoverEnum.d.ts +5 -0
- package/components/LanguagePopover/slots/LanguagePopoverEnum.js +9 -0
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +5 -0
- package/components/LanguagePopover/slots/LanguagePopoverSlots.js +24 -0
- package/components/LanguagePopover/types.d.ts +17 -7
- package/components/MFIsolationApp/MFIsolationApp.js +4 -4
- package/components/MenuActions/MenuActions.js +39 -26
- package/components/MenuActions/MenuActions.styles.js +1 -1
- package/components/MenuActions/types.d.ts +6 -1
- package/components/ModalDialog/ModalDialog.js +21 -27
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +1 -1
- package/components/PrintingSystem/classes/index.js +1 -1
- package/components/PropertyValue/PropertyValue.js +7 -4
- package/components/PropertyValue/PropertyValue.styles.js +6 -6
- package/components/PropertyValue/slots/PropertyValueEnum.d.ts +1 -1
- package/components/PropertyValue/slots/PropertyValueEnum.js +1 -1
- package/components/PropertyValue/slots/PropertyValueSlots.d.ts +3 -3
- package/components/PropertyValue/slots/PropertyValueSlots.js +6 -6
- package/components/PropertyValue/types.d.ts +4 -4
- package/components/ScrollBar/ScrollBar.js +3 -1
- package/components/animate/index.d.ts +0 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +1 -2
- package/components/areas/components/AreasViewer/types.d.ts +1 -1
- package/components/commercial/AppBarCommercial/classes/index.js +1 -1
- package/components/commercial/SectionCommercial/classes/index.js +1 -1
- package/components/commercial/TopBar/classes/index.js +1 -1
- package/components/extended/React-Spinners/PropagateLoaderSpinner/index.d.ts +1 -0
- package/components/extended/React-Spinners/index.d.ts +1 -0
- package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/SplitLayout.js +3 -3
- package/components/extended/React-Splitter-Layout/index.d.ts +1 -0
- package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/types.d.ts +1 -1
- package/components/extended/React-Window/FixedSizeList/FixedSizeList.d.ts +6 -0
- package/components/extended/React-Window/FixedSizeList/FixedSizeList.js +11 -0
- package/components/extended/React-Window/FixedSizeList/FixedSizeList.styles.d.ts +2 -0
- package/components/extended/React-Window/FixedSizeList/FixedSizeList.styles.js +6 -0
- package/components/extended/React-Window/FixedSizeList/constants.d.ts +2 -0
- package/components/extended/React-Window/FixedSizeList/constants.js +7 -0
- package/components/extended/React-Window/FixedSizeList/index.d.ts +1 -0
- package/components/extended/React-Window/FixedSizeList/slots/FixedSizeListSlots.d.ts +4 -0
- package/components/extended/React-Window/FixedSizeList/slots/FixedSizeListSlots.js +14 -0
- package/components/extended/React-Window/FixedSizeList/slots/slots.d.ts +3 -0
- package/components/extended/React-Window/FixedSizeList/slots/slots.js +7 -0
- package/components/extended/React-Window/FixedSizeList/types.d.ts +9 -0
- package/components/extended/React-Window/VariableSizeList/VariableSizeList.d.ts +7 -0
- package/components/extended/React-Window/VariableSizeList/VariableSizeList.js +14 -0
- package/components/extended/React-Window/VariableSizeList/VariableSizeList.styles.d.ts +2 -0
- package/components/extended/React-Window/VariableSizeList/constants.d.ts +2 -0
- package/components/extended/React-Window/VariableSizeList/constants.js +6 -0
- package/components/extended/React-Window/VariableSizeList/index.d.ts +2 -0
- package/components/extended/React-Window/VariableSizeList/slots/VariableSizeListSlots.d.ts +4 -0
- package/components/extended/React-Window/VariableSizeList/slots/slots.d.ts +3 -0
- package/components/extended/React-Window/VariableSizeList/types.d.ts +9 -0
- package/components/extended/React-Window/index.d.ts +2 -0
- package/components/extended/index.d.ts +4 -0
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.d.ts +2 -1
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js +22 -6
- package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
- package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.js +3 -2
- package/components/formatters/DistanceToNowFormatter/types.d.ts +11 -3
- package/components/index.d.ts +5 -6
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/MenuItem.js +2 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +28 -21
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +6 -6
- package/components/mui_extended/MenuItem/types.d.ts +2 -2
- package/components/mui_extended/Popover/Popover.js +3 -0
- package/components/mui_extended/TabContext/index.js +2 -2
- package/components/mui_extended/index.d.ts +1 -0
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js +4 -4
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +2 -2
- package/components/popups/components/PopupsProvider/hooks/usePopupsStore/index.js +1 -1
- package/contexts/index.d.ts +0 -1
- package/hooks/index.d.ts +3 -1
- package/hooks/useSvgColor/constants.d.ts +2 -1
- package/hooks/useSvgColor/constants.js +7 -5
- package/hooks/useSvgColor/helpers.js +3 -3
- package/hooks/useSvgColor/types.d.ts +3 -1
- package/hooks/useSvgColor/useSvgColor.js +10 -9
- package/hooks/useTab/index.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +177 -174
- package/not_recognized/index.js +23261 -0
- package/package.json +4 -3
- package/patchLibErrors/defaultPropsError.d.ts +3 -0
- package/test/TestAppWrapper.d.ts +1 -1
- package/utils/ObjectQueue.d.ts +18 -0
- package/utils/ObjectQueue.js +33 -0
- package/utils/capitalizeFirstLetter.js +10 -1
- package/utils/getComponentUtilityClass.js +7 -0
- package/utils/getPaletteColor.js +18 -0
- package/utils/index.d.ts +8 -16
- package/utils/index.js +1 -11
- package/utils/isValidDate.js +6 -0
- package/vendor.js +172 -0
- package/.storybook/decorators/WithMapProvider/constants.d.ts +0 -2
- package/.storybook/decorators/WithMapProvider/index.d.ts +0 -1
- package/components/DynamicFilter/DynamicFilter.stories.d.ts +0 -29
- package/components/LanguagePopover/classes/constants.d.ts +0 -1
- package/components/LanguagePopover/classes/constants.js +0 -4
- package/components/LanguagePopover/classes/index.d.ts +0 -12
- package/components/LanguagePopover/classes/index.js +0 -33
- package/components/LanguagePopover/classes/types.d.ts +0 -8
- package/components/LanguagePopover/styles.d.ts +0 -5
- package/components/LanguagePopover/styles.js +0 -30
- package/components/LanguagePopover/tests/constants.d.ts +0 -1
- package/components/LanguagePopover/tests/constants.js +0 -4
- package/components/formatters/CourseFormatter/CourseFormatter.d.ts +0 -14
- package/components/formatters/CourseFormatter/CourseFormatter.js +0 -33
- package/components/formatters/CourseFormatter/CourseFormatter.styles.d.ts +0 -2
- package/components/formatters/CourseFormatter/CourseFormatter.styles.js +0 -23
- package/components/formatters/CourseFormatter/constants.d.ts +0 -3
- package/components/formatters/CourseFormatter/constants.js +0 -6
- package/components/formatters/CourseFormatter/dictionary.d.ts +0 -12
- package/components/formatters/CourseFormatter/dictionary.js +0 -18
- package/components/formatters/CourseFormatter/helper.d.ts +0 -4
- package/components/formatters/CourseFormatter/helper.js +0 -28
- package/components/formatters/CourseFormatter/index.d.ts +0 -2
- package/components/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts +0 -3
- package/components/formatters/CourseFormatter/slots/CourseFormatterEnum.js +0 -7
- package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +0 -3
- package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.js +0 -12
- package/components/formatters/CourseFormatter/types.d.ts +0 -24
- package/components/formatters/DistanceToNowFormatter/stories/basic.stories.d.ts +0 -157
- package/components/formatters/DistanceToNowFormatter/stories/constants.d.ts +0 -3
- package/components/formatters/DistanceToNowFormatter/stories/dictionary.d.ts +0 -0
- package/components/formatters/DistanceToNowFormatter/stories/subcomponents/WithDTNFProvider.d.ts +0 -6
- package/components/formatters/DistanceToNowFormatter/stories/types.d.ts +0 -3
- package/components/gclick/MyDevice/MyDevice.d.ts +0 -6
- package/components/gclick/MyDevice/MyDevice.js +0 -26
- package/components/gclick/MyDevice/MyDevice.styles.d.ts +0 -2
- package/components/gclick/MyDevice/MyDevice.styles.js +0 -22
- package/components/gclick/MyDevice/constants.d.ts +0 -2
- package/components/gclick/MyDevice/constants.js +0 -4
- package/components/gclick/MyDevice/index.d.ts +0 -1
- package/components/gclick/MyDevice/slots/MyDeviceSlots.d.ts +0 -3
- package/components/gclick/MyDevice/slots/MyDeviceSlots.js +0 -22
- package/components/gclick/MyDevice/slots/slots.d.ts +0 -5
- package/components/gclick/MyDevice/slots/slots.js +0 -9
- package/components/gclick/MyDevice/stories/basic.stories.d.ts +0 -9
- package/components/gclick/MyDevice/stories/constants.d.ts +0 -3
- package/components/gclick/MyDevice/stories/dictionary.d.ts +0 -0
- package/components/gclick/MyDevice/stories/subcomponents/WithMyDeviceProvider.d.ts +0 -2
- package/components/gclick/MyDevice/stories/types.d.ts +0 -3
- package/components/gclick/MyDevice/subcomponents/PropertyValue/index.d.ts +0 -5
- package/components/gclick/MyDevice/subcomponents/PropertyValue/types.d.ts +0 -5
- package/components/gclick/MyDevice/types.d.ts +0 -18
- package/components/gclick/MyDeviceStatus/MyDeviceStatus.d.ts +0 -6
- package/components/gclick/MyDeviceStatus/MyDeviceStatus.js +0 -68
- package/components/gclick/MyDeviceStatus/MyDeviceStatus.styles.d.ts +0 -2
- package/components/gclick/MyDeviceStatus/MyDeviceStatus.styles.js +0 -22
- package/components/gclick/MyDeviceStatus/constants.d.ts +0 -13
- package/components/gclick/MyDeviceStatus/constants.js +0 -17
- package/components/gclick/MyDeviceStatus/dictionary.d.ts +0 -13
- package/components/gclick/MyDeviceStatus/dictionary.js +0 -19
- package/components/gclick/MyDeviceStatus/icons.d.ts +0 -11
- package/components/gclick/MyDeviceStatus/icons.js +0 -14
- package/components/gclick/MyDeviceStatus/index.d.ts +0 -1
- package/components/gclick/MyDeviceStatus/slots/MyDeviceStatusSlots.d.ts +0 -3
- package/components/gclick/MyDeviceStatus/slots/MyDeviceStatusSlots.js +0 -22
- package/components/gclick/MyDeviceStatus/slots/slots.d.ts +0 -5
- package/components/gclick/MyDeviceStatus/slots/slots.js +0 -9
- package/components/gclick/MyDeviceStatus/stories/basic.stories.d.ts +0 -41
- package/components/gclick/MyDeviceStatus/stories/constants.d.ts +0 -3
- package/components/gclick/MyDeviceStatus/stories/dataMocks.d.ts +0 -55
- package/components/gclick/MyDeviceStatus/stories/subcomponents/WithMyDeviceProvider.d.ts +0 -2
- package/components/gclick/MyDeviceStatus/stories/types.d.ts +0 -3
- package/components/gclick/MyDeviceStatus/subcomponents/PropertyValue/index.d.ts +0 -5
- package/components/gclick/MyDeviceStatus/subcomponents/PropertyValue/types.d.ts +0 -5
- package/components/gclick/MyDeviceStatus/types.d.ts +0 -14
- package/components/gclick/constants.d.ts +0 -1
- package/components/gclick/constants.js +0 -4
- package/components/gclick/types.d.ts +0 -60
- package/components/maps/components/Map/Map.d.ts +0 -8
- package/components/maps/components/Map/Map.js +0 -34
- package/components/maps/components/Map/Map.styles.d.ts +0 -2
- package/components/maps/components/Map/Map.styles.js +0 -227
- package/components/maps/components/Map/classes/index.d.ts +0 -8
- package/components/maps/components/Map/classes/index.js +0 -110
- package/components/maps/components/Map/classes/types.d.ts +0 -69
- package/components/maps/components/Map/constants.d.ts +0 -36
- package/components/maps/components/Map/constants.js +0 -49
- package/components/maps/components/Map/contexts/MapContext/MapContext.d.ts +0 -21
- package/components/maps/components/Map/contexts/MapContext/MapContext.js +0 -58
- package/components/maps/components/Map/contexts/MapContext/helper.d.ts +0 -8
- package/components/maps/components/Map/contexts/MapContext/index.d.ts +0 -2
- package/components/maps/components/Map/contexts/MapContext/store.d.ts +0 -19
- package/components/maps/components/Map/contexts/MapContext/store.js +0 -369
- package/components/maps/components/Map/contexts/MapContext/types.d.ts +0 -597
- package/components/maps/components/Map/dictionary.d.ts +0 -32
- package/components/maps/components/Map/dictionary.js +0 -38
- package/components/maps/components/Map/external/Control/index.d.ts +0 -9
- package/components/maps/components/Map/external/Control/index.js +0 -42
- package/components/maps/components/Map/external/Control/types.d.ts +0 -7
- package/components/maps/components/Map/external/Popup/component.d.ts +0 -4
- package/components/maps/components/Map/external/Popup/div-overlay.d.ts +0 -4
- package/components/maps/components/Map/external/Popup/element.d.ts +0 -4
- package/components/maps/components/Map/external/Popup/generic.d.ts +0 -4
- package/components/maps/components/Map/external/Popup/index.d.ts +0 -4
- package/components/maps/components/Map/external/googleMutant/LRUMap.d.ts +0 -99
- package/components/maps/components/Map/external/googleMutant/googleMutant.d.ts +0 -1
- package/components/maps/components/Map/external/googleMutant/googleMutant.js +0 -1
- package/components/maps/components/Map/external/googleMutant/googleMutantNoDelete.d.ts +0 -1
- package/components/maps/components/Map/external/googleMutant/index.d.ts +0 -132
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.d.ts +0 -8
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.js +0 -257
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/index.d.ts +0 -6
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/index.js +0 -33
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/types.d.ts +0 -7
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/index.d.ts +0 -5
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/index.js +0 -76
- package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/types.d.ts +0 -12
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarker.d.ts +0 -9
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerGrua.d.ts +0 -4
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerTaxi.d.ts +0 -4
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index.d.ts +0 -5
- package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index.js +0 -79
- package/components/maps/components/Map/featureRenders/index.d.ts +0 -2
- package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +0 -6
- package/components/maps/components/Map/hooks/useAutoFocus/index.js +0 -78
- package/components/maps/components/Map/hooks/useAutoFocus/types.d.ts +0 -15
- package/components/maps/components/Map/hooks/useDisableClickEvents/index.d.ts +0 -6
- package/components/maps/components/Map/hooks/useDisableZoomEvents/index.d.ts +0 -6
- package/components/maps/components/Map/hooks/useDisableZoomEvents/index.js +0 -21
- package/components/maps/components/Map/hooks/useMapStore/index.d.ts +0 -6
- package/components/maps/components/Map/hooks/useMapStore/index.js +0 -13
- package/components/maps/components/Map/icons.d.ts +0 -45
- package/components/maps/components/Map/icons.js +0 -61
- package/components/maps/components/Map/index.d.ts +0 -9
- package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +0 -11
- package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.js +0 -74
- package/components/maps/components/Map/pluginLayers/index.d.ts +0 -1
- package/components/maps/components/Map/popups/MapPopupMyGps/MapPopupMyGps.d.ts +0 -7
- package/components/maps/components/Map/popups/MapPopupMyGps/MapPopupMyGps.js +0 -97
- package/components/maps/components/Map/popups/MapPopupMyGps/MapPopupMyGps.styles.d.ts +0 -2
- package/components/maps/components/Map/popups/MapPopupMyGps/MapPopupMyGps.styles.js +0 -34
- package/components/maps/components/Map/popups/MapPopupMyGps/constants.d.ts +0 -3
- package/components/maps/components/Map/popups/MapPopupMyGps/constants.js +0 -6
- package/components/maps/components/Map/popups/MapPopupMyGps/dictionary.d.ts +0 -15
- package/components/maps/components/Map/popups/MapPopupMyGps/dictionary.js +0 -21
- package/components/maps/components/Map/popups/MapPopupMyGps/index.d.ts +0 -2
- package/components/maps/components/Map/popups/MapPopupMyGps/slots/ MapPopupMyGpsSlots.d.ts +0 -3
- package/components/maps/components/Map/popups/MapPopupMyGps/slots/ MapPopupMyGpsSlots.js +0 -21
- package/components/maps/components/Map/popups/MapPopupMyGps/slots/slots.d.ts +0 -5
- package/components/maps/components/Map/popups/MapPopupMyGps/slots/slots.js +0 -9
- package/components/maps/components/Map/popups/MapPopupMyGps/stories/basic.stories.d.ts +0 -9
- package/components/maps/components/Map/popups/MapPopupMyGps/stories/constants.d.ts +0 -3
- package/components/maps/components/Map/popups/MapPopupMyGps/stories/dictionary.d.ts +0 -0
- package/components/maps/components/Map/popups/MapPopupMyGps/stories/subcomponents/WithMapOpenPopup.d.ts +0 -5
- package/components/maps/components/Map/popups/MapPopupMyGps/stories/types.d.ts +0 -3
- package/components/maps/components/Map/popups/MapPopupMyGps/subcomponents/PropertyValue/index.d.ts +0 -5
- package/components/maps/components/Map/popups/MapPopupMyGps/subcomponents/PropertyValue/index.js +0 -14
- package/components/maps/components/Map/popups/MapPopupMyGps/subcomponents/PropertyValue/types.d.ts +0 -5
- package/components/maps/components/Map/popups/MapPopupMyGps/types.d.ts +0 -7
- package/components/maps/components/Map/popups/index.d.ts +0 -1
- package/components/maps/components/Map/popups/types.d.ts +0 -10
- package/components/maps/components/Map/slots/MapSlots.d.ts +0 -4
- package/components/maps/components/Map/slots/MapSlots.js +0 -24
- package/components/maps/components/Map/slots/slots.d.ts +0 -6
- package/components/maps/components/Map/slots/slots.js +0 -10
- package/components/maps/components/Map/stories/basic.stories.d.ts +0 -13
- package/components/maps/components/Map/stories/constants.d.ts +0 -3
- package/components/maps/components/Map/stories/dictionary.d.ts +0 -0
- package/components/maps/components/Map/stories/subcomponents/ContentExample.d.ts +0 -4
- package/components/maps/components/Map/stories/types.d.ts +0 -3
- package/components/maps/components/Map/subcomponents/Controls/index.d.ts +0 -17
- package/components/maps/components/Map/subcomponents/Controls/index.js +0 -31
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/index.js +0 -13
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +0 -10
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.js +0 -59
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +0 -9
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.js +0 -17
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +0 -18
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.js +0 -140
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +0 -12
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.js +0 -52
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +0 -8
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +0 -43
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.js +0 -30
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +0 -26
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.js +0 -134
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +0 -2
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.js +0 -39
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.js +0 -73
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +0 -2
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.js +0 -25
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.js +0 -19
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/types.d.ts +0 -5
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +0 -11
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/index.js +0 -101
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +0 -30
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.js +0 -34
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +0 -11
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +0 -45
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +0 -13
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.js +0 -245
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +0 -13
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +0 -13
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.js +0 -17
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.js +0 -41
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/model.d.ts +0 -17
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +0 -5
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +0 -33
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +0 -6
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +0 -2
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.js +0 -6
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.js +0 -32
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +0 -9
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.js +0 -52
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/Controls/types.d.ts +0 -22
- package/components/maps/components/Map/subcomponents/LayersContainer/index.d.ts +0 -5
- package/components/maps/components/Map/subcomponents/LayersContainer/index.js +0 -33
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +0 -14
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.js +0 -132
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +0 -9
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.js +0 -24
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +0 -11
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +0 -11
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.js +0 -13
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -5
- package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/types.d.ts +0 -2
- package/components/maps/components/Map/subcomponents/TileLayers/index.d.ts +0 -6
- package/components/maps/components/Map/subcomponents/TileLayers/index.js +0 -13
- package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +0 -4
- package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.js +0 -100
- package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +0 -6
- package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.js +0 -35
- package/components/maps/components/Map/types.d.ts +0 -56
- package/components/maps/components/MapGpsTools/MapGpsTools.d.ts +0 -4
- package/components/maps/components/MapGpsTools/MapGpsTools.js +0 -10
- package/components/maps/components/MapGpsTools/classes/index.d.ts +0 -7
- package/components/maps/components/MapGpsTools/classes/index.js +0 -21
- package/components/maps/components/MapGpsTools/classes/types.d.ts +0 -14
- package/components/maps/components/MapGpsTools/constants.d.ts +0 -8
- package/components/maps/components/MapGpsTools/constants.js +0 -71
- package/components/maps/components/MapGpsTools/contexts/MapGpsToolsContext/index.d.ts +0 -21
- package/components/maps/components/MapGpsTools/contexts/MapGpsToolsContext/index.js +0 -48
- package/components/maps/components/MapGpsTools/contexts/MapGpsToolsContext/store.d.ts +0 -19
- package/components/maps/components/MapGpsTools/contexts/MapGpsToolsContext/store.js +0 -155
- package/components/maps/components/MapGpsTools/contexts/MapGpsToolsContext/types.d.ts +0 -160
- package/components/maps/components/MapGpsTools/dictionary.d.ts +0 -62
- package/components/maps/components/MapGpsTools/dictionary.js +0 -73
- package/components/maps/components/MapGpsTools/hooks/useLayers/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/hooks/useLayers/index.js +0 -57
- package/components/maps/components/MapGpsTools/hooks/useMapGpsToolsStore/index.d.ts +0 -5
- package/components/maps/components/MapGpsTools/hooks/useMapGpsToolsStore/index.js +0 -13
- package/components/maps/components/MapGpsTools/icons.d.ts +0 -23
- package/components/maps/components/MapGpsTools/icons.js +0 -26
- package/components/maps/components/MapGpsTools/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/styles.d.ts +0 -1
- package/components/maps/components/MapGpsTools/styles.js +0 -18
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/index.d.ts +0 -9
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/index.js +0 -88
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +0 -20
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.js +0 -40
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.d.ts +0 -34
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.js +0 -77
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +0 -14
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.js +0 -216
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +0 -11
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +0 -63
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +0 -5
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.js +0 -36
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +0 -25
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.js +0 -19
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +0 -5
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.js +0 -73
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +0 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.js +0 -8
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +0 -52
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +0 -6
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +0 -8
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.js +0 -11
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.js +0 -132
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +0 -7
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +0 -9
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.js +0 -12
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +0 -5
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +0 -61
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/types.d.ts +0 -2
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +0 -80
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/types.d.ts +0 -7
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.js +0 -12
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.js +0 -49
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.js +0 -89
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +0 -10
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/types.d.ts +0 -27
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +0 -9
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.js +0 -86
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +0 -7
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.js +0 -85
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +0 -12
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +0 -116
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +0 -22
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.js +0 -162
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +0 -12
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +0 -113
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +0 -4
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +0 -75
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +0 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.js +0 -8
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +0 -9
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.js +0 -49
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +0 -7
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/constants.js +0 -13
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/model.d.ts +0 -114
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/types.d.ts +0 -7
- package/components/maps/components/MapGpsTools/types.d.ts +0 -34
- package/components/maps/index.d.ts +0 -4
- package/components/maps/utils/courseToCartesianAngle.d.ts +0 -6
- package/components/maps/utils/courseToCartesianAngle.js +0 -8
- package/components/maps/utils/courseToCssAngle.d.ts +0 -9
- package/components/maps/utils/courseToCssAngle.js +0 -13
- package/components/maps/utils/index.d.ts +0 -6
- package/components/maps/utils/isFeature.d.ts +0 -2
- package/components/maps/utils/isFeature.js +0 -6
- package/components/maps/utils/isFeatureCollection.d.ts +0 -2
- package/components/maps/utils/isFeatureCollection.js +0 -6
- package/components/maps/utils/isFeatureCollectionDraft.d.ts +0 -6
- package/components/maps/utils/isFeatureCollectionDraft.js +0 -6
- package/components/maps/utils/isGeometry.d.ts +0 -2
- package/components/maps/utils/isGeometry.js +0 -6
- package/contexts/RealTimeContext/RealTimeContext.d.ts +0 -19
- package/contexts/RealTimeContext/RealTimeContext.js +0 -76
- package/contexts/RealTimeContext/index.d.ts +0 -1
- package/contexts/RealTimeContext/store.d.ts +0 -19
- package/contexts/RealTimeContext/store.js +0 -58
- package/contexts/RealTimeContext/types.d.ts +0 -96
- package/hooks/useRealTime/index.d.ts +0 -6
- /package/components/{PaperForm → DynamicSort}/index.js +0 -0
- /package/components/{formatters/CourseFormatter → DynamicSort/slots}/index.js +0 -0
- /package/components/{gclick/MyDevice → DynamicSort/subcomponents/AppliedSortChip}/index.js +0 -0
- /package/components/{gclick/MyDeviceStatus → DynamicSort/subcomponents/AppliedSorts}/index.js +0 -0
- /package/components/{maps/components/Map/external/googleMutant → DynamicSort/subcomponents/DynamicSortBase}/index.js +0 -0
- /package/components/{maps/components/Map/featureRenders → DynamicSort/subcomponents/InputSort}/index.js +0 -0
- /package/components/{maps/components/Map → DynamicSort/subcomponents/PopoverMenuFields}/index.js +0 -0
- /package/components/{maps/components/Map/pluginLayers → DynamicSort/subcomponents/PopoverSort}/index.js +0 -0
- /package/components/{maps/components/Map/popups/MapPopupMyGps → DynamicSort/subcomponents/SortActions}/index.js +0 -0
- /package/components/{extended/React-Splitter/SplitLayout/tests/SplitLayout.test.d.ts → LanguagePopover/tests/LanguagePopover.test.d.ts} +0 -0
- /package/components/{maps/components/Map/popups → extended/React-Spinners/PropagateLoaderSpinner}/index.js +0 -0
- /package/components/{maps/components/MapGpsTools → extended/React-Spinners}/index.js +0 -0
- /package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/SplitLayout.d.ts +0 -0
- /package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/SplitLayout.styles.d.ts +0 -0
- /package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/SplitLayout.styles.js +0 -0
- /package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/constants.d.ts +0 -0
- /package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/constants.js +0 -0
- /package/components/{maps → extended/React-Splitter-Layout}/index.js +0 -0
- /package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/slots/SplitLayoutEnum.d.ts +0 -0
- /package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/slots/SplitLayoutEnum.js +0 -0
- /package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/slots/SplitLayoutSlots.d.ts +0 -0
- /package/components/extended/{React-Splitter/SplitLayout → React-Splitter-Layout}/slots/SplitLayoutSlots.js +0 -0
- /package/components/{formatters/CourseFormatter/test/CourserFormatter.test.d.ts → extended/React-Splitter-Layout/tests/SplitLayout.test.d.ts} +0 -0
- /package/components/{maps/utils → extended/React-Window/FixedSizeList}/index.js +0 -0
- /package/{contexts/RealTimeContext → components/extended/React-Window/VariableSizeList}/index.js +0 -0
- /package/components/{maps/components/Map/contexts/MapContext/helper.js → extended/React-Window/index.js} +0 -0
- /package/components/{maps/components/Map/external/googleMutant/LRUMap.js → extended/index.js} +0 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { useModuleDictionary } from "@m4l/core";
|
|
2
2
|
import { u as useDynamicFilterStore } from "../../store/useDynamicFilterStore.js";
|
|
3
|
+
import { shallow } from "zustand/shallow";
|
|
3
4
|
function usePopoverMenuFields() {
|
|
4
5
|
const { getLabel } = useModuleDictionary();
|
|
5
|
-
const
|
|
6
|
+
const openPopoverMenuFields = useDynamicFilterStore((state) => state.isOpenPopoverMenuFields);
|
|
7
|
+
const elementRef = useDynamicFilterStore((state) => state.elementRef, shallow);
|
|
8
|
+
const isOpenPopoverMenuFields = useDynamicFilterStore((state) => state.isOpenPopoverMenuFields);
|
|
6
9
|
const { showPopoverFilterForAdd, closePopoverMenuFields } = useDynamicFilterStore(
|
|
7
10
|
(state) => state.actions
|
|
8
11
|
);
|
|
9
12
|
function handleOpenPopUpClickItem(_event, field) {
|
|
10
|
-
|
|
11
|
-
showPopoverFilterForAdd(fnAnchorEl(), field);
|
|
12
|
-
}
|
|
13
|
+
showPopoverFilterForAdd(field);
|
|
13
14
|
}
|
|
14
15
|
function handleClosePopover() {
|
|
15
16
|
closePopoverMenuFields(false);
|
|
@@ -18,7 +19,9 @@ function usePopoverMenuFields() {
|
|
|
18
19
|
return field.label ?? getLabel(field.dictionaryId);
|
|
19
20
|
}
|
|
20
21
|
return {
|
|
21
|
-
|
|
22
|
+
elementRef,
|
|
23
|
+
openPopoverMenuFields,
|
|
24
|
+
isOpenPopoverMenuFields,
|
|
22
25
|
getItemLabel,
|
|
23
26
|
handleClosePopover,
|
|
24
27
|
handleOpenPopUpClickItem
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
|
-
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
3
2
|
import { Maybe } from '@m4l/core';
|
|
4
3
|
import { RHFAutocompleteAsyncBaseProps } from '../hook-form/RHFAutocompleteAsync/types';
|
|
5
4
|
import { DynamicFilterSlots } from './slots';
|
|
6
|
-
|
|
5
|
+
import { RHFSelectProps } from '../hook-form/RHFSelect';
|
|
6
|
+
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
7
|
+
export type FieldType = 'number' | 'string' | 'boolean' | 'datetime' | 'select' | 'selectAsync';
|
|
7
8
|
export type OperandType = number | string | boolean | Date | [] | object;
|
|
8
9
|
export type OperandInitialFilterType = number | string | boolean | [] | object;
|
|
9
10
|
export type OperatorB = 'b';
|
|
@@ -14,18 +15,21 @@ export type BooleanOperator = 'e' | 'ne';
|
|
|
14
15
|
export type DateTimeOperator = OperatorB | 'e' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
15
16
|
export type SelectOperator = 'in' | 'nin';
|
|
16
17
|
export type FieldPresence = 'initialized' | 'fixed' | 'optional';
|
|
17
|
-
export type
|
|
18
|
+
export type FormOperandSelectAsync = Record<string, any>;
|
|
19
|
+
export type FormOperandSelect = string | number;
|
|
18
20
|
/**
|
|
19
21
|
* Posibles valores para el operandsArray para el caso del select o otros fields
|
|
20
22
|
*/
|
|
21
|
-
export type
|
|
23
|
+
export type OperandsSelectAsyncArrayValues = Array<FormOperandSelectAsync>;
|
|
24
|
+
export type OperandsSelectArrayValues = Array<FormOperandSelect>;
|
|
22
25
|
export type FieldTypeOperator<T extends FieldType> = T extends 'boolean' ? BooleanOperator : T extends 'datetime' ? DateTimeOperator : T extends 'number' ? NumberOperator : T extends 'select' ? SelectOperator : T extends 'string' ? StringOperator : T;
|
|
23
|
-
export type FieldTypeOperand<T extends FieldType> = T extends 'boolean' ? boolean : T extends 'datetime' ? Date : T extends 'number' ? number : T extends 'string' ? string : T extends 'select' ?
|
|
24
|
-
type
|
|
26
|
+
export type FieldTypeOperand<T extends FieldType> = T extends 'boolean' ? boolean : T extends 'datetime' ? Date : T extends 'number' ? number : T extends 'string' ? string : T extends 'select' ? OperandsSelectArrayValues : T extends 'selectAsync' ? OperandsSelectAsyncArrayValues : FieldType;
|
|
27
|
+
type SelectAsyncOptions = Pick<RHFAutocompleteAsyncBaseProps<{
|
|
25
28
|
[key: string]: any;
|
|
26
29
|
}>, 'type' | 'endPoint' | 'getOptionLabel' | 'isOptionEqualToValue' | 'multiple' | 'autoComplete' | 'autoCapitalize' | 'parms' | 'timeout'> & {
|
|
27
30
|
getOptionId: (option: Record<string, any>) => string | number;
|
|
28
31
|
};
|
|
32
|
+
type SelectOptions = Omit<RHFSelectProps<any, true>, 'name'>;
|
|
29
33
|
export interface FieldBase<T extends FieldType = FieldType> {
|
|
30
34
|
name: string;
|
|
31
35
|
type: T;
|
|
@@ -37,6 +41,10 @@ export interface FieldBase<T extends FieldType = FieldType> {
|
|
|
37
41
|
defaultOperand2?: Maybe<FieldTypeOperand<T>>;
|
|
38
42
|
defaultOperandsArray?: Maybe<FieldTypeOperand<T>>;
|
|
39
43
|
selectOptions?: SelectOptions;
|
|
44
|
+
selectAsyncOptions?: SelectAsyncOptions;
|
|
45
|
+
}
|
|
46
|
+
export interface FieldWithSelectAsync<T extends 'selectAsync'> extends FieldBase<T> {
|
|
47
|
+
selectAsyncOptions: SelectAsyncOptions;
|
|
40
48
|
}
|
|
41
49
|
export interface FieldWithSelect<T extends 'select'> extends FieldBase<T> {
|
|
42
50
|
selectOptions: SelectOptions;
|
|
@@ -49,66 +57,71 @@ export interface Label<T extends FieldType = FieldType> extends FieldBase<T> {
|
|
|
49
57
|
label: string;
|
|
50
58
|
dictionaryId?: undefined;
|
|
51
59
|
}
|
|
52
|
-
export type
|
|
60
|
+
export type FilterField<T extends FieldType = FieldType> = T extends 'selectAsync' ? FieldWithSelectAsync<T> & (FieldDictionaryId<T> | Label<T>) : T extends 'select' ? FieldWithSelect<T> & (FieldDictionaryId<T> | Label<T>) : FieldDictionaryId<T> | Label<T>;
|
|
53
61
|
export interface BaseApplyFilter<T extends FieldType = FieldType> {
|
|
54
62
|
id: number;
|
|
55
|
-
field:
|
|
63
|
+
field: FilterField<T>;
|
|
56
64
|
isSet: boolean;
|
|
57
65
|
fixed: boolean;
|
|
58
66
|
}
|
|
59
67
|
/**
|
|
60
68
|
* Base para el tipado de overloading de los valores de un filtro
|
|
61
69
|
*/
|
|
62
|
-
export interface FilterValueBase {
|
|
63
|
-
fieldType:
|
|
70
|
+
export interface FilterValueBase<T extends FieldType = FieldType> {
|
|
71
|
+
fieldType: T;
|
|
64
72
|
operator: Operator;
|
|
65
73
|
operand1?: Maybe<OperandType>;
|
|
66
74
|
operand2?: Maybe<OperandType>;
|
|
67
|
-
operandsArray?:
|
|
75
|
+
operandsArray?: T extends 'selectAsync' ? OperandsSelectAsyncArrayValues : T extends 'select' ? OperandsSelectArrayValues : never;
|
|
68
76
|
}
|
|
69
|
-
export interface FilterValueBoolean extends FilterValueBase {
|
|
77
|
+
export interface FilterValueBoolean extends FilterValueBase<'boolean'> {
|
|
70
78
|
fieldType: 'boolean';
|
|
71
79
|
operator: BooleanOperator;
|
|
72
80
|
operand1: boolean;
|
|
73
81
|
}
|
|
74
|
-
export interface FilterValueDateTimeNoB extends FilterValueBase {
|
|
82
|
+
export interface FilterValueDateTimeNoB extends FilterValueBase<'datetime'> {
|
|
75
83
|
fieldType: 'datetime';
|
|
76
84
|
operator: Exclude<DateTimeOperator, OperatorB>;
|
|
77
85
|
operand1: Date;
|
|
78
86
|
}
|
|
79
|
-
export interface FilterValueDateTimeB extends FilterValueBase {
|
|
87
|
+
export interface FilterValueDateTimeB extends FilterValueBase<'datetime'> {
|
|
80
88
|
fieldType: 'datetime';
|
|
81
89
|
operator: OperatorB;
|
|
82
90
|
operand1: Date;
|
|
83
91
|
operand2: Date;
|
|
84
92
|
}
|
|
85
93
|
export type FilterValueDateTime = FilterValueDateTimeNoB | FilterValueDateTimeB;
|
|
86
|
-
export interface FilterValueNumberNoB extends FilterValueBase {
|
|
94
|
+
export interface FilterValueNumberNoB extends FilterValueBase<'number'> {
|
|
87
95
|
fieldType: 'number';
|
|
88
96
|
operator: Exclude<NumberOperator, OperatorB>;
|
|
89
97
|
operand1: Maybe<number>;
|
|
90
98
|
}
|
|
91
|
-
export interface FilterValueNumberB extends FilterValueBase {
|
|
99
|
+
export interface FilterValueNumberB extends FilterValueBase<'number'> {
|
|
92
100
|
fieldType: 'number';
|
|
93
101
|
operator: OperatorB;
|
|
94
102
|
operand1: Maybe<number>;
|
|
95
103
|
operand2: Maybe<number>;
|
|
96
104
|
}
|
|
97
105
|
export type FilterValueNumber = FilterValueNumberNoB | FilterValueNumberB;
|
|
98
|
-
export interface FilterValueString extends FilterValueBase {
|
|
106
|
+
export interface FilterValueString extends FilterValueBase<'string'> {
|
|
99
107
|
fieldType: 'string';
|
|
100
108
|
operator: StringOperator;
|
|
101
109
|
operand1: string;
|
|
102
110
|
}
|
|
103
|
-
export interface
|
|
111
|
+
export interface FilterValueSelectAsync extends FilterValueBase<'selectAsync'> {
|
|
112
|
+
fieldType: 'selectAsync';
|
|
113
|
+
operator: SelectOperator;
|
|
114
|
+
operandsArray: OperandsSelectAsyncArrayValues;
|
|
115
|
+
}
|
|
116
|
+
export interface FilterValueSelect extends FilterValueBase<'select'> {
|
|
104
117
|
fieldType: 'select';
|
|
105
118
|
operator: SelectOperator;
|
|
106
|
-
operandsArray:
|
|
119
|
+
operandsArray: OperandsSelectArrayValues;
|
|
107
120
|
}
|
|
108
121
|
/**
|
|
109
122
|
* Valor de un filtro sobrecargado para cada tipo de dato
|
|
110
123
|
*/
|
|
111
|
-
export type FilterValue = FilterValueBoolean | FilterValueDateTime | FilterValueNumber | FilterValueString | FilterValueSelect;
|
|
124
|
+
export type FilterValue = FilterValueBoolean | FilterValueDateTime | FilterValueNumber | FilterValueString | FilterValueSelectAsync | FilterValueSelect;
|
|
112
125
|
/**
|
|
113
126
|
* Estado del Filtro + Valor valor del filtro.
|
|
114
127
|
*/
|
|
@@ -119,9 +132,10 @@ export type FilterFieldApplied<T extends FieldType = FieldType> = BaseApplyFilte
|
|
|
119
132
|
export interface RawFilterFieldApply {
|
|
120
133
|
n: string;
|
|
121
134
|
o: Operator;
|
|
135
|
+
ft: FieldType;
|
|
122
136
|
o1: Maybe<OperandType>;
|
|
123
137
|
o2: Maybe<OperandType>;
|
|
124
|
-
oa: Maybe<OperandType>;
|
|
138
|
+
oa: Maybe<OperandType[]>;
|
|
125
139
|
}
|
|
126
140
|
export type FilterToEditApply = FilterFieldApplied;
|
|
127
141
|
export interface DataTypeFilerLabels {
|
|
@@ -150,7 +164,7 @@ export type FormOperandBoolean = {
|
|
|
150
164
|
export type FormOperandDateTime = Date;
|
|
151
165
|
export type FormOperandNumber = number;
|
|
152
166
|
export type FormOperandString = string;
|
|
153
|
-
export type FormOperand = FormOperandBoolean | FormOperandDateTime | FormOperandNumber | FormOperandString |
|
|
167
|
+
export type FormOperand = FormOperandBoolean | FormOperandDateTime | FormOperandNumber | FormOperandString | FormOperandSelectAsync;
|
|
154
168
|
/**
|
|
155
169
|
* Base para el tipado de overloading de los valor de un filtro
|
|
156
170
|
*/
|
|
@@ -180,6 +194,11 @@ export interface FormFilterValueString extends FormFilterValueBase {
|
|
|
180
194
|
formValueOperator: FormOperator<StringOperator>;
|
|
181
195
|
formValueOperand1: string;
|
|
182
196
|
}
|
|
197
|
+
export interface FormFilterValueSelectAsync extends FormFilterValueBase {
|
|
198
|
+
fieldType: 'selectAsync';
|
|
199
|
+
formValueOperator: FormOperator<SelectOperator>;
|
|
200
|
+
formValueOperandsArray: Array<FormOperandSelectAsync> | FormOperandSelectAsync;
|
|
201
|
+
}
|
|
183
202
|
export interface FormFilterValueSelect extends FormFilterValueBase {
|
|
184
203
|
fieldType: 'select';
|
|
185
204
|
formValueOperator: FormOperator<SelectOperator>;
|
|
@@ -188,7 +207,7 @@ export interface FormFilterValueSelect extends FormFilterValueBase {
|
|
|
188
207
|
/**
|
|
189
208
|
* Valor de un filtro sobrecargado para cada tipo de dato
|
|
190
209
|
*/
|
|
191
|
-
export type FormFilterValue = FormFilterValueBoolean | FormFilterValueDateTime | FormFilterValueNumber | FormFilterValueString | FormFilterValueSelect;
|
|
210
|
+
export type FormFilterValue = FormFilterValueBoolean | FormFilterValueDateTime | FormFilterValueNumber | FormFilterValueString | FormFilterValueSelectAsync | FormFilterValueSelect;
|
|
192
211
|
/**
|
|
193
212
|
* Estado del Filtro + Valor valor del filtro.
|
|
194
213
|
*/
|
|
@@ -210,6 +229,14 @@ rawFilters: Array<RawFilterFieldApply>) => void;
|
|
|
210
229
|
* Propiedades que recibe el componente DynamicFilter
|
|
211
230
|
*/
|
|
212
231
|
export interface DynamicFilterProps {
|
|
232
|
+
/**
|
|
233
|
+
* "storeId" identificador del store
|
|
234
|
+
*/
|
|
235
|
+
storeId?: string;
|
|
236
|
+
/**
|
|
237
|
+
* "storeDevtoolsEnabled" determina si se debe usar devtools para el store
|
|
238
|
+
*/
|
|
239
|
+
storeDevtoolsEnabled?: boolean;
|
|
213
240
|
/**
|
|
214
241
|
* Define si el filtro se ejecuta automáticamente cuando se agrega o se modifica un filtro.
|
|
215
242
|
* @default true
|
|
@@ -221,7 +248,7 @@ export interface DynamicFilterProps {
|
|
|
221
248
|
*/
|
|
222
249
|
withAllField?: boolean;
|
|
223
250
|
/** Array con la configuración de cada campo por el que se podrá filtrar. */
|
|
224
|
-
fields: Array<
|
|
251
|
+
fields: Array<FilterField>;
|
|
225
252
|
/** Array con la configuración de cada campo por el que se podrá filtrar.*/
|
|
226
253
|
initialAppliedFilters?: Array<InitialFilterApplied>;
|
|
227
254
|
/** Handler que se dispara cuando el filtro cambia en automatico, o cuando es manual y se presion el boton de filtrar */
|
|
@@ -261,5 +288,5 @@ export interface OwnerState {
|
|
|
261
288
|
export interface DynamicFilterOwnerState extends DynamicFilterProps, OwnerState {
|
|
262
289
|
}
|
|
263
290
|
export type DynamicFilterSlotsType = keyof typeof DynamicFilterSlots;
|
|
264
|
-
export type DynamicFilterStyles =
|
|
291
|
+
export type DynamicFilterStyles = M4LOverridesStyleRules<DynamicFilterSlotsType, 'M4LDynamicFilter', Theme>;
|
|
265
292
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
3
|
+
import { D as DynamicSortProvider } from "./store/DynamicSortContext.js";
|
|
4
|
+
import { D as DynamicSortBase } from "./subcomponents/DynamicSortBase/DynamicSortBase.js";
|
|
5
|
+
function DynamicSort(props) {
|
|
6
|
+
const hasPresentFlags = useFlagsPresent([CommonFlags.FLAG_DICTIONARY_LOADED]);
|
|
7
|
+
if (!hasPresentFlags) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return /* @__PURE__ */ jsx(DynamicSortProvider, { ...props, children: /* @__PURE__ */ jsx(DynamicSortBase, {}) });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
DynamicSort as D
|
|
14
|
+
};
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { alpha } from "@mui/material";
|
|
2
|
+
import { c as containerQuery } from "../../utils/containerQuery.js";
|
|
3
|
+
const CONTAINER_QUERY_NAME = "dynamic";
|
|
4
|
+
const dynamicSortStyles = {
|
|
5
|
+
root: {
|
|
6
|
+
containerName: CONTAINER_QUERY_NAME,
|
|
7
|
+
containerType: "inline-size",
|
|
8
|
+
width: "100%",
|
|
9
|
+
height: "auto",
|
|
10
|
+
padding: 0
|
|
11
|
+
},
|
|
12
|
+
/**
|
|
13
|
+
* TODO: Documentar
|
|
14
|
+
*/
|
|
15
|
+
innerContainer: ({ theme, ownerState }) => ({
|
|
16
|
+
display: "grid",
|
|
17
|
+
gridTemplateColumns: "auto 1fr auto",
|
|
18
|
+
gridTemplateAreas: '"input-sort applied-sorts actions-sort"',
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "flex-start",
|
|
21
|
+
width: "100%",
|
|
22
|
+
height: "fit-content",
|
|
23
|
+
border: "1px solid",
|
|
24
|
+
borderRadius: "4px",
|
|
25
|
+
borderColor: theme.vars.palette.border?.default,
|
|
26
|
+
background: theme.vars.palette.background.default,
|
|
27
|
+
[containerQuery(theme.breakpoints, CONTAINER_QUERY_NAME)]: {
|
|
28
|
+
minHeight: "auto",
|
|
29
|
+
height: "auto",
|
|
30
|
+
gridTemplateColumns: "1fr auto",
|
|
31
|
+
gridTemplateAreas: `"input-sort actions-sort"
|
|
32
|
+
"applied-sorts applied-sorts"`
|
|
33
|
+
},
|
|
34
|
+
"&:focus-within": {
|
|
35
|
+
borderColor: !ownerState.isValid ? theme.vars.palette.error.main : theme.vars.palette.primary.active
|
|
36
|
+
},
|
|
37
|
+
...ownerState.isValid === false ? {
|
|
38
|
+
borderColor: theme.vars.palette.error.main
|
|
39
|
+
} : {}
|
|
40
|
+
}),
|
|
41
|
+
/**
|
|
42
|
+
* TODO: Documentar
|
|
43
|
+
*/
|
|
44
|
+
inputSort: ({ theme }) => ({
|
|
45
|
+
gridArea: "input-sort",
|
|
46
|
+
display: "flex",
|
|
47
|
+
flexDirection: "row",
|
|
48
|
+
gap: "8px",
|
|
49
|
+
padding: "4px 6px 4px 4px",
|
|
50
|
+
height: "100%",
|
|
51
|
+
maxWidth: "135px",
|
|
52
|
+
width: "100%",
|
|
53
|
+
alignItems: "center",
|
|
54
|
+
borderTopLeftRadius: "4px",
|
|
55
|
+
borderBottomLeftRadius: "4px",
|
|
56
|
+
borderRight: "1px solid",
|
|
57
|
+
borderColor: theme.vars.palette.border?.default,
|
|
58
|
+
[containerQuery(theme.breakpoints, CONTAINER_QUERY_NAME)]: {
|
|
59
|
+
height: "32px",
|
|
60
|
+
width: "100%",
|
|
61
|
+
maxWidth: "100%",
|
|
62
|
+
borderRight: "none"
|
|
63
|
+
},
|
|
64
|
+
[theme.breakpoints.down("sm")]: {
|
|
65
|
+
height: "44px",
|
|
66
|
+
justifyContent: "center"
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
/**
|
|
70
|
+
* TODO: Documentar
|
|
71
|
+
*/
|
|
72
|
+
inputSortInput: ({ theme }) => ({
|
|
73
|
+
...theme.typography.body,
|
|
74
|
+
background: theme.vars.palette.background.default,
|
|
75
|
+
color: theme.vars.palette.text.secondary,
|
|
76
|
+
border: "1px solid",
|
|
77
|
+
borderColor: "transparent",
|
|
78
|
+
padding: "4px 8px",
|
|
79
|
+
width: "100%",
|
|
80
|
+
height: "100%",
|
|
81
|
+
"&::placeholder": {
|
|
82
|
+
color: theme.vars.palette.text.secondary
|
|
83
|
+
},
|
|
84
|
+
"&:focus-visible": {
|
|
85
|
+
color: theme.vars.palette.text.secondary,
|
|
86
|
+
border: "1px solid",
|
|
87
|
+
borderColor: theme.vars.palette.primary.opacity,
|
|
88
|
+
background: theme.vars.palette.primary.opacity,
|
|
89
|
+
BorderRadius: "2px",
|
|
90
|
+
outline: "none!important"
|
|
91
|
+
},
|
|
92
|
+
"&:hover": {
|
|
93
|
+
borderColor: theme.vars.palette.primary?.toneOpacity,
|
|
94
|
+
background: theme.vars.palette.background?.hover
|
|
95
|
+
}
|
|
96
|
+
}),
|
|
97
|
+
inputSortIcon: {},
|
|
98
|
+
/**
|
|
99
|
+
* TODO: Documentar
|
|
100
|
+
*/
|
|
101
|
+
appliedSorts: ({ theme }) => ({
|
|
102
|
+
gridArea: "applied-sorts",
|
|
103
|
+
width: "100%",
|
|
104
|
+
height: "fit-content",
|
|
105
|
+
paddingLeft: theme.spacing(1),
|
|
106
|
+
borderLeft: "none",
|
|
107
|
+
margin: "0px",
|
|
108
|
+
padding: "0px 4px",
|
|
109
|
+
[containerQuery(theme.breakpoints, CONTAINER_QUERY_NAME)]: {
|
|
110
|
+
height: "auto",
|
|
111
|
+
padding: "4px",
|
|
112
|
+
display: "flex",
|
|
113
|
+
borderTop: "1px solid ",
|
|
114
|
+
borderColor: theme.vars.palette.border?.secondary,
|
|
115
|
+
"&:has(div[class*=appliedSortInnerContainer]:empty), &:empty": {
|
|
116
|
+
display: "none"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}),
|
|
120
|
+
/**
|
|
121
|
+
* TODO: Documentar
|
|
122
|
+
*/
|
|
123
|
+
appliedSortInnerContainer: ({ theme }) => ({
|
|
124
|
+
padding: "2px",
|
|
125
|
+
gap: "4px",
|
|
126
|
+
height: "fit-content",
|
|
127
|
+
display: "flex",
|
|
128
|
+
flexWrap: "nowrap",
|
|
129
|
+
width: "100%",
|
|
130
|
+
justifyContent: "flex-start",
|
|
131
|
+
alignItems: "center",
|
|
132
|
+
[containerQuery(theme.breakpoints, CONTAINER_QUERY_NAME)]: {
|
|
133
|
+
height: "32px",
|
|
134
|
+
padding: 0,
|
|
135
|
+
margin: 0,
|
|
136
|
+
border: 0
|
|
137
|
+
},
|
|
138
|
+
[theme.breakpoints.down("sm")]: {
|
|
139
|
+
padding: 0,
|
|
140
|
+
height: "44px"
|
|
141
|
+
}
|
|
142
|
+
}),
|
|
143
|
+
/**
|
|
144
|
+
* TODO: Documentar
|
|
145
|
+
*/
|
|
146
|
+
appliedSortChip: ({ theme }) => ({
|
|
147
|
+
display: "flex",
|
|
148
|
+
justifyContent: "center",
|
|
149
|
+
alignItems: "center",
|
|
150
|
+
overflow: "visible",
|
|
151
|
+
width: "auto",
|
|
152
|
+
height: "24px",
|
|
153
|
+
minHeight: theme.spacing(3),
|
|
154
|
+
paddingLeft: theme.spacing(1),
|
|
155
|
+
borderColor: alpha(`${theme.colorSchemes.finalTheme.palette.divider}`, 0.1),
|
|
156
|
+
border: "none",
|
|
157
|
+
borderRadius: "4px",
|
|
158
|
+
backgroundColor: theme.vars.palette.background?.surface,
|
|
159
|
+
color: theme.vars.palette.text.secondary,
|
|
160
|
+
...theme.typography.body,
|
|
161
|
+
[theme.breakpoints.down("sm")]: {
|
|
162
|
+
height: "fit-content"
|
|
163
|
+
}
|
|
164
|
+
}),
|
|
165
|
+
appliedSortChipIcon: {},
|
|
166
|
+
/**
|
|
167
|
+
* TODO: Documentar
|
|
168
|
+
*/
|
|
169
|
+
appliedSortChipInfo: ({ theme }) => ({
|
|
170
|
+
...theme.typography.body2,
|
|
171
|
+
display: "flex",
|
|
172
|
+
justifyContent: "center",
|
|
173
|
+
alignItems: "center",
|
|
174
|
+
width: "auto",
|
|
175
|
+
height: "100%",
|
|
176
|
+
marginRight: theme.spacing(1),
|
|
177
|
+
marginLeft: theme.spacing(1),
|
|
178
|
+
whiteSpace: "nowrap",
|
|
179
|
+
border: "none",
|
|
180
|
+
backgroundColor: "transparent"
|
|
181
|
+
}),
|
|
182
|
+
/**
|
|
183
|
+
* TODO: Documentar
|
|
184
|
+
*/
|
|
185
|
+
appliedSortChipInfoFieldName: ({ theme }) => ({
|
|
186
|
+
...theme.typography.subtitle2,
|
|
187
|
+
color: theme.vars.palette.text.secondary
|
|
188
|
+
}),
|
|
189
|
+
/**
|
|
190
|
+
* TODO: Documentar
|
|
191
|
+
*/
|
|
192
|
+
appliedSortChipInfoOperator: ({ theme }) => ({
|
|
193
|
+
...theme.typography.body2,
|
|
194
|
+
marginLeft: theme.spacing(1.5),
|
|
195
|
+
fontStyle: "italic",
|
|
196
|
+
color: theme.vars.palette.text.secondary
|
|
197
|
+
}),
|
|
198
|
+
/**
|
|
199
|
+
* TODO: Documentar
|
|
200
|
+
*/
|
|
201
|
+
appliedSortChipInfoOperands: ({ theme }) => ({
|
|
202
|
+
...theme.typography.body2,
|
|
203
|
+
marginLeft: theme.spacing(1.5),
|
|
204
|
+
color: theme.vars.palette.text.secondary
|
|
205
|
+
}),
|
|
206
|
+
appliedSortChipRemoveButton: {},
|
|
207
|
+
/**
|
|
208
|
+
* TODO: Documentar
|
|
209
|
+
*/
|
|
210
|
+
actions: ({ theme }) => ({
|
|
211
|
+
gridArea: "actions-sort",
|
|
212
|
+
display: "flex",
|
|
213
|
+
flexDirection: "row",
|
|
214
|
+
gap: "8px",
|
|
215
|
+
padding: "4px",
|
|
216
|
+
height: "100%",
|
|
217
|
+
alignItems: "center",
|
|
218
|
+
borderTopRightRadius: "4px",
|
|
219
|
+
borderBottomRightRadius: "4px",
|
|
220
|
+
borderLeft: "1px solid",
|
|
221
|
+
borderColor: theme.vars.palette.border?.default
|
|
222
|
+
}),
|
|
223
|
+
actionsSkeletonButton: {
|
|
224
|
+
display: "flex",
|
|
225
|
+
justifyContent: "center",
|
|
226
|
+
alignItems: "center",
|
|
227
|
+
width: "24px",
|
|
228
|
+
height: "24px"
|
|
229
|
+
},
|
|
230
|
+
actionsClearButton: {},
|
|
231
|
+
/**
|
|
232
|
+
* TODO: Documentar
|
|
233
|
+
*/
|
|
234
|
+
actionsSubmitButton: ({ theme, ownerState }) => ({
|
|
235
|
+
...ownerState.isValid === false ? { border: `1px dashed ${theme.vars.palette.error.main}` } : {}
|
|
236
|
+
}),
|
|
237
|
+
/**
|
|
238
|
+
* TODO: Documentar
|
|
239
|
+
*/
|
|
240
|
+
popoverMenu: ({ theme }) => ({
|
|
241
|
+
"& .MuiPaper-root": {
|
|
242
|
+
display: "flex",
|
|
243
|
+
flexDirection: "column",
|
|
244
|
+
padding: "8px !important",
|
|
245
|
+
gap: "4px",
|
|
246
|
+
borderRadius: "6px",
|
|
247
|
+
[theme.breakpoints.down("md")]: {
|
|
248
|
+
gap: "4px"
|
|
249
|
+
},
|
|
250
|
+
"& .M4LPopover-arrowStyle": {
|
|
251
|
+
display: "none"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}),
|
|
255
|
+
/**
|
|
256
|
+
* TODO: Documentar
|
|
257
|
+
*/
|
|
258
|
+
popoverMenuItem: ({ theme }) => ({
|
|
259
|
+
paddingLeft: "4px",
|
|
260
|
+
paddingRight: "4px",
|
|
261
|
+
borderRadius: "4px",
|
|
262
|
+
"&:hover": {
|
|
263
|
+
...theme.typography.body,
|
|
264
|
+
color: theme.vars.palette.primary?.hover,
|
|
265
|
+
background: theme.vars.palette.background?.surface,
|
|
266
|
+
borderRadius: "4px",
|
|
267
|
+
padding: "4px 12px 4px 8px"
|
|
268
|
+
}
|
|
269
|
+
}),
|
|
270
|
+
/**
|
|
271
|
+
* TODO: Documentar
|
|
272
|
+
*/
|
|
273
|
+
popoverMenuItemLabel: ({ theme }) => ({
|
|
274
|
+
...theme.typography.body,
|
|
275
|
+
color: theme.vars.palette.text.primary
|
|
276
|
+
}),
|
|
277
|
+
popoverMenuItemIcon: {},
|
|
278
|
+
/**
|
|
279
|
+
* TODO: Documentar
|
|
280
|
+
*/
|
|
281
|
+
popoverSort: ({ theme }) => ({
|
|
282
|
+
width: "auto",
|
|
283
|
+
"& .MuiPaper-root": {
|
|
284
|
+
padding: "0 !important",
|
|
285
|
+
minWidth: "220px",
|
|
286
|
+
maxWidth: "100%",
|
|
287
|
+
minHeight: "auto",
|
|
288
|
+
boxShadow: theme.customShadows?.z3,
|
|
289
|
+
"& .M4LPopover-arrowStyle": {
|
|
290
|
+
display: "none"
|
|
291
|
+
},
|
|
292
|
+
"& .M4LRHFormProvider-root": {
|
|
293
|
+
gap: "0px",
|
|
294
|
+
width: "max-content",
|
|
295
|
+
minWidth: "220px",
|
|
296
|
+
maxWidth: "420px",
|
|
297
|
+
height: "fit-content"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}),
|
|
301
|
+
/**
|
|
302
|
+
* TODO: Documentar
|
|
303
|
+
*/
|
|
304
|
+
popoverSortHeader: ({ theme }) => ({
|
|
305
|
+
backgroundColor: theme.vars.palette.background?.surface,
|
|
306
|
+
display: "flex",
|
|
307
|
+
alignItems: "center",
|
|
308
|
+
gap: "8px",
|
|
309
|
+
padding: "4px 4px 4px 8px",
|
|
310
|
+
borderTopLeftRadius: "4px",
|
|
311
|
+
borderTopRightRadius: "4px",
|
|
312
|
+
borderBottom: "0px",
|
|
313
|
+
height: "28px",
|
|
314
|
+
[theme.breakpoints.down("sm")]: {
|
|
315
|
+
height: "36px"
|
|
316
|
+
}
|
|
317
|
+
}),
|
|
318
|
+
popoverSortHeaderIcon: {},
|
|
319
|
+
/**
|
|
320
|
+
* TODO: Documentar
|
|
321
|
+
*/
|
|
322
|
+
popoverSortHeaderTitle: ({ theme }) => ({
|
|
323
|
+
...theme.typography.paragraphDens,
|
|
324
|
+
color: theme.vars.palette.text.primary
|
|
325
|
+
}),
|
|
326
|
+
/**
|
|
327
|
+
* TODO: Documentar
|
|
328
|
+
*/
|
|
329
|
+
popoverSortContainerFields: ({ theme }) => ({
|
|
330
|
+
height: "fit-content",
|
|
331
|
+
"& > div": {
|
|
332
|
+
display: "flex",
|
|
333
|
+
height: "auto",
|
|
334
|
+
flexDirection: "column",
|
|
335
|
+
padding: "12px 12px 0 12px",
|
|
336
|
+
gap: "8px",
|
|
337
|
+
[theme.breakpoints.down("sm")]: {
|
|
338
|
+
padding: "16px 16px 0 16px",
|
|
339
|
+
gap: "12px"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}),
|
|
343
|
+
/**
|
|
344
|
+
* TODO: Documentar
|
|
345
|
+
*/
|
|
346
|
+
popoverSortActions: ({ theme }) => ({
|
|
347
|
+
display: "flex",
|
|
348
|
+
flexDirection: "row",
|
|
349
|
+
gap: "16px",
|
|
350
|
+
padding: "16px 12px 12px 12px !important",
|
|
351
|
+
[theme.breakpoints.down("sm")]: {
|
|
352
|
+
padding: "24px 16px 16px 16px !important"
|
|
353
|
+
},
|
|
354
|
+
"& > .M4LButton-root": {
|
|
355
|
+
height: "24px",
|
|
356
|
+
minHeight: "24px",
|
|
357
|
+
[theme.breakpoints.down("sm")]: {
|
|
358
|
+
height: "36px"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
})
|
|
362
|
+
};
|
|
363
|
+
export {
|
|
364
|
+
dynamicSortStyles as d
|
|
365
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const DYNAMIC_SORT_KEY_COMPONENT = "M4LDynamicSort";
|
|
2
|
+
const ASSETS_URL = "frontend/components/Dynamic_sort/assets/icons";
|
|
3
|
+
const ASSETS = {
|
|
4
|
+
refresh: "restart.svg",
|
|
5
|
+
sort: "sort.svg",
|
|
6
|
+
close: "close.svg",
|
|
7
|
+
list_bulleted: "list_bulleted.svg",
|
|
8
|
+
clean: "clean.svg"
|
|
9
|
+
};
|
|
10
|
+
const SORT_OPERATORS = ["asc", "desc"];
|
|
11
|
+
export {
|
|
12
|
+
ASSETS_URL as A,
|
|
13
|
+
DYNAMIC_SORT_KEY_COMPONENT as D,
|
|
14
|
+
SORT_OPERATORS as S,
|
|
15
|
+
ASSETS as a
|
|
16
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/dictionary.js";
|
|
2
|
+
import { g as getRHFAutocompleteComponentsDictionary } from "../hook-form/RHFAutocomplete/dictionary.js";
|
|
3
|
+
const DYNAMICSORT_DICTIONARY_ID = "dynamic_sort";
|
|
4
|
+
function getDynamicSortComponentsDictionary() {
|
|
5
|
+
return [DYNAMICSORT_DICTIONARY_ID].concat(
|
|
6
|
+
getCommonActionsDictionary().concat(getRHFAutocompleteComponentsDictionary())
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
const DICCTIONARY = {
|
|
10
|
+
input_placeholder: "input_placeholder",
|
|
11
|
+
label_ascending: "Ascending",
|
|
12
|
+
label_descending: "Descending",
|
|
13
|
+
sort_tooltip_refresh: "sort_tooltip_refresh",
|
|
14
|
+
sort_tooltip_dirty: "sort_tooltip_dirty",
|
|
15
|
+
sort_tooltip_invalid: "sort_tooltip_invalid",
|
|
16
|
+
tooltip_clear_sort: "tooltip_clear_sort",
|
|
17
|
+
operator_asc: "operator_asc",
|
|
18
|
+
operator_desc: "operator_desc",
|
|
19
|
+
label_boolean_operand1: "label_boolean_operand1"
|
|
20
|
+
};
|
|
21
|
+
const getDynamicSortDictionary = (key) => {
|
|
22
|
+
return `${DYNAMICSORT_DICTIONARY_ID}.${key}`;
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
DICCTIONARY as D,
|
|
26
|
+
getDynamicSortComponentsDictionary as a,
|
|
27
|
+
getDynamicSortDictionary as g
|
|
28
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const formatToInitialSorts = (appliedSorts) => {
|
|
2
|
+
return appliedSorts.map((appliedSort) => {
|
|
3
|
+
const output = {
|
|
4
|
+
name: appliedSort.field.name,
|
|
5
|
+
operator: appliedSort.operator ? "asc" : "desc"
|
|
6
|
+
};
|
|
7
|
+
return output;
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
formatToInitialSorts as f
|
|
12
|
+
};
|