@m4l/components 9.4.14 → 9.4.15-BE20260121-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/AccountPopover/AccountPopover.styles.js +10 -5
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +2 -2
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
- package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
- package/components/CheckableList/slots/styled.d.ts +1 -1
- package/components/Chip/slots/ChipSlots.d.ts +2 -2
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/EditLabel/slots/EditLabelSlots.d.ts +2 -2
- package/components/Icon/Icon.d.ts +3 -0
- package/components/Icon/Icon.js +52 -28
- package/components/Icon/Icon.styles.js +53 -61
- package/components/Icon/constants.d.ts +1 -0
- package/components/Icon/constants.js +5 -1
- package/components/Icon/slots/IconSlots.js +3 -3
- package/components/Icon/types.d.ts +44 -7
- package/components/Label/slots/LabelSlots.d.ts +1 -1
- package/components/MenuActions/MenuActions.js +17 -5
- package/components/MenuActions/constants.js +2 -8
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/components/MenuActions/slots/MenuActionsSlots.js +1 -1
- package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +2 -0
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +3 -3
- package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +2 -2
- package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
- package/components/Stepper/slots/StepperSlot.d.ts +1 -1
- package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +1 -1
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +3 -3
- package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
- package/components/WindowBase/types.d.ts +2 -1
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
- package/components/datagrids/formatters/ColumnIconFormatter/types.d.ts +2 -1
- package/components/datagrids/formatters/ColumnNestedValueFormatter/formatter.d.ts +33 -1
- package/components/datagrids/formatters/ColumnNestedValueFormatter/formatter.js +3 -2
- package/components/datagrids/formatters/ColumnNestedValueFormatter/types.d.ts +19 -1
- package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts +34 -2
- package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +23 -9
- package/components/datagrids/icons.js +0 -8
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/Density/Density.js +11 -14
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/MobileMenuActions/MobileMenuActions.js +6 -5
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/ViewMode/ViewMode.js +9 -10
- package/components/datagrids/tests/helpers/types.d.ts +10 -0
- package/components/datagrids/views/CardsView/hooks/useCardContent/useCardContent.js +3 -4
- package/components/datagrids/views/CardsView/subcomponents/CardDetails/CardDetails.js +3 -4
- package/components/datagrids/views/CardsView/subcomponents/CardRow/subcomponents/CardHeader/CardHeader.js +2 -4
- package/components/datagrids/views/CardsView/subcomponents/Settings/Settings.js +3 -4
- package/components/datagrids/views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js +3 -4
- package/components/datagrids/views/CardsView/subcomponents/Settings/subcomponents/ColumnsConfig/ColumnsConfig.js +9 -10
- package/components/datagrids/views/TableView/hooks/useHeaderMenuActions/useHeaderMenuActions.js +35 -49
- package/components/datagrids/views/TableView/hooks/useSortColumnsRows/useSortColumnsRows.js +2 -0
- package/components/extended/React-resizable-panels/SplitLayout.styles.js +46 -37
- package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +1 -1
- package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +2 -2
- package/components/formatters/IconsFormatter/slots/IconsFormatterSlots.d.ts +2 -2
- package/components/formatters/IconsFormatter/types.d.ts +2 -1
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +5 -0
- package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
- package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +3 -2
- package/components/mui_extended/Accordion/constants.d.ts +0 -1
- package/components/mui_extended/Accordion/constants.js +1 -3
- package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +2 -2
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +3 -5
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
- package/components/mui_extended/DatePicker/DatePicker.styles.js +2 -2
- package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.js +10 -11
- package/components/mui_extended/DatePicker/slots/DatePickerSlots.d.ts +1 -1
- package/components/mui_extended/DateTimePicker/DateTimePicker.d.ts +0 -4
- package/components/mui_extended/DateTimePicker/DateTimePicker.js +10 -11
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/IconButton.js +19 -8
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/types.d.ts +3 -6
- package/components/mui_extended/MenuItem/MenuItem.js +14 -4
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -2
- package/components/mui_extended/MenuItem/types.d.ts +3 -3
- package/components/mui_extended/Radio/Radio.js +4 -5
- package/components/mui_extended/Select/Select.d.ts +2 -1
- package/components/mui_extended/Select/Select.js +7 -5
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +2 -2
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
- package/components/mui_extended/Tabs/Tabs.js +5 -9
- package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +1 -1
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +1 -1
- package/not_recognized/index.js +100 -25
- package/package.json +2 -1
- package/components/hook-form/RHFDatePicker/icons.d.ts +0 -6
- package/components/mui_extended/Autocomplete/icons.js +0 -7
- package/components/mui_extended/DatePicker/icons.d.ts +0 -4
- package/components/mui_extended/DatePicker/icons.js +0 -10
- package/components/mui_extended/DateTimePicker/icons.d.ts +0 -4
- package/components/mui_extended/DateTimePicker/icons.js +0 -10
- package/components/mui_extended/Radio/icons.js +0 -7
- package/components/mui_extended/Tabs/icons.d.ts +0 -4
- package/components/mui_extended/Tabs/icons.js +0 -7
|
@@ -19,12 +19,12 @@ export declare const MessageTitleStyled: import('@emotion/styled').StyledCompone
|
|
|
19
19
|
export declare const MessageDescriptionStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "variant" | "color" | "dataTestid" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "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" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | "ellipsis" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown> & {
|
|
20
20
|
ownerState: Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown>;
|
|
21
21
|
}, {}, {}>;
|
|
22
|
-
export declare const MessageIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').
|
|
22
|
+
export declare const MessageIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, "src" | "icon" | keyof import('../../Icon').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown> & {
|
|
23
23
|
ownerState: Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown>;
|
|
24
24
|
}, {}, {}>;
|
|
25
|
-
export declare const MessageCloseButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown> & {
|
|
25
|
+
export declare const MessageCloseButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "dataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown> & {
|
|
26
26
|
ownerState: Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown>;
|
|
27
27
|
}, {}, {}>;
|
|
28
|
-
export declare const MessagePinButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown> & {
|
|
28
|
+
export declare const MessagePinButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "dataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown> & {
|
|
29
29
|
ownerState: Partial<import('../types').ToastContainerOwnerState> & Record<string, unknown>;
|
|
30
30
|
}, {}, {}>;
|
|
@@ -31,7 +31,7 @@ export declare const HeaderContentStyled: import('@emotion/styled').StyledCompon
|
|
|
31
31
|
/**
|
|
32
32
|
* Icon component for the header.
|
|
33
33
|
*/
|
|
34
|
-
export declare const IconWindowStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').
|
|
34
|
+
export declare const IconWindowStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, "src" | "icon" | keyof import('../../Icon').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
35
35
|
ownerState?: any;
|
|
36
36
|
}, {}, {}>;
|
|
37
37
|
/**
|
|
@@ -55,7 +55,7 @@ export declare const ContainerTitleSubtitleStyled: import('@emotion/styled').Sty
|
|
|
55
55
|
/**
|
|
56
56
|
* Point icon component for the header.
|
|
57
57
|
*/
|
|
58
|
-
export declare const PointIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').
|
|
58
|
+
export declare const PointIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, "src" | "icon" | keyof import('../../Icon').IconBaseProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
59
59
|
ownerState?: any;
|
|
60
60
|
}, {}, {}>;
|
|
61
61
|
/**
|
|
@@ -7,6 +7,7 @@ import { MenuItemAction } from '../MenuActions/types';
|
|
|
7
7
|
import { M4LOverridesStyleRules } from '../../@types/augmentations';
|
|
8
8
|
import { EmergeType } from '../areas/types';
|
|
9
9
|
import { TooltipProps } from '../mui_extended/Tooltip/types';
|
|
10
|
+
import { IconProps } from '../Icon/types';
|
|
10
11
|
/**
|
|
11
12
|
* Opciones para la ventana.
|
|
12
13
|
*/
|
|
@@ -107,7 +108,7 @@ export interface WindowBaseProps {
|
|
|
107
108
|
* URL of the icon displayed in the header of the window.
|
|
108
109
|
* This is optional and used to provide a visual identifier for the window.
|
|
109
110
|
*/
|
|
110
|
-
iconUrl?:
|
|
111
|
+
iconUrl?: IconProps['icon'];
|
|
111
112
|
/**
|
|
112
113
|
* The visual style of the window.
|
|
113
114
|
* - `'outlined'`: Displays the window with an outlined border.
|
|
@@ -22,7 +22,7 @@ export declare const AreasAdminContentStyled: import('@emotion/styled').StyledCo
|
|
|
22
22
|
export declare const ChipAreasStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../../Chip').ChipProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../../../Chip').ChipProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
23
23
|
ownerState?: (Partial<import('../types').AreasAdminOwnerState> & Record<string, unknown>) | undefined;
|
|
24
24
|
}, {}, {}>;
|
|
25
|
-
export declare const IconButtonAddAreaStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
25
|
+
export declare const IconButtonAddAreaStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "dataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
26
26
|
ownerState?: (Partial<import('../types').AreasAdminOwnerState> & Record<string, unknown>) | undefined;
|
|
27
27
|
}, {}, {}>;
|
|
28
28
|
export declare const MenuActionsChipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../../MenuActions/types').MenuActionsProps, keyof import('../../../../MenuActions/types').MenuActionsProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DeepKeyOf } from '../../../../utils/types';
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
3
|
import { Sizes } from '@m4l/styles';
|
|
4
|
+
import { IconProps } from '../../../Icon/types';
|
|
4
5
|
export type IconColorDeep = DeepKeyOf<Theme['vars']['palette']> | string;
|
|
5
6
|
export type ColumnIconResponse = {
|
|
6
|
-
iconUrl:
|
|
7
|
+
iconUrl: IconProps['icon'];
|
|
7
8
|
tooltip?: string;
|
|
8
9
|
onClick?: () => void;
|
|
9
10
|
dataTestId?: string;
|
|
@@ -1,6 +1,38 @@
|
|
|
1
1
|
import { ColumnNestedValueFormatterProps } from './types';
|
|
2
2
|
import { RenderCellProps } from 'react-data-grid';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Formatter para mostrar valores de propiedades anidadas en columnas del DataGrid.
|
|
5
|
+
*
|
|
6
|
+
* Este formatter permite acceder a propiedades dentro de objetos anidados usando
|
|
7
|
+
* "dot notation" (notación de punto). Es útil cuando los datos tienen estructuras
|
|
8
|
+
* complejas y necesitas mostrar un valor específico dentro de un objeto.
|
|
9
|
+
* @param props - Configuración del formatter
|
|
10
|
+
* @param props.fieldValue - Ruta a la propiedad usando dot notation (ej: 'user.profile.name')
|
|
11
|
+
* @param props.Component - Componente opcional para envolver el valor (default: React.Fragment)
|
|
12
|
+
* @param props.defaultValue - Valor a mostrar si es null/undefined (default: '-')
|
|
13
|
+
* @returns Función formatter compatible con react-data-grid
|
|
14
|
+
* @example
|
|
15
|
+
* // Filas de ejemplo:
|
|
16
|
+
* // { id: 1, user: { profile: { name: 'Juan' } } }
|
|
17
|
+
* // { id: 2, user: { profile: { name: null } } }
|
|
18
|
+
*
|
|
19
|
+
* // Uso recomendado con hook:
|
|
20
|
+
* const nestedColumn = useColumnNestedValue<MyRow>({
|
|
21
|
+
* fieldValue: 'user.profile.name',
|
|
22
|
+
* defaultValue: 'Sin nombre',
|
|
23
|
+
* });
|
|
24
|
+
*
|
|
25
|
+
* const columns = [
|
|
26
|
+
* {
|
|
27
|
+
* key: 'userName',
|
|
28
|
+
* name: 'Nombre',
|
|
29
|
+
* type: 'custom',
|
|
30
|
+
* ...nestedColumn, // Incluye formatter, customFilter y customSort
|
|
31
|
+
* }
|
|
32
|
+
* ];
|
|
33
|
+
*
|
|
34
|
+
* // Resultado en DataGrid:
|
|
35
|
+
* // Fila 1: "Juan"
|
|
36
|
+
* // Fila 2: "Sin nombre" (porque el valor es null)
|
|
5
37
|
*/
|
|
6
38
|
export declare function ColumnNestedValueFormatter<TRow>(props: ColumnNestedValueFormatterProps<TRow>): (formatterProps: RenderCellProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,10 +3,11 @@ import { getPropertyByString } from "@m4l/core";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { g as getNullGuard } from "../../../../utils/getNullGuard.js";
|
|
5
5
|
function ColumnNestedValueFormatter(props) {
|
|
6
|
-
const { fieldValue, Component = React.Fragment } = props;
|
|
6
|
+
const { fieldValue, Component = React.Fragment, defaultValue = "-" } = props;
|
|
7
7
|
return (formatterProps) => {
|
|
8
8
|
const property = getNullGuard(
|
|
9
|
-
getPropertyByString(formatterProps.row, fieldValue)
|
|
9
|
+
getPropertyByString(formatterProps.row, fieldValue),
|
|
10
|
+
defaultValue
|
|
10
11
|
);
|
|
11
12
|
const value = typeof property === "object" ? JSON.stringify(property) : property;
|
|
12
13
|
return /* @__PURE__ */ jsx(Component, { children: value });
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { DeepKeyOf } from '../../../../utils/types';
|
|
2
2
|
export interface ColumnNestedValueFormatterProps<TRow> {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Ruta a la propiedad anidada usando dot notation.
|
|
5
|
+
* Permite acceder a valores dentro de objetos anidados.
|
|
6
|
+
* @example
|
|
7
|
+
* // Para acceder a { user: { profile: { name: 'Juan' } } }
|
|
8
|
+
* fieldValue: 'user.profile.name' // Retorna 'Juan'
|
|
9
|
+
*/
|
|
4
10
|
fieldValue: DeepKeyOf<TRow>;
|
|
11
|
+
/**
|
|
12
|
+
* Componente opcional para envolver el valor renderizado.
|
|
13
|
+
* Por defecto usa React.Fragment.
|
|
14
|
+
* @example
|
|
15
|
+
* Component: Typography // Envuelve el valor en <Typography>{valor}</Typography>
|
|
16
|
+
*/
|
|
17
|
+
Component?: React.ElementType;
|
|
18
|
+
/**
|
|
19
|
+
* Valor a mostrar cuando la propiedad es null o undefined.
|
|
20
|
+
* Por defecto es '-'.
|
|
21
|
+
*/
|
|
22
|
+
defaultValue?: string;
|
|
5
23
|
}
|
package/components/datagrids/formatters/ColumnNestedValueFormatter/useColumnNestedValue.d.ts
CHANGED
|
@@ -1,7 +1,39 @@
|
|
|
1
1
|
import { ColumnNestedValueFormatterProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Hook para crear una columna que muestra valores de propiedades anidadas.
|
|
4
|
+
* @param props - Configuración del formatter
|
|
5
|
+
* @param props.fieldValue - Ruta a la propiedad usando dot notation (ej: 'user.profile.name')
|
|
6
|
+
* @param props.Component - Componente opcional para envolver el valor (default: React.Fragment)
|
|
7
|
+
* @param props.defaultValue - Valor a mostrar si es null/undefined (default: '-')
|
|
8
|
+
* @returns Objeto con { formatter, customFilter, customSort } para usar en la columna
|
|
9
|
+
* @example
|
|
10
|
+
* // Datos de ejemplo en el DataGrid:
|
|
11
|
+
* // [
|
|
12
|
+
* // { id: 1, nestedValue: { value: 'Activo' } },
|
|
13
|
+
* // { id: 2, nestedValue: { value: null } },
|
|
14
|
+
* // { id: 3, nestedValue: { value: 'Pendiente' } },
|
|
15
|
+
* // ]
|
|
16
|
+
*
|
|
17
|
+
* // Crear la columna con el hook
|
|
18
|
+
* const nestedColumn = useColumnNestedValue<RowType>({
|
|
19
|
+
* fieldValue: 'nestedValue.value',
|
|
20
|
+
* defaultValue: 'N/A', // Opcional, por defecto es '-'
|
|
21
|
+
* });
|
|
22
|
+
*
|
|
23
|
+
* // Usar en la definición de columnas
|
|
24
|
+
* const columns = [
|
|
25
|
+
* {
|
|
26
|
+
* key: 'nestedValue',
|
|
27
|
+
* name: 'Estado',
|
|
28
|
+
* type: 'custom',
|
|
29
|
+
* ...nestedColumn, // Spread incluye formatter, customFilter y customSort
|
|
30
|
+
* }
|
|
31
|
+
* ];
|
|
32
|
+
*
|
|
33
|
+
* // Resultado en el DataGrid:
|
|
34
|
+
* // Fila 1: "Activo"
|
|
35
|
+
* // Fila 2: "N/A" (porque el valor es null)
|
|
36
|
+
* // Fila 3: "Pendiente"
|
|
5
37
|
*/
|
|
6
38
|
export declare const useColumnNestedValue: <TRow>(props: ColumnNestedValueFormatterProps<TRow>) => {
|
|
7
39
|
formatter: (formatterProps: import('react-data-grid').RenderCellProps<TRow, unknown>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,8 +6,12 @@ import { g as getNullGuard } from "../../../../utils/getNullGuard.js";
|
|
|
6
6
|
import { C as ColumnNestedValueFormatter } from "./formatter.js";
|
|
7
7
|
import { g as getColumnKey } from "../../helpers/shared/getColumnKey/getColumnKey.js";
|
|
8
8
|
const getCustomNestedValueFilter = (props) => {
|
|
9
|
+
const { defaultValue = "-" } = props;
|
|
9
10
|
return (row, value) => {
|
|
10
|
-
const property = getNullGuard(
|
|
11
|
+
const property = getNullGuard(
|
|
12
|
+
getPropertyByString(row, props.fieldValue),
|
|
13
|
+
defaultValue
|
|
14
|
+
);
|
|
11
15
|
if (typeof property === "object") {
|
|
12
16
|
return Object.values(property).includes(value);
|
|
13
17
|
}
|
|
@@ -15,10 +19,17 @@ const getCustomNestedValueFilter = (props) => {
|
|
|
15
19
|
};
|
|
16
20
|
};
|
|
17
21
|
const getCustomNestedValueSort = (props) => {
|
|
22
|
+
const { defaultValue = "-" } = props;
|
|
18
23
|
return (a, b) => {
|
|
19
24
|
const keyWiouthRow = getColumnKey(props.fieldValue);
|
|
20
|
-
const valueA = getNullGuard(
|
|
21
|
-
|
|
25
|
+
const valueA = getNullGuard(
|
|
26
|
+
getPropertyByString(a, keyWiouthRow),
|
|
27
|
+
defaultValue
|
|
28
|
+
);
|
|
29
|
+
const valueB = getNullGuard(
|
|
30
|
+
getPropertyByString(b, keyWiouthRow),
|
|
31
|
+
defaultValue
|
|
32
|
+
);
|
|
22
33
|
if (typeof valueA === "object" || typeof valueB === "object" || valueA === void 0 || valueB === void 0) {
|
|
23
34
|
return 0;
|
|
24
35
|
}
|
|
@@ -40,12 +51,15 @@ const useColumnNestedValue = (props) => {
|
|
|
40
51
|
setStateProps(props);
|
|
41
52
|
}
|
|
42
53
|
}, [props]);
|
|
43
|
-
return useMemo(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
54
|
+
return useMemo(
|
|
55
|
+
() => ({
|
|
56
|
+
formatter: ColumnNestedValueFormatter(stateProps),
|
|
57
|
+
renderGroupCell: ColumnNestedValueGroupFormatter(stateProps),
|
|
58
|
+
customFilter: getCustomNestedValueFilter(stateProps),
|
|
59
|
+
customSort: getCustomNestedValueSort(stateProps)
|
|
60
|
+
}),
|
|
61
|
+
[stateProps]
|
|
62
|
+
);
|
|
49
63
|
};
|
|
50
64
|
export {
|
|
51
65
|
useColumnNestedValue as u
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
const pathIcons = {
|
|
2
|
-
compact: "frontend/components/data_grid/assets/icons/compact.svg",
|
|
3
|
-
standard: "frontend/components/data_grid/assets/icons/standard.svg",
|
|
4
|
-
confortable: "frontend/components/data_grid/assets/icons/confortable.svg",
|
|
5
2
|
filter: "frontend/components/data_grid/assets/icons/list-filter.svg",
|
|
6
3
|
configuration: "frontend/components/data_grid/assets/icons/settings.svg",
|
|
7
|
-
menu: "frontend/components/data_grid/assets/icons/menu.svg",
|
|
8
4
|
moveFirstPlace: "frontend/components/data_grid/assets/icons/move_first_place.svg",
|
|
9
5
|
moveUpPlace: "frontend/components/data_grid/assets/icons/move_up_place.svg",
|
|
10
6
|
moveLastPlace: "frontend/components/data_grid/assets/icons/move_last_place.svg",
|
|
@@ -20,11 +16,7 @@ const pathIcons = {
|
|
|
20
16
|
freezeColumn: "frontend/components/data_grid/assets/icons/pin.svg",
|
|
21
17
|
unfreezeColumn: "frontend/components/data_grid/assets/icons/pin-off.svg",
|
|
22
18
|
hideColumn: "frontend/components/data_grid/assets/icons/eye-off.svg",
|
|
23
|
-
viewTable: "frontend/components/data_grid/assets/icons/table.svg",
|
|
24
|
-
viewCards: "frontend/components/data_grid/assets/icons/card.svg",
|
|
25
19
|
info: "frontend/components/data_grid/assets/icons/info.svg",
|
|
26
|
-
expanded: "frontend/components/data_grid/assets/icons/expanded.svg",
|
|
27
|
-
edit: "frontend/components/EditLabel/assets/icons/pencil.svg",
|
|
28
20
|
group: "frontend/components/data_grid/assets/icons/group.svg",
|
|
29
21
|
removeGroup: "frontend/components/data_grid/assets/icons/remove_group.svg",
|
|
30
22
|
groupUp: "frontend/components/data_grid/assets/icons/group_up.svg",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { M as MenuActions } from "../../../../../MenuActions/MenuActions.js";
|
|
5
|
-
import { p as pathIcons } from "../../../../icons.js";
|
|
6
5
|
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
6
|
+
import { LayoutDensityCompactOutlined, LayoutDensityStandardOutlined, LayoutDensityConfortableOutlined } from "@m4l/icons";
|
|
7
7
|
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
8
8
|
function Density() {
|
|
9
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
10
9
|
const { rowHeights, currentRowHeightVariant, setRowHeightVariant } = useDataGrid();
|
|
11
10
|
const { getLabel } = useModuleDictionary();
|
|
12
11
|
const menuActions = useMemo(() => {
|
|
@@ -16,21 +15,21 @@ function Density() {
|
|
|
16
15
|
return [
|
|
17
16
|
{
|
|
18
17
|
type: "menuItem",
|
|
19
|
-
startIcon:
|
|
18
|
+
startIcon: /* @__PURE__ */ jsx(LayoutDensityCompactOutlined, {}),
|
|
20
19
|
onClick: () => setRowHeightVariant("compact"),
|
|
21
20
|
disabled: currentRowHeightVariant === "compact",
|
|
22
21
|
label: getLabel(DICTIONARY.DENSITY_COMPACT)
|
|
23
22
|
},
|
|
24
23
|
{
|
|
25
24
|
type: "menuItem",
|
|
26
|
-
startIcon:
|
|
25
|
+
startIcon: /* @__PURE__ */ jsx(LayoutDensityStandardOutlined, {}),
|
|
27
26
|
onClick: () => setRowHeightVariant("standard"),
|
|
28
27
|
disabled: currentRowHeightVariant === "standard",
|
|
29
28
|
label: getLabel(DICTIONARY.DENSITY_STANDARD)
|
|
30
29
|
},
|
|
31
30
|
{
|
|
32
31
|
type: "menuItem",
|
|
33
|
-
startIcon:
|
|
32
|
+
startIcon: /* @__PURE__ */ jsx(LayoutDensityConfortableOutlined, {}),
|
|
34
33
|
onClick: () => setRowHeightVariant("confortable"),
|
|
35
34
|
disabled: currentRowHeightVariant === "confortable",
|
|
36
35
|
label: getLabel(DICTIONARY.DENSITY_CONFORTABLE)
|
|
@@ -40,19 +39,17 @@ function Density() {
|
|
|
40
39
|
rowHeights,
|
|
41
40
|
currentRowHeightVariant,
|
|
42
41
|
setRowHeightVariant,
|
|
43
|
-
host_static_assets,
|
|
44
|
-
environment_assets,
|
|
45
42
|
getLabel
|
|
46
43
|
]);
|
|
47
|
-
const
|
|
44
|
+
const currentViewIcon = useMemo(() => {
|
|
48
45
|
if (currentRowHeightVariant === "compact") {
|
|
49
|
-
return
|
|
46
|
+
return /* @__PURE__ */ jsx(LayoutDensityCompactOutlined, {});
|
|
50
47
|
}
|
|
51
48
|
if (currentRowHeightVariant === "standard") {
|
|
52
|
-
return
|
|
49
|
+
return /* @__PURE__ */ jsx(LayoutDensityStandardOutlined, {});
|
|
53
50
|
}
|
|
54
|
-
return
|
|
55
|
-
}, [currentRowHeightVariant
|
|
51
|
+
return /* @__PURE__ */ jsx(LayoutDensityConfortableOutlined, {});
|
|
52
|
+
}, [currentRowHeightVariant]);
|
|
56
53
|
if (menuActions.length === 0) {
|
|
57
54
|
return /* @__PURE__ */ jsx(Fragment, {});
|
|
58
55
|
}
|
|
@@ -63,7 +60,7 @@ function Density() {
|
|
|
63
60
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
64
61
|
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
65
62
|
menuActions,
|
|
66
|
-
icon:
|
|
63
|
+
icon: currentViewIcon,
|
|
67
64
|
toolTip: getLabel(DICTIONARY.DENSITY_TOOLTIP),
|
|
68
65
|
paperProps: { style: { marginTop: "5px" } }
|
|
69
66
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleDictionary, useEnvironment } from "@m4l/core";
|
|
3
3
|
import { p as pathIcons } from "../../../../icons.js";
|
|
4
|
+
import { LayoutDensityCompactOutlined, LayoutDensityStandardOutlined, LayoutDensityConfortableOutlined, SettingsConfigOutlined, MenuMoreVerticalOutlined } from "@m4l/icons";
|
|
4
5
|
import { u as useModalSettings } from "../../../../views/TableView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js";
|
|
5
6
|
import { u as useModalSettings$1 } from "../../../../views/CardsView/subcomponents/Settings/hooks/useModalSettings/useModalSettings.js";
|
|
6
7
|
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
@@ -21,21 +22,21 @@ const MobileMenuActions = (props) => {
|
|
|
21
22
|
const menuActions = [
|
|
22
23
|
{
|
|
23
24
|
type: "menuItem",
|
|
24
|
-
startIcon:
|
|
25
|
+
startIcon: /* @__PURE__ */ jsx(LayoutDensityCompactOutlined, {}),
|
|
25
26
|
onClick: () => setRowHeightVariant("compact"),
|
|
26
27
|
disabled: currentRowHeightVariant === "compact",
|
|
27
28
|
label: getLabel("data_grid.density_compact")
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
31
|
type: "menuItem",
|
|
31
|
-
startIcon:
|
|
32
|
+
startIcon: /* @__PURE__ */ jsx(LayoutDensityStandardOutlined, {}),
|
|
32
33
|
onClick: () => setRowHeightVariant("standard"),
|
|
33
34
|
disabled: currentRowHeightVariant === "standard",
|
|
34
35
|
label: getLabel("data_grid.density_standard")
|
|
35
36
|
},
|
|
36
37
|
{
|
|
37
38
|
type: "menuItem",
|
|
38
|
-
startIcon:
|
|
39
|
+
startIcon: /* @__PURE__ */ jsx(LayoutDensityConfortableOutlined, {}),
|
|
39
40
|
onClick: () => setRowHeightVariant("confortable"),
|
|
40
41
|
disabled: currentRowHeightVariant === "confortable",
|
|
41
42
|
label: getLabel("data_grid.density_confortable")
|
|
@@ -48,7 +49,7 @@ const MobileMenuActions = (props) => {
|
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
51
|
type: "menuItem",
|
|
51
|
-
startIcon:
|
|
52
|
+
startIcon: /* @__PURE__ */ jsx(SettingsConfigOutlined, {}),
|
|
52
53
|
onClick: () => modalSettings(),
|
|
53
54
|
label: getLabel("data_grid.tooltip_settings")
|
|
54
55
|
}
|
|
@@ -57,7 +58,7 @@ const MobileMenuActions = (props) => {
|
|
|
57
58
|
MenuActions,
|
|
58
59
|
{
|
|
59
60
|
className: "mobile-menu-actions",
|
|
60
|
-
icon:
|
|
61
|
+
icon: /* @__PURE__ */ jsx(MenuMoreVerticalOutlined, {}),
|
|
61
62
|
arrowType: "no-arrow",
|
|
62
63
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
63
64
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { jsxs, Fragment
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useMemo, useCallback } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
4
4
|
import { I as IconButton } from "../../../../../mui_extended/IconButton/IconButton.js";
|
|
5
5
|
import { P as Popover } from "../../../../../mui_extended/Popover/Popover.js";
|
|
6
|
-
import { p as pathIcons } from "../../../../icons.js";
|
|
7
6
|
import { D as DICTIONARY } from "../../../../dictionary.js";
|
|
8
7
|
import { g as ContainerToggleCardsStyled, h as CardToggleButtonStyled, T as TextToggleCardButtonStyled } from "../../../../slots/DataGridSlot.js";
|
|
8
|
+
import { LayoutTableOutlined, LayoutCardOutlined } from "@m4l/icons";
|
|
9
9
|
import { u as useDataGrid } from "../../../../hooks/shared/useDataGrid/useDataGrid.js";
|
|
10
10
|
import { I as Icon } from "../../../../../Icon/Icon.js";
|
|
11
11
|
function ViewMode() {
|
|
12
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
13
12
|
const { viewMode, onViewModeChange } = useDataGrid();
|
|
14
13
|
const { getLabel } = useModuleDictionary();
|
|
15
14
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
@@ -33,8 +32,8 @@ function ViewMode() {
|
|
|
33
32
|
},
|
|
34
33
|
[onViewModeChange, handleClose]
|
|
35
34
|
);
|
|
36
|
-
const
|
|
37
|
-
return viewMode === "table" ?
|
|
35
|
+
const RenderIconViewMode = useMemo(() => {
|
|
36
|
+
return viewMode === "table" ? /* @__PURE__ */ jsx(LayoutTableOutlined, {}) : /* @__PURE__ */ jsx(LayoutCardOutlined, {});
|
|
38
37
|
}, [viewMode]);
|
|
39
38
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40
39
|
/* @__PURE__ */ jsx(
|
|
@@ -43,8 +42,8 @@ function ViewMode() {
|
|
|
43
42
|
tooltip: getLabel(DICTIONARY.TOOLTIP_VIEW_MODE),
|
|
44
43
|
onClick: handleClick,
|
|
45
44
|
"aria-label": "view-mode",
|
|
46
|
-
icon:
|
|
47
|
-
|
|
45
|
+
icon: RenderIconViewMode,
|
|
46
|
+
dataTestId: "view-mode-button"
|
|
48
47
|
}
|
|
49
48
|
),
|
|
50
49
|
/* @__PURE__ */ jsx(
|
|
@@ -73,7 +72,7 @@ function ViewMode() {
|
|
|
73
72
|
/* @__PURE__ */ jsx(
|
|
74
73
|
Icon,
|
|
75
74
|
{
|
|
76
|
-
|
|
75
|
+
icon: /* @__PURE__ */ jsx(LayoutTableOutlined, {}),
|
|
77
76
|
color: viewMode === "table" ? "primary.enabled" : "text.disabled"
|
|
78
77
|
}
|
|
79
78
|
),
|
|
@@ -100,7 +99,7 @@ function ViewMode() {
|
|
|
100
99
|
/* @__PURE__ */ jsx(
|
|
101
100
|
Icon,
|
|
102
101
|
{
|
|
103
|
-
|
|
102
|
+
icon: /* @__PURE__ */ jsx(LayoutCardOutlined, {}),
|
|
104
103
|
color: viewMode === "cards" ? "primary.enabled" : "text.disabled"
|
|
105
104
|
}
|
|
106
105
|
),
|