@gridsuite/commons-ui 0.71.1 → 0.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,13 +20,7 @@ const onColumnResized = (params) => {
20
20
  }
21
21
  };
22
22
  const CustomAGGrid = React.forwardRef((props, ref) => {
23
- const {
24
- shouldHidePinnedHeaderRightBorder = false,
25
- overlayNoRowsTemplate,
26
- loadingOverlayComponent,
27
- loadingOverlayComponentParams,
28
- showOverlay = false
29
- } = props;
23
+ const { shouldHidePinnedHeaderRightBorder = false, showOverlay = false, ...agGridReactProps } = props;
30
24
  const theme = useTheme();
31
25
  const intl = useIntl();
32
26
  const GRID_PREFIX = "grid.";
@@ -55,12 +49,9 @@ const CustomAGGrid = React.forwardRef((props, ref) => {
55
49
  ref,
56
50
  getLocaleText,
57
51
  suppressPropertyNamesCheck: true,
58
- loadingOverlayComponent,
59
- loadingOverlayComponentParams,
60
- overlayNoRowsTemplate,
61
52
  onColumnResized,
62
53
  enableCellTextSelection: true,
63
- ...props
54
+ ...agGridReactProps
64
55
  }
65
56
  )
66
57
  }
@@ -3,7 +3,7 @@ import { UUID } from 'crypto';
3
3
 
4
4
  export interface FilterCreationDialogProps {
5
5
  open: boolean;
6
- onClose: (e?: unknown, nextSelectedDirectoryId?: string | null) => void;
6
+ onClose: () => void;
7
7
  activeDirectory?: UUID;
8
8
  elementExists?: ElementExistsType;
9
9
  language?: string;
@@ -70,7 +70,7 @@ function TextInput({
70
70
  ...genHelperPreviousValue(previousValue, adornment),
71
71
  ...genHelperError(error == null ? void 0 : error.message),
72
72
  ...formProps,
73
- ...finalAdornment
73
+ ...adornment && { ...finalAdornment }
74
74
  },
75
75
  id ?? label
76
76
  );
@@ -3,8 +3,8 @@ import { TextFieldProps } from '@mui/material';
3
3
 
4
4
  export type TextFieldWithAdornmentProps = TextFieldProps & {
5
5
  value: Input;
6
- adornmentPosition: string;
7
- adornmentText: string;
6
+ adornmentPosition?: string;
7
+ adornmentText?: string;
8
8
  handleClearValue?: () => void;
9
9
  };
10
10
  export declare function TextFieldWithAdornment(props: TextFieldWithAdornmentProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.71.1",
3
+ "version": "0.72.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "engines": {
6
6
  "npm": ">=9",