@pdg/react-table 1.0.56 → 1.0.58

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.
@@ -3,6 +3,6 @@ import { CommonSxProps } from '../@types';
3
3
  import { TypographyProps } from '@mui/material';
4
4
  export declare function getTableColumnAlign(column: TableColumn, defaultAlign: TableColumn['align']): TableColumn['align'];
5
5
  export declare function combineSx(...sx: (boolean | CommonSxProps['sx'])[]): CommonSxProps['sx'];
6
- export declare function typographyColorToSxColor(color: TypographyProps['color']): string | (string[] | import("csstype").Property.Color | null | undefined)[] | {
7
- [key: string]: string[] | import("csstype").Property.Color | null | undefined;
8
- } | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<string[] | import("csstype").Property.Color | undefined>) | undefined;
6
+ export declare function typographyColorToSxColor(color: TypographyProps['color']): string | readonly string[] | (readonly string[] | import("csstype").Property.Color | null | undefined)[] | {
7
+ [key: string]: readonly string[] | import("csstype").Property.Color | null | undefined;
8
+ } | ((theme: import("@mui/material").Theme) => import("@mui/system/styleFunctionSx").ResponsiveStyleValue<readonly string[] | import("csstype").Property.Color | undefined>) | undefined;
@@ -1,48 +1,13 @@
1
1
  /// <reference types="react" />
2
- export declare const Label: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
3
- children?: import("react").ReactNode;
4
- component?: import("react").ElementType<any> | undefined;
5
- ref?: import("react").Ref<unknown> | undefined;
6
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
7
- } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
2
+ export declare const Label: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
8
3
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
9
- }, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "ref" | "children" | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
- export declare const ValueWrap: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
11
- children?: import("react").ReactNode;
12
- component?: import("react").ElementType<any> | undefined;
13
- ref?: import("react").Ref<unknown> | undefined;
14
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
15
- } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
+ export declare const ValueWrap: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
6
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
17
- }, ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "ref" | "children" | "component" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
18
8
  export declare const Value: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
9
  export declare const ValueEllipsis: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
20
10
  export declare const ValueClipboard: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
