@m4l/components 6.0.0 → 6.0.1
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/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
- package/components/Icon/constants.d.ts +1 -0
- package/components/Icon/types.d.ts +12 -3
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/test/getNameDataTestId.d.ts +1 -1
- package/{vendor-BQTRcsle.js → vendor-B-B0U9GM.js} +108 -56
|
@@ -58,7 +58,7 @@ export declare const PopoverMenuStyled: import("@emotion/styled").StyledComponen
|
|
|
58
58
|
}, {}, {}>;
|
|
59
59
|
export declare const PopoverMenuItemStyled: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
60
60
|
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
61
|
-
}, "children" | "className" | "style" | "action" | "divider" | "sx" | "classes" | "autoFocus" | "tabIndex" | "
|
|
61
|
+
}, "children" | "className" | "style" | "action" | "divider" | "sx" | "classes" | "autoFocus" | "tabIndex" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "selected" | "disableGutters">, "value" | "children" | "className" | "onResize" | "style" | "color" | "hidden" | "slot" | "title" | "onChange" | "action" | "dir" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "divider" | "content" | "translate" | "sx" | "ref" | "key" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "id" | "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-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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "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" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
62
62
|
ownerState: Partial<import("../types").DynamicFilterOwnerState> & Record<string, unknown>;
|
|
63
63
|
}, {}, {}>;
|
|
64
64
|
export declare const PopoverMenuItemIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicFilterOwnerState> & Record<string, unknown> & {
|
|
@@ -55,7 +55,7 @@ export declare const PopoverMenuStyled: import("@emotion/styled").StyledComponen
|
|
|
55
55
|
}, {}, {}>;
|
|
56
56
|
export declare const PopoverMenuItemStyled: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
57
57
|
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
58
|
-
}, "children" | "className" | "style" | "action" | "divider" | "sx" | "classes" | "autoFocus" | "tabIndex" | "
|
|
58
|
+
}, "children" | "className" | "style" | "action" | "divider" | "sx" | "classes" | "autoFocus" | "tabIndex" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "selected" | "disableGutters">, "value" | "children" | "className" | "onResize" | "style" | "color" | "hidden" | "slot" | "title" | "onChange" | "action" | "dir" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "divider" | "content" | "translate" | "sx" | "ref" | "key" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "id" | "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-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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "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" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
59
59
|
ownerState: Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown>;
|
|
60
60
|
}, {}, {}>;
|
|
61
61
|
export declare const PopoverMenuItemIconStyled: import("@emotion/styled").StyledComponent<Pick<import("../../Icon").IconProps, keyof import("../../Icon").IconProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").DynamicSortOwnerState> & Record<string, unknown> & {
|
|
@@ -2,7 +2,7 @@ import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
|
2
2
|
import { IconSlots } from './slots';
|
|
3
3
|
import { Theme } from '@mui/material';
|
|
4
4
|
import { ICON_KEY_COMPONENT } from './constants';
|
|
5
|
-
import {
|
|
5
|
+
import { Sizes } from '@m4l/styles';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
7
7
|
import { TooltipProps } from '../mui_extended';
|
|
8
8
|
export interface IconProps extends Pick<TooltipProps, 'placement'> {
|
|
@@ -33,13 +33,22 @@ export interface IconProps extends Pick<TooltipProps, 'placement'> {
|
|
|
33
33
|
/**
|
|
34
34
|
* Esquema de color a aplicar al componente de los valores definidos en 'ColorSchemeComponent'.
|
|
35
35
|
*/
|
|
36
|
-
color?:
|
|
36
|
+
color?: 'primary.main' | 'text.primary' | 'primary.contrastText' | 'info.main' | 'succes.main' | 'error.main' | 'warning.main';
|
|
37
37
|
/**
|
|
38
38
|
* Clase externa
|
|
39
39
|
*/
|
|
40
40
|
className?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Propiedad que sirve para complementar el nombre del data-testid, aporta un identificador único del elemento html en toda aplicación.
|
|
43
|
+
* Es útil para realizar pruebas unitarias y de integración.
|
|
44
|
+
*/
|
|
45
|
+
instaceDataTestId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Valor que en caso de ser verdadero debe de pintar el svg con color text disabled.
|
|
48
|
+
*/
|
|
49
|
+
disabled?: boolean;
|
|
41
50
|
}
|
|
42
|
-
export declare type OwnerState = Pick<IconProps, 'size' | 'rotationAngle' | 'skeleton' | 'securityArea'>;
|
|
51
|
+
export declare type OwnerState = Pick<IconProps, 'size' | 'rotationAngle' | 'skeleton' | 'securityArea' | 'color' | 'disabled'>;
|
|
43
52
|
export interface IconOwnerState extends IconProps, OwnerState {
|
|
44
53
|
}
|
|
45
54
|
export declare type IconSlotsType = keyof typeof IconSlots;
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import { DotIconProps } from './types';
|
|
3
3
|
export declare const NavSubItemContentRoot: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
4
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
}, "children" | "className" | "style" | "action" | "divider" | "alignItems" | "sx" | "classes" | "autoFocus" | "tabIndex" | "
|
|
5
|
+
}, "children" | "className" | "style" | "action" | "divider" | "alignItems" | "sx" | "classes" | "autoFocus" | "tabIndex" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
6
6
|
export declare const DotIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & DotIconProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -10,7 +10,7 @@ export declare const BadgeStyled: import("@emotion/styled").StyledComponent<Pick
|
|
|
10
10
|
}, {}, {}>;
|
|
11
11
|
export declare const MenuItemStyled: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
12
12
|
ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
13
|
-
}, "children" | "className" | "style" | "action" | "divider" | "sx" | "classes" | "autoFocus" | "tabIndex" | "
|
|
13
|
+
}, "children" | "className" | "style" | "action" | "divider" | "sx" | "classes" | "autoFocus" | "tabIndex" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "selected" | "disableGutters">, "value" | "children" | "className" | "onResize" | "style" | "color" | "hidden" | "slot" | "title" | "onChange" | "action" | "dir" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "divider" | "content" | "translate" | "sx" | "ref" | "key" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "id" | "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-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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "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" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "selected" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").MenuActionsOwnerState> & Record<string, unknown> & {
|
|
14
14
|
ownerState: Partial<import("../types").MenuActionsOwnerState> & Record<string, unknown>;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
export declare const LabelMenuItemStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & Partial<import("../types").MenuActionsOwnerState> & Record<string, unknown> & {
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { x, s, bM, bA, as, au, av, at, ar, A, by, bG, cl, k, p, o, l, bN, bR, bL, _, bO, bP, c1, c2, bQ, ah, aj, ai, al, ag, af, ak, am, ae, aX, a6, D, a0, ac, ay, ao, ce, cd, ch, aA, bH, bo, ap, I, c0, c, aL, c3, w, aq, aJ, bS, aK, bT, aM, bU, bb, L, bK, bd, aR, aT, aN, aP, aZ, aS, aW, cf, b_, bZ, cn, b5, cm, M, d, b, bf, N, bi, bm, bV, bl, bn, a8, a3, a_, c4, bE, bD, bF, a9, aI, P, bp, R, B, V, Q, E, H, F, J, O, G, X, Y, Z, cg, bq, br, aB, bs, S, bJ, bx, bt, c5, bX, c7, c9, c8, c6, T, bu, bw, cb, cc, b$, bI, ca, a1, ba, b9, m, W, aD, aC, aE, a$, b0, n, bv, ax, b8, bh, bk, az, bB, bz, t, y, aw, g, a, ab, an, cj, a5, $, a7, a4, aa, ad, bc, be, aV, aQ, aY, bY, b7, b6, bg, bj, bW, K, C, z, U, a2, cr, aG, aF, b1, b2, b3, b4, ck, cu, ci, u, co, cs, ct, aO, aU, cp, bC, r, cv, cq, q, e, f, v, i, j, h, aH } from "./vendor-
|
|
1
|
+
import { x, s, bM, bA, as, au, av, at, ar, A, by, bG, cl, k, p, o, l, bN, bR, bL, _, bO, bP, c1, c2, bQ, ah, aj, ai, al, ag, af, ak, am, ae, aX, a6, D, a0, ac, ay, ao, ce, cd, ch, aA, bH, bo, ap, I, c0, c, aL, c3, w, aq, aJ, bS, aK, bT, aM, bU, bb, L, bK, bd, aR, aT, aN, aP, aZ, aS, aW, cf, b_, bZ, cn, b5, cm, M, d, b, bf, N, bi, bm, bV, bl, bn, a8, a3, a_, c4, bE, bD, bF, a9, aI, P, bp, R, B, V, Q, E, H, F, J, O, G, X, Y, Z, cg, bq, br, aB, bs, S, bJ, bx, bt, c5, bX, c7, c9, c8, c6, T, bu, bw, cb, cc, b$, bI, ca, a1, ba, b9, m, W, aD, aC, aE, a$, b0, n, bv, ax, b8, bh, bk, az, bB, bz, t, y, aw, g, a, ab, an, cj, a5, $, a7, a4, aa, ad, bc, be, aV, aQ, aY, bY, b7, b6, bg, bj, bW, K, C, z, U, a2, cr, aG, aF, b1, b2, b3, b4, ck, cu, ci, u, co, cs, ct, aO, aU, cp, bC, r, cv, cq, q, e, f, v, i, j, h, aH } from "./vendor-B-B0U9GM.js";
|
|
2
2
|
export {
|
|
3
3
|
x as AREAS_DICCTIONARY,
|
|
4
4
|
s as AREAS_DICTIONARY_ID,
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const getNameDataTestId: <T>(
|
|
1
|
+
export declare const getNameDataTestId: <T>(elementPrefix: string, elementKey: keyof T, instaceId?: string | undefined) => string;
|
|
2
2
|
/**
|
|
3
3
|
* Utilidad que permite generar el nombre único que sirve para realizar las pruebas unitarias y de integración.
|
|
4
4
|
* @param prefix -
|
|
@@ -7,7 +7,7 @@ import React__default, { createContext, useRef, useContext, forwardRef, useMemo,
|
|
|
7
7
|
import { Tooltip as Tooltip$1, Popper, IconButton as IconButton$1, Box, styled as styled$1, useTheme, alpha as alpha$1, Skeleton, generateUtilityClasses, generateUtilityClass, Popover as Popover$1, Typography as Typography$1, Dialog, Paper, CircularProgress as CircularProgress$1, Autocomplete, TextField, Chip, Accordion as Accordion$1, AccordionSummary, AccordionDetails, Badge as Badge$1, MenuItem, Avatar as Avatar$1, Link, Breadcrumbs as Breadcrumbs$1, Checkbox, LinearProgress as LinearProgress$1, Stack as Stack$1, Tabs as Tabs$1, Select, InputBase, Tab as Tab$1, FormGroup, FormControlLabel, InputAdornment, RadioGroup, Radio, SvgIcon, useForkRef, FormControl, ListItemText, ListItemButton, Collapse, Drawer as Drawer$1, ButtonBase, Grid } from "@mui/material";
|
|
8
8
|
import { styled, alpha, useTheme as useTheme$1 } from "@mui/material/styles";
|
|
9
9
|
import SimpleBarReact from "simplebar-react";
|
|
10
|
-
import { useModuleDictionary, useModuleSkeleton, useHostTools, useNetwork, EmitEvents, useEnvironment,
|
|
10
|
+
import { getPropertyByString, useModuleDictionary, useModuleSkeleton, useHostTools, useNetwork, EmitEvents, useEnvironment, axiosOperation, useFlagsPresent, CommonFlags, voidFunction, useBase, evaluateWithContext, BaseProvider, useFlagsStore, useModulePrivileges, usePaginate, useAuth, DomainCountryProvider, FlagsProvider, ModuleDictionaryProvider, ModuleSkeletonProvider, ModulePrivilegesProvider, EnvironmentProvider, HostToolsProvider, NetworkProvider, AuthProvider } from "@m4l/core";
|
|
11
11
|
import { Link as Link$1, useLocation, NavLink as NavLink$1, unstable_HistoryRouter } from "react-router-dom";
|
|
12
12
|
import clsx from "clsx";
|
|
13
13
|
import { useForm, FormProvider, useFormContext, Controller, useWatch, useController, useFormState } from "react-hook-form";
|
|
@@ -52,7 +52,7 @@ import { inputBaseClasses } from "@mui/material/InputBase";
|
|
|
52
52
|
import { DateTimePicker } from "@mui/x-date-pickers";
|
|
53
53
|
import { yupResolver } from "@hookform/resolvers/yup";
|
|
54
54
|
import { Helmet } from "react-helmet-async";
|
|
55
|
-
import {
|
|
55
|
+
import { DEFAULT_SIZE, useResponsive, OUR_THEME, fnComponentsOverrides } from "@m4l/styles";
|
|
56
56
|
import MuiButton from "@mui/material/Button";
|
|
57
57
|
import { createBrowserHistory } from "history";
|
|
58
58
|
import EventEmitter from "eventemitter3";
|
|
@@ -67,6 +67,7 @@ var IconSlots = /* @__PURE__ */ ((IconSlots2) => {
|
|
|
67
67
|
return IconSlots2;
|
|
68
68
|
})(IconSlots || {});
|
|
69
69
|
const ICON_KEY_COMPONENT = "M4LIcon";
|
|
70
|
+
const ICON_PREFIX$2 = "Icon";
|
|
70
71
|
const iconStyles = {
|
|
71
72
|
root: ({ theme, ownerState }) => ({
|
|
72
73
|
display: "flex",
|
|
@@ -90,7 +91,7 @@ const iconStyles = {
|
|
|
90
91
|
...ownerState.rotationAngle && {
|
|
91
92
|
transform: `rotate(${ownerState.rotationAngle}deg)`
|
|
92
93
|
},
|
|
93
|
-
backgroundColor: ownerState.
|
|
94
|
+
backgroundColor: !ownerState.disabled ? getPropertyByString(theme.vars.palette, ownerState.color || "text.primary") : theme.vars.palette.text.disabled,
|
|
94
95
|
...ownerState.size === "large" && {
|
|
95
96
|
...theme.generalSettings.isMobile ? {
|
|
96
97
|
width: 28,
|
|
@@ -129,7 +130,8 @@ const iconStyles = {
|
|
|
129
130
|
minWidth: 14,
|
|
130
131
|
minHeight: 14
|
|
131
132
|
}
|
|
132
|
-
}
|
|
133
|
+
},
|
|
134
|
+
variants: []
|
|
133
135
|
})
|
|
134
136
|
};
|
|
135
137
|
var TooltipSlots = /* @__PURE__ */ ((TooltipSlots2) => {
|
|
@@ -282,6 +284,16 @@ const IconStyled = styled("div", {
|
|
|
282
284
|
name: ICON_KEY_COMPONENT,
|
|
283
285
|
slot: IconSlots.icon
|
|
284
286
|
})(iconStyles?.icon);
|
|
287
|
+
const TEST_PROP_ID = "data-testid";
|
|
288
|
+
const getNameDataTestId$d = (elementPrefix, elementKey, instaceId) => {
|
|
289
|
+
if (instaceId) {
|
|
290
|
+
return `${elementPrefix}-${[elementKey]}-${instaceId}`;
|
|
291
|
+
}
|
|
292
|
+
return `${elementPrefix}-${[elementKey]}`;
|
|
293
|
+
};
|
|
294
|
+
function getPropDataTestId(prefix, keyName) {
|
|
295
|
+
return process.env.NODE_ENV !== "production" && prefix && keyName ? { ["data-testid"]: `${prefix}-${[keyName]}` } : {};
|
|
296
|
+
}
|
|
285
297
|
const Icon = (props) => {
|
|
286
298
|
const {
|
|
287
299
|
src,
|
|
@@ -289,30 +301,77 @@ const Icon = (props) => {
|
|
|
289
301
|
rotationAngle,
|
|
290
302
|
tooltipContent,
|
|
291
303
|
securityArea,
|
|
292
|
-
color,
|
|
304
|
+
color = "text.primary",
|
|
293
305
|
className,
|
|
294
|
-
placement = "bottom"
|
|
306
|
+
placement = "bottom",
|
|
307
|
+
instaceDataTestId,
|
|
308
|
+
disabled
|
|
295
309
|
} = props;
|
|
296
310
|
const { currentSize } = useComponentSize(size);
|
|
297
|
-
return /* @__PURE__ */ jsx(
|
|
298
|
-
|
|
311
|
+
return /* @__PURE__ */ jsx(Fragment, { children: tooltipContent ? /* @__PURE__ */ jsx(
|
|
312
|
+
TooltipStyled,
|
|
299
313
|
{
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
314
|
+
title: tooltipContent,
|
|
315
|
+
ownerState: {},
|
|
316
|
+
placement,
|
|
317
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
318
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
319
|
+
ICON_PREFIX$2,
|
|
320
|
+
IconSlots.tooltip,
|
|
321
|
+
instaceDataTestId
|
|
322
|
+
)
|
|
323
|
+
} : {},
|
|
324
|
+
children: /* @__PURE__ */ jsx(
|
|
325
|
+
RootStyled$7,
|
|
326
|
+
{
|
|
327
|
+
className,
|
|
328
|
+
ownerState: { securityArea, size: currentSize },
|
|
329
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
330
|
+
[TEST_PROP_ID]: getNameDataTestId$d(ICON_PREFIX$2, IconSlots.root, instaceDataTestId)
|
|
331
|
+
} : {},
|
|
332
|
+
children: /* @__PURE__ */ jsx(
|
|
333
|
+
IconStyled,
|
|
334
|
+
{
|
|
335
|
+
ownerState: {
|
|
336
|
+
src,
|
|
337
|
+
rotationAngle,
|
|
338
|
+
size: currentSize,
|
|
339
|
+
disabled,
|
|
340
|
+
color
|
|
341
|
+
},
|
|
342
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
343
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
344
|
+
ICON_PREFIX$2,
|
|
345
|
+
IconSlots.icon,
|
|
346
|
+
instaceDataTestId
|
|
347
|
+
)
|
|
348
|
+
} : {}
|
|
349
|
+
}
|
|
350
|
+
)
|
|
351
|
+
}
|
|
352
|
+
)
|
|
306
353
|
}
|
|
307
|
-
)
|
|
308
|
-
|
|
354
|
+
) : /* @__PURE__ */ jsx(
|
|
355
|
+
RootStyled$7,
|
|
309
356
|
{
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
357
|
+
className,
|
|
358
|
+
ownerState: { securityArea, size: currentSize },
|
|
359
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(ICON_PREFIX$2, IconSlots.root, instaceDataTestId) } : {},
|
|
360
|
+
children: /* @__PURE__ */ jsx(
|
|
361
|
+
IconStyled,
|
|
362
|
+
{
|
|
363
|
+
ownerState: {
|
|
364
|
+
src,
|
|
365
|
+
rotationAngle,
|
|
366
|
+
size: currentSize,
|
|
367
|
+
color,
|
|
368
|
+
disabled
|
|
369
|
+
},
|
|
370
|
+
...process.env.NODE_ENV !== "production" ? {
|
|
371
|
+
[TEST_PROP_ID]: getNameDataTestId$d(ICON_PREFIX$2, IconSlots.icon, instaceDataTestId)
|
|
372
|
+
} : {}
|
|
373
|
+
}
|
|
374
|
+
)
|
|
316
375
|
}
|
|
317
376
|
) });
|
|
318
377
|
};
|
|
@@ -4474,9 +4533,8 @@ const useUtilityClasses$d = () => {
|
|
|
4474
4533
|
...composedClasses
|
|
4475
4534
|
};
|
|
4476
4535
|
};
|
|
4477
|
-
const TEST_PROP_ID = "data-testid";
|
|
4478
4536
|
const TYPOGRAPHY_PREFIX = "Typography";
|
|
4479
|
-
const getNameDataTestId$
|
|
4537
|
+
const getNameDataTestId$c = (KEY) => {
|
|
4480
4538
|
return `${TYPOGRAPHY_PREFIX}-${KEY}`;
|
|
4481
4539
|
};
|
|
4482
4540
|
function Typography(props) {
|
|
@@ -4493,7 +4551,7 @@ function Typography(props) {
|
|
|
4493
4551
|
WarpperTypography,
|
|
4494
4552
|
{
|
|
4495
4553
|
className: clsx(classes2.root, className),
|
|
4496
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
4554
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$c("root") } : {},
|
|
4497
4555
|
children: !isSkeleton ? /* @__PURE__ */ jsx(Typography$1, { ...other, variant }) : /* @__PURE__ */ jsx(SkeletonTypography, { skeletonWidth, skeletonHeight })
|
|
4498
4556
|
}
|
|
4499
4557
|
);
|
|
@@ -4915,7 +4973,7 @@ const getRatioValues = (ratio) => {
|
|
|
4915
4973
|
}
|
|
4916
4974
|
};
|
|
4917
4975
|
const IMAGE_PREFIX = "Image";
|
|
4918
|
-
const getNameDataTestId$
|
|
4976
|
+
const getNameDataTestId$b = (KEY) => {
|
|
4919
4977
|
return `${IMAGE_PREFIX}-${KEY}`;
|
|
4920
4978
|
};
|
|
4921
4979
|
const componentName$B = "M4LImage";
|
|
@@ -4949,7 +5007,7 @@ function Image(props) {
|
|
|
4949
5007
|
ImageRoot,
|
|
4950
5008
|
{
|
|
4951
5009
|
className: clsx(classes2.root, className),
|
|
4952
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
5010
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$b("root") } : {},
|
|
4953
5011
|
style: width && height ? { minWidth: width, minHeight: height, width, height } : { width: "100%", height: "100%" },
|
|
4954
5012
|
children: /* @__PURE__ */ jsx(
|
|
4955
5013
|
"img",
|
|
@@ -4959,14 +5017,14 @@ function Image(props) {
|
|
|
4959
5017
|
className: classes2.img,
|
|
4960
5018
|
width: !width ? "100%" : ratioImage.width,
|
|
4961
5019
|
height: !height ? "100%" : ratioImage.height,
|
|
4962
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
5020
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$b("img") } : {}
|
|
4963
5021
|
}
|
|
4964
5022
|
)
|
|
4965
5023
|
}
|
|
4966
5024
|
)
|
|
4967
5025
|
);
|
|
4968
5026
|
}
|
|
4969
|
-
const getNameDataTestId$
|
|
5027
|
+
const getNameDataTestId$a = (KEY) => {
|
|
4970
5028
|
return `${RHFAUTOCOMPLETE_PREFIX}-${KEY}`;
|
|
4971
5029
|
};
|
|
4972
5030
|
function withRenderOption(getUrlImage, classes2) {
|
|
@@ -4977,7 +5035,7 @@ function withRenderOption(getUrlImage, classes2) {
|
|
|
4977
5035
|
...optionProps,
|
|
4978
5036
|
key: optionProps.key,
|
|
4979
5037
|
className: classes2.withImage,
|
|
4980
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
5038
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$a("withImage") } : {}
|
|
4981
5039
|
},
|
|
4982
5040
|
/* @__PURE__ */ jsx(Image, { src: getUrlImage(option) }),
|
|
4983
5041
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: optionProps.key })
|
|
@@ -5021,7 +5079,7 @@ const SkeletonRHFAutocomplete = (props) => {
|
|
|
5021
5079
|
"div",
|
|
5022
5080
|
{
|
|
5023
5081
|
className: classes2.skeleton,
|
|
5024
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
5082
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$a("skeleton") } : {},
|
|
5025
5083
|
children: !withImage ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5026
5084
|
/* @__PURE__ */ jsx("div", { className: classes2.skeletonContainerText, children: /* @__PURE__ */ jsx(Skeleton, { variant: "text", width: "50%", height: "14px" }) }),
|
|
5027
5085
|
/* @__PURE__ */ jsx(Skeleton, { variant: "circular", width: 16, height: 16, sx: { minWidth: "16px" } })
|
|
@@ -5449,12 +5507,6 @@ styled("div")(({ theme }) => ({
|
|
|
5449
5507
|
const AccordionRoot = styled("div")(({ theme }) => ({
|
|
5450
5508
|
...theme.components?.M4LAccordion?.styleOverrides
|
|
5451
5509
|
}));
|
|
5452
|
-
const getNameDataTestId$a = (ELEMENT_PREFIX, ELEMENT_KEY, ELEMENT_ID) => {
|
|
5453
|
-
return `${ELEMENT_PREFIX}-${[ELEMENT_KEY]}-${ELEMENT_ID}`;
|
|
5454
|
-
};
|
|
5455
|
-
function getPropDataTestId(prefix, keyName) {
|
|
5456
|
-
return process.env.NODE_ENV !== "production" && prefix && keyName ? { ["data-testid"]: `${prefix}-${[keyName]}` } : {};
|
|
5457
|
-
}
|
|
5458
5510
|
const COMPONENT_PREFIX$2 = "m4l-accordion";
|
|
5459
5511
|
function Accordion(props) {
|
|
5460
5512
|
const {
|
|
@@ -5475,7 +5527,7 @@ function Accordion(props) {
|
|
|
5475
5527
|
{
|
|
5476
5528
|
className: clsx(classes2.root, className),
|
|
5477
5529
|
...process.env.NODE_ENV !== "production" ? {
|
|
5478
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
5530
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
5479
5531
|
COMPONENT_PREFIX$2,
|
|
5480
5532
|
"root",
|
|
5481
5533
|
dataTestId
|
|
@@ -5509,7 +5561,7 @@ function Accordion(props) {
|
|
|
5509
5561
|
{
|
|
5510
5562
|
className: classes2.labelIcon,
|
|
5511
5563
|
...process.env.NODE_ENV !== "production" ? {
|
|
5512
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
5564
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
5513
5565
|
COMPONENT_PREFIX$2,
|
|
5514
5566
|
"labelIcon",
|
|
5515
5567
|
dataTestId
|
|
@@ -6600,14 +6652,14 @@ function Tab(props) {
|
|
|
6600
6652
|
{
|
|
6601
6653
|
className: clsx(classes2.root, className),
|
|
6602
6654
|
...process.env.NODE_ENV !== "production" ? {
|
|
6603
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
6655
|
+
[TEST_PROP_ID]: getNameDataTestId$d(COMPONENT_PREFIX$1, "root", dataTestId)
|
|
6604
6656
|
} : {},
|
|
6605
6657
|
children: !isSkeleton ? /* @__PURE__ */ jsx(Tab$1, { ...other }) : /* @__PURE__ */ jsx(
|
|
6606
6658
|
SKTTabWrapper,
|
|
6607
6659
|
{
|
|
6608
6660
|
className: classes2.skeleton,
|
|
6609
6661
|
...process.env.NODE_ENV !== "production" ? {
|
|
6610
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
6662
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
6611
6663
|
COMPONENT_PREFIX$1,
|
|
6612
6664
|
"skeleton",
|
|
6613
6665
|
dataTestId
|
|
@@ -11097,7 +11149,7 @@ const Window = (props) => {
|
|
|
11097
11149
|
),
|
|
11098
11150
|
onMouseDown: onTouch,
|
|
11099
11151
|
...process.env.NODE_ENV !== "production" ? {
|
|
11100
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
11152
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
11101
11153
|
AREAS_VIEWER_CLASS_NAME,
|
|
11102
11154
|
"windowRoot",
|
|
11103
11155
|
`${emergeType}`
|
|
@@ -11394,7 +11446,7 @@ function AreasViewer() {
|
|
|
11394
11446
|
{
|
|
11395
11447
|
className: classesRoot,
|
|
11396
11448
|
...process.env.NODE_ENV !== "production" ? {
|
|
11397
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
11449
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
11398
11450
|
AREAS_VIEWER_CLASS_NAME,
|
|
11399
11451
|
"root",
|
|
11400
11452
|
""
|
|
@@ -13387,7 +13439,7 @@ function DataGrid(props) {
|
|
|
13387
13439
|
className: classes2.root,
|
|
13388
13440
|
...process.env.NODE_ENV !== "production" ? {
|
|
13389
13441
|
[TEST_PROP_COLUMNS]: JSON.stringify(columns),
|
|
13390
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
13442
|
+
[TEST_PROP_ID]: getNameDataTestId$d(DATAGRID_PREFIX_NAME, "root", dataTestId)
|
|
13391
13443
|
} : {},
|
|
13392
13444
|
children: /* @__PURE__ */ jsx(
|
|
13393
13445
|
DataGridProvider,
|
|
@@ -23598,7 +23650,7 @@ function PropertyValue(props) {
|
|
|
23598
23650
|
[TEST_PROPS_DATA]: JSON.stringify([
|
|
23599
23651
|
{ property: property ? true : false, value: value ? true : false }
|
|
23600
23652
|
]),
|
|
23601
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23653
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23602
23654
|
COMPONENT_PREFIX,
|
|
23603
23655
|
"root",
|
|
23604
23656
|
dataTestId
|
|
@@ -23614,7 +23666,7 @@ function PropertyValue(props) {
|
|
|
23614
23666
|
minWidth: propertyWidth && isDesktop ? propertyWidth : "150px"
|
|
23615
23667
|
},
|
|
23616
23668
|
...process.env.NODE_ENV !== "production" ? {
|
|
23617
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23669
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23618
23670
|
COMPONENT_PREFIX,
|
|
23619
23671
|
"property",
|
|
23620
23672
|
dataTestId
|
|
@@ -23644,7 +23696,7 @@ function PropertyValue(props) {
|
|
|
23644
23696
|
height: valueHeight
|
|
23645
23697
|
},
|
|
23646
23698
|
...process.env.NODE_ENV !== "production" ? {
|
|
23647
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23699
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23648
23700
|
COMPONENT_PREFIX,
|
|
23649
23701
|
"value",
|
|
23650
23702
|
dataTestId
|
|
@@ -23666,7 +23718,7 @@ function PropertyValue(props) {
|
|
|
23666
23718
|
[TEST_PROPS_DATA]: JSON.stringify([
|
|
23667
23719
|
{ property: property ? true : false, value: value ? true : false }
|
|
23668
23720
|
]),
|
|
23669
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23721
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23670
23722
|
COMPONENT_PREFIX,
|
|
23671
23723
|
"root",
|
|
23672
23724
|
dataTestId
|
|
@@ -23682,7 +23734,7 @@ function PropertyValue(props) {
|
|
|
23682
23734
|
[TEST_PROPS_DATA]: JSON.stringify([
|
|
23683
23735
|
{ property: property ? true : false, value: value ? true : false }
|
|
23684
23736
|
]),
|
|
23685
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23737
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23686
23738
|
COMPONENT_PREFIX,
|
|
23687
23739
|
"root",
|
|
23688
23740
|
dataTestId
|
|
@@ -23712,7 +23764,7 @@ function PropertyValue(props) {
|
|
|
23712
23764
|
height: valueHeight
|
|
23713
23765
|
},
|
|
23714
23766
|
...process.env.NODE_ENV !== "production" ? {
|
|
23715
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
23767
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
23716
23768
|
COMPONENT_PREFIX,
|
|
23717
23769
|
"value",
|
|
23718
23770
|
dataTestId
|
|
@@ -25323,7 +25375,7 @@ const NavItemRoot = (props) => {
|
|
|
25323
25375
|
classes2.ItemSelect,
|
|
25324
25376
|
item.path === window.location.pathname ? TopBarClasses.IsActive : null
|
|
25325
25377
|
),
|
|
25326
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
25378
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(componentName$1, "ItemSelect", dataTestId) } : {},
|
|
25327
25379
|
children: /* @__PURE__ */ jsx(Button, { variant: "text", href: item.path, fullWidth: true, children: item.title })
|
|
25328
25380
|
}
|
|
25329
25381
|
) }, index));
|
|
@@ -25358,7 +25410,7 @@ const NavItemRoot = (props) => {
|
|
|
25358
25410
|
{
|
|
25359
25411
|
className: classes2.ContainerAccordionCase1,
|
|
25360
25412
|
...process.env.NODE_ENV !== "production" ? {
|
|
25361
|
-
[TEST_PROP_ID]: getNameDataTestId$
|
|
25413
|
+
[TEST_PROP_ID]: getNameDataTestId$d(
|
|
25362
25414
|
componentName$1,
|
|
25363
25415
|
"ContainerAccordionCase1",
|
|
25364
25416
|
dataTestId
|
|
@@ -25385,7 +25437,7 @@ const NavItemRoot = (props) => {
|
|
|
25385
25437
|
"div",
|
|
25386
25438
|
{
|
|
25387
25439
|
className: classes2.ContainerAccordion,
|
|
25388
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
25440
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(componentName$1, "ContainerAccordion", dataTestId) } : {},
|
|
25389
25441
|
children: [
|
|
25390
25442
|
/* @__PURE__ */ jsx(
|
|
25391
25443
|
Button,
|
|
@@ -25413,7 +25465,7 @@ const NavItemRoot = (props) => {
|
|
|
25413
25465
|
classes2.ItemRoot,
|
|
25414
25466
|
isActive(itemRootData) || openedPopoverId === itemRootData.module_id ? TopBarClasses.IsActive : null
|
|
25415
25467
|
),
|
|
25416
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
25468
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(componentName$1, "ItemRoot", dataTestId) } : {},
|
|
25417
25469
|
children: render()
|
|
25418
25470
|
}
|
|
25419
25471
|
);
|
|
@@ -25424,7 +25476,7 @@ const ConteinItem = () => {
|
|
|
25424
25476
|
"div",
|
|
25425
25477
|
{
|
|
25426
25478
|
className: classes2.SimplebarComercial,
|
|
25427
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
25479
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(componentName$1, "SimplebarComercial", dataTestId) } : {},
|
|
25428
25480
|
//Map que se encarga de cargar el iNavItemRoot
|
|
25429
25481
|
children: DataMenu.map((group) => /* @__PURE__ */ jsx(NavItemRoot, { itemRootData: group }, group.module_id))
|
|
25430
25482
|
}
|
|
@@ -25440,7 +25492,7 @@ const TopBar = (props) => {
|
|
|
25440
25492
|
TopBarRoot,
|
|
25441
25493
|
{
|
|
25442
25494
|
className: classes2.root,
|
|
25443
|
-
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$
|
|
25495
|
+
...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId$d(componentName$1, "root", dataTestId) } : {},
|
|
25444
25496
|
children: /* @__PURE__ */ jsx(TopBarProvider, { value: { dataMenu: DataMenu, classes: classes2, dataTestId }, children: /* @__PURE__ */ jsx(ConteinItem, {}) })
|
|
25445
25497
|
}
|
|
25446
25498
|
);
|