@m4l/components 9.2.61 → 9.2.62
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 +8 -0
- package/components/Chip/Chip.js +9 -10
- package/components/Chip/ChipStyles.js +13 -2
- package/components/Chip/constants.d.ts +9 -0
- package/components/Chip/constants.js +6 -2
- package/components/Chip/slots/ChipEnum.d.ts +3 -0
- package/components/Chip/slots/ChipEnum.js +6 -1
- package/components/Chip/slots/ChipSlots.js +1 -1
- package/components/DataGrid/Datagrid.styles.js +8 -13
- package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +2 -0
- package/components/DynamicFilter/DynamicFilter.styles.js +99 -90
- package/components/DynamicFilter/slots/SlotsEnum.d.ts +0 -3
- package/components/DynamicFilter/slots/SlotsEnum.js +0 -3
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +0 -9
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +3 -19
- package/components/DynamicFilter/store/DynamicFilterContext.js +6 -7
- package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/index.js +2 -2
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -1
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.js +2 -0
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +24 -18
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +4 -1
- package/components/DynamicSort/DynamicSort.styles.js +92 -90
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +0 -9
- package/components/DynamicSort/slots/DynamicSortSlots.js +7 -23
- package/components/DynamicSort/slots/SlotsEnum.d.ts +1 -4
- package/components/DynamicSort/slots/SlotsEnum.js +1 -4
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.js +2 -2
- package/components/DynamicSort/subcomponents/InputSort/InputSort.js +2 -0
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +22 -17
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +2 -2
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.d.ts +2 -0
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +2 -1
- package/components/LanguagePopover/LanguagePopover.js +7 -5
- package/components/LanguagePopover/LanguagePopover.styles.js +32 -4
- package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +9 -3
- package/components/LanguagePopover/slots/LanguagePopoverSlots.js +1 -3
- package/components/LanguagePopover/types.d.ts +6 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- package/components/PaperForm/styles.js +2 -1
- package/components/PropertyValue/PropertyValue.js +2 -1
- package/components/PropertyValue/PropertyValue.styles.js +7 -4
- package/components/PropertyValue/types.d.ts +4 -0
- package/components/SideBar/SideBar.js +4 -2
- package/components/SideBar/constants.d.ts +26 -2
- package/components/SideBar/constants.js +19 -7
- package/components/SideBar/context/sideBarContext/index.js +19 -5
- package/components/SideBar/context/sideBarContext/types.d.ts +22 -1
- package/components/SideBar/helpers/getMenuDataWithState/index.js +25 -8
- package/components/SideBar/hooks/useCollapse/index.d.ts +1 -0
- package/components/SideBar/hooks/useCollapse/index.js +1 -0
- package/components/SideBar/hooks/useCollapse/useCollapse.d.ts +11 -0
- package/components/SideBar/hooks/useCollapse/useCollapse.js +23 -0
- package/components/SideBar/slots/SideBarEnum.d.ts +5 -5
- package/components/SideBar/slots/SideBarEnum.js +9 -11
- package/components/SideBar/slots/SideBarSlots.d.ts +9 -3
- package/components/SideBar/slots/SideBarSlots.js +36 -28
- package/components/SideBar/styles.js +2 -4
- package/components/SideBar/subcomponents/ContentComponent/index.js +39 -19
- package/components/SideBar/subcomponents/ContentComponent/style.js +171 -22
- package/components/SideBar/subcomponents/{FooterSidebar → Promotion}/index.d.ts +2 -2
- package/components/SideBar/subcomponents/{FooterSidebar → Promotion}/index.js +8 -15
- package/components/SideBar/subcomponents/{FooterSidebar → Promotion}/styles.js +2 -2
- package/components/SideBar/subcomponents/Promotion/types.d.ts +5 -0
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +1 -1
- package/components/SideBar/subcomponents/SideBarDesktop/styles.js +10 -14
- package/components/SideBar/subcomponents/SideBarMobile/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/index.d.ts +5 -0
- package/components/SideBar/subcomponents/{ContentGroups → TreeGroupItems}/index.js +16 -18
- package/components/SideBar/subcomponents/{ContentGroups → TreeGroupItems}/styles.js +5 -7
- package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems}/subcomponents/ArrowIcon/index.js +10 -7
- package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems/subcomponents/NodeMenuItem}/index.d.ts +3 -3
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +69 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/types.d.ts +9 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.d.ts +5 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +56 -0
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/index.d.ts +1 -0
- package/components/SideBar/subcomponents/TreeGroupItems/types.d.ts +4 -0
- package/components/SideBar/types.d.ts +7 -3
- package/components/WindowBase/WindowBase.js +7 -1
- package/components/WindowBase/WindowBase.styles.js +50 -15
- package/components/WindowBase/constants.d.ts +1 -0
- package/components/WindowBase/constants.js +5 -1
- package/components/WindowBase/slots/WindowBaseEnum.d.ts +2 -1
- package/components/WindowBase/slots/WindowBaseEnum.js +1 -0
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +3 -0
- package/components/WindowBase/slots/WindowBaseSlots.js +6 -1
- package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +11 -5
- package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
- package/components/WindowBase/subcomponents/Header/useButtonActions.js +4 -2
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +1 -1
- package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +5 -0
- package/components/WindowBase/types.d.ts +16 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +13 -0
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +26 -20
- package/components/areas/contexts/AreasContext/store.js +2 -2
- package/components/extended/React-Resizable/helpers.js +1 -1
- package/components/extended/React-resizable-panels/SplitLayout.js +6 -3
- package/components/extended/React-resizable-panels/SplitLayout.styles.js +78 -36
- package/components/extended/React-resizable-panels/constants.d.ts +6 -0
- package/components/extended/React-resizable-panels/constants.js +5 -1
- package/components/extended/React-resizable-panels/slots/SplitLayoutEnum.d.ts +2 -1
- package/components/extended/React-resizable-panels/slots/SplitLayoutEnum.js +1 -0
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +3 -0
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.js +7 -1
- package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +1 -1
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
- package/components/hook-form/RHFTextField/RHFTextField.js +1 -0
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +3 -38
- package/components/mui_extended/Accordion/styles.js +10 -2
- package/components/mui_extended/Button/Button.js +3 -1
- package/components/mui_extended/Button/ButtonStyles.js +6 -1
- package/components/mui_extended/Button/types.d.ts +1 -1
- package/components/mui_extended/Divider/index.d.ts +1 -0
- package/components/mui_extended/Divider/index.js +1 -0
- package/components/mui_extended/NavLink/NavLink.js +3 -1
- package/components/mui_extended/NavLink/NavLink.styles.js +2 -1
- package/components/mui_extended/NavLink/types.d.ts +3 -1
- package/components/mui_extended/Tab/Tab.styles.js +2 -1
- package/components/mui_extended/TabContent/TabContent.styles.js +2 -8
- package/components/mui_extended/TextField/TextField.js +1 -1
- package/components/mui_extended/TextField/TextField.styles.js +20 -18
- package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
- package/components/mui_extended/index.d.ts +1 -0
- package/hooks/useDynamicFilterAndSort/styles.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +16 -13
- package/package.json +4 -3
- package/storybook/components/DynamicFilter/DynamicFilter.stories.d.ts +27 -11
- package/storybook/components/DynamicSort/DynamicSort.stories.d.ts +26 -10
- package/storybook/components/ObjectLogs/ObjectLogs.stories.d.ts +2 -2
- package/storybook/components/SideBar/subcomponents/FooterPromotion/FooterPromotion.d.ts +4 -0
- package/storybook/components/SideBar/subcomponents/FooterPromotion/constants.d.ts +3 -0
- package/storybook/components/SideBar/subcomponents/FooterPromotion/index.d.ts +1 -0
- package/storybook/components/extended/mui/IconButton/IconButton.stories.d.ts +1 -0
- package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +0 -5
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/index.js +0 -63
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +0 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +0 -47
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/types.d.ts +0 -7
- package/components/SideBar/subcomponents/ContentGroups/types.d.ts +0 -4
- package/components/SideBar/subcomponents/FooterSidebar/types.d.ts +0 -5
- package/components/SideBar/subcomponents/HeaderSidebar/index.js +0 -25
- /package/components/SideBar/subcomponents/{FooterSidebar → Promotion}/styles.d.ts +0 -0
- /package/components/SideBar/subcomponents/{ContentGroups → TreeGroupItems}/styles.d.ts +0 -0
- /package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems}/subcomponents/ArrowIcon/index.d.ts +0 -0
- /package/components/SideBar/subcomponents/{ContentGroups/subcomponents/ContainerMenuItemsMain → TreeGroupItems}/subcomponents/ArrowIcon/types.d.ts +0 -0
package/@types/types.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ import { ScrollBarOwnerState, ScrollBarSlotsType } from '../components/ScrollBar
|
|
|
148
148
|
|
|
149
149
|
import { SplitLayoutOwnerState } from '../components/extended/React-resizable-panels/types';
|
|
150
150
|
import { ObjectLogsOwnerState, ObjectLogsSlotsType } from '../components/ObjectLogs/types';
|
|
151
|
+
import { LanguagePopoverOwnerState, LanguagePopoverSlotsType } from '../components/LanguagePopover/types';
|
|
151
152
|
declare module '@mui/material/styles' {
|
|
152
153
|
// Define the slots in the theme
|
|
153
154
|
interface ComponentNameToClassKey {
|
|
@@ -226,6 +227,7 @@ declare module '@mui/material/styles' {
|
|
|
226
227
|
M4LScrollbar: ScrollBarSlotsType;
|
|
227
228
|
M4LSplitLayout: SplitLayoutOwnerState;
|
|
228
229
|
M4LObjectLogs: ObjectLogsSlotsType;
|
|
230
|
+
M4LLanguagePopover: LanguagePopoverSlotsType;
|
|
229
231
|
}
|
|
230
232
|
interface ComponentsPropsList {
|
|
231
233
|
// Extend ComponentsProps or ComponentsOwnerState(this extend ComponentProps)
|
|
@@ -304,6 +306,7 @@ declare module '@mui/material/styles' {
|
|
|
304
306
|
M4LScrollBar: Partial<ScrollBarOwnerState>;
|
|
305
307
|
M4LSplitLayout: Partial<SplitLayoutOwnerState>;
|
|
306
308
|
M4LObjectLogs: Partial<ObjectLogsOwnerState>;
|
|
309
|
+
M4LLanguagePopover: Partial<LanguagePopoverOwnerState>;
|
|
307
310
|
}
|
|
308
311
|
interface Components {
|
|
309
312
|
M4LDynamicFilter?: {
|
|
@@ -691,5 +694,10 @@ declare module '@mui/material/styles' {
|
|
|
691
694
|
styleOverrides?: ComponentsOverrides<Theme>['M4LObjectLogs'];
|
|
692
695
|
variants?: ComponentsVariants['M4LObjectLogs'];
|
|
693
696
|
};
|
|
697
|
+
M4LLanguagePopover?: {
|
|
698
|
+
defaultProps?: ComponentsPropsList['M4LLanguagePopover'];
|
|
699
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LLanguagePopover'];
|
|
700
|
+
variants?: ComponentsVariants['M4LLanguagePopover'];
|
|
701
|
+
};
|
|
694
702
|
}
|
|
695
703
|
}
|
package/components/Chip/Chip.js
CHANGED
|
@@ -28,16 +28,14 @@ const Chip = forwardRef((props, ref) => {
|
|
|
28
28
|
const { currentSize } = useComponentSize(size);
|
|
29
29
|
const isSkeleton = useModuleSkeleton();
|
|
30
30
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
31
|
-
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
32
31
|
const ownerState = useMemo(() => ({
|
|
33
32
|
interactive: !!onClick,
|
|
34
|
-
size:
|
|
35
|
-
chipSize: adjustedSize,
|
|
33
|
+
size: currentSize,
|
|
36
34
|
variant,
|
|
37
35
|
color,
|
|
38
36
|
opacity,
|
|
39
37
|
externalColor
|
|
40
|
-
}), [
|
|
38
|
+
}), [currentSize, variant, color, opacity, externalColor, onClick]);
|
|
41
39
|
const renderIcon = useMemo(() => (icon, instaceDataTestId) => {
|
|
42
40
|
if (!icon) {
|
|
43
41
|
return null;
|
|
@@ -50,12 +48,12 @@ const Chip = forwardRef((props, ref) => {
|
|
|
50
48
|
{
|
|
51
49
|
ownerState: { ...ownerState },
|
|
52
50
|
src: icon,
|
|
53
|
-
size:
|
|
51
|
+
size: currentSize,
|
|
54
52
|
instaceDataTestId
|
|
55
53
|
}
|
|
56
54
|
);
|
|
57
55
|
}
|
|
58
|
-
}, [ownerState,
|
|
56
|
+
}, [ownerState, currentSize]);
|
|
59
57
|
if (isSkeleton) {
|
|
60
58
|
return /* @__PURE__ */ jsx(
|
|
61
59
|
SkeletonChipStyled,
|
|
@@ -75,7 +73,7 @@ const Chip = forwardRef((props, ref) => {
|
|
|
75
73
|
ChipRootStyled,
|
|
76
74
|
{
|
|
77
75
|
role: "button-chip",
|
|
78
|
-
size:
|
|
76
|
+
size: currentSize,
|
|
79
77
|
onClick,
|
|
80
78
|
ownerState: { ...ownerState },
|
|
81
79
|
className: clsx(className, CHIP_CLASSES.root),
|
|
@@ -85,17 +83,18 @@ const Chip = forwardRef((props, ref) => {
|
|
|
85
83
|
...others,
|
|
86
84
|
children: [
|
|
87
85
|
renderIcon(startIcon, "ChipStartIcon"),
|
|
88
|
-
/* @__PURE__ */ jsx(TextChipStyled, { size:
|
|
86
|
+
/* @__PURE__ */ jsx(TextChipStyled, { size: currentSize, ownerState: { ...ownerState }, color, children: label }),
|
|
89
87
|
renderIcon(endIcon, "ChipEndIcon"),
|
|
90
88
|
onDeleted && /* @__PURE__ */ jsx(
|
|
91
89
|
IconButtonStyled,
|
|
92
90
|
{
|
|
93
91
|
...iconButtonProps,
|
|
94
92
|
src: iconClose,
|
|
95
|
-
size:
|
|
93
|
+
size: currentSize,
|
|
96
94
|
ownerState: { ...ownerState },
|
|
97
95
|
onClick: handleDelete,
|
|
98
|
-
disabled: disabledDeleteButton
|
|
96
|
+
disabled: disabledDeleteButton,
|
|
97
|
+
className: CHIP_CLASSES.closeIcon
|
|
99
98
|
}
|
|
100
99
|
)
|
|
101
100
|
]
|
|
@@ -43,8 +43,8 @@ const chipStyles = {
|
|
|
43
43
|
display: "flex",
|
|
44
44
|
alignItems: "center",
|
|
45
45
|
padding: theme.vars.size.baseSpacings.sp1,
|
|
46
|
-
paddingRight: 0,
|
|
47
46
|
borderRadius: theme.vars.size.borderRadius["r0-5"],
|
|
47
|
+
gap: theme.vars.size.baseSpacings["sp0-5"],
|
|
48
48
|
width: "max-content",
|
|
49
49
|
cursor: "pointer",
|
|
50
50
|
color,
|
|
@@ -72,6 +72,17 @@ const chipStyles = {
|
|
|
72
72
|
border: `${theme.vars.size.borderStroke.container}`,
|
|
73
73
|
borderColor: bgColor
|
|
74
74
|
},
|
|
75
|
+
"&&& .M4LChip-closeIcon": {
|
|
76
|
+
...getSizeStyles(
|
|
77
|
+
theme,
|
|
78
|
+
ownerState?.size || "medium",
|
|
79
|
+
"base",
|
|
80
|
+
(size) => ({
|
|
81
|
+
height: size,
|
|
82
|
+
width: size
|
|
83
|
+
})
|
|
84
|
+
)
|
|
85
|
+
},
|
|
75
86
|
variants: []
|
|
76
87
|
};
|
|
77
88
|
},
|
|
@@ -81,7 +92,7 @@ const chipStyles = {
|
|
|
81
92
|
textChip: ({ theme }) => ({
|
|
82
93
|
whiteSpace: "nowrap",
|
|
83
94
|
paddingLeft: theme.vars.size.baseSpacings.sp1,
|
|
84
|
-
paddingRight: theme.vars.size.baseSpacings.
|
|
95
|
+
paddingRight: theme.vars.size.baseSpacings.sp1
|
|
85
96
|
}),
|
|
86
97
|
/**
|
|
87
98
|
* Styles for the chip icon element.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ChipSlots, ChipComplementaryClasses } from './slots/ChipEnum';
|
|
1
2
|
/**
|
|
2
3
|
* Clave de identificación del componente Chip dentro del sistema.
|
|
3
4
|
*
|
|
@@ -6,6 +7,14 @@
|
|
|
6
7
|
* @default 'M4LChip'
|
|
7
8
|
*/
|
|
8
9
|
export declare const CHIP_KEY_COMPONENT = "M4LChip";
|
|
10
|
+
export declare const COMBINED_CHIP_ENUMS: {
|
|
11
|
+
closeIcon: ChipComplementaryClasses.closeIcon;
|
|
12
|
+
root: ChipSlots.root;
|
|
13
|
+
skeletonChip: ChipSlots.skeletonChip;
|
|
14
|
+
chipIcon: ChipSlots.chipIcon;
|
|
15
|
+
textChip: ChipSlots.textChip;
|
|
16
|
+
iconButton: ChipSlots.iconButton;
|
|
17
|
+
};
|
|
9
18
|
/**
|
|
10
19
|
* Inventario de clases CSS para el componente Chip
|
|
11
20
|
*/
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { g as getComponentClasses } from "../../utils/getComponentSlotRoot.js";
|
|
2
|
-
import { C as ChipSlots } from "./slots/ChipEnum.js";
|
|
2
|
+
import { C as ChipComplementaryClasses, a as ChipSlots } from "./slots/ChipEnum.js";
|
|
3
3
|
const CHIP_KEY_COMPONENT = "M4LChip";
|
|
4
|
-
const
|
|
4
|
+
const COMBINED_CHIP_ENUMS = {
|
|
5
|
+
...ChipSlots,
|
|
6
|
+
...ChipComplementaryClasses
|
|
7
|
+
};
|
|
8
|
+
const CHIP_CLASSES = getComponentClasses(CHIP_KEY_COMPONENT, COMBINED_CHIP_ENUMS);
|
|
5
9
|
export {
|
|
6
10
|
CHIP_CLASSES as C,
|
|
7
11
|
CHIP_KEY_COMPONENT as a
|
|
@@ -6,6 +6,11 @@ var ChipSlots = /* @__PURE__ */ ((ChipSlots2) => {
|
|
|
6
6
|
ChipSlots2["iconButton"] = "iconButton";
|
|
7
7
|
return ChipSlots2;
|
|
8
8
|
})(ChipSlots || {});
|
|
9
|
+
var ChipComplementaryClasses = /* @__PURE__ */ ((ChipComplementaryClasses2) => {
|
|
10
|
+
ChipComplementaryClasses2["closeIcon"] = "closeIcon";
|
|
11
|
+
return ChipComplementaryClasses2;
|
|
12
|
+
})(ChipComplementaryClasses || {});
|
|
9
13
|
export {
|
|
10
|
-
|
|
14
|
+
ChipComplementaryClasses as C,
|
|
15
|
+
ChipSlots as a
|
|
11
16
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { c as chipStyles } from "../ChipStyles.js";
|
|
3
3
|
import { a as CHIP_KEY_COMPONENT } from "../constants.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as ChipSlots } from "./ChipEnum.js";
|
|
5
5
|
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
6
6
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
7
7
|
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
@@ -22,7 +22,7 @@ const dataGridStyles = {
|
|
|
22
22
|
height: "100%",
|
|
23
23
|
width: "100%",
|
|
24
24
|
flex: 1,
|
|
25
|
-
overflow: "
|
|
25
|
+
overflow: "hidden",
|
|
26
26
|
"& .rdg .MuiCheckbox-root": {
|
|
27
27
|
"& > svg": {
|
|
28
28
|
color: theme.vars.palette.text.secondary
|
|
@@ -60,23 +60,17 @@ const dataGridStyles = {
|
|
|
60
60
|
/**
|
|
61
61
|
* Estilos del contenedor de las acciones
|
|
62
62
|
*/
|
|
63
|
-
actionsRoot: ({ theme
|
|
63
|
+
actionsRoot: ({ theme }) => ({
|
|
64
64
|
display: "flex",
|
|
65
65
|
alignItems: "center",
|
|
66
66
|
justifyContent: "space-between",
|
|
67
67
|
background: theme.vars.palette.background.default,
|
|
68
68
|
borderRadius: theme.vars.size.borderRadius.r1,
|
|
69
69
|
gap: theme.vars.size.baseSpacings.sp1,
|
|
70
|
-
|
|
71
|
-
...
|
|
72
|
-
theme
|
|
73
|
-
|
|
74
|
-
"container",
|
|
75
|
-
(size) => ({
|
|
76
|
-
minHeight: size,
|
|
77
|
-
height: size
|
|
78
|
-
})
|
|
79
|
-
),
|
|
70
|
+
height: "fit-content",
|
|
71
|
+
...theme.generalSettings.isMobile && {
|
|
72
|
+
minHeight: theme.vars.size.baseSpacings.sp10
|
|
73
|
+
},
|
|
80
74
|
"& .mobile-menu-actions": {
|
|
81
75
|
marginRight: "auto"
|
|
82
76
|
}
|
|
@@ -92,7 +86,8 @@ const dataGridStyles = {
|
|
|
92
86
|
borderRadius: theme.vars.size.borderRadius.r2,
|
|
93
87
|
border: theme.vars.size.borderStroke.container,
|
|
94
88
|
borderColor: theme.vars.palette?.border.disabled,
|
|
95
|
-
padding: theme.vars.size.baseSpacings.sp1
|
|
89
|
+
padding: theme.vars.size.baseSpacings.sp1,
|
|
90
|
+
boxShadow: theme.vars.customShadows?.z1
|
|
96
91
|
}),
|
|
97
92
|
/**
|
|
98
93
|
* Estilos para el contenedor de las acciones derecho
|
|
@@ -17,6 +17,7 @@ function getComparator(columns, sortColumn) {
|
|
|
17
17
|
return column.customSort;
|
|
18
18
|
}
|
|
19
19
|
switch (typeOrder) {
|
|
20
|
+
//Si el tipo de dato de la columna es un numerico, retorna una función de ordenamiento numérica
|
|
20
21
|
case "number":
|
|
21
22
|
return (a, b) => {
|
|
22
23
|
try {
|
|
@@ -25,6 +26,7 @@ function getComparator(columns, sortColumn) {
|
|
|
25
26
|
return -1;
|
|
26
27
|
}
|
|
27
28
|
};
|
|
29
|
+
//Por defecto retorna una función de ordenamiento de string
|
|
28
30
|
default:
|
|
29
31
|
return (a, b) => {
|
|
30
32
|
try {
|
|
@@ -2,50 +2,59 @@ import { g as getTypographyStyles } from "../../utils/getTypographyStyles.js";
|
|
|
2
2
|
import { g as getSizeStyles } from "../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
3
|
const CONTAINER_QUERY_NAME = "dynamic";
|
|
4
4
|
const dynamicFilterStyles = {
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* root: Estilos del contenedor principal del componente.
|
|
7
|
+
*/
|
|
8
|
+
root: ({ theme, ownerState }) => ({
|
|
6
9
|
containerName: CONTAINER_QUERY_NAME,
|
|
7
10
|
containerType: "inline-size",
|
|
8
11
|
width: "100%",
|
|
9
12
|
height: "auto",
|
|
10
|
-
padding: 0
|
|
11
|
-
|
|
13
|
+
padding: 0,
|
|
14
|
+
...getSizeStyles(
|
|
15
|
+
theme,
|
|
16
|
+
ownerState?.size || "medium",
|
|
17
|
+
"container",
|
|
18
|
+
(size) => ({
|
|
19
|
+
height: size,
|
|
20
|
+
maxHeight: size,
|
|
21
|
+
minHeight: size
|
|
22
|
+
})
|
|
23
|
+
)
|
|
24
|
+
}),
|
|
12
25
|
/**
|
|
13
26
|
* innerContainer: Estilos del contenedor interno del componente.
|
|
14
27
|
*/
|
|
15
28
|
innerContainer: ({ theme, ownerState }) => ({
|
|
16
|
-
display: "
|
|
17
|
-
gridTemplateColumns: "auto 1fr auto",
|
|
18
|
-
gridTemplateAreas: '"input-filter applied-filters actions-filter"',
|
|
29
|
+
display: "flex",
|
|
19
30
|
alignItems: "center",
|
|
20
31
|
justifyContent: "flex-start",
|
|
21
32
|
width: "100%",
|
|
22
33
|
height: "fit-content",
|
|
23
|
-
|
|
24
|
-
borderRadius: theme.vars.size.borderRadius.r1,
|
|
25
|
-
borderColor: ownerState?.isValid ? theme.vars.palette.border?.default : theme.vars.palette.error.enabled,
|
|
34
|
+
borderRadius: theme.vars.size.borderRadius.r2,
|
|
26
35
|
background: theme.vars.palette.background.default,
|
|
36
|
+
boxShadow: ownerState?.isValid ? `inset 0px 0px 0px 1px ${theme.vars.palette.border.default}` : `inset 0px 0px 0px 1px ${theme.vars.palette.error.enabled}`,
|
|
37
|
+
overflow: "hidden",
|
|
27
38
|
'&:has([aria-expanded="true"])': {
|
|
28
|
-
|
|
39
|
+
boxShadow: ownerState?.isValid ? `inset 0px 0px 0px 1.3px ${theme.vars.palette.border.main}` : `inset 0px 0px 0px 1px ${theme.vars.palette.error.enabled}`
|
|
29
40
|
}
|
|
30
41
|
}),
|
|
31
42
|
/**
|
|
32
43
|
* inputFilter: Estilos del contenedor del campo de entrada de filtrado.
|
|
33
44
|
*/
|
|
34
45
|
inputFilter: ({ theme, ownerState }) => ({
|
|
35
|
-
gridArea: "input-filter",
|
|
36
46
|
display: "flex",
|
|
37
47
|
flexDirection: "row",
|
|
38
|
-
paddingLeft: theme.vars.size.baseSpacings.
|
|
48
|
+
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
39
49
|
paddingRight: theme.vars.size.baseSpacings.sp1,
|
|
40
50
|
height: "100%",
|
|
41
51
|
overflow: "hidden",
|
|
42
|
-
maxWidth: "
|
|
52
|
+
maxWidth: "120px",
|
|
43
53
|
width: "100%",
|
|
44
54
|
alignItems: "center",
|
|
45
55
|
borderTopLeftRadius: theme.vars.size.borderRadius.r1,
|
|
46
56
|
borderBottomLeftRadius: theme.vars.size.borderRadius.r1,
|
|
47
|
-
|
|
48
|
-
borderColor: theme.vars.palette.border?.default,
|
|
57
|
+
background: "#ffffff00",
|
|
49
58
|
...getSizeStyles(
|
|
50
59
|
theme,
|
|
51
60
|
ownerState?.size || "medium",
|
|
@@ -59,6 +68,8 @@ const dynamicFilterStyles = {
|
|
|
59
68
|
* inputFilterInput: Estilos del campo de entrada de filtrado.
|
|
60
69
|
*/
|
|
61
70
|
inputFilterInput: ({ theme, ownerState }) => ({
|
|
71
|
+
width: "100%",
|
|
72
|
+
background: "#ffffff00",
|
|
62
73
|
...getSizeStyles(
|
|
63
74
|
theme,
|
|
64
75
|
ownerState?.size || "medium",
|
|
@@ -69,12 +80,12 @@ const dynamicFilterStyles = {
|
|
|
69
80
|
maxHeight: size
|
|
70
81
|
})
|
|
71
82
|
),
|
|
83
|
+
fontFamily: "inherit",
|
|
72
84
|
...getTypographyStyles(
|
|
73
85
|
theme.generalSettings.isMobile,
|
|
74
86
|
ownerState?.size || "medium",
|
|
75
87
|
"body"
|
|
76
88
|
),
|
|
77
|
-
background: theme.vars.palette.background.default,
|
|
78
89
|
color: theme.vars.palette.text.secondary,
|
|
79
90
|
border: 0,
|
|
80
91
|
borderColor: "transparent",
|
|
@@ -86,33 +97,40 @@ const dynamicFilterStyles = {
|
|
|
86
97
|
},
|
|
87
98
|
"&:focus-visible": {
|
|
88
99
|
color: theme.vars.palette.text.secondary,
|
|
89
|
-
border:
|
|
100
|
+
border: "unset",
|
|
90
101
|
borderColor: theme.vars.palette.primary.opacity,
|
|
91
|
-
background: theme.vars.palette.primary.opacity,
|
|
92
102
|
BorderRadius: theme.vars.size.borderRadius["r0-5"],
|
|
93
103
|
outline: "none!important"
|
|
94
|
-
},
|
|
95
|
-
"&:hover": {
|
|
96
|
-
borderColor: theme.vars.palette.primary?.toneOpacity,
|
|
97
|
-
background: theme.vars.palette.background?.hover
|
|
98
104
|
}
|
|
99
105
|
}),
|
|
100
106
|
/**
|
|
101
107
|
* appliedFilters: Estilos del contenedor de los filtros aplicados.
|
|
102
108
|
*/
|
|
103
|
-
appliedFilters: ({ theme }) => ({
|
|
104
|
-
gridArea: "applied-filters",
|
|
109
|
+
appliedFilters: ({ theme, ownerState }) => ({
|
|
105
110
|
width: "100%",
|
|
106
111
|
height: "fit-content",
|
|
107
|
-
|
|
112
|
+
display: "flex",
|
|
113
|
+
alignItems: "center",
|
|
108
114
|
borderLeft: "none",
|
|
109
115
|
margin: "0px",
|
|
110
|
-
padding: `0px ${theme.vars.size.baseSpacings.sp1}
|
|
116
|
+
padding: `0px ${theme.vars.size.baseSpacings.sp1}`,
|
|
117
|
+
flex: 1,
|
|
118
|
+
overflow: "hidden",
|
|
119
|
+
...getSizeStyles(
|
|
120
|
+
theme,
|
|
121
|
+
ownerState?.size || "medium",
|
|
122
|
+
"container",
|
|
123
|
+
(size) => ({
|
|
124
|
+
height: size,
|
|
125
|
+
maxHeight: size,
|
|
126
|
+
minHeight: size
|
|
127
|
+
})
|
|
128
|
+
)
|
|
111
129
|
}),
|
|
112
130
|
/**
|
|
113
131
|
* appliedFilterInnerContainer: Estilos del contenedor interno de los filtros aplicados.
|
|
114
132
|
*/
|
|
115
|
-
appliedFilterInnerContainer: ({ theme }) => ({
|
|
133
|
+
appliedFilterInnerContainer: ({ theme, ownerState }) => ({
|
|
116
134
|
padding: theme.vars.size.baseSpacings["sp0-5"],
|
|
117
135
|
gap: theme.vars.size.baseSpacings.sp1,
|
|
118
136
|
height: "fit-content",
|
|
@@ -122,7 +140,24 @@ const dynamicFilterStyles = {
|
|
|
122
140
|
justifyContent: "flex-start",
|
|
123
141
|
alignItems: "center",
|
|
124
142
|
overflow: "auto hidden",
|
|
125
|
-
position: "relative"
|
|
143
|
+
position: "relative",
|
|
144
|
+
"& .M4LChip-root": {
|
|
145
|
+
borderRadius: theme.vars.size.borderRadius.r1,
|
|
146
|
+
...getSizeStyles(
|
|
147
|
+
theme,
|
|
148
|
+
ownerState?.size || "medium",
|
|
149
|
+
"action",
|
|
150
|
+
(size) => ({
|
|
151
|
+
height: size
|
|
152
|
+
})
|
|
153
|
+
),
|
|
154
|
+
"& .M4LIconButton-styledMUIIconButton:hover": {
|
|
155
|
+
backgroundColor: `${theme.vars.palette.chips.error.contained.backgroundHover} !important`,
|
|
156
|
+
"& .M4LIcon-icon": {
|
|
157
|
+
backgroundColor: `${theme.vars.palette.chips.error.contained.backgroundColorTone} !important`
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
126
161
|
}),
|
|
127
162
|
/**
|
|
128
163
|
* actions: Estilos del contenedor de los botones de acción.
|
|
@@ -138,19 +173,32 @@ const dynamicFilterStyles = {
|
|
|
138
173
|
alignItems: "center",
|
|
139
174
|
borderTopRightRadius: theme.vars.size.borderRadius.r1,
|
|
140
175
|
borderBottomRightRadius: theme.vars.size.borderRadius.r1,
|
|
141
|
-
|
|
142
|
-
|
|
176
|
+
boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.border.default}`,
|
|
177
|
+
...!ownerState?.visibleRefresh && !ownerState?.isDirty && {
|
|
178
|
+
display: "none"
|
|
179
|
+
},
|
|
180
|
+
...ownerState?.inEdition && ownerState?.isValid && {
|
|
181
|
+
boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.border.main}`
|
|
182
|
+
},
|
|
183
|
+
...!ownerState?.isValid && {
|
|
184
|
+
boxShadow: `inset 1px 0px 0px 0px ${theme.vars.palette.error.enabled}`
|
|
185
|
+
}
|
|
186
|
+
}),
|
|
187
|
+
/**
|
|
188
|
+
* actionsClearButton: Estilos del botón de acción de limpiar.
|
|
189
|
+
*/
|
|
190
|
+
actionsClearButton: ({ theme }) => ({
|
|
191
|
+
"&:hover": {
|
|
192
|
+
backgroundColor: `${theme.vars.palette.chips.error.contained.backgroundHover} !important`,
|
|
193
|
+
"& .M4LIcon-icon": {
|
|
194
|
+
backgroundColor: `${theme.vars.palette.chips.error.contained.backgroundColorTone} !important`
|
|
195
|
+
}
|
|
196
|
+
}
|
|
143
197
|
}),
|
|
144
|
-
actionsClearButton: {
|
|
145
|
-
visibility: "visible"
|
|
146
|
-
},
|
|
147
198
|
/**
|
|
148
199
|
* actionsSubmitButton: Estilos del botón de acción de filtrado.
|
|
149
200
|
*/
|
|
150
201
|
actionsSubmitButton: ({ theme, ownerState }) => ({
|
|
151
|
-
...ownerState?.isValid === false ? { border: `1px dashed ${theme.vars.palette.error.enabled}` } : {
|
|
152
|
-
visibility: "visible"
|
|
153
|
-
},
|
|
154
202
|
...ownerState?.isDirty ? {
|
|
155
203
|
animation: "changeBgColor 0.9s ease infinite",
|
|
156
204
|
"& .M4LIcon-icon": {
|
|
@@ -202,66 +250,19 @@ const dynamicFilterStyles = {
|
|
|
202
250
|
minWidth: "220px",
|
|
203
251
|
maxWidth: "420px",
|
|
204
252
|
height: "fit-content"
|
|
253
|
+
},
|
|
254
|
+
"& .M4LWindowBase-root": {
|
|
255
|
+
border: "unset!important",
|
|
256
|
+
"& .M4LWindowBase-headerWindowComponent": {
|
|
257
|
+
cursor: "unset"
|
|
258
|
+
}
|
|
205
259
|
}
|
|
206
260
|
}
|
|
207
261
|
}),
|
|
208
|
-
/**
|
|
209
|
-
* popoverFilterHeader: Estilos del encabezado del menú emergente de filtro.
|
|
210
|
-
*/
|
|
211
|
-
popoverFilterHeader: ({ theme, ownerState }) => ({
|
|
212
|
-
display: "flex",
|
|
213
|
-
alignItems: "center",
|
|
214
|
-
gap: theme.vars.size.baseSpacings.sp2,
|
|
215
|
-
padding: theme.vars.size.baseSpacings.sp1,
|
|
216
|
-
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
217
|
-
borderTopLeftRadius: theme.vars.size.borderRadius.r1,
|
|
218
|
-
borderTopRightRadius: theme.vars.size.borderRadius.r1,
|
|
219
|
-
borderBottom: theme.vars.size.borderStroke.container,
|
|
220
|
-
borderColor: theme.vars.palette.border.secondary,
|
|
221
|
-
"& .M4LIcon-icon": {
|
|
222
|
-
backgroundColor: theme.vars.palette.primary.main
|
|
223
|
-
},
|
|
224
|
-
...getSizeStyles(
|
|
225
|
-
theme,
|
|
226
|
-
ownerState?.size || "medium",
|
|
227
|
-
"container",
|
|
228
|
-
(size) => ({
|
|
229
|
-
height: size
|
|
230
|
-
})
|
|
231
|
-
)
|
|
232
|
-
}),
|
|
233
|
-
/**
|
|
234
|
-
* popoverFilterHeaderTitle: Estilos del título del menú emergente de filtro.
|
|
235
|
-
*/
|
|
236
|
-
popoverFilterHeaderTitle: ({ theme }) => ({
|
|
237
|
-
color: `${theme.vars.palette.primary.main} !important`
|
|
238
|
-
}),
|
|
239
|
-
/**
|
|
240
|
-
* popoverFilterContainerFields: Estilos del contenedor de campos del menú emergente de filtro.
|
|
241
|
-
*/
|
|
242
|
-
popoverFilterContainerFields: ({ theme }) => ({
|
|
243
|
-
height: "fit-content",
|
|
244
|
-
"& > div": {
|
|
245
|
-
display: "flex",
|
|
246
|
-
flexDirection: "column",
|
|
247
|
-
gap: theme.vars.size.baseSpacings.sp2
|
|
248
|
-
}
|
|
249
|
-
}),
|
|
250
|
-
/**
|
|
251
|
-
* contentFilter: Estilos del contenedor entre el change filter y actions
|
|
252
|
-
*/
|
|
253
|
-
contentFilter: ({ theme }) => ({
|
|
254
|
-
display: "flex",
|
|
255
|
-
flexDirection: "column",
|
|
256
|
-
padding: theme.vars.size.baseSpacings.sp3,
|
|
257
|
-
gap: theme.vars.size.baseSpacings.sp3
|
|
258
|
-
}),
|
|
259
262
|
/**
|
|
260
263
|
* popoverFilterActions: Estilos del contenedor de acciones del menú emergente de filtro.
|
|
261
264
|
*/
|
|
262
|
-
popoverFilterActions:
|
|
263
|
-
padding: `${theme.vars.size.baseSpacings.sp3} 0px`
|
|
264
|
-
}),
|
|
265
|
+
popoverFilterActions: {},
|
|
265
266
|
/**
|
|
266
267
|
* inputSortInputSkeleton: Estilos del esqueleto del campo de entrada de ordenamiento.
|
|
267
268
|
*/
|
|
@@ -280,6 +281,14 @@ const dynamicFilterStyles = {
|
|
|
280
281
|
maxHeight: size
|
|
281
282
|
})
|
|
282
283
|
)
|
|
284
|
+
}),
|
|
285
|
+
/**
|
|
286
|
+
* popoverFilterContainerFields: Estilos del contenedor de los campos del menú emergente de filtro.
|
|
287
|
+
*/
|
|
288
|
+
popoverFilterContainerFields: ({ theme }) => ({
|
|
289
|
+
display: "flex",
|
|
290
|
+
flexDirection: "column",
|
|
291
|
+
gap: theme.vars.size.baseSpacings.sp4
|
|
283
292
|
})
|
|
284
293
|
};
|
|
285
294
|
export {
|
|
@@ -11,9 +11,6 @@ export declare enum DynamicFilterSlots {
|
|
|
11
11
|
popoverMenu = "popoverMenu",
|
|
12
12
|
popoverFilter = "popoverFilter",
|
|
13
13
|
popoverFilterContainerFields = "popoverFilterContainerFields",
|
|
14
|
-
popoverFilterHeader = "popoverFilterHeader",
|
|
15
|
-
contentFilter = "contentFilter",
|
|
16
|
-
popoverFilterHeaderTitle = "popoverFilterHeaderTitle",
|
|
17
14
|
popoverFilterActions = "popoverFilterActions",
|
|
18
15
|
inputFilterInputSkeleton = "inputFilterInputSkeleton"
|
|
19
16
|
}
|
|
@@ -11,9 +11,6 @@ var DynamicFilterSlots = /* @__PURE__ */ ((DynamicFilterSlots2) => {
|
|
|
11
11
|
DynamicFilterSlots2["popoverMenu"] = "popoverMenu";
|
|
12
12
|
DynamicFilterSlots2["popoverFilter"] = "popoverFilter";
|
|
13
13
|
DynamicFilterSlots2["popoverFilterContainerFields"] = "popoverFilterContainerFields";
|
|
14
|
-
DynamicFilterSlots2["popoverFilterHeader"] = "popoverFilterHeader";
|
|
15
|
-
DynamicFilterSlots2["contentFilter"] = "contentFilter";
|
|
16
|
-
DynamicFilterSlots2["popoverFilterHeaderTitle"] = "popoverFilterHeaderTitle";
|
|
17
14
|
DynamicFilterSlots2["popoverFilterActions"] = "popoverFilterActions";
|
|
18
15
|
DynamicFilterSlots2["inputFilterInputSkeleton"] = "inputFilterInputSkeleton";
|
|
19
16
|
return DynamicFilterSlots2;
|
|
@@ -34,15 +34,6 @@ export declare const PopoverStyled: import('@emotion/styled').StyledComponent<Pi
|
|
|
34
34
|
export declare const PopoverContainerFieldsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
35
35
|
ownerState?: (Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>) | undefined;
|
|
36
36
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
37
|
-
export declare const PopoverHeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
38
|
-
ownerState?: (Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>) | undefined;
|
|
39
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
40
|
-
export declare const ContentFilterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
41
|
-
ownerState?: (Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>) | undefined;
|
|
42
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
43
|
-
export declare const PopoverHeaderTitleStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
44
|
-
ownerState?: (Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>) | undefined;
|
|
45
|
-
}, {}, {}>;
|
|
46
37
|
export declare const PopoverHeaderActionsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/ActionsContainer').ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../CommonActions/components/ActionsContainer').ActionsContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
47
38
|
ownerState?: (Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>) | undefined;
|
|
48
39
|
}, {}, {}>;
|
|
@@ -4,7 +4,6 @@ import { D as DYNAMIC_FILTER_KEY_COMPONENT } from "../constants.js";
|
|
|
4
4
|
import { d as dynamicFilterStyles } from "../DynamicFilter.styles.js";
|
|
5
5
|
import { D as DynamicFilterSlots } from "./SlotsEnum.js";
|
|
6
6
|
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
7
|
-
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
8
7
|
import { A as ActionsContainer } from "../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
9
8
|
import { P as Popover } from "../../mui_extended/Popover/Popover.js";
|
|
10
9
|
const RootStyled = styled("div", {
|
|
@@ -55,18 +54,6 @@ const PopoverContainerFieldsStyled = styled("div", {
|
|
|
55
54
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
56
55
|
slot: DynamicFilterSlots.popoverFilterContainerFields
|
|
57
56
|
})(dynamicFilterStyles?.popoverFilterContainerFields);
|
|
58
|
-
const PopoverHeaderStyled = styled("div", {
|
|
59
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
60
|
-
slot: DynamicFilterSlots.popoverFilterHeader
|
|
61
|
-
})(dynamicFilterStyles?.popoverFilterHeader);
|
|
62
|
-
const ContentFilterStyled = styled("div", {
|
|
63
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
64
|
-
slot: DynamicFilterSlots.contentFilter
|
|
65
|
-
})(dynamicFilterStyles?.contentFilter);
|
|
66
|
-
const PopoverHeaderTitleStyled = styled(Typography, {
|
|
67
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
68
|
-
slot: DynamicFilterSlots.popoverFilterHeaderTitle
|
|
69
|
-
})(dynamicFilterStyles?.popoverFilterHeaderTitle);
|
|
70
57
|
const PopoverHeaderActionsStyled = styled(ActionsContainer, {
|
|
71
58
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
72
59
|
slot: DynamicFilterSlots.popoverFilterActions
|
|
@@ -77,7 +64,6 @@ const InputFilterInputSkeletonStyled = styled(Skeleton, {
|
|
|
77
64
|
})(dynamicFilterStyles?.inputFilterInputSkeleton);
|
|
78
65
|
export {
|
|
79
66
|
AppliedFiltersStyled as A,
|
|
80
|
-
ContentFilterStyled as C,
|
|
81
67
|
InnerContainerStyled as I,
|
|
82
68
|
PopoverStyled as P,
|
|
83
69
|
RootStyled as R,
|
|
@@ -88,9 +74,7 @@ export {
|
|
|
88
74
|
InputFilterStyled as e,
|
|
89
75
|
InputFilterInputSkeletonStyled as f,
|
|
90
76
|
InputFilterInputStyled as g,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
PopoverHeaderActionsStyled as k,
|
|
95
|
-
PopoverMenuStyled as l
|
|
77
|
+
PopoverContainerFieldsStyled as h,
|
|
78
|
+
PopoverHeaderActionsStyled as i,
|
|
79
|
+
PopoverMenuStyled as j
|
|
96
80
|
};
|