@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,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { U as UncertaintyFormatter } from "../../../formatters/UncertaintyFormatter/UncertaintyFormatter.js";
|
|
4
|
+
function ColumnUncertaintyFormatter(props) {
|
|
5
|
+
const { Component = React.Fragment } = props;
|
|
6
|
+
return (obProps) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(UncertaintyFormatter, { obProps, ...props, Component });
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
ColumnUncertaintyFormatter as C
|
|
12
|
+
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export declare function ColumnUncertaintyFormatter(props: ColumnUncertaintyFormatterProps): (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export { ColumnUncertaintyFormatter } from './formatter';
|
|
2
|
+
export type { ColumnUncertaintyFormatterProps } from './types';
|
|
3
|
+
export { useColumnUncertanity } from './useColumnUncertainty';
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { U as UncertaintyFormatter } from "../../../formatters/UncertaintyFormatter/UncertaintyFormatter.js";
|
|
4
|
-
function ColumnUncertaintyFormatter(props) {
|
|
5
|
-
const { Component = React.Fragment } = props;
|
|
6
|
-
return (obProps) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(UncertaintyFormatter, { obProps, ...props, Component });
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
ColumnUncertaintyFormatter as C
|
|
12
|
-
};
|
|
1
|
+
|
|
@@ -4,7 +4,7 @@ import { ColumnUncertaintyFormatterProps } from './types';
|
|
|
4
4
|
* el filtro y el customSort de la columna
|
|
5
5
|
* de incertidumbre.
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const useColumnUncertanity: <TRow>(props: ColumnUncertaintyFormatterProps) => {
|
|
8
8
|
formatter: (obProps: any) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
customFilter: (row: TRow, value: string) => boolean;
|
|
10
10
|
customSort: (a: TRow, b: TRow) => 0 | 1 | -1;
|
|
@@ -2,7 +2,7 @@ import { useState, useRef, useEffect, useMemo } from "react";
|
|
|
2
2
|
import { deepEqual } from "fast-equals";
|
|
3
3
|
import { g as getUncertaintyFormat } from "../../../formatters/UncertaintyFormatter/UncertaintyFormatter.js";
|
|
4
4
|
import { g as getColumnKey } from "../../helpers/getColumnKey.js";
|
|
5
|
-
import { C as ColumnUncertaintyFormatter } from "./
|
|
5
|
+
import { C as ColumnUncertaintyFormatter } from "./formatter.js";
|
|
6
6
|
const getCustomUncertaintyFilter = (props) => {
|
|
7
7
|
return (row, value) => {
|
|
8
8
|
const fieldValue = getColumnKey(props.fieldValue);
|
|
@@ -33,7 +33,7 @@ const getCustomUncertaintySort = (props) => {
|
|
|
33
33
|
return 0;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
const
|
|
36
|
+
const useColumnUncertanity = (props) => {
|
|
37
37
|
const [stateProps, setStateProps] = useState(props);
|
|
38
38
|
const refProps = useRef({ ...props });
|
|
39
39
|
useEffect(() => {
|
|
@@ -49,5 +49,5 @@ const useColumnCertanity = (props) => {
|
|
|
49
49
|
}), [stateProps]);
|
|
50
50
|
};
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
useColumnUncertanity as u
|
|
53
53
|
};
|
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export { useColumnBoolean } from './ColumnBooleanFormatter/useColumnBoolean';
|
|
13
|
-
export { useColumnChipStatus as useColumnChipStatusFormatter } from './ColumnChipStatusFormatter/useColumnChipStatusFormatter';
|
|
14
|
-
export { useColumnConcatenatedValue } from './ColumnConcatenatedValueFormatter/useColumnConcatenatedValue';
|
|
15
|
-
export { useColumnDate } from './ColumnDateFormatter/useColumnDate';
|
|
16
|
-
export { useColumnNestedValue } from './ColumnNestedValueFormatter/useColumnNestedValue';
|
|
17
|
-
export { useColumnPrice } from './ColumnPriceFormatter/useColumnPrice';
|
|
18
|
-
export { useColumnCertanity } from './ColumnUncertaintyFormatter/useColumnUncertainty';
|
|
19
|
-
export { useColumnPoints } from './ColumnPointsFormatter/useColumnPoints';
|
|
20
|
-
export { useColumnInteractiveCheck } from './ColumnInteractiveCheckFormatter/useColumnInteractiveCheck';
|
|
21
|
-
export { useColumnSetCheck } from './ColumnSetCheckFormatter/useColumnSetCheck';
|
|
1
|
+
export * from './ColumnBooleanFormatter';
|
|
2
|
+
export * from './ColumnConcatenatedValueFormatter';
|
|
3
|
+
export * from './ColumnDateFormatter';
|
|
4
|
+
export * from './ColumnIconFormatter';
|
|
5
|
+
export * from './ColumnInteractiveCheckFormatter';
|
|
6
|
+
export * from './ColumnNestedValueFormatter';
|
|
7
|
+
export * from './ColumnPointsFormatter';
|
|
8
|
+
export * from './ColumnPriceFormatter';
|
|
9
|
+
export * from './ColumnSetCheckFormatter';
|
|
10
|
+
export * from './ColumnUncertaintyFormatter';
|
|
11
|
+
export * from './ColumnChipStatusFormatter';
|
|
@@ -5,4 +5,4 @@ export type { RowKey, ChangeUserColumn } from './types';
|
|
|
5
5
|
export { getDataGridComponentsDictionary } from './dictionary';
|
|
6
6
|
export { TextEditor, NumberEditor } from './subcomponents/editors/TextEditor';
|
|
7
7
|
export { getDataGridRowsFromSet } from './utils/getDataGridRowsFromSet';
|
|
8
|
-
export type { IGridConfig } from './contexts/DataGridContext/types';
|
|
8
|
+
export type { IGridConfig, BaseConfigColumn } from './contexts/DataGridContext/types';
|
|
@@ -6,7 +6,7 @@ import { I as IconButton } from "../../../../../../../mui_extended/IconButton/Ic
|
|
|
6
6
|
import { p as pathIcons } from "../../../../../../icons.js";
|
|
7
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
|
-
import { C as ColumnInteractiveCheckFormatter } from "../../../../../../formatters/ColumnInteractiveCheckFormatter/
|
|
9
|
+
import { C as ColumnInteractiveCheckFormatter } from "../../../../../../formatters/ColumnInteractiveCheckFormatter/formatter.js";
|
|
10
10
|
function getRowsFromColumnsConfig(columnsConfig) {
|
|
11
11
|
return columnsConfig.filter((column) => !column.hidden).map(
|
|
12
12
|
(column) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DragResizeWindowPropsRND,
|
|
1
|
+
import { DragResizeWindowPropsRND, DragResizeWindowRNDRefHandler } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Este component es un wrapper o ventana draggable y resizable al children.
|
|
4
4
|
* Características
|
|
@@ -15,5 +15,5 @@ import { DragResizeWindowPropsRND, DragResizeWindowRefHandler } from './types';
|
|
|
15
15
|
* @param props
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
|
-
export declare const DragResizeWindowRND: import('react').ForwardRefExoticComponent<Omit<DragResizeWindowPropsRND, "ref"> & import('react').RefAttributes<
|
|
18
|
+
export declare const DragResizeWindowRND: import('react').ForwardRefExoticComponent<Omit<DragResizeWindowPropsRND, "ref"> & import('react').RefAttributes<DragResizeWindowRNDRefHandler>>;
|
|
19
19
|
export default DragResizeWindowRND;
|
|
@@ -2,7 +2,7 @@ import { styled } from "@mui/material/styles";
|
|
|
2
2
|
import { C as COMPONENT_KEY_COMPONENT } from "../constants.js";
|
|
3
3
|
import { d as dragResizeWindowStyles } from "../DragResizeWindowRND.styles.js";
|
|
4
4
|
import { D as DragResizeWindowRNDSlots } from "./slots.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Rnd } from "react-rnd";
|
|
6
6
|
styled("div", { name: COMPONENT_KEY_COMPONENT, slot: DragResizeWindowRNDSlots.root })(
|
|
7
7
|
dragResizeWindowStyles?.root
|
|
8
8
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BooleanOperator, DateTimeOperator, FilterField, NumberOperator, SelectOperator, StringOperator } from './types';
|
|
2
2
|
export declare const DYNAMIC_FILTER_KEY_COMPONENT = "M4LDynamicFilter";
|
|
3
3
|
export declare const DYNAMIC_FILTER_SOTORE_ID = "M4LDynamicFilterStore";
|
|
4
|
+
export declare const DYNAMIC_FILTER_POPOVER_CONTAINER_ID = "M4LDynamicFilterPopoverContainer";
|
|
4
5
|
export declare const ALL_FIELD: FilterField;
|
|
5
6
|
export declare const STRING_OPERATORS: Array<StringOperator>;
|
|
6
7
|
export declare const NUMBER_OPERATORS: Array<NumberOperator>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const DYNAMIC_FILTER_KEY_COMPONENT = "M4LDynamicFilter";
|
|
2
2
|
const DYNAMIC_FILTER_SOTORE_ID = "M4LDynamicFilterStore";
|
|
3
|
+
const DYNAMIC_FILTER_POPOVER_CONTAINER_ID = "M4LDynamicFilterPopoverContainer";
|
|
3
4
|
const ALL_FIELD = {
|
|
4
5
|
name: "all",
|
|
5
6
|
dictionaryId: "dynamic_filter.all_fields",
|
|
@@ -29,5 +30,6 @@ export {
|
|
|
29
30
|
SELECT_OPERATORS as S,
|
|
30
31
|
DYNAMIC_FILTER_SOTORE_ID as a,
|
|
31
32
|
DATE_TIME_OPERATORS as b,
|
|
32
|
-
STRING_OPERATORS as c
|
|
33
|
+
STRING_OPERATORS as c,
|
|
34
|
+
DYNAMIC_FILTER_POPOVER_CONTAINER_ID as d
|
|
33
35
|
};
|
|
@@ -19,10 +19,10 @@ export declare const AppliedFilterInnerContainerStyled: import('@emotion/styled'
|
|
|
19
19
|
export declare const ActionsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
20
20
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
21
21
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
22
|
-
export declare const ActionsClearButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "
|
|
22
|
+
export declare const ActionsClearButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "componentPaletteColor" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
23
23
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
24
24
|
}, {}, {}>;
|
|
25
|
-
export declare const ActionsSubmitButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "
|
|
25
|
+
export declare const ActionsSubmitButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "componentPaletteColor" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
26
26
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
27
27
|
}, {}, {}>;
|
|
28
28
|
export declare const PopoverMenuStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Popover/types').PopoverProps, keyof import('../../mui_extended/Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
@@ -17,11 +17,11 @@ declare function usePopoverFilter(): {
|
|
|
17
17
|
filterFormValue: FormFilterValue;
|
|
18
18
|
formFilter: FormFilterFieldApplied;
|
|
19
19
|
popupValidationSchema: import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ObjectSchema<{
|
|
20
|
-
[x: string]: import('yup').ObjectSchema
|
|
20
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
21
21
|
}, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<{
|
|
22
|
-
[x: string]: import('yup').ObjectSchema
|
|
22
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
23
23
|
}>, import('yup/lib/object').AssertsShape<{
|
|
24
|
-
[x: string]: import('yup').ObjectSchema
|
|
24
|
+
[x: string]: import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>> | import('yup').BaseSchema<any, import('yup/lib/object').AnyObject, any> | import('yup').ArraySchema<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown> | import('yup/lib/Lazy').default<import('yup').BaseSchema<unknown, import('yup/lib/object').AnyObject, unknown>, import('yup/lib/object').AnyObject>, import('yup/lib/types').AnyObject, unknown[] | undefined, unknown[] | undefined> | import('yup/lib/Lazy').default<import('yup').ObjectSchema<any, import('yup/lib/object').AnyObject, import('yup/lib/object').TypeOfShape<any>, import('yup/lib/object').AssertsShape<any>>, any>;
|
|
25
25
|
}>> | undefined;
|
|
26
26
|
statusLoad: "initial" | "reload_values_provider" | "ready";
|
|
27
27
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { u as usePopoverMenuFields } from "./usePopoverMenuFields.js";
|
|
3
|
+
import { useRef, useEffect } from "react";
|
|
4
|
+
import { d as DYNAMIC_FILTER_POPOVER_CONTAINER_ID } from "../../constants.js";
|
|
3
5
|
import { u as useDynamicFilterBase } from "../DynamicFilterBase/useDynamicFilterBase.js";
|
|
4
6
|
import { M as MenuItem } from "../../../mui_extended/MenuItem/MenuItem.js";
|
|
5
7
|
import { l as PopoverMenuStyled } from "../../slots/dynamicFilterSlots.js";
|
|
@@ -7,6 +9,20 @@ function PopoverMenuFields(props) {
|
|
|
7
9
|
const { fields, selectFieldIndex } = props;
|
|
8
10
|
const { elementRef, handleOpenPopUpClickItem, handleClosePopover, getItemLabel, isOpenPopoverMenuFields } = usePopoverMenuFields();
|
|
9
11
|
const anchorEl = elementRef?.current;
|
|
12
|
+
const popoverContainerRef = useRef(null);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (!popoverContainerRef.current) {
|
|
15
|
+
const container = document.createElement("div");
|
|
16
|
+
container.id = DYNAMIC_FILTER_POPOVER_CONTAINER_ID;
|
|
17
|
+
document.body.appendChild(container);
|
|
18
|
+
popoverContainerRef.current = container;
|
|
19
|
+
}
|
|
20
|
+
return () => {
|
|
21
|
+
if (popoverContainerRef.current) {
|
|
22
|
+
document.body.removeChild(popoverContainerRef.current);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
10
26
|
const { size } = useDynamicFilterBase();
|
|
11
27
|
return /* @__PURE__ */ jsx(
|
|
12
28
|
PopoverMenuStyled,
|
|
@@ -20,6 +36,7 @@ function PopoverMenuFields(props) {
|
|
|
20
36
|
onClose: handleClosePopover,
|
|
21
37
|
anchorEl,
|
|
22
38
|
ownerState: {},
|
|
39
|
+
container: popoverContainerRef.current,
|
|
23
40
|
children: isOpenPopoverMenuFields && fields.map((field, index) => /* @__PURE__ */ jsx(
|
|
24
41
|
MenuItem,
|
|
25
42
|
{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SortOperator } from './types';
|
|
2
2
|
export declare const DYNAMIC_SORT_KEY_COMPONENT = "M4LDynamicSort";
|
|
3
3
|
export declare const DYNAMIC_SORT_STORE_ID = "M4LDynamicSortStore";
|
|
4
|
+
export declare const DYNAMIC_SORT_POPOVER_CONTAINER_ID = "M4LDynamicSortPopoverContainer";
|
|
4
5
|
export declare const ASSETS_URL = "frontend/components/Dynamic_sort/assets/icons";
|
|
5
6
|
export declare const ASSETS: {
|
|
6
7
|
readonly refresh: "restart.svg";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const DYNAMIC_SORT_KEY_COMPONENT = "M4LDynamicSort";
|
|
2
2
|
const DYNAMIC_SORT_STORE_ID = "M4LDynamicSortStore";
|
|
3
|
+
const DYNAMIC_SORT_POPOVER_CONTAINER_ID = "M4LDynamicSortPopoverContainer";
|
|
3
4
|
const ASSETS_URL = "frontend/components/Dynamic_sort/assets/icons";
|
|
4
5
|
const ASSETS = {
|
|
5
6
|
refresh: "restart.svg",
|
|
@@ -13,5 +14,6 @@ export {
|
|
|
13
14
|
DYNAMIC_SORT_KEY_COMPONENT as D,
|
|
14
15
|
OPERATORS as O,
|
|
15
16
|
DYNAMIC_SORT_STORE_ID as a,
|
|
16
|
-
ASSETS as b
|
|
17
|
+
ASSETS as b,
|
|
18
|
+
DYNAMIC_SORT_POPOVER_CONTAINER_ID as c
|
|
17
19
|
};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
1
|
+
export declare const SORT_ICONS: {
|
|
2
|
+
ASCENDING: string;
|
|
3
|
+
DESCENDING: string;
|
|
4
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
1
|
+
const SORT_ICONS = {
|
|
2
|
+
ASCENDING: "frontend/components/Dynamic_sort/assets/icons/ascending.svg",
|
|
3
|
+
DESCENDING: "frontend/components/Dynamic_sort/assets/icons/descending.svg"
|
|
4
|
+
};
|
|
3
5
|
export {
|
|
4
|
-
|
|
5
|
-
descending as d
|
|
6
|
+
SORT_ICONS as S
|
|
6
7
|
};
|
|
@@ -19,10 +19,10 @@ export declare const AppliedSortInnerContainerStyled: import('@emotion/styled').
|
|
|
19
19
|
export declare const ActionsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
20
20
|
ownerState: Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>;
|
|
21
21
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
22
|
-
export declare const ActionsClearButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "
|
|
22
|
+
export declare const ActionsClearButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "componentPaletteColor" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
23
23
|
ownerState: Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>;
|
|
24
24
|
}, {}, {}>;
|
|
25
|
-
export declare const ActionsSubmitButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "
|
|
25
|
+
export declare const ActionsSubmitButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "componentPaletteColor" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
26
26
|
ownerState: Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>;
|
|
27
27
|
}, {}, {}>;
|
|
28
28
|
export declare const PopoverMenuStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Popover/types').PopoverProps, keyof import('../../mui_extended/Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
@@ -2,7 +2,7 @@ import { useMemo } from "react";
|
|
|
2
2
|
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { useFormatter } from "@m4l/graphics";
|
|
4
4
|
import { u as useDynamicSortStore } from "../../store/useDynamicSortStore.js";
|
|
5
|
-
import {
|
|
5
|
+
import { S as SORT_ICONS } from "../../icons.js";
|
|
6
6
|
import { f as fieldFactory } from "../FieldTypes/fieldFactory.js";
|
|
7
7
|
function useAppliedSortChip(sort) {
|
|
8
8
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -11,7 +11,7 @@ function useAppliedSortChip(sort) {
|
|
|
11
11
|
const { hidePopoverSort, removeSort, showPopoverSortForEdit } = useDynamicSortStore(
|
|
12
12
|
(state) => state.actions
|
|
13
13
|
);
|
|
14
|
-
const iconSort = sort.operator === "asc" ? `${host_static_assets}/${environment_assets}/${
|
|
14
|
+
const iconSort = sort.operator === "asc" ? `${host_static_assets}/${environment_assets}/${SORT_ICONS.ASCENDING}` : `${host_static_assets}/${environment_assets}/${SORT_ICONS.DESCENDING}`;
|
|
15
15
|
const labels = useMemo(() => {
|
|
16
16
|
return fieldFactory().getLabels(sort, getLabel, formatters, sort.field);
|
|
17
17
|
}, [sort, getLabel]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
4
|
-
import {
|
|
4
|
+
import { S as SORT_ICONS } from "../../../icons.js";
|
|
5
5
|
import { g as getDynamicSortDictionary, a as DICCTIONARY } from "../../../dictionary.js";
|
|
6
6
|
import { u as useDynamicSortBase } from "../../DynamicSortBase/useDynamicSortBase.js";
|
|
7
7
|
import { R as RHFSelect } from "../../../../hook-form/RHFSelect/RHFSelect.js";
|
|
@@ -15,12 +15,12 @@ function StringSort() {
|
|
|
15
15
|
{
|
|
16
16
|
id: "asc",
|
|
17
17
|
label: getLabel(getDynamicSortDictionary(`label_ascending`)),
|
|
18
|
-
startAdornment: /* @__PURE__ */ jsx(Icon, { src: `${host_static_assets}/${environment_assets}/${
|
|
18
|
+
startAdornment: /* @__PURE__ */ jsx(Icon, { src: `${host_static_assets}/${environment_assets}/${SORT_ICONS.ASCENDING}` })
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
id: "desc",
|
|
22
22
|
label: getLabel(getDynamicSortDictionary(`label_descending`)),
|
|
23
|
-
startAdornment: /* @__PURE__ */ jsx(Icon, { src: `${host_static_assets}/${environment_assets}/${
|
|
23
|
+
startAdornment: /* @__PURE__ */ jsx(Icon, { src: `${host_static_assets}/${environment_assets}/${SORT_ICONS.DESCENDING}` })
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
[getLabel, host_static_assets, environment_assets]
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { u as usePopoverMenuFields } from "./usePopoverMenuFields.js";
|
|
3
3
|
import { u as useDynamicSortBase } from "../DynamicSortBase/useDynamicSortBase.js";
|
|
4
|
+
import { useRef, useEffect } from "react";
|
|
5
|
+
import { c as DYNAMIC_SORT_POPOVER_CONTAINER_ID } from "../../constants.js";
|
|
4
6
|
import { M as MenuItem } from "../../../mui_extended/MenuItem/MenuItem.js";
|
|
5
7
|
import { I as Icon } from "../../../Icon/Icon.js";
|
|
6
8
|
import { P as PopoverMenuStyled } from "../../slots/DynamicSortSlots.js";
|
|
@@ -9,6 +11,20 @@ function PopoverMenuFields(props) {
|
|
|
9
11
|
const { elementRef, handleOpenPopUpClickItem, handleClosePopover, getItemLabel, isOpenPopoverMenuFields } = usePopoverMenuFields();
|
|
10
12
|
const { size } = useDynamicSortBase();
|
|
11
13
|
const anchorEl = elementRef?.current;
|
|
14
|
+
const popoverContainerRef = useRef(null);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
if (!popoverContainerRef.current) {
|
|
17
|
+
const container = document.createElement("div");
|
|
18
|
+
container.id = DYNAMIC_SORT_POPOVER_CONTAINER_ID;
|
|
19
|
+
document.body.appendChild(container);
|
|
20
|
+
popoverContainerRef.current = container;
|
|
21
|
+
}
|
|
22
|
+
return () => {
|
|
23
|
+
if (popoverContainerRef.current) {
|
|
24
|
+
document.body.removeChild(popoverContainerRef.current);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}, []);
|
|
12
28
|
return /* @__PURE__ */ jsx(
|
|
13
29
|
PopoverMenuStyled,
|
|
14
30
|
{
|
|
@@ -21,6 +37,7 @@ function PopoverMenuFields(props) {
|
|
|
21
37
|
onClose: handleClosePopover,
|
|
22
38
|
anchorEl,
|
|
23
39
|
ownerState: {},
|
|
40
|
+
container: popoverContainerRef.current,
|
|
24
41
|
children: isOpenPopoverMenuFields && fields.map((field, index) => /* @__PURE__ */ jsx(
|
|
25
42
|
MenuItem,
|
|
26
43
|
{
|