@m4l/components 9.4.10-JT14012026.beta.1 → 9.4.11
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/slots/AccountPopoverSlots.d.ts +6 -6
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
- package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
- package/components/Card/constants.d.ts +1 -1
- package/components/CheckableList/slots/styled.d.ts +9 -9
- package/components/Chip/slots/ChipSlots.d.ts +2 -2
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.d.ts +34 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.js +46 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.styles.d.ts +2 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/ActionFormSubmitProgrammatic.styles.js +7 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/constanst.d.ts +6 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/constanst.js +7 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/index.d.ts +2 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticEnum.d.ts +3 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticEnum.js +7 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.d.ts +1 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/ActionFormSubmitProgrammaticSlots.js +12 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/slots/index.d.ts +2 -0
- package/components/CommonActions/components/ActionFormSubmitProgrammatic/types.d.ts +36 -0
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/CommonActions/index.d.ts +1 -0
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.d.ts +21 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +8 -3
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +5 -2
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +1 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +6 -3
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.d.ts +21 -1
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +8 -3
- package/components/EditLabel/slots/EditLabelSlots.d.ts +4 -4
- package/components/GridLayout/classes/index.d.ts +1 -1
- package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
- package/components/ImageText/constants.d.ts +1 -1
- package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
- package/components/Label/slots/LabelSlots.d.ts +3 -3
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
- package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
- package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
- package/components/MenuActions/constants.d.ts +1 -1
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +2 -2
- package/components/Pager/slots/PagerSlots.d.ts +3 -3
- package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +3 -3
- package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
- package/components/Stepper/slots/StepperSlot.d.ts +4 -4
- package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +2 -2
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +3 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.d.ts +1 -1
- package/components/areas/contexts/AreasContext/store.js +1 -1
- package/components/datagrids/Datagrid.styles.js +0 -24
- package/components/datagrids/components/DataGridMain/DataGridMain.js +134 -22
- package/components/datagrids/constants.js +5 -3
- package/components/datagrids/contexts/DataGridContext/DataGridContext.js +4 -8
- package/components/datagrids/contexts/DataGridContext/types.d.ts +3 -19
- package/components/datagrids/dictionary.d.ts +0 -3
- package/components/datagrids/dictionary.js +0 -4
- package/components/datagrids/formatters/ColumnBooleanFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnBooleanFormatter/useColumnBoolean.d.ts +0 -1
- package/components/datagrids/formatters/ColumnBooleanFormatter/useColumnBoolean.js +0 -2
- package/components/datagrids/formatters/ColumnChipStatusFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnChipStatusFormatter/useColumnChipStatus.d.ts +0 -1
- package/components/datagrids/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js +0 -2
- package/components/datagrids/formatters/ColumnColorFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnColorFormatter/useColumnColor.d.ts +0 -1
- package/components/datagrids/formatters/ColumnColorFormatter/useColumnColor.js +1 -3
- package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.d.ts +0 -1
- package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/useColumnConcatenatedValues.js +0 -2
- package/components/datagrids/formatters/ColumnDateFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnDateFormatter/useColumnDate.d.ts +0 -1
- package/components/datagrids/formatters/ColumnDateFormatter/useColumnDate.js +0 -2
- package/components/datagrids/formatters/ColumnIconFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnIconFormatter/useColumnIcon.d.ts +0 -1
- package/components/datagrids/formatters/ColumnIconFormatter/useColumnIcon.js +1 -3
- package/components/datagrids/formatters/ColumnImageFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnImageFormatter/useColumnImage.d.ts +0 -1
- package/components/datagrids/formatters/ColumnImageFormatter/useColumnImage.js +1 -3
- package/components/datagrids/formatters/ColumnInteractiveCheckFormatter/formatter.d.ts +1 -12
- package/components/datagrids/formatters/ColumnInteractiveCheckFormatter/formatter.js +0 -6
- package/components/datagrids/formatters/ColumnNestedValueFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +0 -1
- package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +0 -2
- package/components/datagrids/formatters/ColumnPointsFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnPointsFormatter/useColumnPoints.d.ts +0 -1
- package/components/datagrids/formatters/ColumnPointsFormatter/useColumnPoints.js +0 -2
- package/components/datagrids/formatters/ColumnPriceFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnPriceFormatter/useColumnPrice.d.ts +0 -1
- package/components/datagrids/formatters/ColumnPriceFormatter/useColumnPrice.js +0 -2
- package/components/datagrids/formatters/ColumnTagsFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnTagsFormatter/useColumnTags.d.ts +0 -1
- package/components/datagrids/formatters/ColumnTagsFormatter/useColumnTags.js +0 -2
- package/components/datagrids/formatters/ColumnUncertaintyFormatter/index.d.ts +0 -1
- package/components/datagrids/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.d.ts +0 -1
- package/components/datagrids/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js +0 -2
- package/components/datagrids/helpers/shared/getInitialColumnsConfig/getInitialColumnsConfig.js +0 -8
- package/components/datagrids/helpers/shared/getViewSpecificConfig/getViewSpecificConfig.js +3 -10
- package/components/datagrids/hooks/useChangeColumnsOrder/useChangeColumnsOrder.d.ts +0 -1
- package/components/datagrids/hooks/useChangeColumnsOrder/useChangeColumnsOrder.js +4 -12
- package/components/datagrids/icons.d.ts +0 -5
- package/components/datagrids/icons.js +1 -5
- package/components/datagrids/index.d.ts +1 -2
- package/components/datagrids/slots/DataGridEnum.d.ts +1 -3
- package/components/datagrids/slots/DataGridEnum.js +0 -2
- package/components/datagrids/slots/DataGridSlot.d.ts +0 -2
- package/components/datagrids/slots/DataGridSlot.js +2 -12
- package/components/datagrids/types.d.ts +0 -52
- package/components/datagrids/views/CardsView/hooks/useProcessedColumns/useProcessedColumns.d.ts +0 -2
- package/components/datagrids/views/CardsView/hooks/useProcessedColumns/useProcessedColumns.js +2 -3
- package/components/datagrids/views/TableView/TableView.d.ts +4 -4
- package/components/datagrids/views/TableView/TableView.js +3 -41
- package/components/datagrids/views/TableView/helpers/index.d.ts +0 -2
- package/components/datagrids/views/TableView/hooks/useHeaderMenuActions/useHeaderMenuActions.js +1 -62
- package/components/datagrids/views/TableView/hooks/useSortColumnsRows/useSortColumnsRows.js +13 -39
- package/components/datagrids/views/TableView/subcomponents/ActionsColumn/ActionsColumn.js +1 -1
- package/components/datagrids/views/TableView/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
- package/components/datagrids/views/TableView/subcomponents/RadioSelectColumn/RadioSelectColumn.js +2 -2
- package/components/datagrids/views/TableView/subcomponents/SelectColumn/SelectColumn.js +14 -46
- package/components/datagrids/views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +2 -13
- package/components/datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +13 -47
- package/components/datagrids/views/TableView/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +0 -22
- package/components/datagrids/views/adapters/CheckboxCellAdapter/CheckboxCellAdapter.js +1 -1
- package/components/extended/React-Resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
- package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +6 -6
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
- package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
- package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
- package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
- package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
- package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
- package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
- package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
- package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
- package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +3 -3
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFSelect/constants.d.ts +1 -1
- package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +3 -3
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +7 -7
- package/components/hook-form/RHFormProvider/classes/index.d.ts +1 -1
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +3 -3
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +6 -6
- package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
- package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +2 -2
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
- package/components/mui_extended/DatePicker/constants.d.ts +1 -1
- package/components/mui_extended/DatePicker/slots/DatePickerSlots.d.ts +3 -3
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
- package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/constants.d.ts +1 -1
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +1 -1
- package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -2
- package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +1 -1
- package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/mui_extended/Radio/slots/styled.d.ts +2 -2
- package/components/mui_extended/Select/constants.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +5 -5
- package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
- package/components/mui_extended/Stack/slots/StackSlot.d.ts +1 -1
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +2 -2
- package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
- package/components/mui_extended/TextField/constants.d.ts +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +4 -4
- package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +3 -3
- package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +4 -4
- package/hooks/usePopoverContainer/index.d.ts +1 -0
- package/hooks/usePopoverContainer/usePopoverContainer.d.ts +35 -6
- package/hooks/usePopoverContainer/usePopoverContainer.js +21 -10
- package/index.js +92 -114
- package/not_recognized/index.js +100 -25
- package/package.json +1 -1
- package/test/mocks.d.ts +2 -2
- package/components/datagrids/components/BaseDataGrid/BaseDataGrid.d.ts +0 -12
- package/components/datagrids/components/BaseDataGrid/BaseDataGrid.js +0 -131
- package/components/datagrids/components/BaseDataGrid/index.d.ts +0 -1
- package/components/datagrids/components/TreeDataGrid/TreeDataGrid.d.ts +0 -22
- package/components/datagrids/components/TreeDataGrid/TreeDataGrid.js +0 -50
- package/components/datagrids/components/TreeDataGrid/TreeDataGrid.test.d.ts +0 -1
- package/components/datagrids/components/TreeDataGrid/index.d.ts +0 -1
- package/components/datagrids/components/TreeDataGrid/index.js +0 -1
- package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.d.ts +0 -15
- package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.js +0 -32
- package/components/datagrids/formatters/ColumnChipStatusFormatter/ColumnChipStatusGroupFormatter.d.ts +0 -16
- package/components/datagrids/formatters/ColumnChipStatusFormatter/ColumnChipStatusGroupFormatter.js +0 -37
- package/components/datagrids/formatters/ColumnColorFormatter/ColumnColorGroupFormatter.d.ts +0 -14
- package/components/datagrids/formatters/ColumnColorFormatter/ColumnColorGroupFormatter.js +0 -24
- package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/ColumnConcatenatedValuesGroupFormatter.d.ts +0 -15
- package/components/datagrids/formatters/ColumnConcatenatedValuesFormatter/ColumnConcatenatedValuesGroupFormatter.js +0 -35
- package/components/datagrids/formatters/ColumnDateFormatter/ColumnDateGroupFormatter.d.ts +0 -9
- package/components/datagrids/formatters/ColumnDateFormatter/ColumnDateGroupFormatter.js +0 -35
- package/components/datagrids/formatters/ColumnIconFormatter/ColumnIconGroupFormatter.d.ts +0 -13
- package/components/datagrids/formatters/ColumnIconFormatter/ColumnIconGroupFormatter.js +0 -17
- package/components/datagrids/formatters/ColumnImageFormatter/ColumnImageGroupFormatter.d.ts +0 -15
- package/components/datagrids/formatters/ColumnImageFormatter/ColumnImageGroupFormatter.js +0 -33
- package/components/datagrids/formatters/ColumnNestedValueFormatter/ColumnNestedValueGroupFormatter.d.ts +0 -14
- package/components/datagrids/formatters/ColumnNestedValueFormatter/ColumnNestedValueGroupFormatter.js +0 -22
- package/components/datagrids/formatters/ColumnPointsFormatter/ColumnPointsGroupFormatter.d.ts +0 -15
- package/components/datagrids/formatters/ColumnPointsFormatter/ColumnPointsGroupFormatter.js +0 -28
- package/components/datagrids/formatters/ColumnPriceFormatter/ColumnPriceGroupFormatter.d.ts +0 -14
- package/components/datagrids/formatters/ColumnPriceFormatter/ColumnPriceGroupFormatter.js +0 -26
- package/components/datagrids/formatters/ColumnTagsFormatter/ColumnTagsGroupFormatter.d.ts +0 -13
- package/components/datagrids/formatters/ColumnTagsFormatter/ColumnTagsGroupFormatter.js +0 -21
- package/components/datagrids/formatters/ColumnUncertaintyFormatter/ColumnUncertaintyGroupFormatter.d.ts +0 -15
- package/components/datagrids/formatters/ColumnUncertaintyFormatter/ColumnUncertaintyGroupFormatter.js +0 -27
- package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.d.ts +0 -28
- package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.js +0 -15
- package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.test.d.ts +0 -1
- package/components/datagrids/views/TableView/helpers/defaultRowGrouper/index.d.ts +0 -1
- package/components/datagrids/views/TableView/helpers/defaultRowGrouper/index.js +0 -1
- package/components/datagrids/views/TableView/helpers/getGroupBy/getGroupBy.d.ts +0 -20
- package/components/datagrids/views/TableView/helpers/getGroupBy/getGroupBy.js +0 -13
- package/components/datagrids/views/TableView/helpers/getGroupBy/getGroupBy.test.d.ts +0 -1
- package/components/datagrids/views/TableView/helpers/getGroupBy/index.d.ts +0 -1
- package/components/datagrids/views/TableView/helpers/getGroupBy/index.js +0 -1
- package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.d.ts +0 -10
- package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.js +0 -35
- package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.test.d.ts +0 -1
- package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/index.d.ts +0 -2
- package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/index.js +0 -1
- package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/types.d.ts +0 -12
- /package/components/{datagrids/components/BaseDataGrid → CommonActions/components/ActionFormSubmitProgrammatic/slots}/index.js +0 -0
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useRef } from "react";
|
|
3
|
-
import { useModuleSkeleton } from "@m4l/core";
|
|
4
|
-
import { T as TEST_PROP_COLUMNS } from "../../types.js";
|
|
5
|
-
import { T as TEST_PROP_ID } from "../../../../test/constants_no_mock.js";
|
|
6
|
-
import { a as getNameDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
7
|
-
import { T as TEST_SKELETON, D as DATAGRID_PREFIX_NAME } from "../../constants.js";
|
|
8
|
-
import { D as DataGridRootStyled, C as CustomHeaderStyled } from "../../slots/DataGridSlot.js";
|
|
9
|
-
import { a as getComponentSlotRoot } from "../../../../utils/getComponentSlotRoot.js";
|
|
10
|
-
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
11
|
-
import { D as DataGridProvider } from "../../contexts/DataGridContext/DataGridContext.js";
|
|
12
|
-
import { F as FilterProvider } from "../../contexts/FilterContext/FilterContext.js";
|
|
13
|
-
import { H as HeaderActions } from "../../subcomponents/HeaderActions/HeaderActions.js";
|
|
14
|
-
import { C as ControlNavigate } from "../../subcomponents/ControlNavigate/ControlNavigate.js";
|
|
15
|
-
function BaseDataGrid(props) {
|
|
16
|
-
const {
|
|
17
|
-
id,
|
|
18
|
-
withActions = true,
|
|
19
|
-
rows,
|
|
20
|
-
columns,
|
|
21
|
-
actionsProps,
|
|
22
|
-
rowKeyGetter,
|
|
23
|
-
rowActionsGetter,
|
|
24
|
-
rowHeaderHeights,
|
|
25
|
-
rowHeights,
|
|
26
|
-
initialRowHeightVariant,
|
|
27
|
-
checkedRows,
|
|
28
|
-
onCheckedRowsChange,
|
|
29
|
-
checkedRowsMultiple,
|
|
30
|
-
dataTestId = "",
|
|
31
|
-
customHeader: CustomHeader,
|
|
32
|
-
visibleCustomHeader = true,
|
|
33
|
-
defaultConfig,
|
|
34
|
-
onChangeConfig,
|
|
35
|
-
defaultUserColumns,
|
|
36
|
-
onChangeUserColumns,
|
|
37
|
-
size,
|
|
38
|
-
externalSortSettings,
|
|
39
|
-
externalFilterSettings,
|
|
40
|
-
defaultViewMode,
|
|
41
|
-
cardsViewConfig,
|
|
42
|
-
children
|
|
43
|
-
} = props;
|
|
44
|
-
const {
|
|
45
|
-
withSettings,
|
|
46
|
-
settingsProps,
|
|
47
|
-
withRowsCount,
|
|
48
|
-
withLocalFilters,
|
|
49
|
-
leftActions,
|
|
50
|
-
rightActions,
|
|
51
|
-
withPager,
|
|
52
|
-
pagerOptions
|
|
53
|
-
} = actionsProps;
|
|
54
|
-
const { currentSize } = useComponentSize(size);
|
|
55
|
-
const refDataGrid = useRef(null);
|
|
56
|
-
const classRoot = getComponentSlotRoot(DATAGRID_PREFIX_NAME);
|
|
57
|
-
const ownerState = {
|
|
58
|
-
visibleCustomHeader
|
|
59
|
-
};
|
|
60
|
-
const isSkeleton = useModuleSkeleton();
|
|
61
|
-
return /* @__PURE__ */ jsx(
|
|
62
|
-
DataGridRootStyled,
|
|
63
|
-
{
|
|
64
|
-
ref: refDataGrid,
|
|
65
|
-
className: classRoot,
|
|
66
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
67
|
-
[TEST_PROP_COLUMNS]: JSON.stringify(columns),
|
|
68
|
-
[TEST_PROP_ID]: getNameDataTestId(
|
|
69
|
-
DATAGRID_PREFIX_NAME,
|
|
70
|
-
"root",
|
|
71
|
-
dataTestId
|
|
72
|
-
),
|
|
73
|
-
[TEST_SKELETON]: isSkeleton ? true : false
|
|
74
|
-
} : {},
|
|
75
|
-
children: /* @__PURE__ */ jsx(
|
|
76
|
-
DataGridProvider,
|
|
77
|
-
{
|
|
78
|
-
id,
|
|
79
|
-
columns,
|
|
80
|
-
rowHeights,
|
|
81
|
-
rowHeaderHeights,
|
|
82
|
-
initialRowHeightVariant,
|
|
83
|
-
rowsCount: rows.length,
|
|
84
|
-
checkedRows,
|
|
85
|
-
rowActionsGetter,
|
|
86
|
-
onCheckedRowsChange,
|
|
87
|
-
checkedRowsMultiple,
|
|
88
|
-
rowKeyGetter,
|
|
89
|
-
rows,
|
|
90
|
-
defaultConfig,
|
|
91
|
-
onChangeConfig,
|
|
92
|
-
defaultUserColumns,
|
|
93
|
-
onChangeUserColumns,
|
|
94
|
-
size: currentSize,
|
|
95
|
-
externalSortSettings,
|
|
96
|
-
externalFilterSettings,
|
|
97
|
-
defaultViewMode,
|
|
98
|
-
cardsViewConfig,
|
|
99
|
-
children: /* @__PURE__ */ jsxs(FilterProvider, { initialActiveFilters: false, children: [
|
|
100
|
-
withActions && actionsProps && /* @__PURE__ */ jsx(
|
|
101
|
-
HeaderActions,
|
|
102
|
-
{
|
|
103
|
-
withSettings,
|
|
104
|
-
settingsProps,
|
|
105
|
-
withRowsCount,
|
|
106
|
-
withLocalFilters,
|
|
107
|
-
leftActions,
|
|
108
|
-
rightActions,
|
|
109
|
-
withPager,
|
|
110
|
-
columns,
|
|
111
|
-
size: currentSize
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
CustomHeader ? /* @__PURE__ */ jsx(CustomHeaderStyled, { ownerState, children: CustomHeader }) : null,
|
|
115
|
-
children,
|
|
116
|
-
withPager && /* @__PURE__ */ jsx(
|
|
117
|
-
ControlNavigate,
|
|
118
|
-
{
|
|
119
|
-
size: currentSize,
|
|
120
|
-
...{ withPager, pagerOptions }
|
|
121
|
-
}
|
|
122
|
-
)
|
|
123
|
-
] })
|
|
124
|
-
}
|
|
125
|
-
)
|
|
126
|
-
}
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
export {
|
|
130
|
-
BaseDataGrid as B
|
|
131
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { BaseDataGrid } from './BaseDataGrid';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { TreeDataGridProps, RowKey } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* TreeDataGrid es un componente para mostrar datos jerárquicos con agrupación.
|
|
4
|
-
*
|
|
5
|
-
* Características principales:
|
|
6
|
-
* - Vista de tabla con agrupación jerárquica
|
|
7
|
-
* - Expansión/colapso de grupos
|
|
8
|
-
* - Todas las funcionalidades del DataGrid (paginación, filtros, ordenamiento, etc.)
|
|
9
|
-
*
|
|
10
|
-
* IMPORTANTE: Solo soporta vista de tabla (no cards).
|
|
11
|
-
*
|
|
12
|
-
* El groupBy se calcula automáticamente desde las columnas con grouped=true,
|
|
13
|
-
* ordenadas por groupOrder. El desarrollador solo define:
|
|
14
|
-
* - `grouped: true` en columnas que deben agruparse por defecto
|
|
15
|
-
* - `groupable: true` en columnas que el usuario puede agrupar/desagrupar
|
|
16
|
-
*
|
|
17
|
-
* Modos de control para expandedGroupIds:
|
|
18
|
-
* - Sin props: Estado interno, todos los grupos colapsados inicialmente
|
|
19
|
-
* - Solo expandedGroupIds: Usa ese valor como inicial, luego maneja internamente
|
|
20
|
-
* - expandedGroupIds + onExpandedGroupIdsChange: Modo controlado, padre maneja estado
|
|
21
|
-
*/
|
|
22
|
-
export declare function TreeDataGrid<TRow, TSummaryRow, TKey extends RowKey = RowKey>(props: TreeDataGridProps<TRow, TSummaryRow, TKey>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { T as TableView } from "../../views/TableView/TableView.js";
|
|
4
|
-
import { B as BaseDataGrid } from "../BaseDataGrid/BaseDataGrid.js";
|
|
5
|
-
function TreeDataGrid(props) {
|
|
6
|
-
const {
|
|
7
|
-
id,
|
|
8
|
-
withActions,
|
|
9
|
-
columns,
|
|
10
|
-
rows,
|
|
11
|
-
selectedRows,
|
|
12
|
-
onSelectedRowsChange,
|
|
13
|
-
rowKeyGetter,
|
|
14
|
-
onRowsChange,
|
|
15
|
-
focusOnRowKey,
|
|
16
|
-
checkedRows,
|
|
17
|
-
onCheckedRowsChange,
|
|
18
|
-
rowGrouper,
|
|
19
|
-
expandedGroupIds: expandedGroupIdsProp,
|
|
20
|
-
onExpandedGroupIdsChange: onExpandedGroupIdsChangeProp
|
|
21
|
-
} = props;
|
|
22
|
-
const [internalExpandedGroupIds, setInternalExpandedGroupIds] = useState(() => new Set(expandedGroupIdsProp ?? []));
|
|
23
|
-
const isControlled = expandedGroupIdsProp !== void 0 && onExpandedGroupIdsChangeProp !== void 0;
|
|
24
|
-
const expandedGroupIds = isControlled ? expandedGroupIdsProp : internalExpandedGroupIds;
|
|
25
|
-
const onExpandedGroupIdsChange = isControlled ? onExpandedGroupIdsChangeProp : setInternalExpandedGroupIds;
|
|
26
|
-
return /* @__PURE__ */ jsx(BaseDataGrid, { ...props, children: /* @__PURE__ */ jsx(
|
|
27
|
-
TableView,
|
|
28
|
-
{
|
|
29
|
-
id,
|
|
30
|
-
withActions,
|
|
31
|
-
columns,
|
|
32
|
-
rows,
|
|
33
|
-
selectedRows,
|
|
34
|
-
onSelectedRowsChange,
|
|
35
|
-
rowKeyGetter,
|
|
36
|
-
onRowsChange,
|
|
37
|
-
focusOnRowKey,
|
|
38
|
-
checkedRows,
|
|
39
|
-
onCheckedRowsChange,
|
|
40
|
-
treeProps: {
|
|
41
|
-
rowGrouper,
|
|
42
|
-
expandedGroupIds,
|
|
43
|
-
onExpandedGroupIdsChange
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
) });
|
|
47
|
-
}
|
|
48
|
-
export {
|
|
49
|
-
TreeDataGrid as T
|
|
50
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TreeDataGrid } from './TreeDataGrid';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ColumnBooleanFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar valores booleanos en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar un valor booleano en el encabezado del grupo. Usa la primera fila
|
|
8
|
-
* del grupo (childRows[0]) como fuente de datos representativa.
|
|
9
|
-
* @param props - Propiedades del formatter que incluyen:
|
|
10
|
-
* - fieldValue: Campo que contiene el valor booleano
|
|
11
|
-
* - presentationType: Tipo de presentación (text, icon, etc.)
|
|
12
|
-
* - Component: Componente wrapper opcional
|
|
13
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el BooleanFormatter
|
|
14
|
-
*/
|
|
15
|
-
export declare function ColumnBooleanGroupFormatter<TRow>(props: ColumnBooleanFormatterProps<TRow>): (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
package/components/datagrids/formatters/ColumnBooleanFormatter/ColumnBooleanGroupFormatter.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { getPropertyByString } from "@m4l/core";
|
|
4
|
-
import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/BooleanFormatter.js";
|
|
5
|
-
function ColumnBooleanGroupFormatter(props) {
|
|
6
|
-
const { fieldValue, presentationType, Component = React.Fragment } = props;
|
|
7
|
-
return (groupProps) => {
|
|
8
|
-
const { childRows } = groupProps;
|
|
9
|
-
if (childRows.length === 0) {
|
|
10
|
-
return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
11
|
-
}
|
|
12
|
-
const representativeRow = childRows[0];
|
|
13
|
-
const valueMaybeString = getPropertyByString(representativeRow, fieldValue);
|
|
14
|
-
let fixedValue;
|
|
15
|
-
if (typeof valueMaybeString === "boolean") {
|
|
16
|
-
fixedValue = valueMaybeString;
|
|
17
|
-
} else {
|
|
18
|
-
fixedValue = void 0;
|
|
19
|
-
}
|
|
20
|
-
return /* @__PURE__ */ jsx(
|
|
21
|
-
BooleanFormatter,
|
|
22
|
-
{
|
|
23
|
-
presentationType,
|
|
24
|
-
value: fixedValue,
|
|
25
|
-
Component
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
ColumnBooleanGroupFormatter as C
|
|
32
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ColumnChipStatusFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar un chip de estado en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar un ChipStatus en el encabezado del grupo. Usa la primera fila
|
|
8
|
-
* del grupo (childRows[0]) como fuente de datos representativa.
|
|
9
|
-
* @param props - Propiedades del formatter que incluyen:
|
|
10
|
-
* - fieldStatus: Campo que contiene el valor del estado
|
|
11
|
-
* - fieldLabel: Campo o función que genera la etiqueta del chip
|
|
12
|
-
* - statusesColors: Mapeo de estados a colores
|
|
13
|
-
* - fallbackColor: Color por defecto si el estado no tiene mapeo
|
|
14
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el ChipStatusFormatter
|
|
15
|
-
*/
|
|
16
|
-
export declare const ColumnChipStatusGroupFormatter: <TRow>(props: ColumnChipStatusFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
package/components/datagrids/formatters/ColumnChipStatusFormatter/ColumnChipStatusGroupFormatter.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { C as ChipStatusFormatterColumnWrapperStyled } from "../../../formatters/ChipStatusFormatter/slots/ChipStatusFormatterSlots.js";
|
|
4
|
-
import { g as getNullGuard } from "../../../../utils/getNullGuard.js";
|
|
5
|
-
import { C as ChipStatusFormatter } from "../../../formatters/ChipStatusFormatter/ChipStatusFormatter.js";
|
|
6
|
-
const ColumnChipStatusGroupFormatter = (props) => {
|
|
7
|
-
const { fieldStatus, fieldLabel, statusesColors, fallbackColor } = props;
|
|
8
|
-
return (groupProps) => {
|
|
9
|
-
const { childRows } = groupProps;
|
|
10
|
-
if (childRows.length === 0) {
|
|
11
|
-
return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
12
|
-
}
|
|
13
|
-
const representativeRow = childRows[0];
|
|
14
|
-
const cleanFieldStatus = fieldStatus.toString().startsWith("row.") ? fieldStatus.toString().substring(4) : fieldStatus.toString();
|
|
15
|
-
const cleanFieldLabel = typeof fieldLabel === "string" && fieldLabel.startsWith("row.") ? fieldLabel.substring(4) : fieldLabel;
|
|
16
|
-
const status = getNullGuard(
|
|
17
|
-
getPropertyByString(representativeRow, cleanFieldStatus)
|
|
18
|
-
);
|
|
19
|
-
const baseLabel = typeof cleanFieldLabel === "string" ? getNullGuard(
|
|
20
|
-
getPropertyByString(representativeRow, cleanFieldLabel)
|
|
21
|
-
) : typeof fieldLabel === "function" ? fieldLabel(representativeRow, status) : "";
|
|
22
|
-
const label = `${baseLabel} (${childRows.length})`;
|
|
23
|
-
return /* @__PURE__ */ jsx(
|
|
24
|
-
ChipStatusFormatter,
|
|
25
|
-
{
|
|
26
|
-
label,
|
|
27
|
-
status,
|
|
28
|
-
statusesColors,
|
|
29
|
-
Component: ChipStatusFormatterColumnWrapperStyled,
|
|
30
|
-
fallbackColor
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
ColumnChipStatusGroupFormatter as C
|
|
37
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
2
|
-
import { ColumnColorFormatterProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar colores en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar un color en el encabezado del grupo. Usa la primera fila
|
|
8
|
-
* del grupo (childRows[0]) como fuente de datos representativa.
|
|
9
|
-
* @param props - Propiedades del formatter que incluyen:
|
|
10
|
-
* - fieldValue: Campo que contiene el valor del color
|
|
11
|
-
* - size: Tamaño del indicador de color
|
|
12
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el ColorFormatter
|
|
13
|
-
*/
|
|
14
|
-
export declare const ColumnColorGroupFormatter: <TRow>(props: ColumnColorFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { C as ColorFormatter } from "../../../formatters/ColorFormatter/ColorFormatter.js";
|
|
4
|
-
const ColumnColorGroupFormatter = (props) => {
|
|
5
|
-
const { fieldValue, size = "medium" } = props;
|
|
6
|
-
return (groupProps) => {
|
|
7
|
-
const { childRows } = groupProps;
|
|
8
|
-
if (childRows.length === 0) {
|
|
9
|
-
return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
10
|
-
}
|
|
11
|
-
const representativeRow = childRows[0];
|
|
12
|
-
const colorValue = getPropertyByString(representativeRow, fieldValue.toString());
|
|
13
|
-
let fixedValue;
|
|
14
|
-
if (typeof colorValue === "string") {
|
|
15
|
-
fixedValue = colorValue;
|
|
16
|
-
} else {
|
|
17
|
-
fixedValue = null;
|
|
18
|
-
}
|
|
19
|
-
return /* @__PURE__ */ jsx(ColorFormatter, { value: fixedValue, size });
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
ColumnColorGroupFormatter as C
|
|
24
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ColumnConcatenatedValuesFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar valores concatenados en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar valores concatenados en el encabezado del grupo. Usa la primera fila
|
|
8
|
-
* del grupo (childRows[0]) como fuente de datos representativa.
|
|
9
|
-
* @param props - Propiedades del formatter que incluyen:
|
|
10
|
-
* - fieldValue: Array de campos a concatenar
|
|
11
|
-
* - fieldSeparator: Separador entre valores
|
|
12
|
-
* - Component: Componente wrapper opcional
|
|
13
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el ConcatenatedFormatter
|
|
14
|
-
*/
|
|
15
|
-
export declare function ColumnConcatenatedValuesGroupFormatter<TRow>(props: ColumnConcatenatedValuesFormatterProps<TRow>): (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { getPropertyByString } from "@m4l/core";
|
|
4
|
-
import { C as ConcatenatedFormatter } from "../../../formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
|
|
5
|
-
function ColumnConcatenatedValuesGroupFormatter(props) {
|
|
6
|
-
const { fieldValue, fieldSeparator, Component = React.Fragment } = props;
|
|
7
|
-
return (groupProps) => {
|
|
8
|
-
const { childRows } = groupProps;
|
|
9
|
-
if (childRows.length === 0) {
|
|
10
|
-
return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
11
|
-
}
|
|
12
|
-
const representativeRow = childRows[0];
|
|
13
|
-
const values = fieldValue.map((element) => {
|
|
14
|
-
const valueMaybeString = getPropertyByString(representativeRow, element);
|
|
15
|
-
let fixedValue;
|
|
16
|
-
if (typeof valueMaybeString === "string" || typeof valueMaybeString === "number") {
|
|
17
|
-
fixedValue = valueMaybeString.toString();
|
|
18
|
-
} else {
|
|
19
|
-
fixedValue = "";
|
|
20
|
-
}
|
|
21
|
-
return fixedValue;
|
|
22
|
-
});
|
|
23
|
-
return /* @__PURE__ */ jsx(
|
|
24
|
-
ConcatenatedFormatter,
|
|
25
|
-
{
|
|
26
|
-
values,
|
|
27
|
-
separator: fieldSeparator,
|
|
28
|
-
Component
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
ColumnConcatenatedValuesGroupFormatter as C
|
|
35
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ColumnDateFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar una fecha en filas de grupo (TreeDataGrid).
|
|
5
|
-
* Usa la primera fila del grupo (childRows[0]) como fuente de datos.
|
|
6
|
-
* @param props - Propiedades del formatter (fieldValue, presentationType, Component)
|
|
7
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el DateFormatter
|
|
8
|
-
*/
|
|
9
|
-
export declare function ColumnDateGroupFormatter<TRow>(props: ColumnDateFormatterProps<TRow>): (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { D as DateFormatter } from "../../../formatters/DateFormatter/DateFormatter.js";
|
|
5
|
-
function ColumnDateGroupFormatter(props) {
|
|
6
|
-
const { fieldValue, presentationType, Component = React.Fragment } = props;
|
|
7
|
-
return (groupProps) => {
|
|
8
|
-
const { childRows } = groupProps;
|
|
9
|
-
if (childRows.length === 0) {
|
|
10
|
-
return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
11
|
-
}
|
|
12
|
-
const representativeRow = childRows[0];
|
|
13
|
-
const valueMaybeDateStringNumber = getPropertyByString(
|
|
14
|
-
representativeRow,
|
|
15
|
-
fieldValue
|
|
16
|
-
);
|
|
17
|
-
let fixedValue;
|
|
18
|
-
if (typeof valueMaybeDateStringNumber === "string" || typeof valueMaybeDateStringNumber === "number" || valueMaybeDateStringNumber instanceof Date) {
|
|
19
|
-
fixedValue = valueMaybeDateStringNumber;
|
|
20
|
-
} else {
|
|
21
|
-
fixedValue = "";
|
|
22
|
-
}
|
|
23
|
-
return /* @__PURE__ */ jsx(
|
|
24
|
-
DateFormatter,
|
|
25
|
-
{
|
|
26
|
-
presentationType,
|
|
27
|
-
value: fixedValue,
|
|
28
|
-
Component
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
ColumnDateGroupFormatter as C
|
|
35
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ColumnIconFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar iconos en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar iconos en el encabezado del grupo. Usa la primera fila
|
|
8
|
-
* del grupo (childRows[0]) como fuente de datos representativa.
|
|
9
|
-
* @param props - Propiedades del formatter que incluyen:
|
|
10
|
-
* - getIconProps: Función que obtiene las props del icono de una fila
|
|
11
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el IconsFormatter
|
|
12
|
-
*/
|
|
13
|
-
export declare const ColumnIconGroupFormatter: <TRow>(props: ColumnIconFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { I as IconsFormatter } from "../../../formatters/IconsFormatter/IconsFormatter.js";
|
|
3
|
-
const ColumnIconGroupFormatter = (props) => {
|
|
4
|
-
const { getIconProps } = props;
|
|
5
|
-
return (groupProps) => {
|
|
6
|
-
const { childRows } = groupProps;
|
|
7
|
-
if (childRows.length === 0) {
|
|
8
|
-
return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
9
|
-
}
|
|
10
|
-
const representativeRow = childRows[0];
|
|
11
|
-
const iconProps = getIconProps(representativeRow);
|
|
12
|
-
return /* @__PURE__ */ jsx(IconsFormatter, { icons: iconProps });
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
ColumnIconGroupFormatter as C
|
|
17
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ColumnImageFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar imágenes en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar una imagen en el encabezado del grupo. Usa la primera fila
|
|
8
|
-
* del grupo (childRows[0]) como fuente de datos representativa.
|
|
9
|
-
* @param props - Propiedades del formatter que incluyen:
|
|
10
|
-
* - fieldValue: Campo que contiene la URL de la imagen
|
|
11
|
-
* - fieldText: Campo opcional para el texto
|
|
12
|
-
* - cover: Modo de ajuste de la imagen
|
|
13
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el ImageFormatter
|
|
14
|
-
*/
|
|
15
|
-
export declare const ColumnImageGroupFormatter: <TRow>(props: ColumnImageFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { I as ImageFormatter } from "../../../formatters/ImageFormatter/ImageFormatter.js";
|
|
4
|
-
const ColumnImageGroupFormatter = (props) => {
|
|
5
|
-
const { fieldValue, fieldText, cover } = props;
|
|
6
|
-
return (groupProps) => {
|
|
7
|
-
const { childRows } = groupProps;
|
|
8
|
-
if (childRows.length === 0) {
|
|
9
|
-
return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
10
|
-
}
|
|
11
|
-
const representativeRow = childRows[0];
|
|
12
|
-
const src = getPropertyByString(
|
|
13
|
-
representativeRow,
|
|
14
|
-
fieldValue.toString()
|
|
15
|
-
);
|
|
16
|
-
const text = fieldText ? getPropertyByString(representativeRow, fieldText.toString()) : void 0;
|
|
17
|
-
if (!src) {
|
|
18
|
-
return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
19
|
-
}
|
|
20
|
-
return /* @__PURE__ */ jsx(
|
|
21
|
-
ImageFormatter,
|
|
22
|
-
{
|
|
23
|
-
src,
|
|
24
|
-
alt: text || src,
|
|
25
|
-
text: text ?? void 0,
|
|
26
|
-
cover
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
ColumnImageGroupFormatter as C
|
|
33
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ColumnNestedValueFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar valores anidados en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar un valor anidado en el encabezado del grupo. Usa la primera fila
|
|
8
|
-
* del grupo (childRows[0]) como fuente de datos representativa.
|
|
9
|
-
* @param props - Propiedades del formatter que incluyen:
|
|
10
|
-
* - fieldValue: Campo anidado a mostrar (ej: 'user.name')
|
|
11
|
-
* - Component: Componente wrapper opcional
|
|
12
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el valor formateado
|
|
13
|
-
*/
|
|
14
|
-
export declare function ColumnNestedValueGroupFormatter<TRow>(props: ColumnNestedValueFormatterProps<TRow>): (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { getPropertyByString } from "@m4l/core";
|
|
4
|
-
import { g as getNullGuard } from "../../../../utils/getNullGuard.js";
|
|
5
|
-
function ColumnNestedValueGroupFormatter(props) {
|
|
6
|
-
const { fieldValue, Component = React.Fragment } = props;
|
|
7
|
-
return (groupProps) => {
|
|
8
|
-
const { childRows } = groupProps;
|
|
9
|
-
if (childRows.length === 0) {
|
|
10
|
-
return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
11
|
-
}
|
|
12
|
-
const representativeRow = childRows[0];
|
|
13
|
-
const property = getNullGuard(
|
|
14
|
-
getPropertyByString(representativeRow, fieldValue)
|
|
15
|
-
);
|
|
16
|
-
const value = typeof property === "object" ? JSON.stringify(property) : property;
|
|
17
|
-
return /* @__PURE__ */ jsx(Component, { children: value });
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
ColumnNestedValueGroupFormatter as C
|
|
22
|
-
};
|
package/components/datagrids/formatters/ColumnPointsFormatter/ColumnPointsGroupFormatter.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ColumnPointsFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar puntos de calibración en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar puntos en el encabezado del grupo. Usa la primera fila
|
|
8
|
-
* del grupo (childRows[0]) como fuente de datos representativa.
|
|
9
|
-
* @param props - Propiedades del formatter que incluyen:
|
|
10
|
-
* - fieldValue: Campo que contiene el valor de los puntos
|
|
11
|
-
* - fieldUnit: Campo que contiene la unidad de los puntos
|
|
12
|
-
* - Component: Componente wrapper opcional
|
|
13
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el PointsFormatter
|
|
14
|
-
*/
|
|
15
|
-
export declare const ColumnPointsGroupFormatter: <TRow>(props: ColumnPointsFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { P as PointsFormatter } from "../../../formatters/PointsFormatter/PointsFormatter.js";
|
|
4
|
-
const ColumnPointsGroupFormatter = (props) => {
|
|
5
|
-
const { Component = React.Fragment } = props;
|
|
6
|
-
const fieldValue = props.fieldValue;
|
|
7
|
-
const fieldUnit = props.fieldUnit;
|
|
8
|
-
return (groupProps) => {
|
|
9
|
-
const { childRows } = groupProps;
|
|
10
|
-
if (childRows.length === 0) {
|
|
11
|
-
return /* @__PURE__ */ jsx(Fragment, { children: "-" });
|
|
12
|
-
}
|
|
13
|
-
const representativeRow = childRows[0];
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
15
|
-
PointsFormatter,
|
|
16
|
-
{
|
|
17
|
-
obProps: representativeRow,
|
|
18
|
-
...props,
|
|
19
|
-
fieldValue,
|
|
20
|
-
fieldUnit,
|
|
21
|
-
Component
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export {
|
|
27
|
-
ColumnPointsGroupFormatter as C
|
|
28
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ColumnPriceFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar un precio en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar un precio en el encabezado del grupo. Usa la primera fila
|
|
8
|
-
* del grupo (childRows[0]) como fuente de datos representativa.
|
|
9
|
-
* @param props - Propiedades del formatter que incluyen:
|
|
10
|
-
* - fieldValue: Campo que contiene el valor del precio
|
|
11
|
-
* - Component: Componente wrapper opcional
|
|
12
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el PriceFormatter
|
|
13
|
-
*/
|
|
14
|
-
export declare const ColumnPriceGroupFormatter: <TRow>(props: ColumnPriceFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|