@m4l/components 9.2.12 → 9.2.15-beta.2
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/@types/types.d.ts +1 -4
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +3 -3
- package/components/AppBar/slots/AppBarSlots.d.ts +2 -2
- package/components/Chip/slots/ChipSlots.d.ts +1 -1
- package/components/Color/slots/ColorSlots.d.ts +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/contexts/DataGridContext/index.js +3 -3
- package/components/DataGrid/contexts/DataGridContext/types.d.ts +7 -4
- package/components/DataGrid/formatters/ColumnBooleanFormatter/formatter.d.ts +5 -0
- package/components/DataGrid/formatters/ColumnBooleanFormatter/formatter.js +27 -0
- package/components/DataGrid/formatters/ColumnBooleanFormatter/index.d.ts +3 -5
- package/components/DataGrid/formatters/ColumnBooleanFormatter/index.js +1 -27
- package/components/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.js +1 -1
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/formatter.d.ts +7 -0
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/formatter.js +23 -0
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.d.ts +3 -7
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.js +1 -23
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/useColumnConcatenatedValue.js +1 -1
- package/components/DataGrid/formatters/ColumnDateFormatter/formatter.d.ts +5 -0
- package/components/DataGrid/formatters/ColumnDateFormatter/formatter.js +20 -0
- package/components/DataGrid/formatters/ColumnDateFormatter/index.d.ts +3 -5
- package/components/DataGrid/formatters/ColumnDateFormatter/index.js +1 -20
- package/components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.js +1 -1
- package/components/DataGrid/formatters/ColumnIconFormatter/formatter.d.ts +5 -0
- package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +12 -0
- package/components/DataGrid/formatters/ColumnIconFormatter/index.d.ts +2 -5
- package/components/DataGrid/formatters/ColumnIconFormatter/index.js +1 -12
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.d.ts +6 -0
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js +21 -0
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.d.ts +3 -6
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.js +1 -21
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/useColumnInteractiveCheck.js +1 -1
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.d.ts +5 -0
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/formatter.js +14 -0
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/index.d.ts +3 -5
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/index.js +1 -14
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +1 -1
- package/components/DataGrid/formatters/ColumnPointsFormatter/formatter.d.ts +5 -0
- package/components/DataGrid/formatters/ColumnPointsFormatter/formatter.js +12 -0
- package/components/DataGrid/formatters/ColumnPointsFormatter/index.d.ts +3 -5
- package/components/DataGrid/formatters/ColumnPointsFormatter/index.js +1 -12
- package/components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.js +1 -1
- package/components/DataGrid/formatters/ColumnPriceFormatter/formatter.d.ts +5 -0
- package/components/DataGrid/formatters/ColumnPriceFormatter/formatter.js +12 -0
- package/components/DataGrid/formatters/ColumnPriceFormatter/index.d.ts +3 -5
- package/components/DataGrid/formatters/ColumnPriceFormatter/index.js +1 -12
- package/components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.js +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.d.ts +9 -0
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/formatter.js +36 -0
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.d.ts +3 -9
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.js +1 -36
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.js +1 -1
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.d.ts +5 -0
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/formatter.js +12 -0
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index.d.ts +3 -5
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index.js +1 -12
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js +3 -3
- package/components/DataGrid/formatters/index.d.ts +11 -21
- package/components/DataGrid/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +1 -1
- package/components/DragResizeWindowRND/DragResizeWindowRND.d.ts +2 -2
- package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.js +1 -1
- package/components/DragResizeWindowRND/types.d.ts +1 -1
- package/components/DynamicFilter/constants.d.ts +1 -0
- package/components/DynamicFilter/constants.js +3 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
- package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +17 -0
- package/components/DynamicSort/constants.d.ts +1 -0
- package/components/DynamicSort/constants.js +3 -1
- package/components/DynamicSort/icons.d.ts +4 -2
- package/components/DynamicSort/icons.js +5 -4
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.js +2 -2
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.js +3 -3
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +17 -0
- package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
- package/components/MenuActions/index.d.ts +1 -0
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/PropertyValue/PropertyValue.js +2 -1
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/WindowBase/hooks/useWindowToolsMF/index.d.ts +1 -1
- package/components/WindowBase/index.d.ts +1 -0
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +2 -2
- package/components/areas/types.d.ts +2 -2
- package/components/extended/React-Splitter-Layout/index.d.ts +1 -0
- package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +2 -2
- 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/index.d.ts +1 -5
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Accordion/index.d.ts +1 -0
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +2 -2
- package/components/mui_extended/Accordion/types.d.ts +3 -3
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +4 -4
- 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 +1 -1
- 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/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 +1 -1
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +1 -1
- package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +2 -2
- 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/Tab/index.d.ts +1 -0
- package/components/mui_extended/Tabs/index.d.ts +1 -0
- package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +2 -2
- 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/Typography/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/index.d.ts +3 -3
- package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +1 -1
- package/index.js +191 -193
- package/package.json +7 -9
- package/patchLibErrors/index.d.ts +1 -1
- package/patchLibErrors/patchErrors.d.ts +5 -0
- package/utils/getNullGuard.d.ts +4 -0
- package/utils/getNullGuard.js +9 -0
- package/utils/index.d.ts +2 -1
- package/components/DragResizeWindow/DragResizeWindow.d.ts +0 -20
- package/components/DragResizeWindow/DragResizeWindow.js +0 -226
- package/components/DragResizeWindow/DragResizeWindow.styles.d.ts +0 -5
- package/components/DragResizeWindow/DragResizeWindow.styles.js +0 -47
- package/components/DragResizeWindow/classes/index.d.ts +0 -2
- package/components/DragResizeWindow/classes/index.js +0 -17
- package/components/DragResizeWindow/classes/types.d.ts +0 -8
- package/components/DragResizeWindow/constants.d.ts +0 -3
- package/components/DragResizeWindow/constants.js +0 -6
- package/components/DragResizeWindow/helpers/draggingOrResizingWindow.d.ts +0 -7
- package/components/DragResizeWindow/helpers/expandingParentContainer.d.ts +0 -12
- package/components/DragResizeWindow/helpers/expandingParentContainer.js +0 -31
- package/components/DragResizeWindow/helpers/getInitialSize.d.ts +0 -15
- package/components/DragResizeWindow/helpers/getInitialSize.js +0 -56
- package/components/DragResizeWindow/helpers/index.d.ts +0 -6
- package/components/DragResizeWindow/helpers/isElmentInViewport.d.ts +0 -15
- package/components/DragResizeWindow/helpers/isElmentInViewport.js +0 -1
- package/components/DragResizeWindow/helpers/pointPosition.d.ts +0 -36
- package/components/DragResizeWindow/helpers/pointPosition.js +0 -82
- package/components/DragResizeWindow/helpers/shrinkingParentContainer.d.ts +0 -6
- package/components/DragResizeWindow/helpers/shrinkingParentContainer.js +0 -34
- package/components/DragResizeWindow/hooks/useDimensionEffects.d.ts +0 -23
- package/components/DragResizeWindow/hooks/useDimensionEffects.js +0 -92
- package/components/DragResizeWindow/hooks/useDragOptions.d.ts +0 -28
- package/components/DragResizeWindow/hooks/useDragOptions.js +0 -167
- package/components/DragResizeWindow/hooks/useResizeOptions.d.ts +0 -45
- package/components/DragResizeWindow/hooks/useResizeOptions.js +0 -218
- package/components/DragResizeWindow/icons.d.ts +0 -3
- package/components/DragResizeWindow/index.d.ts +0 -2
- package/components/DragResizeWindow/slots/DragResizeWindowSlots.d.ts +0 -6
- package/components/DragResizeWindow/slots/DragResizeWindowSlots.js +0 -14
- package/components/DragResizeWindow/slots/slots.d.ts +0 -4
- package/components/DragResizeWindow/slots/slots.js +0 -8
- package/components/DragResizeWindow/tests/DragResizeWindow.test.d.ts +0 -1
- package/components/DragResizeWindow/types.d.ts +0 -316
- package/components/DragResizeWindow/utils.d.ts +0 -15
- package/components/DragResizeWindow/utils.js +0 -36
- package/components/ScrollToTop/index.d.ts +0 -4
- package/components/ScrollToTop/index.js +0 -12
- package/components/WrapperComponent/index.js +0 -14
- package/not_recognized/index.js +0 -1280
- package/patchLibErrors/defaultPropsError.d.ts +0 -5
- package/patchLibErrors/defaultPropsError.js +0 -1
- package/storybook/components/DragResizeWindow/stories/DragResizeWindow.stories.d.ts +0 -7
- package/storybook/components/DragResizeWindow/stories/constants.d.ts +0 -3
- package/storybook/components/DragResizeWindow/stories/subcomponents/ContentExample.d.ts +0 -4
- package/storybook/components/DragResizeWindow/stories/subcomponents/WithExtendedContainer.d.ts +0 -5
- package/storybook/components/DragResizeWindow/stories/types.d.ts +0 -3
- /package/components/{DragResizeWindow/helpers → DataGrid/formatters/ColumnChipStatusFormatter}/index.js +0 -0
- /package/components/{DragResizeWindow → mui_extended/Tab}/index.js +0 -0
- /package/{components/DragResizeWindow/helpers/draggingOrResizingWindow.js → patchLibErrors/patchErrors.js} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getPropertyByString } from "@m4l/core";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/BooleanFormatter.js";
|
|
5
|
+
function ColumnBooleanFormatter(props) {
|
|
6
|
+
const { fieldValue, presentationType, Component = React.Fragment } = props;
|
|
7
|
+
return (obProps) => {
|
|
8
|
+
const valueMaybeString = getPropertyByString(obProps, fieldValue);
|
|
9
|
+
let fixedValue;
|
|
10
|
+
if (typeof valueMaybeString === "boolean") {
|
|
11
|
+
fixedValue = valueMaybeString;
|
|
12
|
+
} else {
|
|
13
|
+
fixedValue = void 0;
|
|
14
|
+
}
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
BooleanFormatter,
|
|
17
|
+
{
|
|
18
|
+
presentationType,
|
|
19
|
+
value: fixedValue,
|
|
20
|
+
Component
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
ColumnBooleanFormatter as C
|
|
27
|
+
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export declare function ColumnBooleanFormatter(props: ColumnBooleanFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { ColumnBooleanFormatter } from './formatter';
|
|
2
|
+
export type { ColumnBooleanFormatterProps } from './types';
|
|
3
|
+
export { useColumnBoolean } from './useColumnBoolean';
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { B as BooleanFormatter } from "../../../formatters/BooleanFormatter/BooleanFormatter.js";
|
|
5
|
-
function ColumnBooleanFormatter(props) {
|
|
6
|
-
const { fieldValue, presentationType, Component = React.Fragment } = props;
|
|
7
|
-
return (obProps) => {
|
|
8
|
-
const valueMaybeString = getPropertyByString(obProps, fieldValue);
|
|
9
|
-
let fixedValue;
|
|
10
|
-
if (typeof valueMaybeString === "boolean") {
|
|
11
|
-
fixedValue = valueMaybeString;
|
|
12
|
-
} else {
|
|
13
|
-
fixedValue = void 0;
|
|
14
|
-
}
|
|
15
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
-
BooleanFormatter,
|
|
17
|
-
{
|
|
18
|
-
presentationType,
|
|
19
|
-
value: fixedValue,
|
|
20
|
-
Component
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
ColumnBooleanFormatter as C
|
|
27
|
-
};
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getFormatBoolean } from "../../../formatters/BooleanFormatter/BooleanFormatter.js";
|
|
2
|
-
import { C as ColumnBooleanFormatter } from "./
|
|
2
|
+
import { C as ColumnBooleanFormatter } from "./formatter.js";
|
|
3
3
|
import { useModuleDictionary, getPropertyByString } from "@m4l/core";
|
|
4
4
|
import { useState, useRef, useEffect, useMemo } from "react";
|
|
5
5
|
import { deepEqual } from "fast-equals";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ColumnConcatenatedValuesFormatterProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Función especial para el DataGrid que concatena un array de strings
|
|
4
|
+
* @param props
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare function ColumnConcatenatedValueFormatter(props: ColumnConcatenatedValuesFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getPropertyByString } from "@m4l/core";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { C as ConcatenatedFormatter } from "../../../formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
|
|
5
|
+
function ColumnConcatenatedValueFormatter(props) {
|
|
6
|
+
const { fieldValue, fieldSeparator, Component = React.Fragment } = props;
|
|
7
|
+
return (obProps) => {
|
|
8
|
+
const values = fieldValue.map((element) => {
|
|
9
|
+
const valueMaybeString = getPropertyByString(obProps, element);
|
|
10
|
+
let fixedValue;
|
|
11
|
+
if (typeof valueMaybeString === "string" || typeof valueMaybeString === "number") {
|
|
12
|
+
fixedValue = valueMaybeString.toString();
|
|
13
|
+
} else {
|
|
14
|
+
fixedValue = "";
|
|
15
|
+
}
|
|
16
|
+
return fixedValue;
|
|
17
|
+
});
|
|
18
|
+
return /* @__PURE__ */ jsx(ConcatenatedFormatter, { values, separator: fieldSeparator, Component });
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
ColumnConcatenatedValueFormatter as C
|
|
23
|
+
};
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @param props
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare function ColumnConcatenatedValueFormatter(props: ColumnConcatenatedValuesFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { ColumnConcatenatedValueFormatter } from './formatter';
|
|
2
|
+
export type { ColumnConcatenatedValuesFormatterProps as ColumnConcatenatedValueFormatterProps } from './types';
|
|
3
|
+
export { useColumnConcatenatedValue } from './useColumnConcatenatedValue';
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { C as ConcatenatedFormatter } from "../../../formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
|
|
5
|
-
function ColumnConcatenatedValueFormatter(props) {
|
|
6
|
-
const { fieldValue, fieldSeparator, Component = React.Fragment } = props;
|
|
7
|
-
return (obProps) => {
|
|
8
|
-
const values = fieldValue.map((element) => {
|
|
9
|
-
const valueMaybeString = getPropertyByString(obProps, element);
|
|
10
|
-
let fixedValue;
|
|
11
|
-
if (typeof valueMaybeString === "string" || typeof valueMaybeString === "number") {
|
|
12
|
-
fixedValue = valueMaybeString.toString();
|
|
13
|
-
} else {
|
|
14
|
-
fixedValue = "";
|
|
15
|
-
}
|
|
16
|
-
return fixedValue;
|
|
17
|
-
});
|
|
18
|
-
return /* @__PURE__ */ jsx(ConcatenatedFormatter, { values, separator: fieldSeparator, Component });
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
ColumnConcatenatedValueFormatter as C
|
|
23
|
-
};
|
|
1
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getPropertyByString } from "@m4l/core";
|
|
2
2
|
import { deepEqual } from "fast-equals";
|
|
3
|
-
import { C as ColumnConcatenatedValueFormatter } from "./index.js";
|
|
4
3
|
import { g as getColumnKey } from "../../helpers/getColumnKey.js";
|
|
5
4
|
import { g as getFormatConcatenated } from "../../../formatters/ConcatenatedFormatter/ConcatenatedFormatter.js";
|
|
6
5
|
import { useState, useRef, useEffect, useMemo } from "react";
|
|
6
|
+
import { C as ColumnConcatenatedValueFormatter } from "./formatter.js";
|
|
7
7
|
const getArrayValuesWithFieldValue = (row, fieldValue) => {
|
|
8
8
|
const values = fieldValue.map((element) => {
|
|
9
9
|
const keyWiouthRow = getColumnKey(element);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } 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 ColumnDateFormatter(props) {
|
|
6
|
+
const { fieldValue, presentationType, Component = React.Fragment } = props;
|
|
7
|
+
return (obProps) => {
|
|
8
|
+
const valueMaybeDateStringNumber = getPropertyByString(obProps, fieldValue);
|
|
9
|
+
let fixedValue;
|
|
10
|
+
if (typeof valueMaybeDateStringNumber === "string" || typeof valueMaybeDateStringNumber === "number" || valueMaybeDateStringNumber instanceof Date) {
|
|
11
|
+
fixedValue = valueMaybeDateStringNumber;
|
|
12
|
+
} else {
|
|
13
|
+
fixedValue = "";
|
|
14
|
+
}
|
|
15
|
+
return /* @__PURE__ */ jsx(DateFormatter, { presentationType, value: fixedValue, Component });
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
ColumnDateFormatter as C
|
|
20
|
+
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export declare function ColumnDateFormatter(props: ColumnDateFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { ColumnDateFormatter } from './formatter';
|
|
2
|
+
export type { ColumnDateFormatterProps } from './types';
|
|
3
|
+
export { useColumnDate } from './useColumnDate';
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { D as DateFormatter } from "../../../formatters/DateFormatter/DateFormatter.js";
|
|
5
|
-
function ColumnDateFormatter(props) {
|
|
6
|
-
const { fieldValue, presentationType, Component = React.Fragment } = props;
|
|
7
|
-
return (obProps) => {
|
|
8
|
-
const valueMaybeDateStringNumber = getPropertyByString(obProps, fieldValue);
|
|
9
|
-
let fixedValue;
|
|
10
|
-
if (typeof valueMaybeDateStringNumber === "string" || typeof valueMaybeDateStringNumber === "number" || valueMaybeDateStringNumber instanceof Date) {
|
|
11
|
-
fixedValue = valueMaybeDateStringNumber;
|
|
12
|
-
} else {
|
|
13
|
-
fixedValue = "";
|
|
14
|
-
}
|
|
15
|
-
return /* @__PURE__ */ jsx(DateFormatter, { presentationType, value: fixedValue, Component });
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
ColumnDateFormatter as C
|
|
20
|
-
};
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getPropertyByString } from "@m4l/core";
|
|
2
2
|
import { g as getFormatDate } from "../../../formatters/DateFormatter/DateFormatter.js";
|
|
3
|
-
import { C as ColumnDateFormatter } from "./
|
|
3
|
+
import { C as ColumnDateFormatter } from "./formatter.js";
|
|
4
4
|
import { g as getColumnKey } from "../../helpers/getColumnKey.js";
|
|
5
5
|
import { useFormatter } from "@m4l/graphics";
|
|
6
6
|
import { g as getValidDate } from "../../../../utils/getValidDate.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
3
|
+
function ColumnIconFormatter(props) {
|
|
4
|
+
const { getIconUrl } = props;
|
|
5
|
+
return (obProps) => {
|
|
6
|
+
const { iconUrl } = getIconUrl(obProps);
|
|
7
|
+
return /* @__PURE__ */ jsx(Icon, { src: iconUrl });
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
ColumnIconFormatter as C
|
|
12
|
+
};
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Función para formatear un icono en una columna de un DataGrid
|
|
4
|
-
*/
|
|
5
|
-
export declare function ColumnIconFormatter(props: ColumnIconFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { ColumnIconFormatter } from './formatter';
|
|
2
|
+
export type { ColumnIconFormatterProps } from './types';
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { I as Icon } from "../../../Icon/Icon.js";
|
|
3
|
-
function ColumnIconFormatter(props) {
|
|
4
|
-
const { getIconUrl } = props;
|
|
5
|
-
return (obProps) => {
|
|
6
|
-
const { iconUrl } = getIconUrl(obProps);
|
|
7
|
-
return /* @__PURE__ */ jsx(Icon, { src: iconUrl });
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
ColumnIconFormatter as C
|
|
12
|
-
};
|
|
1
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ColumnInteractiveCheckFormatterProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* ColumnInteractiveCheckFormatter: Es un formateador de columna booleano que permite la interacción directa
|
|
4
|
+
* (camnbiar el checked) sin la necesidad de entrar en edición como lo hace un editor
|
|
5
|
+
*/
|
|
6
|
+
export declare function ColumnInteractiveCheckFormatter<Row>(props: ColumnInteractiveCheckFormatterProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Checkbox } from "@mui/material";
|
|
3
|
+
function ColumnInteractiveCheckFormatter(props) {
|
|
4
|
+
const { row, onRowChange, column } = props;
|
|
5
|
+
const handleChange = () => {
|
|
6
|
+
const newRow = { ...row };
|
|
7
|
+
newRow[column.key] = !row[column.key];
|
|
8
|
+
onRowChange(newRow);
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
Checkbox,
|
|
12
|
+
{
|
|
13
|
+
size: "small",
|
|
14
|
+
checked: row[column.key] || false,
|
|
15
|
+
onChange: handleChange
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
ColumnInteractiveCheckFormatter as C
|
|
21
|
+
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* (camnbiar el checked) sin la necesidad de entrar en edición como lo hace un editor
|
|
5
|
-
*/
|
|
6
|
-
export declare function ColumnInteractiveCheckFormatter<Row>(props: ColumnInteractiveCheckFormatterProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { ColumnInteractiveCheckFormatter } from './formatter';
|
|
2
|
+
export type { ColumnInteractiveCheckFormatterProps } from './types';
|
|
3
|
+
export { useColumnInteractiveCheck } from './useColumnInteractiveCheck';
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Checkbox } from "@mui/material";
|
|
3
|
-
function ColumnInteractiveCheckFormatter(props) {
|
|
4
|
-
const { row, onRowChange, column } = props;
|
|
5
|
-
const handleChange = () => {
|
|
6
|
-
const newRow = { ...row };
|
|
7
|
-
newRow[column.key] = !row[column.key];
|
|
8
|
-
onRowChange(newRow);
|
|
9
|
-
};
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
-
Checkbox,
|
|
12
|
-
{
|
|
13
|
-
size: "small",
|
|
14
|
-
checked: row[column.key] || false,
|
|
15
|
-
onChange: handleChange
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
ColumnInteractiveCheckFormatter as C
|
|
21
|
-
};
|
|
1
|
+
|
package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/useColumnInteractiveCheck.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useMemo } from "react";
|
|
2
2
|
import { deepEqual } from "fast-equals";
|
|
3
|
-
import { C as ColumnInteractiveCheckFormatter } from "./
|
|
3
|
+
import { C as ColumnInteractiveCheckFormatter } from "./formatter.js";
|
|
4
4
|
const getCustomInteractiveCheckFilter = (props) => {
|
|
5
5
|
return (row, value) => {
|
|
6
6
|
return row[props.column.key] === value;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getPropertyByString } from "@m4l/core";
|
|
3
|
+
import React from "react";
|
|
4
|
+
function ColumnNestedValueFormatter(props) {
|
|
5
|
+
const { fieldValue, Component = React.Fragment } = props;
|
|
6
|
+
return (obProps) => {
|
|
7
|
+
const property = getPropertyByString(obProps, fieldValue);
|
|
8
|
+
const value = typeof property === "object" ? JSON.stringify(property) : property;
|
|
9
|
+
return /* @__PURE__ */ jsx(Component, { children: value });
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
ColumnNestedValueFormatter as C
|
|
14
|
+
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export declare function ColumnNestedValueFormatter(props: ColumnNestedValueFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { ColumnNestedValueFormatter } from './formatter';
|
|
2
|
+
export type { ColumnNestedValueFormatterProps } from './types';
|
|
3
|
+
export { useColumnNestedValue } from './useColumnNestedValue';
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { getPropertyByString } from "@m4l/core";
|
|
3
|
-
import { W as WrapperComponent } from "../../../WrapperComponent/index.js";
|
|
4
|
-
function ColumnNestedValueFormatter(props) {
|
|
5
|
-
const { fieldValue, Component = WrapperComponent } = props;
|
|
6
|
-
return (obProps) => {
|
|
7
|
-
const property = getPropertyByString(obProps, fieldValue);
|
|
8
|
-
const value = typeof property === "object" ? JSON.stringify(property) : property;
|
|
9
|
-
return /* @__PURE__ */ jsx(Component, { children: value });
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
ColumnNestedValueFormatter as C
|
|
14
|
-
};
|
|
1
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPropertyByString } from "@m4l/core";
|
|
2
|
-
import { C as ColumnNestedValueFormatter } from "./index.js";
|
|
3
2
|
import { useState, useRef, useEffect, useMemo } from "react";
|
|
4
3
|
import { deepEqual } from "fast-equals";
|
|
4
|
+
import { C as ColumnNestedValueFormatter } from "./formatter.js";
|
|
5
5
|
const getCustomNestedValueFilter = (props) => {
|
|
6
6
|
return (row, value) => {
|
|
7
7
|
const property = getPropertyByString(row, props.fieldValue) ?? "";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { P as PointsFormatter } from "../../../formatters/PointsFormatter/PointsFormatter.js";
|
|
4
|
+
function ColumnPointsFormatter(props) {
|
|
5
|
+
const { Component = React.Fragment } = props;
|
|
6
|
+
return (obProps) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(PointsFormatter, { obProps, ...props, Component });
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
ColumnPointsFormatter as C
|
|
12
|
+
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export declare function ColumnPointsFormatter(props: ColumnPointsFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { ColumnPointsFormatter } from './formatter';
|
|
2
|
+
export type { ColumnPointsFormatterProps } from './types';
|
|
3
|
+
export { useColumnPoints } from './useColumnPoints';
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { P as PointsFormatter } from "../../../formatters/PointsFormatter/PointsFormatter.js";
|
|
4
|
-
function ColumnPointsFormatter(props) {
|
|
5
|
-
const { Component = React.Fragment } = props;
|
|
6
|
-
return (obProps) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(PointsFormatter, { obProps, ...props, Component });
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
ColumnPointsFormatter as C
|
|
12
|
-
};
|
|
1
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useMemo } from "react";
|
|
2
2
|
import { deepEqual } from "fast-equals";
|
|
3
|
-
import { C as ColumnPointsFormatter } from "./
|
|
3
|
+
import { C as ColumnPointsFormatter } from "./formatter.js";
|
|
4
4
|
import { g as getColumnKey } from "../../helpers/getColumnKey.js";
|
|
5
5
|
import { g as getFormatPoints } from "../../../formatters/PointsFormatter/PointsFormatter.js";
|
|
6
6
|
const getCustomPointsFilter = (props) => {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { P as PriceFormatter } from "../../../formatters/PriceFormatter/PriceFormatter.js";
|
|
4
|
+
function ColumnPriceFormatter(props) {
|
|
5
|
+
const { Component = React.Fragment } = props;
|
|
6
|
+
return (obProps) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(PriceFormatter, { obProps, ...props, Component });
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
ColumnPriceFormatter as C
|
|
12
|
+
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export declare function ColumnPriceFormatter(props: ColumnPriceFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { ColumnPriceFormatter } from './formatter';
|
|
2
|
+
export type { ColumnPriceFormatterProps } from './types';
|
|
3
|
+
export { useColumnPrice } from './useColumnPrice';
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { P as PriceFormatter } from "../../../formatters/PriceFormatter/PriceFormatter.js";
|
|
4
|
-
function ColumnPriceFormatter(props) {
|
|
5
|
-
const { Component = React.Fragment } = props;
|
|
6
|
-
return (obProps) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(PriceFormatter, { obProps, ...props, Component });
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
ColumnPriceFormatter as C
|
|
12
|
-
};
|
|
1
|
+
|
|
@@ -4,7 +4,7 @@ import { getPropertyByString } from "@m4l/core";
|
|
|
4
4
|
import { deepEqual } from "fast-equals";
|
|
5
5
|
import { g as getFormatPrice } from "../../../formatters/PriceFormatter/PriceFormatter.js";
|
|
6
6
|
import { g as getColumnKey } from "../../helpers/getColumnKey.js";
|
|
7
|
-
import { C as ColumnPriceFormatter } from "./
|
|
7
|
+
import { C as ColumnPriceFormatter } from "./formatter.js";
|
|
8
8
|
const getCustomPriceFilter = (props) => {
|
|
9
9
|
const { currencyFormatter } = useFormatter();
|
|
10
10
|
return (row, value) => {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormatterProps } from 'react-data-grid';
|
|
2
|
+
import { ColumnSetCheckFormatterProps } from './types';
|
|
3
|
+
import { RowKey } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* ColumnSetCheckFormatter: Es un formateador de columna booleano que permite la interacción directa
|
|
6
|
+
* acualizando un Set/Setter por medio de un hook generico el cual es invocado con el argumento field para ,
|
|
7
|
+
* sin la necesidad de entrar en edición como lo hace un editor
|
|
8
|
+
*/
|
|
9
|
+
export declare function ColumnSetCheckFormatter<Row, TKey extends RowKey = RowKey>(parameters: ColumnSetCheckFormatterProps<Row, TKey>): (props: FormatterProps<Row>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SelectCellFormatter } from "react-data-grid";
|
|
3
|
+
function ColumnSetCheckFormatter(parameters) {
|
|
4
|
+
const { field, disabledGetter, rowKeyGetter, useHook } = parameters;
|
|
5
|
+
const formatter = (props) => {
|
|
6
|
+
const { row } = props;
|
|
7
|
+
const [checkedRows, setCheckedRows] = useHook(field);
|
|
8
|
+
const onChange = (checked, _isShiftClick) => {
|
|
9
|
+
const newCheckedRows = new Set(checkedRows);
|
|
10
|
+
if (checked) {
|
|
11
|
+
newCheckedRows.add(rowKeyGetter(props.row));
|
|
12
|
+
} else {
|
|
13
|
+
newCheckedRows.delete(rowKeyGetter(props.row));
|
|
14
|
+
}
|
|
15
|
+
setCheckedRows(newCheckedRows);
|
|
16
|
+
};
|
|
17
|
+
let disabled = false;
|
|
18
|
+
if (disabledGetter) {
|
|
19
|
+
disabled = disabledGetter(row);
|
|
20
|
+
}
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
SelectCellFormatter,
|
|
23
|
+
{
|
|
24
|
+
value: checkedRows.has(rowKeyGetter(row)) || false,
|
|
25
|
+
disabled,
|
|
26
|
+
isCellSelected: props.isCellSelected,
|
|
27
|
+
onChange,
|
|
28
|
+
"aria-label": "Select"
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
return formatter;
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
ColumnSetCheckFormatter as C
|
|
36
|
+
};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* ColumnSetCheckFormatter: Es un formateador de columna booleano que permite la interacción directa
|
|
6
|
-
* acualizando un Set/Setter por medio de un hook generico el cual es invocado con el argumento field para ,
|
|
7
|
-
* sin la necesidad de entrar en edición como lo hace un editor
|
|
8
|
-
*/
|
|
9
|
-
export declare function ColumnSetCheckFormatter<Row, TKey extends RowKey = RowKey>(parameters: ColumnSetCheckFormatterProps<Row, TKey>): (props: FormatterProps<Row>) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { ColumnSetCheckFormatter } from './formatter';
|
|
2
|
+
export type { ColumnSetCheckFormatterProps } from './types';
|
|
3
|
+
export { useColumnSetCheck } from './useColumnSetCheck';
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { SelectCellFormatter } from "react-data-grid";
|
|
3
|
-
function ColumnSetCheckFormatter(parameters) {
|
|
4
|
-
const { field, disabledGetter, rowKeyGetter, useHook } = parameters;
|
|
5
|
-
const formatter = (props) => {
|
|
6
|
-
const { row } = props;
|
|
7
|
-
const [checkedRows, setCheckedRows] = useHook(field);
|
|
8
|
-
const onChange = (checked, _isShiftClick) => {
|
|
9
|
-
const newCheckedRows = new Set(checkedRows);
|
|
10
|
-
if (checked) {
|
|
11
|
-
newCheckedRows.add(rowKeyGetter(props.row));
|
|
12
|
-
} else {
|
|
13
|
-
newCheckedRows.delete(rowKeyGetter(props.row));
|
|
14
|
-
}
|
|
15
|
-
setCheckedRows(newCheckedRows);
|
|
16
|
-
};
|
|
17
|
-
let disabled = false;
|
|
18
|
-
if (disabledGetter) {
|
|
19
|
-
disabled = disabledGetter(row);
|
|
20
|
-
}
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
-
SelectCellFormatter,
|
|
23
|
-
{
|
|
24
|
-
value: checkedRows.has(rowKeyGetter(row)) || false,
|
|
25
|
-
disabled,
|
|
26
|
-
isCellSelected: props.isCellSelected,
|
|
27
|
-
onChange,
|
|
28
|
-
"aria-label": "Select"
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
return formatter;
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
ColumnSetCheckFormatter as C
|
|
36
|
-
};
|
|
1
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState, useRef, useEffect, useMemo } from "react";
|
|
2
2
|
import { getPropertyByString } from "@m4l/core";
|
|
3
3
|
import { deepEqual } from "fast-equals";
|
|
4
|
-
import { C as ColumnSetCheckFormatter } from "./
|
|
4
|
+
import { C as ColumnSetCheckFormatter } from "./formatter.js";
|
|
5
5
|
const getCustomFilter = (props) => {
|
|
6
6
|
return (row, value) => {
|
|
7
7
|
const valueCheck = getPropertyByString(row, props.field);
|