@m4l/components 9.4.24 → 9.4.26
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/components/AccountPopover/AccountPopover.js +2 -2
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +3 -3
- package/components/AccountPopover/slots/AccountPopoverSlots.js +7 -7
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +1 -1
- package/components/ActionsGroup/ActionsGroup.js +2 -2
- package/components/ActionsGroup/constants.js +3 -3
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +1 -1
- package/components/ActionsGroup/slots/ActionsGroupSlots.js +4 -4
- package/components/ActionsGroup/subcomponents/ActionIconButton/ActionIconButton.js +1 -1
- package/components/AppBar/AppBar.js +1 -1
- package/components/BaseModule/BaseModule.js +1 -1
- package/components/Card/Card.js +1 -1
- package/components/Card/constants.js +3 -3
- package/components/Card/slots/CardSlots.js +1 -1
- package/components/CheckableList/CheckableList.js +2 -2
- package/components/CheckableList/constants.js +3 -3
- package/components/CheckableList/hooks/useCheckableListRender.js +1 -1
- package/components/CheckableList/slots/styled.d.ts +4 -4
- package/components/CheckableList/slots/styled.js +16 -16
- package/components/Chip/Chip.js +1 -1
- package/components/Chip/constants.js +3 -3
- package/components/Chip/slots/ChipSlots.d.ts +1 -1
- package/components/Chip/slots/ChipSlots.js +1 -1
- package/components/Color/Color.js +1 -1
- package/components/CommonActions/components/ActionFormCancel/constanst.js +1 -1
- package/components/CommonActions/components/ActionFormIntro/constanst.js +1 -1
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/constanst.js +1 -1
- package/components/ContainerFlow/ContainerFlow.js +1 -1
- package/components/ContainerFlow/constants.js +4 -4
- package/components/ContainerFlow/helpers/getSpacingValue/getSpacingValue.js +1 -1
- package/components/ContainerFlow/slots/ContainerFlowSlots.js +1 -1
- package/components/DaysOfMonthPicker/DaysOfMonthPicker.js +2 -2
- package/components/DaysOfMonthPicker/constants.js +3 -3
- package/components/DaysOfMonthPicker/hooks/useDaysOfMonthPicker/useDaysOfMonthPicker.js +2 -2
- package/components/DaysOfMonthPicker/slots/DaysOfMonthPickerSlots.js +4 -4
- package/components/DaysOfWeekPicker/DaysOfWeekPicker.js +1 -1
- package/components/DaysOfWeekPicker/constants.js +3 -3
- package/components/DaysOfWeekPicker/slots/DaysOfWeekPickerSlots.js +1 -1
- package/components/DynamicFilter/DynamicFilter.js +1 -1
- package/components/DynamicFilter/constants.js +7 -7
- package/components/DynamicFilter/helpers/frontEndHelpers.js +2 -2
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +7 -7
- package/components/DynamicFilter/store/DynamicFilterContext.js +2 -2
- package/components/DynamicFilter/store/DynamicFilterStore.js +1 -1
- package/components/DynamicFilter/store/useDynamicFilterStore.js +1 -1
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +4 -4
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/helpers.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/helpers.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/helpers.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/helpers.js +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.js +1 -1
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.js +1 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +1 -1
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +1 -1
- package/components/DynamicSort/DynamicSort.js +1 -1
- package/components/DynamicSort/constants.js +2 -2
- package/components/DynamicSort/slots/DynamicSortSlots.js +11 -11
- package/components/DynamicSort/store/DynamicSortContext.js +2 -2
- package/components/DynamicSort/store/DynamicSortStore.js +1 -1
- package/components/DynamicSort/store/useDynamicSortStore.js +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +2 -2
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +4 -4
- package/components/DynamicSort/subcomponents/InputSort/InputSort.js +1 -1
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +1 -1
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +1 -1
- package/components/EditLabel/slots/EditLabelSlots.d.ts +1 -1
- package/components/FormContainer/FormContainer.js +1 -1
- package/components/FormContainer/constants.js +3 -3
- package/components/FormContainer/slots/FormContainerSlots.js +1 -1
- package/components/GridLayout/GridLayout.js +2 -2
- package/components/GridLayout/constants.js +8 -8
- package/components/GridLayout/subcomponents/GridItem/index.js +2 -2
- package/components/GridLayout/subcomponents/Responsive/helper.js +1 -1
- package/components/GridLayout/subcomponents/Responsive/index.js +2 -2
- package/components/GridLayout/subcomponents/Responsive/responsiveUtils.js +1 -1
- package/components/GridLayout/subcomponents/withSizeProvider/index.js +1 -1
- package/components/GridLayout/utils.js +11 -11
- package/components/HelperError/constant.js +1 -1
- package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
- package/components/Icon/Icon.js +2 -2
- package/components/Icon/Icon.styles.js +1 -1
- package/components/Icon/constants.js +4 -4
- package/components/Icon/slots/IconSlots.js +1 -1
- package/components/Image/Image.js +3 -3
- package/components/Image/constant.js +3 -3
- package/components/Image/slots/ImageSlots.js +4 -4
- package/components/Image/subcomponents/IntersectComponent/index.js +3 -3
- package/components/ImageText/ImageText.js +2 -2
- package/components/ImageText/constants.js +4 -4
- package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
- package/components/ImageText/slots/ImageTextSlots.js +1 -1
- package/components/Label/constants.js +1 -1
- package/components/Label/slots/LabelSlots.d.ts +2 -2
- package/components/LanguagePopover/LanguagePopover.js +2 -2
- package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.js +2 -2
- package/components/LoadingError/LoadingError.js +2 -2
- package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +3 -3
- package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
- package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.js +2 -2
- package/components/MFLoader/MFLoader.js +1 -1
- package/components/MFLoader/classes/index.js +3 -3
- package/components/MFLoader/subcomponents/ProggessLoadingMF/index.js +1 -1
- package/components/MenuActions/MenuActions.js +1 -1
- package/components/MenuActions/constants.js +4 -4
- package/components/MenuActions/slots/MenuActionsSlots.js +1 -1
- package/components/NoItemPrivileges/NoItemPrivileges.js +1 -1
- package/components/NoItemPrivileges/constants.js +3 -3
- package/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.js +1 -1
- package/components/NoItemSelected/NoItemSelected.js +1 -1
- package/components/NoItemSelected/constant.js +3 -3
- package/components/NoItemSelected/slots/NoItemSelectedSlots.js +1 -1
- package/components/NumberInput/NumberInput.js +2 -2
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
- package/components/ObjectLogs/constants.js +3 -3
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
- package/components/ObjectLogs/slots/ObjectLogsSlots.js +1 -1
- package/components/ObjectLogs/subcomponents/DetailDialog/index.js +1 -1
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +2 -2
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +2 -2
- package/components/PDFViewer/PDFViewer.js +2 -2
- package/components/Pager/Pager.js +2 -2
- package/components/Pager/slots/PagerSlots.d.ts +3 -3
- package/components/Pager/slots/PagerSlots.js +3 -3
- package/components/Pager/subcomponents/PagerActions/PagerActions.js +1 -1
- package/components/PaperForm/PaperForm.js +1 -1
- package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
- package/components/PrintingSystem/PrintingSystem.js +3 -3
- package/components/PrintingSystem/slots/PrintingSystemSlots.js +13 -13
- package/components/PrintingSystem/subcomponents/GridNode/index.js +1 -1
- package/components/PrintingSystem/subcomponents/PageNode/index.js +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/index.js +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/index.js +1 -1
- package/components/PropertyValue/PropertyValue.js +2 -2
- package/components/PropertyValue/slots/PropertyValueSlots.d.ts +1 -1
- package/components/ScrollBar/ScrollBar.js +1 -1
- package/components/ScrollBar/constants.js +3 -3
- package/components/ScrollBar/slots/ScrollBarSlots.js +1 -1
- package/components/SettingsLayout/SettingsLayout.js +1 -1
- package/components/SettingsLayout/constants.js +5 -5
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +1 -1
- package/components/SettingsLayout/slots/SettingsLayoutSlots.js +8 -8
- package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.js +1 -1
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.js +1 -1
- package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.js +1 -1
- package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.js +1 -1
- package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.js +1 -1
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.js +1 -1
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.js +1 -1
- package/components/SideBar/SideBar.js +2 -2
- package/components/SideBar/constants.js +2 -2
- package/components/SideBar/context/sideBarContext/index.js +3 -3
- package/components/SideBar/hooks/useSideBar/index.js +1 -1
- package/components/SideBar/slots/SideBarSlots.js +15 -15
- package/components/SideBar/subcomponents/ContentComponent/index.js +1 -1
- package/components/SideBar/subcomponents/FooterComponent/index.js +1 -1
- package/components/SideBar/subcomponents/HeaderComponent/HeaderComponent.js +1 -1
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +2 -2
- package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/AdormentIcon/AdormentIcon.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/ArrowIcon/index.js +2 -2
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +1 -1
- package/components/Stepper/Stepper.js +4 -4
- package/components/Stepper/Stepper.styles.js +22 -9
- package/components/Stepper/constants.js +2 -2
- package/components/Stepper/helpers/findAllVisibleStepsBefore/index.d.ts +19 -0
- package/components/Stepper/helpers/findAllVisibleStepsBefore/index.js +22 -0
- package/components/Stepper/helpers/findStepIndexByKey/index.d.ts +8 -0
- package/components/Stepper/helpers/findStepIndexByKey/index.js +6 -0
- package/components/Stepper/helpers/index.d.ts +2 -0
- package/components/Stepper/hooks/useInitialStepKey/index.d.ts +5 -0
- package/components/Stepper/hooks/useInitialStepKey/index.js +44 -0
- package/components/Stepper/hooks/useStepper/index.js +1 -1
- package/components/Stepper/slots/StepperEnum.d.ts +1 -0
- package/components/Stepper/slots/StepperEnum.js +3 -2
- package/components/Stepper/slots/StepperSlot.d.ts +7 -4
- package/components/Stepper/slots/StepperSlot.js +23 -18
- package/components/Stepper/store/StepperContext/index.js +6 -4
- package/components/Stepper/store/StepperStore/index.js +71 -1
- package/components/Stepper/store/types.d.ts +12 -2
- package/components/Stepper/subcomponents/ContentArea/index.js +3 -1
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperIcon/index.js +1 -1
- package/components/Stepper/subcomponents/ContentArea/subcomponents/WrapperTitle/index.js +1 -1
- package/components/Stepper/subcomponents/StepArea/index.js +2 -2
- package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +1 -1
- package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js +1 -1
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterLeftActions/index.js +1 -1
- package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterRightActions/index.js +1 -1
- package/components/Stepper/types.d.ts +22 -0
- package/components/TabsNavigator/TabsNavigator.js +2 -2
- package/components/TabsNavigator/TabsNavigator.styles.js +1 -1
- package/components/TabsNavigator/constants.js +4 -4
- package/components/TabsNavigator/helpers/getFinalTabs/getFinalTabs.js +1 -1
- package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +2 -2
- package/components/TabsNavigator/slots/TabsNavigatorSlots.js +8 -8
- package/components/TabsNavigator/subcomponents/TabNavigatorClusterComponent/TabNavigatorClusterComponent.js +2 -2
- package/components/TabsNavigator/subcomponents/TabNavigatorComponent/TabNavigatorComponent.js +2 -2
- package/components/TabsNavigator/subcomponents/TextMarquee/TextMarquee.js +2 -2
- package/components/ToastContainer/ToastContainer.js +2 -2
- package/components/ToastContainer/ToastContainer.styles.js +1 -1
- package/components/ToastContainer/constants.js +2 -2
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/ToastContainer/slots/toastContainerSlots.js +1 -1
- package/components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js +1 -1
- package/components/WindowBase/WindowBase.js +4 -4
- package/components/WindowBase/constants.js +1 -1
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
- package/components/WindowBase/slots/WindowBaseSlots.js +9 -9
- package/components/WindowBase/subcomponents/Component/index.js +1 -1
- package/components/WindowBase/subcomponents/EditionInfo/EditionInfo.js +1 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +1 -1
- package/components/WindowConfirm/WindowConfirm.js +4 -4
- package/components/WindowConfirm/slots/WindowConfirmSlots.js +7 -7
- package/components/WindowConfirm/subcomponents/MessageIllustration/MessageIllustration.js +1 -1
- package/components/areas/components/AreasAdmin/AreasAdmin.js +3 -3
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.js +16 -16
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/AreaChipMobile.js +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +1 -1
- package/components/areas/components/AreasViewer/AreasViewer.js +4 -4
- package/components/areas/components/AreasViewer/classes/index.js +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.js +3 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +1 -1
- package/components/areas/constants.js +2 -2
- package/components/areas/contexts/AreasContext/index.js +2 -2
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/areas/hooks/useAreas/index.js +1 -1
- package/components/commercial/TopBar/TopBar.js +2 -2
- package/components/commercial/TopBar/component/ConteinItem/index.js +1 -1
- package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +1 -1
- package/components/commercial/TopBar/context/index.js +2 -2
- package/components/commercial/TopBar/hook/topBarContext/index.js +1 -1
- package/components/datagrids/Datagrid.styles.js +27 -0
- package/components/datagrids/components/BaseDataGrid/BaseDataGrid.js +6 -6
- package/components/datagrids/components/DataGridMain/DataGridMain.js +4 -2
- package/components/datagrids/components/TreeDataGrid/TreeDataGrid.js +3 -1
- package/components/datagrids/constants.js +3 -3
- package/components/datagrids/contexts/DataGridContext/DataGridContext.js +4 -4
- package/components/datagrids/contexts/FilterContext/FilterContext.js +2 -2
- package/components/datagrids/formatters/ColumnChipStatusFormatter/ColumnChipStatusGroupFormatter.js +1 -1
- package/components/datagrids/formatters/ColumnChipStatusFormatter/formatter.js +1 -1
- package/components/datagrids/formatters/ColumnImageFormatter/ImageFormatterCell.js +1 -1
- package/components/datagrids/hooks/shared/useDataGrid/useDataGrid.js +1 -1
- package/components/datagrids/hooks/shared/useFilters/useFilters.js +1 -1
- package/components/datagrids/slots/DataGridEnum.d.ts +2 -1
- package/components/datagrids/slots/DataGridEnum.js +1 -0
- package/components/datagrids/slots/DataGridSlot.d.ts +1 -0
- package/components/datagrids/slots/DataGridSlot.js +44 -39
- package/components/datagrids/subcomponents/ControlNavigate/ControlNavigate.js +1 -1
- package/components/datagrids/subcomponents/ControlNavigate/subcomponents/RowsCount/RowsCount.js +1 -1
- package/components/datagrids/subcomponents/HeaderActions/HeaderActions.js +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.js +1 -1
- package/components/datagrids/subcomponents/editors/TextEditor/TextEditor.js +1 -1
- package/components/datagrids/types.d.ts +33 -0
- package/components/datagrids/views/CardsView/CardsView.js +1 -1
- package/components/datagrids/views/CardsView/hooks/useCardContent/useCardContent.js +1 -1
- package/components/datagrids/views/CardsView/hooks/useModalDetail/useModalDetail.js +1 -1
- package/components/datagrids/views/CardsView/subcomponents/CardDetails/CardDetails.js +1 -1
- package/components/datagrids/views/CardsView/subcomponents/CardRow/CardRow.js +1 -1
- package/components/datagrids/views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +1 -1
- package/components/datagrids/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +1 -1
- package/components/datagrids/views/TableView/TableView.js +25 -5
- package/components/datagrids/views/TableView/helpers/index.d.ts +1 -0
- package/components/datagrids/views/TableView/helpers/rowCellsBackground/index.d.ts +2 -0
- package/components/datagrids/views/TableView/helpers/rowCellsBackground/index.js +1 -0
- package/components/datagrids/views/TableView/helpers/rowCellsBackground/rowCellsBackground.d.ts +32 -0
- package/components/datagrids/views/TableView/helpers/rowCellsBackground/rowCellsBackground.js +58 -0
- package/components/datagrids/views/TableView/helpers/rowCellsBackground/types.d.ts +7 -0
- package/components/datagrids/views/TableView/hooks/useSortColumnsRows/useSortColumnsRows.js +1 -3
- package/components/datagrids/views/TableView/subcomponents/DraggableHeaderRenderer/DraggableHeaderRenderer.js +1 -1
- package/components/datagrids/views/TableView/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
- package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.js +1 -1
- package/components/datagrids/views/TableView/subcomponents/SelectColumn/SelectColumn.js +2 -2
- package/components/datagrids/views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +1 -1
- package/components/datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +1 -1
- package/components/datagrids/views/adapters/CheckboxCellAdapter/CheckboxCellAdapter.js +2 -2
- package/components/extended/React-Json-Viewer/ReactJsonViewer.js +1 -1
- package/components/extended/React-Json-Viewer/constants.js +3 -3
- package/components/extended/React-Json-Viewer/slots/ReactJsonViewerSlots.js +1 -1
- package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +2 -2
- package/components/extended/React-Window/FixedSizeList/constants.js +1 -1
- package/components/extended/React-Window/VariableSizeList/constants.js +1 -1
- package/components/extended/React-resizable-panels/SplitLayout.js +2 -2
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +2 -2
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
- package/components/formatters/ChipStatusFormatter/ChipStatusFormatter.js +2 -2
- package/components/formatters/ChipStatusFormatter/constants.js +3 -3
- package/components/formatters/ChipStatusFormatter/slots/ChipStatusFormatterSlots.js +3 -3
- package/components/formatters/ColorFormatter/ColorFormatter.js +2 -2
- package/components/formatters/ConcatenatedFormatter/ConcatenatedFormatter.js +2 -2
- package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
- package/components/formatters/DateFormatter/DateFormatter.js +2 -2
- package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
- package/components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js +2 -2
- package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
- package/components/formatters/IconsFormatter/constants.js +3 -3
- package/components/formatters/IconsFormatter/helpers/renderIcon.js +1 -1
- package/components/formatters/IconsFormatter/slots/IconsFormatterSlots.js +1 -1
- package/components/formatters/ImageFormatter/ImageFormatter.js +2 -2
- package/components/formatters/ImageFormatter/constants.js +1 -1
- package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
- package/components/formatters/PeriodFormatter/PeriodFormatter.js +3 -3
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
- package/components/formatters/PointsFormatter/PointsFormatter.js +2 -2
- package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
- package/components/formatters/PriceFormatter/PriceFormatter.js +2 -2
- package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
- package/components/formatters/TagsFormatter/constants.js +1 -1
- package/components/formatters/TagsFormatter/helpers/renderMultipleTag.js +1 -1
- package/components/formatters/TagsFormatter/slots/TagsFormatterSlots.js +2 -2
- package/components/formatters/TagsFormatter/subcomponents/Tag/Tag.js +1 -1
- package/components/formatters/UncertaintyFormatter/UncertaintyFormatter.js +2 -2
- package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
- package/components/hook-form/RHFActionsGroup/constants.js +1 -1
- package/components/hook-form/RHFAutocomplete/constants.js +1 -1
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
- package/components/hook-form/RHFCheckableList/RHFCheckableList.js +1 -1
- package/components/hook-form/RHFCheckableList/constants.js +1 -1
- package/components/hook-form/RHFCheckbox/constants.js +1 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +2 -2
- package/components/hook-form/RHFColorPicker/subcomponents/ColorPickerField/ColorPickerField.js +1 -1
- package/components/hook-form/RHFDatePicker/RHFDatePicker.js +1 -1
- package/components/hook-form/RHFDateTime/RHFDateTime.js +2 -2
- package/components/hook-form/RHFNumberInput/RHFNumberInput.js +1 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.js +2 -2
- package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +1 -1
- package/components/hook-form/RHFRadioGroup/constants.js +1 -1
- package/components/hook-form/RHFSelect/RHFSelect.js +2 -2
- package/components/hook-form/RHFSelect/constants.js +3 -3
- package/components/hook-form/RHFSelect/slots/RHFSlots.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +2 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +2 -2
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +2 -2
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.js +3 -3
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +5 -5
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/UploadSingleFile/index.js +1 -1
- package/components/hook-form/RHFormProvider/types.js +2 -2
- package/components/mui_extended/Accordion/Accordion.js +2 -2
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +1 -1
- package/components/mui_extended/Autocomplete/Autocomplete.js +1 -1
- package/components/mui_extended/Autocomplete/constants.js +1 -1
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +1 -1
- package/components/mui_extended/Autocomplete/hooks/useMultipleChips.js +1 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +2 -2
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +8 -8
- package/components/mui_extended/Avatar/Avatar.js +2 -2
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.js +1 -1
- package/components/mui_extended/Badge/Badge.js +2 -2
- package/components/mui_extended/Button/constants.js +1 -1
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.js +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +1 -1
- package/components/mui_extended/CircularProgress/CircularProgress.js +2 -2
- package/components/mui_extended/CircularProgress/constants.js +2 -2
- package/components/mui_extended/CircularProgress/slots/CircularProgressSlots.js +1 -1
- package/components/mui_extended/DatePicker/DatePicker.js +2 -2
- package/components/mui_extended/DatePicker/constants.js +3 -3
- package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.js +1 -1
- package/components/mui_extended/DatePicker/slots/DatePickerSlots.js +3 -3
- package/components/mui_extended/DateTimePicker/DateTimePicker.js +2 -2
- package/components/mui_extended/Dialog/Dialog.js +2 -2
- package/components/mui_extended/IconButton/IconButton.js +1 -1
- package/components/mui_extended/IconButton/constants.js +3 -3
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -1
- package/components/mui_extended/ImageButton/ImageButton.js +1 -1
- package/components/mui_extended/LoadingButton/LoadingButton.js +1 -1
- package/components/mui_extended/MenuDivider/MenuDivider.js +2 -2
- package/components/mui_extended/MenuItem/MenuItem.js +2 -2
- package/components/mui_extended/MenuItem/constants.js +3 -3
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
- package/components/mui_extended/NavLink/NavLink.js +2 -2
- package/components/mui_extended/NavLink/constants.js +3 -3
- package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +1 -1
- package/components/mui_extended/NavLink/slots/NavLinkSlots.js +1 -1
- package/components/mui_extended/Popover/Popover.js +2 -2
- package/components/mui_extended/Popover/constants.js +3 -3
- package/components/mui_extended/Popover/slots/PopoverSlots.js +1 -1
- package/components/mui_extended/Popper/Popper.js +1 -1
- package/components/mui_extended/Radio/Radio.js +1 -1
- package/components/mui_extended/Radio/constants.js +1 -1
- package/components/mui_extended/Radio/slots/styled.d.ts +1 -1
- package/components/mui_extended/Select/Select.js +2 -2
- package/components/mui_extended/Select/constants.js +2 -2
- package/components/mui_extended/Select/slots/SelectEnum.js +2 -2
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +3 -3
- package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
- package/components/mui_extended/Skeleton/Skeleton.js +1 -1
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.js +1 -1
- package/components/mui_extended/Skeleton/constants.js +2 -2
- package/components/mui_extended/Stack/Stack.js +1 -1
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Tab.js +1 -1
- package/components/mui_extended/TabContent/TabContent.js +1 -1
- package/components/mui_extended/TextField/TextField.js +2 -2
- package/components/mui_extended/TextField/constants.js +2 -2
- package/components/mui_extended/TextField/slots/TextFieldEnum.js +2 -2
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
- package/components/mui_extended/TextField/slots/TextFieldSlots.js +1 -1
- package/components/mui_extended/ToggleButton/ToggleButton.js +2 -2
- package/components/mui_extended/ToggleIconButton/ToggleIconButton.js +2 -2
- package/components/mui_extended/Tooltip/Tooltip.js +1 -1
- package/components/mui_extended/Tooltip/constants.js +3 -3
- package/components/mui_extended/Tooltip/slots/TooltipSlots.js +1 -1
- package/components/mui_extended/Typography/Typography.js +2 -2
- package/components/mui_extended/Typography/constants.js +3 -3
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/Typography/slots/typographySlots.js +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.js +2 -2
- package/components/popups/components/PopupsProvider/hooks/usePopupsStore.js +1 -1
- package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +1 -1
- package/contexts/AppearanceComponentContext/AppearanceComponentContext.js +3 -3
- package/contexts/AppearanceComponentContext/useAppearanceComponentStore.js +1 -1
- package/contexts/ModalContext/index.js +2 -2
- package/hocs/withRHFController/constants.js +3 -3
- package/hocs/withRHFController/index.js +1 -1
- package/hocs/withRHFController/slots/WithRHFControllerSlots.js +1 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +3 -3
- package/hooks/useDynamicFilterAndSort/styles.js +2 -2
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +1 -1
- package/hooks/useModal/index.js +1 -1
- package/index.js +576 -576
- package/not_recognized/index.js +25 -100
- package/package.json +1 -1
- package/test/getNameDataTestId.js +2 -2
- package/utils/getComponentSlotRoot.js +2 -2
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo,
|
|
2
|
+
import { useMemo, useRef, useState, useEffect } from "react";
|
|
3
3
|
import DataGrid, { TreeDataGrid } from "react-data-grid";
|
|
4
4
|
import { DndProvider } from "react-dnd";
|
|
5
5
|
import { HTML5Backend } from "react-dnd-html5-backend";
|
|
6
|
-
import {
|
|
6
|
+
import { X as TableContainerStyled, f as TableWrapperDataGridStyled } from "../../slots/DataGridSlot.js";
|
|
7
7
|
import { u as useSortColumnsRows } from "./hooks/useSortColumnsRows/useSortColumnsRows.js";
|
|
8
8
|
import { g as getGroupBy } from "./helpers/getGroupBy/getGroupBy.js";
|
|
9
9
|
import { d as defaultRowGrouper } from "./helpers/defaultRowGrouper/defaultRowGrouper.js";
|
|
10
|
+
import { c as createRowCellsBackgroundMap, p as processColumnsWithRowCellsBackground } from "./helpers/rowCellsBackground/rowCellsBackground.js";
|
|
10
11
|
import { u as useHeaderMenuActions } from "./hooks/useHeaderMenuActions/useHeaderMenuActions.js";
|
|
11
|
-
import {
|
|
12
|
+
import { a as filterHeight } from "./subcomponents/SelectColumn/SelectColumn.js";
|
|
12
13
|
import { H as HeaderRenderClick } from "./subcomponents/HeaderRenderClick/HeaderRenderClick.js";
|
|
13
14
|
import { g as getDefaultAction } from "../../helpers/shared/getDefaultAction/getDefaultAction.js";
|
|
14
15
|
import { u as useFilters } from "../../hooks/shared/useFilters/useFilters.js";
|
|
@@ -24,6 +25,7 @@ function TableView(props) {
|
|
|
24
25
|
onSelectedRowsChange,
|
|
25
26
|
defaultColumnOptions: defaultColumnOptionsProp,
|
|
26
27
|
focusOnRowKey,
|
|
28
|
+
rowCellsBackground,
|
|
27
29
|
treeProps,
|
|
28
30
|
...restProps
|
|
29
31
|
} = props;
|
|
@@ -76,6 +78,24 @@ function TableView(props) {
|
|
|
76
78
|
return getGroupBy(columnsConfig);
|
|
77
79
|
}, [columnsConfig, treeProps]);
|
|
78
80
|
const rowGrouper = treeProps?.rowGrouper ?? defaultRowGrouper;
|
|
81
|
+
const colorGetter = useMemo(() => {
|
|
82
|
+
if (!rowCellsBackground) {
|
|
83
|
+
return void 0;
|
|
84
|
+
}
|
|
85
|
+
if (typeof rowCellsBackground === "function") {
|
|
86
|
+
return rowCellsBackground;
|
|
87
|
+
}
|
|
88
|
+
return createRowCellsBackgroundMap(rowCellsBackground);
|
|
89
|
+
}, [rowCellsBackground]);
|
|
90
|
+
const columnsWithBackground = useMemo(
|
|
91
|
+
() => processColumnsWithRowCellsBackground(
|
|
92
|
+
finalColumns,
|
|
93
|
+
colorGetter,
|
|
94
|
+
rowKeyGetter,
|
|
95
|
+
currentRowHeightVariant
|
|
96
|
+
),
|
|
97
|
+
[finalColumns, colorGetter, rowKeyGetter, currentRowHeightVariant]
|
|
98
|
+
);
|
|
79
99
|
const ref_data_grid = useRef(null);
|
|
80
100
|
const [popoverState, setPopoverState] = useState({
|
|
81
101
|
anchorEl: null,
|
|
@@ -179,7 +199,7 @@ function TableView(props) {
|
|
|
179
199
|
className: "rdg-light",
|
|
180
200
|
ref: ref_data_grid,
|
|
181
201
|
headerRowHeight: activeFilters ? currentRowHeaderHeight + filterHeight : currentRowHeaderHeight,
|
|
182
|
-
columns:
|
|
202
|
+
columns: columnsWithBackground,
|
|
183
203
|
sortColumns,
|
|
184
204
|
onSortColumnsChange: handleSortColumnsChange,
|
|
185
205
|
onColumnResize,
|
|
@@ -207,7 +227,7 @@ function TableView(props) {
|
|
|
207
227
|
className: "rdg-light",
|
|
208
228
|
ref: ref_data_grid,
|
|
209
229
|
headerRowHeight: activeFilters ? currentRowHeaderHeight + filterHeight : currentRowHeaderHeight,
|
|
210
|
-
columns:
|
|
230
|
+
columns: columnsWithBackground,
|
|
211
231
|
sortColumns,
|
|
212
232
|
onSortColumnsChange: handleSortColumnsChange,
|
|
213
233
|
onColumnResize,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { getDragHeaderRenderer } from './getDragHeaderRenderer';
|
|
2
2
|
export { getGroupBy } from './getGroupBy';
|
|
3
3
|
export { defaultRowGrouper } from './defaultRowGrouper';
|
|
4
|
+
export { createRowCellsBackgroundMap, processColumnsWithRowCellsBackground, } from './rowCellsBackground';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/components/datagrids/views/TableView/helpers/rowCellsBackground/rowCellsBackground.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Column } from 'react-data-grid';
|
|
2
|
+
import { RowKey, RowCellBackground, RowHeightVariants } from '../../../../types';
|
|
3
|
+
import { CellColorGetter } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Convierte el array de rowCellsBackground en un Map para buscar el color
|
|
6
|
+
* de una celda usando la combinación de rowKey y columnKey.
|
|
7
|
+
*
|
|
8
|
+
* El Map usa como llave la combinación "rowKey|columnKey" (separados por |)
|
|
9
|
+
* y como valor el color.
|
|
10
|
+
*
|
|
11
|
+
* Ejemplo:
|
|
12
|
+
* - Entrada: [{ rowKey: 'user_1', columnKey: 'status', color: '#FF0000' }]
|
|
13
|
+
* - Map resultante: { 'user_1|status' => '#FF0000' }
|
|
14
|
+
* @param rowCellsBackground - Array de celdas con sus colores (puede ser undefined)
|
|
15
|
+
* @returns Map con la llave "rowKey|columnKey" y el color como valor
|
|
16
|
+
*/
|
|
17
|
+
export declare const createRowCellsBackgroundMap: <TKey extends RowKey>(rowCellsBackground: RowCellBackground<TKey>[] | undefined) => Map<string, string>;
|
|
18
|
+
/**
|
|
19
|
+
* Procesa las columnas para agregar el wrapper de color donde corresponda.
|
|
20
|
+
*
|
|
21
|
+
* Para cada columna, modifica el renderCell para:
|
|
22
|
+
* 1. Obtener el rowKey de la fila actual
|
|
23
|
+
* 2. Buscar si existe un color para esa combinación rowKey + columnKey
|
|
24
|
+
* 3. Si existe color, envolver el contenido con CellBackgroundWrapperStyled
|
|
25
|
+
* 4. Si no existe color, mostrar el contenido normal sin cambios
|
|
26
|
+
* @param columns - Las columnas originales del DataGrid
|
|
27
|
+
* @param colorGetter - Map con los colores o función que retorna el color
|
|
28
|
+
* @param rowKeyGetter - Función que obtiene el key de una fila
|
|
29
|
+
* @param currentRowHeightVariant - Variante de altura de fila para el truncado
|
|
30
|
+
* @returns Las columnas modificadas con el renderCell actualizado
|
|
31
|
+
*/
|
|
32
|
+
export declare const processColumnsWithRowCellsBackground: <TRow, TSummaryRow, TKey extends RowKey>(columns: readonly Column<TRow, TSummaryRow>[], colorGetter: CellColorGetter<TKey> | undefined, rowKeyGetter: (row: TRow) => TKey, currentRowHeightVariant?: RowHeightVariants) => Column<TRow, TSummaryRow>[];
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { O as CellBackgroundWrapperStyled } from "../../../../slots/DataGridSlot.js";
|
|
3
|
+
const getCellColor = (colorGetter, rowKey, columnKey) => {
|
|
4
|
+
if (colorGetter instanceof Map) {
|
|
5
|
+
return colorGetter.get(`${rowKey}|${columnKey}`);
|
|
6
|
+
}
|
|
7
|
+
return colorGetter(rowKey, columnKey);
|
|
8
|
+
};
|
|
9
|
+
const createRowCellsBackgroundMap = (rowCellsBackground) => {
|
|
10
|
+
const map = /* @__PURE__ */ new Map();
|
|
11
|
+
if (!rowCellsBackground) {
|
|
12
|
+
return map;
|
|
13
|
+
}
|
|
14
|
+
rowCellsBackground.forEach(({ rowKey, columnKey, color }) => {
|
|
15
|
+
map.set(`${rowKey}|${columnKey}`, color);
|
|
16
|
+
});
|
|
17
|
+
return map;
|
|
18
|
+
};
|
|
19
|
+
const processColumnsWithRowCellsBackground = (columns, colorGetter, rowKeyGetter, currentRowHeightVariant) => {
|
|
20
|
+
if (!colorGetter) {
|
|
21
|
+
return columns;
|
|
22
|
+
}
|
|
23
|
+
if (colorGetter instanceof Map && colorGetter.size === 0) {
|
|
24
|
+
return columns;
|
|
25
|
+
}
|
|
26
|
+
return columns.map((column) => {
|
|
27
|
+
const originalRenderCell = column.renderCell;
|
|
28
|
+
return {
|
|
29
|
+
...column,
|
|
30
|
+
// Mantener todas las propiedades originales de la columna
|
|
31
|
+
/**
|
|
32
|
+
* Reemplazar renderCell con nuestra versión que agrega el color
|
|
33
|
+
*/
|
|
34
|
+
renderCell: (props) => {
|
|
35
|
+
const rowKey = rowKeyGetter(props.row);
|
|
36
|
+
const cellColor = getCellColor(colorGetter, rowKey, column.key);
|
|
37
|
+
const originalContent = originalRenderCell ? originalRenderCell(props) : props.row[column.key];
|
|
38
|
+
if (cellColor) {
|
|
39
|
+
return /* @__PURE__ */ jsx(
|
|
40
|
+
CellBackgroundWrapperStyled,
|
|
41
|
+
{
|
|
42
|
+
ownerState: {
|
|
43
|
+
cellBackgroundColor: cellColor,
|
|
44
|
+
currentRowHeightVariant
|
|
45
|
+
},
|
|
46
|
+
children: originalContent
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
return originalContent;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
createRowCellsBackgroundMap as c,
|
|
57
|
+
processColumnsWithRowCellsBackground as p
|
|
58
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RowKey, RowCellsBackgroundGetter } from '../../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Tipo para el getter de color - puede ser Map (desde array) o función directa.
|
|
4
|
+
* - Map: Resultado de convertir un array de RowCellBackground
|
|
5
|
+
* - Función: La función directa que retorna el color para cada celda
|
|
6
|
+
*/
|
|
7
|
+
export type CellColorGetter<TKey extends RowKey> = Map<string, string> | RowCellsBackgroundGetter<TKey>;
|
|
@@ -4,7 +4,7 @@ import { useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
|
4
4
|
import { SELECT_COLUMN_KEY } from "react-data-grid";
|
|
5
5
|
import { g as getDragHeaderRenderer } from "../../helpers/getDragHeaderRenderer/getDragHeaderRenderer.js";
|
|
6
6
|
import { S as SkeletonFormatter } from "../../subcomponents/SkeletonFormatter/SkeletonFormatter.js";
|
|
7
|
-
import {
|
|
7
|
+
import { f as filterColumnClassName, S as SelectColumn } from "../../subcomponents/SelectColumn/SelectColumn.js";
|
|
8
8
|
import { R as RenderGroupCell } from "../../subcomponents/RenderGroupCell/RenderGroupCell.js";
|
|
9
9
|
import { A as ActionsColumn } from "../../subcomponents/ActionsColumn/ActionsColumn.js";
|
|
10
10
|
import { R as RadioSelectColumn } from "../../subcomponents/RadioSelectColumn/RadioSelectColumn.js";
|
|
@@ -20,7 +20,6 @@ function getComparator(columns, sortColumn) {
|
|
|
20
20
|
return column.customSort;
|
|
21
21
|
}
|
|
22
22
|
switch (typeOrder) {
|
|
23
|
-
//Si el tipo de dato de la columna es un numerico, retorna una función de ordenamiento numérica
|
|
24
23
|
case "number":
|
|
25
24
|
return (a, b) => {
|
|
26
25
|
try {
|
|
@@ -29,7 +28,6 @@ function getComparator(columns, sortColumn) {
|
|
|
29
28
|
return -1;
|
|
30
29
|
}
|
|
31
30
|
};
|
|
32
|
-
//Por defecto retorna una función de ordenamiento de string
|
|
33
31
|
default:
|
|
34
32
|
return (a, b) => {
|
|
35
33
|
try {
|
|
@@ -3,7 +3,7 @@ import { useState, useEffect } from "react";
|
|
|
3
3
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
4
|
import { useDrag, useDrop } from "react-dnd";
|
|
5
5
|
import { renderHeaderCell } from "react-data-grid";
|
|
6
|
-
import { N as NameColumnIconStyled,
|
|
6
|
+
import { N as NameColumnIconStyled, B as NameColumnStyled, F as IconColumnStyled, G as DraggableHeaderRootStyled, H as ButtonHeaderActionsStyled, J as DraggableWrapperInputBaseStyled, K as IconSearchStyled, M as HeaderInputBaseStyled } from "../../../../slots/DataGridSlot.js";
|
|
7
7
|
import { p as pathIcons } from "../../../../icons.js";
|
|
8
8
|
import { I as Icon } from "../../../../../Icon/Icon.js";
|
|
9
9
|
import { u as useFocusRef } from "../../hooks/useFocusRef/useFocusRef.js";
|
package/components/datagrids/views/TableView/subcomponents/HeaderRenderClick/HeaderRenderClick.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useMemo, useEffect, useCallback } from "react";
|
|
3
3
|
import { useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { M as MenuItem } from "../../../../../mui_extended/MenuItem/MenuItem.js";
|
|
5
|
-
import {
|
|
5
|
+
import { S as MenuListStyled, U as HeaderRenderClickStyled } from "../../../../slots/DataGridSlot.js";
|
|
6
6
|
import { M as MenuDivider } from "../../../../../mui_extended/MenuDivider/MenuDivider.js";
|
|
7
7
|
import { P as Popover } from "../../../../../mui_extended/Popover/Popover.js";
|
|
8
8
|
import { D as DICTIONARY } from "../../../../dictionary.js";
|
package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEnvironment } from "@m4l/core";
|
|
3
3
|
import { p as pathIcons } from "../../../../icons.js";
|
|
4
4
|
import { I as Icon } from "../../../../../Icon/Icon.js";
|
|
5
|
-
import {
|
|
5
|
+
import { P as DefaultRenderGroupCellRootStyled, Q as DefaultRenderGroupCellTextStyled } from "../../../../slots/DataGridSlot.js";
|
|
6
6
|
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
7
7
|
function RenderGroupCell(props) {
|
|
8
8
|
const { groupKey, isExpanded, toggleGroup, column, customRenderGroupCell, ...restProps } = props;
|
|
@@ -3,7 +3,7 @@ import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
|
3
3
|
import { useIsMobile } from "@m4l/graphics";
|
|
4
4
|
import { useRef, useCallback } from "react";
|
|
5
5
|
import { u as useModal } from "../../../../../../../../hooks/useModal/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { h as ContentModalSettingStyled, D as DataGridRootStyled } from "../../../../../../slots/DataGridSlot.js";
|
|
7
7
|
import { p as pathIcons } from "../../../../../../icons.js";
|
|
8
8
|
import { C as ColumnsConfig } from "../../subcomponents/ColumnsConfig/ColumnsConfig.js";
|
|
9
9
|
import { A as ActionsContainer } from "../../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
@@ -4,7 +4,7 @@ import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
|
4
4
|
import DataGrid from "react-data-grid";
|
|
5
5
|
import { I as IconButton } from "../../../../../../../mui_extended/IconButton/IconButton.js";
|
|
6
6
|
import { p as pathIcons } from "../../../../../../icons.js";
|
|
7
|
-
import {
|
|
7
|
+
import { c as ColumnsConfigWrapperStyled, d as ColumnsConfigDataGridStyled, e as ColumnsConfigSelColumnsStyled, f as TableWrapperDataGridStyled, g as ColumnsConfigActiosStyled } from "../../../../../../slots/DataGridSlot.js";
|
|
8
8
|
import { D as DICTIONARY } from "../../../../../../dictionary.js";
|
|
9
9
|
import { C as ColumnInteractiveCheckFormatter } from "../../../../../../formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
10
10
|
function getRowsFromColumnsConfig(columnsConfig, columns) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useContext } from "react";
|
|
3
3
|
import { SelectCellFormatter } from "react-data-grid";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { b as CheckboxCellWrapperStyled } from "../../../slots/DataGridSlot.js";
|
|
5
|
+
import { D as DataGridContext } from "../../../contexts/DataGridContext/DataGridContext.js";
|
|
6
6
|
import { R as RadioFormatter } from "../../TableView/subcomponents/RadioSelectColumn/subcomponents/RadioFormatter/RadioFormatter.js";
|
|
7
7
|
import { C as CheckboxFormatter } from "../../TableView/subcomponents/CheckboxFormatter/CheckboxFormatter.js";
|
|
8
8
|
const CheckboxCellAdapter = forwardRef(function CheckboxCellAdapter2(props, ref) {
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { JsonViewer } from "@textea/json-viewer";
|
|
4
4
|
import { R as ReactJsonViewerRootStyled } from "./slots/ReactJsonViewerSlots.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as REACT_JSON_VIEWER_CLASSES } from "./constants.js";
|
|
6
6
|
import { useTheme } from "@mui/material";
|
|
7
7
|
import { g as getReactJsonViewerTheme } from "./helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.js";
|
|
8
8
|
const ReactJsonViewer = (props) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
2
2
|
import { R as ReactJsonViewerSlots } from "./slots/ReactJsonViewerEnum.js";
|
|
3
3
|
const REACT_JSON_VIEWER_KEY_COMPONENT = "M4LReactJsonViewer";
|
|
4
4
|
const REACT_JSON_VIEWER_CLASSES = getComponentClasses(REACT_JSON_VIEWER_KEY_COMPONENT, ReactJsonViewerSlots);
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
REACT_JSON_VIEWER_KEY_COMPONENT as R,
|
|
7
|
+
REACT_JSON_VIEWER_CLASSES as a
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import {
|
|
2
|
+
import { R as REACT_JSON_VIEWER_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { R as ReactJsonViewerSlots } from "./ReactJsonViewerEnum.js";
|
|
4
4
|
import { r as reactJsonViewerStyles } from "../ReactJsonViewer.styles.js";
|
|
5
5
|
const ReactJsonViewerRootStyled = styled("div", {
|
|
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useTheme } from "@mui/material";
|
|
3
3
|
import { P as PropagateLoaderSpinnerStyled, L as LoaderStyled } from "./slots/PropagateLoaderSpinnerSlots.js";
|
|
4
4
|
import { P as PROPAGATE_LOADER_SPINNER_KEY_COMPONENT } from "./constants.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { g as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
6
|
+
import { a as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
9
9
|
import { P as PropagateLoaderSpinnerSlots } from "./slots/PropagateLoaderSpinnerEnum.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
2
2
|
const FIXEDSIZEDLIST_KEY_COMPONENT = "M4LFixedSizeList";
|
|
3
3
|
const fixedSizeListClassRoot = getComponentSlotRoot(FIXEDSIZEDLIST_KEY_COMPONENT);
|
|
4
4
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
2
2
|
const FIXEDSIZEDLIST_KEY_COMPONENT = "M4LVariableSizeList";
|
|
3
3
|
const fixedSizeListClassRoot = getComponentSlotRoot(FIXEDSIZEDLIST_KEY_COMPONENT);
|
|
4
4
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
4
|
+
import { a as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
5
5
|
import { S as SPLIT_LAYOUT_KEY_COMPONENT, a as SPLIT_LAYOUT_ICONS } from "./constants.js";
|
|
6
6
|
import { S as SplitLayoutSlots } from "./slots/SplitLayoutEnum.js";
|
|
7
7
|
import { S as SplitLayoutRootStyled, a as SplitMasterStyled, b as SplitResizeHandleStyled, c as SplitResizeHandleIconStyled, d as SplitDetailStyled } from "./slots/SplitLayoutSlots.js";
|
|
@@ -3,9 +3,9 @@ import React, { useMemo } from "react";
|
|
|
3
3
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
4
|
import { L as LABEL_BOOLEAN_YES, a as LABEL_BOOLEAN_NO, b as LABEL_BOOLEAN_TRUE, c as LABEL_BOOLEAN_FALSE, d as LABEL_BOOLEAN_ACTIVE, e as LABEL_BOOLEAN_INACTIVE } from "./dictionary.js";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import {
|
|
6
|
+
import { g as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { B as BOOLEAN_FORMATTER_KEY_COMPONENT } from "./constants.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
9
9
|
import { B as BooleanFormatterRootStyled, a as BooleanFormatterIconStyled, b as BooleanFormatterIconCheckFalseStyled, c as BooleanFormatterChipStyled } from "./slots/BooleanFormatterSlots.js";
|
|
10
10
|
import { B as BooleanFormatterSlots } from "./slots/BooleanFormatterEnum.js";
|
|
11
11
|
function getFormatBoolean(presentationType, value = false, getLabel) {
|
|
@@ -4,7 +4,7 @@ export declare const BooleanFormatterIconStyled: import('@emotion/styled').Style
|
|
|
4
4
|
export declare const BooleanFormatterIconCheckFalseStyled: import('@emotion/styled').StyledComponent<Pick<import('../../..').IconProps, "src" | "icon" | keyof import('../../..').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').BooleanFormatterOwnerState> & Record<string, unknown> & {
|
|
5
5
|
ownerState: Partial<import('..').BooleanFormatterOwnerState> & Record<string, unknown>;
|
|
6
6
|
}, {}, {}>;
|
|
7
|
-
export declare const BooleanFormatterRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "
|
|
7
|
+
export declare const BooleanFormatterRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "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-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "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-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | "ellipsis" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').BooleanFormatterOwnerState> & Record<string, unknown> & {
|
|
8
8
|
ownerState: Partial<import('..').BooleanFormatterOwnerState> & Record<string, unknown>;
|
|
9
9
|
}, {}, {}>;
|
|
10
10
|
export declare const BooleanFormatterChipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../..').ChipProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../..').ChipProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').BooleanFormatterOwnerState> & Record<string, unknown> & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { C as ChipStatusFormatterRootStyled } from "./slots/ChipStatusFormatterSlots.js";
|
|
5
|
+
import { a as CHIP_STATUS_FORMATTER_CLASSES } from "./constants.js";
|
|
6
6
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
7
7
|
const ChipStatusFormatter = (props) => {
|
|
8
8
|
const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
2
2
|
import { C as ChipStatusFormatterSlots } from "./slots/ChipStatusFormatterEnum.js";
|
|
3
3
|
const CHIP_STATUS_FORMATTER_KEY_COMPONENT = "M4LChipStatusFormatter";
|
|
4
4
|
const CHIP_STATUS_FORMATTER_CLASSES = getComponentClasses(CHIP_STATUS_FORMATTER_KEY_COMPONENT, ChipStatusFormatterSlots);
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
CHIP_STATUS_FORMATTER_KEY_COMPONENT as C,
|
|
7
|
+
CHIP_STATUS_FORMATTER_CLASSES as a
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material";
|
|
2
2
|
import { c as chipStatusFormatterStyles } from "../ChipStatusFormatter.styles.js";
|
|
3
3
|
import { C as ChipStatusFormatterSlots } from "./ChipStatusFormatterEnum.js";
|
|
4
|
-
import {
|
|
4
|
+
import { C as CHIP_STATUS_FORMATTER_KEY_COMPONENT } from "../constants.js";
|
|
5
5
|
import { C as Chip } from "../../../Chip/Chip.js";
|
|
6
6
|
const ChipStatusFormatterRootStyled = styled(Chip, {
|
|
7
7
|
name: CHIP_STATUS_FORMATTER_KEY_COMPONENT,
|
|
@@ -12,6 +12,6 @@ const ChipStatusFormatterColumnWrapperStyled = styled("div", {
|
|
|
12
12
|
slot: ChipStatusFormatterSlots.columnWrapper
|
|
13
13
|
})(chipStatusFormatterStyles.columnWrapper);
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
ChipStatusFormatterRootStyled as C,
|
|
16
|
+
ChipStatusFormatterColumnWrapperStyled as a
|
|
17
17
|
};
|
|
@@ -3,9 +3,9 @@ import { useMemo } from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { C as ColorFormatterRootStyled } from "./slots/ColorFormatterSlots.js";
|
|
5
5
|
import { C as ColorFormatterSlots } from "./slots/ColorFormatterEnum.js";
|
|
6
|
-
import {
|
|
6
|
+
import { g as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
7
7
|
import { C as COLOR_FORMATTER_KEY_COMPONENT } from "./constants.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
9
9
|
import { C as Color } from "../../Color/Color.js";
|
|
10
10
|
function ColorFormatter(props) {
|
|
11
11
|
const { value, dataTestId, className, size = "medium" } = props;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import React, { useMemo } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
5
|
+
import { g as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
6
6
|
import { C as ConcatenatedFormatterRootStyled } from "./slots/ConcatenatedFormatterSlots.js";
|
|
7
7
|
import { C as CONTATENATED_FORMATTER_KEY_COMPONENT } from "./constants.js";
|
|
8
8
|
import { C as ConcatenatedFormatterSlots } from "./slots/ConcatenatedFormatterEnum.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ConcatenatedFormatterRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "
|
|
1
|
+
export declare const ConcatenatedFormatterRootStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "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-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "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-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | "ellipsis" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown>, {}, {}>;
|
|
@@ -4,8 +4,8 @@ import { useFormatter } from "@m4l/graphics";
|
|
|
4
4
|
import { D as DateFormatterRootStyled } from "./slots/DateFormatterSlots.js";
|
|
5
5
|
import { D as DateFormatterSlots } from "./slots/DateFormatterEnum.js";
|
|
6
6
|
import clsx from "clsx";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { g as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
|
|
8
|
+
import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
9
9
|
import { D as DATE_FORMATTER_KEY_COMPONENT } from "./constants.js";
|
|
10
10
|
function getFormatDate(presentationType, value, dateFormatter, format) {
|
|
11
11
|
let finalFormat = format || dateFormatter.datetimeFormat;
|