@m4l/components 9.1.142 → 9.1.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/utils/getStylesColorsByMode.d.ts +48 -48
- package/@types/types.d.ts +17 -0
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +7 -7
- package/components/AppBar/slots/AppBarSlots.d.ts +6 -6
- package/components/AppBar/slots/AppBarSlots.js +1 -1
- package/components/Chip/slots/ChipSlots.d.ts +2 -2
- package/components/Color/slots/ColorSlots.d.ts +2 -2
- package/components/Color/slots/ColorSlots.js +1 -1
- 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/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
- package/components/DataGrid/DataGrid.d.ts +9 -0
- package/components/DataGrid/DataGrid.js +95 -0
- package/components/DataGrid/contexts/DataGridContext/index.js +2 -2
- package/components/DataGrid/contexts/FilterContext/index.js +2 -2
- package/components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.js +6 -2
- package/components/DataGrid/hooks/useDataGrid.js +1 -1
- package/components/DataGrid/hooks/useFilters.js +1 -1
- package/components/DataGrid/index.d.ts +8 -9
- package/components/DataGrid/index.js +1 -89
- package/components/DataGrid/slots/DataGridEnum.d.ts +2 -1
- package/components/DataGrid/slots/DataGridEnum.js +1 -0
- package/components/DataGrid/slots/DataGridSlot.d.ts +19 -18
- package/components/DataGrid/slots/DataGridSlot.js +13 -8
- package/components/DataGrid/styles.js +10 -8
- package/components/DataGrid/subcomponents/Actions/index.js +15 -12
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +1 -1
- package/components/DataGrid/subcomponents/Actions/types.d.ts +2 -0
- package/components/DataGrid/subcomponents/Table/index.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +1 -1
- package/components/DataGrid/types.d.ts +8 -12
- package/components/DragResizeWindow/slots/DragResizeWindowSlots.d.ts +2 -2
- package/components/DynamicFilter/__tests__/fronEndHelpers.test.d.ts +1 -0
- package/components/DynamicFilter/helpers/frontEndHelpers.d.ts +12 -0
- package/components/DynamicFilter/helpers/frontEndHelpers.js +213 -0
- package/components/DynamicFilter/index.d.ts +1 -0
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +15 -15
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +1 -1
- package/components/DynamicFilter/store/DynamicFilterContext.d.ts +1 -1
- package/components/DynamicFilter/store/DynamicFilterStore.d.ts +1 -1
- package/components/DynamicFilter/store/DynamicFilterStore.js +5 -2
- package/components/DynamicFilter/store/{DynamicFilterStoreTypes.d.ts → types.d.ts} +4 -5
- package/components/DynamicFilter/store/useDynamicFilterStore.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.js +2 -4
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/DynamicFilterBase.js +4 -0
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.js +2 -1
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/usePopoverMenuFields.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/usePopoverMenuFields.js +1 -3
- package/components/DynamicFilter/types.d.ts +2 -2
- package/components/DynamicSort/DynamicSort.styles.js +3 -0
- package/components/DynamicSort/constants.d.ts +3 -3
- package/components/DynamicSort/constants.js +5 -3
- package/components/DynamicSort/dictionary.js +3 -2
- package/components/DynamicSort/helpers/formatToRowSort.js +3 -2
- package/components/DynamicSort/helpers/frontEndHelpers.d.ts +7 -0
- package/components/DynamicSort/helpers/frontEndHelpers.js +38 -0
- package/components/DynamicSort/helpers/getPurgedInitialSortApplyed.js +2 -2
- package/components/DynamicSort/index.d.ts +2 -1
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +29 -29
- package/components/DynamicSort/store/DynamicSortContext.d.ts +3 -3
- package/components/DynamicSort/store/DynamicSortContext.js +5 -14
- package/components/DynamicSort/store/DynamicSortStore.d.ts +2 -2
- package/components/DynamicSort/store/DynamicSortStore.js +30 -21
- package/components/DynamicSort/store/{type.d.ts → types.d.ts} +19 -22
- package/components/DynamicSort/store/useDynamicSortStore.d.ts +1 -1
- package/components/DynamicSort/store/useDynamicSortStore.js +1 -1
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.d.ts +1 -1
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.js +3 -4
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.js +2 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +4 -0
- package/components/DynamicSort/subcomponents/FieldTypes/DataTypeComponent.js +2 -2
- package/components/DynamicSort/subcomponents/FieldTypes/FieldTypeInterface.d.ts +4 -4
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/helpers.d.ts +4 -4
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/helpers.js +4 -4
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.js +1 -1
- package/components/DynamicSort/subcomponents/FieldTypes/fieldFactory.d.ts +2 -3
- package/components/DynamicSort/subcomponents/FieldTypes/fieldFactory.js +4 -4
- package/components/DynamicSort/subcomponents/InputSort/InputSort.js +11 -2
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.d.ts +13 -1
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.js +26 -16
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +5 -4
- package/components/DynamicSort/subcomponents/PopoverMenuFields/usePopoverMenuFields.d.ts +2 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/usePopoverMenuFields.js +6 -5
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -2
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.js +8 -6
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +1 -1
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +4 -4
- package/components/DynamicSort/tests/fronEndHelpers.test.d.ts +1 -0
- package/components/DynamicSort/types.d.ts +36 -46
- package/components/Icon/slots/IconSlots.d.ts +2 -2
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
- package/components/LoadingError/slots/LoadingErrorSlots.d.ts +8 -8
- package/components/MenuActions/MenuActions.js +1 -1
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +6 -6
- package/components/MenuActions/types.d.ts +4 -7
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
- package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +3 -3
- package/components/NumberInput/slots/NumberInputSlots.d.ts +5 -5
- package/components/ObjectLogs/index.js +1 -1
- package/components/PDFViewer/slots/PDFViewerSlots.d.ts +1 -1
- package/components/Pager/Pager.js +4 -1
- package/components/Pager/slots/PagerSlots.d.ts +4 -4
- package/components/PaperForm/slots/PaperFormSlots.d.ts +3 -3
- package/components/PropertyValue/slots/PropertyValueSlots.d.ts +3 -3
- package/components/ScrollBar/slots/ScrollBarSlots.d.ts +1 -1
- package/components/SideBar/slots/SideBarSlots.d.ts +15 -15
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +7 -7
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +8 -8
- package/components/WindowBase/subcomponents/Header/types.d.ts +2 -4
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +8 -8
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +17 -17
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +1 -1
- package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +5 -5
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Component/index.js +2 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Component/types.d.ts +1 -0
- package/components/areas/contexts/WindowToolsMFContext/types.d.ts +1 -1
- package/components/areas/types.d.ts +2 -4
- package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerSlots.d.ts +1 -1
- package/components/extended/React-Splitter-Layout/slots/SplitLayoutSlots.d.ts +3 -3
- package/components/extended/React-Window/FixedSizeList/slots/FixedSizeListSlots.js +1 -1
- package/components/extended/React-Window/VariableSizeList/VariableSizeList.js +1 -1
- package/components/hook-form/RHFAutocomplete/slots/RHFAutocompleteSlots.d.ts +1 -1
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +3 -3
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
- package/components/hook-form/RHFDateTime/slots/RHFDateTimeSlots.d.ts +1 -1
- package/components/hook-form/RHFNumberInput/slots/RHFNumberInputSlots.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +4 -4
- package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +2 -2
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +2 -2
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +3 -3
- package/components/hook-form/RHFTimePicker/slots/RHFTimePickerSlots.d.ts +1 -1
- package/components/index.d.ts +27 -33
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +2 -2
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +5 -5
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +1 -1
- 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 +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
- package/components/mui_extended/Dialog/slots/DialogSlots.d.ts +2 -2
- package/components/mui_extended/Divider/slots/DividerSlots.d.ts +2 -2
- package/components/mui_extended/IconButton/IconButton.js +2 -2
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +2 -2
- package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +2 -2
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -2
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +1 -1
- 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/Select/slots/SelectSlots.d.ts +3 -3
- 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 +1 -1
- package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
- 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/Tooltip/slots/TooltipSlots.d.ts +1 -1
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.js +2 -2
- package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +6 -13
- package/components/popups/components/PopupsProvider/hooks/usePopops/usePopups.js +1 -1
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +5 -5
- package/hooks/index.d.ts +1 -0
- package/hooks/useDynamicFilterAndSort/constants.d.ts +1 -0
- package/hooks/useDynamicFilterAndSort/constants.js +4 -0
- package/hooks/useDynamicFilterAndSort/icons.d.ts +6 -0
- package/hooks/useDynamicFilterAndSort/icons.js +11 -0
- package/hooks/useDynamicFilterAndSort/index.d.ts +2 -0
- package/hooks/useDynamicFilterAndSort/index.js +1 -0
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.d.ts +5 -0
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.js +9 -0
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +9 -0
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.js +22 -0
- package/hooks/useDynamicFilterAndSort/styles.d.ts +2 -0
- package/hooks/useDynamicFilterAndSort/styles.js +43 -0
- package/hooks/useDynamicFilterAndSort/types.d.ts +34 -0
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.d.ts +10 -0
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +90 -0
- package/index.js +304 -295
- package/package.json +1 -1
- package/utils/getValidDate.d.ts +4 -0
- package/utils/getValidDate.js +17 -0
- package/utils/index.d.ts +1 -0
- package/vendor.js +2 -2
- package/not_recognized/index.js +0 -23261
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare function DataGrid<TRow, TSummaryRow, TKey extends RowKey = RowKey>(props: DataGridProps<TRow, TSummaryRow, TKey>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { DataGrid } from './DataGrid';
|
|
2
|
+
export * from './formatters';
|
|
3
|
+
export type { Column, EditorProps, FormatterProps } from 'react-data-grid';
|
|
4
|
+
export type { RowKey, ChangeUserColumn } from './types';
|
|
5
|
+
export { getDataGridComponentsDictionary } from './dictionary';
|
|
6
|
+
export { TextEditor, NumberEditor } from './subcomponents/editors/TextEditor';
|
|
7
|
+
export { getDataGridRowsFromSet } from './utils/getDataGridRowsFromSet';
|
|
8
|
+
export type { IGridConfig } from './contexts/DataGridContext/types';
|
|
@@ -1,89 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { T as Table } from "./subcomponents/Table/index.js";
|
|
3
|
-
import { A as Actions } from "./subcomponents/Actions/index.js";
|
|
4
|
-
import { a as FilterProvider } from "./contexts/FilterContext/index.js";
|
|
5
|
-
import { a as DataGridProvider } from "./contexts/DataGridContext/index.js";
|
|
6
|
-
import { T as TEST_PROP_COLUMNS } from "./types.js";
|
|
7
|
-
import { T as TEST_PROP_ID } from "../../test/constants_no_mock.js";
|
|
8
|
-
import { a as getNameDataTestId } from "../../test/getNameDataTestId.js";
|
|
9
|
-
import { D as DATAGRID_PREFIX_NAME } from "./constants.js";
|
|
10
|
-
import { D as DataGridRootStyled } from "./slots/DataGridSlot.js";
|
|
11
|
-
import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
|
|
12
|
-
import { useRef } from "react";
|
|
13
|
-
function DataGrid(props) {
|
|
14
|
-
const {
|
|
15
|
-
id,
|
|
16
|
-
withActions = true,
|
|
17
|
-
rows,
|
|
18
|
-
columns,
|
|
19
|
-
actionsProps,
|
|
20
|
-
selectedRows,
|
|
21
|
-
onSelectedRowsChange,
|
|
22
|
-
rowKeyGetter,
|
|
23
|
-
rowActionsGetter,
|
|
24
|
-
onRowsChange,
|
|
25
|
-
rowHeaderHeights,
|
|
26
|
-
rowHeights,
|
|
27
|
-
initialRowHeightVariant,
|
|
28
|
-
checkedRows,
|
|
29
|
-
onCheckedRowsChange,
|
|
30
|
-
dataTestId = "",
|
|
31
|
-
defaultUserColumns,
|
|
32
|
-
onChangeUserColumns
|
|
33
|
-
} = props;
|
|
34
|
-
const refDataGrid = useRef(null);
|
|
35
|
-
const classRoot = getComponentSlotRoot(DATAGRID_PREFIX_NAME);
|
|
36
|
-
return /* @__PURE__ */ jsx(
|
|
37
|
-
DataGridRootStyled,
|
|
38
|
-
{
|
|
39
|
-
ref: refDataGrid,
|
|
40
|
-
className: classRoot,
|
|
41
|
-
...process.env.NODE_ENV !== "production" ? {
|
|
42
|
-
[TEST_PROP_COLUMNS]: JSON.stringify(columns),
|
|
43
|
-
[TEST_PROP_ID]: getNameDataTestId(DATAGRID_PREFIX_NAME, "root", dataTestId)
|
|
44
|
-
} : {},
|
|
45
|
-
children: /* @__PURE__ */ jsx(
|
|
46
|
-
DataGridProvider,
|
|
47
|
-
{
|
|
48
|
-
id: props.id,
|
|
49
|
-
columns,
|
|
50
|
-
rowHeights,
|
|
51
|
-
rowHeaderHeights,
|
|
52
|
-
initialRowHeightVariant,
|
|
53
|
-
rowsCount: rows.length,
|
|
54
|
-
checkedRows,
|
|
55
|
-
rowActionsGetter,
|
|
56
|
-
onCheckedRowsChange,
|
|
57
|
-
rowKeyGetter,
|
|
58
|
-
rows,
|
|
59
|
-
onChangeUserColumns,
|
|
60
|
-
defaultUserColumns,
|
|
61
|
-
children: /* @__PURE__ */ jsxs(FilterProvider, { initialActiveFilters: false, children: [
|
|
62
|
-
withActions && actionsProps && /* @__PURE__ */ jsx(
|
|
63
|
-
Actions,
|
|
64
|
-
{
|
|
65
|
-
...actionsProps
|
|
66
|
-
}
|
|
67
|
-
),
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
Table,
|
|
70
|
-
{
|
|
71
|
-
id,
|
|
72
|
-
withActions,
|
|
73
|
-
columns,
|
|
74
|
-
rows,
|
|
75
|
-
selectedRows,
|
|
76
|
-
onSelectedRowsChange,
|
|
77
|
-
rowKeyGetter,
|
|
78
|
-
onRowsChange
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
] })
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
}
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
export {
|
|
88
|
-
DataGrid as D
|
|
89
|
-
};
|
|
1
|
+
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
var DataGridSlots = /* @__PURE__ */ ((DataGridSlots2) => {
|
|
2
2
|
DataGridSlots2["datagridRoot"] = "datagridRoot";
|
|
3
|
+
DataGridSlots2["customHeader"] = "customHeader";
|
|
3
4
|
return DataGridSlots2;
|
|
4
5
|
})(DataGridSlots || {});
|
|
5
6
|
var ActionsSlots = /* @__PURE__ */ ((ActionsSlots2) => {
|
|
@@ -3,46 +3,47 @@
|
|
|
3
3
|
* Slots DataGrid
|
|
4
4
|
* ****************
|
|
5
5
|
*/
|
|
6
|
-
export declare const DataGridRootStyled: import('@emotion/styled').StyledComponent<
|
|
6
|
+
export declare const DataGridRootStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
7
|
+
export declare const CustomHeaderStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
7
8
|
/**
|
|
8
9
|
* ****************
|
|
9
10
|
* Slots Actions
|
|
10
11
|
* ****************
|
|
11
12
|
*/
|
|
12
|
-
export declare const ActionsRootStyled: import('@emotion/styled').StyledComponent<
|
|
13
|
-
export declare const ActionsConfigContainerStyled: import('@emotion/styled').StyledComponent<
|
|
13
|
+
export declare const ActionsRootStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
14
|
+
export declare const ActionsConfigContainerStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
14
15
|
/**
|
|
15
16
|
* ****************
|
|
16
17
|
* Slots RowsCount
|
|
17
18
|
* ****************
|
|
18
19
|
*/
|
|
19
|
-
export declare const RowsCountRootStyled: import('@emotion/styled').StyledComponent<
|
|
20
|
-
export declare const RowsCountLabelStyled: import('@emotion/styled').StyledComponent<
|
|
21
|
-
export declare const RowsCountValueStyled: import('@emotion/styled').StyledComponent<
|
|
20
|
+
export declare const RowsCountRootStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
21
|
+
export declare const RowsCountLabelStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
22
|
+
export declare const RowsCountValueStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
22
23
|
/**
|
|
23
24
|
* ****************
|
|
24
25
|
* Slots ColumnsConfig
|
|
25
26
|
* ****************
|
|
26
27
|
*/
|
|
27
|
-
export declare const ColumnsConfigWrapperStyled: import('@emotion/styled').StyledComponent<
|
|
28
|
-
export declare const ColumnsConfigSelColumnsStyled: import('@emotion/styled').StyledComponent<
|
|
29
|
-
export declare const ColumnsConfigDataGridStyled: import('@emotion/styled').StyledComponent<
|
|
30
|
-
export declare const ColumnsConfigActiosStyled: import('@emotion/styled').StyledComponent<
|
|
28
|
+
export declare const ColumnsConfigWrapperStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
29
|
+
export declare const ColumnsConfigSelColumnsStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
30
|
+
export declare const ColumnsConfigDataGridStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
31
|
+
export declare const ColumnsConfigActiosStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
31
32
|
/**
|
|
32
33
|
* ****************
|
|
33
34
|
* Slots Table
|
|
34
35
|
* ****************
|
|
35
36
|
*/
|
|
36
|
-
export declare const TableContainerStyled: import('@emotion/styled').StyledComponent<
|
|
37
|
-
export declare const TableWrapperDataGridStyled: import('@emotion/styled').StyledComponent<
|
|
38
|
-
export declare const DraggableHeaderRootStyled: import('@emotion/styled').StyledComponent<
|
|
39
|
-
export declare const DraggableWrapperInputBaseStyled: import('@emotion/styled').StyledComponent<
|
|
40
|
-
export declare const HeaderInputBaseStyled: import('@emotion/styled').StyledComponent<
|
|
41
|
-
export declare const WrapperSkeletonStyled: import('@emotion/styled').StyledComponent<
|
|
42
|
-
export declare const ContentModalSettingStyled: import('@emotion/styled').StyledComponent<
|
|
37
|
+
export declare const TableContainerStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
38
|
+
export declare const TableWrapperDataGridStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
39
|
+
export declare const DraggableHeaderRootStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
40
|
+
export declare const DraggableWrapperInputBaseStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
41
|
+
export declare const HeaderInputBaseStyled: import('@emotion/styled').StyledComponent<any, {}, {}>;
|
|
42
|
+
export declare const WrapperSkeletonStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
43
|
+
export declare const ContentModalSettingStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
43
44
|
/**
|
|
44
45
|
* ****************
|
|
45
46
|
* Slots TextEditor
|
|
46
47
|
* ****************
|
|
47
48
|
*/
|
|
48
|
-
export declare const InputTextEditorStyled: import('@emotion/styled').StyledComponent<
|
|
49
|
+
export declare const InputTextEditorStyled: import('@emotion/styled').StyledComponent<any, Pick<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof import('react').ClassAttributes<HTMLInputElement> | keyof import('react').InputHTMLAttributes<HTMLInputElement>>, {}>;
|
|
@@ -7,6 +7,10 @@ const DataGridRootStyled = styled("div", {
|
|
|
7
7
|
name: DATAGRID_PREFIX_NAME,
|
|
8
8
|
slot: DataGridSlots.datagridRoot
|
|
9
9
|
})(dataGridStyles.datagridRoot);
|
|
10
|
+
const CustomHeaderStyled = styled("div", {
|
|
11
|
+
name: DATAGRID_PREFIX_NAME,
|
|
12
|
+
slot: DataGridSlots.customHeader
|
|
13
|
+
})(dataGridStyles.customHeader);
|
|
10
14
|
const ActionsRootStyled = styled("div", {
|
|
11
15
|
name: DATAGRID_PREFIX_NAME,
|
|
12
16
|
slot: ActionsSlots.actionsRoot
|
|
@@ -77,7 +81,7 @@ const InputTextEditorStyled = styled("input", {
|
|
|
77
81
|
})(dataGridStyles.inputTexEditor);
|
|
78
82
|
export {
|
|
79
83
|
ActionsRootStyled as A,
|
|
80
|
-
|
|
84
|
+
CustomHeaderStyled as C,
|
|
81
85
|
DataGridRootStyled as D,
|
|
82
86
|
HeaderInputBaseStyled as H,
|
|
83
87
|
InputTextEditorStyled as I,
|
|
@@ -87,11 +91,12 @@ export {
|
|
|
87
91
|
ActionsConfigContainerStyled as a,
|
|
88
92
|
RowsCountLabelStyled as b,
|
|
89
93
|
RowsCountValueStyled as c,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
ColumnsConfigWrapperStyled as d,
|
|
95
|
+
ColumnsConfigSelColumnsStyled as e,
|
|
96
|
+
ColumnsConfigDataGridStyled as f,
|
|
97
|
+
ColumnsConfigActiosStyled as g,
|
|
98
|
+
ContentModalSettingStyled as h,
|
|
99
|
+
TableContainerStyled as i,
|
|
100
|
+
DraggableHeaderRootStyled as j,
|
|
101
|
+
DraggableWrapperInputBaseStyled as k
|
|
97
102
|
};
|
|
@@ -20,7 +20,7 @@ const dataGridStyles = {
|
|
|
20
20
|
border: theme.vars.size.borderStroke.container,
|
|
21
21
|
borderColor: theme.vars.palette?.border.default,
|
|
22
22
|
position: "relative",
|
|
23
|
-
gap: theme.vars.size.baseSpacings.
|
|
23
|
+
gap: theme.vars.size.baseSpacings.sp3,
|
|
24
24
|
height: "100%",
|
|
25
25
|
width: "100%",
|
|
26
26
|
"& .rdg .MuiCheckbox-root": {
|
|
@@ -49,6 +49,9 @@ const dataGridStyles = {
|
|
|
49
49
|
//Se utiliza directamente el valor porque no está tokenizado
|
|
50
50
|
}
|
|
51
51
|
}),
|
|
52
|
+
customHeader: ({ ownerState }) => ({
|
|
53
|
+
display: ownerState.visibleCustomHeader ? "block" : "none"
|
|
54
|
+
}),
|
|
52
55
|
/**
|
|
53
56
|
* Estilos del contenedor de las acciones
|
|
54
57
|
*/
|
|
@@ -63,14 +66,15 @@ const dataGridStyles = {
|
|
|
63
66
|
gap: theme.vars.size.baseSpacings.sp2,
|
|
64
67
|
height: theme.vars.size.baseSpacings.sp8,
|
|
65
68
|
justifyContent: "space-between",
|
|
66
|
-
left: theme.vars.size.baseSpacings.sp0,
|
|
67
69
|
lineHeight: theme.vars.size.baseSpacings.sp4,
|
|
68
70
|
minHeight: theme.vars.size.baseSpacings.sp8,
|
|
69
71
|
padding: `${theme.vars.size.baseSpacings.sp1} ${theme.vars.size.baseSpacings.sp2}`,
|
|
70
|
-
position: "absolute",
|
|
71
72
|
right: theme.vars.size.baseSpacings.sp0,
|
|
72
73
|
top: theme.vars.size.baseSpacings.sp0,
|
|
73
74
|
fontsize: getTypographyStyles(theme.generalSettings.isMobile, "medium", "body").fontSize,
|
|
75
|
+
'& [class*="M4LPager-root"]': {
|
|
76
|
+
flexGrow: 1
|
|
77
|
+
},
|
|
74
78
|
"@container main (max-width: 600px)": {
|
|
75
79
|
height: theme.vars.size.baseSpacings.sp11
|
|
76
80
|
}
|
|
@@ -82,6 +86,7 @@ const dataGridStyles = {
|
|
|
82
86
|
display: "flex",
|
|
83
87
|
flexDirection: "row",
|
|
84
88
|
gap: theme.vars.size.baseSpacings.sp2,
|
|
89
|
+
alignItems: "center",
|
|
85
90
|
marginLeft: theme.vars.size.baseSpacings.sp3,
|
|
86
91
|
"& .M4LIconButton-root": {
|
|
87
92
|
background: theme.vars.palette.background.default
|
|
@@ -197,11 +202,8 @@ const dataGridStyles = {
|
|
|
197
202
|
tableContaniner: ({ theme }) => ({
|
|
198
203
|
display: "flex",
|
|
199
204
|
flexDirection: "column",
|
|
200
|
-
position: "
|
|
201
|
-
|
|
202
|
-
bottom: theme.vars.size.baseSpacings.sp0,
|
|
203
|
-
left: theme.vars.size.baseSpacings.sp0,
|
|
204
|
-
right: theme.vars.size.baseSpacings.sp0,
|
|
205
|
+
position: "relative",
|
|
206
|
+
flexGrow: 1,
|
|
205
207
|
overflow: "hidden",
|
|
206
208
|
padding: `${theme.vars.size.baseSpacings.sp0} ${theme.vars.size.baseSpacings.sp1}`,
|
|
207
209
|
borderRadius: theme.vars.size.baseSpacings.sp1,
|
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { P as Pager } from "../../../Pager/Pager.js";
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
2
|
import { F as Filter } from "./subcomponents/Filter/index.js";
|
|
4
3
|
import { S as Settings } from "./subcomponents/Settings/index.js";
|
|
5
4
|
import { R as RowsCount } from "./subcomponents/RowsCount/index.js";
|
|
6
5
|
import { D as Density } from "./subcomponents/Density/index.js";
|
|
7
6
|
import { u as useDataGrid } from "../../hooks/useDataGrid.js";
|
|
8
7
|
import { useIsMobile } from "@m4l/graphics";
|
|
9
|
-
import { useModuleDictionary } from "@m4l/core";
|
|
10
|
-
import { d as dictionary } from "../../dictionary.js";
|
|
11
8
|
import { M as MobileMenuActions } from "./subcomponents/MobileMenuActions/index.js";
|
|
12
9
|
import { A as ActionsRootStyled, a as ActionsConfigContainerStyled } from "../../slots/DataGridSlot.js";
|
|
10
|
+
import { P as Pager } from "../../../Pager/Pager.js";
|
|
13
11
|
function Actions(props) {
|
|
14
12
|
const isMobile = useIsMobile();
|
|
15
13
|
const { rowHeights } = useDataGrid();
|
|
16
|
-
const { getLabel } = useModuleDictionary();
|
|
17
14
|
const {
|
|
18
15
|
withRowsCount = true,
|
|
19
16
|
withPager = true,
|
|
20
17
|
pagerOptions,
|
|
21
18
|
withSettings = true,
|
|
22
19
|
settingsProps,
|
|
23
|
-
withLocalFilters
|
|
20
|
+
withLocalFilters,
|
|
21
|
+
leftActions: LeftActions,
|
|
22
|
+
rightActions: RightActions
|
|
24
23
|
} = props;
|
|
25
24
|
return /* @__PURE__ */ jsxs(ActionsRootStyled, { children: [
|
|
26
|
-
withRowsCount && !isMobile && /* @__PURE__ */ jsx(RowsCount, {}),
|
|
25
|
+
withRowsCount && !withPager && !isMobile && /* @__PURE__ */ jsx(RowsCount, {}),
|
|
27
26
|
withPager && pagerOptions && /* @__PURE__ */ jsx(
|
|
28
27
|
Pager,
|
|
29
28
|
{
|
|
30
29
|
...pagerOptions,
|
|
31
|
-
totalRecords: pagerOptions.totalRecords
|
|
32
|
-
labelRows: getLabel(dictionary.LABEL_ROWS_PER_PAGE),
|
|
33
|
-
labelOf: getLabel(dictionary.LABEL_OF)
|
|
30
|
+
totalRecords: pagerOptions.totalRecords
|
|
34
31
|
}
|
|
35
32
|
),
|
|
36
|
-
isMobile ? /* @__PURE__ */
|
|
33
|
+
isMobile ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
34
|
+
LeftActions,
|
|
35
|
+
/* @__PURE__ */ jsx(MobileMenuActions, {}),
|
|
36
|
+
RightActions
|
|
37
|
+
] }) : /* @__PURE__ */ jsxs(ActionsConfigContainerStyled, { children: [
|
|
38
|
+
LeftActions,
|
|
37
39
|
typeof rowHeights !== "number" && /* @__PURE__ */ jsx(Density, {}),
|
|
38
40
|
withLocalFilters && /* @__PURE__ */ jsx(Filter, {}),
|
|
39
|
-
withSettings && /* @__PURE__ */ jsx(Settings, { ...settingsProps })
|
|
41
|
+
withSettings && /* @__PURE__ */ jsx(Settings, { ...settingsProps }),
|
|
42
|
+
RightActions
|
|
40
43
|
] })
|
|
41
44
|
] });
|
|
42
45
|
}
|
|
@@ -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 { d as ColumnsConfigWrapperStyled, e as ColumnsConfigSelColumnsStyled, f as ColumnsConfigDataGridStyled, T 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/index.js";
|
|
10
10
|
function getRowsFromColumnsConfig(columnsConfig) {
|
package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useRef, useCallback } from "react";
|
|
|
5
5
|
import { u as useDataGrid } from "../../../../../hooks/useDataGrid.js";
|
|
6
6
|
import { u as useModal } from "../../../../../../../hooks/useModal/index.js";
|
|
7
7
|
import { C as ColumnsConfig } from "../../Settings/subcomponents/ColumnsConfig/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { h as ContentModalSettingStyled, D as DataGridRootStyled, i as TableContainerStyled, T as TableWrapperDataGridStyled } from "../../../../../slots/DataGridSlot.js";
|
|
9
9
|
import { p as pathIcons } from "../../../../../icons.js";
|
|
10
10
|
import { A as ActionsContainer } from "../../../../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
11
11
|
import { W as WindowBase } from "../../../../../../WindowBase/WindowBase.js";
|
|
@@ -8,7 +8,7 @@ import { f as filterHeight } from "./subcomponents/SelectColumn.js";
|
|
|
8
8
|
import { u as useSortColumnsRows } from "./hooks/useSortColumnsRows.js";
|
|
9
9
|
import { u as useFilters } from "../../hooks/useFilters.js";
|
|
10
10
|
import { u as useDataGrid } from "../../hooks/useDataGrid.js";
|
|
11
|
-
import {
|
|
11
|
+
import { i as TableContainerStyled, T as TableWrapperDataGridStyled } from "../../slots/DataGridSlot.js";
|
|
12
12
|
function Table(props) {
|
|
13
13
|
const { columns, rows, onRowsChange, rowKeyGetter, selectedRows, onSelectedRowsChange } = props;
|
|
14
14
|
const { finalColumns, sortColumns, setSortColumns, finalRows } = useSortColumnsRows(
|
|
@@ -5,7 +5,7 @@ import { useDrag, useDrop } from "react-dnd";
|
|
|
5
5
|
import { HeaderRenderer } from "react-data-grid";
|
|
6
6
|
import { u as useFocusRef } from "../hooks/useFocusRef.js";
|
|
7
7
|
import { u as useFilters } from "../../../hooks/useFilters.js";
|
|
8
|
-
import {
|
|
8
|
+
import { j as DraggableHeaderRootStyled, k as DraggableWrapperInputBaseStyled, H as HeaderInputBaseStyled } from "../../../slots/DataGridSlot.js";
|
|
9
9
|
function DraggableHeaderRenderer(props) {
|
|
10
10
|
const { onColumnsReorder, column, isCellSelected, ...others } = props;
|
|
11
11
|
const { ref, tabIndex } = useFocusRef(isCellSelected);
|
|
@@ -54,11 +54,11 @@ export interface ColumnConfig {
|
|
|
54
54
|
frozen?: Maybe<boolean>;
|
|
55
55
|
}
|
|
56
56
|
type KeyUserColumns = keyof IGridConfig;
|
|
57
|
-
export interface ChangeUserColumn<
|
|
58
|
-
reason:
|
|
59
|
-
userConfig: IGridConfig[
|
|
57
|
+
export interface ChangeUserColumn<T extends KeyUserColumns = KeyUserColumns> {
|
|
58
|
+
reason: T;
|
|
59
|
+
userConfig: IGridConfig[T];
|
|
60
60
|
}
|
|
61
|
-
export type
|
|
61
|
+
export type OnChangeUserColumns = (props: ChangeUserColumn) => void;
|
|
62
62
|
export interface GridProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> {
|
|
63
63
|
id: string;
|
|
64
64
|
withActions?: boolean;
|
|
@@ -82,7 +82,7 @@ export interface GridProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> {
|
|
|
82
82
|
* Propiedad que recibe la función que se ejecuta cuando se cambian
|
|
83
83
|
* las configuraciones de las columnas.
|
|
84
84
|
*/
|
|
85
|
-
onChangeUserColumns?:
|
|
85
|
+
onChangeUserColumns?: OnChangeUserColumns;
|
|
86
86
|
}
|
|
87
87
|
export declare const DATAGRID_TEST_ID = "m4ldatagrid";
|
|
88
88
|
export declare const PREFIX_TEST_ATTRIBUTE = "data-testid";
|
|
@@ -90,13 +90,9 @@ export declare const TEST_PROP_COLUMNS = "data-testid-m4ldatagrid-columns";
|
|
|
90
90
|
export declare interface DataGridProps<TRow, TSummaryRow, TKey extends RowKey = RowKey> extends GridProps<TRow, TSummaryRow, TKey> {
|
|
91
91
|
actionsProps: ActionsProps;
|
|
92
92
|
dataTestId?: string;
|
|
93
|
+
customHeader?: React.ReactNode;
|
|
94
|
+
visibleCustomHeader?: boolean;
|
|
93
95
|
}
|
|
94
|
-
|
|
95
|
-
* OwnerState:
|
|
96
|
-
* Define el objeto de propiedades necesarias para conocer el estado del componente y en función de esta información construir el inventario de clases css dinámicas.
|
|
97
|
-
*/
|
|
98
|
-
export interface OwnerState extends WithActionsProps {
|
|
99
|
-
actionsProps: ActionsProps;
|
|
100
|
-
}
|
|
96
|
+
export type DataGridOwnerState<TRow, TSummaryRow, TKey extends RowKey = RowKey> = Pick<DataGridProps<TRow, TSummaryRow, TKey>, 'visibleCustomHeader'>;
|
|
101
97
|
export type DataGridSlotsType = DataGridSlots | TextEditorSlots | ActionsSlots | RowsCountSlots | ColumnsConfigSlots | TableSlots;
|
|
102
98
|
export type DataGridStyles = OverridesStyleRules<DataGridSlotsType, typeof DATAGRID_PREFIX_NAME, Theme>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').DragResizeWindowOwnerState> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('../types').DragResizeWindowOwnerState> & Record<string, unknown>;
|
|
3
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
4
|
export declare const IconResizeFormatterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').DragResizeWindowOwnerState> & Record<string, unknown> & {
|
|
5
5
|
ownerState: Partial<import('../types').DragResizeWindowOwnerState> & Record<string, unknown>;
|
|
6
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').
|
|
6
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RawFilterFieldApply } from '../types';
|
|
2
|
+
type ObjectData = Record<any, any>;
|
|
3
|
+
/**
|
|
4
|
+
* Función que verifica si el objectData cumple con todos los filtros de DynamicFilter
|
|
5
|
+
* Para usar en el frontEnd, y no atraves de la API
|
|
6
|
+
*/
|
|
7
|
+
export declare const getIsIfInDynamicFilter: (objectData: ObjectData, groupedFields: Record<string, RawFilterFieldApply[]>) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* getFilterGroupFieldsByName agrupa los campos por nombre, para procesarlos en una OR
|
|
10
|
+
*/
|
|
11
|
+
export declare function getFilterGroupFieldsByName(fields: RawFilterFieldApply[]): Record<string, RawFilterFieldApply[]>;
|
|
12
|
+
export {};
|