@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,26 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { P as PriceFormatter } from "../../../formatters/PriceFormatter/PriceFormatter.js";
|
|
4
|
-
const ColumnPriceGroupFormatter = (props) => {
|
|
5
|
-
const { Component = React.Fragment } = props;
|
|
6
|
-
const fieldValue = props.fieldValue;
|
|
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
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
PriceFormatter,
|
|
15
|
-
{
|
|
16
|
-
obProps: representativeRow,
|
|
17
|
-
...props,
|
|
18
|
-
fieldValue,
|
|
19
|
-
Component
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
ColumnPriceGroupFormatter as C
|
|
26
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ColumnTagsFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar tags en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar tags 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 los tags
|
|
11
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el TagsFormatter
|
|
12
|
-
*/
|
|
13
|
-
export declare const ColumnTagsGroupFormatter: <TRow>(props: ColumnTagsFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { T as TagsFormatter } from "../../../formatters/TagsFormatter/TagsFormatter.js";
|
|
4
|
-
const ColumnTagsGroupFormatter = (props) => {
|
|
5
|
-
const { fieldValue } = 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 tags = getPropertyByString(
|
|
13
|
-
representativeRow,
|
|
14
|
-
fieldValue.toString()
|
|
15
|
-
);
|
|
16
|
-
return /* @__PURE__ */ jsx(TagsFormatter, { tags });
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
ColumnTagsGroupFormatter as C
|
|
21
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ColumnUncertaintyFormatterProps } from './types';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Formatter para mostrar valores de incertidumbre en filas de grupo (TreeDataGrid).
|
|
5
|
-
*
|
|
6
|
-
* Esta función es utilizada cuando el TreeDataGrid agrupa filas y necesita
|
|
7
|
-
* mostrar el valor de incertidumbre 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 con los rangos de incertidumbre
|
|
11
|
-
* - fieldSymbol: Campo con el símbolo
|
|
12
|
-
* - fieldUnit: Campo con la unidad
|
|
13
|
-
* @returns Función que recibe RenderGroupCellProps y retorna el UncertaintyFormatter
|
|
14
|
-
*/
|
|
15
|
-
export declare const ColumnUncertaintyGroupFormatter: <TRow>(props: ColumnUncertaintyFormatterProps<TRow>) => (groupProps: RenderGroupCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { U as UncertaintyFormatter } from "../../../formatters/UncertaintyFormatter/UncertaintyFormatter.js";
|
|
4
|
-
const ColumnUncertaintyGroupFormatter = (props) => {
|
|
5
|
-
const { Component = React.Fragment, fieldValue, fieldSymbol, fieldUnit } = 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
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
-
UncertaintyFormatter,
|
|
14
|
-
{
|
|
15
|
-
obProps: representativeRow,
|
|
16
|
-
...props,
|
|
17
|
-
fieldValue: fieldValue.toString(),
|
|
18
|
-
fieldSymbol: fieldSymbol.toString(),
|
|
19
|
-
fieldUnit: fieldUnit.toString(),
|
|
20
|
-
Component
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
ColumnUncertaintyGroupFormatter as C
|
|
27
|
-
};
|
package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RowGrouper genérico por defecto.
|
|
3
|
-
*
|
|
4
|
-
* Se usa cuando NO pasas un rowGrouper personalizado al TreeDataGrid.
|
|
5
|
-
* Agrupa las filas usando el valor directo de la columna.
|
|
6
|
-
*
|
|
7
|
-
* Ideal para agrupar por campos de texto como:
|
|
8
|
-
* - Departamento
|
|
9
|
-
* - Estado
|
|
10
|
-
* - Ubicación
|
|
11
|
-
* @param rows - Todas las filas de la tabla
|
|
12
|
-
* @param columnKey - El nombre de la columna por la que agrupar (ej: 'department')
|
|
13
|
-
* @returns Un objeto donde cada llave es un valor único y cada valor es un array de filas
|
|
14
|
-
* @example
|
|
15
|
-
* const rows = [
|
|
16
|
-
* { id: 1, name: 'Juan', department: 'Ventas' },
|
|
17
|
-
* { id: 2, name: 'María', department: 'Tecnología' },
|
|
18
|
-
* { id: 3, name: 'Pedro', department: 'Ventas' },
|
|
19
|
-
* ];
|
|
20
|
-
*
|
|
21
|
-
* const groups = defaultRowGrouper(rows, 'department');
|
|
22
|
-
* // Resultado:
|
|
23
|
-
* // {
|
|
24
|
-
* // 'Ventas': [Juan, Pedro],
|
|
25
|
-
* // 'Tecnología': [María]
|
|
26
|
-
* // }
|
|
27
|
-
*/
|
|
28
|
-
export declare const defaultRowGrouper: <TRow>(rows: readonly TRow[], columnKey: string) => Record<string, readonly TRow[]>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const defaultRowGrouper = (rows, columnKey) => {
|
|
2
|
-
const groups = {};
|
|
3
|
-
for (const row of rows) {
|
|
4
|
-
const rawValue = row[columnKey];
|
|
5
|
-
const groupKey = String(rawValue ?? "");
|
|
6
|
-
if (!groups[groupKey]) {
|
|
7
|
-
groups[groupKey] = [];
|
|
8
|
-
}
|
|
9
|
-
groups[groupKey].push(row);
|
|
10
|
-
}
|
|
11
|
-
return groups;
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
defaultRowGrouper as d
|
|
15
|
-
};
|
package/components/datagrids/views/TableView/helpers/defaultRowGrouper/defaultRowGrouper.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { defaultRowGrouper } from './defaultRowGrouper';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IConfigColumn } from '../../../../contexts/DataGridContext/types';
|
|
2
|
-
/**
|
|
3
|
-
* Calcula el array de keys de columnas que deben agruparse.
|
|
4
|
-
*
|
|
5
|
-
* Esta función:
|
|
6
|
-
* 1. Filtra las columnas que tienen grouped: true
|
|
7
|
-
* 2. Las ordena por groupOrder (menor = primer nivel de agrupación)
|
|
8
|
-
* 3. Retorna un array con las keys de esas columnas
|
|
9
|
-
* @param columnsConfig - Array de configuración de columnas del DataGrid
|
|
10
|
-
* @returns Array de keys de columnas ordenadas por nivel de agrupación
|
|
11
|
-
* @example
|
|
12
|
-
* // Si columnsConfig tiene:
|
|
13
|
-
* // - department: { grouped: true, groupOrder: 0 }
|
|
14
|
-
* // - team: { grouped: true, groupOrder: 1 }
|
|
15
|
-
* // - name: { grouped: false }
|
|
16
|
-
*
|
|
17
|
-
* const groupBy = getGroupBy(columnsConfig);
|
|
18
|
-
* // Resultado: ['department', 'team']
|
|
19
|
-
*/
|
|
20
|
-
export declare const getGroupBy: (columnsConfig: IConfigColumn[]) => string[];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const getGroupBy = (columnsConfig) => {
|
|
2
|
-
const groupedColumns = columnsConfig.filter(
|
|
3
|
-
(column) => column.grouped === true
|
|
4
|
-
);
|
|
5
|
-
const sortedColumns = groupedColumns.sort(
|
|
6
|
-
(columnA, columnB) => (columnA.groupOrder ?? 0) - (columnB.groupOrder ?? 0)
|
|
7
|
-
);
|
|
8
|
-
const groupByKeys = sortedColumns.map((column) => column.key);
|
|
9
|
-
return groupByKeys;
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
getGroupBy as g
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { getGroupBy } from './getGroupBy';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RenderGroupCellComponentProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Componente para renderizar las celdas de grupo en TreeDataGrid.
|
|
4
|
-
* Siempre muestra un icono de expansión/colapso al inicio.
|
|
5
|
-
* Si se proporciona customRenderGroupCell, renderiza ese contenido después del icono.
|
|
6
|
-
* De lo contrario, muestra el texto del grupo (groupKey).
|
|
7
|
-
* Respeta la alineación de la columna (align: left | center | right).
|
|
8
|
-
* @param props - Props de react-data-grid para grupo + customRenderGroupCell opcional
|
|
9
|
-
*/
|
|
10
|
-
export declare function RenderGroupCell<TRow>(props: RenderGroupCellComponentProps<TRow>): import("react/jsx-runtime").JSX.Element;
|
package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEnvironment } from "@m4l/core";
|
|
3
|
-
import { p as pathIcons } from "../../../../icons.js";
|
|
4
|
-
import { I as Icon } from "../../../../../Icon/Icon.js";
|
|
5
|
-
import { S as DefaultRenderGroupCellRootStyled, U as DefaultRenderGroupCellTextStyled } from "../../../../slots/DataGridSlot.js";
|
|
6
|
-
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
7
|
-
function RenderGroupCell(props) {
|
|
8
|
-
const { groupKey, isExpanded, toggleGroup, column, customRenderGroupCell, ...restProps } = props;
|
|
9
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
|
-
const { size, currentRowHeightVariant } = useDataGrid();
|
|
11
|
-
const iconPath = isExpanded ? pathIcons.groupDown : pathIcons.groupUp;
|
|
12
|
-
const fullIconPath = `${host_static_assets}/${environment_assets}/${iconPath}`;
|
|
13
|
-
const align = column.align;
|
|
14
|
-
const originalProps = {
|
|
15
|
-
groupKey,
|
|
16
|
-
isExpanded,
|
|
17
|
-
toggleGroup,
|
|
18
|
-
column,
|
|
19
|
-
...restProps
|
|
20
|
-
};
|
|
21
|
-
return /* @__PURE__ */ jsxs(DefaultRenderGroupCellRootStyled, { ownerState: { align }, onClick: toggleGroup, children: [
|
|
22
|
-
/* @__PURE__ */ jsx(
|
|
23
|
-
Icon,
|
|
24
|
-
{
|
|
25
|
-
src: fullIconPath,
|
|
26
|
-
size,
|
|
27
|
-
ariaLabel: isExpanded ? "Colapsar grupo" : "Expandir grupo"
|
|
28
|
-
}
|
|
29
|
-
),
|
|
30
|
-
customRenderGroupCell ? customRenderGroupCell(originalProps) : /* @__PURE__ */ jsx(DefaultRenderGroupCellTextStyled, { ownerState: { currentRowHeightVariant }, children: String(groupKey) })
|
|
31
|
-
] });
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
RenderGroupCell as R
|
|
35
|
-
};
|
package/components/datagrids/views/TableView/subcomponents/RenderGroupCell/RenderGroupCell.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { RenderGroupCellProps } from 'react-data-grid';
|
|
3
|
-
/**
|
|
4
|
-
* Props para RenderGroupCell que permiten contenido personalizado.
|
|
5
|
-
*/
|
|
6
|
-
export interface RenderGroupCellComponentProps<TRow> extends RenderGroupCellProps<TRow> {
|
|
7
|
-
/**
|
|
8
|
-
* Función opcional para renderizar contenido personalizado después del icono.
|
|
9
|
-
* Si se proporciona, se renderiza en lugar del texto por defecto (groupKey).
|
|
10
|
-
*/
|
|
11
|
-
customRenderGroupCell?: (props: RenderGroupCellProps<TRow>) => ReactNode;
|
|
12
|
-
}
|