@m4l/components 9.2.10 → 9.2.12
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/DataGrid/formatters/ColumnBooleanFormatter/useColumnBoolean.js +15 -5
- package/components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatusFormatter.js +15 -5
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/useColumnConcatenatedValue.js +15 -5
- package/components/DataGrid/formatters/ColumnDateFormatter/useColumnDate.js +18 -7
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/useColumnInteractiveCheck.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/useColumnInteractiveCheck.js +15 -5
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/useColumnNestedValue.js +15 -5
- package/components/DataGrid/formatters/ColumnPointsFormatter/useColumnPoints.js +15 -5
- package/components/DataGrid/formatters/ColumnPriceFormatter/useColumnPrice.js +18 -8
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.d.ts +1 -1
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/useColumnSetCheck.js +16 -6
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/useColumnUncertainty.js +16 -6
- package/components/DynamicFilter/DynamicFIlter.styles.js +123 -222
- package/components/DynamicFilter/slots/SlotsEnum.d.ts +3 -14
- package/components/DynamicFilter/slots/SlotsEnum.js +2 -13
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +5 -38
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +27 -80
- package/components/DynamicFilter/store/DynamicFilterContext.js +17 -2
- package/components/DynamicFilter/store/DynamicFilterStore.js +12 -1
- package/components/DynamicFilter/store/types.d.ts +10 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/AppliedFilterChip.js +17 -21
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/AppliedFilterChip/useAppliedFilterChip.js +1 -4
- package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +2 -3
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.js +2 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/fieldFactory.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +8 -9
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +1 -5
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilter.js +31 -23
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.d.ts +8 -0
- package/components/DynamicFilter/subcomponents/InputFilter/useInputFilter.js +10 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +12 -7
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +6 -3
- package/components/DynamicFilter/tests/DynamicFilter.test.d.ts +1 -0
- package/components/DynamicFilter/tests/constants.d.ts +9 -0
- package/components/DynamicFilter/types.d.ts +9 -0
- package/components/DynamicSort/DynamicSort.styles.js +61 -112
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -14
- package/components/DynamicSort/slots/DynamicSortSlots.js +17 -40
- package/components/DynamicSort/slots/SlotsEnum.d.ts +1 -5
- package/components/DynamicSort/slots/SlotsEnum.js +1 -5
- package/components/DynamicSort/slots/tests/DynamicSort.test.d.ts +1 -0
- package/components/DynamicSort/store/DynamicSortContext.js +5 -2
- package/components/DynamicSort/subcomponents/AppliedSortChip/AppliedSortChip.js +2 -3
- package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +2 -3
- package/components/DynamicSort/subcomponents/InputSort/InputSort.js +5 -4
- package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +6 -5
- package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +11 -8
- package/components/DynamicSort/subcomponents/SortActions/SortActions.js +1 -1
- package/package.json +1 -1
- package/storybook/components/DynamicFilter/mocks/mocksData.d.ts +1 -0
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActionsSkeleton.d.ts +0 -5
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActionsSkeleton.js +0 -12
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilterSkeleton.d.ts +0 -5
- package/components/DynamicFilter/subcomponents/InputFilter/InputFilterSkeleton.js +0 -19
- package/utils/containerQuery.js +0 -6
- /package/components/DynamicFilter/{__tests__/DynamicFilter.test.d.ts → store/tests/DynamicFilterStore.test.d.ts} +0 -0
|
@@ -10,42 +10,15 @@ export declare const InputFilterStyled: import('@emotion/styled').StyledComponen
|
|
|
10
10
|
export declare const InputFilterInputStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
11
11
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
12
12
|
}, Pick<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof import('react').ClassAttributes<HTMLInputElement> | keyof import('react').InputHTMLAttributes<HTMLInputElement>>, {}>;
|
|
13
|
-
export declare const InputFilterIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
14
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
15
|
-
}, {}, {}>;
|
|
16
13
|
export declare const AppliedFiltersStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
17
14
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
18
15
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
16
|
export declare const AppliedFilterInnerContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
20
17
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
21
18
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
22
|
-
export declare const AppliedFilterChipStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
23
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
24
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
25
|
-
export declare const AppliedFilterChipIconStyled: 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" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "componentPaletteColor" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
26
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
27
|
-
}, {}, {}>;
|
|
28
|
-
export declare const AppliedFilterChipInfoStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
29
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
30
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, keyof import('react').ClassAttributes<HTMLButtonElement> | keyof import('react').ButtonHTMLAttributes<HTMLButtonElement>>, {}>;
|
|
31
|
-
export declare const AppliedFilterChipInfoFieldNameStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
32
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
33
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import('react').ClassAttributes<HTMLSpanElement> | keyof import('react').HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
34
|
-
export declare const AppliedFilterChipInfoOperatorStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
35
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
36
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import('react').ClassAttributes<HTMLSpanElement> | keyof import('react').HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
37
|
-
export declare const AppliedFilterChipInfoOperandsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
38
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
39
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import('react').ClassAttributes<HTMLSpanElement> | keyof import('react').HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
40
|
-
export declare const AppliedFilterChipRemoveButtonStyled: 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" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "componentPaletteColor" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
41
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
42
|
-
}, {}, {}>;
|
|
43
19
|
export declare const ActionsStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
44
20
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
45
21
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
46
|
-
export declare const ActionsSkeletonButtonStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
47
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
48
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
49
22
|
export declare const ActionsClearButtonStyled: 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" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "componentPaletteColor" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
50
23
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
51
24
|
}, {}, {}>;
|
|
@@ -55,15 +28,6 @@ export declare const ActionsSubmitButtonStyled: import('@emotion/styled').Styled
|
|
|
55
28
|
export declare const PopoverMenuStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Popover/types').PopoverProps, keyof import('../../mui_extended/Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
56
29
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
57
30
|
}, {}, {}>;
|
|
58
|
-
export declare const PopoverMenuItemStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/MenuItem').MenuItemProps, keyof import('../../mui_extended/MenuItem').MenuItemProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
59
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
60
|
-
}, {}, {}>;
|
|
61
|
-
export declare const PopoverMenuItemIconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Icon').IconProps, keyof import('../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
62
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
63
|
-
}, {}, {}>;
|
|
64
|
-
export declare const PopoverMenuItemLabelStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
65
|
-
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
66
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
67
31
|
export declare const PopoverStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Popover/types').PopoverProps, keyof import('../../mui_extended/Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
68
32
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
69
33
|
}, {}, {}>;
|
|
@@ -73,12 +37,15 @@ export declare const PopoverContainerFieldsStyled: import('@emotion/styled').Sty
|
|
|
73
37
|
export declare const PopoverHeaderStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
74
38
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
75
39
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
76
|
-
export declare const
|
|
40
|
+
export declare const ContentFilterStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
77
41
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
78
|
-
},
|
|
42
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
79
43
|
export declare const PopoverHeaderTitleStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Typography/types').TypographyProps, keyof import('../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
80
44
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
81
45
|
}, {}, {}>;
|
|
82
46
|
export declare const PopoverHeaderActionsStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CommonActions/components/ActionsContainer').ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../CommonActions/components/ActionsContainer').ActionsContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
83
47
|
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
84
48
|
}, {}, {}>;
|
|
49
|
+
export declare const InputFilterInputSkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../mui_extended/Skeleton/types').SkeletonProps, keyof import('../../mui_extended/Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
|
|
50
|
+
ownerState: Partial<import('../types').DynamicFilterOwnerState> & Record<string, unknown>;
|
|
51
|
+
}, {}, {}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
2
|
import { D as DYNAMIC_FILTER_KEY_COMPONENT } from "../constants.js";
|
|
3
|
-
import { D as DynamicFilterSlots } from "./SlotsEnum.js";
|
|
4
3
|
import { d as dynamicFilterStyles } from "../DynamicFIlter.styles.js";
|
|
4
|
+
import { D as DynamicFilterSlots } from "./SlotsEnum.js";
|
|
5
|
+
import { S as Skeleton } from "../../mui_extended/Skeleton/Skeleton.js";
|
|
5
6
|
import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
|
|
6
7
|
import { T as Typography } from "../../mui_extended/Typography/Typography.js";
|
|
7
8
|
import { A as ActionsContainer } from "../../CommonActions/components/ActionsContainer/ActionsContainer.js";
|
|
8
|
-
import { I as Icon } from "../../Icon/Icon.js";
|
|
9
9
|
import { P as Popover } from "../../mui_extended/Popover/Popover.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
);
|
|
10
|
+
const RootStyled = styled("div", {
|
|
11
|
+
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
12
|
+
slot: DynamicFilterSlots.root
|
|
13
|
+
})(dynamicFilterStyles?.root);
|
|
14
14
|
const InnerContainerStyled = styled("div", {
|
|
15
15
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
16
16
|
slot: DynamicFilterSlots.innerContainer
|
|
@@ -23,10 +23,6 @@ const InputFilterInputStyled = styled("input", {
|
|
|
23
23
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
24
24
|
slot: DynamicFilterSlots.inputFilterInput
|
|
25
25
|
})(dynamicFilterStyles?.inputFilterInput);
|
|
26
|
-
const InputFilterIconStyled = styled(Icon, {
|
|
27
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
28
|
-
slot: DynamicFilterSlots.inputFilterIcon
|
|
29
|
-
})(dynamicFilterStyles?.inputFilterIcon);
|
|
30
26
|
const AppliedFiltersStyled = styled("div", {
|
|
31
27
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
32
28
|
slot: DynamicFilterSlots.appliedFilters
|
|
@@ -35,42 +31,10 @@ const AppliedFilterInnerContainerStyled = styled("div", {
|
|
|
35
31
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
36
32
|
slot: DynamicFilterSlots.appliedFilterInnerContainer
|
|
37
33
|
})(dynamicFilterStyles?.appliedFilterInnerContainer);
|
|
38
|
-
const AppliedFilterChipStyled = styled("div", {
|
|
39
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
40
|
-
slot: DynamicFilterSlots.appliedFilterChip
|
|
41
|
-
})(dynamicFilterStyles?.appliedFilterChip);
|
|
42
|
-
const AppliedFilterChipIconStyled = styled(IconButton, {
|
|
43
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
44
|
-
slot: DynamicFilterSlots.appliedFilterChipIcon
|
|
45
|
-
})(dynamicFilterStyles?.appliedFilterChipIcon);
|
|
46
|
-
const AppliedFilterChipInfoStyled = styled("button", {
|
|
47
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
48
|
-
slot: DynamicFilterSlots.appliedFilterChipInfo
|
|
49
|
-
})(dynamicFilterStyles?.appliedFilterChipInfo);
|
|
50
|
-
const AppliedFilterChipInfoFieldNameStyled = styled("span", {
|
|
51
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
52
|
-
slot: DynamicFilterSlots.appliedFilterChipInfoFieldName
|
|
53
|
-
})(dynamicFilterStyles?.appliedFilterChipInfoFieldName);
|
|
54
|
-
const AppliedFilterChipInfoOperatorStyled = styled("span", {
|
|
55
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
56
|
-
slot: DynamicFilterSlots.appliedFilterChipInfoOperator
|
|
57
|
-
})(dynamicFilterStyles?.appliedFilterChipInfoOperator);
|
|
58
|
-
const AppliedFilterChipInfoOperandsStyled = styled("span", {
|
|
59
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
60
|
-
slot: DynamicFilterSlots.appliedFilterChipInfoOperands
|
|
61
|
-
})(dynamicFilterStyles?.appliedFilterChipInfoOperands);
|
|
62
|
-
const AppliedFilterChipRemoveButtonStyled = styled(IconButton, {
|
|
63
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
64
|
-
slot: DynamicFilterSlots.appliedFilterChipRemoveButton
|
|
65
|
-
})(dynamicFilterStyles?.appliedFilterChipRemoveButton);
|
|
66
34
|
const ActionsStyled = styled("div", {
|
|
67
35
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
68
36
|
slot: DynamicFilterSlots.actions
|
|
69
37
|
})(dynamicFilterStyles?.actions);
|
|
70
|
-
const ActionsSkeletonButtonStyled = styled("div", {
|
|
71
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
72
|
-
slot: DynamicFilterSlots.actionsSkeletonButton
|
|
73
|
-
})(dynamicFilterStyles?.actionsSkeletonButton);
|
|
74
38
|
const ActionsClearButtonStyled = styled(IconButton, {
|
|
75
39
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
76
40
|
slot: DynamicFilterSlots.actionsClearButton
|
|
@@ -83,18 +47,6 @@ const PopoverMenuStyled = styled(Popover, {
|
|
|
83
47
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
84
48
|
slot: DynamicFilterSlots.popoverMenu
|
|
85
49
|
})(dynamicFilterStyles?.popoverMenu);
|
|
86
|
-
const PopoverMenuItemStyled = styled(MenuItem, {
|
|
87
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
88
|
-
slot: DynamicFilterSlots.popoverMenuItem
|
|
89
|
-
})(dynamicFilterStyles?.popoverMenuItem);
|
|
90
|
-
styled(Icon, {
|
|
91
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
92
|
-
slot: DynamicFilterSlots.popoverMenuItemIcon
|
|
93
|
-
})(dynamicFilterStyles?.popoverMenuItemIcon);
|
|
94
|
-
styled("div", {
|
|
95
|
-
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
96
|
-
slot: DynamicFilterSlots.popoverMenuItemLabel
|
|
97
|
-
})(dynamicFilterStyles?.popoverMenuItemLabel);
|
|
98
50
|
const PopoverStyled = styled(Popover, {
|
|
99
51
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
100
52
|
slot: DynamicFilterSlots.popoverFilter
|
|
@@ -107,10 +59,10 @@ const PopoverHeaderStyled = styled("div", {
|
|
|
107
59
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
108
60
|
slot: DynamicFilterSlots.popoverFilterHeader
|
|
109
61
|
})(dynamicFilterStyles?.popoverFilterHeader);
|
|
110
|
-
const
|
|
62
|
+
const ContentFilterStyled = styled("div", {
|
|
111
63
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
112
|
-
slot: DynamicFilterSlots.
|
|
113
|
-
})(dynamicFilterStyles?.
|
|
64
|
+
slot: DynamicFilterSlots.contentFilter
|
|
65
|
+
})(dynamicFilterStyles?.contentFilter);
|
|
114
66
|
const PopoverHeaderTitleStyled = styled(Typography, {
|
|
115
67
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
116
68
|
slot: DynamicFilterSlots.popoverFilterHeaderTitle
|
|
@@ -119,31 +71,26 @@ const PopoverHeaderActionsStyled = styled(ActionsContainer, {
|
|
|
119
71
|
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
120
72
|
slot: DynamicFilterSlots.popoverFilterActions
|
|
121
73
|
})(dynamicFilterStyles?.popoverFilterActions);
|
|
74
|
+
const InputFilterInputSkeletonStyled = styled(Skeleton, {
|
|
75
|
+
name: DYNAMIC_FILTER_KEY_COMPONENT,
|
|
76
|
+
slot: DynamicFilterSlots.inputFilterInputSkeleton
|
|
77
|
+
})(dynamicFilterStyles?.inputFilterInputSkeleton);
|
|
122
78
|
export {
|
|
123
|
-
|
|
79
|
+
AppliedFiltersStyled as A,
|
|
80
|
+
ContentFilterStyled as C,
|
|
124
81
|
InnerContainerStyled as I,
|
|
125
82
|
PopoverStyled as P,
|
|
126
83
|
RootStyled as R,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
InputFilterStyled as m,
|
|
140
|
-
InputFilterIconStyled as n,
|
|
141
|
-
InputFilterInputStyled as o,
|
|
142
|
-
PopoverHeaderStyled as p,
|
|
143
|
-
PopoverHeaderIconStyled as q,
|
|
144
|
-
PopoverHeaderTitleStyled as r,
|
|
145
|
-
PopoverContainerFieldsStyled as s,
|
|
146
|
-
PopoverHeaderActionsStyled as t,
|
|
147
|
-
PopoverMenuStyled as u,
|
|
148
|
-
PopoverMenuItemStyled as v
|
|
84
|
+
AppliedFilterInnerContainerStyled as a,
|
|
85
|
+
ActionsStyled as b,
|
|
86
|
+
ActionsClearButtonStyled as c,
|
|
87
|
+
ActionsSubmitButtonStyled as d,
|
|
88
|
+
InputFilterStyled as e,
|
|
89
|
+
InputFilterInputSkeletonStyled as f,
|
|
90
|
+
InputFilterInputStyled as g,
|
|
91
|
+
PopoverHeaderStyled as h,
|
|
92
|
+
PopoverHeaderTitleStyled as i,
|
|
93
|
+
PopoverContainerFieldsStyled as j,
|
|
94
|
+
PopoverHeaderActionsStyled as k,
|
|
95
|
+
PopoverMenuStyled as l
|
|
149
96
|
};
|
|
@@ -4,10 +4,11 @@ import { useStore } from "zustand";
|
|
|
4
4
|
import { shallow } from "zustand/shallow";
|
|
5
5
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
6
6
|
import { useIsMobile, useFirstRender } from "@m4l/graphics";
|
|
7
|
-
import { c as createDynamicFilterStore } from "./DynamicFilterStore.js";
|
|
8
7
|
import { A as ALL_FIELD } from "../constants.js";
|
|
9
8
|
import { f as formatToRawFilter } from "../helpers/formatToRowFilter.js";
|
|
10
9
|
import { f as formatToInitialFilters } from "../helpers/formatToInitialFilters.js";
|
|
10
|
+
import { c as createDynamicFilterStore } from "./DynamicFilterStore.js";
|
|
11
|
+
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
11
12
|
const DynamicFilterContext = createContext(null);
|
|
12
13
|
function DynamicFilterProvider(props) {
|
|
13
14
|
const {
|
|
@@ -17,10 +18,13 @@ function DynamicFilterProvider(props) {
|
|
|
17
18
|
initialAppliedFilters = [],
|
|
18
19
|
onChangeFilters,
|
|
19
20
|
dataTestId = "",
|
|
21
|
+
size = "medium",
|
|
20
22
|
children,
|
|
21
23
|
storeId,
|
|
22
24
|
storeDevtoolsEnabled = false
|
|
23
25
|
} = props;
|
|
26
|
+
const { currentSize } = useComponentSize(size);
|
|
27
|
+
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
24
28
|
const { getLabel } = useModuleDictionary();
|
|
25
29
|
const dynamicFilterStoreRef = useRef();
|
|
26
30
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
@@ -38,6 +42,7 @@ function DynamicFilterProvider(props) {
|
|
|
38
42
|
automatic,
|
|
39
43
|
getLabel,
|
|
40
44
|
dataTestId,
|
|
45
|
+
size,
|
|
41
46
|
storeId,
|
|
42
47
|
ownerState: {
|
|
43
48
|
isSkeleton,
|
|
@@ -45,7 +50,8 @@ function DynamicFilterProvider(props) {
|
|
|
45
50
|
inEdition: false,
|
|
46
51
|
isValid: true,
|
|
47
52
|
isMobile: !isDesktop,
|
|
48
|
-
isEmpty: true
|
|
53
|
+
isEmpty: true,
|
|
54
|
+
size
|
|
49
55
|
}
|
|
50
56
|
}, storeDevtoolsEnabled);
|
|
51
57
|
dynamicFilterStoreRef.current.getState().actions.init(initialAppliedFilters);
|
|
@@ -73,6 +79,15 @@ function DynamicFilterProvider(props) {
|
|
|
73
79
|
}
|
|
74
80
|
dynamicFilterStoreRef.current?.getState().actions.setExternalState({ isMobile: !isDesktop, isSkeleton });
|
|
75
81
|
}, [isDesktop, isSkeleton]);
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
if (automatic) {
|
|
84
|
+
dynamicFilterStoreRef.current?.getState().actions.fireOnChangeFilters();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
}, []);
|
|
88
|
+
useEffect(() => {
|
|
89
|
+
dynamicFilterStoreRef.current?.getState().actions.setSize(adjustedSize);
|
|
90
|
+
}, [adjustedSize]);
|
|
76
91
|
return /* @__PURE__ */ jsx(DynamicFilterContext.Provider, { value: dynamicFilterStoreRef.current, children });
|
|
77
92
|
}
|
|
78
93
|
export {
|
|
@@ -137,7 +137,9 @@ const createDynamicFilterStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
137
137
|
set((state) => {
|
|
138
138
|
state.appliedFilters = state.appliedFilters.filter((f) => f.fixed);
|
|
139
139
|
state.ownerState.isEmpty = state.appliedFilters.length === 0;
|
|
140
|
-
|
|
140
|
+
state.popoverFilterData = void 0;
|
|
141
|
+
state.ownerState.inEdition = false;
|
|
142
|
+
updateAutomatic(state);
|
|
141
143
|
});
|
|
142
144
|
},
|
|
143
145
|
/**
|
|
@@ -224,6 +226,15 @@ const createDynamicFilterStore = (initProps, storeDevtoolsEnabled = false) => {
|
|
|
224
226
|
state.isOpenPopoverMenuFields = false;
|
|
225
227
|
state.ownerState.inEdition = newInEdition || false;
|
|
226
228
|
});
|
|
229
|
+
},
|
|
230
|
+
/**
|
|
231
|
+
* actualiza el tamaño del componente
|
|
232
|
+
*/
|
|
233
|
+
setSize: (newSize) => {
|
|
234
|
+
set((state) => {
|
|
235
|
+
state.size = newSize;
|
|
236
|
+
state.ownerState.size = newSize;
|
|
237
|
+
});
|
|
227
238
|
}
|
|
228
239
|
}
|
|
229
240
|
})),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
2
|
import { GetLabelType } from '@m4l/core';
|
|
3
|
+
import { Sizes } from '@m4l/styles';
|
|
3
4
|
import { FilterField, FilterFieldApplied, FilterToEditApply, InitialFilterApplied, OwnerState } from '../types';
|
|
4
5
|
export type OpenFor = 'add' | 'edit';
|
|
5
6
|
export interface PopoverFilterDataBase {
|
|
@@ -95,6 +96,10 @@ export interface DynamicFilterState {
|
|
|
95
96
|
* Esta propiedad sirve para generar identificadores únicos.
|
|
96
97
|
*/
|
|
97
98
|
dataTestId: string;
|
|
99
|
+
/**
|
|
100
|
+
* size: tamaño del componente
|
|
101
|
+
*/
|
|
102
|
+
size: Extract<Sizes, 'small' | 'medium'>;
|
|
98
103
|
}
|
|
99
104
|
export interface DynamicFilterStateWithActions extends DynamicFilterState {
|
|
100
105
|
actions: {
|
|
@@ -194,6 +199,10 @@ export interface DynamicFilterStateWithActions extends DynamicFilterState {
|
|
|
194
199
|
* Limpia la función de apertura del menu de campos (por el valor anchorEl = undefined)
|
|
195
200
|
*/
|
|
196
201
|
closePopoverMenuFields: (newInEdition?: boolean) => void;
|
|
202
|
+
/**
|
|
203
|
+
* actualiza el tamaño del componente
|
|
204
|
+
*/
|
|
205
|
+
setSize: (size: Extract<Sizes, 'small' | 'medium'>) => void;
|
|
197
206
|
};
|
|
198
207
|
}
|
|
199
|
-
export type InitialStoreProps = Pick<DynamicFilterState, 'automatic' | 'fields' | 'withAllField' | 'getLabel' | 'allField' | 'ownerState' | 'dataTestId' | 'storeId'>;
|
|
208
|
+
export type InitialStoreProps = Pick<DynamicFilterState, 'automatic' | 'fields' | 'withAllField' | 'getLabel' | 'allField' | 'ownerState' | 'dataTestId' | 'size' | 'storeId'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FilterFieldApplied } from '../../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* AppliedFilterChip: Componente encargado de mostrar el chip de filtro aplicado
|
|
4
4
|
*/
|
|
5
5
|
declare function AppliedFilterChip(props: FilterFieldApplied): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default AppliedFilterChip;
|
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { C as Chip } from "../../../Chip/Chip.js";
|
|
3
|
+
import { u as useDynamicFilterBase } from "../DynamicFilterBase/useDynamicFilterBase.js";
|
|
2
4
|
import { u as useAppliedFilterChip } from "./useAppliedFilterChip.js";
|
|
3
|
-
import { A as AppliedFilterChipStyled, a as AppliedFilterChipIconStyled, b as AppliedFilterChipInfoStyled, c as AppliedFilterChipInfoFieldNameStyled, d as AppliedFilterChipInfoOperatorStyled, e as AppliedFilterChipInfoOperandsStyled, f as AppliedFilterChipRemoveButtonStyled } from "../../slots/dynamicFilterSlots.js";
|
|
4
5
|
function AppliedFilterChip(props) {
|
|
5
6
|
const { fixed } = props;
|
|
6
|
-
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onClick: onDelete,
|
|
21
|
-
ownerState: {}
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
] });
|
|
7
|
+
const { size } = useDynamicFilterBase();
|
|
8
|
+
const { onEditFilter, onDelete, iconFieldUrl, labels } = useAppliedFilterChip(props);
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
Chip,
|
|
11
|
+
{
|
|
12
|
+
size,
|
|
13
|
+
opacity: true,
|
|
14
|
+
variant: "contained",
|
|
15
|
+
onClick: onEditFilter,
|
|
16
|
+
startIcon: iconFieldUrl,
|
|
17
|
+
label: `${labels.labelField} ${labels.labelOperator} ${labels.labelOperands}`,
|
|
18
|
+
onDeleted: fixed ? void 0 : onDelete
|
|
19
|
+
}
|
|
20
|
+
);
|
|
25
21
|
}
|
|
26
22
|
export {
|
|
27
23
|
AppliedFilterChip as A
|
|
@@ -6,7 +6,6 @@ import { FilterFieldApplied } from '../../types';
|
|
|
6
6
|
declare function useAppliedFilterChip(filter: FilterFieldApplied): {
|
|
7
7
|
onDelete: () => void;
|
|
8
8
|
onEditFilter: (_event: MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
-
removeIconUrl: string;
|
|
10
9
|
iconFieldUrl: string;
|
|
11
10
|
labels: import('../../types').DataTypeFilerLabels;
|
|
12
11
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { useModuleDictionary } from "@m4l/core";
|
|
3
3
|
import { useFormatter } from "@m4l/graphics";
|
|
4
4
|
import { u as useDynamicFilterStore } from "../../store/useDynamicFilterStore.js";
|
|
5
5
|
import { f as fieldFactory } from "../FieldTypes/fieldFactory.js";
|
|
6
6
|
function useAppliedFilterChip(filter) {
|
|
7
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
8
7
|
const { getLabel } = useModuleDictionary();
|
|
9
8
|
const formatters = useFormatter();
|
|
10
9
|
const { hidePopoverFilter, removeFilter, showPopoverFilterForEdit } = useDynamicFilterStore(
|
|
11
10
|
(state) => state.actions
|
|
12
11
|
);
|
|
13
|
-
const removeIconUrl = `${host_static_assets}/${environment_assets}/frontend/components/dynamic_filter/assets/icons/clear.svg`;
|
|
14
12
|
const labels = useMemo(() => {
|
|
15
13
|
return fieldFactory(filter.field.type).getLabels(filter, getLabel, formatters, filter.field);
|
|
16
14
|
}, [filter, getLabel]);
|
|
@@ -25,7 +23,6 @@ function useAppliedFilterChip(filter) {
|
|
|
25
23
|
return {
|
|
26
24
|
onDelete,
|
|
27
25
|
onEditFilter,
|
|
28
|
-
removeIconUrl,
|
|
29
26
|
iconFieldUrl: filter.field?.urlIcon,
|
|
30
27
|
labels
|
|
31
28
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { S as ScrollBar } from "../../../ScrollBar/ScrollBar.js";
|
|
3
2
|
import { u as useAppliedFilters } from "./useAppliedFilters.js";
|
|
4
|
-
import {
|
|
3
|
+
import { A as AppliedFiltersStyled, a as AppliedFilterInnerContainerStyled } from "../../slots/dynamicFilterSlots.js";
|
|
5
4
|
import { A as AppliedFilterChip } from "../AppliedFilterChip/AppliedFilterChip.js";
|
|
6
5
|
function AppliedFilters() {
|
|
7
6
|
const { appliedFiltersSorted, isSkeleton } = useAppliedFilters();
|
|
8
7
|
if (isSkeleton) {
|
|
9
8
|
return /* @__PURE__ */ jsx(AppliedFiltersStyled, { ownerState: {} });
|
|
10
9
|
}
|
|
11
|
-
return /* @__PURE__ */ jsx(AppliedFiltersStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(
|
|
10
|
+
return /* @__PURE__ */ jsx(AppliedFiltersStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(AppliedFilterInnerContainerStyled, { ownerState: {}, children: appliedFiltersSorted?.map((filter) => /* @__PURE__ */ jsx(AppliedFilterChip, { ...filter }, filter.id)) }) });
|
|
12
11
|
}
|
|
13
12
|
export {
|
|
14
13
|
AppliedFilters as A
|
|
@@ -2,7 +2,8 @@ import { u as useDynamicFilterStore } from "../../store/useDynamicFilterStore.js
|
|
|
2
2
|
function useDynamicFilterBase() {
|
|
3
3
|
const ownerState = useDynamicFilterStore((state) => state.ownerState);
|
|
4
4
|
const dataTestId = useDynamicFilterStore((state) => state.dataTestId);
|
|
5
|
-
|
|
5
|
+
const size = useDynamicFilterStore((state) => state.size);
|
|
6
|
+
return { ownerState, dataTestId, size };
|
|
6
7
|
}
|
|
7
8
|
export {
|
|
8
9
|
useDynamicFilterBase as u
|
|
@@ -8,4 +8,4 @@ import { SelectFilterHelpers } from './SelectFilter/helpers';
|
|
|
8
8
|
/**
|
|
9
9
|
* TODO: Documentar
|
|
10
10
|
*/
|
|
11
|
-
export declare function fieldFactory(type: FieldType): BooleanFilterHelpers | StringFilterHelpers | DateTimeFilterHelpers | NumberFilterHelpers |
|
|
11
|
+
export declare function fieldFactory(type: FieldType): SelectAsyncFilterHelpers | BooleanFilterHelpers | StringFilterHelpers | DateTimeFilterHelpers | NumberFilterHelpers | SelectFilterHelpers;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { u as useDynamicFilterBase } from "../DynamicFilterBase/useDynamicFilterBase.js";
|
|
2
3
|
import { u as useFilterActions } from "./useFilterActions.js";
|
|
3
|
-
import {
|
|
4
|
-
import { i as ActionsStyled, j as ActionsClearButtonStyled, k as ActionsSubmitButtonStyled } from "../../slots/dynamicFilterSlots.js";
|
|
4
|
+
import { b as ActionsStyled, c as ActionsClearButtonStyled, d as ActionsSubmitButtonStyled } from "../../slots/dynamicFilterSlots.js";
|
|
5
5
|
function FilterActions() {
|
|
6
6
|
const {
|
|
7
|
-
isSkeleton,
|
|
8
7
|
filterIconUrl,
|
|
9
8
|
clearIconUrl,
|
|
10
9
|
canShowRemoveAction,
|
|
@@ -13,14 +12,13 @@ function FilterActions() {
|
|
|
13
12
|
filterButtonDictionaryTooltip,
|
|
14
13
|
ownerState
|
|
15
14
|
} = useFilterActions();
|
|
16
|
-
|
|
17
|
-
return /* @__PURE__ */ jsx(ActionsStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(FilterActionsSkeleton, {}) });
|
|
18
|
-
}
|
|
15
|
+
const { size } = useDynamicFilterBase();
|
|
19
16
|
return /* @__PURE__ */ jsxs(ActionsStyled, { ownerState: {}, children: [
|
|
20
17
|
canShowRemoveAction && /* @__PURE__ */ jsx(
|
|
21
18
|
ActionsClearButtonStyled,
|
|
22
19
|
{
|
|
23
|
-
|
|
20
|
+
icon: clearIconUrl,
|
|
21
|
+
size,
|
|
24
22
|
onClick: onClickClearFilters,
|
|
25
23
|
dictionaryTooltipId: "dynamic_filter.tooltip_clear_filters",
|
|
26
24
|
ownerState: {}
|
|
@@ -29,7 +27,8 @@ function FilterActions() {
|
|
|
29
27
|
/* @__PURE__ */ jsx(
|
|
30
28
|
ActionsSubmitButtonStyled,
|
|
31
29
|
{
|
|
32
|
-
|
|
30
|
+
icon: filterIconUrl,
|
|
31
|
+
size,
|
|
33
32
|
"aria-label": "settings",
|
|
34
33
|
dictionaryTooltipId: filterButtonDictionaryTooltip,
|
|
35
34
|
onClick: onClickFilter,
|