@m4l/components 9.16.0 → 9.17.1-beta-feature-731-m4l-components-code-editor.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +11 -0
- package/components/DynamicFilter/DynamicFilter.styles.d.ts.map +1 -1
- package/components/DynamicFilter/DynamicFilter.styles.js +12 -2
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.d.ts.map +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +13 -13
- package/components/DynamicSort/DynamicSort.js +5 -5
- package/components/DynamicSort/DynamicSort.styles.d.ts.map +1 -1
- package/components/DynamicSort/DynamicSort.styles.js +217 -93
- package/components/DynamicSort/constants.js +4 -11
- package/components/DynamicSort/dictionary.d.ts +2 -0
- package/components/DynamicSort/dictionary.d.ts.map +1 -1
- package/components/DynamicSort/dictionary.js +10 -8
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +36 -0
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts.map +1 -1
- package/components/DynamicSort/slots/DynamicSortSlots.js +102 -64
- package/components/DynamicSort/slots/SlotsEnum.d.ts +10 -1
- package/components/DynamicSort/slots/SlotsEnum.d.ts.map +1 -1
- package/components/DynamicSort/slots/SlotsEnum.js +2 -2
- package/components/DynamicSort/subcomponents/AppliedSortChip/AppliedSortChip.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSortChip/AppliedSortChip.js +20 -15
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.d.ts +3 -2
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.js +19 -19
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.d.ts +3 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +86 -16
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts +10 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.js +29 -9
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.d.ts +2 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/DynamicSortBase/DynamicSortBase.js +9 -11
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.d.ts +2 -2
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/FieldTypes/StringSort/index.js +21 -21
- package/components/DynamicSort/subcomponents/FieldTypes/fieldFactory.d.ts +2 -1
- package/components/DynamicSort/subcomponents/FieldTypes/fieldFactory.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/FieldTypes/fieldFactory.js +2 -2
- package/components/DynamicSort/subcomponents/InputSort/InputSort.d.ts +2 -1
- package/components/DynamicSort/subcomponents/InputSort/InputSort.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/InputSort/InputSort.js +44 -35
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.d.ts +17 -41
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/InputSort/useInputSort.js +57 -81
- package/components/DynamicSort/subcomponents/OverflowSortPopover/OverflowSortPopover.d.ts +9 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/OverflowSortPopover.d.ts.map +1 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/OverflowSortPopover.js +85 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/index.d.ts +3 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/index.d.ts.map +1 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/types.d.ts +11 -0
- package/components/DynamicSort/subcomponents/OverflowSortPopover/types.d.ts.map +1 -0
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts +16 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +52 -30
- package/components/DynamicSort/subcomponents/SortActions/SortActions.d.ts +5 -4
- package/components/DynamicSort/subcomponents/SortActions/SortActions.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +35 -32
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.d.ts +4 -3
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.d.ts.map +1 -1
- package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +17 -18
- package/components/DynamicSort/types.d.ts +4 -0
- package/components/DynamicSort/types.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts +6 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +247 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts +3 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +297 -0
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts +82 -0
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/constants.js +149 -0
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +11 -0
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/dictionary.js +7 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts +59 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/highlighting.js +1063 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts +6 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/languageIcon.js +7 -0
- package/components/extended/ReactSimpleCodeEditor/index.d.ts +4 -0
- package/components/extended/ReactSimpleCodeEditor/index.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +18 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +4 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +84 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +63 -0
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts +3 -0
- package/components/extended/ReactSimpleCodeEditor/slots/index.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts +15 -0
- package/components/extended/ReactSimpleCodeEditor/storybookRuntime.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/types.d.ts +127 -0
- package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +1 -0
- package/components/extended/index.d.ts +1 -0
- package/components/extended/index.d.ts.map +1 -1
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts +7 -0
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.d.ts.map +1 -0
- package/components/hook-form/RHFCodeEditor/RHFCodeEditor.js +6 -0
- package/components/hook-form/RHFCodeEditor/index.d.ts +3 -0
- package/components/hook-form/RHFCodeEditor/index.d.ts.map +1 -0
- package/components/hook-form/index.d.ts +1 -0
- package/components/hook-form/index.d.ts.map +1 -1
- package/index.js +561 -548
- package/package.json +9 -6
- package/test/mocks/dictionary-mock.d.ts +3 -0
- package/test/mocks/dictionary-mock.d.ts.map +1 -1
- package/components/DynamicSort/icons.js +0 -7
|
@@ -40,4 +40,40 @@ export declare const PopoverHeaderActionsStyled: import('@emotion/styled').Style
|
|
|
40
40
|
export declare const InputSortInputSkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../extended/mui/Skeleton/types').SkeletonProps, keyof import('../../extended/mui/Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
41
41
|
ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
|
|
42
42
|
}, {}, {}>;
|
|
43
|
+
/** Wrapper de cada chip de sort para medición de overflow — idéntico a ChipWrapperStyled del DynamicFilter. */
|
|
44
|
+
export declare const ChipSortWrapperStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
45
|
+
ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
|
|
46
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
47
|
+
/** Trigger button que reemplaza el input visible — patrón idéntico al DynamicFilter. */
|
|
48
|
+
export declare const InputSortTriggerButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../..').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "title" | "component" | "size" | "variant" | "color" | "action" | "content" | "translate" | "className" | "style" | "classes" | "children" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "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" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "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" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "name" | "tooltip" | "value" | "instaceDataTestId" | "icon" | "selected" | "dataTestId" | "placement" | "rotationAngle" | "instanceDataTestId" | "disabled" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
49
|
+
ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
|
|
50
|
+
}, {}, {}>;
|
|
51
|
+
/** Label "Sin sorts aplicados" cuando no hay sorts. */
|
|
52
|
+
export declare const EmptyStateLabelStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('@m4l/base').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "title" | "component" | "zIndex" | "size" | "variant" | "color" | "dataTestid" | "paragraph" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "content" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "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" | "textTransform" | "top" | "translate" | "visibility" | "whiteSpace" | "width" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "children" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "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" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "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" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "disabled" | "ellipsis" | "skeletonWidth" | "align" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonRows" | "htmlFor" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
53
|
+
ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
|
|
54
|
+
}, {}, {}>;
|
|
55
|
+
/** Chip "Más (N)" que agrupa los sorts que no caben en el ancho disponible. */
|
|
56
|
+
export declare const OverflowMoreChipStyled: import('@emotion/styled').StyledComponent<Pick<import('../..').ChipProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../..').ChipProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
57
|
+
ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
|
|
58
|
+
}, {}, {}>;
|
|
59
|
+
/** Popover contenedor del listado de sorts overflow. */
|
|
60
|
+
export declare const OverflowSortPopoverStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/Popover/types').PopoverProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "onClose" | "title" | "component" | "size" | "color" | "action" | "content" | "transformOrigin" | "transitionDuration" | "translate" | "container" | "className" | "style" | "classes" | "children" | "sx" | "slots" | "slotProps" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "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" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "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" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "instaceDataTestId" | "anchorOrigin" | "componentsProps" | "components" | "open" | "TransitionComponent" | "TransitionProps" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onTransitionEnter" | "onTransitionExited" | "anchorEl" | "anchorPosition" | "anchorReference" | "elevation" | "marginThreshold" | "PaperProps" | "arrowType" | keyof import('react').RefAttributes<HTMLDivElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
61
|
+
ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
|
|
62
|
+
}, {}, {}>;
|
|
63
|
+
/** Lista vertical de sorts dentro del popover overflow. */
|
|
64
|
+
export declare const OverflowSortListStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
65
|
+
ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
|
|
66
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
67
|
+
/** Ítem clickeable dentro del popover overflow. */
|
|
68
|
+
export declare const OverflowSortItemStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
69
|
+
ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
|
|
70
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
71
|
+
/** Sección central del ítem (label + icono de dirección). */
|
|
72
|
+
export declare const OverflowSortItemHeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
73
|
+
ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
|
|
74
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
75
|
+
/** Label del campo dentro del ítem overflow. */
|
|
76
|
+
export declare const OverflowSortItemLabelStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
77
|
+
ownerState?: (Partial<import('../types').DynamicSortOwnerState> & Record<string, unknown>) | undefined;
|
|
78
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import('react').ClassAttributes<HTMLSpanElement> | keyof import('react').HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
43
79
|
//# sourceMappingURL=DynamicSortSlots.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicSortSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DynamicSort/slots/DynamicSortSlots.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DynamicSortSlots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DynamicSort/slots/DynamicSortSlots.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,UAAU;;6NAGI,CAAC;AAC5B,eAAO,MAAM,oBAAoB;;6NAGI,CAAC;AACtC,eAAO,MAAM,eAAe;;6NAGI,CAAC;AACjC,eAAO,MAAM,oBAAoB;;+OAGI,CAAC;AACtC,eAAO,MAAM,kBAAkB;;6NAGI,CAAC;AACpC,eAAO,MAAM,+BAA+B;;6NAGI,CAAC;AACjD,eAAO,MAAM,aAAa;;6NAGI,CAAC;AAC/B,eAAO,MAAM,wBAAwB;;UAGI,CAAC;AAC1C,eAAO,MAAM,yBAAyB;;UAGI,CAAC;AAC3C,eAAO,MAAM,iBAAiB;;UAGI,CAAC;AACnC,eAAO,MAAM,aAAa;;UAGQ,CAAC;AACnC,eAAO,MAAM,4BAA4B;;6NAGQ,CAAC;AAClD,eAAO,MAAM,0BAA0B;;UAGE,CAAC;AAE1C,eAAO,MAAM,4BAA4B;;UAGD,CAAC;AAEzC,+GAA+G;AAC/G,eAAO,MAAM,qBAAqB;;6NAGA,CAAC;AAEnC,wFAAwF;AACxF,eAAO,MAAM,4BAA4B;;UAGI,CAAC;AAE9C,uDAAuD;AACvD,eAAO,MAAM,qBAAqB;;UAGI,CAAC;AAEvC,+EAA+E;AAC/E,eAAO,MAAM,sBAAsB;;UAGI,CAAC;AAExC,wDAAwD;AACxD,eAAO,MAAM,yBAAyB;;UAGI,CAAC;AAE3C,2DAA2D;AAC3D,eAAO,MAAM,sBAAsB;;6NAGI,CAAC;AAExC,mDAAmD;AACnD,eAAO,MAAM,sBAAsB;;6NAGI,CAAC;AAExC,6DAA6D;AAC7D,eAAO,MAAM,4BAA4B;;6NAGI,CAAC;AAE9C,gDAAgD;AAChD,eAAO,MAAM,2BAA2B;;iOAGI,CAAC"}
|
|
@@ -1,67 +1,105 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { IconButton as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
import { styled as o } from "@mui/material/styles";
|
|
2
|
+
import { Chip as p } from "../../Chip/Chip.js";
|
|
3
|
+
import { dynamicSortStyles as t } from "../DynamicSort.styles.js";
|
|
4
|
+
import { DYNAMIC_SORT_KEY_COMPONENT as e } from "../constants.js";
|
|
5
|
+
import { DynamicSortSlots as r } from "./SlotsEnum.js";
|
|
6
|
+
import { IconButton as n } from "../../extended/mui/IconButton/IconButton.js";
|
|
7
|
+
import { Typography as i } from "../../extended/mui/Typography/Typography.js";
|
|
8
|
+
import { ActionsContainer as S } from "../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
9
|
+
import { Skeleton as s } from "../../extended/mui/Skeleton/Skeleton.js";
|
|
10
|
+
import { Popover as l } from "../../extended/mui/Popover/Popover.js";
|
|
11
|
+
const w = o("div", {
|
|
12
|
+
name: e,
|
|
13
|
+
slot: r.root
|
|
14
|
+
})(t?.root), A = o("div", {
|
|
15
|
+
name: e,
|
|
16
|
+
slot: r.innerContainer
|
|
17
|
+
})(t?.innerContainer), B = o("div", {
|
|
18
|
+
name: e,
|
|
19
|
+
slot: r.inputSort
|
|
20
|
+
})(t?.inputSort), b = o("input", {
|
|
21
|
+
name: e,
|
|
22
|
+
slot: r.inputSortInput
|
|
23
|
+
})(t?.inputSortInput), L = o("div", {
|
|
24
|
+
name: e,
|
|
25
|
+
slot: r.appliedSorts
|
|
26
|
+
})(t?.appliedSorts), O = o("div", {
|
|
27
|
+
name: e,
|
|
28
|
+
slot: r.appliedSortInnerContainer
|
|
29
|
+
})(t?.appliedSortInnerContainer), P = o("div", {
|
|
30
|
+
name: e,
|
|
31
|
+
slot: r.actions
|
|
32
|
+
})(t?.actions), h = o(n, {
|
|
33
|
+
name: e,
|
|
34
|
+
slot: r.actionsClearButton
|
|
35
|
+
})(t?.actionsClearButton), M = o(n, {
|
|
36
|
+
name: e,
|
|
37
|
+
slot: r.actionsSubmitButton
|
|
38
|
+
})(t?.actionsSubmitButton), g = o(l, {
|
|
39
|
+
name: e,
|
|
40
|
+
slot: r.popoverMenu
|
|
41
|
+
})(t?.popoverMenu), T = o(l, {
|
|
42
|
+
name: e,
|
|
43
|
+
slot: r.popoverSort
|
|
44
|
+
})(t?.popoverSort), k = o("div", {
|
|
45
|
+
name: e,
|
|
46
|
+
slot: r.popoverSortContainerFields
|
|
47
|
+
})(t?.popoverSortContainerFields), H = o(S, {
|
|
48
|
+
name: e,
|
|
49
|
+
slot: r.popoverSortActions
|
|
50
|
+
})(t?.popoverSortActions), E = o(s, {
|
|
51
|
+
name: e,
|
|
52
|
+
slot: r.inputSortSkeleton
|
|
53
|
+
})(t?.inputSortSkeleton), F = o("div", {
|
|
54
|
+
name: e,
|
|
55
|
+
slot: r.chipWrapper
|
|
56
|
+
})(t?.chipWrapper), N = o(n, {
|
|
57
|
+
name: e,
|
|
58
|
+
slot: r.inputSortTriggerButton
|
|
59
|
+
})(t?.inputSortTriggerButton), W = o(i, {
|
|
60
|
+
name: e,
|
|
61
|
+
slot: r.emptyStateLabel
|
|
62
|
+
})(t?.emptyStateLabel), _ = o(p, {
|
|
63
|
+
name: e,
|
|
64
|
+
slot: r.overflowMoreChip
|
|
65
|
+
})(t?.overflowMoreChip), D = o(l, {
|
|
66
|
+
name: e,
|
|
67
|
+
slot: r.overflowSortPopover
|
|
68
|
+
})(t?.overflowSortPopover), R = o("div", {
|
|
69
|
+
name: e,
|
|
70
|
+
slot: r.overflowSortList
|
|
71
|
+
})(t?.overflowSortList), Y = o("div", {
|
|
72
|
+
name: e,
|
|
73
|
+
slot: r.overflowSortItem
|
|
74
|
+
})(t?.overflowSortItem), x = o("div", {
|
|
75
|
+
name: e,
|
|
76
|
+
slot: r.overflowSortItemHeader
|
|
77
|
+
})(t?.overflowSortItemHeader), K = o("span", {
|
|
78
|
+
name: e,
|
|
79
|
+
slot: r.overflowSortItemLabel
|
|
80
|
+
})(t?.overflowSortItemLabel);
|
|
52
81
|
export {
|
|
53
|
-
|
|
82
|
+
h as ActionsClearButtonStyled,
|
|
54
83
|
P as ActionsStyled,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
A as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
84
|
+
M as ActionsSubmitButtonStyled,
|
|
85
|
+
O as AppliedSortInnerContainerStyled,
|
|
86
|
+
L as AppliedSortsStyled,
|
|
87
|
+
F as ChipSortWrapperStyled,
|
|
88
|
+
W as EmptyStateLabelStyled,
|
|
89
|
+
A as InnerContainerStyled,
|
|
90
|
+
E as InputSortInputSkeletonStyled,
|
|
91
|
+
b as InputSortInputStyled,
|
|
92
|
+
B as InputSortStyled,
|
|
93
|
+
N as InputSortTriggerButtonStyled,
|
|
94
|
+
_ as OverflowMoreChipStyled,
|
|
95
|
+
x as OverflowSortItemHeaderStyled,
|
|
96
|
+
K as OverflowSortItemLabelStyled,
|
|
97
|
+
Y as OverflowSortItemStyled,
|
|
98
|
+
R as OverflowSortListStyled,
|
|
99
|
+
D as OverflowSortPopoverStyled,
|
|
100
|
+
k as PopoverContainerFieldsStyled,
|
|
101
|
+
H as PopoverHeaderActionsStyled,
|
|
102
|
+
g as PopoverMenuStyled,
|
|
103
|
+
T as PopoverStyled,
|
|
104
|
+
w as RootStyled
|
|
67
105
|
};
|
|
@@ -12,6 +12,15 @@ export declare enum DynamicSortSlots {
|
|
|
12
12
|
popoverSort = "popoverSort",
|
|
13
13
|
popoverSortContainerFields = "popoverSortContainerFields",
|
|
14
14
|
popoverSortActions = "popoverSortActions",
|
|
15
|
-
inputSortSkeleton = "inputSortSkeleton"
|
|
15
|
+
inputSortSkeleton = "inputSortSkeleton",
|
|
16
|
+
chipWrapper = "chipWrapper",
|
|
17
|
+
inputSortTriggerButton = "inputSortTriggerButton",
|
|
18
|
+
emptyStateLabel = "emptyStateLabel",
|
|
19
|
+
overflowMoreChip = "overflowMoreChip",
|
|
20
|
+
overflowSortPopover = "overflowSortPopover",
|
|
21
|
+
overflowSortList = "overflowSortList",
|
|
22
|
+
overflowSortItem = "overflowSortItem",
|
|
23
|
+
overflowSortItemHeader = "overflowSortItemHeader",
|
|
24
|
+
overflowSortItemLabel = "overflowSortItemLabel"
|
|
16
25
|
}
|
|
17
26
|
//# sourceMappingURL=SlotsEnum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlotsEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DynamicSort/slots/SlotsEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,yBAAyB,8BAA8B;IACvD,OAAO,YAAY;IACnB,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,0BAA0B,+BAA+B;IACzD,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;
|
|
1
|
+
{"version":3,"file":"SlotsEnum.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/DynamicSort/slots/SlotsEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,yBAAyB,8BAA8B;IACvD,OAAO,YAAY;IACnB,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,0BAA0B,+BAA+B;IACzD,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;IAC3B,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IACrC,gBAAgB,qBAAqB;IACrC,sBAAsB,2BAA2B;IACjD,qBAAqB,0BAA0B;CAChD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var r = /* @__PURE__ */ ((e) => (e.root = "root", e.innerContainer = "innerContainer", e.inputSort = "inputSort", e.inputSortInput = "inputSortInput", e.appliedSorts = "appliedSorts", e.appliedSortInnerContainer = "appliedSortInnerContainer", e.actions = "actions", e.actionsClearButton = "actionsClearButton", e.actionsSubmitButton = "actionsSubmitButton", e.popoverMenu = "popoverMenu", e.popoverSort = "popoverSort", e.popoverSortContainerFields = "popoverSortContainerFields", e.popoverSortActions = "popoverSortActions", e.inputSortSkeleton = "inputSortSkeleton", e.chipWrapper = "chipWrapper", e.inputSortTriggerButton = "inputSortTriggerButton", e.emptyStateLabel = "emptyStateLabel", e.overflowMoreChip = "overflowMoreChip", e.overflowSortPopover = "overflowSortPopover", e.overflowSortList = "overflowSortList", e.overflowSortItem = "overflowSortItem", e.overflowSortItemHeader = "overflowSortItemHeader", e.overflowSortItemLabel = "overflowSortItemLabel", e))(r || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
r as DynamicSortSlots
|
|
4
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppliedSortChip.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/AppliedSortChip/AppliedSortChip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppliedSortChip.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/AppliedSortChip/AppliedSortChip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD;;GAEG;AACH,iBAAS,eAAe,CAAC,KAAK,EAAE,gBAAgB,oDA0B/C;AACD,eAAe,eAAe,CAAC"}
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import p from "
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as e } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { isValidElement as d, cloneElement as m } from "react";
|
|
3
|
+
import { Chip as p } from "../../../Chip/Chip.js";
|
|
4
|
+
import f from "../DynamicSortBase/useDynamicSortBase.js";
|
|
5
|
+
import u from "./useAppliedSortChip.js";
|
|
6
|
+
import { Icon as h } from "../../../Icon/Icon.js";
|
|
7
|
+
function E(t) {
|
|
8
|
+
const { fixed: n } = t, { onEditSort: r, onDelete: l, iconFieldUrl: o, labels: c, SortDirectionIcon: a } = u(t), { size: i } = f(), s = d(o) ? m(o, {
|
|
9
|
+
size: i,
|
|
10
|
+
color: "chips.default.contained.color"
|
|
11
|
+
}) : o;
|
|
12
|
+
return /* @__PURE__ */ e(
|
|
13
|
+
p,
|
|
9
14
|
{
|
|
10
15
|
opacity: !0,
|
|
11
16
|
variant: "contained",
|
|
12
|
-
onClick:
|
|
13
|
-
startIcon:
|
|
14
|
-
label:
|
|
15
|
-
endIcon:
|
|
16
|
-
size:
|
|
17
|
-
onDeleted:
|
|
17
|
+
onClick: r,
|
|
18
|
+
startIcon: s,
|
|
19
|
+
label: c.labelField,
|
|
20
|
+
endIcon: /* @__PURE__ */ e(h, { size: "small", src: /* @__PURE__ */ e(a, {}), color: "chips.default.contained.color" }),
|
|
21
|
+
size: i,
|
|
22
|
+
onDeleted: n ? void 0 : l
|
|
18
23
|
}
|
|
19
24
|
);
|
|
20
25
|
}
|
|
21
26
|
export {
|
|
22
|
-
|
|
27
|
+
E as default
|
|
23
28
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
2
|
import { SortFieldApplied } from '../../types';
|
|
3
3
|
/**
|
|
4
|
-
* Hook que permite obtener los datos necesarios para mostrar un chip de sort aplicado
|
|
4
|
+
* Hook que permite obtener los datos necesarios para mostrar un chip de sort aplicado.
|
|
5
|
+
* Usa @m4l/icons directamente — sin URLs de S3.
|
|
5
6
|
*/
|
|
6
7
|
declare function useAppliedSortChip(sort: SortFieldApplied): {
|
|
7
8
|
onDelete: () => void;
|
|
8
9
|
onEditSort: (_event: MouseEvent<HTMLButtonElement>) => void;
|
|
9
10
|
iconFieldUrl: string;
|
|
10
11
|
labels: import('../../types').DataTypeFilerLabels;
|
|
11
|
-
|
|
12
|
+
SortDirectionIcon: import('react').FunctionComponent<{}>;
|
|
12
13
|
};
|
|
13
14
|
export default useAppliedSortChip;
|
|
14
15
|
//# sourceMappingURL=useAppliedSortChip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppliedSortChip.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAppliedSortChip.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/AppliedSortChip/useAppliedSortChip.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,UAAU,EAAW,MAAM,OAAO,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD;;;GAGG;AACH,iBAAS,kBAAkB,CAAC,IAAI,EAAE,gBAAgB;;yBAuBpB,UAAU,CAAC,iBAAiB,CAAC;;;;EAW1D;AACD,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { fieldFactory as
|
|
7
|
-
function
|
|
8
|
-
const {
|
|
9
|
-
(
|
|
10
|
-
),
|
|
11
|
-
function
|
|
12
|
-
|
|
1
|
+
import { useModuleDictionary as u } from "@m4l/core";
|
|
2
|
+
import { ActionsSortAscOutlined as a, ActionsSortDescOutlined as d } from "@m4l/icons";
|
|
3
|
+
import { useFormatter as p } from "@m4l/graphics";
|
|
4
|
+
import { useMemo as S } from "react";
|
|
5
|
+
import { useDynamicSortStore as D } from "../../store/useDynamicSortStore.js";
|
|
6
|
+
import { fieldFactory as v } from "../FieldTypes/fieldFactory.js";
|
|
7
|
+
function E(o) {
|
|
8
|
+
const { getLabel: e } = u(), t = p(), { hidePopoverSort: r, removeSort: n, showPopoverSortForEdit: c } = D(
|
|
9
|
+
(i) => i.actions
|
|
10
|
+
), l = o.operator === "asc" ? a : d, m = S(() => v().getLabels(o, e, t, o.field), [o, e, t]);
|
|
11
|
+
function s() {
|
|
12
|
+
r(!1), n(o.id);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
14
|
+
function f(i) {
|
|
15
|
+
r(!1), setTimeout(() => c(o), 10);
|
|
16
16
|
}
|
|
17
17
|
return {
|
|
18
|
-
onDelete:
|
|
19
|
-
onEditSort:
|
|
18
|
+
onDelete: s,
|
|
19
|
+
onEditSort: f,
|
|
20
20
|
iconFieldUrl: o.field?.urlIcon,
|
|
21
|
-
labels:
|
|
22
|
-
|
|
21
|
+
labels: m,
|
|
22
|
+
SortDirectionIcon: l
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
E as default
|
|
27
27
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* AppliedSorts
|
|
2
|
+
* AppliedSorts: Renderiza los chips de sorts aplicados con detección de overflow.
|
|
3
|
+
* Cuando los chips no caben en el ancho disponible, muestra un chip "Más (N)"
|
|
4
|
+
* que abre el OverflowSortPopover con los sorts ocultos.
|
|
3
5
|
*/
|
|
4
6
|
declare function AppliedSorts(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
7
|
export default AppliedSorts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppliedSorts.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppliedSorts.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.tsx"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH,iBAAS,YAAY,qDAqFpB;AACD,eAAe,YAAY,CAAC"}
|
|
@@ -1,22 +1,92 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as e, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useModuleDictionary as T } from "@m4l/core";
|
|
3
|
+
import { useState as E, useCallback as s } from "react";
|
|
4
|
+
import { getPropDataTestId as I } from "../../../../test/getNameDataTestId.js";
|
|
5
|
+
import { DYNAMIC_SORT_KEY_COMPONENT as R } from "../../constants.js";
|
|
6
|
+
import { getDynamicSortDictionary as m, DICCTIONARY as c } from "../../dictionary.js";
|
|
7
|
+
import { DynamicSortSlots as _ } from "../../slots/SlotsEnum.js";
|
|
8
|
+
import M from "../DynamicSortBase/useDynamicSortBase.js";
|
|
9
|
+
import { useDynamicSortStore as k } from "../../store/useDynamicSortStore.js";
|
|
10
|
+
import N from "./useAppliedSorts.js";
|
|
11
|
+
import { AppliedSortsStyled as f, AppliedSortInnerContainerStyled as P, ChipSortWrapperStyled as x, EmptyStateLabelStyled as Y, OverflowMoreChipStyled as j } from "../../slots/DynamicSortSlots.js";
|
|
12
|
+
import L from "../AppliedSortChip/AppliedSortChip.js";
|
|
13
|
+
import { Typography as $ } from "../../../extended/mui/Typography/Typography.js";
|
|
14
|
+
import z from "../SortActions/SortActions.js";
|
|
15
|
+
import B from "../OverflowSortPopover/OverflowSortPopover.js";
|
|
16
|
+
function re() {
|
|
17
|
+
const {
|
|
18
|
+
visibleSorts: i,
|
|
19
|
+
overflowSorts: t,
|
|
20
|
+
isSkeleton: d,
|
|
21
|
+
parentRef: S,
|
|
22
|
+
containerRef: h,
|
|
23
|
+
setChipRef: y,
|
|
24
|
+
setMoreChipRef: u,
|
|
25
|
+
setActionsRef: C
|
|
26
|
+
} = N(), { dataTestId: v, ownerState: w, size: n } = M(), { getLabel: l } = T(), { openPopoverMenuFields: A } = k((o) => o.actions), [r, a] = E(null), b = s((o) => {
|
|
27
|
+
a(o.currentTarget);
|
|
28
|
+
}, []), g = s(() => {
|
|
29
|
+
a(null);
|
|
30
|
+
}, []);
|
|
31
|
+
if (d)
|
|
32
|
+
return /* @__PURE__ */ e(f, {});
|
|
33
|
+
const D = i.length === 0 && t.length === 0;
|
|
34
|
+
return /* @__PURE__ */ p(
|
|
35
|
+
f,
|
|
13
36
|
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
37
|
+
ref: S,
|
|
38
|
+
...I(R, _.appliedSorts, v),
|
|
39
|
+
ownerState: { ...w },
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ p(P, { ref: h, children: [
|
|
42
|
+
i.map((o) => /* @__PURE__ */ e(
|
|
43
|
+
x,
|
|
44
|
+
{
|
|
45
|
+
ref: (O) => y(o.id, O),
|
|
46
|
+
children: /* @__PURE__ */ e(L, { ...o })
|
|
47
|
+
},
|
|
48
|
+
o.id
|
|
49
|
+
)),
|
|
50
|
+
D && /* @__PURE__ */ e(
|
|
51
|
+
Y,
|
|
52
|
+
{
|
|
53
|
+
"data-testid": "empty-state-label",
|
|
54
|
+
component: "span",
|
|
55
|
+
variant: "body",
|
|
56
|
+
size: n,
|
|
57
|
+
color: "inherit",
|
|
58
|
+
onClick: A,
|
|
59
|
+
children: l(m(c.label_no_sorts_applied))
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] }),
|
|
63
|
+
t.length > 0 && /* @__PURE__ */ e(
|
|
64
|
+
j,
|
|
65
|
+
{
|
|
66
|
+
ref: u,
|
|
67
|
+
size: n,
|
|
68
|
+
variant: "contained",
|
|
69
|
+
color: r ? "info" : "default",
|
|
70
|
+
opacity: !0,
|
|
71
|
+
dataTestId: "overflow-more-chip",
|
|
72
|
+
ownerState: { selected: !!r },
|
|
73
|
+
label: /* @__PURE__ */ e($, { component: "span", variant: "bodyDens", size: n, color: "inherit", children: `${l(m(c.label_more))} (${t.length})` }),
|
|
74
|
+
onClick: b
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ e(z, { ref: C }),
|
|
78
|
+
r && t.length > 0 && /* @__PURE__ */ e(
|
|
79
|
+
B,
|
|
80
|
+
{
|
|
81
|
+
anchorEl: r,
|
|
82
|
+
sorts: t,
|
|
83
|
+
onClose: g
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
]
|
|
17
87
|
}
|
|
18
88
|
);
|
|
19
89
|
}
|
|
20
90
|
export {
|
|
21
|
-
|
|
91
|
+
re as default
|
|
22
92
|
};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hook que
|
|
2
|
+
* Hook que provee los sorts aplicados ordenados + overflow detection
|
|
3
|
+
* mediante useChipsOverflow (mismo hook que usa DynamicFilter/AppliedFilters).
|
|
4
|
+
* Usa useMemo para evitar crear un nuevo array en cada render (evita re-render loop).
|
|
3
5
|
*/
|
|
4
6
|
declare function useAppliedSorts(): {
|
|
5
7
|
appliedSortsSorted: import('../..').SortFieldApplied[];
|
|
8
|
+
visibleSorts: import('../..').SortFieldApplied[];
|
|
9
|
+
overflowSorts: import('../..').SortFieldApplied[];
|
|
6
10
|
isSkeleton: boolean;
|
|
11
|
+
parentRef: import('react').RefObject<HTMLDivElement | null>;
|
|
12
|
+
containerRef: import('react').RefObject<HTMLDivElement | null>;
|
|
13
|
+
setChipRef: (id: number, el: HTMLElement | null) => void;
|
|
14
|
+
setMoreChipRef: (el: HTMLElement | null) => void;
|
|
15
|
+
setActionsRef: (el: HTMLElement | null) => void;
|
|
7
16
|
};
|
|
8
17
|
export default useAppliedSorts;
|
|
9
18
|
//# sourceMappingURL=useAppliedSorts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppliedSorts.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAppliedSorts.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,iBAAS,eAAe;;;;;;;;;;EAmCvB;AACD,eAAe,eAAe,CAAC"}
|