21
- export declare const ClipboardIconButton: import("@emotion/styled").StyledComponent<{
22
- children?: import("react").ReactNode;
23
- classes?: Partial<import("@mui/material").IconButtonClasses> | undefined;
24
- color?: "inherit" | "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning" | undefined;
25
- disabled?: boolean | undefined;
26
- disableFocusRipple?: boolean | undefined;
27
- edge?: false | "end" | "start" | undefined;
28
- size?: "small" | "medium" | "large" | undefined;
29
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
30
- } & Omit<{
31
- action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
32
- centerRipple?: boolean | undefined;
33
- children?: import("react").ReactNode;
34
- classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
35
- disabled?: boolean | undefined;
36
- disableRipple?: boolean | undefined;
37
- disableTouchRipple?: boolean | undefined;
38
- focusRipple?: boolean | undefined;
39
- focusVisibleClassName?: string | undefined;
40
- LinkComponent?: import("react").ElementType<any> | undefined;
41
- onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
42
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
43
- tabIndex?: number | undefined;
44
- TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
45
- touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
46
- }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
11
+ export declare const ClipboardIconButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
47
12
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
48
- }, "color" | "tabIndex" | "children" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "size"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
13
+ }, "style" | "className" | "tabIndex" | "color" | "children" | "sx" | "classes" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "size"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,11 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledBodyRow: import("@emotion/styled").StyledComponent<{
3
- children?: import("react").ReactNode;
4
- classes?: Partial<import("@mui/material").TableRowClasses> | undefined;
5
- hover?: boolean | undefined;
6
- selected?: boolean | undefined;
7
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
8
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof import("react").HTMLAttributes<HTMLTableRowElement>> & {
2
+ export declare const StyledBodyRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
9
3
  ref?: ((instance: HTMLTableRowElement | null) => void) | import("react").RefObject<HTMLTableRowElement> | null | undefined;
10
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "hover" | "selected" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "children" | "hover" | "selected" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
11
5
  export declare const StyledNoDataDiv: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,13 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TableBodyRowProps as Props } from './TableBodyRow.types';
3
- export declare const StyledBodyRow: import("@emotion/styled").StyledComponent<{
4
- children?: React.ReactNode;
5
- classes?: Partial<import("@mui/material").TableRowClasses> | undefined;
6
- hover?: boolean | undefined;
7
- selected?: boolean | undefined;
8
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
9
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof React.HTMLAttributes<HTMLTableRowElement>> & {
3
+ export declare const StyledBodyRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
10
4
  ref?: ((instance: HTMLTableRowElement | null) => void) | React.RefObject<HTMLTableRowElement> | null | undefined;
11
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "hover" | "selected" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
+ }, "className" | "style" | "classes" | "children" | "hover" | "selected" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
12
6
  declare const TableBodyRow: React.FC<Props>;
13
7
  export default TableBodyRow;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { TableButtonProps as Props } from './TableButton.types';
3
- declare const TableButton: React.ForwardRefExoticComponent<Pick<Props, "children" | "className" | "style" | "classes" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "startIcon" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "component" | "icon"> & React.RefAttributes<HTMLButtonElement>>;
3
+ declare const TableButton: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
4
  export default TableButton;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { TableIconProps as Props } from './TableIcon.types';
3
- declare const TableIcon: React.ForwardRefExoticComponent<Pick<Props, "className" | "style" | "classes" | "baseClassName" | "children" | "color" | "fontSize" | "sx" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component"> & React.RefAttributes<HTMLAnchorElement>>;
3
+ declare const TableIcon: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
4
4
  export default TableIcon;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { TableMenuButtonProps as Props } from './TableMenuButton.types';
3
- declare const TableMenuButton: React.ForwardRefExoticComponent<Pick<Props, "children" | "className" | "style" | "classes" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "zIndex" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "startIcon" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "component" | "icon" | "placement" | "inModal" | "menuList"> & React.RefAttributes<HTMLButtonElement>>;
3
+ declare const TableMenuButton: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
4
  export default TableMenuButton;
@@ -1,10 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const TableTopHeadCaptionRow: import("@emotion/styled").StyledComponent<{
3
- children?: import("react").ReactNode;
4
- classes?: Partial<import("@mui/material").TableRowClasses> | undefined;
5
- hover?: boolean | undefined;
6
- selected?: boolean | undefined;
7
- sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
8
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "key" | keyof import("react").HTMLAttributes<HTMLTableRowElement>> & {
2
+ export declare const TableTopHeadCaptionRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & {
9
3
  ref?: ((instance: HTMLTableRowElement | null) => void) | import("react").RefObject<HTMLTableRowElement> | null | undefined;
10
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "hover" | "selected" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ }, "className" | "style" | "classes" | "children" | "hover" | "selected" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import*as React from'react';import React__default,{cloneElement,useRef,useState,useCallback,useEffect,isValidElement,createRef,PureComponent,createContext,useContext,useMemo,useLayoutEffect,useId}from'react';import {styled,TableRow,lighten,TableCell,Box,Checkbox,Tooltip,Stack,Pagination,useTheme,TableHead,TableBody,Icon,TableFooter,Paper,Table as Table$1,Grid,Button,Popper,Grow,ClickAwayListener,IconButton}from'@mui/material';import {findDOMNode}from'react-dom';import {useSortable,sortableKeyboardCoordinates,arrayMove,SortableContext,verticalListSortingStrategy}from'@dnd-kit/sortable';import dayjs from'dayjs';import {useSensors,useSensor,MouseSensor,TouchSensor,KeyboardSensor,DndContext,closestCenter}from'@dnd-kit/core';import {Search,SearchGroup,FormHidden}from'@pdg/react-form';/******************************************************************************
1
+ import*as React from'react';import React__default,{useRef,useState,useCallback,useEffect,isValidElement,createRef,cloneElement,PureComponent,createContext,useContext,useMemo,useLayoutEffect,useId}from'react';import {styled,TableRow,lighten,TableCell,Box,Checkbox,Tooltip,Stack,Pagination,useTheme,TableHead,TableBody,Icon,TableFooter,Paper,Table as Table$1,Grid,Button,Popper,Grow,ClickAwayListener,IconButton}from'@mui/material';import {findDOMNode}from'react-dom';import {useSortable,sortableKeyboardCoordinates,arrayMove,SortableContext,verticalListSortingStrategy}from'@dnd-kit/sortable';import dayjs from'dayjs';import {useSensors,useSensor,MouseSensor,TouchSensor,KeyboardSensor,DndContext,closestCenter}from'@dnd-kit/core';import {Search,SearchGroup,FormHidden}from'@pdg/react-form';/******************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -62,39 +62,57 @@ function getDefaultExportFromCjs (x) {
62
62
 
63
63
  var hasOwn = {}.hasOwnProperty;
64
64
 
65
- function classNames() {
66
- var classes = [];
65
+ function classNames () {
66
+ var classes = '';
67
67
 
68
68
  for (var i = 0; i < arguments.length; i++) {
69
69
  var arg = arguments[i];
70
- if (!arg) continue;
71
-
72
- var argType = typeof arg;
73
-
74
- if (argType === 'string' || argType === 'number') {
75
- classes.push(arg);
76
- } else if (Array.isArray(arg)) {
77
- if (arg.length) {
78
- var inner = classNames.apply(null, arg);
79
- if (inner) {
80
- classes.push(inner);
81
- }
82
- }
83
- } else if (argType === 'object') {
84
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
85
- classes.push(arg.toString());
86
- continue;
87
- }
88
-
89
- for (var key in arg) {
90
- if (hasOwn.call(arg, key) && arg[key]) {
91
- classes.push(key);
92
- }
93
- }
70
+ if (arg) {
71
+ classes = appendClass(classes, parseValue(arg));
94
72
  }
95
73
  }
96
74
 
97
- return classes.join(' ');
75
+ return classes;
76
+ }
77
+
78
+ function parseValue (arg) {
79
+ if (typeof arg === 'string' || typeof arg === 'number') {
80
+ return arg;
81
+ }
82
+
83
+ if (typeof arg !== 'object') {
84
+ return '';
85
+ }
86
+
87
+ if (Array.isArray(arg)) {
88
+ return classNames.apply(null, arg);
89
+ }
90
+
91
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
92
+ return arg.toString();
93
+ }
94
+
95
+ var classes = '';
96
+
97
+ for (var key in arg) {
98
+ if (hasOwn.call(arg, key) && arg[key]) {
99
+ classes = appendClass(classes, key);
100
+ }
101
+ }
102
+
103
+ return classes;
104
+ }
105
+
106
+ function appendClass (value, newClass) {
107
+ if (!newClass) {
108
+ return value;
109
+ }
110
+
111
+ if (value) {
112
+ return value + ' ' + newClass;
113
+ }
114
+
115
+ return value + newClass;
98
116
  }
99
117
 
100
118
  if (module.exports) {
@@ -2246,16 +2264,18 @@ function throttle(func, wait, options) {
2246
2264
 
2247
2265
  var throttle_1 = throttle;
2248
2266
 
2249
- var throttle$1 = /*@__PURE__*/getDefaultExportFromCjs(throttle_1);/* global Reflect, Promise */
2267
+ var throttle$1 = /*@__PURE__*/getDefaultExportFromCjs(throttle_1);/* global Reflect, Promise, SuppressedError, Symbol */
2250
2268
 
2251
2269
  var extendStatics = function(d, b) {
2252
2270
  extendStatics = Object.setPrototypeOf ||
2253
2271
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2254
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2272
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2255
2273
  return extendStatics(d, b);
2256
2274
  };
2257
2275
 
2258
2276
  function __extends(d, b) {
2277
+ if (typeof b !== "function" && b !== null)
2278
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2259
2279
  extendStatics(d, b);
2260
2280
  function __() { this.constructor = d; }
2261
2281
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -2282,7 +2302,12 @@ function __rest(s, e) {
2282
2302
  t[p[i]] = s[p[i]];
2283
2303
  }
2284
2304
  return t;
2285
- }var patchResizeCallback = function (resizeCallback, refreshMode, refreshRate, refreshOptions) {
2305
+ }
2306
+
2307
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
2308
+ var e = new Error(message);
2309
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2310
+ };var patchResizeCallback = function (resizeCallback, refreshMode, refreshRate, refreshOptions) {
2286
2311
  switch (refreshMode) {
2287
2312
  case 'debounce':
2288
2313
  return debounce$2(resizeCallback, refreshRate, refreshOptions);
@@ -2498,14 +2523,6 @@ var isDOMElement = function (element) {
2498
2523
  }, [refElement]);
2499
2524
  // adding `current` to make it compatible with useRef shape
2500
2525
  onRefChange.current = refElement;
2501
- useEffect(function () {
2502
- return function () {
2503
- // component is unmounted
2504
- // clear ref to avoid memory leaks
2505
- setRefElement(null);
2506
- onRefChange.current = null;
2507
- };
2508
- }, []);
2509
2526
  var shouldSetSize = useCallback(function (prevSize, nextSize) {
2510
2527
  if (prevSize.width === nextSize.width && prevSize.height === nextSize.height) {
2511
2528
  // skip if dimensions haven't changed
@@ -3171,7 +3188,7 @@ for (let i = 0; i < 256; ++i) {
3171
3188
  function unsafeStringify(arr, offset = 0) {
3172
3189
  // Note: Be careful editing this code! It's been tuned for performance
3173
3190
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
3174
- return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
3191
+ return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
3175
3192
  }const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
3176
3193
  var native = {
3177
3194
  randomUUID
@@ -3954,30 +3971,76 @@ Table.defaultProps = TableDefaultProps;var SearchTableDefaultProps = {};var Sear
3954
3971
  case 'FormDateRangePicker':
3955
3972
  {
3956
3973
  var dateRangePickerCommands = itemCommands;
3957
- var itemName = dateRangePickerCommands.getName();
3958
- var startNameSuffix = dateRangePickerCommands.getFormValueStartNameSuffix();
3959
- var endNameSuffix = dateRangePickerCommands.getFormValueEndNameSuffix();
3974
+ var fromName = dateRangePickerCommands.getFormValueFromName();
3975
+ var toName = dateRangePickerCommands.getFormValueToName();
3960
3976
  var format = dateRangePickerCommands.getFormValueFormat();
3961
- if (name === "".concat(itemName).concat(startNameSuffix)) {
3977
+ if (name === fromName) {
3962
3978
  if (notEmpty(value)) {
3963
3979
  var startValue = dayjs(value, format);
3964
- dateRangePickerCommands.setStartValue(startValue.isValid() ? startValue : null);
3980
+ dateRangePickerCommands.setFromValue(startValue.isValid() ? startValue : null);
3965
3981
  }
3966
3982
  else {
3967
- dateRangePickerCommands.setStartValue(null);
3983
+ dateRangePickerCommands.setFromValue(null);
3968
3984
  }
3969
3985
  }
3970
- else if (name === "".concat(itemName).concat(endNameSuffix)) {
3986
+ else if (name === toName) {
3971
3987
  if (notEmpty(value)) {
3972
3988
  var endValue = dayjs(value, format);
3973
- dateRangePickerCommands.setEndValue(endValue.isValid() ? endValue : null);
3989
+ dateRangePickerCommands.setToValue(endValue.isValid() ? endValue : null);
3974
3990
  }
3975
3991
  else {
3976
- dateRangePickerCommands.setEndValue(null);
3992
+ dateRangePickerCommands.setToValue(null);
3977
3993
  }
3978
3994
  }
3979
3995
  }
3980
3996
  break;
3997
+ case 'FormYearRangePicker':
3998
+ {
3999
+ var dateRangePickerCommands = itemCommands;
4000
+ var fromName = dateRangePickerCommands.getFormValueFromName();
4001
+ var toName = dateRangePickerCommands.getFormValueToName();
4002
+ if (name === fromName) {
4003
+ dateRangePickerCommands.setFromValue(notEmpty(value) ? Number(value) : null);
4004
+ }
4005
+ else if (name === toName) {
4006
+ dateRangePickerCommands.setToValue(notEmpty(value) ? Number(value) : null);
4007
+ }
4008
+ }
4009
+ break;
4010
+ case 'FormMonthPicker':
4011
+ {
4012
+ var monthCommands = itemCommands;
4013
+ var yearName = monthCommands.getFormValueYearName();
4014
+ var monthName = monthCommands.getFormValueMonthName();
4015
+ if (name === yearName) {
4016
+ monthCommands.setYear(notEmpty(value) ? Number(value) : null);
4017
+ }
4018
+ else if (name === monthName) {
4019
+ monthCommands.setMonth(notEmpty(value) ? Number(value) : null);
4020
+ }
4021
+ }
4022
+ break;
4023
+ case 'FormMonthRangePicker':
4024
+ {
4025
+ var monthRangeCommands = itemCommands;
4026
+ var fromYearName = monthRangeCommands.getFormValueFromYearName();
4027
+ var fromMonthName = monthRangeCommands.getFormValueFromMonthName();
4028
+ var toYearName = monthRangeCommands.getFormValueToYearName();
4029
+ var toMonthName = monthRangeCommands.getFormValueToMonthName();
4030
+ if (name === fromYearName) {
4031
+ monthRangeCommands.setFromYear(notEmpty(value) ? Number(value) : null);
4032
+ }
4033
+ else if (name === fromMonthName) {
4034
+ monthRangeCommands.setFromMonth(notEmpty(value) ? Number(value) : null);
4035
+ }
4036
+ else if (name === toYearName) {
4037
+ monthRangeCommands.setToYear(notEmpty(value) ? Number(value) : null);
4038
+ }
4039
+ else if (name === toMonthName) {
4040
+ monthRangeCommands.setToMonth(notEmpty(value) ? Number(value) : null);
4041
+ }
4042
+ }
4043
+ break;
3981
4044
  default:
3982
4045
  commands.setValue(name, value);
3983
4046
  break;
@@ -4055,15 +4118,61 @@ Table.defaultProps = TableDefaultProps;var SearchTableDefaultProps = {};var Sear
4055
4118
  var resetValue = null;
4056
4119
  switch (itemCommands.getType()) {
4057
4120
  case 'FormDateRangePicker':
4121
+ case 'FormYearRangePicker':
4058
4122
  {
4123
+ var commands = itemCommands;
4059
4124
  var itemName = itemCommands.getName();
4060
- var startSuffix = itemCommands.getFormValueStartNameSuffix();
4061
- var endSuffix = itemCommands.getFormValueEndNameSuffix();
4062
- if (name === "".concat(itemName).concat(startSuffix)) {
4063
- resetValue = searchRef.current.getFormReset(itemName, startSuffix);
4125
+ var fromName = commands.getFormValueFromName();
4126
+ var fromSuffix = commands.getFormValueFromNameSuffix();
4127
+ var toName = commands.getFormValueToName();
4128
+ var toSuffix = commands.getFormValueToNameSuffix();
4129
+ if (name === fromName) {
4130
+ resetValue = searchRef.current.getFormReset(itemName, fromSuffix);
4131
+ }
4132
+ else if (name === toName) {
4133
+ resetValue = searchRef.current.getFormReset(itemName, toSuffix);
4134
+ }
4135
+ }
4136
+ break;
4137
+ case 'FormMonthPicker':
4138
+ {
4139
+ var commands = itemCommands;
4140
+ var itemName = commands.getName();
4141
+ var yearName = commands.getFormValueYearName();
4142
+ var yearSuffix = commands.getFormValueYearNameSuffix();
4143
+ var monthName = commands.getFormValueMonthName();
4144
+ var monthSuffix = commands.getFormValueMonthNameSuffix();
4145
+ if (name === yearName) {
4146
+ resetValue = searchRef.current.getFormReset(itemName, yearSuffix);
4147
+ }
4148
+ else if (name === monthName) {
4149
+ resetValue = searchRef.current.getFormReset(itemName, monthSuffix);
4150
+ }
4151
+ }
4152
+ break;
4153
+ case 'FormMonthRangePicker':
4154
+ {
4155
+ var commands = itemCommands;
4156
+ var itemName = commands.getName();
4157
+ var fromYearName = commands.getFormValueFromYearName();
4158
+ var fromYearSuffix = commands.getFormValueFromYearNameSuffix();
4159
+ var fromMonthName = commands.getFormValueFromMonthName();
4160
+ var fromMonthSuffix = commands.getFormValueFromMonthNameSuffix();
4161
+ var toYearName = commands.getFormValueToYearName();
4162
+ var toYearSuffix = commands.getFormValueToYearNameSuffix();
4163
+ var toMonthName = commands.getFormValueToMonthName();
4164
+ var toMonthSuffix = commands.getFormValueToMonthNameSuffix();
4165
+ if (name === fromYearName) {
4166
+ resetValue = searchRef.current.getFormReset(itemName, fromYearSuffix);
4167
+ }
4168
+ else if (name === fromMonthName) {
4169
+ resetValue = searchRef.current.getFormReset(itemName, fromMonthSuffix);
4170
+ }
4171
+ else if (name === toYearName) {
4172
+ resetValue = searchRef.current.getFormReset(itemName, toYearSuffix);
4064
4173
  }
4065
- else if (name === "".concat(itemName).concat(endSuffix)) {
4066
- resetValue = searchRef.current.getFormReset(itemName, endSuffix);
4174
+ else if (name === toMonthName) {
4175
+ resetValue = searchRef.current.getFormReset(itemName, toMonthSuffix);
4067
4176
  }
4068
4177
  }
4069
4178
  break;
@@ -4071,7 +4180,7 @@ Table.defaultProps = TableDefaultProps;var SearchTableDefaultProps = {};var Sear
4071
4180
  resetValue = searchRef.current.getFormReset(name);
4072
4181
  break;
4073
4182
  }
4074
- if (resetValue != null && !equal(resetValue, value)) {
4183
+ if (resetValue != null && !equal(resetValue, value) && typeof value !== 'object') {
4075
4184
  hashes_1.push("".concat(name, "=").concat(encodeURIComponent(value)));
4076
4185
  }
4077
4186
  }