@m4l/components 9.1.37 → 9.1.39
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 +13 -4
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
- package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +1 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
- package/components/DataGrid/types.d.ts +1 -1
- package/components/{mui_extended/MenuActions → MenuActions}/MenuActions.d.ts +2 -2
- package/components/MenuActions/MenuActions.js +134 -0
- package/components/{mui_extended/MenuActions → MenuActions}/MenuActions.styles.js +1 -13
- package/components/{mui_extended/MenuActions → MenuActions}/slots/MenuActionsEnum.d.ts +1 -4
- package/components/{mui_extended/MenuActions → MenuActions}/slots/MenuActionsEnum.js +0 -3
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +20 -0
- package/components/MenuActions/slots/MenuActionsSlots.js +17 -0
- package/components/{mui_extended/MenuActions → MenuActions}/types.d.ts +26 -6
- package/components/ModalDialog/slots/ModalDialogSlots.d.ts +1 -1
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +1 -1
- package/components/WindowBase/slots/WindowBaseSlots.js +1 -1
- package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
- package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.js +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.js +1 -1
- package/components/areas/types.d.ts +1 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
- package/components/index.d.ts +2 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +1 -1
- package/components/mui_extended/Autocomplete/slots /AutocompleteSlots.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/IconButton/IconButton.js +17 -17
- package/components/mui_extended/IconButton/IconButton.styles.js +2 -30
- package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +0 -2
- package/components/mui_extended/IconButton/slots/IconButtonEnum.js +0 -2
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +1 -7
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -14
- package/components/mui_extended/IconButton/types.d.ts +7 -2
- package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
- package/components/mui_extended/Popover/Popover.d.ts +13 -5
- package/components/mui_extended/Popover/Popover.js +29 -30
- package/components/mui_extended/Popover/Popover.styles.d.ts +2 -0
- package/components/mui_extended/Popover/Popover.styles.js +20 -0
- package/components/mui_extended/Popover/constants.d.ts +7 -0
- package/components/mui_extended/Popover/constants.js +8 -0
- package/components/mui_extended/Popover/slots/PopoverEnum.d.ts +4 -0
- package/components/mui_extended/Popover/slots/PopoverEnum.js +8 -0
- package/components/mui_extended/Popover/slots/PopoverSlots.d.ts +3 -0
- package/components/mui_extended/Popover/slots/PopoverSlots.js +12 -0
- package/components/mui_extended/Popover/slots/index.d.ts +2 -0
- package/components/mui_extended/Popover/slots/index.js +1 -0
- package/components/mui_extended/Popover/types.d.ts +17 -6
- package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
- package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
- package/components/mui_extended/Tooltip/types.d.ts +0 -2
- package/components/mui_extended/index.d.ts +0 -2
- package/index.js +9 -9
- package/package.json +1 -1
- package/components/mui_extended/MenuActions/MenuActions.js +0 -133
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +0 -47
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +0 -35
- package/components/mui_extended/Popover/classes/index.d.ts +0 -11
- package/components/mui_extended/Popover/classes/index.js +0 -51
- package/components/mui_extended/Popover/classes/types.d.ts +0 -17
- package/components/mui_extended/Popover/styles.d.ts +0 -1
- package/components/mui_extended/Popover/styles.js +0 -8
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.d.ts +0 -2
- package/components/mui_extended/Popover/subcomponts/ArrowIcon/index.js +0 -61
- /package/components/{mui_extended/MenuActions → MenuActions}/MenuActions.styles.d.ts +0 -0
- /package/components/{mui_extended/MenuActions → MenuActions}/MenuActions.test.d.ts +0 -0
- /package/components/{mui_extended/MenuActions → MenuActions}/constants.d.ts +0 -0
- /package/components/{mui_extended/MenuActions → MenuActions}/constants.js +0 -0
- /package/components/{mui_extended/MenuActions → MenuActions}/dictionary.d.ts +0 -0
- /package/components/{mui_extended/MenuActions → MenuActions}/dictionary.js +0 -0
- /package/components/{mui_extended/MenuActions → MenuActions}/index.d.ts +0 -0
- /package/components/{mui_extended/MenuActions → MenuActions}/index.js +0 -0
- /package/components/{mui_extended/MenuActions → MenuActions}/slots/index.d.ts +0 -0
- /package/components/{mui_extended/MenuActions → MenuActions}/slots/index.js +0 -0
- /package/components/mui_extended/Popover/{index.test.d.ts → popover.test.d.ts} +0 -0
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import React, { forwardRef, useState, useMemo, createElement } from "react";
|
|
3
|
-
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
4
|
-
import { useTheme } from "@mui/material/styles";
|
|
5
|
-
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
6
|
-
import { I as ICON_PATH, a as ICONS, M as MENU_ACTIONS_, b as MENU_ACTIONS_EMPTY } from "./constants.js";
|
|
7
|
-
import { g as getMenuActionsDictionary, D as DICTIONARY } from "./dictionary.js";
|
|
8
|
-
import { R as RootStyled, I as IconButtonStyled, P as PopoverStyled, M as MenuListStyled, a as MenuItemStyled } from "./slots/MenuActionsSlots.js";
|
|
9
|
-
const MenuActions = forwardRef(
|
|
10
|
-
(props, ref) => {
|
|
11
|
-
const {
|
|
12
|
-
menuActions,
|
|
13
|
-
endListElement,
|
|
14
|
-
menuActionSx,
|
|
15
|
-
iconButtonClassName = "",
|
|
16
|
-
objItem = {},
|
|
17
|
-
urlIcon,
|
|
18
|
-
toolTip = "",
|
|
19
|
-
marginTop,
|
|
20
|
-
marginBottom,
|
|
21
|
-
marginLeft,
|
|
22
|
-
marginRight,
|
|
23
|
-
width = 200,
|
|
24
|
-
badgeContent,
|
|
25
|
-
arrowType = "right-top",
|
|
26
|
-
externalOpen = null,
|
|
27
|
-
externalClose,
|
|
28
|
-
sizes = "medium",
|
|
29
|
-
disabled = false,
|
|
30
|
-
...other
|
|
31
|
-
} = props;
|
|
32
|
-
const { currentSize } = useComponentSize(sizes);
|
|
33
|
-
const OwnerState = {
|
|
34
|
-
iconSize: currentSize
|
|
35
|
-
};
|
|
36
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
37
|
-
const { getLabel } = useModuleDictionary();
|
|
38
|
-
const [anchorEl, setAnchorEl] = useState(null);
|
|
39
|
-
const handleOpenClose = () => {
|
|
40
|
-
setAnchorEl(null);
|
|
41
|
-
};
|
|
42
|
-
const theme = useTheme();
|
|
43
|
-
const urlFinalIcon = useMemo(() => {
|
|
44
|
-
if (urlIcon) {
|
|
45
|
-
return urlIcon;
|
|
46
|
-
}
|
|
47
|
-
return `${host_static_assets}/${environment_assets}/${ICON_PATH}/${ICONS.MENU}`;
|
|
48
|
-
}, [urlIcon, host_static_assets, environment_assets]);
|
|
49
|
-
const handleClick = (e, menuAction) => {
|
|
50
|
-
e.stopPropagation();
|
|
51
|
-
setAnchorEl(null);
|
|
52
|
-
menuAction.onClick && menuAction.onClick(e);
|
|
53
|
-
};
|
|
54
|
-
const handleButtonClick = (e) => {
|
|
55
|
-
e.stopPropagation();
|
|
56
|
-
setAnchorEl(e.currentTarget);
|
|
57
|
-
};
|
|
58
|
-
const finalActions = useMemo(() => {
|
|
59
|
-
let ret;
|
|
60
|
-
if (typeof menuActions !== "function") {
|
|
61
|
-
ret = menuActions;
|
|
62
|
-
} else {
|
|
63
|
-
ret = menuActions(objItem);
|
|
64
|
-
}
|
|
65
|
-
return ret;
|
|
66
|
-
}, [menuActions, objItem]);
|
|
67
|
-
return /* @__PURE__ */ jsxs(RootStyled, { ref, ownerState: { OwnerState }, children: [
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
IconButtonStyled,
|
|
70
|
-
{
|
|
71
|
-
ownerState: { OwnerState },
|
|
72
|
-
size: sizes,
|
|
73
|
-
src: urlFinalIcon,
|
|
74
|
-
onClick: handleButtonClick,
|
|
75
|
-
tooltip: toolTip,
|
|
76
|
-
className: iconButtonClassName,
|
|
77
|
-
selected: Boolean(externalOpen ?? anchorEl),
|
|
78
|
-
disabled
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
/* @__PURE__ */ jsxs(
|
|
82
|
-
PopoverStyled,
|
|
83
|
-
{
|
|
84
|
-
ownerState: { OwnerState },
|
|
85
|
-
id: "Popover",
|
|
86
|
-
open: Boolean(externalOpen ?? anchorEl),
|
|
87
|
-
anchorEl: externalOpen ?? anchorEl,
|
|
88
|
-
onClose: () => handleOpenClose(),
|
|
89
|
-
arrowType,
|
|
90
|
-
sx: {
|
|
91
|
-
marginTop,
|
|
92
|
-
marginBottom,
|
|
93
|
-
marginLeft,
|
|
94
|
-
marginRight,
|
|
95
|
-
width,
|
|
96
|
-
...theme.components?.M4LMenuActions?.styleOverrides || {},
|
|
97
|
-
...menuActionSx
|
|
98
|
-
},
|
|
99
|
-
...other,
|
|
100
|
-
children: [
|
|
101
|
-
finalActions.length > 0 ? /* @__PURE__ */ jsx(MenuListStyled, { ownerState: { OwnerState }, children: finalActions.map((menuAction, index) => /* @__PURE__ */ createElement(
|
|
102
|
-
MenuItemStyled,
|
|
103
|
-
{
|
|
104
|
-
ownerState: { OwnerState },
|
|
105
|
-
size: sizes,
|
|
106
|
-
...menuAction,
|
|
107
|
-
onClick: (e) => {
|
|
108
|
-
handleClick(e, menuAction);
|
|
109
|
-
},
|
|
110
|
-
key: `${MENU_ACTIONS_}${index}`
|
|
111
|
-
}
|
|
112
|
-
)) }) : /* @__PURE__ */ jsx(
|
|
113
|
-
MenuItemStyled,
|
|
114
|
-
{
|
|
115
|
-
ownerState: { OwnerState },
|
|
116
|
-
size: sizes,
|
|
117
|
-
disabled: true,
|
|
118
|
-
label: getLabel(getMenuActionsDictionary(DICTIONARY.no_actions_label))
|
|
119
|
-
},
|
|
120
|
-
MENU_ACTIONS_EMPTY
|
|
121
|
-
),
|
|
122
|
-
endListElement ? endListElement : null
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
)
|
|
126
|
-
] });
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
const MemonizedMenuActions = React.memo(MenuActions);
|
|
130
|
-
export {
|
|
131
|
-
MenuActions as M,
|
|
132
|
-
MemonizedMenuActions as a
|
|
133
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Componente raíz estilizado para `MenuActions`, basado en el componente `Popover`.
|
|
3
|
-
*
|
|
4
|
-
* Utiliza el sistema de estilos de Material-UI para aplicar estilos personalizados al contenedor principal (`Popover`)
|
|
5
|
-
* de `MenuActions`. Si no se proporcionan estilos, se utiliza un objeto vacío como valor predeterminado.
|
|
6
|
-
*/
|
|
7
|
-
export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
8
|
-
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
9
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
|
-
/**
|
|
11
|
-
* Componente estilizado para `MenuActions`, basado en el componente `Popover`.
|
|
12
|
-
*
|
|
13
|
-
* Utiliza el sistema de estilos de Material-UI para aplicar estilos personalizados al contenedor principal (`Popover`)
|
|
14
|
-
* de `MenuActions`. Si no se proporcionan estilos, se utiliza un objeto vacío como valor predeterminado.
|
|
15
|
-
*/
|
|
16
|
-
export declare const PopoverStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Popover/types').PopoverProps, keyof import('../../Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
17
|
-
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
18
|
-
}, {}, {}>;
|
|
19
|
-
/**
|
|
20
|
-
* Componente estilizado para el botón de icono dentro de `MenuActions`, basado en el componente `IconButton`.
|
|
21
|
-
*
|
|
22
|
-
* Utiliza el sistema de estilos de Material-UI para aplicar estilos personalizados al botón de icono.
|
|
23
|
-
* Si no se proporcionan estilos, se utiliza un objeto vacío como valor predeterminado.
|
|
24
|
-
*/
|
|
25
|
-
export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "selected" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "disabled" | "variant" | "className" | "classes" | "onChange" | "sx" | "translate" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "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" | "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" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "placement" | "tooltipContent" | "src" | "rotationAngle" | "instaceDataTestId" | "componentPaletteColor" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
26
|
-
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
27
|
-
}, {}, {}>;
|
|
28
|
-
/**
|
|
29
|
-
* Componente estilizado para el ítem del menú dentro de `MenuList`.
|
|
30
|
-
*
|
|
31
|
-
* Utiliza el sistema de estilos de Material-UI para aplicar estilos personalizados al ítem del menú.
|
|
32
|
-
* Si no se proporcionan estilos, se utiliza un objeto vacío como valor predeterminado.
|
|
33
|
-
*/
|
|
34
|
-
export declare const MenuListStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').MenuListOwnProps & import('@mui/material').ListOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
|
|
35
|
-
ref?: ((instance: HTMLUListElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLUListElement> | null | undefined;
|
|
36
|
-
}, "children" | "dense" | "variant" | keyof import('@mui/material/OverridableComponent').CommonProps | "sx" | "autoFocus" | "autoFocusItem" | "disabledItemsFocusable" | "disableListWrap" | "disablePadding" | "subheader">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "dense" | "variant" | "className" | "classes" | "onChange" | "sx" | "translate" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "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" | "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" | "autoFocusItem" | "disabledItemsFocusable" | "disableListWrap" | "disablePadding" | "subheader"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
37
|
-
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
38
|
-
}, {}, {}>;
|
|
39
|
-
/**
|
|
40
|
-
* Componente estilizado para el ítem del menú dentro de `MenuActions`, basado en el componente `MenuItem`.
|
|
41
|
-
*
|
|
42
|
-
* Utiliza el sistema de estilos de Material-UI para aplicar estilos personalizados al ítem del menú.
|
|
43
|
-
* Si no se proporcionan estilos, se utiliza un objeto vacío como valor predeterminado.
|
|
44
|
-
*/
|
|
45
|
-
export declare const MenuItemStyled: import('@emotion/styled').StyledComponent<Pick<import('../../MenuItem').MenuItemProps, keyof import('../../MenuItem').MenuItemProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
46
|
-
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
47
|
-
}, {}, {}>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { styled } from "@mui/material/styles";
|
|
2
|
-
import { c as MENU_ACTIONS_KEY_COMPONENT } from "../constants.js";
|
|
3
|
-
import { m as menuActionsStyles } from "../MenuActions.styles.js";
|
|
4
|
-
import { M as MenuActionsSlots } from "./MenuActionsEnum.js";
|
|
5
|
-
import { MenuList } from "@mui/material";
|
|
6
|
-
import { P as Popover } from "../../Popover/Popover.js";
|
|
7
|
-
import { I as IconButton } from "../../IconButton/IconButton.js";
|
|
8
|
-
import { M as MenuItem } from "../../MenuItem/MenuItem.js";
|
|
9
|
-
const RootStyled = styled("div", {
|
|
10
|
-
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
11
|
-
slot: MenuActionsSlots.root
|
|
12
|
-
})(menuActionsStyles?.root);
|
|
13
|
-
const PopoverStyled = styled(Popover, {
|
|
14
|
-
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
15
|
-
slot: MenuActionsSlots.popover
|
|
16
|
-
})(menuActionsStyles?.popover);
|
|
17
|
-
const IconButtonStyled = styled(IconButton, {
|
|
18
|
-
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
19
|
-
slot: MenuActionsSlots.iconButton
|
|
20
|
-
})(menuActionsStyles?.iconButton);
|
|
21
|
-
const MenuListStyled = styled(MenuList, {
|
|
22
|
-
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
23
|
-
slot: MenuActionsSlots.menuList
|
|
24
|
-
})(menuActionsStyles?.menuList);
|
|
25
|
-
const MenuItemStyled = styled(MenuItem, {
|
|
26
|
-
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
27
|
-
slot: MenuActionsSlots.menuItem
|
|
28
|
-
})(menuActionsStyles?.menuItem);
|
|
29
|
-
export {
|
|
30
|
-
IconButtonStyled as I,
|
|
31
|
-
MenuListStyled as M,
|
|
32
|
-
PopoverStyled as P,
|
|
33
|
-
RootStyled as R,
|
|
34
|
-
MenuItemStyled as a
|
|
35
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PopoverClassesType } from './types';
|
|
2
|
-
import { OwnerState } from '../types';
|
|
3
|
-
export declare const popoverClasses: PopoverClassesType;
|
|
4
|
-
export declare function getPopoverClassesUtilityClass(slot: string): string;
|
|
5
|
-
/**
|
|
6
|
-
* TODO: Documentar
|
|
7
|
-
*/
|
|
8
|
-
export declare const useUtilityClasses: (ownerState: OwnerState) => {
|
|
9
|
-
root: string;
|
|
10
|
-
arrowStyle: string;
|
|
11
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
-
generateUtilityClasses("M4LPopover", [
|
|
4
|
-
/* elements */
|
|
5
|
-
"root",
|
|
6
|
-
"arrowStyle",
|
|
7
|
-
/* states or variants of elements */
|
|
8
|
-
"noArrow",
|
|
9
|
-
"topLeft",
|
|
10
|
-
"topCenter",
|
|
11
|
-
"topRight",
|
|
12
|
-
"bottomLeft",
|
|
13
|
-
"bottomCenter",
|
|
14
|
-
"bottomRight",
|
|
15
|
-
"leftTop",
|
|
16
|
-
"leftCenter",
|
|
17
|
-
"leftBottom",
|
|
18
|
-
"rightTop",
|
|
19
|
-
"rightCenter",
|
|
20
|
-
"rightBottom"
|
|
21
|
-
]);
|
|
22
|
-
function getPopoverClassesUtilityClass(slot) {
|
|
23
|
-
return generateUtilityClass("M4LPopover", slot);
|
|
24
|
-
}
|
|
25
|
-
const useUtilityClasses = (ownerState) => {
|
|
26
|
-
const slots = {
|
|
27
|
-
root: ["root"],
|
|
28
|
-
arrowStyle: [
|
|
29
|
-
"arrowStyle",
|
|
30
|
-
ownerState.arrowType === "top-left" && "topLeft",
|
|
31
|
-
ownerState.arrowType === "top-center" && "topCenter",
|
|
32
|
-
ownerState.arrowType === "top-right" && "topRight",
|
|
33
|
-
ownerState.arrowType === "bottom-left" && "bottomLeft",
|
|
34
|
-
ownerState.arrowType === "bottom-center" && "bottomCenter",
|
|
35
|
-
ownerState.arrowType === "bottom-right" && "bottomRight",
|
|
36
|
-
ownerState.arrowType === "left-top" && "leftTop",
|
|
37
|
-
ownerState.arrowType === "left-center" && "leftCenter",
|
|
38
|
-
ownerState.arrowType === "left-bottom" && "leftBottom",
|
|
39
|
-
ownerState.arrowType === "right-top" && "rightTop",
|
|
40
|
-
ownerState.arrowType === "right-center" && "rightCenter",
|
|
41
|
-
ownerState.arrowType === "right-bottom" && "rightBottom"
|
|
42
|
-
]
|
|
43
|
-
};
|
|
44
|
-
const composedClasses = unstable_composeClasses(slots, getPopoverClassesUtilityClass, {});
|
|
45
|
-
return {
|
|
46
|
-
...composedClasses
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
useUtilityClasses as u
|
|
51
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface PopoverClassesType {
|
|
2
|
-
root: string;
|
|
3
|
-
arrowStyle: string;
|
|
4
|
-
topLeft: string;
|
|
5
|
-
topCenter: string;
|
|
6
|
-
topRight: string;
|
|
7
|
-
bottomLeft: string;
|
|
8
|
-
bottomCenter: string;
|
|
9
|
-
bottomRight: string;
|
|
10
|
-
leftTop: string;
|
|
11
|
-
leftCenter: string;
|
|
12
|
-
leftBottom: string;
|
|
13
|
-
rightTop: string;
|
|
14
|
-
rightCenter: string;
|
|
15
|
-
rightBottom: string;
|
|
16
|
-
}
|
|
17
|
-
export type PopoverClassesKey = keyof PopoverClassesType;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PopoverRoot: import('@emotion/styled').StyledComponent<import('@mui/material').PopoverProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { ArrowStyleProps } from '../../types';
|
|
2
|
-
export declare const ArrowStyle: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & ArrowStyleProps, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { styled } from "@mui/material/styles";
|
|
2
|
-
const ArrowStyle = styled("span")(({ arrowType, theme }) => {
|
|
3
|
-
const SIZE = 12;
|
|
4
|
-
const POSITION = -(SIZE / 2);
|
|
5
|
-
const borderStyle = `solid 1px ${theme.vars.palette.border.disabled}`;
|
|
6
|
-
const topStyle = {
|
|
7
|
-
borderRadius: "0 0 3px 0",
|
|
8
|
-
top: POSITION,
|
|
9
|
-
borderBottom: borderStyle,
|
|
10
|
-
borderRight: borderStyle
|
|
11
|
-
};
|
|
12
|
-
const bottomStyle = {
|
|
13
|
-
borderRadius: "3px 0 0 0",
|
|
14
|
-
bottom: POSITION,
|
|
15
|
-
borderTop: borderStyle,
|
|
16
|
-
borderLeft: borderStyle
|
|
17
|
-
};
|
|
18
|
-
const leftStyle = {
|
|
19
|
-
borderRadius: "0 3px 0 0",
|
|
20
|
-
left: POSITION,
|
|
21
|
-
borderTop: borderStyle,
|
|
22
|
-
borderRight: borderStyle
|
|
23
|
-
};
|
|
24
|
-
const rightStyle = {
|
|
25
|
-
borderRadius: "0 0 0 3px",
|
|
26
|
-
right: POSITION,
|
|
27
|
-
borderBottom: borderStyle,
|
|
28
|
-
borderLeft: borderStyle
|
|
29
|
-
};
|
|
30
|
-
return {
|
|
31
|
-
display: "none",
|
|
32
|
-
[theme.breakpoints.up("sm")]: {
|
|
33
|
-
width: SIZE,
|
|
34
|
-
height: SIZE,
|
|
35
|
-
content: "''",
|
|
36
|
-
position: "absolute",
|
|
37
|
-
display: "block",
|
|
38
|
-
transform: "rotate(-135deg)",
|
|
39
|
-
background: theme.vars.palette.background.default
|
|
40
|
-
},
|
|
41
|
-
// Top
|
|
42
|
-
...arrowType === "top-left" && { ...topStyle, left: 20 },
|
|
43
|
-
...arrowType === "top-center" && { ...topStyle, left: 0, right: 0, margin: "auto" },
|
|
44
|
-
...arrowType === "top-right" && { ...topStyle, right: 20 },
|
|
45
|
-
// Bottom
|
|
46
|
-
...arrowType === "bottom-left" && { ...bottomStyle, left: 20 },
|
|
47
|
-
...arrowType === "bottom-center" && { ...bottomStyle, left: 0, right: 0, margin: "auto" },
|
|
48
|
-
...arrowType === "bottom-right" && { ...bottomStyle, right: 20 },
|
|
49
|
-
// Left
|
|
50
|
-
...arrowType === "left-top" && { ...leftStyle, top: 20 },
|
|
51
|
-
...arrowType === "left-center" && { ...leftStyle, top: 0, bottom: 0, margin: "auto" },
|
|
52
|
-
...arrowType === "left-bottom" && { ...leftStyle, bottom: 20 },
|
|
53
|
-
// Right
|
|
54
|
-
...arrowType === "right-top" && { ...rightStyle, top: 20 },
|
|
55
|
-
...arrowType === "right-center" && { ...rightStyle, top: 0, bottom: 0, margin: "auto" },
|
|
56
|
-
...arrowType === "right-bottom" && { ...rightStyle, bottom: 20 }
|
|
57
|
-
};
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
ArrowStyle as A
|
|
61
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|